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

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="main-content container-fluid">
        <div class="page-title">
            <h3>Medicine Master</h3>
        </div>
        <section class="section">
            <div class="row bspace">
                <div class="col-md-8">
                    <div class="divider">
                        <div class="divider-text">Medicine Details</div>
                    </div>
                    <div class="row bspace">
                        <div class="col-md-4">
                            <label class="label">Medicine Name</label>
                        </div>
                        <div class="col-md-8">
                            <asp:TextBox ID="txtMedicineName" runat="server" CssClass="form-control" placeholder="Medicine Name" required></asp:TextBox>
                        </div>
                    </div>
                    <div class="row bspace">
                        <div class="col-md-4">
                            <label class="label">Medicine Dose</label>
                        </div>
                        <div class="col-md-8">
                            <asp:TextBox ID="txtDose" runat="server" CssClass="form-control" placeholder="Medicine Dose"></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="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" />
                            <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">Medicine List</div>
                    </div>
                    <div class="row bspace">
                        <asp:GridView ID="GridMedicineMaster" runat="server" AutoGenerateColumns="false" CssClass="table table-responsive table-bordered" OnSelectedIndexChanged="GridMedicineMaster_SelectedIndexChanged">
                            <Columns>
                                <asp:CommandField SelectText="<<" ShowSelectButton="true" />
                                <asp:BoundField DataField="MedicineID" HeaderText="MedicineID" SortExpression="MedicineID" />
                                <asp:BoundField DataField="MedicineName" HeaderText="MedicineName" SortExpression="MedicineName" />
                                <asp:BoundField DataField="MedicineDose" HeaderText="MedicineDose" SortExpression="MedicineDose" />
                            </Columns>
                        </asp:GridView>
                    </div>
                </div>
            </div>
        </section>
    </div>
</asp:Content>

