<%@ 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["formstate"];
        this.XTextBox8.Text = state;

    }

</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: 1px;
        }

            TD.NoPadding {
                PADDING-RIGHT: 0px;
                PADDING-LEFT: 0px;
                PADDING-BOTTOM: 0px;
                PADDING-TOP: 0px;
            }
        /*INPUT {height: 15px}*/
        INPUT.UL {
            BORDER-RIGHT: medium none;
            BORDER-TOP: medium none;
            BORDER-LEFT: medium none;
            BORDER-BOTTOM: #33ff33 1px solid;
        }

        TEXTAREA {
            FONT-SIZE: 12px;
        }

        input {
            vertical-align: middle; /*margin-right:-3px*/
        }
    </style>
    <script src="../../../../../Oimec/Script/jquery-3.2.1.js"></script>
    <script src="../../../../../Oimec/Script/jquery-3.2.1.min.js"></script>
    <script type="text/javascript">

        //打印询证函
        function print() {

            var CompanyCode = getXValue("CompanyCode");
            var companyName;
            if (CompanyCode == "1000") { companyName = "北京东方中科集成科技股份有限公司"; }
            else if (CompanyCode == "1010") { companyName = "北京东方中科集成科技股份有限公司上海分公司"; }
            else if (CompanyCode == "1020") { companyName = "北京东方中科集成科技股份有限公司深圳分公司"; }
            else if (CompanyCode == "2000") { companyName = "上海颐合贸易有限公司"; }
            else if (CompanyCode == "2100") { companyName = "苏州博德仪器有限公司"; }

            var div = document.getElementById("dropYear");
            var id = div.getElementsByTagName('select')[0].id;
            var obj = document.getElementById(id);
            var index = obj.selectedIndex; // 选中索引
            var value = obj.options[index].value; // 选中值

            var AuditPeriod = $("input[name='AuditPeriod']:checked").val();

            var Type_0 = document.getElementById("Type_0");
            var Type_1 = document.getElementById("Type_1");
            var Type
            if (Type_0.checked == true && Type_1.checked == true) {
                Type = "03";
            }
            if (Type_0.checked == true && Type_1.checked == false) {
                Type = "01";
            }
            if (Type_0.checked == false && Type_1.checked == true) {
                Type = "02";
            }
            //Type = "02";
            var url = YZSoft.$url('Oimec/ApiServices/EMSAPIHandler.ashx');
            YZSoft.src.ux.File.download(url, {
                method: 'DownloadConfirmation',
                customerCompanyName: getXValue("CustomerName"),
                companyName: companyName,
                CustomerID: getXValue("CustomerID"),
                CompanyCode: CompanyCode,
                Year: value,
                AuditPeriod: AuditPeriod,
                Type: Type,
                taskid: getXValue("XTextBox37"),
            });
        }

        Ext.onReady(function () {
            //年份赋值
            //AddYearValue();
        });

        ////年份控件赋值
        //function AddYearValue() {
        //    var div = document.getElementById("dropYear");
        //    var id = div.getElementsByTagName('select')[0].id;
        //    var objSelect = document.getElementById(id);

        //    var array = YearArray(),
        //         text,
        //         value;
        //    for (var i = 0; i < array.length; i++) {
        //        var val = array[i];
        //        text = value = val;
        //        objSelect.options.add(new Option(text, value)); //添加年份数据
        //        var StepName = getXValue("StepName");
        //        if (StepName == "内审发起客户询证函处理申请") {
        //            if (val == new Date().getFullYear())
        //            { objSelect.options[i].selected = true; }
        //        }
        //    }

        //}

        ////年份数组
        //function YearArray() {

        //    var myDate = new Date();
        //    var tYear = myDate.getFullYear(); //当前日期年

        //    var vArray = [];
        //    vArray.push(tYear-1);
        //    vArray.push(tYear);
        //    vArray.push(tYear + 1);
        //    vArray.push(tYear + 2);

        //    return vArray;
        //}

        agent.on('beforeSubmit', function (actname, act) {
            var StepName = getXValue("StepName");
            if (act == "提交" && StepName == "内审发起客户询证函处理申请") {
                GetConfirmationInfo();
            }

            if (act == "已确认" && (StepName == "业务员确认客户地址1" || StepName == "业务员确认客户地址")) {

                var contacts, phone, address, mail;
                var tableObj = document.getElementById('tabcontact');
                for (var i = 2; i < tableObj.rows.length; i++) {    //遍历Table的所有Row //遍历Row中的每一列
                    if (i == 2) {
                        contacts = agent.Eles[tableObj.rows[i].cells[2].children[0].getAttribute("xform_xele_index")].getValue();
                        phone = agent.Eles[tableObj.rows[i].cells[3].children[0].getAttribute("xform_xele_index")].getValue();
                        address = agent.Eles[tableObj.rows[i].cells[4].children[0].getAttribute("xform_xele_index")].getValue();
                        mail = agent.Eles[tableObj.rows[i].cells[5].children[0].getAttribute("xform_xele_index")].getValue();
                        var PrincipalSalesmanID = agent.Eles[tableObj.rows[i].cells[1].children[1].getAttribute("xform_xele_index")].getValue();
                        var PrincipalSalesman = agent.Eles[tableObj.rows[i].cells[1].children[0].getAttribute("xform_xele_index")].getValue();
                        setXValue("Contacts", contacts);
                        setXValue("Phone", phone);
                        setXValue("Address", address);
                        setXValue("Mail", mail);
                        setXValue("PrincipalSalesmanID", PrincipalSalesmanID);
                        setXValue("PrincipalSalesman", PrincipalSalesman);

                    }
                }
            }

        });

        //获取询证函信息
        function GetConfirmationInfo() {

            var CompanyCode = getXValue("CompanyCode");

            var div = document.getElementById("dropYear");
            var id = div.getElementsByTagName('select')[0].id;
            var obj = document.getElementById(id);
            var index = obj.selectedIndex; // 选中索引
            var value = obj.options[index].value; // 选中值

            //var AuditPeriod = $("input[name='AuditPeriod']:select").val();
            //审计期间
            var AuditPeriod_id = document.getElementById("AuditPeriod").getElementsByTagName('select')[0].id;
            var AuditPeriod_obj = document.getElementById(AuditPeriod_id);
            var AuditPeriod = AuditPeriod_obj.options[AuditPeriod_obj.selectedIndex].value;

            var AuditPeriodS;
            var AuditPeriodE;
            if (AuditPeriod == '03') {
                AuditPeriodS = getXValue("AuditPeriodS");
                AuditPeriodE = getXValue("AuditPeriodE");
                //if (value != AuditPeriodS || value != AuditPeriodE) {
                //    alert("审计期间与年份不相符！");
                //    return false;
                //}
                //if (AuditPeriodS != AuditPeriodE) {
                //    alert("审计期间！");
                //    return false;
                //}
            }

            //alert(AuditPeriodS.substring(0, 4));
            //alert(AuditPeriodS);

            //return false;
            var Type_0 = document.getElementById("Type_0");
            var Type_1 = document.getElementById("Type_1");
            var Type
            if (Type_0.checked == true && Type_1.checked == true) {
                Type = "01,02";
            }
            if (Type_0.checked == true && Type_1.checked == false) {
                Type = "01";
            }
            if (Type_0.checked == false && Type_1.checked == true) {
                Type = "02";
            }

            //根据客户编号获取客户询证函信息
            YZSoft.Ajax.request({
                async: false,
                url: YZSoft.$url('Oimec/ApiServices/EMSAPIHandler.ashx'),
                method: 'POST',
                params: {
                    method: "GetConfirmationInfo",
                    CustomerID: getXValue("CustomerID"),
                    CompanyCode: CompanyCode,
                    Year: value,
                    AuditPeriod: AuditPeriod,
                    Type: Type,
                    AuditPeriodS: AuditPeriodS,
                    AuditPeriodE: AuditPeriodE
                },
                success: function (action) {
                    var res = action.result;

                    if (res.Code == "0") {

                        setXValue("SalesSAPID", res.account)  //业务员SAPID字符串
                        setXValue("IsXSE", res.IsXSE)
                        setXValue("IsYingS", res.IsYingS)
                        //获取数据
                        //Ext.MessageBox.alert("提示", resMsg);
                        //return false;
                    }
                    else { Ext.MessageBox.alert("提示", res.Message); return false; }

                }
            });

        }

        //联系人信息是否隐藏
        function contactHidden(Account, Account1, StepName) {

            if (StepName == "业务员确认客户地址" || StepName == "业务员确认客户地址1") {

                if (Account == userToken.Account || Account1 == userToken.Account) {
                    return false;
                }
                else
                    return true;
            }
            else if (StepName == "信控岗确认客户地址") {
                return false;
            }

            return true;
        }

        //客户联系人必填失效表达式
        function contactCheck(Account, Account1, StepName) {
            if (Account == userToken.Account || Account1 == userToken.Account) return false;
            else
                return true;
        }



        function getXValue(id) {
            return agent.Eles[document.getElementById(id).getAttribute("xform_xele_index")].getValue();
        }

        function setXValue(id, value) {
            return agent.Eles[document.getElementById(id).getAttribute("xform_xele_index")].setValue(value);
        }


    </script>

