Commit 4c6da8f5 authored by 18083's avatar 18083

电子档案流程定义改造

parent 80dc6e2b
...@@ -19,6 +19,11 @@ ...@@ -19,6 +19,11 @@
<bm:field name="show_approve_history_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SHOW_APPROVE_HISTORY_FLAG" prompt="ZJ_WFL_WORKFLOW.SHOW_APPROVE_HISTORY_FLAG"/> <bm:field name="show_approve_history_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SHOW_APPROVE_HISTORY_FLAG" prompt="ZJ_WFL_WORKFLOW.SHOW_APPROVE_HISTORY_FLAG"/>
<bm:field name="show_all_approve_ht_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SHOW_ALL_APPROVE_HT_FLAG" prompt="ZJ_WFL_WORKFLOW.SHOW_ALL_APPROVE_HT_FLAG"/> <bm:field name="show_all_approve_ht_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SHOW_ALL_APPROVE_HT_FLAG" prompt="ZJ_WFL_WORKFLOW.SHOW_ALL_APPROVE_HT_FLAG"/>
<bm:field name="serial_number" databaseType="NUMBER" datatype="java.lang.Long" physicalName="SERIAL_NUMBER" prompt="序号"/> <bm:field name="serial_number" databaseType="NUMBER" datatype="java.lang.Long" physicalName="SERIAL_NUMBER" prompt="序号"/>
<bm:field name="is_archive" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="IS_ARCHIVE" />
<bm:field name="is_archive_desc" forInsert="false" forUpdate="false"/>
<bm:field name="archive_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ARCHIVE_TYPE" />
<bm:field name="archive_type_desc" forInsert="false" forUpdate="false"/>
</bm:fields> </bm:fields>
<bm:operations> <bm:operations>
<bm:operation name="query"> <bm:operation name="query">
...@@ -40,7 +45,11 @@ ...@@ -40,7 +45,11 @@
t1.display_service_name, t1.display_service_name,
t1.show_approve_history_flag, t1.show_approve_history_flag,
t1.show_all_approve_ht_flag, t1.show_all_approve_ht_flag,
t1.serial_number t1.serial_number,
t1.is_archive,
t1.archive_type,
t1.is_archive_desc,
t1.archive_type_desc
from zj_wfl_workflow_v t1 from zj_wfl_workflow_v t1
#WHERE_CLAUSE# #WHERE_CLAUSE#
order by t1.serial_number,t1.workflow_type_code,t1.workflow_code order by t1.serial_number,t1.workflow_type_code,t1.workflow_code
...@@ -76,6 +85,8 @@ ...@@ -76,6 +85,8 @@
p_show_approve_history_flag => ${@show_approve_history_flag}, p_show_approve_history_flag => ${@show_approve_history_flag},
p_show_all_approve_ht_flag => ${@show_all_approve_ht_flag}, p_show_all_approve_ht_flag => ${@show_all_approve_ht_flag},
p_serial_number => ${@serial_number}, p_serial_number => ${@serial_number},
p_is_archive => ${@is_archive},
p_archive_type => ${@archive_type},
p_user_id => ${/session/@user_id}); p_user_id => ${/session/@user_id});
end; end;
...@@ -97,6 +108,8 @@ ...@@ -97,6 +108,8 @@
p_show_approve_history_flag => ${@show_approve_history_flag}, p_show_approve_history_flag => ${@show_approve_history_flag},
p_show_all_approve_ht_flag => ${@show_all_approve_ht_flag}, p_show_all_approve_ht_flag => ${@show_all_approve_ht_flag},
p_serial_number => ${@serial_number}, p_serial_number => ${@serial_number},
p_is_archive => ${@is_archive},
p_archive_type => ${@archive_type},
p_user_id => ${/session/@user_id}); p_user_id => ${/session/@user_id});
end; end;
......
...@@ -72,10 +72,36 @@ ...@@ -72,10 +72,36 @@
{ {
record.set('can_cancel','N'); record.set('can_cancel','N');
} }
if(name=='is_archive')
{
if(value=='Y'){
record.getMeta().getField('archive_type_desc').setRequired(true);
record.getMeta().getField('archive_type_desc').setReadOnly(false);
}else{
record.getMeta().getField('archive_type_desc').setRequired(false);
record.getMeta().getField('archive_type_desc').setReadOnly(true);
}
}
}
function onLoad_workflowDs(ds) {
var records=ds.getAll();
for (var u = 0;u < ds.getAll().length;u++) {
if(records[u].get('is_archive')=='Y'){
records[u].getMeta().getField('archive_type_desc').setRequired(true);
records[u].getMeta().getField('archive_type_desc').setReadOnly(false);
}else{
records[u].getMeta().getField('archive_type_desc').setRequired(false);
records[u].getMeta().getField('archive_type_desc').setReadOnly(true);
}
}
} }
]]></script> ]]></script>
<a:dataSets> <a:dataSets>
<a:dataSet id="yes_no_ds" lookupCode="YES_NO"/>
<a:dataSet id="elec_file_type" lookupCode="DATA_CLASSIFICATION"/>
<a:dataSet id="sub_category_ds" lookupCode="ZJ_WFL_SUB_CATEGORY"/> <a:dataSet id="sub_category_ds" lookupCode="ZJ_WFL_SUB_CATEGORY"/>
<a:dataSet id="para_workflowDs" autoCreate="true" model="zjwfl.zj_wfl_workflow"> <a:dataSet id="para_workflowDs" autoCreate="true" model="zjwfl.zj_wfl_workflow">
<a:fields> <a:fields>
...@@ -86,11 +112,19 @@ ...@@ -86,11 +112,19 @@
<a:map from="workflow_type_desc" to="workflow_type_desc"/> <a:map from="workflow_type_desc" to="workflow_type_desc"/>
</a:mapping> </a:mapping>
</a:field> </a:field>
<a:field name="is_archive_desc" displayField="code_value_name" options="yes_no_ds" returnField="is_archive" valueField="code_value"/>
<a:field name="archive_type_desc" displayField="code_value_name" options="elec_file_type" returnField="archive_type" valueField="code_value"/>
<a:field name="enabled_flag_desc" defaultValue="是" displayField="code_value_name" options="yes_no_ds" returnField="enabled_flag" valueField="code_value"/>
<a:field name="enabled_flag" defaultValue="Y"/>
<a:field name="sub_category_desc" displayField="code_value_name" options="sub_category_ds" returnField="sub_category" valueField="code_value"/> <a:field name="sub_category_desc" displayField="code_value_name" options="sub_category_ds" returnField="sub_category" valueField="code_value"/>
</a:fields> </a:fields>
</a:dataSet> </a:dataSet>
<a:dataSet id="workflowDs" autoPageSize="true" autoQuery="true" model="zjwfl.zj_wfl_workflow" queryDataSet="para_workflowDs" selectable="true"> <a:dataSet id="workflowDs" autoPageSize="true" autoQuery="true" model="zjwfl.zj_wfl_workflow" queryDataSet="para_workflowDs" selectable="true">
<a:fields> <a:fields>
<a:field name="is_archive" />
<a:field name="archive_type"/>
<a:field name="is_archive_desc" displayField="code_value_name" options="yes_no_ds" required="true" returnField="is_archive" valueField="code_value"/>
<a:field name="archive_type_desc" displayField="code_value_name" options="elec_file_type" required="true" returnField="archive_type" valueField="code_value"/>
<a:field name="workflow_code" required="true"/> <a:field name="workflow_code" required="true"/>
<a:field name="workflow_desc" required="true"/> <a:field name="workflow_desc" required="true"/>
<a:field name="sub_category_desc" displayField="code_value_name" options="sub_category_ds" required="true" returnField="sub_category" valueField="code_value"/> <a:field name="sub_category_desc" displayField="code_value_name" options="sub_category_ds" required="true" returnField="sub_category" valueField="code_value"/>
...@@ -114,6 +148,7 @@ ...@@ -114,6 +148,7 @@
</a:fields> </a:fields>
<a:events> <a:events>
<a:event name="update" handler="onUpdate_workflowDs"/> <a:event name="update" handler="onUpdate_workflowDs"/>
<a:event name="load" handler="onLoad_workflowDs"/>
</a:events> </a:events>
</a:dataSet> </a:dataSet>
</a:dataSets> </a:dataSets>
...@@ -123,6 +158,9 @@ ...@@ -123,6 +158,9 @@
<a:textField name="workflow_code" bindTarget="para_workflowDs" maxLength="200" prompt="工作流代码" typeCase="upper"/> <a:textField name="workflow_code" bindTarget="para_workflowDs" maxLength="200" prompt="工作流代码" typeCase="upper"/>
<a:textField name="workflow_desc" bindTarget="para_workflowDs" maxLength="2000" prompt="工作流描述"/> <a:textField name="workflow_desc" bindTarget="para_workflowDs" maxLength="2000" prompt="工作流描述"/>
<a:comboBox name="sub_category_desc" bindTarget="para_workflowDs" prompt="主从属性"/> <a:comboBox name="sub_category_desc" bindTarget="para_workflowDs" prompt="主从属性"/>
<a:comboBox name="enabled_flag_desc" bindTarget="para_workflowDs" prompt="是否启用"/>
<a:comboBox name="is_archive_desc" bindTarget="para_workflowDs" prompt="是否生成电子档案"/>
<a:comboBox name="archive_type_desc" bindTarget="para_workflowDs" prompt="电子档案类型"/>
</a:form> </a:form>
<a:hBox> <a:hBox>
<a:button click="workflowDs_query" text="HAP_QUERY"/> <a:button click="workflowDs_query" text="HAP_QUERY"/>
...@@ -145,6 +183,8 @@ ...@@ -145,6 +183,8 @@
<a:column name="enabled_flag" editor="workflowDs_grid_check" prompt="启用" width="60"/> <a:column name="enabled_flag" editor="workflowDs_grid_check" prompt="启用" width="60"/>
<a:column name="can_cancel" editorFunction="editorFun_workflowDs_grid" prompt="可收回" width="60"/> <a:column name="can_cancel" editorFunction="editorFun_workflowDs_grid" prompt="可收回" width="60"/>
<a:column name="node_define" align="center" prompt="工作流节点定义" renderer="render_workflowDs_grid" width="100"/> <a:column name="node_define" align="center" prompt="工作流节点定义" renderer="render_workflowDs_grid" width="100"/>
<a:column name="is_archive_desc" prompt="是否生成电子档案" editor="workflowDs_grid_comb" width="120"/>
<a:column name="archive_type_desc" align="center" prompt="电子档案类型" editor="workflowDs_grid_comb" width="120"/>
</a:columns> </a:columns>
<a:editors> <a:editors>
<a:numberField id="workflowDs_grid_num"/> <a:numberField id="workflowDs_grid_num"/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment