298 lines
21 KiB
Plaintext
298 lines
21 KiB
Plaintext
|
<%@ Page Language="C#" MasterPageFile="../masterPage.master"
|
|||
|
AutoEventWireup="true" CodeFile="EmployeeMain.aspx.cs" Inherits="EmployeeMain" %>
|
|||
|
|
|||
|
<%@ MasterType VirtualPath="~/masterPage.master" %>
|
|||
|
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
|
|||
|
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
|
|||
|
<table width="100%" class="Table_NoBorder">
|
|||
|
<tr>
|
|||
|
<td>
|
|||
|
<table width="100%" class="Table_Border">
|
|||
|
<tr>
|
|||
|
<td width="50" height="200" align="left" valign="top">
|
|||
|
<asp:TreeView ID="TreeDept" runat="server" ShowLines="True" OnSelectedNodeChanged="TreeDept_SelectedNodeChanged"
|
|||
|
ImageSet="Arrows">
|
|||
|
<nodes>
|
|||
|
<asp:TreeNode Text="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" Value="0" Expanded="True" Selected="True"></asp:TreeNode>
|
|||
|
</nodes>
|
|||
|
<selectednodestyle backcolor="Azure" bordercolor="Transparent" />
|
|||
|
</asp:TreeView>
|
|||
|
<asp:TextBox id="TextBox11" runat="server" visible=false>
|
|||
|
</asp:TextBox>
|
|||
|
|
|||
|
<cc1:calendarextender id="CalendarExtender11" runat="server" targetcontrolid="TextBox11"></cc1:calendarextender>
|
|||
|
|
|||
|
</td>
|
|||
|
<td width="1" class="VLine">
|
|||
|
</td>
|
|||
|
<td align="left" valign="top" width="90%">
|
|||
|
<!------ THE DATA GRID AREA ------>
|
|||
|
<asp:Label ID="lbDataGridTitle" Visible="false" runat="server" CssClass="Label" Text="<22><>Աά<D4B1><CEAC>" />
|
|||
|
<asp:Label ID="lbEdit" Visible="false" runat="server" CssClass="Label" Text=""></asp:Label>
|
|||
|
<asp:gridview id="GridView1" CssClass="DataGrid" PageSize="10" PagerStyle-HorizontalAlign="Right"
|
|||
|
runat="server" AutoGenerateColumns="False" OnRowEditing="GridView1_RowEditing"
|
|||
|
DataKeyNames="pk_employee" OnRowDeleting="GridView1_RowDeleting" AllowPaging="True"
|
|||
|
OnPageIndexChanging="GridView1_PageIndexChanging" OnRowDataBound="GridView1_RowDataBound"
|
|||
|
OnSorting="GridView1_Sorting" OnSelectedIndexChanged="GridView1_SelectedIndexChanged"
|
|||
|
Width="99%" ShowFooter="True" EmptyDataText='û<><C3BB><EFBFBD><EFBFBD><EFBFBD>ݡ<EFBFBD>'>
|
|||
|
<selectedrowstyle cssclass="SelectedItemStyle"></selectedrowstyle>
|
|||
|
<headerstyle cssclass="HeaderStyle" horizontalalign="Center"></headerstyle>
|
|||
|
<rowstyle cssclass="ItemStyle" horizontalalign="Center"></rowstyle>
|
|||
|
<alternatingrowstyle cssclass="AlternatingItemStyle"></alternatingrowstyle>
|
|||
|
<columns>
|
|||
|
<asp:BoundField Visible="TRUE" ReadOnly="True" DataField="PK_EMPLOYEE" HeaderText="<22><>Ա<EFBFBD><D4B1><EFBFBD><EFBFBD>" SortExpression="PK_EMPLOYEE" ></asp:BoundField>
|
|||
|
<asp:BoundField DataField="EM_NAME" HeaderText="<22><><EFBFBD><EFBFBD>" SortExpression="EM_NAME">
|
|||
|
<ItemStyle Wrap="False" />
|
|||
|
<HeaderStyle Wrap="False" />
|
|||
|
</asp:BoundField>
|
|||
|
<asp:BoundField DataField="DEP_NAME" HeaderText="<22><><EFBFBD><EFBFBD>" SortExpression="DEP_NAME" >
|
|||
|
<ItemStyle Wrap="False" />
|
|||
|
<HeaderStyle Wrap="False" />
|
|||
|
</asp:BoundField>
|
|||
|
<asp:BoundField DataField="EM_SEX" HeaderText="<22>Ա<EFBFBD>" SortExpression="EM_SEX" HtmlEncode="False" DataFormatString="{0:True:<3A><>;False:Ů}">
|
|||
|
<ItemStyle Wrap="False" />
|
|||
|
<HeaderStyle Wrap="False" />
|
|||
|
</asp:BoundField>
|
|||
|
<asp:BoundField DataField="EM_BIRTHDAY" HeaderText="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" SortExpression="EM_BIRTHDAY" DataFormatString="{0:yyyy-MM-dd}" HtmlEncode="False">
|
|||
|
<ItemStyle Wrap="False" />
|
|||
|
<HeaderStyle Wrap="False" />
|
|||
|
</asp:BoundField>
|
|||
|
<asp:BoundField DataField="de_title" HeaderText="ְ<><D6B0>" SortExpression="de_title">
|
|||
|
<ItemStyle Wrap="False" />
|
|||
|
<HeaderStyle Wrap="False" />
|
|||
|
</asp:BoundField>
|
|||
|
<asp:BoundField DataField="em_education" HeaderText="ѧ<><D1A7>" SortExpression="em_education">
|
|||
|
<ItemStyle Wrap="False" />
|
|||
|
<HeaderStyle Wrap="False" />
|
|||
|
</asp:BoundField>
|
|||
|
<asp:BoundField DataField="em_politic" HeaderText="<22><>Ա<EFBFBD><D4B1><EFBFBD><EFBFBD>" SortExpression="em_politic">
|
|||
|
<ItemStyle Wrap="False" />
|
|||
|
<HeaderStyle Wrap="False" />
|
|||
|
</asp:BoundField>
|
|||
|
<asp:BoundField DataField="em_date_in_party" HeaderText="<22>뵳ʱ<EBB5B3><CAB1>" SortExpression="em_date_in_party" DataFormatString="{0:yyyy-MM-dd}" HtmlEncode="False" >
|
|||
|
<ItemStyle Wrap="False" />
|
|||
|
<HeaderStyle Wrap="False" />
|
|||
|
</asp:BoundField>
|
|||
|
<asp:BoundField DataField="em_date_work" HeaderText="<22>μӹ<CEBC><D3B9><EFBFBD>ʱ<EFBFBD><CAB1>" SortExpression="em_date_work" DataFormatString="{0:yyyy-MM-dd}" HtmlEncode="False">
|
|||
|
<ItemStyle Wrap="False" />
|
|||
|
<HeaderStyle Wrap="False" />
|
|||
|
</asp:BoundField>
|
|||
|
<asp:BoundField DataField="dr" HeaderText="<22><><EFBFBD><EFBFBD>" SortExpression="dr" Visible="False" ></asp:BoundField>
|
|||
|
|
|||
|
<asp:CommandField HeaderText="<22>ࡡ<EFBFBD><E0A1A1>" ShowDeleteButton="True" DeleteText="<img src=../Images/Delete.gif border=0 title=ɾ<><C9BE> onclick='return delete_click()'>" <20><>ShowHeader="True" ShowSelectButton="True" SelectText="<img src=../Images/edit.gif border=0 title=<3D><EFBFBD> >">
|
|||
|
<HeaderStyle HorizontalAlign="Center" Width="10%" />
|
|||
|
<ItemStyle HorizontalAlign="Center" Width="10%" />
|
|||
|
</asp:CommandField>
|
|||
|
</columns>
|
|||
|
<pagerstyle horizontalalign="Right" />
|
|||
|
<emptydatatemplate> û<><C3BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD></emptydatatemplate>
|
|||
|
</asp:gridview>
|
|||
|
<asp:Button ID="btn_addNew" runat="server" Text="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¼" CssClass="Button" OnClick="btnAddnew_Click" />
|
|||
|
<asp:Button ID="Button1" runat="server" Text="<22><><EFBFBD><EFBFBD>Excel" CssClass="Button" OnClick="Excel_Click" />
|
|||
|
|
|||
|
<asp:Panel ID="DataDetail" runat="server" Width="100%" Visible="false">
|
|||
|
<!------ THE ADD /DELETE AREA ------>
|
|||
|
<table class="Table_NoBorder" border="0" width="95%">
|
|||
|
<tr>
|
|||
|
<td colspan="6" class="ALine">
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td>
|
|||
|
<asp:Label ID="Label2" runat="server" CssClass="Label" Text='<27><><EFBFBD><EFBFBD>'></asp:Label></td>
|
|||
|
<td nowrap>
|
|||
|
<asp:TextBox ID="txtName" runat="server" CssClass="TextBox" MaxLength="25">
|
|||
|
</asp:TextBox>
|
|||
|
<asp:RequiredFieldValidator id="RequiredFieldValidator1" runat="server" ControlToValidate="txtName"
|
|||
|
ErrorMessage="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><C3BB><EFBFBD><EFBFBD><EFBFBD>" SetFocusOnError="True" ValidationGroup="1">*</asp:RequiredFieldValidator></td>
|
|||
|
<td>
|
|||
|
<asp:Label ID="Label4" runat="server" CssClass="Label" Text='<27>Ա<EFBFBD>'></asp:Label></td>
|
|||
|
<td>
|
|||
|
<asp:DropDownList ID="drplstSex" runat="server" CssClass="DropDownList">
|
|||
|
<asp:ListItem Value="1"><3E><></asp:ListItem>
|
|||
|
<asp:ListItem Value="0">Ů</asp:ListItem>
|
|||
|
</asp:DropDownList></td>
|
|||
|
<td nowrap>
|
|||
|
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
|||
|
<td>
|
|||
|
<asp:TextBox ID="txtBirthday" CssClass="TextBox" runat="server" MaxLength="25">
|
|||
|
</asp:TextBox>
|
|||
|
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td>
|
|||
|
<asp:Label ID="Label6" runat="server" CssClass="Label" Text="<22><><EFBFBD><EFBFBD>֤<EFBFBD><D6A4>"></asp:Label></td>
|
|||
|
<td>
|
|||
|
<asp:TextBox ID="txtID" CssClass="TextBox" runat="server" MaxLength="25">
|
|||
|
</asp:TextBox>
|
|||
|
</td>
|
|||
|
<td nowrap>
|
|||
|
<asp:Label ID="Label3" runat="server" CssClass="Label" Text="<22><>Ա<EFBFBD><D4B1><EFBFBD><EFBFBD>"></asp:Label></td>
|
|||
|
<td>
|
|||
|
<asp:DropDownList ID="drlstPlitics" runat="server" CssClass="DropDownList">
|
|||
|
<asp:ListItem><3E><EFBFBD><DEB5><EFBFBD></asp:ListItem>
|
|||
|
<asp:ListItem><3E>й<EFBFBD><D0B9><EFBFBD>Ա</asp:ListItem>
|
|||
|
<asp:ListItem><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ա</asp:ListItem>
|
|||
|
<asp:ListItem><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></asp:ListItem>
|
|||
|
</asp:DropDownList></td>
|
|||
|
<td nowrap>
|
|||
|
<asp:Label ID="lbPartytime" runat="server" CssClass="Label" Text="<22>뵳ʱ<EBB5B3><CAB1>" /></td>
|
|||
|
<td>
|
|||
|
<asp:TextBox ID="txtDateParty" CssClass="TextBox" runat="server" MaxLength="25">
|
|||
|
</asp:TextBox></td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td>
|
|||
|
<asp:Label ID="Label10" runat="server" CssClass="Label" Text="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"></asp:Label></td>
|
|||
|
<td>
|
|||
|
<asp:TextBox ID="txtMail" CssClass="TextBox" runat="server" MaxLength="25" CausesValidation="True"></asp:TextBox>
|
|||
|
<asp:RegularExpressionValidator id="RegularExpressionValidator1" runat="server" ControlToValidate="txtMail"
|
|||
|
ErrorMessage="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʽ<EFBFBD><CABD><EFBFBD><EFBFBD>ȷ<EFBFBD><C8B7><EFBFBD><EFBFBD>ȷ<EFBFBD><C8B7>ʽ<EFBFBD><CABD>zhangsan@163.net<65><74>" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
|
|||
|
ValidationGroup="1"><3E><>
|
|||
|
</asp:RegularExpressionValidator>
|
|||
|
</td>
|
|||
|
<td>
|
|||
|
<asp:Label ID="Label5" runat="server" CssClass="Label" Text="<22>μӹ<CEBC><D3B9><EFBFBD>ʱ<EFBFBD><CAB1>"></asp:Label></td>
|
|||
|
<td>
|
|||
|
<asp:TextBox ID="txtworkdate" CssClass="TextBox" runat="server" MaxLength="25">
|
|||
|
</asp:TextBox></td>
|
|||
|
<td>
|
|||
|
ѧ<><D1A7></td>
|
|||
|
<td>
|
|||
|
<asp:DropDownList ID="drplstEducation" CssClass="DropDownList" runat="server">
|
|||
|
<asp:ListItem><3E><>ʿ</asp:ListItem>
|
|||
|
<asp:ListItem>˶ʿ<CBB6>о<EFBFBD><D0BE><EFBFBD></asp:ListItem>
|
|||
|
<asp:ListItem><3E><><EFBFBD><EFBFBD></asp:ListItem>
|
|||
|
<asp:ListItem>ר<><D7A8></asp:ListItem>
|
|||
|
<asp:ListItem><3E><>ר</asp:ListItem>
|
|||
|
<asp:ListItem><3E><><EFBFBD><EFBFBD></asp:ListItem>
|
|||
|
<asp:ListItem><3E><><EFBFBD><EFBFBD></asp:ListItem>
|
|||
|
<asp:ListItem>Сѧ</asp:ListItem>
|
|||
|
<asp:ListItem><3E><><EFBFBD><EFBFBD></asp:ListItem>
|
|||
|
</asp:DropDownList></td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td nowrap>
|
|||
|
<asp:Label ID="Label7" runat="server" CssClass="Label" Text="<22>˺<EFBFBD>"></asp:Label></td>
|
|||
|
<td>
|
|||
|
<asp:TextBox ID="txtAccount" CssClass="TextBox" runat="server" MaxLength="25">
|
|||
|
</asp:TextBox>
|
|||
|
<asp:RequiredFieldValidator id="RequiredFieldValidator2" runat="server" ControlToValidate="txtAccount"
|
|||
|
ErrorMessage="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˺š<CBBA>" ValidationGroup="1"><3E><></asp:RequiredFieldValidator></td>
|
|||
|
<td nowrap>
|
|||
|
<asp:Label ID="Label8" runat="server" CssClass="Label" Text="<22><><EFBFBD><EFBFBD>"></asp:Label></td>
|
|||
|
<td>
|
|||
|
<asp:TextBox ID="txtPasswd" CssClass="TextBox" runat="server" MaxLength="25" TextMode="Password">
|
|||
|
</asp:TextBox></td>
|
|||
|
<td>
|
|||
|
<asp:Label ID="Label9" runat="server" CssClass="Label" Text="<22>ֻ<EFBFBD>"></asp:Label></td>
|
|||
|
<td>
|
|||
|
<asp:TextBox ID="txtCell" CssClass="TextBox" runat="server" MaxLength="25" CausesValidation="True"></asp:TextBox>
|
|||
|
<asp:RegularExpressionValidator id="RegularExpressionValidator2" runat="server" ControlToValidate="txtCell"
|
|||
|
Display="Dynamic" ErrorMessage="<22>ֻ<EFBFBD><D6BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʽ<EFBFBD><CABD><EFBFBD><EFBFBD>ȷ<EFBFBD><C8B7>ӦΪ11λ<31><CEBB><EFBFBD>֡<EFBFBD>" ValidationExpression="^\d{11}$" ValidationGroup="1"><3E><>
|
|||
|
</asp:RegularExpressionValidator></td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td nowrap>
|
|||
|
<asp:Label ID="lableDept" runat="server" CssClass="Label" Text="<22><>ǰ<EFBFBD><C7B0><EFBFBD><EFBFBD>"></asp:Label></td>
|
|||
|
<td>
|
|||
|
<asp:Label ID="lbSelectedDept" runat="server" CssClass="Label" Text="" /></td>
|
|||
|
<td nowrap>
|
|||
|
<asp:Label ID="lbTitle" runat="server" CssClass="Label" Text="ְ<><D6B0>"></asp:Label></td>
|
|||
|
<td>
|
|||
|
<asp:TextBox ID="txtTitle" CssClass="TextBox" runat="server" MaxLength="25">
|
|||
|
</asp:TextBox></td>
|
|||
|
<td>
|
|||
|
</td>
|
|||
|
<td>
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td>
|
|||
|
<asp:Label ID="lbempdept" runat="server" CssClass="Label" Text="<22><><EFBFBD>ŷ<EFBFBD><C5B7><EFBFBD>"></asp:Label></td>
|
|||
|
<td colspan="4" align="center">
|
|||
|
<asp:gridview id="GvDept" runat="server" AutoGenerateColumns="False" CssClass="DataGrid"
|
|||
|
DataKeyNames="pk_deptemp" emptydatatext="û<><C3BB><EFBFBD><EFBFBD><EFBFBD>ݡ<EFBFBD>" ShowFooter="True" tabIndex="1"
|
|||
|
Width="100%" OnRowCancelingEdit="GvDept_RowCancelingEdit" OnRowUpdating="GvDept_RowUpdating"
|
|||
|
OnRowEditing="GvDept_RowEditing">
|
|||
|
<columns>
|
|||
|
<asp:BoundField ReadOnly="True" DataField="pk_deptemp" Visible="False" SortExpression="pk_deptemp" HeaderText="id"></asp:BoundField>
|
|||
|
<asp:BoundField ReadOnly="True" DataField="DEP_NAME" SortExpression="DEP_NAME" HeaderText="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"></asp:BoundField>
|
|||
|
<asp:BoundField ReadOnly="True" DataField="DEP_DESC" SortExpression="DEP_DESC" HeaderText="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"></asp:BoundField>
|
|||
|
<asp:TemplateField SortExpression="DE_TITLE" HeaderText="ְ<><D6B0>"><EditItemTemplate>
|
|||
|
<asp:TextBox runat="server" Text='<%# Bind("DE_TITLE") %>' id="TextBox1"></asp:TextBox>
|
|||
|
|
|||
|
</EditItemTemplate>
|
|||
|
<ItemTemplate>
|
|||
|
<asp:Label runat="server" Text='<%# Bind("DE_TITLE") %>' id="Label1"></asp:Label>
|
|||
|
|
|||
|
</ItemTemplate>
|
|||
|
</asp:TemplateField>
|
|||
|
<asp:CommandField InsertVisible="False" CancelImageUrl="~/Images/undo.gif" EditImageUrl="~/Images/edit.gif" ShowHeader="True" UpdateImageUrl="~/Images/save.gif" ButtonType="Image" ShowEditButton="True"></asp:CommandField>
|
|||
|
</columns>
|
|||
|
<rowstyle cssclass="ItemStyle" horizontalalign="Center" />
|
|||
|
<headerstyle cssclass="HeaderStyle" horizontalalign="Center" />
|
|||
|
<alternatingrowstyle cssclass="AlternatingItemStyle" />
|
|||
|
<selectedrowstyle cssclass="SelectedItemStyle" />
|
|||
|
</asp:gridview>
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td>
|
|||
|
</td>
|
|||
|
<td>
|
|||
|
<cc1:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtBirthday"
|
|||
|
FirstDayOfWeek="Monday" CssClass="MyCalendar">
|
|||
|
</cc1:CalendarExtender>
|
|||
|
</td>
|
|||
|
<td>
|
|||
|
<cc1:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="txtworkdate"
|
|||
|
FirstDayOfWeek="Monday" CssClass="MyCalendar">
|
|||
|
</cc1:CalendarExtender>
|
|||
|
</td>
|
|||
|
<td>
|
|||
|
<cc1:CalendarExtender ID="CalendarExtender3" runat="server" TargetControlID="txtDateParty"
|
|||
|
FirstDayOfWeek="Monday" CssClass="MyCalendar">
|
|||
|
</cc1:CalendarExtender>
|
|||
|
</td>
|
|||
|
<td>
|
|||
|
</td>
|
|||
|
<td>
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td colspan="6" >
|
|||
|
<asp:ValidationSummary id="ValidationSummary1" runat="server" ValidationGroup="1" HeaderText="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ"></asp:ValidationSummary>
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td colspan="6" class="ALine">
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td colspan="6" align="center">
|
|||
|
<asp:Button ID="btnSubmit" runat="server" CssClass="Button" Text="<22><><EFBFBD><EFBFBD>" OnClick="btnSubmit_Click" ValidationGroup="1" />
|
|||
|
<!--input type="button" id="ButtonCancel" onClick="reset()" class="Button" value="ȡ<><C8A1><EFBFBD><EFBFBD>" name="ButtonCancel"/-->
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
</table>
|
|||
|
</asp:Panel>
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td colspan="3" class="ALine">
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td colspan="3" align="center" style="height: 309px" valign="top">
|
|||
|
<!------ THE ADD /DELETE AREA ------>
|
|||
|
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
</table>
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
</table>
|
|||
|
</asp:Content>
|