Med edit and save work
This commit is contained in:
parent
793984a4d0
commit
a5c4b903e3
@ -236,7 +236,7 @@ namespace FWA_MAIN
|
||||
string Medication_id,
|
||||
string MedicationName,
|
||||
string IntakeMethod,
|
||||
string Patient_id,
|
||||
|
||||
string Frequency,
|
||||
string Dosage,
|
||||
string Purpose,
|
||||
|
Binary file not shown.
Binary file not shown.
@ -21,7 +21,7 @@
|
||||
<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="indivPatDiv" style="text-align: right"><label class="buttonLabel">Patient ID: </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>
|
||||
@ -31,7 +31,7 @@
|
||||
<div class="indivPatDiv"><asp:TextBox runat="server" CssClass="defaultTXT" ID="txtMedID"></asp:TextBox></div>
|
||||
<div class="indivPatDiv"><asp:TextBox runat="server" CssClass="defaultTXT" ID="txtMedName"></asp:TextBox></div>
|
||||
<div class="indivPatDiv"><asp:TextBox runat="server" CssClass="defaultTXT" ID="txtIntake"></asp:TextBox></div>
|
||||
<div class="indivPatDiv"><asp:TextBox runat="server" CssClass="defaultTXT" ID="txtPatID"></asp:TextBox></div>
|
||||
|
||||
<div class="indivPatDiv"><asp:TextBox runat="server" CssClass="defaultTXT" ID="txtFrequency"></asp:TextBox></div>
|
||||
<div class="indivPatDiv"><asp:TextBox runat="server" CssClass="defaultTXT" ID="txtDosage"></asp:TextBox></div>
|
||||
<div class="indivPatDiv"><asp:TextBox runat="server" CssClass="defaultTXT" ID="txtPurpose"></asp:TextBox></div>
|
||||
|
@ -33,7 +33,7 @@ namespace FWA_MAIN
|
||||
txtMedID.Text = ds.Tables[0].Rows[0]["Medication_id"].ToString();
|
||||
txtMedName.Text = ds.Tables[0].Rows[0]["MedicationName"].ToString();
|
||||
txtIntake.Text = ds.Tables[0].Rows[0]["IntakeMethod"].ToString();
|
||||
txtPatID.Text = ds.Tables[0].Rows[0]["Patient_id"].ToString();
|
||||
|
||||
txtFrequency.Text = ds.Tables[0].Rows[0]["Frequency"].ToString();
|
||||
txtDosage.Text = ds.Tables[0].Rows[0]["Dosage"].ToString();
|
||||
txtPurpose.Text = ds.Tables[0].Rows[0]["Purpose"].ToString();
|
||||
@ -56,14 +56,14 @@ namespace FWA_MAIN
|
||||
string id = Val.varchar(txtMedID, 7);
|
||||
string medName = Val.varchar(txtMedName, 60);
|
||||
string intake = Val.varchar(txtIntake, 30);
|
||||
string patID = Val.varchar(txtPatID, 1);
|
||||
|
||||
string frequency = Val.varchar(txtFrequency, length:30);
|
||||
string dosage = Val.varchar(txtDosage, length:30);
|
||||
string purpose = Val.varchar(txtPurpose, length:100);
|
||||
string rxNum = Val.varchar(txtRxNum, 30);
|
||||
|
||||
|
||||
PharmacyDataTier.UpdateMedication(id, MedicationName:medName, IntakeMethod: intake, Patient_id:patID, Frequency: frequency, Dosage: dosage, Purpose: purpose, RxNum: rxNum);
|
||||
PharmacyDataTier.UpdateMedication(id, medName, intake,frequency, dosage, purpose, rxNum);
|
||||
Response.Redirect("mediSearch.aspx");
|
||||
|
||||
}
|
||||
|
9
FWA_MAIN/medEdit.aspx.designer.cs
generated
9
FWA_MAIN/medEdit.aspx.designer.cs
generated
@ -41,15 +41,6 @@ namespace FWA_MAIN
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtIntake;
|
||||
|
||||
/// <summary>
|
||||
/// txtPatID 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;
|
||||
|
||||
/// <summary>
|
||||
/// txtFrequency control.
|
||||
/// </summary>
|
||||
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user