<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: zhangyu  
    $Date: 2016-11-10 下午15:33:52  
    $Revision: 1.0  
    $Purpose: 项目报告关闭工作流页面
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application">
    <a:init-procedure>
        <a:model-query model="prj.PRJ900.hn_project_close" rootPath="prj_doc_project_record"/>
    </a:init-procedure>
    <a:view>
        <a:link id="prj_project_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/>
        <a:link id="prj_project_update_link_id" url="${/request/@context_path}/modules/prj/PRJ501N/prj_project_create_tree_n.lview"/>
        <script type="text/javascript"><![CDATA[
            function winOpen_projectDetailInfo() {
                var record = $('prj900_prj_close_document_info_ds').getAt(0);
                var param = record.data;
                param['document_id'] = '${/parameter/@project_id}';
            
                param['function_code'] = 'PRJ505';
                param['function_usage'] = 'QUERY';
                param['maintain_type'] = 'READONLY';
                param['cond_para2'] = record.get('hn_industry_classification');
                param['url_title'] = '项目详细信息';
                hls_doc_get_layout_code('prj_project_get_layout_code_link_id', param, 'prj_project_update_link_id');
            }
        ]]></script>
        <a:dataSets>
            <a:dataSet id="prj900_prj_close_document_info_ds" model="prj.PRJ900.hn_project_close">
                <a:datas dataSource="/model/prj_doc_project_record"/>
            </a:dataSet>
        </a:dataSets>
        <a:screenBody>
            <a:form marginWidth="100" title="项目关闭信息">
                <a:hBox labelWidth="100">
                    <a:textField name="project_number" bindTarget="prj900_prj_close_document_info_ds" prompt="项目编号" readOnly="true"/>
                    <a:textField name="project_name" bindTarget="prj900_prj_close_document_info_ds" prompt="项目名称" readOnly="true"/>
                    <a:textField name="bp_name" bindTarget="prj900_prj_close_document_info_ds" prompt="承租人" readOnly="true"/>
                </a:hBox>
                <a:hBox labelWidth="100">
                    <a:textField name="employee_id_n" bindTarget="prj900_prj_close_document_info_ds" prompt="项目经理" readOnly="true"/>
                    <a:textField name="employee_id_of_manager_n" bindTarget="prj900_prj_close_document_info_ds" prompt="部门经理" readOnly="true"/>
                    <a href="javascript:winOpen_projectDetailInfo();" style="margin-left:40px;text-decoration:underline"><![CDATA[<font color="red">项目详细信息</font>]]></a>
                </a:hBox>
                <a:hBox labelWidth="100">
                    <a:textField name="close_reason" bindTarget="prj900_prj_close_document_info_ds" prompt="关闭原因" readOnly="true" width="1080"/>
                </a:hBox>
            </a:form>
        </a:screenBody>
        <a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
    </a:view>
</a:screen>