<%@ 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">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
    <link href="/Oimec/Styles/CSS/StyleSheet.css" rel="Stylesheet" type="text/css" />
    <script src="/Oimec/Script/My97DatePicker/WdatePicker.js"></script>
    <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 type="text/javascript" language="javascript">

        //获取对应控件的值
        function getValue(id) {
            return agent.Eles[document.getElementById(id).getAttribute("xform_xele_index")].getValue();
        }

        //对应控件赋值
        function setValue(id, value) {
            return agent.Eles[document.getElementById(id).getAttribute("xform_xele_index")].setValue(value);
        }


        //页面加载时获取下周最后一天，暂定为周日
        Ext.onReady(function () {
            var maxDate = new Date();
            /*
            ie不兼容
            var dtArr = maxDate.toLocaleDateString().split("/");
            var dt = new Date(dtArr[0], dtArr[1] - 1, dtArr[2]);
            */
            var XTextBox17 = getValue("XTextBox17");
            if (XTextBox17 == "人事行政部") {
                maxDate = "2099-01-01";
            }
            else {
                {
                    var dt = new Date(maxDate.getFullYear(), maxDate.getMonth(), maxDate.getDate());
                    //var days = 6 - dt.getDay() + 8 * 5 + 1;
                    var days = 40;
                    maxDate.setDate(maxDate.getDate() + days);
                }
            }
            document.getElementById("maxdate").value = maxDate;

        });



        //表单提交验证
        agent.on('beforeSubmit', function (post, acname) {
            /*
            验证控件验证完成才验证此时间段会议室是否被占用
            //创建人部门  会议室名称  会议主题  日期  开始 结束
            // XDropDownList2  XTextBox1  XTextBox2  XDateTimePicker3  XDropDownList4  XDropDownList5
            */

            var EMail = agent.Eles[document.getElementById("XDropDownListEMail").getAttribute("xform_xele_index")].getValue();
            var ConferenceTheme = agent.Eles[document.getElementById("XTextBox2").getAttribute("xform_xele_index")].getValue();
            var CardPassword = agent.Eles[document.getElementById("XTextBoxCardPassword").getAttribute("xform_xele_index")].getValue();
           var MembershipCode = agent.Eles[document.getElementById("XTextBoxMembershipCode").getAttribute("xform_xele_index")].getValue();
           var CardName = agent.Eles[document.getElementById("XTextBox1").getAttribute("xform_xele_index")].getValue();
            var ServiceExpiration = agent.Eles[document.getElementById("XTextBoxServiceExpiration").getAttribute("xform_xele_index")].getValue();
            var TimePicker = agent.Eles[document.getElementById("XDateTimePicker5").getAttribute("xform_xele_index")].getValue();

            

            if ( getValue("XDropDownList4") != "" && getValue("XDropDownList5") != "") {
                var reserveStartTime = getValue("XDropDownList4");
                var reserveEndTime = getValue("XDropDownList5");
                var ReserveDate = getValue("XDateTimePicker5");
                var RDate = ReserveDate.split(" ");
                var name = getValue("XTextBox3");

                if (isOccupy(reserveStartTime, reserveEndTime) > 0) {
                    alert("会议室该时间段已被占用,请重新选择！");
                    return false;
                }
                else {
                    if (Date.parse(ServiceExpiration) >= Date.parse(TimePicker)) {
                        var myDate = new Date();
                        var strid = myDate.getFullYear().toString()
                            + (myDate.getMonth() + 1).toString()
                            + myDate.getDate().toString()
                            + myDate.getHours().toString()
                            + myDate.getMinutes().toString()
                            + myDate.getSeconds().toString()
                            + myDate.getMilliseconds().toString();
                        setValue("XTextBox16", strid);

                        YZSoft.Ajax.request({
                            url: YZSoft.$url('Oimec/OA/Services/OCAppointmentHandler.ashx'),
                            method: 'POST',
                            async: false,
                            params: {
                                method: 'OnlineConferenceAppointmentRemind',
                                Email: EMail,
                                ConferenceTheme: ConferenceTheme,
                                CardPassword: CardPassword,
                                MembershipCode: MembershipCode,
                                CardName: CardName,
                                RDate: RDate,
                                reserveStartTime: reserveStartTime,
                                reserveEndTime: reserveEndTime,
                                name: name
                            },
                            success: function (action) {
                                var res = action.result;

                                if (res.state == true) {
                                    alert("会议预约成功，会议预约信息请查看邮件，或刷新页面后查看详细信息！");
                                }
                               
                            },
                            failure: function (action) {
                            }
                        });
                       
                    }
                    else {

                       // alert("网络会议卡有效日期必须大于网络会议日期");
                    }
                }
                

            }
        });

        //验证该会议室此时间段是否被占用
        function isOccupy(reserveStartTime, reserveEndTime) {

            var s;

            var meetId = getValue("XTextBox7");
            var reserveDate = getValue("XDateTimePicker3");
            var reserveStartTime = getValue("XDropDownList4");
            var reserveEndTime = getValue("XDropDownList5");
            var reserveDate = reserveDate.substring(0, 10);
            reserveStartTime = reserveStartTime + ":00";
            reserveEndTime = reserveEndTime + ":00";

            if (reserveDate != "" || meetId != "") {
                if (reserveStartTime != reserveEndTime) {
                    YZSoft.Ajax.request({
                        url: YZSoft.$url('Oimec/OA/Services/OCAppointmentHandler.ashx'),
                        method: 'POST',
                        async: false,
                        params: {
                            method: 'RMIsOccupy',
                            meetId: meetId,
                            reserveDate: reserveDate,
                            reserveStartTime: reserveStartTime,
                            reserveEndTime: reserveEndTime
                        },
                        success: function (action) {
                            var res = action.result;
                            if (res.state == true) {
                               // alert("会议室该时间段已被占用,请重新选择！");
                                //return false;
                                setValue("XTextBox15", "1");
                                s = 1;
                            }

                        },
                        failure: function (action) {
                        }
                    });
                }
            }

            return s;
        }


        function getWeek(startTime) {
            if (startTime != "") {
                var reserveDate = getValue("XDateTimePicker3");
                var reserveDate = reserveDate.substring(0, 10);
                var dtArr = reserveDate.split("-");
                var dt = new Date(dtArr[0], dtArr[1] - 1, dtArr[2]);
                var week = new Array("星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六");
                setValue("XLabel1", week[dt.getDay()]);

            }
        }

        function pickedFunc() {
            setValue("XDateTimePicker3", $dp.cal.getNewDateStr());
            XFormOnChange(agent.Eles[document.getElementById("XDateTimePicker3").getAttribute("xform_xele_index")]);
            document.getElementById("Wdate").blur();
        }

        function GetStartTime(ReserveStartTime, ReserveDate) {

            if (ReserveDate != "") {
                var StartTime = ReserveDate.substring(0, 11) + " " + ReserveStartTime;

                return StartTime;
            }

        }


        function GetEndTime(ReserveEndTime, ReserveDate) {

            if (ReserveDate != "") {
                var EndTime = ReserveDate.substring(0, 11) + " " + ReserveEndTime;

                return EndTime;
            }

        }


    </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 width="900" class="biaoti">
                        <asp:Label id="Label1" runat="server" text="视频会议预约"></asp:Label></td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="900" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td height="16" class="title1" colspan="4">
                        <asp:Label id="Label3" runat="server" text="基本信息"></asp:Label></td>
                </tr>
                <tr>
                    <td width="90" height="19" class="tsbottomlabel">
                        <asp:Label id="Label5" runat="server" text="创建人"></asp:Label>
                        <aspxform:XTextBox id="XTextBox10" runat="server" Width="20px" BorderWidth="1px" BorderColor="Gainsboro" XDataBind="DF_OA_OnlineConferenceAppointment.CreateName" ValueToDisplayText Max="0" Min="0" ReadOnly="True" HiddenInput="True"></aspxform:XTextBox>
                    </td>
                    <td width="360" class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox4" runat="server" Width="70%" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="createname" ValueToDisplayText ReadOnly="True"></aspxform:XTextBox>
                        <aspxform:XDateTimePicker id="XDateTimePicker1" runat="server" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="DF_OA_OnlineConferenceAppointment.CreateTime" HiddenExpress="1" DisplayOnly="True"></aspxform:XDateTimePicker>
                    </td>
                    <td width="90" class="tsbottomlabel">
                        <aspxform:XTextBox id="XTextBox17" runat="server" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="depart" HiddenInput="True"></aspxform:XTextBox>
                    </td>
                    <td width="360" class="tsbottomtext">
                       <div hidden="hidden"><aspxform:XDropDownList id="XDropDownList2" runat="server" Width="70%" XDataSource="TableName:DF_HR_DEPARTMENTAREA" ValueColumn="DepartmentName" DisplayColumn="DepartmentName" PromptText="--请选择对应部门--" DataMap="DepartmentName->depart"></aspxform:XDropDownList></div> 
                        <aspxform:XDropDownList id="XDropDownList3" runat="server" HiddenExpress="1" XDataSource="TableName:V_BPMSysUsers;Filter:Account->DF_OA_OnlineConferenceAppointment.CreateName" DataMap="DisplayName->createname"></aspxform:XDropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label10" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label4" runat="server" text="视频会议卡"></asp:Label> 
                        <aspxform:XTextBox id="XTextBox7" runat="server" Width="20px" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="DF_OA_OnlineConferenceAppointment.MeetID" ValueToDisplayText HiddenInput="True"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox1" runat="server" Width="70%" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="DF_OA_OnlineConferenceAppointment.CardName" ValueToDisplayText ReadOnly="True"></aspxform:XTextBox>
                        <aspxform:XDataBrowserButton id="XDataBrowserButton2" runat="server" Width="40px" XDataSource="TableName:DF_OA_NetworkConference;Filter:Enabled->1" DataMap="CardNumber->DF_OA_OnlineConferenceAppointment.MeetID;CardName->DF_OA_OnlineConferenceAppointment.CardName;Squares->fangshu;ServiceExpiration->ServiceExpiration;ManufacturerMeeting->DF_OA_OnlineConferenceAppointment.ManufacturerMeeting;CardPassword->DF_OA_OnlineConferenceAppointment.OCACardPassword;MembershipCode->DF_OA_OnlineConferenceAppointment.OCAMembershipCode" DisplayColumns="CardName:视频会议卡名称,300;CardNumber:视频会议卡编号,300;" Text="查询"></aspxform:XDataBrowserButton>
                        <aspxform:XDropDownList id="XDropDownList6" runat="server" XDataBind="department" HiddenExpress="1" XDataSource="TableName:V_DF_HR_BasicInfo;Filter:AttendanceKakaNO->DF_OA_OnlineConferenceAppointment.CreateName" ValueColumn="Department" DisplayColumn="Department"></aspxform:XDropDownList>
                        <aspxform:XTextBox id="XTextBoxCardPassword" runat="server" Width="70%" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="DF_OA_OnlineConferenceAppointment.OCACardPassword" ValueToDisplayText HiddenInput="true" ReadOnly="True"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBoxMembershipCode" runat="server" Width="70%" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="DF_OA_OnlineConferenceAppointment.OCAMembershipCode" ValueToDisplayText HiddenInput="true" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                       <div hidden="hidden"> <asp:Label id="Labelnumber" runat="server" text="参会方数"></asp:Label></div></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox55" runat="server" Width="100px" BorderWidth="1" BorderColor="#DCDCDC" HiddenInput="true" ReadOnly="true" XDataBind="fangshu" ValueToDisplayText></aspxform:XTextBox>
                    <aspxform:XTextBox id="XTextBoxServiceExpiration" runat="server" Width="100px" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="ServiceExpiration" HiddenInput="True" ValueToDisplayText></aspxform:XTextBox>
                        </td>
                </tr>
                <tr>
                    <td height="35" class="tsbottomlabel">
                        <asp:Label id="Label13" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label6" runat="server" text="会议主题"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox2" runat="server" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="DF_OA_OnlineConferenceAppointment.ConferenceTheme" ValueToDisplayText></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                       <div hidden="hidden"><asp:Label id="Label41" runat="server" text="厂商会议"></asp:Label></td></div> 
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox71" runat="server" Width="70%" HiddenInput="true" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="true" XDataBind="DF_OA_OnlineConferenceAppointment.ManufacturerMeeting" ValueToDisplayText></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="25" class="tsbottomlabel">
                        <asp:Label id="Label14" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label9" runat="server" text="日期"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XDateTimePicker id="XDateTimePicker5" runat="server" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="DF_OA_OnlineConferenceAppointment.ReserveDate"></aspxform:XDateTimePicker>
                        <%--<aspxform:XDateTimePicker id="XDateTimePicker4" runat="server" XDataBind="" BorderWidth="1" BorderColor="#DCDCDC" Width="70%" DisableBehavior="ReadOnly" BackColor="#E6F1F8" DisplayOnly="True"></aspxform:XDateTimePicker>--%><%--<input class="Wdate" id="Wdate" onfocus="WdatePicker({lang:'zh-cn',dateFmt:'yyyy-MM-dd',minDate:new Date(),maxDate:'#F{$dp.$D(\'maxdate\')}', onpicked:pickedFunc})" type="text" readonly />--%>&nbsp;<%--<aspxform:XTextBox id="XTextBox13" runat="server" Min="0" Max="0" ValueToDisplayText XDataBind="DF_OA_OnlineConferenceAppointment.ReserveDate" BorderColor="Gainsboro" BorderWidth="1px" Width="54px"></aspxform:XTextBox>--%> &nbsp;&nbsp;<aspxform:XLabel id="XLabel1" runat="server" BackColor="#d4e4fe"></aspxform:XLabel>
                        <aspxform:XTextBox id="XTextBox14" runat="server" Width="54px" BorderWidth="1px" BorderColor="Gainsboro" ValueToDisplayText Max="0" Min="0" HiddenInput="True" Express="javascript('getWeek',DF_OA_OnlineConferenceAppointment.StartTime)"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                    </td>
                    <td class="tsbottomtext">
                        <input id="maxdate" type="text" hidden="true" />&nbsp; 
                    </td>
                </tr>
                <tr>
                    <td height="19" class="tsbottomlabel">
                        <asp:Label id="Label15" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label11" runat="server" text="开始"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XDropDownList id="XDropDownList4" runat="server" Width="60px" XDataBind="DF_OA_OnlineConferenceAppointment.ReserveStartTime">
                            <asp:ListItem Selected="True" Value="08:30">08:30</asp:ListItem>
                            <asp:ListItem Value="09:00">09:00</asp:ListItem>
                            <asp:ListItem Value="09:30">09:30</asp:ListItem>
                            <asp:ListItem Value="10:00">10:00</asp:ListItem>
                            <asp:ListItem Value="10:30">10:30</asp:ListItem>
                            <asp:ListItem Value="11:00">11:00</asp:ListItem>
                            <asp:ListItem Value="11:30">11:30</asp:ListItem>
                            <asp:ListItem Value="12:00">12:00</asp:ListItem>
                            <asp:ListItem Value="12:30">12:30</asp:ListItem>
                            <asp:ListItem Value="13:00">13:00</asp:ListItem>
                            <asp:ListItem Value="13:30">13:30</asp:ListItem>
                            <asp:ListItem Value="14:00">14:00</asp:ListItem>
                            <asp:ListItem Value="14:30">14:30</asp:ListItem>
                            <asp:ListItem Value="15:00">15:00</asp:ListItem>
                            <asp:ListItem Value="15:30">15:30</asp:ListItem>
                            <asp:ListItem Value="16:00">16:00</asp:ListItem>
                            <asp:ListItem Value="16:30">16:30</asp:ListItem>
                            <asp:ListItem Value="17:00">17:00</asp:ListItem>
                            <asp:ListItem Value="17:30">17:30</asp:ListItem>
                            <asp:ListItem Value="18:00">18:00</asp:ListItem>
                            <asp:ListItem Value="18:30">18:30</asp:ListItem>
                        </aspxform:XDropDownList>
                        <aspxform:XTextBox id="XDateTimePicker3" runat="server" Width="50%" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="DF_OA_OnlineConferenceAppointment.StartTime" HiddenInput="True" Express="javascript('GetStartTime',DF_OA_OnlineConferenceAppointment.ReserveStartTime,DF_OA_OnlineConferenceAppointment.ReserveDate)"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox16" runat="server" Width="54px" BorderWidth="1px" BorderColor="Gainsboro" XDataBind="DF_OA_OnlineConferenceAppointment.Status" ValueToDisplayText Max="0" Min="0" HiddenInput="True"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label16" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label12" runat="server" text="结束"></asp:Label> 
                        <aspxform:XTextBox id="XTextBox15" runat="server" Width="54px" BorderWidth="1px" BorderColor="Gainsboro" ValueToDisplayText Max="0" Min="0" HiddenInput="True" Express="javascript('isOccupy',DF_OA_OnlineConferenceAppointment.ReserveStartTime,DF_OA_OnlineConferenceAppointment.ReserveEndTime)"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext">
                        <aspxform:XDropDownList id="XDropDownList5" runat="server" Width="60px" XDataBind="DF_OA_OnlineConferenceAppointment.ReserveEndTime">
                            <asp:ListItem Selected="True" Value="08:30">08:30</asp:ListItem>
                            <asp:ListItem Value="09:00">09:00</asp:ListItem>
                            <asp:ListItem Value="09:30">09:30</asp:ListItem>
                            <asp:ListItem Value="10:00">10:00</asp:ListItem>
                            <asp:ListItem Value="10:30">10:30</asp:ListItem>
                            <asp:ListItem Value="11:00">11:00</asp:ListItem>
                            <asp:ListItem Value="11:30">11:30</asp:ListItem>
                            <asp:ListItem Value="12:00">12:00</asp:ListItem>
                            <asp:ListItem Value="12:30">12:30</asp:ListItem>
                            <asp:ListItem Value="13:00">13:00</asp:ListItem>
                            <asp:ListItem Value="13:30">13:30</asp:ListItem>
                            <asp:ListItem Value="14:00">14:00</asp:ListItem>
                            <asp:ListItem Value="14:30">14:30</asp:ListItem>
                            <asp:ListItem Value="15:00">15:00</asp:ListItem>
                            <asp:ListItem Value="15:30">15:30</asp:ListItem>
                            <asp:ListItem Value="16:00">16:00</asp:ListItem>
                            <asp:ListItem Value="16:30">16:30</asp:ListItem>
                            <asp:ListItem Value="17:00">17:00</asp:ListItem>
                            <asp:ListItem Value="17:30">17:30</asp:ListItem>
                            <asp:ListItem Value="18:00">18:00</asp:ListItem>
                            <asp:ListItem Value="18:30">18:30</asp:ListItem>
                        </aspxform:XDropDownList>
                        <aspxform:XTextBox id="XDateTimePicker2" runat="server" Width="50%" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="DF_OA_OnlineConferenceAppointment.EndTime" HiddenInput="True" Express="javascript('GetEndTime',DF_OA_OnlineConferenceAppointment.ReserveEndTime,DF_OA_OnlineConferenceAppointment.ReserveDate)"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="31" class="tsbottomlabel">
                        <asp:Label id="Label2" runat="server" text="预约人"></asp:Label>
                        <aspxform:XTextBox id="XTextBox9" runat="server" HiddenInput="True" Width="60px" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="DFAccount" ValueToDisplayText  Express="DF_OA_OnlineConferenceAppointment.CreateName"></aspxform:XTextBox>
                      <div hidden="hidden"> <aspxform:XDropDownList id="XDropDownListEMail" runat="server" XDataBind="DF_OA_OnlineConferenceAppointment.AccountEMail" Width="150px" XDataSource="TableName:BPMSysUsers;Filter:Account->DFAccount" DisplayColumn="EMail" ValueColumn="EMail" ></aspxform:XDropDownList> </div> 
                        <div hidden="hidden"> <aspxform:XDropDownList id="XDropDownList1AccountID" runat="server" XDataBind="DF_OA_OnlineConferenceAppointment.AccountID" Width="150px" XDataSource="TableName:BPMSysUsers;Filter:Account->DFAccount" DisplayColumn="Account" ValueColumn="Account" ></aspxform:XDropDownList> </div> 
                    </td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox3" runat="server" Width="70%" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="name" ValueToDisplayText ReadOnly="True" Express="createname"></aspxform:XTextBox>
                        &nbsp;<aspxform:XSelectUserButton id="XSelectUserButton1" runat="server" Width="40px" XClass="YZSoft.Forms.Field.SelectUserButton" DataMap="Account->DFAccount;DisplayName->name" Text="查询" UseSubmitBehavior="False"></aspxform:XSelectUserButton>
                    </td>
                    <td class="tsbottomlabel" >
                        <asp:Label id="Label17" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label7" runat="server" text="预约人部门"></asp:Label> 
                        
                        <aspxform:XTextBox id="XTextBox11" runat="server" Width="20px" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="DF_OA_OnlineConferenceAppointment.Status" ValueToDisplayText HiddenInput="True">0</aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox12" runat="server" Width="20px" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="DF_OA_OnlineConferenceAppointment.CommFlay" ValueToDisplayText HiddenInput="True">0</aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext">
                         <aspxform:XDropDownList id="XDD7" runat="server" HiddenExpress="1" XDataSource="TableName:V_DF_HR_BasicInfo;Filter:AttendanceKakaNO->DFAccount" DataMap="Department->DF_OA_OnlineConferenceAppointment.Department;Name->DF_OA_OnlineConferenceAppointment.Account"></aspxform:XDropDownList>
                      
                        <aspxform:XTextBox id="XTextBoxDepartment" runat="server" Width="70%" BackColor="#d4e4fe" ReadOnly="true" XDataBind="DF_OA_OnlineConferenceAppointment.Department" ValueToDisplayText></aspxform:XTextBox>
                         <aspxform:XTextBox id="XTextBoxAccount" runat="server" Width="70%" BorderWidth="1" BorderColor="#DCDCDC" HiddenInput="True" XDataBind="DF_OA_OnlineConferenceAppointment.Account" ValueToDisplayText></aspxform:XTextBox>
                   
                    </td>
                </tr>
            </tbody>
        </table>
      
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator1" runat="server" ControlToValidate="XTextBox1" ErrorMessage="请选择会议室名称" Display="None" ForeColor="Red">请选择会议室名称</aspxform:XRequiredFieldValidator>
        &nbsp; 
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator2" runat="server" ControlToValidate="XTextBox2" ErrorMessage="请输入会议主题" Display="None" ForeColor="Red">请输入会议主题</aspxform:XRequiredFieldValidator>
        &nbsp; 
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator3" runat="server" ControlToValidate="XDateTimePicker3" ErrorMessage="请选择日期" Display="None" ForeColor="Red">请选择日期</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator4" runat="server" ControlToValidate="XDropDownList4" ErrorMessage="请选择开始时间" Display="None" ForeColor="Red">请选择开始时间</aspxform:XRequiredFieldValidator>
        &nbsp; 
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator5" runat="server" ControlToValidate="XDropDownList5" ErrorMessage="请选择结束时间" Display="None" ForeColor="Red">请选择结束时间</aspxform:XRequiredFieldValidator>
        &nbsp;&nbsp;&nbsp;&nbsp; 
        <aspxform:XCompareValidator id="XCompareValidator1" runat="server" ControlToValidate="XDropDownList5" ErrorMessage="结束时间必须大于开始时间" Display="None" ControlToCompare="XDropDownList4" Operator="GreaterThan">结束时间必须大于开始时间</aspxform:XCompareValidator>
        &nbsp;&nbsp; 
        <aspxform:XCompareValidator id="XCompareValidator3" runat="server" ControlToValidate="XTextBoxServiceExpiration" ErrorMessage="网络会议卡有效日期必须大于网络会议日期" Display="None" ControlToCompare="XDateTimePicker5" Operator="GreaterThanEqual">网络会议卡有效日期必须大于网络会议日期</aspxform:XCompareValidator>
        &nbsp;&nbsp; 
        <div>
        </div>
    </form>
</body>
</html>
