Esempio n. 1
0
        private void btnYes_Click(object sender, EventArgs e)
        {
            //Application.Restart();

            GlobalClass.currentsy = null;
            GlobalClass.fromScreen = null;
            GlobalClass.gvDatasource = null;
            GlobalClass.receiptCurrent = null;
            GlobalClass.receiptFrom = null;
            GlobalClass.receiptTo = null;
            GlobalClass.selectedSY = null;
            GlobalClass.user = null;
            GlobalClass.UserLoggedIn = false;
            GlobalClass.WindowAttendanceDetails = false;
            GlobalClass.WindowBillingDetails = false;
            GlobalClass.WindowPaymentDetails = false;
            GlobalClass.WindowPromotionalDetails = false;
            GlobalClass.WindowProspectusDetails = false;
            GlobalClass.WindowReligionDetails = false;
            GlobalClass.WindowScheduleDetails = false;
            GlobalClass.WindowStatusManageReceipt = false;
            GlobalClass.WindowStatusPaymentDetails = false;
            GlobalClass.WindowStudentListDetails = false;
            GlobalClass.WindowTeachersLoadDetails = false;
            GlobalClass.WindowLogoutDetails = false;

            this.Close();

            frmLogIn FrmLogin = new frmLogIn();
            FrmLogin.ShowDialog();
        }
Esempio n. 2
0
        private void btnYes_Click(object sender, EventArgs e)
        {
            Application.Restart();

            //GlobalClass.currentsy = null;
            //GlobalClass.fromScreen = null;
            //GlobalClass.gvDatasource = null;
            //GlobalClass.receiptCurrent = null;
            //GlobalClass.receiptFrom = null;
            //GlobalClass.receiptTo = null;
            //GlobalClass.selectedSY = null;
            //GlobalClass.user = null;
            //GlobalClass.UserLoggedIn = false;
            //GlobalClass.WindowAttendanceDetails = false;
            //GlobalClass.WindowBillingDetails = false;
            //GlobalClass.WindowPaymentDetails = false;
            //GlobalClass.WindowPromotionalDetails = false;
            //GlobalClass.WindowProspectusDetails = false;
            //GlobalClass.WindowReligionDetails = false;
            //GlobalClass.WindowScheduleDetails = false;
            //GlobalClass.WindowStatusManageReceipt = false;
            //GlobalClass.WindowStatusPaymentDetails = false;
            //GlobalClass.WindowStudentListDetails = false;
            //GlobalClass.WindowTeachersLoadDetails = false;
            //GlobalClass.WindowLogoutDetails = false;

            //this.Close();

            frmLogIn FrmLogin = new frmLogIn();

            FrmLogin.ShowDialog();
        }
Esempio n. 3
0
 public FrmMain()
 {
     if (g.UserLoggedIn == null)
     {
         frmLogIn f = new frmLogIn();
         f.ShowDialog();
     }
     InitializeComponent();
 }
Esempio n. 4
0
 public FrmMain()
 {
     if (g.UserLoggedIn == null)
     {
         frmLogIn f = new frmLogIn();
         f.ShowDialog();
     }
     InitializeComponent();
 }
