Edit D:\rfid\libsystem\page\circulation\js\finticket.js
var alignTypeComBoxData=[{code:"left",name:"??????"},{code:"center",name:"???"},{code:"right",name:"??????"}];var showColumnNameComBoxData=[{code:"0",name:"???"},{code:"1",name:"?????"}];var jsonFormatDesign={code:"E_PRINTTICKET",title:"???????????????",table:"",gridtitle:"????????????",othertitle:"?????????",perviewtitle:"????????????",width:"800",height:"750",top:80,left:180};var pirntTicketFieldArr=[{code:"rdrno",name:"???????",group:"???????"},{code:"name",name:"???????",group:"???????"},{code:"idcard",name:"??????",group:"???????"},{code:"createdate",name:"??????",group:"???????"},{code:"enddate",name:"??????",group:"???????"},{code:"ticketname",name:"??????",group:"????????"},{code:"libname",name:"?????",group:"????????"},{code:"libtelno",name:"??????",group:"????????"},{code:"curdate",name:"???????",group:"????????"},{code:"splitline",name:"?????",group:"????????"},{code:"note1",name:"???1",group:"????????"},{code:"note2",name:"???2",group:"????????"},{code:"note3",name:"???3",group:"????????"},{code:"showdeposit",name:"???",group:"??????"},{code:"showdebt",name:"???",group:"??????"}];var ticketFieldComBoxData=[];var printWidth=0;var printHeight=0;var jsonGridColumns=[];var LODOP;$.extend($.fn.propertygrid.defaults.columns[0][1],{formatter:function(c,b,d){if(b.name=="??????"){for(var a=0;a<alignTypeComBoxData.length;a++){if(alignTypeComBoxData[a].code==c){return alignTypeComBoxData[a].name}}}else{return c}}});var jsonPropertyGridData={total:5,rows:[{name:"???**",code:"pageCols",value:"",group:"??????",editor:{type:"numberbox",options:{required:true,}}},{name:"?????(px)",code:"pagePadding",value:"",group:"??????",editor:{type:"numberbox",options:{required:true,}}},{name:"??????(mm)**",code:"labelWidth",value:"",group:"??????",editor:{type:"numberbox",options:{required:true,}}}]};$(function(){setCurImportDataGridHeight(50)});function onShowTicketFieldComBoxData(b,c){var d=ticketFieldComBoxData;if(b){for(var a=0;a<d.length;a++){if(b==d[a].code){return d[a].name}}return b}else{return b}}function onShowAlignTypeComBoxData(b,c){var d=alignTypeComBoxData;if(b){for(var a=0;a<d.length;a++){if(b==d[a].code){return d[a].name}}return b}else{return b}}function onShowColumnNameComBoxData(b,c){var d=showColumnNameComBoxData;if(b){for(var a=0;a<d.length;a++){if(b==d[a].code){return d[a].name}}return b}else{return b}}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 onBeginEditPropertyGrid(a,b){$(".datagrid-editable .textbox,.datagrid-editable .datagrid-editable-input,.datagrid-editable .textbox-text").bind("keydown",function(d){var c=d.keyCode||d.which;if(c==13){$("#labelPropertyGrid").propertygrid("endEdit",a);$("#labelPropertyGrid").propertygrid("acceptChanges");perviewLabelDataBox()}})}function perviewLabelDataBox(){acceptEidtorGrid();var a=$("#labelPropertyGrid").propertygrid("getRows");var b=$("#pageFormatDesignGrid").datagrid("getRows");bulidPerviewLabelDataBox(a,b)}function bulidPerviewLabelDataBox(f,l,a,m){printHeight=0;var k=1;var g;var j;for(var b=0;b<f.length;b++){if(f[b].code=="pageCols"){k=parseInt(f[b].value)}if(f[b].code=="labelWidth"){g=parseInt(f[b].value);printWidth=g}if(f[b].code=="pagePadding"){j=parseInt(f[b].value)}}var h="";var e="";if(!a){e="border:solid 1px #efefef;"}var c='<table style="border-collapse:collapse;'+e+" border-spacing:0;width:"+g+"mm;margin:"+j+'px">';var d=0;for(var b=0;b<l.length;b++){if(k==1){printHeight+=parseInt(l[b].rowheight)}if(d++%k==0){c+="<tr>";c+=getRetrunTd(l[b],a,m)}else{c+=getRetrunTd(l[b],a,m);if(d%k==1){c+="</tr>";if(k>1){printHeight+=parseInt(l[b].rowheight)}}}}c+="</table>";$("#perviewSetParamData").html(c);if(!a){setTicketToValue()}else{printDataBox()}}function setTicketToValue(){var a=$(".ticket-group");a.each(function(b,c){if(c.id){var d=c.id.replace("ticket-","");if("curdate"==d){$("#"+c.id).html(fmtStringToDate(getCurDateYMD()))}else{if(d=="createdate"||d=="enddate"){$("#"+c.id).html(fmtStringToDate(getValue(d)))}else{$("#"+c.id).html(getValue(d))}}}})}function getRetrunTd(f,g,l){var a="";var c="";var b=2;for(var h=0;h<pirntTicketFieldArr.length;h++){if(f.code==pirntTicketFieldArr[h].code){if(f.rowheight){a+="height:"+f.rowheight+"px;line-height:"+f.rowheight+"px; "}if(f.aligntype){a+="text-align: "+f.aligntype+";"}if(f.fszie){a+="font-size:"+f.fszie+"px"}if(f.slname==0){b=1;if(f.code=="showdebt"){if(l){var j="";for(var d=0;d<l.length;d++){j+="<div>"+onShowFinTypeName(l[d].type)+"</div>"}j+="<div>???</div>";c+='<td style="'+a+'">'+j+"</td>"}else{c+='<td style="'+a+'">'+pirntTicketFieldArr[h].name+"</td>"}}else{c+='<td style="'+a+'">'+pirntTicketFieldArr[h].name+"</td>"}}var j=f.defvalue;if(g){if(g[f.code]){j=g[f.code]}if(j){if(f.code=="createdate"||f.code=="enddate"){j=fmtStringToDate(g[f.code])}}if(f.code=="curdate"){j=fmtStringToDate(getCurDateYMD())}if(f.code=="showdeposit"){j=g.deposit}if(f.code=="showdebt"){if(l){j="";var e=0;for(var d=0;d<l.length;d++){printHeight+=parseInt(f.rowheight);e+=parseFloat(l[d].money);j+="<div>"+parseFloat(l[d].money).toFixed(2)+"</div>"}j+="<div>"+e.toFixed(2)+"</div>"}}}c+='<td style="'+a+'" colspan="'+b+'"> <label id="ticket-'+f.code+'" class="ticket-group">'+j+"</label></td>";break}}return c}function printTicketHandler(d,f,e){if(d=="deposit"){var g=getValue("page_depositticket");if(g=="1"){var c=getValue("page_acceptDepositFormatDesignIndex");if(c.length==0){return openMessageDlg("???????????????????????")}setPrintTicketDataBox(c,f,d)}}else{if(d=="debt"){var a=getValue("page_fineticket");if(a=="1"){var b=getValue("page_acceptDebtFormatDesignIndex");if(b.length==0){return openMessageDlg("???????????????????????")}setPrintTicketDataBox(b,f,d,e)}}}}function setPrintTicketDataBox(a,b,e,h){var g;var j;if(e=="deposit"){for(var c=0;c<vDepositRowsData.length;c++){if(a==vDepositRowsData[c].keycode){g=vDepositRowsData[c];break}}}if(e=="debt"){for(var c=0;c<vDebtRowsData.length;c++){if(a==vDebtRowsData[c].keycode){g=vDebtRowsData[c];break}}}j=JSON.parse(g.paramjson);var d=j.propertygrid;var f=j.grid;bulidPerviewLabelDataBox(d,f,b,h)}function printPerviewBox(){CreateOneFormPage();LODOP.PREVIEW()}function printDataBox(){CreateOneFormPage();LODOP.PRINT()}function CreateOneFormPage(){LODOP=getLodop();var a=$("#perviewSetParamData");LODOP.SET_LICENSES("??????????????????????????","82FC053A6737263D896A28FB9FD8EE9B","","");LODOP.ADD_PRINT_HTM(0,0,printWidth,(printHeight+30),a.html());LODOP.SET_PRINT_PAGESIZE(1,""+printWidth+"mm",""+(printHeight+30)+"px","??????")};
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de