Edit D:\rfid\apache-tomcat-8.5.32\webapps\libsystem\page\parameter\js\cat_locationbyclassno.js
var filterParam=[{code:"name",key:"location",condition:"libcode",value:vLibcode}];var onLoadParamNum=0;function overLoadInitData(){var a=getInitJsonArray(getInitCodeArray("record"));filterParam.forEach(function(c,d,e){a.push(c)});a.push({code:"copiesLocation",key:"location",condition:"libcode",value:vLibcode});a.push({code:"copiesDoctype",key:"doctype",condition:"libcode",value:vLibcode});a.push({code:"copiesLibcode",key:"libcode",condition:"code",value:vLibcode});_myPage.prototype.initData(a);_myPage.prototype.getOperatorParam();$("#page_copiesDataGridList").datagrid({onSelect:copiesController.prototype.gridSelect});bindConpiesEvent();var b={code:"copiesLocation",unionlist:[{code:"defdoctype",orgcode:"copiesDoctype"}]};_myPage.prototype.initUnionShowByLocation(b);initSelectRuleList();$("#ruleList").combobox({onChange:function(d,c){if(d){setRuleGridByNewValue(d)}}})}function setRuleGridByNewValue(c){var b={};b.pk=c;var a=base_path+"par/defloc/get.do";$.post(a,b,function(e){var d=e.rows[0].paramjson;if(d){d=JSON.parse(d);setValue("page_copiesDataGridList",d.page_copiesDataGridList)}else{openMessageDlg("??????????????????????????????")}},"json")}function closeWin(){$("#win").window("close");initSelectRuleList()}function initSelectRuleList(){var b={};var a=base_path+"par/defloc/list.do";$.post(a,b,function(c){var d="auto";if(c.rows.length>10){d="200px"}$("#ruleList").combobox({data:c.rows,valueField:"code",textField:"code",panelHeight:d,loadFilter:function(e){var f={};f.code="";f.code="??";e.splice(0,0,f);return e},onLoadSuccess:function(){$(this).combobox("select","")}})},"json")}function bindConpiesEvent(){$("#copiesCopies").numberbox().next("span").find("input").focus().select().keydown(function(a){if(a.keyCode==13){copiesController.prototype.insertRow()}})}_myPage.prototype.initComboxByOperatorParm=function(f){if(f.showacqloccode){var b=_fmtGridDataRows.rows[0].location;var e=[];for(var c=0;c<b.length;c++){var d=b[c].code+",";if(f.showacqloccode.indexOf(d)>-1){e.push(b[c])}}$("#copiesLocation").combobox("loadData",e);var g={};g["limit[0].condition"]="code";g["limit[0].typeHandler"]="3";g["limit[0].value"]=getSqlConditionLimitIn(f.showacqloccode);var a=base_path+"par/location/list.do";$.post(a,g,function(n){var m=n.rows;_myLocationData=m;var p=_fmtGridDataRows.rows[0].doctype;$("#copiesDoctype").combobox("loadData",p);var o=_fmtGridDataRows.rows[0].libcode;var j=[];for(var l=0;l<o.length;l++){for(var h=0;h<m.length;h++){if(m[h].libcode.split("|")[0]==o[l].code){j.push(o[l]);break}}}$("#copiesLibcode").combobox("loadData",j)},"json")}};var copiesController=function(){};copiesController.prototype.deleteRow=function(){var b=$("#setCopiesDataGridList").datagrid("getSelected");if(b){var a=$("#setCopiesDataGridList").datagrid("getRowIndex",b);$("#setCopiesDataGridList").datagrid("deleteRow",a)}else{openMessageDlg("????????¤???")}};copiesController.prototype.insertRow=function(){var a={};a.libcode=getValue("copiesLibcode");a.location=getValue("copiesLocation");a.doctype=getValue("copiesDoctype");a.copies=getValue("copiesCopies");$("#setCopiesDataGridList").datagrid("appendRow",a);bindConpiesEvent()};copiesController.prototype.undoRows=function(){$("#setCopiesDataGridList").datagrid("loadData",[])};copiesController.prototype.saveRows=function(){var e={};var a=$("#setCopiesDataGridList").datagrid("getRows");e.rule=JSON.stringify(a);var d=0;var b="";for(var c=0;c<a.length;c++){d+=parseInt(a[c].copies);b+=onShowLibName(a[c].libcode)+"["+a[c].copies+"]??;"}e.copies=d;e.name=b;var f=$("#page_copiesDataGridList").datagrid("getRows");for(var c=0;c<f.length;c++){if(f[c].copies==d){return openMessageDlg("??????["+addStyleHtmlNoSplit(d)+"]???????????,????????????????")}}$("#page_copiesDataGridList").datagrid("appendRow",e);$("#setCopiesDataGridList").datagrid("loadData",[]);bindConpiesEvent()};function saveRecordOk(a){var d=0;var e=$("#page_copiesDataGridList").datagrid("getRows");for(var c=0;c<e.length;c++){d+=e[c].copies}if(a.copies!=d){$.messager.confirm("??????","????????????????????????????,??????????????????",function(g){if(g){var f=controller_url+operation;a=saveBeforRecord(a);$.post(f,a,function(h){openMessageDlg(h.message);if(h.status=="0"){closeWin(h);loadGridData(h)}},"json")}})}else{var b=controller_url+operation;a=saveBeforRecord(a);$.post(b,a,function(f){openMessageDlg(f.message);if(f.status=="0"){closeWin(f);loadGridData(f)}},"json")}}copiesController.prototype.deleteRuleRow=function(){var b=$("#page_copiesDataGridList").datagrid("getSelected");if(b){var a=$("#page_copiesDataGridList").datagrid("getRowIndex",b);$("#page_copiesDataGridList").datagrid("deleteRow",a)}else{openMessageDlg("????????¤???")}};copiesController.prototype.arrowUpRow=function(){copiesController.prototype.myGridSortRow("up")};copiesController.prototype.arrowDownRow=function(){copiesController.prototype.myGridSortRow("down")};copiesController.prototype.myGridSortRow=function(c){var d=$("#page_copiesDataGridList").datagrid("getRows");var a=d.length;var b=$("#page_copiesDataGridList").datagrid("getSelected");var e=$("#page_copiesDataGridList").datagrid("getRowIndex",b);if(c=="up"){if(e==0){$.messager.alert("???","?????????!","warning")}else{$("#page_copiesDataGridList").datagrid("deleteRow",e);e--;$("#page_copiesDataGridList").datagrid("insertRow",{index:e,row:b});$("#page_copiesDataGridList").datagrid("selectRow",e)}}else{if(c=="down"){if(e==a-1){$.messager.alert("???","?????????!","warning")}else{$("#page_copiesDataGridList").datagrid("deleteRow",e);e++;$("#page_copiesDataGridList").datagrid("insertRow",{index:e,row:b});$("#page_copiesDataGridList").datagrid("selectRow",e)}}}};copiesController.prototype.gridSelect=function(a,c){if(c){var b=JSON.parse(c.rule);$("#setCopiesDataGridList").datagrid("loadData",b)}};
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de