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

    protected void Page_Load(object sender, EventArgs e)
    {
        //客户状态类型
        string state = Request.QueryString["state"];
        if(!string.IsNullOrEmpty(state))
        {
            this.XLabel50.Text = state;
        }
        string CusID = Request.QueryString["CustomerID"];
        if (CusID != null)
        {
            this.XTextBox16.Text = CusID;
        }
    
    }

</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;
        }

        agent.on('beforeSubmit', function () {
            var str1 = agent.Eles[document.getElementById("XTextBox8").getAttribute("xform_xele_index")].getValue();
            var str2 = agent.Eles[document.getElementById("XTextBox9").getAttribute("xform_xele_index")].getValue();
            var str3 = agent.Eles[document.getElementById("XTextBox10").getAttribute("xform_xele_index")].getValue();
            var str4 = agent.Eles[document.getElementById("XTextBox23").getAttribute("xform_xele_index")].getValue();
            var str5 = agent.Eles[document.getElementById("XTextBox24").getAttribute("xform_xele_index")].getValue();
            agent.Eles[document.getElementById("XTextBox15").getAttribute("xform_xele_index")].setValue(str3.toString() + str1 + str5 + str2 + str4);
        });

        Ext.onReady(function () {
            //XTextBox30
            //agent.Eles[document.getElementById("XTextBox30").getAttribute("xform_xele_index")].setValue(userToken.Account);
            XFormOnChange(agent.Eles[document.getElementById("XTextBox16").getAttribute("xform_xele_index")]);

            placeholder();
        });

        //placeholder 属性
        function placeholder() {
            //行业及形态其他
            var aDivCustomerShapeOther = document.getElementsByClassName("CustomerShapeOther");
            var aDivCustomerShapeOtherid = aDivCustomerShapeOther[0].getElementsByTagName('input')[0].id;
            var v = document.getElementById(aDivCustomerShapeOtherid).setAttribute("placeholder", "请填写具体的行业及形态");
        }

        function customerSAp() {

            var state = request("formstate");
            var cusName = agent.Eles[document.getElementById("XTextBox5").getAttribute("xform_xele_index")].getValue();
            var cusID = agent.Eles[document.getElementById("XTextBox3").getAttribute("xform_xele_index")].getValue();
            //alert(cusID);
            //if (cusName != "" && state=="New") {
            if (cusName != "") {
                YZSoft.Ajax.request({
                    url: YZSoft.$url('Oimec/ApiServices/MDAPIHandler.ashx'),
                    method: 'POST',
                    params: {
                        method: 'IsCustomerExist',
                        CustomerName: cusName,
                        CustomerID: cusID
                    },
                    success: function (action) {
                         agent.Eles[document.getElementById("XTextBox26").getAttribute("xform_xele_index")].setValue(action.result.Value);
                    },
                    failure: function (action) {
                    }
                });
            }
        }

        function request(paras) {
            var url = location.href;
            var paraString = url.substring(url.indexOf("?") + 1, url.length).split("&");
            var paraObj = {};
            for (i = 0; j = paraString[i]; i++) {
                paraObj[j.substring(0, j.indexOf("=")).toLowerCase()] = j.substring(j.indexOf("=") + 1, j.length);
            }
            var returnValue = paraObj[paras.toLowerCase()];
            if (typeof (returnValue) == "undefined")
            { return ""; }
            else
            { return returnValue; }
        }
