Edit D:\rfid\libsystem\page\circulation\js\new_reader.js
var payMoney;var rdrRecord;var VPAGEFIN="reader";var uploader;var uploaderFile;var vServiceStatus=0;var vPrintTicketStatus=0;var vBase64Image=0;var initJson;var rdrController=function(){};$(function(){rdrController.prototype.init();rdrController.prototype.bind()});rdrController.prototype.bind=function(){showRdrFldName();_myPage.prototype.onLoadAllLibDataNoLimit({code:"showlibcode",key:"libcode"});enterEvent("keyword",searchRdrRecord);getReaderPhoto();$(".easyui-panel").panel("resize")};rdrController.prototype.init=function(){rdrController.prototype.initConfig()};rdrController.prototype.initConfig=function(){initJson=[{key:"rdrtype",condition:"libcode",value:vLibcode},{code:"formatdesign_libcode,libcode",key:"libcode",condition:"code",value:vLibcode},{key:"rdrfld1",condition:"parentid",value:"1"},{key:"rdrfld2",condition:"parentid",value:"2"},{key:"rdrfld3",condition:"parentid",value:"3"},{key:"rdrfld4",condition:"parentid",value:"4"},{key:"peccancy"},{key:"cirlogtype"},{code:"status",key:"rdrstatus"},{code:"finsearchfintype",key:"fintype"},{code:"finsearchrectype",key:"rectype"},{code:"finsearchpayway",key:"payway"},{code:"formatdesign_operid,operid",key:"operid"}];_myPage.prototype.getLoadData(initJson);$("#keyword").textbox("textbox").focus()};_myPage.prototype.getLoadSuccess=function(a,b){_fmtGridDataRows=a;_myPage.prototype.onLoadData(_fmtGridDataRows,initJson);getPageConfig("page_type",callSetParaResult,"cir");_myPage.prototype.getOperatorParam()};_myPage.prototype.initComboxByOperatorParm=function(e){if(e.showrdrtype){var a=$("#rdrtype").combobox("getData");var d=[];for(var b=0;b<a.length;b++){var c=a[b].code+",";if(e.showrdrtype.indexOf(c)>-1){d.push(a[b])}}$("#rdrtype").combobox("loadData",d)}};function showRdrFldName(){$(".show-rdrfld1").html(mystorage.get("rdr_fld1"));$(".show-rdrfld2").html(mystorage.get("rdr_fld2"));$(".show-rdrfld3").html(mystorage.get("rdr_fld3"));$(".show-rdrfld4").html(mystorage.get("rdr_fld4"))}function onSelectRdrDataGridList(a,b){if(!isUpdateByLibcode(b.libcode)){setRdrBntIsShowByLibcode(true)}else{setRdrBntIsShowByLibcode(false)}searchRdrRecordById(b.id);getLoanRule(b.libcode,b.rdrtype)}function setRdrBntIsShowByLibcode(a){if(a){$("#saveRdrRecord").linkbutton({disabled:true});$("#deleteRdrRecord").linkbutton({disabled:true});$("#rdrPhotoRecord").hide();$("#rdrCardRecord").hide();$("#rdrmoneyRecord").hide();$("#rdrServiceRecord").hide();$("#rdrBonusHandler").hide();$("#upLoadPhoto").hide();$("#deletePhoto").hide();$("#tuizheng").hide();$("#yajinchuli").hide()}else{$("#saveRdrRecord").linkbutton({disabled:false});$("#deleteRdrRecord").linkbutton({disabled:false});$("#rdrPhotoRecord").show();$("#rdrCardRecord").show();$("#rdrmoneyRecord").show();$("#rdrServiceRecord").show();$("#rdrBonusHandler").show();$("#upLoadPhoto").show();$("#deletePhoto").show();$("#tuizheng").show();$("#yajinchuli").show()}}function getLoanRule(c,a){$(".loanrulelist").html("");var b=base_path+"cir/circulation/getloanrule.do";var d={};d.libcode=c;d.rdrtype=a;$.post(b,d,function(j){if(j.status=="0"){var h=j.rows;for(var f=0;f<h.length;f++){var k=h[f];var e=JSON.parse(k.paramjson);var g="";g+=",?????:"+e.ke_jie_shu;g+=",????????????:"+e.zui_xiao_jie_qi;g+=",????????????:"+e.zui_da_jie_qi;g+=",???????????:"+e.xu_jie_ci_shu;g+=",??????????:"+e.xu_jie_qi;g+=",????????????????:"+e.zui_xiao_xu_jie_qi;$(".loanrulelist").append("<div>??????["+k.code+"|"+k.name+"],????"+k.libcode+"]"+g+"</div>")}}},"json")}function searchRdrRecord(c,a){var b=base_path+"cir/reader/page.do";var d={};if(getValue("keyword").length==0&&!a){return openMessageDlg("????????????")}vBase64Image=0;cleanJsonData("record");cleanJsonData("showrecord");$(".loanrulelist").html("");deleteGridData("rdrDataGridList");d.rows=10;d.page=1;if(c){d[c]=a}else{d[""+getValue("index")+""]=getValue("keyword")}$("#rdrDataGridList").datagrid({url:b,queryParams:d,onLoadSuccess:function(e){if(e.status=="0"){if(e.total>0){$("#rdrDataGridList").datagrid("selectRow",0)}else{return openMessageDlg("????????????")}}else{openMessageDlg(e.message)}},method:"post"})}function searchRdrRecordById(c){$("#photourl").attr("src","images/bg.png");cleanJsonData("showrecord");cleanJsonData("record");var a=base_path+"cir/reader/getFirstReader.do";var b={};b.id=c;$.post(a,b,function(d){if(d.status=="0"){var e=d.rows[0];setJsonData(null,e);setJsonData("show",e);setValue("showlibcode",e.libcode);$("#libcode").combobox("setText",$("#showlibcode").combobox("getText"));getReaderPhoto(e.id,e.photourl)}},"json")}function getReaderPhoto(b,a){getImageByCode(b,"0","photourl")}function RndNum(c){var b="";for(var a=0;a<c;a++){b+=Math.floor(Math.random()*10)}return b}function addRdrRecord(){vBase64Image=0;cleanJsonData("record");cleanJsonData("showrecord");deleteGridData("rdrDataGridList");$(".loanrulelist").html("");setValue("keyword","");setValue("status","0");setValue("libcode",vLibcode);$("#rdrno").textbox("textbox").focus();getReaderPhoto();setRdrBntIsShowByLibcode(false);$("#photourl").attr("src","images/bg.png")}function saveRdrRecord(){rdrRecord={};rdrRecord=getJsonData(null,"record");if(rdrConfigParamjson.autordr){rdrRecord.auto_rdrno_code=rdrConfigParamjson.autordr}if(!rdrRecord){openMessageDlg("??????");return}if(!rdrRecord.rdrno&&!rdrRecord.auto_rdrno_code){openMessageDlg("??????????????");return}if(!rdrRecord.name){openMessageDlg("??????????????");return}if(!rdrRecord.rdrtype){openMessageDlg("??????????????");return}if(!rdrRecord.libcode){openMessageDlg("?????????????");return}var d=getValue("id");var a=base_path+"cir/reader/saveReader.do";if(d>0){saveReaderRecord(a,rdrRecord)}else{if(rdrRecord.libcode&&rdrRecord.idcard){var b=base_path+"cir/reader/checkIdcard.do";var c={};c.idcard=rdrRecord.idcard;c.libcode=rdrRecord.libcode;$.post(b,c,function(e){if(e.total==0){if(e.status=="3002"){$.messager.confirm("??????",e.message+",????????????",function(f){if(f){checkGetFirstReader(a,rdrRecord)}})}else{checkGetFirstReader(a,rdrRecord)}}else{checkGetFirstReader(a,rdrRecord)}},"json")}else{checkGetFirstReader(a,rdrRecord)}}}function checkGetFirstReader(b,c){var a=base_path+"cir/reader/getFirstReader.do";var d={};d.rdrno=c.rdrno;$.post(a,d,function(e){if(e.total==0){saveReaderRecord(b,c)}else{openMessageDlg("??????????????")}},"json")}function saveReaderRecord(b,a,c){var d=getValue("id");payMoney={};$.post(b,a,function(h){if(h.rows.length>0&&h.rows[0].id){saveImageByCode(h.rows[0].id,"0")}if(h.status=="0"){if(c){$("#lost-change-dlg").dialog("close");$("#card-delay-dlg").dialog("close")}openMessageDlg(h.message);searchRdrRecord("id",h.rows[0].id);searchDepositGridList(h.rows[0],"deposit","fin_deposit_dlg");if(vPrintTicketStatus==1){printTicketHandler("deposit",h.rows[0]);vPrintTicketStatus=0}}else{if(h.status=="3001"){payMoney=h.rows[0];var j=0;$(".payfin-addrdr-body").html("");var f='<table class="table-box rdr-table-input" data-options="fit:true"><tr><td class="div-tr-td" width="100%">???????????????????:</td><tbody></tr>';if(payMoney.deposit){var i="??";if(payMoney.deposit<0){i="??"}f+='<tr><td class="div-tr-td">'+i+"???:"+Math.abs(payMoney.deposit).toFixed(2)+"??</td></tr>";j+=parseFloat(payMoney.deposit)}if(payMoney.gong_ben_fei){f+='<tr><td class="div-tr-td">??????:'+payMoney.gong_ben_fei+"??</td></tr>";j+=parseFloat(payMoney.gong_ben_fei)}if(payMoney.yan_zheng_fei){f+='<tr><td class="div-tr-td">??????:'+payMoney.yan_zheng_fei+"??</td></tr>";j+=parseFloat(payMoney.yan_zheng_fei)}else{f+='<tr><td class="div-tr-td"></td></tr>'}f+='<tr><td class="div-tr-td">  </td></tr>';var i="??";if(j<0){i="??"}f+='<tr><td class="div-tr-td"><div style="text-align: right;">?????'+i+":<strong style='color:red;'>["+Math.abs(j).toFixed(2)+"]</strong>??</div></td></tr></tbody></table>";var g="";g+="<div class='div-book-record'>"+f+"</div>";var e=rdrConfigParamjson.paybarcode;if(e&&e=="1"&&j>-1){g+="<div >???:????????????????????????????????????????????????????????????????????????</div>";g+='<div class="div-book-record"><input id="olpaycode" type="text" style="width:420px;height:20px;"></div>'}$(".payfin-addrdr-body").append(g);$("#payfin-addrdr-dlg").window("open");bindPayDepositFinEvent()}else{openMessageDlg(h.message)}}},"json")}function bindPayDepositFinEvent(){if($("#olpaycode").length>0){$("#olpaycode").focus().select();$("#olpaycode").keydown(function(a){if(a.keyCode==13){saveReaderRecordOKResult()}})}}function saveReaderRecordOKResult(){$("#payfin-addrdr-dlg").window("close");rdrRecord.check="1";if(payMoney.deposit){rdrRecord.deposit=payMoney.deposit}if(payMoney.gong_ben_fei){rdrRecord.gong_ben_fei=payMoney.gong_ben_fei}if(payMoney.yan_zheng_fei){rdrRecord.yan_zheng_fei=payMoney.yan_zheng_fei}if($("#olpaycode").length>0){rdrRecord.olpaycode=$("#olpaycode").val()}vPrintTicketStatus=1;var a=base_path+"cir/reader/saveReader.do";saveReaderRecord(a,rdrRecord)}function saveReaderRecordCancleResult(){$("#payfin-addrdr-dlg").window("close");rdrRecord.check="1";var a=base_path+"cir/reader/saveReader.do";saveReaderRecord(a,rdrRecord)}function deleteRdrRecord(){var a=$("#rdrDataGridList").datagrid("getSelected");if(!a){return openMessageDlg("?????????¤??????,??????")}openConfirmDlg("?????????????????["+a.rdrno+"]???????????",null,deleteRrdRecordResult,null)}function deleteRrdRecordResult(){var c=$("#rdrDataGridList").datagrid("getSelected");var a=base_path+"cir/reader/delete.do";var b={};b.pk=c.id;$.post(a,b,function(d){if(d.status=="0"){vBase64Image=0;deleteImageByCode(c.id,"0","photourl");searchRdrRecord();openMessageDlg(d.message)}else{openMessageDlg(d.message)}},"json")}function deletePhoto(){var a=$("#rdrDataGridList").datagrid("getSelected");if(!a){return openMessageDlg("?????????¤??????,???????????????")}deleteImageByCode(a.id,"0","photourl")}function rdrDataRdrRecord(b){rdrRecord={};rdrRecord=getJsonData(null,"record");if(rdrRecord.id>0){if(b=="4"){if(getValue("showdebt")>0){return openMessageDlg("????????["+getValue("showdebt")+"]???,?????????")}if(getValue("showcurloan")>0){return openMessageDlg("???????"+getValue("showcurloan")+"]????????,?????????")}openConfirmDlg("???????????????["+rdrRecord.rdrno+"]?????,?????????????",null,rdrDataRdrRecordResult,null)}else{if(b=="0"&&getValue("status")=="0"){openMessageDlg("?????????????,??????????????")}else{var a=base_path+"cir/reader/saveReader.do";rdrRecord.status=b;saveReaderRecord(a,rdrRecord)}}}else{openMessageDlg("????????¤?????????????")}}function cancelStopLoanData(){rdrRecord={};rdrRecord=getJsonData(null,"record");if(rdrRecord.id>0){var a=base_path+"cir/reader/saveReader.do";rdrRecord.stopdate="0";saveReaderRecord(a,rdrRecord)}else{openMessageDlg("????????¤?????????????")}}function rdrDataRdrRecordResult(){rdrRecord={};rdrRecord=getJsonData(null,"record");var a=base_path+"cir/reader/saveReader.do";rdrRecord.status="4";saveReaderRecord(a,rdrRecord)}function resetPassWordRecord(){var a=getValue("id");if(a>0){$.messager.confirm("??????","????????????????????????????",function(c){if(c){var b=base_path+"cir/reader/resetPassword.do";var d={};d.id=a;$.post(b,d,function(e){if(e.status=="0"){openMessageDlg(e.message)}else{openMessageDlg(e.message)}},"json")}})}else{openMessageDlg("????????¤?????????????")}}function lostCardChange(){var a=getValue("id");if(a>0){setValue("changeoldcardno",getValue("rdrno"));$("#lost-change-dlg").window("open")}else{openMessageDlg("????????¤?????????????")}}function onLostAddCard(){if(getValue("rdrno")==getValue("changenewcardno")){return openMessageDlg("???????????????")}rdrRecord={};rdrRecord=getJsonData(null,"record");var a=base_path+"cir/reader/saveReader.do";rdrRecord.rdrno=getValue("changenewcardno");saveReaderRecord(a,rdrRecord,"1")}function cardDelay(){var b=getValue("id");if(b>0){var a=base_path+"par/readertype/get.do";$.post(a,{pk:getValue("rdrtype")},function(e){if(e.status=="0"){var c=JSON.parse(e.rows[0].paramjson);var g=parseInt(c.you_xiao_qi);var f=$("#enddate").datebox("getValue");var d=addDate(f,g);setValue("cardstartdate",getValue("startdate"));setValue("cardenddate",d);$("#card-delay-dlg").window("open")}},"json")}else{openMessageDlg("????????¤?????????????")}}function onCardDelayHandler(){if(parseInt(getValue("cardstartdate"))>parseInt(getValue("cardenddate"))){return openMessageDlg("????????????????????")}rdrRecord={};rdrRecord=getJsonData(null,"record");var a=base_path+"cir/reader/saveReader.do";rdrRecord.startdate=getValue("cardstartdate");rdrRecord.enddate=getValue("cardenddate");saveReaderRecord(a,rdrRecord,"1")}function curBorrowSearch(){var a=getValue("id");if(a>0){$("#cur-borrow-dlg").dialog({onLoad:function(){getCirDataGridList(a)}}).dialog("open")}else{openMessageDlg("????????¤?????????????")}}function searchCurBorrow(){var a=getValue("id");getCirDataGridList(a)}function getCirDataGridList(b){var a=base_path+"hld/holding/listHoldingWithBib.do";var c={};clearGridData("cirDataGridList");c.rows=10;c.page=1;c.rdrid=b;$("#cirDataGridList").datagrid({url:a,queryParams:c,onLoadSuccess:function(d){},method:"post"})}function historyBorrowSearch(){var a=getValue("id");if(a>0){$("#history-borrow-dlg").dialog({onLoad:function(){_myPage.prototype.dataToCombobox(_fmtGridDataRows.rows[0].cirlogtype,{id:"cirlogtype"});getHistoryBorrowDataGridList()}}).dialog("open")}else{openMessageDlg("????????¤?????????????")}}function getHistoryBorrowDataGridList(){var b=getValue("id");var a=base_path+"cir/cirlog/pageUnion.do";var c={};clearGridData("historyBorrowDataGridList");c.rows=10;c.page=1;c.rdrid=b;if(getValue("cirlogtype").length>0){c.logtype=getValue("cirlogtype")}if(getValue("cirlogbegdate").length>0&&getValue("cirlogenddate").length>0){c["limit[0].condition"]="logdate";c["limit[0].typeHandler"]="2";c["limit[0].value"]=getValue("cirlogbegdate").replace(new RegExp("-","g"),"");c["limit[0].secondValue"]=getValue("cirlogenddate").replace(new RegExp("-","g"),"")}$("#historyBorrowDataGridList").datagrid({url:a,queryParams:c,onLoadSuccess:function(d){},method:"post"})}function setPara(){var a="../circulation/com/rdr_pageconfig.jsp";var b=$("#pageconfig_setpara_dlg").dialog({href:a,onLoad:function(){rdrConfig.prototype.init()}}).dialog("open")}function onSerachRdrBarcode(){var a=base_path+"par/common/getInitData.do?key=barformat&condition=type&value=1";var b={};clearGridData("rdrBarcodeDataGridList");$("#rdrBarcodeDataGridList").datagrid({url:a,queryParams:b,onLoadSuccess:function(c){},method:"post"})}function savePageConfig(){var a=getJsonData("page_","record");if(!a){openMessageDlg("??????");return}if(rdrConfigParamjson&&rdrConfigParamjson.depositticket){var d=rdrConfigParamjson.depositticket;if(d=="1"){if(!drConfigParamjson.acceptDepositFormatDesignIndex){return openMessageDlg("???????????????????????")}}}if(rdrConfigParamjson&&rdrConfigParamjson.fineticket){var c=rdrConfigParamjson.fineticket;if(c=="1"){if(!drConfigParamjson.acceptDebtFormatDesignIndex){return openMessageDlg("???????????????????????")}}}var b=base_path+"lib/pageconfig/save.do";$.post(b,a,function(e){if(e.status=="0"){openMessageDlg(e.message);$("#pageconfig_setpara_dlg").dialog("close");savePageConfigCallBack()}else{openMessageDlg(e.message)}},"json")}function savePageConfigCallBack(){getPageConfig("page_type",callSetParaResult)}function sohwService(){var a=getValue("id");if(a>0){$("#servicedlg").dialog({onLoad:function(){getServiceDataGridList();$("#serviceDataGridList").datagrid({onSelect:onSelectService})}}).dialog("open")}else{openMessageDlg("????????¤?????????????")}}function getServiceDataGridList(){$(".rdrno").html(getValue("rdrno"));$(".name").html(getValue("name"));var a=base_path+"par/special/page.do";onHnadlerSvaeBntScreen(null,true);var b={};$.post(a,b,function(g){onHnadlerSvaeBntScreen(null,false);if(g.status=="0"){var f=g.rows;var c=[];for(var e=0;e<f.length;e++){var h={};h=f[e];var d=JSON.parse(f[e].paramjson);if(d.ya_jin){h.deposit=d.ya_jin}else{h.deposit="0"}if(d.zi_dong_kai_tong){h.status=d.zi_dong_kai_tong}else{h.status="0"}c.push(h)}$("#serviceDataGridList").datagrid("loadData",c)}else{openMessageDlg(g.message)}},"json")}function onOpenService(){var f=0;var e=$("#serviceDataGridList").datagrid("getSelected");if(e){vServiceStatus=1;if(e.deposit){$(".payfin-service-body").html("");var b='<table class="table-box rdr-table-input" data-options="fit:true"><tr><td class="div-tr-td" width="100%">????????????????????????????:</td><tbody></tr>';var d="??";b+='<tr><td class="div-tr-td">'+d+"??????:"+Math.abs(e.deposit).toFixed(2)+"??</td></tr>";f+=parseFloat(e.deposit);var d="??";b+='<tr><td class="div-tr-td"><div style="text-align: right;">?????'+d+":"+Math.abs(f).toFixed(2)+"??</div></td></tr></tbody></table>";var c="";c+="<div class='div-book-record'>"+b+"</div>";var a=rdrConfigParamjson.paybarcode;if(a&&a=="1"){c+="<div >???:????????????????????????????????????????????????????????????????????????</div>";c+='<div class="div-book-record"><input id="olpaycode" type="text" style="width:420px;height:20px;"></div>'}$(".payfin-service-body").append(c);$("#payfin-service-dlg").window("open");bindPayServiceFinEvent()}else{}}else{openMessageDlg("??????????????¤??????????")}}function bindPayServiceFinEvent(){if($("#olpaycode").length>0){$("#olpaycode").focus().select();$("#olpaycode").keydown(function(a){if(a.keyCode==13){onServiceHandler()}})}}function onRenewService(){var c=$("#serviceDataGridList").datagrid("getSelected");if(c){var a=base_path+"cir/reader/renewService.do";onHnadlerSvaeBntScreen(null,true);var b={};b.rdrid=getValue("id");b.rulecode=c.code;$.post(a,b,function(d){onHnadlerSvaeBntScreen(null,false);if(d.status=="0"){openMessageDlg(d.message);var e=d.rows[0];setValue("paramjson",e.paramjson);$("#payfin-service-dlg").window("close");getServiceDataGridList()}else{openMessageDlg(d.message)}},"json")}else{openMessageDlg("??????????????¤??????????")}}function onSelectService(b,c){if(c.status=="0"){var a=getValue("paramjson");if(a){a=JSON.parse(a);if(a.sperule&&a.sperule[c.code]){$("#onOpenService").linkbutton({disabled:true});$("#onRenewService").linkbutton({disabled:false});$("#onCancelService").linkbutton({disabled:false})}else{$("#onOpenService").linkbutton({disabled:false});$("#onRenewService").linkbutton({disabled:true});$("#onCancelService").linkbutton({disabled:true})}}else{$("#onOpenService").linkbutton({disabled:false});$("#onRenewService").linkbutton({disabled:true});$("#onCancelService").linkbutton({disabled:true})}}else{$("#onOpenService").linkbutton({disabled:true});$("#onRenewService").linkbutton({disabled:true});$("#onCancelService").linkbutton({disabled:true})}}function onServiceHandler(){$("#payfin-service-dlg").dialog("close");var a=base_path+"cir/reader/openService.do";if(vServiceStatus==0||vServiceStatus==2){a=base_path+"cir/reader/cancelService.do"}onHnadlerSvaeBntScreen(null,true);var c={};c.rdrid=getValue("id");if(vServiceStatus==2){var b=$("#depositDataGridList").datagrid("getSelected");c.rulecode=b.resefld1;c.deposit=b.money}else{var b=$("#serviceDataGridList").datagrid("getSelected");c.rulecode=b.code;c.deposit=b.deposit;if($("#olpaycode").length>0){c.olpaycode=$("#olpaycode").val()}}c.payway="0";$.post(a,c,function(d){onHnadlerSvaeBntScreen(null,false);if(d.status=="0"){openMessageDlg(d.message);var e=d.rows[0];setValue("paramjson",e.paramjson);$("#payfin-service-dlg").window("close");if(vServiceStatus==2){finDepositHandle()}else{getServiceDataGridList()}}else{openMessageDlg(d.message)}},"json")}function onCancelService(){var d=0;var c=$("#serviceDataGridList").datagrid("getSelected");if(c){vServiceStatus=0;if(c.deposit){$(".payfin-service-body").html("");var a='<table class="table-box rdr-table-input" data-options="fit:true"><tr><td class="div-tr-td" width="100%">????????????????????????????:</td><tbody></tr>';var b="??";a+='<tr><td class="div-tr-td">'+b+"??????:"+Math.abs(c.deposit).toFixed(2)+"??</td></tr>";d+=parseFloat(c.deposit);var b="??";a+='<tr><td class="div-tr-td"><div style="text-align: right;">?????'+b+":"+Math.abs(d).toFixed(2)+"??</div></td></tr></tbody></table>";$(".payfin-service-body").append(a);$("#payfin-service-dlg").window("open")}else{canceServiceRecord()}}else{openMessageDlg("??????????????¤??????????")}}function refundServiceDeposit(){var d=0;var c=$("#depositDataGridList").datagrid("getSelected");if(c){if(c.type=="8"){vServiceStatus=2;if(c.money){$(".payfin-service-body").html("");var a='<table class="table-box rdr-table-input" data-options="fit:true"><tr><td class="div-tr-td" width="100%">??????????????????????????:</td><tbody></tr>';var b="??";a+='<tr><td class="div-tr-td">'+b+"??????:"+Math.abs(c.money).toFixed(2)+"??</td></tr>";d+=parseFloat(c.money);var b="??";a+='<tr><td class="div-tr-td"><div style="text-align: right;">?????'+b+":"+Math.abs(d).toFixed(2)+"??</div></td></tr></tbody></table>";$(".payfin-service-body").append(a);$("#payfin-service-dlg").window("open")}else{canceServiceRecord()}}else{openMessageDlg("?????????????????????????")}}else{openMessageDlg("?????????????????????????")}}function peccancyListSearch(){var a=getValue("id");if(a>0){$("#peccancydlg").dialog({onLoad:function(){_myPage.prototype.dataToCombobox(_fmtGridDataRows.rows[0].peccancy,{id:"peccancy"});getPeccancyDataGridList()}}).dialog("open")}else{openMessageDlg("????????¤?????????????")}}function getPeccancyDataGridList(){var a=base_path+"cir/peccancy/pageUnion.do";var b={};b.rows=10;b.page=1;b["limit[0].condition"]="rdrid";b["limit[0].value"]=getValue("id");if(getValue("peccancybegdate")>0){b["limit[1].condition"]="pecdate";b["limit[1].typeHandler"]="7";b["limit[1].value"]=getValue("peccancybegdate").replace(new RegExp("-","g"),"")}if(getValue("peccancyenddate")>0){b["limit[2].condition"]="pecdate";b["limit[2].typeHandler"]="5";b["limit[2].value"]=getValue("peccancyenddate").replace(new RegExp("-","g"),"")}$("#peccancyDataGridList").datagrid({url:a,queryParams:b,onLoadSuccess:function(c){},method:"post"})}function speloanSearch(){var a=getValue("id");if(a>0){$("#seploandlg").dialog({onLoad:function(){var b=base_path+"cir/speloan/pageCurLoan.do";var c={};clearGridData("seploanDataGridList");c.rows=10;c.page=1;c.rdrid=a;$("#seploanDataGridList").datagrid({url:b,queryParams:c,onLoadSuccess:function(d){},method:"post"})}}).dialog("open")}else{openMessageDlg("????????¤?????????????")}}function onOpenRdrSetParaDlg(){}var _readerCard=function(){};_readerCard.prototype.search=function(){var a="http://127.0.0.1:5000/api/register";$.ajax({type:"get",url:a,data:{},timeout:10000,dataType:"json",error:function(b,e,d){var c=b.responseJSON;openMessageDlg(c.msg)},success:function(b){console.log(b);vBase64Image=1;if(b.rspcode==200){setJsonData(null,b);if(b.photourl){$("#photourl").attr("src","data:image/jpeg;base64,"+b.photourl)}}else{alert(b.msg)}}})};function handlerFun(b){if(b.readfield){var a=base_path+"cir/reader/list.do";var c={};c["limit[0].condition"]=b.readfield;c["limit[0].typeHandler"]="0";c["limit[0].value"]=b.readvalue;$("#rdrDataGridList").datagrid({url:a,queryParams:c,onLoadSuccess:function(d){if(d.status=="0"&&d.total>0){$("#rdrDataGridList").datagrid("selectRow",0)}else{readTipHandlerFun(b)}},method:"post"})}else{readTipHandlerFun(b)}}function readTipHandlerFun(b){var a=rdrConfigParamjson.readertip;if(a=="1"){readAddByReaderCard(b)}else{$.messager.confirm("??????","????????????,?????????????",function(c){if(c){readAddByReaderCard(b)}})}}function readAddByReaderCard(a){addRdrRecord();vBase64Image=1;setJsonData(null,a);if(a.photourl){$("#photourl").attr("src","data:image/jpeg;base64,"+a.photourl)}}function onJumpCirPage(){if(getValue("keyword").length>0){mystorage.set("cir_index",getValue("index"));mystorage.set("cir_keyword",getValue("keyword"))}if(getValue("rdrno").length>0){mystorage.set("cir_index","rdrno");mystorage.set("cir_keyword",getValue("rdrno"))}parent.addTab("??????","circulation/cir_circulation.jsp?type=loan","arrow-circle-right","4101","no")}function autoSearchInfo(){var b=mystorage.get("rdr_keyword");var a=mystorage.get("rdr_index");if(b){mystorage.set("rdr_index",null);mystorage.set("rdr_keyword",null);setValue("keyword",b);searchRdrRecord(null,a)}};
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de