Edit D:\rfid\libsystem\page\export\js\lablefd.js
$(function(){var a=[{code:"formatdesign_libcode",key:"libcode"},{code:"formatdesign_operid",key:"operid"}];_myPage.prototype.initData(a);initFormatDesignGrid();bindPageFormatDesignDataGridList()});function bindPageFormatDesignDataGridList(a){var b=base_path+"lib/design/page.do";var c={};c.code=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);perviewLabelDataBox()}function initFormatDesignGrid(){eidtorGridObject=$("#pageFormatDesignGrid");eidtorGridObject.datagrid({iconCls:"e-icon fa fa-cog",title:jsonFormatDesign.gridtitle,fit:true,fitColumns:true,singleSelect:true,border:true,nowrap:false,striped:true,toolbar:toolbar,onClickRow:onClickEditorRow,columns:[jsonGridColumns]})}function onOpenPageFormatDesignDlg(){$("#formatdesign_name").textbox("textbox").focus()}function onFormatDesign(){$("#pageFormatDesignDlg").dialog({width:jsonFormatDesign.width,height:jsonFormatDesign.height,top:jsonFormatDesign.top,left:jsonFormatDesign.left});$("#otherFormatDesignPanel").panel("setTitle",jsonFormatDesign.othertitle);var c=$(".basicFormatDesignBox").height();var b=$(".otherFormatDesignBox").height();var a=100+c+b;var d=jsonFormatDesign.height-a;$(".editFormatDesignBox").css("height",d+"px");$("#pageFormatDesignGrid").datagrid("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()}function copyFormatDesignRecord(){setValue("formatdesign_keycode","");cleanJsonData("formatdesign_record");onOpenPageFormatDesignDlg()}function saveFormatDesignRecord(){acceptEidtorGrid();var b=getJsonData("formatdesign_","record");if(!b){openMessageDlg("??????");return}if(!b.name){return openMessageDlg("????????????")}b.code=jsonFormatDesign.code;var a=eidtorGridObject.datagrid("getRows");if(a.length==0){return openMessageDlg("??"+jsonFormatDesign.gridtitle)}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}if(!f.pageRows||!f.pageCols||!f.labelHeight||!f.labelWidth){return openMessageDlg("??????????????")}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"){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 setOtherFormatDesignBox(c){$(".otherFormatDesignPanelBody").html("?????");for(var b=0;b<fieldComBoxData.length;b++){if(c==fieldComBoxData[b].code){if(fieldComBoxData[b].param){var d=fieldComBoxData[b].param[0];var a=base_path+"par/common/getInitData.do";$.post(a,d,function(e){setOtherFormatDesignPanelBodyHtml(e.rows)},"json")}else{if(fieldComBoxData[b].data){setOtherFormatDesignPanelBodyHtml(fieldComBoxData[b].data)}}}}}function setOtherFormatDesignPanelBodyHtml(c){if(c.length>0){var b="";for(var a=0;a<c.length;a++){b+="<a href=\"JavaScript:onInitEidtorGridDefaultValue('"+c[a].code+'\')" style="text-decoration:none;cursor:pointer;">'+c[a].code+"|"+c[a].name+"</a> , "}$(".otherFormatDesignPanelBody").html(b)}setFormatDesignLayout()}function onInitEidtorGridDefaultValue(a){var b=eidtorGridObject.datagrid("getEditor",{index:eidtorGridIndex,field:"defvalue"});$(b.target).textbox("setValue",a)}function setFormatDesignLayout(){}function onSearchData(){var a=getJsonDataByTypeHandler();var b=getValue("acceptFormatDesignIndex");if(b.length==0){return openMessageDlg("?????????????")}a.keycode=b;a.count=99999;openPostWindow("exportlabelresult.jsp",a)};
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de