⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.aspx

📁 oa办公系统
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Main.aspx.cs" Inherits="Main" %>

<!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="css.css" type="text/css" rel="Stylesheet" />
</head>
<body style="margin: 0 0 0 0">
    <form id="form1" runat="server">
        <table style="width: 100%; border-collapse: collapse" border="1" bordercolor="#BED393">
            <tr>
                <td colspan="2" align="center">
                    <font size="6px">用户考勤</font></td>
            </tr>
            <tr>
                <td align="center" colspan="2" style="background-color: #F6F9F0">
                    考勤信息→上班时间:<asp:Label ID="lab_on" runat="server" ForeColor="#C04000"></asp:Label>
                    &nbsp; 下班时间:<asp:Label ID="lab_off" runat="server" ForeColor="#C04000"></asp:Label></td>
            </tr>
            <tr>
                <td align="right">
                    现在时间:</td>
                <td>
                    <table style="width: 100%">
                        <tr>
                            <td style="width: 30%" align="left">
                                <span id="clock">

                                    <script language="javascript" src="js/time.js" type="text/javascript"></script>

                                </span>
                            </td>
                            <td align="right">
                                有效期为:<asp:Label ID="lab_startdate" runat="server"></asp:Label>到<asp:Label ID="lab_enddate"
                                    runat="server"></asp:Label></td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td colspan="2" style="height: 0">
                    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                    &nbsp; &nbsp; &nbsp; &nbsp;
                    <asp:Label ID="labmessage" runat="server" ForeColor="#C04000"></asp:Label></td>
            </tr>
            <tr>
                <td align="right" width="20%">
                    <font size="2px">迟到或早退的原因:</font>
                </td>
                <td>
                    <asp:TextBox ID="tmessage" runat="server" Height="167px" TextMode="MultiLine" Width="99%"></asp:TextBox></td>
            </tr>
            <tr>
                <td align="center" colspan="2">
                    <asp:Button ID="btngowork" runat="server" Text="上班" OnClick="btngowork_Click" />
                    <asp:Button ID="btnoffwork" runat="server" Text="下班" OnClick="btnoffwork_Click" />
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <table width="100%">
                        <tr>
                            <td>当月本人的考勤信息:</td>
                        </tr>
                        <tr>
                            <td><asp:Label ID="lablater" runat="server" ></asp:Label>&nbsp;&nbsp;<asp:Label ID="labearly" runat="server" ></asp:Label>
                                &nbsp; &nbsp;<asp:Label ID="labnowork" runat="server" ></asp:Label></td>
                        </tr>
                        <tr>
                            <td>
                                <asp:GridView ID="gridattendance" Width="100%"  runat="server" AutoGenerateColumns="False"
                                    OnRowDataBound="gridattendance_RowDataBound" BackColor="White" BorderColor="#CCCCCC"
                                    BorderStyle="None" BorderWidth="1px" CellPadding="3" HorizontalAlign="Center" AllowPaging="True" OnPageIndexChanging="gridattendance_PageIndexChanging">
                                    <Columns>
                                        <asp:BoundField DataField="s_id" HeaderText="员工编号">
                                            <ItemStyle HorizontalAlign="Center" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="workDate" HeaderText="日期" DataFormatString="{0:d}"
                                            HtmlEncode="False">
                                            <ItemStyle HorizontalAlign="Center" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="ondudydate" HeaderText="上班时间">
                                            <ItemStyle HorizontalAlign="Center" />
                                        </asp:BoundField>
                                        <asp:TemplateField>
                                            <ItemTemplate>
                                                <asp:Label runat="server" ID="labstatus1" Text='<%# DataBinder.Eval(Container.DataItem,"ondutyStatus") %>'></asp:Label>
                                            </ItemTemplate>
                                            <HeaderTemplate>
                                                上班状态</HeaderTemplate>
                                            <ItemStyle HorizontalAlign="Center" />
                                        </asp:TemplateField>
                                        <asp:BoundField DataField="offdudydate" HeaderText="下班时间">
                                            <ItemStyle HorizontalAlign="Center" />
                                        </asp:BoundField>
                                        <asp:TemplateField>
                                            <ItemTemplate>
                                                <asp:Label runat="server" ID="labstatus2" Text='<%# DataBinder.Eval(Container.DataItem,"offdutyStatus") %>'></asp:Label>
                                            </ItemTemplate>
                                            <HeaderTemplate>
                                                下班状态</HeaderTemplate>
                                            <ItemStyle HorizontalAlign="Center" />
                                        </asp:TemplateField>
                                    </Columns>
                                    <FooterStyle BackColor="White" ForeColor="#000066" />
                                    <RowStyle ForeColor="#000066" />
                                    <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                                    <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                                    <HeaderStyle BackColor="#D6DFF7" Font-Bold="True" ForeColor="#657E33" />
                                </asp:GridView>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -