New file |
| | |
| | | 2024/9/6 8:17:07 æå°sql:exec h_p_Kf_SellOutBillList_PrintSellOutBill 13787793 |
| | | |
| | | 2024/9/6 8:17:07 SqlConnStr:Data Source=47.96.97.237,15127;Initial Catalog=HX_LMESsys;Persist Security Info=True;User ID=HX_USER;Password=lc@841022; |
| | | |
| | | 2024/9/6 8:17:07 ReportDataSet:1 |
| | | |
| | | 2024/9/6 8:17:40 æå°sql:exec h_p_Kf_SellOutBillList_PrintSellOutBill 13787793 |
| | | |
| | | 2024/9/6 8:17:40 SqlConnStr:Data Source=47.96.97.237,15127;Initial Catalog=HX_LMESsys;Persist Security Info=True;User ID=HX_USER;Password=lc@841022; |
| | | |
| | | 2024/9/6 8:17:40 ReportDataSet:1 |
| | | |
| | | 2024/9/6 8:17:42 æå°sql:exec h_p_Kf_SellOutBillList_PrintSellOutBill 13787793 |
| | | |
| | | 2024/9/6 8:17:42 SqlConnStr:Data Source=47.96.97.237,15127;Initial Catalog=HX_LMESsys;Persist Security Info=True;User ID=HX_USER;Password=lc@841022; |
| | | |
| | | 2024/9/6 8:17:42 ReportDataSet:1 |
| | | |
| | | 2024/9/6 8:22:54 æå°sql:select * from h_v_IF_SellOutBillList_EditInit where hmainid = 13787793 |
| | | |
| | | 2024/9/6 8:22:54 SqlConnStr:Data Source=47.96.97.237,15127;Initial Catalog=HX_LMESsys;Persist Security Info=True;User ID=HX_USER;Password=lc@841022; |
| | | |
| | | 2024/9/6 8:22:54 ReportDataSet:1 |
| | |
| | | <input type="checkbox" name="IsHide" lay-filter="IsHide" id="IsHide{{d.LAY_TABLE_INDEX+1}}" lay-skin="primary"> |
| | | </div> |
| | | </script> |
| | | <!--å¤éæ¡ æ¯å¦ç»è®¡è¡--> |
| | | <script type="text/html" id="IsTotalRow"> |
| | | <div class="layui-input-block" style="margin-left: 20px;"> |
| | | <input type="checkbox" name="IsTotalRow" lay-filter="IsTotalRow" id="IsTotalRow{{d.LAY_TABLE_INDEX+1}}" lay-skin="primary"> |
| | | </div> |
| | | </script> |
| | | <script> |
| | | layui.config({ |
| | | base: '../../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //æ¯å¦ç»è®¡ |
| | | form.on('checkbox(IsTotalRow)', function (data) { |
| | | //è·å䏿æ¡éä¸çå¼ |
| | | var elem = data.othis.parents('tr'); |
| | | var dataindex = elem.attr("data-index"); |
| | | $.each(option.data, function (index, value) { |
| | | if (value.LAY_TABLE_INDEX == dataindex) { |
| | | value.IsTotalRow = data.elem.checked;//æéä¸ä¸ææ¡idå¼èµå¼ç»è¡¨æ ¼ç¼å |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | |
| | | //ä¿åæäº¤ |
| | | form.on('submit(btnSave)', function (data) {//æäº¤ |
| | |
| | | for (var i = 0; i < colNames.length; i++) { |
| | | var dataCols = dataCol[i].split('|'); |
| | | var ColumnName_Other = dataCols[4] == dataCols[5] ? "" : dataCols[4]; |
| | | cols.push({ "ColumnName": colNames[i], "IsHide": dataCols[1] == 1 ? true : false, "Alignment": dataCols[2], "ColumnWidth": dataCols[3], "ColumnName_Other": ColumnName_Other, "ColumnName_real": dataCols[5] }) |
| | | cols.push({ "ColumnName": colNames[i], "IsHide": dataCols[1] == 1 ? true : false, "Alignment": dataCols[2], "ColumnWidth": dataCols[3], "ColumnName_Other": ColumnName_Other, "ColumnName_real": dataCols[5], "IsTotalRow": dataCols[6] == 1 ? true : false }) |
| | | } |
| | | option.data = cols; |
| | | table.render(option); |
| | |
| | | if (dataCols[1] == 1) { |
| | | $("#IsHide" + (i + 1)).attr("checked", true); |
| | | } |
| | | if (dataCols[6] == 1) { |
| | | $("#IsTotalRow" + (i + 1)).attr("checked", true); |
| | | } |
| | | $('#Alignment' + (i + 1)).find("option[value='" + dataCols[2] + "']").attr("selected", true); |
| | | } |
| | | form.render('checkbox'); |
| | |
| | | var colTitleNames = colTitleName.split(','); |
| | | //é»è®¤ä¸éä¸ æ¾ç¤ºåä½å±
å·¦ è¡¨æ ¼çæ°æ®å¡«å
|
| | | for (var i = 0; i < colNames.length; i++) { |
| | | cols.push({ "ColumnName": colNames[i], "IsHide": false, "Alignment": "L", "ColumnWidth": 120, "ColumnName_Other": colTitleNames[i] }) |
| | | cols.push({ "ColumnName": colNames[i], "IsHide": false, "Alignment": "L", "ColumnWidth": 120, "ColumnName_Other": colTitleNames[i], "IsTotalRow": false }) |
| | | } |
| | | option.data = cols; |
| | | table.render(option); |
| | |
| | | //é»è®¤ä¸éä¸ æ¾ç¤ºåä½å±
å·¦ 页é¢å¤éæ¡ ä¸ææ¡ éæ°æ¸²æ |
| | | for (var i = 0; i < colNames.length; i++) { |
| | | $('#IsHide' + (i + 1)).prop("checked", false); |
| | | $('#IsTotalRow' + (i + 1)).prop("checked", false); |
| | | $('#Alignment' + (i + 1)).find("option[value='L']").attr("selected", true); |
| | | } |
| | | form.render('checkbox'); |
| | |
| | | , { field: 'ColumnWidth', title: 'å宽', width: 100, edit: 'text' } |
| | | , { field: 'ColumnName_Other', title: 'å«å', width: 120, edit: 'text' } |
| | | , { field: 'ColumnName_real', title: 'å«å对åºåå', width: 120, edit: 'text',hide:"true" } |
| | | , { field: 'IsTotalRow', title: 'æ¯å¦ç»è®¡', width: 100, templet:'#IsTotalRow' } |
| | | ]] |
| | | }; |
| | | } |
| | |
| | | <input type="checkbox" name="IsHide" lay-filter="IsHide" id="IsHide{{d.LAY_TABLE_INDEX+1}}" lay-skin="primary"> |
| | | </div> |
| | | </script> |
| | | <!--å¤éæ¡ æ¯å¦ç»è®¡è¡--> |
| | | <script type="text/html" id="IsTotalRow"> |
| | | <div class="layui-input-block" style="margin-left: 20px;"> |
| | | <input type="checkbox" name="IsTotalRow" lay-filter="IsTotalRow" id="IsTotalRow{{d.LAY_TABLE_INDEX+1}}" lay-skin="primary"> |
| | | </div> |
| | | </script> |
| | | <script> |
| | | layui.config({ |
| | | base: '../../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //æ¯å¦ç»è®¡ |
| | | form.on('checkbox(IsTotalRow)', function (data) { |
| | | //è·å䏿æ¡éä¸çå¼ |
| | | var elem = data.othis.parents('tr'); |
| | | var dataindex = elem.attr("data-index"); |
| | | $.each(option.data, function (index, value) { |
| | | if (value.LAY_TABLE_INDEX == dataindex) { |
| | | value.IsTotalRow = data.elem.checked;//æéä¸ä¸ææ¡idå¼èµå¼ç»è¡¨æ ¼ç¼å |
| | | } |
| | | }); |
| | | }); |
| | | //ä¿åæäº¤ |
| | | form.on('submit(btnSave)', function (data) {//æäº¤ |
| | | set_AddNew(data); |
| | |
| | | if (option.data[j - 1].IsHide == true) { |
| | | $("#IsHide" + j).attr("checked", true); |
| | | } |
| | | if (option.data[j - 1].IsTotalRow == true) { |
| | | $("#IsTotalRow" + j).attr("checked", true); |
| | | } |
| | | $('#Alignment' + j).find("option[value='" + option.data[j - 1].Alignment + "']").attr("selected", true); |
| | | } |
| | | form.render('select'); |
| | |
| | | for (var j = 1; j <= option.data.length; j++) { |
| | | if (option.data[j - 1].IsHide == true) { |
| | | $("#IsHide" + j).attr("checked", true); |
| | | } |
| | | if (option.data[j - 1].IsTotalRow == true) { |
| | | $("#IsTotalRow" + j).attr("checked", true); |
| | | } |
| | | $('#Alignment' + j).find("option[value='" + option.data[j - 1].Alignment + "']").attr("selected", true); |
| | | } |
| | |
| | | for (var i = 0; i < colNames.length; i++) { |
| | | var dataCols = dataCol[i].split('|'); |
| | | var ColumnName_Other = dataCols[4] == dataCols[5] ? "" : dataCols[4]; |
| | | cols.push({ "ColumnName": colNames[i], "IsHide": dataCols[1] == 1 ? true : false, "Alignment": dataCols[2], "ColumnWidth": dataCols[3], "ColumnName_Other": ColumnName_Other, "ColumnName_real": dataCols[5] }) |
| | | cols.push({ "ColumnName": colNames[i], "IsHide": dataCols[1] == 1 ? true : false, "Alignment": dataCols[2], "ColumnWidth": dataCols[3], "ColumnName_Other": ColumnName_Other, "ColumnName_real": dataCols[5], "IsTotalRow": dataCols[6] == 1 ? true : false }) |
| | | } |
| | | option.data = cols; |
| | | table.render(option); |
| | |
| | | if (dataCols[1] == 1) { |
| | | $("#IsHide" + (i + 1)).attr("checked", true); |
| | | } |
| | | if (dataCols[6] == 1) { |
| | | $("#IsTotalRow" + (i + 1)).attr("checked", true); |
| | | } |
| | | $('#Alignment' + (i + 1)).find("option[value='" + dataCols[2] + "']").attr("selected", true); |
| | | } |
| | | form.render('checkbox'); |
| | |
| | | } else { |
| | | //é»è®¤ä¸éä¸ æ¾ç¤ºåä½å±
å·¦ è¡¨æ ¼çæ°æ®å¡«å
|
| | | for (var i = 0; i < colNames.length; i++) { |
| | | cols.push({ "ColumnName": colNames[i], "IsHide": false, "Alignment": "L", "ColumnWidth": 120 }) |
| | | cols.push({ "ColumnName": colNames[i], "IsHide": false, "Alignment": "L", "ColumnWidth": 120, "IsTotalRow": false }) |
| | | } |
| | | option.data = cols; |
| | | table.render(option); |
| | |
| | | //é»è®¤ä¸éä¸ æ¾ç¤ºåä½å±
å·¦ 页é¢å¤éæ¡ ä¸ææ¡ éæ°æ¸²æ |
| | | for (var i = 0; i < colNames.length; i++) { |
| | | $('#IsHide' + (i + 1)).prop("checked", false); |
| | | $('#IsTotalRow' + (i + 1)).prop("checked", false); |
| | | $('#Alignment' + (i + 1)).find("option[value='L']").attr("selected", true); |
| | | } |
| | | form.render('checkbox'); |
| | |
| | | , { field: 'ColumnWidth', title: 'å宽', width: 100, edit: 'text' } |
| | | , { field: 'ColumnName_Other', title: 'å«å', width: 120, edit: 'text' } |
| | | , { field: 'ColumnName_real', title: 'å«å对åºåå', width: 120, edit: 'text', hide: "true" } |
| | | , { field: 'IsTotalRow', title: 'æ¯å¦ç»è®¡', width: 100, templet: '#IsTotalRow' } |
| | | ]] |
| | | }; |
| | | } |
| | |
| | | if (dataCols[1] == 0 && $.inArray(option.cols[0][i + 1]["title"], titleData) == -1) { |
| | | option.cols[0][i + 1]["hide"] = false; |
| | | } |
| | | //ç»è®¡å |
| | | if (dataCols[6] == 1) { |
| | | option.cols[0][i + 1]["totalRow"] = true; |
| | | } |
| | | //å使å¨ä½ç½®(å·¦ å±
ä¸ å³) |
| | | switch (dataCols[2]) { |
| | | case "L": |
| | |
| | | if (dataCols[1] == 0 && $.inArray(option.cols[0][i + 1]["title"], titleData) == -1) { |
| | | option.cols[0][i + 1]["hide"] = false; |
| | | } |
| | | //ç»è®¡å |
| | | if (dataCols[6] == 1) { |
| | | option.cols[0][i + 1]["totalRow"] = true; |
| | | } |
| | | //å使å¨ä½ç½®(å·¦ å±
ä¸ å³) |
| | | switch (dataCols[2]) { |
| | | case "L": |
| | |
| | | switch (data[i].Type) { |
| | | //int |
| | | case 'DateTime': |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, templet: "<div>{{d." + (data[i].name=="è¡å
³éæ¥æ"?"è¡å
³é人":data[i].name) + " ==''?'':layui.util.toDateString(d." + data[i].name + ", 'yyyy-MM-dd HH:mm:ss')}}</div>", width: 200 }); |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, templet: "<div>{{layui.util.toDateString(d." + data[i].name + ", 'yyyy-MM-dd HH:mm:ss')}}</div>", width: 200 }); |
| | | break; |
| | | default: |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 200 }); |
| | |
| | | return; |
| | | } |
| | | } else { |
| | | return; |
| | | } |
| | | //#endregion |
| | | var InterID = $("#HInterID").val(); |
| | |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: false //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../BaseSet/SRM_OpenTmpList.html?linterid=' + InterID + '&MyMsg=' + InterID + '&Type=Kf_SellOutBillListByID', 'yes'] |
| | | , content: ['../../BaseSet/SRM_OpenTmpList.html?linterid=' + InterID + '&MyMsg=' + InterID + '&Type=Kf_SellOutBillList', 'yes'] |
| | | , resize: false |
| | | }) |
| | | } else { |
| | |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="get_BarCodeNote" id="get_BarCodeNote"><i class="layui-icon layui-icon-refresh-3"></i>æ¡ç æç»</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="get_LookDown" id="get_LookDown"><i class="layui-icon layui-icon-refresh-3"></i>䏿¥</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" id="btn-print" lay-event="btn-print"><i class="layui-icon layui-icon-form"></i>æå°</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" id="btn-print2" lay-event="btn-print2"><i class="layui-icon layui-icon-form"></i>æå°(ç»ç®å)</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="get_export" id="get_export"><i class="layui-icon layui-icon-export"></i>导åº</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="get_Exit" id="get_Exit"><i class="layui-icon layui-icon-logout"></i>éåº</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="HideColumn" id="HideColumn"><i class="layui-icon layui-icon-form"></i>éèå设置</button> |
| | |
| | | break; |
| | | //æå° |
| | | case 'btn-print': get_PrintReport(); |
| | | break; |
| | | //æå°ç»ç®å |
| | | case 'btn-print2': get_PrintReport2(); |
| | | break; |
| | | //导åºexcel |
| | | case 'get_export': |
| | |
| | | , maxmin: false //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../BaseSet/SRM_OpenTmpList.html?linterid=' + data[0].hmainid.toString() + '&MyMsg=' + data[0].hmainid.toString() + '&Type=Kf_SellOutBillList', 'yes'] |
| | | , resize: false |
| | | }) |
| | | } |
| | | else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®æå°ï¼'); |
| | | } |
| | | } |
| | | //#endregion |
| | | |
| | | //#region æå°ææç»ç®æ¸
å |
| | | function get_PrintReport2() { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | if (data[0].ç¶æ != "å·²å®¡æ ¸") { |
| | | layer.alert("æå°å¤±è´¥!åå ï¼åæ®ç¶æä¸ä¸º'å·²å®¡æ ¸'ç¶æ!!", { icon: 5 }); |
| | | return; |
| | | } |
| | | |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['50%', '50%'] |
| | | , title: 'æå°æ¨¡çéæ©' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: false //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../BaseSet/SRM_OpenTmpList.html?linterid=' + data[0].hmainid.toString() + '&MyMsg=' + data[0].hmainid.toString() + '&Type=Kf_SellOutBillListByID', 'yes'] |
| | | , resize: false |
| | | }) |
| | | } |