<%@ Page AutoEventWireup="true"  CodeBehind="Web25_ChangeUser_Manage.aspx.cs"  Inherits="Web25175_Hotel2.Web.Web25_ChangeUser_Manage"
    Language="C#" %>

<!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 id="Head1" runat="server">
    <title>交班管理</title>
    <script language="javascript" src="js/Web25175_Hotel2.v1.1.js" type="text/javascript"></script>
    <script language="javascript" src="js/Web25175_Hotel2.operate.v1.1.js" type="text/javascript"></script>
    <script language="javascript" src="js/Web25175_Hotel2.calendar.js" type="text/javascript"></script>
    <script language="javascript" src="js/js.Btns.js" type="text/javascript"></script>
    <link href="css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <!--M:btnInsert$Web25_ChangeUser_Operate.aspx,btnUpdate$Web25_ChangeUser_Operate.aspx?,btnDelete,btnView$Web25_ChangeUser_View.aspx?,search,State-->
    <form id="form1" runat="server" autocomplete="off">
        <div class="OperateTitle">
            <div>
                <asp:Label ID="lblManage" runat="server" Text="交班管理"></asp:Label>
            </div>
        </div>
        <div id="search" runat="server" text="查询">
            <!-- 查询栏 -->
            <table class="SearchTable">
                <tr class="FFtr">
                    <td align="left">
                        <asp:Label ID="lblA_NowUserName" runat="server" Text="交班员工"></asp:Label>：<asp:TextBox ID="txtA_NowUserName" runat="server" Width="100px" CssClass="textbox"></asp:TextBox>
                        <asp:Label ID="lblA_NowDate" runat="server" Text="交班时间"></asp:Label>：从<asp:TextBox ID="txtA_NowDate_T1" runat="server" Width="100px"></asp:TextBox>至<asp:TextBox ID="txtA_NowDate_T2" runat="server" Width="100px"></asp:TextBox>
                        <asp:Label ID="lblA_UserName" runat="server" Text="接班员工"></asp:Label>：<asp:TextBox ID="txtA_UserName" runat="server" Width="100px" CssClass="textbox"></asp:TextBox>

                    </td>
                </tr>
                <tr class="F7tr">
                    <td align="left">
                        <asp:Label ID="lblA_State" runat="server" Text="状态"></asp:Label>：
                        <asp:DropDownList ID="txtA_State" runat="server" CssClass="dropdownlist">
                            <asp:ListItem Value=" ">所有状态</asp:ListItem>
                            <asp:ListItem Value="已交班">已交班</asp:ListItem>
                            <asp:ListItem Value="未交班">未交班</asp:ListItem>
                        </asp:DropDownList>
                        <asp:Button ID="btnSearch" runat="server" OnClick="btnSearch_Click" Text="查询" CssClass="btnSearch" />

                    </td>
                </tr>
            </table>
        </div>
        <div id="operate" runat="server">
            <!-- 操作栏 -->
            <div id="btns">
                <div style="width: auto; float: left; padding-right: 8px;">
                    <asp:Button ID="btnInsert" runat="server" CssClass="btnInsert" OnClick="btnInsert_Click"
                        OnClientClick='return Operat.Insert("交班管理","Web25_ChangeUser_Operate.aspx",600,330);'
                        Text="添加" />
                    <asp:Button ID="btnUpdate" runat="server" CssClass="btnUpdate" OnClick="btnUpdate_Click"
                        OnClientClick='return Operat.Update("交班管理","Web25_ChangeUser_Operate.aspx?ID=",600,330);'
                        Text="修改" />
                    <asp:Button ID="btnDelete" runat="server" CssClass="btnDelete" OnClick="btnDelete_Click"
                        OnClientClick='return Operat.Delete();' Text="删除" />
                    <asp:Button ID="btnView" runat="server" CssClass="btnView" OnClientClick='return Operat.View("交班管理","Web25_ChangeUser_View.aspx?ID=",600,330);'
                        Text="查看" />
                </div>
                <div id="State" runat="server" class="btnsbtn" text="状态">
                    <div class="btnspanel">
                        <div class="btnstitle">
                            状态</div>
                        <div class="btnsmenuhide" group='btnState0'>
                            <asp:Button ID="btnState0" runat="server" CssClass='btnsstyle' OnClick="btnState_Click" CommandArgument="已交班"
                                Text="已交班" Width="100px" /></div>
                        <div class="btnsmenuhide" group='btnState1'>
                            <asp:Button ID="btnState1" runat="server" CssClass='btnsstyle' OnClick="btnState_Click" CommandArgument="未交班"
                                Text="未交班" Width="100px" /></div>

                    </div>
                </div>
                <div style="clear:both"></div>
            </div>
        </div>
        <div id="content" runat="server">
            <!-- 内容栏 -->
            <script>var chk = new Array();</script>
            <Web25175_Hotel2:GridView ID="GridView1" runat="server" AllowSorting="True" AutoGenerateColumns="False"
                CssClass="gv" GetSort="" GridLines="Horizontal" OnRowDataBound="GridView1_RowDataBound"
                OnSubSort="GridView1_SubSort" Width="100%" IsGradient="True" 
                EnableModelValidation="True" ShowHeader="False">
                <RowStyle CssClass="gvRow" />
                <HeaderStyle CssClass="gvHeader" />
                <AlternatingRowStyle CssClass="gvAlternatingRow" />
                <Columns>
                    <asp:TemplateField HeaderText="选择">
                        <headertemplate>
                            <input  onclick="Operat.AllCancel(this)" type=checkbox />
                        </headertemplate>
                        <itemstyle width="30px" />
                        <itemtemplate>
                             <asp:CheckBox id="cboxSelect" runat="server"></asp:CheckBox>
                             <asp:Literal id="cboxHelp" runat="server"></asp:Literal> 
                             <asp:HiddenField runat="server" id="HFID" Value='<%# Eval("A_ID")%>'></asp:HiddenField>
                         
                        </itemtemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="交班员工" SortExpression="A_NowUserName">
                         <itemstyle width="100px" />
                         <itemtemplate>
                            <asp:Label id="lblA_NowUserName_gv" runat="server" Text='<%# Eval("A_NowUserName")%>'></asp:Label>
                         </itemtemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="交班时间" SortExpression="A_NowDate">
                         <itemstyle width="100px" />
                         <itemtemplate>
                            <asp:Label id="lblA_NowDate_gv" runat="server" Text='<%# Eval("A_NowDate").ToString().Trim()!=""?Convert.ToDateTime(Eval("A_NowDate").ToString()).ToString("yyyy-MM-dd"):""%>'></asp:Label>
                         </itemtemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="本班应交接金额" SortExpression="A_NowShouldAmount">
                         <itemstyle width="100px" />
                         <itemtemplate>
                            <asp:Label id="lblA_NowShouldAmount_gv" runat="server" Text='<%# Eval("A_NowShouldAmount").ToString().Trim()!=""?Convert.ToSingle(Eval("A_NowShouldAmount").ToString()).ToString("F"):"" %>'></asp:Label>
                         </itemtemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="上交财务金额" SortExpression="A_NowUpAmount">
                         <itemstyle width="100px" />
                         <itemtemplate>
                            <asp:Label id="lblA_NowUpAmount_gv" runat="server" Text='<%# Eval("A_NowUpAmount").ToString().Trim()!=""?Convert.ToSingle(Eval("A_NowUpAmount").ToString()).ToString("F"):"" %>'></asp:Label>
                         </itemtemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="财务下放金额" SortExpression="A_NowDownAmount">
                         <itemstyle width="100px" />
                         <itemtemplate>
                            <asp:Label id="lblA_NowDownAmount_gv" runat="server" Text='<%# Eval("A_NowDownAmount").ToString().Trim()!=""?Convert.ToSingle(Eval("A_NowDownAmount").ToString()).ToString("F"):"" %>'></asp:Label>
                         </itemtemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="接班员工" SortExpression="A_UserName">
                         <itemstyle width="100px" />
                         <itemtemplate>
                            <asp:Label id="lblA_UserName_gv" runat="server" Text='<%# Eval("A_UserName")%>'></asp:Label>
                         </itemtemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="前班转到本班金额" SortExpression="A_Amount">
                         <itemstyle width="100px" />
                         <itemtemplate>
                            <asp:Label id="lblA_Amount_gv" runat="server" Text='<%# Eval("A_Amount").ToString().Trim()!=""?Convert.ToSingle(Eval("A_Amount").ToString()).ToString("F"):"" %>'></asp:Label>
                         </itemtemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="状态" SortExpression="A_State">
                         <itemstyle width="100px" />
                         <itemtemplate>
                            <asp:Label id="lblA_State_gv" runat="server" Text='<%# Eval("A_State")%>'></asp:Label>
                         </itemtemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="查看台账">
                        <itemstyle width="100px" />
                        <ItemTemplate>
                            <a href="Web25_ChangeUser_Report.aspx?id=<%# Eval("A_ID") %>">查看台账</a>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField>
                         <itemtemplate>
                         </itemtemplate>
                    </asp:TemplateField>
                </Columns>
            </Web25175_Hotel2:GridView>
        </div>
        <div id='pager' runat="server" class='pager'>
            <Web25175_Hotel2:Pager ID="Pager1" runat="server" OnSubPager="Pager1_SubPager" PageBind="BindData"
                PagesCss="PageOff" PagesCssFirst="PageFirst" PagesCssLast="PageLast" PagesCssNext="PageNext"
                PagesCssOn="PageOn" PagesCssPrev="PagePrev" PageSize="20" />
        </div>
    </form>
    <script type="text/javascript">
    uiReady(function() {
        InitBtnsGroup();
        uiCalendar_Setup("txtA_NowDate_T1","yyyy-MM-dd");
        uiCalendar_Setup("txtA_NowDate_T2","yyyy-MM-dd");

    })
    </script>
</body>
</html>

