/// <summary> /// /// </summary> /// <param name="mf"></param> /// <param name="planOtherFee"></param> /// <param name="Close"></param> public frmPlanOtherFee(frmMain mf, PlanOtherFee planOtherFee, FormClosedEventHandler Close = null) { frmSplashScreen ss = new frmSplashScreen(); ss.Show(); Application.DoEvents(); InitializeComponent(); frmMain_Parent = mf; this.MaximumSize = Screen.PrimaryScreen.WorkingArea.Size; Application.AddMessageFilter(this); controlsToMove.Add(this.pnlSummaryTabHeader); controlsToMove.Add(this.panel16); controlsToMove.Add(this.label1); controlsToMove.Add(this.label23); FormClosed += Close; Plan plan = new Plan(planOtherFee.PlanId); CurrentPlanOtherFee = planOtherFee; txtPlan.Text = plan.Name; txtNotes.Text = CurrentPlanOtherFee.Notes; txtNotes.Focus(); if (CurrentPlanOtherFee.Fee != null) { txtFee.Text = ((decimal)CurrentPlanOtherFee.Fee).ToString("#,##"); } // Benchmarks removed for misc fees (still in DB) /*if (CurrentPlanOtherFee.Benchmark25Fee != null) * { * txtBenchmark25Fee.Text = ((decimal)CurrentPlanOtherFee.Benchmark25Fee).ToString("#,##"); * } * * if (CurrentPlanOtherFee.Benchmark50Fee != null) * { * txtBenchmark50Fee.Text = ((decimal)CurrentPlanOtherFee.Benchmark50Fee).ToString("#,##"); * } * * if (CurrentPlanOtherFee.Benchmark75Fee != null) * { * txtBenchmark75Fee.Text = ((decimal)CurrentPlanOtherFee.Benchmark75Fee).ToString("#,##"); * }*/ if (CurrentPlanOtherFee.AsOfDate != null) { dateAsOfDate.Value = (DateTime)CurrentPlanOtherFee.AsOfDate; dateAsOfDate.Checked = true; } else { dateAsOfDate.Checked = false; } chbxRevenueSharingPaid.Checked = CurrentPlanOtherFee.RevenueSharingPaid; chbxForfeituresPaid.Checked = CurrentPlanOtherFee.ForfeituresPaid; chbxParticipantsPaid.Checked = CurrentPlanOtherFee.ParticipantsPaid; chbxPlanSponsorPaid.Checked = CurrentPlanOtherFee.PlanSponsorPaid; CurrentTabLabel = label46; // Summary tab label highlightSelectedTabLabel(CurrentTabLabel); ss.Close(); this.Show(); }
/// <summary> /// /// </summary> /// <param name="mf"></param> /// <param name="accountId"></param> /// <param name="Close"></param> public frmPlanRecordKeeperFee(frmMain mf, PlanRecordKeeperFee planRecordKeeperFee, FormClosedEventHandler Close = null) { frmSplashScreen ss = new frmSplashScreen(); ss.Show(); Application.DoEvents(); InitializeComponent(); frmMain_Parent = mf; this.MaximumSize = Screen.PrimaryScreen.WorkingArea.Size; Application.AddMessageFilter(this); controlsToMove.Add(this.pnlSummaryTabHeader); controlsToMove.Add(this.panel16); controlsToMove.Add(this.label1); controlsToMove.Add(this.label23); FormClosed += Close; Plan plan = new Plan(planRecordKeeperFee.PlanId); DataIntegrationHub.Business.Entities.RecordKeeper rk = new DataIntegrationHub.Business.Entities.RecordKeeper(planRecordKeeperFee.RecordKeeperId); CurrentPlanRecordKeeperFee = planRecordKeeperFee; txtPlan.Text = plan.Name; txtRecordKeeper.Text = rk.Name; if (CurrentPlanRecordKeeperFee.Fee != null) { txtFee.Text = ((decimal)CurrentPlanRecordKeeperFee.Fee).ToString("#,##"); } if (CurrentPlanRecordKeeperFee.BenchmarkFee != null) { txtBenchmarkFee.Text = ((decimal)CurrentPlanRecordKeeperFee.BenchmarkFee).ToString("#,##"); } if (CurrentPlanRecordKeeperFee.AsOfDate != null) { txtAsOfDate.Text = ((DateTime)CurrentPlanRecordKeeperFee.AsOfDate).ToString("MM/dd/yyyy"); } if (CurrentPlanRecordKeeperFee.PaymentRevenueSharing != null) { txtPaymentRevenueSharing.Text = ((decimal)CurrentPlanRecordKeeperFee.PaymentRevenueSharing).ToString("#,##"); } if (CurrentPlanRecordKeeperFee.PaymentForfeitures != null) { txtPaymentForfeitures.Text = ((decimal)CurrentPlanRecordKeeperFee.PaymentForfeitures).ToString("#,##"); } if (CurrentPlanRecordKeeperFee.PaymentParticipants != null) { txtPaymentParticipants.Text = ((decimal)CurrentPlanRecordKeeperFee.PaymentParticipants).ToString("#,##"); } if (CurrentPlanRecordKeeperFee.PaymentPlanSponsor != null) { txtPaymentPlanSponsor.Text = ((decimal)CurrentPlanRecordKeeperFee.PaymentPlanSponsor).ToString("#,##"); } ss.Close(); this.Show(); }
/// <summary> /// /// </summary> /// <param name="mf"></param> /// <param name="planRecordKeeperProductFee"></param> /// <param name="Close"></param> public frmPlanRecordKeeperProductFee(frmMain mf, PlanRecordKeeperProductFee planRecordKeeperProductFee, FormClosedEventHandler Close = null) { frmSplashScreen ss = new frmSplashScreen(); ss.Show(); Application.DoEvents(); InitializeComponent(); frmMain_Parent = mf; this.MaximumSize = Screen.PrimaryScreen.WorkingArea.Size; Application.AddMessageFilter(this); controlsToMove.Add(this.pnlSummaryTabHeader); controlsToMove.Add(this.panel16); controlsToMove.Add(this.label1); controlsToMove.Add(this.label23); FormClosed += Close; Plan plan = new Plan(planRecordKeeperProductFee.PlanId); PlanRecordKeeperProduct rkpd = new PlanRecordKeeperProduct(planRecordKeeperProductFee.RecordKeeperProductId); Product pd = new Product(rkpd.ProductId); DataIntegrationHub.Business.Entities.RecordKeeper rk = new DataIntegrationHub.Business.Entities.RecordKeeper(pd.RecordKeeperId); CurrentPlanRecordKeeperProductFee = planRecordKeeperProductFee; txtPlan.Text = plan.Name; txtRecordKeeper.Text = rk.Name; txtProduct.Text = pd.Name; txtNotes.Text = CurrentPlanRecordKeeperProductFee.Notes; txtNotes.Focus(); if (CurrentPlanRecordKeeperProductFee.Fee != null) { txtFee.Text = ((decimal)CurrentPlanRecordKeeperProductFee.Fee).ToString("#,##"); } if (CurrentPlanRecordKeeperProductFee.Benchmark25Fee != null) { txtBenchmark25Fee.Text = ((decimal)CurrentPlanRecordKeeperProductFee.Benchmark25Fee).ToString("#,##"); } if (CurrentPlanRecordKeeperProductFee.Benchmark50Fee != null) { txtBenchmark50Fee.Text = ((decimal)CurrentPlanRecordKeeperProductFee.Benchmark50Fee).ToString("#,##"); } if (CurrentPlanRecordKeeperProductFee.Benchmark75Fee != null) { txtBenchmark75Fee.Text = ((decimal)CurrentPlanRecordKeeperProductFee.Benchmark75Fee).ToString("#,##"); } if (CurrentPlanRecordKeeperProductFee.AsOfDate != null) { dateAsOfDate.Value = (DateTime)CurrentPlanRecordKeeperProductFee.AsOfDate; dateAsOfDate.Checked = true; } else { dateAsOfDate.Checked = false; } chbxRevenueSharingPaid.Checked = CurrentPlanRecordKeeperProductFee.RevenueSharingPaid; chbxForfeituresPaid.Checked = CurrentPlanRecordKeeperProductFee.ForfeituresPaid; chbxParticipantsPaid.Checked = CurrentPlanRecordKeeperProductFee.ParticipantsPaid; chbxPlanSponsorPaid.Checked = CurrentPlanRecordKeeperProductFee.PlanSponsorPaid; CurrentTabLabel = label46; // Summary tab label highlightSelectedTabLabel(CurrentTabLabel); ss.Close(); this.Show(); }
/// <summary> /// /// </summary> /// <param name="mf"></param> /// <param name="accountId"></param> /// <param name="Close"></param> public frmSearchBid(frmMain mf, SearchBid searchBid, FormClosedEventHandler Close = null) { frmSplashScreen ss = new frmSplashScreen(); ss.Show(); Application.DoEvents(); InitializeComponent(); frmMain_Parent = mf; this.MaximumSize = Screen.PrimaryScreen.WorkingArea.Size; Application.AddMessageFilter(this); controlsToMove.Add(this.pnlSummaryTabHeader); controlsToMove.Add(this.panel16); controlsToMove.Add(this.label1); controlsToMove.Add(this.label23); FormClosed += Close; CurrentSearchBid = searchBid; txtRecordKeeper.Text = new DataIntegrationHub.Business.Entities.RecordKeeper(searchBid.RecordKeeperId).Name; txtFullName.Text = searchBid.FullName; txtEmail.Text = searchBid.Email; txtConfirmInvestments.Text = searchBid.ConfirmInvestments.ToString(); txtConfirmServices.Text = searchBid.ConfirmServices.ToString(); txtRequiredRevenue.Text = searchBid.RequiredRevenue.ToString("#,##.##"); txtRequiredRevenueExplanation.Text = searchBid.RequiredRevenueExplanation; txtAncillaryServices.Text = searchBid.AncillaryServices; txtNotes.Text = searchBid.Notes; if (searchBid.IsFinalist == null) { cboIsFinalist.SelectedIndex = 0; } else if (((SqlBoolean)searchBid.IsFinalist) == SqlBoolean.True) { cboIsFinalist.SelectedIndex = 1; } else { cboIsFinalist.SelectedIndex = 2; } if (searchBid.IsRecommended == null) { cboIsRecommended.SelectedIndex = 0; } else if (((SqlBoolean)searchBid.IsRecommended) == SqlBoolean.True) { cboIsRecommended.SelectedIndex = 1; } else { cboIsRecommended.SelectedIndex = 2; } cboQuestionViews.SelectedIndex = 0; CurrentTabLabel = label46; // Summary tab label highlightSelectedTabLabel(CurrentTabLabel); ss.Close(); this.Show(); }