Commit 39d0d100 authored by Luochenglong's avatar Luochenglong

工作流定义界面改造 资料模板收集明细界面改造 电子档案类型定义界面开发 add by 35022 luochenglong

parent 61bffbba
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: LR
$Date: 2013-9-2 上午09:38:55
$Revision: 1.0
$Purpose:
-->
<bm:model xmlns:f="leaf.database.features" xmlns:bm="http://www.leaf-framework.org/schema/bm" alias="t1" baseTable="E_ARCHIVES_DEFINE_DATA" defaultOrderBy="cloumn_code" needAccessControl="false">
<bm:fields>
<bm:field name="base_archive_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="BASE_ARCHIVE_ID" />
<bm:field name="sture_data_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="STURE_DATA_ID" />
<bm:field name="cloumn_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CLOUMN_CODE" />
<bm:field name="cloumn_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CLOUMN_NAME" />
</bm:fields>
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
select t1.base_archive_id,
t1.sture_data_id,
t1.cloumn_code,
t1.cloumn_name
from E_ARCHIVES_DEFINE_DATA t1
#WHERE_CLAUSE#
]]></bm:query-sql>
</bm:operation>
<bm:operation name="insert">
<bm:update-sql><![CDATA[
begin
elec_wfl_pkg.cloumn_code_update(
p_sql_type =>'INSERT',
p_sture_data_id => ${@sture_data_id},
p_base_archive_id => ${@base_archive_id},
p_cloumn_code => ${@cloumn_code},
p_cloumn_name => ${@cloumn_name},
p_user_id => ${/session/@user_id});
end;
]]></bm:update-sql>
</bm:operation>
<bm:operation name="update">
<bm:update-sql><![CDATA[
begin
elec_wfl_pkg.cloumn_code_update(
p_sql_type =>'UPDATE',
p_sture_data_id => ${@sture_data_id},
p_base_archive_id => ${@base_archive_id},
p_cloumn_code => ${@cloumn_code},
p_cloumn_name => ${@cloumn_name},
p_user_id => ${/session/@user_id});
end;
]]></bm:update-sql>
</bm:operation>
<bm:operation name="delete">
<bm:update-sql><![CDATA[
begin
elec_wfl_pkg.cloumn_code_delete(
p_sture_data_id => ${@sture_data_id},
p_user_id => ${/session/@user_id});
end;
]]></bm:update-sql>
</bm:operation>
</bm:operations>
<bm:data-filters>
<bm:data-filter name="base_archive_id" enforceOperations="query" expression="base_archive_id=${@base_archive_id}"/>
</bm:data-filters>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: LR
$Date: 2013-9-2 上午09:38:55
$Revision: 1.0
$Purpose:
-->
<bm:model xmlns:f="leaf.database.features" xmlns:bm="http://www.leaf-framework.org/schema/bm" alias="t1" baseTable="E_ARCHIVES_DEFINE" defaultOrderBy="base_archive_code">
<bm:fields>
<bm:field name="base_archive_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="BASE_ARCHIVE_ID" />
<bm:field name="base_archive_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BASE_ARCHIVE_CODE" />
<bm:field name="archive_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ARCHIVE_TYPE" />
<bm:field name="post_stru_data_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="POST_STRU_DATA_FLAG" />
<bm:field name="stru_data_sql" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="STRU_DATA_SQL" />
<bm:field name="is_workflow" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="IS_WORKFLOW" />
<bm:field name="workflow_id" databaseType="NUMBER" datatype="java.lang.String" physicalName="WORKFLOW_ID" />
<bm:field name="post_atm_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="POST_ATM_FLAG" />
<bm:field name="atm_sql" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ATM_SQL" />
<bm:field name="je_check_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="JE_CHECK_FLAG" />
<bm:field name="je_source_sql" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="JE_SOURCE_SQL" />
<bm:field name="workflow_desc" forInsert="false" expression="(SELECT c.workflow_desc FROM zj_wfl_workflow c where c.workflow_id= t1.workflow_id)" forUpdate="false"/>
<bm:field name="archive_type_desc" forInsert="false" expression="(SELECT c.code_value_name FROM sys_code_values_v c where c.code=&apos;ARCHIVE_TYPE&apos; and c.code_value = t1.archive_type)" forUpdate="false" />
<bm:field name="is_workflow_desc" forInsert="false" expression="(SELECT c.code_value_name FROM sys_code_values_v c where c.code=&apos;YES_NO&apos; and c.code_value = t1.is_workflow)" forUpdate="false" />
<bm:field name="post_stru_data_flag_desc" forInsert="false" expression="(SELECT c.code_value_name FROM sys_code_values_v c where c.code=&apos;YES_NO&apos; and c.code_value = t1.post_stru_data_flag)" forUpdate="false"/>
<bm:field name="post_atm_flag_desc" forInsert="false" expression="(SELECT c.code_value_name FROM sys_code_values_v c where c.code=&apos;YES_NO&apos; and c.code_value = t1.post_atm_flag)" forUpdate="false" />
<bm:field name="je_check_flag_desc" forInsert="false" expression="(SELECT c.code_value_name FROM sys_code_values_v c where c.code=&apos;YES_NO&apos; and c.code_value = t1.je_check_flag)" forUpdate="false"/>
</bm:fields>
<bm:operations>
<bm:operation name="insert">
<bm:update-sql><![CDATA[
begin
elec_wfl_pkg.elec_type_update(
p_sql_type =>'INSERT',
p_base_archive_id => ${@base_archive_id},
p_base_archive_code => ${@base_archive_code},
p_archive_type => ${@archive_type},
p_post_stru_data_flag => ${@post_stru_data_flag},
p_stru_data_sql => ${@stru_data_sql},
p_is_workflow => ${@is_workflow},
p_workflow_desc => ${@workflow_desc},
p_post_atm_flag => ${@post_atm_flag},
p_atm_sql => ${@atm_sql},
p_je_check_flag => ${@je_check_flag},
p_je_source_sql => ${@je_source_sql},
p_user_id => ${/session/@user_id});
end;
]]></bm:update-sql>
</bm:operation>
<bm:operation name="update">
<bm:update-sql><![CDATA[
begin
elec_wfl_pkg.elec_type_update(
p_sql_type => 'UPDATE',
p_base_archive_id => ${@base_archive_id},
p_base_archive_code => ${@base_archive_code},
p_archive_type => ${@archive_type},
p_post_stru_data_flag => ${@post_stru_data_flag},
p_stru_data_sql => ${@stru_data_sql},
p_is_workflow => ${@is_workflow},
p_workflow_desc => ${@workflow_desc},
p_post_atm_flag => ${@post_atm_flag},
p_atm_sql => ${@atm_sql},
p_je_check_flag => ${@je_check_flag},
p_je_source_sql => ${@je_source_sql},
p_user_id => ${/session/@user_id});
end;
]]></bm:update-sql>
</bm:operation>
<bm:operation name="delete">
<bm:update-sql><![CDATA[
begin
elec_wfl_pkg.elec_type_delete(
p_base_archive_id => ${@base_archive_id},
p_user_id => ${/session/@user_id});
end;
]]></bm:update-sql>
</bm:operation>
</bm:operations>
<bm:query-fields>
<bm:query-field field="archive_type" queryExpression="t1.archive_type =${@archive_type}"/>
<bm:query-field field="is_workflow" queryExpression="t1.is_workflow =${@is_workflow}"/>
<bm:query-field field="post_atm_flag" queryExpression="t1.post_atm_flag =${@post_atm_flag}"/>
<bm:query-field field="je_check_flag" queryExpression="t1.je_check_flag =${@je_check_flag}"/>
</bm:query-fields>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: LR
$Date: 2013-9-2 上午09:38:55
$Revision: 1.0
$Purpose:
-->
<bm:model xmlns:f="leaf.database.features" xmlns:bm="http://www.leaf-framework.org/schema/bm" alias="t1" baseTable="E_ARCHIVES_DEFINE_JE" defaultOrderBy="je_template_code">
<bm:fields>
<bm:field name="base_archive_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="BASE_ARCHIVE_ID" />
<bm:field name="je_id" databaseType="NUMBER" datatype="java.lang.String" physicalName="JE_ID" />
<bm:field name="je_template_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="JE_TEMPLATE_CODE" />
<bm:field name="je_template_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="JE_TEMPLATE_NAME" />
</bm:fields>
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
select t1.base_archive_id,
t1.je_id,
t1.je_template_code,
t1.je_template_name
from E_ARCHIVES_DEFINE_JE t1
#WHERE_CLAUSE#
]]></bm:query-sql>
</bm:operation>
<bm:operation name="insert">
<bm:update-sql><![CDATA[
begin
elec_wfl_pkg.je_template_update(
p_sql_type =>'INSERT',
p_je_id => ${@je_id},
p_base_archive_id => ${@base_archive_id},
p_je_template_code => ${@je_template_code},
p_je_template_name => ${@je_template_name},
p_user_id => ${/session/@user_id});
end;
]]></bm:update-sql>
</bm:operation>
<bm:operation name="update">
<bm:update-sql><![CDATA[
begin
elec_wfl_pkg.je_template_update(
p_sql_type =>'UPDATE',
p_je_id => ${@je_id},
p_base_archive_id => ${@base_archive_id},
p_je_template_code => ${@je_template_code},
p_je_template_name => ${@je_template_name},
p_user_id => ${/session/@user_id});
end;
]]></bm:update-sql>
</bm:operation>
<bm:operation name="delete">
<bm:update-sql><![CDATA[
begin
elec_wfl_pkg.je_template_delete(
p_je_id => ${@je_id},
p_user_id => ${/session/@user_id});
end;
]]></bm:update-sql>
</bm:operation>
</bm:operations>
<bm:data-filters>
<bm:data-filter name="base_archive_id" enforceOperations="query" expression="base_archive_id=${@base_archive_id}"/>
</bm:data-filters>
</bm:model>
......@@ -36,7 +36,10 @@
<bm:field name="required_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REQUIRED_FLAG"/>
<bm:field name="doc_require" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DOC_REQUIRE"/>
<bm:field name="amount" databaseType="NUMBER" datatype="java.lang.Long" physicalName="AMOUNT"/>
<bm:field name="doc_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DOC_TYPE"/>
<bm:field name="is_archive" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="IS_ARCHIVE"/>
<bm:field name="is_archive_desc" forInsert="false" expression="(SELECT c.code_value_name FROM sys_code_values_v c where c.code=&apos;YES_NO&apos; and c.code_value = t1.is_archive)" forUpdate="false"/>
<bm:field name="archive_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ARCHIVE_TYPE" />
<bm:field name="archive_type_desc" forInsert="false" expression="(SELECT c.code_value_name FROM sys_code_values_v c where c.code=&apos;ARCHIVE_TYPE&apos; and c.code_value = t1.archive_type)" forUpdate="false"/>
<bm:field name="app_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="APP_CODE"/>
</bm:fields>
<bm:features>
......
......@@ -14,6 +14,10 @@
<bm:field name="enabled_flag_desc" forInsert="false" forUpdate="false"/>
<bm:field name="display_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DISPLAY_MY_SUB_TYPE" prompt="ZJ_WFL_WORKFLOW.DISPLAY_MY_SUB_TYPE"/>
<bm:field name="display_service_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="DISPLAY_MY_SUB_SERVICE_ID" prompt="ZJ_WFL_WORKFLOW.DISPLAY_MY_SUB_SERVICE_ID"/>
<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:field name="display_service_desc" forInsert="false" forUpdate="false"/>
<bm:field name="display_service_name" forInsert="false" forUpdate="false"/>
<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"/>
......@@ -40,7 +44,12 @@
t1.display_service_name,
t1.show_approve_history_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
#WHERE_CLAUSE#
order by t1.serial_number,t1.workflow_type_code,t1.workflow_code
......@@ -76,6 +85,8 @@
p_show_approve_history_flag => ${@show_approve_history_flag},
p_show_all_approve_ht_flag => ${@show_all_approve_ht_flag},
p_serial_number => ${@serial_number},
p_is_archive => ${@is_archive},
p_archive_type => ${@archive_type},
p_user_id => ${/session/@user_id});
end;
......@@ -97,6 +108,8 @@
p_show_approve_history_flag => ${@show_approve_history_flag},
p_show_all_approve_ht_flag => ${@show_all_approve_ht_flag},
p_serial_number => ${@serial_number},
p_is_archive => ${@is_archive},
p_archive_type => ${@archive_type},
p_user_id => ${/session/@user_id});
end;
......@@ -110,6 +123,8 @@
<bm:query-field field="workflow_desc" queryOperator="like"/>
<bm:query-field field="sub_category" queryOperator="="/>
<bm:query-field field="enabled_flag" queryOperator="="/>
<bm:query-field field="is_archive_desc" queryOperator="="/>
<bm:query-field field="archive_type_desc" queryOperator="="/>
</bm:query-fields>
<!-- <bm:data-filters>
<bm:data-filter enforceOperations="query" expression="exists (select 1 from zj_wfl_workflow_node t,zj_wfl_workflow_assign_rule r,exp_emp_assign_e_v ex where t.workflow_id=t1.WORKFLOW_ID and r.assign_source_id=t.node_id and r.company_id=${/session/@company_id} and r.approval_rule=&apos;APPOINTED_COM_POS&apos; and ex.user_id=${/session/@user_id} )"/>
......
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: wangwei
$Date: 2015-5-21 下午4:03:31
$Revision: 1.0
$Purpose:文件模板参数定义
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application">
<a:view>
<a:link id="cloumn_code_save_link" model="elec.ELEC1000.cloumn_code_query" modelaction="batch_update"/>
<a:link id="cloumn_code_delete_link" model="elec.ELEC1000.cloumn_code_query" modelaction="batch_update"/>
<script type="text/javascript"><![CDATA[
function elec_hls811_add() {
var ds = $('cloumn_para_ds');
var record = ds.create(ds.currentIndex);
$('cloumn_para_ds_id').showEditorByRecord(record);
}
function elec_hls811_delete() {
debugger;
var ds = $('cloumn_para_ds');
var records = ds.getSelected();
if(records.length<=0){
Leaf.showMessage('提示','请勾选数据进行删除!');
return ;
}
var paras = [];
var detail_mask = Ext.getBody();
for(var n=0;n<records.length;n++){
records[n].set('_status', 'delete');
paras.push(records[n].data);
}
if (records.length != 0) {
Leaf.showConfirm('${l:HLS.PROMPT}', '${l:HLS030.CONFIRM_DELETE}', function() {
Leaf.request({
url: $('cloumn_code_delete_link').getUrl(),
para: paras,
success: function(res) {
Leaf.showMessage('提示','删除成功',function(){
ds.query();
});
},
failure: function() {
Leaf.Masker.unmask(detail_mask);
},
error: function() {
Leaf.Masker.unmask(detail_mask);
},
scope: this
});
});
}
}
function elec_hls811_save() {
debugger;
var ds = $('cloumn_para_ds');
var records=ds.getAll();
var paras = [];
/*var detail_masks = Ext.getBody();*/
var base_archive_id='${/parameter/@record_id}';
console.log(base_archive_id);
for(var n=0;n<records.length;n++){
if(records[n].isNew){
records[n].set('_status', 'insert');
}else{
records[n].set('_status', 'update');
}
records[n].set('base_archive_id', base_archive_id);
paras.push(records[n].data);
}
console.log(paras);
if (ds.validate()) {
Leaf.request({
url: $('cloumn_code_save_link').getUrl(),
para: paras,
success: function(res) {
Leaf.showMessage('提示','保存成功',function(){
ds.query();
});
},
failure: function() {
},
error: function() {
},
scope: this
});
}
}
function update_checklength(ds, record, name, value, oldvalue) {
}
]]></script>
<a:dataSets>
<a:dataSet id="cloumn_para_ds" autoQuery="true" model="elec.ELEC1000.cloumn_code_query" queryUrl="${/request/@context_path}/autocrud/elec.ELEC1000.cloumn_code_query/query?base_archive_id=${/parameter/@record_id}" queryDataSet="for_query_ds" selectable="true">
<a:fields>
<a:field name="cloumn_code" />
<a:field name="cloumn_name" />
<a:field name="base_archive_id" />
</a:fields>
<a:events>
<a:event name="update" handler="update_checklength"/>
</a:events>
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:screenTopToolbar>
<a:screenTitle/>
<a:gridButton click="elec_hls811_add" text="新增"/>
<a:gridButton click="elec_hls811_delete" text="删除"/>-
<a:gridButton click="elec_hls811_save" text="HLS.SAVE"/>
</a:screenTopToolbar>
<a:grid id="cloumn_para_ds_id" bindTarget="cloumn_para_ds" marginHeight="200" marginWidth="200" navBar="true">
<a:columns>
<a:column name="cloumn_code" editor="elec_text_ed" prompt="结构化字段code" width="150"/>
<a:column name="cloumn_name" editor="elec_text_ed" prompt="结构化字段描述" width="150"/>
</a:columns>
<a:editors>
<a:textField id="elec_text_ed"/>
<a:textField id="elec_text_ed_up" typeCase="upper"/>
<a:checkBox id="elec_checkbox_ed"/>
<a:lov id="elec_conBasicClauseParaDs_grid_lov"/>
<a:comboBox id="elec_hls811_comed"/>
</a:editors>
</a:grid>
</a:screenBody>
</a:view>
</a:screen>
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: wangwei
$Date: 2015-5-21 下午4:03:31
$Revision: 1.0
$Purpose:文件模板参数定义
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application">
<a:view>
<a:link id="je_template_save_link" model="elec.ELEC1000.je_template_query" modelaction="batch_update"/>
<a:link id="je_template_delete_link" model="elec.ELEC1000.je_template_query" modelaction="batch_update"/>
<script type="text/javascript"><![CDATA[
function voucher_hls811_add() {
var ds = $('je_template_ds');
var record = ds.create(ds.currentIndex);
$('je_template_ds_id').showEditorByRecord(record);
}
function voucher_hls811_delete() {
var ds = $('je_template_ds');
var records = ds.getSelected();
if(records.length<=0){
Leaf.showMessage('提示','请勾选数据进行删除!');
return;
}
var paras = [];
var detail_mask = Ext.getBody();
for(var n=0;n<records.length;n++){
records[n].set('_status', 'delete');
paras.push(records[n].data);
}
if (records.length != 0) {
Leaf.showConfirm('${l:HLS.PROMPT}', '${l:HLS030.CONFIRM_DELETE}', function() {
Leaf.request({
url: $('je_template_delete_link').getUrl(),
para: paras,
success: function(res) {
Leaf.showMessage('提示','删除成功',function(){
ds.query();
});
},
failure: function() {
Leaf.Masker.unmask(detail_mask);
},
error: function() {
Leaf.Masker.unmask(detail_mask);
},
scope: this
});
});
}
}
function voucher_hls811_save() {
var ds = $('je_template_ds');
var records=ds.getAll();
var paras = [];
var detail_mask = Ext.getBody();
var base_archive_id='${/parameter/@record_id}';
for(var n=0;n<records.length;n++){
if(records[n].isNew){
records[n].set('_status', 'insert');
}else{
records[n].set('_status', 'update');
}
records[n].set('base_archive_id', base_archive_id);
paras.push(records[n].data);
}
if (ds.validate()) {
Leaf.request({
url: $('je_template_save_link').getUrl(),
para: paras,
success: function(res) {
Leaf.showMessage('提示','保存成功',function(){
ds.query();
});
},
failure: function() {
Leaf.Masker.unmask(detail_mask);
},
error: function() {
Leaf.Masker.unmask(detail_mask);
},
scope: this
});
}
}
function je_template_update(ds, record, name, value, oldvalue) {
}
]]></script>
<a:dataSets>
<a:dataSet id="je_template_ds" autoQuery="true" model="elec.ELEC1000.je_template_query" queryUrl="${/request/@context_path}/autocrud/elec.ELEC1000.je_template_query/query?base_archive_id=${/parameter/@record_id}" queryDataSet="for_query_ds" selectable="true">
<a:fields>
<a:field name="je_template_code" />
<a:field name="je_template_name" />
</a:fields>
<a:events>
<a:event name="update" handler="je_template_update"/>
</a:events>
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:screenTopToolbar>
<a:screenTitle/>
<a:gridButton click="voucher_hls811_add" text="新增"/>
<a:gridButton click="voucher_hls811_delete" text="删除"/>
<a:gridButton click="voucher_hls811_save" text="HLS.SAVE"/>
</a:screenTopToolbar>
<a:grid id="je_template_ds_id" bindTarget="je_template_ds" marginHeight="200" marginWidth="200" navBar="true">
<a:columns>
<a:column name="je_template_code" editor="voucher_text_ed" prompt="凭证模板代码" width="150"/>
<a:column name="je_template_name" editor="voucher_text_ed" prompt="凭证模板描述" width="150"/>
</a:columns>
<a:editors>
<a:textField id="voucher_text_ed"/>
<a:textField id="voucher_text_ed_up" typeCase="upper"/>
<a:checkBox id="voucher_checkbox_ed"/>
<a:lov id="voucherconBasicClauseParaDs_grid_lov"/>
<a:comboBox id="voucher_hls811_comed"/>
</a:editors>
</a:grid>
</a:screenBody>
</a:view>
</a:screen>
......@@ -66,6 +66,8 @@
]]></style>
<a:dataSets>
<a:dataSet id="con202_clause_templet_tmplet_class_ds" lookupCode="CON202_TEMPLET_CLASS"/>
<a:dataSet id="yes_no_ds" lookupCode="YES_NO"/>
<a:dataSet id="archive_type_code" lookupCode="ARCHIVE_TYPE"/>
<a:dataSet id="hls220_templet_head_ds">
<a:fields>
<a:field name="templet_code" readOnly="true"/>
......@@ -79,6 +81,10 @@
<a:field name="required_flag" checkedValue="Y" defaultValue="Y" uncheckedValue="N"/>
<a:field name="cdd_item" prompt="HLS220.CDD_ITEM" required="true"/>
<a:field name="order_seq"/>
<a:field name="is_archive" />
<a:field name="archive_type"/>
<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="archive_type_code" returnField="archive_type" valueField="code_value"/>
<a:field name="templet_head_id" defaultValue="${/parameter/@templet_head_id}"/>
<a:field name="description" prompt="HLS220.DESCRIPTION" required="true"/>
<a:field name="enabled_flag" checkedValue="Y" defaultValue="Y" prompt="HLS.ENABLED_FLAG" uncheckedValue="N"/>
......@@ -142,6 +148,8 @@
<!-- <a:column name="incept_tab_group" editor="hls220_templet_line_grid_tf" width="40"/> -->
<a:column name="lender_required_flag" editor="hls220_templet_line_grid_ck" width="60"/>
<a:column name="enabled_flag" editor="hls220_templet_line_grid_ck" width="40"/>
<a:column name="is_archive_desc" editor="con202_clause_templet_grid_cb" prompt="电子档案传输对象" width="120"/>
<a:column name="archive_type_desc" editor="con202_clause_templet_grid_cb" prompt="附件类型" width="120"/>
<!-- <a:column name="lender_display_flag" editor="hls220_templet_line_grid_ck" width="60"/> -->
<!-- <a:column name="lender_tab_group" editor="hls220_templet_line_grid_tf" width="40"/> -->
</a:columns>
......
......@@ -72,12 +72,37 @@
{
record.set('can_cancel','N');
}
if(name=='is_archive_desc')
{
if(value=='是'){
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_desc')=='是'){
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>
<a:dataSets>
<a:dataSet id="yes_no_ds" lookupCode="YES_NO"/>
<a:dataSet id="sub_category_ds" lookupCode="ZJ_WFL_SUB_CATEGORY"/>
<a:dataSet id="elec_file_type" lookupCode="ELEC_FILE_TYPE"/>
<a:dataSet id="para_workflowDs" autoCreate="true" model="zjwfl.zj_wfl_workflow">
<a:fields>
<a:field name="workflow_type_code" lovGridHeight="300" lovHeight="450" lovService="zjwfl.zj_wfl_workflow_type_lov" lovWidth="550" title="工作流类型">
......@@ -87,6 +112,8 @@
<a:map from="workflow_type_desc" to="workflow_type_desc"/>
</a:mapping>
</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="sub_category_desc" displayField="code_value_name" options="sub_category_ds" returnField="sub_category" 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"/>
......@@ -96,7 +123,11 @@
<a:fields>
<a:field name="workflow_code" required="true"/>
<a:field name="workflow_desc" required="true"/>
<a:field name="is_archive" />
<a:field name="archive_type"/>
<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="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="enabled_flag" checkedValue="Y" defaultValue="Y" uncheckedValue="N"/>
<a:field name="can_cancel" checkedValue="Y" defaultValue="N" uncheckedValue="N"/>
<a:field name="workflow_type_code" lovGridHeight="300" lovHeight="450" lovService="zjwfl.zj_wfl_workflow_type_lov" lovWidth="550" required="true" title="工作流类型">
......@@ -117,6 +148,7 @@
</a:fields>
<a:events>
<a:event name="update" handler="onUpdate_workflowDs"/>
<a:event name="load" handler="onLoad_workflowDs"/>
</a:events>
</a:dataSet>
</a:dataSets>
......@@ -127,6 +159,8 @@
<a:textField name="workflow_desc" bindTarget="para_workflowDs" maxLength="2000" 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:hBox>
<a:button click="workflowDs_query" text="HAP_QUERY"/>
......@@ -149,6 +183,8 @@
<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="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:editors>
<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