示例#1
0
 private void SupplierDetails_ToolStrip_Click(object sender, EventArgs e)
 {
     if (clsFormRights.HasFormRight(clsFormRights.Forms.Supplier_Details) || clsUtility.IsAdmin)
     {
         Masters.Supplier_Details Obj = new Masters.Supplier_Details();
         Obj.Show();
     }
     else
     {
         clsUtility.ShowInfoMessage("You have no rights to perform this task", clsUtility.strProjectTitle);
     }
 }
示例#2
0
        private void btnSupplierPopup_Click(object sender, EventArgs e)
        {
            int a = 0;

            if (cmbSupplier.SelectedIndex >= 0)
            {
                a = Convert.ToInt32(cmbSupplier.SelectedValue);
            }
            Masters.Supplier_Details Obj = new Supplier_Details();
            Obj.ShowDialog();
            FillSupplierData();
            if (a > 0)
            {
                cmbSupplier.SelectedValue = a;
            }
        }