Пример #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            WHOManager = (IKNHStaticForms)ObjectFactory.CreateInstance("BusinessProcess.Clinical.BKNHStaticForms, BusinessProcess.Clinical");

            if (!IsPostBack)
            {
                BindGridView(gvWHO1, "NigeriaWHOStageIConditions");
                BindGridView(gvWHO2, "NigeriaWHOStageIIConditions");
                BindGridView(gvWHO3, "NigeriaWHOStageIIIConditions");
                BindGridView(gvWHO4, "NigeriaWHOStageIVConditions");


                BindDropdown(ddlInitiationWHOstage, "InitiationWHOstage");
                BindDropdown(ddlwhostage1, "InitiationWHOstage");
                BindDropdown(ddlhivassociated, "HIVAssociatedConditionsPeads");


                DataSet dsLatestWHOStage = WHOManager.GetLatestWHOStage(Convert.ToInt32(Session["PatientId"]));

                if (dsLatestWHOStage.Tables[0].Rows.Count > 0)
                {
                    ddlwhostage1.SelectedValue = dsLatestWHOStage.Tables[0].Rows[0]["WHOStage"].ToString();
                }

                for (int i = 0; i < ddlwhostage1.SelectedIndex; i++)
                {
                    ddlwhostage1.Items[i].Attributes.Add("Disabled", "Disabled");
                }
            }
        }
Пример #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            WHOManager = (IKNHStaticForms)ObjectFactory.CreateInstance("BusinessProcess.Clinical.BKNHStaticForms, BusinessProcess.Clinical");

            if (!IsPostBack)
            {
                if (GblIQCare.FormId == 174 || GblIQCare.FormId == 177)
                {
                    BindGridView(gvWHO1, "WHOStageIConditions");
                    BindGridView(gvWHO2, "WHOStageIIConditions");
                    BindGridView(gvWHO3, "WHOStageIIICoditions");
                    BindGridView(gvWHO4, "WHOStageIVConditions");
                }
                else
                {
                    BindGridView(gvWHO1, "CurrentWHOStageIConditions");
                    BindGridView(gvWHO2, "CurrentWHOStageIIConditions");
                    BindGridView(gvWHO3, "CurrentWHOStageIIIConditions");
                    BindGridView(gvWHO4, "CurrentWHOStageIVConditions");
                }
                //CreateMultiSelectwithDate(0, PnlWHO1, "Presenting WHO Stage I Conditions", "Current", "Historic", "CurrentWHOStageIConditions");
                //CreateMultiSelectwithDate(0, PnlWHO2, "Presenting WHO Stage II conditions", "Current", "Historic", "CurrentWHOStageIIConditions");
                //CreateMultiSelectwithDate(0, PnlWHO3, "Presenting WHO Stage III conditions", "Current", "Historic", "CurrentWHOStageIIIConditions");
                //CreateMultiSelectwithDate(0, PnlWHO4, "Presenting Stage IV conditions", "Current", "Historic", "CurrentWHOStageIVConditions");
                //BindDropdown(ddlWABStage, "WABStage");
                BindDropdown(ddlWABStage, "WABStage");
                BindDropdown(ddltannerstaging, "TannerStaging");
                BindDropdown(ddlInitiationWHOstage, "InitiationWHOstage");
                BindDropdown(ddlwhostage1, "WHO Stage");
                BindDropdown(ddlhivassociated, "HIVAssociatedConditionsPeads");
                BindDropdown(ddlPatFUstatus, "FollowUpStatus");

                DataSet dsLatestWHOStage = WHOManager.GetLatestWHOStage(Convert.ToInt32(Session["PatientId"]));

                if (dsLatestWHOStage.Tables[0].Rows.Count > 0)
                {
                    ddlwhostage1.SelectedValue = dsLatestWHOStage.Tables[0].Rows[0]["WHOStage"].ToString();
                }

                for (int i = 0; i < ddlwhostage1.SelectedIndex; i++)
                {
                    ddlwhostage1.Items[i].Attributes.Add("Disabled", "Disabled");
                }
            }
            InitialWHOStage();

            if (Convert.ToDecimal(Session["PatientAge"]) > 19)
            {
                ddltannerstaging.Attributes.Add("Disabled", "Disabled");
                lblTannerStage1.ForeColor = System.Drawing.Color.Gray;
            }
        }