Esempio n. 5
0
        public FrmMain()
        {
            if (GlobalClass.UserLoggedIn == false)
            {
                frmLogIn f = new frmLogIn();
                f.ShowDialog();
            }

            InitializeComponent();

            if (GlobalClass.userTypeCode == "cash")
            {
                this.btnStudent.Enabled = true;
                this.btnTeacher.Enabled = false;
                this.btnLearningArea.Enabled = false;
                this.btnManageSchedule.Enabled = false;
                this.btnUser.Enabled = false;
                this.btnBuildings.Enabled = false;
                this.btnTimeSlot.Enabled = false;
                this.btnScholarship.Enabled = false;
                this.btnCurriculum.Enabled = false;
                this.btnTraits.Enabled = false;
                this.btnFees.Enabled = false;
                this.btnGradeSection.Enabled = false;
                this.btnSY.Enabled = false;
                this.btnPayment.Enabled = true;
                this.btnManageReceipt.Enabled = true;
                this.btnQuarterlyGrading.Enabled = false;
                this.btnTraitsGrading.Enabled = false;
                this.radButtonElement3.Enabled = false;
                this.btnPromotionalList.Enabled = false;
                this.btnTeachersLoadList.Enabled = false;
                this.radButtonElement4.Enabled = false;
                this.btnBillingList.Enabled = true;
                this.btnScheduleList.Enabled = false;
                this.radButtonElement5.Enabled = false;
                this.radRibbonBarGroup15.Enabled = false;
                this.radButtonElement2.Enabled = true;
            } else if (GlobalClass.userTypeCode == "princ")
            {
                this.btnStudent.Enabled = false;
                this.btnTeacher.Enabled = true;
                this.btnLearningArea.Enabled = true;
                this.btnManageSchedule.Enabled = true;
                this.btnUser.Enabled = false;
                this.btnBuildings.Enabled = true;
                this.btnTimeSlot.Enabled = true;
                this.btnScholarship.Enabled = false;
                this.btnCurriculum.Enabled = true;
                this.btnTraits.Enabled = true;
                this.btnFees.Enabled = false;
                this.btnGradeSection.Enabled = true;
                this.btnSY.Enabled = true;
                this.btnPayment.Enabled = false;
                this.btnManageReceipt.Enabled = false;
                this.btnQuarterlyGrading.Enabled = false;
                this.btnTraitsGrading.Enabled = false;
                this.radButtonElement3.Enabled = true;
                this.btnPromotionalList.Enabled = true;
                this.btnTeachersLoadList.Enabled = true;
                this.radButtonElement4.Enabled = true;
                this.btnBillingList.Enabled = true;
                this.btnScheduleList.Enabled = true;
                this.radButtonElement5.Enabled = true;
                this.radRibbonBarGroup15.Enabled = true;
                this.radButtonElement2.Enabled = true;
            } else if (GlobalClass.userTypeCode == "reg")
            {
                this.btnStudent.Enabled = true;
                this.btnTeacher.Enabled = false;
                this.btnLearningArea.Enabled = false;
                this.btnManageSchedule.Enabled = false;
                this.btnUser.Enabled = false;
                this.btnBuildings.Enabled = false;
                this.btnTimeSlot.Enabled = false;
                this.btnScholarship.Enabled = false;
                this.btnCurriculum.Enabled = false;
                this.btnTraits.Enabled = false;
                this.btnFees.Enabled = false;
                this.btnGradeSection.Enabled = false;
                this.btnSY.Enabled = false;
                this.btnPayment.Enabled = false;
                this.btnManageReceipt.Enabled = false;
                this.btnQuarterlyGrading.Enabled = false;
                this.btnTraitsGrading.Enabled = false;
                this.radButtonElement3.Enabled = false;
                this.btnPromotionalList.Enabled = false;
                this.btnTeachersLoadList.Enabled = false;
                this.radButtonElement4.Enabled = false;
                this.btnBillingList.Enabled = false;
                this.btnScheduleList.Enabled = false;
                this.radButtonElement5.Enabled = false;
                this.radRibbonBarGroup15.Enabled = false;
                this.radButtonElement2.Enabled = true;
            } else if(GlobalClass.userTypeCode == "teach")
            {
                this.btnStudent.Enabled = false;
                this.btnTeacher.Enabled = false;
                this.btnLearningArea.Enabled = false;
                this.btnManageSchedule.Enabled = false;
                this.btnUser.Enabled = false;
                this.btnBuildings.Enabled = false;
                this.btnTimeSlot.Enabled = false;
                this.btnScholarship.Enabled = false;
                this.btnCurriculum.Enabled = false;
                this.btnTraits.Enabled = false;
                this.btnFees.Enabled = false;
                this.btnGradeSection.Enabled = false;
                this.btnSY.Enabled = false;
                this.btnPayment.Enabled = false;
                this.btnManageReceipt.Enabled = false;
                this.btnQuarterlyGrading.Enabled = true;
                this.btnTraitsGrading.Enabled = true;
                this.radButtonElement3.Enabled = false;
                this.btnPromotionalList.Enabled = false;
                this.btnTeachersLoadList.Enabled = false;
                this.radButtonElement4.Enabled = false;
                this.btnBillingList.Enabled = false;
                this.btnScheduleList.Enabled = false;
                this.radButtonElement5.Enabled = false;
                this.radRibbonBarGroup15.Enabled = false;
                this.radButtonElement2.Enabled = true;
            }
        }
