Edit D:\rfid\libsystem\page\statistics\js\statisticsfd.js
var autoSelect=true;var sortTypeComBoxData=[{code:"asc",name:"???"},{code:"desc",name:"???"}];var isShowComBoxData=[{code:"1",name:"??"},{code:"0",name:"??"}];var isZeroComBoxData=[{code:"0",name:"???"},{code:"1",name:"???"}];var alignTypeComBoxData=[{code:"left",name:"??????"},{code:"center",name:"???"},{code:"right",name:"??????"}];var fontSizeComBoxData=[{code:"12",name:"?????"},{code:"14",name:"??????"},{code:"16",name:"?????"}];$.extend($.fn.propertygrid.defaults.columns[0][1],{formatter:function(c,b,d){if(b.name=="??????"){for(var a=0;a<fontSizeComBoxData.length;a++){if(fontSizeComBoxData[a].code==c){return fontSizeComBoxData[a].name}}}else{if(b.name=="??????"){for(var a=0;a<alignTypeComBoxData.length;a++){if(alignTypeComBoxData[a].code==c){return alignTypeComBoxData[a].name}}}else{if(b.name=="?????????"||b.name=="???????????"||b.name=="?????????"){for(var a=0;a<isShowComBoxData.length;a++){if(isShowComBoxData[a].code==c){return isShowComBoxData[a].name}}}else{if(b.name=="???0??????"){for(var a=0;a<isZeroComBoxData.length;a++){if(isZeroComBoxData[a].code==c){return isZeroComBoxData[a].name}}}else{return c}}}}}});var jsonPropertyGridData={total:8,rows:[{name:"??????",code:"pageFontSize",value:"12",group:"??????",editor:{type:"combobox",options:{valueField:"code",textField:"name",panelHeight:"auto",editable:false,data:fontSizeComBoxData}}},{name:"??????",code:"pageAlignType",value:"left",group:"??????",editor:{type:"combobox",options:{valueField:"code",textField:"name",panelHeight:"auto",editable:false,data:alignTypeComBoxData}}},{name:"?????????",code:"showname",value:"0",group:"??????",editor:{type:"combobox",options:{valueField:"code",textField:"name",panelHeight:"auto",editable:false,data:isShowComBoxData}}},{name:"???????????",code:"showoperator",value:"0",group:"??????",editor:{type:"combobox",options:{valueField:"code",textField:"name",panelHeight:"auto",editable:false,data:isShowComBoxData}}},{name:"?????????",code:"showtime",value:"0",group:"??????",editor:{type:"combobox",options:{valueField:"code",textField:"name",panelHeight:"auto",editable:false,data:isShowComBoxData}}},{name:"???0??????",code:"hide_zero",value:"0",group:"??????",editor:{type:"combobox",options:{valueField:"code",textField:"name",panelHeight:"auto",editable:false,data:isZeroComBoxData}}}]};var jsonGridColumns=[{field:"field",title:"?????",width:"100%",formatter:onShowExportJosnComBoxData,editor:{type:"combobox",options:{valueField:"field",textField:"name",panelHeight:"auto",required:true,editable:false,data:fieldComBoxData,onChange:function(e,a){if(e!=undefined&&e!=a&&eidtorGridIndex!=undefined){var d=eidtorGridObject.datagrid("getEditor",{index:eidtorGridIndex,field:"name"});if(d.target){for(var b=0;b<fieldComBoxData.length;b++){if(e==fieldComBoxData[b].field){$(d.target).textbox("setValue",fieldComBoxData[b].name)}}}var c=eidtorGridObject.datagrid("getEditor",{index:eidtorGridIndex,field:"format"});if(c.target){for(var b=0;b<fieldComBoxData.length;b++){if(e==fieldComBoxData[b].field){$(c.target).textbox("setValue",fieldComBoxData[b].format)}}}}}}}},{field:"name",title:"???",hidden:true,editor:{type:"textbox"}},{field:"format",title:"???",hidden:true,editor:{type:"textbox"}}];$(function(){var a=[{code:"formatdesign_libcode",key:"libcode"},{code:"formatdesign_operid",key:"operid"}];_myPage.prototype.initData(a);initFormatDesignGrid();bindPageFormatDesignDataGridList();setCurImportDataGridHeight(50)});function setCurImportDataGridHeight(b){var a=$(window).height();var c=a-b;$(".body-div-search").css("height",c+"px");$(".easyui-panel").panel("resize");$("#labelPropertyGrid").propertygrid("loadData",jsonPropertyGridData)}function bindPageFormatDesignDataGridList(a){setValue("formatdesign_item_field1","???");setValue("formatdesign_item_field2","???");var b=base_path+"lib/design/list.do";var c={};c["limit[0].condition"]="code";c["limit[0].value"]=jsonFormatDesign.code;c.rows=100;c.page=1;$.post(b,c,function(d){if(d.status=="0"){initFormatDesignComboboxByCode(d,a)}else{openMessageDlg(d.message)}},"json")}function initFormatDesignComboboxByCode(b,a){$("#formatdesign_index").combobox({data:b.rows,valueField:"keycode",textField:"name",panelHeight:"auto",onChange:function(d,c){if(d!=undefined&&d!=c&&d.length>0){setValue("acceptFormatDesignIndex",d)}}});$("#acceptFormatDesignIndex").combobox({data:b.rows,valueField:"keycode",textField:"name",panelHeight:"auto",onChange:function(d,c){if(d!=undefined&&d!=c&&d.length>0){bindAcceptFormatDesignDataByKeyCode(d);setValue("formatdesign_index",d)}}});if(a){setValue("formatdesign_index",a)}}function bindAcceptFormatDesignDataByKeyCode(a){var b=base_path+"lib/design/get.do";var c={};c.pk=a;$.post(b,c,function(d){if(d.status=="0"){var e=d.rows[0];setDataToPageElement(e)}else{openMessageDlg(d.message)}},"json")}function setDataToPageElement(e){var f=JSON.parse(e.paramjson);setJsonData("formatdesign_",e);eidtorGridObject.datagrid("loadData",f.grid);var d=jsonPropertyGridData.rows;for(var c=0;c<d.length;c++){if(f[d[c].code]){d[c].value=f[d[c].code]}else{if(f.propertygrid){var a=f.propertygrid;for(var b=0;b<a.length;b++){if(d[c].code==a[b].code){d[c].value=a[b].value}}}}}jsonPropertyGridData.rows=d;$("#labelPropertyGrid").propertygrid("loadData",jsonPropertyGridData)}function initFormatDesignGrid(){eidtorGridObject=$("#pageFormatDesignGrid");eidtorGridObject.datagrid({iconCls:"e-icon fa fa-cog",fit:true,fitColumns:true,singleSelect:true,border:false,nowrap:false,striped:true,toolbar:toolbar,onClickRow:onClickEditorRow,columns:[jsonGridColumns]})}function onOpenPageFormatDesignDlg(){$("#formatdesign_name").textbox("textbox").focus()}function onFormatDesign(){var a=parseInt(jsonFormatDesign.height)+60;$("#pageFormatDesignDlg").dialog({title:jsonFormatDesign.title,width:jsonFormatDesign.width,height:a,top:jsonFormatDesign.top,left:jsonFormatDesign.left});$("#otherFormatDesignPanel").panel("setTitle",jsonFormatDesign.othertitle);var c=$(".basicFormatDesignBox").height();var b=40+c;var d=jsonFormatDesign.height-b;$(".otherFormatDesignBox").css("height",d+"px");$("#otherFormatDesignPanel").panel("resize");$("#pageFormatDesignDlg").dialog("open")}function clearFormatDesignElement(){cleanPropertyGrid();cleanJsonData("formatdesign_record");clearGridData("pageFormatDesignGrid")}function cleanPropertyGrid(){var b=jsonPropertyGridData.rows;for(var a=0;a<b.length;a++){b[a].value=""}jsonPropertyGridData.rows=b;$("#labelPropertyGrid").propertygrid("loadData",jsonPropertyGridData)}function addFormatDesignRecord(){setValue("formatdesign_keycode","");clearFormatDesignElement();onOpenPageFormatDesignDlg();setValue("formatdesign_item_field1","???");setValue("formatdesign_item_field2","???")}function copyFormatDesignRecord(){setValue("formatdesign_keycode","");setValue("formatdesign_index","");setValue("formatdesign_name","");onOpenPageFormatDesignDlg()}function saveFormatDesignRecord(){acceptEidtorGrid();var b=getJsonData("formatdesign_","record");if(!b){openMessageDlg("??????");return}if(!b.item_field1&&!b.item_field2){return openMessageDlg("???????????í??????")}if(!b.name){return openMessageDlg("????????????")}b.code=jsonFormatDesign.code;var a=eidtorGridObject.datagrid("getRows");if(a.length==0){return openMessageDlg("?????????")}var f={grid:a,table:jsonFormatDesign.table};var d=$("#labelPropertyGrid").propertygrid("getRows");for(var e=0;e<d.length;e++){f[d[e].code]=d[e].value}f.title=b.name;for(var e=0;e<a.length;e++){f["value"+(e+1)]=a[e].field;f["value_name"+(e+1)]=a[e].name;f["value_format"+(e+1)]=a[e].format}if(b.item_field1){f.item_field1=b.item_field1;f.item_name1=$("#formatdesign_item_field1").combobox("getText");f.item_sum1=b.item_sum1;f.item_other1=b.item_other1;f.item_value1=b.item_value1}if(b.item_field2){f.item_field2=b.item_field2;f.item_name2=$("#formatdesign_item_field2").combobox("getText");f.item_sum2=b.item_sum2;f.item_other2=b.item_other2;f.item_value2=b.item_value2}b.paramjson=JSON.stringify(f);var c=base_path+"lib/design/insert.do";if(getValue("formatdesign_keycode").length>0){c=base_path+"lib/design/update.do"}$.post(c,b,function(g){if(g.status=="0"){autoSelect=true;bindPageFormatDesignDataGridList(g.rows[0].keycode);openMessageDlg(g.message,5000)}else{openMessageDlg(g.message)}},"json")}function deleteFormatDesignRecord(){var a=getValue("formatdesign_keycode");if(a.length==0){return openMessageDlg("??????????????")}openConfirmDlg("???????????????????????",null,deleteFormatDesignRecordResult,null)}function deleteFormatDesignRecordResult(){var a=getValue("formatdesign_keycode");var c={};c.pk=a;var b=base_path+"lib/design/delete.do";$.post(b,c,function(d){if(d.status=="0"){openMessageDlg(d.message,5000);bindPageFormatDesignDataGridList()}else{openMessageDlg(d.message)}},"json")}function onSearchStatisticsData(){var a=getJsonDataByTypeHandler();var b=getValue("acceptFormatDesignIndex");if(b.length==0){return openMessageDlg("?????????????")}a.keycode=b;a.account=mystorage.get("account");if(!a["limit[0].condition"]){$.messager.confirm("??????","???????????????,?????????????",function(c){if(c){openPostWindow("statistics.jsp",a)}})}else{openPostWindow("statistics.jsp",a)}}function setFormatDesignFieldComBoxData(){countFormatDesignFieldComBoxData.splice(0,0,{code:"???",name:"???"});$("#formatdesign_item_field1").combobox({data:countFormatDesignFieldComBoxData,valueField:"code",textField:"name",onChange:function(b,a){if(b!=undefined&&b!=a){if(a&&a.length>0&&a!="???"){setValue("formatdesign_item_value1","");setMultilineTextValue(b,1)}else{if(a=="???"&&getValue("formatdesign_item_value1").length==0){setValue("formatdesign_item_value1","");setMultilineTextValue(b,1)}}}},onClick:function(b,a){autoSelect=false}});$("#formatdesign_item_field2").combobox({data:countFormatDesignFieldComBoxData,valueField:"code",textField:"name",onChange:function(b,a){if(b!=undefined&&b!=a){if(a&&a.length>0&&a!="???"){setValue("formatdesign_item_value2","");setMultilineTextValue(b,2)}else{if(a=="???"&&getValue("formatdesign_item_value2").length==0){setValue("formatdesign_item_value2","");setMultilineTextValue(b,2)}}}},onClick:function(b,a){autoSelect=false}})}function setMultilineTextValue(c,d){if(c=="???"){return}if(!autoSelect){for(var b=0;b<initJson.length;b++){if(c==initJson[b].code){var e=initJson[b];var a=base_path+"par/common/getInitData.do";$.post(a,e,function(i){var h=i.rows;if(h.length>0){var g="";for(var f=0;f<h.length;f++){g+=h[f].code+"|"+h[f].name+"\n"}if(d==1){setValue("formatdesign_item_value1",g)}else{if(d==2){setValue("formatdesign_item_value2",g)}}}},"json");break}}}};
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de