Commit 8140a839 authored by niminmin's avatar niminmin

[feat]回租部分开发

parent 026e1e52
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -155,11 +155,12 @@ ...@@ -155,11 +155,12 @@
v.code_value = r.req_status v.code_value = r.req_status
)req_status_n, )req_status_n,
r.created_by, r.created_by,
(SELECT su.description FROM sys_user su WHERE su.user_id=r.created_by)req_employee_n (SELECT su.description FROM sys_user su WHERE su.user_id=r.created_by)req_employee_n,
to_char(r.termination_date,'yyyy-mm-dd')termination_date
FROM FROM
con_contract t, con_contract t,
hls_bp_master b, hls_bp_master b,
hls_document_type_v dt,con_contract_change_req r hls_document_type_v dt,con_contract_change_req r
WHERE WHERE
r.change_req_id = t.contract_id AND r.change_req_id = t.contract_id AND
...@@ -193,6 +194,8 @@ ...@@ -193,6 +194,8 @@
<bm:query-field name="division" queryExpression="t1.division = ${@division}"/> <bm:query-field name="division" queryExpression="t1.division = ${@division}"/>
<bm:query-field name="contract_status" queryExpression="t1.contract_status = ${@contract_status}"/> <bm:query-field name="contract_status" queryExpression="t1.contract_status = ${@contract_status}"/>
<bm:query-field name="lease_execution_date_from" queryexpression="to_char(t1.lease_execution_date,'YYYY-MM-DD') &gt;= ${@lease_execution_date_from}"/> <bm:query-field name="lease_execution_date_from" queryexpression="to_char(t1.lease_execution_date,'YYYY-MM-DD') &gt;= ${@lease_execution_date_from}"/>
<bm:query-field name="termination_date_to" queryexpression="t1.termination_date&lt;= ${@termination_date_to}"/>
<bm:query-field name="termination_date_from" queryexpression="t1.termination_date &gt;= ${@termination_date_from}"/>
<bm:query-field name="lease_execution_date_to" queryexpression="to_char(t1.lease_execution_date,'YYYY-MM-DD') &lt;= ${@lease_execution_date_to}"/> <bm:query-field name="lease_execution_date_to" queryexpression="to_char(t1.lease_execution_date,'YYYY-MM-DD') &lt;= ${@lease_execution_date_to}"/>
<bm:query-field name="req_employee_n" datatype="java.lang.String" queryexpression="t1.req_employee_n like &apos;%&apos; || ${@req_employee_n} || &apos;%&apos;"/> <bm:query-field name="req_employee_n" datatype="java.lang.String" queryexpression="t1.req_employee_n like &apos;%&apos; || ${@req_employee_n} || &apos;%&apos;"/>
<bm:query-field name="req_status" queryExpression="t1.req_status = ${@req_status}"/> <bm:query-field name="req_status" queryExpression="t1.req_status = ${@req_status}"/>
......
...@@ -81,7 +81,9 @@ ...@@ -81,7 +81,9 @@
FROM hls_bp_master_bank_account hb FROM hls_bp_master_bank_account hb
WHERE hb.bank_account_id = v.bp_bank_account_id)) sap_bvtyp_n, WHERE hb.bank_account_id = v.bp_bank_account_id)) sap_bvtyp_n,
v.pattern, v.pattern,
v.machine_number v.machine_number,
v.repur_con_amt,
v.repur_con_ddct_amt
FROM (SELECT t.contract_id, FROM (SELECT t.contract_id,
(SELECT hbbc.bank_account_id (SELECT hbbc.bank_account_id
FROM hls_bp_master_bank_account hbbc FROM hls_bp_master_bank_account hbbc
...@@ -263,7 +265,9 @@ ...@@ -263,7 +265,9 @@
'01', '01',
'CNYB')) sap_bvtyp_n, 'CNYB')) sap_bvtyp_n,
i.pattern, i.pattern,
i.machine_number i.machine_number,
nvl((select due_amount from con_contract_cashflow where contract_id=t.repur_contract_id and cf_item=250),0)repur_con_amt,
nvl((select due_amount from con_contract_cashflow where contract_id=t.repur_contract_id and cf_item=250),0)repur_con_ddct_amt
FROM con_contract_cashflow f FROM con_contract_cashflow f
join con_contract t join con_contract t
on t.contract_id = f.contract_id on t.contract_id = f.contract_id
......
...@@ -116,7 +116,9 @@ ...@@ -116,7 +116,9 @@
cpr.payment_req_ln_type, cpr.payment_req_ln_type,
cpr.ref_doc_id, cpr.ref_doc_id,
cpr.ref_doc_line_id, cpr.ref_doc_line_id,
cpr.ref_doc_category cpr.ref_doc_category,
nvl(cpr.repur_con_amt,0)repur_con_amt,
nvl(cpr.repur_con_ddct_amt,0)repur_con_ddct_amt
from csh_payment_req_ln cpr, from csh_payment_req_ln cpr,
con_contract c, con_contract c,
......
...@@ -10,12 +10,8 @@ ...@@ -10,12 +10,8 @@
<bm:operation name="update"> <bm:operation name="update">
<bm:update-sql><![CDATA[ <bm:update-sql><![CDATA[
begin begin
update csh_transaction csh_transaction_pkg.check_csh_trans_tenant_atm(p_transaction_id=> ${@transaction_id},
set LAST_UPDATE_DATE = sysdate, p_user_id=> ${/session/@user_id});
last_updated_by = ${/session/@user_id},
confirmed_flag = 'ACCAUDITING'
where transaction_id = ${@transaction_id}
and confirmed_flag in ('NEW','CT_REJECTED');
end; end;
]]></bm:update-sql> ]]></bm:update-sql>
</bm:operation> </bm:operation>
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
to_char(due_date, 'yyyy-mm-dd') due_date, to_char(due_date, 'yyyy-mm-dd') due_date,
decode(cf_item, 9, decode(cf_item, 9,
CON_OVERDUE_PENALTY_PKG.CALC_PENALTY_FOR_WRITE_OFF(p_cashflow_id=>t.cashflow_id, CON_OVERDUE_PENALTY_PKG.CALC_PENALTY_FOR_WRITE_OFF(p_cashflow_id=>t.cashflow_id,
p_calc_date=>to_date(${@transaction_date}, 'yyyy-mm-dd'), p_calc_date=>decode(nvl(${@deposit_flag},'N'),'Y',sysdate,to_date(${@transaction_date}, 'yyyy-mm-dd')),
p_user_id=>${/session/@user_id}, p_user_id=>${/session/@user_id},
p_penalty_flag=>'Y'), p_penalty_flag=>'Y'),
due_amount) due_amount, due_amount) due_amount,
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
interest - nvl(received_interest, 0) unreceived_interest, interest - nvl(received_interest, 0) unreceived_interest,
decode(cf_item, 9, decode(cf_item, 9,
CON_OVERDUE_PENALTY_PKG.CALC_PENALTY_FOR_WRITE_OFF(p_cashflow_id=>t.cashflow_id, CON_OVERDUE_PENALTY_PKG.CALC_PENALTY_FOR_WRITE_OFF(p_cashflow_id=>t.cashflow_id,
p_calc_date=>to_date(${@transaction_date}, 'yyyy-mm-dd'), p_calc_date=>decode(nvl(${@deposit_flag},'N'),'Y',sysdate,to_date(${@transaction_date}, 'yyyy-mm-dd')),
p_user_id=>${/session/@user_id}, p_user_id=>${/session/@user_id},
p_penalty_flag=>'Y'), p_penalty_flag=>'Y'),
due_amount) - due_amount) -
......
...@@ -80,6 +80,7 @@ ...@@ -80,6 +80,7 @@
<bm:field name="receipt_type_des" expression="(select v.code_value_name from sys_code_values_v v where v.code=&apos;RECEIPT_TYPE&apos; and v.code_value=t1.receipt_type)"/> <bm:field name="receipt_type_des" expression="(select v.code_value_name from sys_code_values_v v where v.code=&apos;RECEIPT_TYPE&apos; and v.code_value=t1.receipt_type)"/>
<bm:field name="ref_contract_id"/> <bm:field name="ref_contract_id"/>
<bm:field name="contract_number" expression="(select cc.contract_number from con_contract cc where cc.contract_id = t1.ref_contract_id)"/> <bm:field name="contract_number" expression="(select cc.contract_number from con_contract cc where cc.contract_id = t1.ref_contract_id)"/>
<bm:field name="contract_name" expression="(select cc.contract_number from con_contract cc where cc.contract_id = t1.ref_contract_id)"/>
<bm:field name="collection_classes"/> <bm:field name="collection_classes"/>
<bm:field name="collection_classes_desc" expression="(select v.code_value_name from sys_code_values_v v where v.code = 'DS_COLLECTION_CLASSES' and v.code_value =t1.collection_classes)" forInsert="false" forUpdate="false"/> <bm:field name="collection_classes_desc" expression="(select v.code_value_name from sys_code_values_v v where v.code = 'DS_COLLECTION_CLASSES' and v.code_value =t1.collection_classes)" forInsert="false" forUpdate="false"/>
<bm:field name="confirmed_flag_desc" expression="(select v.code_value_name from sys_code_values_v v where v.code = 'CONFIRMED_FLAG' and v.code_value =t1.confirmed_flag)" forInsert="false" forUpdate="false"/> <bm:field name="confirmed_flag_desc" expression="(select v.code_value_name from sys_code_values_v v where v.code = 'CONFIRMED_FLAG' and v.code_value =t1.confirmed_flag)" forInsert="false" forUpdate="false"/>
...@@ -101,6 +102,7 @@ ...@@ -101,6 +102,7 @@
<bm:field name="acc_confirmed_by_desc" expression="(select description from sys_user where user_id=t1.acc_confirmed_by)" forInsert="false" forUpdate="false"/> <bm:field name="acc_confirmed_by_desc" expression="(select description from sys_user where user_id=t1.acc_confirmed_by)" forInsert="false" forUpdate="false"/>
<bm:field name="receipt_type_n" expression="(select v.code_value_name from sys_code_values_v v where v.code = 'RECEIPT_TYPE' and v.code_value =t1.receipt_type)" forInsert="false" forUpdate="false"/> <bm:field name="receipt_type_n" expression="(select v.code_value_name from sys_code_values_v v where v.code = 'RECEIPT_TYPE' and v.code_value =t1.receipt_type)" forInsert="false" forUpdate="false"/>
<bm:field name="deposit_trans_type"/> <bm:field name="deposit_trans_type"/>
<bm:field name="bp_id_telnet_code" expression="(select hb.bp_code from hls_bp_master hb,con_contract ct where ct.contract_id=t1.ref_contract_id and hb.bp_id=ct.bp_id_tenant)" forInsert="false" forUpdate="false"/>
<bm:field name="bp_id_telnet_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_tenant)" forInsert="false" forUpdate="false"/> <bm:field name="bp_id_telnet_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_tenant)" forInsert="false" forUpdate="false"/>
<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="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="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"/>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<bm:operation name="query"> <bm:operation name="query">
<bm:query-sql><![CDATA[ <bm:query-sql><![CDATA[
select * from (select cr.return_id, select * from (select cr.return_id,
cr.return_date, to_char(cr.return_date,'yyyy-mm-dd') return_date,
cr.return_amount, cr.return_amount,
ct.period_name, ct.period_name,
cr.opposite_band_na, cr.opposite_band_na,
...@@ -38,7 +38,13 @@ ...@@ -38,7 +38,13 @@
cr.csh_return_bp_id, cr.csh_return_bp_id,
(select a.bp_name (select a.bp_name
from hls_bp_master a from hls_bp_master a
where a.bp_id = cr.csh_return_bp_id) csh_return_bp_name 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 a.bp_name
from hls_bp_master a
where a.bp_id = ct.bp_id) bp_agent_name
from csh_transaction ct, csh_transaction_return cr from csh_transaction ct, csh_transaction_return cr
where ct.transaction_id = cr.transaction_id where ct.transaction_id = cr.transaction_id
)v )v
......
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: hp
$Date: 2015-5-15 上午11:46:44
$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 t1.status from CSH_TRANSACTION_RETURN t1 #WHERE_CLAUSE# ]]></bm:query-sql>
</bm:operation>
</bm:operations>
<bm:fields>
<bm:field name="status"/>
</bm:fields>
</bm:model>
...@@ -176,9 +176,10 @@ ...@@ -176,9 +176,10 @@
<bm:query-field field="bp_id" queryOperator="="/> <bm:query-field field="bp_id" queryOperator="="/>
<bm:query-field name="description" queryExpression="t1.description like &apos;%&apos;||${@description}||&apos;%&apos;"/> <bm:query-field name="description" queryExpression="t1.description like &apos;%&apos;||${@description}||&apos;%&apos;"/>
<bm:query-field name="bank_account_num" queryExpression="(select a.bank_account_num from csh_bank_account a where a.bank_account_id=t1.bank_account_id) like &apos;%&apos;||upper(${@bank_account_num})||&apos;%&apos;"/> <bm:query-field name="bank_account_num" queryExpression="(select a.bank_account_num from csh_bank_account a where a.bank_account_id=t1.bank_account_id) like &apos;%&apos;||upper(${@bank_account_num})||&apos;%&apos;"/>
<!--<bm:query-field name="contract_number" queryExpression="(SELECT cc.contract_number FROM con_contract cc WHERE cc.contract_id = t1.ref_contract_id) like &apos;%&apos;||upper(${@contract_number})||&apos;%&apos;"/>--> <bm:query-field name="bp_id_telnet_n" queryExpression="(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_tenant) like ${@bp_id_telnet_n}"/> <!--<bm:query-field name="contract_number" queryExpression="(SELECT cc.contract_number FROM con_contract cc WHERE cc.contract_id = t1.ref_contract_id) like &apos;%&apos;||upper(${@contract_number})||&apos;%&apos;"/>-->
<bm:query-field name="bp_id_telnet_n" queryExpression="(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_tenant) like &apos;%&apos;||${@bp_id_telnet_n}||&apos;%&apos; "/>
<bm:query-field name="contract_number" queryExpression="(SELECT cc.contract_number FROM con_contract cc WHERE cc.contract_id = t1.ref_contract_id) like &apos;%&apos;||${@contract_number}||&apos;%&apos;"/> <bm:query-field name="contract_number" queryExpression="(SELECT cc.contract_number FROM con_contract cc WHERE cc.contract_id = t1.ref_contract_id) like &apos;%&apos;||${@contract_number}||&apos;%&apos;"/>
<bm:query-field name="bp_name_n" queryExpression="(select d.bp_name from hls_bp_master_v d where d.bp_id=t1.bp_id) like ${@bp_name_n} "/> <bm:query-field name="bp_name_n" queryExpression="(select d.bp_name from hls_bp_master_v d where d.bp_id=t1.bp_id) like &apos;%&apos;||${@bp_name_n}||&apos;%&apos; "/>
<bm:query-field name="deposit_trans_type" queryExpression="t1.deposit_trans_type=${@deposit_trans_type}"/> <bm:query-field name="deposit_trans_type" queryExpression="t1.deposit_trans_type=${@deposit_trans_type}"/>
</bm:query-fields> </bm:query-fields>
</bm:model> </bm:model>
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
<bm:operation name="update"> <bm:operation name="update">
<bm:parameters> <bm:parameters>
<bm:parameter name="document_category" dataType="java.lang.String" input="true" output="false"/> <bm:parameter name="document_category" dataType="java.lang.String" input="true" output="false"/>
<bm:parameter name="business_type" dataType="java.lang.String" input="true" output="false"/>
<bm:parameter name="document_type" dataType="java.lang.String" input="true" output="false"/> <bm:parameter name="document_type" dataType="java.lang.String" input="true" output="false"/>
<bm:parameter name="company_id" dataType="java.lang.Long" input="true" output="false"/> <bm:parameter name="company_id" dataType="java.lang.Long" input="true" output="false"/>
<bm:parameter name="lease_channel" dataType="java.lang.String" input="true" output="false"/> <bm:parameter name="lease_channel" dataType="java.lang.String" input="true" output="false"/>
...@@ -17,6 +18,7 @@ ...@@ -17,6 +18,7 @@
HLS_DOCUMENT_SAVE_PKG.GET_NEW_PRJ_NUMBER HLS_DOCUMENT_SAVE_PKG.GET_NEW_PRJ_NUMBER
( (
p_document_category=>${@document_category}, p_document_category=>${@document_category},
p_business_type=>${@business_type},
p_document_type=>${@document_type}, p_document_type=>${@document_type},
p_company_id=>${/session/@company_id}, p_company_id=>${/session/@company_id},
p_lease_channel=>${@lease_channel}, p_lease_channel=>${@lease_channel},
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
(case when (case when
${/session/@role_id} in(2318,2319) then ${/session/@role_id} in(2318,2319) then
'同意' '同意'
elsemodules/cont/CON620/con_contract_rent_dun_query.lview else
t1.comment_text t1.comment_text
end ),t1.comment_text),t1.comment_text) comment_text, end ),t1.comment_text),t1.comment_text) comment_text,
-- t1.comment_text, -- t1.comment_text,
...@@ -140,42 +140,43 @@ ...@@ -140,42 +140,43 @@
WHERE WHERE
t1.instance_id =${@instance_id} ) v where (v.bp_category = 'AGENT' and v.record_type not like 'TRANSFER') t1.instance_id =${@instance_id} ) v where (v.bp_category = 'AGENT' and v.record_type not like 'TRANSFER')
UNION UNION
SELECT SELECT NULL AS node_id,
NULL AS node_id, NULL AS workflow_code,
NULL AS workflow_code, NULL AS workflow_desc,
NULL AS workflow_desc, 00 AS node_sequence_num,
00 AS node_sequence_num, '00--提交节点' AS node_desc,
'00--提交节点' AS node_desc, zw.instance_id AS instance_id,
pp.wfl_instance_id AS instance_id, NULL AS action_taken,
NULL AS action_taken, NULL AS action_type,
NULL AS action_type, ('提交--' || (select zww.workflow_desc
'提交--租赁申请流程' AS action_type_desc, from zj_wfl_workflow zww
NULL AS record_type, where zww.workflow_id = zw.workflow_id)) AS action_type_desc,
'提交' AS comment_text, NULL AS record_type,
NULL AS comment_text_out, '提交' AS comment_text,
NULL AS record_id, NULL AS comment_text_out,
NULL AS seq_number, NULL AS record_id,
NULL AS rcpt_record_id, NULL AS seq_number,
NULL AS disabled_flag, NULL AS rcpt_record_id,
NULL AS note, NULL AS disabled_flag,
to_char((select zi.creation_date from zj_wfl_workflow_instance zi where zi.instance_id=pp.wfl_instance_id),'yyyy-mm-dd hh24:mi:ss') AS create_date_fmt, NULL AS note,
(SELECT su.description FROM sys_user su WHERE su.user_id = pp.owner_user_id to_char(zw.creation_date, 'yyyy-mm-dd hh24:mi:ss') AS create_date_fmt,
) approver, (SELECT su.description
'Y' AS agent_flag, FROM sys_user su
1 AS record_approve_count, WHERE su.user_id = zw.created_by) approver,
1 AS instance_approve_count, 'N' AS agent_flag,
'N' AS node_hide_approve_record, 1 AS record_approve_count,
NULL AS node_show_approve_ht, 1 AS instance_approve_count,
NULL AS node_show_all_approve_ht, 'N' AS node_hide_approve_record,
NULL AS wfl_show_approve_ht, NULL AS node_show_approve_ht,
NULL AS wfl_show_all_approve_ht, NULL AS node_show_all_approve_ht,
NULL AS attach_count, NULL AS wfl_show_approve_ht,
NULL AS bp_category NULL AS wfl_show_all_approve_ht,
FROM NULL AS attach_count,
prj_project pp NULL AS bp_category
WHERE FROM zj_wfl_workflow_instance zw
pp.wfl_instance_id = ${@instance_id} AND WHERE zw.instance_id =${@instance_id}
pp.wfl_instance_id IS NOT NULL
) t1 #WHERE_CLAUSE# ) t1 #WHERE_CLAUSE#
ORDER BY ORDER BY
create_date_fmt DESC create_date_fmt DESC
......
...@@ -321,12 +321,12 @@ ...@@ -321,12 +321,12 @@
<a:dataSet id="acr512_invoice_result_ds" autoPageSize="true" autoQuery="true" <a:dataSet id="acr512_invoice_result_ds" autoPageSize="true" autoQuery="true"
model="acr.ACR512.acr_invoice_update_query" queryDataSet="acr512_invoice_query_ds" model="acr.ACR512.acr_invoice_update_query" queryDataSet="acr512_invoice_query_ds"
selectable="true"/> selectable="true"/>
<a:fields> <!-- <a:fields>-->
<a:field name="compare_date_flag"/> <!-- <a:field name="compare_date_flag"/>-->
</a:fields> <!-- </a:fields>-->
<a:events> <!-- <a:events>-->
<a:event name="load" handler="load_do_info"/> <!-- <a:event name="load" handler="load_do_info"/>-->
</a:events> <!-- </a:events>-->
</a:dataSets> </a:dataSets>
<a:screenBody> <a:screenBody>
<a:screenTopToolbar> <a:screenTopToolbar>
......
...@@ -67,11 +67,11 @@ ...@@ -67,11 +67,11 @@
function open_project_Window(record_id, ds_id) { function open_project_Window(record_id, ds_id) {
var record = $(ds_id).findById(record_id); var record = $(ds_id).findById(record_id);
//项目类layout_code //项目类layout_code
maintain_type = 'QUERY'; maintain_type = 'READONLY';
param = record.data; param = record.data;
param['document_id'] = record.get('project_id'); param['document_id'] = record.get('project_id');
param['function_code'] = 'PRJ501Q'; param['function_code'] = 'PRJ501_WFL';
param['function_usage'] = 'MODIFY'; param['function_usage'] = 'QUERY';
param['maintain_type'] = maintain_type; param['maintain_type'] = maintain_type;
param['url_title'] = '${l:HLS.PROJECT_MAITAIN}'; param['url_title'] = '${l:HLS.PROJECT_MAITAIN}';
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'car_modify_link_readonly', ds_id); hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'car_modify_link_readonly', ds_id);
......
...@@ -61,6 +61,21 @@ ...@@ -61,6 +61,21 @@
}); });
}; };
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_form_add_and_load'] = function (ds, record, config_records, bp_seq) {
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract');
if (ds_id == ds.id && ds_id) {
if (record.get('business_type') == 'LEASEBACK'&&'${/parameter/@function_usage}'=='MODIFY') {
record.set('submit_date',null);
record.set('guarantee_letter_f','NO');
record.set('guarantee_letter_f_n','否');
}else if(record.get('business_type') == 'LEASE'){
document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_ENTRUSTED_AMOUNT_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_ENTRUSTED_AMOUNT').style.display = 'none';
}
}
};
// window['${/parameter/@layout_code}_dynamic_link_renderer'] = function(value, record, name, config_record) { // window['${/parameter/@layout_code}_dynamic_link_renderer'] = function(value, record, name, config_record) {
...@@ -511,6 +526,7 @@ ...@@ -511,6 +526,7 @@
document_category: 'CONTRACT', document_category: 'CONTRACT',
contract_status:record.get('contract_status'), contract_status:record.get('contract_status'),
maintain_type: 'MODIFY', maintain_type: 'MODIFY',
business_type: record.get('business_type'),
calc_session_id: record.get('calc_session_id'), calc_session_id: record.get('calc_session_id'),
quotation_id: record.get('quotation_id'), quotation_id: record.get('quotation_id'),
dsId: cashflow_ds_id, dsId: cashflow_ds_id,
......
<?xml version="1.0" encoding="UTF-8"?><!-- $Author: zlf $Date: 2014-11-10 下午5:42:24 $Revision: 1.0 $Purpose: --><a:screen xmlns:a="http://www.leaf-framework.org/application" xmlns:s="leaf.plugin.script" customizationEnabled="true" dynamiccreateenabled="true" trace="true"> <a:init-procedure> <a:model-query fetchAll="true" model="cont.CON500.con_contract_get_guid_file_name" rootPath="file_name_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']; ]]> </s:server-script> <s:server-script import="con_print_path.js"><![CDATA[ set_parameter_file_path(); ]]> </s:server-script> </a:init-procedure> <a:view> <a:link id="wfl_readonly_pageLink_projectQueryScreen_update_project" url="${/request/@context_path}/modules/prj/PRJ501N/prj_project_maintain_readonly.lview"/> <a:link id="${/parameter/@layout_code}_con_contract_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/> <a:link id="${/parameter/@layout_code}_con_contract_content_confirm_link_id" url="${/request/@context_path}/modules/cont/CON501N/con_contract_content_confirm.lview"/> <a:link id="contract_lease_item_query_link" url="${/request/@context_path}/modules/cont/CON505/con_lease_item_query.lview"/> <a:link id="contract_history_window_link" url="${/request/@context_path}/modules/cont/CON501N/con_document_history_query.lview"/> <a:link id="con505_hls_bp_master_query_link" url="${/request/@context_path}/modules/cont/CON505/hls_bp_master_query.lview"/> <a:link id="${/parameter/@layout_code}_prj500_cdd_uploadFile_id" url="${/request/@context_path}/uploadFile.lview"/> <a:link id="${/parameter/@layout_code}_prj500_cdd_downloadFile_id" url="${/request/@context_path}/downloadFile.lview"/> <!--打印使用--> <a:link id="${/parameter/@layout_code}_con505_contract_content_id" model="cont.CON505.con505_contract_content" modelaction="update"/> <a:link id="${/parameter/@layout_code}_creat_con_contract_content_link_id" model="cont.CON505.con505_contract_content" modelaction="execute"/> <a:link id="${/parameter/@layout_code}_file_copy_from_template_link_id" url="${/request/@context_path}/modules/cont/CON505/file_copy_from_template.lsc"/> <a:link id="${/parameter/@layout_code}_con_batch_dl_link_id" url="${/request/@context_path}/modules/cont/CON505/con_atm_batch_dl.lsc"/> <a:link id="${/parameter/@layout_code}_con_cashflow_wirte_off_detail_link" url="${/request/@context_path}/modules/cont/CON302N/con_cashflow_wirte_off_detail.lview"/> <a:link id="con_approval_link_id" model="cont.CON505.contract_approval" modelaction="update"/> <link href="${/request/@context_path}/css/lightbox.css" rel="stylesheet" type="text/css"/> <script src="${/request/@context_path}/javascripts/lightbox.js" type="text/javascript"/> <script type="text/javascript"><![CDATA[ Ext.ux.Lightbox.register('a[ref=img]', true); function lock_current_window() { Leaf.Masker.mask(Ext.getBody(), '${l:HLS.EXECUTING}'); } function unlock_current_window() { Leaf.Masker.unmask(Ext.getBody()); } window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function () { var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract'); var contract_id = $(ds_id).getCurrentRecord().get('contract_id'); new Leaf.Window({ id: 'contract_history_window', url: $('contract_history_window_link').getUrl(), params: { contract_id: contract_id }, fullScreen: true }); }; // window['${/parameter/@layout_code}_dynamic_link_renderer'] = function(value, record, name, config_record) { // if (name == 'car_detail') { // return '<a href="javascript:open_contract_window(\'' + record.id + '\',\'' + record.ds.id + '\')">' + config_record.get('prompt') + '</a>'; // } // return value; // }; window['${/parameter/@layout_code}_received_amount_detail'] = function (ds_id, id, name, query_only) { var url = $('${/parameter/@layout_code}_con_cashflow_wirte_off_detail_link').getUrl(); var record = $(ds_id).findById(id); if (record) { var win = new Leaf.Window({ id: 'con_cashflow_wirte_off_detail_window', url: url, params: { cashflow_id: record.get('cashflow_id'), winid: 'con_cashflow_wirte_off_detail_window' }, draggable: true, fullScreen: true }); } }; window['${/parameter/@layout_code}_dynamic_link_renderer'] = function (value, record, name, config_record, bp_seq) { var link_function = ''; window['${/parameter/@layout_code}_hls_link_render_record'][record.id + '---' + name] = record; if (name == 'project_number') { return '<a href="javascript:wfl_prj501_grid_update(\'' + record.id + '\',\'' + record.ds.id + '\')">' + value + '</a>'; } else if (name == 'gps_attch') { link_function = '${/parameter/@layout_code}_ast_con_cdd4_attachtment_upload'; if (record.get('atm_num3') > 0) { return '<a style="color:red" href="javascript:window[\'' + link_function + '\'](\'' + record.ds.id + '\',\'' + record.id + '\',\'' + name + '\',\'' + config_record.get('query_only') + '\');">' + config_record.get('prompt') + '</a>'; } else { return '<a style="font-weight:bolder;font-size:1.2em" href="javascript:window[\'' + link_function + '\'](\'' + record.ds.id + '\',\'' + record.id + '\',\'' + name + '\',\'' + config_record.get('query_only') + '\');">' + config_record.get('prompt') + '</a>'; } } else if (name == 'description') { if (record.get('important_flag') == 'Y') { return '<font color="RED">' + value + '</font>'; } return value; } else if (name == 'bp_link' && record.get('bp_id') && record.get('record_id')) { link_function = '${/parameter/@layout_code}_open_bp_detail_window'; return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + name + '\');">' + config_record.get('prompt') + '</a>'; } else if (name == 'car_detail' && record.get('contract_lease_item_id')) { link_function = '${/parameter/@layout_code}_open_lease_item_detail_window'; return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + name + '\');">' + config_record.get('prompt') + '</a>'; } else if (name == 'attachment') { link_function = '${/parameter/@layout_code}_prj500_cdd_attachtment_upload'; return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.ds.id + '\',\'' + record.id + '\',\'' + name + '\',\'' + config_record.get('query_only') + '\');">' + config_record.get('prompt') + '</a>'; } else if (name == 'attach_file_name' || name == 'attach_file_name_print' || name=='attachment_new') { var content_type = record.get('content_type'); var content_id = record.get('content_id'); //电子合同 // if(content_type == '01'){ // var link = '${/request/@context_path}/modules/xxx/pdf_download.lsc?type=SIN&content_id=' + content_id; // var url = ''; // url = url + '<a href=' + link + '>' + '下载' + '</a>' + ','; // return url; // }else { if (value != null) { var link = '${/request/@context_path}/atm_download.lsc?attachment_id='; var str = value.split(';;'); var url = ''; for (var i = 0; i < str.length; i++) { var temp = str[i].split('--'); if (!Leaf.isEmpty(temp[0])) { var file_name = temp[0].toUpperCase(); var file_suffix = temp[0].substr(temp[0].lastIndexOf('.') + 1).toUpperCase(); if (file_name.indexOf('.PDF') >= 0) { url = url + '<a href=javascript:view_pdf(\'' + temp[1] + '\')>' + temp[0] + '</a>' + ','; } else if (file_suffix == 'BMP' || file_suffix == 'JPG' || file_suffix == 'JPEG' || file_suffix == 'PNG' || file_suffix == 'GIF') { url = url + '<a href=' + link + temp[1] + ' ref="img">' + temp[0] + '</a>' + ','; } else { url = url + '<a href=' + link + temp[1] + '>' + temp[0] + '</a>' + ','; } } } return url; } //} } else if (name == 'received_amount') { link_function = '${/parameter/@layout_code}_received_amount_detail'; if (value) { return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.ds.id + '\',\'' + record.id + '\',\'' + name + '\',\'' + config_record.get('query_only') + '\');">' + Leaf.formatMoney(value) + '</a>'; } return ''; }else if(name == 'attach_file_name_new'){ link_function = '${/parameter/@layout_code}_prj500_cdd_attachtment_new_upload'; return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.ds.id + '\',\'' + record.id + '\',\'' + name + '\',\'' + config_record.get('query_only') + '\');">' + config_record.get('prompt') + '</a>'; } }; function wfl_prj501_grid_update(record_id, ds_id) { var record = $(ds_id).findById(record_id); var param = {}; param['bp_class'] = record.get('bp_class'); param['project_id'] = record.get('project_id'); param['function_code'] = 'PRJ502D'; param['function_usage'] = 'QUERY'; param['url_title'] = '租赁申请查询'; hls_doc_get_layout_code('${/parameter/@layout_code}_con_contract_get_layout_code_link_id', param, 'wfl_readonly_pageLink_projectQueryScreen_update_project', record.ds.id, '${/parameter/@layout_code}'); } window['${/parameter/@layout_code}_ast_con_cdd4_attachtment_upload'] = function (ds_id, id, name, query_only) { var record = $(ds_id).findById(id); // if (record.get('con_contract_id')) { var url; if (query_only == 'Y') { url = $('${/parameter/@layout_code}_prj500_cdd_downloadFile_id').getUrl() + '?table_name=CON_CONTRACT&header_id=' + record.get('contract_id'); } else { url = $('${/parameter/@layout_code}_prj500_cdd_uploadFile_id').getUrl() + '?table_name=CON_CONTRACT&header_id=' + record.get('contract_id'); } var win = new Leaf.Window({ url: url, title: 'gps附件上传', id: '${/parameter/@layout_code}${/parameter/@tree_code}_ast_con_cdd4_attachtment_upload_id', width: 850, height: 400 }); // win.on('close', function(){ // $(ds_id).query(); // }); // } else { // Leaf.showMessage('${l:HLS.PROMPT}', '请先保存!'); // } }; window['${/parameter/@layout_code}_open_lease_item_detail_window'] = function (id, name) { var record = window['${/parameter/@layout_code}_hls_link_render_record'][id + '---' + name]; var param = record.data; var contract_lease_item_id = record.get('contract_lease_item_id'); new Leaf.Window({ id: 'contract_lease_item_maintain_window', url: $('contract_lease_item_query_link').getUrl(), params: { contract_lease_item_id: contract_lease_item_id, winid: 'contract_lease_item_maintain_window' }, draggable: true, fullScreen: true }); }; window['${/parameter/@layout_code}_open_bp_detail_window'] = function (id, name) { var record = window['${/parameter/@layout_code}_hls_link_render_record'][id + '---' + name]; var param = {};//record.data; param['bp_id'] = record.get('bp_id'); param['cdd_list_id'] = record.get('cdd_list_id'); param['company_id'] = '${/session/company_id}'; param['document_id'] = record.get('bp_id'); param['document_category'] = 'BP'; param['bp_class'] = record.get('bp_class'); param['bp_category'] = record.get('bp_category'); if(record.get('bp_category') =='AGENT'){ param['function_code'] = 'HLS303_Q'; param['function_usage'] = 'QUERY'; }else{ param['function_code'] = 'CON505H'; param['function_usage'] = 'QUERY'; } param['bp_type'] = record.get('bp_type'); param['download'] = 'Y'; param['url_title'] = '${l:HLS212.BP_MASTER_QUERY}'; hls_doc_get_layout_code('${/parameter/@layout_code}_con_contract_get_layout_code_link_id', param, 'con505_hls_bp_master_query_link', record.ds.id, '${/parameter/@layout_code}'); }; // function open_contract_window(record_id, ds_id) { // var record = $(ds_id).findById(record_id); // var param = record.data; // var contract_lease_item_id = record.get('contract_lease_item_id'); // new Leaf.Window({ // id: 'contract_lease_item_maintain_window', // url: $('contract_lease_item_maintain_link').getUrl(), // params: { // contract_lease_item_id: contract_lease_item_id // }, // fullScreen: true // }); // // param['function_code'] = 'CON501D'; // // param['function_usage'] = 'MODIFY'; // // param['maintain_type'] = 'UPDATE'; // // param['url_title'] = '${l:CON301.CONTRACT_DETAIL}'; // // hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'con_contract_modify_link',ds_id); // } window['${/parameter/@layout_code}_prj500_cdd_attachtment_upload'] = function (ds_id, id, name, query_only) { var record = $(ds_id).findById(id); if (record.get('check_id')) { var url; //add by lijingjing 2019-11-15 if(record.get('attachment_tab_group')=='CREDIT_CHECK' && '${/parameter/@query_only}'=='Y'){ url = $('${/parameter/@layout_code}_prj500_cdd_downloadFile_id').getUrl() + '?table_name=PRJ_CDD_ITEM_CHECK&header_id=' + record.get('check_id'); }else if(record.get('attachment_tab_group')=='SIGN' && '${/parameter/@con_query_only}'=='N'){ url = $('${/parameter/@layout_code}_prj500_cdd_uploadFile_id').getUrl() + '?table_name=PRJ_CDD_ITEM_CHECK&header_id=' + record.get('check_id'); }else if(record.get('attachment_tab_group')=='SIGN' && '${/parameter/@con_query_only}'=='Y'){ url = $('${/parameter/@layout_code}_prj500_cdd_downloadFile_id').getUrl() + '?table_name=PRJ_CDD_ITEM_CHECK&header_id=' + record.get('check_id'); } else if (query_only == 'Y'||'${/parameter/@download}'=='Y') { url = $('${/parameter/@layout_code}_prj500_cdd_downloadFile_id').getUrl() + '?table_name=PRJ_CDD_ITEM_CHECK&header_id=' + record.get('check_id'); } else { url = $('${/parameter/@layout_code}_prj500_cdd_uploadFile_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: '${/parameter/@layout_code}${/parameter/@tree_code}_prj500_cdd_uploadFile_screen_id', width: 850, height: 400 }); win.on('close', function () { record.ds.query(); }); } else { Leaf.showMessage('${l:HLS.PROMPT}', '请先保存!'); } }; window['${/parameter/@layout_code}_prj500_cdd_attachtment_new_upload'] = function (ds_id, id, name, query_only) { var record = $(ds_id).findById(id); if (record.get('check_id')) { var url //add by lijingjing 2019-11-15 if (query_only == 'Y'||'${/parameter/@download}'=='Y') { url = $('${/parameter/@layout_code}_prj500_cdd_downloadFile_id').getUrl() + '?table_name=CON_CONTRACT&header_id=' + record.get('check_id'); } else { url = $('${/parameter/@layout_code}_prj500_cdd_uploadFile_id').getUrl() + '?table_name=CON_CONTRACT&header_id=' + record.get('check_id'); } var win = new Leaf.Window({ url: url, title: '${l:HLS.SUPPORTING_DOCUMENT}', id: '${/parameter/@layout_code}${/parameter/@tree_code}_prj500_cdd_uploadFile_screen_id', width: 850, height: 400 }); win.on('close', function () { record.ds.query(); }); } else { Leaf.showMessage('${l:HLS.PROMPT}', '请先保存!'); } }; window['${/parameter/@layout_code}_user_button2_layout_dynamic_click'] = function () { // var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract'); var record = $(ds_id).getCurrentRecord(); var content_id; //alert($('${/parameter/@layout_code}_con505_contract_content_id').getUrl); Leaf.request({ url: $('${/parameter/@layout_code}_con505_contract_content_id').getUrl(), para: { content_id: content_id, contract_id: record.get('contract_id'), contract_bp_id: record.get('content_bp_pk'), clause_usage: 'GH_WITHHOLD_AGREE' }, success: function (rsc) { // //alert(rsc.result.content_id); Leaf.request({ url: $('${/parameter/@layout_code}_creat_con_contract_content_link_id').getUrl(), para: { content_id: rsc.result.content_id, file_path: '${/parameter/@file_path}' }, success: function () { Leaf.request({ url: $('${/parameter/@layout_code}_file_copy_from_template_link_id').getUrl(), para: { contract_id: record.get('contract_id'), content_id: rsc.result.content_id, file_path: '${/parameter/@file_path}', batch_flag: 'Y' }, success: function () { var url = $('${/parameter/@layout_code}_con_batch_dl_link_id').getUrl() + '?contract_id=' + record.get('contract_id') + '&content_id=' + rsc.result.content_id; window.open(url, '_self'); unlock_current_window(); } }); unlock_current_window(); }, error: function () { unlock_current_window(); }, failure: function () { unlock_current_window(); }, scope: this }); }, error: function () { unlock_current_window(); }, failure: function () { unlock_current_window(); }, scope: this }); }; window['${/parameter/@layout_code}_user_button3_layout_dynamic_click'] = function () { var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract'); var record = $(ds_id).getCurrentRecord(); var direct_debit_bank_id = record.get('direct_debit_bank_id'); var dd_bank_account_name = record.get('dd_bank_account_name'); var dd_bank_account_num = record.get('dd_bank_account_num'); if (!Ext.isEmpty(record.get('contract_number'))) { new Leaf.Window({ id: '${/parameter/@layout_code}_con_contract_content_confirm_win_id', params: { action: 'VIEW', contract_id: record.get('contract_id'), company_id: record.get('company_id'), document_category: record.get('document_category'), business_type: record.get('business_type'), winid: '${/parameter/@layout_code}_con_contract_content_confirm_win_id' }, url: $('${/parameter/@layout_code}_con_contract_content_confirm_link_id').getUrl(), title: '合同查看', width: 1300, height: 550 }); } else { Leaf.showErrorMessage('错误', '请先点击保存生成合同编号!'); } }; var change_flag = 'N'; //工作流中合同文本生成按钮 //基本信息tab页 新增必输字段的校验 add by liukang 20160328 window['${/parameter/@layout_code}_print_layout_dynamic_click'] = function () { var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract'); var con_lease_item_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract_lease_item'); var record = $(ds_id).getCurrentRecord(); var con_lease_record = $(con_lease_item_id).getCurrentRecord(); var direct_debit_bank_id = record.get('direct_debit_bank_id'); var dd_bank_account_name = record.get('dd_bank_account_name'); var dd_bank_account_num = record.get('dd_bank_account_num'); var color_of_apprearance = con_lease_record.get('color_of_apprearance'); var item_frame_number = con_lease_record.get('item_frame_number'); var item_engine_number = con_lease_record.get('item_engine_number'); var license_number = con_lease_record.get('license_number'); /* if (Ext.isEmpty(direct_debit_bank_id)) { Leaf.showMessage('${l:HLS.PROMPT}', '请先填写数据并保存!'); } else */ if (!Ext.isEmpty(record.get('contract_number'))) { var win = new Leaf.Window({ id: '${/parameter/@layout_code}_con_contract_content_confirm_win_id', params: { contract_id: record.get('contract_id'), company_id: record.get('company_id'), document_category: record.get('document_category'), business_type: record.get('business_type'), winid: '${/parameter/@layout_code}_con_contract_content_confirm_win_id', change_flag: change_flag, contract_name: record.get('contract_name'), contract_number: record.get('contract_number') }, url: $('${/parameter/@layout_code}_con_contract_content_confirm_link_id').getUrl(), title: '合同文本生成', width: 1300, height: 550 }); //在关闭页面之后,刷新一下ds win.on('close', function () { if (ds_id) { $(ds_id).query(); } }); } else { Leaf.showErrorMessage('错误', '请先点击保存生成合同编号!'); } }; //add by zhuxianfei 20180207 function view_pdf(attachment_id) { Leaf.request({ url: '${/request/@context_path}/autocrud/fnd.fnd_atm_attachment/query', para: { attachment_id: attachment_id }, success: function (res) { var path = res.result.record.file_path; path = path.substr(path.indexOf('hls_attachment')); var tomcat_source = '${/parameter/@tomcat_source}'; var source_path = 'http://' + window.location.host + '/' + tomcat_source + '/' + path+'?type=pdf'; var oWin = window.open(source_path); }, scope: this }); } window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_query'] = function(ds, qpara, bp_seq) { var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract_bs_score'); if (ds.id == ds_id) { qpara.contract_id = '${/parameter/@contract_id}'; //$(ds_id).setQueryParameter('contract_id', '${/parameter/@contract_id}'); } }; window['${/parameter/@layout_code}_submit_approval_layout_dynamic_click'] = function () { var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract'); var record = $(ds_id).getCurrentRecord(); var contract_id=record.get('contract_id'); if (record.dirty == true) { Leaf.showMessage('${l:PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}'); return; } // if(record.get('contract_status')!='NEW'){ // $L.showErrorMessage("错误",'只能新建状态的合同才能发起签约!'); // return; // } if($(ds_id).validate()){ Leaf.showConfirm('${HLS.PROMPT}', '确认要提交工作流吗?', function() { window['${/parameter/@layout_code}_lock_layout_dynamic_window'](); Leaf.request({ url: $('con_approval_link_id').getUrl(), para: { contract_id:contract_id }, scope: this, success: function() { window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); $('${/parameter/@winid}').close(); }, failure: function() { window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); }, error: function() { window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); } }); }); } } if ('${/parameter/@source_type}' == 'WFL'){ zjwfl5110_ApproveChecker_add('zjwfl5110_submit', function (type) { var con_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract'); if (type == 'agree') { if ($(con_ds_id).validate()) { if($(con_ds_id).isModified()){ Leaf.showMessage('${HLS.PROMPT}','请先保存'); return false; } //提交先保存 return true; } else { return false; } } else return true; }); } Leaf.onReady(function(){ var ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'T_INVOICE_INFO', 'con_contract_bp'); if(ds_id){ $(ds_id).setQueryUrl('${/request/@context_path}/autocrud/prj.PRJ501N.con_contract_bp/query'); $(ds_id).setQueryParameter('contract_id','${/parameter/@contract_id}'); $(ds_id).query(); } }) ]]></script> <a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/> </a:view></a:screen> <?xml version="1.0" encoding="UTF-8"?><!-- $Author: zlf $Date: 2014-11-10 下午5:42:24 $Revision: 1.0 $Purpose: --><a:screen xmlns:a="http://www.leaf-framework.org/application" xmlns:s="leaf.plugin.script" customizationEnabled="true" dynamiccreateenabled="true" trace="true"> <a:init-procedure> <a:model-query fetchAll="true" model="cont.CON500.con_contract_get_guid_file_name" rootPath="file_name_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']; ]]> </s:server-script> <s:server-script import="con_print_path.js"><![CDATA[ set_parameter_file_path(); ]]> </s:server-script> </a:init-procedure> <a:view> <a:link id="wfl_readonly_pageLink_projectQueryScreen_update_project" url="${/request/@context_path}/modules/prj/PRJ501N/prj_project_maintain_readonly.lview"/> <a:link id="${/parameter/@layout_code}_con_contract_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/> <a:link id="${/parameter/@layout_code}_con_contract_content_confirm_link_id" url="${/request/@context_path}/modules/cont/CON501N/con_contract_content_confirm.lview"/> <a:link id="contract_lease_item_query_link" url="${/request/@context_path}/modules/cont/CON505/con_lease_item_query.lview"/> <a:link id="contract_history_window_link" url="${/request/@context_path}/modules/cont/CON501N/con_document_history_query.lview"/> <a:link id="con505_hls_bp_master_query_link" url="${/request/@context_path}/modules/cont/CON505/hls_bp_master_query.lview"/> <a:link id="${/parameter/@layout_code}_prj500_cdd_uploadFile_id" url="${/request/@context_path}/uploadFile.lview"/> <a:link id="${/parameter/@layout_code}_prj500_cdd_downloadFile_id" url="${/request/@context_path}/downloadFile.lview"/> <!--打印使用--> <a:link id="${/parameter/@layout_code}_con505_contract_content_id" model="cont.CON505.con505_contract_content" modelaction="update"/> <a:link id="${/parameter/@layout_code}_creat_con_contract_content_link_id" model="cont.CON505.con505_contract_content" modelaction="execute"/> <a:link id="${/parameter/@layout_code}_file_copy_from_template_link_id" url="${/request/@context_path}/modules/cont/CON505/file_copy_from_template.lsc"/> <a:link id="${/parameter/@layout_code}_con_batch_dl_link_id" url="${/request/@context_path}/modules/cont/CON505/con_atm_batch_dl.lsc"/> <a:link id="${/parameter/@layout_code}_con_cashflow_wirte_off_detail_link" url="${/request/@context_path}/modules/cont/CON302N/con_cashflow_wirte_off_detail.lview"/> <a:link id="con_approval_link_id" model="cont.CON505.contract_approval" modelaction="update"/> <link href="${/request/@context_path}/css/lightbox.css" rel="stylesheet" type="text/css"/> <script src="${/request/@context_path}/javascripts/lightbox.js" type="text/javascript"/> <script type="text/javascript"><![CDATA[ Ext.ux.Lightbox.register('a[ref=img]', true); function lock_current_window() { Leaf.Masker.mask(Ext.getBody(), '${l:HLS.EXECUTING}'); } function unlock_current_window() { Leaf.Masker.unmask(Ext.getBody()); } window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function () { var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract'); var contract_id = $(ds_id).getCurrentRecord().get('contract_id'); new Leaf.Window({ id: 'contract_history_window', url: $('contract_history_window_link').getUrl(), params: { contract_id: contract_id }, fullScreen: true }); }; // window['${/parameter/@layout_code}_dynamic_link_renderer'] = function(value, record, name, config_record) { // if (name == 'car_detail') { // return '<a href="javascript:open_contract_window(\'' + record.id + '\',\'' + record.ds.id + '\')">' + config_record.get('prompt') + '</a>'; // } // return value; // }; window['${/parameter/@layout_code}_received_amount_detail'] = function (ds_id, id, name, query_only) { var url = $('${/parameter/@layout_code}_con_cashflow_wirte_off_detail_link').getUrl(); var record = $(ds_id).findById(id); if (record) { var win = new Leaf.Window({ id: 'con_cashflow_wirte_off_detail_window', url: url, params: { cashflow_id: record.get('cashflow_id'), winid: 'con_cashflow_wirte_off_detail_window' }, draggable: true, fullScreen: true }); } }; window['${/parameter/@layout_code}_dynamic_link_renderer'] = function (value, record, name, config_record, bp_seq) { var link_function = ''; window['${/parameter/@layout_code}_hls_link_render_record'][record.id + '---' + name] = record; if (name == 'project_number') { return '<a href="javascript:wfl_prj501_grid_update(\'' + record.id + '\',\'' + record.ds.id + '\')">' + value + '</a>'; } else if (name == 'gps_attch') { link_function = '${/parameter/@layout_code}_ast_con_cdd4_attachtment_upload'; if (record.get('atm_num3') > 0) { return '<a style="color:red" href="javascript:window[\'' + link_function + '\'](\'' + record.ds.id + '\',\'' + record.id + '\',\'' + name + '\',\'' + config_record.get('query_only') + '\');">' + config_record.get('prompt') + '</a>'; } else { return '<a style="font-weight:bolder;font-size:1.2em" href="javascript:window[\'' + link_function + '\'](\'' + record.ds.id + '\',\'' + record.id + '\',\'' + name + '\',\'' + config_record.get('query_only') + '\');">' + config_record.get('prompt') + '</a>'; } } else if (name == 'description') { if (record.get('important_flag') == 'Y') { return '<font color="RED">' + value + '</font>'; } return value; } else if (name == 'bp_link' && record.get('bp_id') && record.get('record_id')) { link_function = '${/parameter/@layout_code}_open_bp_detail_window'; return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + name + '\');">' + config_record.get('prompt') + '</a>'; } else if (name == 'car_detail' && record.get('contract_lease_item_id')) { link_function = '${/parameter/@layout_code}_open_lease_item_detail_window'; return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + name + '\');">' + config_record.get('prompt') + '</a>'; } else if (name == 'attachment') { link_function = '${/parameter/@layout_code}_prj500_cdd_attachtment_upload'; return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.ds.id + '\',\'' + record.id + '\',\'' + name + '\',\'' + config_record.get('query_only') + '\');">' + config_record.get('prompt') + '</a>'; } else if (name == 'attach_file_name' || name == 'attach_file_name_print' || name=='attachment_new') { var content_type = record.get('content_type'); var content_id = record.get('content_id'); //电子合同 // if(content_type == '01'){ // var link = '${/request/@context_path}/modules/xxx/pdf_download.lsc?type=SIN&content_id=' + content_id; // var url = ''; // url = url + '<a href=' + link + '>' + '下载' + '</a>' + ','; // return url; // }else { if (value != null) { var link = '${/request/@context_path}/atm_download.lsc?attachment_id='; var str = value.split(';;'); var url = ''; for (var i = 0; i < str.length; i++) { var temp = str[i].split('--'); if (!Leaf.isEmpty(temp[0])) { var file_name = temp[0].toUpperCase(); var file_suffix = temp[0].substr(temp[0].lastIndexOf('.') + 1).toUpperCase(); if (file_name.indexOf('.PDF') >= 0) { url = url + '<a href=javascript:view_pdf(\'' + temp[1] + '\')>' + temp[0] + '</a>' + ','; } else if (file_suffix == 'BMP' || file_suffix == 'JPG' || file_suffix == 'JPEG' || file_suffix == 'PNG' || file_suffix == 'GIF') { url = url + '<a href=' + link + temp[1] + ' ref="img">' + temp[0] + '</a>' + ','; } else { url = url + '<a href=' + link + temp[1] + '>' + temp[0] + '</a>' + ','; } } } return url; } //} } else if (name == 'received_amount') { link_function = '${/parameter/@layout_code}_received_amount_detail'; if (value) { return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.ds.id + '\',\'' + record.id + '\',\'' + name + '\',\'' + config_record.get('query_only') + '\');">' + Leaf.formatMoney(value) + '</a>'; } return ''; }else if(name == 'attach_file_name_new'){ link_function = '${/parameter/@layout_code}_prj500_cdd_attachtment_new_upload'; return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.ds.id + '\',\'' + record.id + '\',\'' + name + '\',\'' + config_record.get('query_only') + '\');">' + config_record.get('prompt') + '</a>'; } }; function wfl_prj501_grid_update(record_id, ds_id) { var record = $(ds_id).findById(record_id); var param = {}; param['bp_class'] = record.get('bp_class'); param['project_id'] = record.get('project_id'); param['function_code'] = 'PRJ502D'; param['function_usage'] = 'QUERY'; param['url_title'] = '租赁申请查询'; hls_doc_get_layout_code('${/parameter/@layout_code}_con_contract_get_layout_code_link_id', param, 'wfl_readonly_pageLink_projectQueryScreen_update_project', record.ds.id, '${/parameter/@layout_code}'); } window['${/parameter/@layout_code}_ast_con_cdd4_attachtment_upload'] = function (ds_id, id, name, query_only) { var record = $(ds_id).findById(id); // if (record.get('con_contract_id')) { var url; if (query_only == 'Y') { url = $('${/parameter/@layout_code}_prj500_cdd_downloadFile_id').getUrl() + '?table_name=CON_CONTRACT&header_id=' + record.get('contract_id'); } else { url = $('${/parameter/@layout_code}_prj500_cdd_uploadFile_id').getUrl() + '?table_name=CON_CONTRACT&header_id=' + record.get('contract_id'); } var win = new Leaf.Window({ url: url, title: 'gps附件上传', id: '${/parameter/@layout_code}${/parameter/@tree_code}_ast_con_cdd4_attachtment_upload_id', width: 850, height: 400 }); // win.on('close', function(){ // $(ds_id).query(); // }); // } else { // Leaf.showMessage('${l:HLS.PROMPT}', '请先保存!'); // } }; window['${/parameter/@layout_code}_open_lease_item_detail_window'] = function (id, name) { var record = window['${/parameter/@layout_code}_hls_link_render_record'][id + '---' + name]; var param = record.data; var contract_lease_item_id = record.get('contract_lease_item_id'); new Leaf.Window({ id: 'contract_lease_item_maintain_window', url: $('contract_lease_item_query_link').getUrl(), params: { contract_lease_item_id: contract_lease_item_id, winid: 'contract_lease_item_maintain_window' }, draggable: true, fullScreen: true }); }; window['${/parameter/@layout_code}_open_bp_detail_window'] = function (id, name) { var record = window['${/parameter/@layout_code}_hls_link_render_record'][id + '---' + name]; var param = {};//record.data; param['bp_id'] = record.get('bp_id'); param['cdd_list_id'] = record.get('cdd_list_id'); param['company_id'] = '${/session/company_id}'; param['document_id'] = record.get('bp_id'); param['document_category'] = 'BP'; param['bp_class'] = record.get('bp_class'); param['bp_category'] = record.get('bp_category'); if(record.get('bp_category') =='AGENT'){ param['function_code'] = 'HLS303_Q'; param['function_usage'] = 'QUERY'; }else{ param['function_code'] = 'CON505H'; param['function_usage'] = 'QUERY'; } param['bp_type'] = record.get('bp_type'); param['download'] = 'Y'; param['url_title'] = '${l:HLS212.BP_MASTER_QUERY}'; hls_doc_get_layout_code('${/parameter/@layout_code}_con_contract_get_layout_code_link_id', param, 'con505_hls_bp_master_query_link', record.ds.id, '${/parameter/@layout_code}'); }; // function open_contract_window(record_id, ds_id) { // var record = $(ds_id).findById(record_id); // var param = record.data; // var contract_lease_item_id = record.get('contract_lease_item_id'); // new Leaf.Window({ // id: 'contract_lease_item_maintain_window', // url: $('contract_lease_item_maintain_link').getUrl(), // params: { // contract_lease_item_id: contract_lease_item_id // }, // fullScreen: true // }); // // param['function_code'] = 'CON501D'; // // param['function_usage'] = 'MODIFY'; // // param['maintain_type'] = 'UPDATE'; // // param['url_title'] = '${l:CON301.CONTRACT_DETAIL}'; // // hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'con_contract_modify_link',ds_id); // } window['${/parameter/@layout_code}_prj500_cdd_attachtment_upload'] = function (ds_id, id, name, query_only) { var record = $(ds_id).findById(id); if (record.get('check_id')) { var url; //add by lijingjing 2019-11-15 if(record.get('attachment_tab_group')=='CREDIT_CHECK' && '${/parameter/@query_only}'=='Y'){ url = $('${/parameter/@layout_code}_prj500_cdd_downloadFile_id').getUrl() + '?table_name=PRJ_CDD_ITEM_CHECK&header_id=' + record.get('check_id'); }else if(record.get('attachment_tab_group')=='SIGN' && '${/parameter/@con_query_only}'=='N'){ url = $('${/parameter/@layout_code}_prj500_cdd_uploadFile_id').getUrl() + '?table_name=PRJ_CDD_ITEM_CHECK&header_id=' + record.get('check_id'); }else if(record.get('attachment_tab_group')=='SIGN' && '${/parameter/@con_query_only}'=='Y'){ url = $('${/parameter/@layout_code}_prj500_cdd_downloadFile_id').getUrl() + '?table_name=PRJ_CDD_ITEM_CHECK&header_id=' + record.get('check_id'); } else if (query_only == 'Y'||'${/parameter/@download}'=='Y') { url = $('${/parameter/@layout_code}_prj500_cdd_downloadFile_id').getUrl() + '?table_name=PRJ_CDD_ITEM_CHECK&header_id=' + record.get('check_id'); } else { url = $('${/parameter/@layout_code}_prj500_cdd_uploadFile_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: '${/parameter/@layout_code}${/parameter/@tree_code}_prj500_cdd_uploadFile_screen_id', width: 850, height: 400 }); win.on('close', function () { record.ds.query(); }); } else { Leaf.showMessage('${l:HLS.PROMPT}', '请先保存!'); } }; window['${/parameter/@layout_code}_prj500_cdd_attachtment_new_upload'] = function (ds_id, id, name, query_only) { var record = $(ds_id).findById(id); if (record.get('check_id')) { var url //add by lijingjing 2019-11-15 if (query_only == 'Y'||'${/parameter/@download}'=='Y') { url = $('${/parameter/@layout_code}_prj500_cdd_downloadFile_id').getUrl() + '?table_name=CON_CONTRACT&header_id=' + record.get('check_id'); } else { url = $('${/parameter/@layout_code}_prj500_cdd_uploadFile_id').getUrl() + '?table_name=CON_CONTRACT&header_id=' + record.get('check_id'); } var win = new Leaf.Window({ url: url, title: '${l:HLS.SUPPORTING_DOCUMENT}', id: '${/parameter/@layout_code}${/parameter/@tree_code}_prj500_cdd_uploadFile_screen_id', width: 850, height: 400 }); win.on('close', function () { record.ds.query(); }); } else { Leaf.showMessage('${l:HLS.PROMPT}', '请先保存!'); } }; window['${/parameter/@layout_code}_user_button2_layout_dynamic_click'] = function () { // var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract'); var record = $(ds_id).getCurrentRecord(); var content_id; //alert($('${/parameter/@layout_code}_con505_contract_content_id').getUrl); Leaf.request({ url: $('${/parameter/@layout_code}_con505_contract_content_id').getUrl(), para: { content_id: content_id, contract_id: record.get('contract_id'), contract_bp_id: record.get('content_bp_pk'), clause_usage: 'GH_WITHHOLD_AGREE' }, success: function (rsc) { // //alert(rsc.result.content_id); Leaf.request({ url: $('${/parameter/@layout_code}_creat_con_contract_content_link_id').getUrl(), para: { content_id: rsc.result.content_id, file_path: '${/parameter/@file_path}' }, success: function () { Leaf.request({ url: $('${/parameter/@layout_code}_file_copy_from_template_link_id').getUrl(), para: { contract_id: record.get('contract_id'), content_id: rsc.result.content_id, file_path: '${/parameter/@file_path}', batch_flag: 'Y' }, success: function () { var url = $('${/parameter/@layout_code}_con_batch_dl_link_id').getUrl() + '?contract_id=' + record.get('contract_id') + '&content_id=' + rsc.result.content_id; window.open(url, '_self'); unlock_current_window(); } }); unlock_current_window(); }, error: function () { unlock_current_window(); }, failure: function () { unlock_current_window(); }, scope: this }); }, error: function () { unlock_current_window(); }, failure: function () { unlock_current_window(); }, scope: this }); }; window['${/parameter/@layout_code}_user_button3_layout_dynamic_click'] = function () { var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract'); var record = $(ds_id).getCurrentRecord(); var direct_debit_bank_id = record.get('direct_debit_bank_id'); var dd_bank_account_name = record.get('dd_bank_account_name'); var dd_bank_account_num = record.get('dd_bank_account_num'); if (!Ext.isEmpty(record.get('contract_number'))) { new Leaf.Window({ id: '${/parameter/@layout_code}_con_contract_content_confirm_win_id', params: { action: 'VIEW', contract_id: record.get('contract_id'), company_id: record.get('company_id'), document_category: record.get('document_category'), business_type: record.get('business_type'), winid: '${/parameter/@layout_code}_con_contract_content_confirm_win_id' }, url: $('${/parameter/@layout_code}_con_contract_content_confirm_link_id').getUrl(), title: '合同查看', width: 1300, height: 550 }); } else { Leaf.showErrorMessage('错误', '请先点击保存生成合同编号!'); } }; var change_flag = 'N'; //工作流中合同文本生成按钮 //基本信息tab页 新增必输字段的校验 add by liukang 20160328 window['${/parameter/@layout_code}_print_layout_dynamic_click'] = function () { var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract'); var con_lease_item_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract_lease_item'); var record = $(ds_id).getCurrentRecord(); var con_lease_record = $(con_lease_item_id).getCurrentRecord(); var direct_debit_bank_id = record.get('direct_debit_bank_id'); var dd_bank_account_name = record.get('dd_bank_account_name'); var dd_bank_account_num = record.get('dd_bank_account_num'); var color_of_apprearance = con_lease_record.get('color_of_apprearance'); var item_frame_number = con_lease_record.get('item_frame_number'); var item_engine_number = con_lease_record.get('item_engine_number'); var license_number = con_lease_record.get('license_number'); /* if (Ext.isEmpty(direct_debit_bank_id)) { Leaf.showMessage('${l:HLS.PROMPT}', '请先填写数据并保存!'); } else */ if (!Ext.isEmpty(record.get('contract_number'))) { var win = new Leaf.Window({ id: '${/parameter/@layout_code}_con_contract_content_confirm_win_id', params: { contract_id: record.get('contract_id'), company_id: record.get('company_id'), document_category: record.get('document_category'), business_type: record.get('business_type'), winid: '${/parameter/@layout_code}_con_contract_content_confirm_win_id', change_flag: change_flag, contract_name: record.get('contract_name'), contract_number: record.get('contract_number') }, url: $('${/parameter/@layout_code}_con_contract_content_confirm_link_id').getUrl(), title: '合同文本生成', width: 1300, height: 550 }); //在关闭页面之后,刷新一下ds win.on('close', function () { if (ds_id) { $(ds_id).query(); } }); } else { Leaf.showErrorMessage('错误', '请先点击保存生成合同编号!'); } }; //add by zhuxianfei 20180207 function view_pdf(attachment_id) { Leaf.request({ url: '${/request/@context_path}/autocrud/fnd.fnd_atm_attachment/query', para: { attachment_id: attachment_id }, success: function (res) { var path = res.result.record.file_path; path = path.substr(path.indexOf('hls_attachment')); var tomcat_source = '${/parameter/@tomcat_source}'; var source_path = 'http://' + window.location.host + '/' + tomcat_source + '/' + path+'?type=pdf'; var oWin = window.open(source_path); }, scope: this }); } window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_query'] = function(ds, qpara, bp_seq) { var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract_bs_score'); if (ds.id == ds_id) { qpara.contract_id = '${/parameter/@contract_id}'; //$(ds_id).setQueryParameter('contract_id', '${/parameter/@contract_id}'); } }; window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_form_add_and_load'] = function (ds, record, config_records, bp_seq) { var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract'); if (ds_id == ds.id && ds_id) { //业务类型回租时,默认只读“首付款抵扣”选项 if (record.get('business_type') == 'LEASEBACK'&&'${/parameter/@function_usage}'=='MODIFY') { record.getField('entrusted_amount').setRequired(true); }else if(record.get('business_type') == 'LEASE'){ document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_ENTRUSTED_AMOUNT_prompt').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_ENTRUSTED_AMOUNT').style.display = 'none'; } } }; // /*保存前调用,生成项目编号*/ // window['${/parameter/@layout_code}_on_layout_dynamic_before_submit'] = function (ds, record) { // var check_flag = true; // var prj_project_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project'); // var prj_record = $(prj_project_ds_id).getAt(0); // // var project_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project'); // // var lease_item_ds_id = '${/parameter/@layout_code}' + '_G_CAR_INFO_prj_project_lease_item_ds'; // var lease_item_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project_lease_item'); // var project_record = $(project_ds_id).getCurrentRecord(); // // var score_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_TENANT_SCORE_INFO', 'bp_tenant_rate_detail'); // var bp_tenant_detail_r = $(score_ds_id).getCurrentRecord(); // // if (bp_tenant_detail_r && ds.id == prj_project_ds_id) { // for (var key in bp_tenant_detail_r.data) { // if (key != 'bp_detail_id' && key != 'score_name' && key != 'bp_age' && key != 'project_id' && key != 'third_party_credibility' && key != 'third_party_credibility_n') { // if(!bp_tenant_detail_r.get(key)){ // Leaf.showInfoMessage("提示","承租人评分信息区域的所有字段,除\"第三方信用度\"外,其他都为必输字段,请填写!"); // bp_rate_flag = false; // break; // }else{ // bp_rate_flag = true; // } // } // } // } // if(!bp_rate_flag){ // return false; // } // if (prj_record.get('project_number')) { // return true; // } // window['${/parameter/@layout_code}_lock_layout_dynamic_window'](); // // return check_flag; // // }; window['${/parameter/@layout_code}_submit_approval_layout_dynamic_click'] = function () { var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract'); var record = $(ds_id).getCurrentRecord(); var contract_id=record.get('contract_id'); if (record.dirty == true) { Leaf.showMessage('${l:PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}'); return; } // if(record.get('contract_status')!='NEW'){ // $L.showErrorMessage("错误",'只能新建状态的合同才能发起签约!'); // return; // } if($(ds_id).validate()){ Leaf.showConfirm('${HLS.PROMPT}', '确认要提交工作流吗?', function() { window['${/parameter/@layout_code}_lock_layout_dynamic_window'](); Leaf.request({ url: $('con_approval_link_id').getUrl(), para: { contract_id:contract_id }, scope: this, success: function() { window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); $('${/parameter/@winid}').close(); }, failure: function() { window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); }, error: function() { window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); } }); }); } } if ('${/parameter/@source_type}' == 'WFL'){ zjwfl5110_ApproveChecker_add('zjwfl5110_submit', function (type) { var con_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract'); if (type == 'agree') { if ($(con_ds_id).validate()) { if($(con_ds_id).isModified()){ Leaf.showMessage('${HLS.PROMPT}','请先保存'); return false; } //提交先保存 return true; } else { return false; } } else return true; }); } Leaf.onReady(function(){ var ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'T_INVOICE_INFO', 'con_contract_bp'); if(ds_id){ $(ds_id).setQueryUrl('${/request/@context_path}/autocrud/prj.PRJ501N.con_contract_bp/query'); $(ds_id).setQueryParameter('contract_id','${/parameter/@contract_id}'); $(ds_id).query(); } }) ]]></script> <a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/> </a:view></a:screen>
\ No newline at end of file \ No newline at end of file
......
...@@ -155,7 +155,7 @@ ...@@ -155,7 +155,7 @@
<a:map from="document_type_desc" to="et_type_dis"/> <a:map from="document_type_desc" to="et_type_dis"/>
</a:mapping> </a:mapping>
</a:field> </a:field>
<a:field name="termination_date" datatype="date" required="true"/> <!-- <a:field name="termination_date" datatype="date" required="true"/>-->
<a:field name="overdue_status" checkedValue="Y" uncheckedValue="N"/> <a:field name="overdue_status" checkedValue="Y" uncheckedValue="N"/>
<a:field name="trial" checkedValue="Y" uncheckedValue="N"/> <a:field name="trial" checkedValue="Y" uncheckedValue="N"/>
<a:field name="lease_execution_date" datatype="date"/> <a:field name="lease_execution_date" datatype="date"/>
...@@ -173,7 +173,7 @@ ...@@ -173,7 +173,7 @@
<a:gridButton click="contractQueryScreen_reset" text="HLS.RESET"/> <a:gridButton click="contractQueryScreen_reset" text="HLS.RESET"/>
<a:gridButton click="con_gur_np_pint" text="合同文本打印" id="con_gur_np_pint_id"/> <a:gridButton click="con_gur_np_pint" text="合同文本打印" id="con_gur_np_pint_id"/>
</a:screenTopToolbar> </a:screenTopToolbar>
<a:form column="4" labelWidth="100" marginWidth="40" title="HLS.QUERY_TITLE"> <a:form column="3" labelWidth="100" marginWidth="40" title="HLS.QUERY_TITLE">
<a:textField name="change_req_number" bindTarget="contractQueryScreen_paraDs" prompt="变更申请编号"/> <a:textField name="change_req_number" bindTarget="contractQueryScreen_paraDs" prompt="变更申请编号"/>
<a:textField name="contract_number" bindTarget="contractQueryScreen_paraDs" prompt="合同编号"/> <a:textField name="contract_number" bindTarget="contractQueryScreen_paraDs" prompt="合同编号"/>
<a:textField name="contract_name" bindTarget="contractQueryScreen_paraDs" prompt="合同名称"/> <a:textField name="contract_name" bindTarget="contractQueryScreen_paraDs" prompt="合同名称"/>
...@@ -181,6 +181,8 @@ ...@@ -181,6 +181,8 @@
<!-- <a:lov name="bp_agent" bindTarget="contractQueryScreen_paraDs" prompt="代理店"/>--> <!-- <a:lov name="bp_agent" bindTarget="contractQueryScreen_paraDs" prompt="代理店"/>-->
<a:comboBox name="division_n" bindTarget="contractQueryScreen_paraDs" prompt="租赁物"/> <a:comboBox name="division_n" bindTarget="contractQueryScreen_paraDs" prompt="租赁物"/>
<a:textField name="req_employee_n" bindTarget="contractQueryScreen_paraDs" prompt="申请人"/> <a:textField name="req_employee_n" bindTarget="contractQueryScreen_paraDs" prompt="申请人"/>
<a:datePicker name="termination_date_from" bindTarget="contractQueryScreen_paraDs" prompt="提前结清日从"/>
<a:datePicker name="termination_date_to" bindTarget="contractQueryScreen_paraDs" prompt="提前结清日到"/>
<a:comboBox name="req_status_n" bindTarget="contractQueryScreen_paraDs" prompt="变更审批状态"/> <a:comboBox name="req_status_n" bindTarget="contractQueryScreen_paraDs" prompt="变更审批状态"/>
</a:form> </a:form>
<a:grid id="contractQueryScreen_mainDs_grid" bindTarget="contractQueryScreen_mainDs" marginHeight="230" marginWidth="40" navBar="true"> <a:grid id="contractQueryScreen_mainDs_grid" bindTarget="contractQueryScreen_mainDs" marginHeight="230" marginWidth="40" navBar="true">
...@@ -192,6 +194,7 @@ ...@@ -192,6 +194,7 @@
<a:column name="bp_agent" prompt="代理店" width="200" align="left"/> <a:column name="bp_agent" prompt="代理店" width="200" align="left"/>
<a:column name="division_n" prompt="租赁物" width="120" align="left"/> <a:column name="division_n" prompt="租赁物" width="120" align="left"/>
<a:column name="req_employee_n" prompt="申请人" width="80" align="right"/> <a:column name="req_employee_n" prompt="申请人" width="80" align="right"/>
<a:column name="termination_date" prompt="提前结清日" width="100" align="center"/>
<a:column name="req_status_n" prompt="变更审批状态" width="100" align="center"/> <a:column name="req_status_n" prompt="变更审批状态" width="100" align="center"/>
</a:columns> </a:columns>
</a:grid> </a:grid>
......
...@@ -36,7 +36,8 @@ ...@@ -36,7 +36,8 @@
<a:link id="csh_payment_req_prepayment_dk_detail_link_id" <a:link id="csh_payment_req_prepayment_dk_detail_link_id"
url="${/request/@context_path}/modules/csh/CSH501/csh_payment_req_prepayment_dk_detail.lview"/> url="${/request/@context_path}/modules/csh/CSH501/csh_payment_req_prepayment_dk_detail.lview"/>
<a:link id="csh_payment_req_ln_del_link" model="csh.CSH504.csh_payment_req_ln_del" modelaction="batch_update"/> <a:link id="csh_payment_req_ln_del_link" model="csh.CSH504.csh_payment_req_ln_del" modelaction="batch_update"/>
<a:link id="csh501d_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/> <a:link id="csh501d_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code"
modelaction="update"/>
<a:link id="update_csh_payment_hd_info_link" model="csh.CSH501.csh_payment_req_get_num" modelaction="execute"/> <a:link id="update_csh_payment_hd_info_link" model="csh.CSH501.csh_payment_req_get_num" modelaction="execute"/>
<a:link id="csh_payment_req_pay_win_link" <a:link id="csh_payment_req_pay_win_link"
url="${/request/@context_path}/modules/csh/CSH502/csh_payment_req_pay.lview"/> url="${/request/@context_path}/modules/csh/CSH502/csh_payment_req_pay.lview"/>
...@@ -77,8 +78,9 @@ ...@@ -77,8 +78,9 @@
url="${/request/@context_path}/modules/acp/ACP517/acp_invoice_entrance.lview"/> url="${/request/@context_path}/modules/acp/ACP517/acp_invoice_entrance.lview"/>
<a:link id="get_xml" model="cont.CON501.con_change_case_submit" modelaction="execute"/> <a:link id="get_xml" model="cont.CON501.con_change_case_submit" modelaction="execute"/>
<!-- 生成Excel文件--> <!-- 生成Excel文件-->
<a:link id="tre_loan_con_print_excel_link_id" url="${/request/@context_path}/modules/csh/CSH501/csh_payment_contract_export.lsc"/> <a:link id="tre_loan_con_print_excel_link_id"
url="${/request/@context_path}/modules/csh/CSH501/csh_payment_contract_export.lsc"/>
<script type="text/javascript"><![CDATA[ <script type="text/javascript"><![CDATA[
...@@ -90,29 +92,29 @@ ...@@ -90,29 +92,29 @@
var lnds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'csh_payment_req_ln'); var lnds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'csh_payment_req_ln');
// if ('${/parameter/@re_param}' == 'node1') { // if ('${/parameter/@re_param}' == 'node1') {
if (type == 'agree') { if (type == 'agree') {
var records = $(lnds_id).getAll(); var records = $(lnds_id).getAll();
for ( var i = 0;i< records.length;i++) { for (var i = 0; i < records.length; i++) {
if(records[i].get('billing_status_n')!='已开票' ||records[i].get('invoice_status_n')!='已确认'){ if (records[i].get('billing_status_n') != '已开票' || records[i].get('invoice_status_n') != '已确认') {
$L.showErrorMessage("提示",'请选择开票状态为已开票,发票状态为已确认的现金流!'); $L.showErrorMessage("提示", '请选择开票状态为已开票,发票状态为已确认的现金流!');
return false; return false;
} }
} }
return true; return true;
} else return true; } else return true;
// } // }
}); });
} }
//如果头id 不为空,就使用自在定义的ds进行查询 //如果头id 不为空,就使用自在定义的ds进行查询
Leaf.onReady(function(){ Leaf.onReady(function () {
var lnds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'csh_payment_req_ln'); var lnds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'csh_payment_req_ln');
var hdds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'csh_payment_req_hd'); var hdds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'csh_payment_req_hd');
var payment_req_id='${/parameter/@payment_req_id}'; var payment_req_id = '${/parameter/@payment_req_id}';
if(payment_req_id){ if (payment_req_id) {
$(lnds_id).setQueryUrl('${/request/@context_path}/autocrud/csh.CSH501.csh_payment_req_ln_query_after_save/query'); $(lnds_id).setQueryUrl('${/request/@context_path}/autocrud/csh.CSH501.csh_payment_req_ln_query_after_save/query');
$(lnds_id).setQueryParameter("payment_req_id",payment_req_id); $(lnds_id).setQueryParameter("payment_req_id", payment_req_id);
$(lnds_id).query(); $(lnds_id).query();
$(hdds_id).setQueryParameter("payment_req_id",payment_req_id); $(hdds_id).setQueryParameter("payment_req_id", payment_req_id);
$(hdds_id).query(); $(hdds_id).query();
} }
...@@ -160,9 +162,9 @@ ...@@ -160,9 +162,9 @@
} }
} }
if (name == 'req_date') { if (name == 'req_date') {
/* for (var i = 0; i < lineRecords.length; i++) { /* for (var i = 0; i < lineRecords.length; i++) {
lineRecords[i].set('apply_pay_date', value); lineRecords[i].set('apply_pay_date', value);
}*/ }*/
} else if (name == 'bp_id' || name == 'bp_id_n' || name == 'bp_bank_account_id' || name == 'bp_bank_account_id_n' || name == 'bp_bank_account_num' || name == 'bp_bank_account_name' || name == 'bp_name' || name == 'bp_category' || name == 'bp_category_desc') { } else if (name == 'bp_id' || name == 'bp_id_n' || name == 'bp_bank_account_id' || name == 'bp_bank_account_id_n' || name == 'bp_bank_account_num' || name == 'bp_bank_account_name' || name == 'bp_name' || name == 'bp_category' || name == 'bp_category_desc') {
for (var j = 0; j < lineRecords.length; j++) { for (var j = 0; j < lineRecords.length; j++) {
var lineRecord = lineRecords[j]; var lineRecord = lineRecords[j];
...@@ -206,16 +208,45 @@ ...@@ -206,16 +208,45 @@
hdrecord.set('currency_code', currency_code); hdrecord.set('currency_code', currency_code);
hdrecord.set('currency_name', currency_name); hdrecord.set('currency_name', currency_name);
record.set('act_amount', minus(record.get('amount'), record.get('sum_ddct_amount') || 0)); record.set('act_amount', minus(record.get('amount'), record.get('sum_ddct_amount') || 0));
} else if(name=='amount_vender'){ } else if (name == 'amount_vender') {
var due_amount=record.get('due_amount'); var due_amount = record.get('due_amount');
var other_payment2=record.get('other_payment2'); var other_payment2 = record.get('other_payment2');
var amount_agent=minus(minus(due_amount,other_payment2),value); var amount_agent = minus(minus(due_amount, other_payment2), value);
if(amount_agent<0){ if (amount_agent < 0) {
$L.showErrorMessage("提示",'委托付款金额和首付款抵充金额不能大于应付金额!'); $L.showErrorMessage("提示", '委托付款金额和首付款抵充金额不能大于应付金额!');
return; return;
} }
record.set('amount_agent',amount_agent); record.set('amount_agent', amount_agent);
} else if (name == 'act_amount') { }
else if (name == 'repur_con_ddct_amt') {
var repur_con_amt = record.get('repur_con_amt');
var other_payment2 = record.get('other_payment2');
var amount_vender=record.get('amount_vender');
if (value < 0 || value == NaN || value == undefined) {
Leaf.showMessage('${l:HLS.PROMPT}', '回购租金抵冲金额应大于等于0!');
setTimeout(function () {
record.set('repur_con_ddct_amt', 0);
}, 5);
return;
}
if (value > repur_con_amt) {
$L.showErrorMessage("提示", '回购租金抵冲金额不能大于回购租金金额!');
setTimeout(function () {
record.set('repur_con_ddct_amt', 0);
}, 5);
return;
}
var amount_agent = minus(minus(minus(due_amount, other_payment2), amount_vender),value);
if (amount_agent < 0) {
$L.showErrorMessage("提示", '委托付款金额,首付款抵充金额和回购租金抵冲金额不能大于应付金额!');
setTimeout(function () {
record.set('repur_con_ddct_amt', 0);
}, 5);
return;
}
record.set('amount_agent', amount_agent);
}
else if (name == 'act_amount') {
hdrecord.set('sum_act_amount', plus(minus(hdrecord.get('sum_act_amount') || 0, old_value || 0), value || 0)); hdrecord.set('sum_act_amount', plus(minus(hdrecord.get('sum_act_amount') || 0, old_value || 0), value || 0));
} }
if (lineRecords.length == 1) { if (lineRecords.length == 1) {
...@@ -293,8 +324,8 @@ ...@@ -293,8 +324,8 @@
if (!record.get('apply_pay_date')) { if (!record.get('apply_pay_date')) {
//添加时间为预定的每月20号 //添加时间为预定的每月20号
var pre_date= [new Date().getFullYear(),new Date().getMonth()+1,20].join('-'); var pre_date = [new Date().getFullYear(), new Date().getMonth() + 1, 20].join('-');
record.set('apply_pay_date',pre_date); record.set('apply_pay_date', pre_date);
} }
$(lnds_id).create(Ext.apply({}, record.data)); $(lnds_id).create(Ext.apply({}, record.data));
} }
...@@ -344,31 +375,31 @@ ...@@ -344,31 +375,31 @@
// // } // // }
// //
// } else { // } else {
Leaf.request({ Leaf.request({
url: '${/request/@context_path}/autocrud/csh.CSH501.upd_csh_payment_sub_flag/execute', url: '${/request/@context_path}/autocrud/csh.CSH501.upd_csh_payment_sub_flag/execute',
para: { para: {
payment_req_id: payment_req_id, payment_req_id: payment_req_id,
_status: 'execute' _status: 'execute'
}, },
success: function (res) { success: function (res) {
Leaf.SideBar.enable = true; Leaf.SideBar.enable = true;
Leaf.SideBar.show({ Leaf.SideBar.show({
msg: '${l:HLS.SUBMIT_SUCCESS}', msg: '${l:HLS.SUBMIT_SUCCESS}',
duration: 2000 duration: 2000
}); });
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window'](); window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
$('${/parameter/@winid}').close(); $('${/parameter/@winid}').close();
}, },
failure: function () { failure: function () {
Leaf.SideBar.enable = true; Leaf.SideBar.enable = true;
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window'](); window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
}, },
error: function () { error: function () {
Leaf.SideBar.enable = true; Leaf.SideBar.enable = true;
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window'](); window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
}, },
scope: this scope: this
}); });
// } // }
}, function cancelFun() { }, function cancelFun() {
Leaf.SideBar.enable = true; Leaf.SideBar.enable = true;
...@@ -438,6 +469,7 @@ ...@@ -438,6 +469,7 @@
scope: this scope: this
}); });
} }
//打印 //打印
function csh501_print() { function csh501_print() {
...@@ -449,11 +481,11 @@ ...@@ -449,11 +481,11 @@
window.open(href = url_l, target = "_self"); window.open(href = url_l, target = "_self");
// var template_name = 'payment_apply_content.xml'; // var template_name = 'payment_apply_content.xml';
// var file_name = '付款请求书打印.doc'; // var file_name = '付款请求书打印.doc';
// var url = $('cont811_con_sale_contract_info_print_link').getUrl() + '?template_name=' + template_name + '&payment_req_id=' + hd_record.get('payment_req_id') + '&file_name=' + encodeURI(file_name); // var url = $('cont811_con_sale_contract_info_print_link').getUrl() + '?template_name=' + template_name + '&payment_req_id=' + hd_record.get('payment_req_id') + '&file_name=' + encodeURI(file_name);
// window.location.href =url; // window.location.href =url;
} }
...@@ -482,7 +514,7 @@ ...@@ -482,7 +514,7 @@
ln_records = ln_ds.getAll(); ln_records = ln_ds.getAll();
if (ln_records.length > 0 && !ln_records[0].get('payment_req_ln_id')) { if (ln_records.length > 0 && !ln_records[0].get('payment_req_ln_id')) {
Leaf.showMessage('${HLS.PROMPT}', '请先保存!'); Leaf.showMessage('${HLS.PROMPT}', '请先保存!');
}else{ } else {
csh501_print(); csh501_print();
} }
/*else { /*else {
...@@ -531,8 +563,8 @@ ...@@ -531,8 +563,8 @@
//发票确认 //发票确认
window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function () { window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function () {
var lnds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'csh_payment_req_ln'); var lnds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'csh_payment_req_ln');
var datas=$(lnds_id).getAt(0); var datas = $(lnds_id).getAt(0);
var contract_id =datas.get('contract_id') ; var contract_id = datas.get('contract_id');
var param = {}; var param = {};
param['function_code'] = 'ACR_INVOICE_QUERY_N'; param['function_code'] = 'ACR_INVOICE_QUERY_N';
param['function_usage'] = 'QUERY'; param['function_usage'] = 'QUERY';
...@@ -668,7 +700,7 @@ ...@@ -668,7 +700,7 @@
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window'](); window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
return; return;
} }
if(line_records.length>1){ if (line_records.length > 1) {
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window'](); window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
Leaf.showMessage('${l:PROMPT}', '一次支付只支持同一合同!'); Leaf.showMessage('${l:PROMPT}', '一次支付只支持同一合同!');
return; return;
...@@ -696,8 +728,8 @@ ...@@ -696,8 +728,8 @@
//支付金额为应付代理店 //支付金额为应付代理店
var this_pay_amount=plus(line_record.get('residual_agent_amount'),line_record.get('residual_vender_amount')); var this_pay_amount = plus(line_record.get('residual_agent_amount'), line_record.get('residual_vender_amount'));
if (this_pay_amount <=0) { if (this_pay_amount <= 0) {
Leaf.showMessage('${l:PROMPT}', '本次支付金额为空!'); Leaf.showMessage('${l:PROMPT}', '本次支付金额为空!');
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window'](); window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
return; return;
...@@ -712,20 +744,20 @@ ...@@ -712,20 +744,20 @@
bp_bank_account_code = line_record.get('bp_bank_account_code'); bp_bank_account_code = line_record.get('bp_bank_account_code');
bp_bank_account_num = line_record.get('bp_bank_account_num'); bp_bank_account_num = line_record.get('bp_bank_account_num');
var vender_bank_account_num=line_record.get('vender_bank_account_number'); var vender_bank_account_num = line_record.get('vender_bank_account_number');
bp_bank_account_name = line_record.get('bp_bank_account_name'); bp_bank_account_name = line_record.get('bp_bank_account_name');
bp_bank_account_code_n = line_record.get('bp_bank_account_code_n'); bp_bank_account_code_n = line_record.get('bp_bank_account_code_n');
bp_bank_account_id = line_record.get('bp_bank_account_id'); bp_bank_account_id = line_record.get('bp_bank_account_id');
contract_id = line_record.get('contract_id'); contract_id = line_record.get('contract_id');
line_record.set('loan_date',hd_record.get('loan_date')); line_record.set('loan_date', hd_record.get('loan_date'));
line_record.set('hdds_id',hdds_id); line_record.set('hdds_id', hdds_id);
line_record.set('lnds_id',lnds_id); line_record.set('lnds_id', lnds_id);
line_record.set('vender_bank_account_num',vender_bank_account_num); line_record.set('vender_bank_account_num', vender_bank_account_num);
line_record.set('winid','csh_payment_req_pay_win'); line_record.set('winid', 'csh_payment_req_pay_win');
var win = new Leaf.Window({ var win = new Leaf.Window({
id: 'csh_payment_req_pay_win', id: 'csh_payment_req_pay_win',
url: $('csh_payment_req_pay_win_link').getUrl(), url: $('csh_payment_req_pay_win_link').getUrl(),
params:line_record.data, params: line_record.data,
/* { /* {
payment_req_id: payment_req_id, payment_req_id: payment_req_id,
winid: 'csh_payment_req_pay_win', winid: 'csh_payment_req_pay_win',
...@@ -751,85 +783,86 @@ ...@@ -751,85 +783,86 @@
}; };
//保存前调用 //保存前调用
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_before_submit'] = function(ds, record) { window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_before_submit'] = function (ds, record) {
window['${/parameter/@layout_code}_lock_layout_dynamic_window'](); window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
var check_flag = false; var check_flag = false;
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'csh_payment_req_hd'); var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'csh_payment_req_hd');
var ds_line_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'csh_payment_req_ln'); var ds_line_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'csh_payment_req_ln');
if($(ds_line_id).data.length<=0){ if ($(ds_line_id).data.length <= 0) {
$L.showErrorMessage("错误",'无付款记录,不可提交审批!'); $L.showErrorMessage("错误", '无付款记录,不可提交审批!');
window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
return; return;
} }
console.log('${/parameter/@division}'); console.log('${/parameter/@division}');
var total_amount_agent=0; var total_amount_agent = 0;
var total_amount_vender=0; var total_amount_vender = 0;
var total_apply_amount=0; var total_apply_amount = 0;
//检验输入的数据是否符合要求 //检验输入的数据是否符合要求
var check_due_amount_flag=true; var check_due_amount_flag = true;
var line_datas=$(ds_line_id).data; var line_datas = $(ds_line_id).data;
var head_record=$(ds_id).getAt(0); var head_record = $(ds_id).getAt(0);
//高空作业车个数 //高空作业车个数
var gk_contract_num=0; var gk_contract_num = 0;
for(var i=0;i<line_datas.length;i++){ for (var i = 0; i < line_datas.length; i++) {
var line_data=line_datas[i]; var line_data = line_datas[i];
//应付我司金额 //应付我司金额
var amount_agent=line_data.get('amount_agent'); var amount_agent = line_data.get('amount_agent');
var amount_vender= line_data.get('amount_vender'); var amount_vender = line_data.get('amount_vender');
var due_amount= line_data.get('due_amount'); var due_amount = line_data.get('due_amount');
var bp_bank_account_id=line_data.get('bp_bank_account_id'); var bp_bank_account_id = line_data.get('bp_bank_account_id');
var vender_bank_account_id=line_data.get('vender_bank_account_id'); var vender_bank_account_id = line_data.get('vender_bank_account_id');
//首付款抵充金额 //首付款抵充金额
var other_payment2=line_data.get('other_payment2'); var other_payment2 = line_data.get('other_payment2');
if(amount_agent<0||amount_vender<0){ var repur_con_ddct_amt=line_data.get('repur_con_ddct_amt');
$L.showErrorMessage("提示",'应付我司金额和首付款抵充金额不能为负数!'); if (amount_agent < 0 || amount_vender < 0) {
$L.showErrorMessage("提示", '应付我司金额和首付款抵冲金额不能为负数!');
window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
return false; return false;
} }
//买断机合同 个数 //买断机合同 个数
if(amount_vender==0 || '${/parameter/@division}'==30){ if (amount_vender == 0 || '${/parameter/@division}' == 30) {
gk_contract_num=gk_contract_num+1; gk_contract_num = gk_contract_num + 1;
} }
//根据金额判断代理店和厂商不能为空 //根据金额判断代理店和厂商不能为空
if(amount_agent>0 &&!bp_bank_account_id){ if (amount_agent > 0 && !bp_bank_account_id) {
$L.showErrorMessage("提示",'请选择代理店账号信息!'); $L.showErrorMessage("提示", '请选择代理店账号信息!');
window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
return false; return false;
} }
if(amount_vender>0 &&!vender_bank_account_id){ if (amount_vender > 0 && !vender_bank_account_id) {
$L.showErrorMessage("提示",'请选择委托付款金额不为0的厂商账号信息!'); $L.showErrorMessage("提示", '请选择委托付款金额不为0的厂商账号信息!');
window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
return false; return false;
} }
if(plus(plus(amount_agent,amount_vender),other_payment2)!=due_amount){ if (plus(plus(plus(amount_agent, amount_vender), other_payment2),repur_con_ddct_amt) != due_amount) {
$L.showErrorMessage("提示",'应付我司金额,委托付款金额和首付款抵充金额之后应等于应付金额!'); $L.showErrorMessage("提示", '应付我司金额,委托付款金额,首付款抵冲金额和回购租金抵冲金额之和应等于应付金额!');
window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
return false; return false;
} }
//本次申请金额等于委托加我司 //本次申请金额等于委托加我司
var this_apply_amount=plus(amount_agent,amount_vender); var this_apply_amount = plus(amount_agent, amount_vender);
total_apply_amount=plus(total_apply_amount,this_apply_amount); total_apply_amount = plus(total_apply_amount, this_apply_amount);
line_data.set('amount',this_apply_amount); line_data.set('amount', this_apply_amount);
total_amount_agent=plus(total_amount_agent,amount_agent); total_amount_agent = plus(total_amount_agent, amount_agent);
total_amount_vender=plus(total_amount_vender,amount_vender); total_amount_vender = plus(total_amount_vender, amount_vender);
} }
if(gk_contract_num<line_datas.length&&gk_contract_num!=0){ if (gk_contract_num < line_datas.length && gk_contract_num != 0) {
$L.showErrorMessage("提示",'买断机合同(即厂商的付款金额为0)不可与其他正常合同同时进行付款申请支付'); $L.showErrorMessage("提示", '买断机合同(即厂商的付款金额为0)不可与其他正常合同同时进行付款申请支付');
return false; return false;
} }
//给头表赋值 //给头表赋值
$(ds_id).getAt(0).set('amount_agent_total',total_amount_agent); $(ds_id).getAt(0).set('amount_agent_total', total_amount_agent);
$(ds_id).getAt(0).set('amount_vender_total',total_amount_vender); $(ds_id).getAt(0).set('amount_vender_total', total_amount_vender);
$(ds_id).getAt(0).set('amount',total_apply_amount); $(ds_id).getAt(0).set('amount', total_apply_amount);
$(ds_id).getAt(0).set('company_id','${/session/@company_id}'); $(ds_id).getAt(0).set('company_id', '${/session/@company_id}');
$(ds_id).getAt(0).set('transaction_category','BUSINESS'); $(ds_id).getAt(0).set('transaction_category', 'BUSINESS');
$(ds_id).getAt(0).set('submitted_flag','N'); $(ds_id).getAt(0).set('submitted_flag', 'N');
$(ds_id).getAt(0).set('printed_flag','N'); $(ds_id).getAt(0).set('printed_flag', 'N');
$(ds_id).getAt(0).set('document_category','PAYMENT_REQ'); $(ds_id).getAt(0).set('document_category', 'PAYMENT_REQ');
//确认保存 //确认保存
var hd_record = $(ds_id).getCurrentRecord(); var hd_record = $(ds_id).getCurrentRecord();
var payment_req_id = hd_record.get('payment_req_id'); var payment_req_id = hd_record.get('payment_req_id');
...@@ -866,7 +899,7 @@ ...@@ -866,7 +899,7 @@
} }
return check_flag||false; return check_flag || false;
}; };
//调用合同后督 //调用合同后督
...@@ -1035,12 +1068,13 @@ ...@@ -1035,12 +1068,13 @@
Leaf.request({ Leaf.request({
url: $('update_csh_payment_hd_info_link').getUrl(), url: $('update_csh_payment_hd_info_link').getUrl(),
para: { para: {
payment_req_id:payment_req_id payment_req_id: payment_req_id
}, },
success: function () { success: function () {
Leaf.Masker.unmask(Ext.getBody()); Leaf.Masker.unmask(Ext.getBody());
$(hdds_id).setQueryParameter('payment_req_id', payment_req_id); $(hdds_id).setQueryParameter('payment_req_id', payment_req_id);
$(hdds_id).query(); }, $(hdds_id).query();
},
failure: function () { failure: function () {
Leaf.Masker.unmask(detail_mask); Leaf.Masker.unmask(detail_mask);
}, },
...@@ -1097,7 +1131,7 @@ ...@@ -1097,7 +1131,7 @@
var path = res.result.record.file_path; var path = res.result.record.file_path;
path = path.substr(path.indexOf('hls_attachment')); path = path.substr(path.indexOf('hls_attachment'));
var tomcat_source = '${/parameter/@tomcat_source}'; var tomcat_source = '${/parameter/@tomcat_source}';
var source_path = 'http://' + window.location.host + '/' + tomcat_source + '/' + path+'?type=pdf'; var source_path = 'http://' + window.location.host + '/' + tomcat_source + '/' + path + '?type=pdf';
var oWin = window.open(source_path); var oWin = window.open(source_path);
}, },
scope: this scope: this
...@@ -1262,6 +1296,7 @@ ...@@ -1262,6 +1296,7 @@
qpara['payment_bp_id'] = '${/parameter/@payment_bp_id}'; qpara['payment_bp_id'] = '${/parameter/@payment_bp_id}';
} }
// function on_csh_payment_req_temp_ln_ds_update( dataSet, record, name, value,oldvalue) { // function on_csh_payment_req_temp_ln_ds_update( dataSet, record, name, value,oldvalue) {
// if(name=='amount_vender'&&value){ // if(name=='amount_vender'&&value){
// var due_amount=record.get('due_amount'); // var due_amount=record.get('due_amount');
...@@ -1283,7 +1318,7 @@ ...@@ -1283,7 +1318,7 @@
sum = plus(sum, n); sum = plus(sum, n);
} }
} }
var total = (typeof(sum) == 'undefined' ? '' : parseFloat(sum)); var total = (typeof (sum) == 'undefined' ? '' : parseFloat(sum));
return '<font>' + Leaf.formatMoney(total) + '</font>'; return '<font>' + Leaf.formatMoney(total) + '</font>';
} }
...@@ -1323,14 +1358,13 @@ ...@@ -1323,14 +1358,13 @@
// }; // };
//工作流中隐藏按钮 //工作流中隐藏按钮
Leaf.onReady(function() { Leaf.onReady(function () {
if ('${/parameter/@source_type}' == 'WFL') { if ('${/parameter/@source_type}' == 'WFL') {
document.getElementById('${/parameter/@layout_code}_save').style.display = "none"; document.getElementById('${/parameter/@layout_code}_save').style.display = "none";
} }
}); });
window['${/parameter/@layout_code}_upload_layout_dynamic_click'] = function () { window['${/parameter/@layout_code}_upload_layout_dynamic_click'] = function () {
var hdds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'csh_payment_req_hd'); var hdds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'csh_payment_req_hd');
var hd_record = $(hdds_id).getCurrentRecord(); var hd_record = $(hdds_id).getCurrentRecord();
...@@ -1356,16 +1390,17 @@ ...@@ -1356,16 +1390,17 @@
}; };
]]></script> ]]></script>
<a:link id="${/parameter/@layout_code}csh511_csh_payment_req_hd_query" model="csh.CSH511.csh_payment_req_hd" modelaction="query" /> <a:link id="${/parameter/@layout_code}csh511_csh_payment_req_hd_query" model="csh.CSH511.csh_payment_req_hd"
modelaction="query"/>
<a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/> <a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
<a:dataSets> <a:dataSets>
<a:dataSet id="csh_payment_req_temp_ln_ds" autoQuery="true" fetchAll="true" <a:dataSet id="csh_payment_req_temp_ln_ds" autoQuery="true" fetchAll="true"
model="csh.CSH501.csh_payment_req_ln_query"> model="csh.CSH501.csh_payment_req_ln_query">
<a:events> <a:events>
<a:event name="load" handler="on_csh_payment_req_temp_ln_ds_load"/> <a:event name="load" handler="on_csh_payment_req_temp_ln_ds_load"/>
<a:event name="query" handler="on_csh_payment_req_temp_ln_ds_query"/> <a:event name="query" handler="on_csh_payment_req_temp_ln_ds_query"/>
</a:events> </a:events>
</a:dataSet> </a:dataSet>
</a:dataSets> </a:dataSets>
</a:view> </a:view>
</a:screen> </a:screen>
...@@ -822,7 +822,9 @@ ...@@ -822,7 +822,9 @@
<!--对方账户账号--> <!--对方账户账号-->
<!-- <a:lov name="bp_bank_account_num" bindTarget="csh_transaction_receipt_maintain_query_ds"--> <!-- <a:lov name="bp_bank_account_num" bindTarget="csh_transaction_receipt_maintain_query_ds"-->
<!-- prompt="CSH510.CSH_TRANSACTION.YOUR_ACCOUNT_USERNAME"/>--> <!-- prompt="CSH510.CSH_TRANSACTION.YOUR_ACCOUNT_USERNAME"/>-->
<a:textField style="display:none"/> <!-- <a:textField style="display:none"/>-->
<a:comboBox name="receipt_type_des" bindTarget="csh_transaction_receipt_maintain_query_ds"
prompt="收款类型"/>
<a:lov name="bp_name" bindTarget="csh_transaction_receipt_maintain_query_ds" <a:lov name="bp_name" bindTarget="csh_transaction_receipt_maintain_query_ds"
prompt="CSH510.CSH_TRANSACTION.BUSINESS_PARTNER"/> prompt="CSH510.CSH_TRANSACTION.BUSINESS_PARTNER"/>
<a:comboBox name="confirmed_flag_desc" bindTarget="csh_transaction_receipt_maintain_query_ds" <a:comboBox name="confirmed_flag_desc" bindTarget="csh_transaction_receipt_maintain_query_ds"
...@@ -850,6 +852,8 @@ ...@@ -850,6 +852,8 @@
<a:column name="transaction_amount" align="right" prompt="CSH510.CSH_TRANSACTION.RECEIPT_AMOUNT" <a:column name="transaction_amount" align="right" prompt="CSH510.CSH_TRANSACTION.RECEIPT_AMOUNT"
width="100" renderer="Leaf.formatMoney"/> width="100" renderer="Leaf.formatMoney"/>
<a:column name="transaction_date" renderer="Leaf.formatDate" align="center"/> <a:column name="transaction_date" renderer="Leaf.formatDate" align="center"/>
<a:column name="receipt_type_n" prompt="收款类型"
align="center"/>
<a:column name="returned_amount" prompt="CSH510.CSH_TRANSACTION.RETURN_AMOUNT" align="right" <a:column name="returned_amount" prompt="CSH510.CSH_TRANSACTION.RETURN_AMOUNT" align="right"
renderer="Leaf.formatMoney"/> renderer="Leaf.formatMoney"/>
<a:column name="use_money_amount" prompt="CSH510.CSH_TRANSACTION.USEFUL_AMOUNT" align="right" <a:column name="use_money_amount" prompt="CSH510.CSH_TRANSACTION.USEFUL_AMOUNT" align="right"
......
...@@ -30,13 +30,17 @@ ...@@ -30,13 +30,17 @@
/* var record = $(ds_id).findById(record_id); /* var record = $(ds_id).findById(record_id);
var mortgage_id = record.get('mortgage_id');*/ var mortgage_id = record.get('mortgage_id');*/
var header_id = record.get('transaction_id');
if(record.get('transaction_type') == 'ADVANCE_RECEIPT'){
header_id = record.get('source_csh_trx_id');
}
var win = new Leaf.Window({ var win = new Leaf.Window({
id: 'hn2050_upload_win', id: 'hn2050_upload_win',
url: $('hn2050_upload_win_link').getUrl(), url: $('hn2050_upload_win_link').getUrl(),
params: { params: {
winid: 'hn2050_upload_win', winid: 'hn2050_upload_win',
table_name: 'CSH_TRANSACTION', table_name: 'CSH_TRANSACTION',
header_id: record.get('transaction_id') header_id: header_id
}, },
width: 900, width: 900,
height: 400 height: 400
......
...@@ -494,7 +494,7 @@ ...@@ -494,7 +494,7 @@
var record = ds.getCurrentRecord(); var record = ds.getCurrentRecord();
// var header_id = '${/parameter/@transaction_id}'; // var header_id = '${/parameter/@transaction_id}';
var header_id = record.get('transaction_id'); var header_id = record.get('transaction_id');
if(record.get('transaction_type') == 'ADVANCE_RECEIPT'){ if(record.get('transaction_type') == 'ADVANCE_RECEIPT'||record.get('transaction_type') == 'DEPOSIT'){
header_id = record.get('source_csh_trx_id'); header_id = record.get('source_csh_trx_id');
} }
var url = $('transaction_downloadFile_id').getUrl() + '?table_name=CSH_TRANSACTION&header_id=' + header_id; var url = $('transaction_downloadFile_id').getUrl() + '?table_name=CSH_TRANSACTION&header_id=' + header_id;
......
<?xml version="1.0" encoding="UTF-8"?>
<a:service xmlns:a="http://www.leaf-framework.org/application" xmlns:s="leaf.plugin.script" trace="true">
<a:init-procedure>
<a:model-update model="hls.HLS811.hls_doc_file_templet_get_atm"/>
<s:server-script import="con_print_path.js"><![CDATA[
importPackage(Packages.hls.plugin.docx4j);
importPackage(Packages.com.hand.hls.hlcm.util);
importPackage(java.io);
function copyFile(fOld, fNew) {
var fis = new java.io.FileInputStream(fOld);
var fos = new java.io.FileOutputStream(fNew);
var b = new java.lang.reflect.Array.newInstance(java.lang.Byte.TYPE, 1024 * 4);
var len = -1;
while ((len = fis.read(b)) != -1) {
fos.write(b, 0, len);
}
fis.close();
fos.close();
}
function transfer(file_path, os) {
println(file_path);
var fis = new FileInputStream(file_path);
var b = new java.lang.reflect.Array.newInstance(java.lang.Byte.TYPE, 1024 * 64);
var len = -1;
while ((len = fis.read(b)) != -1) {
os.write(b, 0, len);
}
fis.close();
}
function download_file(file_name, file_path) {
$ctx["__request_type__"] = 'file'; //to indicate this request is not a JSON_REQUEST
var resp = $ctx['_instance.javax.servlet.http.HttpServletResponse'];
resp.setHeader("Pragma", "No-cache");
resp.setHeader("Cache-Control", "no-cache, must-revalidate");
resp.setDateHeader("Expires", 0);
resp.setContentType("application/x-msdownload");
resp.setHeader("Content-disposition", "attachment; filename=" + encodeURI(file_name, 'UTF-8'));
var os = resp.getOutputStream();
transfer(file_path, os);
os.flush();
}
var attachment_batch_dl = $bm('hls.HLS811.hls_doc_file_templet_get_atm');
var result = attachment_batch_dl.queryAsMap({
document_id: $ctx.parameter.document_id,
document_table: $ctx.parameter.document_table,
batch_flag: $ctx.parameter.batch_flag,
content_id: $ctx.parameter.content_id
});
var from_file_data = result.getChildren();
for (var i = 0;i < from_file_data.length;i++) {
if (!$ctx.parameter.file_path) {
set_parameter_file_path();
}
var to_file_path = $ctx.parameter.file_path;
var record_data = from_file_data[i];
// var to_file_name = record_data.to_file_name;
var to_file_name = $ctx.parameter.file_name+'.docx';
var from_file_path = record_data.file_path;
var guid_file_name_path = $bm('cont.CON500.con_contract_get_guid_file_name').queryAsMap();
var guid_file_name_tables = guid_file_name_path.getChildren();
to_file_path = to_file_path + guid_file_name_tables[0].guid_file_name + 'doc' + record_data.content_id;
copyFile(from_file_path, to_file_path);
$bm('hls.HLS811.hls_file_content_copy_update').update({
table_name: 'HLS_DOC_FILE_CONTENT',
content_id: record_data.content_id,
file_name: to_file_name.toString(),
file_path: to_file_path.toString(),
source_type: $ctx.parameter.source_type
});
try {
$bm('csh.CSH501.csh_transaction_return_print').update({
document_id: $ctx.parameter.document_id,
document_table: $ctx.parameter.document_table
});
var brwt = new BookmarksReplaceWithText($instance('leaf.database.service.IDatabaseServiceFactory'), $instance('uncertain.ocm.IObjectRegistry'), $ctx.getData());
brwt.replaceBookmarkFromContent(to_file_path.toString(), record_data.content_id.toString(), 'COMMON');
var resp = $ctx['_instance.javax.servlet.http.HttpServletResponse'];
HlsFileUtil.downloadFile(encodeURI(to_file_path,'utf-8'),encodeURI(to_file_name,'utf-8'),resp);
// download_file(encodeURI(to_file_name,'utf-8'), to_file_path);
// print(to_file_name);
} catch (e) {
raise_app_error(e);
}
}
]]></s:server-script>
</a:init-procedure>
</a:service>
...@@ -17,7 +17,8 @@ ...@@ -17,7 +17,8 @@
<a:link id="csh560_start_wfl_link" model="cus_deposit.CUS_DEPOSIT106.return_workflow_start" <a:link id="csh560_start_wfl_link" model="cus_deposit.CUS_DEPOSIT106.return_workflow_start"
modelaction="execute"/> modelaction="execute"/>
<script type="text/javascript"><![CDATA[ <script type="text/javascript"><![CDATA[
var csh_return_atm_id = '${/model/csh_return_list_id/record/@return_list_id}'; var csh_return_atm_id = '${/model/csh_return_list_id/record/@return_list_id}';
function csh515_return_back() { function csh515_return_back() {
$('${/parameter/@winId}').close(); $('${/parameter/@winId}').close();
} }
...@@ -79,8 +80,8 @@ var csh_return_atm_id = '${/model/csh_return_list_id/record/@return_list_id}'; ...@@ -79,8 +80,8 @@ var csh_return_atm_id = '${/model/csh_return_list_id/record/@return_list_id}';
opposite_band_na: record.get('opposite_band_na'), opposite_band_na: record.get('opposite_band_na'),
bp_bank_account_num: record.get('bp_bank_account_num'), bp_bank_account_num: record.get('bp_bank_account_num'),
description: record.get('description'), description: record.get('description'),
csh_return_atm_id:csh_return_atm_id, 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')
}, },
success: function (res) { success: function (res) {
var return_id = res.result.return_id; var return_id = res.result.return_id;
...@@ -123,22 +124,23 @@ var csh_return_atm_id = '${/model/csh_return_list_id/record/@return_list_id}'; ...@@ -123,22 +124,23 @@ var csh_return_atm_id = '${/model/csh_return_list_id/record/@return_list_id}';
} }
} }
//附件上传 //附件上传
function upload_attachment_win() { function upload_attachment_win() {
var win = new Leaf.Window({ var win = new Leaf.Window({
id: 'cus_deposit1060_upload_win', id: 'cus_deposit1060_upload_win',
url: $('cus_deposit1060_upload_win_link').getUrl(), url: $('cus_deposit1060_upload_win_link').getUrl(),
params: { params: {
winid: 'hn2050_upload_win', winid: 'hn2050_upload_win',
table_name: 'CSH_TRANSACTION_RETURN', table_name: 'CSH_TRANSACTION_RETURN',
header_id: csh_return_atm_id header_id: csh_return_atm_id
}, },
width: 900, width: 900,
hight: 400 hight: 400
}).on('close', function () { }).on('close', function () {
//record.ds.query(); //record.ds.query();
}); });
} }
...@@ -150,7 +152,9 @@ var csh_return_atm_id = '${/model/csh_return_list_id/record/@return_list_id}'; ...@@ -150,7 +152,9 @@ var csh_return_atm_id = '${/model/csh_return_list_id/record/@return_list_id}';
<a:field name="return_date" defaultValue="${/model/sys_time_default_value_path/record/@now_time}" <a:field name="return_date" defaultValue="${/model/sys_time_default_value_path/record/@now_time}"
required="true"/> required="true"/>
<a:field name="return_amount" required="true"/> <a:field name="return_amount" required="true"/>
<a:field name="csh_return_bp_name" lovGridHeight="350" lovHeight="500" lovService="cus_deposit.CUS_DEPOSIT106.hls_bp_master_v_for_lov" lovWidth="500" title="HLS.BP_TITLE" required="true"> <a:field name="csh_return_bp_name" lovGridHeight="350" lovHeight="500"
lovService="cus_deposit.CUS_DEPOSIT106.hls_bp_master_v_for_lov" lovWidth="500"
title="HLS.BP_TITLE" required="true">
<a:mapping> <a:mapping>
<a:map from="bp_id" to="csh_return_bp_id"/> <a:map from="bp_id" to="csh_return_bp_id"/>
<a:map from="bp_name" to="csh_return_bp_name"/> <a:map from="bp_name" to="csh_return_bp_name"/>
...@@ -173,47 +177,40 @@ var csh_return_atm_id = '${/model/csh_return_list_id/record/@return_list_id}'; ...@@ -173,47 +177,40 @@ var csh_return_atm_id = '${/model/csh_return_list_id/record/@return_list_id}';
<a:form title="CSH515.CSH_REFUND"> <a:form title="CSH515.CSH_REFUND">
<a:box column="4" labelWidth="115"> <a:box column="4" labelWidth="115">
<a:datePicker name="return_date" bindTarget="csh_transaction_deposit_return_maintain_ds" <a:datePicker name="return_date" bindTarget="csh_transaction_deposit_return_maintain_ds"
prompt="经济业务发生日" renderer="Leaf.formatDate"/> prompt="经济业务发生日" renderer="Leaf.formatDate" width="180"/>
<a:numberField name="return_amount" allowDecimals="true" allowFormat="true" allowNegative="false" <a:numberField name="return_amount" allowDecimals="true" allowFormat="true" allowNegative="false"
bindTarget="csh_transaction_deposit_return_maintain_ds" bindTarget="csh_transaction_deposit_return_maintain_ds"
prompt="CSH515.CSH_REFUND_AMOUNT"/> prompt="CSH515.CSH_REFUND_AMOUNT"/>
<a:numberField name="unwrite_off_amount" allowDecimals="true" allowFormat="true" <a:numberField name="unwrite_off_amount" allowDecimals="true" allowFormat="true"
allowNegative="false" bindTarget="csh_transaction_receipt_return_maintain_ds" allowNegative="false" bindTarget="csh_transaction_receipt_return_maintain_ds"
prompt="剩余可用金额" readOnly="true"/> prompt="剩余可用金额" readOnly="true" width="170" allowdecimals="false"/>
<a:lov name="csh_return_bp_name" bindTarget="csh_transaction_deposit_return_maintain_ds" prompt="退款用户"/> <a:lov name="csh_return_bp_name" bindTarget="csh_transaction_deposit_return_maintain_ds"
<!--<a:lov name="period_name" bindTarget="csh_transaction_receipt_return_maintain_ds" prompt="HLS.ACCOUNT_PERIOD_NAME"/>--> prompt="退款用户" width="185"/>
<!--<a:comboBox name="payment_method_display" bindTarget="csh_transaction_receipt_return_maintain_ds" prompt="HLS.PAYMENT_METHOD"/>--> </a:box>
<!--<a:numberField name="exchange_rate" allowNegative="false" bindTarget="csh_transaction_receipt_return_maintain_ds" decimalPrecision="-1" prompt="HLS.EXCHANGE_RATE"/>--> <a:box column="4" labelWidth="115">
<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"/>
<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:box> </a:box>
<a:box column="4" labelWidth="115"> <a:box column="4" labelWidth="115">
<a:textField name="bp_bank_account_name" bindTarget="csh_transaction_deposit_return_maintain_ds" <a:textField name="bp_bank_account_name" bindTarget="csh_transaction_deposit_return_maintain_ds"
prompt="CSH510.CSH_TRANSACTION.YOUR_ACCOUNT_NAME"/> prompt="CSH510.CSH_TRANSACTION.YOUR_ACCOUNT_NAME" width="180"/>
<a:textField name="opposite_band_na" bindTarget="csh_transaction_deposit_return_maintain_ds" <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"/>
<a:textField name="bp_bank_account_num" bindTarget="csh_transaction_deposit_return_maintain_ds" <a:numberField name="bp_bank_account_num" allowdecimals="false" bindTarget="csh_transaction_deposit_return_maintain_ds"
prompt="CSH510.CSH_TRANSACTION.YOUR_ACCOUNT_USERNAME"/> prompt="CSH510.CSH_TRANSACTION.YOUR_ACCOUNT_USERNAME" width="170"/>
<a:hBox> <a:hBox>
<a>附件上传:</a><a href="javascript:upload_attachment_win()" style="color:red"> 附件上传</a> <a>附件上传:</a><a href="javascript:upload_attachment_win()" style="color:red"> 附件上传</a>
</a:hBox> </a:hBox>
<!-- <a href="javascript:upload_attachment_win()" style="color:red;margin-right:5px;">附件上传</a>-->
<!--<a:numberField name="return_amount" allowDecimals="true" allowFormat="true" allowNegative="false" bindTarget="csh_transaction_deposit_return_maintain_ds" prompt="CSH515.CSH_REFUND_AMOUNT"/>-->
<!--<a:textField name="bank_slip_num" bindTarget="csh_transaction_receipt_return_maintain_ds" prompt="银行流水号"/>-->
<!--<a:comboBox name="currency_name" bindTarget="csh_transaction_receipt_return_maintain_ds" prompt="HLS.CURRENCY"/>-->
<!--<a:comboBox name="exchange_rate_type_display" bindTarget="csh_transaction_receipt_return_maintain_ds" prompt="HLS.EXCHANGE_RATE_TYPE_DESC"/>-->
</a:box> </a:box>
<!--<a:box column="4">-->
<!--<a:lov name="bank_account_code" bindTarget="csh_transaction_receipt_return_maintain_ds" prompt="CSH515.CSH_REFUND_ACCOUNT"/>-->
<!--<a:textField name="bank_account_num" bindTarget="csh_transaction_receipt_return_maintain_ds" prompt="CSH511.BANK_ACCOUNT_NUM"/>-->
<!--<a:lov name="bp_bank_account_code" bindTarget="csh_transaction_receipt_return_maintain_ds" prompt="CSH511.BP_BANK_ACCOUNT_CODE"/>-->
<!--<a:textField name="bp_bank_account_num" bindTarget="csh_transaction_receipt_return_maintain_ds" prompt="CSH511.BANK_ACCOUNT_NUM"/>-->
<!--</a:box>-->
<!--<a:box column="2">-->
<!--<a:textField name="bank_account_name" bindTarget="csh_transaction_receipt_return_maintain_ds" prompt="CSH511.BANK_ACCOUNT_NAME" width="383"/>-->
<!--<a:textField name="bp_bank_account_name" bindTarget="csh_transaction_receipt_return_maintain_ds" prompt="CSH511.BANK_ACCOUNT_NAME" width="383"/>-->
<!--</a:box>-->
<a:box column="1"> <a:box column="1">
<a:textField name="description" bindTarget="csh_transaction_deposit_return_maintain_ds" prompt="备注" <a:textArea name="description" bindTarget="csh_transaction_deposit_return_maintain_ds" prompt="备注"
width="849"/> width="849"/>
</a:box> </a:box>
</a:form> </a:form>
...@@ -223,38 +220,41 @@ var csh_return_atm_id = '${/model/csh_return_list_id/record/@return_list_id}'; ...@@ -223,38 +220,41 @@ var csh_return_atm_id = '${/model/csh_return_list_id/record/@return_list_id}';
function init() { function init() {
var record = $('csh_transaction_receipt_return_maintain_ds').getCurrentRecord(); var record = $('csh_transaction_receipt_return_maintain_ds').getCurrentRecord();
record.getField('bp_bank_account_name').setReadOnly(true); // record.getField('bp_bank_account_name').setReadOnly(true);
record.getField('bank_account_name').setReadOnly(true); // record.getField('bank_account_name').setReadOnly(true);
//
record.getField('bp_bank_account_num').setReadOnly(true); // record.getField('bp_bank_account_num').setReadOnly(true);
record.getField('bp_bank_account_code').setReadOnly(true); // record.getField('bp_bank_account_code').setReadOnly(true);
record.getField('bank_account_num').setReadOnly(true); // record.getField('bank_account_num').setReadOnly(true);
record.getField('bank_account_code').setReadOnly(true); // record.getField('bank_account_code').setReadOnly(true);
//
record.getField('transaction_amount').setReadOnly(true); // record.getField('transaction_amount').setReadOnly(true);
record.getField('transaction_functional_amount').setReadOnly(true); // record.getField('transaction_functional_amount').setReadOnly(true);
record.getField('bank_slip_num').setReadOnly(true); // record.getField('bank_slip_num').setReadOnly(true);
record.getField('exchange_rate').setReadOnly(true); // record.getField('exchange_rate').setReadOnly(true);
//
record.getField('transaction_date').setReadOnly(true); // record.getField('transaction_date').setReadOnly(true);
record.getField('period_name').setReadOnly(true); // record.getField('period_name').setReadOnly(true);
record.getField('transaction_num').setReadOnly(true); // record.getField('transaction_num').setReadOnly(true);
record.getField('currency_name').setReadOnly(true); // record.getField('currency_name').setReadOnly(true);
//
//
record.getField('bp_name').setReadOnly(true); // record.getField('bp_name').setReadOnly(true);
record.getField('bp_category_display').setReadOnly(true); // record.getField('bp_category_display').setReadOnly(true);
record.getField('payment_method_display').setReadOnly(true); // record.getField('payment_method_display').setReadOnly(true);
record.getField('exchange_rate_type_display').setReadOnly(true); // record.getField('exchange_rate_type_display').setReadOnly(true);
//
record.getField('description').setReadOnly(true); // record.getField('description').setReadOnly(true);
//
record.set('return_date', Leaf.formatDate(new Date())); // record.set('return_date', Leaf.formatDate(new Date()));
record.getField('return_date').setRequired(true); // record.getField('return_date').setRequired(true);
record.getField('return_amount').setRequired(true); // record.getField('return_amount').setRequired(true);
var deposit_record = $('csh_transaction_deposit_return_maintain_ds').getCurrentRecord(); var deposit_record = $('csh_transaction_deposit_return_maintain_ds').getCurrentRecord();
deposit_record.set('csh_return_bp_name',record.get('bp_name')); deposit_record.set('csh_return_bp_name', record.get('bp_name'));
deposit_record.set('csh_return_bp_id',record.get('bp_id')); deposit_record.set('csh_return_bp_id', record.get('bp_id'));
deposit_record.set('contract_number', record.get('contract_number'));
deposit_record.set('bp_id_telnet_code', record.get('bp_id_telnet_code'));
deposit_record.set('bp_id_telnet_n', record.get('bp_id_telnet_n'));
} }
]]></script> ]]></script>
......
...@@ -6,62 +6,85 @@ ...@@ -6,62 +6,85 @@
$Purpose: $Purpose:
--> -->
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" trace="true"> <a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" trace="true">
<a:init-procedure><![CDATA[ <a:init-procedure>
<a:model-query defaultWhereClause="t1.return_id = ${/parameter/@return_id}"
]]></a:init-procedure> model="cus_deposit.CUS_DEPOSIT106.get_csh_return_status" rootPath="default_value_path"/>
</a:init-procedure>
<a:view> <a:view>
<a:link id="cus_deposit1060_download_win_link" url="${/request/@context_path}/downloadFile.lview"/> <a:link id="cus_deposit1060_download_win_link" url="${/request/@context_path}/downloadFile.lview"/>
<a:link id="csh_deposit_return_history_print_link_id"
url="${/request/@context_path}/modules/cus_deposit/CUS_DEPOSIT106/csh_deposit_return_history_print.lsc"/>
<script type="text/javascript"><![CDATA[ <script type="text/javascript"><![CDATA[
function upload_attachment_win() { function upload_attachment_win() {
var record = $('csh_transaction_return_wfl_ds').getCurrentRecord(); var record = $('csh_transaction_return_wfl_ds').getCurrentRecord();
var csh_return_atm_id=record.get('csh_return_atm_id'); var csh_return_atm_id = record.get('csh_return_atm_id');
var win = new Leaf.Window({
id: 'cus_deposit1060_download_win',
url: $('cus_deposit1060_download_win_link').getUrl(),
params: {
winid: 'hn2050_upload_win',
table_name: 'CSH_TRANSACTION_RETURN',
header_id: csh_return_atm_id
},
width: 900,
hight: 400
}).on('close', function () {
//record.ds.query();
});
var win = new Leaf.Window({
id: 'cus_deposit1060_download_win',
url: $('cus_deposit1060_download_win_link').getUrl(),
params: {
winid: 'hn2050_upload_win',
table_name: 'CSH_TRANSACTION_RETURN',
header_id: csh_return_atm_id
},
width: 900,
hight: 400
}).on('close', function () {
//record.ds.query();
});
}
function csh515_return_print() {
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';
window.open(href = url_l, target = "_self");
} }
]]></script> ]]></script>
<a:dataSets> <a:dataSets>
<a:dataSet id="csh_transaction_return_wfl_ds" autoPageSize="true" autoQuery="true" model="cus_deposit.CUS_DEPOSIT106.csh_transaction_return_query" queryUrl="${/request/@context_path}/autocrud/cus_deposit.CUS_DEPOSIT106.csh_transaction_return_query/query?return_id=${/parameter/@return_id}" > <a:dataSet id="csh_transaction_return_wfl_ds" autoPageSize="true" autoQuery="true"
model="cus_deposit.CUS_DEPOSIT106.csh_transaction_return_query"
queryUrl="${/request/@context_path}/autocrud/cus_deposit.CUS_DEPOSIT106.csh_transaction_return_query/query?return_id=${/parameter/@return_id}">
</a:dataSet> </a:dataSet>
</a:dataSets> </a:dataSets>
<a:screenBody> <a:screenBody>
<a:screenTopToolbar> <a:screenTopToolbar>
<a:gridButton id="csh106_return_print_id" click="csh515_return_print" text="保证金退款审批记录打印"/>
</a:screenTopToolbar> </a:screenTopToolbar>
<a:form title="CSH515.CSH_REFUND"> <a:form title="CSH515.CSH_REFUND">
<a:box column="3" labelWidth="115"> <a:box column="3" labelWidth="115">
<a:datePicker name="return_date" bindTarget="csh_transaction_return_wfl_ds" <a:datePicker name="return_date" bindTarget="csh_transaction_return_wfl_ds"
prompt="经济业务发生日" renderer="Leaf.formatDate" readOnly="true"/> prompt="经济业务发生日" renderer="Leaf.formatDate" readOnly="true" width="180"/>
<a:numberField name="return_amount" allowDecimals="true" allowFormat="true" allowNegative="false" <a:numberField name="return_amount" allowDecimals="true" allowFormat="true" allowNegative="false"
bindTarget="csh_transaction_return_wfl_ds" bindTarget="csh_transaction_return_wfl_ds"
prompt="CSH515.CSH_REFUND_AMOUNT" readOnly="true"/> prompt="CSH515.CSH_REFUND_AMOUNT" readOnly="true" width="170"/>
<a:textField name="csh_return_bp_name" bindTarget="csh_transaction_return_wfl_ds" prompt="退款商业伙伴" readOnly="true"/> <a:textField name="csh_return_bp_name" bindTarget="csh_transaction_return_wfl_ds" prompt="退款商业伙伴"
readOnly="true" width="185"/>
<!--<a:datePicker name="return_date" bindTarget="csh_transaction_return_wfl_ds" prompt="CSH515.CSH_REFUND_DATE" renderer="Leaf.formatDate" readOnly="true"/>--> <!--<a:datePicker name="return_date" bindTarget="csh_transaction_return_wfl_ds" prompt="CSH515.CSH_REFUND_DATE" renderer="Leaf.formatDate" readOnly="true"/>-->
<!--<a:lov name="period_name" bindTarget="csh_transaction_return_wfl_ds" prompt="HLS.ACCOUNT_PERIOD_NAME" readOnly="true"/>--> <!--<a:lov name="period_name" bindTarget="csh_transaction_return_wfl_ds" prompt="HLS.ACCOUNT_PERIOD_NAME" readOnly="true"/>-->
<!--<a:comboBox name="payment_method_display" bindTarget="csh_transaction_return_wfl_ds" prompt="HLS.PAYMENT_METHOD" readOnly="true"/>--> <!--<a:comboBox name="payment_method_display" bindTarget="csh_transaction_return_wfl_ds" prompt="HLS.PAYMENT_METHOD" readOnly="true"/>-->
<!--<a:numberField name="exchange_rate" allowNegative="false" bindTarget="csh_transaction_return_wfl_ds" decimalPrecision="-1" prompt="HLS.EXCHANGE_RATE" readOnly="true"/>--> <!--<a:numberField name="exchange_rate" allowNegative="false" bindTarget="csh_transaction_return_wfl_ds" decimalPrecision="-1" prompt="HLS.EXCHANGE_RATE" readOnly="true"/>-->
</a:box> </a:box>
<a:box column="4" labelWidth="115">
<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"/>
<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"/>-->
</a:box>
<a:box column="4" labelWidth="115"> <a:box column="4" labelWidth="115">
<a:textField name="bp_bank_account_name" bindTarget="csh_transaction_return_wfl_ds" <a:textField name="bp_bank_account_name" bindTarget="csh_transaction_return_wfl_ds"
prompt="CSH510.CSH_TRANSACTION.YOUR_ACCOUNT_NAME" readOnly="true"/> prompt="CSH510.CSH_TRANSACTION.YOUR_ACCOUNT_NAME" readOnly="true" width="180"/>
<a:textField name="opposite_band_na" bindTarget="csh_transaction_return_wfl_ds" <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"/>
<a:textField name="bp_bank_account_num" bindTarget="csh_transaction_return_wfl_ds" <a:textField name="bp_bank_account_num" bindTarget="csh_transaction_return_wfl_ds"
prompt="CSH510.CSH_TRANSACTION.YOUR_ACCOUNT_USERNAME" readOnly="true"/> prompt="CSH510.CSH_TRANSACTION.YOUR_ACCOUNT_USERNAME" readOnly="true" width="170"/>
<a href="javascript:upload_attachment_win()" style="color:red">附件查看</a> <a href="javascript:upload_attachment_win()" style="color:red">附件查看</a>
<!--<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: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:textField name="bank_slip_num" bindTarget="csh_transaction_return_wfl_ds" prompt="银行流水号" readOnly="true"/>-->
...@@ -69,23 +92,32 @@ var csh_return_atm_id=record.get('csh_return_atm_id'); ...@@ -69,23 +92,32 @@ var csh_return_atm_id=record.get('csh_return_atm_id');
<!--<a:comboBox name="exchange_rate_type_display" bindTarget="csh_transaction_return_wfl_ds" prompt="HLS.EXCHANGE_RATE_TYPE_DESC" readOnly="true"/>--> <!--<a:comboBox name="exchange_rate_type_display" bindTarget="csh_transaction_return_wfl_ds" prompt="HLS.EXCHANGE_RATE_TYPE_DESC" readOnly="true"/>-->
</a:box> </a:box>
<!--<a:box column="4">--> <!--<a:box column="4">-->
<!--<a:lov name="bank_account_code" bindTarget="csh_transaction_return_wfl_ds" prompt="CSH515.CSH_REFUND_ACCOUNT" readOnly="true"/>--> <!--<a:lov name="bank_account_code" bindTarget="csh_transaction_return_wfl_ds" prompt="CSH515.CSH_REFUND_ACCOUNT" readOnly="true"/>-->
<!--<a:textField name="bank_account_num" bindTarget="csh_transaction_return_wfl_ds" prompt="CSH511.BANK_ACCOUNT_NUM" readOnly="true"/>--> <!--<a:textField name="bank_account_num" bindTarget="csh_transaction_return_wfl_ds" prompt="CSH511.BANK_ACCOUNT_NUM" readOnly="true"/>-->
<!--<a:lov name="bp_bank_account_code" bindTarget="csh_transaction_return_wfl_ds" prompt="CSH511.BP_BANK_ACCOUNT_CODE" readOnly="true"/>--> <!--<a:lov name="bp_bank_account_code" bindTarget="csh_transaction_return_wfl_ds" prompt="CSH511.BP_BANK_ACCOUNT_CODE" readOnly="true"/>-->
<!--<a:textField name="bp_bank_account_num" bindTarget="csh_transaction_return_wfl_ds" prompt="CSH511.BANK_ACCOUNT_NUM" readOnly="true"/>--> <!--<a:textField name="bp_bank_account_num" bindTarget="csh_transaction_return_wfl_ds" prompt="CSH511.BANK_ACCOUNT_NUM" readOnly="true"/>-->
<!--</a:box>--> <!--</a:box>-->
<!--<a:box column="2">--> <!--<a:box column="2">-->
<!--<a:textField name="bank_account_name" bindTarget="csh_transaction_return_wfl_ds" prompt="CSH511.BANK_ACCOUNT_NAME" width="383" readOnly="true"/>--> <!--<a:textField name="bank_account_name" bindTarget="csh_transaction_return_wfl_ds" prompt="CSH511.BANK_ACCOUNT_NAME" width="383" readOnly="true"/>-->
<!--<a:textField name="bp_bank_account_name" bindTarget="csh_transaction_return_wfl_ds" prompt="CSH511.BANK_ACCOUNT_NAME" width="383" readOnly="true"/>--> <!--<a:textField name="bp_bank_account_name" bindTarget="csh_transaction_return_wfl_ds" prompt="CSH511.BANK_ACCOUNT_NAME" width="383" readOnly="true"/>-->
<!--</a:box>--> <!--</a:box>-->
<a:box column="1"> <a:box column="1">
<a:textField name="description" bindTarget="csh_transaction_return_wfl_ds" prompt="备注" <a:textArea name="description" bindTarget="csh_transaction_return_wfl_ds" prompt="备注"
width="849" readOnly="true"/> width="849" readOnly="true"/>
<!--<a:textField name="description" bindTarget="csh_transaction_return_wfl_ds" prompt="HLS.NOTE" width="849" readOnly="true"/>--> <!--<a:textField name="description" bindTarget="csh_transaction_return_wfl_ds" prompt="HLS.NOTE" width="849" readOnly="true"/>-->
</a:box> </a:box>
</a:form> </a:form>
</a:screenBody> </a:screenBody>
<script type="text/javascript"><![CDATA[ <script type="text/javascript"><![CDATA[
Leaf.onReady(init);
function init() {
if ('${/model/default_value_path/record/@status}' != 'APPROVED') {
document.getElementById("csh106_return_print_id").style.display = "none";
}
}
]]></script> ]]></script>
</a:view> </a:view>
</a:screen> </a:screen>
...@@ -20,14 +20,6 @@ ...@@ -20,14 +20,6 @@
<script src="${/request/@context_path}/modules/prj/PRJ500N/javascripts/input_validator.js" <script src="${/request/@context_path}/modules/prj/PRJ500N/javascripts/input_validator.js"
type="text/javascript"/> type="text/javascript"/>
<a:link id="gh_nc_post_addcustomerinfo_link" model="hls.HLS213.hls_bp_master_nc_post" modelaction="execute"/> <a:link id="gh_nc_post_addcustomerinfo_link" model="hls.HLS213.hls_bp_master_nc_post" modelaction="execute"/>
<!-- <a:link id="hls213_sap_eai_create_customer_link"-->
<!-- url="${/request/@context_path}/modules/interface/INTERFACE_EAI/hls_sap_eai_CrCustomer.lsc"/>-->
<!-- <a:link id="hls213_sap_eai_create_vender_link"-->
<!-- url="${/request/@context_path}/modules/interface/INTERFACE_EAI/hls_sap_eai_CrVender.lsc"/>-->
<!-- <a:link id="Identity_ccx_link"
url="${/request/@context_path}/modules/interface/INTERFACE_CCX/hlcm_ccxIdentity_interface.lsc"/>-->
<!-- <script src="${/request/@context_path}/javascripts/identity_card_info_query.js" type="text/javascript"/>-->
<!-- <a:link id="identity_query_link" model="interface.CCX_INTERFACE.identity_query" modelaction="update"/>-->
<script type="text/javascript"><![CDATA[ <script type="text/javascript"><![CDATA[
Leaf.onReady(function () { Leaf.onReady(function () {
var unit_id = '${/model/user_agent_description/record/@unit_id}'; var unit_id = '${/model/user_agent_description/record/@unit_id}';
...@@ -43,10 +35,10 @@ ...@@ -43,10 +35,10 @@
bp_record.set('owner_user_id', '${/session/@user_id}'); bp_record.set('owner_user_id', '${/session/@user_id}');
bp_record.set('unit_id', unit_id); bp_record.set('unit_id', unit_id);
bp_record.set('unit_id_n', unit_id_n); bp_record.set('unit_id_n', unit_id_n);
if(employee_type_id == '64'){ if (employee_type_id == '64') {
bp_record.getField('unit_id_n').setReadOnly(true); bp_record.getField('unit_id_n').setReadOnly(true);
bp_record.getField('unit_id_n').setRequired(false); bp_record.getField('unit_id_n').setRequired(false);
}else{ } else {
bp_record.getField('unit_id_n').setReadOnly(false); bp_record.getField('unit_id_n').setReadOnly(false);
bp_record.getField('unit_id_n').setRequired(true); bp_record.getField('unit_id_n').setRequired(true);
} }
...@@ -137,16 +129,16 @@ ...@@ -137,16 +129,16 @@
record.getField('parent_id_n').setReadOnly(true); record.getField('parent_id_n').setReadOnly(true);
} }
if(record.get('taxpayer_type')){ if (record.get('taxpayer_type')) {
var value = record.get('taxpayer_type'); var value = record.get('taxpayer_type');
if(value == 'SMALL_SCALE_TAXPAYER'){ if (value == 'SMALL_SCALE_TAXPAYER') {
record.getField('invoice_bp_address').setRequired(false); record.getField('invoice_bp_address').setRequired(false);
record.getField('invoice_bp_phone_num').setRequired(false); record.getField('invoice_bp_phone_num').setRequired(false);
record.getField('invoice_bp_bank').setRequired(false); record.getField('invoice_bp_bank').setRequired(false);
record.getField('invoice_bp_bank_account').setRequired(false); record.getField('invoice_bp_bank_account').setRequired(false);
record.getField('tax_registry_num').setRequired(false); record.getField('tax_registry_num').setRequired(false);
} }
if(value == 'GENERAL_TAXPAYER'){ if (value == 'GENERAL_TAXPAYER') {
record.getField('invoice_bp_address').setRequired(true); record.getField('invoice_bp_address').setRequired(true);
record.getField('invoice_bp_phone_num').setRequired(true); record.getField('invoice_bp_phone_num').setRequired(true);
record.getField('invoice_bp_bank').setRequired(true); record.getField('invoice_bp_bank').setRequired(true);
...@@ -154,6 +146,16 @@ ...@@ -154,6 +146,16 @@
record.getField('tax_registry_num').setRequired(true); record.getField('tax_registry_num').setRequired(true);
} }
} }
if (record.get('marital_status') && (record.get('marital_status') == '30' || record.get('marital_status') == '40')) {
document.getElementById('${/parameter/@layout_code}_F_SPOUSE_1_component_id').style.display = 'block';
record.getField('bp_name_sp').setRequired(true);
record.getField('card_type_sp').setRequired(true);
record.getField('card_type_sp_n').setRequired(true);
record.getField('id_no_sp').setRequired(true);
} else {
document.getElementById('${/parameter/@layout_code}_F_SPOUSE_1_component_id').style.display = 'none';
}
} }
}; };
...@@ -176,81 +178,6 @@ ...@@ -176,81 +178,6 @@
card_identity_flag = 'N'; card_identity_flag = 'N';
sp_identity_flag = 'N'; sp_identity_flag = 'N';
//由于中诚信测试环境只能测试张三,所以这里限定身份证号为张三的123456199001011233
//if(value=='123456199001011233'){
// var url1 = $('identity_query_link').getUrl();
// window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
/* Leaf.request({
url: url1,
para: {
id_card_no: value,//身份证号码
bp_name: bp_name
},
success: function (res) {
var resmsg_1 = res.result.resmsg_1;
if (resmsg_1 == '1') {
if (name == 'id_card_no') {
record.set('ccx_resmsg', '身份验证成功');
card_identity_flag = 'Y';
} else {
record.set('ccx_resmsg1', '身份验证成功');
sp_identity_flag = 'Y';
}
} else {
//个人身份验证
var url = $('Identity_ccx_link').getUrl();
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
Leaf.request({
url: url,
para: {
bp_name: bp_name,//姓名
id_card_no: value//身份证号码
},
success: function (res) {
var resmsg = res.result.resmsg;
if (name == 'id_card_no') {
record.set('ccx_resmsg', resmsg);
if (resmsg == '身份验证成功') {
card_identity_flag = 'Y';
}
} else {
record.set('ccx_resmsg1', resmsg);
if (resmsg == '身份验证成功') {
sp_identity_flag = 'Y';
}
}
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
Leaf.SideBar.show({
msg: '${l:HLS.SUBMIT_SUCCESS}',
duration: 2000
});
},
failure: function () {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
error: function () {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
scope: this,
sync: true
});
}
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
failure: function () {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
error: function () {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
scope: this,
sync: true
});*/
} }
} else { } else {
card_identity_flag = 'N'; card_identity_flag = 'N';
...@@ -284,31 +211,6 @@ ...@@ -284,31 +211,6 @@
return true; return true;
} }
//商业伙伴分类选择企业 且类型选择 制造商时 集团内外、企业个人、实体虚拟、品牌非品牌 给出只读默认值
// Leaf.onReady(function() {
// var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master_role');
// if (ds_id && '${/parameter/@default_value_dsid}') {
// var head_record = $('${/parameter/@default_value_dsid}').getCurrentRecord();
// var bp_master_role_ds = $(ds_id);
// var record = new Leaf.Record({
// 'primary_flag': 'Y',
// 'bp_category': head_record.get('bp_category'),
// 'bp_category_n': head_record.get('bp_category_n'),
// 'bp_type': head_record.get('bp_type'),
// 'bp_type_n': head_record.get('bp_type_n'),
// 'bp_class': head_record.get('bp_class'),
// 'bp_class_n': head_record.get('bp_class_n'),
// 'enabled_flag': 'Y'
// });
// bp_master_role_ds.add(record);
// var current_record = bp_master_role_ds.getAt(0);
// current_record.getField('bp_type_n').setReadOnly(true);
// current_record.getField('enabled_flag').setReadOnly(true);
// }
// });
function CheckSocialCreditCode(Code) { function CheckSocialCreditCode(Code) {
var patrn = /^[0-9A-Z]+$/; var patrn = /^[0-9A-Z]+$/;
...@@ -378,20 +280,87 @@ ...@@ -378,20 +280,87 @@
// } // }
// }; // };
/*保存前调用,生成项目编号*/
// window['${/parameter/@layout_code}_on_layout_dynamic_before_submit'] = function (ds, record) {
//
// window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
// var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master');
// var head_record = $(ds_id).getCurrentRecord();
// var check_flag = false;
// if (head_record.get('bp_code')) {
// return true;
// }
// Leaf.request({
// url: $('get_special_fields_link_id').getUrl(),
// para: {
// bp_id: head_record.get('bp_id')
// },
// success: function (res) {
// var document_number = res.result.document_number;
// head_record.set('bp_code', document_number);
// if (head_record.get('marital_status') && (head_record.get('marital_status') !== '30' && head_record.get('marital_status') !== '40')) {
// head_record.set('bp_name_sp', null);
// head_record.set('card_type_sp', null);
// head_record.set('card_type_sp_n', null);
// head_record.set('id_no_sp', null);
// head_record.set('date_of_birth_sp', null);
// head_record.set('cell_phone_sp', null);
// head_record.set('work_unit_phone_sp', null);
// head_record.set('work_unit_name_sp', null);
// head_record.set('work_unit_address_sp', null);
// }
// check_flag = true;
// window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
//
// },
// error: function () {
// window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
// },
// failure: function () {
// window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
// },
// sync: true,
// scope: this
// });
// return check_flag;
//
// };
window['${/parameter/@layout_code}_on_layout_dynamic_before_submit'] = function (ds, record) {
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master');
var head_record = $(ds_id).getCurrentRecord();
var check_flag = false;
if (head_record.get('marital_status') && (head_record.get('marital_status') !== '30' && head_record.get('marital_status') !== '40')) {
head_record.set('bp_name_sp', null);
head_record.set('card_type_sp', null);
head_record.set('card_type_sp_n', null);
head_record.set('id_no_sp', null);
head_record.set('date_of_birth_sp', null);
head_record.set('cell_phone_sp', null);
head_record.set('work_unit_phone_sp', null);
head_record.set('work_unit_name_sp', null);
head_record.set('work_unit_address_sp', null);
}
check_flag = true;
return check_flag;
};
//保存submitsuccess调用 //保存submitsuccess调用
window['${/parameter/@layout_code}_on_layout_dynamic_submitsuccess'] = function(ds, record, res, bp_seq) { window['${/parameter/@layout_code}_on_layout_dynamic_submitsuccess'] = function (ds, record, res, bp_seq) {
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master'); var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master');
var head_record = $(ds_id).getCurrentRecord(); var head_record = $(ds_id).getCurrentRecord();
if(!head_record.get('bp_code')){ if (!head_record.get('bp_code')) {
window['${/parameter/@layout_code}_lock_layout_dynamic_window'](); window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
Leaf.request({ Leaf.request({
url: $('get_special_fields_link_id').getUrl(), url: $('get_special_fields_link_id').getUrl(),
para: { para: {
bp_id:head_record.get('bp_id') bp_id: head_record.get('bp_id')
}, },
success: function (res) { success: function (res) {
var document_number = res.result.document_number; var document_number = res.result.document_number;
head_record.set('bp_code',document_number); head_record.set('bp_code', document_number);
window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
}, },
...@@ -413,8 +382,6 @@ ...@@ -413,8 +382,6 @@
var gird_ds_id = 'BP_NP_CREATE_BP_ASSETS01_hls_bp_assets_ds'; var gird_ds_id = 'BP_NP_CREATE_BP_ASSETS01_hls_bp_assets_ds';
var gird_ds_id2 = 'BP_NP_CREATE_BP_ASSETS04_hls_bp_assets_ds'; var gird_ds_id2 = 'BP_NP_CREATE_BP_ASSETS04_hls_bp_assets_ds';
var gird_ds_id3 = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_bank_flow'); var gird_ds_id3 = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_bank_flow');
var gird_ds_id4 = 'BP_NP_CREATE_F_SPOUSE_1_hls_bp_master_ds';
var gird_ds_id5 = 'BP_NP_CREATE_F_SPOUSE_hls_bp_master_ds';
if (gird_ds_id == ds.id || gird_ds_id2 == ds.id) { if (gird_ds_id == ds.id || gird_ds_id2 == ds.id) {
if (name == 'relationship_with_bp') { if (name == 'relationship_with_bp') {
if (value == 'A7501') { if (value == 'A7501') {
...@@ -457,8 +424,11 @@ ...@@ -457,8 +424,11 @@
if (record.get('id_type') == 'ID_CARD') { if (record.get('id_type') == 'ID_CARD') {
if (!checkCard(value)) { if (!checkCard(value)) {
Leaf.showMessage('${l:HLS.PROMPT}', '个人身份证号错误!'); Leaf.showMessage('${l:HLS.PROMPT}', '个人身份证号错误!');
setTimeout(function () {
record.set('id_card_no', '');
}, 20);
return false; return false;
}else{ } else {
if (value.length == 18) { if (value.length == 18) {
record.set('date_of_birth', new Date(value.substr(6, 4) + '/' + value.substr(10, 2) + '/' + value.substr(12, 2))); record.set('date_of_birth', new Date(value.substr(6, 4) + '/' + value.substr(10, 2) + '/' + value.substr(12, 2)));
record.set('age', new Date().getFullYear() - value.substr(6, 4)); record.set('age', new Date().getFullYear() - value.substr(6, 4));
...@@ -473,13 +443,11 @@ ...@@ -473,13 +443,11 @@
} }
} }
} }
// ds.fields.id_card_no.pro.validator = id_card_no_validate; // ds.fields.id_card_no.pro.validator = id_card_no_validate;
//自动带出籍贯 //自动带出籍贯
// record.set('resident_addres', get_native_place(value)) // record.set('resident_addres', get_native_place(value))
} }
if (name == 'id_no_sp') { if (name == 'id_no_sp' && value) {
if (!value) { if (!value) {
record.set('ccx_resmsg1', ''); record.set('ccx_resmsg1', '');
...@@ -488,8 +456,11 @@ ...@@ -488,8 +456,11 @@
if (record.get('card_type_sp') == 'ID_CARD') { if (record.get('card_type_sp') == 'ID_CARD') {
if (!checkCard(value)) { if (!checkCard(value)) {
Leaf.showMessage('${l:HLS.PROMPT}', '配偶身份证号错误!'); Leaf.showMessage('${l:HLS.PROMPT}', '配偶身份证号错误!');
setTimeout(function () {
record.set('id_no_sp', '');
}, 20);
return false; return false;
}else{ } else {
if (value.length == 18) { if (value.length == 18) {
record.set('date_of_birth_sp', new Date(value.substr(6, 4) + '/' + value.substr(10, 2) + '/' + value.substr(12, 2))); record.set('date_of_birth_sp', new Date(value.substr(6, 4) + '/' + value.substr(10, 2) + '/' + value.substr(12, 2)));
} }
...@@ -509,69 +480,72 @@ ...@@ -509,69 +480,72 @@
var id_card_no_leg = record.get('id_card_no_leg'); var id_card_no_leg = record.get('id_card_no_leg');
if (!checkCard(id_card_no_leg)) { if (!checkCard(id_card_no_leg)) {
Leaf.showMessage('${l:HLS.PROMPT}', '法人代表身份证号格式错误!'); Leaf.showMessage('${l:HLS.PROMPT}', '法人代表身份证号格式错误!');
setTimeout(function () {
record.set('id_card_no_leg', '');
}, 20);
return false; return false;
} }
} }
if (name == 'social_code') { if (name == 'social_code' && value) {
if (!CheckSocialCreditCode(value)) { if (!CheckSocialCreditCode(value)) {
Leaf.showMessage('提示', '统一社会信用代码有误,请重新输入!'); Leaf.showMessage('提示', '统一社会信用代码有误,请重新输入!');
setTimeout(function () {
record.set('social_code', '');
}, 20);
// window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); // window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
return false; return false;
} }
} }
if (name == 'cell_phone' && value) {
if (!checkMobile(value)) {
Leaf.showMessage('提示', '基本信息中,请输入正确格式的手机号码!');
setTimeout(function () {
record.set('cell_phone', '');
}, 20);
return false;
}
}
} }
var test_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_BASIC', 'hls_bp_master');
var test_ds_id1 = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_SPOUSE_1', 'hls_bp_master');
var test_ds_id2 = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_SPOUSE', 'hls_bp_master');
// var org_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_BILLING_1', 'hls_bp_master');
if (ds.id==test_ds_id1||ds.id==test_ds_id2) { if (ds.id == f_bp_create_ds_id) {
var hd_ds = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_BASIC', 'hls_bp_master'); var hd_ds = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_BASIC', 'hls_bp_master');
record = $(hd_ds).getCurrentRecord(); record = $(hd_ds).getCurrentRecord();
if(record.get('marital_status')=='40'){ if (name == 'marital_status') {
if (value == '30' || value == '40') {
var bp2_record = $(test_ds_id1).getCurrentRecord(); document.getElementById('${/parameter/@layout_code}_F_SPOUSE_1_component_id').style.display = 'block';
if(bp2_record){ record.getField('bp_name_sp').setRequired(true);
record.set('bp_name_sp',bp2_record.get('bp_name_sp')); record.getField('card_type_sp').setRequired(true);
record.set('card_type_sp',bp2_record.get('card_type_sp')); record.getField('card_type_sp_n').setRequired(true);
record.set('id_no_sp',bp2_record.get('id_no_sp')); record.getField('id_no_sp').setRequired(true);
record.set('date_of_birth_sp',bp2_record.get('date_of_birth_sp')); if (!record.get('card_type_sp')) {
record.set('cell_phone_sp',bp2_record.get('cell_phone_sp')); record.set('card_type_sp', 'ID_CARD');
record.set('work_unit_phone_sp',bp2_record.get('work_unit_phone_sp')); record.set('card_type_sp_n', '身份证');
record.set('work_unit_name_sp',bp2_record.get('work_unit_name_sp')); }
record.set('work_unit_address_sp',bp2_record.get('work_unit_address_sp')); } else {
record.set('zipcode',bp2_record.get('zipcode')); document.getElementById('${/parameter/@layout_code}_F_SPOUSE_1_component_id').style.display = 'none';
bp2_record.set('marital_status', '40'); record.getField('bp_name_sp').setRequired(false);
} record.getField('card_type_sp').setRequired(false);
}else if(record.get('marital_status')=='30'){ record.getField('card_type_sp_n').setRequired(false);
var bp2_record = $(test_ds_id2).getCurrentRecord(); record.getField('id_no_sp').setRequired(false);
if(bp2_record){ // record.set('bp_name_sp', null);
record.set('bp_name_sp',bp2_record.get('bp_name_sp')); // record.set('card_type_sp', null);
record.set('card_type_sp',bp2_record.get('card_type_sp')); // record.set('card_type_sp_n', null);
record.set('id_no_sp',bp2_record.get('id_no_sp')); // record.set('id_no_sp', null);
record.set('date_of_birth_sp',bp2_record.get('date_of_birth_sp')); // record.set('date_of_birth_sp', null);
record.set('cell_phone_sp',bp2_record.get('cell_phone_sp')); // record.set('cell_phone_sp', null);
record.set('work_unit_phone_sp',bp2_record.get('work_unit_phone_sp')); // record.set('work_unit_phone_sp', null);
record.set('work_unit_name_sp',bp2_record.get('work_unit_name_sp')); // record.set('work_unit_name_sp', null);
record.set('work_unit_address_sp',bp2_record.get('work_unit_address_sp')); // record.set('work_unit_address_sp', null);
record.set('zipcode',bp2_record.get('zipcode'));
bp2_record.set('marital_status', '30');
} }
} } else if (name == 'taxpayer_type' && value) {
if (value == 'SMALL_SCALE_TAXPAYER') {
}
if(ds.id == test_ds_id){
if(name == 'taxpayer_type' && value){
if(value == 'SMALL_SCALE_TAXPAYER'){
record.getField('invoice_bp_address').setRequired(false); record.getField('invoice_bp_address').setRequired(false);
record.getField('invoice_bp_phone_num').setRequired(false); record.getField('invoice_bp_phone_num').setRequired(false);
record.getField('invoice_bp_bank').setRequired(false); record.getField('invoice_bp_bank').setRequired(false);
record.getField('invoice_bp_bank_account').setRequired(false); record.getField('invoice_bp_bank_account').setRequired(false);
record.getField('tax_registry_num').setRequired(false); record.getField('tax_registry_num').setRequired(false);
} }
if(value == 'GENERAL_TAXPAYER'){ if (value == 'GENERAL_TAXPAYER') {
record.getField('invoice_bp_address').setRequired(true); record.getField('invoice_bp_address').setRequired(true);
record.getField('invoice_bp_phone_num').setRequired(true); record.getField('invoice_bp_phone_num').setRequired(true);
record.getField('invoice_bp_bank').setRequired(true); record.getField('invoice_bp_bank').setRequired(true);
...@@ -581,7 +555,6 @@ ...@@ -581,7 +555,6 @@
} }
} }
}; };
function upload_file(id, name, query_only) { function upload_file(id, name, query_only) {
...@@ -653,5 +626,6 @@ ...@@ -653,5 +626,6 @@
}; };
]]></script> ]]></script>
<a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
</a:view> </a:view>
</a:screen> </a:screen>
...@@ -5,7 +5,8 @@ ...@@ -5,7 +5,8 @@
$Revision: 1.0 $Revision: 1.0
$Purpose: 商业伙伴维护 $Purpose: 商业伙伴维护
--> -->
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" dynamiccreateenabled="true" trace="true"> <a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" dynamiccreateenabled="true"
trace="true">
<a:init-procedure> <a:init-procedure>
<a:model-query fetchAll="true" model="prj.PRJ500D.user_agent_description" rootPath="user_agent_description"/> <a:model-query fetchAll="true" model="prj.PRJ500D.user_agent_description" rootPath="user_agent_description"/>
<a:model-query fetchAll="true" model="hls.HLS214N.hls_bp_master_modify_user" rootPath="modify_user"/> <a:model-query fetchAll="true" model="hls.HLS214N.hls_bp_master_modify_user" rootPath="modify_user"/>
...@@ -13,11 +14,13 @@ ...@@ -13,11 +14,13 @@
<a:view> <a:view>
<a:link id="bank_account_num_link" model="hls.HLS214.hls_bp_bank_account_num" modelaction="update"/> <a:link id="bank_account_num_link" model="hls.HLS214.hls_bp_bank_account_num" modelaction="update"/>
<a:link id="bp_agent_modify_link" url="${/request/@context_path}/modules/hls/HLS303/bp_agent_create.lview"/> <a:link id="bp_agent_modify_link" url="${/request/@context_path}/modules/hls/HLS303/bp_agent_create.lview"/>
<script src="${/request/@context_path}/modules/prj/PRJ500N/javascripts/input_validator.js" type="text/javascript"/> <script src="${/request/@context_path}/modules/prj/PRJ500N/javascripts/input_validator.js"
type="text/javascript"/>
<a:link id="${/parameter/@layout_code}_downloadFile_id" url="${/request/@context_path}/uploadFile.lview"/> <a:link id="${/parameter/@layout_code}_downloadFile_id" url="${/request/@context_path}/uploadFile.lview"/>
<a:link id="hls214N_cdd_uploadFile_id" url="${/request/@context_path}/uploadFile.lview"/> <a:link id="hls214N_cdd_uploadFile_id" url="${/request/@context_path}/uploadFile.lview"/>
<a:link id="hls214N_cdd_downloadFile_id" url="${/request/@context_path}/downloadFile.lview"/> <a:link id="hls214N_cdd_downloadFile_id" url="${/request/@context_path}/downloadFile.lview"/>
<a:link id="${/parameter/@layout_code}_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/> <a:link id="${/parameter/@layout_code}_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code"
modelaction="update"/>
<a:link id="hls214_bp_master_save_link_id" model="hls.HLS214.hls_bp_change_agent" modelaction="update"/> <a:link id="hls214_bp_master_save_link_id" model="hls.HLS214.hls_bp_change_agent" modelaction="update"/>
<!-- <a:link id="hls214_sap_eai_create_customer_link" url="${/request/@context_path}/modules/interface/INTERFACE_EAI/hls_sap_eai_CrCustomer.lsc"/>--> <!-- <a:link id="hls214_sap_eai_create_customer_link" url="${/request/@context_path}/modules/interface/INTERFACE_EAI/hls_sap_eai_CrCustomer.lsc"/>-->
<!-- <a:link id="hls214_sap_eai_create_vender_link" url="${/request/@context_path}/modules/interface/INTERFACE_EAI/hls_sap_eai_CrVender.lsc"/>--> <!-- <a:link id="hls214_sap_eai_create_vender_link" url="${/request/@context_path}/modules/interface/INTERFACE_EAI/hls_sap_eai_CrVender.lsc"/>-->
...@@ -25,7 +28,7 @@ ...@@ -25,7 +28,7 @@
<!-- type="text/javascript"></script>--> <!-- type="text/javascript"></script>-->
<script type="text/javascript"><![CDATA[ <script type="text/javascript"><![CDATA[
//保存前调用 //保存前调用
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_before_submit'] = function(ds, record) { window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_before_submit'] = function (ds, record) {
// window['${/parameter/@layout_code}_lock_layout_dynamic_window'](); // window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
// var bp_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master'); // var bp_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master');
...@@ -43,28 +46,34 @@ ...@@ -43,28 +46,34 @@
// } // }
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master'); var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master');
var bp_record = $(ds_id).getCurrentRecord(); var bp_record = $(ds_id).getCurrentRecord();
if(old_id_card != new_id_card){ if (old_id_card != new_id_card) {
bp_record.set('id_card_no_change_flag','Y'); bp_record.set('id_card_no_change_flag', 'Y');
}else{ } else {
bp_record.set('id_card_no_change_flag','N'); bp_record.set('id_card_no_change_flag', 'N');
} }
if(old_bp_name != new_bp_name){ if (old_bp_name != new_bp_name) {
bp_record.set('bp_name_change_flag','Y'); bp_record.set('bp_name_change_flag', 'Y');
}else{ } else {
record.set('bp_name_change_flag','N'); record.set('bp_name_change_flag', 'N');
}
if (bp_record.get('marital_status') && (bp_record.get('marital_status') !== '30' && bp_record.get('marital_status') !== '40')) {
bp_record.set('bp_name_sp', null);
bp_record.set('card_type_sp', null);
bp_record.set('card_type_sp_n', null);
bp_record.set('id_no_sp', null);
bp_record.set('date_of_birth_sp', null);
bp_record.set('cell_phone_sp', null);
bp_record.set('work_unit_phone_sp', null);
bp_record.set('work_unit_name_sp', null);
bp_record.set('work_unit_address_sp', null);
return true;
} }
var test_ds_id1 = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_SPOUSE_1', 'hls_bp_master'); return true;
var test_ds_id2 = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_SPOUSE', 'hls_bp_master');
//var records = $(test_ds_id1);
//var record=$(records).getCurrentRecord();
//var records = $(test_ds_id2);
//var record=$(records).getAll();
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
}; };
...@@ -105,7 +114,7 @@ ...@@ -105,7 +114,7 @@
} }
//保存submitsuccess调用 //保存submitsuccess调用
window['${/parameter/@layout_code}_on_layout_dynamic_submitsuccess'] = function(ds, record, res, bp_seq) { window['${/parameter/@layout_code}_on_layout_dynamic_submitsuccess'] = function (ds, record, res, bp_seq) {
window['${/parameter/@layout_code}_lock_layout_dynamic_window'](); window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_cdd_item_doc_ref'); var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_cdd_item_doc_ref');
var bp_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master'); var bp_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master');
...@@ -162,7 +171,6 @@ ...@@ -162,7 +171,6 @@
}; };
function prj_check_bp_id(record) { function prj_check_bp_id(record) {
var bp_id; var bp_id;
if (record) { if (record) {
...@@ -176,7 +184,7 @@ ...@@ -176,7 +184,7 @@
} }
//财务报表模板导入 //财务报表模板导入
window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function() { window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function () {
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master'); var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master');
var record = $(ds_id).getCurrentRecord(); var record = $(ds_id).getCurrentRecord();
...@@ -198,7 +206,7 @@ ...@@ -198,7 +206,7 @@
}; };
//财务报表模板查看 //财务报表模板查看
window['${/parameter/@layout_code}_user_button2_layout_dynamic_click'] = function() { window['${/parameter/@layout_code}_user_button2_layout_dynamic_click'] = function () {
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master'); var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master');
var record = $(ds_id).getCurrentRecord(); var record = $(ds_id).getCurrentRecord();
var bp_id = prj_check_bp_id(record); var bp_id = prj_check_bp_id(record);
...@@ -244,7 +252,8 @@ ...@@ -244,7 +252,8 @@
var new_bp_name; var new_bp_name;
//新增和加载时调用form //新增和加载时调用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_form_add_and_load'] = function (ds, record, config_records, bp_seq) {
debugger;
// if ((ds.id).indexOf('hls_bp_master_credit') != -1 && (ds.id).indexOf('F_ORG_CREDIT') != -1) { // if ((ds.id).indexOf('hls_bp_master_credit') != -1 && (ds.id).indexOf('F_ORG_CREDIT') != -1) {
// if (ds.fields.fin_institution_code) { // if (ds.fields.fin_institution_code) {
// ds.fields.fin_institution_code.pro.validator = fin_institution_code_validate; // ds.fields.fin_institution_code.pro.validator = fin_institution_code_validate;
...@@ -259,7 +268,7 @@ ...@@ -259,7 +268,7 @@
var employee_type_id = '${/model/modify_user/record/@employee_type_id}'; var employee_type_id = '${/model/modify_user/record/@employee_type_id}';
old_bp_name = record.get('bp_name'); old_bp_name = record.get('bp_name');
new_bp_name = record.get('bp_name'); new_bp_name = record.get('bp_name');
if(record.get('id_type') == 'ID_CARD'){ if (record.get('id_type') == 'ID_CARD') {
old_id_card = record.get('id_card_no'); old_id_card = record.get('id_card_no');
new_id_card = record.get('id_card_no'); new_id_card = record.get('id_card_no');
} }
...@@ -267,21 +276,32 @@ ...@@ -267,21 +276,32 @@
if (record.get('bp_category') == 'VENDER') { if (record.get('bp_category') == 'VENDER') {
record.getField('unit_id_n').setReadOnly(true); record.getField('unit_id_n').setReadOnly(true);
record.getField('unit_id_n').setRequired(false); record.getField('unit_id_n').setRequired(false);
}else{ } else {
if(employee_type_id == '64'){ if (employee_type_id == '64') {
record.getField('unit_id_n').setReadOnly(true); record.getField('unit_id_n').setReadOnly(true);
record.getField('unit_id_n').setRequired(false); record.getField('unit_id_n').setRequired(false);
}else{ } else {
record.getField('unit_id_n').setReadOnly(true); record.getField('unit_id_n').setReadOnly(true);
record.getField('unit_id_n').setRequired(false); record.getField('unit_id_n').setRequired(false);
} }
} }
if(record.get('bp_class')&&record.get('bp_class')=='NP'){
if (record.get('marital_status') && (record.get('marital_status') == '30' || record.get('marital_status') == '40')) {
document.getElementById('${/parameter/@layout_code}_F_SPOUSE_1_component_id').style.display = 'block';
record.getField('bp_name_sp').setRequired(true);
record.getField('card_type_sp').setRequired(true);
record.getField('card_type_sp_n').setRequired(true);
record.getField('id_no_sp').setRequired(true);
} else {
document.getElementById('${/parameter/@layout_code}_F_SPOUSE_1_component_id').style.display = 'none';
}
}
} }
}; };
window['${/parameter/@layout_code}_on_layout_dynamic_grid_load'] = function(ds, line_record) { window['${/parameter/@layout_code}_on_layout_dynamic_grid_load'] = function (ds, line_record) {
var dsId = ds.id; var dsId = ds.id;
var base_table_temp = 'hls_bp_master_role_ds'; var base_table_temp = 'hls_bp_master_role_ds';
if (dsId.substring(dsId.length - base_table_temp.length, dsId.length) == base_table_temp) { if (dsId.substring(dsId.length - base_table_temp.length, dsId.length) == base_table_temp) {
...@@ -298,34 +318,30 @@ ...@@ -298,34 +318,30 @@
//更新时调用 add by liukang //更新时调用 add by liukang
//填写银行账号时 允许银行账号相同 但是给一个提示(提示一下而已) //填写银行账号时 允许银行账号相同 但是给一个提示(提示一下而已)
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_update'] = function(ds, record, name, value, old_value, bp_seq) { window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_update'] = function (ds, record, name, value, old_value, bp_seq) {
var f_bp_create_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master'); var f_bp_create_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master');
var gird_ds_id = 'BP_NP_MODIFY_N_BP_ASSETS01_hls_bp_assets_ds'; var gird_ds_id = 'BP_NP_MODIFY_N_BP_ASSETS01_hls_bp_assets_ds';
var gird_ds_id2 = 'BP_NP_MODIFY_N_BP_ASSETS04_hls_bp_assets_ds'; var gird_ds_id2 = 'BP_NP_MODIFY_N_BP_ASSETS04_hls_bp_assets_ds';
var gird_ds_id3 = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_bank_flow'); var gird_ds_id3 = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_bank_flow');
if(gird_ds_id==ds.id||gird_ds_id2==ds.id){ if (gird_ds_id == ds.id || gird_ds_id2 == ds.id) {
if(name=='relationship_with_bp'){ if (name == 'relationship_with_bp') {
if(value=='A7501'){ if (value == 'A7501') {
record.set('owership',$(f_bp_create_ds_id).getAt(0).get('bp_name')); record.set('owership', $(f_bp_create_ds_id).getAt(0).get('bp_name'));
} } else if (value == 'A7502') {
else if(value=='A7502'){ record.set('owership', $(f_bp_create_ds_id).getAt(0).get('bp_name_sp'));
record.set('owership',$(f_bp_create_ds_id).getAt(0).get('bp_name_sp')); } else {
} record.set('owership', '');
else {
record.set('owership','');
} }
} }
} }
if(gird_ds_id3==ds.id){ if (gird_ds_id3 == ds.id) {
if(name=='relationship_with_bp'){ if (name == 'relationship_with_bp') {
if(value=='A7501'){ if (value == 'A7501') {
record.set('owner_name',$(f_bp_create_ds_id).getAt(0).get('bp_name')); record.set('owner_name', $(f_bp_create_ds_id).getAt(0).get('bp_name'));
} } else if (value == 'A7502') {
else if(value=='A7502'){ record.set('owner_name', $(f_bp_create_ds_id).getAt(0).get('bp_name_sp'));
record.set('owner_name',$(f_bp_create_ds_id).getAt(0).get('bp_name_sp')); } else {
} record.set('owner_name', '');
else {
record.set('owner_name','');
} }
} }
} }
...@@ -350,7 +366,7 @@ ...@@ -350,7 +366,7 @@
var bp_record = $(hls_bp_master_ds_id).getCurrentRecord(); var bp_record = $(hls_bp_master_ds_id).getCurrentRecord();
if ((ds.id).indexOf('hls_bp_master') != -1 && (ds.id).indexOf('F_BASIC') != -1) { if ((ds.id).indexOf('hls_bp_master') != -1 && (ds.id).indexOf('F_BASIC') != -1) {
if(name == 'bp_name'){ if (name == 'bp_name') {
new_bp_name = record.get('bp_name'); new_bp_name = record.get('bp_name');
} }
...@@ -361,24 +377,16 @@ ...@@ -361,24 +377,16 @@
record.getField('parent_id_n').setReadOnly(true); record.getField('parent_id_n').setReadOnly(true);
} }
} }
if(name == 'social_code') { if (name == 'social_code') {
if (!CheckSocialCreditCode(value)) { if (!CheckSocialCreditCode(value)) {
Leaf.showMessage('提示', '统一社会信用代码有误,请重新输入!'); Leaf.showMessage('提示', '统一社会信用代码有误,请重新输入!');
// window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); setTimeout(function () {
record.set('social_code', '');
}, 20);
return false; return false;
} }
} }
} }
//if (ds.id == hls_bp_master_credit_ds_id){
// if (name == 'trade_type_code'){
// var trade_type_code = record.get('trade_type_code');
// if(trade_type_code != trade_type_code.toLowerCase()){
// record.set('trade_type_code',trade_type_code.toLowerCase());
// setTimeout(function() {Leaf.Masker.unmask(Ext.getBody());
// }, 500);
// }
// }
//}
if (ds.id == hls_bp_master_ds_id) { if (ds.id == hls_bp_master_ds_id) {
if ($L.CmpManager.get(hls_bp_master_ds_id)) { if ($L.CmpManager.get(hls_bp_master_ds_id)) {
if (name == 'province_id') { if (name == 'province_id') {
...@@ -386,9 +394,7 @@ ...@@ -386,9 +394,7 @@
record.set('city_sp_n', ''); record.set('city_sp_n', '');
} }
} }
} }
if (ds.id == hls_bank_acc_ds_id) { if (ds.id == hls_bank_acc_ds_id) {
var bank_account_num = record.get('bank_account_num'); var bank_account_num = record.get('bank_account_num');
if (name == 'bank_account_num') { if (name == 'bank_account_num') {
...@@ -397,31 +403,23 @@ ...@@ -397,31 +403,23 @@
para: { para: {
bank_account_num: bank_account_num bank_account_num: bank_account_num
}, },
success: function(res) { success: function (res) {
var number = res.result.num; var number = res.result.num;
//alert(number); //alert(number);
if (number > 0) { if (number > 0) {
Leaf.showMessage('提示', '该银行账号在系统中已存在!'); Leaf.showMessage('提示', '该银行账号在系统中已存在!');
} }
}, },
failure: function(res) {}, failure: function (res) {
error: function() {}, },
error: function () {
},
scope: this scope: this
}); });
} }
} }
// if (ds.id == hls_bp_master_ds_id && hls_bp_master_ds_id) {
//
// if (name == 'id_card_no') {
// // record = $(hls_bp_master_ds_id).getCurrentRecord();
// // var id_num = record.get('id_card_no');
// // var bp_age = getAge(id_num);
// // record.set('age', bp_age);
// ds.fields.id_card_no.pro.validator = gur_id_card_no_validate;
// }
// }
if ((ds.id).indexOf('hls_bp_master') != -1) { if ((ds.id).indexOf('hls_bp_master') != -1) {
// //身份证验证 // //身份证验证
// if (ds.fields.id_card_no && bp_record.get('bp_class') == 'NP' && bp_record.get('id_type') == 'ID_CARD') { // if (ds.fields.id_card_no && bp_record.get('bp_class') == 'NP' && bp_record.get('id_type') == 'ID_CARD') {
...@@ -432,25 +430,32 @@ ...@@ -432,25 +430,32 @@
if (name == 'cell_phone') { if (name == 'cell_phone') {
if (!checkMobile(value)) { if (!checkMobile(value)) {
Leaf.showMessage('提示', '基本信息中,请输入正确格式的手机号码!'); Leaf.showMessage('提示', '基本信息中,请输入正确格式的手机号码!');
return '请输入正确格式的手机号码'; setTimeout(function () {
record.set('cell_phone', '');
}, 20);
return false;
} }
} }
if (name == 'leader_mobile_number') { if (name == 'leader_mobile_number') {
if (!checkMobile(value)) { if (!checkMobile(value)) {
Leaf.showMessage('提示', '公司负责人中,请输入正确格式的手机号码!'); Leaf.showMessage('提示', '公司负责人中,请输入正确格式的手机号码!');
return '请输入正确格式的手机号码'; setTimeout(function () {
record.set('leader_mobile_number', '');
}, 20);
return false;
} }
} }
if (name == 'id_card_no') { if (name == 'id_card_no' && value) {
if(record.get('id_type') == 'ID_CARD') { if (record.get('id_type') == 'ID_CARD') {
if (!checkCard(value)) { if (!checkCard(value)) {
Leaf.showMessage('提示', '基本信息中,请输入正确格式的身份证!'); Leaf.showMessage('提示', '基本信息中,请输入正确格式的身份证!');
return '请输入正确格式的身份证'; setTimeout(function () {
record.set('id_card_no', '');
}, 20);
return false;
} else if (value.length == 18) { } else if (value.length == 18) {
new_id_card = record.get('id_card_no'); new_id_card = record.get('id_card_no');
//自动带出籍贯 //自动带出籍贯
record.set('resident_addres', get_native_place(value)); record.set('resident_addres', get_native_place(value));
record.set('date_of_birth', new Date(value.substr(6, 4) + '/' + value.substr(10, 2) + '/' + value.substr(12, 2))); record.set('date_of_birth', new Date(value.substr(6, 4) + '/' + value.substr(10, 2) + '/' + value.substr(12, 2)));
...@@ -467,17 +472,20 @@ ...@@ -467,17 +472,20 @@
} }
} }
if (name == 'id_no_sp') { if (name == 'id_no_sp' && value) {
// //
if (record.get('card_type_sp') == 'ID_CARD') { if (record.get('card_type_sp') == 'ID_CARD') {
if (!checkCard(value)) { if (!checkCard(value)) {
Leaf.showMessage('提示', '配偶信息中,请输入正确格式的身份证!'); Leaf.showMessage('提示', '配偶信息中,请输入正确格式的身份证!');
return '请输入正确格式的身份证'; setTimeout(function () {
record.set('id_no_sp', '');
}, 20);
return false;
} else if (value.length == 18) { } else if (value.length == 18) {
new_id_card = record.get('id_card_no_leg'); new_id_card = record.get('id_card_no_leg');
record.set('resident_addres_sp',get_native_place(value)); record.set('resident_addres_sp', get_native_place(value));
record.set('date_of_birth', new Date(value.substr(6, 4) + '/' + value.substr(10, 2) + '/' + value.substr(12, 2))); record.set('date_of_birth', new Date(value.substr(6, 4) + '/' + value.substr(10, 2) + '/' + value.substr(12, 2)));
record.set('age', new Date().getFullYear() - value.substr(6, 4)); record.set('age', new Date().getFullYear() - value.substr(6, 4));
if (value.substr(16, 1) % 2 == 1) { if (value.substr(16, 1) % 2 == 1) {
...@@ -498,29 +506,43 @@ ...@@ -498,29 +506,43 @@
var test_ds_id1 = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_SPOUSE_1', 'hls_bp_master'); var test_ds_id1 = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_SPOUSE_1', 'hls_bp_master');
var test_ds_id2 = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_SPOUSE', 'hls_bp_master'); var test_ds_id2 = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_SPOUSE', 'hls_bp_master');
if (ds.id==test_ds_id1||ds.id==test_ds_id2) { if (ds.id == f_bp_create_ds_id) {
record = $(test_ds_id).getCurrentRecord(); var hd_ds = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_BASIC', 'hls_bp_master');
if(record.get('marital_status')=='40'){ record = $(hd_ds).getCurrentRecord();
var test_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_SPOUSE_1', 'hls_bp_master'); if(record.get('bp_class')=='NP'){
var bp2_record = $(test_ds_id).getCurrentRecord(); if (name == 'marital_status') {
bp2_record.set('marital_status', '40'); debugger;
}else if(record.get('marital_status')=='30'){ if (value == '30' || value == '40') {
var test_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_SPOUSE', 'hls_bp_master'); document.getElementById('${/parameter/@layout_code}_F_SPOUSE_1_component_id').style.display = 'block';
var bp2_record = $(test_ds_id).getCurrentRecord(); record.getField('bp_name_sp').setRequired(true);
bp2_record.set('marital_status', '30'); record.getField('card_type_sp').setRequired(true);
} record.getField('card_type_sp_n').setRequired(true);
record.getField('id_no_sp').setRequired(true);
if (!record.get('card_type_sp')) {
record.set('card_type_sp', 'ID_CARD');
record.set('card_type_sp_n', '身份证');
}
} } else {
if(name=='marital_status'&&ds.id==test_ds_id){ document.getElementById('${/parameter/@layout_code}_F_SPOUSE_1_component_id').style.display = 'none';
if ($L.CmpManager.get(test_ds_id1)||$L.CmpManager.get(test_ds_id2)) { record.getField('bp_name_sp').setRequired(false);
var bp2_record = $L.CmpManager.get(test_ds_id1).getCurrentRecord(); record.getField('card_type_sp').setRequired(false);
var bp3_record = $L.CmpManager.get(test_ds_id2).getCurrentRecord(); record.getField('card_type_sp_n').setRequired(false);
bp2_record.set('marital_status', value); record.getField('id_no_sp').setRequired(false);
bp3_record.set('marital_status', value); // record.set('bp_name_sp', null);
// record.set('card_type_sp', null);
// record.set('card_type_sp_n', null);
// record.set('id_no_sp', null);
// record.set('date_of_birth_sp', null);
// record.set('cell_phone_sp', null);
// record.set('work_unit_phone_sp', null);
// record.set('work_unit_name_sp', null);
// record.set('work_unit_address_sp', null);
}
} }
} }
}
}; };
...@@ -543,7 +565,7 @@ ...@@ -543,7 +565,7 @@
height: 400 height: 400
}); });
win.on('close', function() { win.on('close', function () {
record.ds.query(); record.ds.query();
}); });
} else { } else {
...@@ -554,7 +576,7 @@ ...@@ -554,7 +576,7 @@
//超链接渲染 //超链接渲染
window['${/parameter/@layout_code}_dynamic_link_renderer'] = function(value, record, name, config_record) { window['${/parameter/@layout_code}_dynamic_link_renderer'] = function (value, record, name, config_record) {
// //
window['${/parameter/@layout_code}_hls_link_render_record'][record.id + '---' + name] = record; window['${/parameter/@layout_code}_hls_link_render_record'][record.id + '---' + name] = record;
if (name == 'attachment') { if (name == 'attachment') {
...@@ -569,7 +591,7 @@ ...@@ -569,7 +591,7 @@
var link = '${/request/@context_path}/atm_download.lsc?attachment_id='; var link = '${/request/@context_path}/atm_download.lsc?attachment_id=';
var str = value.split(';;'); var str = value.split(';;');
var url = ''; var url = '';
for (var i = 0;i < str.length;i++) { for (var i = 0; i < str.length; i++) {
var temp = str[i].split('--'); var temp = str[i].split('--');
if (!Leaf.isEmpty(temp[0])) { if (!Leaf.isEmpty(temp[0])) {
var file_name = temp[0].toUpperCase(); var file_name = temp[0].toUpperCase();
...@@ -596,7 +618,7 @@ ...@@ -596,7 +618,7 @@
//经销商准入 //经销商准入
window['${/parameter/@layout_code}_user_button4_layout_dynamic_click'] = function() { window['${/parameter/@layout_code}_user_button4_layout_dynamic_click'] = function () {
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master'); var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master');
var record = $(ds_id).getCurrentRecord(); var record = $(ds_id).getCurrentRecord();
...@@ -617,7 +639,7 @@ ...@@ -617,7 +639,7 @@
para: { para: {
'bp_id': record.get('bp_id') 'bp_id': record.get('bp_id')
}, },
success: function(res) { success: function (res) {
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window'](); window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
var param = {}; var param = {};
param['function_code'] = 'HLS303'; param['function_code'] = 'HLS303';
...@@ -632,10 +654,10 @@ ...@@ -632,10 +654,10 @@
hls_doc_get_layout_code('${/parameter/@layout_code}_get_layout_code_link_id', param, 'bp_agent_modify_link', ds_id, '${/parameter/@layout_code}'); hls_doc_get_layout_code('${/parameter/@layout_code}_get_layout_code_link_id', param, 'bp_agent_modify_link', ds_id, '${/parameter/@layout_code}');
}, },
failure: function(res) { failure: function (res) {
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window'](); window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
}, },
error: function() { error: function () {
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window'](); window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
}, },
scope: this scope: this
...@@ -680,5 +702,6 @@ ...@@ -680,5 +702,6 @@
} }
}*/ }*/
]]></script> ]]></script>
<a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
</a:view> </a:view>
</a:screen> </a:screen>
\ No newline at end of file
...@@ -15,8 +15,10 @@ ...@@ -15,8 +15,10 @@
window['${/parameter/@layout_code}_on_layout_dynamic_grid_load'] = function(ds, line_record) { window['${/parameter/@layout_code}_on_layout_dynamic_grid_load'] = function(ds, line_record) {
if (ds.id.indexOf('hls_bp_master_role') != -1) { if (ds.id.indexOf('hls_bp_master_role') != -1) {
var record = ds.getCurrentRecord(); var record = ds.getCurrentRecord();
record.getField('bp_type_n').setReadOnly(true); if(record) {
record.getField('enabled_flag').setReadOnly(true); record.getField('bp_type_n').setReadOnly(true);
record.getField('enabled_flag').setReadOnly(true);
}
} }
} }
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -122,6 +122,7 @@ ...@@ -122,6 +122,7 @@
document_id: parent_pk_value, document_id: parent_pk_value,
document_category: 'PROJECT', document_category: 'PROJECT',
maintain_type: 'MODIFY', maintain_type: 'MODIFY',
business_type: head_record.get('business_type'),
calc_session_id: res.result.record.calc_session_id, calc_session_id: res.result.record.calc_session_id,
quotation_id: quotation_id, quotation_id: quotation_id,
dsId: quotation_ds_id, dsId: quotation_ds_id,
...@@ -164,6 +165,7 @@ ...@@ -164,6 +165,7 @@
document_id: parent_pk_value, document_id: parent_pk_value,
document_category: 'PROJECT', document_category: 'PROJECT',
maintain_type: 'MODIFY', maintain_type: 'MODIFY',
business_type: head_record.get('business_type'),
calc_session_id: record.get('calc_session_id'), calc_session_id: record.get('calc_session_id'),
quotation_id: record.get('quotation_id'), quotation_id: record.get('quotation_id'),
dsId: quotation_ds_id, dsId: quotation_ds_id,
...@@ -210,6 +212,7 @@ ...@@ -210,6 +212,7 @@
document_id: parent_pk_value, document_id: parent_pk_value,
document_category: 'PROJECT', document_category: 'PROJECT',
maintain_type: 'MODIFY', maintain_type: 'MODIFY',
business_type: head_record.get('business_type'),
calc_session_id: res.result.record.calc_session_id, calc_session_id: res.result.record.calc_session_id,
quotation_id: quotation_id, quotation_id: quotation_id,
dsId: quotation_ds_id, dsId: quotation_ds_id,
...@@ -313,6 +316,7 @@ ...@@ -313,6 +316,7 @@
var bp_rate_flag; var bp_rate_flag;
/*保存前调用,生成项目编号*/ /*保存前调用,生成项目编号*/
window['${/parameter/@layout_code}_on_layout_dynamic_before_submit'] = function (ds, record) { window['${/parameter/@layout_code}_on_layout_dynamic_before_submit'] = function (ds, record) {
var check_flag = true;
var prj_project_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project'); var prj_project_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project');
var prj_record = $(prj_project_ds_id).getAt(0); var prj_record = $(prj_project_ds_id).getAt(0);
...@@ -349,6 +353,7 @@ ...@@ -349,6 +353,7 @@
para: { para: {
document_category: '${/parameter/@document_category}', document_category: '${/parameter/@document_category}',
document_type: record.get('document_type'), document_type: record.get('document_type'),
business_type: record.get('business_type'),
function_code: '${/parameter/@function_code}', function_code: '${/parameter/@function_code}',
function_usage: '${/parameter/@function_usage}', function_usage: '${/parameter/@function_usage}',
lease_channel: prj_record.get('lease_channel'), lease_channel: prj_record.get('lease_channel'),
...@@ -537,6 +542,48 @@ ...@@ -537,6 +542,48 @@
return returnAge;//返回周岁年龄   return returnAge;//返回周岁年龄  
} }
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_form_add_and_load'] = function (ds, record, config_records, bp_seq) {
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project');
if (ds_id == ds.id && ds_id) {
if (record.get('secondary_lease') == 'YES') {
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt').style.display = 'block';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID').style.display = 'block';
record.getField('repur_contract_id').setRequired(true);
record.getField('repur_contract_id_n').setRequired(true);
record.getField('repur_contract_id').setReadOnly(false);
record.getField('repur_contract_id_n').setReadOnly(false);
}else if(record.get('secondary_lease') == 'NO'){
record.getField('repur_contract_id').setRequired(false);
record.getField('repur_contract_id_n').setRequired(false);
record.getField('repur_contract_id').setReadOnly(true);
record.getField('repur_contract_id_n').setReadOnly(true);
record.set('repur_contract_id',null);
record.set('repur_contract_id_n',null);
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID').style.display = 'none';
}
//业务类型回租时,默认只读“首付款抵扣”选项
if (record.get('business_type') == 'LEASEBACK') {
record.set('payment_deduction', 'DOWN_PAYMENT_DEDUCTION');
record.set('payment_deduction_n', "首付款抵扣");
record.getField('payment_deduction').setReadOnly(true);
record.getField('payment_deduction_n').setReadOnly(true);
record.set('pay_method', 'WIRE_TRANSFER');
record.set('pay_method_n', "电汇");
record.getField('pay_method').setReadOnly(true);
record.getField('pay_method_n').setReadOnly(true);
record.getField('bank_account_id').setReadOnly(true);
record.getField('bank_account_id_n').setReadOnly(true);
record.getField('bank_account_id').setRequired(false);
record.getField('bank_account_id_n').setRequired(false);
}
}
};
//更新时调用 //更新时调用
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_update'] = function (ds, record, name, value, old_value, bp_seq) { window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_update'] = function (ds, record, name, value, old_value, bp_seq) {
var prj_project_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project'); var prj_project_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project');
...@@ -545,6 +592,17 @@ ...@@ -545,6 +592,17 @@
//选择承租人带出开票信息 //选择承租人带出开票信息
if (prj_project_ds_id == ds.id && prj_project_ds_id) { if (prj_project_ds_id == ds.id && prj_project_ds_id) {
if (name == "payment_deduction" && value=="DOWN_PAYMENT_DEDUCTION") {
//业务类型回租时,默认只读“首付款抵扣”选项
if ($(prj_project_ds_id).getAt(0).get('business_type') == 'LEASE') {
Leaf.showInfoMessage("提示", "直租业务不能选择首付款抵扣");
setTimeout(function () {
$(prj_project_ds_id).getAt(0).set('payment_deduction', null);
$(prj_project_ds_id).getAt(0).set('payment_deduction_n', null);
}, 10);
}
}
if (name == "bp_id_tenant_n" && value) { if (name == "bp_id_tenant_n" && value) {
var bp_id_tenant = record.get('bp_id_tenant'); var bp_id_tenant = record.get('bp_id_tenant');
Leaf.Masker.mask(Ext.getBody()); Leaf.Masker.mask(Ext.getBody());
...@@ -650,6 +708,28 @@ ...@@ -650,6 +708,28 @@
} }
} }
//add by niminmin
//当“二次租赁”字段选择‘是’时,“回购合同编号”字段为必填。当选择‘否’时,“回购合同编号”字段为只读。
if (name == 'secondary_lease') {
if (value=='YES') {
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt').style.display = 'block';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID').style.display = 'block';
record.getField('repur_contract_id').setRequired(true);
record.getField('repur_contract_id_n').setRequired(true);
record.getField('repur_contract_id').setReadOnly(false);
record.getField('repur_contract_id_n').setReadOnly(false);
}else if(value=='NO'){
record.getField('repur_contract_id').setRequired(false);
record.getField('repur_contract_id_n').setRequired(false);
record.getField('repur_contract_id').setReadOnly(true);
record.getField('repur_contract_id_n').setReadOnly(true);
record.set('repur_contract_id',null);
record.set('repur_contract_id_n',null);
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID').style.display = 'none';
}
}
} }
......
...@@ -104,7 +104,7 @@ ...@@ -104,7 +104,7 @@
} }
} else { } else {
Leaf.showMessage('${l:PROMPT}', '报价有变动请重新计算!'); Leaf.showMessage('${l:PROMPT}', '报价有变动请重新计算!');
return;
} }
}); });
}; };
...@@ -178,13 +178,14 @@ ...@@ -178,13 +178,14 @@
var win = new Leaf.Window({ var win = new Leaf.Window({
id: 'hls_fin_calc_quotation_link_winid', id: 'hls_fin_calc_quotation_link_winid',
params: { params: {
layout_code:'${/parameter/@layout_code}', layout_code: '${/parameter/@layout_code}',
document_id: parent_pk_value, document_id: parent_pk_value,
price_list: price_list, price_list: price_list,
secondary_lease: secondary_lease, secondary_lease: secondary_lease,
payment_deduction: payment_deduction, payment_deduction: payment_deduction,
document_category: 'PROJECT', document_category: 'PROJECT',
maintain_type: 'MODIFY', maintain_type: 'MODIFY',
business_type: head_record.get('business_type'),
calc_session_id: res.result.record.calc_session_id, calc_session_id: res.result.record.calc_session_id,
quotation_id: quotation_id, quotation_id: quotation_id,
dsId: quotation_ds_id, dsId: quotation_ds_id,
...@@ -223,13 +224,14 @@ ...@@ -223,13 +224,14 @@
var win = new Leaf.Window({ var win = new Leaf.Window({
id: 'hls_fin_calc_quotation_update_link_winid', id: 'hls_fin_calc_quotation_update_link_winid',
params: { params: {
layout_code:'${/parameter/@layout_code}', layout_code: '${/parameter/@layout_code}',
document_id: parent_pk_value, document_id: parent_pk_value,
price_list: price_list, price_list: price_list,
secondary_lease: secondary_lease, secondary_lease: secondary_lease,
payment_deduction: payment_deduction, payment_deduction: payment_deduction,
document_category: 'PROJECT', document_category: 'PROJECT',
maintain_type: 'MODIFY', maintain_type: 'MODIFY',
business_type: head_record.get('business_type'),
calc_session_id: record.get('calc_session_id'), calc_session_id: record.get('calc_session_id'),
quotation_id: record.get('quotation_id'), quotation_id: record.get('quotation_id'),
dsId: quotation_ds_id, dsId: quotation_ds_id,
...@@ -274,13 +276,14 @@ ...@@ -274,13 +276,14 @@
var win = new Leaf.Window({ var win = new Leaf.Window({
id: 'hls_fin_calc_quotation_link_winid', id: 'hls_fin_calc_quotation_link_winid',
params: { params: {
layout_code:'${/parameter/@layout_code}', layout_code: '${/parameter/@layout_code}',
document_id: parent_pk_value, document_id: parent_pk_value,
price_list: price_list, price_list: price_list,
secondary_lease: secondary_lease, secondary_lease: secondary_lease,
payment_deduction: payment_deduction, payment_deduction: payment_deduction,
document_category: 'PROJECT', document_category: 'PROJECT',
maintain_type: 'MODIFY', maintain_type: 'MODIFY',
business_type: head_record.get('business_type'),
calc_session_id: res.result.record.calc_session_id, calc_session_id: res.result.record.calc_session_id,
quotation_id: quotation_id, quotation_id: quotation_id,
dsId: quotation_ds_id, dsId: quotation_ds_id,
...@@ -481,14 +484,20 @@ ...@@ -481,14 +484,20 @@
if (record.get('bp_category') == 'TENANT') { if (record.get('bp_category') == 'TENANT') {
//实际为不选中 //实际为不选中
Leaf.showMessage('${l:HLS.PROMPT}', '无法删除主承租人!'); Leaf.showMessage('${l:HLS.PROMPT}', '无法删除主承租人!');
ds.unSelect(record); //ds.unSelect(record);
ds.Select(record); //ds.select(record);
setTimeout(function () {
ds.unSelect(record);
}, 1);
} }
if (record.get('bp_category') == 'AGENT') { if (record.get('bp_category') == 'AGENT') {
//实际为不选中 //实际为不选中
Leaf.showMessage('${l:HLS.PROMPT}', '无法删除经销商!'); Leaf.showMessage('${l:HLS.PROMPT}', '无法删除经销商!');
ds.unSelect(record); // ds.unSelect(record);
ds.Select(record); // ds.select(record);
setTimeout(function () {
ds.unSelect(record);
}, 1);
} }
} }
}; };
...@@ -540,6 +549,17 @@ ...@@ -540,6 +549,17 @@
//选择承租人带出开票信息 //选择承租人带出开票信息
if (prj_project_ds_id == ds.id && prj_project_ds_id) { if (prj_project_ds_id == ds.id && prj_project_ds_id) {
if (name == "payment_deduction" && value == "DOWN_PAYMENT_DEDUCTION") {
//业务类型回租时,默认只读“首付款抵扣”选项
if ($(prj_project_ds_id).getAt(0).get('business_type') == 'LEASE') {
Leaf.showInfoMessage("提示", "直租业务不能选择首付款抵扣");
setTimeout(function () {
$(prj_project_ds_id).getAt(0).set('payment_deduction', null);
$(prj_project_ds_id).getAt(0).set('payment_deduction_n', null);
}, 10);
}
}
if (name == "bp_id_tenant_n" && value) { if (name == "bp_id_tenant_n" && value) {
var bp_id_tenant = record.get('bp_id_tenant'); var bp_id_tenant = record.get('bp_id_tenant');
Leaf.Masker.mask(Ext.getBody()); Leaf.Masker.mask(Ext.getBody());
...@@ -677,6 +697,28 @@ ...@@ -677,6 +697,28 @@
} }
record.getField('bank_account_id').setLovPara('bp_id_tenant', record.get('bp_id_tenant')); record.getField('bank_account_id').setLovPara('bp_id_tenant', record.get('bp_id_tenant'));
} }
//add by niminmin
//当“二次租赁”字段选择‘是’时,“回购合同编号”字段为必填。当选择‘否’时,“回购合同编号”字段为只读。
if (name == 'secondary_lease') {
if (value == 'YES') {
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt').style.display = 'block';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID').style.display = 'block';
record.getField('repur_contract_id').setRequired(true);
record.getField('repur_contract_id_n').setRequired(true);
record.getField('repur_contract_id').setReadOnly(false);
record.getField('repur_contract_id_n').setReadOnly(false);
} else if (value == 'NO') {
record.getField('repur_contract_id').setRequired(false);
record.getField('repur_contract_id_n').setRequired(false);
record.getField('repur_contract_id').setReadOnly(true);
record.getField('repur_contract_id_n').setReadOnly(true);
record.set('repur_contract_id', null);
record.set('repur_contract_id_n', null);
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID').style.display = 'none';
}
}
} }
if (score_ds_id == ds.id) { if (score_ds_id == ds.id) {
...@@ -743,6 +785,51 @@ ...@@ -743,6 +785,51 @@
record.getField('bank_account_id').setRequired(false); record.getField('bank_account_id').setRequired(false);
record.getField('bank_account_id_n').setRequired(false); record.getField('bank_account_id_n').setRequired(false);
} }
if ('${/parameter/@function_usage}' != 'QUERY') {
if (record.get('secondary_lease') == 'YES') {
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt').style.display = 'block';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID').style.display = 'block';
record.getField('repur_contract_id').setRequired(true);
record.getField('repur_contract_id_n').setRequired(true);
record.getField('repur_contract_id').setReadOnly(false);
record.getField('repur_contract_id_n').setReadOnly(false);
} else if (record.get('secondary_lease') == 'NO') {
record.getField('repur_contract_id').setRequired(false);
record.getField('repur_contract_id_n').setRequired(false);
record.getField('repur_contract_id').setReadOnly(true);
record.getField('repur_contract_id_n').setReadOnly(true);
record.set('repur_contract_id', null);
record.set('repur_contract_id_n', null);
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID').style.display = 'none';
}
} else {
if (record.get('secondary_lease') == 'YES') {
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt').style.display = 'block';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID').style.display = 'block';
} else if (record.get('secondary_lease') == 'NO') {
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID').style.display = 'none';
}
}
//业务类型回租时,默认只读“首付款抵扣”选项
if (record.get('business_type') == 'LEASEBACK') {
record.set('payment_deduction', 'DOWN_PAYMENT_DEDUCTION');
record.set('payment_deduction_n', "首付款抵扣");
record.getField('payment_deduction').setReadOnly(true);
record.getField('payment_deduction_n').setReadOnly(true);
record.set('pay_method', 'WIRE_TRANSFER');
record.set('pay_method_n', "电汇");
record.getField('pay_method').setReadOnly(true);
record.getField('pay_method_n').setReadOnly(true);
record.getField('bank_account_id').setReadOnly(true);
record.getField('bank_account_id_n').setReadOnly(true);
record.getField('bank_account_id').setRequired(false);
record.getField('bank_account_id_n').setRequired(false);
}
} }
var score_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_TENANT_SCORE_INFO', 'bp_tenant_rate_detail'); var score_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_TENANT_SCORE_INFO', 'bp_tenant_rate_detail');
if (score_ds_id == ds.id) { if (score_ds_id == ds.id) {
...@@ -788,7 +875,7 @@ ...@@ -788,7 +875,7 @@
$(billing_ds_id).query(); $(billing_ds_id).query();
}) });
//序号自增 add by lijingjing //序号自增 add by lijingjing
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_add'] = function (ds, record, config_records, bp_seq) { window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_add'] = function (ds, record, config_records, bp_seq) {
//租赁物序号 //租赁物序号
...@@ -876,7 +963,7 @@ ...@@ -876,7 +963,7 @@
} }
} else { } else {
Leaf.showMessage('${l:PROMPT}', '请先保存'); Leaf.showMessage('${l:PROMPT}', '请先保存');
return;
} }
} }
...@@ -919,64 +1006,91 @@ ...@@ -919,64 +1006,91 @@
Leaf.showMessage('${l:PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}'); Leaf.showMessage('${l:PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}');
return; return;
} }
Leaf.request({ if (current_record.get('business_type') == 'LEASE') {
url: $('prj_check_prj_record_link_n').getUrl(), Leaf.request({
para: { url: $('prj_check_prj_record_link_n').getUrl(),
'project_id': project_id para: {
}, 'project_id': project_id
success: function(res) { },
var secondary_lease = res.result.secondary_lease; success: function (res) {
var payment_deduction = res.result.payment_deduction; var secondary_lease = res.result.secondary_lease;
var price_list = res.result.price_list; var payment_deduction = res.result.payment_deduction;
var down_payment_rate_new=res.result.down_payment_rate_new; var price_list = res.result.price_list;
var H16 = record.get('down_payment'); var down_payment_rate_new = res.result.down_payment_rate_new;
var H97 = record.get('third_party_deposit'); var H16 = record.get('down_payment');
var H99 = record.get('other_fee'); var H97 = record.get('third_party_deposit');
var H102 = record.get('other_fee2'); var H99 = record.get('other_fee');
var H102 = record.get('other_fee2');
var show = down_payment_rate_new * 100;
if((price_list=='HL_PRICR_E'||price_list=='HL_PRICR_TEST'||price_list=='HL_PRICR_NTEST'||price_list=='HL_PRICR_EN') && secondary_lease=='NO') { var show = down_payment_rate_new * 100;
if ((div((H16 + H97), (H99 + H102 - H16)).toFixed(2) * 1) < down_payment_rate_new) { if ((price_list == 'HL_PRICR_E' || price_list == 'HL_PRICR_TEST' || price_list == 'HL_PRICR_NTEST' || price_list == 'HL_PRICR_EN') && secondary_lease == 'NO') {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); if ((div((H16 + H97), (H99 + H102 - H16)).toFixed(2) * 1) < down_payment_rate_new) {
Leaf.showMessage('${l:PROMPT}', '首付款比例+首付款保证金比例之和不能低于' + down_payment_rate_new * 100 + '%'); window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
return; Leaf.showMessage('${l:PROMPT}', '首付款比例+首付款保证金比例之和不能低于' + down_payment_rate_new * 100 + '%');
return;
}
} }
} if ($(ds_id).validate()) {
if ($(ds_id).validate()) { Leaf.showConfirm('${HLS.PROMPT}', '确认要提交工作流吗?', function () {
Leaf.showConfirm('${HLS.PROMPT}', '确认要提交工作流吗?', function () { window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
window['${/parameter/@layout_code}_lock_layout_dynamic_window'](); Leaf.request({
Leaf.request({ url: $('prj_approval_link_id').getUrl(),
url: $('prj_approval_link_id').getUrl(), para: {
para: { project_id: project_id
project_id: project_id },
}, scope: this,
scope: this, success: function () {
success: function () { window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); $('${/parameter/@winid}').close();
$('${/parameter/@winid}').close(); },
}, failure: function () {
failure: function () { window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); },
}, error: function () {
error: function () { window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); }
} });
}); });
});
} }
}, },
failure: function() { failure: function () {
unlock_calc_current_window('${l:HLS.SAVING}'); unlock_calc_current_window('${l:HLS.SAVING}');
}, },
error: function() { error: function () {
unlock_calc_current_window('${l:HLS.SAVING}'); unlock_calc_current_window('${l:HLS.SAVING}');
}, },
scope: this scope: this
}); });
} else {
if ($(ds_id).validate()) {
Leaf.showConfirm('${HLS.PROMPT}', '确认要提交工作流吗?', function () {
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
Leaf.request({
url: $('prj_approval_link_id').getUrl(),
para: {
project_id: project_id
},
scope: this,
success: function () {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
$('${/parameter/@winid}').close();
},
failure: function () {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
error: function () {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
}
});
});
}
}
}; };
......
...@@ -172,6 +172,7 @@ ...@@ -172,6 +172,7 @@
document_id: parent_pk_value, document_id: parent_pk_value,
document_category: 'PROJECT', document_category: 'PROJECT',
maintain_type: 'MODIFY', maintain_type: 'MODIFY',
business_type: head_record.get('business_type'),
calc_session_id: res.result.record.calc_session_id, calc_session_id: res.result.record.calc_session_id,
quotation_id: quotation_id, quotation_id: quotation_id,
dsId: quotation_ds_id, dsId: quotation_ds_id,
...@@ -213,6 +214,7 @@ ...@@ -213,6 +214,7 @@
document_id: parent_pk_value, document_id: parent_pk_value,
document_category: 'PROJECT', document_category: 'PROJECT',
maintain_type: 'MODIFY', maintain_type: 'MODIFY',
business_type: head_record.get('business_type'),
calc_session_id: record.get('calc_session_id'), calc_session_id: record.get('calc_session_id'),
quotation_id: record.get('quotation_id'), quotation_id: record.get('quotation_id'),
dsId: quotation_ds_id, dsId: quotation_ds_id,
...@@ -260,6 +262,7 @@ ...@@ -260,6 +262,7 @@
document_id: parent_pk_value, document_id: parent_pk_value,
document_category: 'PROJECT', document_category: 'PROJECT',
maintain_type: 'MODIFY', maintain_type: 'MODIFY',
business_type: head_record.get('business_type'),
calc_session_id: res.result.record.calc_session_id, calc_session_id: res.result.record.calc_session_id,
quotation_id: quotation_id, quotation_id: quotation_id,
dsId: quotation_ds_id, dsId: quotation_ds_id,
...@@ -704,6 +707,41 @@ ...@@ -704,6 +707,41 @@
record.getField('bank_branch_name_n').setRequired(false); record.getField('bank_branch_name_n').setRequired(false);
} }
if('${/parameter/@function_usage}'!='QUERY'){
if (record.get('secondary_lease') == 'YES') {
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt').style.display = 'block';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID').style.display = 'block';
record.getField('repur_contract_id').setRequired(true);
record.getField('repur_contract_id_n').setRequired(true);
record.getField('repur_contract_id').setReadOnly(false);
record.getField('repur_contract_id_n').setReadOnly(false);
} else if (record.get('secondary_lease') == 'NO') {
record.getField('repur_contract_id').setRequired(false);
record.getField('repur_contract_id_n').setRequired(false);
record.getField('repur_contract_id').setReadOnly(true);
record.getField('repur_contract_id_n').setReadOnly(true);
record.set('repur_contract_id', null);
record.set('repur_contract_id_n', null);
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID').style.display = 'none';
}
}
//业务类型回租时,默认只读“首付款抵扣”选项
if (record.get('business_type') == 'LEASEBACK') {
record.set('payment_deduction', 'DOWN_PAYMENT_DEDUCTION');
record.set('payment_deduction_n', "首付款抵扣");
record.getField('payment_deduction').setReadOnly(true);
record.getField('payment_deduction_n').setReadOnly(true);
record.set('pay_method', 'WIRE_TRANSFER');
record.set('pay_method_n', "电汇");
record.getField('pay_method').setReadOnly(true);
record.getField('pay_method_n').setReadOnly(true);
record.getField('bank_account_id').setReadOnly(true);
record.getField('bank_account_id_n').setReadOnly(true);
record.getField('bank_account_id').setRequired(false);
record.getField('bank_account_id_n').setRequired(false);
}
} }
}; };
...@@ -716,6 +754,17 @@ ...@@ -716,6 +754,17 @@
var score_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_TENANT_SCORE_INFO', 'bp_tenant_rate_detail'); var score_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_TENANT_SCORE_INFO', 'bp_tenant_rate_detail');
if (prj_project_ds_id == ds.id && prj_project_ds_id) { if (prj_project_ds_id == ds.id && prj_project_ds_id) {
if (name == "payment_deduction" && value=="DOWN_PAYMENT_DEDUCTION") {
//业务类型回租时,默认只读“首付款抵扣”选项
if ($(prj_project_ds_id).getAt(0).get('business_type') == 'LEASE') {
Leaf.showInfoMessage("提示", "直租业务不能选择首付款抵扣");
setTimeout(function () {
$(prj_project_ds_id).getAt(0).set('payment_deduction', null);
$(prj_project_ds_id).getAt(0).set('payment_deduction_n', null);
}, 10);
}
}
if (name == "bp_id_tenant" && value) { if (name == "bp_id_tenant" && value) {
//根据承租人查找该承租人的历史合同信息 //根据承租人查找该承租人的历史合同信息
...@@ -829,6 +878,28 @@ ...@@ -829,6 +878,28 @@
}); });
}
//add by niminmin
//当“二次租赁”字段选择‘是’时,“回购合同编号”字段为必填。当选择‘否’时,“回购合同编号”字段为只读。
if (name == 'secondary_lease') {
if (value == 'YES') {
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt').style.display = 'block';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID').style.display = 'block';
record.getField('repur_contract_id').setRequired(true);
record.getField('repur_contract_id_n').setRequired(true);
record.getField('repur_contract_id').setReadOnly(false);
record.getField('repur_contract_id_n').setReadOnly(false);
} else if (value == 'NO') {
record.getField('repur_contract_id').setRequired(false);
record.getField('repur_contract_id_n').setRequired(false);
record.getField('repur_contract_id').setReadOnly(true);
record.getField('repur_contract_id_n').setReadOnly(true);
record.set('repur_contract_id', null);
record.set('repur_contract_id_n', null);
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID').style.display = 'none';
}
} }
if (score_ds_id == ds.id) { if (score_ds_id == ds.id) {
if (name == 'bp_birth' && value) { if (name == 'bp_birth' && value) {
......
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
<!-- <link href="${/request/@context_path}/css/lightbox.css" rel="stylesheet" type="text/css"/> <!-- <link href="${/request/@context_path}/css/lightbox.css" rel="stylesheet" type="text/css"/>
<script src="${/request/@context_path}/javascripts/lightbox.js" type="text/javascript"/>--> <script src="${/request/@context_path}/javascripts/lightbox.js" type="text/javascript"/>-->
<script type="text/javascript"><![CDATA[ <script type="text/javascript"><![CDATA[
function open_project_modify_win(record_id, ds_id) { function open_project_modify_win(record_id, ds_id) {
var record = $(ds_id).findById(record_id); var record = $(ds_id).findById(record_id);
var project_status = record.get('project_status'); var project_status = record.get('project_status');
......
...@@ -131,14 +131,14 @@ ...@@ -131,14 +131,14 @@
<a:field name="workflow_code"/> <a:field name="workflow_code"/>
</a:fields> </a:fields>
</a:dataSet> </a:dataSet>
<a:dataSet id="batch_workflow_ds" autoQuery="true" fetchAll="false" model="zjwfl.zj_wfl_workflow" queryDataSet="batch_workflow_query_ds" queryUrl="${/request/@context_path}/autocrud/zjwfl.zj_wfl_workflow/query?enabled_flag=Y" selectable="true" submitUrl="${/request/@context_path}/autocrud/zjwfl.WFL2110.wfl_workflow_deliver_batch/batch_update"> <a:dataSet id="batch_workflow_ds" autoQuery="true" pageSize="5" fetchAll="false" model="zjwfl.zj_wfl_workflow" queryDataSet="batch_workflow_query_ds" queryUrl="${/request/@context_path}/autocrud/zjwfl.zj_wfl_workflow/query?enabled_flag=Y" selectable="true" submitUrl="${/request/@context_path}/autocrud/zjwfl.WFL2110.wfl_workflow_deliver_batch/batch_update">
<a:events> <a:events>
<a:event name="submitsuccess" handler="onSuccess"/> <a:event name="submitsuccess" handler="onSuccess"/>
</a:events> </a:events>
</a:dataSet> </a:dataSet>
<a:dataSet id="workflow_ds" autoQuery="true" fetchAll="true" model="zjwfl.zj_wfl_workflow_dilever" queryUrl="${/request/@context_path}/autocrud/zjwfl.zj_wfl_workflow/query?ORDER_FIELD=w.workflow_code,t.date_from" selectable="true"/> <a:dataSet id="workflow_ds" autoQuery="true" fetchAll="true" model="zjwfl.zj_wfl_workflow_dilever" queryUrl="${/request/@context_path}/autocrud/zjwfl.zj_wfl_workflow/query?ORDER_FIELD=w.workflow_code,t.date_from" selectable="true"/>
<a:dataSet id="wfl_workflow_deliver_create_query_ds" autoCreate="true" model="zjwfl.WFL2110.zj_wfl_workflow_deliver_query"/> <a:dataSet id="wfl_workflow_deliver_create_query_ds" autoCreate="true" model="zjwfl.WFL2110.zj_wfl_workflow_deliver_query"/>
<a:dataSet id="wfl_workflow_deliver_create_ds" autoQuery="true" fetchAll="false" model="zjwfl.WFL2110.zj_wfl_workflow_deliver_query" queryDataSet="wfl_workflow_deliver_create_query_ds" queryUrl="${/request/@context_path}/autocrud/zjwfl.WFL2110.zj_wfl_workflow_deliver_query/query?ORDER_FIELD=z.workflow_desc,t.date_from" selectable="true" submitUrl="${/request/@context_path}/autocrud/zjwfl.WFL2110.wfl_workflow_deliver_modify/batch_update"> <a:dataSet id="wfl_workflow_deliver_create_ds" autoQuery="true" pageSize="5" fetchAll="false" model="zjwfl.WFL2110.zj_wfl_workflow_deliver_query" queryDataSet="wfl_workflow_deliver_create_query_ds" queryUrl="${/request/@context_path}/autocrud/zjwfl.WFL2110.zj_wfl_workflow_deliver_query/query?ORDER_FIELD=z.workflow_desc,t.date_from" selectable="true" submitUrl="${/request/@context_path}/autocrud/zjwfl.WFL2110.wfl_workflow_deliver_modify/batch_update">
<a:fields> <a:fields>
<a:field name="workflow_id" required="true"/> <a:field name="workflow_id" required="true"/>
<a:field name="workflow_desc" displayField="workflow_desc" options="workflow_ds" required="true" returnField="workflow_id" valueField="workflow_id"/> <a:field name="workflow_desc" displayField="workflow_desc" options="workflow_ds" required="true" returnField="workflow_id" valueField="workflow_id"/>
...@@ -159,7 +159,7 @@ ...@@ -159,7 +159,7 @@
</a:dataSet> </a:dataSet>
</a:dataSets> </a:dataSets>
<a:screenBody> <a:screenBody>
<a:tabPanel id="tabpanel" marginHeight="50" marginWidth="30"> <a:tabPanel id="tabpanel" marginHeight="15" marginWidth="30">
<a:tabs> <a:tabs>
<a:tab prompt="批量授权"> <a:tab prompt="批量授权">
<a:screenBody> <a:screenBody>
...@@ -180,7 +180,7 @@ ...@@ -180,7 +180,7 @@
<a:button click="resetWorkFlow" text="HAP_RESET"/> <a:button click="resetWorkFlow" text="HAP_RESET"/>
<a:button click="batchDeliver" text="转交"/> <a:button click="batchDeliver" text="转交"/>
</a:hBox> </a:hBox>
<a:grid bindTarget="batch_workflow_ds" marginHeight="210" marginWidth="60" navBar="true"> <a:grid bindTarget="batch_workflow_ds" marginHeight="247" marginWidth="100" navBar="true">
<a:columns> <a:columns>
<a:column name="workflow_code" prompt="工作流代码" width="200"/> <a:column name="workflow_code" prompt="工作流代码" width="200"/>
<a:column name="workflow_desc" prompt="工作流描述" width="300"/> <a:column name="workflow_desc" prompt="工作流描述" width="300"/>
...@@ -204,7 +204,7 @@ ...@@ -204,7 +204,7 @@
<a:button click="queryWorkCreateFlow" text="HAP_QUERY"/> <a:button click="queryWorkCreateFlow" text="HAP_QUERY"/>
<a:button click="resetWorkCreateFlow" text="HAP_RESET"/> <a:button click="resetWorkCreateFlow" text="HAP_RESET"/>
</a:hBox> </a:hBox>
<a:grid bindTarget="wfl_workflow_deliver_create_ds" marginHeight="210" marginWidth="60" navBar="true"> <a:grid bindTarget="wfl_workflow_deliver_create_ds" marginHeight="247" marginWidth="100" navBar="true">
<a:toolBar> <a:toolBar>
<a:button type="add"/> <a:button type="add"/>
<a:button type="delete"/> <a:button type="delete"/>
......
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