<%@ Page Language="C#" %>
<%@ Register TagPrefix="aspxform" Namespace="XFormDesigner.Framework.Web.UI" Assembly="XFormDesigner.Framework" %>
<script runat="server">

    // Insert page code here
    //

</script>
<html xmlns:xform="xmlns:xform">
<head runat="server">
    <link href="/Oimec/Styles/css/StyleSheet.css" rel="stylesheet" type="text/css" />
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
    <title>BPM Form</title> <style>
    BODY {FONT-SIZE: 12px; FONT-FAMILY: verdana}
    TABLE {border-collapse: collapse; FONT-SIZE: 12px; FONT-FAMILY: verdana}
    P {PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px; FONT-SIZE: 12px; FONT-FAMILY: verdana}
    TD {PADDING-RIGHT: 0px; PADDING-LEFT: 2px; PADDING-BOTTOM: 0px}
    TD.NoPadding {PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px}
    INPUT {HEIGHT: 20px}
    INPUT.UL {BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; BORDER-BOTTOM: #33ff33 1px solid}
    TEXTAREA {FONT-SIZE:12px}
    .yz-inp-cnt{display:inline;}
    </style>
</head>
<body>
    <form runat="server">
        <!-- Insert content here -->
        <table width="1200" align="center" class="head" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td class="logo">
                    </td>
                    <td class="biaoti" style="PADDING-LEFT: 30px">
                        <asp:Label id="XLabel1" runat="server" text="采购预付款审批申请表"></asp:Label></td>
                    <td class="formno">
                        <asp:Label id="XLabel2" runat="server" text="表单号："></asp:Label>
                        <aspxform:XLabel id="XLabel3" runat="server" text="-系统自动生成-" Value ValueToDisplayText XDataBind="DF_Pruchase_AdvancePayApp_Info.FormNo" BackColor="#8AB3DF"></aspxform:XLabel>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table align="center" class="table" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td class="title1" colspan="4">
                        <asp:Label id="XLabel6" runat="server" text="基本信息" value valuetodisplaytext></asp:Label></td>
                </tr>
                <tr>
                    <td class="ts" style="WIDTH: 10%">
                        <asp:Label id="XLabel23" runat="server" text="申请人"></asp:Label></td>
                    <td class="ts1" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox18" runat="server" ValueToDisplayText="TableName:V_DF_User;FilterColumn:Account;DisplayColumn:DisplayName" XDataBind="DF_Pruchase_AdvancePayApp_Info.AppName" DisableBehavior="ReadOnly" Width="70%" CssClass="text" backColor="#e6f1f8"></aspxform:XTextBox>
                    </td>
                    <!--业务员-->
                    <td class="ts" style="WIDTH: 10%">
                        <asp:Label id="XLabel4" runat="server" text="业务员"></asp:Label>
                        <aspxform:XTextBox id="XTextBox7" runat="server" Value ValueToDisplayText="TableName:V_DF_HR_BasicInfo;FilterColumn:AttendanceKakaNO;DisplayColumn:AttendanceKakaNO" XDataBind="DF_Pruchase_AdvancePayApp_Info.Salesman" Width="61px" Max="0" Min="0" HiddenInput="True" BorderColor="Gainsboro" BorderWidth="1px" DataMap="Name->DF_Pruchase_AdvancePayApp_Info.SalesManName;Department->DF_Pruchase_AdvancePayApp_Info.AppDepart;Region->DF_Pruchase_AdvancePayApp_Info.AppArea;BUName->DF_Pruchase_AdvancePayApp_Info.AppBU"></aspxform:XTextBox>
                    </td>
                    <td class="ts1" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox1" runat="server" ValueToDisplayText XDataBind="DF_Pruchase_AdvancePayApp_Info.SalesManName" Width="70%" CssClass="text" backColor="#e6f1f8"></aspxform:XTextBox>
                        &nbsp;<aspxform:XDataBrowserButton id="XDataBrowserButton1" runat="server" Width="60px" DataMap="Name->DF_Pruchase_AdvancePayApp_Info.SalesManName;Department->DF_Pruchase_AdvancePayApp_Info.AppDepart;Region->DF_Pruchase_AdvancePayApp_Info.AppArea;AttendanceKakaNO->DF_Pruchase_AdvancePayApp_Info.Salesman;BUName->DF_Pruchase_AdvancePayApp_Info.AppBU" UseSubmitBehavior="False" PopupWndHeight="-1" PopupWndWidth="-1" XDataSource="TableName:V_DF_HR_BasicInfo" DisplayColumns="Name:员工姓名,;Department:部门," Text="查询" Height="25px"></aspxform:XDataBrowserButton>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel88" runat="server" text="部门"></asp:Label></td>
                    <td class="tsbottomtext" id="chktd" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox2" runat="server" XDataBind="DF_Pruchase_AdvancePayApp_Info.AppDepart" DisableBehavior="ReadOnly" Width="70%" CssClass="text" backColor="#e6f1f8"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel323" runat="server" text="BU"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox318" runat="server" XDataBind="DF_Pruchase_AdvancePayApp_Info.AppBU" DisableBehavior="ReadOnly" Width="70%" CssClass="text" backColor="#e6f1f8"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="20" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel5" runat="server" text="地区"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox60" runat="server" XDataBind="DF_Pruchase_AdvancePayApp_Info.AppArea" DisableBehavior="ReadOnly" Width="70%" CssClass="text" backColor="#e6f1f8"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                    </td>
                    <td class="tsbottomtext" id="Td1" style="WIDTH: 35%">
                    </td>
                </tr>
                <tr>
                    <td height="21" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel20" runat="server" text="创建日期"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XDateTimePicker id="XDateTimePicker3" runat="server" XDataBind="DF_Pruchase_AdvancePayApp_Info.CreateDate" DisableBehavior="ReadOnly" Width="50%" CssClass="text" backColor="#e6f1f8"></aspxform:XDateTimePicker>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel8" runat="server" text="采购模式"></asp:Label></td>
                    <td class="tsbottomtext" id="Td2" style="WIDTH: 35%">
                        <aspxform:XDropDownList id="XDropDownList1" runat="server" XDataBind="DF_Pruchase_AdvancePayApp_Info.PurchaseStyle">
                            <asp:ListItem>销售采购</asp:ListItem>
                            <asp:ListItem>租赁采购</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                </tr>
                <tr>
                    <td height="20" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel9" runat="server" text="BPM预审单号"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox8" runat="server" XDataBind="DF_Pruchase_AdvancePayApp_Info.InquiryFormNo" DisableBehavior="ReadOnly" Width="220" CssClass="text" backColor="#e6f1f8"></aspxform:XTextBox>
                        &nbsp; 
                        <aspxform:XHistoryFormLink id="XHistoryFormLink1" runat="server" XDataBind="DF_Pruchase_AdvancePayApp_Info.InquiryTID" BackColor="#d4e4fe" PopupWndHeight="-1" PopupWndWidth="-1" EmptyText="查看">查看</aspxform:XHistoryFormLink>
                        &nbsp; 
                        <aspxform:XTextBox id="XTextBox34" runat="server" XDataBind="id" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True" width="5" HiddenExpress="1" Enabled="False"></aspxform:XTextBox>
                        <aspxform:XDataBrowserButton id="XDataBrowserButton2" runat="server" Width="60px" DataMap="TaskID->DF_Pruchase_AdvancePayApp_Info.InquiryTID;FormNo->DF_Pruchase_AdvancePayApp_Info.InquiryFormNo" UseSubmitBehavior="False" PopupWndHeight="-1" PopupWndWidth="-1" XDataSource="TableName:V_DF_InquiryQuery;Filter:TypeCode->'预审',SalesmanID->DF_Pruchase_AdvancePayApp_Info.Salesman" DisplayColumns="FormNo:预审单号,150;CreateDate:创建时间,200;SalesOpportunities:销售机会名称,250" Text="查询" Height="25px"></aspxform:XDataBrowserButton>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <aspxform:XLabel id="XLabel102" runat="server" text="SAP报价单号" Value ValueToDisplayText BackColor="#d4e4fe"></aspxform:XLabel>
                    </td>
                    <td class="tsbottomtext" id="td1" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox3" runat="server" XDataBind="DF_Pruchase_AdvancePayApp_Info.QuotationNo" Width="70%" CssClass="text" DisableExpress="DF_Pruchase_AdvancePayApp_Info.InquiryFormNo!=''"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <p>
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator7" runat="server" DisableExpress="DF_Pruchase_AdvancePayApp_Info.InquiryFormNo!=''" ControlToValidate="XTextBox3" ErrorMessage="请填写报价单号" Display="None">请填写报价单号</aspxform:XRequiredFieldValidator>
        </p>
        <div id="dnew" style="TEXT-ALIGN: center" runat="server">
            <br />
            <div class="scrollDiv" id="scrollDiv">
                <table width="2019" class="scrolltable" id="tablenew" border="0" cellspacing="0" cellpadding="3" runat="server" dynamicarea="2,1" menudock="Left">
                    <tbody>
                        <tr class="scrollColThead">
                            <th width="2019" height="29" class="scrollRowThead scrollCR" colspan="13">
                                <asp:Label id="XLabel42" runat="server" text="采购信息"></asp:Label>
                            </th>
                        </tr>
                        <tr class="scrollColThead">
                            <td width="40" height="31" class="tds">
                                <asp:Label id="XLabel43" runat="server" text="序号"></asp:Label></td>
                            <td width="128" class="tds">
                                <asp:Label id="XLabel79" runat="server" text="供应商名称"></asp:Label></td>
                            <td width="200" class="tds">
                                <asp:Label id="XLabel48" runat="server" text="付款条件"></asp:Label></td>
                            <td width="142" align="center" class="tds">
                                <asp:Label id="XLabel50" runat="server" text="供应商性质"></asp:Label></td>
                            <td width="137" class="tds">
                                <asp:Label id="XLabel80" runat="server" text="是否与供方合作过"></asp:Label></td>
                            <td width="106" class="tds">
                                <asp:Label id="XLabel51" runat="server" text="客户指定供应商"></asp:Label></td>
                            <td width="95" class="tds">
                                <asp:Label id="XLabel52" runat="server" text="客户定制产品"></asp:Label></td>
                            <td width="221" class="tds">
                                <asp:Label id="XLabel100" runat="server" text="客户联系方式"></asp:Label></td>
                            <td width="100" class="tds">
                                <asp:Label id="XLabelOwner" runat="server" text="厂商指定渠道"></asp:Label></td>
                            <td width="210" class="tds">
                                <asp:Label id="XLabel190" runat="server" text="厂商联系方式"></asp:Label></td>
                            <td width="117" class="tds">
                                <asp:Label id="XLabel191" runat="server" text="与我司合作投标"></asp:Label></td>
                            <td width="120" class="tds">
                                <asp:Label id="XLabel56" runat="server" text="前期一起参与跟单"></asp:Label></td>
                            <td width="191" class="tds">
                                <asp:Label id="XLabel49" runat="server" text="采购金额"></asp:Label></td>
                        </tr>
                        <tr>
                            <td height="45" class="tds1" style="TEXT-ALIGN: center">
                                <aspxform:XGridLineNo id="XGridLineNo1" runat="server" XDataBind="DF_Purchase_AdvancePayApp_Detail.LineNumber" BackColor="Transparent" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" BorderStyle="None" TextAlign="Center">1</aspxform:XGridLineNo>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox319" runat="server" XDataBind="DF_Purchase_AdvancePayApp_Detail.SupplierName" Width="98%" CssClass="text" Max="0" Min="0" HiddenInput="False"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox6" runat="server" XDataBind="DF_Purchase_AdvancePayApp_Detail.PaymentTerms" Width="98%" CssClass="text" Max="0" Min="0" HiddenInput="False"></aspxform:XTextBox>
                            </td>
                            <td align="center" class="tds1">
                                <aspxform:XRadioButtonList id="XRadioButtonList1" runat="server" XDataBind="DF_Purchase_AdvancePayApp_Detail.SupplierQuality" RepeatDirection="Horizontal">
                                    <asp:ListItem>厂商</asp:ListItem>
                                    <asp:ListItem Selected="True">分销商</asp:ListItem>
                                </aspxform:XRadioButtonList>
                            </td>
                            <td align="center" class="tds1">
                                <aspxform:XRadioButtonList id="XRadioButtonList2" runat="server" XDataBind="DF_Purchase_AdvancePayApp_Detail.IsCooperation" RepeatDirection="Horizontal">
                                    <asp:ListItem Value="1">是</asp:ListItem>
                                    <asp:ListItem Value="0">否</asp:ListItem>
                                </aspxform:XRadioButtonList>
                            </td>
                            <td align="center" class="tds1">
                                <aspxform:XRadioButtonList id="XRadioButtonList3" runat="server" XDataBind="DF_Purchase_AdvancePayApp_Detail.IsPointSupplier" RepeatDirection="Horizontal">
                                    <asp:ListItem Value="1">是</asp:ListItem>
                                    <asp:ListItem Value="0">否</asp:ListItem>
                                </aspxform:XRadioButtonList>
                            </td>
                            <td align="center" class="tds1">
                                <aspxform:XRadioButtonList id="XRadioButtonList4" runat="server" XDataBind="DF_Purchase_AdvancePayApp_Detail.IsCustomizedProducts" RepeatDirection="Horizontal">
                                    <asp:ListItem Value="1">是</asp:ListItem>
                                    <asp:ListItem Value="0">否</asp:ListItem>
                                </aspxform:XRadioButtonList>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox5" runat="server" Value ValueToDisplayText XDataBind="DF_Purchase_AdvancePayApp_Detail.CustomerContact" Width="98%" CssClass="text"></aspxform:XTextBox>
                            </td>
                            <td align="center" class="tds1">
                                <aspxform:XRadioButtonList id="XRadioButtonList5" runat="server" XDataBind="DF_Purchase_AdvancePayApp_Detail.IsPointChannel" RepeatDirection="Horizontal">
                                    <asp:ListItem Value="1">是</asp:ListItem>
                                    <asp:ListItem Value="0">否</asp:ListItem>
                                </aspxform:XRadioButtonList>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox4" runat="server" Value ValueToDisplayText XDataBind="DF_Purchase_AdvancePayApp_Detail.ManufacturerContact" Width="98%" CssClass="text"></aspxform:XTextBox>
                            </td>
                            <td align="center" class="tds1">
                                <aspxform:XRadioButtonList id="XRadioButtonList6" runat="server" XDataBind="DF_Purchase_AdvancePayApp_Detail.IsCooperationUs" RepeatDirection="Horizontal">
                                    <asp:ListItem Value="1">是</asp:ListItem>
                                    <asp:ListItem Value="0">否</asp:ListItem>
                                </aspxform:XRadioButtonList>
                            </td>
                            <td align="center" class="tds1">
                                <aspxform:XRadioButtonList id="XRadioButtonList7" runat="server" XDataBind="DF_Purchase_AdvancePayApp_Detail.IsDocumentary" RepeatDirection="Horizontal">
                                    <asp:ListItem Value="1">是</asp:ListItem>
                                    <asp:ListItem Value="0">否</asp:ListItem>
                                </aspxform:XRadioButtonList>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox17" runat="server" Value ValueToDisplayText XDataBind="DF_Purchase_AdvancePayApp_Detail.PurchaseAmount" Width="98%" CssClass="text" Max="0" Min="0" HiddenInput="False" TextAlign="Right" Format="type:currency;.2">0</aspxform:XTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td class="tdstotal">
                                <asp:Label id="XLabel105" runat="server" text="总计"></asp:Label></td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox88" runat="server" XDataBind="DF_Pruchase_AdvancePayApp_Info.TotalAmount" Width="98%" CssClass="text" ReadOnly="True" TextAlign="Right" Format="type:currency;.2" Express="sum(DF_Purchase_AdvancePayApp_Detail.PurchaseAmount)"></aspxform:XTextBox>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
        <br />
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td width="1200" class="title1">
                        <asp:Label id="XLabel183" runat="server" text="备注" value valuetodisplaytext></asp:Label></td>
                </tr>
                <tr>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox113" runat="server" XDataBind="DF_Pruchase_AdvancePayApp_Info.Remark" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" Height="80px" TextMode="MultiLine"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" class="table" cellspacing="0" cellpadding="0">
            <tbody>
                <tr class="title1">
                    <td height="14" class="td1">
                        <asp:Label id="XLabel118" runat="server" text="上传预审表" value valuetodisplaytext font-bold="True" height="10px"></asp:Label><asp:Label id="XLabel10" runat="server" text="（如已填写BPM预审单号，此处不必再上传预审表）" value valuetodisplaytext forecolor="Red" font-size="9pt"></asp:Label></td>
                </tr>
                <tr>
                    <td height="88" class="td1">
                        <aspxform:XAttachments id="XAttachments2" runat="server" XDataBind="DF_Pruchase_AdvancePayApp_Info.InquiryAttach" BackColor="#d4e4fe" width="100%" FileTypes="*.jpg;*.png;*.doc;*.pdf;*.docx;*.xls;*.xlsx"></aspxform:XAttachments>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" class="table" cellspacing="0" cellpadding="0">
            <tbody>
                <tr class="title1">
                    <td height="14" class="td1">
                        <asp:Label id="XLabel7" runat="server" text="上传相关资质" value valuetodisplaytext width="123px" font-bold="True"></asp:Label></td>
                </tr>
                <tr>
                    <td height="88" class="td1">
                        <aspxform:XAttachments id="XAttachments1" runat="server" XDataBind="DF_Pruchase_AdvancePayApp_Info.OtherAttach" BackColor="#d4e4fe" width="100%" FileTypes="*.jpg;*.png;*.doc;*.pdf;*.docx;*.xls;*.xlsx"></aspxform:XAttachments>
                    </td>
                </tr>
            </tbody>
        </table>
        <p>
            <br />
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator1" runat="server" ControlToValidate="XTextBox319" ErrorMessage="请填写供应商名称">请填写供应商名称</aspxform:XRequiredFieldValidator>
            &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator6" runat="server" ControlToValidate="XTextBox6" ErrorMessage="请填写付款条件">请填写付款条件</aspxform:XRequiredFieldValidator>
            &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator4" runat="server" DisableExpress="(DF_Purchase_AdvancePayApp_Detail.IsPointSupplier=='0'&amp;&amp;DF_Purchase_AdvancePayApp_Detail.IsCustomizedProducts=='0')" ControlToValidate="XTextBox5" ErrorMessage="请填写客户联系方式">请填写客户联系方式</aspxform:XRequiredFieldValidator>
            &nbsp; 
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator5" runat="server" DisableExpress="DF_Purchase_AdvancePayApp_Detail.IsPointChannel=='0'" ControlToValidate="XTextBox4" ErrorMessage="请填写厂商联系方式">请填写厂商联系方式</aspxform:XRequiredFieldValidator>
            &nbsp; 
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator2" runat="server" ControlToValidate="XTextBox17" ErrorMessage="请填写采购金额">请填写采购金额</aspxform:XRequiredFieldValidator>
            &nbsp; 
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator3" runat="server" DisableExpress="DF_Pruchase_AdvancePayApp_Info.InquiryTID!=''" ControlToValidate="XAttachments2" ErrorMessage="请上传预审表" Display="None">请上传预审表</aspxform:XRequiredFieldValidator>
        </p>
        <p>
        </p>
        <p>
        </p>
        <div style="TEXT-ALIGN: center">
            <aspxform:XSignTrace id="XSignTrace1" runat="server" Width="1200px" BorderColor="#dcdcdc" BorderWidth="1"></aspxform:XSignTrace>
        </div>
    </form>
</body>
</html>
