/// <summary> /// /// </summary> /// <param name="mf"></param> /// <param name="accountId"></param> /// <param name="Close"></param> public frmPlanRecordKeeperFee(frmMain mf, PlanRecordKeeper planRecordKeeper, 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(planRecordKeeper.PlanId); DataIntegrationHub.Business.Entities.RecordKeeper rk = new DataIntegrationHub.Business.Entities.RecordKeeper(planRecordKeeper.RecordKeeperId); CurrentPlanRecordKeeperFee = new PlanRecordKeeperFee(); CurrentPlanRecordKeeperFee.PlanId = plan.PlanId; CurrentPlanRecordKeeperFee.RecordKeeperId = rk.RecordKeeperId; txtPlan.Text = plan.Name; txtRecordKeeper.Text = rk.Name; ss.Close(); this.Show(); }
/// <summary> /// /// </summary> /// <param name="mf"></param> /// <param name="accountId"></param> /// <param name="Close"></param> public frmSearchRecordKeeper(frmMain mf, SearchRecordKeeper searchRecordKeeper, 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; PreloadCbos(); CurrentSearchRecordKeeper = searchRecordKeeper; DataIntegrationHub.Business.Entities.RecordKeeper rk = new DataIntegrationHub.Business.Entities.RecordKeeper(CurrentSearchRecordKeeper.RecordKeeperId); txtOrdinal.Text = CurrentSearchRecordKeeper.Ordinal.ToString(); cboRecordKeeper.Text = rk.Name; ss.Close(); this.Show(); }
private void LoadDgvResults() { DataTable dataTable = SearchRecordKeeper.GetAssociated(CurrentSearch); var dataTableEnum = dataTable.AsEnumerable(); /// Set the datatable based on the SelectedIndex of <see cref="cboResultsView"/>. switch (cboResultsView.SelectedIndex) { case 0: dataTableEnum = dataTableEnum.Where(x => x.Field <int>("StateCode") == 0); break; case 1: dataTableEnum = dataTableEnum.Where(x => x.Field <int>("StateCode") == 1); break; default: return; } if (dataTableEnum.Any()) { dataTable = dataTableEnum.CopyToDataTable(); } else { dataTable.Rows.Clear(); } dataTable.Columns.Add("RecordKeeper", typeof(string)); dataTable.Columns.Add("URL", typeof(string)); dgvResults.DataSource = dataTable; // Display/order the columns. dgvResults.Columns["SearchRecordKeeperId"].Visible = false; dgvResults.Columns["SearchId"].Visible = false; dgvResults.Columns["RecordKeeperId"].Visible = false; dgvResults.Columns["ModifiedBy"].Visible = false; dgvResults.Columns["ModifiedOn"].Visible = false; dgvResults.Columns["CreatedBy"].Visible = false; dgvResults.Columns["CreatedOn"].Visible = false; dgvResults.Columns["StateCode"].Visible = false; dgvResults.Columns["Ordinal"].DisplayIndex = 0; dgvResults.Columns["RecordKeeper"].DisplayIndex = 1; dgvResults.Columns["URL"].DisplayIndex = 2; int rowIndex = 0; foreach (DataGridViewRow dr in dgvResults.Rows) { Guid recordKeeperId = new Guid(dr.Cells["RecordKeeperId"].Value.ToString()); DataIntegrationHub.Business.Entities.RecordKeeper recordKeeper = new DataIntegrationHub.Business.Entities.RecordKeeper(recordKeeperId); dgvResults.Rows[rowIndex].Cells["RecordKeeper"].Value = recordKeeper.Name; dgvResults.Rows[rowIndex].Cells["URL"].Value = "http://vendor.pension-consultants.com/bid/?rk=" + recordKeeper.RecordKeeperId.ToString() + "&s=" + CurrentSearch.Id.ToString(); rowIndex++; } }
private void LoadDgvRks() { DataTable dataTable = PlanRecordKeeper.GetAssociated(CurrentPlan.PlanId); var dataTableEnum = dataTable.AsEnumerable(); /// Set the datatable based on the SelectedIndex of <see cref="cboRkViews"/>. switch (cboRkViews.SelectedIndex) { case 0: dataTableEnum = dataTableEnum.Where(x => x.Field <int>("StateCode") == 0); break; case 1: dataTableEnum = dataTableEnum.Where(x => x.Field <int>("StateCode") == 1); break; default: return; } if (dataTableEnum.Any()) { dataTable = dataTableEnum.CopyToDataTable(); } else { dataTable.Rows.Clear(); } dataTable.Columns.Add("Name"); int i = 0; foreach (DataRow dr in dataTable.Rows) { Guid recordKeeperId = new Guid(dr["RecordKeeperId"].ToString()); DataIntegrationHub.Business.Entities.RecordKeeper recordKeeper = new DataIntegrationHub.Business.Entities.RecordKeeper(recordKeeperId); dataTable.Rows[i]["Name"] = recordKeeper.Name; i++; } dgvRKs.DataSource = dataTable; // Display/order the columns. dgvRKs.Columns["PlanRecordKeeperId"].Visible = false; dgvRKs.Columns["RecordKeeperId"].Visible = false; dgvRKs.Columns["PlanId"].Visible = false; dgvRKs.Columns["CreatedBy"].Visible = false; dgvRKs.Columns["CreatedOn"].Visible = false; dgvRKs.Columns["ModifiedBy"].Visible = false; dgvRKs.Columns["ModifiedOn"].Visible = false; dgvRKs.Columns["StateCode"].Visible = false; dgvRKs.Columns["Name"].DisplayIndex = 0; dgvRKs.Columns["DateAdded"].DisplayIndex = 1; dgvRKs.Columns["DateRemoved"].DisplayIndex = 2; }
/// <summary> /// /// </summary> /// <param name="mf"></param> /// <param name="accountId"></param> /// <param name="Close"></param> public frmPlanRecordKeeper(frmMain mf, PlanRecordKeeper planRecordKeeper, 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; PreloadCbos(); CurrentPlanRecordKeeper = planRecordKeeper; if (CurrentPlanRecordKeeper.PlanId != null) { Plan plan = new Plan(CurrentPlanRecordKeeper.PlanId); cboPlan.Text = plan.Name + " - " + plan.Description; } if (CurrentPlanRecordKeeper.RecordKeeperId != null) { DataIntegrationHub.Business.Entities.RecordKeeper recordKeeper = new DataIntegrationHub.Business.Entities.RecordKeeper(CurrentPlanRecordKeeper.RecordKeeperId); cboRecordKeeper.Text = recordKeeper.Name; } if (CurrentPlanRecordKeeper.DateAdded != null) { txtDateAdded.Text = ((DateTime)CurrentPlanRecordKeeper.DateAdded).ToString("MM/dd/yyyy"); } if (CurrentPlanRecordKeeper.DateRemoved != null) { txtDateRemoved.Text = ((DateTime)CurrentPlanRecordKeeper.DateRemoved).ToString("MM/dd/yyyy"); } cboFeeViews.SelectedIndex = 0; cboServicesView.SelectedIndex = 0; LoadDgvServices(true); ss.Close(); this.Show(); }
public frmRecordKeeper(frmMain mf, VSP.Business.Entities.RecordKeeper recordKeeper, 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; DataIntegrationHub.Business.Entities.RecordKeeper dihRk = new DataIntegrationHub.Business.Entities.RecordKeeper(recordKeeper.Id); CurrentRK = recordKeeper; txtName.Text = dihRk.Name; txtRfpName.Text = dihRk.RfpContactName; txtRfpEmail.Text = dihRk.RfpContactEmail; txtPhilosophyStrategy.Text = CurrentRK.PhilosophyStrategy; txtPoliciesProcedures.Text = CurrentRK.PoliciesProcedures; txtSecurityTechnology.Text = CurrentRK.SecurityTechnology; txtCredentialsExperience.Text = CurrentRK.CredentialsExperiences; txtActionsPenalties.Text = CurrentRK.ActionsPenalties; txtMergersAcquisitions.Text = CurrentRK.MergersAcquisitions; txtFeeArrangementsRelationships.Text = CurrentRK.FeeArrangementsRelationships; if (CurrentRK.PlansServiced != null) { txtPlansServiced.Text = ((int)CurrentRK.PlansServiced).ToString(); } if (CurrentRK.AssetsServiced != null) { txtAssetsServiced.Text = ((decimal)CurrentRK.AssetsServiced).ToString(); } cboProductViews.SelectedIndex = 0; CurrentTabLabel = lblMenuSummary; // Summary tab label highlightSelectedTabLabel(CurrentTabLabel); ss.Close(); this.Show(); }
private void LoadRecordKeeper() { string recordKeeperId = Request.QueryString["rk"]; try { Guid id = Guid.Parse(recordKeeperId); recordKeeper = new DataIntegrationHub.Business.Entities.RecordKeeper(id); } catch { recordKeeper = null; } }
private void btnDeleteRk_Click(object sender, EventArgs e) { int index = dgvResults.CurrentRow.Index; Guid searchRecordKeeperId = new Guid(dgvResults.Rows[index].Cells["SearchRecordKeeperId"].Value.ToString()); SearchRecordKeeper searchRecordKeeper = new SearchRecordKeeper(searchRecordKeeperId); DataIntegrationHub.Business.Entities.RecordKeeper rk = new DataIntegrationHub.Business.Entities.RecordKeeper(searchRecordKeeper.RecordKeeperId); DialogResult result = MessageBox.Show("Are you sure you wish to remove " + rk.Name + " from the search results?", "Attention", MessageBoxButtons.YesNo); if (result == DialogResult.Yes) { searchRecordKeeper.DeleteRecordFromDatabase(); LoadDgvResults(); } }
/// <summary> /// /// </summary> /// <param name="mf"></param> /// <param name="planRecordKeeperProduct"></param> /// <param name="Close"></param> public frmPlanRecordKeeperProductFee(frmMain mf, PlanRecordKeeperProduct planRecordKeeperProduct, 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(planRecordKeeperProduct.PlanId); PlanRecordKeeperProduct rkpd = new PlanRecordKeeperProduct(planRecordKeeperProduct.RecordKeeperProductId); Product pd = new Product(rkpd.ProductId); txtProduct.Text = pd.Name; CurrentPlanRecordKeeperProductFee = new PlanRecordKeeperProductFee(); CurrentPlanRecordKeeperProductFee.PlanId = plan.PlanId; CurrentPlanRecordKeeperProductFee.RecordKeeperProductId = rkpd.RecordKeeperProductId; txtPlan.Text = plan.Name; DataIntegrationHub.Business.Entities.RecordKeeper rk = new DataIntegrationHub.Business.Entities.RecordKeeper(pd.RecordKeeperId); txtRecordKeeper.Text = rk.Name; 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 frmPlanRecordKeeperProduct(frmMain mf, PlanRecordKeeperProduct planRecordKeeperProduct, 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; PreloadCbos(); CurrentPlanRecordKeeperProduct = planRecordKeeperProduct; if (CurrentPlanRecordKeeperProduct.PlanId != null) { Plan plan = new Plan(CurrentPlanRecordKeeperProduct.PlanId); cboPlan.Text = plan.Name + " - " + plan.Description; } if (CurrentPlanRecordKeeperProduct.ProductId != null) { Product pd = new Product(CurrentPlanRecordKeeperProduct.ProductId); DataIntegrationHub.Business.Entities.RecordKeeper recordKeeper = new DataIntegrationHub.Business.Entities.RecordKeeper(pd.RecordKeeperId); cboRecordKeeper.Text = recordKeeper.Name; LoadCboProduct(); cboProduct.Text = pd.Name; } else { LoadCboProduct(); } if (CurrentPlanRecordKeeperProduct.DateAdded != null) { dateAdded.Value = (DateTime)CurrentPlanRecordKeeperProduct.DateAdded; dateAdded.Checked = true; } else { dateAdded.Checked = false; } if (CurrentPlanRecordKeeperProduct.DateRemoved != null) { dateRemoved.Value = (DateTime)CurrentPlanRecordKeeperProduct.DateRemoved; dateRemoved.Checked = true; } else { dateRemoved.Checked = false; } cboFeeViews.SelectedIndex = 0; cboServicesView.SelectedIndex = 0; LoadDgvServices(true); CurrentTabLabel = label46; // Summary tab label highlightSelectedTabLabel(CurrentTabLabel); 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(); }
private void LoadDgvBids() { DataTable dataTable = SearchBid.GetAssociated(CurrentSearch); var dataTableEnum = dataTable.AsEnumerable(); /// Set the datatable based on the SelectedIndex of <see cref="cboBidViews"/>. switch (cboBidViews.SelectedIndex) { case 0: dataTableEnum = dataTableEnum.Where(x => x.Field <int>("StateCode") == 0); break; case 1: dataTableEnum = dataTableEnum.Where(x => x.Field <int>("StateCode") == 1); break; default: return; } if (dataTableEnum.Any()) { dataTable = dataTableEnum.CopyToDataTable(); } else { dataTable.Rows.Clear(); } dataTable.Columns.Add("RecordKeeper", typeof(string)); dgvBids.DataSource = dataTable; // Display/order the columns. dgvBids.Columns["SearchBidId"].Visible = false; dgvBids.Columns["SearchId"].Visible = false; dgvBids.Columns["RecordKeeperId"].Visible = false; dgvBids.Columns["Email"].Visible = false; dgvBids.Columns["ConfirmInvestments"].Visible = false; dgvBids.Columns["ConfirmServices"].Visible = false; dgvBids.Columns["RequiredRevenueExplanation"].Visible = false; dgvBids.Columns["AncillaryServices"].Visible = false; dgvBids.Columns["Notes"].Visible = false; dgvBids.Columns["ModifiedBy"].Visible = false; dgvBids.Columns["ModifiedOn"].Visible = false; dgvBids.Columns["CreatedBy"].Visible = false; dgvBids.Columns["CreatedOn"].Visible = false; dgvBids.Columns["StateCode"].Visible = false; dgvBids.Columns["FullName"].DisplayIndex = 0; dgvBids.Columns["RecordKeeper"].DisplayIndex = 1; dgvBids.Columns["RequiredRevenue"].DisplayIndex = 2; dgvBids.Columns["IsFinalist"].DisplayIndex = 3; dgvBids.Columns["IsRecommended"].DisplayIndex = 4; int rowIndex = 0; foreach (DataGridViewRow dr in dgvBids.Rows) { Guid recordKeeperId = new Guid(dr.Cells["RecordKeeperId"].Value.ToString()); DataIntegrationHub.Business.Entities.RecordKeeper recordKeeper = new DataIntegrationHub.Business.Entities.RecordKeeper(recordKeeperId); dgvBids.Rows[rowIndex].Cells["RecordKeeper"].Value = recordKeeper.Name; rowIndex++; } }
private void LoadDgvIssues() { DataTable dataTable = new DataTable(); /// Set the datatable based on the SelectedIndex of <see cref="cboIssueViews"/>. switch (cboIssueViews.SelectedIndex) { case 0: dataTable = ServiceIssue.GetActive(); break; case 1: dataTable = ServiceIssue.GetInactive(); break; default: return; } if (dataTable.Rows.Count > 0) { var dt = dataTable.AsEnumerable().Where(x => x.Field <Guid?>("PlanId") == CurrentPlan.PlanId); if (dt.Any()) { dataTable = dt.CopyToDataTable(); } else { dataTable.Rows.Clear(); } } // Add plan name column and fill data dataTable.Columns.Add("RecordKeeper"); foreach (DataRow dr in dataTable.Rows) { string recordKeeperIdString = dr["RecordKeeperId"].ToString(); if (String.IsNullOrWhiteSpace(recordKeeperIdString) == false) { Guid recordKeeperId = new Guid(recordKeeperIdString); DataIntegrationHub.Business.Entities.RecordKeeper recordKeeper = new DataIntegrationHub.Business.Entities.RecordKeeper(recordKeeperId); dr["RecordKeeper"] = recordKeeper.Name; } } dgvIssues.DataSource = dataTable; // Display/order the columns. dgvIssues.Columns["ServiceIssueId"].Visible = false; dgvIssues.Columns["PlanId"].Visible = false; dgvIssues.Columns["RecordKeeperId"].Visible = false; dgvIssues.Columns["AuditorId"].Visible = false; dgvIssues.Columns["DescriptionValue"].Visible = false; dgvIssues.Columns["CreatedBy"].Visible = false; dgvIssues.Columns["ModifiedBy"].Visible = false; dgvIssues.Columns["StateCode"].Visible = false; dgvIssues.Columns["SubjectValue"].DisplayIndex = 0; dgvIssues.Columns["RecordKeeper"].DisplayIndex = 1; dgvIssues.Columns["AsOfDate"].DisplayIndex = 2; dgvIssues.Columns["ModifiedOn"].DisplayIndex = 3; }
/// <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(); }