提交 bf07af6e 编写于 作者: U unknown

查询语句中增加视图

上级 2fd55667
......@@ -13,26 +13,26 @@
<td class="editTableTitle">描述:</td>
<td class="editTableValue"><input type="text" name="description" value="text{$.description}" class="editTableInput"/></td>
</tr>
<tr>
<td class="editTableTitle">隐藏:</td>
<td class="editTableValue">
<input class="editTableRadio" name="display" text{($.display===false)?'checked':''} type="radio" value="false"/>
<input class="editTableRadio" name="display" text{($.display!==false)?'checked':''} type="radio" value="true"/>
</td>
</tr>
<!-- <tr>-->
<!-- <td class="editTableTitle">隐藏:</td>-->
<!-- <td class="editTableValue">-->
<!-- <input class="editTableRadio" name="display" text{($.display===false)?'checked':''} type="radio" value="false"/>是-->
<!-- <input class="editTableRadio" name="display" text{($.display!==false)?'checked':''} type="radio" value="true"/>否-->
<!-- </td>-->
<!-- </tr>-->
<tr>
<td class="editTableTitle">视图样式:</td>
<td class="editTableValue">
<select class="MWFViewStyle" name="data.viewStyleType"></select>
</td>
</tr>
<tr>
<td class="editTableTitle">展开分类:</td>
<td class="editTableValue">
<input class="editTableRadio" name="data.isExpand" text{($.data.isExpand==='yes')?'checked':''} type="radio" value="yes"/>
<input class="editTableRadio" name="data.isExpand" text{($.data.isExpand!=='yes')?'checked':''} type="radio" value="no"/>
</td>
</tr>
<!-- <tr>-->
<!-- <td class="editTableTitle">展开分类:</td>-->
<!-- <td class="editTableValue">-->
<!-- <input class="editTableRadio" name="data.isExpand" text{($.data.isExpand==='yes')?'checked':''} type="radio" value="yes"/>是-->
<!-- <input class="editTableRadio" name="data.isExpand" text{($.data.isExpand!=='yes')?'checked':''} type="radio" value="no"/>否-->
<!-- </td>-->
<!-- </tr>-->
<tr>
<td class="editTableTitle">显示序号:</td>
<td class="editTableValue">
......@@ -40,10 +40,10 @@
<input class="editTableRadio" name="data.isSequence" text{($.data.isSequence!=='yes')?'checked':''} type="radio" value="no"/>
</td>
</tr>
<tr>
<td class="editTableTitleNoWidth">最大行数:</td>
<td class="editTableValue"><input type="number" name="count" value="text{$.count || 600}" class="editTableInput"/></td>
</tr>
<!-- <tr>-->
<!-- <td class="editTableTitleNoWidth">最大行数:</td>-->
<!-- <td class="editTableValue"><input type="number" name="count" value="text{$.count || 600}" class="editTableInput"/></td>-->
<!-- </tr>-->
<tr>
<td class="editTableTitleNoWidth">每页行数:</td>
<td class="editTableValue">
......@@ -85,34 +85,6 @@
<!--</tr>-->
</table>
<div style="height:24px; text-align: center; line-height: 24px; background-color: #EEE; border-top: 1px solid #999; font-weight: bold">权限</div>
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable" id="processEditStarter">
<tr>
<td class="editTableTitle">可执行人:</td>
<td class="editTableValue">
<div class="MWFPersonIdentity" name="availableIdentityList"></div>
</td>
</tr>
<tr>
<td class="editTableTitle">执行组织:</td>
<td class="editTableValue">
<div class="MWFPersonUnit" name="availableUnitList"></div>
</td>
</tr>
<!--<tr>-->
<!--<td class="editTableTitle">执行部门:</td>-->
<!--<td class="editTableValue">-->
<!--<div class="MWFSelectDepartment" name="availableDepartmentList"></div>-->
<!--</td>-->
<!--</tr>-->
<!--<tr>-->
<!--<td class="editTableTitle">执行公司:</td>-->
<!--<td class="editTableValue">-->
<!--<div class="MWFSelectCompany" name="availableCompanyList"></div>-->
<!--</td>-->
<!--</tr>-->
</table>
<div class="MWFFormulaArea" name="data.defaultSelectedScript" title="默认选中行脚本"></div>
......
......@@ -8,18 +8,18 @@
"type": "View",
"data": {
"exportGrid": true,
"exportGoupGrid": true,
// "exportGrid": true,
// "exportGoupGrid": true,
"noDataText" : "未找到数据",
"selectList": [],
"filterList": [],
"orderList": [],
"group": {},
// "group": {},
"columnList": [],
"calculate": {},
"afterGridScriptText": "",
"afterGroupGridScriptText": "",
"afterCalculateGridScriptText": "",
// "calculate": {},
// "afterGridScriptText": "",
// "afterGroupGridScriptText": "",
// "afterCalculateGridScriptText": "",
"actionbarHidden" : true,
"events": {
"queryLoad" : {
......@@ -46,14 +46,14 @@
"code": "",
"html": ""
},
"queryLoadCategoryRow": {
"code": "",
"html": ""
},
"postLoadCategoryRow": {
"code": "",
"html": ""
},
// "queryLoadCategoryRow": {
// "code": "",
// "html": ""
// },
// "postLoadCategoryRow": {
// "code": "",
// "html": ""
// },
"selectRow" : {
"code": "",
"html": ""
......@@ -63,7 +63,7 @@
"html": ""
}
}
},
"availableIdentityList": [],
"availableUnitList": []
}
// "availableIdentityList": [],
// "availableUnitList": []
}
\ No newline at end of file
......@@ -1214,6 +1214,72 @@ MWF.xApplication.query.StatementDesigner.View = new Class({
this.setCustomStyles();
}
},
loadTemplateStyle : function( callback ){
this.loadStylesList(function(){
var oldStyleValue = "";
if ((!this.json.data.viewStyleType) || !this.stylesList[this.json.data.viewStyleType]) this.json.data.viewStyleType="default";
this.loadTemplateStyles( this.stylesList[this.json.data.viewStyleType].file, this.stylesList[this.json.data.viewStyleType].extendFile,
function( templateStyles ){
this.templateStyles = templateStyles;
if( !this.json.data.viewStyleType )this.json.data.viewStyleType = "default";
if ( this.templateStyles && this.templateStyles["view"]){
var viewStyles = Object.clone(this.templateStyles["view"]);
if( viewStyles.contentGroupTd )delete viewStyles.contentGroupTd;
if( viewStyles.groupCollapseNode )delete viewStyles.groupCollapseNode;
if( viewStyles.groupExpandNode )delete viewStyles.groupExpandNode;
if(!this.json.data.viewStyles){
this.json.data.viewStyles = viewStyles;
}else{
this.setTemplateStyles( viewStyles );
}
}
this.setCustomStyles();
if(callback)callback();
}.bind(this)
);
}.bind(this));
},
clearTemplateStyles: function(styles){
if (styles){
if (styles.container) this.removeStyles(styles.container, "container");
if (styles.table) this.removeStyles(styles.table, "table");
if (styles.titleTr) this.removeStyles(styles.titleTr, "titleTr");
if (styles.titleTd) this.removeStyles(styles.titleTd, "titleTd");
if (styles.contentTr) this.removeStyles(styles.contentTr, "contentTr");
if (styles.contentSelectedTr) this.removeStyles(styles.contentSelectedTr, "contentSelectedTr");
if (styles.contentTd) this.removeStyles(styles.contentTd, "contentTd");
// if (styles.contentGroupTd) this.removeStyles(styles.contentGroupTd, "contentGroupTd");
// if (styles.groupCollapseNode) this.removeStyles(styles.groupCollapseNode, "groupCollapseNode");
// if (styles.groupExpandNode) this.removeStyles(styles.groupExpandNode, "groupExpandNode");
if (styles.checkboxNode) this.removeStyles(styles.checkboxNode, "checkboxNode");
if (styles.checkedCheckboxNode) this.removeStyles(styles.checkedCheckboxNode, "checkedCheckboxNode");
if (styles.radioNode) this.removeStyles(styles.radioNode, "radioNode");
if (styles.checkedRadioNode) this.removeStyles(styles.checkedRadioNode, "checkedRadioNode");
if (styles.tableProperties) this.removeStyles(styles.tableProperties, "tableProperties");
}
},
setTemplateStyles: function(styles){
if (styles.container) this.copyStyles(styles.container, "container");
if (styles.table) this.copyStyles(styles.table, "table");
if (styles.titleTr) this.copyStyles(styles.titleTr, "titleTr");
if (styles.titleTd) this.copyStyles(styles.titleTd, "titleTd");
if (styles.contentTr) this.copyStyles(styles.contentTr, "contentTr");
if (styles.contentSelectedTr) this.copyStyles(styles.contentSelectedTr, "contentSelectedTr");
if (styles.contentTd) this.copyStyles(styles.contentTd, "contentTd");
// if (styles.contentGroupTd) this.copyStyles(styles.contentGroupTd, "contentGroupTd");
// if (styles.groupCollapseNode) this.copyStyles(styles.groupCollapseNode, "groupCollapseNode");
// if (styles.groupExpandNode) this.copyStyles(styles.groupExpandNode, "groupExpandNode");
if (styles.checkboxNode) this.copyStyles(styles.checkboxNode, "checkboxNode");
if (styles.checkedCheckboxNode) this.copyStyles(styles.checkedCheckboxNode, "checkedCheckboxNode");
if (styles.radioNode) this.copyStyles(styles.radioNode, "radioNode");
if (styles.checkedRadioNode) this.copyStyles(styles.checkedRadioNode, "checkedRadioNode");
if (styles.tableProperties) this.copyStyles(styles.tableProperties, "tableProperties");
},
removeStyles: function(from, to){
if (this.json.data.viewStyles[to]){
Object.each(from, function(style, key){
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册