<%@ 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;
        }
        #td1 {
        border-right:#b2bcc6 1px solid;
        }
    </style>
    <script type="text/javascript">

        agent.on('beforeSubmit', function (post, acname) {
            if (acname == "申请") {
                var startTime = agent.Eles[document.getElementById('XDateTimePicker3').getAttribute("xform_xele_index")].getValue();
                var endTime = agent.Eles[document.getElementById('XDateTimePicker2').getAttribute("xform_xele_index")].getValue();

                if ((new Date(startTime.replace(/-/g, "\/"))) > (new Date(endTime.replace(/-/g, "\/")))) {
                    alert("会议结束时间必须大于开始时间！");
                }
            }
        });

    </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 class="biaoti" style="PADDING-LEFT: 30px">
                        <asp:Label id="XLabel1" runat="server" text="电话会议卡申请单"></asp:Label></td>
                    <td class="formno">
                        <asp:Label id="XLabel2" runat="server" text="表单号："></asp:Label>
                        <aspxform:XLabel id="XLabel3" runat="server" BackColor="#8AB3DF" XDataBind="DF_IT_ConferenceCardApp.FormNo" Text="-系统自动生成-"></aspxform:XLabel>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td align="left" colspan="3">
                        <asp:Label id="XLabel46" runat="server" text="标记*为发起人必填项" forecolor="Red" font-bold="true"></asp:Label>&nbsp;</td>
                    <td align="right">
                    </td>
                </tr>
                <tr>
                    <td height="14" class="title1" colspan="4">
                        <asp:Label id="XLabel10" runat="server" text="基本信息"></asp:Label></td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel4" runat="server" text="申请人"></asp:Label>
                        <aspxform:XTextBox id="XTextBox2" runat="server" XDataBind="DF_IT_ConferenceCardApp.AppAccount" HiddenExpress="1" width="20px" BorderWidth="1" BorderColor="#DCDCDC"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox1" runat="server" BackColor="#e6f1f8" XDataBind="DF_IT_ConferenceCardApp.AppName" BorderWidth="1" BorderColor="#DCDCDC" DisableBehavior="ReadOnly" Width="60%" Enabled="False" CssClass="text"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel5" runat="server" text="申请时间"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XDateTimePicker id="XDateTimePicker1" runat="server" BackColor="#e6f1f8" XDataBind="DF_IT_ConferenceCardApp.CreateDate" BorderWidth="1" BorderColor="#DCDCDC" DisableBehavior="ReadOnly" Width="60%" CssClass="text" DisplayOnly="True"></aspxform:XDateTimePicker>
                    </td>
                </tr>
                <tr>
                    <td height="22" class="ts" style="WIDTH: 10%">
                        <asp:Label id="XLabel37" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel42" runat="server" text="使用人"></asp:Label> 
                        <aspxform:XTextBox id="XTextBox35" runat="server" XDataBind="DF_IT_ConferenceCardApp.UserAccount" BorderWidth="1" BorderColor="#DCDCDC" Width="20%" ValueToDisplayText="TableName:V_DF_HR_BasicInfo;FilterColumn:AttendanceKakaNO;DisplayColumn:AttendanceKakaNO" DataMap="Name->DF_IT_ConferenceCardApp.UserName;BUName->DF_IT_ConferenceCardApp.BU;Department->DF_IT_ConferenceCardApp.Depart" HiddenInput="True"></aspxform:XTextBox>
                    </td>
                    <td class="ts1" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox40" style="WIDTH: 70%" runat="server" BackColor="#E6F1F8" XDataBind="DF_IT_ConferenceCardApp.UserName" BorderWidth="1" BorderColor="#DCDCDC" Width="220px" ReadOnly="True"></aspxform:XTextBox>
                        <aspxform:XDataBrowserButton id="XDataBrowserButton4" runat="server" Text="查询" Width="40px" DataMap="AttendanceKakaNO->DF_IT_ConferenceCardApp.UserAccount;Name->DF_IT_ConferenceCardApp.UserName;BUName->DF_IT_ConferenceCardApp.BU;Department->DF_IT_ConferenceCardApp.Depart" Height="25px" DisplayColumns="AttendanceKakaNO:BPM账号;Name:员工姓名;Department:部门" XDataSource="TableName:V_DF_HR_BasicInfo"></aspxform:XDataBrowserButton>
                    </td>
                    <td class="ts">
                    </td>
                    <td class="ts1">
                    </td>
                </tr>
                <tr>
                    <td height="23" class="tsbottomlabel">
                        <asp:Label id="XLabel44" runat="server" text="事业部"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox42" style="WIDTH: 70%" runat="server" BackColor="#E6F1F8" XDataBind="DF_IT_ConferenceCardApp.BU" BorderWidth="1" BorderColor="#DCDCDC" DisableBehavior="ReadOnly" Width="70%" DisableExpress="1"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="XLabel45" runat="server" text="部门"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox41" style="WIDTH: 70%" runat="server" BackColor="#E6F1F8" XDataBind="DF_IT_ConferenceCardApp.Depart" BorderWidth="1" BorderColor="#DCDCDC" Width="70%" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td height="14" class="title1" colspan="4">
                        <asp:Label id="XLabel6" runat="server" text="申请信息"></asp:Label></td>
                </tr>
                <tr>
                    <td height="22" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel18" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel20" runat="server" text="参会方"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XDropDownList id="XDropDownList1" runat="server" XDataBind="DF_IT_ConferenceCardApp.Attendees" Width="130px" PromptText="--请选择--">
                            <asp:ListItem>3方</asp:ListItem>
                            <asp:ListItem>4方</asp:ListItem>
                            <asp:ListItem>5方</asp:ListItem>
                            <asp:ListItem>6方</asp:ListItem>
                            <asp:ListItem>7方</asp:ListItem>
                        </aspxform:XDropDownList>
                        <asp:Label id="Label1" runat="server" text="注意：两方可直接电话沟通，无需电话会议。" forecolor="blue"></asp:Label></td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label2" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;会议主题</td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox5" runat="server" XDataBind="DF_IT_ConferenceCardApp.MeetingTitle" width="100%" BorderWidth="1" BorderColor="#DCDCDC"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel16" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;会议时间</td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XDateTimePicker id="XDateTimePicker3" runat="server" XDataBind="DF_IT_ConferenceCardApp.MeetingStartTime" BorderWidth="1" BorderColor="#DCDCDC" Width="200" Type="TimeMinutes30"></aspxform:XDateTimePicker>
                        至 
                        <aspxform:XDateTimePicker id="XDateTimePicker2" runat="server" XDataBind="DF_IT_ConferenceCardApp.MeetingEndTime" BorderWidth="1" BorderColor="#DCDCDC" Width="200" Type="TimeMinutes30"></aspxform:XDateTimePicker>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <aspxform:XTextBox id="XTextBox6" runat="server" XDataBind="DF_IT_ConferenceCardApp.TeleconferencingCardID" width="100%" BorderWidth="1" BorderColor="#DCDCDC" HiddenInput="True"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td>
                        <asp:Label id="Label11" runat="server" text="特别注意：每次电话会议前都需要申请，若未申请而使用以前的电话会议卡及密码，会影响以后电话会议申请，谢谢合作。" forecolor="Red" font-bold="True"></asp:Label></td>
                </tr>
                <tr>
                    <td width="1200">
                        <asp:Label id="Label3" runat="server" text="使用方法/User Guide：" font-bold="True"></asp:Label></td>
                </tr>
                <tr>
                    <td height="13">
                        <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
                            <asp:Label id="Label4" runat="server" text="1、国内客户拨打400-651-1122召开或加入会议/Call-in toll-free number in China is 4006998989；" font-bold="True"></asp:Label>
                        </p>
                    </td>
                </tr>
                <tr>
                    <td height="32">
                        <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
                            <asp:Label id="Label5" runat="server" text="2、未开通400-651-1122的城市用户召开或加入会议方式/Users located domestic cities that 4006998989 is not available：" font-bold="True"></asp:Label><span lang="EN-US"><font face="Calibri"><span style="mso-tab-count: 5">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
                            </span></font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label id="Label6" runat="server" text="请拨打021-60845959召开或加入会议。" font-bold="True"></asp:Label></span> 
                            <br />
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label id="Label7" runat="server" text="Please call 021-60845959 to join in the conference." font-bold="True"></asp:Label> 
                        </p>
                    </td>
                </tr>
                <tr>
                    <td>
                        <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
                            <asp:Label id="Label8" runat="server" text="3、国际客户召开或加入会议方式/Call-in number for international users：" font-bold="True"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        </p>
                        <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; mso-para-margin-left: 2.0gd">
                            &nbsp;<asp:Label id="Label10" runat="server" text="请拨打+86-21-60845959召开或加入会议。" font-bold="True"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        </p>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <asp:Label id="Label9" runat="server" text="Please call +86-21-60845959 to join in the conference." font-bold="True"></asp:Label></td>
                </tr>
            </tbody>
        </table>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator1" runat="server" ForeColor="Red" ErrorMessage="请选择参会方" ControlToValidate="XDropDownList1" ValidationGroup="submit"></aspxform:XRequiredFieldValidator>
        &nbsp;&nbsp; 
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator4" runat="server" ForeColor="Red" ErrorMessage="请填写会议主题" ControlToValidate="XTextBox5" ValidationGroup="submit"></aspxform:XRequiredFieldValidator>
        &nbsp; 
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator2" runat="server" ForeColor="Red" ErrorMessage="请选择会议开始时间" ControlToValidate="XDateTimePicker3" ValidationGroup="submit"></aspxform:XRequiredFieldValidator>
        &nbsp; &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator3" runat="server" ForeColor="Red" ErrorMessage="请选择会议结束时间" ControlToValidate="XDateTimePicker2" ValidationGroup="submit"></aspxform:XRequiredFieldValidator>
        <br />
        <table width="1200" align="center" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td>
                        <aspxform:XSignTrace id="XSignTrace1" runat="server" BorderWidth="1" BorderColor="#dcdcdc" Width="1200px"></aspxform:XSignTrace>
                    </td>
                </tr>
            </tbody>
        </table>
    </form>
</body>
</html>
