Edit D:\rfid\apache-tomcat-8.5.32\webapps\libsystem\page\circulation\js\cir_logistics_send.js
$(function(){autoPanle();$(".easyui-panel-resize").panel("resize");setInitPageElementData();$("#barcode").textbox("textbox").focus();enterEvent("barcode",searchHoldRecord);$("#reserveDataGridList").datagrid({onSelect:onSelectCirLogDataGridList})});function setInitPageElementData(){var a=[{code:"logtaglib",key:"curlibcode"},{code:"logtagloc",key:"curlocation"}];commonSetParaInit(null,"record",null,a)}function autoPanle(){var a=$(window).height();var b=a-(126+340);$(".datagrid-div").css("height",b+"px");$("#LogisticsDataGridList").datagrid("resize")}function searchHoldRecord(){var a=base_path+"hld/holding/getHoldingWithBib.do";var b={};if(getValue("barcode").length==0){return openMessageDlg("???????????")}b.barcode=getValue("barcode");$.post(a,b,function(c){if(c.status=="0"){var d=c.rows[0];setBibHtmlShow(d);getReserveDataGridList(d.bibid)}else{openMessageDlg(c.message)}},"json")}function onSendHandler(){var a=$("#reserveDataGridList").datagrid("getSelected");if(!a){return openMessageDlg("???????????????????,??????!")}bulidCirInfoOk(a);$("#cirLogDlg").dialog("open")}function bulidCirInfoOk(d){$(".cirinfo-html-data").html("");var c="";c+="<div class='div-book-record' >-----------?????----------</div>";var b=[{code:"barcode-cirinfo",name:"?????"},{code:"curlibcode-cirinfo",name:"????????"},{code:"curlocation-cirinfo",name:"????????"}];for(var a=0;a<b.length;a++){c+="<div class='div-book-record' >"+$("."+b[a].code).html()+"</div>"}c+="<div class='div-book-record' >------------?????---------</div>";c+="<div class='div-book-record'>????????:"+$("#logtaglib").combobox("getText")+"</div>";c+="<div class='div-book-record'>????????:"+$("#logtagloc").combobox("getText")+"</div>";$(".cirinfo-html-data").html(c)}function onStartSend(){var a=base_path+"cir/logistics/insert.do";var c={};var b=$("#reserveDataGridList").datagrid("getSelected");if(!b){return openMessageDlg("???????????????????,??????!")}c.resid=b.id;c.hldid=b.hldid;c.bibid=b.bibid;c.type="0";c.logdate=getCurDateYMD();c.logtime=getCurDateHMS();c.logno=(new Date()).valueOf();c.logcurlib=getValue("logcurlib"),c.logcurloc=getValue("logcurloc"),c.logbarcode=b.barcode;c.logtaglib=getValue("logtaglib");c.logtagloc=getValue("logtagloc");$.post(a,c,function(d){$("#cirLogDlg").dialog("close");if(d.status=="0"){getLogisticsPage(b.id)}else{openMessageDlg(d.message)}},"json")}function onSelectCirLogDataGridList(a,b){getLogisticsPage(b.id)}function getLogisticsPage(c){deleteGridData("LogisticsDataGridList");var a=base_path+"cir/logistics/page.do";var b={};b.resid=c;$("#LogisticsDataGridList").datagrid({url:a,queryParams:b,onLoadSuccess:function(d){},method:"post"})}function onLogisticsDelete(){var a=$("#LogisticsDataGridList").datagrid("getSelected");if(!a){return openMessageDlg("?????????¤??????,??????!")}$.messager.confirm("??????","??????????????????",function(c){if(c){var b=base_path+"cir/logistics/delete.do";var d={};d.pk=a.id;$.post(b,d,function(e){if(e.status=="0"){getLogisticsPage(a.resid)}else{openMessageDlg(e.message)}},"json")}})}function setBibHtmlShow(d){var c="";var b=[{code:"title",name:"???"},{code:"author",name:"????"},{code:"barcode",name:"?????"},{code:"curlibcode",name:"????????"},{code:"curlocation",name:"????????"},{code:"isbn",name:"ISBN"},{code:"price",name:"???"},{code:"classno",name:"?????"},{code:"subject",name:"?????"},{code:"publish",name:"?????"},{code:"publishaddress",name:"?????"},{code:"publishdate",name:"?????"},{code:"callno",name:"?????"},{code:"content",name:"???????"}];for(var a=0;a<b.length;a++){if(b[a].code=="barcode"){c+="<div class='div-book-record barcode-cirinfo'>"+b[a].name+":"+(d[b[a].code]==null?"":d[b[a].code])+"</div>"}else{if(b[a].code=="curlibcode"){setValue("logcurlib",d[b[a].code]);c+="<div class='div-book-record curlibcode-cirinfo'>"+b[a].name+":"+onShowLibName(d[b[a].code])+"</div>"}else{if(b[a].code=="curlocation"){setValue("logcurloc",d[b[a].code]);c+="<div class='div-book-record curlocation-cirinfo' >"+b[a].name+":"+onShowLocationName(d[b[a].code])+"</div>"}else{c+="<div class='div-book-record'>"+b[a].name+":"+(d[b[a].code]==null?"":d[b[a].code])+"</div>"}}}}$(".bib-html-data").html(c)}function getReserveDataGridList(c){if(c>0){deleteGridData("reserveDataGridList");var a=base_path+"cir/reserve/unionPage.do";var b={};b.bibid=c;$("#reserveDataGridList").datagrid({url:a,queryParams:b,onLoadSuccess:function(d){},method:"post"})}else{deleteGridData("reserveDataGridList")}};
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de