Commit 539766a2 authored by stone's avatar stone

[fix]修改保单管理功能

parent 034819e0
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: gaoyang
$Date: 2013-5-22 下午01:53:57
$Revision: 1.0
$Purpose:
-->
<ns1:model xmlns:s="leaf.plugin.script" xmlns:ns1="http://www.leaf-framework.org/schema/bm" alias="t1" extend="cont.CON500.con_contract_v" extendMode="reference">
<ns1:fields>
<ns1:field name="bp_id_tenant"/>
<ns1:field name="contract_id"/>
<ns1:field name="project_id"/>
<ns1:field name="business_type"/>
<ns1:field name="contract_number" forDisplay="true" forQuery="true" prompt="HLS.CONTRACT_NUMBER"/>
<ns1:field name="contract_name" forDisplay="true" forQuery="true" prompt="HLS.CONTRACT_NAME"/>
<ns1:field name="project_number" prompt="HLS.PROJECT_NUMBER"/>
<ns1:field name="project_name" prompt="HLS.PROJECT_NAME"/>
<ns1:field name="currency"/>
<ns1:field name="currency_desc"/>
</ns1:fields>
<ns1:features>
<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>
</ns1:features>
<ns1:query-fields>
<ns1:query-field field="contract_number" queryOperator="like"/>
<ns1:query-field field="project_number" queryOperator="like"/>
<ns1:query-field name="bp_id_tenant" queryExpression="(t1.bp_id_tenant = (decode(nvl(${@bp_limit_flag},&apos;N&apos;),&apos;N&apos;,${@bp_id_tenant},&apos;Y&apos;,t1.bp_id_tenant)))"/>
<ns1:query-field name="document_type" queryExpression="t1.document_type = ${@document_type}"/>
<ns1:query-field name="project_name" queryExpression="t1.project_name like &apos;%&apos; || ${@project_name} || &apos;%&apos; "/>
<ns1:query-field name="contract_name" queryExpression="t1.contract_name like &apos;%&apos; || ${@contract_name} || &apos;%&apos; "/>
<ns1:query-field name="not_master_contract_flag" queryExpression="${@not_master_contract_flag}=&apos;Y&apos; and t1.business_type!=&apos;MASTER_CONTRACT&apos;"/>
<ns1:query-field name="inception_flag" queryExpression="(${@inception_flag}=&apos;N&apos; and t1.contract_status !=&apos;INCEPT&apos;)"/>
<ns1:query-field name="sign_flag" queryExpression="(${@sign_flag}=&apos;Y&apos; and t1.contract_status =&apos;NEW&apos;)"/>
<ns1:query-field name="con_writeoff_flag" queryExpression="(${@con_writeoff_flag}=&apos;Y&apos; and t1.contract_status not in(&apos;NEW&apos;,&apos;PENDING&apos;))"/>
<ns1:query-field name="change_req_flag" queryExpression="(${@change_req_flag}=&apos;Y&apos; and t1.contract_status in(&apos;NEW&apos;,&apos;SIGN&apos;,&apos;PAID&apos;,&apos;INCEPT&apos;))"/>
<!-- <ns1:query-field name="transaction_id" queryExpression="exists(select 1 from csh_transaction t,con_contract_bp b where t.transaction_id=${@transaction_id} and t.bp_id=b.bp_id and b.contract_id=t1.contract_id)"/> -->
<ns1:query-field name="review_flag" queryExpression="(${@review_flag}=&apos;Y&apos; and t1.contract_status =&apos;SIGN&apos;)"/>
</ns1:query-fields>
<ns1:data-filters>
<ns1:data-filter enforceOperations="query" expression="t1.contract_status not in (&apos;CANCEL&apos;,&apos;TERMINATE&apos;,&apos;CLOSED&apos;)"/>
</ns1:data-filters>
</ns1:model>
......@@ -11,6 +11,8 @@
<a:model-query model="cont.CON350.con_insurance_import_batch_id" rootPath="batch_id"/>
</a:init-procedure>
<a:view>
<a:link id="${/parameter/@layout_code}con_contract_query_link"
url="${/request/@context_path}/modules/cont/CON3200/con_re_incept_modify.lview"/>
<a:link id="con_contract_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code"
modelaction="update"/>
<a:link id="con_change_ds_inusurance_link"
......@@ -166,8 +168,25 @@
if (name == 'attachment') {
return '<a href="javascript:hls_attachment_window_open(\'' + contract_id + '\',\'' + record.id + '\',\'' + record.ds.id + '\');">' + '上传' + '</a>';
}
};
//
if (name == 'contract_number' && value) {
return '<a href="javascript:open_contract_win(\'' + record.ds.id + '\',\'' + record.id + '\')">' + value + '</a>';
}
};
function open_contract_win(ds_id, record_id) {
var record = $(ds_id).findById(record_id);
var param = record.data;
// param['function_code'] = 'CON301';
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, '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);
}
function hls_attachment_window_open(contract_id, record_id, ds_id) {
url = $('${/parameter/@layout_code}${/parameter/@pre_layout}_insurance_cdd_uploadFile_id').getUrl() + '?table_name=CONTRACT_INSURANCE&header_id=' + contract_id;
wd = new Leaf.Window({
......
......@@ -151,7 +151,7 @@
<a:dataSet id="con_contract_insurance_ds" autoQuery="true" model="cont.CON350.contract_insurance_temp" selectable="true"
queryUrl="${/request/@context_path}/autocrud/cont.CON350.contract_insurance_temp/query?batch_id=${/model/batch_id/record/@batch_id}">
<a:fields>
<a:field name="contract_number" required="true" lovGridHeight="350" lovHeight="550" lovService="basic.con_contract_for_lov" lovWidth="550" title="合同">
<a:field name="contract_number" required="true" lovGridHeight="350" lovHeight="550" lovService="cont.CON350.con_contract_for_lov" lovWidth="550" title="合同">
<a:mapping>
<a:map from="contract_number" to="contract_number"/>
<a:map from="contract_id" to="contract_id"/>
......
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