public void FillAllStaticGrids() { ISystemInformationRepository systemInformationRepository = new SystemInformationRepository(); VersionNumber = systemInformationRepository.GetBuildNumber(); if (!IsResultEntrybyChat) { IStandardFindingRepository standardFindingRepository = new StandardFindingRepository(); var standardFindings = standardFindingRepository.GetAllStandardFindings <int?>((int)TestType.AwvEkg); AwvEkgFindingsGridView.DataSource = standardFindings; AwvEkgFindingsGridView.DataBind(); AwvEkgBundleBranchBlockDatalist.DataSource = standardFindingRepository.GetAllStandardFindings <int>((Int32)TestType.AwvEkg, (Int32)ReadingLabels.BundleBranchBlock); AwvEkgBundleBranchBlockDatalist.DataBind(); AwvEkgInfarctionPatternDatalist.DataSource = standardFindingRepository.GetAllStandardFindings <int>((Int32)TestType.AwvEkg, (Int32)ReadingLabels.InfarctionPattern); AwvEkgInfarctionPatternDatalist.DataBind(); var unableScreenRepository = IoC.Resolve <IUnableToScreenStatusRepository>(); var listUnableScreenReasonData = unableScreenRepository.GetAllUnableToScreenReasons((long)TestType.AwvEkg) ?? new List <UnableScreenReason> { new UnableScreenReason { DisplayName = "Unable to Screen", Reason = UnableToScreenReason.Other } }; if (listUnableScreenReasonData.Count < 1) { listUnableScreenReasonData.Add(new UnableScreenReason { DisplayName = "Unable to Screen", Reason = UnableToScreenReason.Other }); } //Filling Unable Screen Reason DataLists UnableToScreenAwvEkgDataList.DataSource = listUnableScreenReasonData; UnableToScreenAwvEkgDataList.DataBind(); var testNotPerformedReasonRepository = IoC.Resolve <ITestNotPerformedReasonRepository>(); var listTestNotPerformedData = testNotPerformedReasonRepository.GetAll().ToList(); if (listTestNotPerformedData.Count > 1) { listTestNotPerformedData.Insert(0, new TestNotPerformedReason { Name = " Select ", Id = -1 }); ddlTestNotPerformedReasonAwvEkg.DataSource = listTestNotPerformedData; ddlTestNotPerformedReasonAwvEkg.DataTextField = "Name"; ddlTestNotPerformedReasonAwvEkg.DataValueField = "Id"; ddlTestNotPerformedReasonAwvEkg.DataBind(); ddlTestNotPerformedReasonAwvEkg.Items[0].Selected = true; } else { ddlTestNotPerformedReasonAwvEkg.Visible = false; } } }
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(); } }
public void FillAllStaticGrids() { ISystemInformationRepository systemInformationRepository = new SystemInformationRepository(); VersionNumber = systemInformationRepository.GetBuildNumber(); if (!IsResultEntrybyChat) { IStandardFindingRepository standardFindingRepository = new StandardFindingRepository(); var standardFindingList = standardFindingRepository.GetAllStandardFindings <decimal?>((int)TestType.AwvABI); standardFindingList = standardFindingList.OrderBy(f => f.Id).ToList(); gvFindingsAwvAbi.DataSource = standardFindingList; gvFindingsAwvAbi.DataBind(); IUnableToScreenStatusRepository unableScreenRepository = new UnableToScreenStatusRepository(); var listUnableScreenReason = unableScreenRepository.GetAllUnableToScreenReasons((long)TestType.AwvABI) ?? new List <UnableScreenReason>(); if (listUnableScreenReason.Count < 1) { listUnableScreenReason.Add(new UnableScreenReason(0) { DisplayName = "Unable to Screen", Reason = UnableToScreenReason.Other }); } // Filling Unable To Screen Reason List for ASI dtlAwvAbiUnableToScreenSelected.DataSource = listUnableScreenReason; dtlAwvAbiUnableToScreenSelected.DataBind(); IIncidentalFindingRepository incidentalFindingrepository = new IncidentalFindingRepository(); var listIncidentalFindings = incidentalFindingrepository.GetAllIncidentalFinding((long)TestType.AwvABI); dtlAwvAbiIncidentalFindingsSelected.DataSource = listIncidentalFindings; dtlAwvAbiIncidentalFindingsSelected.DataBind(); var testNotPerformedReasonRepository = IoC.Resolve <ITestNotPerformedReasonRepository>(); var listTestNotPerformedData = testNotPerformedReasonRepository.GetAll().ToList(); if (listTestNotPerformedData.Count > 1) { listTestNotPerformedData.Insert(0, new TestNotPerformedReason { Name = " Select ", Id = -1 }); ddlTestNotPerformedReasonAwvAbi.DataSource = listTestNotPerformedData; ddlTestNotPerformedReasonAwvAbi.DataTextField = "Name"; ddlTestNotPerformedReasonAwvAbi.DataValueField = "Id"; ddlTestNotPerformedReasonAwvAbi.DataBind(); ddlTestNotPerformedReasonAwvAbi.Items[0].Selected = true; } else { ddlTestNotPerformedReasonAwvAbi.Visible = false; } } }
public void BindControlData() { ISystemInformationRepository systemInformationRepository = new SystemInformationRepository(); VersionNumber = systemInformationRepository.GetBuildNumber(); IStandardFindingRepository standardFindingRepository = new StandardFindingRepository(); var standardFindingList = standardFindingRepository.GetAllStandardFindings <decimal?>((int)TestType.IFOBT); gvFindingsIFOBT.DataSource = standardFindingList; gvFindingsIFOBT.DataBind(); IUnableToScreenStatusRepository unableScreenRepository = new UnableToScreenStatusRepository(); var listUnableToScreen = unableScreenRepository.GetAllUnableToScreenReasons((long)TestType.IFOBT) ?? new List <UnableScreenReason>(); if (listUnableToScreen.Count < 1) { listUnableToScreen.Add(new UnableScreenReason(0) { DisplayName = "Unable to Screen", Reason = UnableToScreenReason.Other }); } if (listUnableToScreen.Count > 0) { dtlIFOBTSelectedUnableToScreen.DataSource = listUnableToScreen; dtlIFOBTSelectedUnableToScreen.DataBind(); } var testNotPerformedReasonRepository = IoC.Resolve <ITestNotPerformedReasonRepository>(); var listTestNotPerformedData = testNotPerformedReasonRepository.GetAll().ToList(); if (listTestNotPerformedData.Count > 1) { listTestNotPerformedData.Insert(0, new TestNotPerformedReason { Name = " Select ", Id = -1 }); ddlTestNotPerformedReasonIFOBT.DataSource = listTestNotPerformedData; ddlTestNotPerformedReasonIFOBT.DataTextField = "Name"; ddlTestNotPerformedReasonIFOBT.DataValueField = "Id"; ddlTestNotPerformedReasonIFOBT.DataBind(); ddlTestNotPerformedReasonIFOBT.Items[0].Selected = true; ddlTestNotPerformedReasonIFOBT_chat.DataSource = listTestNotPerformedData; ddlTestNotPerformedReasonIFOBT_chat.DataTextField = "Name"; ddlTestNotPerformedReasonIFOBT_chat.DataValueField = "Id"; ddlTestNotPerformedReasonIFOBT_chat.DataBind(); ddlTestNotPerformedReasonIFOBT_chat.Items[0].Selected = true; } else { ddlTestNotPerformedReasonIFOBT.Visible = false; ddlTestNotPerformedReasonIFOBT_chat.Visible = false; } }
protected void Page_Load(object sender, EventArgs e) { if (IsResultEntrybyChat) { ekg_hip.Visible = false; ekg_chat.Visible = true; } else { ekg_hip.Visible = true; ekg_chat.Visible = false; } if (!IsPostBack) { ISystemInformationRepository systemInformationRepository = new SystemInformationRepository(); VersionNumber = systemInformationRepository.GetBuildNumber(); if (!IsResultEntrybyChat) { IStandardFindingRepository standardFindingRepository = new StandardFindingRepository(); var standardFindings = standardFindingRepository.GetAllStandardFindings <int?>((int)TestType.EKG); EKGFindingsGridView.DataSource = standardFindings; EKGFindingsGridView.DataBind(); BundleBranchBlockDatalist.DataSource = standardFindingRepository.GetAllStandardFindings <int>((Int32)TestType.EKG, (Int32)ReadingLabels.BundleBranchBlock); BundleBranchBlockDatalist.DataBind(); InfarctionPatternDatalist.DataSource = standardFindingRepository.GetAllStandardFindings <int>((Int32)TestType.EKG, (Int32)ReadingLabels.InfarctionPattern); InfarctionPatternDatalist.DataBind(); IUnableToScreenStatusRepository unableScreenRepository = new UnableToScreenStatusRepository(); var listUnableScreenReasonData = unableScreenRepository.GetAllUnableToScreenReasons((long)TestType.EKG) ?? new List <UnableScreenReason>(); if (listUnableScreenReasonData.Count < 1) { listUnableScreenReasonData.Add(new UnableScreenReason(0) { DisplayName = "Unable to Screen", Reason = UnableToScreenReason.Other }); } UnableToScreenEkgDataList.DataSource = listUnableScreenReasonData; UnableToScreenEkgDataList.DataBind(); } } }
public void FillAllStaticGrids() { ISystemInformationRepository systemInformationRepository = new SystemInformationRepository(); VersionNumber = systemInformationRepository.GetBuildNumber(); if (!IsResultEntrybyChat) { IStandardFindingRepository standardFindingRepository = new StandardFindingRepository(); var standardFindingList = standardFindingRepository.GetAllStandardFindings <decimal?>((int)TestType.AAA, (int)ReadingLabels.AortaSize); StandardFindingsAAAGridView.DataSource = standardFindingList; StandardFindingsAAAGridView.DataBind(); var sViewStandardFindingList = standardFindingRepository.GetAllStandardFindings <int>((int)TestType.AAA, (int)ReadingLabels.AortaRangeSaggitalView); SaggitalViewDataList.DataSource = sViewStandardFindingList; SaggitalViewDataList.DataBind(); var tViewStandardFindingList = standardFindingRepository.GetAllStandardFindings <int>((int)TestType.AAA, (int)ReadingLabels.AortaRangeTransverseView); TransverseViewDatalist.DataSource = tViewStandardFindingList; TransverseViewDatalist.DataBind(); IUnableToScreenStatusRepository unableScreenRepository = new UnableToScreenStatusRepository(); var listUnableScreenReasonData = unableScreenRepository.GetAllUnableToScreenReasons((long)TestType.AAA) ?? new List <UnableScreenReason>(); if (listUnableScreenReasonData.Count < 1) { listUnableScreenReasonData.Add(new UnableScreenReason(0) { DisplayName = "Unable to Screen", Reason = UnableToScreenReason.Other }); } //Filling Unable Screen Reason DataLists UnableToScreenAAADataList.DataSource = listUnableScreenReasonData; UnableToScreenAAADataList.DataBind(); IIncidentalFindingRepository incidentalFindingrepository = new IncidentalFindingRepository(); var listIncidentalFindings = incidentalFindingrepository.GetAllIncidentalFinding((long)TestType.AAA); IncidentalFindingsSelectedAAADataList.DataSource = listIncidentalFindings; IncidentalFindingsSelectedAAADataList.DataBind(); physicianRepeatStudy.Style.Add(HtmlTextWriterStyle.Display, ShowHideRepeatStudyCheckBox ? "block" : "none"); aaaOtherModalitiesAdditionalImages.Style.Add(HtmlTextWriterStyle.Display, !ShowHideRepeatStudyCheckBox ? "block" : "none"); } }
public void FillAllStaticGrids() { ISystemInformationRepository systemInformationRepository = new SystemInformationRepository(); VersionNumber = systemInformationRepository.GetBuildNumber(); if (!IsResultEntrybyChat) { IStandardFindingRepository standardFindingRepository = new StandardFindingRepository(); var standardFindingList = standardFindingRepository.GetAllStandardFindings <decimal?>((int)TestType.PAD); //if (standardFindingList.Count > 0 && standardFindingList.First().WorstCaseOrder.HasValue) // standardFindingList = standardFindingList.OrderBy(f => f.WorstCaseOrder).ToList(); //else //{ standardFindingList = standardFindingList.OrderBy(f => f.Id).ToList(); //} gvFindingsPAD.DataSource = standardFindingList; gvFindingsPAD.DataBind(); IUnableToScreenStatusRepository unableScreenRepository = new UnableToScreenStatusRepository(); var listUnableScreenReason = unableScreenRepository.GetAllUnableToScreenReasons((long)TestType.PAD) ?? new List <UnableScreenReason>(); if (listUnableScreenReason.Count < 1) { listUnableScreenReason.Add(new UnableScreenReason(0) { DisplayName = "Unable to Screen", Reason = UnableToScreenReason.Other }); } // Filling Unable To Screen Reason List for ASI dtlPADUnableToScreenSelected.DataSource = listUnableScreenReason; dtlPADUnableToScreenSelected.DataBind(); IIncidentalFindingRepository incidentalFindingrepository = new IncidentalFindingRepository(); var listIncidentalFindings = incidentalFindingrepository.GetAllIncidentalFinding((long)TestType.PAD); dtlPADIncidentalFindingsSelected.DataSource = listIncidentalFindings; dtlPADIncidentalFindingsSelected.DataBind(); } }
public void FillAllStaticGrids() { ISystemInformationRepository systemInformationRepository = new SystemInformationRepository(); VersionNumber = systemInformationRepository.GetBuildNumber(); if (!IsResultEntrybyChat) { IStandardFindingRepository standardFindingRepository = new StandardFindingRepository(); var standardFindingList = standardFindingRepository.GetAllStandardFindings <decimal?>((int)TestType.HCPAAA, (int)ReadingLabels.AortaSize); StandardFindingsHcpAAAGridView.DataSource = standardFindingList; StandardFindingsHcpAAAGridView.DataBind(); var sViewStandardFindingList = standardFindingRepository.GetAllStandardFindings <int>((int)TestType.HCPAAA, (int)ReadingLabels.AortaRangeSaggitalView); HcpSaggitalViewDataList.DataSource = sViewStandardFindingList; HcpSaggitalViewDataList.DataBind(); var tViewStandardFindingList = standardFindingRepository.GetAllStandardFindings <int>((int)TestType.HCPAAA, (int)ReadingLabels.AortaRangeTransverseView); HcpTransverseViewDatalist.DataSource = tViewStandardFindingList; HcpTransverseViewDatalist.DataBind(); IUnableToScreenStatusRepository unableScreenRepository = new UnableToScreenStatusRepository(); var listUnableScreenReasonData = unableScreenRepository.GetAllUnableToScreenReasons((long)TestType.HCPAAA) ?? new List <UnableScreenReason>(); if (listUnableScreenReasonData.Count < 1) { listUnableScreenReasonData.Add(new UnableScreenReason(0) { DisplayName = "Unable to Screen", Reason = UnableToScreenReason.Other }); } //Filling Unable Screen Reason DataLists UnableToScreenHcpAAADataList.DataSource = listUnableScreenReasonData; UnableToScreenHcpAAADataList.DataBind(); IIncidentalFindingRepository incidentalFindingrepository = new IncidentalFindingRepository(); var listIncidentalFindings = incidentalFindingrepository.GetAllIncidentalFinding((long)TestType.HCPAAA); IncidentalFindingsSelectedHcpAAADataList.DataSource = listIncidentalFindings; IncidentalFindingsSelectedHcpAAADataList.DataBind(); var testNotPerformedReasonRepository = IoC.Resolve <ITestNotPerformedReasonRepository>(); var listTestNotPerformedData = testNotPerformedReasonRepository.GetAll().ToList(); if (listTestNotPerformedData.Count > 1) { listTestNotPerformedData.Insert(0, new TestNotPerformedReason { Name = " Select ", Id = -1 }); ddlTestNotPerformedReasonHcpaaa.DataSource = listTestNotPerformedData; ddlTestNotPerformedReasonHcpaaa.DataTextField = "Name"; ddlTestNotPerformedReasonHcpaaa.DataValueField = "Id"; ddlTestNotPerformedReasonHcpaaa.DataBind(); ddlTestNotPerformedReasonHcpaaa.Items[0].Selected = true; } else { ddlTestNotPerformedReasonHcpaaa.Visible = false; } } }
public void FillAllStaticGridsEcho() { ISystemInformationRepository systemInformationRepository = new SystemInformationRepository(); VersionNumber = systemInformationRepository.GetBuildNumber(); if (!IsResultEntrybyChat) { IUnableToScreenStatusRepository unableScreenRepository = new UnableToScreenStatusRepository(); var listUnableScreenReasonData = unableScreenRepository.GetAllUnableToScreenReasons((long)TestType.HCPEcho) ?? new List <UnableScreenReason> { new UnableScreenReason { DisplayName = "Unable to Screen", Reason = UnableToScreenReason.Other } }; //Filling Unable Screen Reason DataLists HcpEchoUnableScreenDatalist.DataSource = listUnableScreenReasonData; HcpEchoUnableScreenDatalist.DataBind(); var standardFindingRepository = new StandardFindingRepository(); HcpEchoFindingsDatalist.DataSource = standardFindingRepository.GetAllStandardFindings <int>((Int32)TestType.HCPEcho); HcpEchoFindingsDatalist.DataBind(); HcpEchoEjactionFractionFindingsDatalist.DataSource = standardFindingRepository.GetAllStandardFindings <int>((Int32)TestType.HCPEcho, (Int32)ReadingLabels.EstimatedEjactionFraction); HcpEchoEjactionFractionFindingsDatalist.DataBind(); HcpEchoRegurgitationforAorticDatalist.DataSource = standardFindingRepository.GetAllStandardFindings <int>((Int32)TestType.HCPEcho, (Int32)ReadingLabels.Aortic); HcpEchoRegurgitationforAorticDatalist.DataBind(); HcpEchoRegurgitationforMitralDatalist.DataSource = standardFindingRepository.GetAllStandardFindings <int>((Int32)TestType.HCPEcho, (Int32)ReadingLabels.Mitral); HcpEchoRegurgitationforMitralDatalist.DataBind(); HcpEchoRegurgitationforPulmonicDatalist.DataSource = standardFindingRepository.GetAllStandardFindings <int>((Int32)TestType.HCPEcho, (Int32)ReadingLabels.Pulmonic); HcpEchoRegurgitationforPulmonicDatalist.DataBind(); HcpEchoRegurgitationforTricuspidDatalist.DataSource = standardFindingRepository.GetAllStandardFindings <int>((Int32)TestType.HCPEcho, (Int32)ReadingLabels.Tricuspid); HcpEchoRegurgitationforTricuspidDatalist.DataBind(); HcpEchoMorphologyAorticDatalist.DataSource = standardFindingRepository.GetAllStandardFindings <int>((Int32)TestType.HCPEcho, (Int32)ReadingLabels.AorticMorphology); HcpEchoMorphologyAorticDatalist.DataBind(); HcpEchoMorphologyMitralDatalist.DataSource = standardFindingRepository.GetAllStandardFindings <int>((Int32)TestType.HCPEcho, (Int32)ReadingLabels.MitralMorphology); HcpEchoMorphologyMitralDatalist.DataBind(); HcpEchoMorphologyPulmonicDatalist.DataSource = standardFindingRepository.GetAllStandardFindings <int>((Int32)TestType.HCPEcho, (Int32)ReadingLabels.PulmonicMorphology); HcpEchoMorphologyPulmonicDatalist.DataBind(); HcpEchoMorphologyTricuspidDatalist.DataSource = standardFindingRepository.GetAllStandardFindings <int>((Int32)TestType.HCPEcho, (Int32)ReadingLabels.TricuspidMorphology); HcpEchoMorphologyTricuspidDatalist.DataBind(); HcpEchoPericardialEffusionFindingDatalist.DataSource = standardFindingRepository.GetAllStandardFindings <int>((Int32)TestType.HCPEcho, (Int32)ReadingLabels.PericardialEffusion); HcpEchoPericardialEffusionFindingDatalist.DataBind(); HcpEchoDiastolicDysfunctionFindingDatalist.DataSource = standardFindingRepository.GetAllStandardFindings <int>((Int32)TestType.HCPEcho, (Int32)ReadingLabels.DiastolicDysfunction); HcpEchoDiastolicDysfunctionFindingDatalist.DataBind(); var testNotPerformedReasonRepository = IoC.Resolve <ITestNotPerformedReasonRepository>(); var listTestNotPerformedData = testNotPerformedReasonRepository.GetAll().ToList(); if (listTestNotPerformedData.Count > 1) { listTestNotPerformedData.Insert(0, new TestNotPerformedReason { Name = " Select ", Id = -1 }); ddlTestNotPerformedReasonHcpEcho.DataSource = listTestNotPerformedData; ddlTestNotPerformedReasonHcpEcho.DataTextField = "Name"; ddlTestNotPerformedReasonHcpEcho.DataValueField = "Id"; ddlTestNotPerformedReasonHcpEcho.DataBind(); ddlTestNotPerformedReasonHcpEcho.Items[0].Selected = true; } else { ddlTestNotPerformedReasonHcpEcho.Visible = false; } } }
public void FillAllStaticGrids() { ISystemInformationRepository systemInformationRepository = new SystemInformationRepository(); VersionNumber = systemInformationRepository.GetBuildNumber(); if (!IsResultEntrybyChat) { IStandardFindingRepository standardFindingRepository = new StandardFindingRepository(); var standardFindingList = standardFindingRepository.GetAllStandardFindings <decimal?>((int)TestType.Lead, (int)ReadingLabels.Left); StandardFindingsLeadGridView.DataSource = standardFindingList; StandardFindingsLeadGridView.DataBind(); var findingVelocityLeftList = standardFindingRepository.GetAllStandardFindings <decimal?>((int)TestType.Lead, (int)ReadingLabels.LeftCFAPSV); if (findingVelocityLeftList.Count > 0) { LowVelocityLeftLabel.InnerText = findingVelocityLeftList[0].Label; LowVelocityLeftIdHiddenfield.Value = findingVelocityLeftList[0].Id.ToString(); } var findingVelocityRightList = standardFindingRepository.GetAllStandardFindings <decimal?>((int)TestType.Lead, (int)ReadingLabels.RightCFAPSV); if (findingVelocityRightList.Count > 0) { LowVelocityRightLabel.InnerText = findingVelocityRightList[0].Label; LowVelocityRightIdHiddenfield.Value = findingVelocityRightList[0].Id.ToString(); } IUnableToScreenStatusRepository unableToScreenRepository = new UnableToScreenStatusRepository(); var listUnableScreenReason = unableToScreenRepository.GetAllUnableToScreenReasons((long)TestType.Lead) ?? new List <UnableScreenReason>(); if (listUnableScreenReason.Count < 1) { listUnableScreenReason.Add(new UnableScreenReason(0) { DisplayName = "Unable to Screen", Reason = UnableToScreenReason.Other }); } UnableScreenReasonLeadDataList.DataSource = listUnableScreenReason; UnableScreenReasonLeadDataList.DataBind(); IIncidentalFindingRepository incidentalFindingrepository = new IncidentalFindingRepository(); var listincidentalFindings = incidentalFindingrepository.GetAllIncidentalFinding((long)TestType.Lead); IncidentalFindingsLeadSelectedDataList.DataSource = listincidentalFindings; IncidentalFindingsLeadSelectedDataList.DataBind(); var testNotPerformedReasonRepository = IoC.Resolve <ITestNotPerformedReasonRepository>(); var listTestNotPerformedData = testNotPerformedReasonRepository.GetAll().ToList(); if (listTestNotPerformedData.Count > 1) { listTestNotPerformedData.Insert(0, new TestNotPerformedReason { Name = " Select ", Id = -1 }); ddlTestNotPerformedReasonLead.DataSource = listTestNotPerformedData; ddlTestNotPerformedReasonLead.DataTextField = "Name"; ddlTestNotPerformedReasonLead.DataValueField = "Id"; ddlTestNotPerformedReasonLead.DataBind(); ddlTestNotPerformedReasonLead.Items[0].Selected = true; } else { ddlTestNotPerformedReasonLead.Visible = false; } var eventRepository = IoC.Resolve <IEventRepository>(); var settings = IoC.Resolve <ISettings>(); var theEventData = eventRepository.GetById(EventId); HideDiagnosisCodeLead = settings.ChangeLeadReadingDate.HasValue && theEventData.EventDate >= settings.ChangeLeadReadingDate.Value; } }
public void BindControlData() { ISystemInformationRepository systemInformationRepository = new SystemInformationRepository(); VersionNumber = systemInformationRepository.GetBuildNumber(); IStandardFindingRepository standardFindingRepository = new StandardFindingRepository(); var functionalAssessmentScore = standardFindingRepository.GetAllStandardFindings <int>((int)TestType.QualityMeasures, (int)ReadingLabels.FunctionalAssessmentScore); ddlFunctionalAssessment.DataSource = GetDropdownllistValues(functionalAssessmentScore); ddlFunctionalAssessment.DataValueField = "Key"; //The Value of the DropDownList, to get it you should call ddlDepartments.SelectedValue; ddlFunctionalAssessment.DataTextField = "Value"; ddlFunctionalAssessment.DataBind(); var painAssessmentScore = standardFindingRepository.GetAllStandardFindings <int>((int)TestType.QualityMeasures, (int)ReadingLabels.PainAssessmentScore); ddlPainAssessmentScore.DataSource = GetDropdownllistValues(painAssessmentScore); ddlPainAssessmentScore.DataValueField = "Key"; //The Value of the DropDownList, to get it you should call ddlDepartments.SelectedValue; ddlPainAssessmentScore.DataTextField = "Value"; ddlPainAssessmentScore.DataBind(); IUnableToScreenStatusRepository unableScreenRepository = new UnableToScreenStatusRepository(); var listUnableToScreen = unableScreenRepository.GetAllUnableToScreenReasons((long)TestType.QualityMeasures) ?? new List <UnableScreenReason>(); if (listUnableToScreen.Count < 1) { listUnableToScreen.Add(new UnableScreenReason(0) { DisplayName = "Unable to Screen", Reason = UnableToScreenReason.Other }); } if (listUnableToScreen.Count > 0) { dtlQualityMeasuresSelectedUnableToScreen.DataSource = listUnableToScreen; dtlQualityMeasuresSelectedUnableToScreen.DataBind(); } var testNotPerformedReasonRepository = IoC.Resolve <ITestNotPerformedReasonRepository>(); var listTestNotPerformedData = testNotPerformedReasonRepository.GetAll().ToList(); if (listTestNotPerformedData.Count > 1) { listTestNotPerformedData.Insert(0, new TestNotPerformedReason { Name = " Select ", Id = -1 }); ddlTestNotPerformedReasonQualityMeasures.DataSource = listTestNotPerformedData; ddlTestNotPerformedReasonQualityMeasures.DataTextField = "Name"; ddlTestNotPerformedReasonQualityMeasures.DataValueField = "Id"; ddlTestNotPerformedReasonQualityMeasures.DataBind(); ddlTestNotPerformedReasonQualityMeasures.Items[0].Selected = true; } else { ddlTestNotPerformedReasonQualityMeasures.Visible = false; } }
public void FillAllStaticGrids() { ISystemInformationRepository systemInformationRepository = new SystemInformationRepository(); VersionNumber = systemInformationRepository.GetBuildNumber(); if (!IsResultEntrybyChat) { IStandardFindingRepository standardFindingRepository = new StandardFindingRepository(); List <StandardFinding <decimal?> > standardFindingList; var settings = IoC.Resolve <ISettings>(); if (settings.AwvAaaFindingChangeDate.HasValue) { var eventCustomerResultRepository = IoC.Resolve <IEventCustomerResultRepository>(); var eventCustomerResult = eventCustomerResultRepository.GetByCustomerIdAndEventId(CustomerId, EventId); if (eventCustomerResult != null && eventCustomerResult.DataRecorderMetaData.DateCreated < settings.AwvAaaFindingChangeDate.Value) { standardFindingList = standardFindingRepository.GetAllStandardFindings <decimal?>((int)TestType.AwvAAA, (int)ReadingLabels.AortaSize, settings.AwvAaaFindingChangeDate.Value, true); } else { standardFindingList = standardFindingRepository.GetAllStandardFindings <decimal?>((int)TestType.AwvAAA, (int)ReadingLabels.AortaSize, settings.AwvAaaFindingChangeDate.Value, false); } } else { standardFindingList = standardFindingRepository.GetAllStandardFindings <decimal?>((int)TestType.AwvAAA, (int)ReadingLabels.AortaSize); } StandardFindingsAwvAaaGridView.DataSource = standardFindingList; StandardFindingsAwvAaaGridView.DataBind(); var sViewStandardFindingList = standardFindingRepository.GetAllStandardFindings <int>((int)TestType.AwvAAA, (int)ReadingLabels.AortaRangeSaggitalView); AwvAaaSaggitalViewDataList.DataSource = sViewStandardFindingList; AwvAaaSaggitalViewDataList.DataBind(); var tViewStandardFindingList = standardFindingRepository.GetAllStandardFindings <int>((int)TestType.AwvAAA, (int)ReadingLabels.AortaRangeTransverseView); TransverseViewDatalist.DataSource = tViewStandardFindingList; TransverseViewDatalist.DataBind(); var peakSystolicVelocityStandardFindingList = standardFindingRepository.GetAllStandardFindings <int>((int)TestType.AwvAAA, (int)ReadingLabels.PeakSystolicVelocitySaggitalView); PeakSystolicVelocityDatalist.DataSource = peakSystolicVelocityStandardFindingList; PeakSystolicVelocityDatalist.DataBind(); IUnableToScreenStatusRepository unableScreenRepository = new UnableToScreenStatusRepository(); var listUnableScreenReasonData = unableScreenRepository.GetAllUnableToScreenReasons((long)TestType.AwvAAA) ?? new List <UnableScreenReason>(); if (listUnableScreenReasonData.Count < 1) { listUnableScreenReasonData.Add(new UnableScreenReason(0) { DisplayName = "Unable to Screen", Reason = UnableToScreenReason.Other }); } //Filling Unable Screen Reason DataLists UnableToScreenAwvAaaDataList.DataSource = listUnableScreenReasonData; UnableToScreenAwvAaaDataList.DataBind(); IIncidentalFindingRepository incidentalFindingrepository = new IncidentalFindingRepository(); var listIncidentalFindings = incidentalFindingrepository.GetAllIncidentalFinding((long)TestType.AwvAAA); IncidentalFindingsSelectedAwvAaaDataList.DataSource = listIncidentalFindings; IncidentalFindingsSelectedAwvAaaDataList.DataBind(); var testNotPerformedReasonRepository = IoC.Resolve <ITestNotPerformedReasonRepository>(); var listTestNotPerformedData = testNotPerformedReasonRepository.GetAll().ToList(); if (listTestNotPerformedData.Count > 1) { listTestNotPerformedData.Insert(0, new TestNotPerformedReason { Name = " Select ", Id = -1 }); ddlTestNotPerformedReasonAwvAaa.DataSource = listTestNotPerformedData; ddlTestNotPerformedReasonAwvAaa.DataTextField = "Name"; ddlTestNotPerformedReasonAwvAaa.DataValueField = "Id"; ddlTestNotPerformedReasonAwvAaa.DataBind(); ddlTestNotPerformedReasonAwvAaa.Items[0].Selected = true; } else { ddlTestNotPerformedReasonAwvAaa.Visible = false; } } }