Edit D:\rfid\libsystem\page\circulation\js\rdr_reserve.js
var vTitle="??";var vMsg="???";var vArea;$(function(){if(vType=="1"){vTitle="??";vMsg="???"}var a=[{key:"rdrtype",condition:"libcode",value:vLibcode},{code:"libcode,biblibcode",key:"libcode",condition:"code",value:vLibcode},{code:"rdrstatus",key:"rdrstatus"},];_myPage.prototype.initData(a);$("#keyword").textbox("textbox").focus().select();enterEvent("keyword",searchRdrRecord);enterEvent("barcode",searchBibRecord);setTabsGridGird();getLoactionGroup();$("#tabsGrid").tabs({onSelect:onSelectTabsGrid});$("#acqDataGridList").datagrid({onSelect:onSelectAcqDataGridList,onDblClickRow:onDblClickAcqDataGridListRow});$("#holdDataGridList").datagrid({pagination:false,onDblClickRow:onDblClickHoldDataGridListRow});$(".easyui-panel").panel("resize")});function getLoactionGroup(){var a=base_path+"par/locgroup/list.do";var b={};$.post(a,b,function(d){var c=d.rows;if(d.rows.length){$("#location").combobox({data:d.rows,valueField:"id",textField:"name",panelHeight:"auto",loadFilter:function(e){var f={};f.id="";f.name="???????????";e.splice(0,0,f);return e},onLoadSuccess:function(){$(this).combobox("select","")}})}},"json")}function onShowLocationGroupName(c,d,a){var e=$("#location").combobox("getData");for(var b=0;b<e.length;b++){if(c==e[b].id){return e[b].name}}return c}_myPage.prototype.onLoadSuccess=function(a,b){_fmtGridDataRows=a;_myPage.prototype.getOperatorParam()};function onDblClickAcqDataGridListRow(b,a){showHoldGridList(a.id,true)}function onSelectAcqDataGridList(b,a){showHoldGridList(a.id,null);setJsonData(null,a)}function onDblClickHoldDataGridListRow(b,a){reserveHandler(a)}function showHoldGridList(d,b){if(d>0){deleteGridData("holdDataGridList");var a=base_path+"hld/holding/page.do";var c={};c.bibid=d;$("#holdDataGridList").datagrid({url:a,queryParams:c,onLoadSuccess:function(e){if(b){$("#tabsGrid").tabs("select",2)}},method:"post"})}else{deleteGridData("holdDataGridList")}}function onSelectTabsGrid(c,a){if(a==2){if($("#acqDataGridList").datagrid("getRows").length>0){var b=$("#acqDataGridList").datagrid("getSelected");if(!b){return openMessageDlg("????????????????,?????????")}}}}function onCloseMessageFun(){if(vArea==0){$("#keyword").textbox("textbox").focus().select()}if(vArea==1){$("#barcode").textbox("textbox").focus().select()}}function insertReserveRecord(){var a=getValue("rdrid");if(!a||a.length==0){return openMessageDlg("?????????¤??????,????????"+vTitle)}var b=$("#holdDataGridList").datagrid("getSelected");if(!b){return openMessageDlg("????????????????,?????"+vTitle)}reserveHandler(b)}function reserveHandler(d){var c=$("#holdDataGridList").datagrid("getRows");var a=false;for(var b=0;b<c.length;b++){if(vType=="0"&&c[b].status=="2"){a=true;break}else{if(vType=="1"&&c[b].status=="1"){a=true;break}}}if(!a){return openMessageDlg("???"+vMsg+"???,????????"+vTitle)}setValue("expirydate",getAddYMD(null,1,null));setValue("restype","1");$("#reserveHandlerDlg").dialog("open")}function reserveSave(){var a=getValue("restype");var d=$("#holdDataGridList").datagrid("getSelected");var b=base_path+"cir/reserve/insert.do";var c={};c.restype=vType;if(a=="0"){c.hldid=d.id}c.bibid=d.bibid;c.rdrid=getValue("rdrid");c.expirydate=getValue("expirydate");c.notifyway=getValue("notifyway");c.location=getValue("location");c.note=getValue("note");$.post(b,c,function(e){if(e.status=="0"){$("#reserveHandlerDlg").dialog("close");openMessageDlg(e.message);getReserveDataGridList(getValue("rdrid"))}else{openMessageDlg(e.message)}},"json")}function deleteReserveRecord(){var a=$("#reserveDataGridList").datagrid("getSelected");if(!a){return openMessageDlg("???????????"+vTitle+"???,??????")}if(a.resstatus=="1"){return openMessageDlg("??"+vTitle+"????????,?????????")}$.messager.confirm("??????","??????????????"+vTitle+"??????",function(c){if(c){var b=base_path+"cir/reserve/update.do";var d={};d.id=a.id;d.resstatus="5";$.post(b,d,function(e){if(e.status=="0"){openMessageDlg(e.message);getReserveDataGridList(getValue("rdrid"))}else{openMessageDlg(e.message)}},"json")}})}function searchBibRecord(){vArea=1;var b=0;var d=$("#acqDataGridList").datagrid("getSelected");if(d){b=$("#acqDataGridList").datagrid("getRowIndex",d)}var a=base_path+"lib/biblios/page.do";var c={};if(getValue("keyword").length==0){return openMessageDlg("????????????")}deleteGridData("acqDataGridList");c.rows=10;c.page=1;c.condition=getValue("bibindex");c.value=getValue("barcode");$("#acqDataGridList").datagrid({url:a,queryParams:c,onLoadSuccess:function(e){if(e.rows.length==0){return openMessageDlg("????????????")}else{$("#tabsGrid").tabs("select",1);$("#acqDataGridList").datagrid("selectRow",0)}},method:"post"})}function searchRdrRecord(){vArea=0;setValue("rdrid","");var a=base_path+"cir/circulation/checkReaderBeforeLoan.do";var b={};if(getValue("keyword").length==0){return openMessageDlg("????????????")}b[""+getValue("index")+""]=getValue("keyword");$.post(a,b,function(c){if(c.status=="0"){searchRdrRecordResult(c);$("#barcode").textbox("textbox").focus().select()}else{openMessageDlg(c.message)}},"json")}function searchRdrRecordResult(a){var b=a.rows[0];setJsonData(null,b);setValue("rdrstatus",b.status);setValue("rdrid",b.id);getReserveDataGridList(b.id)}function getReserveDataGridList(c){if(c>0){deleteGridData("reserveDataGridList");var a=base_path+"cir/reserve/unionPage.do";var b={};b.rdrid=c;b.restype=vType;b.resstatus="0,1";$("#reserveDataGridList").datagrid({url:a,queryParams:b,onLoadSuccess:function(d){$("#tabsGrid").tabs("select",0)},method:"post"})}else{deleteGridData("reserveDataGridList")}}function onOpenreserveDlg(){}function setTabsGridGird(){var a=$(window).height();var b=a-(324);$(".datagrid-div").css("height",b+"px");$("#tabsGrid").tabs("resize")};
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de