<!DOCTYPE html>
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="EF" tagdir="/WEB-INF/tags/EF" %>

<c:set var="ctx" value="${pageContext.request.contextPath}"/>

<EF:EFPage title="项目详情">
    <EF:EFRegion id="inqu" title="项目信息">
        <div class="row">
            <EF:EFInput ename="result-0-id" cname="主键ID" type="hidden"/>
            <EF:EFInput ename="result-0-approvalStatus" cname="审批状态" type="hidden"/>
            <EF:EFInput ename="result-0-companyName" cname="公司名称" type="hidden"/>
            <EF:EFSelect cname="公司" ename="result-0-companyCode" colWidth="4" required="true" filter="contains">
                <EF:EFOption label="-- 请选择 --" value="" />
                <EF:EFOptions blockId="roleCompany" valueField="companyCode" textField="companyName"/>
            </EF:EFSelect>
            <EF:EFInput ename="result-0-depName" cname="部门名称" type="hidden"/>
            <EF:EFInput ename="result-0-depCode" cname="部门编码" type="hidden"/>
            <%--<EF:EFCascadeSelect cascadeFrom="result-0-companyCode" cname="部门" ename="result-0-depCode"
                                colWidth="4" required="true" filter="contains" defaultValue=""
                                serviceName="HGSC001" methodName="depByCompanyComboBox" resultId="depByCompany"
                                textField="depName" valueField="depCode" >
            </EF:EFCascadeSelect>--%>
            <EF:EFSelect ename="result-0-branchUnit" cname="分支单位" colWidth="4" required="true" filter="contains"
                         textField="textField" valueField="valueField">
                <EF:EFOptions blockId="customer1_record_block_id" textField="textField" valueField="valueField"/>
            </EF:EFSelect>
        </div>
        <div class="row">
            <EF:EFInput ename="result-0-subcontractName" cname="乙方" colWidth="4" required="true" readonly="true"/>
            <EF:EFInput ename="result-0-subcontractCode" cname="乙方名称" type="hidden"/>
            <EF:EFInput ename="result-0-genralContractName" cname="甲方名称" type="hidden"/>
            <EF:EFSelect ename="result-0-genralContractCode" cname="甲方" colWidth="4" required="true" filter="contains"
                         textField="textField" valueField="valueField">
                <EF:EFOptions blockId="customer_record_block_id" textField="textField" valueField="valueField"/>
            </EF:EFSelect>
            <%--<EF:EFCascadeSelect cascadeFrom="result-0-subcontractCode" cname="甲方" ename="result-0-genralContractCode"
                                colWidth="4" required="true" filter="contains" defaultValue=""
                                serviceName="HGSC001" methodName="genralContractComboBox" resultId="customer_record_block_id"
                                textField="textField" valueField="valueField" >
            </EF:EFCascadeSelect>--%>
            <EF:EFInput ename="result-0-projCode" cname="项目编号" colWidth="4" required="true" readonly="true"/>
        </div>
        <div class="row">
            <EF:EFInput ename="result-0-projName" cname="项目名称" colWidth="4" required="true" readonly="false"/>
            <EF:EFInput ename="result-0-contractName" cname="合同名称" colWidth="4" required="true" readonly="false"/>
            <EF:EFMultiSelect ename="result-0-projType" cname="项目性质"
                              colWidth="4" required="true" readonly="false">
                <EF:EFOptions blockId="proj_type_block_id" textField="textField"
                              valueField="valueField"/>
            </EF:EFMultiSelect>
        </div>
        <div class="row">
            <EF:EFDatePicker cname="准许开工日期" ename="result-0-permissStartDate"  colWidth="4"
                             format="yyyy-MM-dd" required="true" readonly="false"/>
            <EF:EFDatePicker cname="开工日期" ename="result-0-startDate"  colWidth="4"
                             format="yyyy-MM-dd" required="true" readonly="false"/>
            <EF:EFDatePicker cname="完工日期" ename="result-0-endDate"  colWidth="4"
                             format="yyyy-MM-dd" required="true" readonly="false"/>
        </div>
        <div class="row">
            <EF:EFSelect cname="项目状态" ename="result-0-projStatus" colWidth="4" filter="contains" required="true" readonly="false">
                <EF:EFCodeOption codeName="hggp.projStatus" />
            </EF:EFSelect>
            <EF:EFInput ename="result-0-partyPmName" cname="甲方项目经理名称" colWidth="4" readonly="false"/>
            <EF:EFInput ename="result-0-partyPmHpone" cname="甲方项目经理电话" colWidth="4" readonly="false"/>
        </div>
        <div class="row">
            <EF:EFInput ename="result-0-contractWorkTxt" cname="合同工作量" type="textarea" colWidth="8" ratio="2:8" required="true" readonly="false"/>
        </div>
    </EF:EFRegion>

    <EF:EFRegion id="detail" title="部门负责人信息">
        <EF:EFGrid blockId="detail" autoDraw="no" isFloat="true">
            <EF:EFColumn ename="id" cname="主键" hidden="true"/>
            <EF:EFColumn ename="projId" cname="项目ID" hidden="true"/>
            <EF:EFColumn ename="userName" cname="负责人名称" required="true" hidden="true"/>
            <EF:EFColumn ename="userDepCode" cname="负责人部门编码" required="true" hidden="true"/>
            <EF:EFColumn ename="userCode" cname="负责人名称" required="true" align="center"/>
            <EF:EFColumn ename="userDepName" cname="所属部门" required="true" enable="false" align="center"/>
            <EF:EFColumn ename="userPhone" cname="电话" required="true" enable="false" align="center"/>
        </EF:EFGrid>
    </EF:EFRegion>
    <div class="row" style="display:flex;justify-content:center;">
        <EF:EFButton ename="cancel"  cname="取消" type="button" class="btn-center"/>
        <EF:EFButton ename="btn_save"  cname="保存" type="button" class="btn-center"/>
    </div>
</EF:EFPage>