<%@ page language="C#" autoeventwireup="true" inherits="SB_admin_N47_PrintForm_N47_PrintForm_Insert, App_Web_54a0bsbe" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>新增</title>
    <script type="text/javascript" language="javascript" src="<%=ResolveUrl("~/SB/control/js/My97DatePicker/WdatePicker.js?v=1")%>"></script>
    <script type="text/javascript" language="javascript" src="<%=ResolveUrl("~/SB/control/easy_ui/jquery.min.js?v=1")%>"></script>
    <script type="text/javascript" language="javascript" src="<%=ResolveUrl("~/SB/control/easy_ui/jquery.easyui.min.js?v=1")%>"></script>
    <script type="text/javascript" language="javascript" src="<%=ResolveUrl("~/SB/control/easy_ui/locale/easyui-lang-zh_CN.js?v=1")%>"></script>
    <script type="text/javascript" language="javascript" src="<%=ResolveUrl("~/SB/control/easy_ui/jquery.load.js?v=1")%>"></script>
    <script type="text/javascript" language="javascript" src="<%=ResolveUrl("~/SB/control/easy_ui/jquery.json.js?v=1")%>"></script>
    <script type="text/javascript" language="javascript" src="<%=ResolveUrl("~/SB/control/easy_ui/jquery.easyui.validtor.js?v=1")%>"></script>
    <script type="text/javascript" language="javascript" src="<%=ResolveUrl("~/SB/control/js/PageDialog.js?v=1")%>"></script>

    <link rel="stylesheet" type="text/css" href="<%=ResolveUrl("~/SB/control/easy_ui/themes/bootstrap/easyui.css?v=1")%>" />
    <link rel="stylesheet" type="text/css" href="<%=ResolveUrl("~/SB/control/easy_ui/themes/icon.css?v=1")%>" />
    <link rel="stylesheet" type="text/css" href="<%=ResolveUrl("~/SB/control/easy_ui/load.css?v=1")%>" />
    <link rel="stylesheet" type="text/css" href="<%=ResolveUrl("~/SB/control/css/main.css?v=1")%>" />
</head>
<body>
    <h3>
        新增项目制作单</h3>
    <form id="form1" runat="server">
        <div>
            <!-- Add.aspx -->
            <fieldset>
                <legend>项目完成</legend>
                <table cellspacing="0" cellpadding="4" width="100%" border="0">
                    <tr>
                        <td height="25" align="right" style="width: 98px">
                            所属项目<span>*</span>：</td>
                        <td height="25" align="left">
                            <asp:TextBox ID="txtProject" runat="server" Width="65%"></asp:TextBox>
                            
                            <asp:HyperLink ID="hlSelectPanel" NavigateUrl="#" runat="server" onclick="openSelect()">选择项目</asp:HyperLink>

                            <script type="text/javascript" language="javascript">
                                function openSelect(){
                                     ShowDialog("select","../N47_Project/N47_Project_Select_Single.aspx",650,300,200,200);
                                }
                                function selectProject(id,name,p_spe,p_quantity,p_material,p_internalMaterial,p_outMaterial,p_technology,p_binding){
                                    $("#txtProject").val(name);
                                    $("#hfProject").val(id);
                                    
                                    $("#txtpf_name").val(name);
                                    $("#txtpf_size").val(p_spe);
                                    $("#txtpf_amount").val(p_quantity);
                                    
                                    $("#txtpf_cover").val(p_outMaterial);
                                    $("#txtpf_insidePages").val(p_internalMaterial);
                                    
                                    $("#txtpf_other").val(p_technology);
                                    $("#txtpf_bindingStyle").val(p_binding);
                                } 
                            </script>
                            
                            <asp:RequiredFieldValidator id="rfvProject" runat="server" ControlToValidate="txtProject" ErrorMessage="请填写"></asp:RequiredFieldValidator>
                            
                         </td>
                    </tr>
                    <tr>
                        <td height="25" align="right" style="width: 98px">
                            编号<span>*</span>：</td>
                        <td height="25" align="left">
                            <asp:TextBox ID="txtpf_number" runat="server" MaxLength="50" Width="75%"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfvpf_number" runat="server" ErrorMessage="请填写" ControlToValidate="txtpf_number"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" style="width: 98px; height: 25px;">
                            制作名称<span>*</span>：</td>
                        <td align="left" style="height: 25px">
                            <asp:TextBox ID="txtpf_name" runat="server" MaxLength="50" Width="75%"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfvpf_name" runat="server" ErrorMessage="请填写" ControlToValidate="txtpf_name"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td height="25" align="right" style="width: 98px"> 
                            规格尺寸：</td>
                        <td height="25" align="left">
                            <asp:TextBox ID="txtpf_size" runat="server" MaxLength="50" Width="75%"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td height="25" align="right" style="width: 98px"> 
                            数量：</td>
                        <td height="25" align="left">
                            <asp:TextBox ID="txtpf_amount" runat="server" MaxLength="50" Width="75%"></asp:TextBox>
                        </td>
                    </tr>
                </table>
            </fieldset>
            <fieldset>
                <legend>项目完成</legend>
                <table cellspacing="0" cellpadding="4" width="100%" border="0">
                    <tr>
                        <td height="25" align="right" style="width: 98px">
                            印刷总页数：</td>
                        <td height="25" align="left">
                            <asp:TextBox ID="txtpf_sumAmout" runat="server" MaxLength="50" Width="75%"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td height="25" align="right" style="width: 98px">  
                            封面用纸：</td>
                        <td height="25" align="left">
                            <asp:TextBox ID="txtpf_cover" runat="server" MaxLength="50" Width="75%"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td height="25" align="right" style="width: 98px">
                            内页用纸：</td>
                        <td height="25" align="left">
                            <asp:TextBox ID="txtpf_insidePages" runat="server" MaxLength="50" Width="75%"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td height="25" align="right" style="width: 98px">
                            其他工艺：</td>
                        <td align="left" style="height: 25px">
                            <asp:TextBox ID="txtpf_other" runat="server" MaxLength="50" Width="75%"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td height="25" align="right" style="width: 98px">
                            装订方式：</td>
                        <td height="25" align="left">
                            <asp:TextBox ID="txtpf_bindingStyle" runat="server" MaxLength="50" Width="75%"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td height="25" align="right" style="width: 98px">
                            交货时间：</td>
                        <td height="25" align="left">
                            <asp:TextBox ID="txtpf_delivery" runat="server" MaxLength="50" Width="75%"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" style="width: 98px; height: 25px;">
                            交货方式：</td>
                        <td align="left" style="height: 25px">
                            <asp:DropDownList ID="ddlAddress" runat="server" Width="15%">
                                <asp:ListItem></asp:ListItem>
                                <asp:ListItem Value="观城永红">观城永红</asp:ListItem>
                                <asp:ListItem Value="市中央大厦">市中央大厦</asp:ListItem>
                            </asp:DropDownList>
                            <asp:TextBox ID="txtpf_deliveryMode" runat="server" MaxLength="50" Width="59%"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" style="width: 98px; height: 25px">
                            金额：</td>
                        <td align="left" style="height: 25px">
                            <asp:TextBox ID="txtpf_money" runat="server" Width="75%"></asp:TextBox>
                            
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server"
                            ErrorMessage="无效格式" ControlToValidate="txtpf_money"
                            ValidationExpression="^-?\d+(\.\d+)?$"></asp:RegularExpressionValidator>
                            
                            </td>
                    </tr>
                    <tr>
                        <td align="right" style="width: 98px; height: 25px">
                            加工金额：</td>
                        <td align="left" style="height: 25px">
                            <asp:TextBox ID="txtpf_moneyP" runat="server" Width="75%"></asp:TextBox>
                                <asp:RegularExpressionValidator ID="revp_guojiajiankubianyuandiqujintie" runat="server"
                            ErrorMessage="无效格式" ControlToValidate="txtpf_moneyP"
                            ValidationExpression="^-?\d+(\.\d+)?$"></asp:RegularExpressionValidator>
                            
                            </td>
                    </tr>
                    <tr> 
                        <td align="right" style="width: 98px; height: 25px">
                            加工单位：</td>
                        <td align="left" style="height: 25px">
                            <asp:TextBox ID="txtpf_ProcessingCompany" runat="server" Width="75%"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td height="25" align="right" style="width: 98px">
                            备注：</td>
                        <td height="25" align="left">
                            <asp:TextBox ID="txtpf_note" runat="server" MaxLength="1000" Width="75%" Rows="4"
                                TextMode="MultiLine"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 98px">
                        </td>
                        <td>
                            <asp:Button ID="btnSubmit" runat="server" Text="保存" Width="80px" OnClick="btnSubmit_Click" />
                            <asp:Button ID="btnClose" runat="server" Text="保存并关闭" OnClick="btnClose_Click" />
                            <asp:HiddenField ID="hfProject" runat="server" />
                        </td>
                    </tr>
                </table>
            </fieldset>
        </div>
    </form>
</body>
</html>
