Пример #1
0
        private void LordExistingFormData()
        {
            DataSet theDSExistingForm = new DataSet();

            PH9ScreeningManager = (IKNHStaticForms)ObjectFactory.CreateInstance("BusinessProcess.Clinical.BKNHStaticForms, BusinessProcess.Clinical");
            theDSExistingForm   = PH9ScreeningManager.GetPH9ScreeningFormData(Convert.ToInt32(Session["PatientId"]), Convert.ToInt32(Session["PatientVisitId"]));
            if (theDSExistingForm.Tables[0].Rows.Count > 0)
            {
                rdoLittleInterest.SelectedValue       = theDSExistingForm.Tables[0].Rows[0]["LittleInterest"].ToString();
                rdoFeelingDown.SelectedValue          = theDSExistingForm.Tables[0].Rows[0]["FeelingDown"].ToString();
                rdoTroubleFalling.SelectedValue       = theDSExistingForm.Tables[0].Rows[0]["TroubleFalling"].ToString();
                rdoFeelingTired.SelectedValue         = theDSExistingForm.Tables[0].Rows[0]["FeelingTired"].ToString();
                rdoPoorAppetite.SelectedValue         = theDSExistingForm.Tables[0].Rows[0]["PoorAppetite"].ToString();
                rdoFeelingBad.SelectedValue           = theDSExistingForm.Tables[0].Rows[0]["FeelingBad"].ToString();
                rdoTroubleConcentrating.SelectedValue = theDSExistingForm.Tables[0].Rows[0]["TroubleConcentrating"].ToString();
                rdoMovingSlowly.SelectedValue         = theDSExistingForm.Tables[0].Rows[0]["MovingSlowly"].ToString();
                rdoThoughts.SelectedValue             = theDSExistingForm.Tables[0].Rows[0]["Thoughts"].ToString();
                hdnDiagnosisValue.Value = theDSExistingForm.Tables[0].Rows[0]["DiagnosisTotalValue"].ToString();
            }
        }