Commit cb2f09db authored by niminmin's avatar niminmin

Merge branch 'feature/月结功能修改' into develop

parents 95fc39ac e49129f1
......@@ -127,7 +127,7 @@
(SELECT MIN(ccc.due_date)
FROM con_contract_cashflow ccc
WHERE ccc.contract_id = cc.contract_id
--AND ccc.overdue_status = 'Y'
AND ccc.due_amount > 0
AND ccc.due_date <= sysdate
AND ccc.cf_item in (1, 8, 9)
AND ccc.write_off_flag <> 'FULL') min_overdue_date,
......
......@@ -61,9 +61,12 @@
<bm:operation name="execute">
<bm:update-sql><![CDATA[
begin
hls_monthend_new_pkg.csh_check_acr(p_user_id => ${/session/@user_id});
hls_monthend_new_pkg.csh_check_acr(p_user_id => ${/session/@user_id},p_err_msg=> ${@p_err_msg});
end;
]]></bm:update-sql>
<bm:parameters>
<bm:parameter name="p_err_msg" dataType="java.lang.String" input="false" output="true" outputPath="@p_err_msg"/>
</bm:parameters>
</bm:operation>
</bm:operations>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: qwm
$Date: 2014-1-3 下午1:05:14
$Revision: 1.0
$Purpose:
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
<bm:operations>
<bm:operation name="update">
<bm:update-sql><![CDATA[
begin
hls_monthend_new_pkg.delete_tax_confrim_temp_data(
p_user_id => ${/session/@user_id},
p_session_id=>${/session/@session_id}
);
end;
]]></bm:update-sql>
</bm:operation>
</bm:operations>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:o="leaf.database.local.oracle" xmlns:bm="http://www.leaf-framework.org/schema/bm" xmlns:f="leaf.database.features" alias="t1" baseTable="HLS_TAX_ACT_CONFIRM" needAccessControl="false">
<bm:fields>
<bm:field name="act_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="ACT_ID" prompt="HLS_TAX_ACT_CONFIRM.ACT_ID"/>
<bm:field name="cashflow_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="CASHFLOW_ID" prompt="HLS_TAX_ACT_CONFIRM.CASHFLOW_ID"/>
<bm:field name="contract_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="CONTRACT_ID" prompt="HLS_TAX_ACT_CONFIRM.CONTRACT_ID"/>
<bm:field name="cf_item" databaseType="NUMBER" datatype="java.lang.Long" physicalName="CF_ITEM" prompt="HLS_TAX_ACT_CONFIRM.CF_ITEM"/>
<bm:field name="cf_type" databaseType="NUMBER" datatype="java.lang.Long" physicalName="CF_TYPE" prompt="HLS_TAX_ACT_CONFIRM.CF_TYPE"/>
<bm:field name="times" databaseType="NUMBER" datatype="java.lang.Long" physicalName="TIMES" prompt="HLS_TAX_ACT_CONFIRM.TIMES"/>
<bm:field name="due_date" databaseType="DATE" datatype="java.util.Date" physicalName="DUE_DATE" prompt="HLS_TAX_ACT_CONFIRM.DUE_DATE"/>
<bm:field name="due_amount" databaseType="NUMBER" datatype="java.lang.Double" physicalName="DUE_AMOUNT" prompt="HLS_TAX_ACT_CONFIRM.DUE_AMOUNT"/>
<bm:field name="vat_due_amount" databaseType="NUMBER" datatype="java.lang.Double" physicalName="VAT_DUE_AMOUNT" prompt="HLS_TAX_ACT_CONFIRM.VAT_DUE_AMOUNT"/>
<bm:field name="received_amount" databaseType="NUMBER" datatype="java.lang.Double" physicalName="RECEIVED_AMOUNT" prompt="HLS_TAX_ACT_CONFIRM.RECEIVED_AMOUNT"/>
<bm:field name="last_received_date" databaseType="DATE" datatype="java.util.Date" physicalName="LAST_RECEIVED_DATE" prompt="HLS_TAX_ACT_CONFIRM.LAST_RECEIVED_DATE"/>
<bm:field name="full_write_off_date" databaseType="DATE" datatype="java.util.Date" physicalName="FULL_WRITE_OFF_DATE" prompt="HLS_TAX_ACT_CONFIRM.FULL_WRITE_OFF_DATE"/>
<bm:field name="period_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PERIOD_NAME" prompt="HLS_TAX_ACT_CONFIRM.PERIOD_NAME"/>
<bm:field name="tax_create_je_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="TAX_CREATE_JE_FLAG" prompt="HLS_TAX_ACT_CONFIRM.TAX_CREATE_JE_FLAG"/>
<bm:field name="batch_je_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="BATCH_JE_ID" prompt="HLS_TAX_ACT_CONFIRM.BATCH_JE_ID"/>
<bm:field name="contract_number" expression="(select cc.contract_number from con_contract cc where cc.contract_id=t1.contract_id)"/>
<bm:field name="cf_item_n" expression="(select ct.description from hls_cashflow_item ct where ct.cf_item=t1.cf_item)"/>
</bm:fields>
<bm:features>
<f:standard-who/>
<o:sequence-pk/>
</bm:features>
<bm:primary-key>
<bm:pk-field name="act_id"/>
</bm:primary-key>
<bm:query-fields>
<bm:query-field name="period_name" queryExpression="t1.period_name = ${@period_name}"/>
</bm:query-fields>
<bm:data-filters>
<bm:data-filter name="period_name" enforceOperations="query" expression="t1.period_name = ${@period_name}"/>
</bm:data-filters>
<bm:operations>
<bm:operation name="update">
<bm:update-sql><![CDATA[
begin
hls_monthend_new_pkg.insert_tax_confirm_data(
p_first_flag => ${@first_flag},
p_period_name => ${@period_name},
p_calc_end_date => to_date(${@calc_end_date},'yyyy-mm-dd'),
p_user_id => ${/session/@user_id}
);
end;
]]></bm:update-sql>
</bm:operation>
<bm:operation name="execute">
<bm:update-sql><![CDATA[
begin
hls_monthend_new_pkg.refresh_tax_confirm_data(
p_period_name => ${@period_name},
p_calc_end_date => to_date(${@calc_end_date},'yyyy-mm-dd'),
p_user_id => ${/session/@user_id}
);
end;
]]></bm:update-sql>
</bm:operation>
</bm:operations>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: qwm
$Date: 2014-1-3 下午1:05:14
$Revision: 1.0
$Purpose:
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
<bm:operations>
<bm:operation name="update">
<bm:update-sql><![CDATA[
begin
hls_monthend_new_pkg.insert_tax_confrim_temp(
p_act_id => ${@act_id},
p_cashflow_id => ${@cashflow_id},
p_user_id => ${/session/@user_id},
p_session_id=>${/session/@session_id}
);
end;
]]></bm:update-sql>
</bm:operation>
<bm:operation name="execute">
<bm:update-sql><![CDATA[
begin
hls_monthend_new_pkg.advance_tax_je_create(
p_user_id => ${/session/@user_id},
p_session_id=>${/session/@session_id},
p_company_id=>${/session/@company_id},
p_period_name => ${@period_name},
p_calc_end_date => to_date(${@calc_end_date},'yyyy-mm-dd')
);
end;
]]></bm:update-sql>
</bm:operation>
</bm:operations>
</bm:model>
......@@ -121,7 +121,7 @@ SELECT h.period_year,
AND hi.vat_interface_status = 'BACK'
AND to_char(hi.invoice_date,'yyyymm') <= ${@base_period}
AND (li.cashflow_id = l.cashflow_id OR
li.ref_n03 = l.journal_header_id))
li.ref_n04 = l.journal_line_id))
UNION
select vl.*
from ET_VAT_JOURNAL_LV vl
......
......@@ -121,7 +121,7 @@ SELECT h.period_year,
AND hi.vat_interface_status = 'BACK'
AND to_char(hi.invoice_date,'yyyymm') < ${@base_period}
AND (li.cashflow_id = l.cashflow_id OR
li.ref_n03 = l.journal_header_id))
li.ref_n04 = l.journal_line_id))
UNION
select vl.*
from ET_VAT_JOURNAL_LV vl
......@@ -228,14 +228,16 @@ SELECT h.period_year,
</bm:operation>
</bm:operations>
<bm:data-filters>
<bm:data-filter enforceOperations="query" expression="t1.journal_date &lt;= add_months(last_day(to_date(${@base_period},'yyyymm')),-1)"/>
<bm:data-filter enforceOperations="query"
expression="t1.journal_date &lt;= add_months(last_day(to_date(${@base_period},'yyyymm')),-1)"/>
<bm:data-filter enforceOperations="query" expression="t1.amount_tax > 0"/>
</bm:data-filters>
<bm:query-fields>
<bm:query-field name="contract_number" queryExpression="t1.contract_number = ${@contract_number}"/>
<bm:query-field name="bp_name" queryExpression="t1.bp_name = ${@bp_name}"/>
<bm:query-field name="journal_date" queryExpression="to_char(t1.journal_date,'yyyy-mm-dd') = ${@journal_date}"/>
<bm:query-field name="base_period" queryExpression="to_number(to_char(t1.journal_date,'yyyymm')) &lt; to_number(${@base_period})"/>
<bm:query-field name="base_period"
queryExpression="to_number(to_char(t1.journal_date,'yyyymm')) &lt; to_number(${@base_period})"/>
<bm:query-field name="invoice_date" queryExpression="to_char(t1.invoice_date,'yyyy-mm-dd') = ${@invoice_date}"/>
</bm:query-fields>
</bm:model>
......@@ -62,7 +62,7 @@
function con7000_submit() {
var hd_record = $('con_rent_trans_penalty_hd_ds').getAt(0);
var gld_record = $('con_rent_trans_penalty_hd_ds').getAll();
var gld_record = $('con7000_gld_write_off_ds').getAll();
if (gld_record.length < 1) {
Leaf.showMessage('提示', '罚息调整数据不能为空!');
return;
......
......@@ -36,23 +36,17 @@
<a:link id="user_main_link" url="${/request/@context_path}/user_role_home_page.lview"/>
<a:link id="csh_current_period_link" model="hls.HLS801.csh_current_period_query" modelaction="update"/>
<a:link id="csh_check_acr_link" model="hls.HLS801.csh_current_period_query" modelaction="execute"/>
<style><
!
[CDATA[
.win-dialog-content.win-type {
max-width: 700px;
max-height: 700px;
!important
}
]
]
></style>
<a:link id="hls_tax_confirm_link" model="hls.HLS801.hls_tax_act_confirm" modelaction="update"/>
<a:link id="hls_tax_refresh_link" model="hls.HLS801.hls_tax_act_confirm" modelaction="execute"/>
<a:link id="hls_tax_confirm_create_je_link"
url="${/request/@context_path}/modules/hls/HLS801/tax_confirm.lsc"/>
<script><![CDATA[
//HLS801.NEXT_STEP
var step = 0;
var g_company_id;
var g_company_id_2;
var first_flag = 'Y';
//alert('${/model/sys_role_path/record/@role_code}');
$L.onReady(function () {
......@@ -106,7 +100,32 @@
if (period_name == 0 || period_name == '' || calc_end_date == 0 || calc_end_date == '') {
Leaf.showMessage('${l:HLS.PROMPT}', '请确认期间以及截止日!');
} else {
nextStep();
Leaf.Masker.mask(Ext.getBody(), '${l:HLS.SAVING}');
Leaf.request({
url: $('hls_tax_confirm_link').getUrl(),
para: {
internal_period_num: record.get('internal_period_num'),
first_flag: first_flag,
period_name: record.get('period_name'),
calc_end_date: record.get('calc_end_date')
},
success: function () {
Leaf.Masker.unmask(Ext.getBody());
first_flag = 'N';
$('hl_sales_tax_act_ds').setQueryParameter('period_name', record.get('period_name'));
$('hl_sales_tax_act_ds').query();
nextStep();
},
failure: function () {
Leaf.Masker.unmask(Ext.getBody());
},
error: function () {
Leaf.Masker.unmask(Ext.getBody());
},
scope: this
});
}
}
......@@ -458,11 +477,6 @@
role_flag: role_flag
},
success: function (args) {
/*$L.SideBar.show({
msg: '操作成功',
duration: 2000
});
$L.Masker.unmask(Ext.getBody());*/
Leaf.request({
url: $('period_month_close_link').getUrl(),
para: {
......@@ -563,7 +577,6 @@
}
function csh_transaction_confirm() {
debugger;
var role_flag = '${/model/sys_role_path/record/@role_code}';
var record = $('csh_transaction_confirm_ds').getSelected()[0];
if (role_flag == 'NO') {
......@@ -584,7 +597,7 @@
debugger;
$L.Masker.unmask(Ext.getBody());
if (args.result.p_err_msg) {
$L.showErrorMessage("提示", args.result.p_err_msg, null, 800, 400);
$L.showErrorMessage("提示", args.result.p_err_msg, null, 800, 300);
} else {
$L.SideBar.show({
msg: '已确认',
......@@ -619,7 +632,11 @@
$L.Masker.unmask(Ext.getBody());
if (args.result.p_err_msg) {
$L.Masker.unmask(Ext.getBody());
$L.showErrorMessage("提示", args.result.p_err_msg, null, 800, 400);
$L.showConfirm('提示', args.result.p_err_msg, function () {
set_value_for_next_step(record.get('csh_date'));
});
//$L.showErrorMessage("提示", args.result.p_err_msg, null, 800, 400);
} else {
set_value_for_next_step(record.get('csh_date'));
......@@ -665,13 +682,101 @@
}
function set_value_for_next_step(value) {
var year = (value.substr(0, 4) + value.substr(5, 2)) * 1;
var internal_period_num = (value.substr(0, 4) + value.substr(5, 2)) * 1;
var year = value.substring(0, 4);
var month = value.substring(5, 7);
var record = $('hls_monthly_statement_ds').getAt(0);
record.set('internal_period_num', year);
record.set('internal_period_num', internal_period_num);
record.set('period_name', value);
var lastDay = new Date(year, month, 0);
record.set('calc_end_date', Leaf.formatDate(lastDay));
nextStep();
}
function hl_sales_tax_act_refresh() {
var record = $('hls_monthly_statement_ds').getAt(0);
Leaf.Masker.mask(Ext.getBody(), '正在刷新...');
Leaf.request({
url: $('hls_tax_refresh_link').getUrl(),
para: {
period_name: record.get('period_name'),
calc_end_date: record.get('calc_end_date')
},
success: function () {
Leaf.Masker.unmask(Ext.getBody());
Leaf.SideBar.enable = true;
Leaf.SideBar.show({
msg: '刷新成功',
duration: 3000
});
$('hl_sales_tax_act_ds').setQueryParameter('period_name', record.get('period_name'));
$('hl_sales_tax_act_ds').query();
},
failure: function () {
Leaf.Masker.unmask(Ext.getBody());
},
error: function () {
Leaf.Masker.unmask(Ext.getBody());
},
scope: this
});
}
function tax_confirm_beforeremove(ds, records) {
for (var i = 0; i < records.length; i++) {
if (records[i].get('tax_create_je_flag') == 'Y') {
Leaf.showMessage('${l:HLS.PROMPT}', '本该期间内增值税已确认,不能删除!');
return false;
}
}
}
function tax_confirm() {
debugger;
var records = $('hl_sales_tax_act_ds').getAll();
var calc_end_date = $('hls_monthly_statement_ds').getAt(0).get('calc_end_date');
var period_name = $('hls_monthly_statement_ds').getAt(0).get('period_name');
var param = {};
var saveData = [];
for (i = 0; i < records.length; i++) {
var record = records[i];
if (record.get('tax_create_je_flag') == 'Y') {
Leaf.showMessage('${l:HLS.PROMPT}', '该期间内增值税已确认!');
return false;
}
record.set('_status', 'update');
saveData.push(record.data);
}
param['details'] = saveData;
param['calc_end_date']=calc_end_date;
param['period_name']=period_name;
$L.showConfirm('提示', '是否进行增值税确认?', function () {
Leaf.Masker.mask(Ext.getBody(), '正在进行增值税确认...');
Leaf.request({
url: $('hls_tax_confirm_create_je_link').getUrl(),
para: param,
success: function (args) {
Leaf.SideBar.enable = true;
Leaf.SideBar.show({
msg: '操作成功',
duration: 3000
});
Leaf.Masker.unmask(Ext.getBody());
$('hl_sales_tax_act_ds').setQueryParameter('period_name', record.get('period_name'));
$('hl_sales_tax_act_ds').query();
},
failure: function () {
Leaf.Masker.unmask(Ext.getBody());
},
error: function () {
Leaf.Masker.unmask(Ext.getBody());
},
scope: this
});
});
}
]]></script>
<a:dataSets>
<a:dataSet id="yes_no_ds" lookupCode="YES_NO"/>
......@@ -702,7 +807,8 @@
</a:field>
<a:field name="internal_period_num"/>
<a:field name="calc_end_date" lovGridHeight="300" lovHeight="500"
lovService="hls.HLS801.calc_end_date_ds" lovWidth="500" required="true" title="截止日查询">
lovService="hls.HLS801.calc_end_date_ds" lovWidth="500" required="true" title="截止日查询"
readOnly="true">
<a:mapping>
<!-- <a:map from="internal_period_num" to="internal_period_num"/> -->
<a:map from="calc_end_date" to="calc_end_date"/>
......@@ -771,6 +877,14 @@
<a:dataSet id="close_open_ds" autoQuery="false" fetchAll="true" model="hls.HLS801.hls_current_period_query"
queryUrl="${/request/@context_path}/autocrud/hls.HLS801.hls_current_period_query/query">
</a:dataSet>
<a:dataSet id="hl_sales_tax_act_ds" autoQuery="true" fetchAll="true"
model="hls.HLS801.hls_tax_act_confirm"
queryUrl="${/request/@context_path}/autocrud/hls.HLS801.hls_tax_act_confirm/query"
selectable="true" selectionModel="multiple">
<a:events>
<a:event name="beforeremove" handler="tax_confirm_beforeremove"/>
</a:events>
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:screenTopToolbar>
......@@ -878,7 +992,52 @@
</a:fieldSet>
</a:hBox>
</a:tab>
<a:tab id="step_2" disabled="true" marginHeight="20" prompt="HLS801.INCOME"
<a:tab id="step_2" disabled="true" marginHeight="200" prompt="提前收款确认增值税"
selected="false"
width="140">
<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="tax_confirm" text="增值税确认" width="95"/>
<a:label width="5"/>
</a:hBox>
<p/>
<a:grid id="hl_sales_tax_act_grid" bindTarget="hl_sales_tax_act_ds"
marginHeight="195" marginWidth="80" navBar="true" style="margin-left:3px">
<a:toolBar>
<a:button click="hl_sales_tax_act_refresh"
icon="${/request/@context_path}/images/zjwfl/zjwfl_refresh.png"
text="刷新"/>
<a:button type="delete"/>
<a:button icon="${/request/@context_path}/images/excel_16.png"
text="HLS.EXPORT"
type="excel"/>
</a:toolBar>
<a:columns>
<a:column name="contract_number" align="center" prompt="合同编号" width="150"/>
<a:column name="times" prompt="期数" width="60" align="center"/>
<a:column name="cf_item_n" prompt="现金流项目" align="center" width="90"/>
<a:column name="due_date" align="center" prompt="应收日"
renderer="Leaf.formatDate"
width="100"/>
<a:column name="due_amount" align="right" renderer="Leaf.formatMoney" prompt="应收金额" width="100"/>
<a:column name="vat_due_amount" align="right" prompt="增值税金额"
width="100" renderer="Leaf.formatMoney"/>
<a:column name="received_amount" align="right" prompt="已收金额"
renderer="Leaf.formatMoney" width="100"/>
<a:column name="last_received_date" align="center" prompt="最后收款日"
renderer="Leaf.formatDate" width="105"/>
<a:column name="full_write_off_date" align="center" prompt="核销日"
renderer="Leaf.formatDate"
width="105"/>
<a:column name="tax_create_je_flag" prompt="增值税确认标志" align="center"
width="90"/>
</a:columns>
</a:grid>
</a:tab>
<a:tab id="step_3" disabled="true" marginHeight="20" prompt="HLS801.INCOME"
selected="false"
width="100">
<a:hBox height="50">
......@@ -887,11 +1046,7 @@
<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">
......@@ -978,7 +1133,7 @@
</a:box>
</a:form>
</a:tab>
<a:tab id="step_4" disabled="true" prompt="HLS801.PERIOD_CONTROL" selected="false"
<a:tab id="step_5" disabled="true" prompt="HLS801.PERIOD_CONTROL" selected="false"
width="100">
<a:hBox height="50">
<a:button click="upStep" text="HLS801.LAST_STEP"/>
......@@ -1026,246 +1181,6 @@
</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" 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"/>
<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>
&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"/>
<a:button click="nextStep" text="HLS801.NEXT_STEP"/>
<a:label width="80"/>
<a:button click="accrued_interest_calculate" text="HLS.CALCULATIONS"/>
<a:label width="5"/>
<a:button click="accrued_interest_confirm" text="HLS801.COST_CONFIRM"/>
</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="accrued_interest_query_ds" prompt="HLS801.YEAR" readOnly="true"/>
<a:textField name="month" bindTarget="accrued_interest_query_ds" prompt="HLS801.MONTH" readOnly="true"/>
<a:lov name="company_code" bindTarget="accrued_interest_query_ds" prompt="HLS.COMPANY_CODE"/>
<a:textField name="company_short_name" bindTarget="accrued_interest_query_ds" prompt="HLS.COMPANY_NAME" readOnly="true"/>
</a:box>
</a:form>
<p/>
<a:grid id="tre_accrued_interest_grid" bindTarget="tre_accrued_interest_ds" marginHeight="320" marginWidth="80" navBar="true" style="margin-left:3px">
<a:toolBar>
<a:button click="accrued_interest_query" icon="${/request/@context_path}/images/search.png" text="HLS.QUERY"/>
<a:button type="clear"/>
<a:button click="do_accrued_interest_excel" icon="${/request/@context_path}/images/excel_16.png" text="HLS.EXPORT"/>
</a:toolBar>
<a:columns>
<a:column name="contract_number" prompt="TRE_LOAN_CONTRACT.LOAN_CONTRACT_NUMBER" width="120"/>
<a:column name="business_type_desc" prompt="TRE503.BUSINESS_TYPE" width="120"/>
<a:column name="withdraw_number" prompt="TRE_LOAN_CONTRACT_WITHDRAW.WITHDRAW_NUMBER" width="120"/>
<a:column name="cf_item_desc" prompt="HLS.CF_ITEM_DESC" width="100"/>
<a:column name="calc_start_date" prompt="HLS801.DATE_FROM" renderer="Leaf.formatDate" width="100"/>
<a:column name="calc_end_date" prompt="HLS801.DATE_TO" renderer="Leaf.formatDate" width="100"/>
<a:column name="int_rate" align="right" prompt="HLS801.INT_RATE" renderer="ratePercentRender" width="120"/>
<a:column name="net_accrued_interest" align="right" prompt="HLS801.ACCRUED_INTEREST" renderer="Leaf.formatMoney" width="120"/>
<a:column name="recognized_flag" prompt="HLS801.RECOGNIZED_FLAG" width="70"/>
</a:columns>
</a:grid>
</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"/>
<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"/>
&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"/>
&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">
<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>
<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"/>
&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="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:screenBody>
</a:view>
</a:screen>
<?xml version="1.0" encoding="UTF-8"?>
<a:service xmlns:a="http://www.leaf-framework.org/application" xmlns:p="uncertain.proc" trace="true">
<a:init-procedure>
<a:model-update model="hls.HLS801.delete_tax_confirm_temp_data"/>
<batch-apply sourcepath="/parameter/details">
<a:model-update model="hls.HLS801.tax_confirm"/>
</batch-apply>
<a:model-execute model="hls.HLS801.tax_confirm"/>
</a:init-procedure>
<a:service-output output="/parameter"/>
</a:service>
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: gaoyang
$Date: 2014-5-19 下午01:09:48
$Revision: 1.0
$Purpose:
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" trace="true">
<a:view>
<script type="text/javascript"><![CDATA[
//锁屏
window['${/parameter/@bp_seq}${/parameter/@layout_code}_lock_layout_dynamic_window'] = function() {
var detail_mask;
if ('${/parameter/@winid}') {
if (parent.$L.CmpManager.get('${/parameter/@winid}')) {
detail_mask = parent.$('${/parameter/@winid}').wrap;
parent.Leaf.Masker.mask(detail_mask, '${l:HLS.EXECUTING}');
} else {
detail_mask = $('${/parameter/@winid}').wrap;
Leaf.Masker.mask(detail_mask, '${l:HLS.EXECUTING}');
}
} else {
detail_mask = Ext.getBody();
Leaf.Masker.mask(detail_mask, '${l:HLS.EXECUTING}');
}
};
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_cp_object_focus'] = function() {};
//解屏
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window'] = function() {
var detail_mask;
if ('${/parameter/@winid}') {
if (parent.$L.CmpManager.get('${/parameter/@winid}')) {
detail_mask = parent.$('${/parameter/@winid}').wrap;
parent.Leaf.Masker.unmask(detail_mask);
} else {
detail_mask = $('${/parameter/@winid}').wrap;
Leaf.Masker.unmask(detail_mask);
}
} else {
detail_mask = Ext.getBody();
Leaf.Masker.unmask(detail_mask);
}
if (Ext.get(document.documentElement)) {
$L.Masker.unmask(Ext.get(document.documentElement));
}
};
//图片渲染
window['${/parameter/@bp_seq}${/parameter/@layout_code}_dynamic_pic_renderer'] = function(record, name, bp_seq) {
var result = name.match(/(.*)_pic$/);
if (result) {
var pic_value = record.get(result[1]);
if (pic_value == 'OUTFLOW') {
return '<img src="${/request/@context_path}/images/outflow.png" style="margin-top:4px"/>';
} else if (pic_value == 'INFLOW') {
return '<img src="${/request/@context_path}/images/inflow.png" style="margin-top:4px"/>';
} else if (pic_value == 'NONCASH') {
return '<img src="${/request/@context_path}/images/noncash.png" style="margin-top:4px"/>';
} else if (pic_value == 'CASH') {
return '<img src="${/request/@context_path}/images/cash.png" style="margin-top:4px"/>';
}
}
};
window['${/parameter/@bp_seq}${/parameter/@layout_code}_hls_link_render_record'] = {};
//超链接渲染
window['${/parameter/@bp_seq}${/parameter/@layout_code}_dynamic_link_renderer'] = function(value, record, name, config_record, bp_seq) {
var link_function = '';
window['${/parameter/@bp_seq}${/parameter/@layout_code}_hls_link_render_record'][record.id + '---' + name] = record;
if (name == 'quote') {
return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + name + '\');">' + config_record.get('prompt') + '</a>';
}
};
//按钮渲染
window['${/parameter/@bp_seq}${/parameter/@layout_code}_dynamic_button_renderer'] = function(value, record, name, config_record, bp_seq) {
var link_function = '';
if (name == 'quote') {
link_function = '';
}
if (Ext.isIE || Ext.isIE9 || Ext.isIE10) {
return '<button style="font-size:11px;height:22px;width:70%;text-align:center;padding:0 4px 4px 0" onclick="window[\'' + link_function + '\'](\'' + record.id + '\',\'' + name + '\');"><div style="height: 18px; line-height: 16px; text-decoration: none;">' + config_record.get('prompt') + '</div></button>';
} else {
return '<button style="font-size:11px;height:22px;width:70%;text-align:center;" onclick="window[\'' + link_function + '\'](\'' + record.id + '\',\'' + name + '\');">' + config_record.get('prompt') + '</button>';
}
};
//新增和加载时调用(form)
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_form_add_and_load'] = function(ds, record, config_records, bp_seq) {
};
//保存前调用
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_before_submit'] = function(ds, record) {
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
var check_flag = true;
return check_flag;
};
//保存submitsuccess调用
window['${/parameter/@layout_code}_on_layout_dynamic_submitsuccess'] = function(ds, record, res, bp_seq) {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
};
//保存失败调用
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_submitfailed'] = function(ds) {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
};
//新增时调用(grid,table,gridBox)
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_add'] = function(ds, record, config_records, bp_seq) {
};
//加载时调用(grid,table,gridBox)
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_load'] = function(ds, record, config_records, bp_seq) {
};
//查询时调用(grid,table,gridBox)
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_query'] = function(ds, qpara, bp_seq) {
};
//查询时调用(form,fieldboxcolumn)
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_form_query'] = function(ds, qpara, bp_seq) {
};
//新增时调用(attach)
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_attach_add'] = function(ds, record, config_records, bp_seq) {
};
//加载时调用(attach)
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_attach_load'] = function(ds, record, config_records, bp_seq) {
};
//更新时调用
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_update'] = function(ds, record, name, value, old_value, bp_seq) {
};
//选择事件(grid,attach,gridbox,table)
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_select'] = function(ds, record, bp_seq) {
};
//indexchange事件(grid,attach,gridbox,table)
window['${/parameter/@layout_code}_on_layout_dynamic_grid_indexchange'] = function(ds, record, bp_seq) {
};
//取消选择事件(grid,attach,gridbox,table)
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_unselect'] = function(ds, record, bp_seq) {
};
//移除事件(grid,attach,gridbox,table)
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_remove'] = function(ds, record, bp_seq) {
};
//移除前事件(grid,attach,gridbox,table)
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_brfore_remove'] = function(ds, record, bp_seq) {
return true;
};
//grid cellclick
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_cell_click'] = function(ds, record, bp_seq) {
};
function sumFunction(datas, name) {
var sum = 0;
for (var i = 0;i < datas.length;i++) {
var r = datas[i];
var d = r.get(name);
var n = parseFloat(d);
if (!isNaN(n)) {
sum = plus(sum, n);
}
}
var total = (typeof(sum) == 'undefined' ? '' : parseFloat(sum));
return '<font>' + Leaf.formatNumber(total) + '</font>';
}
//false为忽略校验,true为不忽略校验
window['${/parameter/@layout_code}_not_ignore_required_flag'] = true;
//忽略保存校验方法
window['${/parameter/@layout_code}_ignore_required_before_save'] = function() {
window['${/parameter/@layout_code}_not_ignore_required_flag'] = true;
};
//requiredfunction
window['${/parameter/@layout_code}_not_ignore_required'] = function() {
return window['${/parameter/@layout_code}_not_ignore_required_flag'];
};
Leaf.onReady(function() {
var input = document.createElement('input');
document.body.appendChild(input);
Ext.fly(input).moveTo(-10000, -10000);
input.focus();
setTimeout(function() {
Ext.fly(input).remove();
}, 1000);
});
]]></script>
</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