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

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <div class="main-content container-fluid">
        <div class="page-title">
            <h3>Species Master</h3>
        </div>
        <section class="section">
            <%-- <div class="card col-md-12 main-content">
            <div class="card-header">
                <h3 class='card-heading p-1 pl-3'>Dashboard</h3>
            </div>
            <div class="card-body">--%>
            <div class="row bspace">
                <div class="col-md-8">
                    <div class="divider">
                        <div class="divider-text">Species Details</div>
                    </div>
                    <div class="row bspace">
                        <div class="col-md-4 bspace">
                            <label class="label">Species Name</label>
                        </div>
                        <div class="col-md-8 bspace">
                            <asp:TextBox ID="txtSpeciesName" runat="server" CssClass="form-control" placeholder="Species Name" required></asp:TextBox>
                        </div>
                    </div>
                    <div class="row bspace">
                        <div class="col-md-4 bspace">
                            <label class="label">Species Type</label>
                        </div>
                        <div class="col-md-8 bspace">
                            <asp:DropDownList ID="ddlSpeciesType" runat="server" CssClass="form-control">
                                <asp:ListItem Selected="True" Value="Select" Text="Select"></asp:ListItem>
                                <asp:ListItem Text="Large"></asp:ListItem>
                                <asp:ListItem Text="Small"></asp:ListItem>
                                <asp:ListItem Text="Exotic"></asp:ListItem>
                                <asp:ListItem Text="Equine"></asp:ListItem>
                            </asp:DropDownList>
                        </div>
                    </div>
                    <div class="row bspace">
                        <div class="col-md-5 bspace">
                            <label class="label">Species Part Name</label>
                            <asp:TextBox ID="txtPartName" runat="server" CssClass="form-control" placeholder="Species Part Name"></asp:TextBox>
                        </div>
                        <div class="col-md-5 bspace">
                            <label class="label">Species Part Detail</label>
                            <asp:TextBox ID="txtPartDetails" runat="server" CssClass="form-control" placeholder="Species Part Details" TextMode="MultiLine" Height="100px"></asp:TextBox>
                        </div>
                        <div class="col-md-2 bspace">
                            <asp:Button ID="btnAdd" runat="server" Text="Add" CssClass="btn btn-primary float-right" OnClick="btnAdd_Click" />
                        </div>
                    </div>
                    <div class="row bspace WrapText">
                        <asp:GridView ID="GridSpeciesPartDetails" runat="server" AutoGenerateColumns="false" CssClass="table table-responsive table-bordered" OnSelectedIndexChanged="GridSpeciesPartDetails_SelectedIndexChanged">
                            <Columns>
                                <asp:CommandField SelectText="<<" ShowSelectButton="true" />
                                <asp:BoundField HeaderText="Sr" DataField="SrNo" SortExpression="SrNo" />
                                <asp:BoundField DataField="SpeciesPartDetailsID" SortExpression="SpeciesPartDetailsID" HeaderStyle-CssClass="hideGridColumn" ItemStyle-CssClass="hideGridColumn" />
                                <asp:BoundField DataField="SpeciesID" SortExpression="SpeciesID" HeaderStyle-CssClass="hideGridColumn" ItemStyle-CssClass="hideGridColumn" />
                                <asp:BoundField DataField="SpeciesPartName" HeaderText="Part Name" SortExpression="SpeciesPartName" />
                                <asp:BoundField DataField="Details" HeaderText="Details" SortExpression="Details" />
                            </Columns>
                        </asp:GridView>
                    </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="lblSrNo" 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" />
                        </div>
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="divider">
                        <div class="divider-text">Species List</div>
                    </div>
                    <div class="row">
                        <asp:GridView ID="GridSpeciesMaster" runat="server" AutoGenerateColumns="false" CssClass="table table-responsive table-bordered" OnSelectedIndexChanged="GridSpeciesMaster_SelectedIndexChanged">
                            <Columns>
                                <asp:CommandField SelectText="<<" ShowSelectButton="true" />
                                <asp:BoundField DataField="SpeciesID" HeaderText="SpeciesID" SortExpression="SpeciesID" HeaderStyle-CssClass="hideGridColumn" ItemStyle-CssClass="hideGridColumn" />
                                <asp:BoundField DataField="Species" HeaderText="Species" SortExpression="Species" />
                            </Columns>
                        </asp:GridView>
                    </div>
                </div>
            </div>

        </section>
    </div>
</asp:Content>

