<%@ page title="Department Master" language="C#" masterpagefile="~/MasterPage.master" autoeventwireup="true" inherits="DepartmentMaster, App_Web_fzfkhksa" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="main-content container-fluid">
        <div class="page-title">
            <h3>Department Master</h3>
        </div>
        <section class="section">
            <div class="row bspace">
                <div class="col-md-8">
                    <div class="divider">
                        <div class="divider-text">Department Details</div>
                    </div>
                    <div class="row bspace">
                        <div class="col-md-4">
                            <label class="label">Department Name</label>
                        </div>
                        <div class="col-md-8">
                            <asp:TextBox ID="txtDepartmentName" runat="server" CssClass="form-control" placeholder="Department Name" required></asp:TextBox>
                        </div>
                    </div>

                    <div class="row form-group">
                        <asp:Label ID="lblError" runat="server" ForeColor="Red"></asp:Label>
                        <asp:Label ID="lblID" runat="server" Visible="false"></asp:Label>
                        <asp:Label ID="lblUserID" runat="server" Visible="false"></asp:Label>
                        <asp:Label ID="lblMsg" runat="server" ForeColor="Green"></asp:Label>
                    </div>
                    <div class="row bspace">
                        <div class="col-md-6 float-md-right">
                            <asp:Button ID="btnSave" runat="server" Text="Save" CssClass="btn btn-primary" OnClick="btnSave_Click" />
                            <asp:Button ID="btnReset" runat="server" Text="Reset" CssClass="btn btn-primary" OnClick="btnReset_Click" />
                            <asp:Button ID="btnDelete" runat="server" Text="Delete" CssClass="btn btn-primary" OnClick="btnDelete_Click"  />
                        </div>
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="divider">
                        <div class="divider-text">Department List</div>
                    </div>
                    <div class="row">
                        <asp:GridView ID="GridDepartmentMaster" runat="server" AutoGenerateColumns="false" CssClass="table table-responsive table-bordered" OnSelectedIndexChanged="GridDepartmentMaster_SelectedIndexChanged">
                            <Columns>
                                <asp:CommandField SelectText="<<" ShowSelectButton="true" />
                                <asp:BoundField DataField="DepartmentID" HeaderText="DepartmentID" SortExpression="DepartmentID" HeaderStyle-CssClass="hideGridColumn" ItemStyle-CssClass="hideGridColumn" />
                                <asp:BoundField DataField="DepartmentName" HeaderText="DepartmentName" SortExpression="DepartmentName" />
                            </Columns>
                        </asp:GridView>
                    </div>
                </div>
            </div>
        </section>
    </div>

</asp:Content>

