Edit D:\rfid\libsystem\page\circulation\js\registersperead.js
var rowsService;$(function(){initServiceSelect();initSetGirdHeight();var a=[{key:"rdrtype",condition:"libcode",value:vLibcode},{key:"libcode",condition:"code",value:vLibcode},{code:"rdrstatus",key:"rdrstatus"},];_myPage.prototype.initData(a);enterEvent("keyword",searchRdrRecord);$(".easyui-panel").panel("resize");$("#service").combobox({onChange:function(c,b){if(c.length>0){showServiceInfo(c)}}});$("#keyword").textbox("textbox").focus()});function ikownDlg(){$("#global-message-dlg").dialog("close");$("#keyword").textbox("textbox").focus()}_myPage.prototype.onLoadSuccess=function(a,b){getPageConfig("page_type",callSetParaResult);_fmtGridDataRows=a};function callSetParaResult(c){if(c.status=="0"){var b=c.rows[0];var a=JSON.parse(b.paramjson);setValue("index",a.rdrSearchWay);setJsonData("page_",a);setWebSocket(a)}}function searchRdrRecord(d,a){var e=getValue("page_otherrdr");if(e=="1"){setValue("rdrid","");var b=base_path+"cir/reader/getFirstReader.do";var c={};if(getValue("keyword").length==0){return openMessageDlg("????????????",getFocusReader)}if(d){c.rdrno=d.rdrno}else{if(a){c[a]=getValue("keyword")}else{c[""+getValue("index")+""]=getValue("keyword")}}$.post(b,c,function(f){if(f.status=="0"){checkReaderBeforeLoanByLoc(d,a)}else{registerSpeReadNoCard()}},"json")}else{checkReaderBeforeLoanByLoc(d,a)}}function registerSpeReadNoCard(){setValue("rdrid","");var a=base_path+"cir/speloan/checkReaderBeforeLoan.do";a=base_path+"cir/speloan/registerSpeReadNoCard.do";var b={};b.rdrflag=getValue("keyword");b.location=getValue("service");$.post(a,b,function(c){if(c.status=="0"){var d=c.rows[0];cleanJsonData("record");insertCirResultDataGridListRow(c,getValue("keyword"))}else{openMessageDlg(c.message)}},"json")}function checkReaderBeforeLoanByLoc(d,a){setValue("rdrid","");var b=base_path+"cir/speloan/checkReaderBeforeLoan.do";b=base_path+"cir/speloan/checkReaderBeforeLoanByLoc.do";var e=getValue("page_otherrdr");if(e=="1"){b=base_path+"cir/reader/getFirstReader.do"}var c={};c.optype="regist";if(getValue("keyword").length==0){return openMessageDlg("????????????",getFocusReader)}if(d){c.rdrno=d.rdrno}else{if(a){c[a]=getValue("keyword")}else{c[""+getValue("index")+""]=getValue("keyword")}}c.location=getValue("service");$.post(b,c,function(f){if(f.status=="0"){var g=f.rows[0];setJsonData(null,g);registerSpeReadFun(f)}else{openMessageDlg(f.message)}},"json")}function registerSpeReadFun(c){var b=c.rows[0];var a=base_path+"cir/speloan/registerSpeRead.do";a=base_path+"cir/speloan/registerSpeReadByLoc.do";var d={};d.id=b.id;d.location=getValue("service");$.post(a,d,function(e){if(e.status=="0"){insertCirResultDataGridListRow(e.rows[0])}else{openMessageDlg(e.message)}},"json")}function insertCirResultDataGridListRow(c,a){var b=Date.parse(new Date());var d={};d.note=getValue("name");d.libcode=getValue("libcode");d.info3=getValue("service");d.info4=getValue("rdrno");if(a){d.info4=a;d.libcode=vLibcode;d.note="????????"}d.logstamp=b;$("#spereadDataGridList").datagrid("insertRow",{index:0,row:d})}function searchCirLogRecord(){var a=base_path+"sys/oplog/page.do";var b={};clearGridData("spereadDataGridList");b["limit[0].condition"]="logdate";b["limit[0].value"]=getCurDateYMD();b["limit[1].condition"]="logtype";b["limit[1].value"]="4013";$("#spereadDataGridList").datagrid({url:a,queryParams:b,onLoadSuccess:function(c){},method:"post"})}function initSetGirdHeight(){var a=$(window).height();var b=a-280;$("#spereadDataGridList").datagrid("resize",{height:b})}function showServiceInfo(c){for(var b=0;b<rowsService.length;b++){if(c==rowsService[b].code){var a=rowsService[b].paramjson;if(a){a=JSON.parse(a);$("#ruledeposit").html(a.ya_jin)}$("#rulecode").html(rowsService[b].code);$("#rulename").html(rowsService[b].name);$("#rulerdrtype").html(rowsService[b].rdrtype);break}}}function initServiceSelect(){var a=base_path+"par/special/list.do";var b={};b["limit[0].condition"]="spetype";b["limit[0].value"]="2";$.post(a,b,function(d){if(d.status=="0"){var c=d.rows;rowsService=c;initSelectLocationBySpeType(c)}else{openMessageDlg(d.message)}},"json")}function setPara(){$("#pageconfig_setpara_dlg").window("open")}function initSelectLocationBySpeType(e){var d=[];var f={};for(var c=0;c<e.length;c++){var b=e[c].loccode.split("|")[0];f[b]=b}var a=_fmtGridDataAllValues.rows[0].location;for(var c=0;c<a.length;c++){if(f[a[c].code]){d.push(a[c])}}$("#service").combobox({data:d,valueField:"code",textField:"name",onLoadSuccess:function(){var g=$(this).combobox("getData");if(g.length>0){$(this).combobox("select",g[0].code)}}})};
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de