public FormManager(int id)
 {
     InitializeComponent();
     stController = new StatisticsController();
     scController = new ScheduleController();
     scController.GetShifts();
     lblTodayDay.Text = DateTime.Today.ToString("d/M/yyyy");
     uc           = new UserController();
     dc           = new DepartmentController();
     sc           = new StockController();
     currentID    = 0;
     loggedUserId = id;
 }
예제 #2
0
        public FormAdmin(Form form, int id)
        {
            InitializeComponent();

            stController          = new StatisticsController();
            lblTotalIncome.Text   = stController.GetTotalIncome().Values.First().ToString() + "$";
            lbTotprNumber.Text    = stController.GetTotalProducts().ToString();
            lbltotEmplNumber.Text = stController.GetTotalUsers().ToString();

            uc           = new UserController();
            loggedUserId = id;
            sc           = new StockController();
            currentID    = id;
            dc           = new DepartmentController();

            rc                   = new RequestsController();
            allLabels            = new List <Control>();
            displayedRequestsIDs = new List <int>();
        }