protected void BuildUrinaryStatusValues() { if (patientID != 0) { SurveyDa urinaryDa = new SurveyDa(); Hashtable ht = urinaryDa.FormGetUrinaryStatusValues(this.patientID, this._formName, "Dynamic"); if (ht["LastCont"] != null && ht["LastCont"].ToString() != "") { LastCont.Text = " " + ht["LastCont"].ToString(); } //if (ht["ContLv2"] != null && ht["ContLv2"].ToString() != "") //{ // ContLv2Textbox.Value = ht["ContLv2"].ToString(); //} //if (ht["ContLv1"] != null && ht["ContLv1"].ToString() != "") //{ // ContLv1Textbox.Value = ht["ContLv1"].ToString(); //} if (ht["LastIncontTx"] != null && ht["LastIncontTx"].ToString() != "") { LastIncontTx.Text = ht["LastIncontTx"].ToString(); } else { LastIncontTxTableRow.Visible = false; } if (ht["UrinaryQOL"] != null && ht["UrinaryQOL"].ToString() != "") { UrinaryQOL.Text = "<br> " + ht["UrinaryQOL"].ToString(); } } }
protected void PopulateContinenceFields() { SurveyDa urinaryDa = new SurveyDa(); Hashtable ht = urinaryDa.FormGetUrinaryStatusValues(this._patientId, this._eformName, "Dynamic"); if (ht["ContLv2"] != null && ht["ContLv2"].ToString() != "") { // DateMildContinenceAchieved.Text = ht["ContLv2"].ToString(); // DateMildContinenceAchieved.ReadOnly = true; DateMildContinenceAchievedLabel.Text = "Mild Continence (Score 2 for Continence) was previously achieved on " + ht["ContLv2"].ToString() + "."; PastMildContinenceRow.Visible = false; } if (ht["ContLv1"] != null && ht["ContLv1"].ToString() != "") { // DateTotalContinenceAchieved.Text = ht["ContLv1"].ToString(); // DateTotalContinenceAchieved.ReadOnly = true; DateTotalContinenceAchievedLabel.Text = "Total Continence (Score 1 for Continence) was previously achieved on " + ht["ContLv1"].ToString() + "."; PastTotalContinenceRow.Visible = false; } if (ht["LastCont"] != null && ht["LastCont"].ToString() != "") { LastCont.Text = "<br/><br/>" + ht["LastCont"].ToString(); } else { LastCont.Visible = false; } if (ht["LastIncontTx"] != null && ht["LastIncontTx"].ToString() != "") { LastIncontTx.Text = "<br/><br/>" + ht["LastIncontTx"].ToString(); } else { LastIncontTx.Visible = false; } if (ht["UrinaryQOL"] != null && ht["UrinaryQOL"].ToString() != "") { UrinaryQOL.Text = ht["UrinaryQOL"].ToString(); } else { LastUrinaryQOLRow.Visible = false; } }