All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ureport-asserts.js.designer.bundle.js Maven / Gradle / Ivy

The newest version!
!function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=334)}([function(e,t,n){"use strict";n.d(t,"l",function(){return a}),n.d(t,"e",function(){return s}),n.d(t,"j",function(){return l}),n.d(t,"a",function(){return d}),n.d(t,"m",function(){return c}),n.d(t,"d",function(){return m}),n.d(t,"f",function(){return g}),n.d(t,"g",function(){return y}),n.d(t,"h",function(){return v}),n.d(t,"k",function(){return b}),n.d(t,"i",function(){return w}),n.d(t,"c",function(){return _}),n.d(t,"b",function(){return M}),n.d(t,"n",function(){return x});var i=n(36),o=n.n(i),r=n(1);function a(){const e=window._server+"/res/ureport-asserts/icons/loading.gif",t=$(window).height()/2,n=$(window).width()/2,i=$(`
`);$(document.body).append(i);const o=$(`
\n
打印数据加载中...
`);$(document.body).append(o)}function s(){$(".ureport-loading-cover").remove(),$(".ureport-loading").remove()}function l(e){const t=e.countCols(),n=e.countRows(),i=e.context,o=[];for(let r=0;r13?e+=t.substring(0,10)+"..)":e+=t+")",n.push(e)}else if("expression"===e){let e=i.value||"";e.length>16&&(e=e.substring(0,13)+"..."),n.push(e)}else n.push(i.value||"")}else n.push("")}o.push(n)}e.loadData(o)}function d(e,t){return{rowNumber:e,columnNumber:t,expand:"None",cellStyle:{fontSize:9,forecolor:"0,0,0",fontFamily:"宋体",align:"center",valign:"middle"},value:{type:"simple",value:""}}}function c(e){const t=e.hot,n=t.countRows(),i=t.countCols();let o='',a="",s="";const l=e.rowHeaders;for(let e=0;e`:``}for(let e=0;e`}let d="",c=[];for(let o=0;o-1)continue;let i=e.getCell(o,n);if(!i)continue;let a=e.getCellName(o,n);d+=`1&&(d+=` row-span="${l}"`),m>1&&(d+=` col-span="${m}"`),i.linkUrl&&""!==i.linkUrl&&(d+=` link-url="${i.linkUrl}"`),i.linkTargetWindow&&""!==i.linkTargetWindow&&(d+=` link-target-window="${i.linkTargetWindow}"`),d+=">",d+=f(i.cellStyle),i.linkParameters&&i.linkParameters.length>0)for(let e of i.linkParameters)d+=``,d+=``,d+="";const A=i.value;if("dataset"===A.type){let e=null;if(A.datasetName||(e=`${a}单元格数据集属性不能为空!`),e||A.property||(e=`${a}单元格属性不能为空!`),e||A.aggregate||(e=`${a}单元格聚合方式属性不能为空!`),e)throw Object(r.a)(e),e;const t=A.mappingType||"simple";if(d+=``;for(let e of t.conditions)d+=``:d+=">",d+=``,d+="";d+=""}}if("simple"===t){const e=A.mappingItems;if(e&&e.length>0)for(let t of e)d+=``}d+=""}else if("expression"===A.type){if(!A.value||""===A.value){const e=`${a}单元格表达式不能为空`;throw Object(r.a)(e),e}d+="",d+=``,d+=""}else if("simple"===A.type)d+="",d+=``,d+="";else if("image"===A.type)d+=``,d+="",d+="";else if("zxing"===A.type)d+=``,d+="",d+="";else if("slash"===A.type){d+="";const e=A.slashes;for(let t of e)d+=``;d+="",d+=``,d+="",d+=""}else if("chart"===A.type){d+="";const e=A.chart,t=e.dataset;d+=``;d+=""}const b=i.conditionPropertyItems||[];for(let e of b){d+=``),e.linkParameters&&e.linkParameters.length>0)for(let t of e.linkParameters)d+=``,d+=``,d+="";const o=e.cellStyle;o&&(d+=f(o,!0)),d+=h(e.conditions),d+=""}d+=""}o+=d,o+=a,o+=s;const m=e.reportDef.header;m&&(m.left||m.center||m.right)&&(o+="
`),m.center&&(o+=`
`),m.right&&(o+=``),o+="
");const g=e.reportDef.footer;g&&(g.left||g.center||g.right)&&(o+="
`),g.center&&(o+=`
`),g.right&&(o+=``),o+="
");let y="";const v=e.reportDef.datasources;for(let e of v){let t=``,t+=``;for(let e of n.fields)t+=``;for(let e of n.parameters)t+=``;t+=""}}else if("spring"===n){t+=` bean="${e.beanId}">`;for(let n of e.datasets){t+=``;for(let e of n.fields)t+=``;t+=""}}else if("buildin"===n){t+=">";for(let n of e.datasets){t+=``,t+=``;for(let e of n.fields)t+=``;for(let e of n.parameters)t+=``;t+=""}}y+=t+=""}o+=y;const b=e.reportDef.paper;let w=0;return null!==b.htmlIntervalRefreshValue&&void 0!==b.htmlIntervalRefreshValue&&(w=b.htmlIntervalRefreshValue),o+=`",encodeURIComponent(o)}function u(e,t,n){const i=e.getSettings().mergeCells||[];for(let e of i)if(e.row===t&&e.col===n)return e;return{rowspan:0,colspan:0}}function h(e){let t="";if(e)for(let n of e)n.type&&"property"!==n.type?(t+=``:t+=">",t+=``,t+=``):(n.left?t+=``:t+=">",t+=``),t+="";return t}function f(e,t){let n="`);let o=e.rightBorder;o&&"none"!==o.style&&(n+=``);let r=e.topBorder;r&&"none"!==r.style&&(n+=``);let a=e.bottomBorder;return a&&"none"!==a.style&&(n+=``),n+""}function p(e){return e.replace(/[<>&"]/g,function(e){return{"<":"<",">":">","&":"&",'"':"""}[e]})}function m(e){var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),n=window.location.search.substr(1).match(t);return null!=n?n[2]:null}function g(e){let t=2.834646*e;return Math.round(t)}function y(e){let t=.352778*e;return Math.round(t)}function v(e){const t=1.33*e;return Math.round(t)}function A(e){const t=.75*e;return Math.round(t)}function b(){$("#__save_btn").removeClass("disabled")}function w(){$("#__save_btn").addClass("disabled")}function _(e,t){if("number"==typeof e&&(e=new Date(e)),"string"==typeof e)return e;var n={"M+":e.getMonth()+1,"d+":e.getDate(),"H+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds()};for(var i in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length))),n)new RegExp("("+i+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?n[i]:("00"+n[i]).substr((""+n[i]).length)));return t}function M(){return{A0:{width:841,height:1189},A1:{width:594,height:841},A2:{width:420,height:594},A3:{width:297,height:420},A4:{width:210,height:297},A5:{width:148,height:210},A6:{width:105,height:148},A7:{width:74,height:105},A8:{width:52,height:74},A9:{width:37,height:52},A10:{width:26,height:37},B0:{width:1e3,height:1414},B1:{width:707,height:1e3},B2:{width:500,height:707},B3:{width:353,height:500},B4:{width:250,height:353},B5:{width:176,height:250},B6:{width:125,height:176},B7:{width:88,height:125},B8:{width:62,height:88},B9:{width:44,height:62},B10:{width:31,height:44}}}const x=new o.a},function(e,t,n){"use strict";function i(e){a("消息提示",e).modal("show")}function o(e,t){a("确认提示",e,[{name:"确认",click:function(){t.call(this)}}]).modal("show")}function r(e,t,n){a(e,t,[{name:"确认",click:function(){n.call(this)}}]).modal("show")}function a(e,t,n,i){const o="modal-dialog"+(i?" modal-lg":"");let r=$(''),a=$(`
`);r.append(a);let s=$(`