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

    // Insert page code here
    //
    protected void Page_Load(object sender, EventArgs e)
    {
        string item = Request.QueryString["itemid"];
        this.XTextBox3.Text = item;
        string formart = Request.QueryString["formstate"];
        this.XTextBox12.Text = formart;
        string tid = Request.QueryString["tid"];
        if (tid != null)
        {
            // this.XTextBox37.Visible=false;
            //this.XChildFormLink1.Visible=false;
        }
    }

</script>
<html xmlns:xform="xmlns:xform">
<head runat="server">
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
    <link href="/Oimec/Styles/CSS/StyleSheet.css" rel="Stylesheet" type="text/css" />
    <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}
    </style>

    <script type="text/javascript">

        //账户持有人
        function GetAccountOwner(holder, partnerName) {
            if (holder != '')
                return holder;
            else
                return partnerName;
        }
    </script>
</head>
<body>
    <form runat="server">
        <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: 20px">
                        <asp:Label id="XLabel2" runat="server" text="SAP客户主数据" valuetodisplaytext value></asp:Label></td>
                    <td class="formno">
                        <asp:Label id="XLabel93" runat="server" text="表单号：" valuetodisplaytext value></asp:Label>
                        <aspxform:XLabel id="XLabel94" runat="server" text="----自动生成----" Value ValueToDisplayText XDataBind="DF_Partner_SAPCustomer.FormNo" BackColor="#8AB3DF"></aspxform:XLabel>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" class="table">
            <tbody>
                <tr>
                    <td class="basiclblfirst" style="WIDTH: 10%">
                        <asp:Label id="XLabel13" runat="server" text="申请人" valuetodisplaytext value></asp:Label>
                        <aspxform:XTextBox id="XTextBox13" runat="server" XDataBind="DF_Partner_SAPCustomer.CreateUser" HiddenExpress="1" ReadOnly="True" CssClass="text" Width="50"></aspxform:XTextBox>
                    </td>
                    <td class="basictextfirst" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox11" runat="server" XDataBind="DF_Partner_SAPCustomer.CreateName" ReadOnly="True" CssClass="text" Width="70%"></aspxform:XTextBox>
                    </td>
                    <td class="basiclblfirst3" style="WIDTH: 10%">
                        <asp:Label id="XLabel14" runat="server" text="申请日期" valuetodisplaytext value></asp:Label></td>
                    <td class="basictextfirst3" style="WIDTH: 35%">
                        <aspxform:XDateTimePicker id="XDateTimePicker1" runat="server" XDataBind="DF_Partner_SAPCustomer.CreateDate" CssClass="text" Width="50%" DisplayOnly="True"></aspxform:XDateTimePicker>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" class="table">
            <tbody>
                <tr>
                    <td height="22" class="title1" colspan="4">
                        <asp:Label id="XLabel1" runat="server" text="客户信息" valuetodisplaytext value></asp:Label>
                        <aspxform:XTextBox id="XTextBox12" runat="server" Value ValueToDisplayText XDataBind="varformat" Width="28px" Max="0" Min="0" HiddenInput="True" BorderColor="Gainsboro" BorderWidth="1px"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox3" runat="server" Value ValueToDisplayText XDataBind="varCustomer" CssClass="text" Width="28px" Max="0" Min="0" HiddenInput="true" BorderWidth="1px"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox7" runat="server" Value ValueToDisplayText="TableName:V_DF_Partner_ZK;FilterColumn:PartnerID;DisplayColumn:PartnerID" XDataBind="DF_Partner_SAPCustomer.PartnerID" Width="35px" Max="0" Min="0" HiddenInput="True" BorderColor="Gainsboro" BorderWidth="1px" DataMap="Partner->DF_Partner_SAPCustomer.CustomerNameCH;PartnerSAPID->DF_Partner_SAPCustomer.CustomerSAPID;SocialCreditCode->DF_Partner_SAPCustomer.SocialCreditCode;CustomerNameEN->DF_Partner_SAPCustomer.CustomerNameEN" Express="varCustomer"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="25" class="basiclblfirst" style="WIDTH: 10%">
                        <asp:Label id="XLabel3" runat="server" text="客户中文名称" valuetodisplaytext value></asp:Label></td>
                    <td class="basictextfirst" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox5" runat="server" XDataBind="DF_Partner_SAPCustomer.CustomerNameCH" CssClass="text" Width="70%"></aspxform:XTextBox>
                    </td>
                    <td class="basiclblfirst3" style="WIDTH: 10%">
                        <asp:Label id="XLabel4" runat="server" text="客户英文名称" valuetodisplaytext value></asp:Label></td>
                    <td class="basictextfirst3" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox1" runat="server" XDataBind="DF_Partner_SAPCustomer.CustomerNameEN" CssClass="text" Width="70%"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td colspan="4">
                        <asp:Label id="Label7" runat="server" text="说明：" forecolor="Blue" font-bold="False" font-size="14px"></asp:Label>
                        <br />
                        &nbsp;&nbsp;&nbsp;&nbsp;<asp:Label id="Label9" runat="server" text="1、若此客户涉及外币销售业务，请务必输入英文名称。" forecolor="Blue" font-bold="False" font-size="14px"></asp:Label>
                        <br />
                        &nbsp;&nbsp;&nbsp;&nbsp;<asp:Label id="Label8" runat="server" text="2、若客户只有英文名称，请将英文名称同时写到客户中文名称、客户英文名称处。" forecolor="Blue" font-bold="False" font-size="14px"></asp:Label>
</td>
                </tr>
                <tr>
                    <td class="basiclblfirst" style="WIDTH: 10%">
                        <asp:Label id="XLabel7" runat="server" text="合作伙伴SAPID" valuetodisplaytext value></asp:Label></td>
                    <td class="basictextfirst" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox2" runat="server" XDataBind="DF_Partner_SAPCustomer.CustomerSAPID" ReadOnly="True" CssClass="text1" Width="70%"></aspxform:XTextBox>
                    </td>
                    <td class="basiclblfirst" style="WIDTH: 10%">
                        <asp:Label id="Label1" runat="server" text="税号/统一社会信用代码" valuetodisplaytext value></asp:Label></td>
                    <td class="basictextfirst3" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox4" runat="server" XDataBind="DF_Partner_SAPCustomer.SocialCreditCode" CssClass="text1" Width="70%"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" class="table" menudock="Left" datamap="AccountOwner->DF_Partner_SAPBillInfo.AccountOwner;BankCode->DF_Partner_SAPBillInfo.BankCode;BankName->DF_Partner_SAPBillInfo.BankName;BillingTel->DF_Partner_SAPBillInfo.BillingTel;BillingAddress->DF_Partner_SAPBillInfo.BillingAddress;BankAccount->DF_Partner_SAPBillInfo.BankAccount;BankCountry->DF_Partner_SAPBillInfo.BankCountry" xdatasource="TableName:DF_Partner_CusBillInfo;Filter:PartnerID->varCustomer;BufferType:RuntimeUpdate" dynamicarea="2,1">
            <tbody>
                <tr>
                    <td class="title1" colspan="8">
                        <asp:Label id="XLabel28" runat="server" text="开票信息" valuetodisplaytext value></asp:Label></td>
                </tr>
                <tr>
                    <td height="16" class="tds" style="WIDTH: 5%; TEXT-ALIGN: center">
                        <asp:Label id="XLabel5" runat="server" text="序号" valuetodisplaytext value></asp:Label></td>
                    <td width="100" class="tds">
                        <asp:Label id="Label3" runat="server" text="银行国家"></asp:Label></td>
                    <td width="100" class="tds">
                        <asp:Label id="Label2" runat="server" text="银行代码" valuetodisplaytext value></asp:Label></td>
                     <td class="tds">
                        <asp:Label id="XLabel36" runat="server" text="银行名称" valuetodisplaytext value></asp:Label></td>
                    <td width="200" class="tds">
                        <asp:Label id="XLabel34" runat="server" text="银行账号" valuetodisplaytext value></asp:Label></td>
                    <td width="150" class="tds">
                        <asp:Label id="Label4" runat="server" text="账户持有人" valuetodisplaytext value></asp:Label></td>
                    <td class="tds">
                        <asp:Label id="XLabel35" runat="server" text="开票地址" valuetodisplaytext value></asp:Label></td>
                   
                    <td width="150" class="tds" style="BORDER-RIGHT: #93a1ae 1px solid">
                        <asp:Label id="XLabel37" runat="server" text="开票电话" valuetodisplaytext value></asp:Label></td>
                </tr>
                <tr>
                    <td class="tds1" style="WIDTH: 5%; TEXT-ALIGN: center">
                        <aspxform:XGridLineNo id="XGridLineNo3" runat="server" XDataBind="DF_Partner_SAPBillInfo.LineNumber" BackColor="Transparent" CssClass="text" Width="20px" BorderStyle="None" TextAlign="Center">1</aspxform:XGridLineNo>
                    </td>
                    <td class="tds1">
                        <aspxform:XDropDownList id="XDropDownList1" runat="server" XDataBind="DF_Partner_SAPBillInfo.BankCountry" Width="100%" XDataSource='TableName:DF_DataSourceList;Filter:Type->"国家"' DisplayColumn="Name" ValueColumn="Value" DisableExpress="1"></aspxform:XDropDownList>
                    </td>
                    <td class="tds1">
                        <aspxform:XTextBox id="XTextBox6" runat="server" XDataBind="DF_Partner_SAPBillInfo.BankCode" ReadOnly="True" CssClass="text" Width="90px"></aspxform:XTextBox>
                        <aspxform:XCustomBrowserButton id="XCustomBrowserButton2" runat="server" XClass="Oimec.Dialogs.BankInfoButton" Width="40px" DataMap="BankCountry->DF_Partner_SAPBillInfo.BankCountry;BankName->DF_Partner_SAPBillInfo.BankName;BankCode->DF_Partner_SAPBillInfo.BankCode" Text="查询"></aspxform:XCustomBrowserButton>
                        <aspxform:XCustomBrowserButton id="XCustomBrowserButton3" runat="server" XClass="Oimec.Dialogs.BankInfoGYAddButton" Width="40px" Text="新建"></aspxform:XCustomBrowserButton>
                    </td>
                    <td class="tds1">
                        <aspxform:XTextBox id="XTextBox35" runat="server" XDataBind="DF_Partner_SAPBillInfo.BankName" ReadOnly="True" CssClass="text" Width="98%"></aspxform:XTextBox>
                    </td>
                    <td class="tds1">
                        <aspxform:XTextBox id="XTextBox28" runat="server" XDataBind="DF_Partner_SAPBillInfo.BankAccount" CssClass="text" Width="98%"></aspxform:XTextBox>
                    </td>
                     <td class="tds1">
                        <aspxform:XTextBox id="XTextBox8" runat="server" XDataBind="DF_Partner_SAPBillInfo.AccountOwner" CssClass="text" Width="98%" Express="javascript('GetAccountOwner',DF_Partner_SAPBillInfo.AccountOwner,DF_Partner_SAPCustomer.CustomerNameCH)"></aspxform:XTextBox>
                    </td>
                    <td class="tds1">
                        <aspxform:XTextBox id="XTextBox29" runat="server" XDataBind="DF_Partner_SAPBillInfo.BillingAddress" CssClass="text" Width="98%"></aspxform:XTextBox>
                    </td>
                    
                    <td class="tds1" style="BORDER-RIGHT: #93a1ae 1px solid">
                        <aspxform:XTextBox id="XTextBox38" runat="server" XDataBind="DF_Partner_SAPBillInfo.BillingTel" CssClass="text" Width="100%"></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="上传附件" valuetodisplaytext value width="123px" font-bold="True"></asp:Label><%--<aspxform:XLabel id="XLabel6" runat="server" text="若跨区申请创建，需要上传审批邮件或其他说明文件" ValueToDisplayText Value ForeColor="Red" Font-Size="9pt"></aspxform:XLabel>--%></td>
                </tr>
                <tr>
                    <td height="88" class="td1">
                        <aspxform:XAttachments id="XAttachments2" runat="server" XDataBind="DF_Partner_SAPCustomer.AttachFiles" width="100%" FileTypesDescription="All" FileTypes="*.doc;*.docx;*.xls;*.xlsx;*.pdf;*.JPG"></aspxform:XAttachments>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" class="table">
            <tbody>
                <tr>
                    <td class="title1">
                        <asp:Label id="XLabel27" runat="server" text="备注" valuetodisplaytext value></asp:Label></td>
                </tr>
                <tr>
                    <td class="tds1" style="BORDER-RIGHT: #93a1ae 1px solid; TEXT-ALIGN: center">
                        <aspxform:XTextBox id="XTextBox25" runat="server" Value ValueToDisplayText XDataBind="DF_Partner_SAPCustomer.Remarks" CssClass="text" Width="100%" Max="0" Min="0" HiddenInput="False" BorderWidth="1px" TextMode="MultiLine" Height="76px"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
    </form>
</body>
</html>
