Edit D:\rfid\libsystem\page\application\js\sys_gift.js
var vBase64Image=0;$(function(){var a=[{key:"rdrtype",condition:"libcode",value:vLibcode}];_myPage.prototype.initData(a);$("#datagrid-single").datagrid({onSelect:onSelectGridRow});setGridHeight(380)});function onSelectGridRow(a,b){setJsonData(null,b);getImageByCode(b.id,"1","photourl")}function setGridHeight(b){var a=$(window).height();var c=a-b;$(".datagrid-div").css("height",c+"px");$("#datagrid-single").datagrid("resize");$(".easyui-panel").panel("resize")}function insertRecord(){vBase64Image=0;cleanJsonData("record");$("#photourl").attr("src","images/bg.png")}function saveRecord(){var a=getJsonData(null,"record");if(verifyRequiredFields()){openMessageDlg("??????????????");return}var c=getValue("id");var b=base_path+"par/gift/insert.do";if(c>0){b=base_path+"par/gift/update.do"}$.post(b,a,function(d){openMessageDlg(d.message);if(d.status=="0"){saveImageByCode(d.rows[0].id,"1");loadGridData(d)}},"json")}function loadGridData(c){vBase64Image=0;var a=base_path+"par/gift/list.do";var b=0;var e=$("#datagrid-single").datagrid("getSelected");if(e){b=$("#datagrid-single").datagrid("getRowIndex",e)}var d={};if(c){d["limit[0].condition"]="id";d["limit[0].value"]=c.rows[0].id}if(getValue("keyword")){d["limit[1].condition"]="name";d["limit[1].typeHandler"]="1";d["limit[1].value"]=getValue("keyword")}$("#datagrid-single").datagrid({url:a,queryParams:d,onLoadSuccess:function(f){$("#datagrid-single").datagrid("selectRow",b)},method:"post"})}function deleteRecord(){var a=$("#datagrid-single").datagrid("getSelected");if(!a){return openMessageDlg("?????????????,??????")}$.messager.confirm("??????","??????????????????",function(c){if(c){var b=base_path+"par/gift/delete.do";var d={};d.pk=a.id;$.post(b,d,function(e){if(e.status=="0"){vBase64Image=0;deleteImageByCode(a.id,"1","photourl");loadGridData();openMessageDlg(e.message)}else{openMessageDlg(e.message)}},"json")}})}function deletePhoto(){var a=$("#datagrid-single").datagrid("getSelected");if(!a){return openMessageDlg("?????????¤??????,???????????????")}deleteImageByCode(a.id,"1","photourl")}function verifyRequiredFields(){var b=false;var a=$('[required="true"]');a.each(function(c,d){var g=d.id;var e=getValue(g);var f=$("#"+g);if(f.attr("class").indexOf("easyui-numberbox")>-1){if(parseInt(e)<=0){b=true;return false}}else{if(!e){b=true;return false}}});return b};
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de