Esempio n. 6
0
        public FrmMain()
        {
            if (GlobalClass.UserLoggedIn == false)
            {
                frmLogIn f = new frmLogIn();
                f.ShowDialog();
            }

            InitializeComponent();

            if (GlobalClass.userTypeCode == "cash")
            {
                this.btnStudent.Enabled         = true;
                this.btnTeacher.Enabled         = false;
                this.btnActivateTeacher.Enabled = false;
                this.btnLearningArea.Enabled    = false;
                this.btnManageSchedule.Enabled  = false;
                this.btnUser.Enabled            = false;
                this.btnBuildings.Enabled       = false;
                this.btnTimeSlot.Enabled        = false;
                this.btnCurriculum.Enabled      = false;
                this.btnTraits.Enabled          = false;
                this.btnFees.Enabled            = true;
                this.btnGradeSection.Enabled    = false;
                this.btnSY.Enabled               = false;
                this.btnPayment.Enabled          = true;
                this.btnManageReceipt.Enabled    = true;
                this.btnQuarterlyGrading.Enabled = false;
                this.btnTraitsGrading.Enabled    = false;
                this.radButtonElement3.Enabled   = false;
                this.btnPromotionalList.Enabled  = false;
                this.btnTeachersLoadList.Enabled = false;
                this.radButtonElement4.Enabled   = true;
                this.btnBillingList.Enabled      = true;
                this.btnScheduleList.Enabled     = false;
                this.radButtonElement5.Enabled   = false;
                this.radRibbonBarGroup15.Enabled = false;
                this.radRibbonBarGroup17.Enabled = false;
                this.radButtonElement2.Enabled   = true;
                this.radRibbonBarGroup18.Enabled = false;
            }
            else if (GlobalClass.userTypeCode == "princ")
            {
                this.btnStudent.Enabled         = false;
                this.btnTeacher.Enabled         = true;
                this.btnActivateTeacher.Enabled = false;
                this.btnLearningArea.Enabled    = true;
                this.btnManageSchedule.Enabled  = true;
                this.btnUser.Enabled            = false;
                this.btnBuildings.Enabled       = true;
                this.btnTimeSlot.Enabled        = true;
                this.btnCurriculum.Enabled      = true;
                this.btnTraits.Enabled          = true;
                this.btnFees.Enabled            = false;
                this.btnGradeSection.Enabled    = true;
                this.btnSY.Enabled               = true;
                this.btnPayment.Enabled          = false;
                this.btnManageReceipt.Enabled    = false;
                this.btnQuarterlyGrading.Enabled = false;
                this.btnTraitsGrading.Enabled    = false;
                this.radButtonElement3.Enabled   = true;
                this.btnPromotionalList.Enabled  = false;
                this.btnTeachersLoadList.Enabled = true;
                this.radButtonElement4.Enabled   = true;
                this.btnBillingList.Enabled      = true;
                this.btnScheduleList.Enabled     = true;
                this.radButtonElement5.Enabled   = true;
                this.radRibbonBarGroup15.Enabled = true;
                this.radRibbonBarGroup17.Enabled = true;
                this.radButtonElement2.Enabled   = true;
                this.radRibbonBarGroup18.Enabled = false;
            }
            else if (GlobalClass.userTypeCode == "reg")
            {
                this.btnStudent.Enabled         = true;
                this.btnTeacher.Enabled         = false;
                this.btnActivateTeacher.Enabled = false;
                this.btnLearningArea.Enabled    = false;
                this.btnManageSchedule.Enabled  = false;
                this.btnUser.Enabled            = false;
                this.btnBuildings.Enabled       = false;
                this.btnTimeSlot.Enabled        = false;
                this.btnCurriculum.Enabled      = false;
                this.btnTraits.Enabled          = false;
                this.btnFees.Enabled            = false;
                this.btnGradeSection.Enabled    = false;
                this.btnSY.Enabled               = false;
                this.btnPayment.Enabled          = false;
                this.btnManageReceipt.Enabled    = false;
                this.btnQuarterlyGrading.Enabled = true;
                this.btnTraitsGrading.Enabled    = true;
                this.radButtonElement3.Enabled   = true;
                this.btnPromotionalList.Enabled  = true;
                this.btnTeachersLoadList.Enabled = true;
                this.radButtonElement4.Enabled   = true;
                this.btnBillingList.Enabled      = true;
                this.btnScheduleList.Enabled     = true;
                this.radButtonElement5.Enabled   = true;
                this.radRibbonBarGroup15.Enabled = true;
                this.radRibbonBarGroup17.Enabled = true;
                this.radButtonElement2.Enabled   = true;
                this.radRibbonBarGroup18.Enabled = false;
            }
            else if (GlobalClass.userTypeCode == "teach")
            {
                this.btnStudent.Enabled         = false;
                this.btnTeacher.Enabled         = false;
                this.btnActivateTeacher.Enabled = false;
                this.btnLearningArea.Enabled    = false;
                this.btnManageSchedule.Enabled  = false;
                this.btnUser.Enabled            = false;
                this.btnBuildings.Enabled       = false;
                this.btnTimeSlot.Enabled        = false;
                this.btnCurriculum.Enabled      = false;
                this.btnTraits.Enabled          = false;
                this.btnFees.Enabled            = false;
                this.btnGradeSection.Enabled    = false;
                this.btnSY.Enabled               = false;
                this.btnPayment.Enabled          = false;
                this.btnManageReceipt.Enabled    = false;
                this.btnQuarterlyGrading.Enabled = true;
                this.btnTraitsGrading.Enabled    = true;
                this.radButtonElement3.Enabled   = false;
                this.btnPromotionalList.Enabled  = false;
                this.btnTeachersLoadList.Enabled = false;
                this.radButtonElement4.Enabled   = false;
                this.btnBillingList.Enabled      = false;
                this.btnScheduleList.Enabled     = false;
                this.radButtonElement5.Enabled   = false;
                this.radRibbonBarGroup15.Enabled = false;
                this.radRibbonBarGroup17.Enabled = false;
                this.radButtonElement2.Enabled   = true;
                this.radRibbonBarGroup18.Enabled = false;
            }
        }