Edit D:\rfid\apache-tomcat-8.5.32\webapps\libsystem\page\acquisition\js\lib_acq_updateLocByClassno.js
var pageGridObj;var errorcount,handlecount,successcount=0;$(function(){pageGridObj=$("#checkDataGridList");initPageGirdHeight(300);enterEvent("keyword",searchRecord);$("#keyword").textbox("textbox").focus();$(".easyui-panel").panel("resize");$(".acceptTextTip").hide();var a=getInitJsonArray(getInitCodeArray("record"));_myPage.prototype.initData(a);$(".fanwei-html").hide();$("#searchhandler").combobox({onChange:function(c,b){if(c=="0"||c=="1"){$(".fanwei-html").hide();$(".other-html").show();setValue("export_beg_keyword","");setValue("export_end_keyword","")}else{$(".fanwei-html").show();$(".other-html").hide();setValue("keyword","")}}})});function initPageGirdHeight(b){var a=$(window).height();var c=a;$(".datagrid-div").css("height",c-110+"px");$("#checkDataGridList").datagrid("resize")}function updateHldByClass(a){var c=getValue("searchhandler");if(c=="0"||c=="1"){if(getValue("keyword").length==0){return openMessageDlg("????????????")}}else{var d=getValue("export_beg_keyword");var b=getValue("export_end_keyword");if(!d&&!b){return openMessageDlg("??????????????????????")}}$.messager.confirm("??????","??????????????????",function(e){if(e){onBacthMianFun(a)}})}function getCondtionForFun(b,a){if(getValue("curlocation")){b["limit["+a+"].condition"]="LIB_HOLDINGS.curlocation";b["limit["+a+"].value"]=getValue("curlocation");a++}if(getValue("doctype")){b["limit["+a+"].condition"]="LIB_HOLDINGS.doctype";b["limit["+a+"].value"]=getValue("doctype");a++}return b}function checkErrorFile(){var c=base_path+"com/webuploader/download.do?filename="+errorfile;var b=window.open(c)}function onBacthMianFun(c,a){var h={};var g=0;var e=getValue("searchhandler");if(e=="0"){h["limit["+g+"].condition"]="LIB_HOLDINGS.CHECKID";h["limit["+g+"].typeHandler"]="3";h["limit["+g+"].value"]="(select id from LIB_ACQ_CHECK where BATCHNO='"+getValue("keyword")+"')";g++}else{if(e=="1"){h["limit["+g+"].condition"]="LIB_HOLDINGS.CHECKID";h["limit["+g+"].typeHandler"]="3";h["limit["+g+"].value"]="(select id from LIB_ACQ_CHECK where BATCHNO like '"+getValue("keyword")+"%')";g++}else{var f=getValue("export_beg_keyword");if(f){h["limit["+g+"].condition"]="LIB_HOLDINGS.CHECKID";h["limit["+g+"].typeHandler"]="3";h["limit["+g+"].value"]="(select id from LIB_ACQ_CHECK where BATCHNO >= '"+getValue("export_beg_keyword")+"' and length(BATCHNO)>=length('"+getValue("export_beg_keyword")+"'))";g++}var d=getValue("export_end_keyword");if(d){h["limit["+g+"].condition"]="LIB_HOLDINGS.CHECKID";h["limit["+g+"].typeHandler"]="3";h["limit["+g+"].value"]="(select id from LIB_ACQ_CHECK where BATCHNO <= '"+getValue("export_end_keyword")+"' and length(BATCHNO)<=length('"+getValue("export_end_keyword")+"'))";g++}}}getCondtionForFun(h,g);h.opertype="0";if(c=="doctype"){h[c]="FEN_LEI_MO_REN_WXLX"}else{h[c]="FEN_LEI_MO_REN_DI_DIAN"}$(".error-msg-result").html("");if(!a){errorcount=0;handlecount=0;successcount=0;$.messager.progress({title:"????????",msg:"?????????,?????..."})}if(a){h=a}else{h.rows=200;h.page=1}var b=base_path+"com/handlebatch/executeHolding.do";$.post(b,h,function(i){$.messager.progress("close");if(i.status=="0"){var j=i.rows[0];if(j){errorfile=j.errorfile;errorcount+=j.errorcount;handlecount+=j.handlecount;successcount+=j.successcount;if(j.nextpage&&j.nextpage>0){$.messager.progress({title:"????????",msg:"?????"+handlecount+"]?????,???["+successcount+"]??,???["+errorcount+"]??,??????????? ..."});h.page=j.nextpage;h.errorfile=j.errorfile;onBacthMianFun(c,h)}else{$(".handlecount").html("?????"+handlecount+"]?????");$(".successcount").html("???["+successcount+"]??");$(".errorcount").html("???["+errorcount+"]??");$("#checkerrorfile").show();$("#acceptFileResultDlg").dialog("open")}}else{openMessageDlg(i.message)}}else{openMessageDlg(i.message)}},"json").error(function(){$(".error-msg-result").html("?????????????,???????????!");$(".handlecount").html("?????"+handlecount+"]?????");$(".successcount").html("???["+successcount+"]??");$(".errorcount").html("???["+errorcount+"]??");$("#checkerrorfile").show();$("#acceptFileResultDlg").dialog("open");$.messager.progress("close")})}function searchRecord(){var b=0;var h=pageGridObj.datagrid("getSelected");var a=base_path+"acq/check/pageUnion.do";var g={};clearGridData("checkDataGridList");g.rows=10;g.page=1;var f=0;var d=getValue("searchhandler");if(d=="0"||d=="1"){if(getValue("keyword").length==0){return openMessageDlg("????????????")}g["limit["+f+"].condition"]="LIB_ACQ_CHECK.batchno";g["limit["+f+"].value"]=getValue("keyword");g["limit["+f+"].typeHandler"]=getValue("searchhandler");f++}else{var e=getValue("export_beg_keyword");var c=getValue("export_end_keyword");if(!e&&!c){return openMessageDlg("??????????????????????")}if(e){g["limit["+f+"].condition"]="LIB_ACQ_CHECK.batchno";g["limit["+f+"].value"]=getValue("export_beg_keyword");g["limit["+f+"].typeHandler"]="7";f++}if(c){g["limit["+f+"].condition"]="LIB_ACQ_CHECK.batchno";g["limit["+f+"].value"]=getValue("export_end_keyword");g["limit["+f+"].typeHandler"]="5";f++}}getCondtionForFun(g,f);g.orderBy="LIB_ACQ_CHECK.id";pageGridObj.datagrid({url:a,queryParams:g,onLoadSuccess:function(i){},method:"post"})};
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de