Edit D:\rfid\libsystem\page\circulation\js\cir_curfine.js
var _bibId=0;var selectEditBibId=0;$(function(){setFineGird();var a=[{code:"loccode",key:"libcode",condition:"code",value:vLibcode},{code:"type",key:"fintype"},{code:"operid",key:"operid"}];_myPage.prototype.initData(a);enterEvent("keyword",serachFine);$("#fineDataGridList").datagrid({onSelect:onSelectfineDataGridList});$("#keyword").textbox("textbox").focus();$(".easyui-panel").panel("resize")});function onSelectfineDataGridList(a,b){setJsonData(null,b);if(b.rdrid>0){getRdrInfo(b.rdrid)}if(b.bibid>0){getBibInfo(b.bibid)}}function getRdrInfo(c){var a=base_path+"cir/reader/get.do";var b={};b.pk=c;$.post(a,b,function(d){if(d.status=="0"){var e=d.rows[0];setJsonData("show",e)}},"json")}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 serachFineById(c){var a=base_path+"cir/fine/get.do";var b={};b.pk=c;$.post(a,b,function(d){if(d.status=="0"){var e=d.rows[0];setJsonData(null,e)}},"json")}function setFineGird(){var a=$(window).height();var b=a-(80+210);$(".datagrid-div").css("height",b+"px");$("#fineDataGridList").datagrid("resize")}function serachFine(){var b=0;var d=$("#fineDataGridList").datagrid("getSelected");if(d){b=$("#fineDataGridList").datagrid("getRowIndex",d)}var a=base_path+"cir/fine/list.do";var c={};cleanJsonData("record");cleanJsonData("showrecord");clearGridData("fineDataGridList");c.rows=10;c.page=1;if(getValue("keyword").length>0){c=getJsonDataByTypeHandler()}c.orderBy=" FINEID desc ";$("#fineDataGridList").datagrid({url:a,queryParams:c,onLoadSuccess:function(e){$("#fineDataGridList").datagrid("selectRow",b)},method:"post"})}function checkAllFineData(){var a=base_path+"cir/fine/listByCheckAllData.do";var b={};$("#fineDataGridList").datagrid({url:a,queryParams:b,onLoadSuccess:function(c){$("#fineDataGridList").datagrid("selectRow",vSelectIndex)},method:"post"})}function addFineRecord(){cleanJsonData("record");cleanJsonData("showrecord");clearGridData("fineDataGridList");$("#barcode").textbox("textbox").focus()}function saveFineRecord(){var a=getJsonData(null,"record");if(!a){openMessageDlg("??????");return}if(!a.rdrid){openMessageDlg("????????????????");return}var c=getValue("fineid");var b=base_path+"cir/fine/insert.do";if(c>0){b=base_path+"cir/fine/update.do";saveFineRecordOK(b,a)}else{saveFineRecordOK(b,a)}}function saveFineRecordOK(b,a){var c=getValue("fineid");$.post(b,a,function(d){if(d.status=="0"){openMessageDlg(d.message);if(c==0||c==""||c.length==0){setValue("index","fineid");setValue("keyword",d.rows[0].id);serachFine()}else{serachFine()}}else{openMessageDlg(d.message)}},"json")}function deleteFineRecord(){var a=$("#fineDataGridList").datagrid("getSelected");if(!a){return openMessageDlg("?????????¤??????,??????")}openConfirmDlg("???????????????????????",null,deleteFineRecordResult,null)}function deleteFineRecordResult(){var c=$("#fineDataGridList").datagrid("getSelected");var a=base_path+"cir/fine/delete.do";var b={};b.pk=c.fineid;$.post(a,b,function(d){if(d.status=="0"){serachFine();openMessageDlg(d.message)}else{openMessageDlg(d.message)}},"json")};
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de