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

📄 monthcheckform.aspx

📁 某公司的人事及工资管理系统
💻 ASPX
📖 第 1 页 / 共 4 页
字号:
<%--文件名:MonthCheckForm.aspx--%>
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="MonthCheckForm.aspx.cs" Inherits="CheckManage_MonthCheckForm" Title="当前位置:考勤管理->月度部门考勤" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table style="width: 556px; height: 161px">
        <tr>
            <td align="left" style="font-size: 0.8em; width: 2232px; font-family: 宋体; height: 16px;
                background-color: teal">
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:MyPersonnelDBConnectionString %>"
                    SelectCommand="SELECT * FROM [公司部门]"></asp:SqlDataSource>
                考勤年份:<asp:DropDownList ID="DropDownList2" runat="server">
                    <asp:ListItem>2006</asp:ListItem>
                    <asp:ListItem>2007</asp:ListItem>
                    <asp:ListItem>2008</asp:ListItem>
                    <asp:ListItem>2009</asp:ListItem>
                    <asp:ListItem>2010</asp:ListItem>
                    <asp:ListItem>2011</asp:ListItem>
                    <asp:ListItem>2012</asp:ListItem>
                    <asp:ListItem>2013</asp:ListItem>
                    <asp:ListItem>2014</asp:ListItem>
                    <asp:ListItem>2015</asp:ListItem>
                    <asp:ListItem>2016</asp:ListItem>
                    <asp:ListItem>2017</asp:ListItem>
                    <asp:ListItem>2018</asp:ListItem>
                    <asp:ListItem>2019</asp:ListItem>
                    <asp:ListItem>2020</asp:ListItem>
                </asp:DropDownList>
                考勤月份:<asp:DropDownList ID="DropDownList3" runat="server">
                    <asp:ListItem>1</asp:ListItem>
                    <asp:ListItem>2</asp:ListItem>
                    <asp:ListItem>3</asp:ListItem>
                    <asp:ListItem>4</asp:ListItem>
                    <asp:ListItem>5</asp:ListItem>
                    <asp:ListItem>6</asp:ListItem>
                    <asp:ListItem>7</asp:ListItem>
                    <asp:ListItem>8</asp:ListItem>
                    <asp:ListItem>9</asp:ListItem>
                    <asp:ListItem>10</asp:ListItem>
                    <asp:ListItem>11</asp:ListItem>
                    <asp:ListItem>12</asp:ListItem>
                </asp:DropDownList>
                考勤部门:<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" DataSourceID="SqlDataSource1"
                    DataTextField="部门名称" DataValueField="部门名称" Width="80px">
                </asp:DropDownList>
                <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="查询" Width="80px" />
                <asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="打印" Width="80px" />
                </td>
        </tr>
        <tr>
            <td align="center" style="font-size: 0.8em; width: 2232px; font-family: 宋体; height: 27px;
                background-color: mediumturquoise">
                考勤符号:出勤[/] 迟到[&gt;] 早退[&lt;] 产假[√] 事假[#] 病假[+] 婚假[△] 旷工[×]</td>
        </tr>
        <tr>
            <td style="width: 2232px; height: 100px; background-color: gainsboro">
                <asp:Panel ID="Panel1" runat="server" Height="220px" ScrollBars="Auto" Width="553px">
                    <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:MyPersonnelDBConnectionString %>"
                        SelectCommand="SELECT * FROM [考勤记录] WHERE (([考勤年份] = @考勤年份) AND ([考勤月份] = @考勤月份)  AND (员工编号 IN (SELECT 员工编号 FROM 在职员工视图 WHERE (所属部门 LIKE @所属部门))))"
                        UpdateCommand="UPDATE [考勤记录] SET [C1] = @C1, [C2] = @C2, [C3] = @C3, [C4] = @C4, [C5] = @C5, [C6] = @C6, [C7] = @C7, [C8] = @C8, [C9] = @C9, [C10] = @C10, [C11] = @C11, [C12] = @C12, [C13] = @C13, [C14] = @C14, [C15] = @C15, [C16] = @C16, [C17] = @C17, [C18] = @C18, [C19] = @C19, [C20] = @C20, [C21] = @C21, [C22] = @C22, [C23] = @C23, [C24] = @C24, [C25] = @C25, [C26] = @C26, [C27] = @C27, [C28] = @C28, [C29] = @C29, [C30] = @C30, [C31] = @C31 WHERE [自编号] = @自编号">
                        <DeleteParameters>
                            <asp:Parameter Name="自编号" Type="Int32" />
                        </DeleteParameters>
                        <UpdateParameters>
                            <asp:Parameter Name="C1" Type="String" />
                            <asp:Parameter Name="C2" Type="String" />
                            <asp:Parameter Name="C3" Type="String" />
                            <asp:Parameter Name="C4" Type="String" />
                            <asp:Parameter Name="C5" Type="String" />
                            <asp:Parameter Name="C6" Type="String" />
                            <asp:Parameter Name="C7" Type="String" />
                            <asp:Parameter Name="C8" Type="String" />
                            <asp:Parameter Name="C9" Type="String" />
                            <asp:Parameter Name="C10" Type="String" />
                            <asp:Parameter Name="C11" Type="String" />
                            <asp:Parameter Name="C12" Type="String" />
                            <asp:Parameter Name="C13" Type="String" />
                            <asp:Parameter Name="C14" Type="String" />
                            <asp:Parameter Name="C15" Type="String" />
                            <asp:Parameter Name="C16" Type="String" />
                            <asp:Parameter Name="C17" Type="String" />
                            <asp:Parameter Name="C18" Type="String" />
                            <asp:Parameter Name="C19" Type="String" />
                            <asp:Parameter Name="C20" Type="String" />
                            <asp:Parameter Name="C21" Type="String" />
                            <asp:Parameter Name="C22" Type="String" />
                            <asp:Parameter Name="C23" Type="String" />
                            <asp:Parameter Name="C24" Type="String" />
                            <asp:Parameter Name="C25" Type="String" />
                            <asp:Parameter Name="C26" Type="String" />
                            <asp:Parameter Name="C27" Type="String" />
                            <asp:Parameter Name="C28" Type="String" />
                            <asp:Parameter Name="C29" Type="String" />
                            <asp:Parameter Name="C30" Type="String" />
                            <asp:Parameter Name="C31" Type="String" />
                            <asp:Parameter Name="自编号" Type="Int32" />
                        </UpdateParameters>
                        <SelectParameters>
                            <asp:ControlParameter ControlID="DropDownList2" Name="考勤年份" PropertyName="SelectedValue"
                                Type="Int32" />
                            <asp:ControlParameter ControlID="DropDownList3" Name="考勤月份" PropertyName="SelectedValue"
                                Type="Int32" />
                            <asp:ControlParameter ControlID="DropDownList1" Name="所属部门" PropertyName="SelectedValue"
                                Type="String" />
                        </SelectParameters>
                    </asp:SqlDataSource>
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="自编号"
                        DataSourceID="SqlDataSource2" Font-Names="宋体" Font-Size="Small" Width="1600px">
                        <Columns>
                            <asp:CommandField ShowEditButton="True" ButtonType="Button" HeaderText="编辑" />
                            <asp:BoundField DataField="自编号" HeaderText="自编号" InsertVisible="False" ReadOnly="True"
                                SortExpression="自编号" Visible="False" />
                            <asp:BoundField DataField="员工编号" HeaderText="员工编号" SortExpression="员工编号" Visible="False" />
                            <asp:BoundField DataField="员工姓名" HeaderText="员工姓名" ReadOnly="True" SortExpression="员工姓名" />
                            <asp:TemplateField HeaderText="C1" SortExpression="C1">
                                <EditItemTemplate>
                                    <asp:DropDownList ID="DropDownList4" runat="server" AppendDataBoundItems="True" DataSourceID="SqlDataSource2"
                                        DataTextField="C1" DataValueField="C1" SelectedValue='<%# Bind("C1") %>'>
                                        <asp:ListItem Selected="True">/</asp:ListItem>
                                        <asp:ListItem>&gt;</asp:ListItem>
                                        <asp:ListItem>&lt;</asp:ListItem>
                                        <asp:ListItem>√</asp:ListItem>
                                        <asp:ListItem>#</asp:ListItem>
                                        <asp:ListItem>+</asp:ListItem>
                                        <asp:ListItem>△</asp:ListItem>
                                        <asp:ListItem>&#215;</asp:ListItem>
                                    </asp:DropDownList>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label1" runat="server" Text='<%# Bind("C1") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="C2" SortExpression="C2">
                                <EditItemTemplate>
                                    <asp:DropDownList ID="DropDownList5" runat="server" AppendDataBoundItems="True" DataSourceID="SqlDataSource2"
                                        DataTextField="C2" DataValueField="C2" SelectedValue='<%# Bind("C2") %>'>
                                        <asp:ListItem Selected="True">/</asp:ListItem>                             
                                        <asp:ListItem>&gt;</asp:ListItem>
                                        <asp:ListItem>&lt;</asp:ListItem>
                                        <asp:ListItem>√</asp:ListItem>
                                        <asp:ListItem>#</asp:ListItem>
                                        <asp:ListItem>+</asp:ListItem>
                                        <asp:ListItem>△</asp:ListItem>
                                        <asp:ListItem>&#215;</asp:ListItem>
                                    </asp:DropDownList>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label2" runat="server" Text='<%# Bind("C2") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="C3" SortExpression="C3">
                                <EditItemTemplate>
                                    <asp:DropDownList ID="DropDownList6" runat="server" AppendDataBoundItems="True" DataSourceID="SqlDataSource2"
                                        DataTextField="C3" DataValueField="C3" SelectedValue='<%# Bind("C3") %>'>
                                        <asp:ListItem Selected="True">/</asp:ListItem>                             
                                        <asp:ListItem>&gt;</asp:ListItem>
                                        <asp:ListItem>&lt;</asp:ListItem>
                                        <asp:ListItem>√</asp:ListItem>
                                        <asp:ListItem>#</asp:ListItem>
                                        <asp:ListItem>+</asp:ListItem>
                                        <asp:ListItem>△</asp:ListItem>
                                        <asp:ListItem>&#215;</asp:ListItem>
                                    </asp:DropDownList>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label2" runat="server" Text='<%# Bind("C3") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="C4" SortExpression="C4">
                                <EditItemTemplate>
                                    <asp:DropDownList ID="DropDownList7" runat="server" AppendDataBoundItems="True" DataSourceID="SqlDataSource2"
                                        DataTextField="C4" DataValueField="C4" SelectedValue='<%# Bind("C4") %>'>
                                        <asp:ListItem Selected="True">/</asp:ListItem>                             

⌨️ 快捷键说明

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