<%--
  Created by IntelliJ IDEA.
  User: 1
  Date: 2024/5/6
  Time: 16:24
  To change this template use File | Settings | File Templates.
--%>
<!DOCTYPE html>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ 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:EFSelect blockId="inqu_status" row="0" ename="factoryCode" cname="公司名称" colWidth="3" filter="contains">
                <EF:EFOption label="全部" value=""/>
                <EF:EFOptions blockId="roleCompany" textField="companyName" valueField="companyCode"/>
            </EF:EFSelect>
            <%--<EF:EFSelect blockId="inqu_status" row="0" ename="processCode" cname="工序名称" colWidth="3" filter="contains">
                <EF:EFOption label="全部" value=""/>
                <EF:EFOptions blockId="processCode_block_id" textField="textField" valueField="valueField"/>
            </EF:EFSelect>--%>
            <EF:EFInput blockId="inqu_status" row="0" ename="processName" cname="工序名称" placeholder="模糊查询" colWidth="3"/>
            <EF:EFSelect blockId="inqu_status" row="0" ename="status" cname="状态" colWidth="3" filter="contains">
                <EF:EFOption label="全部" value=""/>
                <EF:EFCodeOption codeName="hpjx.hpjx.status"/>
            </EF:EFSelect>
            <EF:EFInput blockId="inqu_status" row="0" ename="companyCode" cname="公司编码" type="hidden" colWidth="3"/>
        </div>
    </EF:EFRegion>

    <EF:EFRegion id="result" title="明细信息">
        <EF:EFGrid blockId="result" autoDraw="override" isFloat="true">
            <EF:EFColumn ename="id" primaryKey="true" cname="内码" hidden="true"/>
            <EF:EFColumn ename="accountCode" cname="企业编码" hidden="true"/>
            <EF:EFColumn ename="operator" cname="操作" locked="true" enable="false" width="100" align="center"/>
            <EF:EFComboColumn ename="factoryCode" cname="公司名称"
                              columnTemplate="#=textField#" itemTemplate="#=textField#"
                              textField="textField" valueField="valueField"
                              maxLength="16" width="200" required="true"
                              align="center" filter="contains" sort="true">
                <EF:EFOptions blockId="roleCompany" textField="companyName" valueField="companyCode"/>
            </EF:EFComboColumn>
            <EF:EFComboColumn ename="processCode" cname="工序名称"
                              columnTemplate="#=textField#" itemTemplate="#=textField#"
                              textField="textField" valueField="valueField"
                              maxLength="16" width="200" required="true"
                              align="center" filter="contains" sort="true">
                <EF:EFOptions blockId="processCode_block_id" textField="textField" valueField="valueField"/>
            </EF:EFComboColumn>
            <EF:EFComboColumn ename="processClass" cname="工序分类" width="100" enable="true" readonly="false" align="center"
                              required="true">
                <EF:EFCodeOption codeName="hggp.hgsj.processClass"/>
            </EF:EFComboColumn>
            <EF:EFColumn ename="unit" cname="单位" width="80" enable="true" readonly="false" align="center"/>
            <EF:EFColumn ename="spec" cname="规格" width="140" enable="false" align="center" maxLength="50"/>
            <EF:EFColumn ename="length" cname="长(MM)" width="100" align="right" format="{0:N2}" maxLength="10"/>
            <EF:EFColumn ename="width" cname="宽(MM)" width="100" align="right" format="{0:N2}" maxLength="10"/>
            <EF:EFColumn ename="thick" cname="厚(MM)" width="100" align="right" format="{0:N2}" maxLength="10"/>
            <EF:EFColumn ename="price" cname="单价" width="120" enable="true" format="{0:N3}" editType="text"
                         displayType="0.000" sort="true" align="right"
                         data-regex="/^-?[0-9]{1,15}([.][0-9]{1,3})?$/" maxLength="15" required="true"
                         data-errorprompt="请输入数字,该值最大可设置15位整数和3位小数!"
            />
            <EF:EFComboColumn ename="status" cname="状态" width="80" enable="true" readonly="false" align="center" required="true" defaultValue="1">
                <EF:EFCodeOption codeName="hpjx.hpjx.status"/>
            </EF:EFComboColumn>
            <EF:EFColumn cname="创建人" ename="createdName" align="center" width="100" readonly="true" required="false"
                         enable="false"/>
            <EF:EFColumn cname="创建时间" ename="createdTime" parseFormats="['yyyyMMddHHmmss']" editType="datetime"
                         dateFormat="yyyy-MM-dd HH:mm:ss" align="center" width="120" readonly="true" required="false"
                         enable="false"/>
        </EF:EFGrid>
    </EF:EFRegion>
    <EF:EFWindow id="openFile">
        <EF:EFRegion id="upload" title="文件导入区">
            <div id="button"></div>
            <EF:EFUpload ename="fileUpload" cname="导入" docTag="HGSJ003" path="share"/>
        </EF:EFRegion>
    </EF:EFWindow>
</EF:EFPage>