113 lines
4.2 KiB
Plaintext
113 lines
4.2 KiB
Plaintext
<%@ Page Title="Refills" Language="C#" EnableEventValidation="false" MasterPageFile="main.master" CodeBehind="Refills.aspx.cs" Inherits="FWA_MAIN.Refills" %>
|
|
|
|
<asp:Content runat="server" ContentPlaceHolderID="cph1">
|
|
|
|
<link type="text/css" href="main.css"/>
|
|
<h1 style="text-align: center; font-size: 44px">
|
|
Refills
|
|
</h1>
|
|
|
|
<div style="width: 80%; margin: 0 auto; align-content: center; horiz-align: center">
|
|
<asp:GridView runat="server" ID="gvRefills"
|
|
CssClass="gridview"
|
|
HeaderStyle-CssClass="headerstyle"
|
|
RowStyle-CssClass="rowstyle"
|
|
AlternatingRowStyle-CssClass="alternatingrowstyle"
|
|
SelectedRowStyle-CssClass="selectedrowstyle"
|
|
OnRowCommand="gvRefills_OnRowCommand"
|
|
AutoGenerateColumns="False"
|
|
OnRowDataBound="gvRefills_OnRowDataBound"
|
|
OnSelectedIndexChanged="gvRefills_SelectedIndexChanged">
|
|
<Columns>
|
|
<asp:BoundField DataField="Refill_id" HeaderText="Refill ID"/>
|
|
<asp:BoundField DataField="RefillDate" HeaderText="Refill Date" DataFormatString="{0:d}" HtmlEncode="False"/>
|
|
<asp:BoundField DataField="Patient_id" HeaderText="Patient ID"/>
|
|
<asp:BoundField DataField="Medication_id" HeaderText="Medication ID"/>
|
|
<asp:BoundField DataField="RxNum_id" HeaderText="Prescription ID"/>
|
|
</Columns>
|
|
</asp:GridView></div>
|
|
|
|
<br/>
|
|
<br/>
|
|
<br/>
|
|
<div class="patDiv" style="margin-left: 500px">
|
|
<div style="display: inline-block"><asp:Button runat="server" CssClass="standardbtn" ID="btnBack" Text="Back" OnClick="btnBack_OnClick"/></div>
|
|
</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="btnRefEdit" Text="Edit" OnClick="btnRefEdit_OnClick"/>
|
|
</li>
|
|
<li style="height: 25px">
|
|
<asp:Button runat="server" CssClass="standardbtn" ID="btnRefDelete" Text="Delete" OnClick="btnRefDelete_OnClick"/>
|
|
</li>
|
|
</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> |