finished with patients
This commit is contained in:
parent
8fc2e1ab81
commit
bcfba3fb27
Binary file not shown.
Binary file not shown.
@ -25,6 +25,7 @@
|
|||||||
background-color: #101214;
|
background-color: #101214;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gridview td {
|
.gridview td {
|
||||||
|
Binary file not shown.
Binary file not shown.
@ -1,7 +1,17 @@
|
|||||||
<%@ Page Title="Edit Patient" Language="C#" MasterPageFile="main.master" CodeBehind="patEdit.aspx.cs" Inherits="FWA_MAIN.patEdit" %>
|
<%@ Page Title="Edit Patient" Language="C#" MasterPageFile="main.master" CodeBehind="patEdit.aspx.cs" Inherits="FWA_MAIN.patEdit" %>
|
||||||
|
|
||||||
<asp:Content runat="server" ContentPlaceHolderID="cph1">
|
<asp:Content runat="server" ContentPlaceHolderID="cph1">
|
||||||
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
$(document).ready(function() {
|
||||||
|
$(document).keypress(function(e) {
|
||||||
|
if (e.which === 13) { // Enter key = keycode 13
|
||||||
|
e.preventDefault(); // Prevent the default Enter action
|
||||||
|
$("#<%= btnSavePat.ClientID %>").click(); // Trigger the search button click
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
<link type="text/css" href="main.css"/>
|
<link type="text/css" href="main.css"/>
|
||||||
|
|
||||||
<h1 style="text-align: center; font-size: 44px">Edit Patient</h1>
|
<h1 style="text-align: center; font-size: 44px">Edit Patient</h1>
|
||||||
|
@ -1,7 +1,17 @@
|
|||||||
<%@ Page Title="New Patient" Language="C#" MasterPageFile="main.master" CodeBehind="patNew.aspx.cs" Inherits="FWA_MAIN.patNew" %>
|
<%@ Page Title="New Patient" Language="C#" MasterPageFile="main.master" CodeBehind="patNew.aspx.cs" Inherits="FWA_MAIN.patNew" %>
|
||||||
|
|
||||||
<asp:Content runat="server" ContentPlaceHolderID="cph1">
|
<asp:Content runat="server" ContentPlaceHolderID="cph1">
|
||||||
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
$(document).ready(function() {
|
||||||
|
$(document).keypress(function(e) {
|
||||||
|
if (e.which === 13) { // Enter key = keycode 13
|
||||||
|
e.preventDefault(); // Prevent the default Enter action
|
||||||
|
$("#<%= btnSavePat.ClientID %>").click(); // Trigger the search button click
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
<link type="text/css" href="main.css"/>
|
<link type="text/css" href="main.css"/>
|
||||||
|
|
||||||
<h1 style="text-align: center; font-size: 44px">New Patient</h1>
|
<h1 style="text-align: center; font-size: 44px">New Patient</h1>
|
||||||
|
@ -1,7 +1,18 @@
|
|||||||
<%@ Page Title="Patients" EnableEventValidation="false" Language="C#" MasterPageFile="main.master" CodeBehind="~/patSearch.aspx.cs" Inherits="FWA_MAIN.patSearch" %>
|
<%@ Page Title="Patients" EnableEventValidation="false" Language="C#" MasterPageFile="main.master" CodeBehind="~/patSearch.aspx.cs" Inherits="FWA_MAIN.patSearch" %>
|
||||||
|
|
||||||
<asp:Content runat="server" ContentPlaceHolderID="cph1">
|
<asp:Content runat="server" ContentPlaceHolderID="cph1">
|
||||||
|
|
||||||
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
$(document).ready(function() {
|
||||||
|
$(document).keypress(function(e) {
|
||||||
|
if (e.which === 13) { // Enter key = keycode 13
|
||||||
|
e.preventDefault(); // Prevent the default Enter action
|
||||||
|
$("#<%= btnPatSearch.ClientID %>").click(); // Trigger the search button click
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
<link type="text/css" href="main.css"/>
|
<link type="text/css" href="main.css"/>
|
||||||
<h1 style="text-align: center; font-size: 44px">
|
<h1 style="text-align: center; font-size: 44px">
|
||||||
Patients
|
Patients
|
||||||
@ -57,7 +68,7 @@
|
|||||||
OnRowDataBound="gvPatient_OnRowDataBound"
|
OnRowDataBound="gvPatient_OnRowDataBound"
|
||||||
OnSelectedIndexChanged="GridView1_SelectedIndexChanged">
|
OnSelectedIndexChanged="GridView1_SelectedIndexChanged">
|
||||||
<Columns>
|
<Columns>
|
||||||
<asp:BoundField DataField="Patient_id" HeaderText="ID" SortExpression="Patient_id"/>
|
<asp:BoundField DataField="Patient_id" HeaderText="Patient ID" SortExpression="Patient_id"/>
|
||||||
<asp:BoundField DataField="FirstName" HeaderText="First Name" SortExpression="FirstName"/>
|
<asp:BoundField DataField="FirstName" HeaderText="First Name" SortExpression="FirstName"/>
|
||||||
<asp:BoundField DataField="LastName" HeaderText="Last Name" SortExpression="LastName"/>
|
<asp:BoundField DataField="LastName" HeaderText="Last Name" SortExpression="LastName"/>
|
||||||
<asp:BoundField DataField="DOB" HeaderText="Date of Birth" SortExpression="DOB" DataFormatString="{0:d}" HtmlEncode="False"/>
|
<asp:BoundField DataField="DOB" HeaderText="Date of Birth" SortExpression="DOB" DataFormatString="{0:d}" HtmlEncode="False"/>
|
||||||
|
@ -140,13 +140,19 @@ namespace FWA_MAIN
|
|||||||
Session["vFNAME"] = txtFNAME.Text.Trim();
|
Session["vFNAME"] = txtFNAME.Text.Trim();
|
||||||
Session["vLNAME"] = txtLNAME.Text.Trim();
|
Session["vLNAME"] = txtLNAME.Text.Trim();
|
||||||
|
|
||||||
patientID = PharmacyDataTier.GetNextPatientID();
|
|
||||||
patientID = Crypt.Encrypt(patientID);
|
|
||||||
// Use the patientID value as needed
|
// Use the patientID value as needed
|
||||||
|
try
|
||||||
|
{
|
||||||
|
|
||||||
|
patientID = PharmacyDataTier.GetNextPatientID();
|
||||||
|
patientID = Crypt.Encrypt(patientID);
|
||||||
|
Response.Redirect("patNew.aspx" + "?" + "ID=" + patientID, false);
|
||||||
|
}
|
||||||
|
catch (Exception exception)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
Response.Redirect("patNew.aspx" + "?" + "ID=" + patientID, false);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
@ -167,17 +173,20 @@ namespace FWA_MAIN
|
|||||||
Session["vFNAME"] = txtFNAME.Text.Trim();
|
Session["vFNAME"] = txtFNAME.Text.Trim();
|
||||||
Session["vLNAME"] = txtLNAME.Text.Trim();
|
Session["vLNAME"] = txtLNAME.Text.Trim();
|
||||||
|
|
||||||
if (gvPatient.SelectedIndex >= 0) // Check if a row is selected
|
|
||||||
{
|
try
|
||||||
patientID = Crypt.Encrypt(gvPatient.SelectedRow.Cells[0].Text);
|
{
|
||||||
|
|
||||||
|
patientID = Crypt.Encrypt(gvPatient.SelectedRow.Cells[0].Text);
|
||||||
|
Response.Redirect("patEdit.aspx" + "?" + "ID=" + patientID, false);
|
||||||
|
}
|
||||||
|
catch (Exception exception)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
// Use the patientID value as needed
|
// Use the patientID value as needed
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
throw new Exception();
|
|
||||||
}
|
|
||||||
|
|
||||||
Response.Redirect("patEdit.aspx" + "?" + "ID=" + patientID, false);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
@ -188,6 +197,16 @@ namespace FWA_MAIN
|
|||||||
|
|
||||||
protected void btnPatDelete_OnClick(object sender, EventArgs e)
|
protected void btnPatDelete_OnClick(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
|
||||||
|
PharmacyDataTier.DeletePatient(gvPatient.SelectedRow.Cells[0].Text);
|
||||||
|
BindData();
|
||||||
|
}
|
||||||
|
catch (Exception exception)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user