您目前尚未登陆,请选择【登陆】或【注册
首页->行政办公->某公司人事工资管理系统源码>>FileManage/RewardsForm.aspx>>代码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:某公司人事工资管理系统源码


当前文件路径:StaffSalaryManage/FileManage/RewardsForm.aspx 文件类型
普通视图
		            
1<%--文件名:RewardsForm.aspx--%> 2<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="RewardsForm.aspx.cs" Inherits="FileManage_RewardsForm" Title="当前位置:人事管理->员工奖惩记录" %> 3<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> 4 <table style="width: 556px; height: 161px"> 5 <tr> 6 <td align="left" style="font-size: 0.8em; width: 2232px; font-family: 宋体; height: 16px; 7 background-color: teal"> 8 &nbsp;请输入查询员工姓名:<asp:TextBox ID="TextBox1" runat="server" Width="145px">%%</asp:TextBox> 9 <asp:Button ID="Button1" runat="server" Text="查询" Width="80px" /> 10 <asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="新增" Width="80px" /> 11 <asp:Button ID="Button3" runat="server" OnClick="Button3_Click" Text="修改" Width="80px" /></td> 12 </tr> 13 <tr> 14 <td align="left" style="font-size: 0.8em; width: 2232px; font-family: 宋体; height: 27px; 15 background-color: gainsboro"> 16 &nbsp;自编号:<asp:TextBox ID="TextBox2" runat="server" BackColor="DarkGray" ReadOnly="True" 17 Width="35px"></asp:TextBox> 18 所在部门:<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" DataSourceID="SqlDataSource1" 19 DataTextField="部门名称" DataValueField="部门名称" Width="80px"> 20 </asp:DropDownList> 21 员工姓名:<asp:DropDownList ID="DropDownList2" runat="server" DataSourceID="SqlDataSource2" 22 DataTextField="姓名" DataValueField="员工编号" Width="80px"> 23 </asp:DropDownList> 24 奖惩日期:<asp:TextBox ID="TextBox3" runat="server" Width="88px">1988-11-28</asp:TextBox><br /> 25 &nbsp;奖惩类型:<asp:TextBox ID="TextBox4" runat="server" Width="88px">警告</asp:TextBox> 26 奖惩原因:<asp:TextBox ID="TextBox5" runat="server" Width="314px">累计矿课5次</asp:TextBox> 27 <br /> 28 &nbsp;奖惩批准单位:<asp:TextBox ID="TextBox6" runat="server" Width="266px">重庆市轻工业学校</asp:TextBox> 29 &nbsp;解除处分日期:<asp:TextBox ID="TextBox7" runat="server" Width="77px">2099-11-28</asp:TextBox> 30 <br /> 31 &nbsp;补充说明:<asp:TextBox ID="TextBox8" runat="server" Width="474px">暂无</asp:TextBox></td> 32 </tr> 33 <tr> 34 <td style="width: 2232px; height: 100px; background-color: gainsboro"> 35 <asp:Panel ID="Panel1" runat="server" Height="220px" ScrollBars="Auto" Width="553px"> 36 <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:MyPersonnelDBConnectionString %>" 37 SelectCommand="SELECT * FROM [公司部门]"></asp:SqlDataSource> 38 <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:MyPersonnelDBConnectionString %>" 39 SelectCommand="SELECT * FROM [在职员工视图] WHERE ([所属部门] = @所属部门)"> 40 <SelectParameters> 41 <asp:ControlParameter ControlID="DropDownList1" Name="所属部门" PropertyName="SelectedValue" 42 Type="String" /> 43 </SelectParameters> 44 </asp:SqlDataSource> 45 <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:MyPersonnelDBConnectionString %>" 46 DeleteCommand="DELETE FROM [奖惩记录] WHERE [自编号] = @自编号" InsertCommand="INSERT INTO [奖惩记录] ([员工编号], [员工姓名], [奖惩日期], [奖惩类型], [奖惩原因], [奖惩批准单位], [解除处分日期], [补充说明]) VALUES (@员工编号, @员工姓名, @奖惩日期, @奖惩类型, @奖惩原因, @奖惩批准单位, @解除处分日期, @补充说明)" 47 SelectCommand="SELECT * FROM [奖惩记录] WHERE ([员工姓名] LIKE '%' + @员工姓名 + '%')" UpdateCommand="UPDATE [奖惩记录] SET [员工编号] = @员工编号, [员工姓名] = @员工姓名, [奖惩日期] = @奖惩日期, [奖惩类型] = @奖惩类型, [奖惩原因] = @奖惩原因, [奖惩批准单位] = @奖惩批准单位, [解除处分日期] = @解除处分日期, [补充说明] = @补充说明 WHERE [自编号] = @自编号"> 48 <DeleteParameters> 49 <asp:Parameter Name="自编号" Type="Int32" /> 50 </DeleteParameters> 51 <UpdateParameters> 52 <asp:ControlParameter ControlID="DropDownList2" Name="员工编号" PropertyName="SelectedValue" 53 Type="String" /> 54 <asp:ControlParameter ControlID="DropDownList2" Name="员工姓名" PropertyName="SelectedItem.Text" 55 Type="String" /> 56 <asp:ControlParameter ControlID="TextBox3" Name="奖惩日期" PropertyName="Text" Type="DateTime" /> 57 <asp:ControlParameter ControlID="TextBox4" Name="奖惩类型" PropertyName="Text" Type="String" /> 58 <asp:ControlParameter ControlID="TextBox5" Name="奖惩原因" PropertyName="Text" Type="String" /> 59 <asp:ControlParameter ControlID="TextBox6" Name="奖惩批准单位" PropertyName="Text" Type="String" /> 60 <asp:ControlParameter ControlID="TextBox7" Name="解除处分日期" PropertyName="Text" Type="DateTime" /> 61 <asp:ControlParameter ControlID="TextBox8" Name="补充说明" PropertyName="Text" Type="String" /> 62 <asp:ControlParameter ControlID="TextBox2" Name="自编号" PropertyName="Text" Type="Int32" /> 63 </UpdateParameters> 64 <SelectParameters> 65 <asp:ControlParameter ControlID="TextBox1" Name="员工姓名" PropertyName="Text" Type="String" /> 66 </SelectParameters> 67 <InsertParameters> 68 <asp:ControlParameter ControlID="DropDownList2" Name="员工编号" PropertyName="SelectedValue" 69 Type="String" /> 70 <asp:ControlParameter ControlID="DropDownList2" Name="员工姓名" PropertyName="SelectedItem.Text" 71 Type="String" /> 72 <asp:ControlParameter ControlID="TextBox3" Name="奖惩日期" PropertyName="Text" Type="DateTime" /> 73 <asp:ControlParameter ControlID="TextBox4" Name="奖惩类型" PropertyName="Text" Type="String" /> 74 <asp:ControlParameter ControlID="TextBox5" Name="奖惩原因" PropertyName="Text" Type="String" /> 75 <asp:ControlParameter ControlID="TextBox6" Name="奖惩批准单位" PropertyName="Text" Type="String" /> 76 <asp:ControlParameter ControlID="TextBox7" Name="解除处分日期" PropertyName="Text" Type="DateTime" /> 77 <asp:ControlParameter ControlID="TextBox8" Name="补充说明" PropertyName="Text" Type="String" /> 78 </InsertParameters> 79 </asp:SqlDataSource> 80 <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="White" 81 BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" DataKeyNames="自编号" 82 DataSourceID="SqlDataSource3" Font-Names="宋体" Font-Size="Small" GridLines="Vertical" 83 OnRowCreated="GridView1_RowCreated" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" 84 Width="1000px"> 85 <FooterStyle BackColor="#CCCCCC" ForeColor="Black" /> 86 <Columns> 87 <asp:CommandField ButtonType="Button" HeaderText="选择" ShowSelectButton="True" /> 88 <asp:TemplateField HeaderText="删除" ShowHeader="False"> 89 <ItemTemplate> 90 <asp:Button ID="Button1" runat="server" CausesValidation="False" CommandName="Delete" 91 Text="删除" /> 92 </ItemTemplate> 93 </asp:TemplateField> 94 <asp:BoundField DataField="自编号" HeaderText="自编号" InsertVisible="False" ReadOnly="True" 95 SortExpression="自编号" /> 96 <asp:BoundField DataField="员工编号" HeaderText="员工编号" SortExpression="员工编号" /> 97 <asp:BoundField DataField="员工姓名" HeaderText="员工姓名" SortExpression="员工姓名" /> 98 <asp:BoundField DataField="奖惩日期" HeaderText="奖惩日期" SortExpression="奖惩日期" /> 99 <asp:BoundField DataField="奖惩类型" HeaderText="奖惩类型" SortExpression="奖惩类型" /> 100 <asp:BoundField DataField="奖惩原因" HeaderText="奖惩原因" SortExpression="奖惩原因" /> 101 <asp:BoundField DataField="奖惩批准单位" HeaderText="奖惩批准单位" SortExpression="奖惩批准单位" /> 102 <asp:BoundField DataField="解除处分日期" HeaderText="解除处分日期" SortExpression="解除处分日期" /> 103 <asp:BoundField DataField="补充说明" HeaderText="补充说明" SortExpression="补充说明" /> 104 </Columns> 105 <RowStyle BackColor="#EEEEEE" ForeColor="Black" /> 106 <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" /> 107 <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" /> 108 <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" HorizontalAlign="Center" /> 109 <AlternatingRowStyle BackColor="#DCDCDC" /> 110 </asp:GridView> 111 </asp:Panel> 112 </td> 113 </tr> 114 </table> 115</asp:Content> 116 117
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:某公司人事工资管理系统源码

- B2C商城综合系统项目源码

- NetCms1.0(Buid080411)免安装..

- 三只熊网络商城1.3

- 广州某公司网站源码

- 某学院学生信息管理系统源码

- 家庭财务管理系统源码

- Asp.net简单博客系统

- AfengPager通用URL分页源码及..

51Aspx.com 版权所有 CopyRight © 2000-2008. 京ICP备06046876号