Edit D:\rfid\libsystem\page\acquisition\js\acq_handler.js
var pageGridObj;$(function(){var a=getInitJsonArray(getInitCodeArray());commonSetParaInit(null,"record",null,a);pageGridObj=$("#"+vType+"DataGridList");initPageGirdHeight(300);enterEvent("keyword",searchRecord);pageGridObj.datagrid({onSelect:onSelectDataGridList});$("#keyword").textbox("textbox").focus();$(".easyui-panel").panel("resize")});function initPageGirdHeight(b){var a=$(window).height();var c=a-b;$(".datagrid-div").css("height",c+"px");pageGridObj.datagrid("resize")}function onSelectDataGridList(a,b){setJsonData(null,b);if(b.bibid>0){getBibInfo(b.bibid)}}function getBibInfo(c){var a=base_path+"lib/biblios/get.do";var b={};b.id=c;$.post(a,b,function(d){if(d.status=="0"){var e=d.rows[0];setJsonData("show",e)}},"json")}function searchRecord(){var b=0;var d=pageGridObj.datagrid("getSelected");if(d){b=pageGridObj.datagrid("getRowIndex",d)}var a=base_path+"acq/"+vType+"/list.do";var c={};if(getValue("keyword").length==0){return openMessageDlg("????????????")}cleanJsonData("record");cleanJsonData("showrecord");clearGridData(""+vType+"DataGridList");c.rows=10;c.page=1;c["limit[1].condition"]=getValue("index");c["limit[1].value"]=getValue("keyword");pageGridObj.datagrid({url:a,queryParams:c,onLoadSuccess:function(e){pageGridObj.datagrid("selectRow",b)},method:"post"})}function insertRecord(){cleanJsonData("record");cleanJsonData("showrecord");clearGridData(""+vType+"DataGridList");$("#batchno").textbox("textbox").focus()}function saveRecord(){var a=getJsonData(null,"record");if(!a){openMessageDlg("??????");return}if(!a.orderprice){openMessageDlg("???????????");return}if(!a.bibid){openMessageDlg("??????????????");return}var c=getValue("id");var b=base_path+"acq/"+vType+"/insert.do";if(c>0){b=base_path+"acq/"+vType+"/update.do"}saveHoldingsRecord(b,a)}function saveHoldingsRecord(b,a){var c=getValue("id");$.post(b,a,function(d){if(d.status=="0"){openMessageDlg(d.message);if(c==0||c==""||c.length==0){setValue("index","id");setValue("keyword",d.rows[0].id);searchRecord()}else{searchRecord()}}else{openMessageDlg(d.message)}},"json")}function deleteRecord(){var a=pageGridObj.datagrid("getSelected");if(!a){return openMessageDlg("?????????????,??????")}openConfirmDlg("???????????????["+a.id+"]????????",null,deleteRecordResult,null)}function deleteRecordResult(){var c=pageGridObj.datagrid("getSelected");var a=base_path+"acq/"+vType+"/delete.do";var b={};b.pk=c.id;$.post(a,b,function(d){if(d.status=="0"){searchRecord();openMessageDlg(d.message)}else{openMessageDlg(d.message)}},"json")};
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de