idk
This commit is contained in:
parent
9f8f6ccbdc
commit
fe80a41d5c
@ -155,7 +155,7 @@
|
||||
<virtualDirectoryDefaults allowSubDirConfig="true" />
|
||||
<site name="FWA_MAIN" id="1">
|
||||
<application path="/" applicationPool="Clr4IntegratedAppPool">
|
||||
<virtualDirectory path="/" physicalPath="C:\Users\caschick221\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" />
|
||||
|
@ -69,6 +69,11 @@ namespace FWA_MAIN
|
||||
|
||||
DateTime date = DateTime.Parse(box.Text.Trim());
|
||||
|
||||
if (date < new DateTime(1753,1,1) || date > new DateTime(9999,12,31))
|
||||
{
|
||||
throw new Exception();
|
||||
}
|
||||
|
||||
return date;
|
||||
|
||||
}
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
||||
e89e31cdadf20fe7db48ef132bf217873437f194debfb0966ea84327b2ae8615
|
||||
9d1cdd184476eb265233bc67136ca7e3159166a02c46b34cb16710aa0fb22e94
|
||||
|
Binary file not shown.
Binary file not shown.
@ -13,15 +13,26 @@
|
||||
</files>
|
||||
</defaultDocument>
|
||||
</system.webServer>
|
||||
<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>
|
||||
<appSettings>
|
||||
<add key="webpages:Version" value="3.0.0.0" />
|
||||
<add key="webpages:Enabled" value="false" />
|
||||
<add key="ClientValidationEnabled" value="true" />
|
||||
<add key="UnobtrusiveJavaScriptEnabled" value="true" />
|
||||
</appSettings>
|
||||
<!--
|
||||
For a description of web.config changes see http://go.microsoft.com/fwlink/?LinkId=235367.
|
||||
|
||||
The following attributes can be set on the <httpRuntime> tag.
|
||||
<system.Web>
|
||||
<httpRuntime targetFramework="4.8" />
|
||||
</system.Web>
|
||||
-->
|
||||
<system.web>
|
||||
<compilation debug="true" targetFramework="4.8.1" />
|
||||
<httpRuntime targetFramework="4.8.1" />
|
||||
<compilation debug="true" targetFramework="4.8" />
|
||||
<httpRuntime targetFramework="4.8" />
|
||||
</system.web>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
|
Binary file not shown.
Binary file not shown.
@ -13,6 +13,99 @@
|
||||
|
||||
}
|
||||
|
||||
.gridview {
|
||||
outline-color: black;
|
||||
margin: 10px;
|
||||
font-family: Arial, sans-serif;
|
||||
width: auto;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
.gridview th {
|
||||
background-color: #101214;
|
||||
color: #fff;
|
||||
padding: 5px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.gridview td {
|
||||
/*background-color: #1D2125;*/
|
||||
padding: 5px;
|
||||
width: 120px;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.gridview tr:hover {
|
||||
background-color: #101214;
|
||||
}
|
||||
|
||||
.gridview .headerstyle {
|
||||
background-color: #161A1D;
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.gridview .rowstyle {
|
||||
background-color: #1D2125;
|
||||
}
|
||||
|
||||
.gridview .alternatingrowstyle {
|
||||
background-color: #2C333A;
|
||||
}
|
||||
|
||||
.gridview .selectedrowstyle {
|
||||
background-color: #09326C;
|
||||
}
|
||||
|
||||
.buttonLabel{
|
||||
|
||||
text-align: right;
|
||||
vertical-align: center;
|
||||
|
||||
}
|
||||
|
||||
.btnPatSearch, .btnMediSearch{
|
||||
|
||||
margin-left: 177px;
|
||||
|
||||
height: 25px;
|
||||
width: 100px;
|
||||
color: white;
|
||||
background-color: #161A1D;
|
||||
|
||||
}
|
||||
|
||||
.indivPatDiv, .indivMedDiv{
|
||||
|
||||
height: 35px;
|
||||
/*outline: solid 1px red;*/
|
||||
|
||||
|
||||
}
|
||||
|
||||
.standardbtn{
|
||||
|
||||
height: 25px;
|
||||
width: 100px;
|
||||
color: white;
|
||||
background-color: #161A1D;
|
||||
|
||||
}
|
||||
|
||||
.patDiv, .medDiv{
|
||||
vertical-align: top;
|
||||
/*outline: solid 1px red;*/
|
||||
display: inline-block;
|
||||
|
||||
}
|
||||
|
||||
.defaultTXT{
|
||||
|
||||
height: 25px;
|
||||
|
||||
}
|
||||
|
||||
.sidenavbutton{
|
||||
|
||||
background-color: #1D2125;
|
||||
@ -22,7 +115,7 @@
|
||||
font-size: 16px;
|
||||
color: white;
|
||||
/*border: 2px solid #0056b3;*/
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -34,7 +127,7 @@
|
||||
.welcomepage{
|
||||
|
||||
background-color: #1b6d85;
|
||||
outline: solid 1px red;
|
||||
/*outline: solid 1px red;*/
|
||||
|
||||
}
|
||||
.standardcontentpage{
|
||||
|
@ -11,9 +11,9 @@
|
||||
|
||||
<body class="mainmaster">
|
||||
|
||||
<form runat="server">
|
||||
<nav class="sidenavdiv">
|
||||
|
||||
<form runat="server">
|
||||
<div style="display: block; width: 8%">
|
||||
<%-- test --%>
|
||||
<asp:Button runat="server" ID="btnHome" CssClass="sidenavbutton" Text="Home" OnClick="home_OnClick" />
|
||||
@ -22,9 +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"/>
|
||||
</div></form>
|
||||
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
|
||||
@ -32,6 +31,7 @@
|
||||
<div class="standardcontentpage">
|
||||
<asp:ContentPlaceHolder id="cph1" runat="server"></asp:ContentPlaceHolder>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -1,7 +1,63 @@
|
||||
<%@ Page Title="New Patient" Language="C#" MasterPageFile="main.master" CodeBehind="patNew.aspx.cs" Inherits="FWA_MAIN.patNew" %>
|
||||
|
||||
<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"/>
|
||||
|
||||
<h1>New Patient</h1>
|
||||
|
||||
<h1 style="text-align: center; font-size: 44px">New Patient</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">Patient ID: </label></div>
|
||||
<div class="indivPatDiv" style="text-align: right"><label class="buttonLabel">First Name: </label></div>
|
||||
<div class="indivPatDiv" style="text-align: right"><label class="buttonLabel">Last Name: </label></div>
|
||||
<div class="indivPatDiv" style="text-align: right"><label class="buttonLabel">Middle Initial: </label></div>
|
||||
<div class="indivPatDiv" style="text-align: right"><label class="buttonLabel">Weight (lbs): </label></div>
|
||||
<div class="indivPatDiv" style="text-align: right"><label class="buttonLabel">Height (Ft): </label></div>
|
||||
<div class="indivPatDiv" style="text-align: right"><label class="buttonLabel">Height (In): </label></div>
|
||||
<div class="indivPatDiv" style="text-align: right"><label class="buttonLabel">Date of Birth: </label></div>
|
||||
<div class="indivPatDiv" style="text-align: right"><label class="buttonLabel">Gender (M/F): </label></div>
|
||||
</div>
|
||||
<div class="patDiv">
|
||||
<div class="indivPatDiv"><asp:TextBox runat="server" CssClass="defaultTXT" ID="txtPatID"></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="txtWeight"></asp:TextBox></div>
|
||||
<div class="indivPatDiv"><asp:TextBox runat="server" CssClass="defaultTXT" ID="txtHeightFt"></asp:TextBox></div>
|
||||
<div class="indivPatDiv"><asp:TextBox runat="server" CssClass="defaultTXT" ID="txtHeightIn"></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="txtGender"></asp:TextBox></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="patDiv">
|
||||
<div class="patDiv" style="padding-left: 150px; padding-right: 5px;width: 120px">
|
||||
<div class="indivPatDiv" style="text-align: right"><label class="buttonLabel">City: </label></div>
|
||||
<div class="indivPatDiv" style="text-align: right"><label class="buttonLabel">Zip Code: </label></div>
|
||||
<div class="indivPatDiv" style="text-align: right"><label class="buttonLabel">State: </label></div>
|
||||
<div class="indivPatDiv" style="text-align: right"><label class="buttonLabel">Phone Number: </label></div>
|
||||
</div>
|
||||
<div class="patDiv">
|
||||
<div class="indivPatDiv"><asp:TextBox runat="server" CssClass="defaultTXT" ID="txtCity"></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="txtState"></asp:TextBox></div>
|
||||
<div class="indivPatDiv"><asp:TextBox runat="server" CssClass="defaultTXT" ID="txtPhoneNum"></asp:TextBox></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br/>
|
||||
<div class="patDiv" style="margin-left: 500px">
|
||||
<div style="margin-right: 10px; display: inline-block"><asp:Button runat="server" CssClass="standardbtn" ID="btnSavePat" Text="Create" OnClick="btnSavePat_OnClick"/></div>
|
||||
<div style="display: inline-block"><asp:Button runat="server" CssClass="standardbtn" ID="btnCancelPat" Text="Cancel" OnClick="btnCancelPat_OnClick"/></div>
|
||||
</div>
|
||||
</asp:Content>
|
@ -1,84 +0,0 @@
|
||||
<%@ Page Title="Patients" Language="C#" MasterPageFile="main.master" CodeBehind="patient.aspx.cs" Inherits="FWA_MAIN.patient" %>
|
||||
|
||||
<asp:Content runat="server" ContentPlaceHolderID="cph1">
|
||||
|
||||
|
||||
<h1 style="text-align: center;">
|
||||
Welcome to Pharmacy.
|
||||
</h1>
|
||||
<h1 style="text-align: center;">
|
||||
Hi, We are creating a
|
||||
custom context menu here.
|
||||
</h1>
|
||||
<script type="text/javascript">
|
||||
document.oncontextmenu = rightClick;
|
||||
|
||||
function rightClick(clickEvent) {
|
||||
clickEvent.preventDefault();
|
||||
// return false;
|
||||
}
|
||||
</script>
|
||||
|
||||
<div id="contextMenu" class="context-menu"
|
||||
style="display: none">
|
||||
<ul>
|
||||
<li><a href="patNew.aspx">New</a></li>
|
||||
<li><a href="#">Edit</a></li>
|
||||
<li><a href="#">Delete</a></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>
|
@ -1,28 +1,38 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
For more information on how to configure your ASP.NET application, please visit
|
||||
https://go.microsoft.com/fwlink/?LinkId=301880
|
||||
-->
|
||||
<configuration>
|
||||
<system.webServer>
|
||||
<defaultDocument>
|
||||
<files>
|
||||
<clear />
|
||||
<add value="Default.aspx" /> <!-- Or your specific default page -->
|
||||
</files>
|
||||
</defaultDocument>
|
||||
</system.webServer>
|
||||
|
||||
<system.webServer>
|
||||
<defaultDocument>
|
||||
<files>
|
||||
<clear/>
|
||||
<add value="Default.aspx"/>
|
||||
<!-- Or your specific default page -->
|
||||
</files>
|
||||
</defaultDocument>
|
||||
</system.webServer>
|
||||
<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>
|
||||
<appSettings>
|
||||
<add key="webpages:Version" value="3.0.0.0"/>
|
||||
<add key="webpages:Enabled" value="false"/>
|
||||
<add key="ClientValidationEnabled" value="true"/>
|
||||
<add key="UnobtrusiveJavaScriptEnabled" value="true"/>
|
||||
</appSettings>
|
||||
<!--
|
||||
For a description of web.config changes see http://go.microsoft.com/fwlink/?LinkId=235367.
|
||||
|
||||
The following attributes can be set on the <httpRuntime> tag.
|
||||
<system.Web>
|
||||
<httpRuntime targetFramework="4.8" />
|
||||
</system.Web>
|
||||
-->
|
||||
<system.web>
|
||||
<compilation debug="true" targetFramework="4.8.1"/>
|
||||
<httpRuntime targetFramework="4.8.1"/>
|
||||
<compilation debug="true" targetFramework="4.8"/>
|
||||
<httpRuntime targetFramework="4.8"/>
|
||||
</system.web>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
@ -58,12 +68,8 @@
|
||||
</runtime>
|
||||
<system.codedom>
|
||||
<compilers>
|
||||
<compiler language="c#;cs;csharp" extension=".cs"
|
||||
type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
|
||||
warningLevel="4" compilerOptions="/langversion:default /nowarn:1659;1699;1701"/>
|
||||
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb"
|
||||
type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
|
||||
warningLevel="4" compilerOptions="/langversion:default /nowarn:41008 /define:_MYTYPE=\"Web\" /optionInfer+"/>
|
||||
<compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:default /nowarn:1659;1699;1701"/>
|
||||
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:default /nowarn:41008 /define:_MYTYPE=\"Web\" /optionInfer+"/>
|
||||
</compilers>
|
||||
</system.codedom>
|
||||
</configuration>
|
||||
</configuration>
|
@ -13,15 +13,26 @@
|
||||
</files>
|
||||
</defaultDocument>
|
||||
</system.webServer>
|
||||
<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>
|
||||
<appSettings>
|
||||
<add key="webpages:Version" value="3.0.0.0" />
|
||||
<add key="webpages:Enabled" value="false" />
|
||||
<add key="ClientValidationEnabled" value="true" />
|
||||
<add key="UnobtrusiveJavaScriptEnabled" value="true" />
|
||||
</appSettings>
|
||||
<!--
|
||||
For a description of web.config changes see http://go.microsoft.com/fwlink/?LinkId=235367.
|
||||
|
||||
The following attributes can be set on the <httpRuntime> tag.
|
||||
<system.Web>
|
||||
<httpRuntime targetFramework="4.8" />
|
||||
</system.Web>
|
||||
-->
|
||||
<system.web>
|
||||
<compilation debug="true" targetFramework="4.8.1" />
|
||||
<httpRuntime targetFramework="4.8.1" />
|
||||
<compilation debug="true" targetFramework="4.8" />
|
||||
<httpRuntime targetFramework="4.8" />
|
||||
</system.web>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
|
Binary file not shown.
@ -12,6 +12,7 @@ namespace FWA_MAIN
|
||||
|
||||
patID = Crypt.Decrypt(Request.QueryString["ID"]);
|
||||
|
||||
txtPatID.Enabled = false;
|
||||
txtPatID.Text = patID;
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user