예제 #1
0
 public frm_Suppliers(Boolean pblnCanWrite)
 {
     InitializeComponent();
     tsi_save.Enabled = pblnCanWrite;
     this.Text = "New " + this.Text;
     _supplier = new Supplier();
     _validate = new Validate();
 }
예제 #2
0
  public frmSupplier(long pLongID, Boolean pBlnReadOnly)
 {
     InitializeComponent();
     _supplier = new Supplier(pLongID);
     _blnReadOnly = pBlnReadOnly;
     displayRecord();
     OrganizeMenuButtons();
 }
예제 #3
0
 public frm_Suppliers(long pLongID, Boolean pblnCanWrite)
 {
     InitializeComponent();
     tsi_save.Enabled = pblnCanWrite;
     _supplier = new Supplier(pLongID);
     _validate = new Validate();
     displayRecord();
 }
예제 #4
0
         public frmSupplier(long pLongID)
        {
            InitializeComponent();
            _supplier = new Supplier(pLongID);
            mnuSave.Enabled = true; mnuDelete.Enabled = true; mnuWindow.Enabled = true;
            displayRecord();

        }
예제 #5
0
  public frmSupplier()
 {
     InitializeComponent();
     _supplier = new Supplier();
     _blnReadOnly = false;
 }
예제 #6
0
 private void cbo_supplier_SelectedIndexChanged(object sender, EventArgs e)
 {
     long temp = 0;
     if (long.TryParse(cbo_supplier.SelectedValue.ToString(), out temp))
     {
         Supplier tempSupplier = new Supplier(temp);
         populateRawIngredientsComboBox(temp);
         update_dgvSupplierDetails(tempSupplier);
     }
 }
예제 #7
0
 /// <summary>
 ///Description:Updates the datagrid view with data related to the selected Supplier
 /// </summary>
 /// <param name="supplier"></param>
 private void update_dgvSupplierDetails(Supplier supplier)
 {
     dgv_supplierDetails.Rows.Clear();
     dgv_supplierAddress.Rows.Clear();
     dgv_supplierDetails.Rows.Add("Name:", supplier.Name);
     dgv_supplierDetails.Rows.Add("Phone No:", supplier.PhoneNumber);
     dgv_supplierDetails.Rows.Add("Contact Person:", supplier.ContactPerson);
     dgv_supplierAddress.Rows.Add("Building No:", supplier.BuildingNumber);
     dgv_supplierAddress.Rows.Add("Street:", supplier.StreetName);
     dgv_supplierAddress.Rows.Add("Suburb:", supplier.Suburb);
     dgv_supplierAddress.Rows.Add("State:", supplier.State);
     dgv_supplierAddress.Rows.Add("Postcode:", supplier.Postcode);
 }
예제 #8
0
 private void vts_Supplier_Search_Click(object sender, EventArgs e)
 {
     if (!isDenied("frm_Suppliers"))
     {
         Supplier _supplier = new Supplier();
         frm_Search _search = new frm_Search(_supplier.supplierDataset, "Supplier", canWrite("frm_Suppliers"));
         _search.MdiParent = this;
         _search.Show();
     }
     else
         MessageBox.Show("Access denied. Contact network administrator to gain access");
 }
예제 #9
0
  public frmSupplier()
 {
     InitializeComponent();
     _supplier = new Supplier();
 }