Exemple #1
0
        protected void BindrcbmedicalCondition()
        {
            IQCareUtils utils = new IQCareUtils();
            DataTable   dt    = utils.GetDataTable("Mst_Symptom", "NigeriaSymptoms");

            dt.PrimaryKey = new DataColumn[] { dt.Columns["ID"] };
            if (Session["PCValue"] != null)
            {
                string[] pcRow = Session["PCValue"].ToString().Split('#');
                foreach (string val in pcRow)
                {
                    string[] pcCellvalue = val.Split(',');
                    if (dt.Rows.Find(pcCellvalue[0]) != null)
                    {
                        DataRow dr = dt.Rows.Find(pcCellvalue[0]);
                        dr["ChkVal"]     = "1";
                        dr["ChkValText"] = pcCellvalue[2].ToString();
                    }
                }
            }


            gvMedicalHistory.DataSource = dt;
            gvMedicalHistory.DataBind();
        }
        protected void BindrcbmedicalCondition()
        {
            IQCareUtils util = new IQCareUtils();
            DataTable   dt   = util.GetDataTable("MST_CODE", "NigeriaCurrentMedication");

            dt.PrimaryKey = new DataColumn[] { dt.Columns["ID"] };

            gvcurrentmedication.DataSource = dt;
            gvcurrentmedication.DataBind();
        }
        public void BindControl()
        {
            IQCareUtils   iQCareUtils   = new IQCareUtils();
            BindFunctions bindFunctions = new BindFunctions();
            DataTable     dt            = new DataTable();

            dt = iQCareUtils.GetDataTable("MST_CODE", "NigeriaListLabEvaluation");

            if (dt.Rows.Count > 0)
            {
                gvtreatment.DataSource = dt;
                gvtreatment.DataBind();
            }
            dt = new DataTable();
            dt = iQCareUtils.GetDataTable("MST_CODE", "NigeriaListEnrollin");

            if (dt.Rows.Count > 0)
            {
                gvenrollin.DataSource = dt;
                gvenrollin.DataBind();
            }
        }
Exemple #4
0
        private void Binddropdwn()
        {
            IUser theLocationManager;

            theLocationManager = (IUser)ObjectFactory.CreateInstance("BusinessProcess.Security.BUser, BusinessProcess.Security");
            DataTable     theDT         = theLocationManager.GetFacilityList();
            BindFunctions theBindManger = new BindFunctions();

            theBindManger.BindCombo(ddlfacilityname, theDT, "FacilityName", "FacilityId");
            IQCareUtils util       = new IQCareUtils();
            DataTable   theEntryDT = util.GetDataTable("MST_CODE", "EntryType");

            theBindManger.BindCombo(ddlentrytype, theEntryDT, "Name", "Id");
        }
Exemple #5
0
        public void BindControl()
        {
            IQCareUtils   iQCareUtils   = new IQCareUtils();
            BindFunctions bindFunctions = new BindFunctions();
            DataTable     dt            = new DataTable();

            dt = iQCareUtils.GetDataTable("MST_REASON", "MissedReason-Nigeria");
            //Subsituations/Interruption
            if (dt.Rows.Count > 0)
            {
                bindFunctions.BindCombo(ddlreasonInterrupted, dt, "Name", "ID");
                bindFunctions.BindCombo(ddlReasomMissed, dt, "Name", "ID");
                bindFunctions.BindCombo(ddlStopedReason, dt, "Name", "ID");
            }

            DataSet theDSXML = new DataSet();

            theDSXML.ReadXml(MapPath("..\\..\\XMLFiles\\AllMasters.con"));
            gvdisclosed.DataSource = theDSXML.Tables["mst_HIVDisclosure"];
            gvdisclosed.DataBind();
            theDSXML.Dispose();
        }