📄 admin_fixer.aspx
字号:
<%@ page language="C#" autoeventwireup="true" inherits="Admin_Admin_Fixer, App_Web_2de4qqid" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>无标题页</title>
<link href="../Images/Style.css" rel="stylesheet" type="text/css" />
</head>
<body style="margin: 1px">
<form id="form1" runat="server">
<asp:Panel ID="ListPanel" runat="server" Width="100%"><table border="0" cellpadding="0" cellspacing="1" style="width: 100%; background-color: gainsboro">
<tr>
<td align="center" style="height: 35px; background-color: aliceblue" colspan="2">
添加维修人员</td>
</tr>
<tr>
<td align="center" style="width: 20%; height: 35px; background-color: aliceblue">
维修人员</td>
<td align="left" style="width: 80%; background-color: #ffffff; height: 35px;">
<asp:TextBox ID="txtFixerName" runat="server" BorderStyle="Groove" Height="20px"
Width="200px"></asp:TextBox></td>
</tr>
<tr>
<td align="center" style="width: 20%; height: 35px; background-color: aliceblue">
登陆密码</td>
<td align="left" style="width: 80%; background-color: #ffffff; height: 35px;">
<asp:TextBox ID="txtFixerPassword" runat="server" BorderStyle="Groove" Height="20px"
TextMode="Password" Width="200px"></asp:TextBox></td>
</tr>
<tr>
<td align="center" style="width: 20%; height: 35px; background-color: aliceblue">
负责项目</td>
<td align="left" style="width: 80%; height: 35px; background-color: #ffffff">
<asp:CheckBoxList ID="cblPurview" runat="server" DataSourceID="SqlDSClass" DataTextField="ClassName"
DataValueField="ClassID" RepeatColumns="4" RepeatDirection="Horizontal" Height="20px" RepeatLayout="Flow">
</asp:CheckBoxList></td>
</tr>
<tr>
<td align="center" style="width: 20%; height: 35px; background-color: aliceblue">
备注信息</td>
<td align="left" style="width: 80%; background-color: #ffffff; height: 35px;">
<asp:TextBox ID="txtRemark" runat="server" BorderStyle="Groove" Height="20px" Width="200px"></asp:TextBox>
<asp:Label ID="lblMsg" runat="server"></asp:Label></td>
</tr>
<tr>
<td align="center" style="height: 35px; background-color: aliceblue" colspan="2">
<asp:ImageButton ID="btnOK" runat="server" ImageUrl="~/Images/form_submit.gif" OnClick="btnOK_Click" /></td>
</tr>
<tr>
<td align="center" style="height: 35px; background-color: #ffffff" colspan="2"></td>
</tr>
<tr>
<td align="center" colspan="2" style="height: 30px; background-color: aliceblue">
维修人员管理</td>
</tr>
<tr>
<td align="center" style="background-color: #ffffff" colspan="2" valign="top">
<asp:GridView ID="GridViewFixer" runat="server" AllowPaging="True" AllowSorting="True"
AutoGenerateColumns="False" CellPadding="4" DataKeyNames="FixerID" DataSourceID="SqlDSFixer"
ForeColor="#333333" GridLines="None" PageSize="8" Width="100%" OnSelectedIndexChanged="GridViewFixer_SelectedIndexChanged" OnDataBound="GridViewFixer_DataBound">
<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<Columns>
<asp:BoundField DataField="FixerID" HeaderText="编号" InsertVisible="False" ReadOnly="True"
SortExpression="FixerID">
<ItemStyle HorizontalAlign="Center" Width="10%" />
</asp:BoundField>
<asp:BoundField DataField="FixerName" HeaderText="维修人员" SortExpression="FixerName">
<ItemStyle Width="15%" />
</asp:BoundField>
<asp:BoundField DataField="Remark" HeaderText="备注信息" SortExpression="Remark">
<ItemStyle Width="15%" />
</asp:BoundField>
<asp:BoundField DataField="LastLoginDate" HeaderText="最近登陆" SortExpression="LastLoginDate" DataFormatString="{0:Y-M-D h:m:s}" ReadOnly="True">
<ItemStyle Width="15%" />
</asp:BoundField>
<asp:BoundField DataField="LoginTimes" HeaderText="登陆次数" SortExpression="LoginTimes" ReadOnly="True">
<ItemStyle HorizontalAlign="Center" Width="10%" />
</asp:BoundField>
<asp:TemplateField HeaderText="维修项目" ShowHeader="False">
<ItemStyle HorizontalAlign="Center" Width="10%" />
<ItemTemplate>
<asp:LinkButton ID="btnPurview" runat="server" CausesValidation="False" CommandName="Select"
Text="设置"></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="编辑" ShowHeader="False">
<EditItemTemplate>
<asp:LinkButton ID="btnUpdate" runat="server" CausesValidation="True" CommandName="Update"
OnClientClick="return confirm('你确定要更新该数据吗?')" Text="更新"></asp:LinkButton>
<asp:LinkButton ID="btnCancle" runat="server" CausesValidation="False" CommandName="Cancel"
Text="取消"></asp:LinkButton>
</EditItemTemplate>
<ItemStyle HorizontalAlign="Center" Width="15%" />
<ItemTemplate>
<asp:LinkButton ID="btnEdit" runat="server" CausesValidation="False" CommandName="Edit"
Text="编辑"></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="删除" ShowHeader="False">
<ItemStyle HorizontalAlign="Center" Width="10%" />
<ItemTemplate>
<asp:LinkButton ID="btnDelete" runat="server" CausesValidation="False" CommandName="Delete"
OnClientClick="return confirm('你确定要删除该数据吗?')" Text="删除"></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<RowStyle BackColor="#EFF3FB" />
<EditRowStyle BackColor="#2461BF" />
<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Right" />
<HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="White" />
</asp:GridView>
</td>
</tr>
</table>
</asp:Panel>
<asp:Panel ID="EditPanel" runat="server" Width="100%">
<table border="0" cellpadding="0" cellspacing="1" style="width: 100%; background-color: gainsboro">
<tr>
<td align="center" style="height: 35px; background-color: aliceblue" colspan="2">
维修项目设置</td>
</tr>
<tr>
<td align="center" style="width: 20%; height: 35px; background-color: aliceblue">
维修人员</td>
<td align="left" style="width: 80%; height: 35px; background-color: #ffffff">
<asp:Label ID="lblFixer" runat="server"></asp:Label>
<asp:Label ID="lblFixerID" runat="server" Visible="False"></asp:Label></td>
</tr>
<tr>
<td align="center" style="width: 20%; height: 35px; background-color: aliceblue">
负责项目</td>
<td align="left" style="width: 80%; height: 35px; background-color: #ffffff">
<asp:CheckBoxList ID="cblFixerPurview" runat="server" DataSourceID="SqlDSClass" DataTextField="ClassName"
DataValueField="ClassID" Height="20px" RepeatColumns="4" RepeatDirection="Horizontal"
RepeatLayout="Flow">
</asp:CheckBoxList></td>
</tr>
<tr>
<td align="center" style="height: 35px; background-color: #ffffff" colspan="2">
<asp:ImageButton ID="btnFixerPurview" runat="server" ImageUrl="~/Images/form_submit.gif" OnClick="btnFixerPurview_Click" /></td>
</tr>
</table>
</asp:Panel>
<asp:SqlDataSource ID="SqlDSClass" runat="server" ConnectionString="<%$ ConnectionStrings:SQLConnection %>"
SelectCommand="Admin_Class_List" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
<asp:SqlDataSource ID="SqlDSFixer" runat="server" ConnectionString="<%$ ConnectionStrings:SQLConnection %>"
DeleteCommand="Admin_Fixer_Delete"
SelectCommand="Admin_Fixer_List"
UpdateCommand="Admin_Fixer_Update" DeleteCommandType="StoredProcedure" SelectCommandType="StoredProcedure" UpdateCommandType="StoredProcedure">
<DeleteParameters>
<asp:Parameter Name="FixerID" Type="Int32" />
</DeleteParameters>
<UpdateParameters>
<asp:Parameter Name="FixerName" Type="String" />
<asp:Parameter Name="Remark" Type="String" />
<asp:Parameter Name="FixerID" Type="Int32" />
</UpdateParameters>
</asp:SqlDataSource>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -