public frmAuditor(frmMain mf, VSP.Business.Entities.Auditor auditor, 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.Auditor dihAuditor = new DataIntegrationHub.Business.Entities.Auditor(auditor.Id);

            CurrentAuditor             = auditor;
            txtName.Text               = dihAuditor.Name;
            txtGeneralInformation.Text = CurrentAuditor.GeneralInformation;
            txtRetirementBusiness.Text = CurrentAuditor.RetirementBusiness;
            txtSecurity.Text           = CurrentAuditor.Security;
            txtValueBalance.Text       = CurrentAuditor.ValueBalance;

            cboIssueViews.SelectedIndex = 0;

            ss.Close();
            this.Show();
        }
Beispiel #2
0
        private void dgvAuditors_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            int  index     = dgvAuditors.CurrentRow.Index;
            Guid auditorId = new Guid(dgvAuditors.Rows[index].Cells["AuditorId"].Value.ToString());

            VSP.Business.Entities.Auditor auditor = new VSP.Business.Entities.Auditor(auditorId);
            frmAuditor frmAuditor = new frmAuditor(this, auditor);

            frmAuditor.FormClosed += frmAuditor_FormClosed;
        }
Beispiel #3
0
        public frmServiceIssue(frmMain mf, VSP.Business.Entities.Auditor auditor, 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.AuditorId = auditor.Id;
            CurrentServiceIssue.AsOfDate  = DateTime.Now;

            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();
        }
        public frmAuditor(frmMain mf, VSP.Business.Entities.Auditor auditor, 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.Auditor dihAuditor = new DataIntegrationHub.Business.Entities.Auditor(auditor.Id);

            CurrentAuditor = auditor;
            txtName.Text   = dihAuditor.Name;
            txtNotes.Text  = CurrentAuditor.Notes;

            cboIssueViews.SelectedIndex = 0;
            txtNotes.Focus();

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

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