Commit f7ddf830 authored by Darming's avatar Darming

[feat]BP评分以及CCB调整

parent 4afbfbf7
...@@ -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>
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" dynamiccreateenabled="true"
trace="true">
<a:init-procedure/>
<a:view>
<a:link id="con_contract_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code"
modelaction="update"/>
<a:link id="con_contract_modify_link"
url="${/request/@context_path}/modules/cont/CON505/con_contract_modify.lview"/>
<a:link id="${/parameter/@layout_code}_contract_print_link_id"
url="${/request/@context_path}/modules/cont/CON301N/con_contract_print.lview"/>
<a:link id="${/parameter/@layout_code}con_contract_query_link"
url="${/request/@context_path}/modules/cont/CON3200/con_re_incept_modify.lview"/>
<!-- <script src="${/request/@context_path}/javascripts/hap/dynamicStopAutoQuery.js" type="text/javascript"/>-->
<script type="text/javascript"><![CDATA[
// stopDymanicAutoQuery('${/parameter/@layout_code}', 'G_CONTRACT_RESULT', 'con_contract');
function open_contract_win(ds_id, record_id) {
var record = $(ds_id).findById(record_id);
var param = record.data;
param['function_usage'] = 'QUERY';
param['function_code'] = 'CON3200Q';
param['maintain_type'] = 'QUERY';
param['url_title'] = '${l:CON301.CONTRACT_DETAIL}';
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, '${/parameter/@layout_code}con_contract_query_link', ds_id);
}
window['${/parameter/@layout_code}_dynamic_link_renderer'] = function (value, record, name, config_record) {
if (name == 'contract_number' && value) {
return '<a href="javascript:open_contract_win(\'' + record.ds.id + '\',\'' + record.id + '\')">' + value + '</a>';
}
return value;
};
]]></script>
<a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
</a:view>
</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>
......
...@@ -11,9 +11,9 @@ ...@@ -11,9 +11,9 @@
<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>
...@@ -38,8 +38,10 @@ ...@@ -38,8 +38,10 @@
<a:link id="${/parameter/@layout_code}contract_number_query_link" <a:link id="${/parameter/@layout_code}contract_number_query_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="${/parameter/@layout_code}tenant_rate_query_link" <!-- <a:link id="${/parameter/@layout_code}_tenant_rate_query_link"-->
url="${/request/@context_path}/modules/prj/PRJ501N/prj_project_history_display.lview"/> <!-- url="${/request/@context_path}/modules/prj/PRJ501N/prj_project_history_display.lview"/>-->
<a:link id="${/parameter/@layout_code}_tenant_rate_query_link"
url="${/request/@context_path}/modules/prj/PRJ902/prj_project_score_result.lview"/>
<a:link id="${/parameter/@layout_code}_hls_fin_calc_get_base_rate_link_id" <a:link id="${/parameter/@layout_code}_hls_fin_calc_get_base_rate_link_id"
model="hls.HLS500.hls_fin_calc_get_base_rate" modelaction="update"/> model="hls.HLS500.hls_fin_calc_get_base_rate" modelaction="update"/>
<a:link id="${/parameter/@layout_code}_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" <a:link id="${/parameter/@layout_code}_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code"
...@@ -65,39 +67,40 @@ ...@@ -65,39 +67,40 @@
var quotation_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_quotation'); var quotation_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_quotation');
var quo_record = $(quotation_ds_id).getCurrentRecord(); var quo_record = $(quotation_ds_id).getCurrentRecord();
var cal_hd_price_list= quo_record.get('cal_hd_price_list'); var cal_hd_price_list = quo_record.get('cal_hd_price_list');
var price_list= quo_record.get('price_list'); var price_list = quo_record.get('price_list');
if(cal_hd_price_list == price_list) { if (cal_hd_price_list == price_list) {
var url = $('${/parameter/@layout_code}_prj_project_create_contract_link_id').getUrl(); var url = $('${/parameter/@layout_code}_prj_project_create_contract_link_id').getUrl();
var record = $(ds_id).getCurrentRecord(); var record = $(ds_id).getCurrentRecord();
if ($(ds_id).validate()) { if ($(ds_id).validate()) {
window['${/parameter/@layout_code}_lock_layout_dynamic_window'](); window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
Leaf.request( Leaf.request(
{ {
url: url, url: url,
para: { para: {
project_id: record.get('project_id'), project_id: record.get('project_id'),
contract_seq: 1, contract_seq: 1,
bp_contract_seq: 1, bp_contract_seq: 1,
contract_type: 'CARCON', contract_type: 'CARCON',
contract_name: record.get('project_name'), contract_name: record.get('project_name'),
billing_method: record.get('billing_method'), billing_method: record.get('billing_method'),
}, },
success: function (res) { success: function (res) {
$('${/parameter/@winid}').close(); $('${/parameter/@winid}').close();
window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
}, },
failure: function () { failure: function () {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
}, },
error: function () { error: function () {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
}, },
scope: this scope: this
} }
); );
}}else{ }
} else {
Leaf.showMessage('${l:PROMPT}', '报价有变动请重新计算!'); Leaf.showMessage('${l:PROMPT}', '报价有变动请重新计算!');
return; return;
} }
...@@ -111,7 +114,7 @@ ...@@ -111,7 +114,7 @@
var url; var url;
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project'); var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project');
var quotation_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], '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 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 record = $(quotation_ds_id).getCurrentRecord();
var head_record = $(ds_id).getAt(0); var head_record = $(ds_id).getAt(0);
...@@ -124,7 +127,7 @@ ...@@ -124,7 +127,7 @@
// Leaf.showMessage('${l:PROMPT}', '${l:HLS.CALC_TYPE_IS_NULL}'); // Leaf.showMessage('${l:PROMPT}', '${l:HLS.CALC_TYPE_IS_NULL}');
// return; // return;
} }
if (head_record.dirty == true) { if (head_record.dirty == true) {
Leaf.showMessage('${l:PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}'); Leaf.showMessage('${l:PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}');
return; return;
} }
...@@ -133,10 +136,10 @@ ...@@ -133,10 +136,10 @@
return; return;
} }
if ($(quotation_ds_id).validate()) { if ($(quotation_ds_id).validate()) {
/* if (!record.get('price_list') || !record.get('currency') || !record.get('lease_times')) { /* if (!record.get('price_list') || !record.get('currency') || !record.get('lease_times')) {
Leaf.showMessage('${l:PROMPT}', '${l:HLS.QUOTATION_EXECUTE_AFTER_SAVE}'); Leaf.showMessage('${l:PROMPT}', '${l:HLS.QUOTATION_EXECUTE_AFTER_SAVE}');
return; return;
}*/ }*/
var parent_pk_value = head_record.get('project_id'); var parent_pk_value = head_record.get('project_id');
var secondary_lease = head_record.get('secondary_lease'); var secondary_lease = head_record.get('secondary_lease');
...@@ -159,7 +162,7 @@ ...@@ -159,7 +162,7 @@
if (!'${/parameter/@document_id}') { if (!'${/parameter/@document_id}') {
record.set('document_id', parent_pk_value); record.set('document_id', parent_pk_value);
} }
var price_list= record.get('price_list'); var price_list = record.get('price_list');
var saveData = []; var saveData = [];
saveData.push(record.data); saveData.push(record.data);
Leaf.request({ Leaf.request({
...@@ -175,8 +178,8 @@ ...@@ -175,8 +178,8 @@
params: { params: {
document_id: parent_pk_value, document_id: parent_pk_value,
price_list: price_list, price_list: price_list,
secondary_lease:secondary_lease, secondary_lease: secondary_lease,
payment_deduction:payment_deduction, payment_deduction: payment_deduction,
document_category: 'PROJECT', document_category: 'PROJECT',
maintain_type: 'MODIFY', maintain_type: 'MODIFY',
calc_session_id: res.result.record.calc_session_id, calc_session_id: res.result.record.calc_session_id,
...@@ -209,9 +212,9 @@ ...@@ -209,9 +212,9 @@
}); });
} else { } else {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
var cal_hd_price_list= record.get('cal_hd_price_list'); var cal_hd_price_list = record.get('cal_hd_price_list');
var price_list= record.get('price_list'); var price_list = record.get('price_list');
if(cal_hd_price_list == price_list) { if (cal_hd_price_list == price_list) {
//直接进入报价页面 //直接进入报价页面
var win = new Leaf.Window({ var win = new Leaf.Window({
...@@ -219,8 +222,8 @@ ...@@ -219,8 +222,8 @@
params: { params: {
document_id: parent_pk_value, document_id: parent_pk_value,
price_list: price_list, price_list: price_list,
secondary_lease:secondary_lease, secondary_lease: secondary_lease,
payment_deduction:payment_deduction, payment_deduction: payment_deduction,
document_category: 'PROJECT', document_category: 'PROJECT',
maintain_type: 'MODIFY', maintain_type: 'MODIFY',
calc_session_id: record.get('calc_session_id'), calc_session_id: record.get('calc_session_id'),
...@@ -240,7 +243,7 @@ ...@@ -240,7 +243,7 @@
$(quotation_ds_id).query(); $(quotation_ds_id).query();
$(history_ds_id).query(); $(history_ds_id).query();
}); });
}else { } else {
record.set('to_doc_table', 'HLS_FIN_CALCULATOR_HD'); record.set('to_doc_table', 'HLS_FIN_CALCULATOR_HD');
var calc_recreate_L_formula; var calc_recreate_L_formula;
calc_recreate_L_formula = 'Y'; calc_recreate_L_formula = 'Y';
...@@ -252,7 +255,7 @@ ...@@ -252,7 +255,7 @@
if (!'${/parameter/@document_id}') { if (!'${/parameter/@document_id}') {
record.set('document_id', parent_pk_value); record.set('document_id', parent_pk_value);
} }
var price_list= record.get('price_list'); var price_list = record.get('price_list');
var saveData = []; var saveData = [];
saveData.push(record.data); saveData.push(record.data);
Leaf.request({ Leaf.request({
...@@ -269,8 +272,8 @@ ...@@ -269,8 +272,8 @@
params: { params: {
document_id: parent_pk_value, document_id: parent_pk_value,
price_list: price_list, price_list: price_list,
secondary_lease:secondary_lease, secondary_lease: secondary_lease,
payment_deduction:payment_deduction, payment_deduction: payment_deduction,
document_category: 'PROJECT', document_category: 'PROJECT',
maintain_type: 'MODIFY', maintain_type: 'MODIFY',
calc_session_id: res.result.record.calc_session_id, calc_session_id: res.result.record.calc_session_id,
...@@ -336,11 +339,11 @@ ...@@ -336,11 +339,11 @@
var param = {}; var param = {};
param['bp_id'] = record.get('bp_id'); param['bp_id'] = record.get('bp_id');
param['bp_class'] = record.get('bp_class'); param['bp_class'] = record.get('bp_class');
if(record.get('bp_category') =='AGENT'){ if (record.get('bp_category') == 'AGENT') {
param['function_code'] = 'HLS303_Q'; param['function_code'] = 'HLS303_Q';
param['function_usage'] = 'QUERY'; param['function_usage'] = 'QUERY';
}else{ } else {
param['function_code'] = 'HLS215D'; param['function_code'] = 'HLS215D';
param['function_usage'] = 'QUERY'; param['function_usage'] = 'QUERY';
} }
...@@ -349,30 +352,31 @@ ...@@ -349,30 +352,31 @@
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}'); 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){ function prj501n_project_number_renderer(id, name, query_only) {
var record = window['${/parameter/@layout_code}_hls_link_render_record'][id + '---' + name]; var record = window['${/parameter/@layout_code}_hls_link_render_record'][id + '---' + name];
var param = {}; var param = {};
param['bp_id'] = record.get('project_id'); param['bp_id'] = record.get('project_id');
param['bp_class'] = record.get('bp_class'); param['bp_class'] = record.get('bp_class');
param['function_code'] = 'PRJ501D'; param['function_code'] = 'PRJ501D';
param['function_usage'] = 'QUERY'; param['function_usage'] = 'QUERY';
param['maintain_type'] = 'READONLY'; param['maintain_type'] = 'READONLY';
param['winid'] = '${/parameter/@layout_code}_project_number_win_id'; param['winid'] = '${/parameter/@layout_code}_project_number_win_id';
param['prj_bp_id'] = record.get('prj_bp_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) { window['${/parameter/@layout_code}_dynamic_link_renderer'] = function (value, record, name, config_record) {
...@@ -383,33 +387,33 @@ function prj501n_contract_number_renderer(id, name, query_only){ ...@@ -383,33 +387,33 @@ function prj501n_contract_number_renderer(id, name, query_only){
return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + name + '\',\'' + config_record.get('query_only') + '\');">' + config_record.get('prompt') + '</a>'; 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') { } else if (name == 'attach_file_name') {
/* if (value != null) { /* if (value != null) {
var link = '${/request/@context_path}/atm_download.lsc?attachment_id=';
var str = value.split(';;');
var url = '';
for (var i = 0; i < str.length; i++) {
//
var temp = str[i].split('--');
if (!Leaf.isEmpty(temp[0])) {
var file_name = temp[0].toUpperCase();
var file_suffix = temp[0].substr(temp[0].lastIndexOf('.') + 1).toUpperCase();
if (file_name.indexOf('.PDF') >= 0) {
url = url + '<a href=javascript:view_pdf(\'' + temp[1] + '\')>' + temp[0] + '</a>' + ',';
} else if (file_suffix == 'BMP' || file_suffix == 'JPG' || file_suffix == 'JPEG' || file_suffix == 'PNG' || file_suffix == 'GIF') {
url = url + '<a href=' + link + temp[1] + ' ref="img">' + temp[0] + '</a>' + ',';
} else {
url = url + '<a href=' + link + temp[1] + '>' + temp[0] + '</a>' + ',';
}
}
}
return url;
}*/
if (value != null) {
var link = '${/request/@context_path}/atm_download.lsc?attachment_id='; var link = '${/request/@context_path}/atm_download.lsc?attachment_id=';
var str = value.split(';;'); var str = value.split(';;');
var url = ''; var url = '';
for (var i = 0; i < str.length; i++) { for (var i = 0; i < str.length; i++) {
//
var temp = str[i].split('--');
if (!Leaf.isEmpty(temp[0])) {
var file_name = temp[0].toUpperCase();
var file_suffix = temp[0].substr(temp[0].lastIndexOf('.') + 1).toUpperCase();
if (file_name.indexOf('.PDF') >= 0) {
url = url + '<a href=javascript:view_pdf(\'' + temp[1] + '\')>' + temp[0] + '</a>' + ',';
} else if (file_suffix == 'BMP' || file_suffix == 'JPG' || file_suffix == 'JPEG' || file_suffix == 'PNG' || file_suffix == 'GIF') {
url = url + '<a href=' + link + temp[1] + ' ref="img">' + temp[0] + '</a>' + ',';
} else {
url = url + '<a href=' + link + temp[1] + '>' + temp[0] + '</a>' + ',';
}
}
}
return url;
}*/
if (value != null ) {
var link = '${/request/@context_path}/atm_download.lsc?attachment_id=';
var str = value.split(';;');
var url = '';
for (var i = 0;i < str.length;i++) {
// //
var temp = str[i].split('--'); var temp = str[i].split('--');
if (!Leaf.isEmpty(temp[0])) { if (!Leaf.isEmpty(temp[0])) {
...@@ -419,7 +423,7 @@ function prj501n_contract_number_renderer(id, name, query_only){ ...@@ -419,7 +423,7 @@ function prj501n_contract_number_renderer(id, name, query_only){
if (file_name.indexOf('.PDF') >= 0) { if (file_name.indexOf('.PDF') >= 0) {
url = url + '<a href=javascript:view_pdf(\'' + temp[1] + '\')>' + temp[0] + '</a>' + ','; url = url + '<a href=javascript:view_pdf(\'' + temp[1] + '\')>' + temp[0] + '</a>' + ',';
} //else if (file_suffix == 'BMP' || file_suffix == 'JPG' || file_suffix == 'JPEG' || file_suffix == 'PNG' || file_suffix == 'GIF') { } //else if (file_suffix == 'BMP' || file_suffix == 'JPG' || file_suffix == 'JPEG' || file_suffix == 'PNG' || file_suffix == 'GIF') {
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_name.indexOf('.BMP') >= 0 || file_name.indexOf('.JPG') >= 0 || file_name.indexOf('.JPEG') >= 0 || file_name.indexOf('.PNG') >= 0 || file_name.indexOf('.GIF') >= 0) {
url = url + '<a href=' + link + temp[1] + ' ref="img">' + temp[0] + '</a>' + ','; url = url + '<a href=' + link + temp[1] + ' ref="img">' + temp[0] + '</a>' + ',';
} else { } else {
url = url + '<a href=' + link + temp[1] + '>' + temp[0] + '</a>' + ','; url = url + '<a href=' + link + temp[1] + '>' + temp[0] + '</a>' + ',';
...@@ -431,15 +435,15 @@ function prj501n_contract_number_renderer(id, name, query_only){ ...@@ -431,15 +435,15 @@ function prj501n_contract_number_renderer(id, name, query_only){
} }
} else if (name == 'bp_link' && !record.isNew) { } else if (name == 'bp_link' && !record.isNew) {
link_function = 'prj501n_bp_code_renderer'; 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>'; 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'){ } else if (name == 'project_number') {
link_function = 'prj501n_project_number_renderer'; link_function = 'prj501n_project_number_renderer';
return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + name + '\',\'' + config_record.get('query_only') + '\');">' + value+ '</a>'; return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + name + '\',\'' + config_record.get('query_only') + '\');">' + value + '</a>';
}else if(name =='contract_number'){ } else if (name == 'contract_number') {
link_function = 'prj501n_contract_number_renderer'; link_function = 'prj501n_contract_number_renderer';
return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + name + '\',\'' + config_record.get('query_only') + '\');">' + value+ '</a>'; return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + name + '\',\'' + config_record.get('query_only') + '\');">' + value + '</a>';
} }
}; };
...@@ -448,13 +452,13 @@ function prj501n_contract_number_renderer(id, name, query_only){ ...@@ -448,13 +452,13 @@ function prj501n_contract_number_renderer(id, name, query_only){
window['${/parameter/@layout_code}_lock_layout_dynamic_window'](); window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project'); var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project');
var prj_quotation_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_quotation'); var prj_quotation_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_quotation');
var bp_ds_ids = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_BASIC_INFO_1','prj_project'); var bp_ds_ids = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_BASIC_INFO_1', 'prj_project');
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 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_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_BP','prj_project_bp'); var bp_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_BP', 'prj_project_bp');
var tenant_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'T_HISTORY_INGO', 'hls_bp_master'); var tenant_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'T_HISTORY_INGO', 'hls_bp_master');
var cdd_item_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_cdd_item_doc_ref'); var cdd_item_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_cdd_item_doc_ref');
var virtual_ds_id = '${/parameter/@layout_code}_virtual_ds'; var virtual_ds_id = '${/parameter/@layout_code}_virtual_ds';
if (ds_id==ds.id || virtual_ds_id==ds.id) { if (ds_id == ds.id || virtual_ds_id == ds.id) {
$(cdd_item_ds_id).query(); $(cdd_item_ds_id).query();
$(bp_ds_id).query(); $(bp_ds_id).query();
$(tenant_ds_id).query(); $(tenant_ds_id).query();
...@@ -467,8 +471,8 @@ function prj501n_contract_number_renderer(id, name, query_only){ ...@@ -467,8 +471,8 @@ function prj501n_contract_number_renderer(id, name, query_only){
}; };
//选择事件(grid,attach,gridbox,table) //选择事件(grid,attach,gridbox,table)
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_select'] = function(ds, record, bp_seq) { window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_select'] = function (ds, record, bp_seq) {
var bp_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'G_BP', 'prj_project_bp'); var bp_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_BP', 'prj_project_bp');
if (bp_ds_id == ds.id && bp_ds_id) { if (bp_ds_id == ds.id && bp_ds_id) {
if (record.get('bp_category') == 'TENANT') { if (record.get('bp_category') == 'TENANT') {
//实际为不选中 //实际为不选中
...@@ -484,14 +488,54 @@ function prj501n_contract_number_renderer(id, name, query_only){ ...@@ -484,14 +488,54 @@ function prj501n_contract_number_renderer(id, name, query_only){
} }
} }
}; };
function jsGetAge(strBirthday) {
var returnAge;
var strBirthdayArr = strBirthday.split("-");
var birthYear = strBirthdayArr[0];
var birthMonth = strBirthdayArr[1];
var birthDay = strBirthdayArr[2];
var d = new Date();
var nowYear = d.getFullYear();
var nowMonth = d.getMonth() + 1;
var nowDay = d.getDate();
if (nowYear == birthYear) {
returnAge = 0;//同年 则为0岁  
} else {
var ageDiff = nowYear - birthYear; //年之差  
if (ageDiff > 0) {
if (nowMonth == birthMonth) {
var dayDiff = nowDay - birthDay;//日之差  
if (dayDiff < 0) {
returnAge = ageDiff - 1;
} else {
returnAge = ageDiff;
}
} else {
var monthDiff = nowMonth - birthMonth;//月之差  
if (monthDiff < 0) {
returnAge = ageDiff - 1;
} else {
returnAge = ageDiff;
}
}
} else {
returnAge = -1;//返回-1 表示出生日期输入错误 晚于今天  
}
}
return returnAge;//返回周岁年龄  
}
//更新时调用 //更新时调用
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_update'] = function(ds, record, name, value, old_value, bp_seq) { window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_update'] = function (ds, record, name, value, old_value, bp_seq) {
if(name=='pay_method'){ if (name == 'pay_method') {
if ( record.get('pay_method') == 'WIRE_TRANSFER') { if (record.get('pay_method') == 'WIRE_TRANSFER') {
record.set('bank_account_id',null); record.set('bank_account_id', null);
record.set('bank_account_id_n',null); record.set('bank_account_id_n', null);
record.set('bank_branch_num',''); record.set('bank_branch_num', '');
record.set('bank_account_name',''); record.set('bank_account_name', '');
record.getField('bank_account_id').setReadOnly(true); record.getField('bank_account_id').setReadOnly(true);
record.getField('bank_account_id_n').setReadOnly(true); record.getField('bank_account_id_n').setReadOnly(true);
record.getField('bank_account_id').setRequired(false); record.getField('bank_account_id').setRequired(false);
...@@ -504,48 +548,57 @@ function prj501n_contract_number_renderer(id, name, query_only){ ...@@ -504,48 +548,57 @@ function prj501n_contract_number_renderer(id, name, query_only){
} }
} }
if(name=='payment_deduction') { if (name == 'payment_deduction') {
var quoation_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_QUOTATION_N', 'prj_quotation'); var quoation_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_QUOTATION_N', 'prj_quotation');
var quoation_record = $(quoation_ds_id).getCurrentRecord(); var quoation_record = $(quoation_ds_id).getCurrentRecord();
var down_payment = quoation_record.get('down_payment') || 0; var down_payment = quoation_record.get('down_payment') || 0;
var calc_session_id= quoation_record.get('calc_session_id'); var calc_session_id = quoation_record.get('calc_session_id');
var other_payment2; var other_payment2;
if (old_value && value &&calc_session_id&& value == 'NO_DEDUCTION') { if (old_value && value && calc_session_id && value == 'NO_DEDUCTION') {
other_payment2 = 0; other_payment2 = 0;
} else if (old_value && value &&calc_session_id&& value != 'NO_DEDUCTION'){ } else if (old_value && value && calc_session_id && value != 'NO_DEDUCTION') {
other_payment2=down_payment; other_payment2 = down_payment;
} }
window['${/parameter/@layout_code}_lock_layout_dynamic_window'](); window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
Leaf.request({ Leaf.request({
url: $('${/parameter/@layout_code}_prj_project_update_status_link_id').getUrl(), url: $('${/parameter/@layout_code}_prj_project_update_status_link_id').getUrl(),
para: { para: {
other_payment2: other_payment2, other_payment2: other_payment2,
calc_session_id: calc_session_id calc_session_id: calc_session_id
}, },
success: function (arg) { success: function (arg) {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
}, },
failure: function () { failure: function () {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
}, },
error: function () { error: function () {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
}, },
scope: this scope: this
});
});
}
if (name == 'bp_birth') {
debugger;
if(jsGetAge(value.format('yyyy-mm-dd').toString()) == -1){
Leaf.showInfoMessage("提示","出生日期不能大于当前日期");
setTimeout(function(){
record.set('bp_birth',old_value);
},0);
}else{
record.set('bp_age',jsGetAge(value.format('yyyy-mm-dd').toString()));
}
} }
}; };
//加载时调用(grid,table,gridBox) //加载时调用(grid,table,gridBox)
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_load'] = function(ds, record, config_records, bp_seq) { 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'); var bp_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_BP', 'prj_project_bp');
/* var bp_ds_ids = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'F_HISTORY_INFO_1', 'prj_project_bp'); /* var bp_ds_ids = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'F_HISTORY_INFO_1', 'prj_project_bp');
$(bp_ds_ids).setQueryParameter('bp_id','${/parameter/@bp_id_tenant}'); $(bp_ds_ids).setQueryParameter('bp_id','${/parameter/@bp_id_tenant}');
$(bp_ds_ids).query();*/ $(bp_ds_ids).query();*/
if (bp_ds_id == ds.id && bp_ds_id) { if (bp_ds_id == ds.id && bp_ds_id) {
if (record.get('bp_category') == 'TENANT') { if (record.get('bp_category') == 'TENANT') {
record.getField('bp_category_n').setReadOnly(true); record.getField('bp_category_n').setReadOnly(true);
...@@ -559,15 +612,23 @@ function prj501n_contract_number_renderer(id, name, query_only){ ...@@ -559,15 +612,23 @@ function prj501n_contract_number_renderer(id, name, query_only){
}; };
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_form_add_and_load'] = function(ds, record, config_records, bp_seq) { window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_form_add_and_load'] = function (ds, record, config_records, bp_seq) {
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project'); var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project');
if(ds_id==ds.id && ds_id){ if (ds_id == ds.id && ds_id) {
if(record.get('pay_method') == 'WIRE_TRANSFER'){ if (record.get('pay_method') == 'WIRE_TRANSFER') {
record.getField('bank_account_id').setReadOnly(true); record.getField('bank_account_id').setReadOnly(true);
record.getField('bank_account_id_n').setReadOnly(true); record.getField('bank_account_id_n').setReadOnly(true);
record.getField('bank_account_id').setRequired(false); record.getField('bank_account_id').setRequired(false);
record.getField('bank_account_id_n').setRequired(false); record.getField('bank_account_id_n').setRequired(false);
}
}
var score_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'F_TENANT_SCORE_INFO', 'bp_tenant_rate_detail');
if (score_ds_id == ds.id){
if(!record.get('score_name')){
if($(ds_id).getCurrentRecord()){
var score_name = $(ds_id).getCurrentRecord().get('legal_person')||$(ds_id).getCurrentRecord().get('bp_id_tenant_n');
record.set('score_name',score_name);
}
} }
} }
}; };
...@@ -579,7 +640,7 @@ function prj501n_contract_number_renderer(id, name, query_only){ ...@@ -579,7 +640,7 @@ function prj501n_contract_number_renderer(id, name, query_only){
para: { para: {
attachment_id: attachment_id attachment_id: attachment_id
}, },
success: function(res) { success: function (res) {
var path = res.result.record.file_path; var path = res.result.record.file_path;
path = path.substr(path.indexOf('hls_attachment')); path = path.substr(path.indexOf('hls_attachment'));
var tomcat_source = '${/parameter/@tomcat_source}'; var tomcat_source = '${/parameter/@tomcat_source}';
...@@ -591,21 +652,21 @@ function prj501n_contract_number_renderer(id, name, query_only){ ...@@ -591,21 +652,21 @@ function prj501n_contract_number_renderer(id, name, query_only){
} }
Leaf.onReady(function(){ Leaf.onReady(function () {
var bp_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'], '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}'; 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).setQueryUrl(url);
$(bp_ds_id).query(); $(bp_ds_id).query();
var quotation_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_quotation'); var quotation_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_quotation');
$(quotation_ds_id).query(); $(quotation_ds_id).query();
var billing_ds_id=get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'prj_project_bp'); var billing_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project_bp');
// console.log('${/parameter/@project_id}'); // console.log('${/parameter/@project_id}');
$(billing_ds_id).setQueryParameter("project_id",'${/parameter/@project_id}'); $(billing_ds_id).setQueryParameter("project_id", '${/parameter/@project_id}');
$(billing_ds_id).query(); $(billing_ds_id).query();
// console.log($(billing_ds_id)); // console.log($(billing_ds_id));
}) })
//序号自增 add by lijingjing //序号自增 add by lijingjing
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_add'] = function(ds, record, config_records, bp_seq) { window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_add'] = function (ds, record, config_records, bp_seq) {
//租赁物序号 //租赁物序号
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project_lease_item'); var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project_lease_item');
if (ds_id == ds.id && ds_id) { if (ds_id == ds.id && ds_id) {
...@@ -613,7 +674,7 @@ function prj501n_contract_number_renderer(id, name, query_only){ ...@@ -613,7 +674,7 @@ function prj501n_contract_number_renderer(id, name, query_only){
var measure_records = ds.getAll(), var measure_records = ds.getAll(),
seq_num = 0; seq_num = 0;
if (measure_records.length) { if (measure_records.length) {
for (var j = 0;j < measure_records.length;j++) { for (var j = 0; j < measure_records.length; j++) {
var measure_record = measure_records[j], var measure_record = measure_records[j],
rk = measure_record.get('lease_item_seq'); rk = measure_record.get('lease_item_seq');
if (seq_num <= rk) { if (seq_num <= rk) {
...@@ -640,26 +701,36 @@ function prj501n_contract_number_renderer(id, name, query_only){ ...@@ -640,26 +701,36 @@ function prj501n_contract_number_renderer(id, name, query_only){
// } // }
// }; // };
//客户评分 //客户评分
window['${/parameter/@layout_code}_user_button9_layout_dynamic_click'] = function() { window['${/parameter/@layout_code}_user_button9_layout_dynamic_click'] = function () {
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project'); var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project');
var record = $(ds_id).getCurrentRecord(); var record = $(ds_id).getCurrentRecord();
var param = {}; var param = record.data;
if(record.get('project_id')){ if (record.get('project_id')) {
if(record.get('project_status')=='NEW'||record.get('project_status')=='APPROVE_RETURN'||record.get('project_status')=='REJECT'){
param['function_code'] = 'PRJ501TENANT'; // if(record.get('project_status')=='NEW'||record.get('project_status')=='APPROVE_RETURN'||record.get('project_status')=='REJECT'){
param['function_usage'] = 'UPDATE'; // param['function_code'] = 'PRJ501TENANT';
}else{ // param['function_usage'] = 'UPDATE';
param['function_code'] = 'PRJ501TENANT'; // }else{
param['function_usage'] = 'QUERY'; // param['function_code'] = 'PRJ501TENANT';
} // param['function_usage'] = 'QUERY';
// }
//
param['project_id'] = record.get('project_id'); param['project_id'] = record.get('project_id');
param['winid'] = 'hl_tenant_score_rate_win_id'; param['winid'] = 'hl_tenant_score_rate_win_id';
param['url_title'] = '客户评分明细'; 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}'); // 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 win = new Leaf.Window({
id: param['winid'],
params: param,
url: $('${/parameter/@layout_code}_tenant_rate_query_link').getUrl(),
title: param['url_title'],
fullScreen: true,
draggable: true
});
} else {
Leaf.showMessage('${l:PROMPT}', '请先保存'); Leaf.showMessage('${l:PROMPT}', '请先保存');
return; return;
} }
...@@ -692,8 +763,8 @@ function prj501n_contract_number_renderer(id, name, query_only){ ...@@ -692,8 +763,8 @@ function prj501n_contract_number_renderer(id, name, query_only){
Leaf.showMessage('${l:PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}'); Leaf.showMessage('${l:PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}');
return; return;
} }
if($(ds_id).validate()){ if ($(ds_id).validate()) {
Leaf.showConfirm('${HLS.PROMPT}', '确认要提交工作流吗?', function() { Leaf.showConfirm('${HLS.PROMPT}', '确认要提交工作流吗?', function () {
window['${/parameter/@layout_code}_lock_layout_dynamic_window'](); window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
Leaf.request({ Leaf.request({
url: $('prj_approval_link_id').getUrl(), url: $('prj_approval_link_id').getUrl(),
...@@ -701,14 +772,14 @@ function prj501n_contract_number_renderer(id, name, query_only){ ...@@ -701,14 +772,14 @@ function prj501n_contract_number_renderer(id, name, query_only){
project_id: project_id project_id: project_id
}, },
scope: this, scope: this,
success: function() { success: function () {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
$('${/parameter/@winid}').close(); $('${/parameter/@winid}').close();
}, },
failure: function() { failure: function () {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
}, },
error: function() { error: function () {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
} }
}); });
...@@ -720,7 +791,6 @@ function prj501n_contract_number_renderer(id, name, query_only){ ...@@ -720,7 +791,6 @@ function prj501n_contract_number_renderer(id, name, query_only){
} }
]]></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>
......
...@@ -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