<%@ 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;}
    DIV.datetimepicker-date-hour-minutes DIV.time{width:150px}
    </style>
     <script type="text/javascript">

         agent.on('Submit', function (actname,actname1) {
             if (actname1 == "已创建CRM账号") {

                 var appAccount = agent.Eles[document.getElementById('XTextBox5').getAttribute("xform_xele_index")].getValue();
                 var appName = agent.Eles[document.getElementById('XTextBox1').getAttribute("xform_xele_index")].getValue();
                 var bu = agent.Eles[document.getElementById('XTextBox4').getAttribute("xform_xele_index")].getValue();

                 YZSoft.Ajax.request({
                     url: YZSoft.$url('Oimec/ApiServices/OAITAPIHandler.ashx'),
                     method: 'POST',
                     params: {
                         method: 'InsertCrmAccount',
                         appName: appName,
                         appAccount: appAccount,
                         bu: bu
                     },
                     success: function (action) { },
                     failure: function (action) { }
                 })
             }
         });

    </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="XLabel1" runat="server" text="CRM账号申请单"></asp:Label></td>
                    <td width="400" class="formno">
                        <asp:Label id="XLabel2" runat="server" text="表单号："></asp:Label>
                        <aspxform:XLabel id="XLabel3" runat="server" text="--系统自动生成--" BackColor="#8AB3DF" valuetodisplaytext value xdatabind="DF_IT_CRMAccountApplication.FormNo"></aspxform:XLabel>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" class="table" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td height="21" class="ts" style="WIDTH: 10%">
                        <asp:Label id="XLabel4" runat="server" text="申请人" valuetodisplaytext value></asp:Label>
                        <aspxform:XTextBox id="XTextBox5" runat="server" XDataBind="DF_IT_CRMAccountApplication.AppAccount" width="50px" BorderColor="#DCDCDC" BorderWidth="1" DataMap="Name->DF_IT_CRMAccountApplication.AppName;BUName->DF_IT_CRMAccountApplication.BU;MobilePhone->DF_IT_CRMAccountApplication.MobilePhone;Email->DF_IT_CRMAccountApplication.CompanyMail;SupervisorUserAccount->DF_IT_CRMAccountApplication.LeaderAccount;DisplayName->DF_IT_CRMAccountApplication.ImmediateLeader" HiddenInput="True" ValueToDisplayText="TableName:V_DF_HR_BasicInfo;FilterColumn:AttendanceKakaNO;DisplayColumn:AttendanceKakaNO"></aspxform:XTextBox>
                    </td>
                    <td class="ts1" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox1" style="WIDTH: 70%" runat="server" XDataBind="DF_IT_CRMAccountApplication.AppName" BorderColor="#DCDCDC" BorderWidth="1" ValueToDisplayText DisableBehavior="ReadOnly" Enabled="False"></aspxform:XTextBox>
                    </td>
                    <td class="ts" style="WIDTH: 10%">
                        <asp:Label id="XLabel10" runat="server" text="直接领导" valuetodisplaytext value></asp:Label>
                        <aspxform:XTextBox id="XTextBox15" style="DISPLAY: none" runat="server" XDataBind="DF_IT_CRMAccountApplication.LeaderAccount" width="10px" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XTextBox>
                    </td>
                    <td class="ts1" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox7" runat="server" XDataBind="DF_IT_CRMAccountApplication.ImmediateLeader" BorderColor="#DCDCDC" BorderWidth="1" ValueToDisplayText DisableBehavior="ReadOnly" Enabled="False" Width="220px"></aspxform:XTextBox>
                        <aspxform:XDataBrowserButton id="XDataBrowserButton1" runat="server" DataMap="Account->DF_IT_CRMAccountApplication.LeaderAccount;DisplayName->DF_IT_CRMAccountApplication.ImmediateLeader" XDataSource="TableName:V_Users" DisplayColumns="Account:账号;DisplayName:姓名" Text="选择"></aspxform:XDataBrowserButton>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel5" runat="server" text="联系电话" valuetodisplaytext value></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox2" style="WIDTH: 70%" runat="server" XDataBind="DF_IT_CRMAccountApplication.Phone" BorderColor="#DCDCDC" BorderWidth="1" ValueToDisplayText></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel11" runat="server" text="申请日期" valuetodisplaytext value></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XDateTimePicker id="XDateTimePicker1" style="WIDTH: 50%" runat="server" XDataBind="DF_IT_CRMAccountApplication.CreateDate" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" DisplayOnly="True"></aspxform:XDateTimePicker>
                    </td>
                </tr>
                <tr>
                    <td height="24" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel6" runat="server" text="公司邮箱" valuetodisplaytext value></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox3" style="WIDTH: 70%" runat="server" XDataBind="DF_IT_CRMAccountApplication.CompanyMail" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" Enabled="False"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel12" runat="server" text="手机" valuetodisplaytext value></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox8" style="WIDTH: 70%" runat="server" XDataBind="DF_IT_CRMAccountApplication.MobilePhone" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" Enabled="False"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel7" runat="server" text="BU" valuetodisplaytext value></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox4" style="WIDTH: 70%" runat="server" XDataBind="DF_IT_CRMAccountApplication.BU" BorderColor="#DCDCDC" BorderWidth="1" ValueToDisplayText DisableBehavior="ReadOnly" Enabled="False"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel13" runat="server" text="地区" valuetodisplaytext value></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox9" style="WIDTH: 70%" runat="server" XDataBind="DF_IT_CRMAccountApplication.District" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel8" runat="server" text="岗位类型" valuetodisplaytext value height="15px"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XDropDownList id="XDropDownList1" runat="server" XDataBind="DF_IT_CRMAccountApplication.StationType">
                            <asp:ListItem Value="销售工程师">销售工程师</asp:ListItem>
                            <asp:ListItem Value="销售经理">销售经理</asp:ListItem>
                            <asp:ListItem Value="高级销售经理">高级销售经理</asp:ListItem>
                            <asp:ListItem Value="AE/市场/技术">AE/市场/技术</asp:ListItem>
                            <asp:ListItem Value="地区经理">地区经理</asp:ListItem>
                            <asp:ListItem Value="BU经理">BU经理</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel14" runat="server" text="管理范围" valuetodisplaytext value hiddenexpress="DF_IT_CRMAccountApplication.StationType!='AE/市场/技术'  &amp;&amp; DF_IT_CRMAccountApplication.StationType!='地区经理'  &amp;&amp; DF_IT_CRMAccountApplication.StationType!='BU经理'"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox10" style="WIDTH: 70%" runat="server" XDataBind="DF_IT_CRMAccountApplication.ManageScope" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="DF_IT_CRMAccountApplication.StationType!='AE/市场/技术'  &amp;&amp; DF_IT_CRMAccountApplication.StationType!='地区经理'  &amp;&amp; DF_IT_CRMAccountApplication.StationType!='BU经理'"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel9" runat="server" text="是否是销售组长" valuetodisplaytext value></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XRadioButtonList id="XRadioButtonList1" runat="server" XDataBind="DF_IT_CRMAccountApplication.SalesHeadman" RepeatDirection="Horizontal">
                            <asp:ListItem>是</asp:ListItem>
                            <asp:ListItem>否</asp:ListItem>
                        </aspxform:XRadioButtonList>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel15" runat="server" text="小组成员" valuetodisplaytext value hiddenexpress="DF_IT_CRMAccountApplication.SalesHeadman!='是'"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox11" style="WIDTH: 70%" runat="server" XDataBind="DF_IT_CRMAccountApplication.GroupMember" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="DF_IT_CRMAccountApplication.SalesHeadman!='是'"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel16" runat="server" text="是否是AE/技术组长或经理" valuetodisplaytext value></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XRadioButtonList id="XRadioButtonList2" runat="server" XDataBind="DF_IT_CRMAccountApplication.AEorTechHeadManManager" RepeatDirection="Horizontal">
                            <asp:ListItem>是</asp:ListItem>
                            <asp:ListItem>否</asp:ListItem>
                        </aspxform:XRadioButtonList>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel17" runat="server" text="团队成员" valuetodisplaytext value hiddenexpress="DF_IT_CRMAccountApplication.AEorTechHeadManManager!='是'"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox12" style="WIDTH: 70%" runat="server" XDataBind="DF_IT_CRMAccountApplication.TeamMember" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="DF_IT_CRMAccountApplication.AEorTechHeadManManager!='是'"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel18" runat="server" text="年度目标值（含税销售额）（地区经理填写）" valuetodisplaytext value width="119px"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox6" runat="server" XDataBind="DF_IT_CRMAccountApplication.AnnualTargetPrice" BorderColor="#DCDCDC" BorderWidth="1" Width="220px" TextAlign="Right"></aspxform:XTextBox>
                        <asp:Label id="XLabel22" runat="server" text="万元" valuetodisplaytext value></asp:Label></td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel19" runat="server" text="目标值说明（地区经理填写）" valuetodisplaytext value></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox13" style="WIDTH: 70%" runat="server" XDataBind="DF_IT_CRMAccountApplication.TargetPriceExplanation" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr class="title1">
                    <td class="ts">
                        <asp:Label id="XLabel20" runat="server" text="备注说明" valuetodisplaytext value></asp:Label></td>
                </tr>
                <tr>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox14" style="WIDTH: 100%" runat="server" XDataBind="DF_IT_CRMAccountApplication.RemarkExplanation" width="100%" BorderColor="#DCDCDC" BorderWidth="1" TextMode="MultiLine"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center">
            <tbody>
                <tr>
                    <td>
                        <aspxform:XSignTrace id="XSignTrace1" runat="server" BorderColor="#dcdcdc" BorderWidth="1" Width="100%"></aspxform:XSignTrace>
                    </td>
                </tr>
            </tbody>
        </table>
        <p>
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator6" runat="server" ValidationGroup="yzgroup" ControlToValidate="XTextBox9" ErrorMessage="请填写地区" Display="None">请填写地区</aspxform:XRequiredFieldValidator>
            &nbsp; 
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator1" runat="server" ValidationGroup="yzgroup" ControlToValidate="XDropDownList1" ErrorMessage="请选择岗位类型" Display="None">请选择岗位类型</aspxform:XRequiredFieldValidator>
            &nbsp; 
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator9" runat="server" ValidationGroup="yzgroup" ControlToValidate="XTextBox10" ErrorMessage="请填写管理范围" DisableExpress="DF_IT_CRMAccountApplication.StationType=='销售工程师'||DF_IT_CRMAccountApplication.StationType=='销售经理'||DF_IT_CRMAccountApplication.StationType=='高级销售经理'"></aspxform:XRequiredFieldValidator>
            &nbsp; 
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator2" runat="server" ValidationGroup="yzgroup" ControlToValidate="XRadioButtonList1" ErrorMessage="请选择是否为销售组长" Display="None">请选择是否为销售组长</aspxform:XRequiredFieldValidator>
            &nbsp; 
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator7" runat="server" ValidationGroup="yzgroup" ControlToValidate="XTextBox11" ErrorMessage="请填写小组成员" DisableExpress="DF_IT_CRMAccountApplication.SalesHeadman=='否'"></aspxform:XRequiredFieldValidator>
            &nbsp; 
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator3" runat="server" ValidationGroup="yzgroup" ControlToValidate="XRadioButtonList2" ErrorMessage="请选择是否是AE/技术组长或经理" Display="None">请选择是否是AE/技术组长或经理</aspxform:XRequiredFieldValidator>
            &nbsp; 
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator8" runat="server" ValidationGroup="yzgroup" ControlToValidate="XTextBox12" ErrorMessage="请填写团队成员" DisableExpress="DF_IT_CRMAccountApplication.AEorTechHeadManManager=='否'"></aspxform:XRequiredFieldValidator>
            &nbsp;&nbsp; 
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator4" runat="server" ValidationGroup="yzgroup1" ControlToValidate="XTextBox6" ErrorMessage="请填写年度目标值" Display="None">请填写年度目标值</aspxform:XRequiredFieldValidator>
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator5" runat="server" ValidationGroup="yzgroup1" ControlToValidate="XTextBox13" ErrorMessage="请填写目标值说明" Display="None">请填写目标值说明</aspxform:XRequiredFieldValidator>
        </p>
    </form>
</body>
</html>
