コード例 #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="mf"></param>
        /// <param name="Close"></param>
        public frmProduct(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;

            CurrentProduct = new Product();
            CurrentProduct.RecordKeeperId = recordKeeper.Id;
            txtName.Text = CurrentProduct.Name;

            lblMenuServices.Visible = false;

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

            ss.Close();
            this.Show();
        }
コード例 #2
0
        private void dgvRecordKeepers_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            int  index          = dgvRecordKeepers.CurrentRow.Index;
            Guid recordKeeperId = new Guid(dgvRecordKeepers.Rows[index].Cells["RecordKeeperId"].Value.ToString());

            VSP.Business.Entities.RecordKeeper recordKeeper = new VSP.Business.Entities.RecordKeeper(recordKeeperId);
            frmRecordKeeper frmRecordKeeper = new frmRecordKeeper(this, recordKeeper);

            frmRecordKeeper.FormClosed += frmRecordKeeper_FormClosed;
        }
コード例 #3
0
        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();
        }
        public frmServiceIssue(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;

            PreloadCbos();

            CurrentServiceIssue = new ServiceIssue();
            CurrentServiceIssue.RecordKeeperId = recordKeeper.Id;
            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)
            {
                Plan plan = new Plan((Guid)CurrentServiceIssue.PlanId);
                cboPlan.Text = plan.Name + " - " + plan.Description;
            }

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

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