</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: 120px">
                        <asp:Label id="XLabel2" runat="server" value valuetodisplaytext text="客户"></asp:Label></td>
                    <td class="formno">
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table align="center" class="table">
            <tbody>
                <tr>
                    <td align="left" colspan="3">
                        <asp:Label id="XLabel46" runat="server" value valuetodisplaytext text="标记 * 的为申请人必填项" font-bold="True" forecolor="Red"></asp:Label>&nbsp;&nbsp;</td>
                    <td align="right">
                    </td>
                </tr>
                <tr>
                    <td class="basiclblfirst" style="WIDTH: 10%">
                        <asp:Label id="XLabel13" runat="server" value valuetodisplaytext text="创建用户"></asp:Label></td>
                    <td class="basictextfirst" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox11" runat="server" ValueToDisplayText="TableName:V_Users;FilterColumn:Account;DisplayColumn:DisplayName" DataMap="Account->DF_Partner_ZK.CustomerOwnerID;DisplayName->DF_Partner_ZK.CustomerOwner" XDataBind="DF_Partner.CreateName" CssClass="text" Width="70%"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox13" runat="server" ValueToDisplayText XDataBind="varuser" Width="34px" Max="0" Min="0" Value Express="DF_Partner.CreateName" BorderColor="Gainsboro" BorderWidth="1px" HiddenInput="True"></aspxform:XTextBox>
                    </td>
                    <td class="basiclblfirst3" style="WIDTH: 10%">
                        <asp:Label id="XLabel14" runat="server" value valuetodisplaytext text="创建日期"></asp:Label></td>
                    <td class="basictextfirst3" style="WIDTH: 35%">
                        <aspxform:XDateTimePicker id="XDateTimePicker1" runat="server" XDataBind="DF_Partner.CreateDate" CssClass="text" Width="50%" DisplayOnly="True"></aspxform:XDateTimePicker>
                    </td>
                </tr>
                <tr>
                    <td class="basiclblfirst" style="WIDTH: 10%">
                        <asp:Label id="XLabel16" runat="server" value valuetodisplaytext text="拥有人"></asp:Label>
                        <aspxform:XTextBox id="XTextBox18" runat="server" ValueToDisplayText XDataBind="DF_Partner_ZK.CustomerOwnerID" Width="38px" Max="0" Min="0" Value BorderColor="Gainsboro" BorderWidth="1px" HiddenInput="True"></aspxform:XTextBox>
                    </td>
                    <td class="basictextfirst" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox17" runat="server" ValueToDisplayText XDataBind="DF_Partner_ZK.CustomerOwner" CssClass="text" Width="220px"></aspxform:XTextBox>
                        <aspxform:XDataBrowserButton id="XDataBrowserButton1" runat="server" DataMap="AttendanceKakaNO->DF_Partner_ZK.CustomerOwnerID;Name->DF_Partner_ZK.CustomerOwner" Width="55px" XDataSource="TableName:V_DF_HR_BasicInfo" DisplayColumns="Name:姓名,;AttendanceKakaNO:账号," Text="查询"></aspxform:XDataBrowserButton>
                    </td>
                    <td class="basiclblfirst3" style="WIDTH: 10%">
                    </td>
                    <td class="basictextfirst3" style="WIDTH: 35%">
                    </td>
                </tr>
            </tbody>
        </table>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator1" runat="server" Display="Dynamic" ErrorMessage="请输入客户的中文名称！" ControlToValidate="XTextBox5">请输入客户的中文名称！</aspxform:XRequiredFieldValidator>
        <aspxform:XCompareValidator id="XCompareValidator1" runat="server" Display="None" ErrorMessage="您添加的客户已存在，请联系客户管理员！" ControlToValidate="XTextBox26" ControlToCompare="XTextBox27">您添加的客户已存在，请联系客户管理员！</aspxform:XCompareValidator>
        <br />
        <table align="center" class="table">
            <tbody>
                <tr>
                    <td height="20" class="title1" colspan="4">
                        <asp:Label id="XLabel1" runat="server" value valuetodisplaytext text="公司基本信息"></asp:Label>
                        <aspxform:XTextBox id="XTextBox12" runat="server" ValueToDisplayText XDataBind="varformat" Width="28px" Max="0" Min="0" Value BorderColor="Gainsboro" BorderWidth="1px" HiddenInput="True"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox16" runat="server" ValueToDisplayText XDataBind="varCustomer" Width="28px" Max="0" Min="0" Value BorderColor="Gainsboro" BorderWidth="1px" HiddenInput="True"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox26" runat="server" ValueToDisplayText Max="0" Min="0" Express="javascript('customerSAp',DF_Partner.Partner)" BorderColor="Gainsboro" BorderWidth="1px" HiddenInput="False" width="30px" HiddenExpress="1"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox27" runat="server" BorderColor="#DCDCDC" BorderWidth="1" width="20px" HiddenExpress="1">0</aspxform:XTextBox>
                        <%--<aspxform:XTextBox id="XTextBox30" runat="server" ValueToDisplayText XDataBind="varLoginUser" Width="28px" Max="0" Min="0" Value BorderColor="Gainsboro" BorderWidth="1px" HiddenInput="false"></aspxform:XTextBox>--%></td>
                </tr>
                <tr>
                    <td height="28" class="basiclblfirst" style="WIDTH: 10%">
                        <asp:Label id="Label11" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel3" runat="server" value valuetodisplaytext text="客户中文名称"></asp:Label></td>
                    <td class="basictextfirst" style="WIDTH: 35%">
                        <aspxform:XTextBox tabIndex="1" id="XTextBox5" onblur="customerSAp();" runat="server" XDataBind="DF_Partner.Partner" CssClass="text" Width="70%" Express="varsuname"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox65" runat="server" XDataBind="varsuname" BorderColor="#DCDCDC" BorderWidth="1" HiddenInput="True"></aspxform:XTextBox>
                    </td>
                    <td class="basiclblfirst3" style="WIDTH: 10%">
                        <asp:Label id="XLabel4" runat="server" text="客户英文名称"></asp:Label></td>
                    <td class="basictextfirst3" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox1" runat="server" XDataBind="DF_Partner_ZK.CustomerNameEN" CssClass="text" Width="70%"></aspxform:XTextBox>
                    </td>
                </tr>
                <%--<tr>
                    <td class="basiclblfirst3" style="WIDTH: 10%">
                        <asp:Label id="Label7" runat="server" text="有外币销售业务"></asp:Label></td>
                    <td class="basictextfirst3" style="WIDTH: 35%">
                        <aspxform:XRadioButtonList id="XRadioButtonList4" runat="server" XDataBind="DF_Partner_ZK.IsForeignBusiness" RepeatDirection="Horizontal">
                            <asp:ListItem>是</asp:ListItem>
                            <asp:ListItem>否</asp:ListItem>
                        </aspxform:XRadioButtonList>
                    </td>
                    
                </tr>--%> 
                <tr>
                    <td colspan="4">
                        <asp:Label id="Label7" runat="server" text="说明：" font-bold="False" forecolor="Blue" font-size="14px"></asp:Label>
                        <br />
                        &nbsp;&nbsp;&nbsp;&nbsp;<asp:Label id="Label9" runat="server" text="1、若此客户涉及外币销售业务，请务必输入英文名称。" font-bold="False" forecolor="Blue" font-size="14px"></asp:Label> 
                        <br />
                        &nbsp;&nbsp;&nbsp;&nbsp;<asp:Label id="Label8" runat="server" text="2、若客户只有英文名称，请将英文名称同时写到客户中文名称、客户英文名称处。" font-bold="False" forecolor="Blue" font-size="14px"></asp:Label> 
                    </td>
                </tr>
                <tr>
                    <td height="28" class="basiclblfirst3">
                        <aspxform:XLabel id="XLabel95" runat="server" text="省份" ValueToDisplayText XDataBind="varProvince" Value BackColor="#d4e4fe"></aspxform:XLabel>
                    </td>
                    <td width="18%" class="basictextfirst3">
                        <aspxform:XDropDownList id="XDropDownList1" runat="server" XDataBind="DF_Partner.Province" CssClass="text" Width="50%" XDataSource="TableName:DF_DataSourceList;Filter:Type->varProvince;OrderBy:OrderID" PromptText="------请选择------" DisplayColumn="Name" ValueColumn="Value">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                    <td class="basiclblfirst3">
                        <asp:Label id="XLabel96" runat="server" value valuetodisplaytext text="城市"></asp:Label></td>
                    <td width="18%" class="basictextfirst3">
                        <aspxform:XTextBox id="XTextBox69" runat="server" XDataBind="DF_Partner.City" CssClass="text" Width="70%"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="28" class="basiclblfirst">
                        <asp:Label id="XLabel9" runat="server" value valuetodisplaytext text="免费电话号码"></asp:Label></td>
                    <td class="basictextfirst">
                        <aspxform:XTextBox id="XTextBox7" runat="server" XDataBind="DF_Partner_ZK.CompanyTel" CssClass="text" Width="70%"></aspxform:XTextBox>
                    </td>
                    <td class="basiclblfirst3">
                        <asp:Label id="XLabel27" runat="server" value valuetodisplaytext text="总机"></asp:Label></td>
                    <td class="basictextfirst3">
                        <aspxform:XTextBox id="XTextBox19" runat="server" XDataBind="DF_Partner_ZK.CustomerPhone" CssClass="text" Width="70%"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="basiclblfirst" style="HEIGHT: 28px">
                        <asp:Label id="XLabel29" runat="server" value valuetodisplaytext text="传真"></asp:Label></td>
                    <td class="basiclblfirst3">
                        <aspxform:XTextBox id="XTextBox20" runat="server" XDataBind="DF_Partner_ZK.CustomerFax" CssClass="text" Width="70%"></aspxform:XTextBox>
                    </td>
                    <td class="basiclblfirst3">
                        <asp:Label id="XLabel31" runat="server" value valuetodisplaytext text="网址"></asp:Label></td>
                    <td class="basictextfirst3">
                        <aspxform:XTextBox id="XTextBox21" runat="server" XDataBind="DF_Partner_ZK.CustomerUrl" CssClass="text" Width="70%"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="basiclblfirst" style="HEIGHT: 58px">
                        <asp:Label id="XLabel38" runat="server" value valuetodisplaytext text="简介"></asp:Label></td>
                    <td class="basiclblfirst3" colspan="3">
                        <aspxform:XTextBox id="XTextBox25" runat="server" XDataBind="DF_Partner_ZK.CustomerDes" CssClass="text" Width="90%" Rows="3" TextMode="MultiLine"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table align="center" class="table">
            <tbody>
                <tr>
                    <td height="19" class="title1" colspan="4">
                        <asp:Label id="XLabel49" runat="server" value valuetodisplaytext text="客户属性"></asp:Label>
                        <aspxform:XLabel id="XLabel20" runat="server" text="kehuxinxilaiyuan" ValueToDisplayText XDataBind="varxinxi" Value HiddenExpress="1"></aspxform:XLabel>
                        <aspxform:XLabel id="XLabel23" runat="server" text="xingtai" ValueToDisplayText XDataBind="varxingtai" Value HiddenExpress="1"></aspxform:XLabel>
                        <aspxform:XLabel id="XLabel22" runat="server" text="jigou" ValueToDisplayText XDataBind="varjigou" Value HiddenExpress="1" Font-Bold="True"></aspxform:XLabel>
                        <aspxform:XLabel id="XLabel24" runat="server" text="yewuguanxi" ValueToDisplayText XDataBind="varyewuguanxi" Value HiddenExpress="1"></aspxform:XLabel>
                        <aspxform:XLabel id="XLabel51" runat="server" text="suoyouzhi" ValueToDisplayText XDataBind="varsuoyouzhi" Value HiddenExpress="1"></aspxform:XLabel>
                        <aspxform:XTextBox id="XTextBox8" runat="server" ValueToDisplayText XDataBind="varStr1" Width="17px" Max="0" Min="0" Value BorderColor="Gainsboro" BorderWidth="1px" HiddenInput="True"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox9" runat="server" ValueToDisplayText XDataBind="varStr2" Width="17px" Max="0" Min="0" Value BorderColor="Gainsboro" BorderWidth="1px" HiddenInput="True"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox10" runat="server" ValueToDisplayText XDataBind="varStr3" Width="17px" Max="0" Min="0" Value BorderColor="Gainsboro" BorderWidth="1px" HiddenInput="True"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox23" runat="server" ValueToDisplayText XDataBind="varStr4" Width="21px" Max="0" Min="0" Value Express="if(DF_Partner_ZK.CusProperty=='是','1','2')" BorderColor="Gainsboro" BorderWidth="1px" HiddenInput="True"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox24" runat="server" ValueToDisplayText XDataBind="varStr5" Width="20px" Max="0" Min="0" Value BorderColor="Gainsboro" BorderWidth="1px" HiddenInput="True"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox15" runat="server" ValueToDisplayText XDataBind="DF_MasterData_Customer.PropertyStr" CssClass="text" Width="10" HiddenExpress="1"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="23" class="basiclblfirst" style="WIDTH: 11%">
                        <asp:Label id="XLabel17" runat="server" value valuetodisplaytext text="集团(品牌)"></asp:Label></td>
                    <td class="basictextfirst3" style="WIDTH: 39%">
                        <aspxform:XTextBox id="XTextBox2" runat="server" XDataBind="DF_Partner_ZK.Brand" CssClass="text" Width="70%"></aspxform:XTextBox>
                    </td>
                    <td class="basiclblfirst3" style="WIDTH: 11%">
                        <asp:Label id="XLabel65" runat="server" value valuetodisplaytext text="机构"></asp:Label></td>
                    <td class="basiclblfirst3">
                        <aspxform:XDropDownList id="XDropDownList12" runat="server" XDataBind="DF_Partner_ZK.Mechanism" CssClass="text" Width="50%" XDataSource="TableName:DF_DataSourceList;Filter:Type->varjigou" PromptText="------请选择------" DisplayColumn="Name" ValueColumn="ItemID">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                </tr>
                <tr>
                    <td height="23" class="basiclblfirst">
                        <asp:Label id="Label10" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel21" runat="server" value valuetodisplaytext text="行业及形态"></asp:Label> 
                        <aspxform:XLabel id="XLabel7" runat="server" text="Label" XDataBind="svalue" HiddenExpress="1"></aspxform:XLabel>
                    </td>
                    <td class="basictextfirst">
                        <aspxform:XDropDownList id="XDropDownList7" runat="server" DataMap="Value->svalue" XDataBind="DF_Partner_ZK.CustomerShape" CssClass="text" Width="50%" XDataSource='TableName:DF_DataSourceList;Filter:Type->"行业及形态",Value1->0' PromptText="-------请选择----------" DisplayColumn="Name" ValueColumn="ItemID">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                        <aspxform:XTextBox id="XTextBox32" runat="server" XDataBind="DF_Partner_ZK.CustomerShapeOther" CssClass="CustomerShapeOther" Max="0" Min="0" BorderColor="Gainsboro" BorderWidth="1px" HiddenInput="False" width="124px" HiddenExpress='svalue!="99"'></aspxform:XTextBox>
                    </td>
                    <td class="basiclblfirst">
                        <asp:Label id="XLabel19" runat="server" value valuetodisplaytext text="业务关系"></asp:Label></td>
                    <td class="basictextfirst">
                        <aspxform:XDropDownList id="XDropDownList5" runat="server" XDataBind="DF_Partner_ZK.BusinessRelation" CssClass="text" Width="50%" XDataSource="TableName:DF_DataSourceList;Filter:Type->varyewuguanxi" PromptText="------请选择------" DisplayColumn="Name" ValueColumn="ItemID">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="basiclblfirst" style="HEIGHT: 23px">
                        <asp:Label id="XLabel25" runat="server" value valuetodisplaytext text="军工属性"></asp:Label></td>
                    <td class="basictextfirst">
                        <aspxform:XRadioButtonList id="XRadioButtonList2" runat="server" XDataBind="DF_Partner_ZK.CusProperty" RepeatDirection="Horizontal">
                            <asp:ListItem>是</asp:ListItem>
                            <asp:ListItem>否</asp:ListItem>
                        </aspxform:XRadioButtonList>
                    </td>
                    <td class="basiclblfirst">
                        <asp:Label id="XLabel26" runat="server" value valuetodisplaytext text="所有制"></asp:Label></td>
                    <td class="basictextfirst">
                        <aspxform:XDropDownList id="XDropDownList2" runat="server" XDataBind="DF_Partner_ZK.Ownership" CssClass="text" Width="50%" XDataSource="TableName:DF_DataSourceList;Filter:Type->varsuoyouzhi" PromptText="------请选择------" DisplayColumn="Name" ValueColumn="ItemID">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table align="center" class="table">
            <tbody>
                <tr>
                    <td class="title1" colspan="4">
                        <asp:Label id="XLabel64" runat="server" value valuetodisplaytext text="客户信息"></asp:Label></td>
                </tr>
                <tr>
                    <td height="21" class="basiclblfirst" style="WIDTH: 11%">
                        <asp:Label id="Label1" runat="server" value valuetodisplaytext text="统一社会信用码"></asp:Label></td>
                    <td class="basictextfirst3" style="WIDTH: 39%">
                        <aspxform:XTextBox id="XTextBox4" runat="server" XDataBind="DF_Partner.SocialCreditCode" CssClass="text1" Width="70%"></aspxform:XTextBox>
                    </td>
                    <td height="21" class="basiclblfirst" style="WIDTH: 11%">
                    </td>
                    <td class="basictextfirst3" style="WIDTH: 39%">
                    </td>
                </tr>
                <tr>
                    <td height="21" class="basiclblfirst" style="WIDTH: 11%">
                        <asp:Label id="XLabel52" runat="server" value valuetodisplaytext text="客户信息来源"></asp:Label></td>
                    <td class="basictextfirst3" style="WIDTH: 39%">
                        <aspxform:XDropDownList id="XDropDownList3" runat="server" XDataBind="DF_Partner_ZK.CusInfoSource" CssClass="text" Width="50%" XDataSource="TableName:DF_DataSourceList;Filter:Type->varxinxi" PromptText="------请选择------" DisplayColumn="Name" ValueColumn="ItemID">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                    <td class="basiclblfirst" style="WIDTH: 11%">
                        <asp:Label id="XLabel62" runat="server" value valuetodisplaytext text="客户状态"></asp:Label></td>
                    <td class="basictextfirst3">
                        <aspxform:XDropDownList id="XDropDownList11" runat="server" XDataBind="DF_Partner_ZK.CustomerStatus" CssClass="text1" Width="50%" XDataSource="TableName:V_DF_DataSource_CusStatus;Filter:LdValue->vars" DisplayColumn="Name" ValueColumn="Value">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                        <aspxform:XLabel id="XLabel50" runat="server" text="3" XDataBind="vars" HiddenExpress="1"></aspxform:XLabel>
                    </td>
                </tr>
                <tr>
                    <td class="basiclblfirst" style="WIDTH: 11%">
                        <asp:Label id="XLabel6" runat="server" value="" valuetodisplaytext="" text="合作伙伴ID"></asp:Label></td>
                    <td class="basiclblfirst3">
                        <aspxform:XTextBox id="XTextBox3" runat="server" XDataBind="DF_Partner_ZK.PartnerID" CssClass="text1" Width="70%" DisableExpress="1"></aspxform:XTextBox>
                    </td>
                    <td class="basiclblfirst3" style="WIDTH: 11%">
                        <asp:Label id="XLabel60" runat="server" value valuetodisplaytext text="合作伙伴SAPID"></asp:Label></td>
                    <td class="basictextfirst3">
                        <aspxform:XTextBox id="XTextBox14" runat="server" XDataBind="DF_Partner.PartnerSAPID" CssClass="text1" Width="70%"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr hidden="hidden">
                    <td class="basiclblfirst" style="WIDTH: 11%">
                        <asp:Label id="XLabel63" runat="server" value valuetodisplaytext text="是否红旗客户"></asp:Label></td>
                    <td class="basictextfirst3">
                        <aspxform:XRadioButtonList id="XRadioButtonList3" runat="server" XDataBind="DF_Partner_ZK.IsFlag" RepeatDirection="Horizontal">
                            <asp:ListItem Value="是">是</asp:ListItem>
                            <asp:ListItem Value="否">否</asp:ListItem>
                        </aspxform:XRadioButtonList>
                    </td>
                    <td class="basiclblfirst3" style="WIDTH: 11%">
                        <asp:Label id="Label6" runat="server" value valuetodisplaytext text="红旗客户厂商"></asp:Label></td>
                    <td class="basictextfirst3">
                        <aspxform:XTextBox id="XTextBox31" runat="server" XDataBind="DF_Partner_ZK.ManufactureFlag" CssClass="text1" Width="100%"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="basiclblfirst" style="WIDTH: 11%">
                        <asp:Label id="Label2" runat="server" value valuetodisplaytext text="是否关联方"></asp:Label></td>
                    <td class="basictextfirst3">
                        <aspxform:XRadioButtonList id="XRadioButtonList1" runat="server" XDataBind="DF_Partner_ZK.IsRelatedCus" RepeatDirection="Horizontal">
                            <asp:ListItem Value="是">是</asp:ListItem>
                            <asp:ListItem Value="否">否</asp:ListItem>
                        </aspxform:XRadioButtonList>
                    </td>
                    <td class="basiclblfirst" style="WIDTH: 11%">
                        <asp:Label id="XLabel40" runat="server" value valuetodisplaytext text="客户等级"></asp:Label></td>
                    <td class="basictextfirst3">
                        <aspxform:XDropDownList id="XDropDownList6" runat="server" XDataBind="DF_Partner_ZK.CustomerLevel" CssClass="text1" Width="50%" Express="if(DF_Partner_ZK.BusinessRelation=='286','C',if(DF_Partner_ZK.BusinessRelation=='287','Q',DF_Partner_ZK.CustomerLevel))" XDataSource="TableName:V_DF_DataSourceList_kehudengji;OrderBy:OrderID" DisplayColumn="Name" ValueColumn="Name" DisableExpress="Global.StepName=='业务员发起主数据申请'||DF_Partner_ZK.PartnerID==''">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                        <aspxform:XTextBox id="XTextBox6" runat="server" ValueToDisplayText XDataBind="varCusSapLevel" Width="9px" Max="0" Min="0" Value BorderColor="Gainsboro" BorderWidth="1px" HiddenInput="False" HiddenExpress="1"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" class="table" menudock="Left" dynamicarea="2,1" emptygrid="KeepEmpty">
            <tbody>
                <tr>
                    <td height="15" class="title1" colspan="8">
                        <asp:Label id="XLabel28" runat="server" text="开票信息"></asp:Label>&nbsp;<aspxform:XAddBlockButton id="XAddBlockButton1" runat="server" Text="添加行项目" TableName="DF_Partner_CusBillInfo"></aspxform:XAddBlockButton>
                    </td>
                </tr>
                <tr>
                    <td width="37" class="tds" style="TEXT-ALIGN: center">
                        <asp:Label id="XLabel5" runat="server" text="序号"></asp:Label></td>
                    <td width="100" class="tds">
                        <asp:Label id="Label4" runat="server" text="银行国家"></asp:Label></td>
                    <td class="tds" style="WIDTH: 150px; TEXT-ALIGN: center">
                        <asp:Label id="Label3" runat="server" text="银行代码"></asp:Label></td>
                    <td class="tds" style="WIDTH: 200px; TEXT-ALIGN: center">
                        <asp:Label id="XLabel36" runat="server" text="银行名称"></asp:Label></td>
                    <td class="tds" style="WIDTH: 180px; TEXT-ALIGN: center">
                        <asp:Label id="XLabel34" runat="server" text="银行账号"></asp:Label></td>
                    <td class="tds" style="WIDTH: 150px; TEXT-ALIGN: center">
                        <asp:Label id="Label5" runat="server" text="账户持有人"></asp:Label></td>
                    <td class="tds" style="WIDTH: 180px; TEXT-ALIGN: center">
                        <asp:Label id="XLabel35" runat="server" text="开票地址"></asp:Label></td>
                    <td class="tds" style="BORDER-RIGHT: #93a1ae 1px solid; WIDTH: 83px; TEXT-ALIGN: center">
                        <asp:Label id="XLabel37" runat="server" text="开票电话"></asp:Label></td>
                </tr>
                <tr>
                    <td class="tds1" style="HEIGHT: 28px; TEXT-ALIGN: center">
                        <aspxform:XGridLineNo id="XGridLineNo3" runat="server" XDataBind="DF_Partner_CusBillInfo.LineNumber" CssClass="text" Width="20px" BorderColor="Transparent" BackColor="Transparent" BorderStyle="None" TextAlign="Center">1</aspxform:XGridLineNo>
                    </td>
                    <td class="tds1">
                        <aspxform:XDropDownList id="XDropDownList4" runat="server" XDataBind="DF_Partner_CusBillInfo.BankCountry" Width="100%" XDataSource='TableName:DF_DataSourceList;Filter:Type->"国家"' PromptText="----请选择----" DisplayColumn="Name" ValueColumn="Value" DisableExpress="1"></aspxform:XDropDownList>
                    </td>
                    <td class="tds1">
                        <aspxform:XTextBox id="XTextBox22" runat="server" XDataBind="DF_Partner_CusBillInfo.BankCode" CssClass="text" Width="60px" DisableExpress="1"></aspxform:XTextBox>
                        <aspxform:XCustomBrowserButton id="XCustomBrowserButton2" runat="server" DataMap="BankCountry->DF_Partner_CusBillInfo.BankCountry;BankName->DF_Partner_CusBillInfo.BankName;BankCode->DF_Partner_CusBillInfo.BankCode" Width="40px" XClass="Oimec.Dialogs.BankInfoButton" Text="查询"></aspxform:XCustomBrowserButton>
                        <aspxform:XCustomBrowserButton id="XCustomBrowserButton3" runat="server" Width="40px" XClass="Oimec.Dialogs.BankInfoGYAddButton" Text="新建"></aspxform:XCustomBrowserButton>
                    </td>
                    <td class="tds1">
                        <aspxform:XTextBox id="XTextBox35" runat="server" XDataBind="DF_Partner_CusBillInfo.BankName" CssClass="text" Width="98%" DisableExpress="1"></aspxform:XTextBox>
                    </td>
                    <td class="tds1">
                        <aspxform:XTextBox id="XTextBox28" runat="server" XDataBind="DF_Partner_CusBillInfo.BankAccount" CssClass="text" Width="98%"></aspxform:XTextBox>
                    </td>
                    <td class="tds1">
                        <aspxform:XTextBox id="XTextBox30" runat="server" XDataBind="DF_Partner_CusBillInfo.AccountOwner" CssClass="text" Width="98%" Express="javascript('GetAccountOwner',DF_Partner_CusBillInfo.AccountOwner,DF_Partner.Partner)"></aspxform:XTextBox>
                    </td>
                    <td class="tds1">
                        <aspxform:XTextBox id="XTextBox29" runat="server" XDataBind="DF_Partner_CusBillInfo.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_CusBillInfo.BillingTel" CssClass="text" Width="100%"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator2" runat="server" ErrorMessage="请输入客户中文名称" ControlToValidate="XTextBox5" ForeColor="Red" ValidationGroup="submit"></aspxform:XRequiredFieldValidator>
        &nbsp;<%--<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator9" runat="server" ErrorMessage="请输入客户英文名称" ControlToValidate="XTextBox1" DisableExpress="DF_Partner_ZK.IsForeignBusiness!='是'" ForeColor="Red" ValidationGroup="submit"></aspxform:XRequiredFieldValidator>--%> &nbsp; 
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator3" runat="server" ErrorMessage="请选择客户机构" ControlToValidate="XDropDownList12" ForeColor="Red" ValidationGroup="submit"></aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator4" runat="server" ErrorMessage="请选择客户行业及形态" ControlToValidate="XDropDownList7" ForeColor="Red" ValidationGroup="submit"></aspxform:XRequiredFieldValidator>
        &nbsp;&nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator9" runat="server" ErrorMessage="请填写具体的行业及形态" ControlToValidate="XDropDownList7" DisableExpress='svalue!="99"' ForeColor="Red" ValidationGroup="submit"></aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator5" runat="server" ErrorMessage="请选择业务关系" ControlToValidate="XDropDownList5" ForeColor="Red" ValidationGroup="submit"></aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator6" runat="server" ErrorMessage="请选择军工属性" ControlToValidate="XRadioButtonList2" ForeColor="Red" ValidationGroup="submit"></aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator7" runat="server" ErrorMessage="请选择所有制" ControlToValidate="XDropDownList2" ForeColor="Red" ValidationGroup="submit"></aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator8" runat="server" ErrorMessage="请输入合作伙伴SAPID" ControlToValidate="XTextBox14" ForeColor="Red" ValidationGroup="submit"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator10" runat="server" ErrorMessage="请选择客户行业及形态" ControlToValidate="XDropDownList7" ForeColor="Red"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator11" runat="server" ErrorMessage="请填写具体的行业及形态" ControlToValidate="XTextBox32" DisableExpress='svalue!="99"' ForeColor="Red"></aspxform:XRequiredFieldValidator>
    </form>
</body>
</html>
