Commit 6e793bb3 authored by liyuan.chen's avatar liyuan.chen

保证金退款,项目新增附件上传

parent 3a81b600
......@@ -12,9 +12,11 @@
<bm:field name="authorized_user_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="AUTHORIZED_USER_ID" prompt="AUT_OWNER_USER_AUTHORIZE.AUTHORIZED_USER_ID"/>
<bm:field name="start_date" databaseType="DATE" datatype="java.util.Date" physicalName="START_DATE" prompt="AUT_OWNER_USER_AUTHORIZE.START_DATE"/>
<bm:field name="end_date" databaseType="DATE" datatype="java.util.Date" physicalName="END_DATE" prompt="AUT_OWNER_USER_AUTHORIZE.END_DATE"/>
<bm:field name="owner_user_desc" expression="(select description from sys_user_data_owner_v a where a.user_id=t1.owner_user_id)" forInsert="false" forUpdate="false"/>
<!--<bm:field name="owner_user_desc" expression="(select description from sys_user_data_owner_v a where a.user_id=t1.owner_user_id)" forInsert="false" forUpdate="false"/>-->
<bm:field name="owner_user_desc" expression="(select user_name from sys_user_data_owner_v a where a.user_id=t1.owner_user_id)" forInsert="false" forUpdate="false"/>
<bm:field name="owner_employee_name" expression="(select employee_name from sys_user_data_owner_v a where a.user_id=t1.owner_user_id)" forInsert="false" forUpdate="false"/>
<bm:field name="authorized_user_desc" expression="(select description from sys_user_v a where a.user_id=t1.authorized_user_id)" forInsert="false" forUpdate="false"/>
<!--<bm:field name="authorized_user_desc" expression="(select description from sys_user_v a where a.user_id=t1.authorized_user_id)" forInsert="false" forUpdate="false"/>-->
<bm:field name="authorized_user_desc" expression="(select user_name from sys_user_v a where a.user_id=t1.authorized_user_id)" forInsert="false" forUpdate="false"/>
<bm:field name="authorized_employee_name" expression="(select employee_name from sys_user_v a where a.user_id=t1.authorized_user_id)" forInsert="false" forUpdate="false"/>
<bm:field name="ref_v01" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REF_V01" prompt="AUT_OWNER_USER_AUTHORIZE.REF_V01"/>
<bm:field name="ref_v02" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REF_V02" prompt="AUT_OWNER_USER_AUTHORIZE.REF_V02"/>
......
......@@ -3,12 +3,14 @@
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
SELECT h.extra_nam,
SELECT
h.extra_nam,
--合同编号
t.contract_number,
--应付未付租金总额
(CASE
WHEN to_char(t.lease_start_date, 'yyyy-mm') <> ${@period_name} THEN
WHEN to_char(t.lease_start_date, 'yyyy-mm') <> ${@period_name}
THEN
(SELECT SUM(nvl(ccc.due_amount, 0))
FROM con_contract_cashflow ccc
WHERE ccc.contract_id = t.contract_id
......@@ -27,13 +29,15 @@ SELECT h.extra_nam,
0
END) unpayment_amount,
--应付未付首付款总额 --首付款关联不到就取核销日期而不是收款日期
contract_item_query_pkg.calc_down_payment_balance ( p_contract_id=>t.contract_id,
p_calc_date =>to_date(${@last_month_date}, 'yyyy-mm-dd'),
contract_item_query_pkg.calc_down_payment_balance(p_contract_id=>t.contract_id,
p_calc_date =>to_date(${@last_month_date},
'yyyy-mm-dd'),
p_calc_flag =>'START',
p_user_id =>-1) undown_payment,
--应付未付留购金总额
(CASE
WHEN to_char(t.lease_start_date, 'yyyy-mm') <> ${@period_name} THEN
WHEN to_char(t.lease_start_date, 'yyyy-mm') <> ${@period_name}
THEN
(SELECT SUM(nvl(ccc.due_amount, 0))
FROM con_contract_cashflow ccc
WHERE ccc.contract_id = t.contract_id
......@@ -70,7 +74,8 @@ SELECT h.extra_nam,
AND nvl(cwo.reversed_flag, 'N') = 'N'
AND trunc(ct.transaction_date) <=
trunc(to_date(${@last_month_date}, 'yyyy-mm-dd'))),
0)) > 0 THEN
0)) > 0
THEN
(nvl((SELECT SUM(nvl(ccc.due_amount, 0))
FROM con_contract_cashflow ccc
WHERE ccc.contract_id = t.contract_id
......@@ -92,9 +97,11 @@ SELECT h.extra_nam,
END) overdue_amount,
--逾期违约金
(CASE
WHEN to_char(t.lease_start_date, 'yyyy-mm') <> ${@period_name} THEN
WHEN to_char(t.lease_start_date, 'yyyy-mm') <> ${@period_name}
THEN
(contract_item_query_pkg.calc_penalty_by_contract(p_contract_id => t.contract_id,
p_calc_date => to_date(${@start_calc_date},
p_calc_date => to_date(
${@start_calc_date},
'yyyy-mm-dd'),
p_user_id => 1) -
nvl((SELECT SUM(cwo.write_off_due_amount)
......@@ -104,7 +111,12 @@ SELECT h.extra_nam,
AND cwo.cf_item = 9
AND cwo.csh_transaction_id = ct.transaction_id
AND trunc(ct.transaction_date) <=
trunc(to_date(${@last_month_date}, 'yyyy-mm-dd'))),
trunc(to_date(${@last_month_date}, 'yyyy-mm-dd'))
And Exists(Select 1
From con_contract_cashflow cc
Where cc.cashflow_id = cwo.cashflow_id
And cc.cf_status = 'RELEASE'
And cc.cf_direction <> 'NONCASH')),
0))
ELSE
0
......@@ -113,7 +125,8 @@ SELECT h.extra_nam,
(CASE
WHEN trunc(t.lease_start_date) BETWEEN
trunc(to_date(${@start_calc_date}, 'yyyy-mm-dd')) AND
TRUNC(last_day(to_date(${@start_calc_date},'yyyy-mm-dd'))) THEN
TRUNC(last_day(to_date(${@start_calc_date}, 'yyyy-mm-dd')))
THEN
(SELECT SUM(ccc.due_amount)
FROM con_contract_cashflow ccc
WHERE ccc.cf_item IN (1, 200, 250)
......@@ -126,7 +139,8 @@ SELECT h.extra_nam,
(CASE
WHEN trunc(t.lease_start_date) BETWEEN
trunc(to_date(${@start_calc_date}, 'yyyy-mm-dd')) AND
TRUNC(last_day(to_date(${@start_calc_date},'yyyy-mm-dd'))) THEN
TRUNC(last_day(to_date(${@start_calc_date}, 'yyyy-mm-dd')))
THEN
(SELECT SUM(ccc.due_amount)
FROM con_contract_cashflow ccc
WHERE ccc.cf_item = 2
......@@ -139,7 +153,8 @@ SELECT h.extra_nam,
(CASE
WHEN trunc(t.lease_start_date) BETWEEN
trunc(to_date(${@start_calc_date}, 'yyyy-mm-dd')) AND
TRUNC(last_day(to_date(${@start_calc_date},'yyyy-mm-dd'))) THEN
TRUNC(last_day(to_date(${@start_calc_date}, 'yyyy-mm-dd')))
THEN
(SELECT SUM(ccc.due_amount)
FROM con_contract_cashflow ccc
WHERE ccc.cf_item = 8
......@@ -156,7 +171,7 @@ SELECT h.extra_nam,
AND cwo.cf_item IN (1, 200, 250)
AND cwo.csh_transaction_id = ct.transaction_id
AND trunc(ct.transaction_date) <=
TRUNC(last_day(to_date(${@start_calc_date},'yyyy-mm-dd')))
TRUNC(last_day(to_date(${@start_calc_date}, 'yyyy-mm-dd')))
AND trunc(ct.transaction_date) >=
TRUNC(to_date(${@start_calc_date}, 'yyyy-mm-dd'))),
0) write_off_amount,
......@@ -175,7 +190,7 @@ SELECT h.extra_nam,
AND cwo.cf_item = 8
AND cwo.csh_transaction_id = ct.transaction_id
AND trunc(ct.transaction_date) <=
TRUNC(last_day(to_date(${@start_calc_date},'yyyy-mm-dd')))
TRUNC(last_day(to_date(${@start_calc_date}, 'yyyy-mm-dd')))
AND trunc(ct.transaction_date) >=
trunc(to_date(${@start_calc_date}, 'yyyy-mm-dd'))),
0) write_off_purchase_amount,
......@@ -187,7 +202,7 @@ SELECT h.extra_nam,
AND cwo.cf_item = 9
AND cwo.csh_transaction_id = ct.transaction_id
AND trunc(ct.transaction_date) <=
TRUNC(last_day(to_date(${@start_calc_date},'yyyy-mm-dd')))
TRUNC(last_day(to_date(${@start_calc_date}, 'yyyy-mm-dd')))
AND trunc(ct.transaction_date) >=
trunc(to_date(${@start_calc_date}, 'yyyy-mm-dd'))),
0) write_off_penalty,
......@@ -204,15 +219,18 @@ SELECT h.extra_nam,
AND cwo.csh_transaction_id = ct.transaction_id
AND nvl(cwo.reversed_flag, 'N') = 'N'
AND trunc(ct.transaction_date) <=
TRUNC(last_day(to_date(${@start_calc_date},'yyyy-mm-dd')))),
TRUNC(last_day(to_date(${@start_calc_date}, 'yyyy-mm-dd')))),
0) rest_unpayment_amount,
--保证金后
contract_item_query_pkg.calc_rest_rent_by_dudt(p_contract_id => t.contract_id,
p_calc_date => last_day(to_date(${@start_calc_date},'yyyy-mm-dd')),
p_calc_date => last_day(
to_date(${@start_calc_date}, 'yyyy-mm-dd')),
p_user_id => -1) rest_unpayment_amount_af,
contract_item_query_pkg.calc_down_payment_balance ( p_contract_id=>t.contract_id,
p_calc_date =>last_day(to_date(${@start_calc_date},'yyyy-mm-dd')),
contract_item_query_pkg.calc_down_payment_balance(p_contract_id=>t.contract_id,
p_calc_date =>last_day(
to_date(${@start_calc_date},
'yyyy-mm-dd')),
p_calc_flag =>'END',
p_user_id =>-1) rest_undown_payment,
--应付未付留购金总额
......@@ -228,7 +246,7 @@ SELECT h.extra_nam,
AND cwo.csh_transaction_id = ct.transaction_id
AND nvl(cwo.reversed_flag, 'N') = 'N'
AND trunc(ct.transaction_date) <=
TRUNC(last_day(to_date(${@start_calc_date},'yyyy-mm-dd')))),
TRUNC(last_day(to_date(${@start_calc_date}, 'yyyy-mm-dd')))),
0) rest_unpurchase_amount,
--逾期租金
(CASE
......@@ -237,8 +255,9 @@ SELECT h.extra_nam,
WHERE ccc.contract_id = t.contract_id
AND ccc.cf_item IN (1, 200, 250)
AND trunc(ccc.due_date) <=
trunc(comparedate(p_date1 => last_day(to_date(${@start_calc_date},'yyyy-mm-dd')),
p_date2 =>sysdate ,
trunc(comparedate(
p_date1 => last_day(to_date(${@start_calc_date}, 'yyyy-mm-dd')),
p_date2 =>sysdate,
p_type =>'SMALL'))
AND ccc.cf_status = 'RELEASE'),
0) -
......@@ -249,17 +268,20 @@ SELECT h.extra_nam,
AND cwo.csh_transaction_id = ct.transaction_id
AND nvl(cwo.reversed_flag, 'N') = 'N'
AND trunc(ct.transaction_date) <=
trunc(comparedate(p_date1 => last_day(to_date(${@start_calc_date},'yyyy-mm-dd')),
p_date2 =>sysdate ,
trunc(comparedate(
p_date1 => last_day(to_date(${@start_calc_date}, 'yyyy-mm-dd')),
p_date2 =>sysdate,
p_type =>'SMALL'))),
0)) > 0 THEN
0)) > 0
THEN
(nvl((SELECT SUM(nvl(ccc.due_amount, 0))
FROM con_contract_cashflow ccc
WHERE ccc.contract_id = t.contract_id
AND ccc.cf_item IN (1, 200, 250)
AND trunc(ccc.due_date) <=
trunc(comparedate(p_date1 => last_day(to_date(${@start_calc_date},'yyyy-mm-dd')),
p_date2 =>sysdate ,
trunc(comparedate(p_date1 => last_day(
to_date(${@start_calc_date}, 'yyyy-mm-dd')),
p_date2 =>sysdate,
p_type =>'SMALL'))
AND ccc.cf_status = 'RELEASE'),
0) - nvl((SELECT SUM(cwo.write_off_due_amount)
......@@ -269,21 +291,27 @@ SELECT h.extra_nam,
AND cwo.csh_transaction_id = ct.transaction_id
AND nvl(cwo.reversed_flag, 'N') = 'N'
AND trunc(ct.transaction_date) <=
trunc(comparedate(p_date1 => last_day(to_date(${@start_calc_date},'yyyy-mm-dd')),
p_date2 =>sysdate ,
trunc(comparedate(p_date1 => last_day(
to_date(${@start_calc_date}, 'yyyy-mm-dd')),
p_date2 =>sysdate,
p_type =>'SMALL'))),
0))
ELSE
0
END) rest_overdue_amount,
contract_item_query_pkg.calc_overdue_amount_by_dudt(p_contract_id => t.contract_id,
p_calc_date =>comparedate(p_date1 => last_day(to_date(${@start_calc_date},'yyyy-mm-dd')),
p_date2 =>sysdate ,
p_calc_date =>comparedate(p_date1 => last_day(
to_date(${@start_calc_date},
'yyyy-mm-dd')),
p_date2 =>sysdate,
p_type =>'SMALL'),
p_user_id => -1) rest_overdue_amount_af,
--逾期违约金
(contract_item_query_pkg.calc_penalty_by_contract(p_contract_id => t.contract_id,
p_calc_date => last_day(to_date(${@start_calc_date},'yyyy-mm-dd'))+1,
p_calc_date =>last_day(to_date(
${@start_calc_date},
'yyyy-mm-dd')) +
1,
p_user_id => 1) -
nvl((SELECT SUM(cwo.write_off_due_amount)
FROM csh_write_off cwo, csh_transaction ct
......@@ -292,38 +320,50 @@ SELECT h.extra_nam,
AND cwo.cf_item = 9
AND cwo.csh_transaction_id = ct.transaction_id
AND trunc(ct.transaction_date) <=
trunc(last_day(to_date(${@start_calc_date},'yyyy-mm-dd')))),
trunc(last_day(to_date(${@start_calc_date}, 'yyyy-mm-dd')))
And Exists(Select 1
From con_contract_cashflow cc
Where cc.cashflow_id = cwo.cashflow_id
And cc.cf_status = 'RELEASE'
And cc.cf_direction <> 'NONCASH')),
0)) rest_overdue_penalty,
--次月应收租金
nvl((SELECT SUM(nvl(due_amount, 0))
FROM con_contract_cashflow ccc
WHERE ccc.contract_id = t.contract_id
AND to_char(ccc.due_date, 'yyyy-mm') = to_char(add_months(to_date(${@start_calc_date},'yyyy-mm-dd'),1),'yyyy-mm')
AND to_char(ccc.due_date, 'yyyy-mm') =
to_char(add_months(to_date(${@start_calc_date}, 'yyyy-mm-dd'), 1), 'yyyy-mm')
AND ccc.cf_item IN (1, 200, 250)
AND ccc.cf_status = 'RELEASE'),
0) next_due_amount,
t.lease_start_date,
(SELECT c.bp_name FROM hls_bp_master c WHERE c.bp_id = t.bp_id_tenant) tenant_name,
(SELECT c.bp_name
FROM hls_bp_master c
WHERE c.bp_id = t.bp_id_tenant) tenant_name,
NVL((select sum((nvl(tt.transaction_amount, 0) - nvl(tt.write_off_amount, 0) -
nvl(tt.returned_amount, 0)))
from csh_transaction tt
where tt.transaction_type = 'DEPOSIT'
AND tt.deposit_trans_type = 'rent_deposit'
AND NVL(tt.reversed_flag,'N')='N'
and tt.ref_contract_id = T.contract_id),0) deposit_amount,
AND NVL(tt.reversed_flag, 'N') = 'N'
and tt.ref_contract_id = T.contract_id), 0) deposit_amount,
--逾期期数
contract_item_query_pkg.calc_business_overdue_times(p_contract_id =>t.contract_id ,
p_calc_date => comparedate(p_date1 => last_day(to_date(${@start_calc_date},'yyyy-mm-dd')),
p_date2 =>sysdate ,
contract_item_query_pkg.calc_business_overdue_times(p_contract_id =>t.contract_id,
p_calc_date => comparedate(p_date1 => last_day(
to_date(${@start_calc_date},
'yyyy-mm-dd')),
p_date2 =>sysdate,
p_type =>'SMALL'),
p_user_id => -1)overdue_times_be,
p_user_id => -1) overdue_times_be,
--保证金后逾期期数
contract_item_query_pkg.calc_overdue_times_by_dudt(p_contract_id =>t.contract_id ,
p_calc_date =>comparedate(p_date1 => last_day(to_date(${@start_calc_date},'yyyy-mm-dd')),
p_date2 =>sysdate ,
contract_item_query_pkg.calc_overdue_times_by_dudt(p_contract_id =>t.contract_id,
p_calc_date =>comparedate(p_date1 => last_day(
to_date(${@start_calc_date},
'yyyy-mm-dd')),
p_date2 =>sysdate,
p_type =>'SMALL'),
p_user_id => -1)overdue_times_af
p_user_id => -1) overdue_times_af
FROM con_contract t, hls_bp_master h
WHERE t.data_class = 'NORMAL'
AND t.bp_id_agent_level1 = h.bp_id
......@@ -332,19 +372,17 @@ SELECT h.extra_nam,
'TERMINATING',
'ETING',
'REPURING',
'ET')or (to_char(t.et_date,'yyyy-mm')>=${@period_name} and t.contract_status='TERMINATE' ))
and trunc(t.lease_start_date) <= trunc(last_day(to_date(${@start_calc_date},'yyyy-mm-dd')))
'ET') or
(to_char(t.et_date, 'yyyy-mm') >= ${@period_name} and t.contract_status = 'TERMINATE'))
and trunc(t.lease_start_date) <= trunc(last_day(to_date(${@start_calc_date}, 'yyyy-mm-dd')))
]]>
</bm:query-sql>
</bm:operation>
</bm:operations>
<bm:query-fields>
<!-- <bm:query-field name="period_name" queryExpression="t1.period_day=${@period_name}"/>-->
<!-- <bm:query-field name="journal_date_to" queryExpression="to_char(t.journal_date,&apos;yyyy-mm-dd&apos;) &lt;= ${@journal_date_to}"/>-->
<!-- <bm:query-field name="bp_id_agent_level1" queryExpression="t.bp_id_agent_level1=${@bp_id_agent_level1}"/>-->
<!-- <bm:query-field name="period_name" queryExpression="t1.period_day=${@period_name}"/>-->
<!-- <bm:query-field name="journal_date_to" queryExpression="to_char(t.journal_date,&apos;yyyy-mm-dd&apos;) &lt;= ${@journal_date_to}"/>-->
<!-- <bm:query-field name="bp_id_agent_level1" queryExpression="t.bp_id_agent_level1=${@bp_id_agent_level1}"/>-->
</bm:query-fields>
</bm:model>
......@@ -12,12 +12,15 @@
]]></bm:update-sql>
</bm:operation>
<bm:operation name="update">
<bm:parameters>
<bm:parameter name="return_id" dataType="java.lang.Long" input="false" output="true" outputPath="/parameter/@return_id"/>
</bm:parameters>
<bm:update-sql><![CDATA[
begin
hlcm_cux_deposit_pkg.check_transaction_status_new(
p_transaction_id=>${@transaction_id},
p_user_id=>${/session/@user_id}
);
hlcm_cux_deposit_pkg.insert_transaction_return(p_transaction_id => ${@transaction_id},
p_user_id => ${/session/@user_id},
p_return_id => ${@return_id});
end;
]]></bm:update-sql>
</bm:operation>
......
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false" baseTable="CSH_DEPOSIT_CASHFLOW" alias="t">
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
Select
t.deposit_cashflow_id,
t.return_id,
t.deposit_source_type,
t.transaction_id,
(Select c.transaction_num
From csh_transaction c
Where c.transaction_id = t.transaction_id) transaction_num,
to_char(t.transaction_date, 'yyyy-mm-dd') transaction_date,
t.transaction_amount,
t.transaction_deposit_amount,
t.contract_id,
(Select cc.contract_number
From con_contract cc
Where cc.contract_id = t.contract_id) contract_number,
t.creation_date,
t.created_by,
t.last_updated_by,
t.last_update_date,
(Select c.transaction_num
From csh_transaction c
Where c.transaction_id = t.source_csh_trx_id) source_transaction_num
From csh_deposit_cashflow t
#WHERE_CLAUSE#
order by t.transaction_date
]]></bm:query-sql>
</bm:operation>
</bm:operations>
<bm:data-filters>
<bm:data-filter name="query" expression="t.return_id = ${@return_id}"/>
</bm:data-filters>
<!--<bm:query-fields>
<bm:query-field name="return_id" queryExpression="t1.return_id = ${@return_id}"/>
</bm:query-fields>-->
</bm:model>
......@@ -107,6 +107,22 @@
<bm:field name="bp_name_n" expression="(select hb.bp_name from hls_bp_master hb,con_contract ct where ct.contract_id=t1.ref_contract_id and hb.bp_id=ct.bp_id_agent_level1)" forInsert="false" forUpdate="false"/>
<bm:field name="deposit_trans_type_desc" expression="(select v.code_value_name from sys_code_values_v v where v.code = 'DEPOSIT_TRANS_TYPE' and v.code_value =t1.deposit_trans_type)" forInsert="false" forUpdate="false"/>
<bm:field name="approve_status" expression=" nvl(( hlcm_cux_deposit_pkg.get_transaction_status_new(p_transaction_id=>t1.transaction_id,p_user_id=>1) ),'正常')" forInsert="false" forUpdate="false"/>
<bm:field name="left_amount" expression=" (Select (nvl(Sum(c.transaction_amount), 0) -
nvl(Sum(c.write_off_amount), 0) - nvl(Sum(c.returned_amount), 0) -
nvl(Sum((Select nvl(cr.return_amount, 0)
From csh_transaction_return cr
Where cr.transaction_id = c.transaction_id
And cr.status = 'APPROVING')),
0))
From csh_transaction c
Where c.company_id = ${/session/@company_id}
And c.ref_contract_id Is Not Null
And c.transaction_type = 'DEPOSIT'
And c.source_type Is Not Null
And c.ref_contract_id =
(Select c1.ref_contract_id
From csh_transaction c1
Where c1.transaction_id = t1.transaction_id) )" forInsert="false" forUpdate="false"/>
</bm:fields>
<bm:features>
<f:standard-who/>
......
......@@ -3,15 +3,18 @@
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
select * from (select cr.return_id,
to_char(cr.return_date,'yyyy-mm-dd') return_date,
select *
from (select
cr.return_id,
to_char(cr.return_date, 'yyyy-mm-dd') return_date,
cr.return_amount,
ct.period_name,
cr.opposite_band_na,
cr.bp_bank_account_num,
(select cp.description
from csh_payment_method cp
where cp.payment_method_id = ct.payment_method_id) payment_method_display,
where cp.payment_method_id =
ct.payment_method_id) payment_method_display,
ct.exchange_rate,
ct.bank_slip_num,
(select gc.currency_name
......@@ -31,7 +34,8 @@
where a.bank_account_id = ct.bank_account_id) bank_account_num,
(select a.bank_account_code
from hls_bp_master_bank_account a
where a.bank_account_id = ct.bp_bank_account_id) bp_bank_account_code,
where a.bank_account_id =
ct.bp_bank_account_id) bp_bank_account_code,
cr.bp_bank_account_name,
cr.notes description,
cr.csh_return_atm_id,
......@@ -39,17 +43,23 @@
(select a.bp_name
from hls_bp_master a
where a.bp_id = cr.csh_return_bp_id) csh_return_bp_name,
(select hb.bp_code from hls_bp_master hb,con_contract cc where cc.contract_id=ct.ref_contract_id and hb.bp_id=cc.bp_id_tenant)bp_id_telnet_code,
(select hb.bp_name from hls_bp_master hb,con_contract cc where cc.contract_id=ct.ref_contract_id and hb.bp_id=cc.bp_id_tenant)bp_id_telnet_n,
(select cc.contract_number from con_contract cc where cc.contract_id = ct.ref_contract_id) contract_number,
(select hb.bp_code
from hls_bp_master hb, con_contract cc
where cc.contract_id = ct.ref_contract_id and hb.bp_id = cc.bp_id_tenant) bp_id_telnet_code,
(select hb.bp_name
from hls_bp_master hb, con_contract cc
where cc.contract_id = ct.ref_contract_id and hb.bp_id = cc.bp_id_tenant) bp_id_telnet_n,
(select cc.contract_number
from con_contract cc
where cc.contract_id = ct.ref_contract_id) contract_number,
(select a.bp_name
from hls_bp_master a
where a.bp_id = ct.bp_id) bp_agent_name
where a.bp_id = ct.bp_id) bp_agent_name,
nvl(cr.left_amount, 0) as left_amount
from csh_transaction ct, csh_transaction_return cr
where ct.transaction_id = cr.transaction_id
)v
) v
#WHERE_CLAUSE#
]]></bm:query-sql>
</bm:operation>
</bm:operations>
......
......@@ -2,13 +2,11 @@
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
<bm:operations>
<bm:operation name="update">
<bm:parameters>
<bm:parameter name="return_id" dataType="java.lang.Long" input="false" output="true" outputPath="/parameter/@return_id"/>
</bm:parameters>
<bm:update-sql><![CDATA[
begin
hlcm_cux_deposit_pkg.execute_transaction_return(p_transaction_id=>${@transaction_id},
p_return_date=>to_date(${@return_date},'yyyy-mm-dd hh24:mi:ss'),
hlcm_cux_deposit_pkg.execute_transaction_return(p_transaction_id =>${@transaction_id},
p_return_date =>to_date(${@return_date},
'yyyy-mm-dd hh24:mi:ss'),
p_return_amount =>${@return_amount},
p_user_id =>${/session/@user_id},
p_return_id =>${@return_id},
......@@ -16,11 +14,13 @@
p_opposite_band_na =>${@opposite_band_na},
p_bp_bank_account_num =>${@bp_bank_account_num},
p_description =>${@description},
p_csh_return_atm_id=>${@csh_return_atm_id},
p_csh_return_bp_id=>${@csh_return_bp_id}
p_csh_return_atm_id =>${@csh_return_atm_id},
p_csh_return_bp_id =>${@csh_return_bp_id},
p_left_amount =>${@left_amount}
);
end;]]></bm:update-sql>
end;
]]></bm:update-sql>
</bm:operation>
<bm:operation name="execute">
<bm:parameters>
......@@ -34,7 +34,8 @@
p_return_id=>${@return_id},
p_user_id=>${/session/@user_id}
);
end;]]></bm:update-sql>
end;
]]></bm:update-sql>
</bm:operation>
<bm:operation name="query">
<bm:query-sql><![CDATA[
......
......@@ -118,7 +118,8 @@
<a:field name="owner_user_id" required="true"/>
<a:field name="owner_user_desc" autoComplete="true" lovGridHeight="300" lovHeight="450" lovService="basic.sys_user_data_owner_v_for_lov" lovWidth="500" prompt="AUT_OWNER_USER_AUTHORIZE.OWNER_USER_ID" required="true" title="选择单据所有者">
<a:mapping>
<a:map from="description" to="owner_user_desc"/>
<!--<a:map from="description" to="owner_user_desc"/>-->
<a:map from="user_name" to="owner_user_desc"/>
<a:map from="user_id" to="owner_user_id"/>
<a:map from="employee_name" to="owner_employee_name"/>
</a:mapping>
......@@ -128,7 +129,8 @@
<a:field name="authorized_user_id" required="true"/>
<a:field name="authorized_user_desc" autoComplete="true" lovGridHeight="300" lovHeight="450" lovService="basic.sys_user_for_lov" lovWidth="500" prompt="AUT_OWNER_USER_AUTHORIZE.AUTHORIZED_USER_ID" required="true" title="用户选择">
<a:mapping>
<a:map from="description" to="authorized_user_desc"/>
<!--<a:map from="description" to="authorized_user_desc"/>-->
<a:map from="user_name" to="authorized_user_desc"/>
<a:map from="employee_name" to="authorized_employee_name"/>
<a:map from="user_id" to="authorized_user_id"/>
</a:mapping>
......@@ -175,6 +177,7 @@
<a:grid id="aut_owner_user_authorize_result_ds_grid" bindTarget="aut_owner_user_authorize_result_ds" marginHeight="170" marginWidth="30" navBar="true">
<a:columns>
<a:column name="trx_category_desc" editorFunction="aut105trxCategoryFunction" prompt="AUT_OWNER_USER_AUTHORIZE.TRX_CATEGORY" width="140"/>
<!--<a:column name="owner_user_desc" editorFunction="aut105lovFunction" prompt="AUT_OWNER_USER_AUTHORIZE.OWNER_USER_ID" width="120"/>-->
<a:column name="owner_user_desc" editorFunction="aut105lovFunction" prompt="AUT_OWNER_USER_AUTHORIZE.OWNER_USER_ID" width="120"/>
<a:column name="owner_employee_name" prompt="EXP_EMPLOYEES.NAME" width="100"/>
<a:column name="authorized_user_desc" editorFunction="aut105lovFunction" prompt="AUT_OWNER_USER_AUTHORIZE.AUTHORIZED_USER_ID" width="120"/>
......
......@@ -60,6 +60,7 @@
var record = $('csh_transaction_deposit_return_maintain_ds').getCurrentRecord();
var transaction_id = $('csh_transaction_receipt_return_maintain_ds').getCurrentRecord().get('transaction_id');
var unwrite_off_amount = $('csh_transaction_receipt_return_maintain_ds').getCurrentRecord().get('unwrite_off_amount');
var return_id = record.get('return_id');
// if (record.validateRecord()){
if ($('csh_transaction_deposit_return_maintain_ds').validate()) {
// Leaf.Masker.mask(Ext.getBody());
......@@ -81,10 +82,12 @@
bp_bank_account_num: record.get('bp_bank_account_num'),
description: record.get('description'),
csh_return_atm_id: csh_return_atm_id,
csh_return_bp_id: record.get('csh_return_bp_id')
csh_return_bp_id: record.get('csh_return_bp_id'),
return_id: return_id,
left_amount: record.get('left_amount')
},
success: function (res) {
var return_id = res.result.return_id;
//var return_id = res.result.return_id;
Leaf.Masker.mask(Ext.getBody(), '正在提交退款工作流...');
Leaf.request({
url: $('csh560_start_wfl_link').getUrl(),
......@@ -144,6 +147,10 @@
}
function attach_renderer(value, record, name) {
return '<a href="javascript:upload_attachment_win();" style="color:red">' + '附件上传' + '</a>';
}
]]></script>
<a:dataSets>
......@@ -164,10 +171,12 @@
<a:field name="bp_bank_account_name" defaultValue="${/parameter/@bp_bank_account_name}"/>
<a:field name="opposite_band_na" defaultValue="${/parameter/@opposite_band_na}"/>
<a:field name="bp_bank_account_num" defaultValue="${/parameter/@bp_bank_account_num}"/>
<a:field name="return_id" defaultValue="${/parameter/@return_id}"/>
<a:field name="left_amount" defaultValue="${/parameter/@left_amount}"/>
</a:fields>
</a:dataSet>
<a:dataSet id="csh_deposit_cashflow_grid_ds" fetchAll="true" autoQuery="true" model="cus_deposit.CUS_DEPOSIT106.csh_deposit_cashflow_query" queryUrl="${/request/@context_path}/autocrud/cus_deposit.CUS_DEPOSIT106.csh_deposit_cashflow_query/query?return_id=${/parameter/@return_id}"/>
</a:dataSets>
<a:screenBody>
<a:screenTopToolbar>
......@@ -180,10 +189,10 @@
prompt="经济业务发生日" renderer="Leaf.formatDate" width="180"/>
<a:numberField name="return_amount" allowDecimals="true" allowFormat="true" allowNegative="false"
bindTarget="csh_transaction_deposit_return_maintain_ds"
prompt="CSH515.CSH_REFUND_AMOUNT"/>
prompt="CSH515.CSH_REFUND_AMOUNT" width="170"/>
<a:numberField name="unwrite_off_amount" allowDecimals="true" allowFormat="true"
allowNegative="false" bindTarget="csh_transaction_receipt_return_maintain_ds"
prompt="剩余可用金额" readOnly="true" width="170" allowdecimals="false"/>
prompt="剩余可用金额" readOnly="true" width="170"/>
<a:lov name="csh_return_bp_name" bindTarget="csh_transaction_deposit_return_maintain_ds"
prompt="退款用户" width="185"/>
</a:box>
......@@ -191,24 +200,25 @@
<a:textField name="contract_number" bindTarget="csh_transaction_deposit_return_maintain_ds"
prompt="合同编号" readOnly="true" width="180"/>
<a:textField name="bp_id_telnet_code" bindTarget="csh_transaction_deposit_return_maintain_ds"
prompt="承租人编码" readOnly="true"/>
prompt="承租人编码" readOnly="true" width="170"/>
<a:textField name="bp_id_telnet_n" bindTarget="csh_transaction_deposit_return_maintain_ds"
prompt="承租人名称" readOnly="true" width="170"/>
<!-- <a:datePicker name="lasted_account_date" bindTarget="csh_transaction_deposit_return_maintain_ds"-->
<!-- prompt="最后一次入账时间" width="185" readOnly="true"/>-->
<a:numberField name="left_amount" allowDecimals="true" allowFormat="true"
allowNegative="false" bindTarget="csh_transaction_deposit_return_maintain_ds"
prompt="合同剩余保证金" readOnly="true" width="185"/>
</a:box>
<a:box column="4" labelWidth="115">
<a:textField name="bp_bank_account_name" bindTarget="csh_transaction_deposit_return_maintain_ds"
prompt="CSH510.CSH_TRANSACTION.YOUR_ACCOUNT_NAME" width="180"/>
<a:textField name="opposite_band_na" bindTarget="csh_transaction_deposit_return_maintain_ds"
prompt="CSH510.CSH_TRANSACTION.YOUR_BANK_NAME"/>
prompt="CSH510.CSH_TRANSACTION.YOUR_BANK_NAME" width="170"/>
<a:textField name="bp_bank_account_num" bindTarget="csh_transaction_deposit_return_maintain_ds"
prompt="CSH510.CSH_TRANSACTION.YOUR_ACCOUNT_USERNAME" width="170"/>
<!--<a:numberField name="bp_bank_account_num" allowdecimals="false" bindTarget="csh_transaction_deposit_return_maintain_ds"
prompt="CSH510.CSH_TRANSACTION.YOUR_ACCOUNT_USERNAME" width="170"/>-->
<a:hBox>
<a>附件上传:</a><a href="javascript:upload_attachment_win()" style="color:red"> 附件上传</a>
</a:hBox>
<a:label name="attach" bindTarget="csh_transaction_deposit_return_maintain_ds" renderer="attach_renderer" prompt="附件" width="185"/>
</a:box>
<a:box column="1">
<a:textArea name="description" bindTarget="csh_transaction_deposit_return_maintain_ds" prompt="备注"
......@@ -216,6 +226,20 @@
</a:box>
</a:form>
<a:grid id="csh_deposit_cashflow_grid_ds_id" bindTarget="csh_deposit_cashflow_grid_ds" marginHeight="200" marginWidth="80" navBar="true">
<!--<a:toolBar>
<a:button click="csh510_export" text="导出"/>
</a:toolBar>-->
<a:columns>
<a:column name="source_transaction_num" prompt="源单据编号" width="150" align="center"/>
<a:column name="transaction_amount" prompt="总额" align="right" renderer="Leaf.formatMoney"/>
<a:column name="deposit_source_type" prompt="类型" width="110" align="center"/>
<a:column name="transaction_date" prompt="时间" align="center" renderer="Leaf.formatDate"/>
<a:column name="transaction_num" prompt="目标单据编号" width="150" align="center"/>
<a:column name="transaction_deposit_amount" prompt="分配金额" align="right" renderer="Leaf.formatMoney"/>
<a:column name="contract_number" prompt="合同编号" width="150" align="center"/>
</a:columns>
</a:grid>
</a:screenBody>
<script type="text/javascript"><![CDATA[
Leaf.onReady(init);
......
......@@ -38,10 +38,14 @@
var record = $('csh_transaction_return_wfl_ds').getCurrentRecord();
var return_id = record.get('return_id');
var file_name = "保证金退款-" + record.get('bp_agent_name') + "-" + record.get('return_amount') + "元";
var url_l = $('csh_deposit_return_history_print_link_id').getUrl() + '?document_id=' + return_id + '&file_name=' + file_name + '&document_table=CSH_DEPOSIT_TRANSACTION_RETURN&batch_flag=Y&source_type=common';
var url_l = $('csh_deposit_return_history_print_link_id').getUrl() + '?document_id=' + return_id + '&file_name=' + encodeURI(file_name) + '&document_table=CSH_DEPOSIT_TRANSACTION_RETURN&batch_flag=Y&source_type=common';
window.open(href = url_l, target = "_self");
}
function attach_renderer(value, record, name) {
return '<a href="javascript:upload_attachment_win();" style="color:red">' + '附件查看' + '</a>';
}
]]></script>
<a:dataSets>
<a:dataSet id="csh_transaction_return_wfl_ds" autoPageSize="true" autoQuery="true"
......@@ -49,6 +53,7 @@
queryUrl="${/request/@context_path}/autocrud/cus_deposit.CUS_DEPOSIT106.csh_transaction_return_query/query?return_id=${/parameter/@return_id}">
</a:dataSet>
<a:dataSet id="csh_deposit_cashflow_grid_ds" fetchAll="true" autoQuery="true" model="cus_deposit.CUS_DEPOSIT106.csh_deposit_cashflow_query" queryUrl="${/request/@context_path}/autocrud/cus_deposit.CUS_DEPOSIT106.csh_deposit_cashflow_query/query?return_id=${/parameter/@return_id}"/>
</a:dataSets>
<a:screenBody>
<a:screenTopToolbar>
......@@ -72,20 +77,23 @@
<a:textField name="contract_number" bindTarget="csh_transaction_return_wfl_ds"
prompt="合同编号" readOnly="true" width="180"/>
<a:textField name="bp_id_telnet_code" bindTarget="csh_transaction_return_wfl_ds"
prompt="承租人编码" readOnly="true"/>
prompt="承租人编码" readOnly="true" width="170"/>
<a:textField name="bp_id_telnet_n" bindTarget="csh_transaction_return_wfl_ds"
prompt="承租人名称" readOnly="true" width="170"/>
<!-- <a:datePicker name="lasted_account_date" bindTarget="csh_transaction_return_wfl_ds"-->
<!-- prompt="最后一次入账时间" width="185" readOnly="true"/>-->
prompt="承租人名称" readOnly="true" width="185"/>
<!--<a:datePicker name="lasted_account_date" bindTarget="csh_transaction_return_wfl_ds"-->
<!--prompt="最后一次入账时间" width="185" readOnly="true"/>-->
<a:numberField name="left_amount" allowDecimals="true" allowFormat="true"
allowNegative="false" bindTarget="csh_transaction_return_wfl_ds"
prompt="合同剩余保证金" readOnly="true" width="170"/>
</a:box>
<a:box column="4" labelWidth="115">
<a:textField name="bp_bank_account_name" bindTarget="csh_transaction_return_wfl_ds"
prompt="CSH510.CSH_TRANSACTION.YOUR_ACCOUNT_NAME" readOnly="true" width="180"/>
<a:textField name="opposite_band_na" bindTarget="csh_transaction_return_wfl_ds"
prompt="CSH510.CSH_TRANSACTION.YOUR_BANK_NAME" readOnly="true"/>
prompt="CSH510.CSH_TRANSACTION.YOUR_BANK_NAME" readOnly="true" width="170"/>
<a:textField name="bp_bank_account_num" bindTarget="csh_transaction_return_wfl_ds"
prompt="CSH510.CSH_TRANSACTION.YOUR_ACCOUNT_USERNAME" readOnly="true" width="170"/>
<a href="javascript:upload_attachment_win()" style="color:red">附件查看</a>
prompt="CSH510.CSH_TRANSACTION.YOUR_ACCOUNT_USERNAME" readOnly="true" width="185"/>
<a:label name="attach" bindTarget="csh_transaction_return_wfl_ds" renderer="attach_renderer" prompt="附件" width="170"/>
<!--<a:numberField name="return_amount" allowDecimals="true" allowFormat="true" allowNegative="false" bindTarget="csh_transaction_return_wfl_ds" prompt="CSH515.CSH_REFUND_AMOUNT" readOnly="true"/>-->
<!--<a:textField name="bank_slip_num" bindTarget="csh_transaction_return_wfl_ds" prompt="银行流水号" readOnly="true"/>-->
<!--<a:comboBox name="currency_name" bindTarget="csh_transaction_return_wfl_ds" prompt="HLS.CURRENCY" readOnly="true"/>-->
......@@ -107,6 +115,20 @@
<!--<a:textField name="description" bindTarget="csh_transaction_return_wfl_ds" prompt="HLS.NOTE" width="849" readOnly="true"/>-->
</a:box>
</a:form>
<a:grid id="csh_deposit_cashflow_grid_ds_id" bindTarget="csh_deposit_cashflow_grid_ds" marginHeight="200" marginWidth="80" navBar="true">
<!--<a:toolBar>
<a:button click="csh510_export" text="导出"/>
</a:toolBar>-->
<a:columns>
<a:column name="source_transaction_num" prompt="源单据编号" width="150" align="center"/>
<a:column name="transaction_amount" prompt="总额" align="right" renderer="Leaf.formatMoney"/>
<a:column name="deposit_source_type" prompt="类型" width="110" align="center"/>
<a:column name="transaction_date" prompt="时间" align="center" renderer="Leaf.formatDate"/>
<a:column name="transaction_num" prompt="目标单据编号" width="150" align="center"/>
<a:column name="transaction_deposit_amount" prompt="分配金额" align="right" renderer="Leaf.formatMoney"/>
<a:column name="contract_number" prompt="合同编号" width="150" align="center"/>
</a:columns>
</a:grid>
</a:screenBody>
<script type="text/javascript"><![CDATA[
Leaf.onReady(init);
......
......@@ -134,14 +134,18 @@
para: {
transaction_id: record.get('transaction_id')
},
success: function () {
success: function (res) {
var return_id = res.result.return_id;
Leaf.Masker.unmask(Ext.getBody());
new Leaf.Window({
id: 'csh_transaction_deposit_link_winid',
params: {
return_id: return_id,
bp_bank_account_name: record.get('bp_bank_account_name'),
opposite_band_na: record.get('opposite_band_na'),
bp_bank_account_num: record.get('bp_bank_account_num'),
left_amount: record.get('left_amount'),
winId: 'csh_transaction_deposit_link_winid'
},
url: url,
......
......@@ -507,6 +507,7 @@
var test_ds_id2 = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_SPOUSE', 'hls_bp_master');
if (ds.id == f_bp_create_ds_id) {
debugger;
var hd_ds = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_BASIC', 'hls_bp_master');
record = $(hd_ds).getCurrentRecord();
if(record.get('bp_class')=='NP'){
......
......@@ -10,6 +10,7 @@
<a:init-procedure>
<a:model-query defaultWhereClause="t1.user_id=${/session/@user_id}" model="prj.PRJ500D.sys_user_lv"
rootPath="user_name_path"/>
<a:model-query defaultWhereClause="v.role_id = ${/session/@role_id} and v.role_code in (&apos;0006&apos;)" model="zjwfl.sys_role_flag" rootPath="role_flag_path"/>
<s:server-script import="contract_print_path.js"><![CDATA[
$ctx.parameter.file_path = con_print_path['con_print_path'];
$ctx.parameter.tomcat_source = con_print_path['tomcat_source'];
......@@ -342,6 +343,42 @@
}
}
function prj501n_upload_file_new(id, name, query_only) {
debugger;
var record = window['${/parameter/@layout_code}_hls_link_render_record'][id + '---' + name];
if (record.get('check_id')) {
var url;
/*if (query_only == 'Y' || '${/parameter/@function_usage}' == 'QUERY') {
if('${/model/role_flag_path/record/@sys_role_flag}' == 'Y') {
url = $('${/parameter/@layout_code}${/parameter/@pre_layout}prj500_cdd_uploadFile_id').getUrl() + '?table_name=PRJ_CDD_ITEM_CHECK&header_id=' + record.get('check_id');
}else{
url = $('${/parameter/@layout_code}${/parameter/@pre_layout}prj500_cdd_downloadFile_id').getUrl() + '?table_name=PRJ_CDD_ITEM_CHECK&header_id=' + record.get('check_id');
}
} else {
url = $('${/parameter/@layout_code}${/parameter/@pre_layout}prj500_cdd_uploadFile_id').getUrl() + '?table_name=PRJ_CDD_ITEM_CHECK&header_id=' + record.get('check_id');
}*/
if('${/model/role_flag_path/record/@sys_role_flag}' == 'Y') {
url = $('${/parameter/@layout_code}${/parameter/@pre_layout}prj500_cdd_uploadFile_id').getUrl() + '?table_name=PRJ_CDD_ITEM_CHECK&header_id=' + record.get('check_id');
}else{
url = $('${/parameter/@layout_code}${/parameter/@pre_layout}prj500_cdd_downloadFile_id').getUrl() + '?table_name=PRJ_CDD_ITEM_CHECK&header_id=' + record.get('check_id');
}
var win = new Leaf.Window({
url: url,
title: '${l:HLS.SUPPORTING_DOCUMENT}',
id: 'prj500_cdd_uploadFile_screen_id',
width: 850,
height: 400
});
win.on('close', function () {
record.ds.query();
});
} else {
Leaf.showMessage('${l:HLS.PROMPT}', '请先保存!');
}
}
function prj501n_bp_code_renderer(id, name, query_only) {
var record = window['${/parameter/@layout_code}_hls_link_render_record'][id + '---' + name];
var param = {};
......@@ -388,10 +425,14 @@
//超链接渲染
window['${/parameter/@layout_code}_dynamic_link_renderer'] = function (value, record, name, config_record) {
debugger;
var link_function = '';
window['${/parameter/@layout_code}_hls_link_render_record'][record.id + '---' + name] = record;
if (name == 'attachment') {
link_function = 'prj501n_upload_file';
if(record.get('cdd_item') == 'ADD_ATTACH'){
link_function = 'prj501n_upload_file_new';
}
return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + name + '\',\'' + config_record.get('query_only') + '\');">' + config_record.get('prompt') + '</a>';
} else if (name == 'attach_file_name') {
......
......@@ -10,6 +10,7 @@
<a:init-procedure>
<a:model-query defaultWhereClause="t1.user_id=${/session/@user_id}" model="prj.PRJ500D.sys_user_lv"
rootPath="user_name_path"/>
<a:model-query defaultWhereClause="v.role_id = ${/session/@role_id} and v.role_code in (&apos;0006&apos;)" model="zjwfl.sys_role_flag" rootPath="role_flag_path"/>
<s:server-script import="contract_print_path.js"><![CDATA[
$ctx.parameter.file_path = con_print_path['con_print_path'];
$ctx.parameter.tomcat_source = con_print_path['tomcat_source'];
......@@ -232,6 +233,43 @@
Leaf.showMessage('${l:HLS.PROMPT}', '请先保存!');
}
}
function prj501n_upload_file_new(id, name, query_only) {
debugger;
var record = window['${/parameter/@layout_code}_hls_link_render_record'][id + '---' + name];
if (record.get('check_id')) {
var url;
/*if (query_only == 'Y' || '${/parameter/@function_usage}' == 'QUERY') {
if('${/model/role_flag_path/record/@sys_role_flag}' == 'Y') {
url = $('${/parameter/@layout_code}${/parameter/@pre_layout}prj500_cdd_uploadFile_id').getUrl() + '?table_name=PRJ_CDD_ITEM_CHECK&header_id=' + record.get('check_id');
}else{
url = $('${/parameter/@layout_code}${/parameter/@pre_layout}prj500_cdd_downloadFile_id').getUrl() + '?table_name=PRJ_CDD_ITEM_CHECK&header_id=' + record.get('check_id');
}
} else {
url = $('${/parameter/@layout_code}${/parameter/@pre_layout}prj500_cdd_uploadFile_id').getUrl() + '?table_name=PRJ_CDD_ITEM_CHECK&header_id=' + record.get('check_id');
}*/
if('${/model/role_flag_path/record/@sys_role_flag}' == 'Y') {
url = $('${/parameter/@layout_code}${/parameter/@pre_layout}prj500_cdd_uploadFile_id').getUrl() + '?table_name=PRJ_CDD_ITEM_CHECK&header_id=' + record.get('check_id');
}else{
url = $('${/parameter/@layout_code}${/parameter/@pre_layout}prj500_cdd_downloadFile_id').getUrl() + '?table_name=PRJ_CDD_ITEM_CHECK&header_id=' + record.get('check_id');
}
var win = new Leaf.Window({
url: url,
title: '${l:HLS.SUPPORTING_DOCUMENT}',
id: 'prj500_cdd_uploadFile_screen_id',
width: 850,
height: 400
});
win.on('close', function () {
record.ds.query();
});
} else {
Leaf.showMessage('${l:HLS.PROMPT}', '请先保存!');
}
}
function prj501n_contract_number_renderer(id, name, query_only) {
var record = window['${/parameter/@layout_code}_hls_link_render_record'][id + '---' + name];
var param = {};
......@@ -265,6 +303,9 @@
window['${/parameter/@layout_code}_hls_link_render_record'][record.id + '---' + name] = record;
if (name == 'attachment') {
link_function = 'prj501n_upload_file';
if(record.get('cdd_item') == 'ADD_ATTACH'){
link_function = 'prj501n_upload_file_new';
}
return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + name + '\',\'' + config_record.get('query_only') + '\');">' + config_record.get('prompt') + '</a>';
} else if (name == 'attach_file_name') {
......
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