Ejemplo n.º 1
0
 private void CategoryMaster_ToolStrip_Click(object sender, EventArgs e)
 {
     if (clsFormRights.HasFormRight(clsFormRights.Forms.Category_Master) || clsUtility.IsAdmin)
     {
         bool b = ObjUtil.IsAlreadyOpen(typeof(Masters.Category_Master));
         if (!b)
         {
             Masters.Category_Master Obj = new Masters.Category_Master();
             Obj.Show();
         }
     }
     else
     {
         clsUtility.ShowInfoMessage("You have no rights to perform this task", clsUtility.strProjectTitle);
     }
 }
Ejemplo n.º 2
0
        private void btnCategoryPopup_Click(object sender, EventArgs e)
        {
            int a = 0;

            if (cmbDepartment.SelectedIndex >= 0)
            {
                a = Convert.ToInt32(cmbDepartment.SelectedValue);
            }
            Masters.Category_Master Obj = new Category_Master();
            Obj.ShowDialog();
            FillDepartmentData();
            if (a > 0)
            {
                cmbDepartment.SelectedValue = a;
            }
        }
Ejemplo n.º 3
0
 private void btnCategoryPopup_Click(object sender, EventArgs e)
 {
     if (clsFormRights.HasFormRight(clsFormRights.Forms.Category_Master) || clsUtility.IsAdmin)
     {
         int a = 0;
         if (cmbCategory.SelectedIndex >= 0)
         {
             a = Convert.ToInt32(cmbCategory.SelectedValue);
         }
         Masters.Category_Master Obj = new Category_Master();
         Obj.ShowDialog();
         FillDepartmentData();
         if (a > 0)
         {
             cmbCategory.SelectedValue = a;
         }
     }
     else
     {
         clsUtility.ShowInfoMessage("You have no rights to perform this task", clsUtility.strProjectTitle);
     }
 }