List <ResumeChecker_AlacartReport> dispalyReport() { List <ResumeChecker_AlacartReport> alacartReports = new List <ResumeChecker_AlacartReport>(); string[] alacartReportList = { "eKnowID Criminal MultiState Check", "Employment Verification", "Education Verification", "IDentify" }; List <Report> reportLst = PlanHelper.GetAlacartReportList(); ResumeChecker_AlacartReport alacartReport; foreach (string reportName in alacartReportList) { foreach (Report report in reportLst) { if (report.Name == reportName) { alacartReport = new ResumeChecker_AlacartReport(); alacartReport.report = new Report(); alacartReport.report.Name = report.Name; alacartReport.report.Description = report.Description; alacartReport.report.Price = report.Price; alacartReport.report.ReportId = report.ReportId; alacartReport.report.TurnaroundTime = report.TurnaroundTime; alacartReport.report.reportShortDesrript = report.reportShortDesrript; alacartReports.Add(alacartReport); break; } } } return(alacartReports); }
private void LoadPlanData() { int index = lvPlan.SelectedIndex; dsPlan = PlanHelper.Create().GetPlanData(); lvPlan.DataSource = dsPlan; lvPlan.DisplayMember = "Name"; lvPlan.ValueMember = "ID"; lvPlan.Refresh(); if (lvPlan.Items.Count >= index + 1) { lvPlan.SelectedIndex = index; } else { lvPlan.SelectedIndex = lvPlan.Items.Count - 1; } if (index == -1 && lvPlan.Items.Count > 0) { lvPlan.SelectedIndex = 0; } if (lvPlan.Items.Count == 0) { pnlOnce.Enabled = pnlRate.Enabled = pnlStep.Enabled = cbEnabled.Enabled = cbPlanType.Enabled = txtPlanName.Enabled = false; } //Refresh Value States lvPlan.Enabled = true; canChangePlan = true; }
private bool IsSSNVisible() { int[] reportLst = { 2, 3, 4, 5, 14, 15, 17, 19, 20, 21 }; foreach (int loopCount in SessionWrapper.AlacartReportList) { if (!reportLst.Contains(loopCount)) { return(true); } } if (SessionWrapper.ModuleName != Constant.UNCOVER_BACKGROUND) { List <Report> selectedReportLst = PlanHelper.GetPlanReports(SessionWrapper.OrderDetail.PlanId); foreach (Report report in selectedReportLst) { if (!reportLst.Contains(report.ReportId)) { return(true); } } } return(false); }
public static void SetAdditionalInfoRequire(string planName, int professionId) { SessionWrapper.OrderDetail = new OrderDetails(); if (planName == "Basic") { SessionWrapper.OrderDetail.PlanId = basicPlanId; } else if (planName == "Gold") { SessionWrapper.OrderDetail.PlanId = GoldPlanId; } else if (planName == "Platnium") { SessionWrapper.OrderDetail.PlanId = PlatniumPlanId; } List <Report> reports = PlanHelper.GetPlanReports(SessionWrapper.OrderDetail.PlanId); SessionWrapper.RequiredInformation = null; SessionWrapper.RequiredInformation = new RequiredInformation(); SessionWrapper.RequiredInformation.isEmploymentDetailsRequired = reports.IsEmpInfoRequired(); SessionWrapper.RequiredInformation.isEducationDetailsRequired = reports.IsEduInfoRequired(); SessionWrapper.RequiredInformation.isLicenseInformationRequired = reports.IsLicInfoRequired(); SessionWrapper.RequiredInformation.isReferenceInformationRequired = reports.IsRefInfoRequired(); SessionWrapper.RequiredInformation.isDrugVerificationRequired = reports.IsDrugVerificationRequired(); if (professionId != 0) { SessionWrapper.OrderDetail.ProfessionId = professionId; } SessionWrapper.ModuleName = Constant.SECURE_JOB; }
private void BindAvailableReports(int planId) { List <Report> reports = PlanHelper.GetPlanReports(planId); rptBasicReportList.DataSource = reports; rptBasicReportList.DataBind(); if (SessionWrapper.OrderDetail != null && SessionWrapper.OrderDetail.ProfessionId != 0) { List <Report> optReport = PlanHelper.GetOptionalReports(planId, SessionWrapper.OrderDetail.ProfessionId); if (optReport.Count != 0) { lblOptRpt.Visible = true; rptOptionalPlans.DataSource = PlanHelper.GetOptionalReports(planId, SessionWrapper.OrderDetail.ProfessionId); rptOptionalPlans.DataBind(); } else { lblOptRpt.Visible = false; } } hdnEmpInfoReq.Value = reports.IsEmpInfoRequired().ToString(); hdnEduInfoReq.Value = reports.IsEduInfoRequired().ToString(); hdnLicInfoReq.Value = reports.IsLicInfoRequired().ToString(); hdnRefInfoReq.Value = reports.IsRefInfoRequired().ToString(); hdnDrugVerificationPlan.Value = reports.IsDrugVerificationRequired().ToString(); hdnPlanID.Value = planId.ToString(); }
public void showPlanSummary() { //if (SessionWrapper.AlacartReportList.Count != 0) //{ List <int> alacartRptIDList = SessionWrapper.AlacartReportList; List <Report> alacartReportList = new List <Report>(); Report report; decimal reportTotalPrice = 0; foreach (int reportID in alacartRptIDList) { report = new Report(); report = PlanHelper.GetReportByReportID(reportID); reportTotalPrice = reportTotalPrice + report.Price.Value; alacartReportList.Add(report); } rptBasicReportList.DataSource = alacartReportList; rptBasicReportList.DataBind(); lblTotalPrice.Text = reportTotalPrice.ToString("C"); hdnTotalPriceWithoutDisc.Value = reportTotalPrice.ToString(); ScriptManager.RegisterStartupScript(this.Page, this.Page.GetType(), "alert", "setReportListWidth();", true); //} }
public void showPlanSummary() { decimal reportTotalPrice = 0; int selectedPlanId = SessionWrapper.OrderDetail.PlanId; Plan plan = PlanHelper.GetPlan(SessionWrapper.OrderDetail.PlanId); Decimal PlanPrice = (plan == null) ? 0 : plan.Rate; lblPlanPrice.Text = PlanPrice.ToString("C"); //Get plan reports for display List <EknowIDModel.Report> reports = PlanHelper.GetPlanReports(selectedPlanId); rptBasicReportList.DataSource = reports; rptBasicReportList.DataBind(); reportTotalPrice = PlanPrice; string planName = PlanHelper.GetPlan(selectedPlanId).Name.ToString(); if (planName == "Basic") { imgPaymentHeader.ImageUrl = "~/Images/payment_checkout_basic_2.png"; } if (planName == "Gold") { imgPaymentHeader.ImageUrl = "~/Images/payment_checkout_gold_2.png"; } if (planName == "Platinum") { imgPaymentHeader.ImageUrl = "~/Images/payment_checkout_platinum_2.png"; } if (SessionWrapper.AlacartReportList.Count != 0) { List <int> alacartRptIDList = SessionWrapper.AlacartReportList; List <Report> alacartReportList = new List <Report>(); Report report; foreach (int reportID in alacartRptIDList) { report = new Report(); report = PlanHelper.GetReportByReportID(reportID); reportTotalPrice = reportTotalPrice + report.Price.Value; alacartReportList.Add(report); } rptOptionalReportList.DataSource = alacartReportList; rptOptionalReportList.DataBind(); } else { List <Report> alacartReportList = new List <Report>(); rptOptionalReportList.DataSource = alacartReportList; rptOptionalReportList.DataBind(); } lblTotalPrice.Text = reportTotalPrice.ToString("C"); hdnTotalPriceWithoutDisc.Value = reportTotalPrice.ToString(); }
private void btnRemovePlan_Click(object sender, EventArgs e) { PlanData data = dsPlan[lvPlan.SelectedIndex]; PlanHelper.Create().DeletePlanData(data); LoadPlanData(); lvPlan_SelectedIndexChanged(lvPlan, e); }
/// <summary> /// Handler for a plan item click on the plan's context menu. /// Add a skill to the plan. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void menuPlanItem_Click(object sender, EventArgs e) { var planItem = (ToolStripMenuItem)sender; var tag = (Pair <Plan, SkillLevel>)planItem.Tag; IPlanOperation operation = tag.A.TryPlanTo(tag.B.Skill, tag.B.Level); PlanHelper.SelectPerform(operation); }
private void btnNewPlan_Click(object sender, EventArgs e) { PlanData data = PlanData.Create(); PlanHelper.Create().AddPlanData(data); LoadPlanData(); lvPlan.SelectedIndex = lvPlan.Items.Count - 1; }
public ActionResult AddExercise(AddRmvExerciseToPlan model) { PlanHelper helper = new PlanHelper(); foreach (var exerciseadd in model.SelectedExercises) { helper.AddExerciseToPlan(exerciseadd, model.Plan.Id); } return(RedirectToAction("Index", "Plans")); }
//GET: RemoveUser //ok i don't want list of users to remove, just the one linked to the user.Id public ActionResult RemoveExercise(int exId, int planId) { var plan = db.Plans.Find(planId); AddRmvExerciseToPlan RmvExercise = new AddRmvExerciseToPlan(); PlanHelper helper = new PlanHelper(); var selected = exId; RmvExercise.RmvExercise = db.Exercises.Find(exId); RmvExercise.Plan = plan; return(View(RmvExercise)); }
//GET: AddExercise public ActionResult AddExercise(int id) { var plan = db.Plans.Find(id); AddRmvExerciseToPlan AddExercise = new AddRmvExerciseToPlan(); PlanHelper helper = new PlanHelper(); var selected = plan.Exercises; AddExercise.Exercises = new MultiSelectList(db.Exercises, "Id", "Title", selected); AddExercise.Plan = plan; return(View(AddExercise)); }
private void btnRemoveStep_Click(object sender, EventArgs e) { if (dgvSqlSteps.Tag != null && (!LoadItem)) { PlanData dr = (PlanData)dgvSqlSteps.Tag; int index = dgvSqlSteps.SelectedRows[0].Index; DataGridViewCellCollection cells = dgvSqlSteps.Rows[index].Cells; int PlanDataID = (int)cells["PlanDataID_col"].Value; PlanHelper.Create().DeletePlanItemData(PlanDataID); LoadPlanDataItem(dr); } }
private List <PlanReportData> setPlanData(int reportTypeID) { int professionID = SessionWrapper.OrderDetail.ProfessionId; string[] requiredReport = { "Employment Verification", "Education Verification", "Reference Verification", "Driving Record", "KnowID Drug Test" }; List <PlanReportData> ReportList = new List <PlanReportData>(); Report requireReportData; PlanReportData ReportData; List <Report> reports = PlanHelper.GetReportListByReportTypeId(reportTypeID); List <Report> professioReportLists = PlanHelper.GetReportList(professionID, reportTypeID); foreach (string reportName in requiredReport) { foreach (Report profReportList in professioReportLists) { if (profReportList.Name == reportName) { if (hdnRequiredReport.Value == string.Empty) { hdnRequiredReport.Value = profReportList.Name; } else { hdnRequiredReport.Value = hdnRequiredReport.Value + "," + profReportList.Name; } } } } foreach (Report report in reports) { requireReportData = new Report(); ReportData = new PlanReportData(); ReportData.Name = report.Name; ReportData.Basic = false; foreach (Report profReportList in professioReportLists) { if (profReportList.Name == report.Name) { ReportData.Basic = true; requireReportData.Name = report.Name; basicReportList.Add(requireReportData); goldReportList.Add(requireReportData); PlatinumReportList.Add(requireReportData); } } ReportList.Add(ReportData); } return(ReportList); }
private void LoadPlanDataItem(PlanData dr) { LoadItem = true; dsPlanData = PlanHelper.Create().GetPlanItemData(dr.ID); FailMode.DataSource = fm; FailMode.DisplayMember = "Name"; FailMode.ValueMember = "Value"; dgvSqlSteps.DataSource = dsPlanData; dgvSqlSteps.Tag = dr; dgvSqlSteps.Refresh(); LoadItem = false; }
List <AlacartReportDisplay> dispalyReport(int reportTypeId) { List <AlacartReportDisplay> alacartReports = new List <AlacartReportDisplay>(); //string[] alacartReportList = { "eKnowID State Criminal Check", "eKnowID Criminal MultiState Check", "eKnowID Criminal MultiState Alias", // "OnSite County Check", "Federal Court", "eKnowID International", "Employment Verification", "Education Verification", // "IDentify", "Reference Verification", "eKnowID Drug Test", "Driving Record", "Credit" }; //string[] alacartReportList = {"County Criminal Courthouse Search", "Federal Criminal Courthouse Search", "International Criminal Record Search", // "Employment Verification", "Education Verification", "Reference Verification", // "eKnowID Drug Test", "Driving Record", "County Civil Courthouse Search", "State Criminal Records", "Credit Report", "Global Security Watch List"}; alacartReports = PlanHelper.GetAlacartReportList().Where(p => p.ReportTypeID == reportTypeId && p.IsActive) .Select(p => new AlacartReportDisplay { report = new Report { Name = p.Name, Description = p.Description, Price = p.Price, ReportId = p.ReportId, TurnaroundTime = p.TurnaroundTime, IsMultipleCheckEnabled = p.IsMultipleCheckEnabled, MaxVerificationCount = p.MaxVerificationCount } }).ToList(); //alacartReports.AddRange(reportls) //AlacartReportDisplay alacartReport; //foreach (string reportName in alacartReportList) //{ // foreach (Report report in reportLst) // { // if (report.Name == reportName && report.ReportTypeID == reportTypeId) // { // alacartReport = new AlacartReportDisplay(); // alacartReport.report = new Report(); // alacartReport.report.Name = report.Name; // alacartReport.report.Description = report.Description; // alacartReport.report.Price = report.Price; // alacartReport.report.ReportId = report.ReportId; // alacartReport.report.TurnaroundTime = report.TurnaroundTime; // alacartReport.report.IsMultipleCheckEnabled = report.IsMultipleCheckEnabled; // alacartReport.report.MaxVerificationCount = report.MaxVerificationCount; // alacartReports.Add(alacartReport); // break; // } // } //} return(alacartReports); }
public static OrderHistoryData GetIncludeReportList(int OrderId) { //var isAdmin = SessionWrapper.LoggedUser.Email == Constant.CONST_CMS_ADMIN_USERID ? true : SessionWrapper.LoggedUser.IsAdmin ? true : false; var isAdmin = null; OrderHistoryData orderHistoryData; orderHistoryData = new OrderHistoryData(); decimal totalPrice = 0; List <OrderHistory> orders = OrderHistoryHelper.GetOrders(SessionWrapper.LoggedUser.UserId, isAdmin); OrderHistory orderHistory = orders.Where(ord => ord.OrderId == OrderId).FirstOrDefault(); orderHistoryData.packageName = orderHistory.Plan; orderHistoryData.packagePrice = orderHistory.OrderTypeName != Constant.UNCOVER_BACKGROUND ? orderHistory.Price.ToString("C") : string.Empty; orderHistoryData.paidPrice = orderHistory.Paid.ToString("C"); if (orderHistory.OrderTypeName != Constant.UNCOVER_BACKGROUND) { orderHistoryData.basicReportList = OrderStatusHelper.GetReportList(OrderId); orderHistoryData.basicReportList.Sort(); } List <EknowIDModel.AlacartReport> additionalReportList = OrderStatusHelper.GetAdditionalReportList(OrderId); totalPrice = orderHistory.Price; Report report; AlacarteReports alacarteReport; List <AlacarteReports> alacartReportList = new List <AlacarteReports>(); foreach (EknowIDModel.AlacartReport alacartReport in additionalReportList) { report = new Report(); alacarteReport = new AlacarteReports(); report = PlanHelper.GetReportByReportID(alacartReport.ReportId); alacarteReport.reportName = report.Name; alacarteReport.Price = report.Price.Value;; totalPrice = totalPrice + report.Price.Value; alacartReportList.Add(alacarteReport); } orderHistoryData.totalPrice = totalPrice.ToString("C"); orderHistoryData.additionalReportList = alacartReportList; orderHistoryData.OrderType = orderHistory.OrderTypeName; orderHistoryData.discountPrice = orderHistory.ReportDiscount; return(orderHistoryData); }
private void btnNewStep_Click(object sender, EventArgs e) { if (dgvSqlSteps.Tag != null && (!LoadItem)) { PlanData dr = (PlanData)dgvSqlSteps.Tag; PlanDataItem item = PlanDataItem.Create(); item.PlanID = dr.ID; PlanHelper.Create().AddPlanItemData(item); LoadPlanDataItem(dr); int index = dgvSqlSteps.Rows.Count - 1; DataGridViewCellCollection cells = dgvSqlSteps.Rows[index].Cells; dgvSqlSteps.CurrentCell = cells[1]; dgvSqlSteps.BeginEdit(true); } }
public PlanPaginationDTO GetByCompanyId(PlanGetByCompanyIdRequestDTO requestDto) { var plans = _planRepository.GetByCompanyIdGrouped(requestDto.Page, requestDto.ItemsPerPage, requestDto.CompanyId, requestDto.FromDate, requestDto.ToDate); var planDtos = new List <PlanDTO>(); foreach (var item in plans.Plans) { var shifts = PlanHelper.ShiftsToList(item.Shifts); var shiftNames = PlanHelper.GetShiftNames(shifts); var mealIds = new List <int>(); var meals = new List <MealDTO>(); foreach (var meal in item.Meals) { mealIds.Add(meal.Id); meals.Add(new MealDTO { Id = meal.Id, Name = meal.Name, NameForeign = meal.NameForeign, ImageBase64 = "", PlanId = 0, Allergens = new List <CommonNameDTO>(), Ingredients = new List <CommonNameDTO>() }); } planDtos.Add(new PlanDTO { Ids = item.Ids, Shifts = shifts, ShiftNames = shiftNames, Date = item.Date, EditableFrom = item.EditableFrom, EditableTo = item.EditableTo, CompanyId = item.CompanyId, MealIds = mealIds, Meals = meals }); } return(new PlanPaginationDTO { Plans = planDtos, TotalRows = plans.TotalRows }); }
public List <ReportResponseDTO> GetReports(ReportRequestDTO requestDto) { var reports = _planRepository.GetReports(requestDto.CompanyId, requestDto.FromDate, requestDto.ToDate); var response = new List <ReportResponseDTO>(); foreach (var report in reports) { response.Add(new ReportResponseDTO { Date = report.Date, MealName = report.MealName, Shift = PlanHelper.GetShiftName(report.Shift), TotalOrders = report.TotalOrders }); } return(response); }
public List <ReportDetailedResponseDTO> GetDetailedReports(ReportDetailedRequestDTO requestDto) { var reports = _planRepository.GetDetailedReports(requestDto.CompanyId, requestDto.FromDate, requestDto.ToDate, requestDto.Shift, requestDto.Delivered); var response = new List <ReportDetailedResponseDTO>(); foreach (var report in reports) { response.Add(new ReportDetailedResponseDTO { Date = report.Date, MealName = report.MealName, Shift = PlanHelper.GetShiftName(report.Shift), IsDelivered = report.IsDelivered }); } return(response); }
private void btnSaveStep_Click(object sender, EventArgs e) { if (dgvSqlSteps.Tag != null && (!LoadItem)) { PlanData dr = (PlanData)dgvSqlSteps.Tag; int index = dgvSqlSteps.SelectedRows[0].Index; DataGridViewCellCollection cells = dgvSqlSteps.Rows[index].Cells; PlanDataItem item = PlanDataItem.Create(); item.PlanID = dr.ID; item.PlanDataID = (int)cells["PlanDataID_col"].Value; item.PlanDataName = cells["PlanDataName_col"].Value.ToString(); item.PlanSql = cells["PlanSql_col"].Value.ToString(); item.Index = (int)cells["Index"].Value; item.FailMode = (FailMode)(int)cells["FailMode"].Value; PlanHelper.Create().UpdatePlanItemData(item); LoadPlanDataItem(dr); } }
public async Task <string> Recharge(RechargeInput input) { var user = AuthHelper.GetCurrentUser(); var usermanager = AuthHelper.GetUserManager(); try { StripeConfiguration.SetApiKey(System.Configuration.ConfigurationManager.AppSettings["StripeApiKey"]); } catch (Exception ex) { //log the exception and return the message to the caller return(ex.Message); } return(await System.Threading.Tasks.Task.Run(() => { try { var myCharge = new StripeChargeCreateOptions { Amount = input.HoursAdded * PlanHelper.GetPlan(input.PlanID).Rate, Currency = "usd", Description = "Recharge account balance", CustomerId = user.StripeCustomerId, }; var chargeService = new StripeChargeService(); var stripeCharge = chargeService.Create(myCharge); //Update the account balance in the system user.AccountBalance += input.HoursAdded; user.StripePlanId = input.PlanID; usermanager.Update(user); return stripeCharge.Id; } catch (Exception ex) { throw ex; } })); }
public List <OrderFilteredResponseDTO> GetFiltered(OrderFilteredRequestDTO request) { var orders = _orderRepository.GetFiltered(request.EmployeeIds, request.FromDate, request.ToDate); var response = new List <OrderFilteredResponseDTO>(); foreach (var item in orders) { response.Add(new OrderFilteredResponseDTO { Employee = item.Employee.User.UserName, Date = item.Plan.Date, Meal = item.Plan.Meal.Name, OrderId = item.Id, Shift = PlanHelper.GetShiftName(item.Shift), IsDelivered = item.IsDelivered }); } return(response); }
/// <summary> /// Handler for a plan item click on the plan's context menu. /// Add a skill to the plan. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private static void menuPlanItem_Click(object sender, EventArgs e) { ToolStripMenuItem planItem = (ToolStripMenuItem)sender; KeyValuePair <Plan, SkillLevel> tag = (KeyValuePair <Plan, SkillLevel>)planItem.Tag; IPlanOperation operation = tag.Key.TryPlanTo(tag.Value.Skill, tag.Value.Level); if (operation == null) { return; } PlanWindow planWindow = PlanWindow.ShowPlanWindow(plan: operation.Plan); if (planWindow == null) { return; } PlanHelper.SelectPerform(new PlanToOperationWindow(operation), planWindow, operation); }
public void showPlanSummary() { if (SessionWrapper.AlacartReportList.Count != 0) { List <int> alacartRptIDList = SessionWrapper.AlacartReportList; List <Report> alacartReportList = new List <Report>(); Report report; decimal reportTotalPrice = 0; foreach (int reportID in alacartRptIDList) { report = new Report(); report = PlanHelper.GetReportByReportID(reportID); reportTotalPrice = reportTotalPrice + report.Price.Value; alacartReportList.Add(report); } rptBasicReportList.DataSource = alacartReportList; rptBasicReportList.DataBind(); lblTotalPrice.Text = reportTotalPrice.ToString("C"); } }
public PlanDTO GetByIds(List <int> ids) { var plan = _planRepository.GetByIds(ids); var shifts = PlanHelper.ShiftsToList(plan.Shifts); var shiftNames = PlanHelper.GetShiftNames(shifts); var mealIds = new List <int>(); var meals = new List <MealDTO>(); foreach (var meal in plan.Meals) { mealIds.Add(meal.Id); meals.Add(new MealDTO { Id = meal.Id, Name = meal.Name, NameForeign = meal.NameForeign, ImageBase64 = "", PlanId = 0, Allergens = new List <CommonNameDTO>(), Ingredients = new List <CommonNameDTO>() }); } var planDto = new PlanDTO { Ids = plan.Ids, Shifts = shifts, ShiftNames = shiftNames, Date = plan.Date, EditableFrom = plan.EditableFrom, EditableTo = plan.EditableTo, CompanyId = plan.CompanyId, MealIds = mealIds, Meals = meals }; return(planDto); }
public string CreateCustomer(RechargeInput c) { var user = AuthHelper.GetCurrentUser(); var usermanager = AuthHelper.GetUserManager(); try { StripeConfiguration.SetApiKey(System.Configuration.ConfigurationManager.AppSettings["StripeApiKey"]); var myCustomer = new StripeCustomerCreateOptions(); myCustomer.Email = user.Email; myCustomer.Description = user.Organization + " (" + user.Email + ")"; myCustomer.SourceToken = c.AuthorizationCode; myCustomer.PlanId = c.PlanID; var customerService = new StripeCustomerService(); StripeCustomer customer = customerService.Create(myCustomer); //Update the user with the stripe customer id and plan info user.StripeCustomerId = customer.Id; user.StripePlanId = c.PlanID; user.AccountBalance = PlanHelper.GetPlan(c.PlanID).Hours; usermanager.Update(user); return(customer.Id); } catch (Exception ex) { //log the exception and return the message to the caller throw ex; } //Create a JIRA epic and store it with the user try { WorkItemController wic = new WorkItemController(); wic.CreateCustomerBacklog(); } catch { } }
List <UpgradeReportDisplay> dispalyReport(int reportTypeId) { List <UpgradeReportDisplay> alacartReports = new List <UpgradeReportDisplay>(); List <int> planReportId = PlanHelper.GetPlanReports(SessionWrapper.OrderDetail.PlanId).Select(p => p.ReportId).ToList(); //string[] alacartReportList = {"County Criminal Courthouse Search", "Federal Criminal Courthouse Search", "International Criminal Record Search", "Employment Verification", "Education Verification", "IDentify", "Reference Verification", "eKnowID Drug Test", "Driving Record", "Credit", "County Civil Courthouse Search", "State Criminal Records", "Credit Report", "Global Security Watch List" }; alacartReports = PlanHelper.GetAlacartReportList().Where(p => p.ReportTypeID == reportTypeId && p.IsActive && (p.MaxVerificationCount > 1 || !planReportId.Contains(p.ReportId))) .Select(p => new UpgradeReportDisplay { report = new Report { Name = p.Name, Description = p.Description, Price = p.Price, ReportId = p.ReportId, TurnaroundTime = p.TurnaroundTime, IsMultipleCheckEnabled = p.IsMultipleCheckEnabled, MaxVerificationCount = p.MaxVerificationCount } }).ToList(); return(alacartReports); }