160 lines
6.6 KiB
Plaintext
160 lines
6.6 KiB
Plaintext
<%@ Page Title="Prescription" EnableEventValidation="false" Language="C#" MasterPageFile="main.master" CodeBehind="Prescription.aspx.cs" Inherits="FWA_MAIN.Prescription" %>
|
|
|
|
<asp:Content runat="server" ContentPlaceHolderID="cph1">
|
|
|
|
<link type="text/css" href="main.css"/>
|
|
<h1 style="text-align: center; font-size: 44px">
|
|
Prescriptions
|
|
</h1>
|
|
<div class="patDiv" style="padding-left: 400px">
|
|
<div class="patDiv" style="width: 100px; margin-right: 5px">
|
|
<div class="indivPatDiv" style="text-align: right;">
|
|
<label for="txtRxNum" class="buttonLabel">Rx Number: </label>
|
|
</div>
|
|
<br/>
|
|
<div class="indivPatDiv" style="text-align: right;">
|
|
<label for="txtPhysID" class="buttonLabel">Physician ID: </label>
|
|
</div>
|
|
<br/>
|
|
<div class="indivPatDiv" style="text-align: right;">
|
|
<label for="txtPatID" class="buttonLabel">Patient ID: </label>
|
|
</div>
|
|
<br/>
|
|
<div class="indivPatDiv" style="text-align: right;">
|
|
<label for="txtMedID" class="buttonLabel">Medication ID: </label>
|
|
</div>
|
|
<br/>
|
|
|
|
|
|
</div>
|
|
|
|
<div class="patDiv" style="width: 400px">
|
|
<div class="indivPatDiv">
|
|
<asp:TextBox runat="server" CssClass="defaultTXT" id="txtRxNum"></asp:TextBox>
|
|
</div>
|
|
<br/>
|
|
<div class="indivPatDiv">
|
|
<asp:TextBox runat="server" CssClass="defaultTXT" id="txtPhysID"></asp:TextBox>
|
|
</div>
|
|
<br/>
|
|
<div class="indivPatDiv">
|
|
<asp:TextBox runat="server" CssClass="defaultTXT" id="txtPatID"></asp:TextBox>
|
|
</div>
|
|
<br/>
|
|
<div class="indivPatDiv">
|
|
<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>
|
|
|
|
<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;
|
|
|
|
function rightClick(clickEvent) {
|
|
clickEvent.preventDefault();
|
|
// return false;
|
|
}
|
|
</script>
|
|
|
|
<div id="contextMenu" class="context-menu"
|
|
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;
|
|
|
|
function hideMenu() {
|
|
document.getElementById("contextMenu")
|
|
.style.display = "none"
|
|
}
|
|
|
|
|
|
function rightClick(e) {
|
|
e.preventDefault();
|
|
|
|
if (document.getElementById("contextMenu").style.display == "block")
|
|
hideMenu();
|
|
else{
|
|
var menu = document.getElementById("contextMenu")
|
|
|
|
menu.style.display = 'block';
|
|
menu.style.left = e.pageX + "px";
|
|
menu.style.top = e.pageY + "px";
|
|
}
|
|
}
|
|
</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>
|
|
|
|
</asp:Content> |