Example #1
0
        public void BindExistingData()
        {
            if (Convert.ToInt32(Session["PatientVisitId"].ToString()) > 0)
            {
                KNHARTReadiness = (IKNHARTReadiness)ObjectFactory.CreateInstance("BusinessProcess.Clinical.BKNHARTReadiness, BusinessProcess.Clinical");
                DataSet dsGet = KNHARTReadiness.GetARTReadinessData(Convert.ToInt32(Session["PatientId"].ToString()), Convert.ToInt32(Session["PatientVisitId"].ToString()));

                if (dsGet.Tables[0].Rows.Count > 0)
                {
                    rdoUnderstandHiv.SelectedValue                = dsGet.Tables[0].Rows[0]["UnderstandHiv"].ToString();
                    rdoScreenDrug.SelectedValue                   = dsGet.Tables[0].Rows[0]["ScreenDrug"].ToString();
                    rdoScreenDepression.SelectedValue             = dsGet.Tables[0].Rows[0]["ScreenDepression"].ToString();
                    rdoDiscloseStatus.SelectedValue               = dsGet.Tables[0].Rows[0]["DiscloseStatus"].ToString();
                    rdoArtDemonstration.SelectedValue             = dsGet.Tables[0].Rows[0]["ArtDemonstration"].ToString();
                    rdoReceivedInformation.SelectedValue          = dsGet.Tables[0].Rows[0]["ReceivedInformation"].ToString();
                    rdoCaregiverDependant.SelectedValue           = dsGet.Tables[0].Rows[0]["CaregiverDependant"].ToString();
                    rdoIdentifiedBarrier.SelectedValue            = dsGet.Tables[0].Rows[0]["IdentifiedBarrier"].ToString();
                    rdoCaregiverLocator.SelectedValue             = dsGet.Tables[0].Rows[0]["CaregiverLocator"].ToString();
                    rdoCaregiverReady.SelectedValue               = dsGet.Tables[0].Rows[0]["CaregiverReady"].ToString();
                    rdoTimeIdentified.SelectedValue               = dsGet.Tables[0].Rows[0]["TimeIdentified"].ToString();
                    rdoIdentifiedTreatmentSupporter.SelectedValue = dsGet.Tables[0].Rows[0]["IdentifiedTreatmentSupporter"].ToString();
                    rdoGroupMeeting.SelectedValue                 = dsGet.Tables[0].Rows[0]["GroupMeeting"].ToString();
                    rdoSmsReminder.SelectedValue                  = dsGet.Tables[0].Rows[0]["SmsReminder"].ToString();
                    rdoPlannedSupport.SelectedValue               = dsGet.Tables[0].Rows[0]["PlannedSupporter"].ToString();
                    rdoDeferArt.SelectedValue            = dsGet.Tables[0].Rows[0]["DeferArt"].ToString();
                    rdoMeningitisDiagnosed.SelectedValue = dsGet.Tables[0].Rows[0]["MeningitisDiagnosed"].ToString();
                }
            }
        }
Example #2
0
        protected void btnArtSave_Click(object sender, EventArgs e)
        {
            IKNHARTReadiness KNHARTReadiness;

            KNHARTReadiness = (IKNHARTReadiness)ObjectFactory.CreateInstance("BusinessProcess.Clinical.BKNHARTReadiness, BusinessProcess.Clinical");
            LocationID      = Convert.ToInt32(Session["AppLocationId"]);
            PatientID       = Convert.ToInt32(Session["PatientId"]);
            visitPK         = Convert.ToInt32(Session["PatientVisitId"]);
            Hashtable htparam = htableARTParameters();

            visitPK = KNHARTReadiness.SaveUpdateARTReadinessForm(PatientID, visitPK, LocationID, htparam, Convert.ToInt32(Session["AppUserId"]));
            if (visitPK > 0)
            {
                Session["PatientVisitId"] = visitPK;
                SaveCancel("ART Readiness Assessment Form");
            }
        }