Exemple #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="mf"></param>
        /// <param name="Close"></param>
        public frmSearchQuestion(frmMain mf, Search search, 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;

            CurrentSearchQuestion          = new SearchQuestion();
            CurrentSearchQuestion.SearchId = search.Id;
            txtSubject.Text = CurrentSearchQuestion.SubjectValue;
            cboAnswer.Text  = "No";

            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, 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();
        }
Exemple #3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="mf"></param>
        /// <param name="Close"></param>
        public frmPlanAdvisor(frmMain mf, Plan plan, 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;

            CurrentPlanAdvisor        = new VSP.Business.Entities.PlanAdvisor();
            CurrentPlanAdvisor.PlanId = plan.PlanId;

            cboPlan.Text = plan.Name + " - " + plan.Description;

            cboFeeViews.SelectedIndex = 0;
            PreloadCbos();

            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 frmUser(frmMain mf, User user, 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;

            CurrentUser        = user;
            txtFullName.Text   = CurrentUser.FullName;
            txtDomainName.Text = CurrentUser.DomainName;

            cboRolesViews.SelectedIndex = 0;

            LoadDgvRoles();

            CurrentTabLabel = label46; // Summary tab label
            highlightSelectedTabLabel(CurrentTabLabel);

            ss.Close();
            this.Show();
        }
Exemple #5
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="mf"></param>
        /// <param name="accountId"></param>
        /// <param name="Close"></param>
        public frmPlanParticipantsActive(frmMain mf, Plan plan, 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;

            CurrentPlanParticipantsActive        = new PlanParticipantsActive();
            CurrentPlanParticipantsActive.PlanId = plan.PlanId;

            txtPlan.Text = plan.Name;

            ss.Close();
            this.Show();
        }
Exemple #6
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="mf"></param>
        /// <param name="Close"></param>
        public frmQualityAssurance(frmMain mf, 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;

            cboCrashesViews.SelectedIndex  = 0;
            cboFeedbackViews.SelectedIndex = 0;
            LoadElements();

            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 frmSearch(frmMain mf, Search search, 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();

            CurrentSearch = search;

            try
            {
                Plan plan = new Plan(CurrentSearch.PlanId);
                cboPlan.Text = plan.Name + " - " + plan.Description;
            }
            catch
            {
                MessageBox.Show("This search does not have a valid plan selected.");
            }

            txtName.Text           = CurrentSearch.Name;
            txtCurrentRkNotes.Text = CurrentSearch.CurrentRkNotes;

            if (CurrentSearch.AsOfDate != null)
            {
                txtAsOfDate.Text = ((DateTime)CurrentSearch.AsOfDate).ToString("MM/dd/yyyy");
            }

            cboResultsView.SelectedIndex   = 0;
            cboBidViews.SelectedIndex      = 0;
            cboFundViews.SelectedIndex     = 0;
            cboQuestionViews.SelectedIndex = 0;
            cboServicesView.SelectedIndex  = 0;
            LoadDgvServices(true);

            txtCurrentRkNotes.Focus();

            CurrentTabLabel = label46; // Summary tab label
            highlightSelectedTabLabel(CurrentTabLabel);

            ss.Close();
            this.Show();
        }
Exemple #8
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="mf"></param>
        /// <param name="accountId"></param>
        /// <param name="Close"></param>
        public frmPlanAdvisor(frmMain mf, VSP.Business.Entities.PlanAdvisor planAdvisor, 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;

            CurrentPlanAdvisor = planAdvisor;

            cboFeeViews.SelectedIndex = 0;
            PreloadCbos();

            if (CurrentPlanAdvisor.PlanId != null)
            {
                Plan plan = new Plan(CurrentPlanAdvisor.PlanId);
                cboPlan.Text = plan.Name + " - " + plan.Description;
            }

            if (CurrentPlanAdvisor.AdvisorId != null)
            {
                DataIntegrationHub.Business.Entities.PlanAdvisor advisor = new DataIntegrationHub.Business.Entities.PlanAdvisor(CurrentPlanAdvisor.AdvisorId);
                cboAdvisor.Text = advisor.Name;
            }

            if (CurrentPlanAdvisor.DateAdded != null)
            {
                txtDateAdded.Text = ((DateTime)CurrentPlanAdvisor.DateAdded).ToString("MM/dd/yyyy");
            }

            if (CurrentPlanAdvisor.DateRemoved != null)
            {
                txtDateRemoved.Text = ((DateTime)CurrentPlanAdvisor.DateRemoved).ToString("MM/dd/yyyy");
            }

            cboFeeViews.SelectedIndex = 0;

            CurrentTabLabel = label46; // Summary tab label
            highlightSelectedTabLabel(CurrentTabLabel);

            ss.Close();
            this.Show();
        }
Exemple #9
0
        public frmServiceIssue(frmMain mf, VSP.Business.Entities.PlanRecordKeeperProduct recordKeeperProduct, 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();

            CurrentServiceIssue = new ServiceIssue();
            CurrentServiceIssue.PlanRecordKeeperProductId = recordKeeperProduct.Id;
            CurrentServiceIssue.AsOfDate = DateTime.Now;

            txtDescription.Focus();

            if (CurrentServiceIssue.PlanRecordKeeperProductId != null)
            {
                PlanRecordKeeperProduct planRecordKeeperProduct = new PlanRecordKeeperProduct((Guid)CurrentServiceIssue.PlanRecordKeeperProductId);
                Product product = new Product((Guid)planRecordKeeperProduct.ProductId);
                cboRecordKeeperProduct.Text = product.Name;
            }

            if (CurrentServiceIssue.AuditorId != null)
            {
                cboAuditor.Text = new DataIntegrationHub.Business.Entities.Auditor((Guid)CurrentServiceIssue.AuditorId).Name;
            }

            if (CurrentServiceIssue.PlanId != null)
            {
                Plan plan = new Plan((Guid)CurrentServiceIssue.PlanId);
                cboPlan.Text = plan.Name + " - " + plan.Description;
            }

            txtAsOfDate.Text = CurrentServiceIssue.AsOfDate.ToString("MM/dd/yyyy");

            CurrentTabLabel = label46; // Summary tab label
            highlightSelectedTabLabel(CurrentTabLabel);

            ss.Close();
            this.Show();
        }
Exemple #10
0
        /// <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 btnExecuteSearch_Click(object sender, EventArgs e)
        {
            frmSplashScreen frmSplashScreen = new frmSplashScreen();

            frmSplashScreen.Show();
            Application.DoEvents();

            SaveServices();
            CurrentSearch.ExecuteSearch(frmMain_Parent.CurrentUser.UserId);
            LoadDgvResults();
            tabControlDetail.SelectedTab = tabControlDetail.TabPages["tabResults"];

            frmSplashScreen.Close();
        }
        public frmAccount(frmMain mf, Customer customer, 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;

            CurrentCustomer = customer;
            if (customer.PrimaryContactId != null)
            {
                Contact contact = new Contact((Guid)CurrentCustomer.PrimaryContactId);
                txtPrimaryContactName.Text  = contact.FirstName + ' ' + contact.LastName;
                txtPrimaryContactEmail.Text = contact.EmailAddress;
            }

            txtName.Text         = CurrentCustomer.Name;
            this.Text            = CurrentCustomer.Name;
            label23.Text         = CurrentCustomer.Name;
            assetvalue.Text      = CurrentCustomer.AssetValue.ToString();
            txtPhone.Text        = CurrentCustomer.MainPhone;
            txtFax.Text          = CurrentCustomer.Fax;
            txtAddressLine1.Text = CurrentCustomer.Address.Line1;
            txtAddressLine2.Text = CurrentCustomer.Address.Line2;
            txtAddressCity.Text  = CurrentCustomer.Address.City;
            txtAddressState.Text = CurrentCustomer.Address.State;
            txtAddressZip.Text   = CurrentCustomer.Address.ZipCode;

            cboPlanViews.SelectedIndex = 0;
            tabSummary.Focus();

            CurrentTabLabel = label46; // Summary tab label
            highlightSelectedTabLabel(CurrentTabLabel);

            ss.Close();
            this.Show();
        }
        public frmServiceIssue(frmMain mf, ServiceIssue serviceIssue, 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();

            CurrentServiceIssue          = serviceIssue;
            CurrentServiceIssue.AsOfDate = DateTime.Now;

            if (CurrentServiceIssue.RecordKeeperId != null)
            {
                cboRecordKeeper.Text = new DataIntegrationHub.Business.Entities.RecordKeeper((Guid)CurrentServiceIssue.RecordKeeperId).Name;
            }

            if (CurrentServiceIssue.AuditorId != null)
            {
                cboAuditor.Text = new DataIntegrationHub.Business.Entities.Auditor((Guid)CurrentServiceIssue.AuditorId).Name;
            }

            if (CurrentServiceIssue.PlanId != null)
            {
                cboPlan.Text = new Plan((Guid)CurrentServiceIssue.PlanId).Name;
            }

            txtSubject.Text     = CurrentServiceIssue.SubjectValue;
            txtAsOfDate.Text    = CurrentServiceIssue.AsOfDate.ToString("MM/dd/yyyy");
            txtDescription.Text = CurrentServiceIssue.DescriptionValue;

            ss.Close();
            this.Show();
        }
        /// <summary>
        ///
        /// </summary>
        /// <param name="fdbk"></param>
        /// <param name="Close"></param>
        public frmQualityAssurancePopup(Feedback fdbk, FormClosedEventHandler Close = null)
        {
            frmSplashScreen ss = new frmSplashScreen();

            ss.Show();
            Application.DoEvents();

            InitializeComponent();

            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;

            CurrentUser             = new User(Environment.UserDomainName + "\\" + Environment.UserName);
            CurrentError            = null;
            CurrentFeedback         = fdbk;
            txtFdbkDescription.Text = CurrentFeedback.Description;
            txtFdbkSeverity.Text    = CurrentFeedback.Severity;
            txtFdbkTimestamp.Text   = CurrentFeedback.CreatedOn.ToString();
            User submittingUser = new User((Guid)CurrentFeedback.CreatedBy);

            txtFdbkUser.Text = submittingUser.FullName;
            if (CurrentFeedback.StateCode == 1)
            {
                ckbxFdbkResolved.Checked = true;
            }
            else
            {
                ckbxFdbkResolved.Checked = false;
            }

            this.ckbxFdbkResolved.CheckedChanged += new System.EventHandler(this.ckbxFdbkResolved_CheckedChanged);

            ss.Close();

            tabControlClientDetail.SelectedTab = tabControlClientDetail.TabPages["tabFeedback"];

            this.Show();
        }
        /// <summary>
        ///
        /// </summary>
        /// <param name="err"></param>
        /// <param name="Close"></param>
        public frmQualityAssurancePopup(ApplicationError err, FormClosedEventHandler Close = null)
        {
            frmSplashScreen ss = new frmSplashScreen();

            ss.Show();
            Application.DoEvents();

            InitializeComponent();

            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;

            CurrentUser             = new User(Environment.UserDomainName + "\\" + Environment.UserName);
            CurrentFeedback         = null;
            CurrentError            = err;
            txtCrashData.Text       = CurrentError.Data;
            txtCrashMessage.Text    = CurrentError.Message;
            txtCrashSource.Text     = CurrentError.Source;
            txtCrashStackTrace.Text = CurrentError.StackTrace;
            txtCrashTimestamp.Text  = CurrentError.CreatedOn.ToString();
            if (CurrentError.StateCode == 1)
            {
                ckbxCrashResolved.Checked = true;
            }
            else
            {
                ckbxCrashResolved.Checked = false;
            }

            this.ckbxCrashResolved.CheckedChanged += new System.EventHandler(this.ckbxCrashResolved_CheckedChanged);

            ss.Close();

            tabControlClientDetail.SelectedTab = tabControlClientDetail.TabPages["tabCrashes"];

            this.Show();
        }
Exemple #17
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="mf"></param>
        /// <param name="accountId"></param>
        /// <param name="Close"></param>
        public frmPlanContribution(frmMain mf, PlanContribution planContribution, 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(planContribution.PlanId);

            CurrentPlanContribution = planContribution;
            txtPlan.Text            = plan.Name;

            if (CurrentPlanContribution.Contribution != null)
            {
                txtContribution.Text = ((decimal)CurrentPlanContribution.Contribution).ToString("#,##");
            }

            if (CurrentPlanContribution.AsOfDate != null)
            {
                txtAsOfDate.Text = ((DateTime)CurrentPlanContribution.AsOfDate).ToString("MM/dd/yyyy");
            }

            CurrentTabLabel = label46; // Summary tab label
            highlightSelectedTabLabel(CurrentTabLabel);

            ss.Close();
            this.Show();
        }
        /// <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 frmPlan(frmMain mf, Plan plan, 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;

            CurrentPlan              = plan;
            CurrentPlanDetail        = new PlanDetail(plan.PlanId);
            txtName.Text             = CurrentPlan.Name;
            txtOutstandingLoans.Text = CurrentPlanDetail.LoansOutstanding.ToString();
            txtSelfDirectedBrokerageAccounts.Text = CurrentPlanDetail.SelfDirectedBrokerageAccounts.ToString();

            cboRkViews.SelectedIndex                   = 0;
            cboAdvisorViews.SelectedIndex              = 0;
            cboAuditorViews.SelectedIndex              = 0;
            cboInvestmentViews.SelectedIndex           = 0;
            cboIssueViews.SelectedIndex                = 0;
            cboContributionViews.SelectedIndex         = 0;
            cboDistributionViews.SelectedIndex         = 0;
            cboActiveParticipantViews.SelectedIndex    = 0;
            cboEligibleParticipantsViews.SelectedIndex = 0;

            ss.Close();
            this.Show();
        }
        /// <summary>
        ///
        /// </summary>
        /// <param name="mf"></param>
        /// <param name="accountId"></param>
        /// <param name="Close"></param>
        public frmPlanParticipantsEligible(frmMain mf, PlanParticipantsEligible PlanParticipantsEligible, 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(PlanParticipantsEligible.PlanId);

            CurrentPlanParticipantsEligible = PlanParticipantsEligible;
            txtPlan.Text = plan.Name;

            if (CurrentPlanParticipantsEligible.ParticipantCount != null)
            {
                txtParticipantCount.Text = ((decimal)CurrentPlanParticipantsEligible.ParticipantCount).ToString("#,##");
            }

            if (CurrentPlanParticipantsEligible.AsOfDate != null)
            {
                txtAsOfDate.Text = ((DateTime)CurrentPlanParticipantsEligible.AsOfDate).ToString("MM/dd/yyyy");
            }

            ss.Close();
            this.Show();
        }
        /// <summary>
        ///
        /// </summary>
        /// <param name="mf"></param>
        /// <param name="planAuditor"></param>
        /// <param name="Close"></param>
        public frmPlanAuditorFee(frmMain mf, VSP.Business.Entities.PlanAuditor planAuditor, 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(planAuditor.PlanId);

            Business.Entities.Auditor auditor = new Business.Entities.Auditor(planAuditor.AuditorId);
            DataIntegrationHub.Business.Entities.Auditor plAd = new DataIntegrationHub.Business.Entities.Auditor(auditor.AuditorId);
            txtAuditor.Text = plAd.Name;

            CurrentPlanAuditorFee = new PlanAuditorFee();
            CurrentPlanAuditorFee.PlanAuditorId = planAuditor.Id;

            txtPlan.Text = plan.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 frmAdvisor(frmMain mf, VSP.Business.Entities.Advisor advisor, 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.PlanAdvisor dihPA = new DataIntegrationHub.Business.Entities.PlanAdvisor(advisor.Id);

            CurrentAdvisor = advisor;
            txtName.Text   = dihPA.Name;
            txtNotes.Text  = CurrentAdvisor.Notes;

            txtNotes.Focus();

            cboServicesView.SelectedIndex = 0;
            LoadDgvServices(true);

            CurrentTabLabel = lblMenuSummary; // Summary tab label
            highlightSelectedTabLabel(CurrentTabLabel);

            ss.Close();
            this.Show();
        }
        /// <summary>
        ///
        /// </summary>
        /// <param name="mf"></param>
        /// <param name="Close"></param>
        public frmSearch(frmMain mf, 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();

            CurrentSearch          = new Search();
            txtName.Text           = CurrentSearch.Name;
            txtCurrentRkNotes.Text = CurrentSearch.CurrentRkNotes;

            if (CurrentSearch.AsOfDate != null)
            {
                txtAsOfDate.Text = ((DateTime)CurrentSearch.AsOfDate).ToString("MM/dd/yyyy");
            }

            CurrentTabLabel = label46; // Summary tab label
            highlightSelectedTabLabel(CurrentTabLabel);

            ss.Close();
            this.Show();
        }
        /// <summary>
        /// Displays a form for selecting a particular record from a datatable.
        /// </summary>
        /// <param name="frmMain"></param>
        /// <param name="selectRecordType"></param>
        /// <param name="orignalRecordName"></param>
        /// <param name="dataTableToSearch"></param>
        public frmSelectRecord(frmMain frmMain, RecordType selectRecordType, object originalRecord, DataTable dataTableToSearch)
        {
            frmSplashScreen frmSplashScreen = new frmSplashScreen();

            frmSplashScreen.Show();
            Application.DoEvents();

            InitializeComponent();
            frmMain_Parent = frmMain;

            SelectFromDataTable = dataTableToSearch;

            Application.AddMessageFilter(this);
            controlsToMove.Add(this.label1);
            controlsToMove.Add(this.label23);
            controlsToMove.Add(this.panel2);
            controlsToMove.Add(this.panel16);

            CurrentRecordType = selectRecordType;

            if (originalRecord is User)
            {
                txtOriginalRecordName.Text = ((User)originalRecord).FullName;
                lblOriginalRecordType.Text = "User";
            }
            else if (originalRecord is string)
            {
                txtOriginalRecordName.Text = originalRecord.ToString();
                lblOriginalRecordType.Text = "Original";
            }

            frmSplashScreen.Close();
            this.Show();

            txtSearch.Select();
        }
Exemple #25
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="mf"></param>
        /// <param name="accountId"></param>
        /// <param name="Close"></param>
        public frmSearchQuestion(frmMain mf, SearchQuestion searchQuestion, 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;

            CurrentSearchQuestion = searchQuestion;
            txtSubject.Text       = CurrentSearchQuestion.SubjectValue;

            if (CurrentSearchQuestion.AnswerValue == SqlBoolean.True)
            {
                cboAnswer.Text = "Yes";
            }
            else if (CurrentSearchQuestion.AnswerValue == SqlBoolean.False)
            {
                cboAnswer.Text = "No";
            }

            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="planAuditorFee"></param>
        /// <param name="Close"></param>
        public frmPlanAuditorFee(frmMain mf, PlanAuditorFee planAuditorFee, 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;

            Business.Entities.PlanAuditor planAuditor = new Business.Entities.PlanAuditor(planAuditorFee.PlanAuditorId);
            Plan plan = new Plan(planAuditor.PlanId);

            Business.Entities.Auditor auditor = new Business.Entities.Auditor(planAuditor.AuditorId);
            DataIntegrationHub.Business.Entities.Auditor dihAuditor = new DataIntegrationHub.Business.Entities.Auditor(auditor.AuditorId);

            CurrentPlanAuditorFee = planAuditorFee;
            txtPlan.Text          = plan.Name;
            txtAuditor.Text       = dihAuditor.Name;
            txtNotes.Text         = CurrentPlanAuditorFee.Notes;
            txtName.Text          = CurrentPlanAuditorFee.Name;

            txtNotes.Focus();

            if (CurrentPlanAuditorFee.Fee != null)
            {
                txtFee.Text = ((decimal)CurrentPlanAuditorFee.Fee).ToString("#,##");
            }

            if (CurrentPlanAuditorFee.Benchmark25Fee != null)
            {
                txtBenchmark25Fee.Text = ((decimal)CurrentPlanAuditorFee.Benchmark25Fee).ToString("#,##");
            }

            if (CurrentPlanAuditorFee.Benchmark50Fee != null)
            {
                txtBenchmark50Fee.Text = ((decimal)CurrentPlanAuditorFee.Benchmark50Fee).ToString("#,##");
            }

            if (CurrentPlanAuditorFee.Benchmark75Fee != null)
            {
                txtBenchmark75Fee.Text = ((decimal)CurrentPlanAuditorFee.Benchmark75Fee).ToString("#,##");
            }

            if (CurrentPlanAuditorFee.AsOfDate != null)
            {
                dateAsOfDate.Value   = (DateTime)CurrentPlanAuditorFee.AsOfDate;
                dateAsOfDate.Checked = true;
            }
            else
            {
                dateAsOfDate.Checked = false;
            }

            chbxRevenueSharingPaid.Checked = CurrentPlanAuditorFee.RevenueSharingPaid;
            chbxForfeituresPaid.Checked    = CurrentPlanAuditorFee.ForfeituresPaid;
            chbxParticipantsPaid.Checked   = CurrentPlanAuditorFee.ParticipantsPaid;
            chbxPlanSponsorPaid.Checked    = CurrentPlanAuditorFee.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 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();
        }
Exemple #29
0
        /// <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;

            ss.Close();
            this.Show();
        }