📄 usermng.aspx
字号:
<%@ Page language="c#" Codebehind="UserMng.aspx.cs" AutoEventWireup="false" Inherits="Views.Car.UserMng" %>
<%@ Register TagPrefix="ViewsCar" TagName="Header" Src="Ascxs/Header.ascx" %>
<%@ Register TagPrefix="ViewsCar" TagName="Lefter" Src="Ascxs/Lefter.ascx" %>
<%@ Register TagPrefix="ViewsCar" TagName="Footer" Src="Ascxs/Footer.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>
<%=this.Title%>
</title>
<script language="javascript" src="Scripts/CarScript.js" type="text/javascript"></script>
<link href="Styles/CarStyle.CSS" rel="stylesheet" type="text/css">
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body>
<form id="Form1" method="post" runat="server">
<TABLE height="85" cellSpacing="0" cellPadding="0" width="750" align="center" border="0">
<TR>
<TD><VIEWSCAR:HEADER id="Header1" runat="server"></VIEWSCAR:HEADER></TD>
</TR>
</TABLE>
<TABLE cellSpacing="0" cellPadding="0" width="750" align="center" border="0">
<TR>
<TD vAlign="top" width="160"><VIEWSCAR:LEFTER id="Lefter1" runat="server"></VIEWSCAR:LEFTER></TD>
<TD height="320">
<TABLE id="Table1" height="100%" cellSpacing="0" cellPadding="0" width="100%" border="0">
<TR>
<TD width="200" height="23">用户信息</TD>
<TD width="20"></TD>
<TD>员工信息(打勾的为当前部门员工)</TD>
</TR>
<TR>
<TD align="center" width="250">
<TABLE id="Table2" height="100%" cellSpacing="0" cellPadding="0" border="0">
<TR>
<TD colSpan="3" vAlign="top">
<TABLE id="Table3" cellSpacing="0" cellPadding="0" width="100%" border="0">
<TR id="trUserID" runat="server">
<TD width="70" height="25" align="right">用户ID:</TD>
<TD>
<asp:Label id="lblUserID" runat="server"></asp:Label></TD>
</TR>
<TR>
<TD width="70" height="25" align="right">用户帐号:</TD>
<TD>
<asp:TextBox id="txtUserAccount" runat="server" MaxLength="16"></asp:TextBox></TD>
</TR>
<TR>
<TD width="70" height="25" align="right">用户姓名:</TD>
<TD>
<asp:TextBox id="txtUserName" runat="server" MaxLength="16"></asp:TextBox></TD>
</TR>
<TR>
<TD width="70" height="25" align="right">登陆密码:</TD>
<TD>
<asp:TextBox id="txtUserPswd" runat="server" MaxLength="16" TextMode="Password"></asp:TextBox></TD>
</TR>
<TR>
<TD width="70" height="25" align="right">验证密码:</TD>
<TD>
<asp:TextBox id="txtUserPswd2" runat="server" MaxLength="16" TextMode="Password"></asp:TextBox></TD>
</TR>
<TR>
<TD width="70" height="25" align="right">用户角色:</TD>
<TD>
<asp:DropDownList id="ddlUserPrivil" runat="server"></asp:DropDownList>
<asp:CheckBox id="cbIsAdmin" runat="server" Text="管理员"></asp:CheckBox></TD>
</TR>
<TR>
<TD width="70" height="25" align="right">用户部门:</TD>
<TD>
<asp:DropDownList id="ddlUserDept" runat="server"></asp:DropDownList></TD>
</TR>
<TR>
<TD width="70" height="25" align="right">性别:</TD>
<TD>
<asp:RadioButton id="rbMale" runat="server" Text="男" GroupName="UserSex"></asp:RadioButton>
<asp:RadioButton id="rbFemale" runat="server" Text="女" GroupName="UserSex"></asp:RadioButton></TD>
</TR>
<TR>
<TD width="70" align="right" valign="top">用户职务:</TD>
<TD>
<asp:TextBox id="txtPosition" runat="server" MaxLength="8"></asp:TextBox></TD>
</TR>
<TR>
<TD width="70" align="right" valign="top">备注信息:</TD>
<TD>
<asp:TextBox id="txtUserMemo" runat="server" TextMode="MultiLine" Rows="4"></asp:TextBox></TD>
</TR>
</TABLE>
</TD>
</TR>
<TR>
<TD align="center" colSpan="3" height="30"><FONT face="宋体">
<asp:CheckBox id="cbNewUser" runat="server" Text="添加新用户" AutoPostBack="True"></asp:CheckBox> </FONT>
<asp:linkbutton id="LinkButton1" runat="server" CommandName="SAVEUSER">保存用户</asp:linkbutton>
<asp:linkbutton id="Linkbutton2" runat="server" CommandName="DELUSERS">删除选定用户</asp:linkbutton></TD>
</TR>
</TABLE>
</TD>
<TD width="5"></TD>
<TD>
<div style="OVERFLOW-Y: auto; WIDTH: 100%; HEIGHT: 100%"><asp:datagrid id="dgUser" runat="server" AutoGenerateColumns="False" Width="100%">
<SelectedItemStyle BackColor="LightGray"></SelectedItemStyle>
<HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
<Columns>
<asp:BoundColumn DataField="UserID" HeaderText="ID">
<HeaderStyle Width="40px"></HeaderStyle>
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle"></ItemStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="UserName" HeaderText="姓名">
<HeaderStyle Width="80px"></HeaderStyle>
</asp:BoundColumn>
<asp:TemplateColumn HeaderText="性别">
<HeaderStyle Width="30px"></HeaderStyle>
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle"></ItemStyle>
<ItemTemplate>
<asp:Label id=Label2 runat="server" Text='<%# Convert.ToBoolean(DataBinder.Eval(Container, "DataItem.Sex"))?"男":"女" %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="修改">
<HeaderStyle Width="50px"></HeaderStyle>
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle"></ItemStyle>
<ItemTemplate>
<asp:LinkButton id="LinkButton3" runat="server" CommandName="USERINFO">修改</asp:LinkButton>
<asp:CheckBox id="cbDelUser" runat="server"></asp:CheckBox>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</asp:datagrid></div>
</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
<TABLE height="25" cellSpacing="0" cellPadding="0" width="750" align="center" border="0">
<TR>
<TD><VIEWSCAR:FOOTER id="Footer1" runat="server"></VIEWSCAR:FOOTER></TD>
</TR>
</TABLE>
</form>
</body>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -