<%@ page language="C#" autoeventwireup="true" inherits="admin_serviceorder, xnzy-radius-web_deploy" %>

<!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>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table style="width: 1000px; height: 220px; font-size: 9pt; " 
            cellpadding="0" cellspacing="0" align="center" border="1" 
            bordercolor="#cccc66">
            <tr>
                <td style="vertical-align: top; text-align: center;">
                        <asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Size="16pt" 
                            ForeColor="#CC3300" Text="系统服务订单处理" Font-Underline="True"></asp:Label>
                </td>
            </tr>
            <tr>
                <td style="vertical-align: top; text-align: left;">
                        宽带帐号：<asp:TextBox ID="TextBox1" runat="server" MaxLength="20" Width="150px"></asp:TextBox>
                        <asp:Button ID="Button2" runat="server" onclick="Button2_Click1" Text="查 询" 
                            Width="100px" />
                </td>
            </tr>
            <tr>
                <td style="vertical-align: top; text-align: center;">
                        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                            CellPadding="4" ForeColor="#333333" GridLines="None" Width="100%" 
                            Height="28px" onrowcommand="GridView1_RowCommand" PageSize="25" 
                            onpageindexchanging="GridView1_PageIndexChanging" AllowPaging="True">
                            <PagerSettings FirstPageText="第一页" LastPageText="结尾页" NextPageText="下一页" 
                                PreviousPageText="前一页" />
                            <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                            <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
                            <Columns>
                                <asp:BoundField DataField="id" HeaderText="ID" >
                                </asp:BoundField>
                                <asp:BoundField DataField="user_name" HeaderText="宽带帐号" />
                                <asp:BoundField DataField="user_begindate" HeaderText="开始日期" />
                                <asp:BoundField HeaderText="结束日期" DataField="user_enddate" />
                                <asp:BoundField DataField="user_Stat" HeaderText="状态" />
                                <asp:BoundField DataField="mac" HeaderText="捆绑" />
                                <asp:BoundField DataField="UserMac" HeaderText="MAC地址" />
                                <asp:BoundField DataField="Rate" HeaderText="带宽" />
                                <asp:BoundField DataField="count" HeaderText="订单费用(元)" />
                                <asp:TemplateField HeaderText="操作">
                                       <itemtemplate>
                                               <asp:LinkButton ID="LinkButton1" runat="server" 
                                                   CommandArgument='<%# Eval("id") %>' CommandName="DelCmd" 
                                                   onclientclick="return confirm('您确定要删除该定单吗？');">删除</asp:LinkButton>
                                        </itemtemplate>
                                </asp:TemplateField>
                                        
                                <asp:HyperLinkField DataNavigateUrlFields="id" 
                                    DataNavigateUrlFormatString="Serviceorderedit.aspx?id={0}" HeaderText="修改" 
                                    Text="修改" />
                                        
                            </Columns>
                            <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                            <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                            <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                            <AlternatingRowStyle BackColor="White" />
                            
                            <PagerTemplate><div style="text-align:center; color:Blue">
      <asp:LinkButton ID="cmdFirstPage" runat="server" CommandName="Page" CommandArgument="First"
       Enabled="<%# ((GridView)Container.Parent.Parent).PageIndex!=0 %>">首页</asp:LinkButton>
      <asp:LinkButton ID="cmdPreview" runat="server" CommandArgument="Prev" CommandName="Page"
       Enabled="<%# ((GridView)Container.Parent.Parent).PageIndex!=0 %>">前页</asp:LinkButton>
      第<asp:Label ID="lblcurPage" ForeColor="Blue" runat="server" Text='<%# ((GridView)Container.Parent.Parent).PageIndex+1 %>'></asp:Label>页/共<asp:Label
       ID="lblPageCount" ForeColor="blue" runat="server" Text='<%# ((GridView)Container.Parent.Parent).PageCount %>'></asp:Label>页
      <asp:LinkButton ID="cmdNext" runat="server" CommandName="Page" CommandArgument="Next"
       Enabled="<%# ((GridView)Container.Parent.Parent).PageIndex!=((GridView)Container.Parent.Parent).PageCount-1 %>">后页</asp:LinkButton>
      <asp:LinkButton ID="cmdLastPage" runat="server" CommandArgument="Last" CommandName="Page"
       Enabled="<%# ((GridView)Container.Parent.Parent).PageIndex!=((GridView)Container.Parent.Parent).PageCount-1 %>">尾页</asp:LinkButton>
       &nbsp;<asp:TextBox ID="txtGoPage" runat="server" Text='<%# ((GridView)Container.Parent.Parent).PageIndex+1 %>'
       Width="32px" CssClass="inputmini"></asp:TextBox>页<asp:Button ID="Turnbutton" runat="server"
           OnClick="Turn_Click" Text="转到" /></div>
</PagerTemplate>

                            
                        </asp:GridView>
                </td>
            </tr>
            <tr>
                <td style="vertical-align: top; text-align: center;">
                    <asp:Label ID="Label2" runat="server" Font-Bold="True" 
                        Text="建议您只处理过期的服务订单，过期判断，就是看 结束日期和状态!" Font-Size="12pt" 
                        ForeColor="#FF3300"></asp:Label>
                    <br />
                </td>
            </tr>
            <tr>
                <td style="vertical-align: top; text-align: right;">
                    <asp:Button ID="delbutton" runat="server" 
                        Height="39px" onclick="delbutton_Click" 
                        Text="删除过期订单" Width="100px" />
                    <asp:Button ID="Button1" runat="server" Height="39px" onclick="Button1_Click" 
                        Text="返回主管理" Width="100px" />
                </td>
            </tr>
            </table>
    </div>
    </form>
</body>
</html>

