Esempio n. 1
0
        protected void populateCtrls()
        {
            LookupLogic lookUp = new LookupLogic();

            lookUp.populateDDL(ddlBreastsGenitals, "BreastsGenitals");
            lookUp.populateDDL(ddlPubicHair, "PubicHair");
            string jsonObject = "[]";

            jsonObject = LookupLogic.GetLookupItemByName("TannersStaging");
            JavaScriptSerializer  ser        = new JavaScriptSerializer();
            List <LookupItemView> lookupList = ser.Deserialize <List <LookupItemView> >(jsonObject);

            foreach (var value in lookupList)
            {
                if (value.ItemName == "TannersRecord")
                {
                    screenTypeId = value.MasterId;
                    PHTannersStaging.Controls.Add(new LiteralControl("<label class='control-label  pull-left text-primary'>" + value.ItemDisplayName + "</label>"));
                    rbList               = new RadioButtonList();
                    rbList.ID            = value.ItemId.ToString();
                    rbList.RepeatColumns = 2;
                    rbList.ClientIDMode  = System.Web.UI.ClientIDMode.Static;
                    rbList.CssClass      = "rbList";
                    rbList.SelectedValue = "104";
                    lookUp.populateRBL(rbList, "GeneralYesNo");
                    PHTannersStaging.Controls.Add(rbList);
                    RadioButtonList rbl = (RadioButtonList)PHTannersStaging.FindControl(value.ItemId.ToString());
                    rbl.SelectedValue = LookupLogic.GetLookupItemId("No");
                }
            }
        }
Esempio n. 2
0
        protected void getRecordTannersStaging(int PatientId)
        {
            var PSM = new PatientScreeningManager();
            List <PatientScreening> screeningList = PSM.GetPatientScreening(PatientId);

            if (screeningList != null)
            {
                foreach (var value in screeningList)
                {
                    tannersScreeningValue = tannersScreeningValue + 1;
                    RadioButtonList rbl = (RadioButtonList)PHTannersStaging.FindControl(value.ScreeningCategoryId.ToString());
                    if (rbl != null)
                    {
                        rbl.SelectedValue = value.ScreeningValueId.ToString();
                    }
                }
            }
        }