提交 91e09813 编写于 作者: ibizdev's avatar ibizdev

zhujiamin 发布系统代码 [TrainSys,网页端]

上级 4071d499
......@@ -196,6 +196,7 @@ export class DynamicCodeListService {
const pValueField = this.codeListInstance.getPValuePSAppDEField()?.codeName;
const iconPathField = this.codeListInstance.getIconPathPSAppDEField()?.codeName;
const iconClsField = this.codeListInstance.getIconClsPSAppDEField()?.codeName;
const disabledField = this.codeListInstance.getDisablePSAppDEField()?.codeName;
const keyField = ModelTool.getAppEntityKeyField(dataEntity)?.codeName;
const majorField = ModelTool.getAppEntityMajorField(dataEntity)?.codeName;
if (items && items.length > 0) {
......@@ -215,6 +216,9 @@ export class DynamicCodeListService {
if (iconClsField) {
Object.assign(itemdata, { iconcls: item[iconClsField.toLowerCase()] });
}
if (disabledField) {
Object.assign(itemdata, { disabled: item[disabledField.toLowerCase()] });
}
_items.push(itemdata);
})
}
......@@ -237,6 +241,7 @@ export class DynamicCodeListService {
const valueField = this.codeListInstance.getValuePSAppDEField()?.codeName;
const textField = this.codeListInstance.getTextPSAppDEField()?.codeName;
const pValueField = this.codeListInstance.getPValuePSAppDEField()?.codeName;
const disabledField = this.codeListInstance.getDisablePSAppDEField()?.codeName;
const keyField = ModelTool.getAppEntityKeyField(dataEntity)?.codeName;
const majorField = ModelTool.getAppEntityMajorField(dataEntity)?.codeName;
items.forEach((item: any) => {
......@@ -248,6 +253,9 @@ export class DynamicCodeListService {
if (pValueField) {
Object.assign(itemdata, { pvalue: item[pValueField.toLowerCase()] });
}
if (disabledField) {
Object.assign(itemdata, { disabled: item[disabledField.toLowerCase()] });
}
})
}
return _items;
......
......@@ -427,6 +427,8 @@ export class AppPanelBase extends PanelControlBase {
this.findDEFieldForPanelField(modelJson);
}
let labelPos = 'LEFT';
const detailClass = this.layoutDetailsModel[name]?.getDetailClass();
const detailStyle = this.layoutDetailsModel[name].getBoxStyle();
return (
!hidden && (
<app-panel-field
......@@ -437,6 +439,8 @@ export class AppPanelBase extends PanelControlBase {
error={this.rules[editor.name]?.message}
data={this.data}
value={this.data[name]}
class={detailClass}
style={detailStyle}
itemRules={this.rules[editor.name]}
required={this.layoutDetailsModel[modelJson.name]?.required}
>
......
......@@ -132,7 +132,7 @@
</changeSet>
<!--输出实体[PHONE]数据结构 -->
<changeSet author="root" id="tab-phone-43-5">
<changeSet author="root" id="tab-phone-45-5">
<createTable tableName="T_PHONE">
<column name="PHONEID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_PHONE"/>
......
......@@ -162,6 +162,14 @@
"name" : "FIELD8",
"codeName" : "Field8"
}
}, {
"id" : "field16",
"hidden" : true,
"dataType" : 25,
"getPSAppDEField" : {
"name" : "FIELD16",
"codeName" : "Field16"
}
}, {
"id" : "field9",
"dataType" : 25,
......@@ -631,6 +639,33 @@
},
"allowEmpty" : true,
"showCaption" : true
}, {
"caption" : "隐藏",
"codeName" : "field16",
"dataType" : 25,
"detailStyle" : "DEFAULT",
"detailType" : "FORMITEM",
"enableCond" : 3,
"ignoreInput" : 0,
"labelPos" : "LEFT",
"labelWidth" : 130,
"name" : "field16",
"noPrivDisplayMode" : 1,
"getPSAppDEField" : {
"name" : "FIELD16",
"codeName" : "Field16"
},
"getPSEditor" : {
"editorType" : "HIDDEN",
"name" : "field16"
},
"getPSLayoutPos" : {
"colMD" : 24,
"layout" : "TABLE_24COL"
},
"allowEmpty" : true,
"hidden" : true,
"showCaption" : true
}, {
"caption" : "数据选择",
"codeName" : "field9",
......@@ -677,7 +712,7 @@
"path" : "PSSYSAPPS/Web/PSAPPDEVIEWS/phonePhoneView.json",
"viewType" : "DEGRIDVIEW"
},
"valueItemName" : "type",
"valueItemName" : "field16",
"enableAC" : true,
"enablePickupView" : true,
"forceSelection" : true,
......@@ -688,7 +723,7 @@
"colMD" : 24,
"layout" : "TABLE_24COL"
},
"valueItemName" : "type",
"valueItemName" : "field16",
"allowEmpty" : true,
"showCaption" : true
}, {
......@@ -716,6 +751,12 @@
"editorType" : "PICKEREX_NOAC",
"handlerType" : "PickupText",
"name" : "field15",
"getPickupPSAppView" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDEVIEWS/phonePhoneView.json",
"viewType" : "DEGRIDVIEW"
},
"valueItemName" : "field16",
"enableAC" : false,
"enablePickupView" : true,
"forceSelection" : true,
......@@ -726,6 +767,7 @@
"colMD" : 24,
"layout" : "TABLE_24COL"
},
"valueItemName" : "field16",
"allowEmpty" : true,
"showCaption" : true
}, {
......@@ -765,6 +807,7 @@
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/RawMaterial.json"
},
"valueItemName" : "field16",
"enableAC" : true,
"enablePickupView" : false,
"forceSelection" : true,
......@@ -775,6 +818,7 @@
"colMD" : 24,
"layout" : "TABLE_24COL"
},
"valueItemName" : "field16",
"allowEmpty" : true,
"showCaption" : true
}, {
......@@ -802,7 +846,13 @@
},
"editorType" : "PICKEREX_LINK",
"handlerType" : "PickupText",
"getLinkPSAppView" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDEVIEWS/BookTypeGridView.json",
"viewType" : "DEGRIDVIEW"
},
"name" : "field12",
"valueItemName" : "field16",
"enableAC" : true,
"enableLinkView" : true,
"enablePickupView" : true,
......@@ -814,6 +864,7 @@
"colMD" : 24,
"layout" : "TABLE_24COL"
},
"valueItemName" : "field16",
"allowEmpty" : true,
"showCaption" : true
}, {
......
......@@ -742,10 +742,13 @@
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Phone.json"
},
"paramItem" : "cccc",
"textItem" : "bbbb",
"timeout" : 60000,
"uIActionMode" : "BACKEND",
"uIActionTag" : "backEnd",
"uIActionType" : "DEUIACTION",
"valueItem" : "aaaa",
"enableConfirm" : true,
"id" : "backEnd@Phone"
}, {
......
......@@ -283,6 +283,14 @@
"name" : "FIELD8",
"codeName" : "Field8"
}
}, {
"id" : "field16",
"hidden" : true,
"dataType" : 25,
"getPSAppDEField" : {
"name" : "FIELD16",
"codeName" : "Field16"
}
}, {
"id" : "field9",
"dataType" : 25,
......@@ -752,6 +760,33 @@
},
"allowEmpty" : true,
"showCaption" : true
}, {
"caption" : "隐藏",
"codeName" : "field16",
"dataType" : 25,
"detailStyle" : "DEFAULT",
"detailType" : "FORMITEM",
"enableCond" : 3,
"ignoreInput" : 0,
"labelPos" : "LEFT",
"labelWidth" : 130,
"name" : "field16",
"noPrivDisplayMode" : 1,
"getPSAppDEField" : {
"name" : "FIELD16",
"codeName" : "Field16"
},
"getPSEditor" : {
"editorType" : "HIDDEN",
"name" : "field16"
},
"getPSLayoutPos" : {
"colMD" : 24,
"layout" : "TABLE_24COL"
},
"allowEmpty" : true,
"hidden" : true,
"showCaption" : true
}, {
"caption" : "数据选择",
"codeName" : "field9",
......@@ -798,7 +833,7 @@
"path" : "PSSYSAPPS/Web/PSAPPDEVIEWS/phonePhoneView.json",
"viewType" : "DEGRIDVIEW"
},
"valueItemName" : "type",
"valueItemName" : "field16",
"enableAC" : true,
"enablePickupView" : true,
"forceSelection" : true,
......@@ -809,7 +844,7 @@
"colMD" : 24,
"layout" : "TABLE_24COL"
},
"valueItemName" : "type",
"valueItemName" : "field16",
"allowEmpty" : true,
"showCaption" : true
}, {
......@@ -837,6 +872,12 @@
"editorType" : "PICKEREX_NOAC",
"handlerType" : "PickupText",
"name" : "field15",
"getPickupPSAppView" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDEVIEWS/phonePhoneView.json",
"viewType" : "DEGRIDVIEW"
},
"valueItemName" : "field16",
"enableAC" : false,
"enablePickupView" : true,
"forceSelection" : true,
......@@ -847,6 +888,7 @@
"colMD" : 24,
"layout" : "TABLE_24COL"
},
"valueItemName" : "field16",
"allowEmpty" : true,
"showCaption" : true
}, {
......@@ -886,6 +928,7 @@
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/RawMaterial.json"
},
"valueItemName" : "field16",
"enableAC" : true,
"enablePickupView" : false,
"forceSelection" : true,
......@@ -896,6 +939,7 @@
"colMD" : 24,
"layout" : "TABLE_24COL"
},
"valueItemName" : "field16",
"allowEmpty" : true,
"showCaption" : true
}, {
......@@ -923,7 +967,13 @@
},
"editorType" : "PICKEREX_LINK",
"handlerType" : "PickupText",
"getLinkPSAppView" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDEVIEWS/BookTypeGridView.json",
"viewType" : "DEGRIDVIEW"
},
"name" : "field12",
"valueItemName" : "field16",
"enableAC" : true,
"enableLinkView" : true,
"enablePickupView" : true,
......@@ -935,6 +985,7 @@
"colMD" : 24,
"layout" : "TABLE_24COL"
},
"valueItemName" : "field16",
"allowEmpty" : true,
"showCaption" : true
}, {
......
......@@ -682,10 +682,13 @@
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Phone.json"
},
"paramItem" : "cccc",
"textItem" : "bbbb",
"timeout" : 60000,
"uIActionMode" : "BACKEND",
"uIActionTag" : "backEnd",
"uIActionType" : "DEUIACTION",
"valueItem" : "aaaa",
"enableConfirm" : true,
"id" : "backEnd@Phone"
},
......
......@@ -3539,10 +3539,13 @@
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Phone.json"
},
"paramItem" : "cccc",
"textItem" : "bbbb",
"timeout" : 60000,
"uIActionMode" : "BACKEND",
"uIActionTag" : "backEnd",
"uIActionType" : "DEUIACTION",
"valueItem" : "aaaa",
"enableConfirm" : true,
"id" : "backEnd@Phone"
},
......@@ -3868,6 +3871,14 @@
"name" : "FIELD8",
"codeName" : "Field8"
}
}, {
"id" : "field16",
"hidden" : true,
"dataType" : 25,
"getPSAppDEField" : {
"name" : "FIELD16",
"codeName" : "Field16"
}
}, {
"id" : "field9",
"dataType" : 25,
......@@ -4337,6 +4348,33 @@
},
"allowEmpty" : true,
"showCaption" : true
}, {
"caption" : "隐藏",
"codeName" : "field16",
"dataType" : 25,
"detailStyle" : "DEFAULT",
"detailType" : "FORMITEM",
"enableCond" : 3,
"ignoreInput" : 0,
"labelPos" : "LEFT",
"labelWidth" : 130,
"name" : "field16",
"noPrivDisplayMode" : 1,
"getPSAppDEField" : {
"name" : "FIELD16",
"codeName" : "Field16"
},
"getPSEditor" : {
"editorType" : "HIDDEN",
"name" : "field16"
},
"getPSLayoutPos" : {
"colMD" : 24,
"layout" : "TABLE_24COL"
},
"allowEmpty" : true,
"hidden" : true,
"showCaption" : true
}, {
"caption" : "数据选择",
"codeName" : "field9",
......@@ -4383,7 +4421,7 @@
"path" : "PSSYSAPPS/Web/PSAPPDEVIEWS/phonePhoneView.json",
"viewType" : "DEGRIDVIEW"
},
"valueItemName" : "type",
"valueItemName" : "field16",
"enableAC" : true,
"enablePickupView" : true,
"forceSelection" : true,
......@@ -4394,7 +4432,7 @@
"colMD" : 24,
"layout" : "TABLE_24COL"
},
"valueItemName" : "type",
"valueItemName" : "field16",
"allowEmpty" : true,
"showCaption" : true
}, {
......@@ -4422,6 +4460,12 @@
"editorType" : "PICKEREX_NOAC",
"handlerType" : "PickupText",
"name" : "field15",
"getPickupPSAppView" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDEVIEWS/phonePhoneView.json",
"viewType" : "DEGRIDVIEW"
},
"valueItemName" : "field16",
"enableAC" : false,
"enablePickupView" : true,
"forceSelection" : true,
......@@ -4432,6 +4476,7 @@
"colMD" : 24,
"layout" : "TABLE_24COL"
},
"valueItemName" : "field16",
"allowEmpty" : true,
"showCaption" : true
}, {
......@@ -4471,6 +4516,7 @@
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/RawMaterial.json"
},
"valueItemName" : "field16",
"enableAC" : true,
"enablePickupView" : false,
"forceSelection" : true,
......@@ -4481,6 +4527,7 @@
"colMD" : 24,
"layout" : "TABLE_24COL"
},
"valueItemName" : "field16",
"allowEmpty" : true,
"showCaption" : true
}, {
......@@ -4508,7 +4555,13 @@
},
"editorType" : "PICKEREX_LINK",
"handlerType" : "PickupText",
"getLinkPSAppView" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDEVIEWS/BookTypeGridView.json",
"viewType" : "DEGRIDVIEW"
},
"name" : "field12",
"valueItemName" : "field16",
"enableAC" : true,
"enableLinkView" : true,
"enablePickupView" : true,
......@@ -4520,6 +4573,7 @@
"colMD" : 24,
"layout" : "TABLE_24COL"
},
"valueItemName" : "field16",
"allowEmpty" : true,
"showCaption" : true
}, {
......@@ -8929,10 +8983,13 @@
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Phone.json"
},
"paramItem" : "cccc",
"textItem" : "bbbb",
"timeout" : 60000,
"uIActionMode" : "BACKEND",
"uIActionTag" : "backEnd",
"uIActionType" : "DEUIACTION",
"valueItem" : "aaaa",
"enableConfirm" : true,
"id" : "backEnd@Phone"
}, {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册