con_contract_split.lview 7.51 KB
Newer Older
Spencer Chang's avatar
Spencer Chang committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121
<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: LR  
    $Date: 2013-8-13 上午10:30:25  
    $Revision: 1.0  
    $Purpose: 
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" trace="true">
    <a:view>
        <a:link id="sys_service_welcome_link" url="${/request/@context_path}/welcome.lview"/>
        <a:link id="con_contract_split_detail_link" url="${/request/@context_path}/modules/cont/CON303/con_contract_split_detail.lview"/>
        <script type="text/javascript"><![CDATA[
         function con301_con_contract_exit() {
                location.href = $('sys_service_welcome_link').getUrl();
                parent.shMenu('show');
         }
         function con301_con_contract_query() {
                $('con301_contract_result_ds').query();
         }
            
         function con301_con_contract_reset(){
                $('con301_contract_query_ds').reset();
         }
         function contract_split_new(){
             var records = $('con301_contract_result_ds').getSelected();
             var contract_id=records[0].get('contract_id');
                var win = new Leaf.Window({
                    id: 'con_contract_split_detail',
                    url: $('con_contract_split_detail_link').getUrl(),
                    params: {
                        contract_id: contract_id
                    },
                    title: '合同拆分',
                    fullScreen: true
                });
            
         }
            
        ]]></script>
        <a:screen-include screen="modules/cont/CON500/con_contract_authority_list_validate.lview?document_category=CONTRACT&amp;function_code=CON301"/>
        <a:dataSets>
            <a:dataSet id="con301_division_name_ds" loadData="true" model="basic.hls_division_for_lov"/>
            <a:dataSet id="con301_unit_name_ds" loadData="true" model="basic.exp_org_unit_name_lov"/>
            <a:dataSet id="project_status_DS" loadData="true" model="cont.CON303.project_status_lookupcode">
                <a:fields>
                    <a:field name="project_status"/>
                </a:fields>
            </a:dataSet>
            <a:dataSet id="con301_contract_query_ds" autoCreate="true">
                <a:fields>
                    <a:field name="project_number" autoComplete="true" lovGridHeight="300" lovHeight="450" lovService="prj.PRJ501.prj_project_for_lov" lovWidth="500" title="HLS.PROJECT_NUMBER">
                        <a:mapping>
                            <a:map from="project_number" to="project_number"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="contract_number"/>
                    <a:field name="project_name" autoComplete="true" lovGridHeight="300" lovHeight="450" lovService="prj.PRJ501.prj_project_for_lov" lovWidth="500" title="HLS.PROJECT_NUMBER">
                        <a:mapping>
                            <a:map from="project_name" to="project_name"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="division_desc" displayField="description" options="con301_division_name_ds" returnField="division" valueField="division"/>
                    <a:field name="company_id_desc" autoComplete="true" lovGridHeight="300" lovHeight="450" lovService="cont.CON303.fnd_company_lov" lovWidth="500">
                        <a:mapping>
                            <a:map from="value_name" to="company_id_desc"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="unit_name" displayField="unit_name" options="con301_unit_name_ds" returnField="unit_id" valueField="unit_id"/>
                    <a:field name="project_employee_name" autoComplete="true" lovGridHeight="300" lovHeight="450" lovService="basic.hls_exp_employees_for_lov?sales_flag=Y" lovWidth="500" title="HLS.SALES_EMPLOYEE">
                        <a:mapping>
                            <a:map from="name" to="project_employee_name"/>
                            <a:map from="employee_id" to="employee_id"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="project_status" displayField="value_name" options="project_status_DS" returnField="project_status" valueField="value_name"/>
                </a:fields>
            </a:dataSet>
            <a:dataSet id="con301_contract_result_ds" autoPageSize="true" autoQuery="true" model="cont.CON500.con_contract_v" queryDataSet="con301_contract_query_ds" queryUrl="${/request/@context_path}/autocrud/cont.CON500.con_contract_v/query" selectable="true">
                <a:events>
                    <a:event name="query" handler="aut_authority_list_validate_query"/>
                </a:events>
            </a:dataSet>
        </a:dataSets>
        <a:screenBody>
            <a:screenTopToolbar>
                <a:screenTitle/>
                <a:gridButton click="con301_con_contract_exit" text="退出"/>
                <a:gridButton click="con301_con_contract_query" text="查询"/>
                <a:gridButton click="con301_con_contract_reset" text="重置"/>
                <a:gridButton click="contract_split_new" text="创建"/>
            </a:screenTopToolbar>
            <a:form column="4" labelSeparator=" " labelWidth="100" marginWidth="30" title="合同查询">
                <a:lov name="project_number" bindTarget="con301_contract_query_ds" prompt="项目编号"/>
                <a:textField name="contract_number" bindTarget="con301_contract_query_ds" prompt="合同编号"/>
                <a:lov name="project_name" bindTarget="con301_contract_query_ds" prompt="项目名称"/>
                <a:comboBox name="division_desc" bindTarget="con301_contract_query_ds" prompt="产品线"/>
                <a:lov name="company_id_desc" bindTarget="con301_contract_query_ds" prompt="公司"/>
                <a:comboBox name="unit_name" bindTarget="con301_contract_query_ds" prompt="业务部"/>
                <a:lov name="project_employee_name" bindTarget="con301_contract_query_ds" prompt="项目经理"/>
                <a:comboBox name="project_status" bindTarget="con301_contract_query_ds" prompt="项目状态"/>
            </a:form>
            <a:grid id="con501_con_contract_grid_ds" bindTarget="con301_contract_result_ds" marginHeight="265" marginWidth="30" navBar="true">
                <a:columns>
                    <a:column name="project_number" prompt="项目编号" width="120"/>
                    <a:column name="contract_number" prompt="合同编号" width="120"/>
                    <a:column name="project_name" prompt="项目名称" width="120"/>
                    <a:column name="lease_channel_desc" prompt="商业模式" width="70"/>
                    <a:column name="business_type_desc" prompt="业务类型" width="120"/>
                    <a:column name="division_desc" prompt="产品线" width="70"/>
                    <a:column name="company_id" prompt="公司" width="120"/>
                    <a:column name="unit_name" prompt="业务部" width="120"/>
                    <a:column name="employee_name_of_manager" prompt="项目经理" width="70"/>
                    <a:column name="lease_item_amount" prompt="租赁资产总价款" width="120"/>
                    <a:column name="down_payment" prompt="首付金额" width="70"/>
                    <a:column name="finance_amount" prompt="融资额"/>
                    <a:column name="project_status" prompt="项目状态" width="90"/>
                </a:columns>
            </a:grid>
        </a:screenBody>
    </a:view>
</a:screen>