public void FillAllStaticGrids() { ISystemInformationRepository systemInformationRepository = new SystemInformationRepository(); VersionNumber = systemInformationRepository.GetBuildNumber(); if (!IsResultEntrybyChat) { var unableScreenRepository = IoC.Resolve <IUnableToScreenStatusRepository>(); var listUnableScreenReasonData = unableScreenRepository.GetAllUnableToScreenReasons((long)TestType.Diabetes) ?? new List <UnableScreenReason> { new UnableScreenReason { DisplayName = "Unable to Screen", Reason = UnableToScreenReason.Other } }; IStandardFindingRepository standardFindingRepository = new StandardFindingRepository(); var standardFindingGlucose = standardFindingRepository.GetAllStandardFindings <int?>((int)TestType.Diabetes, (int)ReadingLabels.Glucose); GlucoseFindingGridView.DataSource = standardFindingGlucose; GlucoseFindingGridView.DataBind(); if (listUnableScreenReasonData.Count < 1) { listUnableScreenReasonData.Add(new UnableScreenReason { DisplayName = "Unable to Screen", Reason = UnableToScreenReason.Other }); } //Filling Unable Screen Reason DataLists UnableToScreenDiabetesDataList.DataSource = listUnableScreenReasonData; UnableToScreenDiabetesDataList.DataBind(); } }
private void SetReadingFindingsGridView() { ISystemInformationRepository systemInformationRepository = new SystemInformationRepository(); VersionNumber = systemInformationRepository.GetBuildNumber(); if (!IsResultEntrybyChat) { IStandardFindingRepository standardFindingRepository = new StandardFindingRepository(); var standardFindingTc = standardFindingRepository.GetAllStandardFindings <int?>((int)TestType.Lipid, (int)ReadingLabels.TotalCholestrol); var standardFindingGlucose = standardFindingRepository.GetAllStandardFindings <int?>((int)TestType.Lipid, (int)ReadingLabels.Glucose); var standardFindingHdl = standardFindingRepository.GetAllStandardFindings <int?>((int)TestType.Lipid, (int)ReadingLabels.HDL); var standardFindingLdl = standardFindingRepository.GetAllStandardFindings <int?>((int)TestType.Lipid, (int)ReadingLabels.LDL); var standardFindingTriglycerides = standardFindingRepository.GetAllStandardFindings <int?>((int)TestType.Lipid, (int)ReadingLabels.TriGlycerides); var standardFindingTchdlRatio = standardFindingRepository.GetAllStandardFindings <decimal?>((int)TestType.Lipid, (int)ReadingLabels.TCHDLRatio); TotalCholestrolFindingGridView.DataSource = standardFindingTc; TotalCholestrolFindingGridView.DataBind(); GlucoseFindingGridView.DataSource = standardFindingGlucose; GlucoseFindingGridView.DataBind(); var jScriptDeserializer = new JavaScriptSerializer(); Page.ClientScript.RegisterHiddenField("hdlfindingjson", jScriptDeserializer.Serialize(standardFindingHdl)); var findings = FilterMaleFemalRecordsontheGenderBasis(standardFindingHdl); HDLFindingGridView.DataSource = findings; HDLFindingGridView.DataBind(); LDLFindingGridView.DataSource = standardFindingLdl; LDLFindingGridView.DataBind(); TriglyceridesFindingGridView.DataSource = standardFindingTriglycerides; TriglyceridesFindingGridView.DataBind(); TCHDLRatioFindingGridView.DataSource = standardFindingTchdlRatio; TCHDLRatioFindingGridView.DataBind(); IUnableToScreenStatusRepository unableScreenRepository = new UnableToScreenStatusRepository(); var listUnableScreenReasonData = unableScreenRepository.GetAllUnableToScreenReasons((long)TestType.Lipid) ?? new List <UnableScreenReason>(); if (listUnableScreenReasonData.Count < 1) { listUnableScreenReasonData.Add(new UnableScreenReason(0) { DisplayName = "Unable to Screen", Reason = UnableToScreenReason.Other }); } //Filling Unable Screen Reason DataLists UnableToScreenLipidDataList.DataSource = listUnableScreenReasonData; UnableToScreenLipidDataList.DataBind(); } SetTestNotPerfomred(); }
public void FillAllStaticGrids() { ISystemInformationRepository systemInformationRepository = new SystemInformationRepository(); VersionNumber = systemInformationRepository.GetBuildNumber(); if (!IsResultEntrybyChat) { var unableScreenRepository = IoC.Resolve <IUnableToScreenStatusRepository>(); var listUnableScreenReasonData = unableScreenRepository.GetAllUnableToScreenReasons((long)TestType.AwvGlucose) ?? new List <UnableScreenReason> { new UnableScreenReason { DisplayName = "Unable to Screen", Reason = UnableToScreenReason.Other } }; IStandardFindingRepository standardFindingRepository = new StandardFindingRepository(); var standardFindingGlucose = standardFindingRepository.GetAllStandardFindings <int?>((int)TestType.AwvGlucose, (int)ReadingLabels.Glucose); GlucoseFindingGridView.DataSource = standardFindingGlucose; GlucoseFindingGridView.DataBind(); if (listUnableScreenReasonData.Count < 1) { listUnableScreenReasonData.Add(new UnableScreenReason { DisplayName = "Unable to Screen", Reason = UnableToScreenReason.Other }); } //Filling Unable Screen Reason DataLists UnableToScreenAwvGlucoseDataList.DataSource = listUnableScreenReasonData; UnableToScreenAwvGlucoseDataList.DataBind(); var testNotPerformedReasonRepository = IoC.Resolve <ITestNotPerformedReasonRepository>(); var listTestNotPerformedData = testNotPerformedReasonRepository.GetAll().ToList(); if (listTestNotPerformedData.Count > 1) { listTestNotPerformedData.Insert(0, new TestNotPerformedReason { Name = " Select ", Id = -1 }); ddlTestNotPerformedReasonAwvGlucose.DataSource = listTestNotPerformedData; ddlTestNotPerformedReasonAwvGlucose.DataTextField = "Name"; ddlTestNotPerformedReasonAwvGlucose.DataValueField = "Id"; ddlTestNotPerformedReasonAwvGlucose.DataBind(); ddlTestNotPerformedReasonAwvGlucose.Items[0].Selected = true; } else { ddlTestNotPerformedReasonAwvGlucose.Visible = false; } } }