Commit 56e493f4 authored by Luochenglong's avatar Luochenglong

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

parent 3de11544
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: LR
$Date: 2013-9-2 上午09:38:55
$Revision: 1.0
$Purpose:
$Author: luochenglong
$Date: 2023-02-07 下午2:03:31
$Revision: 1.0
$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: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" />
......
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: LR
$Date: 2013-9-2 上午09:38:55
$Revision: 1.0
$Purpose:
$Author: luochenglong
$Date: 2023-02-07 早上 11:03:31
$Revision: 1.0
$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:fields>
......
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: LR
$Date: 2013-9-2 上午09:38:55
$Revision: 1.0
$Purpose:
$Author: luochenglong
$Date: 2023-02-07 下午3:03:31
$Revision: 1.0
$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:fields>
......
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: wangwei
$Date: 2015-5-21 下午4:03:31
$Author: luochenglong
$Date: 2023-02-07 下午2:03:31
$Revision: 1.0
$Purpose:文件模板参数定义
$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"/>
<a:link id="cloumn_code_save_link" model="efile.EFILE1010.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[
function elec_hls811_add() {
function cloumn_code_add() {
var ds = $('cloumn_para_ds');
var record = ds.create(ds.currentIndex);
$('cloumn_para_ds_id').showEditorByRecord(record);
}
function elec_hls811_delete() {
function cloumn_code_delete() {
debugger;
var ds = $('cloumn_para_ds');
var records = ds.getSelected();
......@@ -56,7 +56,7 @@
}
function elec_hls811_save() {
function cloumn_code_save() {
debugger;
var ds = $('cloumn_para_ds');
var records=ds.getAll();
......@@ -109,7 +109,7 @@
}
]]></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: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:field name="cloumn_code" />
<a:field name="cloumn_name" />
......@@ -123,9 +123,9 @@
<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:gridButton click="cloumn_code_add" text="新增"/>
<a:gridButton click="cloumn_code_delete" text="删除"/>-
<a:gridButton click="cloumn_code_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>
......@@ -137,7 +137,7 @@
<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:comboBox id="cloumn_code_comed"/>
</a:editors>
</a:grid>
</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"?>
<!--
$Author: wangwei
$Date: 2015-5-21 下午4:03:31
$Author: luochenglong
$Date: 2023-02-07 下午3:03:31
$Revision: 1.0
$Purpose:文件模板参数定义
$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"/>
<a:link id="je_template_save_link" model="efile.EFILE1010.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[
function voucher_hls811_add() {
function je_template_add() {
var ds = $('je_template_ds');
var record = ds.create(ds.currentIndex);
$('je_template_ds_id').showEditorByRecord(record);
}
function voucher_hls811_delete() {
function je_template_delete() {
var ds = $('je_template_ds');
var records = ds.getSelected();
if(records.length<=0){
......@@ -55,7 +55,7 @@
}
function voucher_hls811_save() {
function je_template_save() {
var ds = $('je_template_ds');
var records=ds.getAll();
var paras = [];
......@@ -104,7 +104,7 @@
}
]]></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: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:field name="je_template_code" />
<a:field name="je_template_name" />
......@@ -117,9 +117,9 @@
<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:gridButton click="je_template_add" text="新增"/>
<a:gridButton click="je_template_delete" text="删除"/>
<a:gridButton click="je_template_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>
......@@ -131,7 +131,7 @@
<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:comboBox id="je_template_comed"/>
</a:editors>
</a:grid>
</a:screenBody>
......
......@@ -72,9 +72,9 @@
{
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').setReadOnly(false);
}else{
......@@ -87,7 +87,7 @@
function onLoad_workflowDs(ds) {
var records=ds.getAll();
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').setReadOnly(false);
}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