📄 admin_case.aspx
字号:
<%@ page language="C#" autoeventwireup="true" inherits="Admin_Admin_Case, 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">
<div>
<table border="0" cellpadding="0" cellspacing="1" style="width: 100%; background-color: gainsboro">
<tr>
<td align="center" colspan="2" style="height: 35px; background-color: aliceblue">
添加故障情形</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:TextBox ID="txtDetail" runat="server" BorderStyle="Groove" Height="20px" Width="300px"></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:DropDownList ID="ClassList" runat="server" DataSourceID="SqlDSClass" DataTextField="ClassName"
DataValueField="ClassID">
</asp:DropDownList>
<asp:Label ID="txtMsg" 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: 35px; background-color: aliceblue">
故障情形管理</td>
</tr>
<tr>
<td align="center" colspan="2" style="height: 30px; background-color: #ffffff" valign="top">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:GridView ID="GridViewCase" runat="server" AllowPaging="True" AllowSorting="True"
AutoGenerateColumns="False" CellPadding="4" DataKeyNames="CaseID" DataSourceID="SqlDSCase"
ForeColor="#333333" GridLines="None" PageSize="15" Width="100%" OnRowCommand="GridViewCase_RowCommand">
<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<Columns>
<asp:BoundField DataField="CaseID" HeaderText="情形编号" InsertVisible="False" ReadOnly="True"
SortExpression="CaseID" >
<ItemStyle HorizontalAlign="Center" Width="13%" />
</asp:BoundField>
<asp:TemplateField HeaderText="所属分类">
<EditItemTemplate>
<asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="SqlDSClass" DataTextField="ClassName"
DataValueField="ClassID" SelectedValue='<%# Bind("ClassID") %>'>
</asp:DropDownList>
</EditItemTemplate>
<ItemTemplate>
<asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="SqlDSClass" DataTextField="ClassName"
DataValueField="ClassID" SelectedValue='<%# Bind("ClassID") %>'>
</asp:DropDownList>
</ItemTemplate>
<ItemStyle HorizontalAlign="Center" Width="20%" />
</asp:TemplateField>
<asp:BoundField DataField="CaseDetail" HeaderText="故障情形" SortExpression="CaseDetail" >
<ItemStyle HorizontalAlign="Center" Width="37%" />
</asp:BoundField>
<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>
<ItemTemplate>
<asp:LinkButton ID="btnEdit" runat="server" CausesValidation="False" CommandName="Edit"
Text="编辑"></asp:LinkButton>
</ItemTemplate>
<ItemStyle HorizontalAlign="Center" Width="20%" />
</asp:TemplateField>
<asp:TemplateField HeaderText="删除" ShowHeader="False">
<ItemTemplate>
<asp:LinkButton ID="btnDelete" runat="server" CausesValidation="False" CommandName="Delete"
OnClientClick="return confirm('你确定要删除该数据吗?')" Text="删除"></asp:LinkButton>
</ItemTemplate>
<ItemStyle HorizontalAlign="Center" Width="10%" />
</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>
<asp:SqlDataSource ID="SqlDSClass" runat="server" ConnectionString="<%$ ConnectionStrings:SQLConnection %>"
SelectCommand="Admin_Class_List" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
<asp:SqlDataSource ID="SqlDSCase" runat="server" ConnectionString="<%$ ConnectionStrings:SQLConnection %>"
DeleteCommand="Admin_Case_Delete"
SelectCommand="Admin_Case_List" UpdateCommand="Admin_Case_Update" DeleteCommandType="StoredProcedure" SelectCommandType="StoredProcedure" UpdateCommandType="StoredProcedure">
<DeleteParameters>
<asp:Parameter Name="CaseID" Type="Int32" />
</DeleteParameters>
<UpdateParameters>
<asp:Parameter Name="CaseID" Type="Int32" />
<asp:Parameter Name="ClassID" Type="Int32" />
<asp:Parameter Name="CaseDetail" Type="String" />
</UpdateParameters>
</asp:SqlDataSource>
</ContentTemplate>
</asp:UpdatePanel>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -