<%@ 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=EmulateIE8" />
    <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-RIGHT: 0px;
            PADDING-LEFT: 2px;
            PADDING-BOTTOM: 0px;
        }

            TD.NoPadding {
                PADDING-RIGHT: 0px;
                PADDING-LEFT: 0px;
                PADDING-BOTTOM: 0px;
                PADDING-TOP: 0px;
            }

        INPUT {
            HEIGHT: 20px;
        }

            INPUT.UL {
                BORDER-RIGHT: medium none;
                BORDER-TOP: medium none;
                BORDER-LEFT: medium none;
                BORDER-BOTTOM: #33ff33 1px solid;
            }

        TEXTAREA {
            FONT-SIZE: 12px;
        }
    </style>
    <script type="text/javascript" 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;
                    maxDate.setDate(maxDate.getDate() + days);
                }
            }
            document.getElementById("maxdate").value = maxDate;

        });

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


                if (isOccupy(reserveStartTime, reserveEndTime) > 0) {
                    alert("会议室该时间段已被占用,请重新选择！");
                    return false;
                }
                else {
                    /*
                    表单提交时将会议预约信息插入到mySQL数据库
                    参数说明：创建人账号、会议主题、会议室编号、创建会议日期、会议预约日期、开始时间、结束时间、预订人姓名、预订人账号、参与人账号信息
                    */
                    var array = [];
                    var tableObj = document.getElementById("tableAttendee");
                    for (var i = 1; i < tableObj.rows.length; i++) {    //遍历Table的所有Row //遍历Row中的每一列
                        var obj = {};
                        var Attender = agent.Eles[tableObj.rows[i].cells[0].children[0].getAttribute("xform_xele_index")].getValue();
                        var AttenderType = agent.Eles[tableObj.rows[i].cells[0].children[1].getAttribute("xform_xele_index")].getValue();
                        var AttenderID = agent.Eles[tableObj.rows[i].cells[0].children[2].getAttribute("xform_xele_index")].getValue();
                        obj['Attender'] = Attender;
                        obj['AttenderType'] = AttenderType;
                        obj['AttenderID'] = AttenderID;

                        array.push(obj);
                    }
                    var aa = JSON.stringify(array);

                    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({
                        async: false,
                        url: YZSoft.$url('Oimec/ApiServices/OAAPIHandler.ashx'),
                        method: 'POST',
                        params: {
                            method: 'addmeet',
                            id: strid,
                            Title: getValue("XTextBox2"),
                            MeetingRoomID: getValue("XTextBox7"),
                            // CreateMeetingDate: new Date().toLocaleString,
                            MeetingDate: getValue("XDateTimePicker3").substring(0, 10),
                            StartTime: getValue("XDropDownList4") + ":00",
                            EndTime: getValue("XDropDownList5") + ":00",
                            BookPerson: getValue("XTextBox3"),  //预订人
                            BookPAccount: getValue("XTextBox9"), //预订人账号
                            AttenderArray: aa
                        },
                        success: function (action) {
                            var res = action.result;
                            //alert(action.result.result);

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

                }
            }
        });

        //验证该会议室此时间段是否被占用
        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/ApiServices/OAAPIHandler.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();
        }

    </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="1000" class="biaoti">
                        <asp:Label id="Label1" runat="server" text="会 议 预 约"></asp:Label></td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1062" 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="116" 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_Meeting_Reserve.CreateAccount" ValueToDisplayText Max="0" Min="0" ReadOnly="True" HiddenInput="True"></aspxform:XTextBox>
                    </td>
                    <td width="411" 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_Meeting_Reserve.addtime" HiddenExpress="1" DisplayOnly="True"></aspxform:XDateTimePicker>
                    </td>
                    <td width="116" 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="XTextBox17" runat="server" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="depart" HiddenInput="True"></aspxform:XTextBox>
                    </td>
                    <td width="411" class="tsbottomtext">
                        <aspxform:XDropDownList id="XDropDownList2" runat="server" Width="70%" XDataBind="DF_OA_Meeting_Reserve.department" XDataSource="TableName:DF_HR_DEPARTMENTAREA" ValueColumn="DepartmentName" DisplayColumn="DepartmentName" PromptText="--请选择--" DataMap="DepartmentName->depart"></aspxform:XDropDownList>
                        <aspxform:XDropDownList id="XDropDownList3" runat="server" HiddenExpress="1" XDataSource="TableName:V_BPMSysUsers;Filter:Account->DF_OA_Meeting_Reserve.CreateAccount" DataMap="DisplayName->createname;Department->DF_OA_Meeting_Reserve.department"></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_Meeting_Reserve.meetId" ValueToDisplayText HiddenInput="True"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox1" runat="server" Width="70%" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="title" ValueToDisplayText ReadOnly="True"></aspxform:XTextBox>
                        <aspxform:XDropDownList id="XDropDownList1" runat="server" HiddenExpress="1" XDataSource="TableName:DF_OA_Meeting;Filter:RoomID->DF_OA_Meeting_Reserve.meetId" DataMap="title->title"></aspxform:XDropDownList>
                        <aspxform:XDataBrowserButton id="XDataBrowserButton1" runat="server" Width="40px" HiddenExpress='department!="人事行政部"' XDataSource="TableName:DF_OA_Meeting;Filter:DeleteMark->0" DataMap="title->title;RoomID->DF_OA_Meeting_Reserve.meetId" DisplayColumns="title:会议室名称,100;RoomID:会议室编号,100" Text="查询"></aspxform:XDataBrowserButton>
                        <aspxform:XDataBrowserButton id="XDataBrowserButton2" runat="server" Width="40px" HiddenExpress='department=="人事行政部"' XDataSource="TableName:DF_OA_Meeting;Filter:DeleteMark->0,IsLimits->0" DataMap="title->title;RoomID->DF_OA_Meeting_Reserve.meetId" DisplayColumns="title:会议室名称,100;RoomID:会议室编号,100" Text="查询"></aspxform:XDataBrowserButton>
                        <aspxform:XDropDownList id="XDropDownList6" runat="server" XDataBind="department" HiddenExpress="1" XDataSource="TableName:V_DF_HR_BasicInfo;Filter:AttendanceKakaNO->DF_OA_Meeting_Reserve.CreateAccount" ValueColumn="Department" DisplayColumn="Department"></aspxform:XDropDownList>
                    </td>
                    <td class="tsbottomlabel">
                    </td>
                    <td class="tsbottomtext">
                    </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_Meeting_Reserve.title" ValueToDisplayText></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                    </td>
                    <td class="tsbottomtext">
                        <input id="maxdate" type="text" hidden="true" />&nbsp; 
                    </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">
                        <%--<input class="Wdate" onfocus="WdatePicker({lang:'zh-cn',dateFmt:'yyyy-MM-dd',minDate:new Date(),maxDate:'#F{$dp.$D(\'maxdate\')}', onpicked:pickedFunc,dchanging:cDayFunc, Mchanging:cMonthFunc, ychanging:cYearFunc, dchanged:cDayFunc, Mchanged:cMonthFunc, ychanged:cYearFunc})" type="text" />--%>
                        <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" Width="54px" BorderWidth="1px" BorderColor="Gainsboro" XDataBind="DF_OA_Meeting_Reserve.reserveDate" ValueToDisplayText Max="0" Min="0" HiddenInput="True"></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_Meeting_Reserve.StartTime)"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                    </td>
                    <td class="tsbottomtext">
                    </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_Meeting_Reserve.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:XDateTimePicker id="XDateTimePicker3" runat="server" Width="50%" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="DF_OA_Meeting_Reserve.StartTime" HiddenExpress="1"></aspxform:XDateTimePicker>
                        <aspxform:XTextBox id="XTextBox16" runat="server" Width="54px" BorderWidth="1px" BorderColor="Gainsboro" XDataBind="DF_OA_Meeting_Reserve.RecordID" 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_Meeting_Reserve.reserveStartTime,DF_OA_Meeting_Reserve.reserveEndTime)"></aspxform:XTextBox>
                        <%--<aspxform:XTextBox id="XTextBox15" runat="server" HiddenInput="True" Min="0" Max="0" ValueToDisplayText BorderColor="Gainsboro" BorderWidth="1px" Width="54px" ></aspxform:XTextBox>--%></td>
                    <td class="tsbottomtext">
                        <aspxform:XDropDownList id="XDropDownList5" runat="server" Width="60px" XDataBind="DF_OA_Meeting_Reserve.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:XDateTimePicker id="XDateTimePicker2" runat="server" Width="50%" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="DF_OA_Meeting_Reserve.EndTime" HiddenExpress="1" Express="DF_OA_Meeting_Reserve.StartTime"></aspxform:XDateTimePicker>
                    </td>
                </tr>
                <tr>
                    <td height="31" class="tsbottomlabel">
                        <asp:Label id="Label2" runat="server" text="预订人"></asp:Label>
                        <aspxform:XTextBox id="XTextBox9" runat="server" Width="20px" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="DF_OA_Meeting_Reserve.Account" ValueToDisplayText HiddenInput="True" Express="DF_OA_Meeting_Reserve.CreateAccount"></aspxform:XTextBox>
                    </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->DF_OA_Meeting_Reserve.Account;DisplayName->name" Text="查询" UseSubmitBehavior="False"></aspxform:XSelectUserButton>
                    </td>
                    <td class="tsbottomlabel">
                        <aspxform:XTextBox id="XTextBox11" runat="server" Width="20px" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="DF_OA_Meeting_Reserve.status" ValueToDisplayText HiddenInput="True">0</aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox12" runat="server" Width="20px" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="DF_OA_Meeting_Reserve.commFlay" ValueToDisplayText HiddenInput="True">0</aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext">
                    </td>
                </tr>
                <tr>
                    <td height="19" class="tsbottomlabel">
                        <asp:Label id="Label8" runat="server" text="参会人员"></asp:Label></td>
                    <td class="tsbottomtext">
                        <table width="100%" id="tableAttendee" border="0" cellspacing="0" cellpadding="0" dynamicarea="1,1">
                            <tbody>
                                <tr>
                                    <td>
                                        <aspxform:XCustomBrowserButton id="XCustomBrowserButton1" runat="server" Width="91px" XClass="Oimec.Dialogs.VoteGetDepartButton" DataMap="id->DF_OA_Meeting_Attender.AttenderID;name->DF_OA_Meeting_Attender.Attender" Text="按部门添加"></aspxform:XCustomBrowserButton>
                                        &nbsp;<aspxform:XSelectUserButton id="XSelectUserButton2" runat="server" Width="91px" DataMap="Account->DF_OA_Meeting_Attender.AttenderID;DisplayName->DF_OA_Meeting_Attender.Attender" Text="按员工添加" MultiSelect="True"></aspxform:XSelectUserButton>
                                        &nbsp; 
                                        <aspxform:XCustomBrowserButton id="XCustomBrowserButton2" runat="server" Width="91px" XClass="Oimec.Dialogs.VoterGroupButton" DataMap="ID->DF_OA_Meeting_Attender.AttenderID;GroupName->DF_OA_Meeting_Attender.Attender;Type->DF_OA_Meeting_Attender.AttenderType" Text="按组添加"></aspxform:XCustomBrowserButton>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="100%">
                                        <aspxform:XTextBox id="XTextBox6" runat="server" Width="70%" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="DF_OA_Meeting_Attender.Attender"></aspxform:XTextBox>
                                        <aspxform:XTextBox id="XTextBox8" runat="server" Width="20px" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="DF_OA_Meeting_Attender.AttenderType" HiddenInput="True"></aspxform:XTextBox>
                                        <aspxform:XTextBox id="XTextBox5" runat="server" Width="20px" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="DF_OA_Meeting_Attender.AttenderID" HiddenInput="True"></aspxform:XTextBox>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                    <td class="tsbottomlabel">
                    </td>
                    <td class="tsbottomtext">
                    </td>
                </tr>
            </tbody>
        </table>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator6" runat="server" ControlToValidate="XDropDownList2" ErrorMessage="请选择创建人部门" Display="None" ForeColor="Red">请选择创建人部门</aspxform:XRequiredFieldValidator>
        &nbsp; 
        <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" ValueToCompareExpress="DF_OA_Meeting_Reserve.reserveStartTime" Operator="GreaterThan">结束时间必须大于开始时间</aspxform:XCompareValidator>
        &nbsp; 
        <br />
        <p>
        </p>
        <p>
        </p>
        <p>
        </p>
        <p>
        </p>
    </form>
</body>
</html>
