📄 addmemberinfo.aspx
字号:
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="AddMemberInfo.aspx.vb" Inherits="EContract.AddMemberInfo"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>AddMemberInfo</title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.0">
<meta name="CODE_LANGUAGE" content="Visual Basic 7.0">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<FONT face="宋体">
<TABLE id="Table1" width="100%">
<TR>
<TD align="middle">
<asp:Label id="lbSign" runat="server" Font-Size="Large" Font-Bold="True" ForeColor="#8080FF">添加用户信息</asp:Label></TD>
</TR>
<TR>
<TD align="middle">
<TABLE id="Table2" cellSpacing="1" cellPadding="1" width="300" border="1">
<TR>
<TD>用户ID</TD>
<TD>
<asp:TextBox id="TxtMemberId" runat="server"></asp:TextBox></TD>
</TR>
<TR>
<TD>用户名</TD>
<TD>
<asp:TextBox id="txtMemberName" runat="server"></asp:TextBox></TD>
</TR>
<TR>
<TD>所属部门</TD>
<TD>
<asp:DropDownList id="DPDeptList" runat="server" Width="90px"></asp:DropDownList></TD>
</TR>
<TR>
<TD>角色</TD>
<TD>
<asp:DropDownList id="DpRoleList" runat="server">
<asp:ListItem Value="3" Selected="True">一般用户</asp:ListItem>
<asp:ListItem Value="2">部门领导</asp:ListItem>
<asp:ListItem Value="1">系统管理员</asp:ListItem>
</asp:DropDownList></TD>
</TR>
</TABLE>
</TD>
</TR>
<TR>
<TD align="middle">
<table height="40" cellSpacing="1" cellPadding="3" width="100%" border="0">
<tr>
<td> </td>
<td width="120">
<div align="center"><asp:linkbutton id="Add_Btn" runat="server">添加</asp:linkbutton></div>
</td>
<td width="120">
<div align="center"><FONT face="宋体"><asp:linkbutton id="Cancel_Btn" runat="server">取消</asp:linkbutton></FONT></div>
</td>
<td> </td>
</tr>
<tr>
<td> </td>
<td width="120">
<div align="center"><asp:linkbutton id="Update_btn" runat="server" Visible="False">更新</asp:linkbutton></div>
</td>
<td width="120">
<div align="center"><asp:linkbutton id="Delete_Btn" runat="server" Visible="False">删除</asp:linkbutton></div>
</td>
<td> </td>
</tr>
</table>
</TD>
</TR>
<TR>
<TD align="middle">
<asp:DataGrid id="MemberDBGrd" runat="server" Width="100%" AutoGenerateColumns="False" AllowPaging="True" GridLines="Horizontal" CellPadding="3" BackColor="White" BorderWidth="1px" BorderStyle="None" BorderColor="#E7E7FF">
<SelectedItemStyle Font-Bold="True" ForeColor="#F7F7F7" BackColor="#738A9C"></SelectedItemStyle>
<AlternatingItemStyle BackColor="#F7F7F7"></AlternatingItemStyle>
<ItemStyle ForeColor="#4A3C8C" BackColor="#E7E7FF"></ItemStyle>
<HeaderStyle Font-Bold="True" HorizontalAlign="Center" ForeColor="#F7F7F7" BackColor="#4A3C8C"></HeaderStyle>
<FooterStyle HorizontalAlign="Center" ForeColor="#4A3C8C" BackColor="#B5C7DE"></FooterStyle>
<Columns>
<asp:TemplateColumn HeaderText="修改">
<ItemStyle HorizontalAlign="Center"></ItemStyle>
<ItemTemplate>
<asp:HyperLink id=EditLink runat="server" Width="15px" Height="19px" ImageUrl="..\Img\EditImg.gif" NavigateUrl='<%# MakeUrl(DataBinder.Eval(Container.DataItem, "MemberId")) %>'>
</asp:HyperLink>
</ItemTemplate>
</asp:TemplateColumn>
<asp:BoundColumn DataField="MemberId" ReadOnly="True" HeaderText="用户ID">
<ItemStyle HorizontalAlign="Center"></ItemStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="MemberName" ReadOnly="True" HeaderText="用户名">
<ItemStyle HorizontalAlign="Center"></ItemStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="DepartmentName" HeaderText="用户部门">
<ItemStyle HorizontalAlign="Center"></ItemStyle>
</asp:BoundColumn>
<asp:TemplateColumn HeaderText="用户角色">
<ItemStyle HorizontalAlign="Center"></ItemStyle>
<ItemTemplate>
<asp:Label id=Label1 runat="server" Text='<%# EditRole(DataBinder.Eval(Container, "DataItem.Role")) %>'>
</asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:DropDownList id="DpRoleList" runat="server">
<asp:ListItem Value="3" Selected="True">一般用户</asp:ListItem>
<asp:ListItem Value="2">部门经理</asp:ListItem>
<asp:ListItem Value="1">系统管理员</asp:ListItem>
</asp:DropDownList>
</EditItemTemplate>
</asp:TemplateColumn>
</Columns>
<PagerStyle HorizontalAlign="center" ForeColor="#4A3C8C" BackColor="#E7E7FF" Mode="NumericPages"></PagerStyle>
</asp:DataGrid></TD>
</TR>
</TABLE>
</FONT>
</form>
</body>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -