Compare commits
14 Commits
1af5fa7a4f
...
68fb363339
Author | SHA1 | Date | |
---|---|---|---|
|
68fb363339 | ||
|
a560c4ee67 | ||
|
428a53ea0d | ||
|
d5a098d868 | ||
|
c7e1c2837f | ||
|
0dae0c7f45 | ||
|
47d13f3841 | ||
|
0c31e87b73 | ||
|
be2d0534f4 | ||
|
38c01a7d70 | ||
|
4a6f1b6d52 | ||
|
437ab80ba2 | ||
|
6c9b58ab33 | ||
|
59792602a8 |
@ -155,7 +155,7 @@
|
||||
<virtualDirectoryDefaults allowSubDirConfig="true" />
|
||||
<site name="FWA_MAIN" id="1">
|
||||
<application path="/" applicationPool="Clr4IntegratedAppPool">
|
||||
<virtualDirectory path="/" physicalPath="C:\Users\cmoore\RiderProjects\FWA_MAIN\FWA_MAIN" />
|
||||
<virtualDirectory path="/" physicalPath="C:\Users\eggman\Nextcloud\TSCT\2nd Year\SEM 4\RiderProjects\FWA_MAIN\FWA_MAIN" />
|
||||
</application>
|
||||
<bindings>
|
||||
<binding protocol="http" bindingInformation="*:5000:localhost" />
|
||||
|
@ -121,6 +121,20 @@
|
||||
<Compile Include="Global.asax.cs">
|
||||
<DependentUpon>Global.asax</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="login.aspx.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
<DependentUpon>login.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="login.aspx.designer.cs">
|
||||
<DependentUpon>login.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="loginv2.aspx.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
<DependentUpon>loginv2.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="loginv2.aspx.designer.cs">
|
||||
<DependentUpon>loginv2.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="main.aspx.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
<DependentUpon>main.master</DependentUpon>
|
||||
@ -181,6 +195,13 @@
|
||||
</Compile>
|
||||
<Compile Include="patNew.aspx.designer.cs" />
|
||||
<Compile Include="PharmactDataTier.cs" />
|
||||
<Compile Include="physEdit.aspx.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
<DependentUpon>physEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="physEdit.aspx.designer.cs">
|
||||
<DependentUpon>physEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="physician.aspx.cs">
|
||||
<DependentUpon>physician.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
@ -188,6 +209,13 @@
|
||||
<Compile Include="physician.aspx.designer.cs">
|
||||
<DependentUpon>physician.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="physnew02.aspx.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
<DependentUpon>physnew02.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="physnew02.aspx.designer.cs">
|
||||
<DependentUpon>physnew02.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="preEdit.aspx.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
<DependentUpon>preEdit.aspx</DependentUpon>
|
||||
@ -247,6 +275,8 @@
|
||||
<Content Include="fonts\glyphicons-halflings-regular.svg" />
|
||||
<Content Include="Global.asax" />
|
||||
<Content Include="Content\Site.css" />
|
||||
<Content Include="login.aspx" />
|
||||
<Content Include="loginv2.aspx" />
|
||||
<Content Include="main.css" />
|
||||
<Content Include="main.master" />
|
||||
<Content Include="MaxRefillNotif.aspx" />
|
||||
@ -257,7 +287,9 @@
|
||||
<Content Include="patEdit.aspx" />
|
||||
<Content Include="patSearch.aspx" />
|
||||
<Content Include="patNew.aspx" />
|
||||
<Content Include="physEdit.aspx" />
|
||||
<Content Include="physician.aspx" />
|
||||
<Content Include="physnew02.aspx" />
|
||||
<Content Include="preEdit.aspx" />
|
||||
<Content Include="preNew.aspx" />
|
||||
<Content Include="Prescription.aspx" />
|
||||
|
@ -12,9 +12,9 @@ namespace FWA_MAIN
|
||||
if (!IsPostBack)
|
||||
{
|
||||
|
||||
txtMedID.Text = Convert.ToString(Session["vMedID"]);
|
||||
txtMedID.Text = Convert.ToString(Session["vMediID"]);
|
||||
txtMedName.Text = Convert.ToString(Session["vMedName"]);
|
||||
txtRxNum.Text = Convert.ToString(Session["vRxNum"]);
|
||||
txtRxNum.Text = Convert.ToString(Session["vRxNumber"]);
|
||||
|
||||
btnMediSearch_OnClick(sender,e);
|
||||
|
||||
@ -27,7 +27,7 @@ namespace FWA_MAIN
|
||||
|
||||
DataSet ds = new DataSet();
|
||||
|
||||
string medID = Convert.ToString(Session["vMedID"]);
|
||||
string medID = Convert.ToString(Session["vMediID"]);
|
||||
string medicationname = Convert.ToString(Session["vMedName"]);
|
||||
//string RxNum = Convert.ToString(Session["vRxNum"]);
|
||||
|
||||
@ -65,9 +65,9 @@ namespace FWA_MAIN
|
||||
try
|
||||
{
|
||||
|
||||
Session["vMedID"] = txtMedID.Text.Trim();
|
||||
Session["vMediID"] = txtMedID.Text.Trim();
|
||||
Session["vMedName"] = txtMedName.Text.Trim();
|
||||
Session["vRxNum"] = txtRxNum.Text.Trim();
|
||||
Session["vRxNumber"] = txtRxNum.Text.Trim();
|
||||
|
||||
Cache.Remove("StudentData");
|
||||
BindData();
|
||||
@ -133,15 +133,15 @@ namespace FWA_MAIN
|
||||
|
||||
try
|
||||
{
|
||||
Session["vMedID"] = txtMedID.Text.Trim();
|
||||
Session["vMediID"] = txtMedID.Text.Trim();
|
||||
Session["vMedName"] = txtMedName.Text.Trim();
|
||||
Session["vRxNum"] = txtRxNum.Text.Trim();
|
||||
Session["vRxNumber"] = txtRxNum.Text.Trim();
|
||||
|
||||
// Use the patientID value as needed
|
||||
try
|
||||
{
|
||||
|
||||
medicationID = PharmacyDataTier.GetNextPatientID();
|
||||
medicationID = PharmacyDataTier.GetNextMedicationID();
|
||||
medicationID = Crypt.Encrypt(medicationID);
|
||||
Response.Redirect("medNew.aspx" + "?" + "ID=" + medicationID, false);
|
||||
}
|
||||
@ -165,9 +165,9 @@ namespace FWA_MAIN
|
||||
|
||||
try
|
||||
{
|
||||
Session["vMedID"] = txtMedID.Text.Trim();
|
||||
Session["vMediID"] = txtMedID.Text.Trim();
|
||||
Session["vMedName"] = txtMedName.Text.Trim();
|
||||
Session["vRxNum"] = txtRxNum.Text.Trim();
|
||||
Session["vRxNumber"] = txtRxNum.Text.Trim();
|
||||
|
||||
|
||||
try
|
||||
@ -193,7 +193,16 @@ namespace FWA_MAIN
|
||||
|
||||
protected void btnMedDelete_OnClick(object sender, EventArgs e)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
try
|
||||
{
|
||||
|
||||
PharmacyDataTier.DeleteMedication(gvMedication.SelectedRow.Cells[0].Text);
|
||||
BindData();
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -880,7 +880,7 @@ namespace FWA_MAIN
|
||||
}
|
||||
|
||||
|
||||
public static double GetNextPhysicianID()
|
||||
public static string GetNextPhysicianID()
|
||||
{
|
||||
try
|
||||
{
|
||||
@ -908,7 +908,26 @@ namespace FWA_MAIN
|
||||
|
||||
|
||||
// return dataSet
|
||||
return value;
|
||||
value = 0;
|
||||
try
|
||||
{
|
||||
value = Convert.ToDouble(result);
|
||||
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
// MessageBox.Show("Error Getting next Patient ID","ERROR",MessageBoxButtons.OK);
|
||||
}
|
||||
|
||||
string stringval = value.ToString();
|
||||
|
||||
while (stringval.Length < 8)
|
||||
{
|
||||
stringval = "0" + stringval;
|
||||
}
|
||||
|
||||
// return dataSet
|
||||
return stringval;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@ -920,7 +939,7 @@ namespace FWA_MAIN
|
||||
}
|
||||
}
|
||||
|
||||
public static double GetNextMedicationID()
|
||||
public static string GetNextMedicationID()
|
||||
{
|
||||
try
|
||||
{
|
||||
@ -946,9 +965,15 @@ namespace FWA_MAIN
|
||||
// MessageBox.Show("Error Getting next Patient ID","ERROR",MessageBoxButtons.OK);
|
||||
}
|
||||
|
||||
string stringval = value.ToString();
|
||||
|
||||
while (stringval.Length < 7)
|
||||
{
|
||||
stringval = "0" + stringval;
|
||||
}
|
||||
|
||||
// return dataSet
|
||||
return value;
|
||||
return stringval;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
@ -10,7 +10,7 @@
|
||||
$(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
|
||||
$("#<%= btnPreSearch.ClientID %>").click(); // Trigger the search button click
|
||||
}
|
||||
});
|
||||
});
|
||||
@ -62,7 +62,7 @@
|
||||
|
||||
</div>
|
||||
<br/>
|
||||
<asp:Button runat="server" ID="btnPatSearch" Text="Search" CssClass="btnPatSearch" OnClick="btnPreSearch_OnClick"/>
|
||||
<asp:Button runat="server" ID="btnPreSearch" Text="Search" CssClass="btnPatSearch" OnClick="btnPreSearch_OnClick"/>
|
||||
<br/>
|
||||
</div>
|
||||
|
||||
|
@ -84,6 +84,7 @@ namespace FWA_MAIN
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -239,5 +240,7 @@ namespace FWA_MAIN
|
||||
BindData();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
4
FWA_MAIN/Prescription.aspx.designer.cs
generated
4
FWA_MAIN/Prescription.aspx.designer.cs
generated
@ -51,13 +51,13 @@ namespace FWA_MAIN
|
||||
protected global::System.Web.UI.WebControls.TextBox txtMedID;
|
||||
|
||||
/// <summary>
|
||||
/// btnPatSearch control.
|
||||
/// btnPreSearch control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btnPatSearch;
|
||||
protected global::System.Web.UI.WebControls.Button btnPreSearch;
|
||||
|
||||
/// <summary>
|
||||
/// gvPrescription control.
|
||||
|
@ -13,6 +13,14 @@
|
||||
</files>
|
||||
</defaultDocument>
|
||||
</system.webServer>
|
||||
<system.web>
|
||||
<authentication mode="Forms">
|
||||
<forms loginUrl="login.aspx" timeout="2880" />
|
||||
</authentication>
|
||||
<authorization>
|
||||
<deny users="?" /> <!-- Denies anonymous users -->
|
||||
</authorization>
|
||||
</system.web>
|
||||
<connectionStrings>
|
||||
<add name="ConnString" connectionString="Server=sql.eggtech.net;Database=FinalProjectOfficialPharmacy;User Id=admin;Password=delirium-purveyor-overall-backboned-approval-amino;" providerName="System.Data.SqlClient"/>
|
||||
</connectionStrings>
|
||||
|
Binary file not shown.
@ -13,8 +13,16 @@
|
||||
</files>
|
||||
</defaultDocument>
|
||||
</system.webServer>
|
||||
<system.web>
|
||||
<authentication mode="Forms">
|
||||
<forms loginUrl="login.aspx" timeout="2880" />
|
||||
</authentication>
|
||||
<authorization>
|
||||
<deny users="?" /> <!-- Denies anonymous users -->
|
||||
</authorization>
|
||||
</system.web>
|
||||
<connectionStrings>
|
||||
<add name="ConnString" connectionString="Server=sql.eggtech.net;Database=FinalProjectOfficialPharmacy;User Id=admin;Password=delirium-purveyor-overall-backboned-approval-amino;" providerName="System.Data.SqlClient"/>
|
||||
<add name="ConnString" connectionString="Server=10.1.1.250;Database=FinalProjectOfficialPharmacy;User Id=admin;Password=delirium-purveyor-overall-backboned-approval-amino;" providerName="System.Data.SqlClient"/>
|
||||
</connectionStrings>
|
||||
<appSettings>
|
||||
<add key="webpages:Version" value="3.0.0.0"/>
|
||||
|
Binary file not shown.
47
FWA_MAIN/login.aspx
Normal file
47
FWA_MAIN/login.aspx
Normal file
@ -0,0 +1,47 @@
|
||||
<%@ Page Language="C#" CodeBehind="login.aspx.cs" Inherits="FWA_MAIN.login" %>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<script runat="server">
|
||||
|
||||
</script>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<style>
|
||||
body, html {
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
}
|
||||
.centered-div {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
height: 100%;
|
||||
background-color: #333; /* Optional: in case you want a background color */
|
||||
}
|
||||
.login-form {
|
||||
text-align: center;
|
||||
width: 100%; /* You might want to set a max-width here */
|
||||
}
|
||||
.login-form h1, .login-form label {
|
||||
color: white; /* This ensures your text is white as specified */
|
||||
}
|
||||
</style>
|
||||
<title>Login</title>
|
||||
</head>
|
||||
<body style="background-color: #0f0f0f">
|
||||
<form id="Login" runat="server">
|
||||
<div class="centered-div">
|
||||
<div class="login-form">
|
||||
<h1 style="color: white">Login to Lewis' Pharmacy</h1>
|
||||
|
||||
<label for="Username" style="color: white">Username:</label>
|
||||
<asp:TextBox ID="Username" runat="server"></asp:TextBox><br/>
|
||||
<label for="Password" style="color: white">Password:</label>
|
||||
<asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox><br/><br/>
|
||||
<asp:Button ID="LoginButton" runat="server" Text="Login" OnClick="LoginButton_Click"/>
|
||||
<br/><br/><br/>
|
||||
</div></div>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
27
FWA_MAIN/login.aspx.cs
Normal file
27
FWA_MAIN/login.aspx.cs
Normal file
@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
|
||||
namespace FWA_MAIN
|
||||
{
|
||||
public partial class login : Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
protected void LoginButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
string username = Username.Text;
|
||||
string password = Password.Text;
|
||||
|
||||
// I know this is not how to properly do credential checks, but I was limited on time
|
||||
if (username == "admin" && password == "someonerandom")
|
||||
{
|
||||
FormsAuthentication.RedirectFromLoginPage(username, false);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
53
FWA_MAIN/login.aspx.designer.cs
generated
Normal file
53
FWA_MAIN/login.aspx.designer.cs
generated
Normal file
@ -0,0 +1,53 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FWA_MAIN
|
||||
{
|
||||
|
||||
|
||||
public partial class login
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Login control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm Login;
|
||||
|
||||
/// <summary>
|
||||
/// Username control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox Username;
|
||||
|
||||
/// <summary>
|
||||
/// Password control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox Password;
|
||||
|
||||
/// <summary>
|
||||
/// LoginButton control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button LoginButton;
|
||||
}
|
||||
}
|
13
FWA_MAIN/loginv2.aspx
Normal file
13
FWA_MAIN/loginv2.aspx
Normal file
@ -0,0 +1,13 @@
|
||||
<%@ Page Title="login" Language="C#" MasterPageFile="main.master" CodeBehind="loginv2.aspx.cs" Inherits="FWA_MAIN.loginv2" %>
|
||||
|
||||
<asp:Content runat="server" ContentPlaceHolderID="cph1">
|
||||
|
||||
<div>
|
||||
<label for="Username">Username:</label>
|
||||
<asp:TextBox ID="Username" runat="server"></asp:TextBox>
|
||||
<label for="Password">Password:</label>
|
||||
<asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox>
|
||||
<asp:Button ID="LoginButton" runat="server" Text="Login" OnClick="LoginButton_Click" />
|
||||
</div>
|
||||
|
||||
</asp:Content>
|
29
FWA_MAIN/loginv2.aspx.cs
Normal file
29
FWA_MAIN/loginv2.aspx.cs
Normal file
@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
|
||||
namespace FWA_MAIN
|
||||
{
|
||||
public partial class loginv2 : Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
protected void LoginButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
string username = Username.Text;
|
||||
string password = Password.Text;
|
||||
|
||||
// Example authentication; replace with actual logic
|
||||
if (username == "admin" && password == "password")
|
||||
{
|
||||
FormsAuthentication.RedirectFromLoginPage(username, false);
|
||||
}
|
||||
else
|
||||
{
|
||||
// Show an error message or handle invalid login
|
||||
} }
|
||||
}
|
||||
}
|
58
FWA_MAIN/loginv2.aspx.designer.cs
generated
Normal file
58
FWA_MAIN/loginv2.aspx.designer.cs
generated
Normal file
@ -0,0 +1,58 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FWA_MAIN
|
||||
{
|
||||
|
||||
|
||||
public partial class loginv2
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Username control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox Username;
|
||||
|
||||
/// <summary>
|
||||
/// Password control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox Password;
|
||||
|
||||
/// <summary>
|
||||
/// LoginButton control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button LoginButton;
|
||||
|
||||
/// <summary>
|
||||
/// Master property.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated property.
|
||||
/// </remarks>
|
||||
public new FWA_MAIN.main Master
|
||||
{
|
||||
get
|
||||
{
|
||||
return ((FWA_MAIN.main)(base.Master));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -58,5 +58,15 @@ namespace FWA_MAIN
|
||||
{
|
||||
Response.Redirect("Prescription.aspx");
|
||||
}
|
||||
|
||||
protected void btnLogout_OnClick(object sender, EventArgs e)
|
||||
{
|
||||
System.Web.Security.FormsAuthentication.SignOut();
|
||||
|
||||
// Optionally clear the session
|
||||
Session.Clear();
|
||||
|
||||
// Redirect the user to the login page or another page
|
||||
Response.Redirect("login.aspx"); }
|
||||
}
|
||||
}
|
@ -22,6 +22,8 @@
|
||||
<asp:Button runat="server" ID="btnPhysician" CssClass="sidenavbutton" Text="Physicians" OnClick="btnPhysician_OnClick"/>
|
||||
<asp:Button runat="server" ID="btnMedication" CssClass="sidenavbutton" Text="Medications" OnClick="btnMedication_OnClick"/>
|
||||
<asp:Button runat="server" ID="btnPrescription" CssClass="sidenavbutton" Text="Prescriptions" OnClick="btnPrescription_OnClick"/>
|
||||
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
|
||||
<asp:Button runat="server" ID="btnLogout" CssClass="sidenavbutton" Text="Logout" OnClick="btnLogout_OnClick"/>
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
|
9
FWA_MAIN/main.master.designer.cs
generated
9
FWA_MAIN/main.master.designer.cs
generated
@ -59,6 +59,15 @@ namespace FWA_MAIN
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btnPrescription;
|
||||
|
||||
/// <summary>
|
||||
/// btnLogout control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btnLogout;
|
||||
|
||||
/// <summary>
|
||||
/// cph1 control.
|
||||
/// </summary>
|
||||
|
@ -17,15 +17,15 @@
|
||||
<h1 style="text-align: center; font-size: 44px">Edit Medication</h1>
|
||||
<div class="patDiv">
|
||||
<div class="patDiv">
|
||||
<div class="patDiv" style="padding-left: 150px; padding-right: 5px;width: 100px">
|
||||
<div class="indivPatDiv" style="text-align: right"><label class="buttonLabel">Medication ID: </label></div>
|
||||
<div class="indivPatDiv" style="text-align: right"><label class="buttonLabel">Medication Name: </label></div>
|
||||
<div class="indivPatDiv" style="text-align: right"><label class="buttonLabel">Intake Method: </label></div>
|
||||
<div class="patDiv" style="padding-left: 450px; padding-right: 30px;width: 100px">
|
||||
<div class="indivPatDiv" style="text-align: right; width: 120px"><label class="buttonLabel">Medication ID: </label></div>
|
||||
<div class="indivPatDiv" style="text-align: right; width: 120px"><label class="buttonLabel">Medication Name: </label></div>
|
||||
<div class="indivPatDiv" style="text-align: right; width: 120px"><label class="buttonLabel">Intake Method: </label></div>
|
||||
|
||||
<div class="indivPatDiv" style="text-align: right"><label class="buttonLabel">Frequency: </label></div>
|
||||
<div class="indivPatDiv" style="text-align: right"><label class="buttonLabel">Dosage: </label></div>
|
||||
<div class="indivPatDiv" style="text-align: right"><label class="buttonLabel">Purpose: </label></div>
|
||||
<div class="indivPatDiv" style="text-align: right"><label class="buttonLabel">RX Number: </label></div>
|
||||
<div class="indivPatDiv" style="text-align: right; width: 120px"><label class="buttonLabel">Frequency: </label></div>
|
||||
<div class="indivPatDiv" style="text-align: right; width: 120px"><label class="buttonLabel">Dosage: </label></div>
|
||||
<div class="indivPatDiv" style="text-align: right; width: 120px"><label class="buttonLabel">Purpose: </label></div>
|
||||
<div class="indivPatDiv" style="text-align: right; width: 120px"><label class="buttonLabel">RX Number: </label></div>
|
||||
</div>
|
||||
<div class="patDiv">
|
||||
<div class="indivPatDiv"><asp:TextBox runat="server" CssClass="defaultTXT" ID="txtMedID"></asp:TextBox></div>
|
||||
|
@ -17,7 +17,7 @@
|
||||
<h1 style="text-align: center; font-size: 44px">New Medication</h1>
|
||||
<div class="patDiv">
|
||||
<div class="patDiv">
|
||||
<div class="patDiv" style="padding-left: 150px; padding-right: 5px;width: 100px">
|
||||
<div class="patDiv" style="padding-left: 400px; padding-right: 5px;width: 100px">
|
||||
<div class="indivPatDiv" style="text-align: right"><label class="buttonLabel">Medication ID: </label></div>
|
||||
<div class="indivPatDiv" style="text-align: right"><label class="buttonLabel">Medication Name: </label></div>
|
||||
<div class="indivPatDiv" style="text-align: right"><label class="buttonLabel">Intake Method: </label></div>
|
||||
|
Binary file not shown.
@ -1 +1 @@
|
||||
548208a3bcb0eba33fd1a778a97babd693b86e02fd9b8f09bf8b4cf3b1fd0e4a
|
||||
50074679a1a1cb6525af5fbfda8b79afcdf3526bcbe1cf9d0fe607e81ea9cb81
|
||||
|
@ -635,3 +635,79 @@ C:\Users\Caden\RiderProjects\FWA_MAIN\FWA_MAIN\obj\Debug\FWA_MAIN.csproj.CoreCom
|
||||
C:\Users\Caden\RiderProjects\FWA_MAIN\FWA_MAIN\obj\Debug\FWA_MAIN.csproj.Up2Date
|
||||
C:\Users\Caden\RiderProjects\FWA_MAIN\FWA_MAIN\obj\Debug\FWA_MAIN.dll
|
||||
C:\Users\Caden\RiderProjects\FWA_MAIN\FWA_MAIN\obj\Debug\FWA_MAIN.pdb
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\FWA_MAIN.dll.config
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\FWA_MAIN.dll
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\FWA_MAIN.pdb
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\roslyn\csc.exe
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\roslyn\csc.exe.config
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\roslyn\csc.rsp
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\roslyn\csi.exe
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\roslyn\csi.exe.config
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\roslyn\csi.rsp
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\roslyn\Microsoft.Build.Tasks.CodeAnalysis.dll
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\roslyn\Microsoft.CodeAnalysis.CSharp.dll
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\roslyn\Microsoft.CodeAnalysis.CSharp.Scripting.dll
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\roslyn\Microsoft.CodeAnalysis.dll
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\roslyn\Microsoft.CodeAnalysis.Scripting.dll
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\roslyn\Microsoft.CodeAnalysis.VisualBasic.dll
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\roslyn\Microsoft.CSharp.Core.targets
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\roslyn\Microsoft.DiaSymReader.Native.amd64.dll
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\roslyn\Microsoft.DiaSymReader.Native.x86.dll
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\roslyn\Microsoft.Managed.Core.targets
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\roslyn\Microsoft.VisualBasic.Core.targets
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\roslyn\System.AppContext.dll
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\roslyn\System.Collections.Immutable.dll
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\roslyn\System.Console.dll
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\roslyn\System.Diagnostics.FileVersionInfo.dll
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\roslyn\System.Diagnostics.StackTrace.dll
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\roslyn\System.IO.Compression.dll
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\roslyn\System.IO.FileSystem.dll
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\roslyn\System.IO.FileSystem.Primitives.dll
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\roslyn\System.IO.Pipes.AccessControl.dll
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\roslyn\System.IO.Pipes.dll
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\roslyn\System.Reflection.Metadata.dll
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\roslyn\System.Security.AccessControl.dll
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\roslyn\System.Security.Claims.dll
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\roslyn\System.Security.Cryptography.Algorithms.dll
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\roslyn\System.Security.Cryptography.Encoding.dll
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\roslyn\System.Security.Cryptography.Primitives.dll
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\roslyn\System.Security.Cryptography.X509Certificates.dll
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\roslyn\System.Security.Principal.Windows.dll
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\roslyn\System.Text.Encoding.CodePages.dll
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\roslyn\System.ValueTuple.dll
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\roslyn\System.Xml.ReaderWriter.dll
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\roslyn\System.Xml.XmlDocument.dll
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\roslyn\System.Xml.XPath.dll
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\roslyn\System.Xml.XPath.XDocument.dll
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\roslyn\vbc.exe
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\roslyn\vbc.exe.config
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\roslyn\vbc.rsp
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\roslyn\VBCSCompiler.exe
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\roslyn\VBCSCompiler.exe.config
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\Antlr3.Runtime.dll
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\Microsoft.Web.Infrastructure.dll
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\Newtonsoft.Json.dll
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\System.Web.Helpers.dll
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\System.Web.Mvc.dll
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\System.Web.Optimization.dll
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\System.Web.Razor.dll
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\System.Web.WebPages.Deployment.dll
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\System.Web.WebPages.dll
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\System.Web.WebPages.Razor.dll
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\WebGrease.dll
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\System.Web.Helpers.xml
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\System.Web.Mvc.xml
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\System.Web.Optimization.xml
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\System.Web.Razor.xml
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\System.Web.WebPages.xml
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\System.Web.WebPages.Deployment.xml
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\System.Web.WebPages.Razor.xml
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\Newtonsoft.Json.xml
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\Antlr3.Runtime.pdb
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\bin\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.xml
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\obj\Debug\FWA_MAIN.csproj.AssemblyReference.cache
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\obj\Debug\FWA_MAIN.csproj.CoreCompileInputs.cache
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\obj\Debug\FWA_MAIN.csproj.CopyComplete
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\obj\Debug\FWA_MAIN.dll
|
||||
C:\Users\IVAN\RiderProjects\FWA_MAIN\FWA_MAIN\obj\Debug\FWA_MAIN.pdb
|
||||
|
Binary file not shown.
Binary file not shown.
@ -13,8 +13,17 @@
|
||||
</files>
|
||||
</defaultDocument>
|
||||
</system.webServer>
|
||||
<system.web>
|
||||
<authentication mode="Forms">
|
||||
<forms loginUrl="login.aspx" timeout="2880" />
|
||||
</authentication>
|
||||
<authorization>
|
||||
<deny users="?" />
|
||||
<!-- Denies anonymous users -->
|
||||
</authorization>
|
||||
</system.web>
|
||||
<connectionStrings>
|
||||
<add name="ConnString" connectionString="Server=sql.eggtech.net;Database=FinalProjectOfficialPharmacy;User Id=admin;Password=delirium-purveyor-overall-backboned-approval-amino;" providerName="System.Data.SqlClient" />
|
||||
<add name="ConnString" connectionString="Server=10.1.1.250;Database=FinalProjectOfficialPharmacy;User Id=admin;Password=delirium-purveyor-overall-backboned-approval-amino;" providerName="System.Data.SqlClient" />
|
||||
</connectionStrings>
|
||||
<appSettings>
|
||||
<add key="webpages:Version" value="3.0.0.0" />
|
||||
|
Binary file not shown.
Binary file not shown.
@ -22,6 +22,8 @@
|
||||
<asp:Button runat="server" ID="btnPhysician" CssClass="sidenavbutton" Text="Physicians" OnClick="btnPhysician_OnClick"/>
|
||||
<asp:Button runat="server" ID="btnMedication" CssClass="sidenavbutton" Text="Medications" OnClick="btnMedication_OnClick"/>
|
||||
<asp:Button runat="server" ID="btnPrescription" CssClass="sidenavbutton" Text="Prescriptions" OnClick="btnPrescription_OnClick"/>
|
||||
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
|
||||
<asp:Button runat="server" ID="btnLogout" CssClass="sidenavbutton" Text="Logout" OnClick="btnLogout_OnClick"/>
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
|
@ -13,8 +13,16 @@
|
||||
</files>
|
||||
</defaultDocument>
|
||||
</system.webServer>
|
||||
<system.web>
|
||||
<authentication mode="Forms">
|
||||
<forms loginUrl="login.aspx" timeout="2880" />
|
||||
</authentication>
|
||||
<authorization>
|
||||
<deny users="?" /> <!-- Denies anonymous users -->
|
||||
</authorization>
|
||||
</system.web>
|
||||
<connectionStrings>
|
||||
<add name="ConnString" connectionString="Server=sql.eggtech.net;Database=FinalProjectOfficialPharmacy;User Id=admin;Password=delirium-purveyor-overall-backboned-approval-amino;" providerName="System.Data.SqlClient"/>
|
||||
<add name="ConnString" connectionString="Server=10.1.1.250;Database=FinalProjectOfficialPharmacy;User Id=admin;Password=delirium-purveyor-overall-backboned-approval-amino;" providerName="System.Data.SqlClient"/>
|
||||
</connectionStrings>
|
||||
<appSettings>
|
||||
<add key="webpages:Version" value="3.0.0.0"/>
|
||||
|
@ -13,8 +13,17 @@
|
||||
</files>
|
||||
</defaultDocument>
|
||||
</system.webServer>
|
||||
<system.web>
|
||||
<authentication mode="Forms">
|
||||
<forms loginUrl="login.aspx" timeout="2880" />
|
||||
</authentication>
|
||||
<authorization>
|
||||
<deny users="?" />
|
||||
<!-- Denies anonymous users -->
|
||||
</authorization>
|
||||
</system.web>
|
||||
<connectionStrings>
|
||||
<add name="ConnString" connectionString="Server=sql.eggtech.net;Database=FinalProjectOfficialPharmacy;User Id=admin;Password=delirium-purveyor-overall-backboned-approval-amino;" providerName="System.Data.SqlClient" />
|
||||
<add name="ConnString" connectionString="Server=10.1.1.250;Database=FinalProjectOfficialPharmacy;User Id=admin;Password=delirium-purveyor-overall-backboned-approval-amino;" providerName="System.Data.SqlClient" />
|
||||
</connectionStrings>
|
||||
<appSettings>
|
||||
<add key="webpages:Version" value="3.0.0.0" />
|
||||
|
@ -14,7 +14,7 @@ namespace FWA_MAIN
|
||||
if (!IsPostBack)
|
||||
{
|
||||
|
||||
txtPatID.Text = Convert.ToString(Session["vPatID"]);
|
||||
txtPatID.Text = Convert.ToString(Session["vPatientID"]);
|
||||
txtFNAME.Text = Convert.ToString(Session["vFNAME"]);
|
||||
txtLNAME.Text = Convert.ToString(Session["vLNAME"]);
|
||||
|
||||
@ -35,7 +35,7 @@ namespace FWA_MAIN
|
||||
|
||||
DataSet ds = new DataSet();
|
||||
|
||||
string patID = Convert.ToString(Session["vPatID"]);
|
||||
string patID = Convert.ToString(Session["vPatientID"]);
|
||||
string LNAME = Convert.ToString(Session["vLNAME"]);
|
||||
string FNAME = Convert.ToString(Session["vFNAME"]);
|
||||
|
||||
@ -71,7 +71,7 @@ namespace FWA_MAIN
|
||||
try
|
||||
{
|
||||
|
||||
Session["vPatID"] = txtPatID.Text.Trim();
|
||||
Session["vPatientID"] = txtPatID.Text.Trim();
|
||||
Session["vFNAME"] = txtFNAME.Text.Trim();
|
||||
Session["vLNAME"] = txtLNAME.Text.Trim();
|
||||
|
||||
@ -136,7 +136,7 @@ namespace FWA_MAIN
|
||||
|
||||
try
|
||||
{
|
||||
Session["vPatID"] = txtPatID.Text.Trim();
|
||||
Session["vPatientID"] = txtPatID.Text.Trim();
|
||||
Session["vFNAME"] = txtFNAME.Text.Trim();
|
||||
Session["vLNAME"] = txtLNAME.Text.Trim();
|
||||
|
||||
@ -169,7 +169,7 @@ namespace FWA_MAIN
|
||||
|
||||
try
|
||||
{
|
||||
Session["vPatID"] = txtPatID.Text.Trim();
|
||||
Session["vPatientID"] = txtPatID.Text.Trim();
|
||||
Session["vFNAME"] = txtFNAME.Text.Trim();
|
||||
Session["vLNAME"] = txtLNAME.Text.Trim();
|
||||
|
||||
|
70
FWA_MAIN/physEdit.aspx
Normal file
70
FWA_MAIN/physEdit.aspx
Normal file
@ -0,0 +1,70 @@
|
||||
<%@ Page Title="Title" Language="C#" MasterPageFile="main.master" CodeBehind="physEdit.aspx.cs" Inherits="FWA_MAIN.physEdit" %>
|
||||
|
||||
|
||||
<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
|
||||
$("#<%= btnSavePhys.ClientID %>").click(); // Trigger the search button click
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<link type="text/css" href="main.css"/>
|
||||
|
||||
<style>
|
||||
.container {
|
||||
text-align: center;
|
||||
}
|
||||
.buttonGroup {
|
||||
margin-top: 20px;
|
||||
}
|
||||
.patDiv {
|
||||
text-align: center;
|
||||
}
|
||||
.buttonGroup .buttonWrapper {
|
||||
display: inline-block;
|
||||
margin-right: 10px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<h1 style="text-align: center; font-size: 44px">Edit Physician</h1>
|
||||
<div class="container">
|
||||
<div class="patDiv">
|
||||
<div class="indivPatDiv"><label class="buttonLabel">Physician ID: </label></div>
|
||||
<div class="indivPatDiv"><label class="buttonLabel">First Name: </label></div>
|
||||
<div class="indivPatDiv"><label class="buttonLabel">Last Name: </label></div>
|
||||
<div class="indivPatDiv"><label class="buttonLabel">Middle Initial: </label></div>
|
||||
<div class="indivPatDiv"><label class="buttonLabel">Zip Code: </label></div>
|
||||
<div class="indivPatDiv"><label class="buttonLabel">City: </label></div>
|
||||
<div class="indivPatDiv"><label class="buttonLabel">State: </label></div>
|
||||
<div class="indivPatDiv"><label class="buttonLabel">Date of Birth: </label></div>
|
||||
<div class="indivPatDiv"><label class="buttonLabel">Phone Number: </label></div>
|
||||
<div class="indivPatDiv"><label class="buttonLabel">Gender (M/F): </label></div>
|
||||
<div class="indivPatDiv"><label class="buttonLabel">Specialty: </label></div>
|
||||
</div>
|
||||
<div class="patDiv">
|
||||
<div class="indivPatDiv"><asp:TextBox runat="server" CssClass="defaultTXT" ID="txtPhysID"></asp:TextBox></div>
|
||||
<div class="indivPatDiv"><asp:TextBox runat="server" CssClass="defaultTXT" ID="txtFNAME"></asp:TextBox></div>
|
||||
<div class="indivPatDiv"><asp:TextBox runat="server" CssClass="defaultTXT" ID="txtLNAME"></asp:TextBox></div>
|
||||
<div class="indivPatDiv"><asp:TextBox runat="server" CssClass="defaultTXT" ID="txtMidInit"></asp:TextBox></div>
|
||||
<div class="indivPatDiv"><asp:TextBox runat="server" CssClass="defaultTXT" ID="txtZip"></asp:TextBox></div>
|
||||
<div class="indivPatDiv"><asp:TextBox runat="server" CssClass="defaultTXT" ID="txtCity"></asp:TextBox></div>
|
||||
<div class="indivPatDiv"><asp:TextBox runat="server" CssClass="defaultTXT" ID="txtState"></asp:TextBox></div>
|
||||
<div class="indivPatDiv"><asp:TextBox runat="server" CssClass="defaultTXT" ID="txtDOB"></asp:TextBox></div>
|
||||
<div class="indivPatDiv"><asp:TextBox runat="server" CssClass="defaultTXT" ID="txtPhone"></asp:TextBox></div>
|
||||
<div class="indivPatDiv"><asp:TextBox runat="server" CssClass="defaultTXT" ID="txtGender"></asp:TextBox></div>
|
||||
<div class="indivPatDiv"><asp:TextBox runat="server" CssClass="defaultTXT" ID="txtSpecialty"></asp:TextBox></div>
|
||||
</div>
|
||||
</div>
|
||||
<br/>
|
||||
<div class="patDiv buttonGroup" style="margin-left:500px">
|
||||
<div class="buttonWrapper"><asp:Button runat="server" CssClass="standardbtn" ID="btnSavePhys" Text="Save" OnClick="btnSavePhys_OnClick"/></div>
|
||||
<div class="buttonWrapper"><asp:Button runat="server" CssClass="standardbtn" ID="btnCancelPhys" Text="Cancel" OnClick="btnCancelPhys_OnClick"/></div>
|
||||
</div>
|
||||
</asp:Content>
|
||||
|
74
FWA_MAIN/physEdit.aspx.cs
Normal file
74
FWA_MAIN/physEdit.aspx.cs
Normal file
@ -0,0 +1,74 @@
|
||||
using System;
|
||||
using System.Web.UI;
|
||||
using System.Data;
|
||||
|
||||
namespace FWA_MAIN
|
||||
{
|
||||
public partial class physEdit : Page
|
||||
{
|
||||
|
||||
protected string physID;
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
txtPhysID.Enabled = false;
|
||||
physID = Crypt.Decrypt(Request.QueryString["ID"]);
|
||||
|
||||
if (!IsPostBack)
|
||||
{
|
||||
|
||||
FillPhysician(physID);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
protected void FillPhysician(string id)
|
||||
{
|
||||
|
||||
var ds = new DataSet();
|
||||
ds = PharmacyDataTier.PhysicianInfoSearch(physID);
|
||||
|
||||
txtPhysID.Text = ds.Tables[0].Rows[0]["Physician_id"].ToString().Trim();
|
||||
txtFNAME.Text = ds.Tables[0].Rows[0]["FirstName"].ToString().Trim();
|
||||
txtLNAME.Text = ds.Tables[0].Rows[0]["LastName"].ToString().Trim();
|
||||
txtMidInit.Text = ds.Tables[0].Rows[0]["MiddleIntials"].ToString().Trim();
|
||||
txtZip.Text = ds.Tables[0].Rows[0]["Zip"].ToString().Trim();
|
||||
txtCity.Text = ds.Tables[0].Rows[0]["City"].ToString().Trim();
|
||||
txtState.Text = ds.Tables[0].Rows[0]["UsState"].ToString().Trim();
|
||||
DateTime date = DateTime.Parse(ds.Tables[0].Rows[0]["DOB"].ToString().Trim());
|
||||
txtDOB.Text = date.ToString("d").Trim();
|
||||
txtPhone.Text = ds.Tables[0].Rows[0]["PhoneNumber"].ToString().Trim();
|
||||
txtGender.Text = ds.Tables[0].Rows[0]["Gender"].ToString().Trim();
|
||||
txtSpecialty.Text = ds.Tables[0].Rows[0]["Specialty"].ToString().Trim();
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
protected void btnCancelPhys_OnClick(object sender, EventArgs e)
|
||||
{
|
||||
Response.Redirect("physician.aspx");
|
||||
}
|
||||
|
||||
protected void btnSavePhys_OnClick(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
string id = Val.varchar(txtPhysID, 8);
|
||||
string FNAME = Val.varchar(txtFNAME, 30);
|
||||
string LNAME = Val.varchar(txtLNAME, 30);
|
||||
string MidInit = Val.varchar(txtMidInit, 1);
|
||||
short zip = Val.SmallIntType(txtZip);
|
||||
string city = Val.varchar(txtCity, 30);
|
||||
string state = Val.varchar(txtState, 2);
|
||||
DateTime date = Val.Date(txtDOB);
|
||||
string phone = Val.varchar(txtPhone, 14);
|
||||
string gender = Val.varchar(txtGender, 1);
|
||||
string specialty = Val.varchar(txtSpecialty, 100);
|
||||
|
||||
PharmacyDataTier.UpdatePhysician(id,FNAME,LNAME,MidInit,date,gender,city,zip,state,phone,specialty);
|
||||
|
||||
Response.Redirect("physician.aspx");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
148
FWA_MAIN/physEdit.aspx.designer.cs
generated
Normal file
148
FWA_MAIN/physEdit.aspx.designer.cs
generated
Normal file
@ -0,0 +1,148 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FWA_MAIN
|
||||
{
|
||||
|
||||
|
||||
public partial class physEdit
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// txtPhysID control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtPhysID;
|
||||
|
||||
/// <summary>
|
||||
/// txtFNAME control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtFNAME;
|
||||
|
||||
/// <summary>
|
||||
/// txtLNAME control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtLNAME;
|
||||
|
||||
/// <summary>
|
||||
/// txtMidInit control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtMidInit;
|
||||
|
||||
/// <summary>
|
||||
/// txtZip control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtZip;
|
||||
|
||||
/// <summary>
|
||||
/// txtCity control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtCity;
|
||||
|
||||
/// <summary>
|
||||
/// txtState control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtState;
|
||||
|
||||
/// <summary>
|
||||
/// txtDOB control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtDOB;
|
||||
|
||||
/// <summary>
|
||||
/// txtPhone control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtPhone;
|
||||
|
||||
/// <summary>
|
||||
/// txtGender control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtGender;
|
||||
|
||||
/// <summary>
|
||||
/// txtSpecialty control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtSpecialty;
|
||||
|
||||
/// <summary>
|
||||
/// btnSavePhys control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btnSavePhys;
|
||||
|
||||
/// <summary>
|
||||
/// btnCancelPhys control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btnCancelPhys;
|
||||
|
||||
/// <summary>
|
||||
/// Master property.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated property.
|
||||
/// </remarks>
|
||||
public new FWA_MAIN.main Master
|
||||
{
|
||||
get
|
||||
{
|
||||
return ((FWA_MAIN.main)(base.Master));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,2 +1,57 @@
|
||||
<%@ Page Title="Title" Language="C#" MasterPageFile="MasterPage" CodeBehind="physNew.aspx.cs" Inherits="FWA_MAIN.physNew" %>
|
||||
<%@ Page Title="Title" Language="C#" MasterPageFile="main.master" CodeBehind="physNew.aspx.cs" Inherits="FWA_MAIN.physNew" %>
|
||||
|
||||
<asp:Content runat="server" ContentPlaceHolderID="cph1">
|
||||
|
||||
<link type="text/css" href="main.css"/>
|
||||
|
||||
<style>
|
||||
.container {
|
||||
text-align: center;
|
||||
}
|
||||
.buttonGroup {
|
||||
margin-top: 20px;
|
||||
}
|
||||
.patDiv {
|
||||
text-align: center;
|
||||
}
|
||||
.buttonGroup .buttonWrapper {
|
||||
display: inline-block;
|
||||
margin-right: 10px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<h1 style="text-align: center; font-size: 44px">New Physician</h1>
|
||||
<div class="container">
|
||||
<div class="patDiv">
|
||||
<div class="indivPatDiv"><label class="buttonLabel">Physician ID: </label></div>
|
||||
<div class="indivPatDiv"><label class="buttonLabel">First Name: </label></div>
|
||||
<div class="indivPatDiv"><label class="buttonLabel">Last Name: </label></div>
|
||||
<div class="indivPatDiv"><label class="buttonLabel">Middle Initial: </label></div>
|
||||
<div class="indivPatDiv"><label class="buttonLabel">Zip Code: </label></div>
|
||||
<div class="indivPatDiv"><label class="buttonLabel">City: </label></div>
|
||||
<div class="indivPatDiv"><label class="buttonLabel">State: </label></div>
|
||||
<div class="indivPatDiv"><label class="buttonLabel">Date of Birth: </label></div>
|
||||
<div class="indivPatDiv"><label class="buttonLabel">Phone Number: </label></div>
|
||||
<div class="indivPatDiv"><label class="buttonLabel">Gender (M/F): </label></div>
|
||||
<div class="indivPatDiv"><label class="buttonLabel">Specialty: </label></div>
|
||||
</div>
|
||||
<div class="patDiv">
|
||||
<div class="indivPatDiv"><asp:TextBox runat="server" CssClass="defaultTXT" ID="txtPhysID"></asp:TextBox></div>
|
||||
<div class="indivPatDiv"><asp:TextBox runat="server" CssClass="defaultTXT" ID="txtFNAME"></asp:TextBox></div>
|
||||
<div class="indivPatDiv"><asp:TextBox runat="server" CssClass="defaultTXT" ID="txtLNAME"></asp:TextBox></div>
|
||||
<div class="indivPatDiv"><asp:TextBox runat="server" CssClass="defaultTXT" ID="txtMidInit"></asp:TextBox></div>
|
||||
<div class="indivPatDiv"><asp:TextBox runat="server" CssClass="defaultTXT" ID="txtZip"></asp:TextBox></div>
|
||||
<div class="indivPatDiv"><asp:TextBox runat="server" CssClass="defaultTXT" ID="txtCity"></asp:TextBox></div>
|
||||
<div class="indivPatDiv"><asp:TextBox runat="server" CssClass="defaultTXT" ID="txtState"></asp:TextBox></div>
|
||||
<div class="indivPatDiv"><asp:TextBox runat="server" CssClass="defaultTXT" ID="txtDOB"></asp:TextBox></div>
|
||||
<div class="indivPatDiv"><asp:TextBox runat="server" CssClass="defaultTXT" ID="txtPhone"></asp:TextBox></div>
|
||||
<div class="indivPatDiv"><asp:TextBox runat="server" CssClass="defaultTXT" ID="txtGender"></asp:TextBox></div>
|
||||
<div class="indivPatDiv"><asp:TextBox runat="server" CssClass="defaultTXT" ID="txtSpecialty"></asp:TextBox></div>
|
||||
</div>
|
||||
</div>
|
||||
<br/>
|
||||
<div class="patDiv buttonGroup" style="margin-left:500px">
|
||||
<div class="buttonWrapper"><asp:Button runat="server" CssClass="standardbtn" ID="btnSavePat" Text="Create"/></div>
|
||||
<div class="buttonWrapper"><asp:Button runat="server" CssClass="standardbtn" ID="btnCancelPat" Text="Cancel" OnClick="btnCancelPat_OnClick"/></div>
|
||||
</div>
|
||||
</asp:Content>
|
@ -9,5 +9,10 @@ namespace FWA_MAIN
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
protected void btnCancelPat_OnClick(object sender, EventArgs e)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
131
FWA_MAIN/physNew.aspx.designer.cs
generated
131
FWA_MAIN/physNew.aspx.designer.cs
generated
@ -13,5 +13,136 @@ namespace FWA_MAIN
|
||||
|
||||
public partial class physNew
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// txtPhysID control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtPhysID;
|
||||
|
||||
/// <summary>
|
||||
/// txtFNAME control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtFNAME;
|
||||
|
||||
/// <summary>
|
||||
/// txtLNAME control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtLNAME;
|
||||
|
||||
/// <summary>
|
||||
/// txtMidInit control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtMidInit;
|
||||
|
||||
/// <summary>
|
||||
/// txtZip control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtZip;
|
||||
|
||||
/// <summary>
|
||||
/// txtCity control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtCity;
|
||||
|
||||
/// <summary>
|
||||
/// txtState control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtState;
|
||||
|
||||
/// <summary>
|
||||
/// txtDOB control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtDOB;
|
||||
|
||||
/// <summary>
|
||||
/// txtPhone control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtPhone;
|
||||
|
||||
/// <summary>
|
||||
/// txtGender control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtGender;
|
||||
|
||||
/// <summary>
|
||||
/// txtSpecialty control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtSpecialty;
|
||||
|
||||
/// <summary>
|
||||
/// btnSavePat control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btnSavePat;
|
||||
|
||||
/// <summary>
|
||||
/// btnCancelPat control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btnCancelPat;
|
||||
|
||||
/// <summary>
|
||||
/// Master property.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated property.
|
||||
/// </remarks>
|
||||
public new FWA_MAIN.main Master
|
||||
{
|
||||
get
|
||||
{
|
||||
return ((FWA_MAIN.main)(base.Master));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,9 +1,20 @@
|
||||
<%@ Page Title="Physicians" Language="C#" MasterPageFile="main.master" CodeBehind="physician.aspx.cs" Inherits="FWA_MAIN.physician" %>
|
||||
<%@ Page Title="Physicians" EnableEventValidation="false" Language="C#" MasterPageFile="main.master" CodeBehind="physician.aspx.cs" Inherits="FWA_MAIN.physician" %>
|
||||
|
||||
<asp:Content runat="server" ContentPlaceHolderID="cph1">
|
||||
|
||||
<link type="text/css" href="main.css"/>
|
||||
<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
|
||||
$("#<%= btnPhySearch.ClientID %>").click(); // Trigger the search button click
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<link type="text/css" href="main.css"/>
|
||||
<h1 style="text-align: center; font-size: 44px">
|
||||
Physicians
|
||||
</h1>
|
||||
@ -18,7 +29,7 @@
|
||||
</div>
|
||||
<br/>
|
||||
<div class="indivPatDiv" style="text-align: right;">
|
||||
<label for="txtPhysID" class="buttonLabel">Patient ID: </label>
|
||||
<label for="txtPhysID" class="buttonLabel">Physician ID: </label>
|
||||
</div>
|
||||
<br/>
|
||||
</div>
|
||||
@ -33,16 +44,70 @@
|
||||
</div>
|
||||
<br/>
|
||||
<div class="indivPatDiv">
|
||||
<asp:TextBox runat="server" CssClass="defaultTXT" id="txtPatID"></asp:TextBox>
|
||||
<asp:TextBox runat="server" CssClass="defaultTXT" id="txtPhysID"></asp:TextBox>
|
||||
</div>
|
||||
<br/>
|
||||
</div>
|
||||
<br/>
|
||||
<asp:Button runat="server" ID="btnPhySearch" Text="Search" CssClass="btnPhySearch"/>
|
||||
<asp:Button runat="server" ID="btnPhySearch" Text="Search" CssClass="btnPatSearch" OnClick="btnPhySearch_OnClick"/>
|
||||
|
||||
</div>
|
||||
<br/>
|
||||
<br/>
|
||||
<br/>
|
||||
<br/>
|
||||
|
||||
<asp:GridView runat="server" ID="gvPhysician" BorderColor="red"></asp:GridView>
|
||||
<div style="width: 75%; margin: 0 auto; align-content: center; horiz-align: center">
|
||||
<asp:GridView runat="server" ID="gvPhysician"
|
||||
CssClass="gridview"
|
||||
HeaderStyle-CssClass="headerstyle"
|
||||
RowStyle-CssClass="rowstyle"
|
||||
AlternatingRowStyle-CssClass="alternatingrowstyle"
|
||||
SelectedRowStyle-CssClass="selectedrowstyle"
|
||||
OnRowCommand="gvPhysician_OnRowCommand"
|
||||
AutoGenerateColumns="False"
|
||||
OnRowDataBound="gvPhysician_OnRowDataBound"
|
||||
OnSelectedIndexChanged="GridView1_SelectedIndexChanged">
|
||||
<Columns>
|
||||
<asp:BoundField DataField="Physician_id" HeaderText="Physician ID" SortExpression="Physician_id"/>
|
||||
<asp:BoundField DataField="FirstName" HeaderText="First Name" SortExpression="FirstName"/>
|
||||
<asp:BoundField DataField="LastName" HeaderText="Last Name" SortExpression="LastName"/>
|
||||
<asp:BoundField DataField="MiddleIntials" HeaderText="Middle Initial" SortExpression="MiddleIntials"/>
|
||||
<asp:BoundField DataField="Zip" HeaderText="Zip Code" SortExpression="Zip"/>
|
||||
<asp:BoundField DataField="City" HeaderText="City" SortExpression="City"/>
|
||||
<asp:BoundField DataField="UsState" HeaderText="State" SortExpression="UsState"/>
|
||||
<asp:BoundField DataField="DOB" HeaderText="Date of Birth" SortExpression="DOB" DataFormatString="{0:d}" HtmlEncode="False"/>
|
||||
<asp:BoundField DataField="PhoneNumber" HeaderText="Phone Number" SortExpression="PhoneNumber"/>
|
||||
<asp:BoundField DataField="Gender" HeaderText="Gender" SortExpression="Gender"/>
|
||||
<asp:BoundField DataField="Specialty" HeaderText="Specialty" SortExpression="Specialty"/>
|
||||
</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="btnPhysNew" Text="New" OnClick="btnPhysNew_OnClick"/>
|
||||
</li>
|
||||
<li style="height: 25px">
|
||||
<asp:Button runat="server" CssClass="standardbtn" ID="bntPhysEdit" Text="Edit" OnClick="bntPhysEdit_OnClick"/>
|
||||
</li>
|
||||
<li style="height: 25px">
|
||||
<asp:Button runat="server" CssClass="standardbtn" ID="btnPhysDelete" Text="Delete" OnClick="btnPhysDelete_OnClick"/>
|
||||
</li>
|
||||
|
||||
<%-- <asp:Button runat="server" Text="New" OnClick="btnNew_OnClick" /> --%>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
document.oncontextmenu = rightClick;
|
||||
@ -57,10 +122,10 @@
|
||||
style="display: none">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="patNew.aspx">New</a>
|
||||
<a href="physnew02.aspx">New</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="patEdit.aspx">Edit</a>
|
||||
<a href="physEdit.aspx">Edit</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Delete</a>
|
||||
@ -104,14 +169,15 @@
|
||||
.context-menu ul {
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
min-width: 150px;
|
||||
/*min-width: 150px; */
|
||||
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.context-menu ul li {
|
||||
padding-bottom: 7px;
|
||||
padding-top: 7px;
|
||||
border: 1px solid black;
|
||||
/*padding-bottom: 7px; */
|
||||
/*padding-top: 7px; */
|
||||
/*border: 1px solid black; */
|
||||
}
|
||||
|
||||
.context-menu ul li a {
|
||||
|
@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
@ -11,7 +12,200 @@ namespace FWA_MAIN
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
|
||||
txtPhysID.Text = Convert.ToString(Session["vPhysPhysID"]);
|
||||
txtFNAME.Text = Convert.ToString(Session["vPhysFNAME"]);
|
||||
txtLNAME.Text = Convert.ToString(Session["vPhysLNAME"]);
|
||||
|
||||
btnPhySearch_OnClick(sender,e);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void BindData()
|
||||
{
|
||||
|
||||
DataSet ds = new DataSet();
|
||||
|
||||
string physID = Convert.ToString(Session["vPhysPhysID"]);
|
||||
string LNAME = Convert.ToString(Session["vPhysLNAME"]);
|
||||
string FNAME = Convert.ToString(Session["vPhysFNAME"]);
|
||||
|
||||
txtPhysID.Text = physID;
|
||||
txtFNAME.Text = FNAME;
|
||||
txtLNAME.Text = LNAME;
|
||||
|
||||
// if (textHasValues)
|
||||
// {
|
||||
ds = PharmacyDataTier.PhysicianInfoSearch(FNAME, LNAME, physID);
|
||||
// }
|
||||
|
||||
|
||||
// ds = dt.GetStudents();
|
||||
gvPhysician.DataSource = ds.Tables[0];
|
||||
|
||||
if (Cache["StudentData"] == null)
|
||||
{
|
||||
Cache.Add("StudentData", new DataView(ds.Tables[0]),
|
||||
null,System.Web.Caching.Cache.NoAbsoluteExpiration,
|
||||
System.TimeSpan.FromMinutes(10), System.Web.Caching.CacheItemPriority.Default,
|
||||
null);
|
||||
}
|
||||
gvPhysician.DataBind();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
protected void btnPhysDelete_OnClick(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
PharmacyDataTier.DeletePhysician(gvPhysician.SelectedRow.Cells[0].Text);
|
||||
BindData();
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
protected void bntPhysEdit_OnClick(object sender, EventArgs e)
|
||||
{
|
||||
string physicianID = "0";
|
||||
Int64 mEditedRecord = 0;
|
||||
System.Text.StringBuilder sb = new System.Text.StringBuilder();
|
||||
|
||||
try
|
||||
{
|
||||
Session["vPhysPhysID"] = txtPhysID.Text.Trim();
|
||||
Session["vPhysFNAME"] = txtFNAME.Text.Trim();
|
||||
Session["vPhysLNAME"] = txtLNAME.Text.Trim();
|
||||
|
||||
|
||||
try
|
||||
{
|
||||
|
||||
physicianID = Crypt.Encrypt(gvPhysician.SelectedRow.Cells[0].Text);
|
||||
Response.Redirect("physedit.aspx" + "?" + "ID=" + physicianID, false);
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
}
|
||||
|
||||
// Use the patientID value as needed
|
||||
|
||||
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
throw new Exception(ex.Message, ex.InnerException);
|
||||
}
|
||||
}
|
||||
|
||||
protected void btnPhysNew_OnClick(object sender, EventArgs e)
|
||||
{
|
||||
string physicianID;
|
||||
|
||||
try
|
||||
{
|
||||
Session["vPhysPhysID"] = txtPhysID.Text.Trim();
|
||||
Session["vPhysFNAME"] = txtFNAME.Text.Trim();
|
||||
Session["vPhysLNAME"] = txtLNAME.Text.Trim();
|
||||
|
||||
// Use the patientID value as needed
|
||||
try
|
||||
{
|
||||
|
||||
physicianID = PharmacyDataTier.GetNextPhysicianID();
|
||||
physicianID = Crypt.Encrypt(physicianID);
|
||||
Response.Redirect("physnew02.aspx" + "?" + "ID=" + physicianID, false);
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
}
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
protected void btnPhySearch_OnClick(object sender, EventArgs e)
|
||||
{
|
||||
if (txtPhysID.Text.Trim().Length > 0 || txtFNAME.Text.Trim().Length > 0 || txtLNAME.Text.Trim().Length > 0)
|
||||
{
|
||||
|
||||
|
||||
try
|
||||
{
|
||||
|
||||
Session["vPhysPhysID"] = txtPhysID.Text.Trim();
|
||||
Session["vPhysFNAME"] = txtFNAME.Text.Trim();
|
||||
Session["vPhysLNAME"] = txtLNAME.Text.Trim();
|
||||
|
||||
Cache.Remove("StudentData");
|
||||
BindData();
|
||||
|
||||
|
||||
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
protected void gvPhysician_OnRowDataBound(object sender, GridViewRowEventArgs e)
|
||||
{
|
||||
if (e.Row.RowType == DataControlRowType.DataRow)
|
||||
{
|
||||
e.Row.Attributes["onclick"] = Page.ClientScript.GetPostBackClientHyperlink(gvPhysician, "Select$" + e.Row.RowIndex);
|
||||
e.Row.ToolTip = "Click to select this row.";
|
||||
}
|
||||
}
|
||||
|
||||
protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
BindData();
|
||||
}
|
||||
|
||||
protected void gvPhysician_OnRowCommand(object sender, GridViewCommandEventArgs e)
|
||||
{
|
||||
if (e.CommandName == "Select")
|
||||
{
|
||||
// Determine the index of the selected row
|
||||
int index = Convert.ToInt32(e.CommandArgument);
|
||||
|
||||
// Check if the selected row index is the same as the previous selected row index
|
||||
if (gvPhysician.SelectedIndex == index)
|
||||
{
|
||||
// Deselect the row
|
||||
gvPhysician.SelectedIndex = -1;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Select the row
|
||||
gvPhysician.SelectedIndex = index;
|
||||
}
|
||||
|
||||
// Refresh the GridView to update the style
|
||||
gvPhysician.DataBind();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
45
FWA_MAIN/physician.aspx.designer.cs
generated
45
FWA_MAIN/physician.aspx.designer.cs
generated
@ -33,13 +33,13 @@ namespace FWA_MAIN
|
||||
protected global::System.Web.UI.WebControls.TextBox txtLNAME;
|
||||
|
||||
/// <summary>
|
||||
/// txtPatID control.
|
||||
/// txtPhysID control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtPatID;
|
||||
protected global::System.Web.UI.WebControls.TextBox txtPhysID;
|
||||
|
||||
/// <summary>
|
||||
/// btnPhySearch control.
|
||||
@ -58,5 +58,46 @@ namespace FWA_MAIN
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.GridView gvPhysician;
|
||||
|
||||
/// <summary>
|
||||
/// btnPhysNew control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btnPhysNew;
|
||||
|
||||
/// <summary>
|
||||
/// bntPhysEdit control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button bntPhysEdit;
|
||||
|
||||
/// <summary>
|
||||
/// btnPhysDelete control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btnPhysDelete;
|
||||
|
||||
/// <summary>
|
||||
/// Master property.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated property.
|
||||
/// </remarks>
|
||||
public new FWA_MAIN.main Master
|
||||
{
|
||||
get
|
||||
{
|
||||
return ((FWA_MAIN.main)(base.Master));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
55
FWA_MAIN/physnew02.aspx
Normal file
55
FWA_MAIN/physnew02.aspx
Normal file
@ -0,0 +1,55 @@
|
||||
<%@ Page Title="Title" Language="C#" MasterPageFile="main.master" CodeBehind="physnew02.aspx.cs" Inherits="FWA_MAIN.physnew02" %>
|
||||
|
||||
<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
|
||||
$("#<%= btnSavePhys.ClientID %>").click(); // Trigger the search button click
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<link type="text/css" href="main.css"/>
|
||||
|
||||
<h1 style="text-align: center; font-size: 44px">New Physician</h1>
|
||||
<div class="patDiv">
|
||||
<div class="patDiv">
|
||||
<div class="patDiv" style="padding-left: 400px; padding-right: 5px;width: 100px">
|
||||
<div class="indivPatDiv"><label class="buttonLabel">Physician ID: </label></div>
|
||||
<div class="indivPatDiv"><label class="buttonLabel">First Name: </label></div>
|
||||
<div class="indivPatDiv"><label class="buttonLabel">Last Name: </label></div>
|
||||
<div class="indivPatDiv"><label class="buttonLabel">Middle Initial: </label></div>
|
||||
<div class="indivPatDiv"><label class="buttonLabel">Zip Code: </label></div>
|
||||
<div class="indivPatDiv"><label class="buttonLabel">City: </label></div>
|
||||
<div class="indivPatDiv"><label class="buttonLabel">State: </label></div>
|
||||
<div class="indivPatDiv"><label class="buttonLabel">Date of Birth: </label></div>
|
||||
<div class="indivPatDiv"><label class="buttonLabel">Phone Number: </label></div>
|
||||
<div class="indivPatDiv"><label class="buttonLabel">Gender (M/F): </label></div>
|
||||
<div class="indivPatDiv"><label class="buttonLabel">Specialty: </label></div>
|
||||
</div>
|
||||
<div class="patDiv">
|
||||
<div class="indivPatDiv"><asp:TextBox runat="server" CssClass="defaultTXT" ID="txtPhysID"></asp:TextBox></div>
|
||||
<div class="indivPatDiv"><asp:TextBox runat="server" CssClass="defaultTXT" ID="txtFNAME"></asp:TextBox></div>
|
||||
<div class="indivPatDiv"><asp:TextBox runat="server" CssClass="defaultTXT" ID="txtLNAME"></asp:TextBox></div>
|
||||
<div class="indivPatDiv"><asp:TextBox runat="server" CssClass="defaultTXT" ID="txtMidInit"></asp:TextBox></div>
|
||||
<div class="indivPatDiv"><asp:TextBox runat="server" CssClass="defaultTXT" ID="txtZip"></asp:TextBox></div>
|
||||
<div class="indivPatDiv"><asp:TextBox runat="server" CssClass="defaultTXT" ID="txtCity"></asp:TextBox></div>
|
||||
<div class="indivPatDiv"><asp:TextBox runat="server" CssClass="defaultTXT" ID="txtState"></asp:TextBox></div>
|
||||
<div class="indivPatDiv"><asp:TextBox runat="server" CssClass="defaultTXT" ID="txtDOB"></asp:TextBox></div>
|
||||
<div class="indivPatDiv"><asp:TextBox runat="server" CssClass="defaultTXT" ID="txtPhone"></asp:TextBox></div>
|
||||
<div class="indivPatDiv"><asp:TextBox runat="server" CssClass="defaultTXT" ID="txtGender"></asp:TextBox></div>
|
||||
<div class="indivPatDiv"><asp:TextBox runat="server" CssClass="defaultTXT" ID="txtSpecialty"></asp:TextBox></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br/>
|
||||
<br/>
|
||||
<br/>
|
||||
<div class="patDiv" style="margin-left: 500px">
|
||||
<div style="margin-right: 10px; display: inline-block"><asp:Button runat="server" CssClass="standardbtn" ID="btnSavePhys" Text="Create" OnClick="btnSavePhys_OnClick"/></div>
|
||||
<div style="display: inline-block"><asp:Button runat="server" CssClass="standardbtn" ID="btnCancelPhys" Text="Cancel" OnClick="btnCancelPhys_OnClick"/></div>
|
||||
</div>
|
||||
</asp:Content>
|
48
FWA_MAIN/physnew02.aspx.cs
Normal file
48
FWA_MAIN/physnew02.aspx.cs
Normal file
@ -0,0 +1,48 @@
|
||||
using System;
|
||||
using System.Web.UI;
|
||||
|
||||
namespace FWA_MAIN
|
||||
{
|
||||
public partial class physnew02 : Page
|
||||
{
|
||||
protected string physID;
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
physID = Crypt.Decrypt(Request.QueryString["ID"]);
|
||||
|
||||
txtPhysID.Enabled = false;
|
||||
txtPhysID.Text = physID;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
protected void btnCancelPhys_OnClick(object sender, EventArgs e)
|
||||
{
|
||||
Response.Redirect("physician.aspx");
|
||||
}
|
||||
|
||||
protected void btnSavePhys_OnClick(object sender, EventArgs e)
|
||||
{
|
||||
string id = Val.varchar(txtPhysID, 8);
|
||||
string FNAME = Val.varchar(txtFNAME, 30);
|
||||
string LNAME = Val.varchar(txtLNAME, 30);
|
||||
string MidInit = Val.varchar(txtMidInit, 1);
|
||||
Int16 zip = Val.SmallIntType(txtZip);
|
||||
string city = Val.varchar(txtCity, 30);
|
||||
string state = Val.varchar(txtState, 2);
|
||||
DateTime date = Val.Date(txtDOB);
|
||||
string phone = Val.varchar(txtPhone, 14);
|
||||
string gender = Val.varchar(txtGender, 1);
|
||||
string specialty = Val.varchar(txtSpecialty, 100);
|
||||
|
||||
|
||||
PharmacyDataTier.CreatePhysician(id,FNAME,LNAME,MidInit,date,gender,city,zip,state,phone,specialty);
|
||||
|
||||
Response.Redirect("physician.aspx");
|
||||
}
|
||||
}
|
||||
}
|
148
FWA_MAIN/physnew02.aspx.designer.cs
generated
Normal file
148
FWA_MAIN/physnew02.aspx.designer.cs
generated
Normal file
@ -0,0 +1,148 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FWA_MAIN
|
||||
{
|
||||
|
||||
|
||||
public partial class physnew02
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// txtPhysID control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtPhysID;
|
||||
|
||||
/// <summary>
|
||||
/// txtFNAME control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtFNAME;
|
||||
|
||||
/// <summary>
|
||||
/// txtLNAME control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtLNAME;
|
||||
|
||||
/// <summary>
|
||||
/// txtMidInit control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtMidInit;
|
||||
|
||||
/// <summary>
|
||||
/// txtZip control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtZip;
|
||||
|
||||
/// <summary>
|
||||
/// txtCity control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtCity;
|
||||
|
||||
/// <summary>
|
||||
/// txtState control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtState;
|
||||
|
||||
/// <summary>
|
||||
/// txtDOB control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtDOB;
|
||||
|
||||
/// <summary>
|
||||
/// txtPhone control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtPhone;
|
||||
|
||||
/// <summary>
|
||||
/// txtGender control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtGender;
|
||||
|
||||
/// <summary>
|
||||
/// txtSpecialty control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtSpecialty;
|
||||
|
||||
/// <summary>
|
||||
/// btnSavePhys control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btnSavePhys;
|
||||
|
||||
/// <summary>
|
||||
/// btnCancelPhys control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btnCancelPhys;
|
||||
|
||||
/// <summary>
|
||||
/// Master property.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated property.
|
||||
/// </remarks>
|
||||
public new FWA_MAIN.main Master
|
||||
{
|
||||
get
|
||||
{
|
||||
return ((FWA_MAIN.main)(base.Master));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -43,9 +43,9 @@ namespace FWA_MAIN
|
||||
string rxnum = Val.varchar(txtRxNum, 11);
|
||||
int allow = Val.IntType(txtAllowed);
|
||||
int used = Val.IntType(txtUsed);
|
||||
string medid = Val.varchar(txtMedID, 7);
|
||||
string phyid = Val.varchar(txtPhysID, 8);
|
||||
string patid = Val.varchar(txtPatID, 8);
|
||||
string medid = Val.MedID(txtMedID);
|
||||
string phyid = Val.PhyID(txtPhysID);
|
||||
string patid = Val.PatID(txtPatID);
|
||||
DateTime start = Val.Date(txtStart);
|
||||
DateTime end = Val.Date(txtEnd);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user