<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="StaffGo_Add.aspx.cs" Inherits="TotCms.Web.Office.StaffGo.StaffGo_Add" ValidateRequest="false"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../style/global.css" rel="stylesheet" type="text/css" />
    <script src="../js/common.js" type="text/javascript"></script>
    <script src="../../js/jquery-1.5.1.min.js" type="text/javascript"></script>
    <script src="../../js/jquery-ui-1.8.10/js/jquery-ui-1.8.10.custom.min.js" type="text/javascript"></script>
    <link href="../../js/jquery-ui-1.8.10/css/ui-lightness/jquery-ui-1.8.10.custom.css" rel="stylesheet" type="text/css" />
    <script src="../../ckeditor/ckeditor.js" type="text/javascript"></script>
    <script src="../../js/jquery-ui-1.8.10/js/jquery.ui.core.min.js" type="text/javascript"></script>
    <script src="../../js/jquery-ui-1.8.10/js/jquery.ui.widget.min.js" type="text/javascript"></script>
    <script src="../../js/jquery-ui-1.8.10/js/jquery.ui.datepicker.min.js" type="text/javascript"></script>
    <script src="../../js/jquery-ui-1.8.10/js/i18n/jquery.ui.datepicker-zh-CN.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $('.dates').datepicker($.datepicker.regional["zh-CN"]);
        });
        $(function () {
            $("#dialog:ui-dialog").dialog("destroy");
            $("#dialog-win").dialog({
                autoOpen: false,
                height: 350,
                width: 450,
                modal: true,
                buttons: {
                    "关闭窗口": function () {
                        $(this).dialog("close");
                    }
                },
                close: function () {

                }
            });

            $("#selclass").click(function () {
                $("#dialog-win").dialog("open");
            });
        });
        function CloseFrame() {
            $("#dialog-win").dialog("close");
        }
        function ReturnValue(v, t) {
            $('#tbStaffs').val(t);
            $('#tbStaffId').val(v);
            CloseFrame();
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="dialog-win" title="选择员工">
        <iframe src="../Staff/Staff_Select.aspx" width="370" height="350" frameborder="0"
            scrolling="auto"></iframe>
    </div>
    <div>
        <table cellpadding="0" cellspacing="1" border="0" width="100%" class="border">
            <tr class="suphead">
                <td colspan="2">
                    人员去向登记
                </td>
            </tr>
            <tr>
                <td width="120"  class="fields_text">姓名：</td>
                <td width="85%" class="fields_input">
                    <asp:TextBox ID="tbStaffs" runat="server" ></asp:TextBox>
                    <asp:TextBox ID="tbStaffId" runat="server" CssClass="hidden"></asp:TextBox>
                    <span class="fields_text">
                    <input id="selclass" name="selclass" type="button" value="选择" class="selclass" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                      ControlToValidate="tbStaffs" ErrorMessage="请选择员工"></asp:RequiredFieldValidator>
                </span></td>
            </tr>
             <tr>
                <td class="fields_text">
                    去向信息：
                </td>
                <td class="fields_input">
                    <asp:TextBox ID="tbSubject" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="fields_text">
                    开始时间：
                </td>
                <td class="fields_input" >
                    <asp:TextBox ID="tbStartDate" runat="server" CssClass="dates"></asp:TextBox>
                    <asp:DropDownList ID="ddlStart" runat="server">
                        <asp:ListItem Text="1" Value="01:00"></asp:ListItem>
                        <asp:ListItem Text="2" Value="02:00"></asp:ListItem>
                        <asp:ListItem Text="3" Value="03:00"></asp:ListItem>
                        <asp:ListItem Text="4" Value="04:00"></asp:ListItem>
                        <asp:ListItem Text="5" Value="05:00"></asp:ListItem>
                        <asp:ListItem Text="6" Value="06:00"></asp:ListItem>
                        <asp:ListItem Text="7" Value="07:00"></asp:ListItem>
                        <asp:ListItem Text="8" Value="08:00"></asp:ListItem>
                        <asp:ListItem Text="9" Value="09:00"></asp:ListItem>
                        <asp:ListItem Text="10" Value="10:00"></asp:ListItem>
                        <asp:ListItem Text="11" Value="11:00"></asp:ListItem>
                        <asp:ListItem Text="12" Value="12:00"></asp:ListItem>
                        <asp:ListItem Text="13" Value="13:00"></asp:ListItem>
                        <asp:ListItem Text="14" Value="14:00"></asp:ListItem>
                        <asp:ListItem Text="15" Value="15:00"></asp:ListItem>
                        <asp:ListItem Text="16" Value="16:00"></asp:ListItem>
                        <asp:ListItem Text="17" Value="17:00"></asp:ListItem>
                        <asp:ListItem Text="18" Value="18:00"></asp:ListItem>
                        <asp:ListItem Text="19" Value="19:00"></asp:ListItem>
                        <asp:ListItem Text="20" Value="20:00"></asp:ListItem>
                        <asp:ListItem Text="21" Value="21:00"></asp:ListItem>
                        <asp:ListItem Text="22" Value="22:00"></asp:ListItem>
                        <asp:ListItem Text="23" Value="23:00"></asp:ListItem>
                    </asp:DropDownList>
                    时
                 
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                      ControlToValidate="tbStartDate" ErrorMessage="开始时间不能为空"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="fields_text">
                    结束时间：
                </td>
                <td class="fields_input">
                    <asp:TextBox ID="tbEndDate" runat="server" CssClass="dates"></asp:TextBox>
                     <asp:DropDownList ID="ddlEnd" runat="server">
                        <asp:ListItem Text="1" Value="01:00"></asp:ListItem>
                        <asp:ListItem Text="2" Value="02:00"></asp:ListItem>
                        <asp:ListItem Text="3" Value="03:00"></asp:ListItem>
                        <asp:ListItem Text="4" Value="04:00"></asp:ListItem>
                        <asp:ListItem Text="5" Value="05:00"></asp:ListItem>
                        <asp:ListItem Text="6" Value="06:00"></asp:ListItem>
                        <asp:ListItem Text="7" Value="07:00"></asp:ListItem>
                        <asp:ListItem Text="8" Value="08:00"></asp:ListItem>
                        <asp:ListItem Text="9" Value="09:00"></asp:ListItem>
                        <asp:ListItem Text="10" Value="10:00"></asp:ListItem>
                        <asp:ListItem Text="11" Value="11:00"></asp:ListItem>
                        <asp:ListItem Text="12" Value="12:00"></asp:ListItem>
                        <asp:ListItem Text="13" Value="13:00"></asp:ListItem>
                        <asp:ListItem Text="14" Value="14:00"></asp:ListItem>
                        <asp:ListItem Text="15" Value="15:00"></asp:ListItem>
                        <asp:ListItem Text="16" Value="16:00"></asp:ListItem>
                        <asp:ListItem Text="17" Value="17:00"></asp:ListItem>
                        <asp:ListItem Text="18" Value="18:00"></asp:ListItem>
                        <asp:ListItem Text="19" Value="19:00"></asp:ListItem>
                        <asp:ListItem Text="20" Value="20:00"></asp:ListItem>
                        <asp:ListItem Text="21" Value="21:00"></asp:ListItem>
                        <asp:ListItem Text="22" Value="22:00"></asp:ListItem>
                        <asp:ListItem Text="23" Value="23:00"></asp:ListItem>
                    </asp:DropDownList>
                时  
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                      ControlToValidate="tbEndDate" ErrorMessage="结束时间不能为空"></asp:RequiredFieldValidator>
                </td>
            </tr>
           <%-- <tr>
                <td  class="fields_text">
                    <input id="Button1" name="selclass" type="button" value="发提醒给:" class="selclass" />
                </td>
                <td>
                    <asp:TextBox ID="TextBox1" runat="server" ></asp:TextBox>
                    <asp:TextBox ID="TextBox2" runat="server" CssClass="hidden"></asp:TextBox>
                </td>
            </tr>--%>
            <tr>
                <td class="fields_text">
                    去向地点与说明:
                </td>
                <td class="fields_input"><asp:TextBox ID="Content" runat="server" TextMode="MultiLine" Height="600px" Width="500px"
                        CssClass="hidden" OnLoad="Content_Load"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="fields_text">
                    联系方法:
                </td>
                <td class="fields_input">
                    <asp:TextBox ID="tbContact" runat="server"></asp:TextBox>
                   <%-- <asp:CheckBox ID="cbSave" runat="server" />同时保存到日程安排--%>
                </td>
            </tr>
            <tr>
                <td height="22" colspan="2" align="center">
                    录入者：
                      <asp:Label ID="lbWriter" runat="server"></asp:Label>
                      <asp:Label ID="lbStaffId" runat="server" CssClass="hidden"></asp:Label>
                  日期：                    <asp:Label ID="lbPubDate" runat="server"></asp:Label>                </td>
            </tr>
            <tr>
                <td align="center">&nbsp;</td>
                <td height="32" align="left"><asp:Button CssClass="button_blue" ID="btnSubmit" runat="server" Text="确 定" OnClick="btnSubmit_Click" /></td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
