Commit 580903cc authored by 陆正友's avatar 陆正友

报表功能

parent 96bdbe5a
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
SELECT *
FROM (SELECT li.attribute_6,
li.attribute_13,
li.attribute_18,
li.line_id,
li.error_message,
li.header_id
FROM fnd_interface_lines li, fnd_interface_headers hd
WHERE hd.header_id = li.header_id
AND hd.template_code = 'dcs_n'
AND HD.CREATED_BY = ${/session/@user_id}
AND li.line_number > 0
AND li.header_id =
(SELECT MAX(li.header_id)
FROM fnd_interface_lines li, fnd_interface_headers hd
WHERE li.header_id = hd.header_id
AND hd.template_code = 'dcs_n'
AND HD.CREATED_BY = ${/session/@user_id})) t1
ORDER BY t1.line_id ASC
#WHERE_CLAUSE#
]]>
</bm:query-sql>
</bm:operation>
<bm:operation name="update">
<bm:update-sql><![CDATA[
begin
hlcm_op_asset_depre_pkg.equipment_number_check(
p_header_id => ${/model/header/record/@header_id},
p_user_id => ${/session/@user_id}
);
end;
]]></bm:update-sql>
</bm:operation>
</bm:operations>
<bm:query-fields>
</bm:query-fields>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
SELECT *
FROM (SELECT a.period_name
FROM gld_periods a
WHERE a.adjustment_flag = 'N'
AND TO_DATE(a.period_name, 'YYYY-MM') < ADD_MONTHS(SYSDATE, + 0)
ORDER BY TO_DATE(a.period_name, 'YYYY-MM') DESC) t1
#WHERE_CLAUSE#
]]>
</bm:query-sql>
</bm:operation>
<bm:operation name="update">
<bm:update-sql><![CDATA[
begin
hlcm_op_asset_depre_pkg.save_asset_depreciate_hd(
p_header_id => ${@header_id},
p_dts => ${@dts},
p_user_id => ${/session/@user_id}
);
end;
]]></bm:update-sql>
</bm:operation>
</bm:operations>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
SELECT *
FROM (SELECT li.attribute_1,
li.attribute_2,
li.attribute_3,
li.attribute_4,
li.attribute_5,
li.attribute_6,
li.attribute_7,
li.attribute_8,
li.attribute_9,
li.attribute_10,
li.attribute_11,
li.attribute_12,
li.attribute_13,
li.attribute_14,
li.attribute_15,
li.attribute_16,
li.attribute_17,
li.attribute_18,
li.attribute_19,
li.attribute_20,
li.attribute_21,
li.attribute_22,
li.attribute_23,
li.attribute_24,
li.attribute_25,
li.line_id,
li.error_message,
li.header_id
FROM fnd_interface_lines li, fnd_interface_headers hd
WHERE hd.header_id = li.header_id
AND hd.template_code = 'depreciation'
AND HD.CREATED_BY = ${/session/@user_id}
AND li.line_number > 0
AND li.header_id =
(SELECT MAX(li.header_id)
FROM fnd_interface_lines li, fnd_interface_headers hd
WHERE li.header_id = hd.header_id
AND hd.template_code = 'depreciation'
AND HD.CREATED_BY = ${/session/@user_id})) t1
ORDER BY t1.line_id ASC
#WHERE_CLAUSE#
]]>
</bm:query-sql>
</bm:operation>
<bm:operation name="update">
<bm:update-sql><![CDATA[
begin
hlcm_op_asset_depre_pkg.dcs_check(
p_header_id => ${/model/header/record/@header_id},
p_user_id => ${/session/@user_id}
);
end;
]]></bm:update-sql>
</bm:operation>
</bm:operations>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
<bm:operations>
<bm:operation name="update">
<bm:update-sql><![CDATA[
begin
hlcm_op_asset_depre_pkg.dcs_no_import(
p_header_id => ${@header_id},
p_user_id => ${/session/@user_id}
);
end;
]]></bm:update-sql>
</bm:operation>
<bm:operation name="query">
<bm:query-sql><![CDATA[
SELECT *
FROM (SELECT ahd.depreciate_hd_id,
ahd.BALANCE_SHEET_ACCOUNT_CDE,
ahd.BALANCE_SHEET_ACCOUNT_DES,
ahd.ASSET_TYPE,
ahd.asset_number,
ahd.asset_desc,
to_char(ahd.ACQUISITION_COST_HIS, '9999999999999990.99') ACQUISITION_COST_HIS,
to_char(ahd.CAPITALIZATION_DATE, 'yyyy-mm-dd') c_date,
ahd.USEFUL_LIFE,
ahd.REMAINING_USEFUL_LIFE,
ahd.DEPRECIATION_TYPE,
to_char(ahd.ACQUISITION_COST_START, '9999999999999990.99') ACQUISITION_COST_START,
to_char(ahd.DEPRECIATE_SUM_START, '9999999999999990.99') DEPRECIATE_SUM_START,
to_char(ahd.WRITE_UP_SUM_START, '9999999999999990.99') WRITE_UP_SUM_START,
to_char(ahd.BOOK_VALUE_START, '9999999999999990.99') BOOK_VALUE_START,
to_char(ahd.CAPITALIZATION, '9999999999999990.99') CAPITALIZATION,
to_char(ahd.ACQUISITION_COST_SCRAP, '9999999999999990.99') ACQUISITION_COST_SCRAP,
to_char(ahd.BOOK_VALUE_SCRAP, '9999999999999990.99') BOOK_VALUE_SCRAP,
to_char(ahd.ACQUISITION_COST_TRANSFER, '9999999999999990.99') ACQUISITION_COST_TRANSFER,
to_char(ahd.BOOK_VALUE_TRANSFER, '9999999999999990.99') BOOK_VALUE_TRANSFER,
to_char(ahd.WRITE_UP_SUM, '9999999999999990.99') WRITE_UP_SUM,
to_char(ahd.SIMPLE_DEPRECIATE_SUM, '9999999999999990.99') SIMPLE_DEPRECIATE,
to_char(ahd.ACQUISITION_COST_END, '9999999999999990.99') ACQUISITION_COST_END,
to_char(ahd.BOOK_VALUE_END, '9999999999999990.99') BOOK_VALUE_END,
to_char(ahd.DEPRECIATE_SUM_TO_ENDDATE, '9999999999999990.99') DEPRECIATE_SUM_TO_ENDDATE,
to_char(ahd.DEPRECIATE_SUM_END, '9999999999999990.99') DEPRECIATE_SUM_END,
ahd.dts
FROM asset_depreciate_hd ahd) t1
where t1.asset_number = ${@asset_number}
ORDER BY t1.depreciate_hd_id desc
#WHERE_CLAUSE#
]]>
</bm:query-sql>
</bm:operation>
</bm:operations>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" dynamiccreateenabled="true"
trace="true">
<a:init-procedure>
<a:init-procedure>
<a:model-query fetchAll="true" model="prj.PRJ500D.user_agent_description" rootPath="user_agent_description"/>
</a:init-procedure>
<a:view>
......@@ -14,6 +14,8 @@
<a:link id="${/parameter/@layout_code}con_contract_query_link"
url="${/request/@context_path}/modules/cont/CON3200/con_re_incept_modify.lview"/>
<!-- <script src="${/request/@context_path}/javascripts/hap/dynamicStopAutoQuery.js" type="text/javascript"/>-->
<a:link id="${/parameter/@layout_code}con_contract_op_query_link"
url="${/request/@context_path}/modules/cont/CON3200/con_re_incept_op_modify.lview"/>
<script type="text/javascript"><![CDATA[
// stopDymanicAutoQuery('${/parameter/@layout_code}', 'G_CONTRACT_RESULT', 'con_contract');
......@@ -29,13 +31,28 @@
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, '${/parameter/@layout_code}con_contract_query_link', ds_id);
}
function open_contract_l_win(ds_id, record_id) {
var record = $(ds_id).findById(record_id);
var param = record.data;
param['function_usage'] = 'QUERY';
param['function_code'] = 'CON3200Q_OP';
param['maintain_type'] = 'QUERY';
param['url_title'] = '${l:CON301.CONTRACT_DETAIL}';
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, '${/parameter/@layout_code}con_contract_op_query_link', ds_id);
}
window['${/parameter/@layout_code}_dynamic_link_renderer'] = function (value, record, name, config_record) {
if (name == 'contract_number' && value) {
return '<a href="javascript:open_contract_win(\'' + record.ds.id + '\',\'' + record.id + '\')">' + value + '</a>';
if (record.get('business_type') == 'LEASE' || record.get('business_type') == 'LEASEBACK') {
return '<a href="javascript:open_contract_win(\'' + record.ds.id + '\',\'' + record.id + '\')">' + value + '</a>';
} else if (record.get('business_type') == 'LEASEOPERAT') {
return '<a href="javascript:open_contract_l_win(\'' + record.ds.id + '\',\'' + record.id + '\')">' + value + '</a>';
}
return value;
}
return value;
};
//页面加载事件
;
}
//页面加载事件
Leaf.onReady(function() {
var bp_code='${/model/user_agent_description/record/@bp_code}';
......@@ -76,6 +93,7 @@
}
});
]]></script>
<a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
</a:view>
......
......@@ -121,6 +121,9 @@
};
if(record.data.lease_name93=='Y'){//add by gzj
record.data.division=record.data.division+',93';
};
if(record.data.lease_name95=='Y'){
record.data.division=record.data.division+',95';
};
record.data.division=record.data.division.substr(1,record.data.division.length);
$('contract_sales_result_ds').query();
......@@ -217,6 +220,7 @@
<a:checkBox name="lease_name91" bindTarget="contract_sales_report_ds" prompt="神钢建机"/>//addby xsh35973 20221011 I-12357新增产品线
<a:checkBox name="lease_name92" bindTarget="contract_sales_report_ds" prompt="北京心诚"/>
<a:checkBox name="lease_name99" bindTarget="contract_sales_report_ds" prompt="工程机械"/>
<a:checkBox name="lease_name93" bindTarget="contract_sales_report_ds" prompt="新业务-厂商担保"/>
</a:form>
<a:grid id="contract_sales_result_ds_grid" bindTarget="contract_sales_result_ds" marginHeight="150" navBar="true" marginWidth="40">
......
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" trace="true">
<a:init-procedure outputPath="/parameter">
<a:model-query model="basic.hls_fnd_attribute_sequence" rootPath="header"/>
<a:import-excel header_id="${/model/header/record/@header_id}" separator=","
status_field="/parameter/@ImportSuccess" template_code="dcs_n"
user_id="${/session/@user_id}"/>
<!-- <a:model-query-->
<!-- defaultWhereClause="header_id=${/model/header/record/@header_id} and TEMPLATE_CODE = &apos;CSH_TRX_BANK&apos;"-->
<!-- model="basic.hls_fnd_attribute_status" rootPath="status"/>-->
<a:model-update model="cont.CON3450.dcs_n_import_query"/>
</a:init-procedure>
<a:view>
<a:link id="save_dcs_import_link" model="cont.CON3450.save_dcs_import"
modelaction="update"/>
<script type="text/javascript"><![CDATA[
function backBtn() {
//关闭页面
parent._input_window.close();
}
function returnBack() {
// 刷新页面
top.refreshFrame();
}
function change_error_message_color(record) {
if (record.get('error_message')) {
return 'background-color:#fc9492;';
}
}
var _input_window;
var import_flag = 0;
function import_dcs() {
//开始导入数据
Leaf.showConfirm('提示', '确定要导入信息吗,<font color="red">有错误信息的数据将不会被导入</font>', function () {
Leaf.Masker.mask(Ext.getBody(), '${l:HLS.EXECUTING}');
Leaf.request({
url: $('save_dcs_import_link').getUrl(),
// para: saveData,
para: {
header_id: '${/model/header/record/@header_id}'
},
scope: this,
success: function () {
// $('trx_abc_import').query();
Leaf.Masker.unmask(Ext.getBody());
Leaf.SideBar.show({
msg: '操作成功',
duration: 2000
});
//关闭该导入的界面
backBtn();
returnBack();
},
failure: function () {
Leaf.Masker.unmask(Ext.getBody());
},
error: function () {
Leaf.Masker.unmask(Ext.getBody());
}
});
});
}
]]></script>
<a:dataSets>
<a:dataSet id="dcs_no_ds" autoQuery="true" fetchAll="true"
model="cont.CON3450.dcs_n_import_query"
queryUrl="${/request/@context_path}/autocrud/cont.CON3450.dcs_n_import_query/query?header_id=${/model/header/record/@header_id}">
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:form id="success_form" height="400" title="THE_IMPORTED_DATA" width="440">
<a:screenTopToolbar>
<a:gridButton click="backBtn" text="退出"/>
<a:gridButton click="import_dcs" text="导入"/>
</a:screenTopToolbar>
<a:grid id="dcs_n_import_grid_id" bindTarget="dcs_no_ds"
height="340" navBar="false"
width="980" >
<a:columns>
<a:column name="error_message" prompt="错误提示" width="250" align="center"/>
<a:column name="attribute_6" prompt="资产编号" width="250" align="center"/>
<a:column name="attribute_18" prompt="折旧期间" width="200" align="center"/>
<a:column name="attribute_13" prompt="设备编号" width="250" align="center"/>
</a:columns>
</a:grid>
</a:form>
</a:screenBody>
<script type="text/javascript"><![CDATA[
]]></script>
</a:view>
</a:screen>
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: sf
$Date: 2015-4-8 上午09:03:15
$Revision: 1.0
$Purpose: excel导入收款
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" trace="true">
<a:init-procedure>
<a:model-query defaultWhereClause="t1.code = &apos;CSH_TRX_IMPORT_TEMPLATE&apos;"
model="sys.SYS120.hls_attachment_module" rootPath="template_path"/>
</a:init-procedure>
<a:view>
<a:link id="downloadFile_id" url="${/request/@context_path}/downloadFile.lview"/>
<script type="text/javascript"><![CDATA[
function downloadFile() {
new Leaf.Window({
url: $('downloadFile_id').getUrl(),
title: '${l:HLS.SUPPORTING_DOCUMENT}',
params: {
'table_name': 'HLS_ATTACHMENT_MODULE',
'header_id': '${/model/template_path/record/@attachment_module_id}'
},
width: 850,
height: 400
});
}
function saveClick() {
if (document.getElementById('importFile').value) {
var fileName = document.getElementById('importFile').value;
var fileType = fileName.substr(fileName.lastIndexOf("."));
if (fileType != '.xls' && fileType != '.xlsx' && fileType != '.xlsm') {
alert('${l:SELECT_CORRECT_IMPORT_FILE}');
} else {
doSubmit();
}
}
}
var _input_window;
function doSubmit() {
_input_window = new $L.Window({
title: '${l:HLS.IMPORT}',
width: 1050,
height: 500
});
new Ext.Template('<iframe id ="_input_window" name="_input_window" border="0" frameborder="0" height="100%" width="100%" style="border:none;padding:0px;margin:0px;"></iframe>').insertFirst(_input_window.body.dom, {}, true);
var form = document.getElementById('importForm');
var url = '${/request/@context_path}/modules/cont/CON3450/dcs_no_excel_import.lview?session_id=${/parameter/@session_id}&winid=${/parameter/@winid}&batch_id=${/parameter/@batch_id}&_csrf=${/session/@_csrf.token}';
form.action = url;
form.submit();
$('${/parameter/@winid}').close();
_input_window.on('close', function () {
$('${/parameter/@parent_ds_id}').query();
});
}
]]></script>
<a:dataSets>
<a:dataSet id="label_ds" autoCreate="true">
<a:fields>
<!--<a:field name="label1" defaultValue="注意:"/>-->
<a:field name="label2" defaultValue="${l:STRICT_IMPORTED_TEMPLATE_DATA}"/>
<a:field name="label3" defaultValue="${l:PRODUCT_MASTER_DATA_IMPORT}"/>
<a:field name="label4" defaultValue="${l:IMPORTER_ONLY_SUPPORTS}"/>
<a:field name="label5" defaultValue="${l:READ_THE_ABOVE_CAREFULLY}"/>
<a:field name="label6" defaultValue="${l:THE_IMPORT_IS_COMPLETE}"/>
</a:fields>
</a:dataSet>
</a:dataSets>
<a:fieldSet style="margin-left:10px;margin-top:10px;" title="IMPORT_CONSIDERATIONS" width="400">
<!--<a:label name="label1" bindTarget="label_ds" width="380"/>-->
<a:label name="label2" bindTarget="label_ds" style="margin-left:10px;" width="380"/>
<a:label name="label3" bindTarget="label_ds" style="margin-left:10px;" width="380"/>
<a:label name="label4" bindTarget="label_ds" style="margin-left:10px;" width="380"/>
<a:label name="label5" bindTarget="label_ds" style="color:#055A78;font-weight:bold;margin-left:10px;"
width="380"/>
<a:label name="label6" bindTarget="label_ds" style="color:#055A78;font-weight:bold;margin-left:10px;"
width="380"/>
</a:fieldSet>
<a:fieldSet style="margin-left:10px;margin-top:10px;" title="TMPLT_IMPORT_FILE" width="400">
<form name="upload" id="importForm" enctype="multipart/form-data" method="post" target="_input_window">
<label style="margin-left:10px;margin-top:10px;font-size:13px"><![CDATA[${l:PLEASE_SELECT_A_FILE}]]></label>
<input name="CONTENT" id="importFile" style="font-size:15px" type="file"/>
<input onclick="saveClick()" style="margin-left:25px;margin-top:10px;width:60px;height:23px"
type="button" value="${l:TMPLT_IMPORT}"/>
</form>
</a:fieldSet>
</a:view>
</a:screen>
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" trace="true">
<a:init-procedure outputPath="/parameter">
<a:model-query model="basic.hls_fnd_attribute_sequence" rootPath="header"/>
<a:import-excel header_id="${/model/header/record/@header_id}" separator=","
status_field="/parameter/@ImportSuccess" template_code="depreciation"
user_id="${/session/@user_id}"/>
<a:model-update model="cont.CON3450.depreciation_query"/>
</a:init-procedure>
<a:view>
<a:link id="save_dcs_import_link" model="cont.CON3450.depreciation_import"
modelaction="update"/>
<script type="text/javascript"><![CDATA[
function backBtn() {
//关闭页面
parent._input_window.close();
}
function returnBack() {
// 刷新页面
top.refreshFrame();
}
function change_error_message_color(record) {
if (record.get('error_message')) {
return 'background-color:#fc9492;';
}
}
var _input_window;
var import_flag = 0;
function import_dcs() {
//开始导入数据
Leaf.showConfirm('提示', '确定要导入信息吗,<font color="red">有错误信息的数据将不会被导入</font>', function () {
Leaf.Masker.mask(Ext.getBody(), '${l:HLS.EXECUTING}');
Leaf.request({
url: $('save_dcs_import_link').getUrl(),
para: {
header_id: '${/model/header/record/@header_id}',
dts : '${/parameter/@DTS}'
},
scope: this,
success: function () {
Leaf.Masker.unmask(Ext.getBody());
Leaf.SideBar.show({
msg: '操作成功',
duration: 2000
});
//关闭该导入的界面
backBtn();
returnBack();
},
failure: function () {
Leaf.Masker.unmask(Ext.getBody());
},
error: function () {
Leaf.Masker.unmask(Ext.getBody());
}
});
});
}
]]></script>
<a:dataSets>
<a:dataSet id="dcs_no_ds" autoQuery="true" fetchAll="true"
model="cont.CON3450.depreciation_query"
queryUrl="${/request/@context_path}/autocrud/cont.CON3450.depreciation_query/query?header_id=${/model/header/record/@header_id}">
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:form id="success_form" height="400" title="THE_IMPORTED_DATA" width="440">
<a:screenTopToolbar>
<a:gridButton click="backBtn" text="退出"/>
<a:gridButton click="import_dcs" text="导入"/>
</a:screenTopToolbar>
<a:grid id="depreciation_import_grid_id" bindTarget="dcs_no_ds"
height="340" navBar="false"
width="980" >
<a:columns>
<a:column name="error_message" prompt="错误提示" width="150" align="center"/>
<a:column name="attribute_1" prompt="资产负债科目" width="100" align="center"/>
<a:column name="attribute_2" prompt="科目名称" width="200" align="center"/>
<a:column name="attribute_3" prompt="资产分类" width="100" align="center"/>
<a:column name="attribute_4" prompt="资产编号" width="100" align="center"/>
<a:column name="attribute_5" prompt="资产描述" width="200" align="center"/>
<a:column name="attribute_6" prompt="历史购置和生产成本" width="150" align="center"/>
<a:column name="attribute_7" prompt="资本化日期" width="100" align="center"/>
<a:column name="attribute_8" prompt="使用年限" width="100" align="center"/>
<a:column name="attribute_9" prompt="剩余使用年限" width="100" align="center"/>
<a:column name="attribute_10" prompt="折旧类型" width="100" align="center"/>
<a:column name="attribute_11" prompt="开始日期购置与生产成本" width="150" align="center"/>
<a:column name="attribute_12" prompt="开始日期累计折旧" width="150" align="center"/>
<a:column name="attribute_13" prompt="开始日期累计增记" width="150" align="center"/>
<a:column name="attribute_14" prompt="开始日期的账面净值" width="150" align="center"/>
<a:column name="attribute_15" prompt="资本化" width="100" align="center"/>
<a:column name="attribute_16" prompt="报废购置和生产成本" width="150" align="center"/>
<a:column name="attribute_17" prompt="报废账面净值" width="100" align="center"/>
<a:column name="attribute_18" prompt="转移购置和生产成本" width="150" align="center"/>
<a:column name="attribute_19" prompt="转移账面净值" width="100" align="center"/>
<a:column name="attribute_20" prompt="增记" width="100" align="center"/>
<a:column name="attribute_21" prompt="折旧" width="100" align="center"/>
<a:column name="attribute_22" prompt="结束日期购置与生产成本" width="150" align="center"/>
<a:column name="attribute_23" prompt="结束日期的账面净值" width="150" align="center"/>
<a:column name="attribute_24" prompt="至结束日期的折旧" width="150" align="center"/>
<a:column name="attribute_25" prompt="结束日期累计折旧" width="150" align="center"/>
</a:columns>
</a:grid>
</a:form>
</a:screenBody>
<script type="text/javascript"><![CDATA[
]]></script>
</a:view>
</a:screen>
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: sf
$Date: 2015-4-8 上午09:03:15
$Revision: 1.0
$Purpose: excel导入收款
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" trace="true">
<a:init-procedure>
<a:model-query fetchAll="true" model="cont.CON3450.depreciation_import" rootPath="depreciation_times"/>
</a:init-procedure>
<a:view>
<a:link id="downloadFile_id" url="${/request/@context_path}/downloadFile.lview"/>
<script type="text/javascript"><![CDATA[
function downloadFile() {
new Leaf.Window({
url: $('downloadFile_id').getUrl(),
title: '${l:HLS.SUPPORTING_DOCUMENT}',
params: {
'table_name': 'HLS_ATTACHMENT_MODULE',
'header_id': '${/model/template_path/record/@attachment_module_id}'
},
width: 850,
height: 400
});
}
function saveClick() {
if (document.getElementById('importFile').value) {
var fileName = document.getElementById('importFile').value;
var fileType = fileName.substr(fileName.lastIndexOf("."));
if (fileType != '.xls' && fileType != '.xlsx' && fileType != '.xlsm') {
alert('${l:SELECT_CORRECT_IMPORT_FILE}');
} else {
doSubmit();
}
}
}
var _input_window;
function doSubmit() {
var form = document.getElementById('importForm');
var DTS = $('times').getAt(0).get('period_name');
console.log(DTS);
if (Ext.isEmpty(DTS)){
Leaf.showMessage('提示', '导入期间不能为空!');
}else {
_input_window = new $L.Window({
title: '${l:HLS.IMPORT}',
width: 1050,
height: 500
});
new Ext.Template('<iframe id ="_input_window" name="_input_window" border="0" frameborder="0" height="100%" width="100%" style="border:none;padding:0px;margin:0px;"></iframe>').insertFirst(_input_window.body.dom, {}, true);
var url = '${/request/@context_path}/modules/cont/CON3450/depreciation_excel_import.lview?session_id=${/parameter/@session_id}&winid=${/parameter/@winid}&batch_id=${/parameter/@batch_id}&_csrf=${/session/@_csrf.token}&DTS='+DTS;
form.action = url;
form.submit();
}
}
]]></script>
<a:dataSets>
<a:dataSet id="label_ds" autoCreate="true">
<a:fields>
<!--<a:field name="label1" defaultValue="注意:"/>-->
<a:field name="label2" defaultValue="${l:STRICT_IMPORTED_TEMPLATE_DATA}"/>
<a:field name="label3" defaultValue="${l:PRODUCT_MASTER_DATA_IMPORT}"/>
<a:field name="label4" defaultValue="${l:IMPORTER_ONLY_SUPPORTS}"/>
<a:field name="label5" defaultValue="${l:READ_THE_ABOVE_CAREFULLY}"/>
<a:field name="label6" defaultValue="${l:THE_IMPORT_IS_COMPLETE}"/>
</a:fields>
</a:dataSet>
<a:dataSet id="inport_times">
<a:datas dataSource="/model/depreciation_times"/>
</a:dataSet>
<a:dataSet id="times" autoCreate="true" >
<a:fields>
<a:field name="period_name" displayField="period_name" options="inport_times"
returnField="period_name" valueField="period_name" required="true" />
</a:fields>
</a:dataSet>
</a:dataSets>
<a:fieldSet style="margin-left:10px;margin-top:10px;" title="IMPORT_CONSIDERATIONS" width="400">
<a:label name="label2" bindTarget="label_ds" style="margin-left:10px;" width="380"/>
<a:label name="label3" bindTarget="label_ds" style="margin-left:10px;" width="380"/>
<a:label name="label4" bindTarget="label_ds" style="margin-left:10px;" width="380"/>
<a:label name="label5" bindTarget="label_ds" style="color:#055A78;font-weight:bold;margin-left:10px;"
width="380"/>
<a:label name="label6" bindTarget="label_ds" style="color:#055A78;font-weight:bold;margin-left:10px;"
width="380"/>
</a:fieldSet>
<a:fieldSet style="margin-left:10px;margin-top:10px;" title="选择导入期间" width="400">
<a:comboBox name="period_name" bindTarget="times" prompt="导入期间" />
</a:fieldSet>
<a:fieldSet style="margin-left:10px;margin-top:10px;" title="TMPLT_IMPORT_FILE" width="400">
<form name="upload" id="importForm" enctype="multipart/form-data" method="post" target="_input_window">
<label style="margin-left:10px;margin-top:10px;font-size:13px"><![CDATA[${l:PLEASE_SELECT_A_FILE}]]></label>
<input name="CONTENT" id="importFile" style="font-size:15px" type="file"/>
<input onclick="saveClick()" style="margin-left:25px;margin-top:10px;width:60px;height:23px"
type="button" value="${l:TMPLT_IMPORT}"/>
</form>
</a:fieldSet>
</a:view>
</a:screen>
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: lzy
$Date: 2023/11/15
$Revision: 1.0
$Purpose: 历史信息
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true">
<a:init-procedure outputPath="/parameter">
</a:init-procedure>
<a:view>
<script type="text/javascript"><![CDATA[
]]></script>
<a:dataSets>
<a:dataSet id="history_hts" autoQuery="true" autoPageSize="true"
model="cont.CON3450.save_dcs_import"
queryUrl="${/request/@context_path}/autocrud/cont.CON3450.save_dcs_import/query?asset_number=${/parameter/@asset_number}"
selectable="true">
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:screenTopToolbar>
<a:screenTitle/>
</a:screenTopToolbar>
<a:grid id="history_hts_grid" bindTarget="history_hts" marginHeight="200" marginWidth="30" navBar="true">
<a:columns>
<a:column name="balance_sheet_account_cde" prompt="资产负债表科目" width="120" align="center"/>
<a:column name="balance_sheet_account_des" prompt="科目名称" width="200" align="center"/>
<a:column name="asset_type" prompt="资产分类" width="100" align="center"/>
<a:column name="asset_number" prompt="资产编号" width="100" align="center"/>
<a:column name="asset_desc" prompt="资产描述" width='220' align="center"/>
<a:column name="acquisition_cost_his" prompt="历史购置和生产成本" width="200" align="right"/>
<a:column name="c_date" prompt="资本化日期" width="100" align="center"/>
<a:column name="useful_life" prompt="使用年限" width="100" align="center"/>
<a:column name="remaining_useful_life" prompt="剩余使用年限" width="100" align="center"/>
<a:column name="depreciation_type" prompt="折旧类型" width="100" align="center"/>
<a:column name="acquisition_cost_start" prompt="开始日期购置与生产成本" width="220" align="right"/>
<a:column name="depreciate_sum_start" prompt="开始日期累积折旧" width="200" align="right"/>
<a:column name="write_up_sum_start" prompt="开始日期累计增记" width="200" align="right"/>
<a:column name="book_value_start" prompt="开始日期的账面净值" width="200" align="right"/>
<a:column name="capitalization" prompt="资本化" width="100" align="right"/>
<a:column name="acquisition_cost_scrap" prompt="报废的购置和生产成本" width="200" align="right"/>
<a:column name="book_value_scrap" prompt="报废的账面净值" width="200" align="right"/>
<a:column name="acquisition_cost_transfer" prompt="转移购置和生产成本" width="200" align="right"/>
<a:column name="book_value_transfer" prompt="转移账面净值" width="150" align="right"/>
<a:column name="write_up_sum" prompt="增记" width="100" align="right"/>
<a:column name="simple_depreciate" prompt="折旧" width="100" align="right"/>
<a:column name="acquisition_cost_end" prompt="结束日期购置与生产成本" width="200" align="right"/>
<a:column name="book_value_end" prompt="结束日期账面净值" width="200" align="right"/>
<a:column name="depreciate_sum_to_enddate" prompt="至结束日期折旧" width="200" align="right"/>
<a:column name="depreciate_sum_end" prompt="结束日期累计折旧" width="200" align="right"/>
<a:column name="dts" prompt="历史期间" width="200" align="center"/>
</a:columns>
</a:grid>
</a:screenBody>
</a:view>
</a:screen>
......@@ -81,9 +81,12 @@
if(record.data.lease_name93=='Y'){
record.data.divisio14='93';
};
if(record.data.lease_name95=='Y'){
record.data.division13='95';
};
// record.data.division=record.data.division.substr(1,record.data.division.length);
if(record.data.division1 == ''&&record.data.division2 == ''&&record.data.division3 == ''&&record.data.division4 == ''
&&record.data.division5 == ''&&record.data.division6 == ''&&record.data.division7 == ''&&record.data.division8 == ''&&record.data.division9 == ''&&record.data.division10 == ''&&record.data.division11 == ''&&record.data.division12 == ''&&record.data.division14 == ''){
&&record.data.division5 == ''&&record.data.division6 == ''&&record.data.division7 == ''&&record.data.division8 == ''&&record.data.division9 == ''&&record.data.division10 == ''&&record.data.division11 == ''&&record.data.division12 ==''&&record.data.division13 == ''&&record.data.division14 == ''){
// record.data.division1='10,20,30,40,50,60,70,80';
record.data.division1='10';
record.data.division2='20';
......@@ -99,6 +102,7 @@
record.data.division12='99';
record.data.division14='93';
record.data.division13='95';
};
param['division1']= record.data.division1;
param['division2']= record.data.division2;
......@@ -113,6 +117,7 @@
param['division11']= record.data.division11;
param['division12']= record.data.division12;
param['division14']= record.data.division14;
param['division13']= record.data.division13;
param['period_name']=period_name;
param['function_code'] = 'CON3400N';
param['function_usage'] = 'MODIFY';
......
......@@ -72,9 +72,11 @@
$(ds_id).setQueryParameter("division6",'${/parameter/@division6}');
$(ds_id).setQueryParameter("division7",'${/parameter/@division7}');
$(ds_id).setQueryParameter("division8",'${/parameter/@division8}');
$(ds_id).setQueryParameter("division9",'${/parameter/@division9}');
$(ds_id).setQueryParameter("division9",'${/parameter/@division9}');
$(ds_id).setQueryParameter("division10",'${/parameter/@division10}');
$(ds_id).setQueryParameter("division11",'${/parameter/@division11}');
$(ds_id).setQueryParameter("division12",'${/parameter/@division12}');
$(ds_id).setQueryParameter("division13",'${/parameter/@division13}');
$(ds_id).setQueryParameter("division14",'${/parameter/@division14}');
$(ds_id).query();
})
......@@ -151,7 +153,7 @@
window['${/parameter/@layout_code}_user_button3_layout_dynamic_click'] = function() {
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract_ifrs9');
$(ds_id).setQueryParameter("period_name",'${/parameter/@period_name}');
//查看job有没有返回结果
//查看job有没有返回结果
Leaf.Masker.mask(Ext.getBody());
Leaf.request({
url: $('get_job_finish_flag_link').getUrl(),
......@@ -181,9 +183,9 @@
});
};
//承租人最大逾期天数
//承租人最大逾期天数
window['${/parameter/@layout_code}_user_button4_layout_dynamic_click'] = function() {
var url = $('contract_ifrs9_sum_report_link').getUrl();
var url = $('contract_ifrs9_sum_report_link').getUrl();
new Leaf.Window({
id: 'contract_ifrs9_sum_report_link_winid',
params: {
......@@ -195,7 +197,7 @@
width: 900,
height: 600
}).on('close', function () {
null;
null;
});
......
......@@ -23,6 +23,7 @@
<a:link id="car_modify_special_link" url="${/request/@context_path}/modules/prj/PRJ500N/prj_project_create_special.lview"/>
<a:link id="document_history_query_link_id" url="${/request/@context_path}/modules/prj/PRJ502N/prj_document_history_query.lview"/>
<script src="${/request/@context_path}/javascripts/hap/dynamicStopAutoQuery.js" type="text/javascript"/>
<a:link id="car_modify_operat_link" url="${/request/@context_path}/modules/prj/PRJ501N/prj_project_maintain_opreat.lview"/>
<script type="text/javascript"><![CDATA[
// stopDymanicAutoQuery('${/parameter/@layout_code}', 'G_PROJECT_RESULT', 'prj_project');
function open_project_modify_win(record_id, ds_id) {
......@@ -51,11 +52,30 @@
hls_doc_get_layout_code('prj_project_get_layout_code_link_id', param, url, ds_id);
}
function on_business_type_leaseoperat_win(record_id, ds_id) {
var record = $(ds_id).findById(record_id);
var url;
maintain_type = 'QUERY';
param = record.data;
param['document_id'] = record.get('project_id');
param['function_usage'] = 'QUERY';
param['bp_class'] = 'NP';
param['maintain_type'] = maintain_type;
param['url_title'] = '${l:HLS.PROJECT_MAITAIN}';
param['function_code'] = 'PRJ501_OPERAT_WFL';
url = 'car_modify_operat_link';
hls_doc_get_layout_code('prj_project_get_layout_code_link_id', param, url, ds_id);
}
window['${/parameter/@layout_code}_dynamic_link_renderer'] = function(value, record, name, config_record) {
if (name == 'project_number' && value) {
return '<a href="javascript:open_project_modify_win(\'' + record.id + '\',\'' + record.ds.id + '\')">' + value + '</a>';
if(record.get('business_type')=='LEASE'||record.get('business_type')=='LEASEBACK'){
return '<a href="javascript:open_project_modify_win(\'' + record.id + '\',\'' + record.ds.id + '\')">' + value + '</a>';
}else if(record.get('business_type')=='LEASEOPERAT'){
return '<a href="javascript:on_business_type_leaseoperat_win(\'' + record.id + '\',\'' + record.ds.id + '\')">' + value + '</a>';
}
}
return value;
};
......
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