added .trim to patEdit.aspx.cs

This commit is contained in:
EggMan20339 2024-04-03 08:27:59 -04:00
parent a393631e61
commit 81eb144527
8 changed files with 15 additions and 15 deletions

View File

@ -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" />

Binary file not shown.

Binary file not shown.

View File

@ -1 +1 @@
548208a3bcb0eba33fd1a778a97babd693b86e02fd9b8f09bf8b4cf3b1fd0e4a
70b4448723339e99ed60f3c81dc6a5d1da61b1ddf61a97f8541739006170aed6

Binary file not shown.

Binary file not shown.

View File

@ -30,20 +30,20 @@ namespace FWA_MAIN
var ds = new DataSet();
ds = PharmacyDataTier.PatientInfoSearch(patID);
txtPatID.Text = ds.Tables[0].Rows[0]["Patient_id"].ToString();
txtFNAME.Text = ds.Tables[0].Rows[0]["FirstName"].ToString();
txtLNAME.Text = ds.Tables[0].Rows[0]["LastName"].ToString();
txtMidInit.Text = ds.Tables[0].Rows[0]["MiddleIntials"].ToString();
txtWeight.Text = ds.Tables[0].Rows[0]["lbs"].ToString();
txtHeightFt.Text = ds.Tables[0].Rows[0]["Height_feet"].ToString();
txtHeightIn.Text = ds.Tables[0].Rows[0]["Height_inches"].ToString();
DateTime date = DateTime.Parse(ds.Tables[0].Rows[0]["DOB"].ToString());
txtPatID.Text = ds.Tables[0].Rows[0]["Patient_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();
txtWeight.Text = ds.Tables[0].Rows[0]["lbs"].ToString().Trim();
txtHeightFt.Text = ds.Tables[0].Rows[0]["Height_feet"].ToString().Trim();
txtHeightIn.Text = ds.Tables[0].Rows[0]["Height_inches"].ToString().Trim();
DateTime date = DateTime.Parse(ds.Tables[0].Rows[0]["DOB"].ToString().Trim());
txtDOB.Text = date.ToString("d");
txtGender.Text = ds.Tables[0].Rows[0]["Gender"].ToString();
txtCity.Text = ds.Tables[0].Rows[0]["City"].ToString();
txtZip.Text = ds.Tables[0].Rows[0]["Zip"].ToString();
txtState.Text = ds.Tables[0].Rows[0]["UsState"].ToString();
txtPhoneNum.Text = ds.Tables[0].Rows[0]["PhoneNumber"].ToString();
txtGender.Text = ds.Tables[0].Rows[0]["Gender"].ToString().Trim();
txtCity.Text = ds.Tables[0].Rows[0]["City"].ToString().Trim();
txtZip.Text = ds.Tables[0].Rows[0]["Zip"].ToString().Trim();
txtState.Text = ds.Tables[0].Rows[0]["UsState"].ToString().Trim();
txtPhoneNum.Text = ds.Tables[0].Rows[0]["PhoneNumber"].ToString().Trim();
}