<%@ Page Language="c#" Inherits="Web.Wpdcc.department" CodeBehind="department.aspx.cs" %>

<!DOCTYPE html>
<!--[if lt IE 9]><html class="lte-ie8"><![endif]-->
<!--[if gt IE 8]><!-->
<html>
<!--<![endif]-->
<head>
    <title>部门管理</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!--#include file="../Css/head.htm"-->

</head>
<body>
    <div class="main-content-inner">
        <!-- #section:basics/content.breadcrumbs -->
        <div class="breadcrumbs" id="breadcrumbs">
            <script type="text/javascript">
                try { ace.settings.check('breadcrumbs', 'fixed') } catch (e) { }
            </script>
            <ul class="breadcrumb">
                <li>
                    <i class="ace-icon fa  fa-desktop"></i>
                    <a href="../welcome.aspx">主页</a>
                </li>
                <li>基础数据设置
                </li>
                <li class="active">部门管理</li>
            </ul>
            <!-- /.breadcrumb -->

            <!-- /section:basics/content.searchbox -->
        </div>
        <!-- /section:basics/content.breadcrumbs -->
        <div class="page-content">
            <div class="row">
                <div class="col-xs-12">
                    <!-- PAGE CONTENT BEGINS -->
                    <div class="list-func-box func-box">
                        <form id="grade" method="post" runat="server">
                            <!-- #section:elements.tab.option -->
                            <div class="tabbable">
                                <ul class="nav nav-tabs" id="myTab4">
                                    <li class="active">
                                        <a aria-expanded="false" href="department.aspx" data-toggle="tab">部门管理</a>
                                    </li>
                                    <li>
                                        <a aria-expanded="false" href="grade.aspx" data-toggle="tab">等级管理</a>
                                    </li>
                                    <li>
                                        <a aria-expanded="false" href="lockIP.aspx" data-toggle="tab">内外网管理</a>
                                    </li>
                                    <li>
                                        <a aria-expanded="false" href="special.aspx" data-toggle="tab">专题管理</a>
                                    </li>
                                    <li>
                                        <a aria-expanded="false" href="manageSensitiveWord.aspx" data-toggle="tab">敏感词</a>
                                    </li>
                                    <li>
                                        <a aria-expanded="false" href="ManageSignUpField.aspx" data-toggle="tab">自定义表单</a>
                                    </li>
                                </ul>
                            </div>
                            <!-- /section:elements.tab.option -->
                            <div class="bd tab-content">
                                <div class="page-header clearfix">
                                    <div class="action-field">
                                        <div class="function-hd">
                                            <div class="search-box">
                                                部门名称：<asp:textbox id="name" class="input-md" runat="server" notnull="true" maxlength="40"
                                                    msgname="部门名称"></asp:textbox><asp:hiddenfield id="HiddenFieldDepId" runat="server" />
                                                <asp:button id="ok" class="btn btn-sm btn-primary" runat="server" text="添加" onclientclick="return checkAllValidate();"
                                                    onclick="Btn_Click"></asp:button>
                                                &nbsp;&nbsp;
                <asp:button id="cancel" class="btn btn-sm btn-primary" runat="server" text="取消" enabled="False" causesvalidation="False"
                    onclick="Btn_Click"></asp:button>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <asp:gridview id="GridView1" runat="server" enablemodelvalidation="True" autogeneratecolumns="false" cssclass="table table-striped table-bordered table-hover" onrowcommand="GridView1_RowCommand" onrowdatabound="GridView1_RowDataBound">
                                    <Columns>
                                        <asp:BoundField DataField="pkId" HeaderText="ID" HeaderStyle-CssClass="title" />
                                        <asp:BoundField DataField="name" HeaderText="部门名称" HeaderStyle-CssClass="title" HeaderStyle-Width="60%" />
                                        <asp:TemplateField HeaderText="执行" HeaderStyle-CssClass="title">
                                            <ItemTemplate>
                                                <div class="action-buttons">
                                                    <asp:LinkButton ID="edit1" runat="server" CausesValidation="False" CommandName="edit1" data-toggle="tooltip" data-placement="bottom" CommandArgument='<%#Eval("pkId") +"&"+Eval("name") %>' title="编辑"><i class="ace-icon fa fa-pencil bigger-120 blue"></i></asp:LinkButton>
                                                    <a href='../UserInfoSearch.aspx?searchId=<%#Eval("pkId") %>&t=1' data-toggle="tooltip" data-placement="bottom" title="部门发文搜索" class="fbox">
                                                        <i class="ace-icon fa fa-search-plus light-blue bigger-120"></i></a>
                                                    <asp:LinkButton ID="lbdelete" runat="server" CausesValidation="False" CommandName="del" data-toggle="tooltip" data-placement="bottom"  title="删除" CommandArgument='<%#Eval("pkId") +"&"+Eval("name") %>'><i class="ace-icon fa fa-trash-o red bigger-120" ></i></asp:LinkButton>
                                                </div>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                </asp:gridview>
                            </div>
                        </form>
                    </div>
                    <!-- PAGE CONTENT ENDS -->
                </div>
            </div>
        </div>
        <!-- /.page-content -->
    </div>
    <!--#include file = "../Css/foot.htm" -->
    

    <script language="javascript" type="text/javascript">
        $(document).ready(function () {

            $(".fbox").click().fancybox({
                'width': 780,
                'height': 700,
                autoSize: false,
                'hideOnOverlayClick': false,
                'transitionIn': 'elastic',
                'transitionOut': 'elastic',
                'type': 'iframe',
                'padding': '0'
            });
        });
    </script>
</body>
</html>
