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 t1.*
FROM (select pur_p.dcs_no,
pur_p.BRAND_VALUE,
pur_p.SPECIFICATION,
pur_p.PATTERN,
pur_p.UOM,
pur_p.MODELCD,
pur_p.EQUIPMENT_NUMBER,
cc.search_term_1,
to_char(pp.REF_D09, 'yyyy-mm-dd') ref_d09,
to_char(pur_p.ACTUAL_PRICE, '9999999999999990.99') ACTUAL_PRICE,
to_char(pur_p.ACTUAL_PRICE / (1 + cc.vat_rate),
'9999999999999990.99') net_ACTUAL_PRICE,
pur_p.ACCUMULATED_DEPRECIATION depreciation_month,
to_char((select Q.BALLOON_RATIO * pur_p.ACTUAL_PRICE
from prj_quotation q
where q.document_id = ppi.source_project_id
and q.document_category = 'PROJECT'),
'9999999999999990.99') BALLOON,
to_char(((SELECT book_value_end
FROM (select hd.book_value_end, hd.asset_number
from asset_depreciate_hd hd
ORDER BY hd.depreciate_hd_id desc) a
WHERE a.asset_number = pur_p.dcs_no
and rownum = 1) * (1 + cc.vat_rate)),
'9999999999999990.99') vat_book_value,
to_char((SELECT book_value_end
FROM (select hd.book_value_end, hd.asset_number
from asset_depreciate_hd hd
ORDER BY hd.depreciate_hd_id desc) a
WHERE a.asset_number = pur_p.dcs_no
and rownum = 1),
'9999999999999990.99') book_value,
to_char(((SELECT depreciate_sum_end
FROM (select hd.depreciate_sum_end, hd.asset_number
from asset_depreciate_hd hd
ORDER BY hd.depreciate_hd_id desc) a
WHERE a.asset_number = pur_p.dcs_no
and rownum = 1) * (1 + cc.vat_rate)),
'9999999999999990.99') vat_sim_depreciate_sum,
to_char(((SELECT depreciate_sum_end
FROM (select hd.depreciate_sum_end, hd.asset_number
from asset_depreciate_hd hd
ORDER BY hd.depreciate_hd_id desc) a
WHERE a.asset_number = pur_p.dcs_no
and rownum = 1)),
'9999999999999990.99') simple_depreciate_sum,
(select bp.bp_name
from hls_bp_master bp
where bp.bp_id = cc.bp_id_tenant) tenant_name,
to_char(cc.CONTRACT_SIGN_DATE, 'yyyy-mm-dd') CONTRACT_SIGN_DATE,
cc.contract_number,
to_char(cc.inception_of_lease, 'yyyy-mm-dd') inception_of_lease,
to_char((select MAX(ccc.due_date)
from con_contract_cashflow ccc
where ccc.cf_item = 1
and ccc.contract_id = cc.contract_id
and ccc.cf_direction = 'INFLOW'
AND CCC.CF_STATUS = 'RELEASE'),
'yyyy-mm-dd') max_due_date,
cc.Lease_Times,
(select COUNT(1)
from con_contract_cashflow ccc
where ccc.cf_item = 1
and ccc.contract_id = cc.contract_id
and ccc.write_off_flag = 'FULL'
and ccc.cf_direction = 'INFLOW'
AND CCC.CF_STATUS = 'RELEASE') WRITE_OFF_TIMES,
(select COUNT(1)
from con_contract_cashflow ccc
where ccc.cf_item = 1
and ccc.contract_id = cc.contract_id
and ccc.write_off_flag != 'FULL'
and ccc.cf_direction = 'INFLOW'
AND CCC.CF_STATUS = 'RELEASE') UN_WRITE_OFF_TIMES,
(select CCC.TIMES
from con_contract_cashflow ccc
where ccc.contract_id = cc.contract_id
and ccc.cf_item = 1
and ccc.due_date <
trunc(add_months(to_date('2023-11-01', 'yyyy-mm-dd'),
1),
'MM')
and ccc.due_date >=
trunc(to_date('2023-11-01', 'yyyy-mm-dd'), 'MM')) current_month_time,
(select COUNT(1)
from con_contract_cashflow ccc
where ccc.contract_id = cc.contract_id
and ccc.cf_item = 1
and ccc.write_off_flag != 'FULL'
and nvl(ccc.due_amount, 0) > 0
and trunc(ccc.due_date, 'MM') <
trunc(add_months(to_date('2023-11-01', 'yyyy-mm-dd'),
1),
'MM')) become_due_time,
to_char((select max(cwo.write_off_date)
from con_contract_cashflow ccc, csh_write_off cwo
where ccc.contract_id = cc.contract_id
and ccc.cf_item = 1
and cwo.cashflow_id = ccc.cashflow_id
and trunc(ccc.due_date, 'MM') <
trunc(add_months(to_date('2023-11-01',
'yyyy-mm-dd'),
1),
'MM')),
'yyyy-mm-dd') max_write_off_date,
to_char(hlcm_op_asset_depre_pkg.get_con_rental(cc.contract_id,
pur_p.project_lease_item_id),
'9999999999999990.99') month_rental,
to_char(hlcm_op_asset_depre_pkg.get_vat_con_rental(cc.contract_id,
pur_p.project_lease_item_id),
'9999999999999990.99') month_vat_rental,
to_char(hlcm_op_asset_depre_pkg.get_con_sum_rental(cc.contract_id,
pur_p.project_lease_item_id,
'Y'),
'9999999999999990.99') sum_received_amount,
to_char(hlcm_op_asset_depre_pkg.get_vat_con_sum_rental(cc.contract_id,
pur_p.project_lease_item_id,
'Y'),
'9999999999999990.99') sum_vat_received_amount,
to_char(hlcm_op_asset_depre_pkg.get_con_sum_rental(cc.contract_id,
pur_p.project_lease_item_id,
'N'),
'9999999999999990.99') sum_un_received_amount,
to_char(hlcm_op_asset_depre_pkg.get_vat_con_sum_rental(cc.contract_id,
pur_p.project_lease_item_id,
'N'),
'9999999999999990.99') sum_vat_un_received_amount,
to_char((nvl((select COUNT(1)
from con_contract_cashflow ccc
where ccc.contract_id = cc.contract_id
and ccc.cf_item = 1
and ccc.write_off_flag != 'FULL'
and nvl(ccc.due_amount, 0) > 0
and trunc(ccc.due_date, 'MM') <
trunc(add_months(to_date('2023-11-01',
'yyyy-mm-dd'),
1),
'MM')),
0) *
hlcm_op_asset_depre_pkg.get_con_rental(cc.contract_id,
pur_p.project_lease_item_id)),
'9999999999999990.99') become_due_amount,
to_char((nvl((select COUNT(1)
from con_contract_cashflow ccc
where ccc.contract_id = cc.contract_id
and ccc.cf_item = 1
and ccc.write_off_flag != 'FULL'
and nvl(ccc.due_amount, 0) > 0
and trunc(ccc.due_date, 'MM') <
trunc(add_months(to_date('2023-11-01',
'yyyy-mm-dd'),
1),
'MM')),
0) *
hlcm_op_asset_depre_pkg.get_vat_con_rental(cc.contract_id,
pur_p.project_lease_item_id)),
'9999999999999990.99') become_vat_due_amount,
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') CAPITALIZATION_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 con_contract cc,
prj_project_lease_item ppi,
prj_project pp,
prj_project_lease_item pur_p,
asset_depreciate_hd ahd
where cc.business_type = 'LEASEOPERAT'
and cc.data_class = 'NORMAL'
and cc.project_id = ppi.project_id
and ppi.source_project_id = pur_p.project_id
and pp.project_id = ppi.source_project_id
and pur_p.DCS_NO = AHD.ASSET_NUMBER(+)
AND (ahd.depreciate_hd_id IS NULL OR
ahd.depreciate_hd_id =
(SELECT MAX(ahd_sub.depreciate_hd_id)
FROM asset_depreciate_hd ahd_sub
WHERE ahd_sub.ASSET_NUMBER = pur_p.DCS_NO))) t1
#WHERE_CLAUSE#
]]>
</bm:query-sql>
</bm:operation>
</bm:operations>
<bm:query-fields>
<bm:query-field name="query_time" queryExpression="t1.inception_of_lease &lt;= ${@query_time} "/>
<bm:query-field name="query_time" queryExpression="t1.max_due_date &gt;= ${@query_time} "/>
<bm:query-field name="dcs_no" queryExpression="dcs_no like ${@dcs_no}"/>
<bm:query-field name="brand_value" queryExpression="brand_value like ${@brand_value}"/>
<bm:query-field name="specification" queryExpression="specification like ${@specification}"/>
<bm:query-field name="equipment_number" queryExpression="equipment_number like ${@equipment_number}"/>
<bm:query-field name="search_term_1" queryExpression="search_term_1 like ${@search_term_1}"/>
<bm:query-field name="ref_d09_from" queryExpression="t1.ref_d09 &gt;= ${@ref_d09_from} "/>
<bm:query-field name="ref_d09_to" queryExpression="t1.ref_d09 &lt;= ${@ref_d09_to} "/>
<bm:query-field name="tenant_name" queryExpression="tenant_name like ${@tenant_name}"/>
<bm:query-field name="contract_number" queryExpression="contract_number like ${@contract_number}"/>
<bm:query-field name="inception_of_lease_from"
queryExpression="t1.inception_of_lease &gt;= ${@inception_of_lease_from} "/>
<bm:query-field name="inception_of_lease_to"
queryExpression="t1.inception_of_lease &lt;= ${@inception_of_lease_to} "/>
<bm:query-field name="header_id" queryExpression="t1.header_id=${@header_id}"/>
</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 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>
...@@ -14,6 +14,8 @@ ...@@ -14,6 +14,8 @@
<a:link id="${/parameter/@layout_code}con_contract_query_link" <a:link id="${/parameter/@layout_code}con_contract_query_link"
url="${/request/@context_path}/modules/cont/CON3200/con_re_incept_modify.lview"/> url="${/request/@context_path}/modules/cont/CON3200/con_re_incept_modify.lview"/>
<!-- <script src="${/request/@context_path}/javascripts/hap/dynamicStopAutoQuery.js" type="text/javascript"/>--> <!-- <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[ <script type="text/javascript"><![CDATA[
// stopDymanicAutoQuery('${/parameter/@layout_code}', 'G_CONTRACT_RESULT', 'con_contract'); // stopDymanicAutoQuery('${/parameter/@layout_code}', 'G_CONTRACT_RESULT', 'con_contract');
...@@ -29,12 +31,27 @@ ...@@ -29,12 +31,27 @@
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, '${/parameter/@layout_code}con_contract_query_link', ds_id); 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) { window['${/parameter/@layout_code}_dynamic_link_renderer'] = function (value, record, name, config_record) {
if (name == 'contract_number' && value) { if (name == 'contract_number' && value) {
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>'; 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() { Leaf.onReady(function() {
var bp_code='${/model/user_agent_description/record/@bp_code}'; var bp_code='${/model/user_agent_description/record/@bp_code}';
...@@ -76,6 +93,7 @@ ...@@ -76,6 +93,7 @@
} }
}); });
]]></script> ]]></script>
<a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/> <a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
</a:view> </a:view>
......
...@@ -121,6 +121,9 @@ ...@@ -121,6 +121,9 @@
}; };
if(record.data.lease_name93=='Y'){//add by gzj if(record.data.lease_name93=='Y'){//add by gzj
record.data.division=record.data.division+',93'; 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); record.data.division=record.data.division.substr(1,record.data.division.length);
$('contract_sales_result_ds').query(); $('contract_sales_result_ds').query();
...@@ -217,6 +220,7 @@ ...@@ -217,6 +220,7 @@
<a:checkBox name="lease_name91" bindTarget="contract_sales_report_ds" prompt="神钢建机"/>//addby xsh35973 20221011 I-12357新增产品线 <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_name92" bindTarget="contract_sales_report_ds" prompt="北京心诚"/>
<a:checkBox name="lease_name99" 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:form>
<a:grid id="contract_sales_result_ds_grid" bindTarget="contract_sales_result_ds" marginHeight="150" navBar="true" marginWidth="40"> <a:grid id="contract_sales_result_ds_grid" bindTarget="contract_sales_result_ds" marginHeight="150" navBar="true" marginWidth="40">
......
<?xml version="1.0" encoding="UTF-8"?>
<!--
: lzy
: 2023年11月08日
: 1.0
: 静态界面
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" trace="true">
<a:view>
<a:link id="dcs_no_import_link"
url="${/request/@context_path}/modules/cont/CON3450/dcs_no_import.lview"/>
<a:link id="depreciation_import_link"
url="${/request/@context_path}/modules/cont/CON3450/depreciation_import.lview"/>
<a:link id="history_dst_link"
url="${/request/@context_path}/modules/cont/CON3450/history_dst.lview"/>
<script><![CDATA[
//查询按钮
function query_click() {
var TS = $('queryds').getAt(0).get('query_time');
if (Ext.isEmpty(TS)||TS==' ') {
Leaf.showMessage('提示', '查询期间不能为空!');
return false;
}
$("QueryDs").query();
}
//重置按钮
function reset_click() {
$('queryds').reset();
}
//资产编号导入
function dcs_no_import() {
new Leaf.Window({
id: 'dcs_no_import_wind',
params: {
winid: 'dcs_no_import_wind',
},
url: $('dcs_no_import_link').getUrl(),
title: '资产编号导入',
width: 430,
height: 390
});
}
//折旧信息导入
function depreciation_import() {
new Leaf.Window({
id: 'depreciation_import_wind',
params: {
winid: 'depreciation_import_wind',
},
url: $('depreciation_import_link').getUrl(),
title: '折旧信息导入',
width: 430,
height: 400
});
}
//超链接
function history_dts(value, record, name) {
if (name === 'dts') {
return '<a href="javascript:open_window(' + record.get('asset_number') + ')">历史期间</a>';
}
}
//超链接页面
function open_window(asset_number) {
new Leaf.Window({
id: 'history_dst_link_id',
params: {
asset_number: asset_number,
},
url: $('history_dst_link').getUrl(),
title: '',
fullScreen: true
});
}
]]></script>
<a:dataSets>
<a:dataSet id="queryds">
<a:fields>
<a:field name="query_time" defaultValue=' '/>
</a:fields>
</a:dataSet>
<a:dataSet id="QueryDs" autoQuery="true" autoPageSize="true" queryDataSet="queryds"
model="cont.CON3450.con_project_lease_query"
queryUrl="${/request/@context_path}/autocrud/cont.CON3450.con_project_lease_query/query"
selectable="true">
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:screenTopToolbar>
<a:screenTitle/>
<a:gridButton id="Query" click="query_click" text="HLS.QUERY"/>
<a:gridButton id="Reset" click="reset_click" text="重置"/>
<a:gridButton id="Dcs_import" click="dcs_no_import" text="资产编号导入"/>
<a:gridButton id="Depreciation" click="depreciation_import" text="折旧信息导入"/>
</a:screenTopToolbar>
<a:form column="4" title="查询条件" width="1500">
<a:datePicker name="query_time" bindTarget="queryds" prompt="查询期间" required="true"/>
<a:textField name="dcs_no" bindTarget="queryds" prompt="宏菱管理编号"/>
<a:textField name="brand_value" bindTarget="queryds" prompt="品牌"/>
<a:textField name="specification" bindTarget="queryds" prompt="商品种类"/>
<a:textField name="equipment_number" bindTarget="queryds" prompt="设备编号"/>
<a:textField name="search_term_1" bindTarget="queryds" prompt="购买合同编号"/>
<a:datePicker name="ref_d09_from" bindTarget="queryds" prompt="记账日期从"
renderer="Leaf.formatDate"/>
<a:datePicker name="ref_d09_to" bindTarget="queryds" prompt="记账日期到"
renderer="Leaf.formatDate"/>
<a:textField name="tenant_name" bindTarget="queryds" prompt="租赁客户"/>
<a:textField name="contract_number" bindTarget="queryds" prompt="租赁合同编号"/>
<a:datePicker name="inception_of_lease_from" bindTarget="queryds" prompt="合同起租日期从"
renderer="Leaf.formatDate"/>
<a:datePicker name="inception_of_lease_to" bindTarget="queryds" prompt="合同起租日期到"
renderer="Leaf.formatDate"/>
</a:form>
<a:grid id="abc" bindTarget="QueryDs" marginHeight="220" marginWidth="20" navBar="true"
rowRenderer="">
<a:columns>
<a:column name="dcs_no" prompt="宏菱管理编号" width="120" align="center" renderer=""/>
<a:column name="brand_value" prompt="品牌" width="80" align="center"
renderer=""/>
<a:column name="specification" prompt="商品种类" width="80" align="center"/>
<a:column name="pattern" prompt="款型" width="80" align="center" renderer=""/>
<a:column name="uom" prompt="单位" width="50" align="center" renderer=""/>
<a:column name="modelcd" prompt="机型" width="100" align="center" renderer=""/>
<a:column name="equipment_number" prompt="设备编号" width="100" align="center"/>
<a:column name="search_term_1" prompt="购买合同编号" width="100" align="center"/>
<a:column name="ref_d09" prompt="记账(交货)日期" width="110" align="center"
renderer=""/>
<a:column name="actual_price" prompt="机价(含税)" width="80" align="right"/>
<a:column name="net_actual_price" prompt="机价(不含税)" width="100" align="right"/>
<a:column name="depreciation_month" prompt="折旧期间(月)" width="100" align="center"/>
<a:column name="balloon" prompt="残值" width="100" align="right"/>
<a:column name="vat_book_value" prompt="账面净值(含税)" width="120" align="right"/>
<a:column name="book_value" prompt="账面净值(不含税)" width="120" align="right"/>
<a:column name="vat_sim_depreciate_sum" prompt="折旧累计(含税)" width="120" align="right"/>
<a:column name="simple_depreciate_sum" prompt="折旧累计(不含税)" width="120" align="right"/>
<a:column name="tenant_name" prompt="租赁客户" width="100" align="center"/>
<a:column name="contract_sign_date" prompt="租赁合同日期" width="100" align="center"/>
<a:column name="contract_number" prompt="租赁合同编号" width="100" align="center"/>
<a:column name="inception_of_lease" prompt="起租日期" width="100" align="center"/>
<a:column name="max_due_date" prompt="租赁到期日" width="100" align="center"/>
<a:column name="lease_times" prompt="支付期" width="100" align="center"/>
<a:column name="write_off_times" prompt="已支付期" width="100" align="center"/>
<a:column name="un_write_off_times" prompt="未支付期" width="100" align="center"/>
<a:column name="current_month_time" prompt="当月支付期" width="100" align="center"/>
<a:column name="become_due_time" prompt="到期未付期" width="100" align="center"/>
<a:column name="max_write_off_date" prompt="最终付款日" width="100" align="center"/>
<a:column name="month_rental" prompt="期租金(含税)" width="100" align="right"/>
<a:column name="month_vat_rental" prompt="期租金(不含税)" width="120" align="right"/>
<a:column name="sum_received_amount" prompt="已付金额(含税)" width="120" align="right"/>
<a:column name="sum_vat_received_amount" prompt="已付金额(不含税)" width="120" align="right"/>
<a:column name="sum_un_received_amount" prompt="未付金额(含税)" width="120" align="right"/>
<a:column name="sum_vat_un_received_amount" prompt="未付金额(不含税)" width="120" align="right"/>
<a:column name="become_due_amount" prompt="到期未付金额(含税)" width="130" align="right"/>
<a:column name="become_vat_due_amount" prompt="到期未付金额(不含税)" width="150" align="right"/>
<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="capitalization_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" renderer="history_dts"/>
</a:columns>
</a:grid>
</a:screenBody>
</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="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 @@ ...@@ -81,9 +81,12 @@
if(record.data.lease_name93=='Y'){ if(record.data.lease_name93=='Y'){
record.data.divisio14='93'; 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); // 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 == '' 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,20,30,40,50,60,70,80';
record.data.division1='10'; record.data.division1='10';
record.data.division2='20'; record.data.division2='20';
...@@ -99,6 +102,7 @@ ...@@ -99,6 +102,7 @@
record.data.division12='99'; record.data.division12='99';
record.data.division14='93'; record.data.division14='93';
record.data.division13='95';
}; };
param['division1']= record.data.division1; param['division1']= record.data.division1;
param['division2']= record.data.division2; param['division2']= record.data.division2;
...@@ -113,6 +117,7 @@ ...@@ -113,6 +117,7 @@
param['division11']= record.data.division11; param['division11']= record.data.division11;
param['division12']= record.data.division12; param['division12']= record.data.division12;
param['division14']= record.data.division14; param['division14']= record.data.division14;
param['division13']= record.data.division13;
param['period_name']=period_name; param['period_name']=period_name;
param['function_code'] = 'CON3400N'; param['function_code'] = 'CON3400N';
param['function_usage'] = 'MODIFY'; param['function_usage'] = 'MODIFY';
......
...@@ -75,6 +75,8 @@ ...@@ -75,6 +75,8 @@
$(ds_id).setQueryParameter("division9",'${/parameter/@division9}'); $(ds_id).setQueryParameter("division9",'${/parameter/@division9}');
$(ds_id).setQueryParameter("division10",'${/parameter/@division10}'); $(ds_id).setQueryParameter("division10",'${/parameter/@division10}');
$(ds_id).setQueryParameter("division11",'${/parameter/@division11}'); $(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).setQueryParameter("division14",'${/parameter/@division14}');
$(ds_id).query(); $(ds_id).query();
}) })
......
...@@ -23,6 +23,7 @@ ...@@ -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="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"/> <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"/> <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[ <script type="text/javascript"><![CDATA[
// stopDymanicAutoQuery('${/parameter/@layout_code}', 'G_PROJECT_RESULT', 'prj_project'); // stopDymanicAutoQuery('${/parameter/@layout_code}', 'G_PROJECT_RESULT', 'prj_project');
function open_project_modify_win(record_id, ds_id) { function open_project_modify_win(record_id, ds_id) {
...@@ -52,10 +53,29 @@ ...@@ -52,10 +53,29 @@
} }
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) { window['${/parameter/@layout_code}_dynamic_link_renderer'] = function(value, record, name, config_record) {
if (name == 'project_number' && value) { if (name == 'project_number' && value) {
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>'; 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; 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