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 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.PPAAA, (int)ReadingLabels.AortaSize); StandardFindingsPpAAAGridView.DataSource = standardFindingList; StandardFindingsPpAAAGridView.DataBind(); var sViewStandardFindingList = standardFindingRepository.GetAllStandardFindings <int>((int)TestType.PPAAA, (int)ReadingLabels.AortaRangeSaggitalView); PpSaggitalViewDataList.DataSource = sViewStandardFindingList; PpSaggitalViewDataList.DataBind(); var tViewStandardFindingList = standardFindingRepository.GetAllStandardFindings <int>((int)TestType.PPAAA, (int)ReadingLabels.AortaRangeTransverseView); PpTransverseViewDatalist.DataSource = tViewStandardFindingList; PpTransverseViewDatalist.DataBind(); IUnableToScreenStatusRepository unableScreenRepository = new UnableToScreenStatusRepository(); var listUnableScreenReasonData = unableScreenRepository.GetAllUnableToScreenReasons((long)TestType.PPAAA) ?? new List <UnableScreenReason>(); if (listUnableScreenReasonData.Count < 1) { listUnableScreenReasonData.Add(new UnableScreenReason(0) { DisplayName = "Unable to Screen", Reason = UnableToScreenReason.Other }); } //Filling Unable Screen Reason DataLists UnableToScreenPpAAADataList.DataSource = listUnableScreenReasonData; UnableToScreenPpAAADataList.DataBind(); IIncidentalFindingRepository incidentalFindingrepository = new IncidentalFindingRepository(); var listIncidentalFindings = incidentalFindingrepository.GetAllIncidentalFinding((long)TestType.PPAAA); IncidentalFindingsSelectedPpAAADataList.DataSource = listIncidentalFindings; IncidentalFindingsSelectedPpAAADataList.DataBind(); } }
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 BindControlData() { ISystemInformationRepository systemInformationRepository = new SystemInformationRepository(); VersionNumber = systemInformationRepository.GetBuildNumber(); if (!IsResultEntrybyChat) { IStandardFindingRepository standardFindingRepository = new StandardFindingRepository(); var standardFindingList = standardFindingRepository.GetAllStandardFindings <int?>((int)TestType.ASI, (int)ReadingLabels.ASI); StandardFindingsASIGridView.DataSource = standardFindingList; StandardFindingsASIGridView.DataBind(); IUnableToScreenStatusRepository unableScreenReasonRepository = new UnableToScreenStatusRepository(); var listUnableScreenReason = unableScreenReasonRepository.GetAllUnableToScreenReasons((long)TestType.ASI) ?? new List <UnableScreenReason>() { new UnableScreenReason() { DisplayName = "Unable to Screen", Reason = UnableToScreenReason.Other } }; if (listUnableScreenReason.Count < 1) { listUnableScreenReason.Add(new UnableScreenReason { DisplayName = "Unable to Screen", Reason = UnableToScreenReason.Other }); } // Filling Unable To Screen Reason List for ASI ASIUnableToScreenSelectedDataList.DataSource = listUnableScreenReason; ASIUnableToScreenSelectedDataList.DataBind(); IIncidentalFindingRepository incidentalFindingrepository = new IncidentalFindingRepository(); var listIncidentalFindings = incidentalFindingrepository.GetAllIncidentalFinding((long)TestType.ASI); ASIIncidentalFindingsSelectedDataList.DataSource = listIncidentalFindings; ASIIncidentalFindingsSelectedDataList.DataBind(); } }
private void CreateIFJSArrays() { IIncidentalFindingRepository incidentalFindingrepository = new IncidentalFindingRepository(); var incidentalFindingGroup = incidentalFindingrepository.GetAllIncidentalFindingGroup(); var isRegistered = false; var incidentalFinding = incidentalFindingrepository.GetAllIncidentalFinding().ToList(); incidentalFindingGroup.ForEach(ifGroup => { if (ifGroup.Id == (int)IncidentalFindingGroupType.SonographicAppearance) { ifGroup.GroupItems.ForEach(groupItem => { Page.ClientScript.RegisterArrayDeclaration("js_arrSonographicAppearanceLabel", "'" + groupItem.Label + "'"); Page.ClientScript.RegisterArrayDeclaration("js_arrSonographicAppearanceID", groupItem.Id.ToString()); }); } if (ifGroup.Id == (int)IncidentalFindingGroupType.AbdominalLocation || ifGroup.Id == (int)IncidentalFindingGroupType.KidneyLocation || ifGroup.Id == (int)IncidentalFindingGroupType.LiverLocation || ifGroup.Id == (int)IncidentalFindingGroupType.ThyriodLocation) { var selectedIfs = incidentalFinding.FindAll(ifinding => { var findingGroup = ifinding.IncidentalFindingGroups.Find(group => group.Id == ifGroup.Id); if (findingGroup != null) { return(true); } return(false); }); selectedIfs.ForEach(selectedIf => ifGroup.GroupItems.ForEach(groupItem => { Page.ClientScript.RegisterArrayDeclaration("js_arrIFLocationsLabel", "'" + groupItem.Label + "'"); Page.ClientScript.RegisterArrayDeclaration("js_arrIFLocationsID", groupItem.Id.ToString()); Page.ClientScript.RegisterArrayDeclaration("js_arrIFID", selectedIf.Id.ToString()); })); } if (ifGroup.Id == (int)IncidentalFindingGroupType.Size) { Page.ClientScript.RegisterHiddenField("js_if_size", ifGroup.GroupItems.First().Id.ToString()); } if (ifGroup.Id == (int)IncidentalFindingGroupType.Notes) { var selectedIfs = incidentalFinding.FindAll(ifinding => { var findingGroup = ifinding.IncidentalFindingGroups.Find(group => group.Id == ifGroup.Id); if (findingGroup != null) { return(true); } return(false); }); selectedIfs.ForEach(selectedIf => ifGroup.GroupItems.ForEach(groupItem => { Page.ClientScript.RegisterArrayDeclaration("js_arrIFGroupItemId", "'" + groupItem.Id.ToString() + "'"); Page.ClientScript.RegisterArrayDeclaration("js_arrIFGroupId", "'" + ifGroup.Id.ToString() + "'"); Page.ClientScript.RegisterArrayDeclaration("js_arrIFID", "'" + selectedIf.Id.ToString() + "'"); isRegistered = true; })); } if (ifGroup.Id == (int)IncidentalFindingGroupType.KidneyStones) { Page.ClientScript.RegisterHiddenField("js_if_kidney", ifGroup.GroupItems.First().Id.ToString()); } }); if (!isRegistered) { Page.ClientScript.RegisterStartupScript(Page.GetType(), "js_Array", "var js_arrIFGroupItemId = new Array(); var js_arrIFGroupId = new Array(); var js_arrIFID = new Array();", true); } }
public void FillAllStaticGrids() { ISystemInformationRepository systemInformationRepository = new SystemInformationRepository(); VersionNumber = systemInformationRepository.GetBuildNumber(); if (!IsResultEntrybyChat) { IStandardFindingRepository standardFindingRepository = new StandardFindingRepository(); List <StandardFinding <decimal?> > standardFindingList = standardFindingRepository.GetAllStandardFindings <decimal?>((int)TestType.HCPCarotid, (int)ReadingLabels.Left); StandardFindingsHcpCarotidGridView.DataSource = standardFindingList; StandardFindingsHcpCarotidGridView.DataBind(); var findingVelocityLicaList = standardFindingRepository.GetAllStandardFindings <decimal?>((int)TestType.HCPCarotid, (int)ReadingLabels.LICAPSV); if (findingVelocityLicaList.Count > 0) { HcpCarotidLowVelocityLICALabel.InnerText = findingVelocityLicaList[0].Label; HcpCarotidLowVelocityLICAIdHiddenfield.Value = findingVelocityLicaList[0].Id.ToString(); } var findingVelocityRicaList = standardFindingRepository.GetAllStandardFindings <decimal?>((int)TestType.HCPCarotid, (int)ReadingLabels.RICAPSV); if (findingVelocityRicaList.Count > 0) { HcpCarotidLowVelocityRICALabel.InnerText = findingVelocityRicaList[0].Label; HcpCarotidLowVelocityRICAIdHiddenfield.Value = findingVelocityRicaList[0].Id.ToString(); } IUnableToScreenStatusRepository unableToScreenRepository = new UnableToScreenStatusRepository(); var listUnableScreenReason = unableToScreenRepository.GetAllUnableToScreenReasons((long)TestType.HCPCarotid) ?? new List <UnableScreenReason>(); if (listUnableScreenReason.Count < 1) { listUnableScreenReason.Add(new UnableScreenReason(0) { DisplayName = "Unable to Screen", Reason = UnableToScreenReason.Other }); } UnableScreenReasonHcpCarotidDataList.DataSource = listUnableScreenReason; UnableScreenReasonHcpCarotidDataList.DataBind(); IIncidentalFindingRepository incidentalFindingrepository = new IncidentalFindingRepository(); var listincidentalFindings = incidentalFindingrepository.GetAllIncidentalFinding((long)TestType.HCPCarotid); IncidentalFindingsHcpCarotidSelectedDataList.DataSource = listincidentalFindings; IncidentalFindingsHcpCarotidSelectedDataList.DataBind(); var testNotPerformedReasonRepository = IoC.Resolve <ITestNotPerformedReasonRepository>(); var listTestNotPerformedData = testNotPerformedReasonRepository.GetAll().ToList(); if (listTestNotPerformedData.Count > 1) { listTestNotPerformedData.Insert(0, new TestNotPerformedReason { Name = " Select ", Id = -1 }); ddlTestNotPerformedReasonHcpCarotid.DataSource = listTestNotPerformedData; ddlTestNotPerformedReasonHcpCarotid.DataTextField = "Name"; ddlTestNotPerformedReasonHcpCarotid.DataValueField = "Id"; ddlTestNotPerformedReasonHcpCarotid.DataBind(); ddlTestNotPerformedReasonHcpCarotid.Items[0].Selected = true; } else { ddlTestNotPerformedReasonHcpCarotid.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.StrokeFindingChangeDate.HasValue) { var eventCustomerResultRepository = IoC.Resolve <IEventCustomerResultRepository>(); var eventCustomerResult = eventCustomerResultRepository.GetByCustomerIdAndEventId(CustomerId, EventId); if (eventCustomerResult != null && eventCustomerResult.DataRecorderMetaData.DateCreated < settings.StrokeFindingChangeDate.Value) { standardFindingList = standardFindingRepository.GetAllStandardFindings <decimal?>((int)TestType.Stroke, (int)ReadingLabels.Left, settings.StrokeFindingChangeDate.Value, true); } else { standardFindingList = standardFindingRepository.GetAllStandardFindings <decimal?>((int)TestType.Stroke, (int)ReadingLabels.Left, settings.StrokeFindingChangeDate.Value, false); } } else { standardFindingList = standardFindingRepository.GetAllStandardFindings <decimal?>((int)TestType.Stroke, (int)ReadingLabels.Left); } StandardFindingsStrokeGridView.DataSource = standardFindingList; StandardFindingsStrokeGridView.DataBind(); var findingVelocityLicaList = standardFindingRepository.GetAllStandardFindings <decimal?>((int)TestType.Stroke, (int)ReadingLabels.LICAPSV); if (findingVelocityLicaList.Count > 0) { LowVelocityLICALabel.InnerText = findingVelocityLicaList[0].Label; LowVelocityLICAIdHiddenfield.Value = findingVelocityLicaList[0].Id.ToString(); } var findingVelocityRicaList = standardFindingRepository.GetAllStandardFindings <decimal?>((int)TestType.Stroke, (int)ReadingLabels.RICAPSV); if (findingVelocityRicaList.Count > 0) { LowVelocityRICALabel.InnerText = findingVelocityRicaList[0].Label; LowVelocityRICAIdHiddenfield.Value = findingVelocityRicaList[0].Id.ToString(); } IUnableToScreenStatusRepository unableToScreenRepository = new UnableToScreenStatusRepository(); var listUnableScreenReason = unableToScreenRepository.GetAllUnableToScreenReasons((long)TestType.Stroke) ?? new List <UnableScreenReason>(); if (listUnableScreenReason.Count < 1) { listUnableScreenReason.Add(new UnableScreenReason(0) { DisplayName = "Unable to Screen", Reason = UnableToScreenReason.Other }); } UnableScreenReasonStrokeDataList.DataSource = listUnableScreenReason; UnableScreenReasonStrokeDataList.DataBind(); IIncidentalFindingRepository incidentalFindingrepository = new IncidentalFindingRepository(); var listincidentalFindings = incidentalFindingrepository.GetAllIncidentalFinding((long)TestType.Stroke); IncidentalFindingsStrokeSelectedDataList.DataSource = listincidentalFindings; IncidentalFindingsStrokeSelectedDataList.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 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 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; } } }