Commit 066e7e27 authored by Darming's avatar Darming

Merge branch 'feature/optimization' into develop

# Conflicts:
#	src/main/webapp/modules/cont/CON3100/con_contract_cf_query.lview
#	src/main/webapp/modules/prj/PRJ501N/prj_project_maintain.lview
parents 61b4ff73 f7ddf830
Pipeline #4378 canceled with stages
...@@ -3,42 +3,67 @@ ...@@ -3,42 +3,67 @@
<bm:operations> <bm:operations>
<bm:operation name="query"> <bm:operation name="query">
<bm:query-sql><![CDATA[ <bm:query-sql><![CDATA[
SELECT c.contract_id, SELECT *
ccc.cashflow_id, FROM (SELECT c.contract_id,
c.contract_number, ccc.cashflow_id,
to_char(ccc.due_date,'yyyy-mm-dd') due_date, c.contract_number,
c.contract_name, ccc.CF_DIRECTION,
c.bp_id_tenant, ccc.cf_status,
(select bp_id from sys_user where bp_category = 'AGENT' and user_id = c.OWNER_USER_ID) bp_id_agent, decode(ccc.cf_item,
(SELECT bp_name FROM hls_bp_master h WHERE c.bp_id_tenant = h.bp_id) bp_tenant_name, 9,
ccc.times, (SELECT due_date
ccc.cf_item, FROM con_contract_cashflow
(SELECT description WHERE cf_item = 1
FROM hls_cashflow_item AND times = ccc.times
WHERE cf_item = ccc.cf_item) cf_item_desc, AND contract_id = ccc.contract_id),
c.pay_method, due_date) due_date_order,
(ccc.due_amount-nvl(ccc.received_amount,0)) due_amount, to_char(ccc.due_date,'yyyy-mm-dd') due_date,
(ccc.due_amount-nvl(ccc.received_amount,0)) manual_amount c.contract_name,
FROM con_contract c, con_contract_cashflow ccc c.bp_id_tenant,
#WHERE_CLAUSE# c.data_class,
order by contract_id,times,cf_item desc ccc.write_off_flag,
c.contract_status,
BP_ID_AGENT_LEVEL1 bp_id_agent,
(SELECT bp_name
FROM hls_bp_master h
WHERE c.bp_id_tenant = h.bp_id) bp_tenant_name,
ccc.times,
ccc.cf_item,
(SELECT description
FROM hls_cashflow_item
WHERE cf_item = ccc.cf_item) cf_item_desc,
c.pay_method,
(ccc.due_amount - nvl(ccc.received_amount, 0)) due_amount,
(ccc.due_amount - nvl(ccc.received_amount, 0)) manual_amount
FROM con_contract c, con_contract_cashflow ccc
WHERE c.contract_id = ccc.contract_id
AND c.data_class = 'NORMAL'
AND ccc.write_off_flag != 'FULL'
AND c.contract_status IN ('INCEPT')
AND ccc.cf_status = 'RELEASE'
AND ccc.cf_direction = 'INFLOW'
AND c.pay_method IS NOT NULL
AND ccc.cf_item IN (1, 9)) t
#WHERE_CLAUSE#
ORDER BY t.due_date_ORDER, t.cf_item DESC, t.contract_id
]]> ]]>
</bm:query-sql> </bm:query-sql>
</bm:operation> </bm:operation>
</bm:operations> </bm:operations>
<bm:query-fields> <bm:query-fields>
<bm:query-field name="pay_method" queryExpression="(c.pay_method = ${@pay_method})"/> <bm:query-field name="pay_method" queryExpression="(t.pay_method = ${@pay_method})"/>
<bm:query-field name="due_date_from" queryExpression="(ccc.due_date &gt;= to_date(${@due_date_from},'yyyy-mm-dd'))"/> <bm:query-field name="due_date_from"
<bm:query-field name="due_date_to" queryExpression="(ccc.due_date &lt;= to_date(${@due_date_to},'yyyy-mm-dd'))"/> queryExpression="(to_date(t.due_date,'yyyy-mm-dd') &gt;= to_date(${@due_date_from},'yyyy-mm-dd'))"/>
<bm:query-field name="contract_id" queryExpression="(c.contract_id = ${@contract_id})"/> <bm:query-field name="due_date_to"
<bm:query-field name="cf_item" queryExpression="(ccc.cf_item = ${@cf_item})"/> queryExpression="(to_date(t.due_date,'yyyy-mm-dd') &lt;= to_date(${@due_date_to},'yyyy-mm-dd'))"/>
<bm:query-field name="contract_id" queryExpression="(t.contract_id = ${@contract_id})"/>
<bm:query-field name="cf_item" queryExpression="(t.cf_item = ${@cf_item})"/>
<bm:query-field name="bp_id_tenant" queryExpression="(bp_id_tenant = ${@bp_id_tenant})"/> <bm:query-field name="bp_id_tenant" queryExpression="(bp_id_tenant = ${@bp_id_tenant})"/>
<bm:query-field name="bp_id_agent" queryExpression="(bp_id_agent = ${@bp_id_agent})"/> <bm:query-field name="bp_id_agent" queryExpression="(bp_id_agent = ${@bp_id_agent})"/>
</bm:query-fields> </bm:query-fields>
<bm:data-filters> <bm:data-filters>
<bm:data-filter name="query" <bm:data-filter name="query"
expression="c.contract_id = ccc.contract_id and ccc.due_date &lt;= trunc(sysdate) and c.data_class = 'NORMAL' and ccc.write_off_flag != 'FULL' and c.contract_status in ('SIGN','INCEPT') and ccc.cf_status = 'RELEASE' and ccc.cf_direction = 'INFLOW' and c.pay_method is not null and ccc.cf_item in (1,9)"/> expression="not exists(select 1 from hls_ebank_batch_group g,hls_ebank_batch_ln l where g.status in ('NEW','DEAL') and g.group_id = l.group_id and l.cashflow_id = t.cashflow_id)"/>
<bm:data-filter name="query"
expression="not exists(select 1 from hls_ebank_batch_group g,hls_ebank_batch_ln l where g.status in ('NEW','DEAL') and g.group_id = l.group_id and l.cashflow_id = ccc.cashflow_id)"/>
</bm:data-filters> </bm:data-filters>
</bm:model> </bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: gaoyang
$Date: 2013-4-15 下午01:13:07
$Revision: 1.0
$Purpose:
-->
<bm:model xmlns:s="leaf.plugin.script" xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false" xmlns:f="leaf.database.features" alias="t1" baseTable="HLS_BP_MASTER_V">
<bm:fields>
<bm:field name="bp_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="BP_ID" prompt="HLS_BP_MASTER_V.BP_ID"/>
<bm:field name="bp_code" databaseType="VARCHAR2" datatype="java.lang.String" displayWidth="80" forDisplay="true" forQuery="true" physicalName="BP_CODE" prompt="HLS.BP_TITLE"/>
<bm:field name="bp_name" databaseType="VARCHAR2" datatype="java.lang.String" displayWidth="160" forDisplay="true" forQuery="true" physicalName="BP_NAME" prompt="HLS.BP_NAME_SHORT"/>
<bm:field name="company_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="COMPANY_ID" prompt="HLS_BP_MASTER_V.COMPANY_ID"/>
<bm:field name="company_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="COMPANY_CODE" prompt="HLS_BP_MASTER_V.COMPANY_CODE"/>
<bm:field name="company_short_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="COMPANY_SHORT_NAME" prompt="HLS_BP_MASTER_V.COMPANY_SHORT_NAME"/>
<bm:field name="company_full_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="COMPANY_FULL_NAME" prompt="HLS_BP_MASTER_V.COMPANY_FULL_NAME"/>
<bm:field name="bp_category" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_CATEGORY"/>
<bm:field name="bp_category_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_CATEGORY_NAME" prompt="商业伙伴类型"/>
<bm:field name="bp_class" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_CLASS"/>
<bm:field name="bp_class_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_CLASS_NAME"/>
<bm:field name="enabled_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ENABLED_FLAG"/>
<!--<bm:field name="id_card_no" displayWidth="200" forDisplay="true" prompt="身份证"/>-->
</bm:fields>
<bm:features>
<f:standard-who/>
<!-- <s:bm-script><![CDATA[-->
<!-- var cx = Packages.leaf.javascript.Context.getCurrentContext();-->
<!-- Packages.leaf.plugin.script.engine.ScriptImportor.defineExternScript(cx, this, $ctx.getData(), "aut_authority_bm_validate.js");-->
<!-- ]]></s:bm-script>-->
</bm:features>
<bm:query-fields>
<bm:query-field field="bp_id" queryOperator="="/>
<bm:query-field field="bp_code" queryOperator="like"/>
<bm:query-field field="bp_name" queryExpression="t1.bp_name like ${@bp_name}"/>
<!-- <bm:query-field field="bp_category" queryOperator="="/> -->
<bm:query-field field="bp_category" queryExpression="(t1.bp_category = ${@bp_category} or exists(select 1 from hls_bp_master_role br where br.bp_id = t1.bp_id and br.bp_category = ${@bp_category} and br.bp_type = ${@bp_category}))"/>
<bm:query-field field="bp_category_name" queryExpression="(t1.bp_category_name like &apos;%&apos;||${@bp_category_name}||&apos;%&apos;)"/>
<!-- <bm:query-field name="contract_bp_flag" queryExpression="(exists (select 1 from con_contract_bp b where b.contract_id in (${:@contract_id}) and b.bp_id = t1.bp_id and b.bp_category in (&apos;VENDER&apos;,&apos;TENANT&apos;,&apos;TENANT_SEC&apos;) )or nvl(${@contract_bp_flag},&apos;N&apos;) != &apos;Y&apos; )"/> -->
</bm:query-fields>
<bm:data-filters>
<bm:data-filter name="query" expression="(t1.company_id=${/session/@company_id})"/>
<bm:data-filter name="query" expression="(t1.enabled_flag=&apos;Y&apos;)"/>
</bm:data-filters>
</bm:model>
...@@ -48,6 +48,7 @@ ...@@ -48,6 +48,7 @@
</bm:operations> </bm:operations>
<bm:query-fields> <bm:query-fields>
<bm:query-field name="hd_id" queryExpression="t.hd_id = ${@hd_id}"/> <bm:query-field name="hd_id" queryExpression="t.hd_id = ${@hd_id}"/>
<bm:query-field name="batch_id" queryExpression="t.batch_id = ${@batch_id}"/>
<bm:query-field name="contract_number" queryExpression="t.contract_number like &apos;%&apos; || ${@contract_number} || &apos;%&apos;"/> <bm:query-field name="contract_number" queryExpression="t.contract_number like &apos;%&apos; || ${@contract_number} || &apos;%&apos;"/>
<bm:query-field name="bp_name" queryExpression="t.bp_name like &apos;%&apos; || ${@bp_name} || &apos;%&apos;"/> <bm:query-field name="bp_name" queryExpression="t.bp_name like &apos;%&apos; || ${@bp_name} || &apos;%&apos;"/>
<bm:query-field name="status_desc" queryExpression="t.status_desc=${@status_desc}"/> <bm:query-field name="status_desc" queryExpression="t.status_desc=${@status_desc}"/>
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
AND sc.code_value = t1.contract_status) contract_status_desc AND sc.code_value = t1.contract_status) contract_status_desc
from con_contract t1 from con_contract t1
where where
t1.contract_status in ('INCEPT','ET','NEW') t1.contract_status in ('INCEPT','ET','NEW','ETING','REPURSING')
and t1.data_class = 'NORMAL' and t1.data_class = 'NORMAL'
and t1.company_id in (( and t1.company_id in ((
select company_id select company_id
......
...@@ -30,10 +30,10 @@ ...@@ -30,10 +30,10 @@
from hls_bp_master bp from hls_bp_master bp
where bp.bp_id = sc.object_id), where bp.bp_id = sc.object_id),
'') object_name, '') object_name,
(select 81 from dual) score_template_id, 285 score_template_id,
(select te.score_template_name (select te.score_template_name
from fnd_score_template te from fnd_score_template te
where te.score_template_id = 81) template_name, where te.score_template_id = 285) template_name,
sc.internal_period_num, sc.internal_period_num,
sc.score_date, sc.score_date,
sc.description, sc.description,
......
...@@ -45,6 +45,8 @@ ...@@ -45,6 +45,8 @@
<bm:field name="current_month_income" databaseType="NUMBER" datatype="java.lang.Double" expression="(select sum(t.unearned_finance_income) from con_unearned_finance_income t where t.contract_id =t1.contract_id and t.internal_period_num =${@internal_period_num})" forInsert="false" forUpdate="false"/> <bm:field name="current_month_income" databaseType="NUMBER" datatype="java.lang.Double" expression="(select sum(t.unearned_finance_income) from con_unearned_finance_income t where t.contract_id =t1.contract_id and t.internal_period_num =${@internal_period_num})" forInsert="false" forUpdate="false"/>
<bm:field name="contract_number" databaseType="VARCHAR2" datatype="java.lang.String" expression="(select t.contract_number from con_contract t where t.contract_id =t1.contract_id )" forInsert="false" forUpdate="false"/> <bm:field name="contract_number" databaseType="VARCHAR2" datatype="java.lang.String" expression="(select t.contract_number from con_contract t where t.contract_id =t1.contract_id )" forInsert="false" forUpdate="false"/>
<bm:field name="contract_name" databaseType="VARCHAR2" datatype="java.lang.String" expression="(select t.contract_name from con_contract t where t.contract_id =t1.contract_id )" forInsert="false" forUpdate="false"/> <bm:field name="contract_name" databaseType="VARCHAR2" datatype="java.lang.String" expression="(select t.contract_name from con_contract t where t.contract_id =t1.contract_id )" forInsert="false" forUpdate="false"/>
<bm:field name="adjustvat"/>
<bm:field name="adjustvat13"/>
</bm:fields> </bm:fields>
<bm:features> <bm:features>
<f:standard-who/> <f:standard-who/>
......
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
WHERE WHERE
fsc.sc_score_id = fscr.sc_score_id AND fsc.sc_score_id = fscr.sc_score_id AND
fsc.project_id = ${@project_id} AND fsc.project_id = ${@project_id} AND
fsc.score_num = ${@score_num} fsc.score_num = nvl(${@score_num},1)
]]></bm:query-sql> ]]></bm:query-sql>
</bm:operation> </bm:operation>
</bm:operations> </bm:operations>
......
var override_queryfields = [
{
name: 'bp_name',
queryexpression: "t1.bp_id_tenant_n like ${@bp_name}"
},
{
name: 'due_date_from',
queryexpression: "t1.due_date >= to_date(${@due_date_from},'yyyy-mm-dd')"
},
{
name: 'due_date_to',
queryexpression: "t1.due_date <= to_date(${@due_date_to},'yyyy-mm-dd')"
}
];
override();
\ No newline at end of file
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
<!--系统登录信息 start--> <!--系统登录信息 start-->
<a:model-query fetchAll="true" model="sys.sys_login_info" rootPath="login_info"/> <a:model-query fetchAll="true" model="sys.sys_login_info" rootPath="login_info"/>
<!--系统登录信息 end--> <!--系统登录信息 end-->
<a:model-query model="cont.CON620.get_sys_role" rootPath="role_info"/>
<s:server-script><![CDATA[ <s:server-script><![CDATA[
var sys_user_theme_path = $ctx.get('/model/sys_user_theme_path').getChildren(); var sys_user_theme_path = $ctx.get('/model/sys_user_theme_path').getChildren();
if(sys_user_theme_path.length > 0){ if(sys_user_theme_path.length > 0){
...@@ -1352,7 +1353,12 @@ ...@@ -1352,7 +1353,12 @@
if (display == 'none') { if (display == 'none') {
jQuery("#show-user-message-id").addClass("fast-menu-toolbar-background"); jQuery("#show-user-message-id").addClass("fast-menu-toolbar-background");
jQuery("#userDetail").show(); jQuery("#userDetail").show();
jQuery("#userDetail").animate({height: "162px"}); if("${/model/role_info/record/@role_code}"=="0018"||"${/model/role_info/record/@role_code}"=="0019") {
jQuery("#userDetail").animate({height: "81px"});
}else{
jQuery("#userDetail").animate({height: "162px"});
}
//document.getElementById('userDetail').style.display = 'block'; //document.getElementById('userDetail').style.display = 'block';
} else { } else {
hideUserInfo() hideUserInfo()
...@@ -1500,6 +1506,16 @@ ...@@ -1500,6 +1506,16 @@
}); });
} }
Ext.onReady(function(){
var lis = document.getElementsByClassName("hide-li-if-agent");
if("${/model/role_info/record/@role_code}"=="0018"||"${/model/role_info/record/@role_code}"=="0019") {
if(lis[0]&&lis[1]){
lis[0].style.display = 'none';
lis[1].style.display = 'none';
}
}
});
]]></script> ]]></script>
<div class="hap-main-screen-toolbar-contain"> <div class="hap-main-screen-toolbar-contain">
...@@ -1683,13 +1699,13 @@ ...@@ -1683,13 +1699,13 @@
<span>用户信息</span> <span>用户信息</span>
</a> </a>
</li> </li>
<li> <li class="hide-li-if-agent">
<a href="javascript:showSubject();"> <a href="javascript:showSubject();">
<!--<i class="fa fa-cogs"></i>--> <!--<i class="fa fa-cogs"></i>-->
<span>切换主题</span> <span>切换主题</span>
</a> </a>
</li> </li>
<li> <li class="hide-li-if-agent">
<a href="javascript:showTheme();"> <a href="javascript:showTheme();">
<!--<i class="fa fa-cogs"></i>--> <!--<i class="fa fa-cogs"></i>-->
<span>切换皮肤</span> <span>切换皮肤</span>
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
params.bank_account_id = record.get('bank_account_id'); params.bank_account_id = record.get('bank_account_id');
params.merger_rules = record.get('merger_rules'); params.merger_rules = record.get('merger_rules');
params.pay_method = record.get('pay_method'); params.pay_method = record.get('pay_method');
params.due_date = record.get('due_date'); // params.due_date = record.get('due_date');
//处理行 //处理行
var details = []; var details = [];
...@@ -143,9 +143,9 @@ ...@@ -143,9 +143,9 @@
<a:dataSets> <a:dataSets>
<a:dataSet id="pay_methods_ds"> <a:dataSet id="pay_methods_ds">
<a:datas> <a:datas>
<a:record code_value="AGRI_THREE" code_value_name="农行扣款(三方)"/> <!-- <a:record code_value="AGRI_THREE" code_value_name="农行扣款(三方)"/>-->
<a:record code_value="CCB_THREE" code_value_name="建行扣款(三方)"/> <a:record code_value="CCB_THREE" code_value_name="建行扣款(三方)"/>
<a:record code_value="AGRI_TWO" code_value_name="农行扣款(两方)"/> <!-- <a:record code_value="AGRI_TWO" code_value_name="农行扣款(两方)"/>-->
</a:datas> </a:datas>
</a:dataSet> </a:dataSet>
<a:dataSet id="hls_ccb_form_query_ds"> <a:dataSet id="hls_ccb_form_query_ds">
...@@ -162,8 +162,8 @@ ...@@ -162,8 +162,8 @@
</a:mapping> </a:mapping>
</a:field> </a:field>
<a:field name="bp_tenant_name" lovGridHeight="350" lovHeight="550" lovLabelWidth="50" lovWidth="550" <a:field name="bp_tenant_name" lovGridHeight="350" lovHeight="550" lovLabelWidth="50" lovWidth="550"
autoComplete="true" autoCompleteField="bp_agent_name" autoComplete="true" autoCompleteField="bp_name"
lovService="basic.hls_bp_master_v_for_lov?bp_category=TENANT" lovService="ccb.CCB600.hls_bp_master_v_for_lov?bp_category=TENANT"
title="HLS.BP_TITLE"> title="HLS.BP_TITLE">
<a:mapping> <a:mapping>
<a:map from="bp_id" to="bp_id_tenant"/> <a:map from="bp_id" to="bp_id_tenant"/>
...@@ -203,8 +203,8 @@ ...@@ -203,8 +203,8 @@
</a:mapping> </a:mapping>
</a:field> </a:field>
<a:field name="currency_name" readOnly="true"/> <a:field name="currency_name" readOnly="true"/>
<a:field name="pay_method_desc" required="true" prompt="支付方式" displayField="code_value_name" options="pay_methods_ds" returnField="pay_method" valueField="code_value"/> <a:field name="pay_method_desc" defaultValue="建行扣款(三方)" required="true" prompt="支付方式" displayField="code_value_name" options="pay_methods_ds" returnField="pay_method" valueField="code_value"/>
<a:field name="pay_method"/> <a:field name="pay_method" defaultValue="CCB_THREE"/>
<a:field name="bank_account_name" readOnly="true"/> <a:field name="bank_account_name" readOnly="true"/>
<a:field name="bank_name" readOnly="true"/> <a:field name="bank_name" readOnly="true"/>
<a:field name="currency" readOnly="true"/> <a:field name="currency" readOnly="true"/>
...@@ -278,7 +278,7 @@ ...@@ -278,7 +278,7 @@
<!-- <a:column name="detail" align="center" prompt="明细" renderer="batch_detail_renderer" width="100"/>--> <!-- <a:column name="detail" align="center" prompt="明细" renderer="batch_detail_renderer" width="100"/>-->
<!-- </a:columns>--> <!-- </a:columns>-->
<!-- </a:grid>--> <!-- </a:grid>-->
<a:grid id="hls_ccb_ln_grid" bindTarget="hls_ccb_grid_ln_ds" height="300" width="800" navBar="true"> <a:grid id="hls_ccb_ln_grid" bindTarget="hls_ccb_grid_ln_ds" height="340" width="850" navBar="true">
<a:columns> <a:columns>
<a:column name="bp_tenant_name" prompt="客户名称" align="center" /> <a:column name="bp_tenant_name" prompt="客户名称" align="center" />
<a:column name="contract_number" prompt="合同号" align="center" /> <a:column name="contract_number" prompt="合同号" align="center" />
...@@ -294,9 +294,9 @@ ...@@ -294,9 +294,9 @@
<a:textField id="hls_ccb_ln_grid_tf"/> <a:textField id="hls_ccb_ln_grid_tf"/>
</a:editors> </a:editors>
</a:grid> </a:grid>
<a:fieldSet title="应收日期" column="2"> <!-- <a:fieldSet title="应收日期" column="2">-->
<a:datePicker name="due_date" bindTarget="hls_ccb_form_create_ds" prompt="应收日期"/> <!-- <a:datePicker name="due_date" bindTarget="hls_ccb_form_create_ds" prompt="应收日期"/>-->
</a:fieldSet> <!-- </a:fieldSet>-->
</a:screenBody> </a:screenBody>
</a:view> </a:view>
</a:screen> </a:screen>
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
</a:fields> </a:fields>
</a:dataSet> </a:dataSet>
<a:dataSet id="hls_ccb_grid_detail_ds" autoQuery="true" queryDataSet="hls_ccb_batch_query_ds1" fetchAll="true" model="ccb.CCB600.hls_ebank_batch_group" pageSize="15" <a:dataSet id="hls_ccb_grid_detail_ds" autoQuery="true" queryDataSet="hls_ccb_batch_query_ds1" fetchAll="true" model="ccb.CCB600.hls_ebank_batch_group" pageSize="15"
queryUrl="${/request/@context_path}/autocrud/ccb.CCB600.hls_ebank_batch_group/query?hd_id=${/parameter/@hd_id}" queryUrl="${/request/@context_path}/autocrud/ccb.CCB600.hls_ebank_batch_group/query?batch_id=${/parameter/@batch_id}"
selectable="true"> selectable="true">
</a:dataSet> </a:dataSet>
</a:dataSets> </a:dataSets>
......
...@@ -27,20 +27,20 @@ ...@@ -27,20 +27,20 @@
} }
function hls_ccb_merge_result() { function hls_ccb_merge_result() {
var hd_id = $('hls_ccb_grid_ln_ds').getAt(0).get('hd_id') || -1; var batch_id = $('hls_ccb_grid_ln_ds').getAt(0).get('batch_id') || -1;
if ('${/parameter/@status}' == 'NEW') { if ('${/parameter/@status}' == 'NEW') {
open_batch_detail_modify_window(hd_id); open_batch_detail_modify_window(batch_id);
} else { } else {
open_batch_detail_query_window(hd_id); open_batch_detail_query_window(batch_id);
} }
} }
function open_batch_detail_query_window(hd_id) { function open_batch_detail_query_window(batch_id) {
var win = new Leaf.Window({ var win = new Leaf.Window({
id: 'batch_link_query_winId', id: 'batch_link_query_winId',
url: $('query_ebank_detail_link').getUrl(), url: $('query_ebank_detail_link').getUrl(),
params: { params: {
hd_id: hd_id, batch_id: batch_id,
winid: 'batch_link_query_winId' winid: 'batch_link_query_winId'
}, },
title: '代扣指令明细', title: '代扣指令明细',
...@@ -51,12 +51,12 @@ ...@@ -51,12 +51,12 @@
} }
function open_batch_detail_modify_window(hd_id) { function open_batch_detail_modify_window(batch_id) {
var win = new Leaf.Window({ var win = new Leaf.Window({
id: 'batch_modify_link_winId', id: 'batch_modify_link_winId',
url: $('modify_ebank_detail_link').getUrl(), url: $('modify_ebank_detail_link').getUrl(),
params: { params: {
hd_id: hd_id, batch_id: batch_id,
winid: 'batch_modify_link_winId' winid: 'batch_modify_link_winId'
}, },
title: '代扣指令明细', title: '代扣指令明细',
...@@ -122,7 +122,7 @@ ...@@ -122,7 +122,7 @@
<a:field name="pay_method_desc" readOnly="true" prompt="支付方式" displayField="code_value_name" options="pay_methods_ds" returnField="pay_method" valueField="code_value"/> <a:field name="pay_method_desc" readOnly="true" prompt="支付方式" displayField="code_value_name" options="pay_methods_ds" returnField="pay_method" valueField="code_value"/>
<a:field name="pay_method"/> <a:field name="pay_method"/>
<a:field name="currency" readOnly="true"/> <a:field name="currency" readOnly="true"/>
<a:field name="due_date" required="true" prompt="应收日期" readOnly="true"/> <a:field name="due_date" prompt="应收日期" readOnly="true"/>
<a:field name="merger_rules" defaultValue="NONE" prompt="" readOnly="true"/> <a:field name="merger_rules" defaultValue="NONE" prompt="" readOnly="true"/>
<a:field name="payment_amount_from" readOnly="true"/> <a:field name="payment_amount_from" readOnly="true"/>
<a:field name="payment_amount_to" readOnly="true"/> <a:field name="payment_amount_to" readOnly="true"/>
...@@ -187,7 +187,7 @@ ...@@ -187,7 +187,7 @@
<!-- <a:column name="detail" align="center" prompt="明细" renderer="batch_detail_renderer" width="100"/>--> <!-- <a:column name="detail" align="center" prompt="明细" renderer="batch_detail_renderer" width="100"/>-->
<!-- </a:columns>--> <!-- </a:columns>-->
<!-- </a:grid>--> <!-- </a:grid>-->
<a:grid id="hls_ccb_ln_grid" bindTarget="hls_ccb_grid_ln_ds" height="300" width="800" navBar="true"> <a:grid id="hls_ccb_ln_grid" bindTarget="hls_ccb_grid_ln_ds" height="420" width="880" navBar="true">
<a:toolBar> <a:toolBar>
<a:button click="hls_ccb_merge_result" text="合并结果"/> <a:button click="hls_ccb_merge_result" text="合并结果"/>
</a:toolBar> </a:toolBar>
...@@ -205,9 +205,9 @@ ...@@ -205,9 +205,9 @@
</a:columns> </a:columns>
</a:grid> </a:grid>
<a:fieldSet title="应收日期" column="2"> <!-- <a:fieldSet title="应收日期" column="2">-->
<a:datePicker name="due_date" bindTarget="hls_ccb_form_create_ds" prompt="应收日期"/> <!-- <a:datePicker name="due_date" bindTarget="hls_ccb_form_create_ds" prompt="应收日期"/>-->
</a:fieldSet> <!-- </a:fieldSet>-->
</a:screenBody> </a:screenBody>
</a:view> </a:view>
</a:screen> </a:screen>
...@@ -3,21 +3,10 @@ ...@@ -3,21 +3,10 @@
trace="true"> trace="true">
<a:init-procedure/> <a:init-procedure/>
<a:view> <a:view>
<a:link id="${/parameter/@layout_code}${/parameter/@pre_layout}zj_wfl_approve_history_check"
url="${/request/@context_path}/modules/zjwfl/zj_wfl_approve_history_check.lview"/>
<a:link id="con_contract_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" <a:link id="con_contract_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code"
modelaction="update"/> modelaction="update"/>
<a:link id="con_contract_modify_link" <a:link id="con_contract_modify_link"
url="${/request/@context_path}/modules/cont/CON505/con_contract_modify.lview"/> url="${/request/@context_path}/modules/cont/CON505/con_contract_modify.lview"/>
<!-- <a:link id="prj_project_modify_link" url="${/request/@context_path}/modules/prj/PRJ501N/prj_project_create_tree_n.lview"/> -->
<a:link id="car_modify_special_link2"
url="${/request/@context_path}/modules/prj/PRJ500N/prj_project_create_special.lview"/>
<a:link id="car_modify_mananger_link"
url="${/request/@context_path}/modules/prj/PRJ501N/prj_project_maintain_manager.lview"/>
<a:link id="car_modify_link"
url="${/request/@context_path}/modules/prj/PRJ501N/prj_project_maintain_readonly.lview"/>
<a:link id="car_modify_special_link"
url="${/request/@context_path}/modules/prj/PRJ500N/prj_project_create.lview"/>
<a:link id="${/parameter/@layout_code}_contract_print_link_id" <a:link id="${/parameter/@layout_code}_contract_print_link_id"
url="${/request/@context_path}/modules/cont/CON301N/con_contract_print.lview"/> url="${/request/@context_path}/modules/cont/CON301N/con_contract_print.lview"/>
<a:link id="${/parameter/@layout_code}con_contract_query_link" <a:link id="${/parameter/@layout_code}con_contract_query_link"
...@@ -30,77 +19,22 @@ ...@@ -30,77 +19,22 @@
function open_contract_win(ds_id, record_id) { function open_contract_win(ds_id, record_id) {
var record = $(ds_id).findById(record_id); var record = $(ds_id).findById(record_id);
var param = record.data; var param = record.data;
// param['function_code'] = 'CON301';
param['function_usage'] = 'QUERY'; param['function_usage'] = 'QUERY';
param['function_code'] = 'CON3200Q'; param['function_code'] = 'CON3200Q';
param['maintain_type'] = 'QUERY'; param['maintain_type'] = 'QUERY';
param['url_title'] = '${l:CON301.CONTRACT_DETAIL}'; param['url_title'] = '${l:CON301.CONTRACT_DETAIL}';
//hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'con_contract_modify_link', null);
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, '${/parameter/@layout_code}con_contract_query_link', ds_id); hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, '${/parameter/@layout_code}con_contract_query_link', ds_id);
} }
function open_project_Window(record_id, ds_id) {
var record = $(ds_id).findById(record_id);
//项目类layout_code
maintain_type = 'QUERY';
param = record.data;
param['document_id'] = record.get('project_id');
param['function_code'] = 'PRJ501Q';
param['function_usage'] = 'MODIFY';
param['maintain_type'] = maintain_type;
param['url_title'] = '${l:HLS.PROJECT_MAITAIN}';
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'car_modify_link', ds_id);
}
function open_bs_Window(record_id, ds_id) {
var record = $(ds_id).findById(record_id);
var param = record.data;
param['function_code'] = 'CON301BS';
param['function_usage'] = 'QUERY';
param['maintain_type'] = 'QUERY';
param['contract_id'] = record.get('contract_id');
param['url_title'] = 'BS明细';
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'con_contract_modify_link', ds_id);
}
window['${/parameter/@layout_code}_dynamic_link_renderer'] = function (value, record, name, config_record) { window['${/parameter/@layout_code}_dynamic_link_renderer'] = function (value, record, name, config_record) {
if (name == 'contract_number' && value) { if (name == 'contract_number' && value) {
return '<a href="javascript:open_contract_win(\'' + record.ds.id + '\',\'' + record.id + '\')">' + value + '</a>'; return '<a href="javascript:open_contract_win(\'' + record.ds.id + '\',\'' + record.id + '\')">' + value + '</a>';
} }
if (name == 'project_id_c' && value) {
return '<a href="javascript:open_project_Window(\'' + record.id + '\',\'' + record.ds.id + '\')">' + value + '</a>';
}
if (name == 'bs_link') {
return '<a href="javascript:open_bs_Window(\'' + record.id + '\',\'' + record.ds.id + '\')">明细</a>';
}
return value; return value;
}; };
// window['${/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');
//
// if (ds == $(ds_id)) {
// aut_authority_list_validate_query(ds, qpara);
//
// }
//
// //ds.setQueryParameter('__async__', 'Y');
// };
window['${/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_cashflow');
if (ds == $(ds_id)) {
aut_authority_list_validate_query(ds, qpara);
}
};
]]></script> ]]></script>
<a:screen-include
screen="modules/cont/CON500/con_contract_authority_list_validate.lview?document_category=CONTRACT&amp;function_code=CON501"/>
<a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/> <a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
</a:view> </a:view>
</a:screen> </a:screen>
...@@ -804,24 +804,24 @@ ...@@ -804,24 +804,24 @@
bindTarget="csh_transaction_receipt_maintain_query_ds" bindTarget="csh_transaction_receipt_maintain_query_ds"
prompt="CSH510.CSH_TRANSACTION.TRANSACTION_AMOUNT_TO" align="right"/> prompt="CSH510.CSH_TRANSACTION.TRANSACTION_AMOUNT_TO" align="right"/>
<!--我方账户户名--> <!--我方账户户名-->
<a:lov name="bank_account_name" bindTarget="csh_transaction_receipt_maintain_query_ds" <!-- <a:lov name="bank_account_name" bindTarget="csh_transaction_receipt_maintain_query_ds"-->
prompt="CSH510.CSH_TRANSACTION.MY_ACCOUNT_NAME"/> <!-- prompt="CSH510.CSH_TRANSACTION.MY_ACCOUNT_NAME"/>-->
<a:lov name="bank_branch_name" bindTarget="csh_transaction_receipt_maintain_query_ds" <!-- <a:lov name="bank_branch_name" bindTarget="csh_transaction_receipt_maintain_query_ds"-->
prompt="CSH510.CSH_TRANSACTION.MY_BANK_NAME"/> <!-- prompt="CSH510.CSH_TRANSACTION.MY_BANK_NAME"/>-->
<a:lov name="bank_account_num" bindTarget="csh_transaction_receipt_maintain_query_ds" <!-- <a:lov name="bank_account_num" bindTarget="csh_transaction_receipt_maintain_query_ds"-->
prompt="CSH510.CSH_TRANSACTION.MY_ACCOUNT_USERNAME"/> <!-- prompt="CSH510.CSH_TRANSACTION.MY_ACCOUNT_USERNAME"/>-->
<!--银行流水号--> <!--银行流水号-->
<a:textField name="bank_slip_num" bindTarget="csh_transaction_receipt_maintain_query_ds" <!-- <a:textField name="bank_slip_num" bindTarget="csh_transaction_receipt_maintain_query_ds"-->
prompt="CSH510.CSH_TRANSACTION.BANK_CASH_CODE"/> <!-- prompt="CSH510.CSH_TRANSACTION.BANK_CASH_CODE"/>-->
<!--对方账户户名--> <!--对方账户户名-->
<a:lov name="bp_bank_account_name" bindTarget="csh_transaction_receipt_maintain_query_ds" <a:lov name="bp_bank_account_name" bindTarget="csh_transaction_receipt_maintain_query_ds"
prompt="CSH510.CSH_TRANSACTION.YOUR_ACCOUNT_NAME"/> prompt="CSH510.CSH_TRANSACTION.YOUR_ACCOUNT_NAME"/>
<!--对方银行名称--> <!--对方银行名称-->
<a:lov name="opposite_band_na" bindTarget="csh_transaction_receipt_maintain_query_ds" <!-- <a:lov name="opposite_band_na" bindTarget="csh_transaction_receipt_maintain_query_ds"-->
prompt="CSH510.CSH_TRANSACTION.YOUR_BANK_NAME"/> <!-- prompt="CSH510.CSH_TRANSACTION.YOUR_BANK_NAME"/>-->
<!--对方账户账号--> <!--对方账户账号-->
<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: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"/>
...@@ -837,7 +837,7 @@ ...@@ -837,7 +837,7 @@
</a:form> </a:form>
<a:fieldSet labelWidth="150" title="收款单" style="margin-left:20px"> <a:fieldSet labelWidth="150" title="收款单" style="margin-left:20px">
<a:grid id="csh_transaction_receipt_maintain_grid_ds" <a:grid id="csh_transaction_receipt_maintain_grid_ds"
bindTarget="csh_transaction_receipt_maintain_result_ds" marginHeight="300" marginWidth="80" bindTarget="csh_transaction_receipt_maintain_result_ds" marginHeight="190" marginWidth="80"
navBar="true"> navBar="true">
<!--<a:toolBar> <!--<a:toolBar>
<a:button click="csh510_export" text="导出"/> <a:button click="csh510_export" text="导出"/>
......
...@@ -711,17 +711,17 @@ ...@@ -711,17 +711,17 @@
<a:numberField name="transaction_amount_from" bindTarget="csh_transaction_receipt_maintain_query_ds" prompt="CSH510.CSH_TRANSACTION.TRANSACTION_AMOUNT_FROM" align="right"/> <a:numberField name="transaction_amount_from" bindTarget="csh_transaction_receipt_maintain_query_ds" prompt="CSH510.CSH_TRANSACTION.TRANSACTION_AMOUNT_FROM" align="right"/>
<a:numberField name="transaction_amount_to" bindTarget="csh_transaction_receipt_maintain_query_ds" prompt="CSH510.CSH_TRANSACTION.TRANSACTION_AMOUNT_TO" align="right"/> <a:numberField name="transaction_amount_to" bindTarget="csh_transaction_receipt_maintain_query_ds" prompt="CSH510.CSH_TRANSACTION.TRANSACTION_AMOUNT_TO" align="right"/>
<!--我方账户户名--> <!--我方账户户名-->
<a:lov name="bank_account_name" bindTarget="csh_transaction_receipt_maintain_query_ds" prompt="CSH510.CSH_TRANSACTION.MY_ACCOUNT_NAME"/> <!-- <a:lov name="bank_account_name" bindTarget="csh_transaction_receipt_maintain_query_ds" prompt="CSH510.CSH_TRANSACTION.MY_ACCOUNT_NAME"/>-->
<a:lov name="bank_branch_name" bindTarget="csh_transaction_receipt_maintain_query_ds" prompt="CSH510.CSH_TRANSACTION.MY_BANK_NAME"/> <!-- <a:lov name="bank_branch_name" bindTarget="csh_transaction_receipt_maintain_query_ds" prompt="CSH510.CSH_TRANSACTION.MY_BANK_NAME"/>-->
<a:lov name="bank_account_num" bindTarget="csh_transaction_receipt_maintain_query_ds" prompt="CSH510.CSH_TRANSACTION.MY_ACCOUNT_USERNAME"/> <!-- <a:lov name="bank_account_num" bindTarget="csh_transaction_receipt_maintain_query_ds" prompt="CSH510.CSH_TRANSACTION.MY_ACCOUNT_USERNAME"/>-->
<!--银行流水号--> <!--银行流水号-->
<a:textField name="bank_slip_num" bindTarget="csh_transaction_receipt_maintain_query_ds" prompt="CSH510.CSH_TRANSACTION.BANK_CASH_CODE"/> <!-- <a:textField name="bank_slip_num" bindTarget="csh_transaction_receipt_maintain_query_ds" prompt="CSH510.CSH_TRANSACTION.BANK_CASH_CODE"/>-->
<!--对方账户户名--> <!--对方账户户名-->
<a:textField name="bp_bank_account_name" bindTarget="csh_transaction_receipt_maintain_query_ds" prompt="CSH510.CSH_TRANSACTION.YOUR_ACCOUNT_NAME"/> <a:textField name="bp_bank_account_name" bindTarget="csh_transaction_receipt_maintain_query_ds" prompt="CSH510.CSH_TRANSACTION.YOUR_ACCOUNT_NAME"/>
<!--对方银行名称--> <!--对方银行名称-->
<a:textField name="opposite_band_na" bindTarget="csh_transaction_receipt_maintain_query_ds" prompt="CSH510.CSH_TRANSACTION.YOUR_BANK_NAME"/> <!-- <a:textField name="opposite_band_na" bindTarget="csh_transaction_receipt_maintain_query_ds" prompt="CSH510.CSH_TRANSACTION.YOUR_BANK_NAME"/>-->
<!--对方账户账号--> <!--对方账户账号-->
<a:textField name="bp_bank_account_num" bindTarget="csh_transaction_receipt_maintain_query_ds" prompt="CSH510.CSH_TRANSACTION.YOUR_ACCOUNT_USERNAME"/> <!-- <a:textField name="bp_bank_account_num" bindTarget="csh_transaction_receipt_maintain_query_ds" prompt="CSH510.CSH_TRANSACTION.YOUR_ACCOUNT_USERNAME"/>-->
<a:textField name="transaction_num" bindTarget="csh_transaction_receipt_maintain_query_ds" prompt="现金事务编号"/> <a:textField name="transaction_num" bindTarget="csh_transaction_receipt_maintain_query_ds" prompt="现金事务编号"/>
<!-- <a:textField style="display:none"/>--> <!-- <a:textField style="display:none"/>-->
<a:lov name="bp_name" bindTarget="csh_transaction_receipt_maintain_query_ds" prompt="CSH510.CSH_TRANSACTION.BUSINESS_PARTNER"/> <a:lov name="bp_name" bindTarget="csh_transaction_receipt_maintain_query_ds" prompt="CSH510.CSH_TRANSACTION.BUSINESS_PARTNER"/>
...@@ -734,7 +734,7 @@ ...@@ -734,7 +734,7 @@
</a:hBox> </a:hBox>
</a:form> </a:form>
<a:fieldSet labelWidth="150" title="收款单" style="margin-left:20px"> <a:fieldSet labelWidth="150" title="收款单" style="margin-left:20px">
<a:grid id="csh_transaction_receipt_maintain_grid_ds" bindTarget="csh_transaction_receipt_maintain_result_ds" marginHeight="300" marginWidth="80" navBar="true" > <a:grid id="csh_transaction_receipt_maintain_grid_ds" bindTarget="csh_transaction_receipt_maintain_result_ds" marginHeight="190" marginWidth="80" navBar="true" >
<!--<a:toolBar> <!--<a:toolBar>
<a:button click="csh510_export" text="导出"/> <a:button click="csh510_export" text="导出"/>
</a:toolBar>--> </a:toolBar>-->
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
} }
function checkBtn() { function checkBtn() {
var ds = $('hls_lease_item_gps_improt_ds'); var ds = $('hls_lease_item_gps_import_ds');
var records = ds.getAll(); var records = ds.getAll();
var header_id = records[0].get('header_id'); var header_id = records[0].get('header_id');
// alert(header_id); // alert(header_id);
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
}, },
scope: this, scope: this,
success: function () { success: function () {
$('hls_lease_item_gps_improt_ds').query(); $('hls_lease_item_gps_import_ds').query();
Leaf.SideBar.show({ Leaf.SideBar.show({
msg: '校验成功', msg: '校验成功',
duration: 2000 duration: 2000
...@@ -73,9 +73,8 @@ ...@@ -73,9 +73,8 @@
var import_over_write_flag = 'N'; var import_over_write_flag = 'N';
function importBtn() { function importBtn() {
debugger;
var msg = '确定要导入信息吗'; var msg = '确定要导入信息吗';
var ds = $('hls_lease_item_gps_improt_ds'); var ds = $('hls_lease_item_gps_import_ds');
var records = ds.getAll(); var records = ds.getAll();
var saveData = []; var saveData = [];
for (var i = 0; i < records.length; i++) { for (var i = 0; i < records.length; i++) {
...@@ -103,7 +102,7 @@ ...@@ -103,7 +102,7 @@
header_id: '${/model/header/record/@header_id}' header_id: '${/model/header/record/@header_id}'
}, },
success: function () { success: function () {
$('hls_lease_item_gps_improt_ds').query(); $('hls_lease_item_gps_import_ds').query();
// Leaf.Masker.unmask(Ext.getBody()); // Leaf.Masker.unmask(Ext.getBody());
Leaf.SideBar.show({ Leaf.SideBar.show({
msg: '导入成功', msg: '导入成功',
...@@ -137,7 +136,7 @@ ...@@ -137,7 +136,7 @@
]]></script> ]]></script>
<a:dataSets> <a:dataSets>
<a:dataSet id="hls_lease_item_gps_improt_ds" autoQuery="true" fetchAll="true" <a:dataSet id="hls_lease_item_gps_import_ds" autoQuery="true" fetchAll="true"
model="hls.HLS204N.hls_lease_item_gps_list_tmp" model="hls.HLS204N.hls_lease_item_gps_list_tmp"
queryUrl="${/request/@context_path}/autocrud/hls.HLS204N.hls_lease_item_gps_list_tmp/query?header_id=${/model/header/record/@header_id}"> queryUrl="${/request/@context_path}/autocrud/hls.HLS204N.hls_lease_item_gps_list_tmp/query?header_id=${/model/header/record/@header_id}">
<a:fields> <a:fields>
...@@ -153,7 +152,7 @@ ...@@ -153,7 +152,7 @@
<div style="float:right;" class="prompt-position period-exists"><span>租赁物期间已存在</span></div> <div style="float:right;" class="prompt-position period-exists"><span>租赁物期间已存在</span></div>
<div style="float:right;" class="prompt-position import-error"><span>导入信息错误</span></div> <div style="float:right;" class="prompt-position import-error"><span>导入信息错误</span></div>
</a:screenTopToolbar> </a:screenTopToolbar>
<a:grid id="grid_ds_id" bindTarget="hls_lease_item_gps_improt_ds" height="480" navBar="true" <a:grid id="grid_ds_id" bindTarget="hls_lease_item_gps_import_ds" height="480" navBar="true"
width="1050" rowRenderer="change_background_color"> width="1050" rowRenderer="change_background_color">
<a:columns> <a:columns>
<a:column name="error_message" editor="textArea_e" prompt="错误信息" width="180"/> <a:column name="error_message" editor="textArea_e" prompt="错误信息" width="180"/>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<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/> <a:init-procedure>
<a:model-query defaultWhereClause="t1.code = &apos;CON_LEASE_ITEM_GPS_TEMPLATE&apos;" model="sys.SYS120.hls_attachment_module" rootPath="template_path"/>
</a:init-procedure>
<a:view> <a:view>
<a:link id="downloadFile_id" url="${/request/@context_path}/downloadFile.lview"/>
<script type="text/javascript"><![CDATA[ <script type="text/javascript"><![CDATA[
function downloadFile() {
new Leaf.Window({
url: $('downloadFile_id').getUrl(),
title: '${l:HLS.SUPPORTING_DOCUMENT}',
params: {
'table_name': 'HLS_ATTACHMENT_MODULE',
'header_id': '${/model/template_path/record/@attachment_module_id}'
},
width: 850,
height: 400
});
}
function saveClick() { function saveClick() {
if (document.getElementById('importFile').value) { if (document.getElementById('importFile').value) {
var fileName = document.getElementById('importFile').value; var fileName = document.getElementById('importFile').value;
...@@ -33,7 +50,9 @@ ...@@ -33,7 +50,9 @@
$('${/parameter/@winid}').close(); $('${/parameter/@winid}').close();
_input_window.on('close', function () { _input_window.on('close', function () {
// $('${/parameter/@parent_ds_id}').setQueryParameter('batch_id','${/parameter/@batch_id}'); // $('${/parameter/@parent_ds_id}').setQueryParameter('batch_id','${/parameter/@batch_id}');
$('${/parameter/@parent_ds_id}').query(); // $('${/parameter/@parent_ds_id}').query();
$('LEASE_ITEM_GPS_MODIFY_ENTRANCE_G_CON_LEASE_ITEM_RESULT_con_lease_item_gps_ds').query();
$('LEASE_ITEM_GPS_MODIFY_ENTRANCE_G_CON_LEASE_ITEM_GROUP_con_lease_item_gps_ds').query();
}); });
} }
...@@ -66,7 +85,8 @@ ...@@ -66,7 +85,8 @@
enctype="multipart/form-data" method="post" target="_input_window"> enctype="multipart/form-data" method="post" target="_input_window">
<label style="margin-left:10px;margin-top:10px;font-size:13px"><![CDATA[${l:PLEASE_SELECT_A_FILE}]]></label> <label style="margin-left:10px;margin-top:10px;font-size:13px"><![CDATA[${l:PLEASE_SELECT_A_FILE}]]></label>
<input name="CONTENT" id="importFile" style="font-size:15px" type="file"/> <input name="CONTENT" id="importFile" style="font-size:15px" type="file"/>
<!-- <input onclick="downloadFile()" style="margin-left:10px;margin-top:10px;width:60px;height:23px" type="button" value="模板下载"/> --> <input onclick="downloadFile()" style="margin-left:10px;margin-top:10px;width:60px;height:23px"
type="button" value="模板下载"/>
<input onclick="saveClick()" style="margin-left:25px;margin-top:10px;width:60px;height:23px" <input onclick="saveClick()" style="margin-left:25px;margin-top:10px;width:60px;height:23px"
type="button" value="${l:TMPLT_IMPORT}"/> type="button" value="${l:TMPLT_IMPORT}"/>
</form> </form>
......
...@@ -28,15 +28,14 @@ ...@@ -28,15 +28,14 @@
width: 420, width: 420,
height: 320 height: 320
}); });
win.on('close', function () { // win.on('close', function () {
$(ds_id).query(); // $(ds_id).query();
}); // });
}; };
//加载事件 //加载事件
window['${/parameter/@layout_code}_on_layout_dynamic_form_add_and_load'] = function(ds, record, config_records, bp_seq) { window['${/parameter/@layout_code}_on_layout_dynamic_form_add_and_load'] = function(ds, record, config_records, bp_seq) {
var ds_id = '${/parameter/@layout_code}_F_QUERY__ds'; var ds_id = '${/parameter/@layout_code}_F_QUERY__ds';
debugger;
var r = $(ds_id).getAt(0); var r = $(ds_id).getAt(0);
r.set('period_from',new Date().format('yyyy-mm').toString()); r.set('period_from',new Date().format('yyyy-mm').toString());
r.set('period_from_n',new Date().format('yyyy-mm').toString()); r.set('period_from_n',new Date().format('yyyy-mm').toString());
......
...@@ -38,7 +38,6 @@ ...@@ -38,7 +38,6 @@
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');
var bp_record = $(bp_ds_id).getCurrentRecord(); var bp_record = $(bp_ds_id).getCurrentRecord();
bp_record.set('bp_category', '${/parameter/@bp_category}'); bp_record.set('bp_category', '${/parameter/@bp_category}');
bp_record.set('owner_user_id', '${/session/@user_id}'); bp_record.set('owner_user_id', '${/session/@user_id}');
......
...@@ -47,6 +47,18 @@ ...@@ -47,6 +47,18 @@
} }
} }
}; };
window['${/parameter/@layout_code}_on_layout_dynamic_form_add_and_load'] = function(ds, record, config_records, bp_seq) {
var bp_create_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master');
if(ds.id == bp_create_ds_id){
var r= $(bp_create_ds_id).getCurrentRecord();
if(!r.get('bp_category')){
r.set('bp_category','TENANT');
r.set('bp_category_n','承租人');
}
}
};
]]></script> ]]></script>
<a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/> <a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
</a:view> </a:view>
......
...@@ -705,6 +705,8 @@ ...@@ -705,6 +705,8 @@
width="110"/> width="110"/>
<a:column name="finance_income_recognized" prompt="HLS801.FINANCE_INCOME_RECOGNIZED" <a:column name="finance_income_recognized" prompt="HLS801.FINANCE_INCOME_RECOGNIZED"
width="80"/> width="80"/>
<a:column name="adjustvat13" align="right" prompt="增值税(13%)调整"/>
<a:column name="adjustvat" align="right" prompt="增值税(16%)调整"/>
</a:columns> </a:columns>
</a:grid> </a:grid>
</a:tab> </a:tab>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- <!--
$Author: wangwei5743 $Author: wangwei5743
$Date: 2014-10-8 下午3:16:19 $Date: 2014-10-8 下午3:16:19
$Revision: 1.0 $Revision: 1.0
$purpose: 租赁申请创建 创建界面 $purpose: 租赁申请创建 创建界面
--> -->
<a:screen xmlns:a="http://www.leaf-framework.org/application" xmlns:s="leaf.plugin.script" <a:screen xmlns:a="http://www.leaf-framework.org/application" xmlns:s="leaf.plugin.script"
customizationEnabled="true" dynamiccreateenabled="true" trace="true"> customizationEnabled="true" dynamiccreateenabled="true" trace="true">
<a:init-procedure> <a:init-procedure>
<a:model-query defaultWhereClause="t1.user_id=${/session/@user_id}" model="prj.PRJ500D.sys_user_lv" <a:model-query defaultWhereClause="t1.user_id=${/session/@user_id}" model="prj.PRJ500D.sys_user_lv"
rootPath="user_name_path"/> rootPath="user_name_path"/>
<s:server-script import="contract_print_path.js"><![CDATA[ <s:server-script import="contract_print_path.js"><![CDATA[
$ctx.parameter.file_path = con_print_path['con_print_path']; $ctx.parameter.file_path = con_print_path['con_print_path'];
$ctx.parameter.tomcat_source = con_print_path['tomcat_source']; $ctx.parameter.tomcat_source = con_print_path['tomcat_source'];
]]> ]]>
</s:server-script> </s:server-script>
</a:init-procedure> </a:init-procedure>
<a:view> <a:view>
<a:link id="hls_bp_master_billing_link" model="prj.PRJ500N.hls_bp_master_billing" modelaction="query"/> <a:link id="${/parameter/@layout_code}${/parameter/@pre_layout}get_special_fields_link_id"
model="cont.CON500.con_contract_get_special_fields" modelaction="update"/>
<a:link id="${/parameter/@layout_code}${/parameter/@pre_layout}get_special_fields_link_id" <a:link id="${/parameter/@layout_code}${/parameter/@pre_layout}prj500_cdd_uploadFile_id"
model="cont.CON500.con_contract_get_special_fields" modelaction="update"/> url="${/request/@context_path}/uploadFile.lview"/>
<a:link id="${/parameter/@layout_code}${/parameter/@pre_layout}prj500_cdd_uploadFile_id" <a:link id="${/parameter/@layout_code}${/parameter/@pre_layout}prj500_cdd_downloadFile_id"
url="${/request/@context_path}/uploadFile.lview"/> url="${/request/@context_path}/downloadFile.lview"/>
<a:link id="${/parameter/@layout_code}${/parameter/@pre_layout}prj500_cdd_downloadFile_id" <a:link id="${/parameter/@layout_code}${/parameter/@tree_code}_hls_fin_calc_quotation_header_link_id"
url="${/request/@context_path}/downloadFile.lview"/> url="${/request/@context_path}/modules/hls/HLS500/hls_fin_calc_quotation_header.lview"/>
<a:link id="${/parameter/@layout_code}${/parameter/@tree_code}_hls_fin_calc_quotation_header_link_id" <a:link id="${/parameter/@layout_code}${/parameter/@tree_code}_hls_fin_calculator_update_link_id"
url="${/request/@context_path}/modules/hls/HLS500/hls_fin_calc_quotation_header.lview"/> url="${/request/@context_path}/modules/hls/HLS500N/hls_fin_calculator_update_n.lview"/>
<a:link id="${/parameter/@layout_code}${/parameter/@tree_code}_hls_fin_calculator_update_link_id" <a:link id="${/parameter/@layout_code}${/parameter/@tree_code}_hls_fin_doc_quotation_for_deron_link_id"
url="${/request/@context_path}/modules/hls/HLS500N/hls_fin_calculator_update_n.lview"/> url="${/request/@context_path}/modules/hls/HLS500/hls_fin_doc_quotation_for_deron.lsc"/>
<a:link id="${/parameter/@layout_code}${/parameter/@tree_code}_hls_fin_doc_quotation_for_deron_link_id" <a:link id="${/parameter/@layout_code}${/parameter/@tree_code}_hls_fin_doc_quotation_link_id"
url="${/request/@context_path}/modules/hls/HLS500/hls_fin_doc_quotation_for_deron.lsc"/> url="${/request/@context_path}/modules/hls/HLS500/hls_fin_doc_quotation.lsc"/>
<a:link id="${/parameter/@layout_code}${/parameter/@tree_code}_hls_fin_doc_quotation_link_id"
url="${/request/@context_path}/modules/hls/HLS500/hls_fin_doc_quotation.lsc"/>
<a:link id="${/parameter/@layout_code}hls_bp_master_query_link"
url="${/request/@context_path}/modules/hls/HLS215N/hls_bp_master_query.lview"/>
<a:link id="${/parameter/@layout_code}hls_bp_master_query_link"
url="${/request/@context_path}/modules/hls/HLS215N/hls_bp_master_query.lview"/> <a:link id="${/parameter/@layout_code}contract_number_query_link"
url="${/request/@context_path}/modules/cont/CON505/con_contract_modify.lview"/>
<a:link id="${/parameter/@layout_code}contract_number_query_link" <a:link id="${/parameter/@layout_code}tenant_rate_query_link"
url="${/request/@context_path}/modules/cont/CON505/con_contract_modify.lview"/> url="${/request/@context_path}/modules/prj/PRJ501N/prj_project_history_display.lview"/>
<a:link id="${/parameter/@layout_code}tenant_rate_query_link" <a:link id="${/parameter/@layout_code}_hls_fin_calc_get_base_rate_link_id"
url="${/request/@context_path}/modules/prj/PRJ501N/prj_project_history_display.lview"/> model="hls.HLS500.hls_fin_calc_get_base_rate" modelaction="update"/>
<a:link id="${/parameter/@layout_code}_hls_fin_calc_get_base_rate_link_id" <a:link id="${/parameter/@layout_code}_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code"
model="hls.HLS500.hls_fin_calc_get_base_rate" modelaction="update"/> modelaction="update"/>
<a:link id="${/parameter/@layout_code}_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code"
modelaction="update"/> <!-- <script src="${/request/@context_path}/modules/prj/PRJ500N/javascripts/check_org_code.js" type="text/javascript"/> -->
<!-- <a:link id="prj_project_create_con_id" model="prj.PRJ513N.prj_peoject_create_con" modelaction="update"/> -->
<!-- <script src="${/request/@context_path}/modules/prj/PRJ500N/javascripts/check_org_code.js" type="text/javascript"/> --> <a:link id="${/parameter/@layout_code}_prj_project_create_contract_link_id"
<!-- <a:link id="prj_project_create_con_id" model="prj.PRJ513N.prj_peoject_create_con" modelaction="update"/> --> model="prj.PRJ505.prj_project_create_contract" modelaction="update"/>
<a:link id="${/parameter/@layout_code}_prj_project_create_contract_link_id" <a:link id="${/parameter/@layout_code}_prj_project_update_status_link_id"
model="prj.PRJ505.prj_project_create_contract" modelaction="update"/> model="prj.PRJ505.prj_project_create_contract" modelaction="execute"/>
<a:link id="${/parameter/@layout_code}_prj_project_update_status_link_id" <a:link id="prj_approval_link_id" model="prj.PRJ501N.project_approval" modelaction="update"/>
model="prj.PRJ505.prj_project_create_contract" modelaction="execute"/> <a:link id="check_prj_lease_item_link_id" model="prj.PRJ501N.project_approval" modelaction="execute"/>
<a:link id="prj_approval_link_id" model="prj.PRJ501N.project_approval" modelaction="update"/> <script src="${/request/@context_path}/javascripts/jquery-1.6.4.min.js" type="text/javascript"/>
<a:link id="check_prj_lease_item_link_id" model="prj.PRJ501N.project_approval" modelaction="execute"/>
<script src="${/request/@context_path}/javascripts/jquery-1.6.4.min.js" type="text/javascript"/> <!--<link href="${/request/@context_path}/css/lightbox.css" rel="stylesheet" type="text/css"/>
<script src="${/request/@context_path}/javascripts/lightbox.js" type="text/javascript"/>-->
<!--<link href="${/request/@context_path}/css/lightbox.css" rel="stylesheet" type="text/css"/> <script type="text/javascript"><![CDATA[
<script src="${/request/@context_path}/javascripts/lightbox.js" type="text/javascript"/>--> jQuery.noConflict();
<script type="text/javascript"><![CDATA[ window['${/parameter/@layout_code}_user_button5_layout_dynamic_click'] = function () {
jQuery.noConflict(); Leaf.showConfirm('提示', '是否确认生成合同?', function () {
window['${/parameter/@layout_code}_user_button5_layout_dynamic_click'] = function () { var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project');
Leaf.showConfirm('提示', '是否确认生成合同?', function () { var quotation_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_quotation');
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project'); var quo_record = $(quotation_ds_id).getCurrentRecord();
var quotation_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_quotation');
var quo_record = $(quotation_ds_id).getCurrentRecord(); var cal_hd_price_list= quo_record.get('cal_hd_price_list');
var price_list= quo_record.get('price_list');
var cal_hd_price_list= quo_record.get('cal_hd_price_list'); if(cal_hd_price_list == price_list) {
var price_list= quo_record.get('price_list'); var url = $('${/parameter/@layout_code}_prj_project_create_contract_link_id').getUrl();
if(cal_hd_price_list == price_list) { var record = $(ds_id).getCurrentRecord();
var url = $('${/parameter/@layout_code}_prj_project_create_contract_link_id').getUrl(); if ($(ds_id).validate()) {
var record = $(ds_id).getCurrentRecord(); window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
if ($(ds_id).validate()) { Leaf.request(
window['${/parameter/@layout_code}_lock_layout_dynamic_window'](); {
Leaf.request( url: url,
{ para: {
url: url, project_id: record.get('project_id'),
para: { contract_seq: 1,
project_id: record.get('project_id'), bp_contract_seq: 1,
contract_seq: 1, contract_type: 'CARCON',
bp_contract_seq: 1, contract_name: record.get('project_name'),
contract_type: 'CARCON', billing_method: record.get('billing_method'),
contract_name: record.get('project_name'), },
billing_method: record.get('billing_method'), success: function (res) {
}, $('${/parameter/@winid}').close();
success: function (res) { window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
$('${/parameter/@winid}').close(); },
window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); failure: function () {
}, 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']();
error: function () { },
window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); scope: this
},
scope: this }
);
} }}else{
); Leaf.showMessage('${l:PROMPT}', '报价有变动请重新计算!');
}}else{ return;
Leaf.showMessage('${l:PROMPT}', '报价有变动请重新计算!'); }
return; });
} };
});
};
//add by zhuxianfei
window['${/parameter/@layout_code}_quote_layout_dynamic_click'] = function () {
//add by zhuxianfei
window['${/parameter/@layout_code}_quote_layout_dynamic_click'] = function () { var url;
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project');
var url; var quotation_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_quotation');
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project'); var history_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'G_CASHFLOW_NS', 'prj_quotation');
var quotation_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_quotation');
var history_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'G_CASHFLOW_NS', 'prj_quotation'); var record = $(quotation_ds_id).getCurrentRecord();
var head_record = $(ds_id).getAt(0);
var record = $(quotation_ds_id).getCurrentRecord(); if ('${/parameter/@calc_type}' == 'LITE_CALCULATOR') {
var head_record = $(ds_id).getAt(0); url = $('${/parameter/@layout_code}${/parameter/@tree_code}_hls_fin_calc_quotation_header_link_id').getUrl();
if ('${/parameter/@calc_type}' == 'LITE_CALCULATOR') { } else if ('${/parameter/@calc_type}' == 'CLASSIC_CALCULATOR') {
url = $('${/parameter/@layout_code}${/parameter/@tree_code}_hls_fin_calc_quotation_header_link_id').getUrl(); url = $('${/parameter/@layout_code}${/parameter/@tree_code}_hls_fin_calculator_update_link_id').getUrl();
} else if ('${/parameter/@calc_type}' == 'CLASSIC_CALCULATOR') { } else {
url = $('${/parameter/@layout_code}${/parameter/@tree_code}_hls_fin_calculator_update_link_id').getUrl(); url = $('${/parameter/@layout_code}${/parameter/@tree_code}_hls_fin_calculator_update_link_id').getUrl();
} else { // Leaf.showMessage('${l:PROMPT}', '${l:HLS.CALC_TYPE_IS_NULL}');
url = $('${/parameter/@layout_code}${/parameter/@tree_code}_hls_fin_calculator_update_link_id').getUrl(); // return;
// Leaf.showMessage('${l:PROMPT}', '${l:HLS.CALC_TYPE_IS_NULL}'); }
// return; if (head_record.dirty == true) {
} Leaf.showMessage('${l:PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}');
if (head_record.dirty == true) { return;
Leaf.showMessage('${l:PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}'); }
return; if (record.dirty == true) {
} Leaf.showMessage('${l:PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}');
if (record.dirty == true) { return;
Leaf.showMessage('${l:PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}'); }
return; if ($(quotation_ds_id).validate()) {
} /* if (!record.get('price_list') || !record.get('currency') || !record.get('lease_times')) {
if ($(quotation_ds_id).validate()) { Leaf.showMessage('${l:PROMPT}', '${l:HLS.QUOTATION_EXECUTE_AFTER_SAVE}');
/* if (!record.get('price_list') || !record.get('currency') || !record.get('lease_times')) { return;
Leaf.showMessage('${l:PROMPT}', '${l:HLS.QUOTATION_EXECUTE_AFTER_SAVE}'); }*/
return;
}*/ var parent_pk_value = head_record.get('project_id');
var secondary_lease = head_record.get('secondary_lease');
var parent_pk_value = head_record.get('project_id'); var payment_deduction = head_record.get('payment_deduction');
var secondary_lease = head_record.get('secondary_lease'); record.set('function_code', 'PRJ505_QUOTATION');
var payment_deduction = head_record.get('payment_deduction'); record.set('function_usage', 'UPDATE');
record.set('function_code', 'PRJ505_QUOTATION'); record.set('project_id', parent_pk_value);
record.set('function_usage', 'UPDATE'); //拆分合同可维护
record.set('project_id', parent_pk_value); window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
//拆分合同可维护 //首次插入
window['${/parameter/@layout_code}_lock_layout_dynamic_window'](); if (!record.get('calc_session_id')) {
//首次插入 record.set('to_doc_table', 'HLS_FIN_CALCULATOR_HD');
if (!record.get('calc_session_id')) { var calc_recreate_L_formula;
record.set('to_doc_table', 'HLS_FIN_CALCULATOR_HD'); calc_recreate_L_formula = 'Y';
var calc_recreate_L_formula;
calc_recreate_L_formula = 'Y'; record.set('_status', 'update');
record.set('from_doc_table', 'PRJ_QUOTATION');
record.set('_status', 'update'); record.set('from_doc_pk', record.get('quotation_id'));
record.set('from_doc_table', 'PRJ_QUOTATION'); record.set('calculate_flag', 'N');
record.set('from_doc_pk', record.get('quotation_id')); if (!'${/parameter/@document_id}') {
record.set('calculate_flag', 'N'); record.set('document_id', parent_pk_value);
if (!'${/parameter/@document_id}') { }
record.set('document_id', parent_pk_value); var price_list= record.get('price_list');
} var saveData = [];
var price_list= record.get('price_list'); saveData.push(record.data);
var saveData = []; Leaf.request({
saveData.push(record.data); url: $('${/parameter/@layout_code}${/parameter/@tree_code}_hls_fin_doc_quotation_link_id').getUrl(),
Leaf.request({ para: saveData,
url: $('${/parameter/@layout_code}${/parameter/@tree_code}_hls_fin_doc_quotation_link_id').getUrl(), success: function (res) {
para: saveData, window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
success: function (res) { $(quotation_ds_id).query();
window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); $(history_ds_id).query();
$(quotation_ds_id).query(); var quotation_id = record.get('quotation_id') || res.result.record.quotation_id;
$(history_ds_id).query(); var win = new Leaf.Window({
var quotation_id = record.get('quotation_id') || res.result.record.quotation_id; id: 'hls_fin_calc_quotation_link_winid',
var win = new Leaf.Window({ params: {
id: 'hls_fin_calc_quotation_link_winid', document_id: parent_pk_value,
params: { price_list: price_list,
document_id: parent_pk_value, secondary_lease:secondary_lease,
price_list: price_list, payment_deduction:payment_deduction,
secondary_lease:secondary_lease, document_category: 'PROJECT',
payment_deduction:payment_deduction, maintain_type: 'MODIFY',
document_category: 'PROJECT', calc_session_id: res.result.record.calc_session_id,
maintain_type: 'MODIFY', quotation_id: quotation_id,
calc_session_id: res.result.record.calc_session_id, dsId: quotation_ds_id,
quotation_id: quotation_id, winId: 'hls_fin_calc_quotation_link_winid',
dsId: quotation_ds_id, global_flag: 'Y',
winId: 'hls_fin_calc_quotation_link_winid', id_num: 1,
global_flag: 'Y', calc_type: '${/parameter/@calc_type}' || 'CLASSIC_CALCULATOR',
id_num: 1, recreate_L_formula: calc_recreate_L_formula
calc_type: '${/parameter/@calc_type}' || 'CLASSIC_CALCULATOR', },
recreate_L_formula: calc_recreate_L_formula url: url,
}, fullScreen: true,
url: url, draggable: true
fullScreen: true, });
draggable: true
}); win.on('close', function () {
$(quotation_ds_id).query();
win.on('close', function () { $(history_ds_id).query();
$(quotation_ds_id).query();
$(history_ds_id).query(); });
},
}); failure: function () {
}, 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']();
error: function () { },
window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); scope: this
}, });
scope: this } else {
}); window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
} else { var cal_hd_price_list= record.get('cal_hd_price_list');
window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); var price_list= record.get('price_list');
var cal_hd_price_list= record.get('cal_hd_price_list'); if(cal_hd_price_list == price_list) {
var price_list= record.get('price_list');
if(cal_hd_price_list == price_list) { //直接进入报价页面
var win = new Leaf.Window({
//直接进入报价页面 id: 'hls_fin_calc_quotation_update_link_winid',
var win = new Leaf.Window({ params: {
id: 'hls_fin_calc_quotation_update_link_winid', document_id: parent_pk_value,
params: { price_list: price_list,
document_id: parent_pk_value, secondary_lease:secondary_lease,
price_list: price_list, payment_deduction:payment_deduction,
secondary_lease:secondary_lease, document_category: 'PROJECT',
payment_deduction:payment_deduction, maintain_type: 'MODIFY',
document_category: 'PROJECT', calc_session_id: record.get('calc_session_id'),
maintain_type: 'MODIFY', quotation_id: record.get('quotation_id'),
calc_session_id: record.get('calc_session_id'), dsId: quotation_ds_id,
quotation_id: record.get('quotation_id'), winId: 'hls_fin_calc_quotation_update_link_winid',
dsId: quotation_ds_id, global_flag: 'Y',
winId: 'hls_fin_calc_quotation_update_link_winid', id_num: 1,
global_flag: 'Y', calc_type: '${/parameter/@calc_type}',
id_num: 1, recreate_L_formula: 'N'
calc_type: '${/parameter/@calc_type}', },
recreate_L_formula: 'N' url: url,
}, fullScreen: true,
url: url, draggable: true
fullScreen: true, });
draggable: true win.on('close', function () {
}); $(quotation_ds_id).query();
win.on('close', function () { $(history_ds_id).query();
$(quotation_ds_id).query(); });
$(history_ds_id).query(); }else {
}); record.set('to_doc_table', 'HLS_FIN_CALCULATOR_HD');
}else { var calc_recreate_L_formula;
record.set('to_doc_table', 'HLS_FIN_CALCULATOR_HD'); calc_recreate_L_formula = 'Y';
var calc_recreate_L_formula;
calc_recreate_L_formula = 'Y'; record.set('_status', 'update');
record.set('from_doc_table', 'PRJ_QUOTATION');
record.set('_status', 'update'); record.set('from_doc_pk', record.get('quotation_id'));
record.set('from_doc_table', 'PRJ_QUOTATION'); record.set('calculate_flag', 'N');
record.set('from_doc_pk', record.get('quotation_id')); if (!'${/parameter/@document_id}') {
record.set('calculate_flag', 'N'); record.set('document_id', parent_pk_value);
if (!'${/parameter/@document_id}') { }
record.set('document_id', parent_pk_value); var price_list= record.get('price_list');
} var saveData = [];
var price_list= record.get('price_list'); saveData.push(record.data);
var saveData = []; Leaf.request({
saveData.push(record.data); url: $('${/parameter/@layout_code}${/parameter/@tree_code}_hls_fin_doc_quotation_link_id').getUrl(),
Leaf.request({ para: saveData,
url: $('${/parameter/@layout_code}${/parameter/@tree_code}_hls_fin_doc_quotation_link_id').getUrl(), success: function (res) {
para: saveData,
success: function (res) { window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
$(quotation_ds_id).query();
window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); $(history_ds_id).query();
$(quotation_ds_id).query(); var quotation_id = record.get('quotation_id') || res.result.record.quotation_id;
$(history_ds_id).query(); var win = new Leaf.Window({
var quotation_id = record.get('quotation_id') || res.result.record.quotation_id; id: 'hls_fin_calc_quotation_link_winid',
var win = new Leaf.Window({ params: {
id: 'hls_fin_calc_quotation_link_winid', document_id: parent_pk_value,
params: { price_list: price_list,
document_id: parent_pk_value, secondary_lease:secondary_lease,
price_list: price_list, payment_deduction:payment_deduction,
secondary_lease:secondary_lease, document_category: 'PROJECT',
payment_deduction:payment_deduction, maintain_type: 'MODIFY',
document_category: 'PROJECT', calc_session_id: res.result.record.calc_session_id,
maintain_type: 'MODIFY', quotation_id: quotation_id,
calc_session_id: res.result.record.calc_session_id, dsId: quotation_ds_id,
quotation_id: quotation_id, winId: 'hls_fin_calc_quotation_link_winid',
dsId: quotation_ds_id, global_flag: 'Y',
winId: 'hls_fin_calc_quotation_link_winid', id_num: 1,
global_flag: 'Y', calc_type: '${/parameter/@calc_type}' || 'CLASSIC_CALCULATOR',
id_num: 1, recreate_L_formula: calc_recreate_L_formula
calc_type: '${/parameter/@calc_type}' || 'CLASSIC_CALCULATOR', },
recreate_L_formula: calc_recreate_L_formula url: url,
}, fullScreen: true,
url: url, draggable: true
fullScreen: true, });
draggable: true win.on('close', function () {
}); $(quotation_ds_id).query();
win.on('close', function () { $(history_ds_id).query();
$(quotation_ds_id).query();
$(history_ds_id).query(); });
},
}); failure: function () {
}, 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']();
error: function () { },
window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); scope: this
}, });
scope: this }
}); }
} }
} };
}
};
function prj501n_upload_file(id, name, query_only) {
var record = window['${/parameter/@layout_code}_hls_link_render_record'][id + '---' + name];
function prj501n_upload_file(id, name, query_only) { if (record.get('check_id')) {
var record = window['${/parameter/@layout_code}_hls_link_render_record'][id + '---' + name]; var url;
if (record.get('check_id')) { if (query_only == 'Y' || '${/parameter/@function_usage}' == 'QUERY') {
var url; url = $('${/parameter/@layout_code}${/parameter/@pre_layout}prj500_cdd_downloadFile_id').getUrl() + '?table_name=PRJ_CDD_ITEM_CHECK&header_id=' + record.get('check_id');
if (query_only == 'Y' || '${/parameter/@function_usage}' == 'QUERY') { } else {
url = $('${/parameter/@layout_code}${/parameter/@pre_layout}prj500_cdd_downloadFile_id').getUrl() + '?table_name=PRJ_CDD_ITEM_CHECK&header_id=' + record.get('check_id'); url = $('${/parameter/@layout_code}${/parameter/@pre_layout}prj500_cdd_uploadFile_id').getUrl() + '?table_name=PRJ_CDD_ITEM_CHECK&header_id=' + record.get('check_id');
} else { }
url = $('${/parameter/@layout_code}${/parameter/@pre_layout}prj500_cdd_uploadFile_id').getUrl() + '?table_name=PRJ_CDD_ITEM_CHECK&header_id=' + record.get('check_id'); var win = new Leaf.Window({
} url: url,
var win = new Leaf.Window({ title: '${l:HLS.SUPPORTING_DOCUMENT}',
url: url, id: 'prj500_cdd_uploadFile_screen_id',
title: '${l:HLS.SUPPORTING_DOCUMENT}', width: 850,
id: 'prj500_cdd_uploadFile_screen_id', height: 400
width: 850, });
height: 400
}); win.on('close', function () {
record.ds.query();
win.on('close', function () { });
record.ds.query(); } else {
}); Leaf.showMessage('${l:HLS.PROMPT}', '请先保存!');
} else { }
Leaf.showMessage('${l:HLS.PROMPT}', '请先保存!'); }
}
} function prj501n_bp_code_renderer(id, name, query_only) {
var record = window['${/parameter/@layout_code}_hls_link_render_record'][id + '---' + name];
function prj501n_bp_code_renderer(id, name, query_only) { var param = {};
var record = window['${/parameter/@layout_code}_hls_link_render_record'][id + '---' + name]; param['bp_id'] = record.get('bp_id');
var param = {}; param['bp_class'] = record.get('bp_class');
param['bp_id'] = record.get('bp_id'); if(record.get('bp_category') =='AGENT'){
param['bp_class'] = record.get('bp_class'); param['function_code'] = 'HLS303_Q';
if(record.get('bp_category') =='AGENT'){ param['function_usage'] = 'QUERY';
param['function_code'] = 'HLS303_Q';
param['function_usage'] = 'QUERY'; }else{
param['function_code'] = 'HLS215D';
}else{ param['function_usage'] = 'QUERY';
param['function_code'] = 'HLS215D'; }
param['function_usage'] = 'QUERY'; param['winid'] = '${/parameter/@layout_code}_bp_win_id';
} param['url_title'] = '${l:HLS212.BP_MASTER_MAINTAIN}';
param['winid'] = '${/parameter/@layout_code}_bp_win_id'; hls_doc_get_layout_code('${/parameter/@layout_code}_get_layout_code_link_id', param, '${/parameter/@layout_code}hls_bp_master_query_link', record.ds.id, '${/parameter/@layout_code}');
param['url_title'] = '${l:HLS212.BP_MASTER_MAINTAIN}'; }
hls_doc_get_layout_code('${/parameter/@layout_code}_get_layout_code_link_id', param, '${/parameter/@layout_code}hls_bp_master_query_link', record.ds.id, '${/parameter/@layout_code}');
} function prj501n_project_number_renderer(id, name, query_only){
var record = window['${/parameter/@layout_code}_hls_link_render_record'][id + '---' + name];
function prj501n_project_number_renderer(id, name, query_only){ var param = {};
var record = window['${/parameter/@layout_code}_hls_link_render_record'][id + '---' + name]; param['bp_id'] = record.get('project_id');
var param = {}; param['bp_class'] = record.get('bp_class');
param['bp_id'] = record.get('project_id'); param['function_code'] = 'PRJ501D';
param['bp_class'] = record.get('bp_class'); param['function_usage'] = 'QUERY';
param['function_code'] = 'PRJ501D'; param['maintain_type'] = 'READONLY';
param['function_usage'] = 'QUERY'; param['winid'] = '${/parameter/@layout_code}_project_number_win_id';
param['maintain_type'] = 'READONLY'; param['prj_bp_id'] = record.get('prj_bp_id');
param['winid'] = '${/parameter/@layout_code}_project_number_win_id';
param['prj_bp_id'] = record.get('prj_bp_id'); hls_doc_get_layout_code('${/parameter/@layout_code}_get_layout_code_link_id', param, '${/parameter/@layout_code}project_number_query_link', record.ds.id, '${/parameter/@layout_code}');
}
hls_doc_get_layout_code('${/parameter/@layout_code}_get_layout_code_link_id', param, '${/parameter/@layout_code}project_number_query_link', record.ds.id, '${/parameter/@layout_code}'); function prj501n_contract_number_renderer(id, name, query_only){
} var record = window['${/parameter/@layout_code}_hls_link_render_record'][id + '---' + name];
function prj501n_contract_number_renderer(id, name, query_only){ var param = {};
var record = window['${/parameter/@layout_code}_hls_link_render_record'][id + '---' + name]; param['contract_id'] = record.get('contract_id');
var param = {}; param['function_code'] = 'CON301';
param['contract_id'] = record.get('contract_id'); param['function_usage'] = 'QUERY';
param['function_code'] = 'CON301'; param['winid'] = '${/parameter/@layout_code}_project_number_win_id';
param['function_usage'] = 'QUERY'; param['url_title'] = '${l:CON301.CONTRACT_DETAIL}';
param['winid'] = '${/parameter/@layout_code}_project_number_win_id'; hls_doc_get_layout_code('${/parameter/@layout_code}_get_layout_code_link_id', param, '${/parameter/@layout_code}contract_number_query_link', record.ds.id, '${/parameter/@layout_code}');
param['url_title'] = '${l:CON301.CONTRACT_DETAIL}';
hls_doc_get_layout_code('${/parameter/@layout_code}_get_layout_code_link_id', param, '${/parameter/@layout_code}contract_number_query_link', record.ds.id, '${/parameter/@layout_code}'); }
} //超链接渲染
window['${/parameter/@layout_code}_dynamic_link_renderer'] = function (value, record, name, config_record) {
//超链接渲染 var link_function = '';
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;
var link_function = ''; if (name == 'attachment') {
window['${/parameter/@layout_code}_hls_link_render_record'][record.id + '---' + name] = record; link_function = 'prj501n_upload_file';
if (name == 'attachment') { return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + name + '\',\'' + config_record.get('query_only') + '\');">' + config_record.get('prompt') + '</a>';
link_function = 'prj501n_upload_file'; } else if (name == 'attach_file_name') {
return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + name + '\',\'' + config_record.get('query_only') + '\');">' + config_record.get('prompt') + '</a>';
} else if (name == 'attach_file_name') { /* if (value != null) {
var link = '${/request/@context_path}/atm_download.lsc?attachment_id=';
/* if (value != null) { var str = value.split(';;');
var link = '${/request/@context_path}/atm_download.lsc?attachment_id='; var url = '';
var str = value.split(';;'); for (var i = 0; i < str.length; i++) {
var url = ''; //
for (var i = 0; i < str.length; i++) { var temp = str[i].split('--');
// if (!Leaf.isEmpty(temp[0])) {
var temp = str[i].split('--'); var file_name = temp[0].toUpperCase();
if (!Leaf.isEmpty(temp[0])) { var file_suffix = temp[0].substr(temp[0].lastIndexOf('.') + 1).toUpperCase();
var file_name = temp[0].toUpperCase(); if (file_name.indexOf('.PDF') >= 0) {
var file_suffix = temp[0].substr(temp[0].lastIndexOf('.') + 1).toUpperCase(); url = url + '<a href=javascript:view_pdf(\'' + temp[1] + '\')>' + temp[0] + '</a>' + ',';
if (file_name.indexOf('.PDF') >= 0) { } else if (file_suffix == 'BMP' || file_suffix == 'JPG' || file_suffix == 'JPEG' || file_suffix == 'PNG' || file_suffix == 'GIF') {
url = url + '<a href=javascript:view_pdf(\'' + temp[1] + '\')>' + temp[0] + '</a>' + ','; url = url + '<a href=' + link + temp[1] + ' ref="img">' + temp[0] + '</a>' + ',';
} else if (file_suffix == 'BMP' || file_suffix == 'JPG' || file_suffix == 'JPEG' || file_suffix == 'PNG' || file_suffix == 'GIF') { } else {
url = url + '<a href=' + link + temp[1] + ' ref="img">' + temp[0] + '</a>' + ','; url = url + '<a href=' + link + temp[1] + '>' + temp[0] + '</a>' + ',';
} else { }
url = url + '<a href=' + link + temp[1] + '>' + temp[0] + '</a>' + ','; }
} }
} return url;
}
return url; }*/
if (value != null ) {
}*/ var link = '${/request/@context_path}/atm_download.lsc?attachment_id=';
if (value != null ) { var str = value.split(';;');
var link = '${/request/@context_path}/atm_download.lsc?attachment_id='; var url = '';
var str = value.split(';;'); for (var i = 0;i < str.length;i++) {
var url = ''; //
for (var i = 0;i < str.length;i++) { var temp = str[i].split('--');
// if (!Leaf.isEmpty(temp[0])) {
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();
var file_name = temp[0].toUpperCase(); if (file_name.indexOf('.PDF') >= 0) {
var file_suffix = temp[0].substr(temp[0].lastIndexOf('.') + 1).toUpperCase(); url = url + '<a href=javascript:view_pdf(\'' + temp[1] + '\')>' + temp[0] + '</a>' + ',';
if (file_name.indexOf('.PDF') >= 0) { } //else if (file_suffix == 'BMP' || file_suffix == 'JPG' || file_suffix == 'JPEG' || file_suffix == 'PNG' || file_suffix == 'GIF') {
url = url + '<a href=javascript:view_pdf(\'' + temp[1] + '\')>' + temp[0] + '</a>' + ','; else if (file_name.indexOf('.BMP') >= 0 || file_name.indexOf('.JPG') >= 0 || file_name.indexOf('.JPEG') >= 0 || file_name.indexOf('.PNG') >= 0 || file_name.indexOf('.GIF') >= 0) {
} //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 if (file_name.indexOf('.BMP') >= 0 || file_name.indexOf('.JPG') >= 0 || file_name.indexOf('.JPEG') >= 0 || file_name.indexOf('.PNG') >= 0 || file_name.indexOf('.GIF') >= 0) { } else {
url = url + '<a href=' + link + temp[1] + ' ref="img">' + temp[0] + '</a>' + ','; url = url + '<a href=' + link + temp[1] + '>' + temp[0] + '</a>' + ',';
} else { }
url = url + '<a href=' + link + temp[1] + '>' + temp[0] + '</a>' + ','; }
} }
} return url;
}
return url; }
} else if (name == 'bp_link' && !record.isNew) {
} link_function = 'prj501n_bp_code_renderer';
} else if (name == 'bp_link' && !record.isNew) { return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + name + '\',\'' + config_record.get('query_only') + '\');">' + config_record.get('prompt') + '</a>';
link_function = 'prj501n_bp_code_renderer';
return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + name + '\',\'' + config_record.get('query_only') + '\');">' + config_record.get('prompt') + '</a>'; }else if(name=='project_number'){
link_function = 'prj501n_project_number_renderer';
}else if(name=='project_number'){ return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + name + '\',\'' + config_record.get('query_only') + '\');">' + value+ '</a>';
link_function = 'prj501n_project_number_renderer';
return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + name + '\',\'' + config_record.get('query_only') + '\');">' + value+ '</a>'; }else if(name =='contract_number'){
link_function = 'prj501n_contract_number_renderer';
}else if(name =='contract_number'){ return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + name + '\',\'' + config_record.get('query_only') + '\');">' + value+ '</a>';
link_function = 'prj501n_contract_number_renderer'; }
return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + name + '\',\'' + config_record.get('query_only') + '\');">' + value+ '</a>'; };
}
}; //保存submitsuccess调用
window['${/parameter/@layout_code}_on_layout_dynamic_submitsuccess'] = function (ds, record, res) {
//保存submitsuccess调用 window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
window['${/parameter/@layout_code}_on_layout_dynamic_submitsuccess'] = function (ds, record, res) { var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project');
window['${/parameter/@layout_code}_lock_layout_dynamic_window'](); var prj_quotation_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_quotation');
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project'); var bp_ds_ids = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_BASIC_INFO_1','prj_project');
var prj_quotation_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_quotation'); var prj_project_lease_item_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_HEAD_CAR','prj_project_lease_item');
var bp_ds_ids = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_BASIC_INFO_1','prj_project'); var bp_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_BP','prj_project_bp');
var prj_project_lease_item_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_HEAD_CAR','prj_project_lease_item'); var tenant_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'T_HISTORY_INGO', 'hls_bp_master');
var bp_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_BP','prj_project_bp'); var cdd_item_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_cdd_item_doc_ref');
var tenant_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'T_HISTORY_INGO', 'hls_bp_master'); var virtual_ds_id = '${/parameter/@layout_code}_virtual_ds';
var cdd_item_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_cdd_item_doc_ref'); if (ds_id==ds.id || virtual_ds_id==ds.id) {
var virtual_ds_id = '${/parameter/@layout_code}_virtual_ds'; $(cdd_item_ds_id).query();
if (ds_id==ds.id || virtual_ds_id==ds.id) { $(bp_ds_id).query();
$(cdd_item_ds_id).query(); $(tenant_ds_id).query();
$(bp_ds_id).query(); $(prj_project_lease_item_ds_id).query();
$(tenant_ds_id).query(); $(prj_quotation_ds_id).query();
$(prj_project_lease_item_ds_id).query();
$(prj_quotation_ds_id).query(); }
} window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
};
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
}; //选择事件(grid,attach,gridbox,table)
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_select'] = function(ds, record, bp_seq) {
//选择事件(grid,attach,gridbox,table) var bp_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'G_BP', 'prj_project_bp');
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_select'] = function(ds, record, bp_seq) { if (bp_ds_id == ds.id && bp_ds_id) {
var bp_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'G_BP', 'prj_project_bp'); if (record.get('bp_category') == 'TENANT') {
if (bp_ds_id == ds.id && bp_ds_id) { //实际为不选中
if (record.get('bp_category') == 'TENANT') { Leaf.showMessage('${l:HLS.PROMPT}', '无法删除主承租人!');
//实际为不选中 ds.unSelect(record);
Leaf.showMessage('${l:HLS.PROMPT}', '无法删除主承租人!'); ds.Select(record);
ds.unSelect(record); }
ds.Select(record); if (record.get('bp_category') == 'AGENT') {
} //实际为不选中
if (record.get('bp_category') == 'AGENT') { Leaf.showMessage('${l:HLS.PROMPT}', '无法删除经销商!');
//实际为不选中 ds.unSelect(record);
Leaf.showMessage('${l:HLS.PROMPT}', '无法删除经销商!'); ds.Select(record);
ds.unSelect(record); }
ds.Select(record); }
} };
}
}; function jsGetAge(strBirthday) {
//更新时调用 var returnAge;
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_update'] = function(ds, record, name, value, old_value, bp_seq) { var strBirthdayArr = strBirthday.split("-");
var prj_project_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project'); var birthYear = strBirthdayArr[0];
//选择承租人带出开票信息 var birthMonth = strBirthdayArr[1];
if(prj_project_ds_id==ds.id &&prj_project_ds_id){ var birthDay = strBirthdayArr[2];
if(name=="bp_id_tenant" && value){
Leaf.Masker.mask(Ext.getBody()); var d = new Date();
Leaf.request({ var nowYear = d.getFullYear();
url: $('hls_bp_master_billing_link').getUrl(), var nowMonth = d.getMonth() + 1;
para: { var nowDay = d.getDate();
bp_id:value
}, if (nowYear == birthYear) {
success: function(res) { returnAge = 0;//同年 则为0岁  
var billing_into=res.result.record; } else {
var prj_project_bp_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project_bp'); var ageDiff = nowYear - birthYear; //年之差  
if (ageDiff > 0) {
$(prj_project_bp_ds_id).getAt(0).set('taxpayer_type_n',billing_into.taxpayer_type_n); if (nowMonth == birthMonth) {
$(prj_project_bp_ds_id).getAt(0).set('taxpayer_type',billing_into.taxpayer_type); var dayDiff = nowDay - birthDay;//日之差  
$(prj_project_bp_ds_id).getAt(0).set('invoice_title',billing_into.invoice_title); if (dayDiff < 0) {
$(prj_project_bp_ds_id).getAt(0).set('invoice_bp_address',billing_into.invoice_bp_address); returnAge = ageDiff - 1;
$(prj_project_bp_ds_id).getAt(0).set('invoice_bp_phone_num',billing_into.invoice_bp_phone_num); } else {
$(prj_project_bp_ds_id).getAt(0).set('invoice_bp_bank',billing_into.invoice_bp_bank); returnAge = ageDiff;
$(prj_project_bp_ds_id).getAt(0).set('invoice_bp_bank_account',billing_into.invoice_bp_bank_account); }
$(prj_project_bp_ds_id).getAt(0).set('tax_registry_num',billing_into.tax_registry_num); } else {
$(prj_project_bp_ds_id).getAt(0).set('ref_v07',billing_into.ref_v07); var monthDiff = nowMonth - birthMonth;//月之差  
if (monthDiff < 0) {
//record.set(); returnAge = ageDiff - 1;
Leaf.Masker.unmask(Ext.getBody()); } else {
}, returnAge = ageDiff;
failure: function() { }
Leaf.Masker.unmask(Ext.getBody()); }
}, } else {
error: function() { returnAge = -1;//返回-1 表示出生日期输入错误 晚于今天  
Leaf.Masker.unmask(Ext.getBody()); }
}, }
scope: this return returnAge;//返回周岁年龄  
}); }
}
} //更新时调用
if(name=='pay_method'){ window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_update'] = function(ds, record, name, value, old_value, bp_seq) {
if ( record.get('pay_method') == 'WIRE_TRANSFER') { var prj_project_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project');
record.set('bank_account_id',null); //选择承租人带出开票信息
record.set('bank_account_id_n',null); if(prj_project_ds_id==ds.id &&prj_project_ds_id){
record.set('bank_branch_num',''); if(name=="bp_id_tenant" && value){
record.set('bank_account_name',''); Leaf.Masker.mask(Ext.getBody());
record.getField('bank_account_id').setReadOnly(true); Leaf.request({
record.getField('bank_account_id_n').setReadOnly(true); url: $('hls_bp_master_billing_link').getUrl(),
record.getField('bank_account_id').setRequired(false); para: {
record.getField('bank_account_id_n').setRequired(false); bp_id:value
} else { },
record.getField('bank_account_id').setReadOnly(false); success: function(res) {
record.getField('bank_account_id_n').setReadOnly(false); var billing_into=res.result.record;
record.getField('bank_account_id').setRequired(false); var prj_project_bp_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project_bp');
record.getField('bank_account_id_n').setRequired(false);
} $(prj_project_bp_ds_id).getAt(0).set('taxpayer_type_n',billing_into.taxpayer_type_n);
$(prj_project_bp_ds_id).getAt(0).set('taxpayer_type',billing_into.taxpayer_type);
} $(prj_project_bp_ds_id).getAt(0).set('invoice_title',billing_into.invoice_title);
if(name=='payment_deduction') { $(prj_project_bp_ds_id).getAt(0).set('invoice_bp_address',billing_into.invoice_bp_address);
var quoation_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_QUOTATION_N', 'prj_quotation'); $(prj_project_bp_ds_id).getAt(0).set('invoice_bp_phone_num',billing_into.invoice_bp_phone_num);
var quoation_record = $(quoation_ds_id).getCurrentRecord(); $(prj_project_bp_ds_id).getAt(0).set('invoice_bp_bank',billing_into.invoice_bp_bank);
var down_payment = quoation_record.get('down_payment') || 0; $(prj_project_bp_ds_id).getAt(0).set('invoice_bp_bank_account',billing_into.invoice_bp_bank_account);
var calc_session_id= quoation_record.get('calc_session_id'); $(prj_project_bp_ds_id).getAt(0).set('tax_registry_num',billing_into.tax_registry_num);
var other_payment2; $(prj_project_bp_ds_id).getAt(0).set('ref_v07',billing_into.ref_v07);
if (old_value && value &&calc_session_id&& value == 'NO_DEDUCTION') {
other_payment2 = 0; //record.set();
} else if (old_value && value &&calc_session_id&& value != 'NO_DEDUCTION'){ Leaf.Masker.unmask(Ext.getBody());
other_payment2=down_payment; },
} failure: function() {
window['${/parameter/@layout_code}_lock_layout_dynamic_window'](); Leaf.Masker.unmask(Ext.getBody());
Leaf.request({ },
url: $('${/parameter/@layout_code}_prj_project_update_status_link_id').getUrl(), error: function() {
para: { Leaf.Masker.unmask(Ext.getBody());
other_payment2: other_payment2, },
calc_session_id: calc_session_id scope: this
}, });
success: function (arg) { }
window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); }
}, if(name=='pay_method'){
failure: function () { if ( record.get('pay_method') == 'WIRE_TRANSFER') {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); record.set('bank_account_id',null);
}, record.set('bank_account_id_n',null);
error: function () { record.set('bank_branch_num','');
window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); record.set('bank_account_name','');
}, record.getField('bank_account_id').setReadOnly(true);
scope: this record.getField('bank_account_id_n').setReadOnly(true);
record.getField('bank_account_id').setRequired(false);
}); record.getField('bank_account_id_n').setRequired(false);
} else {
record.getField('bank_account_id').setReadOnly(false);
} record.getField('bank_account_id_n').setReadOnly(false);
}; record.getField('bank_account_id').setRequired(true);
record.getField('bank_account_id_n').setRequired(true);
}
//加载时调用(grid,table,gridBox)
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_load'] = function(ds, record, config_records, bp_seq) { }
var bp_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'G_BP', 'prj_project_bp'); if(name=='payment_deduction') {
/* var bp_ds_ids = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'F_HISTORY_INFO_1', 'prj_project_bp'); var quoation_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_QUOTATION_N', 'prj_quotation');
$(bp_ds_ids).setQueryParameter('bp_id','${/parameter/@bp_id_tenant}'); var quoation_record = $(quoation_ds_id).getCurrentRecord();
$(bp_ds_ids).query();*/ var down_payment = quoation_record.get('down_payment') || 0;
if (bp_ds_id == ds.id && bp_ds_id) { var calc_session_id= quoation_record.get('calc_session_id');
if (record.get('bp_category') == 'TENANT') { var other_payment2;
record.getField('bp_category_n').setReadOnly(true); if (old_value && value &&calc_session_id&& value == 'NO_DEDUCTION') {
record.getField('bp_id_n').setReadOnly(true); other_payment2 = 0;
} } else if (old_value && value &&calc_session_id&& value != 'NO_DEDUCTION'){
if (record.get('bp_category') == 'AGENT') { other_payment2=down_payment;
record.getField('bp_category_n').setReadOnly(true); }
record.getField('bp_id_n').setReadOnly(true); window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
} Leaf.request({
} url: $('${/parameter/@layout_code}_prj_project_update_status_link_id').getUrl(),
para: {
}; other_payment2: other_payment2,
calc_session_id: calc_session_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'], 'prj_project'); success: function (arg) {
if(ds_id==ds.id && ds_id){ window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
if(record.get('pay_method') == 'WIRE_TRANSFER'){ },
record.getField('bank_account_id').setReadOnly(true); failure: function () {
record.getField('bank_account_id_n').setReadOnly(true); window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
record.getField('bank_account_id').setRequired(false); },
record.getField('bank_account_id_n').setRequired(false); error: function () {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
} },
} scope: this
};
});
//pdf预览 add by zhuxianfei
function view_pdf(attachment_id) {
Leaf.request({ }
url: '${/request/@context_path}/autocrud/fnd.fnd_atm_attachment/query', };
para: {
attachment_id: attachment_id
}, //加载时调用(grid,table,gridBox)
success: function(res) { window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_load'] = function(ds, record, config_records, bp_seq) {
var path = res.result.record.file_path; var bp_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'G_BP', 'prj_project_bp');
path = path.substr(path.indexOf('hls_attachment')); /* var bp_ds_ids = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'F_HISTORY_INFO_1', 'prj_project_bp');
var tomcat_source = '${/parameter/@tomcat_source}'; $(bp_ds_ids).setQueryParameter('bp_id','${/parameter/@bp_id_tenant}');
var source_path = 'http://' + window.location.host + '/' + tomcat_source + '/' + path; $(bp_ds_ids).query();*/
var oWin = window.open(source_path); if (bp_ds_id == ds.id && bp_ds_id) {
}, if (record.get('bp_category') == 'TENANT') {
scope: this record.getField('bp_category_n').setReadOnly(true);
}); record.getField('bp_id_n').setReadOnly(true);
} }
if (record.get('bp_category') == 'AGENT') {
record.getField('bp_category_n').setReadOnly(true);
Leaf.onReady(function(){ record.getField('bp_id_n').setReadOnly(true);
var bp_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'T_HISTORY_INGO', 'hls_bp_master'); }
var url='${/request/@context_path}/autocrud/prj.PRJ501N.prj_project_history_display/query?project_id=${/parameter/@project_id}&bp_id=${/parameter/@bp_id}'; }
$(bp_ds_id).setQueryUrl(url);
$(bp_ds_id).query(); };
var quotation_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_quotation');
$(quotation_ds_id).query(); window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_form_add_and_load'] = function(ds, record, config_records, bp_seq) {
// var billing_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'F_INVOICE_INFO', 'prj_project_bp'); var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project');
var billing_ds_id=get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'prj_project_bp'); if(ds_id==ds.id && ds_id){
var billing_url='${/request/@context_path}/autocrud/prj.PRJ501N.prj_project_bp/query?project_id=${/parameter/@project_id}'; if(record.get('pay_method') == 'WIRE_TRANSFER'){
$(billing_ds_id).setQueryUrl(billing_url); record.getField('bank_account_id').setReadOnly(true);
$(billing_ds_id).query(); record.getField('bank_account_id_n').setReadOnly(true);
record.getField('bank_account_id').setRequired(false);
record.getField('bank_account_id_n').setRequired(false);
})
//序号自增 add by lijingjing }
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_add'] = function(ds, record, config_records, bp_seq) { }
//租赁物序号 };
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project_lease_item');
if (ds_id == ds.id && ds_id) { //pdf预览 add by zhuxianfei
//设置序号 function view_pdf(attachment_id) {
var measure_records = ds.getAll(), Leaf.request({
seq_num = 0; url: '${/request/@context_path}/autocrud/fnd.fnd_atm_attachment/query',
if (measure_records.length) { para: {
for (var j = 0;j < measure_records.length;j++) { attachment_id: attachment_id
var measure_record = measure_records[j], },
rk = measure_record.get('lease_item_seq'); success: function(res) {
if (seq_num <= rk) { var path = res.result.record.file_path;
seq_num = rk; path = path.substr(path.indexOf('hls_attachment'));
} var tomcat_source = '${/parameter/@tomcat_source}';
} var source_path = 'http://' + window.location.host + '/' + tomcat_source + '/' + path;
} var oWin = window.open(source_path);
var rk_value = seq_num + 1; },
record.set('lease_item_seq', rk_value); scope: this
});
} }
};
//indexchange事件(grid,attach,gridbox,table) Leaf.onReady(function(){
// window['${/parameter/@layout_code}_on_layout_dynamic_grid_indexchange'] = function(ds, record, bp_seq) { var bp_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'T_HISTORY_INGO', 'hls_bp_master');
// if(!record.get('pattern')){ var url='${/request/@context_path}/autocrud/prj.PRJ501N.prj_project_history_display/query?project_id=${/parameter/@project_id}&bp_id=${/parameter/@bp_id}';
// $(bp_ds_id).setQueryUrl(url);
// var nodes=document.querySelectorAll('td[dataindex="machine_number"]'); $(bp_ds_id).query();
// // var nodes=document.getElementsByClassName('cell-editor-div'); var quotation_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_quotation');
// for (var i=1;i<nodes.length;i++){ $(quotation_ds_id).query();
// nodes[i].children[0].style.backgroundColor= "#FAFACD"; // var billing_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'F_INVOICE_INFO', 'prj_project_bp');
// } var billing_ds_id=get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'prj_project_bp');
// // $('.cell-editor-div').parent().css("background-color","yellow"); var billing_url='${/request/@context_path}/autocrud/prj.PRJ501N.prj_project_bp/query?project_id=${/parameter/@project_id}';
// } $(billing_ds_id).setQueryUrl(billing_url);
// }; $(billing_ds_id).query();
//客户评分
window['${/parameter/@layout_code}_user_button9_layout_dynamic_click'] = function() {
})
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project'); //序号自增 add by lijingjing
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_add'] = function(ds, record, config_records, bp_seq) {
var record = $(ds_id).getCurrentRecord(); //租赁物序号
var param = {}; var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project_lease_item');
if(record.get('project_id')){ if (ds_id == ds.id && ds_id) {
if(record.get('project_status')=='NEW'||record.get('project_status')=='APPROVE_RETURN'||record.get('project_status')=='REJECT'){ //设置序号
param['function_code'] = 'PRJ501TENANT'; var measure_records = ds.getAll(),
param['function_usage'] = 'UPDATE'; seq_num = 0;
}else{ if (measure_records.length) {
param['function_code'] = 'PRJ501TENANT'; for (var j = 0;j < measure_records.length;j++) {
param['function_usage'] = 'QUERY'; var measure_record = measure_records[j],
} rk = measure_record.get('lease_item_seq');
if (seq_num <= rk) {
param['project_id'] = record.get('project_id'); seq_num = rk;
param['winid'] = 'hl_tenant_score_rate_win_id'; }
param['url_title'] = '客户评分明细'; }
hls_doc_get_layout_code('${/parameter/@layout_code}_get_layout_code_link_id', param, '${/parameter/@layout_code}tenant_rate_query_link', '${/parameter/@layout_code}'); }
}else{ var rk_value = seq_num + 1;
Leaf.showMessage('${l:PROMPT}', '请先保存'); record.set('lease_item_seq', rk_value);
return;
} }
};
} //indexchange事件(grid,attach,gridbox,table)
window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function () { // window['${/parameter/@layout_code}_on_layout_dynamic_grid_indexchange'] = function(ds, record, bp_seq) {
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project'); // if(!record.get('pattern')){
var lease_item_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project_lease_item'); //
var quotation_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_quotation'); // var nodes=document.querySelectorAll('td[dataindex="machine_number"]');
var bp_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project_bp'); // // var nodes=document.getElementsByClassName('cell-editor-div');
var record = $(quotation_ds_id).getCurrentRecord(); // for (var i=1;i<nodes.length;i++){
var current_record = $(ds_id).getCurrentRecord(); // nodes[i].children[0].style.backgroundColor= "#FAFACD";
var lease_item_record = $(lease_item_ds_id).getCurrentRecord(); // }
var bp_record = $(bp_ds_id).getCurrentRecord(); // // $('.cell-editor-div').parent().css("background-color","yellow");
var project_id = current_record.get('project_id'); // }
if (current_record.dirty == true) { // };
Leaf.showMessage('${l:PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}'); //客户评分
return; window['${/parameter/@layout_code}_user_button9_layout_dynamic_click'] = function() {
}
if (record.dirty == true) { var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project');
Leaf.showMessage('${l:PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}');
return; var record = $(ds_id).getCurrentRecord();
} var param = {};
if (lease_item_record.dirty == true) { if(record.get('project_id')){
Leaf.showMessage('${l:PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}'); if(record.get('project_status')=='NEW'||record.get('project_status')=='APPROVE_RETURN'||record.get('project_status')=='REJECT'){
return; param['function_code'] = 'PRJ501TENANT';
} param['function_usage'] = 'UPDATE';
if (bp_record.dirty == true) { }else{
Leaf.showMessage('${l:PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}'); param['function_code'] = 'PRJ501TENANT';
return; param['function_usage'] = 'QUERY';
} }
if($(ds_id).validate()){
Leaf.showConfirm('${HLS.PROMPT}', '确认要提交工作流吗?', function() { param['project_id'] = record.get('project_id');
window['${/parameter/@layout_code}_lock_layout_dynamic_window'](); param['winid'] = 'hl_tenant_score_rate_win_id';
Leaf.request({ param['url_title'] = '客户评分明细';
url: $('prj_approval_link_id').getUrl(), hls_doc_get_layout_code('${/parameter/@layout_code}_get_layout_code_link_id', param, '${/parameter/@layout_code}tenant_rate_query_link', '${/parameter/@layout_code}');
para: { }else{
project_id: project_id Leaf.showMessage('${l:PROMPT}', '请先保存');
}, return;
scope: this, }
success: function() {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
$('${/parameter/@winid}').close(); }
}, window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function () {
failure: function() { var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project');
window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); var lease_item_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project_lease_item');
}, var quotation_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_quotation');
error: function() { var bp_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project_bp');
window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); var record = $(quotation_ds_id).getCurrentRecord();
} var current_record = $(ds_id).getCurrentRecord();
}); var lease_item_record = $(lease_item_ds_id).getCurrentRecord();
}); var bp_record = $(bp_ds_id).getCurrentRecord();
var project_id = current_record.get('project_id');
} if (current_record.dirty == true) {
Leaf.showMessage('${l:PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}');
return;
} }
if (record.dirty == true) {
Leaf.showMessage('${l:PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}');
return;
]]></script> }
<a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/> if (lease_item_record.dirty == true) {
</a:view> Leaf.showMessage('${l:PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}');
</a:screen> return;
}
if (bp_record.dirty == true) {
Leaf.showMessage('${l:PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}');
return;
}
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']();
}
});
});
}
}
]]></script>
<a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
</a:view>
</a:screen>
...@@ -267,7 +267,7 @@ ...@@ -267,7 +267,7 @@
</a:events> </a:events>
</a:dataSet> </a:dataSet>
</a:dataSets> </a:dataSets>
<a:screenBody> <a:screenBody style="margin-left:20px;">
<div id="gridButtonDivID"> <div id="gridButtonDivID">
<a:screenTopToolbar> <a:screenTopToolbar>
<a:screenTitle/> <a:screenTitle/>
...@@ -278,17 +278,18 @@ ...@@ -278,17 +278,18 @@
<a:hBox> <a:hBox>
<a:vBox labelSeparator=" " labelWidth="100"> <a:vBox labelSeparator=" " labelWidth="100">
<!-- <a:textField name="template_type_desc" bindTarget="fnd714_sc_score_head_query_ds" prompt="FND713.FND_SCORE_TEMPLATE.TEMPLATE_TYPE" readOnly="true"/> --> <!-- <a:textField name="template_type_desc" bindTarget="fnd714_sc_score_head_query_ds" prompt="FND713.FND_SCORE_TEMPLATE.TEMPLATE_TYPE" readOnly="true"/> -->
<a:textField name="evaluate_level" bindTarget="prj_project_evaluate_level_ds" prompt="评级" readOnly="true"/> <!-- <a:textField name="evaluate_level" bindTarget="prj_project_evaluate_level_ds" prompt="评级" readOnly="true"/>-->
<a:numberField name="score_result" allowDecimals="true" bindTarget="fnd714_sc_score_head_query_ds" decimalPrecision="2" prompt="分数" readOnly="true" style="font-weight:bold"/> <a:numberField name="score_result" allowDecimals="true" bindTarget="fnd714_sc_score_head_query_ds" decimalPrecision="2" prompt="分数" readOnly="true" style="font-weight:bold"/>
</a:vBox> <a:textField name="object_name" bindTarget="fnd714_sc_score_head_query_ds" prompt="评分对象" readOnly="true"/>
<a:vBox labelSeparator=" " labelWidth="100">
<a:textField name="object_name" bindTarget="fnd714_sc_score_head_query_ds" prompt="承租人名称" readOnly="true"/>
<a:textField name="last_update_name" bindTarget="fnd714_sc_score_head_query_ds" prompt="FND714.LAST_UPDATE_NAME" readOnly="true"/>
</a:vBox> </a:vBox>
<a:vBox labelSeparator=" " labelWidth="100"> <a:vBox labelSeparator=" " labelWidth="100">
<a:textField name="template_name" bindTarget="fnd714_sc_score_head_query_ds" prompt="FND714.SCORE_TEMPLATE_NAME" readOnly="true"/> <a:textField name="template_name" bindTarget="fnd714_sc_score_head_query_ds" prompt="FND714.SCORE_TEMPLATE_NAME" readOnly="true"/>
<a:datePicker name="score_date" bindTarget="fnd714_sc_score_head_query_ds" prompt="FND714.SCORE_DATE" readOnly="true" renderer="Leaf.formatDate"/> <a:datePicker name="score_date" bindTarget="fnd714_sc_score_head_query_ds" prompt="FND714.SCORE_DATE" readOnly="true" renderer="Leaf.formatDate"/>
</a:vBox> </a:vBox>
<a:vBox labelSeparator=" " labelWidth="100">
<a:textField name="last_update_name" bindTarget="fnd714_sc_score_head_query_ds" prompt="FND714.LAST_UPDATE_NAME" readOnly="true"/>
</a:vBox>
</a:hBox> </a:hBox>
<a:treeGrid id="fnd714_sc_score_result_dtl_grid" bindTarget="fnd714_sc_score_result_dtl_ds" expandField="expand_flag" idField="tree_id_feild" marginHeight="180" marginWidth="30" navBar="false" parentField="tree_parent_field" sequenceField="score_target_code"> <a:treeGrid id="fnd714_sc_score_result_dtl_grid" bindTarget="fnd714_sc_score_result_dtl_ds" expandField="expand_flag" idField="tree_id_feild" marginHeight="180" marginWidth="30" navBar="false" parentField="tree_parent_field" sequenceField="score_target_code">
<a:columns> <a:columns>
......
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