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

            MMASScreeningManager = (IKNHStaticForms)ObjectFactory.CreateInstance("BusinessProcess.Clinical.BKNHStaticForms, BusinessProcess.Clinical");
            theDSExistingForm    = MMASScreeningManager.GetMMASFormData(Convert.ToInt32(Session["PatientId"]), Convert.ToInt32(Session["PatientVisitId"]));
            if (theDSExistingForm.Tables[0].Rows.Count > 0)
            {
                if (theDSExistingForm.Tables[0].Rows[0]["ForgetMedicine"].ToString() != "")
                {
                    rdoForgetMedicine.SelectedValue = theDSExistingForm.Tables[0].Rows[0]["ForgetMedicine"].ToString();
                }
                if (theDSExistingForm.Tables[0].Rows[0]["CarelessTaking"].ToString() != "")
                {
                    rdoCarelessTaking.SelectedValue = theDSExistingForm.Tables[0].Rows[0]["CarelessTaking"].ToString();
                }
                if (theDSExistingForm.Tables[0].Rows[0]["FeelWorse"].ToString() != "")
                {
                    rdoFeelWorse.SelectedValue = theDSExistingForm.Tables[0].Rows[0]["FeelWorse"].ToString();
                }
                if (theDSExistingForm.Tables[0].Rows[0]["FeelBetter"].ToString() != "")
                {
                    rdoFeelBetter.SelectedValue = theDSExistingForm.Tables[0].Rows[0]["FeelBetter"].ToString();
                }
                if (theDSExistingForm.Tables[0].Rows[0]["YesterdayMedicine"].ToString() != "")
                {
                    rdoYesterdayMedicine.SelectedValue = theDSExistingForm.Tables[0].Rows[0]["YesterdayMedicine"].ToString();
                }
                if (theDSExistingForm.Tables[0].Rows[0]["SymptomsUnderControl"].ToString() != "")
                {
                    rdoSymptomsUnderControl.SelectedValue = theDSExistingForm.Tables[0].Rows[0]["SymptomsUnderControl"].ToString();
                }
                if (theDSExistingForm.Tables[0].Rows[0]["TreatmentPlanPressure"].ToString() != "")
                {
                    rdoTreatmentPlanPressure.SelectedValue = theDSExistingForm.Tables[0].Rows[0]["TreatmentPlanPressure"].ToString();
                }
                if (theDSExistingForm.Tables[0].Rows[0]["DifficultyRemembering"].ToString() != "")
                {
                    rdoDifficultyRemembering.SelectedValue = theDSExistingForm.Tables[0].Rows[0]["DifficultyRemembering"].ToString();
                }
                if (theDSExistingForm.Tables[0].Rows[0]["Mmas4Score"].ToString() != "")
                {
                    hdnMmas4Score.Value = theDSExistingForm.Tables[0].Rows[0]["Mmas4Score"].ToString();
                }
                if (theDSExistingForm.Tables[0].Rows[0]["Mmas4Adherence"].ToString() != "")
                {
                    hdnMmas4Adherence.Value = theDSExistingForm.Tables[0].Rows[0]["Mmas4Adherence"].ToString();
                }
                if (theDSExistingForm.Tables[0].Rows[0]["Mmas8Score"].ToString() != "")
                {
                    hdnMmas8Score.Value = theDSExistingForm.Tables[0].Rows[0]["Mmas8Score"].ToString();
                }
                if (theDSExistingForm.Tables[0].Rows[0]["Mmas8Adherence"].ToString() != "")
                {
                    hdnMmas8Adherence.Value = theDSExistingForm.Tables[0].Rows[0]["Mmas8Adherence"].ToString();
                }
            }
        }