291 lines
21 KiB
Plaintext
291 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="WMS" 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="ÈËԱά»¤" />
|
||
<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="de_employee" OnRowDeleting="GridView1_RowDeleting" AllowPaging="True"
|
||
OnPageIndexChanging="GridView1_PageIndexChanging" OnRowDataBound="GridView1_RowDataBound"
|
||
OnSorting="GridView1_Sorting" OnSelectedIndexChanged="GridView1_SelectedIndexChanged"
|
||
Width="99%" ShowFooter="True" EmptyDataText='ûÓÐÊý¾Ý¡£'>
|
||
<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="de_employee" HeaderText="ÈËÔ±±àºÅ" SortExpression="de_employee" >
|
||
<ItemStyle Wrap="False" HorizontalAlign="Center"/>
|
||
<HeaderStyle Wrap="False" HorizontalAlign="Center"/>
|
||
</asp:BoundField>
|
||
<asp:BoundField DataField="EM_NAME" HeaderText="ÐÕÃû" SortExpression="EM_NAME">
|
||
<ItemStyle Wrap="False" HorizontalAlign="Center"/>
|
||
<HeaderStyle Wrap="False" HorizontalAlign="Center"/>
|
||
</asp:BoundField>
|
||
<asp:BoundField DataField="DEP_NAME" HeaderText="²¿ÃÅ" SortExpression="DEP_NAME" >
|
||
<ItemStyle Wrap="False" HorizontalAlign="Center"/>
|
||
<HeaderStyle Wrap="False" HorizontalAlign="Center"/>
|
||
</asp:BoundField>
|
||
<asp:BoundField DataField="EM_SEX" HeaderText="ÐÔ±ð" SortExpression="EM_SEX" HtmlEncode="False" DataFormatString="{0:True:ÄÐ;False:Å®}">
|
||
<ItemStyle Wrap="False" HorizontalAlign="Center"/>
|
||
<HeaderStyle Wrap="False" HorizontalAlign="Center"/>
|
||
</asp:BoundField>
|
||
<asp:BoundField DataField="EM_BIRTHDAY" HeaderText="³öÉúÈÕÆÚ" SortExpression="EM_BIRTHDAY" DataFormatString="{0:yyyy-MM-dd}" HtmlEncode="False" Visible="False">
|
||
<ItemStyle Wrap="False" HorizontalAlign="Center"/>
|
||
<HeaderStyle Wrap="False" HorizontalAlign="Center"/>
|
||
</asp:BoundField>
|
||
<asp:BoundField DataField="de_title" HeaderText="Ö°Îñ" SortExpression="de_title">
|
||
<ItemStyle Wrap="False" HorizontalAlign="Center"/>
|
||
<HeaderStyle Wrap="False" HorizontalAlign="Center"/>
|
||
</asp:BoundField>
|
||
<asp:BoundField DataField="em_education" HeaderText="ѧÀú" SortExpression="em_education" Visible="False">
|
||
<ItemStyle Wrap="False" HorizontalAlign="Center"/>
|
||
<HeaderStyle Wrap="False" HorizontalAlign="Center"/>
|
||
</asp:BoundField>
|
||
<asp:BoundField DataField="em_politic" HeaderText="ÈËÔ±ÐÔÖÊ" SortExpression="em_politic" Visible="False">
|
||
<ItemStyle Wrap="False" HorizontalAlign="Center"/>
|
||
<HeaderStyle Wrap="False" HorizontalAlign="Center"/>
|
||
</asp:BoundField>
|
||
<asp:BoundField DataField="em_date_in_party" HeaderText="È뵳ʱ¼ä" SortExpression="em_date_in_party" DataFormatString="{0:yyyy-MM-dd}" HtmlEncode="False" Visible="False">
|
||
<ItemStyle Wrap="False" HorizontalAlign="Center"/>
|
||
<HeaderStyle Wrap="False" HorizontalAlign="Center"/>
|
||
</asp:BoundField>
|
||
<asp:BoundField DataField="em_date_work" HeaderText="²Î¼Ó¹¤×÷ʱ¼ä" SortExpression="em_date_work" DataFormatString="{0:yyyy-MM-dd}" HtmlEncode="False" Visible="False">
|
||
<ItemStyle Wrap="False" HorizontalAlign="Center"/>
|
||
<HeaderStyle Wrap="False" HorizontalAlign="Center"/>
|
||
</asp:BoundField>
|
||
<asp:BoundField DataField="dr" HeaderText="¿ÉÓÃ" SortExpression="dr" Visible="False" ></asp:BoundField>
|
||
|
||
<asp:CommandField HeaderText="±à¡¡¼" ShowDeleteButton="True" DeleteText=" " ¡¡ShowHeader="True" ShowSelectButton="True" SelectText="<img src=../Images/edit.gif border=0 title=ÐÞ¸Ä >">
|
||
<HeaderStyle HorizontalAlign="Center" Width="10%" />
|
||
<ItemStyle HorizontalAlign="Center" Width="10%" />
|
||
</asp:CommandField>
|
||
</columns>
|
||
<pagerstyle horizontalalign="Right" />
|
||
<emptydatatemplate> ûÓÐÊý¾Ý</emptydatatemplate>
|
||
</asp:gridview>
|
||
<!--DeleteText="<img src=../Images/Delete.gif border=0 title=ɾ³ý onclick='return delete_click()'>" -->
|
||
<asp:Button ID="btn_addNew" runat="server" Text="ÐÂÔö¼Ç¼" CssClass="Button" OnClick="btnAddnew_Click" />
|
||
<asp:Button ID="Button1" runat="server" Text="µ¼³ö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='ÐÕÃû'></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="ÇëÊäÈëÓû§Ãû¡£" SetFocusOnError="True" ValidationGroup="1">*</asp:RequiredFieldValidator></td>
|
||
<td>
|
||
<asp:Label ID="Label4" runat="server" CssClass="Label" Text='ÐÔ±ð'></asp:Label></td>
|
||
<td>
|
||
<asp:DropDownList ID="drplstSex" runat="server" CssClass="DropDownList">
|
||
<asp:ListItem Value="1">ÄÐ</asp:ListItem>
|
||
<asp:ListItem Value="0">Å®</asp:ListItem>
|
||
</asp:DropDownList></td>
|
||
<td nowrap>
|
||
</td>
|
||
<td>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<asp:Label ID="Label6" runat="server" CssClass="Label" Text="Éí·ÝÖ¤ºÅ"></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="ÈËÔ±ÐÔÖÊ"></asp:Label></td>
|
||
<td>
|
||
<asp:DropDownList ID="drlstPlitics" runat="server" CssClass="DropDownList">
|
||
<asp:ListItem Value="0">²Ö¿âÔ±¹¤</asp:ListItem>
|
||
<asp:ListItem Value="1">Èý·½ÈËÔ±</asp:ListItem>
|
||
</asp:DropDownList></td>
|
||
<td nowrap>
|
||
</td>
|
||
<td>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<asp:Label ID="Label10" runat="server" CssClass="Label" Text="µç×ÓÐÅÏä"></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="µç×ÓÐÅÏä¸ñʽ²»ÕýÈ·£¬ÕýÈ·¸ñʽÈçzhangsan@163.net¡£" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
|
||
ValidationGroup="1">£ª
|
||
</asp:RegularExpressionValidator>
|
||
</td>
|
||
<td>
|
||
³öÉúÈÕÆÚ</td>
|
||
<td>
|
||
<asp:TextBox ID="txtBirthday" runat="server" CssClass="TextBox" MaxLength="25">
|
||
</asp:TextBox>
|
||
</td>
|
||
<td>
|
||
ѧÀú</td>
|
||
<td>
|
||
<asp:DropDownList ID="drplstEducation" CssClass="DropDownList" runat="server">
|
||
<asp:ListItem>²©Ê¿</asp:ListItem>
|
||
<asp:ListItem>˶ʿÑо¿Éú</asp:ListItem>
|
||
<asp:ListItem>±¾¿Æ</asp:ListItem>
|
||
<asp:ListItem>ר¿Æ</asp:ListItem>
|
||
<asp:ListItem>ÖÐר</asp:ListItem>
|
||
<asp:ListItem>¸ßÖÐ</asp:ListItem>
|
||
<asp:ListItem>³õÖÐ</asp:ListItem>
|
||
<asp:ListItem>Сѧ</asp:ListItem>
|
||
<asp:ListItem>ÆäËû</asp:ListItem>
|
||
</asp:DropDownList></td>
|
||
</tr>
|
||
<tr>
|
||
<td nowrap>
|
||
<asp:Label ID="Label7" runat="server" CssClass="Label" Text="Õ˺Å"></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="ÇëÊäÈëÕ˺š£" ValidationGroup="1">£ª</asp:RequiredFieldValidator></td>
|
||
<td nowrap>
|
||
<asp:Label ID="Label8" runat="server" CssClass="Label" Text="ÃÜÂë"></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="ÊÖ»ú"></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="ÊÖ»úºÅÂë¸ñʽ²»ÕýÈ·£¬Ó¦Îª11λÊý×Ö¡£" ValidationExpression="^\d{11}$" ValidationGroup="1">£ª
|
||
</asp:RegularExpressionValidator></td>
|
||
</tr>
|
||
<tr>
|
||
<td nowrap>
|
||
<asp:Label ID="lableDept" runat="server" CssClass="Label" Text="µ±Ç°²¿ÃÅ"></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="Ö°Îñ"></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="²¿ÃÅ·ÖÅä"></asp:Label></td>
|
||
<td colspan="4" align="center">
|
||
<asp:gridview id="GvDept" runat="server" AutoGenerateColumns="False" CssClass="DataGrid"
|
||
DataKeyNames="ID" emptydatatext="ûÓÐÊý¾Ý¡£" ShowFooter="True" tabIndex="1"
|
||
Width="100%" OnRowCancelingEdit="GvDept_RowCancelingEdit" OnRowUpdating="GvDept_RowUpdating"
|
||
OnRowEditing="GvDept_RowEditing">
|
||
<columns>
|
||
<asp:BoundField ReadOnly="True" DataField="ID" Visible="False" SortExpression="ID" HeaderText="id"></asp:BoundField>
|
||
<asp:BoundField ReadOnly="True" DataField="DEP_NAME" SortExpression="DEP_NAME" HeaderText="²¿ÃÅÃû³Æ"></asp:BoundField>
|
||
<asp:BoundField ReadOnly="True" DataField="DEP_DESC" SortExpression="DEP_DESC" HeaderText="²¿ÃÅÃèÊö"></asp:BoundField>
|
||
<asp:TemplateField SortExpression="DE_TITLE" HeaderText="Ö°Îñ"><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>
|
||
</td>
|
||
<td>
|
||
</td>
|
||
<td>
|
||
</td>
|
||
<td>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td colspan="6" >
|
||
<asp:ValidationSummary id="ValidationSummary1" runat="server" ValidationGroup="1" HeaderText="´íÎóÌáʾ"></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="±£´æ" OnClick="btnSubmit_Click" ValidationGroup="1" />
|
||
<!--input type="button" id="ButtonCancel" onClick="reset()" class="Button" value="È¡ÏûÐÞ¸Ä" 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>
|