Commit fddf5665 authored by liyuan.chen's avatar liyuan.chen

月结及其它修改

parent e6f982bd
Pipeline #6364 canceled with stages
......@@ -67,18 +67,14 @@
AND ccc.cf_item IN (1, 8, 250)
AND trunc(ccc.due_date) <= trunc(SYSDATE)) -
nvl((SELECT SUM(nvl(gwo.write_off_amount, 0))
FROM gld_write_off gwo
FROM gld_write_off gwo ,con_contract_cashflow ccw
WHERE gwo.reversed_flag = 'N'
AND gwo.contract_id = cc.contract_id
AND gwo.cf_item IN (1, 8, 250)
And Exists
(Select 1
From con_contract_cashflow cn, csh_write_off cw
Where cw.write_off_id = gwo.csh_write_off_id
And cn.cashflow_id = cw.cashflow_id
And cn.cf_status = 'RELEASE'
And trunc(cn.due_date) <= trunc(Sysdate))),
0) account_due_amount,
and gwo.cf_item =ccw.cf_item
and gwo.times =ccw.times
and gwo.contract_id =ccw.contract_id
AND trunc(ccw.due_date) <= trunc(SYSDATE)),0) account_due_amount,
contract_item_query_pkg.calc_business_overdue_times(p_contract_id => cc.contract_id,
p_calc_date => SYSDATE,
......@@ -110,7 +106,8 @@
FROM con_contract_cashflow ccc
WHERE ccc.contract_id = cc.contract_id
AND ccc.cf_item = 9
AND ccc.write_off_flag <> 'FULL') over_due_amount,
AND ccc.write_off_flag <> 'FULL'
and ccc.cf_status = 'RELEASE') over_due_amount,
--营业最早逾期的预定支付日
(SELECT to_char(MIN(ccc.due_date),'yyyy-mm-dd')
......@@ -177,6 +174,7 @@
AND TRUNC(ccw.due_date)<=TRUNC(SYSDATE)
AND ccw.due_amount>nvl(ccw.received_amount, 0)
AND ccw.write_off_flag <> 'FULL'
AND ccw.cf_status = 'RELEASE'
AND ccw.cf_direction = 'INFLOW')
AND ('Y' = 'Y' AND EXISTS
(SELECT 1
......
......@@ -35,7 +35,7 @@
<bm:field name="calc_end_date" databaseType="DATE" datatype="java.util.Date" physicalName="CALC_END_DATE" prompt="CON_UNEARNED_FINANCE_INCOME.CALC_END_DATE"/>
<bm:field name="project_name" databaseType="VARCHAR2" datatype="java.lang.String" expression="(select p.project_name from prj_project p ,con_contract c where c.contract_id = t1.contract_id and p.project_id = c.project_id)" forInsert="false" forUpdate="false"/>
<bm:field name="finance_amount" databaseType="NUMBER" datatype="java.lang.Double" expression="(select c.finance_amount from con_contract c where c.contract_id = t1.contract_id)" forInsert="false" forUpdate="false"/>
<bm:field name="period" databaseType="VARCHAR2" datatype="java.lang.String" expression="((CASE WHEN t1.cf_item = 8 THEN (SELECT to_char(cf1.due_date,&apos;yyyy/mm/dd&apos;) FROM con_contract_cashflow cf1 WHERE cf1.contract_id = t1.contract_id AND cf1.cf_item = t1.cf_item)||'-'||(SELECT TO_CHAR(cf.due_date, &apos;yyyy/mm/dd&apos;) FROM con_contract_cashflow cf WHERE cf.cashflow_id = t1.cashflow_id) ELSE ( (SELECT to_char(cf1.due_date,&apos;yyyy/mm/dd&apos;) FROM con_contract_cashflow cf1 WHERE cf1.contract_id = t1.contract_id AND cf1.cf_item = t1.cf_item AND cf1.times = (SELECT cf.times - 1 FROM con_contract_cashflow cf WHERE cf.cashflow_id = t1.cashflow_id)) ||'-'|| (SELECT TO_CHAR(cf.due_date -1, &apos;yyyy/mm/dd&apos;) FROM con_contract_cashflow cf WHERE cf.cashflow_id = t1.cashflow_id))END))" forInsert="false" forUpdate="false"/>
<bm:field name="period" databaseType="VARCHAR2" datatype="java.lang.String" expression="((CASE WHEN t1.cf_item = 8 THEN (SELECT to_char(cf1.due_date,&apos;yyyy/mm/dd&apos;) FROM con_contract_cashflow cf1 WHERE cf1.contract_id = t1.contract_id AND cf1.cf_item = t1.cf_item)|| '-' ||(SELECT TO_CHAR(cf.due_date, &apos;yyyy/mm/dd&apos;) FROM con_contract_cashflow cf WHERE cf.cashflow_id = t1.cashflow_id) ELSE ( (SELECT to_char(cf1.due_date,&apos;yyyy/mm/dd&apos;) FROM con_contract_cashflow cf1 WHERE cf1.contract_id = t1.contract_id AND cf1.cf_item = t1.cf_item AND cf1.times = (SELECT cf.times - 1 FROM con_contract_cashflow cf WHERE cf.cashflow_id = t1.cashflow_id)) || nvl2((Select to_char(cf1.due_date, 'yyyy/mm/dd') From con_contract_cashflow cf1 Where cf1.contract_id = t1.contract_id And cf1.cf_item = t1.cf_item And cf1.times = (Select cf.times - 1 From con_contract_cashflow cf Where cf.cashflow_id = t1.cashflow_id)), '-', '') || (SELECT TO_CHAR(cf.due_date -1, &apos;yyyy/mm/dd&apos;) FROM con_contract_cashflow cf WHERE cf.cashflow_id = t1.cashflow_id))END))" forInsert="false" forUpdate="false"/>
<bm:field name="interest" databaseType="NUMBER" datatype="java.lang.Double" expression="(select c.interest from con_contract_cashflow c where c.cashflow_id = t1.cashflow_id)" forInsert="false" forUpdate="false"/>
<bm:field name="int_rate_implicit" databaseType="NUMBER" datatype="java.lang.Double" expression="round((select c.int_rate from con_contract c where c.contract_id = t1.contract_id),4)" forInsert="false" forUpdate="false"/>
<bm:field name="calc_period" databaseType="VARCHAR2" datatype="java.lang.String" expression="(to_char(t1.calc_start_date,&apos;yyyy/mm/dd&apos;)||&apos;-&apos;||to_char(t1.calc_end_date,&apos;yyyy/mm/dd&apos;))" forInsert="false" forUpdate="false"/>
......
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: qwm
$Date: 2013-12-28 下午1:31:12
$Revision: 1.0
$Purpose:
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
Select to_char(t1.transaction_date, 'yyyy-mm') csh_date,
Count(t1.transaction_id) csh_count,
Count(t1.csh_not_id) csh_not,
Count(t1.csh_partial_id) csh_partial,
decode(Count(t1.transaction_id), Count(t1.csh_confirm), 'Y', 'N') As csh_confirm_flag,
t1.ref_v04
From (Select t.transaction_date,
t.transaction_id,
(Select c.transaction_id
From csh_transaction c
Where c.transaction_id = t.transaction_id
And nvl(c.write_off_flag, 'NOT') = 'NOT') As csh_not_id,
(Select c1.transaction_id
From csh_transaction c1
Where c1.transaction_id = t.transaction_id
And nvl(c1.write_off_flag, 'NOT') = 'PARTIAL') As csh_partial_id,
(Select c2.transaction_id
From csh_transaction c2
Where c2.transaction_id = t.transaction_id
And nvl(c2.business_monthly_flag, 'N') = 'Y') As csh_confirm,
t.ref_v04
From csh_transaction t
Where t.confirmed_flag in ('ACCAUDITED','APPROVED', 'WF_REJECTED', 'WF_APPROVING')
And t.transaction_type not in ('DEPOSIT', 'PAYMENT')
And t.returned_flag <> 'RETURN') t1
Where to_char(t1.transaction_date, 'yyyymm') < to_char(sysdate, 'yyyymm')
Group By to_char(t1.transaction_date, 'yyyy-mm'), t1.ref_v04
Order By to_char(t1.transaction_date, 'yyyy-mm') desc
]]></bm:query-sql>
</bm:operation>
<bm:operation name="update">
<bm:update-sql><![CDATA[
begin
hls_monthend_new_pkg.csh_transaction_confirm(
p_role_flag => ${@role_flag},
p_csh_date => ${@csh_date},
p_ref_v04 => ${@ref_v04},
p_user_id => ${/session/@user_id});
end;
]]></bm:update-sql>
</bm:operation>
</bm:operations>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author:
$Date: 2020-05-11
$Revision: 1.0
$Purpose:
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
<bm:fields>
<bm:field name="role_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ROLE_CODE"/>
</bm:fields>
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
Select nvl((Select decode(t.role_code,
'0006',
'NO',
'0014',
'YES',
'0013',
'YES',
'0017',
'YES',
'HAND',
'YES',
'N')
From sys_role t
Where t.role_id = ${/session/@role_id}),
'N') As role_code
From dual
]]></bm:query-sql>
</bm:operation>
</bm:operations>
</bm:model>
......@@ -29,16 +29,16 @@
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:grid id="seal_info_ds_id" bindTarget="seal_info_ds" height="250" marginWidth="655" navBar="true">
<a:grid id="seal_info_ds_id" bindTarget="seal_info_ds" height="300" marginWidth="140" navBar="true">
<a:columns>
<a:column name="instruments_types" prompt="文书种类"/>
<a:column name="common_seal" prompt="公章" editor="seal_info_check_id"/>
<a:column name="corporate_visa_seal" prompt="法人签证章" editor="seal_info_check_id"/>
<a:column name="legal_seal" prompt="法人章" editor="seal_info_check_id"/>
<a:column name="con_special_seal" prompt="合同专用章" editor="seal_info_check_id"/>
<a:column name="financial_seal" prompt="财务章" editor="seal_info_check_id"/>
<a:column name="supervisio_seal" prompt="监管专用章" editor="seal_info_check_id"/>
<a:column name="seal_number_n" prompt="文书部数"/>
<a:column name="instruments_types" prompt="文书种类" width="150"/>
<a:column name="common_seal" prompt="公章" editor="seal_info_check_id" width="150"/>
<a:column name="corporate_visa_seal" prompt="法人签证章" editor="seal_info_check_id" width="150"/>
<a:column name="legal_seal" prompt="法人章" editor="seal_info_check_id" width="150"/>
<a:column name="con_special_seal" prompt="合同专用章" editor="seal_info_check_id" width="150"/>
<a:column name="financial_seal" prompt="财务章" editor="seal_info_check_id" width="150"/>
<a:column name="supervisio_seal" prompt="监管专用章" editor="seal_info_check_id" width="150"/>
<a:column name="seal_number_n" prompt="文书部数" width="150"/>
</a:columns>
<a:editors>
<a:checkBox id="seal_info_check_id"/>
......
......@@ -38,7 +38,6 @@
// stopDymanicAutoQuery('${/parameter/@layout_code}', 'G_CONTRACT_RESULT', 'con_contract');
Leaf.onReady(function() {
debugger;
if("${/model/role_info/record/@role_code}"!="0018"&&"${/model/role_info/record/@role_code}"!="0019") {
document.getElementById("CONTRACT_QUERY_ENTRANCE_F_QUERY_NULL_AGENT_EXTRA_NAM_prompt").style.display = "";
document.getElementById("CONTRACT_QUERY_ENTRANCE_F_QUERY_NULL_AGENT_EXTRA_NAM").style.display = "";
......@@ -102,22 +101,31 @@
},
url: $('${/parameter/@layout_code}_contract_seal_link_id').getUrl(),
title: '用印信息',
width: 1300,
width: 1240,
height: 350
});
}
/*
@Modified: Liyuan.Chen
@Date: 2020/5/18
@Description: _self 换成 _blank
@Param:
*/
function download_recovery(record_id, ds_id){
var record = $(ds_id).findById(record_id);
var contract_id = record.get('contract_id');
var url_l = $('con_contract_finish_print_link_id').getUrl() + '?document_id=' + contract_id + '&document_table=CON_CONTRACT_FINISH&batch_flag=Y&source_type=COMMON';
window.open(href = url_l, target = "_self");
// window.open(href = url_l, target = "_self");
var OpenWindow = window.open(href = url_l, target = "_blank");
//OpenWindow.alert('正在下载...');
}
function download_ownership(record_id, ds_id){
var record = $(ds_id).findById(record_id);
var contract_id = record.get('contract_id');
var url_l = $('con_contract_finish_print_link_id').getUrl() + '?document_id=' + contract_id + '&document_table=CON_CONTRACT_FINISH_LEASE&batch_flag=Y&source_type=COMMON';
window.open(href = url_l, target = "_self");
window.open(href = url_l, target = "_blank");
}
window['${/parameter/@layout_code}_dynamic_link_renderer'] = function (value, record, name, config_record) {
......
......@@ -131,7 +131,6 @@
}
}
if (name == "over_due_amount") {
debugger;
var t_1 = record.get("over_due_amount")||0;
var t_2 = parseFloat(t_1);
if (!isNaN(t_2)) {
......@@ -172,28 +171,35 @@
}
Leaf.onReady(function() {
if("${/model/role_info/record/@role_code}"=="0018"||"${/model/role_info/record/@role_code}"=="0019"){
$('CON601_con_contract_grid_ds').hideColumn('account_due_times');
$('CON601_con_contract_grid_ds').hideColumn('account_due_days');
$('CON601_con_contract_grid_ds').hideColumn('account_due_amount');
$('CON601_con_contract_grid_ds').hideColumn('ac_received_amount');
$('CON601_con_contract_grid_ds').hideColumn('ac_unreceived_amount');
document.getElementById('account_due_times_from_id').style.display = "none";
document.getElementById('account_due_times_from_id_prompt').style.display = "none";
document.getElementById('account_due_times_to_id').style.display = "none";
document.getElementById('account_due_times_to_id_prompt').style.display = "none";
document.getElementById('account_due_days_from_id').style.display = "none";
document.getElementById('account_due_days_from_id_prompt').style.display = "none";
document.getElementById('account_due_days_to_id').style.display = "none";
document.getElementById('account_due_days_to_id_prompt').style.display = "none";
document.getElementById('account_due_amount_from_id').style.display = "none";
document.getElementById('account_due_amount_from_id_prompt').style.display = "none";
document.getElementById('account_due_amount_to_id').style.display = "none";
document.getElementById('account_due_amount_to_id_prompt').style.display = "none";
$('CON601_con_contract_grid_ds').hideColumn('account_due_times');
$('CON601_con_contract_grid_ds').hideColumn('account_due_days');
$('CON601_con_contract_grid_ds').hideColumn('account_due_amount');
$('CON601_con_contract_grid_ds').hideColumn('ac_received_amount');
$('CON601_con_contract_grid_ds').hideColumn('ac_unreceived_amount');
document.getElementById('account_due_times_from_id').style.display = "none";
document.getElementById('account_due_times_from_id_prompt').style.display = "none";
document.getElementById('account_due_times_to_id').style.display = "none";
document.getElementById('account_due_times_to_id_prompt').style.display = "none";
document.getElementById('account_due_days_from_id').style.display = "none";
document.getElementById('account_due_days_from_id_prompt').style.display = "none";
document.getElementById('account_due_days_to_id').style.display = "none";
document.getElementById('account_due_days_to_id_prompt').style.display = "none";
document.getElementById('account_due_amount_from_id').style.display = "none";
document.getElementById('account_due_amount_from_id_prompt').style.display = "none";
document.getElementById('account_due_amount_to_id').style.display = "none";
document.getElementById('account_due_amount_to_id_prompt').style.display = "none";
var grid_id = $('CON601_con_contract_grid_ds');
grid_id.hideColumn('account_due_times');
grid_id.hideColumn('account_due_days');
grid_id.hideColumn('account_due_amount');
}
if("${/model/role_info/record/@role_code}"=="0020"||"${/model/role_info/record/@role_code}"=="0030"){
$('CON601_con_contract_grid_ds').hideColumn('account_due_times');
$('CON601_con_contract_grid_ds').hideColumn('account_due_days');
$('CON601_con_contract_grid_ds').hideColumn('account_due_amount');
$('CON601_con_contract_grid_ds').hideColumn('ac_received_amount');
$('CON601_con_contract_grid_ds').hideColumn('ac_unreceived_amount');
}
});
]]></script>
......
......@@ -13,6 +13,7 @@
model="fnd.fnd_companies" rootPath="default_company_path"/>
<a:model-query autoCount="false" fetchAll="true" model="gld.FND5800.gld_period_status_fieldset"
rootPath="fieldset"/>
<a:model-query autoCount="false" model="hls.HLS801.sys_role_flag" rootPath="sys_role_path"/>
</a:init-procedure>
<a:view>
<a:link id="con_finance_income_link"
......@@ -32,11 +33,13 @@
<a:link id="period_month_close_link" model="hls.HLS801.period_month_close" modelaction="execute"/>
<a:link id="tre_interest_confirm_link" model="hls.HLS801.tre_interest_confirm" modelaction="execute"/>
<a:link id="main_link" url="${/request/@context_path}/welcome.lview"/>
<a:link id="csh_current_period_link" model="hls.HLS801.csh_current_period_query" modelaction="update"/>
<script><![CDATA[
//HLS801.NEXT_STEP
var step = 0;
var g_company_id;
var g_company_id_2;
//alert('${/model/sys_role_path/record/@role_code}');
function nextStep() {
var stepTabPanel = $('step');
......@@ -187,6 +190,9 @@
var qrecord = query_ds.getAt(0);
var query_ds_1 = $('unearned_finance_income_query_ds');
var qrecord_1 = query_ds_1.getAt(0);
record.set('calc_end_date', '');
qrecord.set('year', year);
qrecord.set('month', month);
qrecord_1.set('year', year);
......@@ -413,39 +419,68 @@
}
function monthlyendFun() {
/*
@Added: Liyuan.Chen
@Date: 2020/5/20
@Description: 月结结束校验
@Param:
*/
var headers_ds = $('hls_monthly_statement_ds');
var record = headers_ds.getAt(0);
var role_flag = '${/model/sys_role_path/record/@role_code}';
Leaf.showConfirm('${l:HLS.PROMPT}', '本次月结结束后不可执行当月其他相关操作,是否确认结束?', function okFun() {
Leaf.Masker.mask(Ext.getBody(), '${l:HLS.SAVING}');
Leaf.request({
url: $('period_month_close_link').getUrl(),
$L.request({
url: $('csh_current_period_link').getUrl(),
para: {
internal_period_num: record.get('internal_period_num'),
calc_end_date: record.get('calc_end_date')
csh_date : record.get('period_name'),
role_flag : role_flag
},
success: function (args) {
var result = args.result;
if (!result) {
Leaf.showWarningMessage('', '${l:PRJ509.DATA_NOT_BACK}', null, 200, 100);
return;
}
var period_return_value = result.period_return_value;
if (period_return_value != 'SUCCESS') {
Leaf.showWarningMessage('', '月结结束出错!', null, 200, 100);
Leaf.Masker.unmask(Ext.getBody());
return;
}
Leaf.Masker.unmask(Ext.getBody());
success: function(args) {
/*$L.SideBar.show({
msg: '操作成功',
duration: 2000
});
$L.Masker.unmask(Ext.getBody());*/
Leaf.request({
url: $('period_month_close_link').getUrl(),
para: {
internal_period_num: record.get('internal_period_num'),
calc_end_date: record.get('calc_end_date')
},
success: function (args) {
var result = args.result;
if (!result) {
Leaf.showWarningMessage('', '${l:PRJ509.DATA_NOT_BACK}', null, 200, 100);
return;
}
var period_return_value = result.period_return_value;
if (period_return_value != 'SUCCESS') {
Leaf.showWarningMessage('', '月结结束出错!', null, 200, 100);
Leaf.Masker.unmask(Ext.getBody());
return;
}
Leaf.Masker.unmask(Ext.getBody());
},
failure: function () {
Leaf.Masker.unmask(Ext.getBody());
},
error: function () {
Leaf.Masker.unmask(Ext.getBody());
},
scope: this
});
},
failure: function () {
Leaf.Masker.unmask(Ext.getBody());
failure: function() {
$L.Masker.unmask(Ext.getBody());
},
error: function () {
Leaf.Masker.unmask(Ext.getBody());
error: function() {
$L.Masker.unmask(Ext.getBody());
},
scope: this
});
}, Leaf.Masker.unmask(Ext.getBody()));
}
......@@ -495,14 +530,118 @@
}
}
function csh_onload(ds) {
if('${/model/sys_role_path/record/@role_code}' == 'NO'){
var records = $(ds.id).getAll();
records.forEach(function (v, i) {
if(v.get('csh_confirm_flag') == 'Y'){
v.getField('ref_v04').setReadOnly(true);
}
});
}
}
function csh_transaction_confirm() {
var role_flag = '${/model/sys_role_path/record/@role_code}';
var record = $('csh_transaction_confirm_ds').getSelected()[0];
if(role_flag == 'NO'){
if(record.get('csh_confirm_flag') == 'Y'){
$L.showMessage('提示','该月收款已确认,无需再次确认');
return;
}
$L.showConfirm('提示', '是否进行月结确认?', function() {
$L.Masker.mask(Ext.getBody(), '正在确认......');
$L.request({
url: $('csh_current_period_link').getUrl(),
para: {
ref_v04 : record.get('ref_v04'),
csh_date : record.get('csh_date'),
role_flag : role_flag
},
success: function(args) {
$L.SideBar.show({
msg: '已确认',
duration: 2000
});
$('csh_transaction_confirm_ds').query();
$L.Masker.unmask(Ext.getBody());
},
failure: function() {
$L.Masker.unmask(Ext.getBody());
},
error: function() {
$L.Masker.unmask(Ext.getBody());
},
scope: this
});
});
}
if(role_flag == 'YES'){
if(record.get('csh_confirm_flag') == 'N'){
$L.showMessage('提示','请先进行营业确认');
return;
}
set_value_for_next_step(record.get('csh_date'));
/*$L.showConfirm('提示', '是否确认下一步?', function() {
$L.Masker.mask(Ext.getBody(), '正在执行......');
$L.request({
url: $('csh_current_period_link').getUrl(),
para: {
ref_v04 : record.get('ref_v04'),
csh_date : record.get('csh_date'),
role_flag : role_flag
},
success: function(args) {
$L.SideBar.show({
msg: '操作成功',
duration: 2000
});
$L.Masker.unmask(Ext.getBody());
set_value_for_next_step(record.get('csh_date'));
},
failure: function() {
$L.Masker.unmask(Ext.getBody());
},
error: function() {
$L.Masker.unmask(Ext.getBody());
},
scope: this
});
});*/
}
}
function set_value_for_next_step(value) {
var year = (value.substr(0, 4) + value.substr(5, 2)) * 1;
var record = $('hls_monthly_statement_ds').getAt(0);
record.set('internal_period_num', year);
record.set('period_name', value);
nextStep();
}
]]></script>
<a:dataSets>
<a:dataSet id="yes_no_ds" lookupCode="YES_NO"/>
<a:dataSet id="csh_transaction_confirm_ds" selectable="true" selectionModel="single" autoQuery="true" fetchAll="true" model="hls.HLS801.csh_current_period_query"
queryUrl="${/request/@context_path}/autocrud/hls.HLS801.csh_current_period_query/query">
<a:fields>
<a:field name="csh_date" readOnly="true"/>
<a:field name="csh_count" readOnly="true"/>
<a:field name="csh_not" readOnly="true"/>
<a:field name="csh_partial" readOnly="true"/>
<a:field name="ref_v04"/>
<a:field name="csh_confirm_flag" readOnly="true" checkedValue="Y" uncheckedValue="N"/>
</a:fields>
<a:events>
<a:event name="load" handler="csh_onload"/>
</a:events>
</a:dataSet>
<a:dataSet id="hls_monthly_statement_ds" autoCreate="true">
<a:fields>
<a:field name="period_name" lovGridHeight="300" lovHeight="500"
lovService="gld.gld_period_lov?monthly_closed_flag=N&amp;period_status_code=O"
lovWidth="500" required="true" title="GLD_PERIODS.PERIOD_NAME">
lovWidth="500" required="true" title="GLD_PERIODS.PERIOD_NAME" readOnly="true">
<a:mapping>
<a:map from="internal_period_num" to="internal_period_num"/>
<a:map from="period_name" to="period_name"/>
......@@ -584,10 +723,289 @@
<a:screenTopToolbar>
<a:screenTitle/>
</a:screenTopToolbar>
<a:hBox>
<!--——————————————————————美丽的分割线————————————————————————-->
<a:switch test="/model/sys_role_path/record/@role_code">
<a:case value="NO">
<a:hBox>
<a:tabPanel id="step" marginHeight="80" marginWidth="50">
<a:tabs>
<a:tab id="step_0" disabled="false" marginHeight="20" width="100" prompt="营业月结" selected="true">
<a:hBox height="50">
<!--<a:button click="upStep" text="HLS801.LAST_STEP"/>-->
<!--<a:label width="5"/>
<a:button click="nextStep" text="HLS801.NEXT_STEP"/>-->
<a:label width="5"/>
<a:button click="csh_transaction_confirm" text="月结确认"/>
<a:label width="5"/>
</a:hBox>
<p/>
<a:grid id="csh_transaction_confirm_grid" bindTarget="csh_transaction_confirm_ds"
marginHeight="200" marginWidth="80" navBar="true" style="margin-left:3px">
<a:toolBar>
<!--<a:button click="unearned_finance_income_query"
icon="${/request/@context_path}/images/search.png" text="HLS.QUERY"/>-->
<!-- <a:button type="clear"/>-->
<a:button icon="${/request/@context_path}/images/excel_16.png" text="HLS.EXPORT"
type="excel"/>
</a:toolBar>
<a:columns>
<a:column name="csh_date" prompt="月结日期" width="150" align="center"/>
<a:column name="csh_count" prompt="收款总个数" width="120" align="center"/>
<a:column name="csh_not" prompt="未核销收款数" width="120" align="center"/>
<a:column name="csh_partial" prompt="部分核销收款数" width="120" align="center"/>
<a:column name="ref_v04" prompt="备注" width="250" editor="csh_area_id"/>
<a:column name="csh_confirm_flag" prompt="营业月结确认" width="80" editor="csh_check_id"/>
</a:columns>
<a:editors>
<a:textArea id="csh_area_id"/>
<a:checkBox id="csh_check_id"/>
</a:editors>
</a:grid>
</a:tab>
</a:tabs>
</a:tabPanel>
</a:hBox>
</a:case>
<a:case value="YES">
<a:hBox>
<a:tabPanel id="step" marginHeight="80" marginWidth="50">
<a:tabs>
<a:tab id="step_0" disabled="false" marginHeight="20" width="100" prompt="营业月结" selected="true">
<a:hBox height="50">
<a:button disabled="true" click="upStep" text="HLS801.LAST_STEP"/>
<a:label width="5"/>
<a:button click="csh_transaction_confirm" text="HLS801.NEXT_STEP"/>
</a:hBox>
<p/>
<a:grid id="csh_transaction_confirm_grid" bindTarget="csh_transaction_confirm_ds"
marginHeight="200" marginWidth="80" navBar="true" style="margin-left:3px">
<a:toolBar>
<!--<a:button click="unearned_finance_income_query"
icon="${/request/@context_path}/images/search.png" text="HLS.QUERY"/>-->
<!-- <a:button type="clear"/>-->
<a:button icon="${/request/@context_path}/images/excel_16.png" text="HLS.EXPORT"
type="excel"/>
</a:toolBar>
<a:columns>
<a:column name="csh_date" prompt="月结日期" width="150" align="center"/>
<a:column name="csh_count" prompt="收款总个数" width="120" align="center"/>
<a:column name="csh_not" prompt="未核销收款数" width="120" align="center"/>
<a:column name="csh_partial" prompt="部分核销收款数" width="120" align="center"/>
<a:column name="ref_v04" prompt="备注" width="250" editor="csh_area_id"/>
<a:column name="csh_confirm_flag" prompt="营业月结确认" width="80" editor="csh_check_id"/>
</a:columns>
<a:editors>
<a:textArea id="csh_area_id" readOnly="true"/>
<a:checkBox id="csh_check_id" />
</a:editors>
</a:grid>
</a:tab>
<a:tab id="step_1" disabled="true" prompt="GLD_PERIODS.PERIOD_NAME" selected="false"
width="100">
<a:hBox height="50">
<a:button click="upStep" text="HLS801.LAST_STEP"/>
<a:label width="5"/>
<a:button click="step_0NextStep" text="HLS801.NEXT_STEP"/>
</a:hBox>
<a:hBox>
<a:fieldSet height="250" title="GLD_PERIODS.PERIOD_NAME" width="300">
<a:lov name="period_name" bindTarget="hls_monthly_statement_ds"
prompt="GLD_PERIODS.PERIOD_NAME" width="200"/>
<a:lov name="calc_end_date" bindTarget="hls_monthly_statement_ds" prompt="截止日"
width="200"/>
</a:fieldSet>
</a:hBox>
</a:tab>
<a:tab id="step_2" disabled="true" marginHeight="20" prompt="HLS801.INCOME" selected="false"
width="100">
<a:hBox height="50">
<a:button click="upStep" text="HLS801.LAST_STEP"/>
<a:label width="5"/>
<a:button click="nextStep" text="HLS801.NEXT_STEP"/>
<a:label width="80"/>
<a:button click="unearned_finance_income_confirm" text="HLS801.INCOME_CONFIRM"/>
<!-- <a:button click="unearned_finance_income_query" text="HLS.QUERY"/>
<a:button click="unearned_finance_income_clear" text="HLS.CLEAR"/> -->
<a:label width="5"/>
<!-- <a:button click="hls202_link_con901_fun" text="HLS801.OTHER_INCOME_CONFIRM"/> -->
<!-- <a:button click="do_unearned_finance_income_excel" text="RSC_FIN_STATEMENT_TMPLT_HDS.EXCEL_OUTPUT"/> -->
</a:hBox>
<a:form column="1" marginWidth="80" style="margin-left:3px" title="HLS.QUERY_TITLE">
<a:box column="2" labelWidth="150" style="margin-left:-80px">
<a:textField name="year" bindTarget="unearned_finance_income_query_ds"
prompt="HLS801.YEAR" readOnly="true"/>
<a:textField name="month" bindTarget="unearned_finance_income_query_ds"
prompt="HLS801.MONTH" readOnly="true"/>
<!-- <a:textField name="day" bindTarget="unearned_finance_income_query_ds" prompt="日" readOnly="true"/> -->
<a:lov name="company_code" bindTarget="unearned_finance_income_query_ds"
prompt="HLS.COMPANY_CODE"/>
<a:textField name="company_short_name" bindTarget="unearned_finance_income_query_ds"
prompt="HLS.COMPANY_NAME" readOnly="true"/>
<a:comboBox name="finance_income_recognized"
bindTarget="unearned_finance_income_query_ds" prompt="是否确认"/>
</a:box>
</a:form>
<p/>
<a:grid id="unearned_finance_income_grid" bindTarget="unearned_finance_income_ds"
marginHeight="300" marginWidth="80" navBar="true" style="margin-left:3px">
<a:toolBar>
<a:button click="unearned_finance_income_query"
icon="${/request/@context_path}/images/search.png" text="HLS.QUERY"/>
<!-- <a:button type="clear"/>-->
<a:button icon="${/request/@context_path}/images/excel_16.png" text="HLS.EXPORT"
type="excel"/>
</a:toolBar>
<a:columns>
<a:column name="seq" prompt="HLS801.SEQ" width="50"/>
<a:column name="contract_number" prompt="合同编号" width="150"/>
<a:column name="contract_name" prompt="合同名称" width="150"/>
<a:column name="finance_amount" align="right" prompt="HLS.FINANCE_AMOUNT"
renderer="Leaf.formatMoney" width="110"/>
<a:column name="times" prompt="期数" width="80" align="center"/>
<a:column name="period" prompt="GLD_BALANCES.PERIOD_NAME" width="150"/>
<a:column name="calc_end_date" align="center" prompt="截止日"
renderer="Leaf.formatDate" width="150"/>
<a:column name="interest" align="right" prompt="HLS801.INTEREST"
renderer="Leaf.formatMoney" width="100"/>
<a:column name="int_rate_implicit" align="right" prompt="HLS801.INT_RATE"
renderer="ratePercentRender" width="70"/>
<a:column name="calc_period" prompt="HLS801.CALC_PERIOD" width="150"/>
<a:column name="calc_date_count" prompt="HLS801.CALC_DATE_COUNT" width="100"/>
<a:column name="vat_unearned_finance_income" align="right"
prompt="HLS801.VAT_UNEARNED_FINANCE_INCOME" renderer="Leaf.formatMoney"
width="110"/>
<a:column name="adjustvat" align="right"
prompt="税改16%调整额" renderer="Leaf.formatMoney"
width="110"/>
<a:column name="adjustvat13" align="right"
prompt="税改13%调整额" renderer="Leaf.formatMoney"
width="110"/>
<a:column name="unearned_finance_income" align="right"
prompt="HLS801.UNEARNED_FINANCE_INCOME" renderer="Leaf.formatMoney"
width="110"/>
<a:column name="finance_income_recognized" prompt="HLS801.FINANCE_INCOME_RECOGNIZED"
width="80"/>
</a:columns>
</a:grid>
</a:tab>
<a:tab id="step_3" disabled="true" prompt="HLS801.MONTH_END" selected="false" width="100">
<a:hBox height="50">
<a:button click="upStep" text="HLS801.LAST_STEP"/>
<a:label width="5"/>
<a:button click="nextStep" text="HLS801.NEXT_STEP"/>
<a:label width="80"/>
<a:button click="monthlyendFun" text="HLS801.MONTH_END"/>
</a:hBox>
<a:form column="1" marginWidth="80" style="margin-left:3px" title="HLS.QUERY_TITLE">
<a:box column="2" labelWidth="150" style="margin-left:-80px">
<a:textField name="year" bindTarget="unearned_finance_income_query_ds"
prompt="HLS801.YEAR" readOnly="true"/>
<a:textField name="month" bindTarget="unearned_finance_income_query_ds"
prompt="HLS801.MONTH" readOnly="true"/>
</a:box>
</a:form>
</a:tab>
<a:tab id="step_4" disabled="true" prompt="HLS801.PERIOD_CONTROL" selected="false" width="100">
<a:hBox height="50">
<a:button click="upStep" text="HLS801.LAST_STEP"/>
<a:label width="5"/>
<a:button disabled="true" text="HLS801.NEXT_STEP"/>
<a:label width="50"/>
</a:hBox>
<a:grid id="close_open_grid" bindTarget="close_open_ds" marginHeight="300" marginWidth="80">
<a:columns>
<a:column name="period_year" align="center" prompt="GLD_PERIODS.PERIOD_YEAR"
sortable="true" width="100"/>
<a:column name="period_num" align="center"
prompt="FND_DIMENSIONS.DIMENSION_SEQUENCE" sortable="true" width="80"/>
<a:column name="start_date_c" align="center" prompt="GLD_EXCHANGE_RATE.START_DATE"
sortable="true" width="150"/>
<a:column name="end_date_c" align="center" prompt="GLD_EXCHANGE_RATE.END_DATE"
sortable="true" width="150"/>
<a:column name="quarter_num" align="center" prompt="GLD_PERIOD_STATUS.QUARTER"
sortable="true" width="80"/>
<a:column name="period_name" align="center" prompt="GLD_PERIODS.PERIOD_NAME"
sortable="true" width="120"/>
<a:column name="adjustment_flag" align="center" prompt="GLD_PERIOD_STATUS.ADJUST"
width="100"/>
<a:column name="period_status_code" align="center"
prompt="GLD_PERIOD_STATUS.PERIOD_STATUS" renderer="statusRenderer"
width="120"/>
<a:column name="actionOpen" align="center" prompt="HLS.OPEN_PERIOD"
renderer="openPeriodDs" sortable="true" width="120"/>
<a:column name="actionClose" align="center" prompt="HLS.CLOSE_PERIOD"
renderer="closePeriodDs" sortable="true" width="120"/>
</a:columns>
<a:editors>
<a:checkBox id="closed_grid_cb"/>
</a:editors>
</a:grid>
</a:tab>
</a:tabs>
</a:tabPanel>
</a:hBox>
</a:case>
</a:switch>
<!--——————————————————————美丽的分割线————————————————————————-->
<!--<a:hBox>
<a:tabPanel id="step" marginHeight="80" marginWidth="50">
<a:tabs>
<a:tab id="step_0" disabled="false" prompt="GLD_PERIODS.PERIOD_NAME" selected="true"
<a:tab id="step_0" disabled="false" marginHeight="20" width="100" prompt="营业月结" selected="true">
<a:hBox height="50">
&lt;!&ndash;<a:button click="upStep" text="HLS801.LAST_STEP"/>&ndash;&gt;
&lt;!&ndash;<a:label width="5"/>
<a:button click="nextStep" text="HLS801.NEXT_STEP"/>
<a:label width="80"/>
<a:button click="csh_transaction_confirm" text="月结确认"/>
<a:label width="5"/>&ndash;&gt;
</a:hBox>
&lt;!&ndash;<a:form column="1" marginWidth="80" style="margin-left:3px" title="HLS.QUERY_TITLE">
<a:box column="2" labelWidth="150" style="margin-left:-80px">
<a:textField name="year" bindTarget="unearned_finance_income_query_ds"
prompt="HLS801.YEAR" readOnly="true"/>
<a:textField name="month" bindTarget="unearned_finance_income_query_ds"
prompt="HLS801.MONTH" readOnly="true"/>
&lt;!&ndash; <a:textField name="day" bindTarget="unearned_finance_income_query_ds" prompt="日" readOnly="true"/> &ndash;&gt;
<a:lov name="company_code" bindTarget="unearned_finance_income_query_ds"
prompt="HLS.COMPANY_CODE"/>
<a:textField name="company_short_name" bindTarget="unearned_finance_income_query_ds"
prompt="HLS.COMPANY_NAME" readOnly="true"/>
<a:comboBox name="finance_income_recognized"
bindTarget="unearned_finance_income_query_ds" prompt="是否确认"/>
</a:box>
</a:form>&ndash;&gt;
<p/>
<a:grid id="csh_transaction_confirm_grid" bindTarget="csh_transaction_confirm_ds"
marginHeight="200" marginWidth="80" navBar="true" style="margin-left:3px">
<a:toolBar>
&lt;!&ndash;<a:button click="unearned_finance_income_query"
icon="${/request/@context_path}/images/search.png" text="HLS.QUERY"/>&ndash;&gt;
&lt;!&ndash; <a:button type="clear"/>&ndash;&gt;
<a:button icon="${/request/@context_path}/images/excel_16.png" text="HLS.EXPORT"
type="excel"/>
</a:toolBar>
<a:columns>
<a:column name="csh_date" prompt="月结日期" width="150" align="center"/>
<a:column name="csh_count" prompt="收款总个数" width="120" align="center"/>
<a:column name="csh_not" prompt="未核销收款数" width="120" align="center"/>
<a:column name="csh_partial" prompt="部分核销收款数" width="120" align="center"/>
<a:column name="ref_v04" prompt="备注" width="150" editor="csh_area_id"/>
<a:column name="csh_confirm_flag" prompt="营业月结确认" width="80" editor="csh_check_id"/>
</a:columns>
<a:editors>
<a:textArea id="csh_area_id"/>
<a:checkBox id="csh_check_id"/>
</a:editors>
</a:grid>
</a:tab>
<a:tab id="step_1" disabled="true" prompt="GLD_PERIODS.PERIOD_NAME" selected="false"
width="100">
<a:hBox height="50">
<a:button disabled="true" text="HLS801.LAST_STEP"/>
......@@ -603,7 +1021,7 @@
</a:fieldSet>
</a:hBox>
</a:tab>
<!-- <a:tab id="step_1" disabled="true" prompt="HLS801.COST" selected="false" width="100">
&lt;!&ndash; <a:tab id="step_1" disabled="true" prompt="HLS801.COST" selected="false" width="100">
<a:hBox height="50">
<a:button click="upStep" text="HLS801.LAST_STEP"/>
<a:label width="5"/>
......@@ -641,8 +1059,8 @@
<a:column name="recognized_flag" prompt="HLS801.RECOGNIZED_FLAG" width="70"/>
</a:columns>
</a:grid>
</a:tab> -->
<a:tab id="step_1" disabled="true" marginHeight="20" prompt="HLS801.INCOME" selected="false"
</a:tab> &ndash;&gt;
<a:tab id="step_2" disabled="true" marginHeight="20" prompt="HLS801.INCOME" selected="false"
width="100">
<a:hBox height="50">
<a:button click="upStep" text="HLS801.LAST_STEP"/>
......@@ -650,11 +1068,11 @@
<a:button click="nextStep" text="HLS801.NEXT_STEP"/>
<a:label width="80"/>
<a:button click="unearned_finance_income_confirm" text="HLS801.INCOME_CONFIRM"/>
<!-- <a:button click="unearned_finance_income_query" text="HLS.QUERY"/>
<a:button click="unearned_finance_income_clear" text="HLS.CLEAR"/> -->
&lt;!&ndash; <a:button click="unearned_finance_income_query" text="HLS.QUERY"/>
<a:button click="unearned_finance_income_clear" text="HLS.CLEAR"/> &ndash;&gt;
<a:label width="5"/>
<!-- <a:button click="hls202_link_con901_fun" text="HLS801.OTHER_INCOME_CONFIRM"/> -->
<!-- <a:button click="do_unearned_finance_income_excel" text="RSC_FIN_STATEMENT_TMPLT_HDS.EXCEL_OUTPUT"/> -->
&lt;!&ndash; <a:button click="hls202_link_con901_fun" text="HLS801.OTHER_INCOME_CONFIRM"/> &ndash;&gt;
&lt;!&ndash; <a:button click="do_unearned_finance_income_excel" text="RSC_FIN_STATEMENT_TMPLT_HDS.EXCEL_OUTPUT"/> &ndash;&gt;
</a:hBox>
<a:form column="1" marginWidth="80" style="margin-left:3px" title="HLS.QUERY_TITLE">
<a:box column="2" labelWidth="150" style="margin-left:-80px">
......@@ -662,7 +1080,7 @@
prompt="HLS801.YEAR" readOnly="true"/>
<a:textField name="month" bindTarget="unearned_finance_income_query_ds"
prompt="HLS801.MONTH" readOnly="true"/>
<!-- <a:textField name="day" bindTarget="unearned_finance_income_query_ds" prompt="日" readOnly="true"/> -->
&lt;!&ndash; <a:textField name="day" bindTarget="unearned_finance_income_query_ds" prompt="日" readOnly="true"/> &ndash;&gt;
<a:lov name="company_code" bindTarget="unearned_finance_income_query_ds"
prompt="HLS.COMPANY_CODE"/>
<a:textField name="company_short_name" bindTarget="unearned_finance_income_query_ds"
......@@ -677,7 +1095,7 @@
<a:toolBar>
<a:button click="unearned_finance_income_query"
icon="${/request/@context_path}/images/search.png" text="HLS.QUERY"/>
<!-- <a:button type="clear"/>-->
&lt;!&ndash; <a:button type="clear"/>&ndash;&gt;
<a:button icon="${/request/@context_path}/images/excel_16.png" text="HLS.EXPORT"
type="excel"/>
</a:toolBar>
......@@ -716,7 +1134,7 @@
</a:columns>
</a:grid>
</a:tab>
<a:tab id="step_2" disabled="true" prompt="HLS801.MONTH_END" selected="false" width="100">
<a:tab id="step_3" disabled="true" prompt="HLS801.MONTH_END" selected="false" width="100">
<a:hBox height="50">
<a:button click="upStep" text="HLS801.LAST_STEP"/>
<a:label width="5"/>
......@@ -733,7 +1151,7 @@
</a:box>
</a:form>
</a:tab>
<a:tab id="step_3" disabled="true" prompt="HLS801.PERIOD_CONTROL" selected="false" width="100">
<a:tab id="step_4" disabled="true" prompt="HLS801.PERIOD_CONTROL" selected="false" width="100">
<a:hBox height="50">
<a:button click="upStep" text="HLS801.LAST_STEP"/>
<a:label width="5"/>
......@@ -771,7 +1189,7 @@
</a:tab>
</a:tabs>
</a:tabPanel>
</a:hBox>
</a:hBox>-->
</a:screenBody>
</a:view>
</a:screen>
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