📄 dd_listall.aspx
字号:
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="DD_ListAll.aspx.cs" Inherits="DepartmentDecision_DD_ListAll" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
请选择您要查看的部门:<asp:DropDownList ID="DropDownList1" runat="server" DataTextField="Dept_Name"
DataValueField="Dept_ID">
</asp:DropDownList>
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="查看" /><br />
<table style="width: 650px; height: 500px; text-align: center">
<tr>
<td colspan="3" rowspan="1" style="height: 50px; background-color: #ffffcc; text-align: center">
<span style="font-size: 24pt; font-family: 楷体_GB2312">
<asp:Label ID="lblDept" runat="server"></asp:Label>决策列表</span></td>
</tr>
<tr>
<td colspan="3" rowspan="1" style="height: 400px; text-align: center" valign="top">
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="Data Source=ADIR;Initial Catalog=OfficeOnline;User ID=sa;Password=93626wenbo"
ProviderName="System.Data.SqlClient" SelectCommand="SELECT DD_ID, DD_Title, DD_ConfirmDate, DD_IsConfirm, Dept_ID FROM z_DepartmentDecision WHERE (DD_IsConfirm = @DD_IsConfirm) AND (Dept_ID = @Dept_ID) ORDER BY DD_ConfirmDate DESC">
<SelectParameters>
<asp:Parameter DefaultValue="1" Name="DD_IsConfirm" />
<asp:ControlParameter ControlID="DropDownList1" DefaultValue="" Name="Dept_ID" PropertyName="SelectedValue" />
</SelectParameters>
</asp:SqlDataSource>
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
CellPadding="4" DataKeyNames="DD_ID" DataSourceID="SqlDataSource1" ForeColor="#333333"
GridLines="None" Width="600px">
<FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
<Columns>
<asp:BoundField DataField="DD_ID" HeaderText="部门决策号" InsertVisible="False" ReadOnly="True"
SortExpression="DD_ID" />
<asp:TemplateField HeaderText="标题">
<ItemTemplate>
<asp:LinkButton ID="LinkButton1" runat="server" CommandArgument='<%# Eval("DD_ID") %>'
OnCommand="LinkButton1_Command" Text='<%# Eval("DD_Title") %>'></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="DD_ConfirmDate" HeaderText="发布日期" SortExpression="DD_AddDate" />
</Columns>
<RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
<SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
<PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
<HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="White" />
</asp:GridView>
</td>
</tr>
<tr>
<td colspan="3" rowspan="3" style="height: 50px">
</td>
</tr>
<tr>
</tr>
<tr>
</tr>
</table>
</asp:Content>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -