platform/Dict/.svn/text-base/DeptMain.aspx.svn-base

124 lines
6.5 KiB
Plaintext

<%@ Page Language="C#" MasterPageFile="../masterPage.master" AutoEventWireup="true" CodeFile="DeptMain.aspx.cs" Inherits="DeptMain" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
Namespace="System.Web.UI" TagPrefix="asp" %>
¡¡
<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="ÕÅÆÖÕò" Value="0" Expanded="True" Selected="True"></asp:TreeNode>
</Nodes>
<SelectedNodeStyle BackColor="Azure" BorderColor="Transparent" />
</asp:TreeView>
</td>
<td width="1" class="VLine" ></td>
<td align="left" valign="top"> <!------ 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"
DataKeyNames="pk_department"
OnRowDeleting="GridView1_RowDeleting"
AllowPaging="True"
OnPageIndexChanging="GridView1_PageIndexChanging"
OnRowDataBound="GridView1_RowDataBound"
OnSorting="GridView1_Sorting" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" Width="95% " ShowFooter="True" EmptyDataText='ûÓÐÊý¾Ý¡£'>
<Columns>
<asp:BoundField ReadOnly="True" DataField="PK_DEPARTMENT" Visible="true" SortExpression="PK_DEPARTMENT" HeaderText="²¿ÃűàºÅ"></asp:BoundField>
<asp:BoundField DataField="DEP_NAME" SortExpression="DEP_NAME" HeaderText="²¿ÃÅÃû³Æ"></asp:BoundField>
<asp:BoundField DataField="DEP_CODE" SortExpression="DEP_CODE" HeaderText="²¿ÃÅ´úÂë"></asp:BoundField>
<asp:BoundField DataField="EM_NAME" SortExpression="DEP_CODE" HeaderText="¸ºÔðÈË"></asp:BoundField>
<asp:BoundField DataField="DEP_TYPE" SortExpression="DEP_TYPE" HeaderText="²¿ÃÅÀàÐÍ"></asp:BoundField>
<asp:BoundField DataField="DEP_DESC" SortExpression="DEP_DESC" HeaderText="²¿ÃÅÃèÊö"></asp:BoundField>
<asp:BoundField DataField="dr" Visible="False" SortExpression="dr" HeaderText="¿ÉÓÃ"></asp:BoundField>
<asp:CommandField SelectText="&lt;img src=../Images/edit.gif border=0 title=ÐÞ¸Ä &gt;" ShowDeleteButton="True" ShowHeader="True" DeleteText="&lt;img src=../Images/Delete.gif border=0 title=ɾ³ý onclick='return delete_click()'&gt;" ShowSelectButton="True" HeaderText="±à¡¡¼­">
<HeaderStyle Width="15%" HorizontalAlign="Center"></HeaderStyle>
<ItemStyle Width="15%" HorizontalAlign="Center"></ItemStyle>
</asp:CommandField>
</Columns>
<RowStyle CssClass="ItemStyle" HorizontalAlign="Center"></RowStyle>
<SelectedRowStyle CssClass="SelectedItemStyle"></SelectedRowStyle>
<PagerStyle HorizontalAlign="Right" />
<HeaderStyle CssClass="HeaderStyle" HorizontalAlign="Center"></HeaderStyle>
<AlternatingRowStyle CssClass="AlternatingItemStyle"></AlternatingRowStyle>
<emptydatatemplate> ûÓÐÊý¾Ý</emptydatatemplate>
</asp:gridview>
<asp:Button ID="btn_addNew" runat="server" Text="ÐÂÔö¼Ç¼" CssClass="Button" OnClick="btnAddnew_Click" />
<asp:Panel ID ="DataDetail" runat="server" Width="100%" Visible="false">
<!------ THE ADD /DELETE AREA ------>
<table class="Table_NoBorder" width="90%">
<tr>
<td colspan ="4" class="ALine" >
</td>
</tr>
<tr><td>
<asp:Label ID="Label2" runat="server" CssClass="Label" Text="²¿ÃÅÃû³Æ"></asp:Label></td><td >
<asp:TextBox ID="txtDepName" runat="server" CssClass="TextBox" MaxLength="25"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtDepName"
ErrorMessage="*" ValidationGroup="1">£ª</asp:RequiredFieldValidator></td>
<td>
&nbsp;<asp:Label ID="Label4" runat="server" CssClass="Label" Text="²¿ÃÅ´úÂë"></asp:Label></td><td >
<asp:TextBox ID="txtDepcode" runat="server" CssClass="TextBox" MaxLength="25"></asp:TextBox>
</td>
</tr>
<tr>
<td>
<asp:Label ID="Label15" runat="server" CssClass="Label" Text="²¿ÃÅÀà±ð"></asp:Label></td><td >
<asp:TextBox ID="txtDepType" CssClass="TextBox" runat="server" MaxLength="25"></asp:TextBox>
</td>
<td>
<asp:Label ID="Label3" runat="server" CssClass="Label" Text="²¿ÃÅÃèÊö"></asp:Label></td><td >
<asp:TextBox ID="txtDepDesc" CssClass="Long_TextBox" runat="server" MaxLength="50"></asp:TextBox></td>
</tr>
<tr>
<td >
<asp:Label ID="Label1" runat="server" CssClass="Label" Text="²¿ÃŸºÔðÈË"></asp:Label></td>
<td >
<asp:DropDownList ID="DropDownList1" runat="server" CssClass="DropDownList">
</asp:DropDownList></td>
<td >
<asp:Label ID="Label5" runat="server" CssClass="Label" Text="Éϼ¶²¿ÃÅ"></asp:Label></td>
<td >
<asp:DropDownList ID="drplstDept" runat="server" CssClass="DropDownList">
</asp:DropDownList></td>
<td />
</tr>
<tr>
<td colspan ="4" class="ALine" >
</td>
</tr>
<tr>
<td align="center" colspan ="4" > <asp:Button ID="btnSubmit" runat="server" CssClass="Button" Text="±£´æÊý¾Ý" OnClick="btnSubmit_Click" ValidationGroup="1" />
</td>
</tr>
</table>
</asp:Panel>
</td></tr>
</table>
</td></tr>
</table>
</asp:Content>