/// <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();
        }
Esempio n. 2
0
        public static DataTable GetAssociatedActive(PlanAuditor planAuditor)
        {
            string sql = @"SELECT * FROM " + _tableName + " WHERE StateCode = 0 AND PlanAuditorId = \'" + planAuditor.Id.ToString() + "\'";

            return(Access.VspDbAccess.ExecuteSqlQuery(sql));
        }