Example #1
0
        public void get_CRAFFTScreening_Data()
        {
            DataSet theDSExistingForm = new DataSet();

            CRAFFTSCreeningManager = (IKNHStaticForms)ObjectFactory.CreateInstance("BusinessProcess.Clinical.BKNHStaticForms, BusinessProcess.Clinical");
            theDSExistingForm      = CRAFFTSCreeningManager.GetCRAFFTScreeningFormData(Convert.ToInt32(Session["PatientId"]), Convert.ToInt32(Session["PatientVisitId"]));
            if (theDSExistingForm.Tables[0].Rows.Count > 0)
            {
                if (theDSExistingForm.Tables[0].Rows[0]["DrinkAlcohol"].ToString() != "")
                {
                    rdoDrinkAlcohol.SelectedValue = theDSExistingForm.Tables[0].Rows[0]["DrinkAlcohol"].ToString();
                }
                if (theDSExistingForm.Tables[0].Rows[0]["SmokeMarijuana"].ToString() != "")
                {
                    rdoSmokeMarijuana.SelectedValue = theDSExistingForm.Tables[0].Rows[0]["SmokeMarijuana"].ToString();
                }
                if (theDSExistingForm.Tables[0].Rows[0]["UseAnythingElse"].ToString() != "")
                {
                    rdoUseAnythingElse.SelectedValue = theDSExistingForm.Tables[0].Rows[0]["UseAnythingElse"].ToString();
                }
                if (theDSExistingForm.Tables[0].Rows[0]["RiddenInaCar"].ToString() != "")
                {
                    rdoRiddenInaCar.SelectedValue = theDSExistingForm.Tables[0].Rows[0]["RiddenInaCar"].ToString();
                }
                if (theDSExistingForm.Tables[0].Rows[0]["UseAlcoholtoRelax"].ToString() != "")
                {
                    rdoUseAlcoholtoRelax.SelectedValue = theDSExistingForm.Tables[0].Rows[0]["UseAlcoholtoRelax"].ToString();
                }
                if (theDSExistingForm.Tables[0].Rows[0]["UseAlcoholAlone"].ToString() != "")
                {
                    rdoUseAlcoholAlone.SelectedValue = theDSExistingForm.Tables[0].Rows[0]["UseAlcoholAlone"].ToString();
                }
                if (theDSExistingForm.Tables[0].Rows[0]["ALcoholForgetThings"].ToString() != "")
                {
                    rdoAlcoholForgetThings.SelectedValue = theDSExistingForm.Tables[0].Rows[0]["ALcoholForgetThings"].ToString();
                }
                if (theDSExistingForm.Tables[0].Rows[0]["FamilyAdvice"].ToString() != "")
                {
                    rdoFamilyAdvice.SelectedValue = theDSExistingForm.Tables[0].Rows[0]["FamilyAdvice"].ToString();
                }
                if (theDSExistingForm.Tables[0].Rows[0]["AlcoholTrouble"].ToString() != "")
                {
                    rdoAlcoholTrouble.SelectedValue = theDSExistingForm.Tables[0].Rows[0]["AlcoholTrouble"].ToString();
                }
            }
        }