| | |
| | | <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all"> |
| | | <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all"> |
| | | <script src="../../../layuiadmin/zgqCustom/zgqCustom.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/json2.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/webConfig.js"></script> |
| | | <script src="../../../layuiadmin/PubCustom.js"></script> |
| | | <script src="../../../layuiadmin/PageTitle.js"></script> |
| | | <style type="text/css"> |
| | | |
| | | /*begin æ¤æ ·å¼ç¨äºæ¶é¤è¡å
ç´ ä¸å¸å±å®½åº¦ä¸å¤çé®é¢*/ |
| | |
| | | </div>--> |
| | | </div> |
| | | </div> |
| | | <div class="layui-tab" lay-filter="table"> |
| | | <ul class="layui-tab-title" lay-filter="tab-all"> |
| | | <li style="padding:1px;" class="layui-this">ä¿å
»è§ç¨</li> |
| | | <li style="padding:1px;">ç¹æ£è§ç¨</li> |
| | | </ul> |
| | | <div class="layui-tab-content"> |
| | | <div class="layui-tab-item layui-show"> |
| | | <!--ä¿å
»è§ç¨è¯¦ç»--> |
| | | <table class="layui-hide" id="mainTableMaintainRule" lay-filter="mainTableMaintainRule"></table> |
| | | <script type="text/html" id="toolbarDemoMaintainRule"> |
| | | <div class="layui-btn-container"> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-AddLine"><i class="layui-icon layui-icon-form"></i>å¢å ä¸è¡</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-CopyLine"><i class="layui-icon layui-icon-form"></i>å¤å¶ä¸è¡</button> |
| | | <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="set_HideColumn"><i class="layui-icon layui-icon-form"></i>å设置</button>--> |
| | | </div> |
| | | </script> |
| | | </div> |
| | | <div class="layui-tab-item"> |
| | | <!--ç¹æ£è§ç¨å表--> |
| | | <table class="layui-hide" id="mainTableDotCheckRule" lay-filter="mainTableDotCheckRule"></table> |
| | | <script type="text/html" id="toolbarDemoDotCheckRule"> |
| | | <div class="layui-btn-container"> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-AddLine2"><i class="layui-icon layui-icon-form"></i>å¢å ä¸è¡</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-CopyLine2"><i class="layui-icon layui-icon-form"></i>å¤å¶ä¸è¡</button> |
| | | <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="set_HideColumn2"><i class="layui-icon layui-icon-form"></i>å设置</button>--> |
| | | </div> |
| | | </script> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </form> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <!--//å表å é¤--> |
| | | <script type="text/html" id="barDemo"> |
| | | <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">å é¤</a> |
| | | </script> |
| | | <script type="text/html" id="barDemo2"> |
| | | <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">å é¤</a> |
| | | </script> |
| | | <!--//å¤éæ¡--> |
| | | <script type="text/html" id="HStdFlag"> |
| | | <input type="checkbox" name="checkbox" value="{{d.HStdFlag}}" lay-skin="primary" lay-filter="HStdFlag" {{ d.HStdFlag == true ? 'checked' : '' }}> |
| | | </script> |
| | | <script type="text/html" id="HStdFlag2"> |
| | | <input type="checkbox" name="checkbox" value="{{d.HStdFlag}}" lay-skin="primary" lay-filter="HStdFlag2" {{ d.HStdFlag == true ? 'checked' : '' }}> |
| | | </script> |
| | | <script src="../../../layuiadmin/layui/layui.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/json2.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script> |
| | |
| | | ; |
| | | var sBillType = "3308"; |
| | | $("#HMakeSupID").val(0); |
| | | var tabIndex = 1; |
| | | //#endregion |
| | | |
| | | //#region è¿å
¥é¡µé¢å³å è½½ |
| | |
| | | else { |
| | | layer.alert("æªç¥æä½ç±»åï¼", { icon: 5 }); |
| | | } |
| | | //#endregion |
| | | |
| | | //#region åå§åå表 |
| | | var optionMaintainRule; |
| | | var optionDotCheckRule; |
| | | var rowdataMaintainRule = [{ |
| | | "HMaintainRuleID": 0, "ä¿å
»è§ç¨åæ®å·": "", "HStdFlag": false, "HRemark": "" |
| | | , "HSourceInterID": "0" |
| | | , "HSourceEntryID": "0" |
| | | , "HSourceBillNo": "" |
| | | , "HSourceBillType": "" |
| | | }]; |
| | | var rowdataDotCheckRule = [{ |
| | | "HDotCheckRuleID": 0, "ç¹æ£è§ç¨åæ®å·": "", "HStdFlag": false, "HRemark": "" |
| | | , "HSourceInterID": "0" |
| | | , "HSourceEntryID": "0" |
| | | , "HSourceBillNo": "" |
| | | , "HSourceBillType": "" |
| | | }]; |
| | | set_InitGrid(); |
| | | //ä¿å
»è§ç¨å¤´å·¥å
·æ äºä»¶ |
| | | table.on('toolbar(mainTableMaintainRule)', function (obj) { |
| | | var checkStatus = table.checkStatus('mainTableMaintainRule') |
| | | , data = checkStatus.data; |
| | | |
| | | //æ°å¢è¡è¡¨æ ¼æ°æ® |
| | | var NewRow = { |
| | | "HMaintainRuleID": 0, "ä¿å
»è§ç¨åæ®å·": "", "HStdFlag": false, "HRemark": "" |
| | | , "HSourceInterID": "0" |
| | | , "HSourceEntryID": "0" |
| | | , "HSourceBillNo": "" |
| | | , "HSourceBillType": "" |
| | | }; |
| | | switch (obj.event) { |
| | | case 'btn-AddLine': |
| | | table.cache["mainTableMaintainRule"].push(NewRow); |
| | | optionMaintainRule.data = table.cache["mainTableMaintainRule"]; |
| | | |
| | | table.render(optionMaintainRule); |
| | | //å·æ°å¤éæ¡ |
| | | //checkRefresh(); |
| | | break; |
| | | case 'btn-CopyLine': |
| | | var copydata = JSON.stringify(data); |
| | | if (data.length <= 0) { |
| | | layer.msg("è¯·éæ©éè¦å¤å¶çä¸è¡ï¼"); |
| | | } |
| | | else if (data.length > 1) { |
| | | layer.msg("åªè½éæ©å¤å¶ä¸è¡ï¼"); |
| | | } |
| | | else { |
| | | var copydata2 = copydata.substring(1, copydata.length);//å»é¤é¦è¡å符'[' |
| | | var copyrow = copydata2.substring(0, copydata2.length - 1);//å»é¤æ«å°¾å符']' |
| | | table.cache["mainTableMaintainRule"].push(JSON.parse(copyrow));//å°å¤å¶çè¡å¼ºè½¬æjson追å å°è¡¨æ ¼ä¸ |
| | | optionMaintainRule.data = table.cache["mainTableMaintainRule"];//å°æ°æ®ç»å®å°dataä¸ |
| | | table.render(optionMaintainRule);//å°æ°æ®æ¸²æå°è¡¨æ ¼ä¸ |
| | | //å·æ°å¤éæ¡ |
| | | //checkRefresh(); |
| | | } |
| | | break; |
| | | //å设置 |
| | | //case 'set_hidecolumn': |
| | | // get_hidecolumn(); |
| | | // break; |
| | | } |
| | | }); |
| | | //ç¹æ£è§ç¨å¤´å·¥å
·æ äºä»¶ |
| | | table.on('toolbar(mainTableDotCheckRule)', function (obj) { |
| | | var checkStatus = table.checkStatus('mainTableDotCheckRule') |
| | | , data = checkStatus.data; |
| | | //æ°å¢è¡è¡¨æ ¼æ°æ® |
| | | var NewRow = { |
| | | "HDotCheckRuleID": 0, "ç¹æ£è§ç¨åæ®å·": "", "HStdFlag": false, "HRemark": "" |
| | | , "HSourceInterID": "0" |
| | | , "HSourceEntryID": "0" |
| | | , "HSourceBillNo": "" |
| | | , "HSourceBillType": "" |
| | | }; |
| | | switch (obj.event) { |
| | | case 'btn-AddLine2': |
| | | table.cache["mainTableDotCheckRule"].push(NewRow); |
| | | optionDotCheckRule.data = table.cache["mainTableDotCheckRule"]; |
| | | |
| | | table.render(optionDotCheckRule); |
| | | //å·æ°å¤éæ¡ |
| | | //checkRefresh(); |
| | | break; |
| | | case 'btn-CopyLine2': |
| | | var copyschemedata = JSON.stringify(data); |
| | | if (data.length <= 0) { |
| | | layer.msg("è¯·éæ©éè¦å¤å¶çä¸è¡ï¼"); |
| | | } |
| | | else if (data.length > 1) { |
| | | layer.msg("åªè½éæ©å¤å¶ä¸è¡ï¼"); |
| | | } |
| | | else { |
| | | var copyschemedata2 = copyschemedata.substring(1, copyschemedata.length);//å»é¤é¦è¡å符'[' |
| | | var copyschemerow = copyschemedata2.substring(0, copyschemedata2.length - 1);//å»é¤æ«å°¾å符']' |
| | | table.cache["mainTableDotCheckRule"].push(JSON.parse(copyschemerow));//å°å¤å¶çè¡å¼ºè½¬æjson追å å°è¡¨æ ¼ä¸ |
| | | optionDotCheckRule.data = table.cache["mainTableDotCheckRule"];//å°æ°æ®ç»å®å°dataä¸ |
| | | table.render(optionDotCheckRule);//å°æ°æ®æ¸²æå°è¡¨æ ¼ä¸ |
| | | console.log(optionDotCheckRule.data); |
| | | //å·æ°å¤éæ¡ |
| | | //checkRefresh(); |
| | | } |
| | | break; |
| | | //å设置 |
| | | //case 'set_hidecolumn': |
| | | // get_hidecolumn(); |
| | | // break; |
| | | } |
| | | }); |
| | | //è¡å
äºä»¶ |
| | | table.on('tool(mainTableMaintainRule)', function (obj) { |
| | | set_GridDelete(obj); //è¡å
å é¤ |
| | | set_GridCellCheck(obj); //è¡å
å¿«æ·é®çé |
| | | }); |
| | | table.on('tool(mainTableDotCheckRule)', function (obj) { |
| | | set_GridDelete(obj); //è¡å
å é¤ |
| | | set_GridCellCheck(obj); //è¡å
å¿«æ·é®çé |
| | | }); |
| | | |
| | | //#region 宿æ è®° |
| | | form.on('checkbox(HStdFlag)', function (data) { |
| | | //è·å䏿æ¡éä¸çå¼ |
| | | var elem = data.othis.parents('tr'); |
| | | var dataindex = elem.attr("data-index"); |
| | | $.each(optionMaintainRule.data, function (index, value) { |
| | | if (value.LAY_TABLE_INDEX == dataindex) { |
| | | value.HStdFlag = data.elem.checked;//æéä¸ä¸ææ¡idå¼èµå¼ç»è¡¨æ ¼ç¼å |
| | | } |
| | | }); |
| | | }); |
| | | form.on('checkbox(HStdFlag2)', function (data) { |
| | | //è·å䏿æ¡éä¸çå¼ |
| | | var elem = data.othis.parents('tr'); |
| | | var dataindex = elem.attr("data-index"); |
| | | $.each(optionDotCheckRule.data, function (index, value) { |
| | | if (value.LAY_TABLE_INDEX == dataindex) { |
| | | value.HStdFlag = data.elem.checked;//æéä¸ä¸ææ¡idå¼èµå¼ç»è¡¨æ ¼ç¼å |
| | | } |
| | | }); |
| | | }); |
| | | //#endregion |
| | | // çå¬Tab忢ï¼åæ¢æ¶è§¦å |
| | | element.on('tab(table)', function (data) { |
| | | // è·åè¢«åæ¢å°ç颿¿çç´¢å¼ |
| | | var index = data.index; |
| | | // æ§è¡ä¸äºæä½ï¼ä¾å¦æ¹å页é¢å
容 |
| | | tabIndex = index + 1; |
| | | }); |
| | | //#endregion |
| | | |
| | | //#region 页颿é®è§¦åäºä»¶ |
| | |
| | | }); |
| | | //#endregion |
| | | |
| | | |
| | | |
| | | //å表åå§å |
| | | function set_InitGrid() { |
| | | optionMaintainRule = { |
| | | elem: '#mainTableMaintainRule' |
| | | , toolbar: '#toolbarDemoMaintainRule' |
| | | //, page: true |
| | | //, limit: 500 |
| | | //, limits: [50, 500, 5000, 50000] |
| | | , totalRow: true |
| | | , cellMinWidth: 120 |
| | | , height: 400 |
| | | , cols: [[ |
| | | { type: 'checkbox', totalRowText: 'å计è¡' } |
| | | , { type: 'numbers', title: 'åºå·', style: 'background-color: #f9f9f9;' } |
| | | , { field: 'HMaintainRuleID', title: 'HMaintainRuleID', hide: true, style: 'background-color: #f9f9f9;' } |
| | | , { field: 'ä¿å
»è§ç¨åæ®å·', title: 'ä¿å
»è§ç¨åæ®å·', edit: 'text', style: 'background-color: #f9f9f9;', event: "HMaintainRuleID" } //f7 |
| | | , { field: 'HRemark', title: '夿³¨', edit: 'text' } |
| | | , { field: 'HStdFlag', title: 'é»è®¤æ è®°', templet: "#HStdFlag" }//checkbox |
| | | , { field: 'HSourceInterID', title: 'æºåå
ç ', hide: true, style: 'background-color: #f9f9f9;' } //f7 |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', hide: true, style: 'background-color: #f9f9f9;' } //f7 |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', hide: true, style: 'background-color: #f9f9f9;' } //f7 |
| | | , { field: 'HSourceBillType', title: 'æºåç±»å', hide: true, style: 'background-color: #f9f9f9;' } //f7 |
| | | , { fixed: 'right', title: 'æä½', toolbar: '#barDemo' } |
| | | ]] |
| | | }; |
| | | optionMaintainRule.data = rowdataMaintainRule; |
| | | table.render(optionMaintainRule); |
| | | optionDotCheckRule = { |
| | | elem: '#mainTableDotCheckRule' |
| | | , toolbar: '#toolbarDemoDotCheckRule' |
| | | //, page: true |
| | | //, limit: 500 |
| | | //, limits: [50, 500, 5000, 50000] |
| | | , totalRow: true |
| | | , cellMinWidth: 120 |
| | | , height: 400 |
| | | , cols: [[ |
| | | { type: 'checkbox', totalRowText: 'å计è¡' } |
| | | , { type: 'numbers', title: 'åºå·', style: 'background-color: #f9f9f9;' } |
| | | , { field: 'HDotCheckRuleID', title: 'HDotCheckRuleID', hide: true, style: 'background-color: #f9f9f9;' } |
| | | , { field: 'ç¹æ£è§ç¨åæ®å·', title: 'ç¹æ£è§ç¨åæ®å·', edit: 'text', style: 'background-color: #f9f9f9;', event: "HDotCheckRuleID" } //f7 |
| | | , { field: 'HRemark', title: '夿³¨', edit: 'text' } |
| | | , { field: 'HStdFlag', title: 'é»è®¤æ è®°', templet: "#HStdFlag2" }//checkbox |
| | | , { field: 'HSourceInterID', title: 'æºåå
ç ', hide: true, style: 'background-color: #f9f9f9;' } //f7 |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', hide: true, style: 'background-color: #f9f9f9;' } //f7 |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', hide: true, style: 'background-color: #f9f9f9;' } //f7 |
| | | , { field: 'HSourceBillType', title: 'æºåç±»å', hide: true, style: 'background-color: #f9f9f9;' } //f7 |
| | | , { fixed: 'right', title: 'æä½', toolbar: '#barDemo' } |
| | | ]] |
| | | } |
| | | optionDotCheckRule.data = rowdataDotCheckRule; |
| | | table.render(optionDotCheckRule); |
| | | } |
| | | //åå§å表åæä»¶ |
| | | function set_InitFrom() { |
| | | //常è§ç¨æ³ |
| | |
| | | $("#HEquipMaintainRuleInterID").val(0); |
| | | $("#HEquipDotCheckRuleInterID").val(0); |
| | | } |
| | | //è¡å
å¿«æ·é®çé |
| | | function set_GridCellCheck(obj) { |
| | | $(document).off('keydown', ".layui-table-edit").on('keydown', '.layui-table-edit', function (e) { |
| | | if (event.key == "F7") { |
| | | if (obj.event == "HMaintainRuleID") { |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: '设å¤ä¿å
»è§ç¨', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../设å¤è§ç¨å/Sb_EquipMaintainRuleList.html', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, laero) { |
| | | //æé®ä¸ çåè° |
| | | var iframeWindow = window["layui-layer-iframe" + index];//è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus("mainTable");//è·åéä¸çæ°æ® |
| | | |
| | | if (checkStatus.data.length != 1) { |
| | | return layer.msg("è¯·éæ©ä¸æ¡æ°æ®"); |
| | | } |
| | | OptionData = checkStatus.data[0]; |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | obj.update({ |
| | | "HMaintainRuleID": OptionData.hmainid |
| | | , "ä¿å
»è§ç¨åæ®å·": OptionData.åæ®å· |
| | | }) |
| | | layer.close(index);//å
³éå¼¹çª |
| | | } |
| | | , end: function () { |
| | | } |
| | | }) |
| | | } |
| | | if (obj.event == "HDotCheckRuleID") { |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: '设å¤ç¹æ£è§ç¨', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../设å¤è§ç¨å/Sb_EquipDotCheckRuleList.html', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, laero) { |
| | | //æé®ä¸ çåè° |
| | | var iframeWindow = window["layui-layer-iframe" + index];//è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus("mainTable");//è·åéä¸çæ°æ® |
| | | |
| | | if (checkStatus.data.length != 1) { |
| | | return layer.msg("è¯·éæ©ä¸æ¡æ°æ®"); |
| | | } |
| | | OptionData = checkStatus.data[0]; |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | obj.update({ |
| | | "HDotCheckRuleID": OptionData.hmainid |
| | | , "ç¹æ£è§ç¨åæ®å·": OptionData.åæ®å· |
| | | |
| | | }) |
| | | layer.close(index);//å
³éå¼¹çª |
| | | } |
| | | , end: function () { |
| | | } |
| | | }) |
| | | } |
| | | obj.event = ""; |
| | | return false; |
| | | } |
| | | |
| | | }) |
| | | } |
| | | |
| | | //è¡å
å é¤ |
| | | function set_GridDelete(obj) { |
| | | var data = obj.data; |
| | | var rowIndex = $(obj.tr).attr("data-index"); |
| | | if (obj.event === 'del') { |
| | | layer.confirm('ççå é¤è¡åï¼', function (index) { |
| | | console.log("ç´¢å¼ä¸º:" + rowIndex); |
| | | if (rowIndex === '0') { |
| | | layer.msg('é¦è¡æ æ³å é¤ï¼ï¼ï¼'); |
| | | } else { |
| | | obj.del(); |
| | | optionMaintainRule.data = table.cache["mainTableMaintainRule"];//å°æ°æ®ç»å®å°dataä¸ |
| | | table.reload(optionMaintainRule); |
| | | optionDotCheckRule.data = table.cache["mainTableDotCheckRule"]; |
| | | table.reload(optionDotCheckRule); |
| | | layer.close(index); |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | //æ°å¢ |
| | | function set_AddFNew() { |
| | | //è·åæå¤§åæ®å· |
| | |
| | | type: "GET", |
| | | data: { "HBillType": sBillType }, |
| | | success: function (d) { |
| | | $("#HInterID").val(0); |
| | | $("#HInterID").val(d.data[0].HInterID); |
| | | $("#HBillNo").val(d.data[0].HBillNo); |
| | | $("#HDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HOutComDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | |
| | | form.render("select"); |
| | | } |
| | | }); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Gy_EquipFileMain/Gy_EquipFileSubDetai", |
| | | type: "GET", |
| | | data: { |
| | | "HInterID": linterid |
| | | }, |
| | | success: function (data) { |
| | | if (data.code == 1) { |
| | | var dataMaintainRule = data.data[0]; |
| | | var dataDotCheckRule = data.data[1]; |
| | | //å表1èµå¼ |
| | | var rowdata = []; |
| | | for (var i = 0; i < dataMaintainRule.length; i++) { |
| | | rowdata.push( |
| | | { |
| | | "HMaintainRuleID": dataMaintainRule[i].HMaintainRuleID, "ä¿å
»è§ç¨åæ®å·": dataMaintainRule[i].HBillNo, "HStdFlag": dataMaintainRule[i].HStdFlag, "HRemark": dataMaintainRule[i].HRemark |
| | | , "HSourceInterID": dataMaintainRule[i].HSourceInterID |
| | | , "HSourceEntryID": dataMaintainRule[i].HSourceEntryID |
| | | , "HSourceBillNo": dataMaintainRule[i].HSourceBillNo |
| | | , "HSourceBillType": dataMaintainRule[i].HSourceBillType |
| | | } |
| | | ) |
| | | } |
| | | optionMaintainRule.data = rowdata; |
| | | table.render(optionMaintainRule); |
| | | //å表2èµå¼ |
| | | var rowdata = []; |
| | | for (var i = 0; i < dataDotCheckRule.length; i++) { |
| | | rowdata.push( |
| | | { |
| | | "HDotCheckRuleID": dataDotCheckRule[i].HDotCheckRuleID, "ç¹æ£è§ç¨åæ®å·": dataDotCheckRule[i].HBillNo, "HStdFlag": dataDotCheckRule[i].HStdFlag, "HRemark": dataDotCheckRule[i].HRemark |
| | | , "HSourceInterID": dataDotCheckRule[i].HSourceInterID |
| | | , "HSourceEntryID": dataDotCheckRule[i].HSourceEntryID |
| | | , "HSourceBillNo": dataDotCheckRule[i].HSourceBillNo |
| | | , "HSourceBillType": dataDotCheckRule[i].HSourceBillType |
| | | } |
| | | ) |
| | | } |
| | | optionDotCheckRule.data = rowdata; |
| | | table.render(optionDotCheckRule); |
| | | } else { |
| | | layer.close(ajaxLoad); |
| | | layer.alert(result.msg, { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | } |
| | | }, error: function () { |
| | | layer.close(ajaxLoad); |
| | | layer.alert("åçé误!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | // ç¼è¾è·åè¡¨å¤´æ¶æ¶é´æ ¼å¼ç«æ£æ¹å¼ |
| | |
| | | $("#HMaker").val(sessionStorage["HUserName"]); |
| | | var user = sessionStorage["HUserName"]; |
| | | var ModRightNameAdd = 'Gy_MouldFile_Edit'; |
| | | |
| | | //ä¿å
»è§æ ¼ |
| | | var mainTableMaintainRuleStr = []; |
| | | for (var i = 0; i < table.cache["mainTableMaintainRule"].length; i++) { |
| | | if (table.cache["mainTableMaintainRule"][i] != "") { |
| | | table.cache["mainTableMaintainRule"][i].LAY_TABLE_INDEX = i; |
| | | mainTableMaintainRuleStr.push(table.cache["mainTableMaintainRule"][i]) |
| | | } |
| | | } |
| | | //ç¹æ£è§æ ¼ |
| | | var mainTableDotCheckRuleStr = []; |
| | | for (var i = 0; i < table.cache["mainTableDotCheckRule"].length; i++) { |
| | | if (table.cache["mainTableDotCheckRule"][i] != "") { |
| | | table.cache["mainTableDotCheckRule"][i].LAY_TABLE_INDEX = i; |
| | | mainTableDotCheckRuleStr.push(table.cache["mainTableDotCheckRule"][i]) |
| | | } |
| | | } |
| | | if (!AllowLoadData())//æ°æ®éªè¯ |
| | | { |
| | | return false; |
| | |
| | | if (Stverf == "Add") { |
| | | data.field.HMaker = sessionStorage["HUserName"];//å¶å人 |
| | | var sMainStr = JSON.stringify(data.field); |
| | | var oMain = sMainStr + ";" + ModRightNameAdd + ";" + user; |
| | | var oMain = sMainStr + ";" + JSON.stringify(mainTableMaintainRuleStr) + ";" + JSON.stringify(mainTableDotCheckRuleStr)+";"+ user; |
| | | //æ°å¢ |
| | | $.ajax({ |
| | | type: "POST", |
| | |
| | | //ä¿®æ¹ |
| | | data.field.HUpDater = sessionStorage["HUserName"];//ä¿®æ¹äºº |
| | | var sMainStr = JSON.stringify(data.field); |
| | | var oMain = sMainStr + ";" + ModRightNameAdd + ";" + user; |
| | | var oMain = sMainStr + ";" + JSON.stringify(mainTableMaintainRuleStr) + ";" + JSON.stringify(mainTableDotCheckRuleStr) + ";" + user; |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: GetWEBURL() + "/Gy_EquipFileMain/EditBill", |