Commit 56e493f4 authored by Luochenglong's avatar Luochenglong

文件路径迁移 电子档案新增字段 代码规范 工作流定义判断逻辑修改add by 35022 luochenglong

parent 3de11544
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- <!--
$Author: LR $Author: luochenglong
$Date: 2013-9-2 上午09:38:55 $Date: 2023-02-07 下午2:03:31
$Revision: 1.0 $Revision: 1.0
$Purpose: $Purpose: 结构化字段bm
--> -->
<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: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:fields>
<bm:field name="base_archive_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="BASE_ARCHIVE_ID" /> <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="sture_data_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="STURE_DATA_ID" />
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- <!--
$Author: LR $Author: luochenglong
$Date: 2013-9-2 上午09:38:55 $Date: 2023-02-07 早上 11:03:31
$Revision: 1.0 $Revision: 1.0
$Purpose: $Purpose: 电子档案类型定义bm
--> -->
<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: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:fields>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- <!--
$Author: LR $Author: luochenglong
$Date: 2013-9-2 上午09:38:55 $Date: 2023-02-07 下午3:03:31
$Revision: 1.0 $Revision: 1.0
$Purpose: $Purpose: 凭证模板bm
--> -->
<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: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:fields>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- <!--
$Author: wangwei $Author: luochenglong
$Date: 2015-5-21 下午4:03:31 $Date: 2023-02-07 下午2:03:31
$Revision: 1.0 $Revision: 1.0
$Purpose:文件模板参数定义 $Purpose: 结构化字段定义
--> -->
<a:screen xmlns:a="http://www.leaf-framework.org/application"> <a:screen xmlns:a="http://www.leaf-framework.org/application">
<a:view> <a:view>
<a:link id="cloumn_code_save_link" model="elec.ELEC1000.cloumn_code_query" modelaction="batch_update"/> <a:link id="cloumn_code_save_link" model="efile.EFILE1010.cloumn_code_query" modelaction="batch_update"/>
<a:link id="cloumn_code_delete_link" model="elec.ELEC1000.cloumn_code_query" modelaction="batch_update"/> <a:link id="cloumn_code_delete_link" model="efile.EFILE1010.cloumn_code_query" modelaction="batch_update"/>
<script type="text/javascript"><![CDATA[ <script type="text/javascript"><![CDATA[
function elec_hls811_add() { function cloumn_code_add() {
var ds = $('cloumn_para_ds'); var ds = $('cloumn_para_ds');
var record = ds.create(ds.currentIndex); var record = ds.create(ds.currentIndex);
$('cloumn_para_ds_id').showEditorByRecord(record); $('cloumn_para_ds_id').showEditorByRecord(record);
} }
function elec_hls811_delete() { function cloumn_code_delete() {
debugger; debugger;
var ds = $('cloumn_para_ds'); var ds = $('cloumn_para_ds');
var records = ds.getSelected(); var records = ds.getSelected();
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
} }
function elec_hls811_save() { function cloumn_code_save() {
debugger; debugger;
var ds = $('cloumn_para_ds'); var ds = $('cloumn_para_ds');
var records=ds.getAll(); var records=ds.getAll();
...@@ -109,7 +109,7 @@ ...@@ -109,7 +109,7 @@
} }
]]></script> ]]></script>
<a:dataSets> <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:dataSet id="cloumn_para_ds" autoQuery="true" model="efile.EFILE1010.cloumn_code_query" queryUrl="${/request/@context_path}/autocrud/efile.EFILE1010.cloumn_code_query/query?base_archive_id=${/parameter/@record_id}" queryDataSet="for_query_ds" selectable="true">
<a:fields> <a:fields>
<a:field name="cloumn_code" /> <a:field name="cloumn_code" />
<a:field name="cloumn_name" /> <a:field name="cloumn_name" />
...@@ -123,9 +123,9 @@ ...@@ -123,9 +123,9 @@
<a:screenBody> <a:screenBody>
<a:screenTopToolbar> <a:screenTopToolbar>
<a:screenTitle/> <a:screenTitle/>
<a:gridButton click="elec_hls811_add" text="新增"/> <a:gridButton click="cloumn_code_add" text="新增"/>
<a:gridButton click="elec_hls811_delete" text="删除"/>- <a:gridButton click="cloumn_code_delete" text="删除"/>-
<a:gridButton click="elec_hls811_save" text="HLS.SAVE"/> <a:gridButton click="cloumn_code_save" text="HLS.SAVE"/>
</a:screenTopToolbar> </a:screenTopToolbar>
<a:grid id="cloumn_para_ds_id" bindTarget="cloumn_para_ds" marginHeight="200" marginWidth="200" navBar="true"> <a:grid id="cloumn_para_ds_id" bindTarget="cloumn_para_ds" marginHeight="200" marginWidth="200" navBar="true">
<a:columns> <a:columns>
...@@ -137,7 +137,7 @@ ...@@ -137,7 +137,7 @@
<a:textField id="elec_text_ed_up" typeCase="upper"/> <a:textField id="elec_text_ed_up" typeCase="upper"/>
<a:checkBox id="elec_checkbox_ed"/> <a:checkBox id="elec_checkbox_ed"/>
<a:lov id="elec_conBasicClauseParaDs_grid_lov"/> <a:lov id="elec_conBasicClauseParaDs_grid_lov"/>
<a:comboBox id="elec_hls811_comed"/> <a:comboBox id="cloumn_code_comed"/>
</a:editors> </a:editors>
</a:grid> </a:grid>
</a:screenBody> </a:screenBody>
......
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: luochenglong
$Date: 2023-02-09 早上 10:03:31
$Revision: 1.0
$Purpose: 附件取值SQL
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application">
<a:view>
<script type="text/javascript"><![CDATA[
function okbtn() {
var record = $('para_lov_ds').getAt(0);
$('${/parameter/@lovid}').commit(record);
}
function returnok() {
$('${/parameter/@lovid}').win.close();
}
]]></script>
<a:dataSets>
<a:dataSet id="para_lov_ds" autoCreate="true">
<a:fields>
<a:field name="lov_sql"/>
</a:fields>
</a:dataSet>
</a:dataSets>
<script type="text/javascript"><![CDATA[
function initSql(){
var sql=$('efile_type_ds').getCurrentRecord().get('atm_sql');
$('para_lov_ds').getAt(0).set('lov_sql',sql);
}
initSql();
]]></script>
<a:screenBody>
<a:form column="1" style="margin-top:10px;margin-left:10px;">
<a:textArea name="lov_sql" bindTarget="para_lov_ds" height="320" width="500"/>
</a:form>
<a:hBox style="margin-left:10px;margin-bottom:20px;">
<a:button id="okbtnid" click="okbtn" text="PROMPT.OK"/>
<a:button click="returnok" text="PROMPT.RETURN"/>
</a:hBox>
</a:screenBody>
</a:view>
</a:screen>
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: luochenglong
$Date: 2023-02-09 早上 10:05:31
$Revision: 1.0
$Purpose: 凭证模板取值SQL
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application">
<a:view>
<script type="text/javascript"><![CDATA[
function okbtn() {
var record = $('para_lov_ds').getAt(0);
$('${/parameter/@lovid}').commit(record);
}
function returnok() {
$('${/parameter/@lovid}').win.close();
}
]]></script>
<a:dataSets>
<a:dataSet id="para_lov_ds" autoCreate="true">
<a:fields>
<a:field name="lov_sql"/>
</a:fields>
</a:dataSet>
</a:dataSets>
<script type="text/javascript"><![CDATA[
function initSql(){
var sql=$('efile_type_ds').getCurrentRecord().get('je_source_sql');
$('para_lov_ds').getAt(0).set('lov_sql',sql);
}
initSql();
]]></script>
<a:screenBody>
<a:form column="1" style="margin-top:10px;margin-left:10px;">
<a:textArea name="lov_sql" bindTarget="para_lov_ds" height="320" width="500"/>
</a:form>
<a:hBox style="margin-left:10px;margin-bottom:20px;">
<a:button id="okbtnid" click="okbtn" text="PROMPT.OK"/>
<a:button click="returnok" text="PROMPT.RETURN"/>
</a:hBox>
</a:screenBody>
</a:view>
</a:screen>
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: luochenglong
$Date: 2023-02-09 早上 10:15:31
$Revision: 1.0
$Purpose: 结构化数据取值SQL
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application">
<a:view>
<script type="text/javascript"><![CDATA[
function okbtn() {
var record = $('para_lov_ds').getAt(0);
$('${/parameter/@lovid}').commit(record);
}
function returnok() {
$('${/parameter/@lovid}').win.close();
}
]]></script>
<a:dataSets>
<a:dataSet id="para_lov_ds" autoCreate="true">
<a:fields>
<a:field name="lov_sql"/>
</a:fields>
</a:dataSet>
</a:dataSets>
<script type="text/javascript"><![CDATA[
function initSql(){
var sql=$('efile_type_ds').getCurrentRecord().get('stru_data_sql');
$('para_lov_ds').getAt(0).set('lov_sql',sql);
}
initSql();
]]></script>
<a:screenBody>
<a:form column="1" style="margin-top:10px;margin-left:10px;">
<a:textArea name="lov_sql" bindTarget="para_lov_ds" height="320" width="500"/>
</a:form>
<a:hBox style="margin-left:10px;margin-bottom:20px;">
<a:button id="okbtnid" click="okbtn" text="PROMPT.OK"/>
<a:button click="returnok" text="PROMPT.RETURN"/>
</a:hBox>
</a:screenBody>
</a:view>
</a:screen>
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- <!--
$Author: wangwei $Author: luochenglong
$Date: 2015-5-21 下午4:03:31 $Date: 2023-02-07 早上10:03:31
$Revision: 1.0 $Revision: 1.0
$Purpose:文件模板参数定义 $Purpose:电子档案类型定义
--> -->
<a:screen xmlns:a="http://www.leaf-framework.org/application"> <a:screen xmlns:a="http://www.leaf-framework.org/application">
<a:view> <a:view>
<a:link id="hls_doc_file_para_table_list_link_id" url="${/request/@context_path}/modules/hls/HLS811/hls_doc_file_para_table_list.lview"/> <a:link id="cloumn_code_link_id" url="${/request/@context_path}/modules/efile/EFILE1010/cloumn_define.lview"/>
<a:link id="cloumn_code_link_id" url="${/request/@context_path}/modules/elec/ELEC1000/cloumn_define.lview"/> <a:link id="je_template_link_id" url="${/request/@context_path}/modules/efile/EFILE1010/voucher_ass_template.lview"/>
<a:link id="je_template_link_id" url="${/request/@context_path}/modules/elec/ELEC1000/voucher_ass_template.lview"/> <a:link id="elec_file_save_link" model="efile.EFILE1010.elec_file_type" modelaction="batch_update"/>
<a:link id="elec_file_save_link" model="elec.ELEC1000.elec_file_type" modelaction="batch_update"/> <a:link id="elec_file_delete_link" model="efile.EFILE1010.elec_file_type" modelaction="batch_update"/>
<a:link id="elec_file_delete_link" model="elec.ELEC1000.elec_file_type" modelaction="batch_update"/>
<script type="text/javascript"><![CDATA[ <script type="text/javascript"><![CDATA[
function bookmarkFunction(record, name) {
if (record.isNew) {
if (name == 'bookmark') {
return 'text_ed_up';
}
}
return '';
}
function hls811_add() {
var ds = $('doc_file_templet_para_ds'); function efile_type_add() {
var ds = $('efile_type_ds');
var record = ds.create(ds.currentIndex); var record = ds.create(ds.currentIndex);
$('doc_file_templet_para_ds_id').showEditorByRecord(record); $('efile_type_ds_id').showEditorByRecord(record);
} }
function hls811_delete() { function efile_type_delete() {
var ds = $('doc_file_templet_para_ds'); var ds = $('efile_type_ds');
var records = ds.getSelected(); var records = ds.getSelected();
if (records.length != 0) { if (records.length != 0) {
Leaf.showConfirm('${l:HLS.PROMPT}', '${l:HLS030.CONFIRM_DELETE}', function() { Leaf.showConfirm('${l:HLS.PROMPT}', '${l:HLS030.CONFIRM_DELETE}', function() {
...@@ -40,8 +32,8 @@ ...@@ -40,8 +32,8 @@
} }
function hls811_save() { function efile_type_save() {
var ds = $('doc_file_templet_para_ds'); var ds = $('efile_type_ds');
var records=ds.getAll(); var records=ds.getAll();
var paras = []; var paras = [];
var detail_mask = Ext.getBody(); var detail_mask = Ext.getBody();
...@@ -76,27 +68,27 @@ ...@@ -76,27 +68,27 @@
} }
function hls811_exit() { function efile_type_exit() {
} }
function hls811_query() { function efile_type_query() {
$('doc_file_templet_para_ds').query(); $('efile_type_ds').query();
} }
function hls_doc_table_list_renderer(value, record, name) { function hls_doc_table_list_renderer(value, record, name) {
if(name=='cloumn_name'){ if(name=='cloumn_name'){
return '<a href="javascript:hls811_cloumn_list(\'' + record.get('base_archive_id') + '\')">结构化字段</a>'; return '<a href="javascript:efile_type_cloumn_list(\'' + record.get('base_archive_id') + '\')">结构化字段</a>';
} }
if(name=='je_template_code'){ if(name=='je_template_code'){
return '<a href="javascript:hls811_template_list(\'' + record.get('base_archive_id') + '\')">关联凭证模板</a>'; return '<a href="javascript:efile_type_template_list(\'' + record.get('base_archive_id') + '\')">关联凭证模板</a>';
} }
} }
function hls811_cloumn_list(record_id) { function efile_type_cloumn_list(record_id) {
var record = $('doc_file_templet_para_ds').findById(record_id); var record = $('efile_type_ds').findById(record_id);
var url = $('cloumn_code_link_id').getUrl(); var url = $('cloumn_code_link_id').getUrl();
if (!Leaf.isEmpty(record_id)) { if (!Leaf.isEmpty(record_id)) {
var win = new Leaf.Window({ var win = new Leaf.Window({
...@@ -112,8 +104,8 @@ ...@@ -112,8 +104,8 @@
} }
function hls811_template_list(record_id) { function efile_type_template_list(record_id) {
var record = $('doc_file_templet_para_ds').findById(record_id); var record = $('efile_type_ds').findById(record_id);
var url = $('je_template_link_id').getUrl(); var url = $('je_template_link_id').getUrl();
if (!Leaf.isEmpty(record_id)) { if (!Leaf.isEmpty(record_id)) {
var win = new Leaf.Window({ var win = new Leaf.Window({
...@@ -134,7 +126,7 @@ ...@@ -134,7 +126,7 @@
} }
]]></script> ]]></script>
<a:dataSets> <a:dataSets>
<a:dataSet id="hls811_bookmark_type_ds" lookupCode="BOOKMARK_TYPE"/> <a:dataSet id="efile_type_bookmark_type_ds" lookupCode="BOOKMARK_TYPE"/>
<a:dataSet id="enable_flag_ds" lookupCode="ENABLED_STATUS"/> <a:dataSet id="enable_flag_ds" lookupCode="ENABLED_STATUS"/>
<a:dataSet id="yes_no_ds" lookupCode="YES_NO"/> <a:dataSet id="yes_no_ds" lookupCode="YES_NO"/>
<a:dataSet id="underline_ds" lookupCode="UNDERLINE"/> <a:dataSet id="underline_ds" lookupCode="UNDERLINE"/>
...@@ -151,7 +143,7 @@ ...@@ -151,7 +143,7 @@
<a:field name="je_check_flag_desc" displayField="code_value_name" options="yes_no_ds" returnField="je_check_flag" valueField="code_value"/> <a:field name="je_check_flag_desc" displayField="code_value_name" options="yes_no_ds" returnField="je_check_flag" valueField="code_value"/>
</a:fields> </a:fields>
</a:dataSet> </a:dataSet>
<a:dataSet id="doc_file_templet_para_ds" autoQuery="true" model="elec.ELEC1000.elec_file_type" queryDataSet="for_query_ds" selectable="true"> <a:dataSet id="efile_type_ds" autoQuery="true" model="efile.EFILE1010.elec_file_type" queryDataSet="for_query_ds" selectable="true">
<a:fields> <a:fields>
<a:field name="archive_type_desc" displayField="code_value_name" options="data_cf_ds" returnField="archive_type" valueField="code_value"/> <a:field name="archive_type_desc" displayField="code_value_name" options="data_cf_ds" returnField="archive_type" valueField="code_value"/>
<a:field name="is_workflow_desc" displayField="code_value_name" options="yes_no_ds" returnField="is_workflow" valueField="code_value"/> <a:field name="is_workflow_desc" displayField="code_value_name" options="yes_no_ds" returnField="is_workflow" valueField="code_value"/>
...@@ -160,9 +152,23 @@ ...@@ -160,9 +152,23 @@
<a:field name="je_check_flag_desc" displayField="code_value_name" options="yes_no_ds" returnField="je_check_flag" valueField="code_value"/> <a:field name="je_check_flag_desc" displayField="code_value_name" options="yes_no_ds" returnField="je_check_flag" valueField="code_value"/>
<a:field name="workflow_desc" /> <a:field name="workflow_desc" />
<a:field name="cloumn_name" /> <a:field name="cloumn_name" />
<a:field name="je_source_sql" lovHeight="430" lovUrl="${/request/@context_path}/modules/efile/EFILE1010/efile_je_source_sql_lov.lview" lovWidth="580" title="凭证取值SQL">
<a:mapping>
<a:map from="lov_sql" to="je_source_sql"/>
</a:mapping>
</a:field>
<a:field name="stru_data_sql" lovHeight="430" lovUrl="${/request/@context_path}/modules/efile/EFILE1010/efile_stu_data_sql_lov.lview" lovWidth="580" title="结构化数据取值sql">
<a:mapping>
<a:map from="lov_sql" to="stru_data_sql"/>
</a:mapping>
</a:field>
<a:field name="atm_sql" lovHeight="430" lovUrl="${/request/@context_path}/modules/efile/EFILE1010/efile_atm_sql_lov.lview" lovWidth="580" title="附件取值sql">
<a:mapping>
<a:map from="lov_sql" to="atm_sql"/>
</a:mapping>
</a:field>
<a:field name="base_archive_id" /> <a:field name="base_archive_id" />
<a:field name="je_template_code" /> <a:field name="je_template_code" />
<a:field name="je_source_sql" />
<a:field name="archive_type" /> <a:field name="archive_type" />
<a:field name="is_workflow" /> <a:field name="is_workflow" />
<a:field name="post_stru_data_flag" /> <a:field name="post_stru_data_flag" />
...@@ -176,12 +182,12 @@ ...@@ -176,12 +182,12 @@
</a:dataSets> </a:dataSets>
<a:screenBody> <a:screenBody>
<a:screenTopToolbar> <a:screenTopToolbar>
<a:screenTitle/> <!--<a:screenTitle/>-->
<a:gridButton click="hls811_exit" text="退出"/> <a:gridButton click="efile_type_exit" text="退出"/>
<!-- <a:gridButton click="hls811_add" text="新增"/> <!-- <a:gridButton click="efile_type_add" text="新增"/>
<a:gridButton click="hls811_delete" text="删除"/>--> <a:gridButton click="efile_type_delete" text="删除"/>-->
<a:gridButton click="hls811_query" text="HLS.QUERY"/> <a:gridButton click="efile_type_query" text="HLS.QUERY"/>
<a:gridButton click="hls811_save" text="HLS.SAVE"/> <a:gridButton click="efile_type_save" text="HLS.SAVE"/>
</a:screenTopToolbar> </a:screenTopToolbar>
<a:form column="4" marginWidth="200" title="查询条件"> <a:form column="4" marginWidth="200" title="查询条件">
<a:comboBox name="archive_type_desc" bindTarget="for_query_ds" prompt="资料分类"/> <a:comboBox name="archive_type_desc" bindTarget="for_query_ds" prompt="资料分类"/>
...@@ -189,29 +195,31 @@ ...@@ -189,29 +195,31 @@
<a:comboBox name="post_atm_flag_desc" bindTarget="for_query_ds" prompt="是否传递附件"/> <a:comboBox name="post_atm_flag_desc" bindTarget="for_query_ds" prompt="是否传递附件"/>
<a:comboBox name="je_check_flag_desc" bindTarget="for_query_ds" prompt="是否需要传递凭证号"/> <a:comboBox name="je_check_flag_desc" bindTarget="for_query_ds" prompt="是否需要传递凭证号"/>
</a:form> </a:form>
<a:grid id="doc_file_templet_para_ds_id" bindTarget="doc_file_templet_para_ds" marginHeight="200" marginWidth="200" navBar="true"> <a:grid id="efile_type_ds_id" bindTarget="efile_type_ds" marginHeight="200" marginWidth="200" navBar="true">
<a:toolBar> <a:toolBar>
<a:button type="add"/> <a:button type="add"/>
<a:button type="delete"/> <a:button type="delete"/>
<!-- <a:button type="save"/>--> <!-- <a:button type="save"/>-->
</a:toolBar> </a:toolBar>
<a:columns> <a:columns>
<a:column name="archive_type_desc" editor="hls811_comed" prompt="资料分类" width="120"/> <a:column name="archive_type_desc" editor="efile_type_comed" prompt="资料分类" width="120"/>
<a:column name="is_workflow_desc" editor="hls811_comed" prompt="是否关联工作流" width="120"/> <a:column name="is_workflow_desc" editor="efile_type_comed" prompt="是否关联工作流" width="120"/>
<a:column name="workflow_desc" editor="text_ed" prompt="工作流描述" width="130"/> <a:column name="workflow_desc" editor="text_ed" prompt="工作流描述" width="130"/>
<a:column name="post_stru_data_flag_desc" editor="hls811_comed" prompt="是否传递结构化数据" width="150"/> <a:column name="post_stru_data_flag_desc" editor="efile_type_comed" prompt="是否传递结构化数据" width="150"/>
<a:column name="cloumn_name" align="center" prompt="结构化字段" renderer="hls_doc_table_list_renderer"/> <a:column name="cloumn_name" align="center" prompt="结构化字段" renderer="hls_doc_table_list_renderer"/>
<a:column name="post_atm_flag_desc" align="center" editor="hls811_comed" width="120" prompt="是否传递附件"/> <a:column name="stru_data_sql" align="center" editor="conBasicClauseParaDs_grid_lov" width="300" prompt="结构化数据取值sql"/>
<a:column name="post_atm_flag_desc" align="center" editor="efile_type_comed" width="120" prompt="是否传递附件"/>
<a:column name="atm_sql" align="center" editor="conBasicClauseParaDs_grid_lov" width="330" prompt="附件取值sql"/>
<a:column name="je_template_code" align="center" width="100" renderer="hls_doc_table_list_renderer" prompt="关联凭证模板"/> <a:column name="je_template_code" align="center" width="100" renderer="hls_doc_table_list_renderer" prompt="关联凭证模板"/>
<a:column name="je_check_flag_desc" align="center" editor="hls811_comed" width="150" prompt="是否需要传输凭证号"/> <a:column name="je_check_flag_desc" align="center" editor="efile_type_comed" width="150" prompt="是否需要传输凭证号"/>
<a:column name="je_source_sql" editor="text_ed" prompt="凭证取值SQL" width="330"/> <a:column name="je_source_sql" editor="conBasicClauseParaDs_grid_lov" prompt="凭证取值SQL" width="330"/>
</a:columns> </a:columns>
<a:editors> <a:editors>
<a:textField id="text_ed"/> <a:textField id="text_ed"/>
<a:textField id="text_ed_up" typeCase="upper"/> <a:textField id="text_ed_up" typeCase="upper"/>
<a:checkBox id="checkbox_ed"/> <a:checkBox id="checkbox_ed"/>
<a:lov id="conBasicClauseParaDs_grid_lov"/> <a:lov id="conBasicClauseParaDs_grid_lov"/>
<a:comboBox id="hls811_comed"/> <a:comboBox id="efile_type_comed"/>
</a:editors> </a:editors>
</a:grid> </a:grid>
</a:screenBody> </a:screenBody>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- <!--
$Author: wangwei $Author: luochenglong
$Date: 2015-5-21 下午4:03:31 $Date: 2023-02-07 下午3:03:31
$Revision: 1.0 $Revision: 1.0
$Purpose:文件模板参数定义 $Purpose: 凭证模板定义
--> -->
<a:screen xmlns:a="http://www.leaf-framework.org/application"> <a:screen xmlns:a="http://www.leaf-framework.org/application">
<a:view> <a:view>
<a:link id="je_template_save_link" model="elec.ELEC1000.je_template_query" modelaction="batch_update"/> <a:link id="je_template_save_link" model="efile.EFILE1010.je_template_query" modelaction="batch_update"/>
<a:link id="je_template_delete_link" model="elec.ELEC1000.je_template_query" modelaction="batch_update"/> <a:link id="je_template_delete_link" model="efile.EFILE1010.je_template_query" modelaction="batch_update"/>
<script type="text/javascript"><![CDATA[ <script type="text/javascript"><![CDATA[
function voucher_hls811_add() { function je_template_add() {
var ds = $('je_template_ds'); var ds = $('je_template_ds');
var record = ds.create(ds.currentIndex); var record = ds.create(ds.currentIndex);
$('je_template_ds_id').showEditorByRecord(record); $('je_template_ds_id').showEditorByRecord(record);
} }
function voucher_hls811_delete() { function je_template_delete() {
var ds = $('je_template_ds'); var ds = $('je_template_ds');
var records = ds.getSelected(); var records = ds.getSelected();
if(records.length<=0){ if(records.length<=0){
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
} }
function voucher_hls811_save() { function je_template_save() {
var ds = $('je_template_ds'); var ds = $('je_template_ds');
var records=ds.getAll(); var records=ds.getAll();
var paras = []; var paras = [];
...@@ -104,7 +104,7 @@ ...@@ -104,7 +104,7 @@
} }
]]></script> ]]></script>
<a:dataSets> <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:dataSet id="je_template_ds" autoQuery="true" model="efile.EFILE1010.je_template_query" queryUrl="${/request/@context_path}/autocrud/efile.EFILE1010.je_template_query/query?base_archive_id=${/parameter/@record_id}" queryDataSet="for_query_ds" selectable="true">
<a:fields> <a:fields>
<a:field name="je_template_code" /> <a:field name="je_template_code" />
<a:field name="je_template_name" /> <a:field name="je_template_name" />
...@@ -117,9 +117,9 @@ ...@@ -117,9 +117,9 @@
<a:screenBody> <a:screenBody>
<a:screenTopToolbar> <a:screenTopToolbar>
<a:screenTitle/> <a:screenTitle/>
<a:gridButton click="voucher_hls811_add" text="新增"/> <a:gridButton click="je_template_add" text="新增"/>
<a:gridButton click="voucher_hls811_delete" text="删除"/> <a:gridButton click="je_template_delete" text="删除"/>
<a:gridButton click="voucher_hls811_save" text="HLS.SAVE"/> <a:gridButton click="je_template_save" text="HLS.SAVE"/>
</a:screenTopToolbar> </a:screenTopToolbar>
<a:grid id="je_template_ds_id" bindTarget="je_template_ds" marginHeight="200" marginWidth="200" navBar="true"> <a:grid id="je_template_ds_id" bindTarget="je_template_ds" marginHeight="200" marginWidth="200" navBar="true">
<a:columns> <a:columns>
...@@ -131,7 +131,7 @@ ...@@ -131,7 +131,7 @@
<a:textField id="voucher_text_ed_up" typeCase="upper"/> <a:textField id="voucher_text_ed_up" typeCase="upper"/>
<a:checkBox id="voucher_checkbox_ed"/> <a:checkBox id="voucher_checkbox_ed"/>
<a:lov id="voucherconBasicClauseParaDs_grid_lov"/> <a:lov id="voucherconBasicClauseParaDs_grid_lov"/>
<a:comboBox id="voucher_hls811_comed"/> <a:comboBox id="je_template_comed"/>
</a:editors> </a:editors>
</a:grid> </a:grid>
</a:screenBody> </a:screenBody>
......
...@@ -72,9 +72,9 @@ ...@@ -72,9 +72,9 @@
{ {
record.set('can_cancel','N'); record.set('can_cancel','N');
} }
if(name=='is_archive_desc') if(name=='is_archive')
{ {
if(value==''){ if(value=='Y'){
record.getMeta().getField('archive_type_desc').setRequired(true); record.getMeta().getField('archive_type_desc').setRequired(true);
record.getMeta().getField('archive_type_desc').setReadOnly(false); record.getMeta().getField('archive_type_desc').setReadOnly(false);
}else{ }else{
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
function onLoad_workflowDs(ds) { function onLoad_workflowDs(ds) {
var records=ds.getAll(); var records=ds.getAll();
for (var u = 0;u < ds.getAll().length;u++) { for (var u = 0;u < ds.getAll().length;u++) {
if(records[u].get('is_archive_desc')=='是'){ if(records[u].get('is_archive')=='Y'){
records[u].getMeta().getField('archive_type_desc').setRequired(true); records[u].getMeta().getField('archive_type_desc').setRequired(true);
records[u].getMeta().getField('archive_type_desc').setReadOnly(false); records[u].getMeta().getField('archive_type_desc').setReadOnly(false);
}else{ }else{
......
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