DepartmentView.aspx

(完整代码) 3KB

<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="DepartmentView.aspx.cs" Inherits="DepartmentView" Debug="true" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
        <div class="c_MainLeft">
	<ul style="text-align:left;">
    <li style="list-style-type: none;height:120px;">
        <img src="images/045.png" /></li><li style="list-style-type: none;height:40px;"></li>
    <li style="list-style-type: none;height:40px;">共有<asp:Label ID="lbl_Count" runat="server"
        Style="color: red"></asp:Label>个部门</li><li style="list-style-type: none;height:40px;"></li>
    </ul>
        </div>
        <div class="c_MainRight">
            <asp:Panel ID="pDepartmentMenu3" runat="server" CssClass="c_Menu3">
                <asp:LinkButton ID="lbDepartmentAdd" runat="server" OnClick="lbDepartmentAdd_Click" CssClass="c_Menu3Button">新增</asp:LinkButton>
                <asp:LinkButton ID="lbDepartmentEdit" runat="server" OnClick="lbDepartmentEdit_Click" CssClass="c_Menu3Button">修改</asp:LinkButton></asp:Panel>
            <asp:GridView ID="GV_Department" runat="server" AutoGenerateColumns="False" CellPadding="4"
                ForeColor="#333333" Style="width: 100%" OnRowCancelingEdit="GV_Department_RowCancelingEdit" OnRowDeleting="GV_Department_RowDeleting" OnSelectedIndexChanging="GV_Department_SelectedIndexChanging">
                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <Columns>
                    <asp:BoundField DataField="Department_Code" HeaderText="部门代码">
                        <ItemStyle HorizontalAlign="Center" />
                        <HeaderStyle Width="30%" />
                    </asp:BoundField>
                    <asp:BoundField DataField="Department_Name" HeaderText="部门名称">
                        <ItemStyle HorizontalAlign="Center" />
                        <HeaderStyle Width="50%" />
                    </asp:BoundField>
                    <asp:CommandField HeaderText="选择" ShowSelectButton="True">
                        <HeaderStyle Width="10%" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:CommandField>
                    <asp:TemplateField HeaderText="删除" ShowHeader="False">
                        <ItemStyle HorizontalAlign="Center" />
                        <HeaderStyle Width="10%" />
                        <ItemTemplate>
                            <asp:LinkButton ID="LinkButton1" 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="Center" />
                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <AlternatingRowStyle BackColor="White" />
            </asp:GridView>
        </div>
</asp:Content>

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。