Ejemplo n.º 1
0
 public frmCustomer()
 {
     InitializeComponent();
     _customer = new Customer();
     _blnReadOnly = false;
     populateEmployeeCombo();
 }
Ejemplo n.º 2
0
 public frmCustomer(long pLongID)
 {
     InitializeComponent();
     _customer = new Customer(pLongID);
     mnuSave.Enabled = true; mnuDelete.Enabled = true; mnuWindow.Enabled = true;
     populateEmployeeCombo();
     displayRecord();
 }
Ejemplo n.º 3
0
 public frmCustomer(long pLongID, Boolean pBlnReadOnly)
 {
     InitializeComponent();
     _customer = new Customer(pLongID);
     _blnReadOnly = pBlnReadOnly;
     populateEmployeeCombo();
     displayRecord();
     OrganizeMenuButtons();
 }
Ejemplo n.º 4
0
 public frm_Customers(long pLongID, Boolean pblnCanWrite)
 {
     InitializeComponent();
     _customer = new Customer(pLongID);
     _validate = new Validate();
     tsi_save.Enabled = pblnCanWrite;
     populateSaleManangersComboBox();
     displayRecord();
 }
Ejemplo n.º 5
0
 public frm_Customers(Boolean pblnCanWrite)
 {
     InitializeComponent();
     this.Text = "New " + this.Text;
     _customer = new Customer();
     _validate = new Validate();
     tsi_save.Enabled = pblnCanWrite;
     populateSaleManangersComboBox();
 }
Ejemplo n.º 6
0
 public frmCustomer()
 {
     InitializeComponent();
     _customer = new Customer();
     populateEmployeeCombo();
 }
Ejemplo n.º 7
0
 private void cbo_customer_SelectedIndexChanged(object sender, EventArgs e)
 {
     int test = cbo_customer.SelectedIndex;
     if (cbo_customer.SelectedIndex > 0)
     {
         Customer customer = new Customer(Int32.Parse(cbo_customer.SelectedValue.ToString()));
         update_dgvCustomerDetails(customer);
         _customer = customer;
     }
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Description:Updates the datagrid view with data related to the selected Customer
 /// </summary>
 /// <param name="customer"></param>
 private void update_dgvCustomerDetails(Customer customer)
 {
     dgv_CustomerDetails.Rows.Clear();
     dgv_customerAddress.Rows.Clear();
     dgv_CustomerDetails.Rows.Add("Name:", customer.Name);
     dgv_CustomerDetails.Rows.Add("Phone No:", customer.PhoneNumber);
     dgv_CustomerDetails.Rows.Add("Contact Person:", customer.ContactPerson);
     dgv_customerAddress.Rows.Add("Building No:", customer.BuildingNumber);
     dgv_customerAddress.Rows.Add("Street:", customer.StreetName);
     dgv_customerAddress.Rows.Add("Suburb:", customer.Suburb);
     dgv_customerAddress.Rows.Add("State:", customer.State);
     dgv_customerAddress.Rows.Add("Postcode:", customer.Postcode);
 }
Ejemplo n.º 9
0
 private void vts_Customer_Search_Click(object sender, EventArgs e)
 {
     if (!isDenied("frm_Customers"))
     {
         Customer _customer = new Customer();
         frm_Search _search = new frm_Search(_customer.cusomerDataSet, "Customer", canWrite("frm_Customers"));
         _search.MdiParent = this;
         _search.Show();
     }
     else
         MessageBox.Show("Access denied. Contact network administrator to gain access");
 }