Ejemplo n.º 1
0
        protected override void BuildPotencyStatusValues()
        {
            if (patientID != 0)
            {
                SurveyDa  potencyDa = new SurveyDa();
                Hashtable ht        = potencyDa.FormGetPotencyStatusValues(this.patientID, this._formName, "Dynamic");

                if (ht["PreTxPot"] != null && ht["PreTxPot"].ToString() != "")
                {
                    PreTxPot.Text = ht["PreTxPot"].ToString() + "<br>";
                }
                if (ht["LastPot"] != null && ht["LastPot"].ToString() != "")
                {
                    LastPot.Text = ht["LastPot"].ToString() + "<br>";
                }
                if (ht["SexualQOL"] != null && ht["SexualQOL"].ToString() != "")
                {
                    SexualQOL.Text = "<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" + ht["SexualQOL"].ToString();
                }
                if (ht["PotLv3"] != null && ht["PotLv3"].ToString() != "")
                {
                    potLv3Textbox.Value = ht["PotLv3"].ToString();
                }
                if (ht["PotLv2"] != null && ht["PotLv2"].ToString() != "")
                {
                    potLv2Textbox.Value = ht["PotLv2"].ToString();
                }
                if (ht["PotLv1"] != null && ht["PotLv1"].ToString() != "")
                {
                    potLv1Textbox.Value = ht["PotLv1"].ToString();
                }
            }
        }
Ejemplo n.º 2
0
        protected void PopulatePotencyFields()
        {
            SurveyDa  potencyDa = new SurveyDa();
            Hashtable ht        = potencyDa.FormGetPotencyStatusValues(this._patientId, this._eformName, "Dynamic");


            /*			this is populating in the HPI control right now.  -jf
             *          if (ht["PreTxPot"] != null && ht["PreTxPot"].ToString() != "")
             *          {
             *              PreTxPot.Text = "<br/><br/>" + ht["PreTxPot"].ToString();
             *          }
             */
            if (ht["LastPot"] != null && ht["LastPot"].ToString() != "")
            {
                LastPot.Text = "<br/><br/>" + ht["LastPot"].ToString();
            }
            if (ht["SexualQOL"] != null && ht["SexualQOL"].ToString() != "")
            {
                SexualQOL.Text = ht["SexualQOL"].ToString();
            }
            else
            {
                LastSexualQOLRow.Visible = false;
            }
            if (ht["PotLv3"] != null && ht["PotLv3"].ToString() != "")
            {
                //				DatePartialErectionAchieved.Text = ht["PotLv3"].ToString();
                //				DatePartialErectionAchieved.ReadOnly = true;

                DatePartialErectionAchievedLabel.Text = "Partial Erection (Score 3 for Erectile Function) was previously achieved on " + ht["PotLv3"].ToString() + ".";

                PastPartialErectionRow.Visible = false;
            }
            if (ht["PotLv2"] != null && ht["PotLv2"].ToString() != "")
            {
                //				DateFullRecentlyDiminishedErectionAchieved.Text = ht["PotLv2"].ToString();
                //				DateFullRecentlyDiminishedErectionAchieved.ReadOnly = true;

                DateFullRecentlyDiminishedErectionAchievedLabel.Text = "Full but Recently Diminished Erection (Score 2 for Erectile Function)<br/>was previously achieved on " + ht["PotLv2"].ToString() + ".";
                PastFullRecentlyDiminishedRow.Visible = false;
            }
            if (ht["PotLv1"] != null && ht["PotLv1"].ToString() != "")
            {
                //				DateFullNormalErectionAchieved.Text = ht["PotLv1"].ToString();
                //				DateFullNormalErectionAchieved.ReadOnly = true;

                DateFullNormalErectionAchievedLabel.Text = "Full, Normal Erection (Score 1 for Erectile Function) was previously achieved on " + ht["PotLv1"].ToString() + ".";
                PastFullNormalRow.Visible = false;
            }
        }
Ejemplo n.º 3
0
        protected void PopulateHPIPreTxPotency()
        {
            SurveyDa  potencyDa = new SurveyDa();
            Hashtable ht        = potencyDa.FormGetPotencyStatusValues(this._patientId, this._eformName, "Dynamic");

            if (ht["PreTxPot"] != null && ht["PreTxPot"].ToString().Length > 0)
            {
                PreTxPot.Text          = ht["PreTxPot"].ToString();
                PreTxPotencyTr.Visible = true;
            }
            else
            {
                PreTxPotencyTr.Visible = false;
            }
        }