Med edit work
This commit is contained in:
+59
-58
@@ -1,4 +1,4 @@
|
||||
<%@ Page Title="Medication" Language="C#" MasterPageFile="main.master" CodeBehind="MediSearch.aspx.cs" Inherits="FWA_MAIN.MediSearch" %>
|
||||
<%@ Page Title="Medication" Language="C#" EnableEventValidation="false" MasterPageFile="main.master" CodeBehind="MediSearch.aspx.cs" Inherits="FWA_MAIN.MediSearch" %>
|
||||
|
||||
<asp:Content runat="server" ContentPlaceHolderID="cph1">
|
||||
|
||||
@@ -87,21 +87,21 @@
|
||||
</script>
|
||||
|
||||
<div id="contextMenu" class="context-menu"
|
||||
style="display: none">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="medNew.aspx">New</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="medEdit.aspx">Edit</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="medDelete.aspx">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="btnMedNew" Text="New" OnClick="btnMedNew_OnClick"/>
|
||||
</li>
|
||||
<li style="height: 25px">
|
||||
<asp:Button runat="server" CssClass="standardbtn" ID="bntMedEdit" Text="Edit" OnClick="bntMedEdit_OnClick"/>
|
||||
</li>
|
||||
<li style="height: 25px">
|
||||
<asp:Button runat="server" CssClass="standardbtn" ID="btnMedDelete" Text="Delete" OnClick="btnMedDelete_OnClick"/>
|
||||
</li>
|
||||
|
||||
<%-- <asp:Button runat="server" Text="New" OnClick="btnNew_OnClick" /> --%>
|
||||
</ul>
|
||||
</div>
|
||||
<script>
|
||||
document.onclick = hideMenu;
|
||||
document.oncontextmenu = rightClick;
|
||||
@@ -127,46 +127,47 @@
|
||||
}
|
||||
</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>
|
||||
<script type="text/javascript">
|
||||
window.onload = function() {
|
||||
var grid = document.getElementById("<%= gvMedication.ClientID %>");
|
||||
var rows = grid.getElementsByTagName("tr");
|
||||
for (var i = 0; i < rows.length; i++) {
|
||||
rows[i].onclick = function() {
|
||||
// Assuming the first cell in every row contains the unique ID
|
||||
var id = this.cells[0].innerText;
|
||||
__doPostBack('Select$', id);
|
||||
};
|
||||
}
|
||||
};
|
||||
</script>
|
||||
.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>
|
||||
<%-- <script type="text/javascript"> --%>
|
||||
<%-- window.onload = function() { --%>
|
||||
<%-- var grid = document.getElementById("<%= gvMedication.ClientID %>"); --%>
|
||||
<%-- var rows = grid.getElementsByTagName("tr"); --%>
|
||||
<%-- for (var i = 0; i < rows.length; i++) { --%>
|
||||
<%-- rows[i].onclick = function() { --%>
|
||||
<%-- // Assuming the first cell in every row contains the unique ID --%>
|
||||
<%-- var id = this.cells[0].innerText; --%>
|
||||
<%-- __doPostBack('Select$', id); --%>
|
||||
<%-- }; --%>
|
||||
<%-- } --%>
|
||||
<%-- }; --%>
|
||||
<%-- </script> --%>
|
||||
</asp:Content>
|
||||
|
||||
Reference in New Issue
Block a user