提交 cfd2af7a 编写于 作者: U unknown

查询列增加不导出的配置

上级 579fcc7a
......@@ -561,9 +561,8 @@ MWF.xApplication.query.Query.Statement = MWF.QStatement = new Class({
var numberIndexArray = [];
var idx = 0;
Object.each(this.entries, function (c, k) {
if (this.hideColumns.indexOf(k) === -1) {
if (this.hideColumns.indexOf(k) === -1 && c.exportEnable !== false) {
titleArray.push(c.displayName);
colWidthArr.push(c.exportWidth || 200);
if( c.isTime )dateIndexArray.push(idx);
if( c.isNumber )numberIndexArray.push(idx);
......@@ -579,7 +578,7 @@ MWF.xApplication.query.Query.Statement = MWF.QStatement = new Class({
json.data.each(function (d, i) {
var dataArray = [];
Object.each(this.entries, function (c, k) {
if (this.hideColumns.indexOf(k) === -1) {
if (this.hideColumns.indexOf(k) === -1 && c.exportEnable !== false) {
var text = this.getExportText(c, k, d);
// if( c.isNumber && typeOf(text) === "string" && (parseFloat(text).toString() !== "NaN") ){
// text = parseFloat(text);
......
......@@ -96,6 +96,13 @@
<div style="background-color: #EEE; height:24px; line-height: 24px; text-align: center; font-weight: bold">{{$.lp.export}}</div>
<div class="MWFDataData" id="text{$.pid}dataExportEditor">
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable" style="table-layout: fixed;">
<tr>
<td class="editTableTitle">{{$.lp.exportEnable}}:</td>
<td class="editTableValue">
<input name="exportEnable" type="radio" value="true" text{($.exportEnable)!==false?'checked':''}/>{{$.lp.yes}}
<input name="exportEnable" type="radio" value="false" text{($.exportEnable)===false?'checked':''}/>{{$.lp.no}}
</td>
</tr>
<tr>
<td class="editTableTitle">{{$.lp.exportWidth}}:</td>
<td class="editTableValue">
......
......@@ -79,6 +79,7 @@ MWF.xApplication.query.StatementDesigner.LP = Object.merge( MWF.xApplication.que
"export": "Export",
"exportWidth": "Width",
"exportEnable": "Allow export",
"isTime": "Time Type",
"isNumber": "Number Type"
}
......
......@@ -94,6 +94,7 @@ MWF.xApplication.query.StatementDesigner.LP = Object.merge( MWF.xApplication.que
"export": "导出",
"exportWidth": "宽度",
"exportEnable": "允许导出",
"isTime": "时间类型",
"isNumber": "数字类型"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册