</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 width="1000" class="biaoti">
                        <asp:Label ID="Label1" runat="server" Text="客户询证函申请单"></asp:Label></td>
                    <td width="400" class="formno">
                        <asp:Label ID="Label2" runat="server" Text="表单号："></asp:Label>
                        <aspxform:XLabel ID="XLabel1" runat="server" Text="--系统自动生成--" BackColor="#8AB3DF" ValueToDisplayText Value XDataBind="DF_AUD_Confirmation_Info.FormNo"></aspxform:XLabel>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td height="20" colspan="3">
                        <asp:Label ID="Label45" runat="server" Text="标记为 * 的为申请人必填项" ForeColor="Red" Font-Bold="True"></asp:Label>&nbsp;<asp:Label ID="Label24" runat="server" Text="标记为 * 的为业务员必填项" ForeColor="Blue" Font-Bold="True"></asp:Label>&nbsp;<asp:Label ID="Label33" runat="server" Text="标记为 * 的为信控岗必填项" ForeColor="Black" Font-Bold="True"></asp:Label>
                        <aspxform:XTextBox ID="XTextBox8" runat="server" XDataBind="varState" Width="50px" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XTextBox>
                    </td>
                    <td width="459" align="right">
                        <%--<aspxform:XButton id="XButton1" runat="server" Text="打印询证函" OnClientClick="print();"></aspxform:XButton>--%><%--HiddenExpress='Global.StepName!="东方中科内审岗打印询证函并盖公章" &amp;&amp; Global.StepName!="上海颐合内审岗打印询证函并盖公章" &amp;&amp; Global.StepName!="苏州博德内审岗打印询证函并盖公章"'--%></td>
                </tr>
                <tr>
                    <td height="22" class="title1" colspan="4">
                        <asp:Label ID="Label3" runat="server" Text="基本信息"></asp:Label>
                        <aspxform:XTextBox ID="XTextBox37" runat="server" ValueToDisplayText XDataBind="DF_AUD_Confirmation_Info.TaskID" Width="33px" HiddenInput="True" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0"></aspxform:XTextBox>
                        &nbsp;<aspxform:XTextBox ID="StepName" runat="server" ValueToDisplayText XDataBind="Global.StepName" Width="33px" HiddenInput="True" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0"></aspxform:XTextBox>
                        &nbsp;
                        <aspxform:XTextBox ID="SalesSAPID" runat="server" ValueToDisplayText XDataBind="DF_AUD_Confirmation_Info.SalesSAPID" Width="33px" HiddenInput="True" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0"></aspxform:XTextBox>
                        &nbsp;<aspxform:XTextBox ID="IsXSE" runat="server" ValueToDisplayText XDataBind="DF_AUD_Confirmation_Info.IsXSE" Width="33px" HiddenInput="True" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0"></aspxform:XTextBox>
                        &nbsp;<aspxform:XTextBox ID="IsYingS" runat="server" ValueToDisplayText XDataBind="DF_AUD_Confirmation_Info.IsYingS" Width="33px" HiddenInput="True" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0"></aspxform:XTextBox>
                        <aspxform:XTextBox ID="XTextBox7" runat="server" ValueToDisplayText XDataBind="DF_AUD_Confirmation_Info.handleracc" Width="110px" HiddenInput="True" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td width="129" height="21" class="tsbottomlabel">
                        <asp:Label ID="Label4" runat="server" Text="申请人"></asp:Label>
                        <aspxform:XTextBox ID="txtAppAccount" runat="server" ValueToDisplayText XDataBind="DF_AUD_Confirmation_Info.AppAccount" Width="20px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1"></aspxform:XTextBox>
                    </td>
                    <td width="459" class="tsbottomtext">
                        <aspxform:XTextBox ID="txtAppName" runat="server" BackColor="#E6F1F8" ValueToDisplayText XDataBind="DF_AUD_Confirmation_Info.AppName" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td width="129" class="tsbottomlabel">
                        <asp:Label ID="Label5" runat="server" Text="创建日期"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XDateTimePicker ID="dtCreateDate" runat="server" BackColor="#E6F1F8" XDataBind="DF_AUD_Confirmation_Info.CreateDate" Width="50%" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" DisplayOnly="True"></aspxform:XDateTimePicker>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td class="tsbottomlabel" style="width: 10%">
                        <asp:Label ID="Label9" runat="server" Text="*" ForeColor="Red"></asp:Label>&nbsp;<asp:Label ID="Label27" runat="server" Text="年份"></asp:Label></td>
                    <td class="tsbottomtext" style="width: 35%">
                        <aspxform:XDropDownList ID="dropYear" runat="server" XDataBind="DF_AUD_Confirmation_Info.Year" Width="120px" DisableExpress='Global.StepName!="内审发起客户询证函处理申请"'>
                            <asp:ListItem>2019</asp:ListItem>
                            <asp:ListItem Selected="True">2020</asp:ListItem>
                            <asp:ListItem>2021</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                    <td class="tsbottomlabel" style="width: 10%">
                        <asp:Label ID="Label7" runat="server" Text="*" ForeColor="Red"></asp:Label>&nbsp;<asp:Label ID="Label25" runat="server" Text="审计期间"></asp:Label></td>
                    <td class="tsbottomtext" style="width: 35%">
                        <aspxform:XDropDownList ID="AuditPeriod" runat="server" XDataBind="DF_AUD_Confirmation_Info.AuditPeriod" DisableExpress='Global.StepName!="内审发起客户询证函处理申请"' PromptText="--请选择--">
                            <asp:ListItem Value="02">年审</asp:ListItem>
                            <asp:ListItem Value="01">半年审</asp:ListItem>
                            <asp:ListItem Value="03">期间审</asp:ListItem>
                        </aspxform:XDropDownList>
                        <aspxform:XDateTimePicker ID="AuditPeriodS" runat="server" XDataBind="DF_AUD_Confirmation_Info.AuditPeriodS" DisableExpress='Global.StepName!="内审发起客户询证函处理申请"' BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="DF_AUD_Confirmation_Info.AuditPeriod!='03'"></aspxform:XDateTimePicker>
                        <aspxform:XLabel ID="XLabel4" runat="server" Text="至" HiddenExpress="DF_AUD_Confirmation_Info.AuditPeriod!='03'" BackColor="#d4e4fe"></aspxform:XLabel>
                        <aspxform:XDateTimePicker ID="AuditPeriodE" runat="server" XDataBind="DF_AUD_Confirmation_Info.AuditPeriodE" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="DF_AUD_Confirmation_Info.AuditPeriod!='03'" DisableExpress='Global.StepName!="内审发起客户询证函处理申请"'></aspxform:XDateTimePicker>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="width: 10%">
                        <asp:Label ID="Label8" runat="server" Text="*" ForeColor="Red"></asp:Label>&nbsp;<asp:Label ID="Label30" runat="server" Text="公司"></asp:Label></td>
                    <td class="tsbottomtext" style="width: 35%">
                        <aspxform:XDropDownList ID="CompanyCode" runat="server" XDataBind="DF_AUD_Confirmation_Info.CompanyCode" Width="250px" DisableExpress='Global.StepName!="内审发起客户询证函处理申请"' PromptText="----请选择----" XDataSource>
                            <asp:ListItem Value="1000">北京东方中科集成科技股份有限公司</asp:ListItem>
                            <asp:ListItem Value="1010">北京东方中科集成科技股份有限公司上海分公司</asp:ListItem>
                            <asp:ListItem Value="1020">北京东方中科集成科技股份有限公司深圳分公司</asp:ListItem>
                            <asp:ListItem Value="2000">上海颐合贸易有限公司</asp:ListItem>
                            <asp:ListItem Value="2100">苏州博德仪器有限公司</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                    <td class="tsbottomlabel" style="width: 10%">
                        <asp:Label ID="Label10" runat="server" Text="*" ForeColor="Red"></asp:Label>&nbsp;<asp:Label ID="Label31" runat="server" Text="询证函类型"></asp:Label></td>
                    <td class="tsbottomtext" style="width: 35%">
                        <aspxform:XCheckBoxList ID="Type" runat="server" XDataBind="DF_AUD_Confirmation_Info.Type" DisableExpress='Global.StepName!="内审发起客户询证函处理申请"' RepeatDirection="Horizontal">
                            <asp:ListItem Value="01">销售额（含税销售总价）</asp:ListItem>
                            <asp:ListItem Value="02">应收+预收</asp:ListItem>
                        </aspxform:XCheckBoxList>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="width: 10%">
                        <asp:Label ID="Label11" runat="server" Text="*" ForeColor="Red"></asp:Label>&nbsp;<asp:Label ID="Label6" runat="server" Text="客户"></asp:Label>
                        <aspxform:XTextBox ID="CustomerID" runat="server" ValueToDisplayText XDataBind="DF_AUD_Confirmation_Info.CustomerID" Width="10px" HiddenInput="True" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext" style="width: 35%">
                        <aspxform:XTextBox ID="CustomerName" runat="server" BackColor="#E6F1F8" ValueToDisplayText XDataBind="DF_AUD_Confirmation_Info.CustomerName" Width="389px" HiddenInput="False" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0"></aspxform:XTextBox>
                        &nbsp;<aspxform:XDataBrowserButton ID="XDataBrowserButton1" runat="server" Text="查询" XClass="YZSoft.Forms.Field.DataBrowserButton" Width="40px" DisableExpress='Global.StepName!="内审发起客户询证函处理申请"' XDataSource="TableName:V_DF_MasterData_Customer" DataMap="CustomerNameCH->DF_AUD_Confirmation_Info.CustomerName;CustomerSAPID->DF_AUD_Confirmation_Info.CustomerID" UseSubmitBehavior="False" PopupWndHeight="-1" PopupWndWidth="-1" Height="22px" DisplayColumns="CustomerID:客户编号;CustomerNameCH:客户名称;CustomerSAPID:客户SAPID" PrintOut="False"></aspxform:XDataBrowserButton>
                    </td>
                    <td class="tsbottomlabel" style="width: 10%"></td>
                    <td class="tsbottomtext" style="width: 35%"></td>
                </tr>
            </tbody>
        </table>
        <br />
        <aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator1" runat="server" ForeColor="Red" Display="None" ErrorMessage="请选择审计期间" ControlToValidate="AuditPeriod" ValidationGroup="submit">请选择审计期间</aspxform:XRequiredFieldValidator>
        &nbsp;
        <aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator2" runat="server" ForeColor="Red" Display="None" ErrorMessage="请选择年份" ControlToValidate="dropYear" ValidationGroup="submit">请选择年份</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator3" runat="server" ForeColor="Red" Display="None" ErrorMessage="请选择公司代码" ControlToValidate="CompanyCode" ValidationGroup="submit">请选择公司代码</aspxform:XRequiredFieldValidator>
        &nbsp;
        <aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator4" runat="server" ForeColor="Red" Display="None" ErrorMessage="请选择询证函类型" ControlToValidate="Type" ValidationGroup="submit">请选择询证函类型</aspxform:XRequiredFieldValidator>
        <br />
        <table width="1200" align="center" class="scrolltable" id="tabcontact" border="0" cellspacing="0" cellpadding="0" runat="server" emptygrid="KeepEmpty" dynamicarea="2,1" menudock="Left" hiddenexpress='Global.StepName!="信控岗确认客户地址" &amp;&amp;  Global.StepName!="业务员确认客户地址"  &amp;&amp; Global.StepName!="业务员确认客户地址1" '>
            <tbody>
                <tr>
                    <td height="17" class="title1" colspan="6">
                        <asp:Label ID="Label12" runat="server" Text="联系人信息"></asp:Label></td>
                </tr>
                <tr class="scrollColThead">
                    <td class="tds" style="width: 200px">
                        <asp:Label ID="Label13" runat="server" Text="业务员"></asp:Label></td>
                    <td width="202" class="tds" style="width: 200px">
                        <asp:Label ID="Label32" runat="server" Text="新指定业务员"></asp:Label></td>
                    <td class="tds" style="width: 200px">
                        <asp:Label ID="Label26" runat="server" Text="*" ForeColor="Blue"></asp:Label>&nbsp;<asp:Label ID="Label14" runat="server" Text="联系人姓名"></asp:Label></td>
                    <td class="tds" style="width: 300px">
                        <asp:Label ID="Label28" runat="server" Text="*" ForeColor="Blue"></asp:Label>&nbsp;<asp:Label ID="Label15" runat="server" Text="电话"></asp:Label></td>
                    <td class="tds" style="width: 500px">
                        <asp:Label ID="Label29" runat="server" Text="*" ForeColor="Blue"></asp:Label>&nbsp;<asp:Label ID="Label16" runat="server" Text="地址"></asp:Label></td>
                    <td class="tds" style="width: 200px">
                        <asp:Label ID="Label23" runat="server" Text="电子邮箱"></asp:Label></td>
                </tr>
                <tr hiddenexpress="javascript('contactHidden',DF_AUD_Confirmation_Contacts.Account,DF_AUD_Confirmation_Contacts.Account1,Global.StepName)">
                    <td class="tds1">
                        <aspxform:XTextBox ID="XTextBox5" runat="server" BackColor="#E6F1F8" XDataBind="DF_AUD_Confirmation_Contacts.Name" Width="200px" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True"></aspxform:XTextBox>
                        <aspxform:XLabel ID="XLabel3" runat="server" XDataBind="DF_AUD_Confirmation_Contacts.Account" HiddenExpress="1"></aspxform:XLabel>
                        <aspxform:XDropDownList ID="XDropDownList1" runat="server" Width="50px" HiddenExpress="1" XDataSource="TableName:DF_AUD_CustomerContacts;Filter:CustomerID->DF_AUD_Confirmation_Info.CustomerID" DataMap="Contacts->DF_AUD_Confirmation_Contacts.Contacts;Address->DF_AUD_Confirmation_Contacts.Address;Phone->DF_AUD_Confirmation_Contacts.Phone"></aspxform:XDropDownList>
                    </td>
                    <td width="202" class="tds1">
                        <aspxform:XTextBox ID="XTextBox1" runat="server" BackColor="#E6F1F8" XDataBind="DF_AUD_Confirmation_Contacts.Name1" Width="100px" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True"></aspxform:XTextBox>
                        <aspxform:XLabel ID="XLabel2" runat="server" XDataBind="DF_AUD_Confirmation_Contacts.Account1" HiddenExpress="1"></aspxform:XLabel>
                        &nbsp;<aspxform:XDataBrowserButton ID="XDataBrowserButton5" runat="server" Text="查询" XClass="YZSoft.Forms.Field.DataBrowserButton" Width="37px" XDataSource="TableName:V_DF_HR_BasicInfo" DataMap="AttendanceKakaNO->DF_AUD_Confirmation_Contacts.Account1;Name->DF_AUD_Confirmation_Contacts.Name1" UseSubmitBehavior="False" PopupWndHeight="-1" PopupWndWidth="-1" DisplayColumns="AttendanceKakaNO:业务员账号;Name:业务员;BUName:BU;Department:部门"></aspxform:XDataBrowserButton>
                    </td>
                    <td class="tds1">
                        <aspxform:XTextBox ID="XTextBox2" runat="server" XDataBind="DF_AUD_Confirmation_Contacts.Contacts" Width="100%" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XTextBox>
                    </td>
                    <td class="tds1">
                        <aspxform:XTextBox ID="XTextBox3" runat="server" XDataBind="DF_AUD_Confirmation_Contacts.Phone" Width="100%" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XTextBox>
                    </td>
                    <td class="tds1">
                        <aspxform:XTextBox ID="XTextBox4" runat="server" XDataBind="DF_AUD_Confirmation_Contacts.Address" Width="100%" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XTextBox>
                    </td>
                    <td class="tds1">
                        <aspxform:XTextBox ID="XTextBox6" runat="server" XDataBind="DF_AUD_Confirmation_Contacts.Mail" Width="100%" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator5" runat="server" DisableExpress="javascript('contactCheck',DF_AUD_Confirmation_Contacts.Account,Global.StepName)" ForeColor="Red" Display="None" ErrorMessage="请填写联系人姓名" ControlToValidate="XTextBox2" ValidationGroup="ywy">请填写联系人姓名</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator6" runat="server" DisableExpress="javascript('contactCheck',DF_AUD_Confirmation_Contacts.Account,DF_AUD_Confirmation_Contacts.Account1,Global.StepName)" ForeColor="Red" Display="None" ErrorMessage="请填写电话" ControlToValidate="XTextBox3" ValidationGroup="ywy">请填写电话</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator7" runat="server" DisableExpress="javascript('contactCheck',DF_AUD_Confirmation_Contacts.Account,DF_AUD_Confirmation_Contacts.Account1,Global.StepName)" ForeColor="Red" Display="None" ErrorMessage="请填写地址" ControlToValidate="XTextBox4" ValidationGroup="ywy">请填写地址</aspxform:XRequiredFieldValidator>
        <br />
        <table width="1192" align="center" class="table" border="0" cellspacing="0" cellpadding="0" hiddenexpress='Global.StepName=="业务员确认客户地址1" || Global.StepName=="业务员确认客户地址"'>
            <tbody>
                <tr>
                    <td height="21" class="title1" colspan="4">
                        <asp:Label ID="Label18" runat="server" Text="客户联系人信息"></asp:Label></td>
                </tr>
                <tr>
                    <td width="131" height="21" class="tsbottomlabel">
                        <asp:Label ID="Label34" runat="server" Text="*" ForeColor="Black"></asp:Label>&nbsp;<asp:Label ID="Label19" runat="server" Text="联系人姓名"></asp:Label></td>
                    <td width="465" class="tsbottomtext">
                        <aspxform:XTextBox ID="Contacts" runat="server" ValueToDisplayText XDataBind="DF_AUD_Confirmation_Info.Contacts" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" DisableExpress='Global.StepName!="信控岗确认客户地址"  &amp;&amp;  Global.StepName!="信控岗确认客户地址1" &amp;&amp; Global.StepName!=""'></aspxform:XTextBox>
                        &nbsp;<aspxform:XDataBrowserButton ID="XDataBrowserButton2" runat="server" Text="查询" XClass="YZSoft.Forms.Field.DataBrowserButton" Width="37px" HiddenExpress='DF_AUD_Confirmation_Info.SalesSAPID==""' DisableExpress='Global.StepName!="信控岗确认客户地址"  &amp;&amp;  Global.StepName!="信控岗确认客户地址1"' XDataSource="TableName:DF_AUD_Confirmation_Contacts;Filter:TaskID->DF_AUD_Confirmation_Info.TaskID" DataMap="Contacts->DF_AUD_Confirmation_Info.Contacts;Address->DF_AUD_Confirmation_Info.Address;Phone->DF_AUD_Confirmation_Info.Phone;Mail->DF_AUD_Confirmation_Info.Mail" UseSubmitBehavior="False" PopupWndHeight="-1" PopupWndWidth="-1" DisplayColumns="Name:业务员;Contacts:联系人姓名;Address:地址;Phone:电话;Mail:电子邮箱"></aspxform:XDataBrowserButton>
                    </td>
                    <td width="131" class="tsbottomlabel">
                        <asp:Label ID="Label35" runat="server" Text="*" ForeColor="Black"></asp:Label>&nbsp;<asp:Label ID="Label20" runat="server" Text="电话"></asp:Label></td>
                    <td width="465" class="tsbottomtext">
                        <aspxform:XTextBox ID="Phone" runat="server" ValueToDisplayText XDataBind="DF_AUD_Confirmation_Info.Phone" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" DisableExpress='Global.StepName!="信控岗确认客户地址"  &amp;&amp;  Global.StepName!="信控岗确认客户地址1" &amp;&amp; Global.StepName!=""'></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label ID="Label36" runat="server" Text="*" ForeColor="Black"></asp:Label>&nbsp;<asp:Label ID="Label17" runat="server" Text="地址"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox ID="Address" runat="server" ValueToDisplayText XDataBind="DF_AUD_Confirmation_Info.Address" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" ReadOnly="True" DisableExpress='Global.StepName!="信控岗确认客户地址"  &amp;&amp;  Global.StepName!="信控岗确认客户地址1" &amp;&amp; Global.StepName!=""'></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label ID="Label22" runat="server" Text="电子邮箱"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox ID="Mail" runat="server" ValueToDisplayText XDataBind="DF_AUD_Confirmation_Info.Mail" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" DisableExpress='Global.StepName!="信控岗确认客户地址"  &amp;&amp;  Global.StepName!="信控岗确认客户地址1" &amp;&amp; Global.StepName!=""'></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label ID="Label37" runat="server" Text="*" ForeColor="Black"></asp:Label>&nbsp;<asp:Label ID="Label21" runat="server" Text="业务员"></asp:Label>
                        <aspxform:XTextBox ID="PrincipalSalesmanID" runat="server" ValueToDisplayText XDataBind="DF_AUD_Confirmation_Info.PrincipalSalesmanID" Width="20px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox ID="PrincipalSalesman" runat="server" BackColor="#E6F1F8" ValueToDisplayText XDataBind="DF_AUD_Confirmation_Info.PrincipalSalesman" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" ReadOnly="True"></aspxform:XTextBox>
                        &nbsp;
                        <aspxform:XDataBrowserButton ID="XDataBrowserButton3" runat="server" Text="查询" XClass="YZSoft.Forms.Field.DataBrowserButton" Width="37px" HiddenExpress='DF_AUD_Confirmation_Info.SalesSAPID==""||varState=="Edit"' DisableExpress='Global.StepName!="信控岗确认客户地址"  &amp;&amp;  Global.StepName!="信控岗确认客户地址1"' XDataSource="TableName:DF_AUD_Confirmation_Contacts;Filter:TaskID->DF_AUD_Confirmation_Info.TaskID" DataMap="Account->DF_AUD_Confirmation_Info.PrincipalSalesmanID;Name->DF_AUD_Confirmation_Info.PrincipalSalesman;Contacts->DF_AUD_Confirmation_Info.Contacts;Address->DF_AUD_Confirmation_Info.Address;Phone->DF_AUD_Confirmation_Info.Phone;Mail->DF_AUD_Confirmation_Info.Mail" UseSubmitBehavior="False" PopupWndHeight="-1" PopupWndWidth="-1" DisplayColumns="Name:业务员;Contacts:联系人;Address:地址;Phone:电话;Mail:电子邮箱"></aspxform:XDataBrowserButton>
                        <aspxform:XDataBrowserButton ID="XDataBrowserButton4" runat="server" Text="查询" XClass="YZSoft.Forms.Field.DataBrowserButton" Width="37px" HiddenExpress='DF_AUD_Confirmation_Info.SalesSAPID!=""&amp;&amp;varState!="Edit"' DisableExpress='Global.StepName!="信控岗确认客户地址"  &amp;&amp;  Global.StepName!="信控岗确认客户地址1"&amp;&amp;varState!="Edit"' XDataSource="TableName:V_DF_HR_BasicInfo" DataMap="AttendanceKakaNO->DF_AUD_Confirmation_Info.PrincipalSalesmanID;Name->DF_AUD_Confirmation_Info.PrincipalSalesman" UseSubmitBehavior="False" PopupWndHeight="-1" PopupWndWidth="-1" DisplayColumns="AttendanceKakaNO:业务员账号;Name:业务员;BUName:BU;Department:部门"></aspxform:XDataBrowserButton>
                    </td>
                    <td class="tsbottomlabel"></td>
                    <td class="tsbottomtext"></td>
                </tr>
            </tbody>
        </table>
        <aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator8" runat="server" ForeColor="Red" Display="None" ErrorMessage="请填写联系人姓名" ControlToValidate="Contacts" ValidationGroup="xk">请填写联系人姓名</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator9" runat="server" ForeColor="Red" Display="None" ErrorMessage="请填写电话" ControlToValidate="Phone" ValidationGroup="xk">请填写电话</aspxform:XRequiredFieldValidator>
        &nbsp;
        <aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator10" runat="server" ForeColor="Red" Display="None" ErrorMessage="请填写地址" ControlToValidate="Address" ValidationGroup="xk">请填写地址</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator11" runat="server" ForeColor="Red" Display="None" ErrorMessage="请选择业务员" ControlToValidate="PrincipalSalesman" ValidationGroup="xk">请选择业务员</aspxform:XRequiredFieldValidator>
        <br />
        <br />
        <aspxform:XAttachments ID="XAttachments1" runat="server" Width="29px" HiddenExpress="1" FileTypesDescription="Word,Excel,Pdf" FileTypes="*.doc;*.docx;*.xls;*.xlsx;*.pdf;*.png;*.jpg;*.jpeg;*.gif" MaximumFileSize></aspxform:XAttachments>
        <br />
        <aspxform:XSignTrace ID="XSignTrace1" runat="server" Width="1200px" BorderColor="#dcdcdc" BorderWidth="1" align="center"></aspxform:XSignTrace>
    </form>
</body>
</html>
