Ejemplo n.º 1
0
        private void goButton_Click(object sender, EventArgs e)
        {
            if (cmbFiscalYear.Text == "")
            {
                MessageBox.Show("Please Select Fiscal Year", "error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            GetFiscalId();
            GetTransactionDateRange();
            phiscalYear = loadFiscalYear;
            startDate   = startDate1;
            endDate     = endDate1;

            if (fUserType.Trim() == "SuperAdmin")
            {
                this.Hide();
                MainUI frm = new MainUI();
                frm.Show();
            }
            if (fUserType.Trim() == "Admin")
            {
                this.Hide();
                MainUIForAdmin frm = new MainUIForAdmin();
                frm.Show();
            }


            if (fUserType.Trim() == "User")
            {
                this.Hide();
                MainUIForUser frm = new MainUIForUser();
                frm.Show();
            }
        }
Ejemplo n.º 2
0
 private void closeButton_Click(object sender, EventArgs e)
 {
     if (lUserType == "SuperAdmin")
     {
         this.Hide();
         MainUI frm = new MainUI();
         frm.Show();
     }
     if (lUserType == "Admin")
     {
         this.Hide();
         MainUIForAdmin frm1 = new MainUIForAdmin();
         frm1.Show();
     }
 }
Ejemplo n.º 3
0
 private void closeButton_Click(object sender, EventArgs e)
 {
     if (testUserType == "SuperAdmin")
     {
         this.Hide();
         PreYearOpeningTransaction frm = new PreYearOpeningTransaction();
         frm.Show();
     }
     if (testUserType == "Admin")
     {
         this.Hide();
         MainUIForAdmin frm = new MainUIForAdmin();
         frm.Show();
     }
 }
Ejemplo n.º 4
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (mA1UserType == "SuperAdmin")
     {
         this.Hide();
         MainUI frm = new MainUI();
         frm.Show();
     }
     if (mA1UserType == "Admin")
     {
         this.Hide();
         MainUIForAdmin frm1 = new MainUIForAdmin();
         frm1.Show();
     }
     if (mA1UserType == "User")
     {
         this.Hide();
         MainUIForUser frm2 = new MainUIForUser();
         frm2.Show();
     }
 }