Exemple #1
0
 private void itemManageProject_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
 {
     if (ICheck == 1)
     {
         frmSubmitProject frm = new frmSubmitProject();
         frm.ShowDialog();
     }
     else
     {
         if (lstDecent != null)
         {
             frmManageProjectMain frm = new frmManageProjectMain();
             foreach (DecentralizeModel decentralize in lstDecent)
             {
                 if (staffModel.StrStaffTypeID == decentralize.StrStaffTypeID && frm.Name == decentralize.StrFormID)
                 {
                     if (decentralize.BAdd == true || decentralize.BEdit == true || decentralize.BDelete == true || decentralize.BView == true)
                     {
                         frm.ShowDialog();
                         break;
                     }
                     else
                     {
                         DevExpress.XtraEditors.XtraMessageBox.Show("Bạn không được sử dụng chức năng này", "Thông Báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
                         break;
                     }
                 }
             }
         }
     }
 }
Exemple #2
0
        private void btnSubmitProject_Click(object sender, EventArgs e)
        {
            this.Hide();
            frmSubmitProject frmSubmitProject = new frmSubmitProject();

            frmSubmitProject.ShowDialog();
            this.Close();
        }