search, new, edit, and delete working for Prescription.aspx
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<%@ Page Title="Prescription" Language="C#" MasterPageFile="main.master" CodeBehind="Prescription.aspx.cs" Inherits="FWA_MAIN.Prescription" %>
|
||||
<%@ Page Title="Prescription" EnableEventValidation="false" Language="C#" MasterPageFile="main.master" CodeBehind="Prescription.aspx.cs" Inherits="FWA_MAIN.Prescription" %>
|
||||
|
||||
<asp:Content runat="server" ContentPlaceHolderID="cph1">
|
||||
|
||||
@@ -21,12 +21,11 @@
|
||||
</div>
|
||||
<br/>
|
||||
<div class="indivPatDiv" style="text-align: right;">
|
||||
<label for="txtMedID" class="buttonLabel">Medication ID: </label>
|
||||
</div>
|
||||
<br/>
|
||||
|
||||
|
||||
|
||||
<label for="txtMedID" class="buttonLabel">Medication ID: </label>
|
||||
</div>
|
||||
<br/>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="patDiv" style="width: 400px">
|
||||
@@ -43,23 +42,40 @@
|
||||
</div>
|
||||
<br/>
|
||||
<div class="indivPatDiv">
|
||||
<asp:TextBox runat="server" CssClass="defaultTXT" id="txtMedID"></asp:TextBox>
|
||||
</div>
|
||||
<br/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<asp:TextBox runat="server" CssClass="defaultTXT" id="txtMedID"></asp:TextBox>
|
||||
</div>
|
||||
<br/>
|
||||
|
||||
|
||||
</div>
|
||||
<br/>
|
||||
<asp:Button runat="server" ID="btnPatSearch" Text="Search" CssClass="btnPatSearch" OnClick="btnPreSearch_OnClick"/>
|
||||
|
||||
<br/>
|
||||
</div>
|
||||
|
||||
<asp:GridView runat="server" ID="gvPatient" BorderColor="red"></asp:GridView>
|
||||
|
||||
|
||||
<div style="width: 80%; margin: 0 auto; align-content: center; horiz-align: center">
|
||||
<asp:GridView runat="server" ID="gvPrescription"
|
||||
CssClass="gridview"
|
||||
HeaderStyle-CssClass="headerstyle"
|
||||
RowStyle-CssClass="rowstyle"
|
||||
AlternatingRowStyle-CssClass="alternatingrowstyle"
|
||||
SelectedRowStyle-CssClass="selectedrowstyle"
|
||||
OnRowCommand="gvPatient_OnRowCommand"
|
||||
AutoGenerateColumns="False"
|
||||
OnRowDataBound="gvPatient_OnRowDataBound"
|
||||
OnSelectedIndexChanged="GridView1_SelectedIndexChanged">
|
||||
<Columns>
|
||||
<asp:BoundField DataField="RxNum_id" HeaderText="Rx Number" SortExpression="RxNum"/>
|
||||
<asp:BoundField DataField="numRefills" HeaderText="Allowed Refills" SortExpression="numRefills"/>
|
||||
<asp:BoundField DataField="pastNumRefills" HeaderText="Refills Used" SortExpression="pastNumRefills"/>
|
||||
<asp:BoundField DataField="Physician_id" HeaderText="Physician ID" SortExpression="Physician_id"/>
|
||||
<asp:BoundField DataField="Medication_id" HeaderText="Medication ID" SortExpression="Medication_id"/>
|
||||
<asp:BoundField DataField="Patient_id" HeaderText="Patient ID" SortExpression="Patient_id"/>
|
||||
<asp:BoundField DataField="PrescriptionStart" HeaderText="Prescribed Date" SortExpression="PrescriptionStart" DataFormatString="{0:d}" HtmlEncode="False"/>
|
||||
<asp:BoundField DataField="PrescriptionEnd" HeaderText="Experation Date" SortExpression="PrescriptionEnd" DataFormatString="{0:d}" HtmlEncode="False"/>
|
||||
</Columns>
|
||||
</asp:GridView></div>
|
||||
|
||||
<script type="text/javascript">
|
||||
document.oncontextmenu = rightClick;
|
||||
|
||||
@@ -70,21 +86,21 @@
|
||||
</script>
|
||||
|
||||
<div id="contextMenu" class="context-menu"
|
||||
style="display: none">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="preNew.aspx">New</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="preEdit.aspx">Edit</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Delete</a>
|
||||
</li>
|
||||
|
||||
<%-- <asp:Button runat="server" Text="New" OnClick="btnNew_OnClick" /> --%>
|
||||
</ul>
|
||||
</div>
|
||||
style="display: none; width: auto">
|
||||
<ul>
|
||||
<li style="height: 25px">
|
||||
<asp:Button runat="server" CssClass="standardbtn" ID="btnPreNew" Text="New" OnClick="btnPreNew_OnClick"/>
|
||||
</li>
|
||||
<li style="height: 25px">
|
||||
<asp:Button runat="server" CssClass="standardbtn" ID="bntPreEdit" Text="Edit" OnClick="bntPreEdit_OnClick"/>
|
||||
</li>
|
||||
<li style="height: 25px">
|
||||
<asp:Button runat="server" CssClass="standardbtn" ID="btnPreDelete" Text="Delete" OnClick="btnPreDelete_OnClick"/>
|
||||
</li>
|
||||
|
||||
<%-- <asp:Button runat="server" Text="New" OnClick="btnNew_OnClick" /> --%>
|
||||
</ul>
|
||||
</div>
|
||||
<script>
|
||||
document.onclick = hideMenu;
|
||||
document.oncontextmenu = rightClick;
|
||||
@@ -109,35 +125,36 @@
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style type="text/css">
|
||||
.context-menu {
|
||||
position: absolute;
|
||||
text-align: center;
|
||||
background: lightgray;
|
||||
border: 1px solid black;
|
||||
}
|
||||
|
||||
.context-menu ul {
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
min-width: 150px;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.context-menu ul li {
|
||||
padding-bottom: 7px;
|
||||
padding-top: 7px;
|
||||
border: 1px solid black;
|
||||
}
|
||||
|
||||
.context-menu ul li a {
|
||||
text-decoration: none;
|
||||
color: black;
|
||||
}
|
||||
|
||||
.context-menu ul li:hover {
|
||||
background: darkgray;
|
||||
}
|
||||
</style>
|
||||
<style type="text/css">
|
||||
.context-menu {
|
||||
position: absolute;
|
||||
text-align: center;
|
||||
background: lightgray;
|
||||
border: 1px solid black;
|
||||
}
|
||||
|
||||
.context-menu ul {
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
/*min-width: 150px; */
|
||||
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.context-menu ul li {
|
||||
/*padding-bottom: 7px; */
|
||||
/*padding-top: 7px; */
|
||||
/*border: 1px solid black; */
|
||||
}
|
||||
|
||||
.context-menu ul li a {
|
||||
text-decoration: none;
|
||||
color: black;
|
||||
}
|
||||
|
||||
.context-menu ul li:hover {
|
||||
background: darkgray;
|
||||
}
|
||||
</style>
|
||||
|
||||
</asp:Content>
|
Reference in New Issue
Block a user