123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 |
- <%@ page contentType="text/html;charset=UTF-8"%>
- <%@ include file="/WEB-INF/include/taglibs.jsp"%>
- <!DOCTYPE html>
- <html>
- <head>
- <title></title>
- <%@ include file="/WEB-INF/include/common.jsp"%>
- <script type="text/javascript">
-
- $(function(){
-
- //定义页面元素
- var operate = '${requestScope.operate}';
- var warningData = ${ requestScope.warningData };
- var $tabs = $("#tabs");
- $tabs.tabs('select',"基本信息");
-
- $.WarningEdit = new $.AbstractEdit({
- entity:"Warning",
- formId:"warningForm",
- operate:operate,
- id:"id"
- }) ;
- //扩展或重写方法
- $.fn.extend( $.WarningEdit ,{
-
- });
- $.WarningEdit.init();
-
- if( !$.isEmpty( warningData )){
- $.WarningEdit.fillData( warningData );
- } ;
-
- //客户
- $('#customerId').combobox({
- url : WEBROOT + "/loadData.action?entity=customer",
- valueField : 'customerId',
- textField : 'customerName',
- delay : 500,
- mode : 'remote',
- showHeader : false,
- striped : true,
- columns : [[{field : 'customerName', width : '147'}]],
- onSelectAfter:function(index, record){
- },
- onShowPanel : function() {
- // 在第一次触发下拉框事件是加载数据
- if (!$(this).combobox('getText')) {
- $(this).combobox({
- onBeforeLoad : function(param) {
- return true;
- }
- });
- }
- }
- });
-
- $("#saveWarningBtn").click( $.proxy( $.WarningEdit.save,$.WarningEdit) );
-
-
-
-
-
- });
- </script>
- </head>
- <body style="overflow-y:hidden" fit="true" scroll="no">
- <div id="tabs" class="easyui-tabs" fit="true">
- <div title="基本信息">
- <form id="warningForm" method="post">
- <input type="hidden" name="id"></input>
- <table style="width:100%">
- <tr>
- <td class="title">
- <div class="star">*</div>预警类型:
- </td>
- <td>
- <s:select list="#request.warningTypeList" id="warningType" name="warningType" headerKey="" headerValue="" listKey="id" listValue="dictionaryName" myType="easyui-combobox" cssStyle="width: 155px" theme="simple" data-options="required:true" ></s:select>
- </td>
- <td class="title">
- <div class="star">*</div>通知方:
- </td>
- <td>
- <s:select list="#request.warningInformantList" id="warningInformant" name="warningInformant" headerKey="" headerValue="" listKey="id" listValue="dictionaryName" myType="easyui-combobox" cssStyle="width: 155px" theme="simple" data-options="required:true" ></s:select>
- </td>
- <td class="title">
- <div class="star">*</div>指定EMAIL:
- </td>
- <td>
- <input class="easyui-validatebox" type="text" style="vertical-align:middle" name="toEmail" data-options="required: true,validType:'email'" />
- </td>
- </tr>
- <tr>
- <td class="title">
- <div class="star">*</div>仓库:
- </td>
- <td>
- <s:select list="#request.warehouseList" listKey="warehouseId" listValue="warehouseName" cssClass="easyui-combobox" cssStyle="width: 155px" name="warehouseId" id="warehouseId" theme="simple" data-options="required:true" ></s:select>
- </td>
- <td class="title">
- <div class="star">*</div>客户:
- </td>
- <td>
- <input myType="easyui-combobox" style="width: 155px"
- id="customerId" name="customerId" data-options="required: true"></input>
- </td>
- <td class="title">
- 启用:
- </td>
- <td>
- <input type="checkbox" class="easyui-checkbox" name="isOpen" value="1">
-
- </td>
- </tr>
- <tr>
- <td colspan="6" align="right">
- <a href="#" icon="icon-save" id="saveWarningBtn" class="easyui-linkbutton">保存</a>
- </td>
- </tr>
- </table>
- </form>
- </div>
- </div>
- </body>
- </html>
|