温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:某公司人事工资管理系统源码
当前文件路径:StaffSalaryManage/FileManage/ArchievementForm.aspx

1<%--文件名:ArchievementForm.aspx--%> 2
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="ArchievementForm.aspx.cs" Inherits="FileManage_ArchievementForm" 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
请输入查询员工姓名:<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
自编号:<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">财务会计、计算机程序设计</asp:TextBox><br /> 25
工作业绩:<asp:TextBox ID="TextBox4" runat="server" Width="474px">51aspx人事工资管理信息系统</asp:TextBox> 26
<br /> 27
补充说明:<asp:TextBox ID="TextBox5" runat="server" Width="474px">集体开发</asp:TextBox> 28
</td> 29
</tr> 30
<tr> 31
<td style="width: 2232px; height: 100px; background-color: gainsboro"> 32
<asp:Panel ID="Panel1" runat="server" Height="220px" ScrollBars="Auto" Width="553px"> 33
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:MyPersonnelDBConnectionString %>" 34
SelectCommand="SELECT * FROM [公司部门]"></asp:SqlDataSource> 35
<asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:MyPersonnelDBConnectionString %>" 36
SelectCommand="SELECT * FROM [在职员工视图] WHERE ([所属部门] = @所属部门)"> 37
<SelectParameters> 38
<asp:ControlParameter ControlID="DropDownList1" Name="所属部门" PropertyName="SelectedValue" 39
Type="String" /> 40
</SelectParameters> 41
</asp:SqlDataSource> 42
<asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:MyPersonnelDBConnectionString %>" 43
DeleteCommand="DELETE FROM [工作业绩] WHERE [自编号] = @自编号" InsertCommand="INSERT INTO [工作业绩] ([员工编号], [员工姓名], [专长描述], [工作业绩], [补充说明]) VALUES (@员工编号, @员工姓名, @专长描述, @工作业绩, @补充说明)" 44
SelectCommand="SELECT * FROM [工作业绩] WHERE ([员工姓名] LIKE '%' + @员工姓名 + '%')" UpdateCommand="UPDATE [工作业绩] SET [员工编号] = @员工编号, [员工姓名] = @员工姓名, [专长描述] = @专长描述, [工作业绩] = @工作业绩, [补充说明] = @补充说明 WHERE [自编号] = @自编号"> 45
<DeleteParameters> 46
<asp:Parameter Name="自编号" Type="Int32" /> 47
</DeleteParameters> 48
<UpdateParameters> 49
<asp:ControlParameter ControlID="DropDownList2" Name="员工编号" PropertyName="SelectedValue" 50
Type="String" /> 51
<asp:ControlParameter ControlID="DropDownList2" Name="员工姓名" PropertyName="SelectedItem.Text" 52
Type="String" /> 53
<asp:ControlParameter ControlID="TextBox3" Name="专长描述" PropertyName="Text" Type="String" /> 54
<asp:ControlParameter ControlID="TextBox4" Name="工作业绩" PropertyName="Text" Type="String" /> 55
<asp:ControlParameter ControlID="TextBox5" Name="补充说明" PropertyName="Text" Type="String" /> 56
<asp:ControlParameter ControlID="TextBox2" Name="自编号" PropertyName="Text" Type="Int32" /> 57
</UpdateParameters> 58
<SelectParameters> 59
<asp:ControlParameter ControlID="TextBox1" Name="员工姓名" PropertyName="Text" Type="String" /> 60
</SelectParameters> 61
<InsertParameters> 62
<asp:ControlParameter ControlID="DropDownList2" Name="员工编号" PropertyName="SelectedValue" 63
Type="String" /> 64
<asp:ControlParameter ControlID="DropDownList2" Name="员工姓名" PropertyName="SelectedItem.Text" 65
Type="String" /> 66
<asp:ControlParameter ControlID="TextBox3" Name="专长描述" PropertyName="Text" Type="String" /> 67
<asp:ControlParameter ControlID="TextBox4" Name="工作业绩" PropertyName="Text" Type="String" /> 68
<asp:ControlParameter ControlID="TextBox5" Name="补充说明" PropertyName="Text" Type="String" /> 69
</InsertParameters> 70
</asp:SqlDataSource> 71
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="White" 72
BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" DataKeyNames="自编号" 73
DataSourceID="SqlDataSource3" Font-Names="宋体" Font-Size="Small" GridLines="Vertical" 74
OnRowCreated="GridView1_RowCreated" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" 75
Width="629px"> 76
<FooterStyle BackColor="#CCCCCC" ForeColor="Black" /> 77
<Columns> 78
<asp:CommandField ButtonType="Button" HeaderText="选择" ShowSelectButton="True" /> 79
<asp:TemplateField HeaderText="删除" ShowHeader="False"> 80
<ItemTemplate> 81
<asp:Button ID="Button1" runat="server" CausesValidation="False" CommandName="Delete" 82
Text="删除" /> 83
</ItemTemplate> 84
</asp:TemplateField> 85
<asp:BoundField DataField="自编号" HeaderText="自编号" InsertVisible="False" ReadOnly="True" 86
SortExpression="自编号" /> 87
<asp:BoundField DataField="员工编号" HeaderText="员工编号" SortExpression="员工编号" /> 88
<asp:BoundField DataField="员工姓名" HeaderText="员工姓名" SortExpression="员工姓名" /> 89
<asp:BoundField DataField="专长描述" HeaderText="专长描述" SortExpression="专长描述" /> 90
<asp:BoundField DataField="工作业绩" HeaderText="工作业绩" SortExpression="工作业绩" /> 91
<asp:BoundField DataField="补充说明" HeaderText="补充说明" SortExpression="补充说明" /> 92
</Columns> 93
<RowStyle BackColor="#EEEEEE" ForeColor="Black" /> 94
<SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" /> 95
<PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" /> 96
<HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" HorizontalAlign="Center" /> 97
<AlternatingRowStyle BackColor="#DCDCDC" /> 98
</asp:GridView> 99
</asp:Panel> 100
</td> 101
</tr> 102
</table> 103
</asp:Content> 104
105




