Edit D:\rfid\apache-tomcat-8.5.32\webapps\libsystem\page\circulation\js\registersperead.js
var rowsService;var curLogType;_myPage.prototype.initPageByParam=function(){appRegister(4013);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)}}});$("#spereadDataGridList").datagrid({rowStyler:rowCirOverdueStyler});$("#keyword").textbox("textbox").select().focus()};function rowCirOverdueStyler(a,b){}function appRegister(a){curLogType=a;var b="??";if(curLogType==4014){b="??";searchCirLogRecord(curLogType)}else{searchCirLogRecord(curLogType)}$("#keyword").textbox("textbox").select().focus();$(".cir-handler-title").html(b);$(".show-info-p").panel("setTitle","<lable style='color:green;'>??"+b+"????</lable>??????");$("#spereadDataGridList").datagrid("getPanel").panel("setTitle","<lable style='color:green;'>??"+b+"????</lable>?????????")}function ikownDlg(){$("#global-message-dlg").dialog("close");$("#keyword").textbox("textbox").select().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);setValue("service",a.service);setJsonData("page_",a);setWebSocket(a);getCurDateYMDInLibData()}}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 outSpeReadApp(b,d){var a=base_path+"cir/speloan/outSpeRead.do";var c={};if(d){if(d.rdrid){c.id=d.rdrid}else{c.rdrflag=d.rdrkey}}else{var e=getValue("rdrid");if(b){c.id=b.rows[0].id}else{c.rdrflag=getValue("keyword")}}c.location=getValue("service");$.post(a,c,function(g){if(g.status=="0"){var h=g.rows[0];var f=getValue("page_musictip");if(f&&f=="1"){outlibMusic()}insertCirResultDataGridListRow(g,getValue("keyword"))}else{openMessageDlg(g.message)}},"json")}function onAllOutSpeRead(){var a=base_path+"cir/speread/list.do";var b={};clearGridData("spereadDataGridList");b["limit[0].condition"]="readdate";b["limit[0].value"]=getCurDateYMD();b["limit[1].condition"]="outstamp";b["limit[1].typeHandler"]="10";$("#spereadDataGridList").datagrid({url:a,queryParams:b,onLoadSuccess:function(c){if(c.total>0){$.messager.confirm("??????","?????????????"+addStyleHtmlNoSplit(c.total)+"???,??????????",function(e){if(e){var f=c.rows;for(var d=0;d<f.length;d++){outSpeReadApp(null,f[d])}}})}},method:"post"})}function registerSpeReadNoCard(){setValue("rdrid","");var e=getValue("page_inlibin");if(curLogType=="4013"&&e!="1"){var a=$("#spereadDataGridList").datagrid("getRows");var d=getValue("keyword");for(var c=0;c<a.length;c++){if(a[c].rdrkey==d){return outSpeReadApp()}}}if(curLogType=="4014"){return outSpeReadApp()}var b=base_path+"cir/speloan/checkReaderBeforeLoan.do";b=base_path+"cir/speloan/registerSpeReadNoCard.do";var f={};f.rdrflag=getValue("keyword");f.location=getValue("service");$.post(b,f,function(g){if(g.status=="0"){var h=g.rows[0];cleanJsonData("record");insertCirResultDataGridListRow(g,getValue("keyword"))}else{openMessageDlg(g.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);if(f.total>0){getImageByCode(g.id,"0","photourl","cir-handler-title")}}else{openMessageDlg(f.message)}},"json")}function registerSpeReadFun(f){var g=getValue("page_inlibin");if(curLogType=="4013"&&g!="1"){var a=$("#spereadDataGridList").datagrid("getRows");var e=getValue("keyword");for(var c=0;c<a.length;c++){if(a[c].rdrkey==e){return outSpeReadApp(f)}}}if(curLogType=="4014"){return outSpeReadApp(f)}var d=f.rows[0];var b=base_path+"cir/speloan/registerSpeRead.do";b=base_path+"cir/speloan/registerSpeReadByLoc.do";var h={};h.id=d.id;h.location=getValue("service");$.post(b,h,function(j){if(j.status=="0"){var i=getValue("page_musictip");if(i&&i=="1"){inlibMusic()}insertCirResultDataGridListRow(j.rows[0])}else{openMessageDlg(j.message)}},"json")}function insertCirResultDataGridListRow(b,a){searchCirLogRecord(4013);getCurDateYMDInLibData();$("#keyword").textbox("textbox").select().focus()}function getCurDateYMDInLibData(){var a=base_path+"sys/oplog/page.do";a=base_path+"cir/speread/list.do";var b={};b["limit[0].condition"]="readdate";b["limit[0].value"]=getCurDateYMD();b["limit[1].condition"]="location";b["limit[1].value"]=getValue("service");$.post(a,b,function(d){if(d.status=="0"){var c=d.rows;$(".curDateInLibPeople").html("<strong style='color:red;'>"+c.length+"</strong>")}else{openMessageDlg(d.message)}},"json")}function searchCirLogRecord(b){var a=base_path+"sys/oplog/page.do";a=base_path+"cir/speread/list.do";var c={};clearGridData("spereadDataGridList");c["limit[0].condition"]="readdate";c["limit[0].value"]=getCurDateYMD();if(b){c["limit[1].condition"]="outstamp";if(b=="4013"){c["limit[1].typeHandler"]="10"}else{c["limit[1].typeHandler"]="11"}}$("#spereadDataGridList").datagrid({url:a,queryParams:c,onLoadSuccess:function(d){},method:"post"})}function initSetGirdHeight(){var a=$(window).height();var b=a-310;$("#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)}}});$("#page_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