protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["AppLocation"] == null && Session.Count == 0 && Session["AppUserID"].ToString() == "")
            {
                IQCareMsgBox.Show("SessionExpired", this);
                Response.Redirect("~/frmlogin.aspx", true);
            }
            theDS = WorkPlan.GetExtruderData(Convert.ToInt32(Session["PatientId"]));

            loadDrugAllergies();
            loadARVHistory();
            loadPatientDetails();
            if (Convert.ToBoolean(Session["isKNHEnabled"]))
            {
                loadWorkPlan();
                //Nutrition();
            }
            if (Convert.ToBoolean(Session["isMEIVisible"]))
            {
                LoadMotherProfile();
            }

            if (Convert.ToBoolean(Session["isHEIVisible"]))
            {
                LoadNeonatal();
            }
        }
Esempio n. 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["AppLocation"] == null && Session.Count == 0 && Session["AppUserID"].ToString() == "")
            {
                IQCareMsgBox.Show("SessionExpired", this);
                Response.Redirect("~/frmlogin.aspx", true);
            }
            theDS = WorkPlan.GetExtruderData(Convert.ToInt32(Session["PatientId"]));

            loadDrugAllergies();
            loadARVHistory();
            loadPatientDetails();

            /*
             * Commented as requested by Wamathaga - Work-Plan
             * Details: Work plan slider only shows when you enable KNH and are logged in as admin. It should show for all.
             */
            //if (Convert.ToBoolean(Session["isKNHEnabled"]))
            //{
            loadWorkPlan();
            //Nutrition();
            //}
            if (Convert.ToBoolean(Session["isMEIVisible"]))
            {
                LoadMotherProfile();
            }

            if (Convert.ToBoolean(Session["isHEIVisible"]))
            {
                LoadNeonatal();
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            IKNHStaticForms ExtVitals = (IKNHStaticForms)ObjectFactory.CreateInstance("BusinessProcess.Clinical.BKNHStaticForms, BusinessProcess.Clinical");

            theDS = ExtVitals.GetExtruderData(Convert.ToInt32(Session["PatientId"]));

            if (theDS.Tables[1].Rows.Count > 0)
            {
                lblHighestCD4.Text     = theDS.Tables[1].Rows[0][0].ToString();
                lblHighestCD4Date.Text = theDS.Tables[1].Rows[0][1].ToString();
            }

            if (theDS.Tables[2].Rows.Count > 0)
            {
                lblLowestCD4.Text     = theDS.Tables[2].Rows[0][0].ToString();
                lblLowestCD4Date.Text = theDS.Tables[2].Rows[0][1].ToString();
            }

            if (theDS.Tables[3].Rows.Count > 0)
            {
                grdCD4.DataSource = theDS.Tables[3];
                grdCD4.DataBind();
            }

            if (theDS.Tables[4].Rows.Count > 0)
            {
                lblHighestViralLoad.Text = theDS.Tables[4].Rows[0][0].ToString();
                lblHighestVLDate.Text    = theDS.Tables[4].Rows[0][1].ToString();
            }

            if (theDS.Tables[5].Rows.Count > 0)
            {
                lblLowestViralLoad.Text = theDS.Tables[5].Rows[0][0].ToString();
                lblLowestVLDate.Text    = theDS.Tables[5].Rows[0][1].ToString();
            }

            if (theDS.Tables[6].Rows.Count > 0)
            {
                grdViralLoad.DataSource = theDS.Tables[6];
                grdViralLoad.DataBind();
            }

            if (theDS.Tables[7].Rows.Count > 0)
            {
                grdLatestResults.DataSource = theDS.Tables[7];
                grdLatestResults.DataBind();
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            IKNHStaticForms ExtVitals = (IKNHStaticForms)ObjectFactory.CreateInstance("BusinessProcess.Clinical.BKNHStaticForms, BusinessProcess.Clinical");

            theDS = ExtVitals.GetExtruderData(Convert.ToInt32(Session["PatientId"]));

            if (theDS.Tables[0].Rows.Count > 0)
            {
                lblSex.Text      = theDS.Tables[0].Rows[0]["sex"].ToString();
                lblDOB.Text      = theDS.Tables[0].Rows[0]["dob"].ToString();
                lblDistrict.Text = theDS.Tables[0].Rows[0]["districtname"].ToString();
                lblPhone.Text    = theDS.Tables[0].Rows[0]["phone"].ToString();
                lblAge.Text      = Session["patientageinyearmonth"].ToString();
            }

            if (theDS.Tables[8].Rows.Count > 0)
            {
                lblBMI.Text = theDS.Tables[8].Rows[0]["BMI"].ToString();
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!object.Equals(Session["PatientId"], null))
            {
                if (Convert.ToInt32(Session["PatientId"]) > 0)
                {
                    theDS = WorkPlan.GetExtruderData(Convert.ToInt32(Session["PatientId"]));
                    loadDrugAllergies();
                    LoadLabResults();
                    loadARVHistory();

                    loadPatientDetails();
                    loadWorkPlan();
                    Nutrition();
                }

                //Show & Hide the HEI and MEI content appropriately
                IPatientHome PatientManager;
                PatientManager = (IPatientHome)ObjectFactory.CreateInstance("BusinessProcess.Clinical.BPatientHome, BusinessProcess.Clinical");
                System.Data.DataSet thePatientDS = PatientManager.GetPatientDetails(Convert.ToInt32(Session["PatientId"]), Convert.ToInt32(Session["SystemId"]), Convert.ToInt32(Session["TechnicalAreaId"]));
                PatientManager = null;
                if (thePatientDS != null && thePatientDS.Tables[0].Rows.Count > 0)
                {
                    if (Convert.ToInt32(thePatientDS.Tables[0].Rows[0]["AGE"]) > 10 && thePatientDS.Tables[0].Rows[0]["SexNM"].ToString() == "Female")
                    {
                        UserControlKNH_MEIData1.Visible = true;
                        UserControlKNH_HEIData1.Visible = false;
                    }
                    else
                    {
                        UserControlKNH_MEIData1.Visible = false;
                        UserControlKNH_HEIData1.Visible = true;
                    }
                }
            }
        }