Esempio n. 1
0
        private void btnAddUserFunction_Click(object sender, EventArgs e)
        {
            PhantomForm PhantomForm = new Infinium.PhantomForm();

            PhantomForm.Show();

            int StaffListID = UsersResponsibilities.GetStaffListID(iFactoryID, iDepartmentID, Security.CurrentUserID, iPositionID);
            FunctionsManagementForm FunctionsManagementForm = new FunctionsManagementForm(StaffListID, Security.CurrentUserID);

            TopForm = FunctionsManagementForm;

            FunctionsManagementForm.ShowDialog();

            PhantomForm.Close();
            PhantomForm.Dispose();

            TopForm = null;

            FunctionsManagementForm.Close();
            FunctionsManagementForm.Dispose();

            if (iFactoryID == 1)
            {
                tUsersResponsibilities.UpdateProfilFunctions();
                dgvUsersFunctions.DataSource = tUsersResponsibilities.GetProfilPositionFunctions(iPositionID);
            }
            if (iFactoryID == 2)
            {
                tUsersResponsibilities.UpdateTPSFunctions();
                dgvUsersFunctions.DataSource = tUsersResponsibilities.GetTPSPositionFunctions(iPositionID);
            }
        }
Esempio n. 2
0
        public UsersResponsibilitiesForm(LightStartForm tLightStartForm)
        {
            InitializeComponent();

            LightStartForm = tLightStartForm;


            this.MaximumSize = Screen.PrimaryScreen.WorkingArea.Size;

            AdminFunctionsEdit    = new AdminFunctionsEdit();
            UsersResponsibilities = new UsersResponsibilities();

            while (!SplashForm.bCreated)
            {
                ;
            }
        }