Edit D:\rfid\libsystem\page\acquisition\js\acq_fastcheckbib.js
var _myInitCombox=function(){};var _myCheckBook=function(){};var initJson;var _autoStatus=true;$(function(){_myInitCombox.prototype.batchno();_myInitCombox.prototype.bibindex();initJson=[{code:"sysid",key:"sysid",condition:"type",value:"0"},{code:"finsources",key:"finsources"},{code:"mediatype",key:"mediatype"},{code:"binding",key:"binding"},{code:"docsources",key:"docsources"},{code:"ncy,orderncy",key:"ncy"},{code:"bookseller",key:"bookseller",condition:"libcode",value:vLibcode},{code:"location",key:"location",condition:"libcode",value:vLibcode},{code:"doctype",key:"doctype",condition:"libcode",value:vLibcode},{code:"libcodeSelect,libcode",key:"libcode",condition:"code",value:vLibcode},{code:"operid",key:"operid"}];_myPage.prototype.initData(initJson);enterEvent("keyword",_myCheckBook.prototype.serach);enterEvent("barcode",_myCheckBook.prototype.checkBarcode);_bibPVG.prototype.rateFocus("orderprice","");_bibPVG.prototype.volumesFocus("volumes","");_myCheckBook.prototype.events();_myCheckBook.prototype.setPanel();_myCheckBook.prototype.initUnionLocationByLibcode()});_myCheckBook.prototype.checkBarcode=function(){var b={};b.barcode=getValue("barcode");var a=base_path+"hld/holding/getCheckHoldBarcode.do";$.post(a,b,function(c){if(c.status=="0"){if(c.total>0){openMessageDlg("????????????")}else{_myCheckBook.prototype.save()}}else{openMessageDlg(c.message)}},"json")};_myCheckBook.prototype.initUnionLocationByLibcode=function(){var a=$("#libcode");if(a.length>0){a.combobox({onChange:function(d,c){var e={key:"location",condition:"libcode",value:d};var b=base_path+"par/common/getInitData.do";$.post(b,e,function(f){try{$("#location").combobox("loadData",f.rows)}catch(g){}},"json");e={key:"doctype",condition:"libcode",value:d};var b=base_path+"par/common/getInitData.do";$.post(b,e,function(f){try{$("#doctype").combobox("loadData",f.rows)}catch(g){}},"json")}})}};_myCheckBook.prototype.setPanel=function(){var a=$(window).height();var b=a-460;$(".my-panel-div").css("height",b+"px");$(".easyui-panel").panel("resize")};_myPage.prototype.onLoadSuccess=function(a,b){_fmtGridDataRows=a};_myCheckBook.prototype.serach=function(){_myCheckBook.prototype.clear();var d={};var c=base_path+"lib/biblios/page.do";if(getValue("keyword").length==0){return openMessageDlg("????????????")}d.rows=10;d.page=1;d.orderBy=" id desc ";var b=0;d.condition=getValue("bibindex");d.value=getValue("keyword");d["limit["+b+"].condition"]="sysid";d["limit["+b+"].value"]=getValue("page_sysid");b++;var e=$("#libcodeSelect");if(e.length>0&&getValue("libcodeSelect").length>0){d["limit["+b+"].condition"]="libcode";d["limit["+b+"].value"]=getValue("libcodeSelect");b++}var a=$("#orderbatchno");if(a.length>0&&getValue("orderbatchno").length>0){d["limit["+b+"].condition"]="ORDBATCHNO";d["limit["+b+"].value"]=getValue("orderbatchno");b++}$("#acqDataGridList").datagrid({url:c,queryParams:d,onLoadSuccess:function(f){if(f.total>1){$("#acqDataGridList").datagrid("getPanel").panel("setTitle","??????(<span style='color:red'>???????????????????,???????????????????!</span>)")}else{$("#acqDataGridList").datagrid("getPanel").panel("setTitle","??????")}$("#acqDataGridList").datagrid("selectRow",0);$("#barcode").textbox("textbox").focus()},method:"post"})};_myCheckBook.prototype.clear=function(){clearGridData("acqDataGridList,checkDataGridList,holdDataGridList")};_myCheckBook.prototype.events=function(){$("#acqDataGridList").datagrid({onSelect:_myCheckBook.prototype.acqSelect})};_myCheckBook.prototype.acqSelect=function(a,b){_myCheckBook.prototype.loadData(b.id,"check");_myCheckBook.prototype.loadData(b.id,"hold");_myCheckBook.prototype.setCheckVal(b);$("#barcode").textbox("textbox").focus()};_myCheckBook.prototype.setCheckVal=function(b){_bibPVG.prototype.setVPG(b,"");_bibPVG.prototype.getCallno(b,"callno");var a=getCurDateYMD();setValue("operid",mystorage.get("operid"));setValue("checkdate",a);setValue("bibid",b.id)};_myCheckBook.prototype.loadData=function(g,d){if(g>0){var c=0;var f=$("#"+d+"DataGridList").datagrid("getSelected");if(f){c=$("#"+d+"DataGridList").datagrid("getRowIndex",f)}var b=base_path+"acq/"+d+"/page.do";if(d=="hold"){b=base_path+"hld/holding/page.do"}var e={};e.rows=10;e.page=1;e.orderBy=" id desc ";var a=0;e.bibid=g;$("#"+d+"DataGridList").datagrid({url:b,queryParams:e,onLoadSuccess:function(h){if(h.total>0&&h.total>c){$("#"+d+"DataGridList").datagrid("selectRow",c)}else{if(h.total>0){$("#"+d+"DataGridList").datagrid("selectRow",0)}}},method:"post"})}else{deleteGridData(""+d+"DataGridList")}};_myCheckBook.prototype.save=function(){var a=getJsonData(null,"record");if(!a){openMessageDlg("??????");return}if(!a.batchno){openMessageDlg("??????????????");return}if(!a.orderprice){openMessageDlg("??????????????");return}if(!a.callno){openMessageDlg("????????????");return}var c="0:"+a.libcode+":"+a.location+":"+a.doctype+":"+a.barcode+":,";var b=base_path+"acq/check/saveCheckRecord.do";a.allocation=c;$.post(b,a,function(d){if(d.status=="0"){_myCheckBook.prototype.loadData(a.bibid,"check");_myCheckBook.prototype.loadData(a.bibid,"hold")}else{openMessageDlg(d.message)}},"json")};function ikownDlg(){$("#global-message-dlg").dialog("close");$("#barcode").textbox("textbox").focus()}_myInitCombox.prototype.bibindex=function(){var b={key:"bibindex"};var a=base_path+"par/common/getInitData.do";$.post(a,b,function(f){var e=f.rows;var d=[];for(var c=0;c<e.length;c++){if(e[c].code!="ORDERNO"&&e[c].code!="UNIFIEDNO"){d.push(e[c])}}e=d;$("#bibindex").combobox({data:e,valueField:"code",textField:"name",panelHeight:"200px",onLoadSuccess:function(){$(this).combobox("select","ISBN")}})},"json")};_myInitCombox.prototype.batchno=function(){if($("#batchno").length>0){var b={type:"1",page:"1",rows:"500"};var a=base_path+"par/batchno/page.do";b.orderBy=" libcode desc ";$.post(a,b,function(h){var g=[];for(var e=0;e<h.rows.length;e++){var f=_fmtGridDataAllValues.rows[0].libcode;for(var c=0;c<f.length;c++){if(f[c].code==h.rows[e].libcode){var d={code:""+h.rows[e].code+"",name:""+h.rows[e].code+"",group:""+f[c].name+""};g.push(d);break}}}$("#batchno").combobox({data:g,valueField:"code",textField:"name",groupField:"group",panelHeight:"200px"})},"json")}};
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de