private void btnSearchCustomer_Click(object sender, EventArgs e) { string Ctype = ""; if (OrderType.ToUpper().Trim() == "PURCHASE") { Ctype = "Sup"; } else { Ctype = "Cust"; } LMSWarehouse.FrmCustomer FCust = new FrmCustomer(CompanyID, Ctype, int.Parse(cbPrimaryCustomer.SelectedValue.ToString())); FCust.ShowDialog(); DataSet dc = WS.GetCustomer(int.Parse(cbPrimaryCustomer.SelectedValue.ToString())); cbCustomer.DataSource = dc.Tables[0]; cbCustomer.ValueMember = "Customer_ID"; cbCustomer.DisplayMember = "CustomerName"; cbCustomer.SelectedValue = FCust.CustomerID; cbCustomer_DropDownClosed(sender, e); txtReference.Focus(); //txtSKU.Text = FProduct.Prod.SKU; //txtDescription.Text = FProduct.Prod.ProductDescription; //ProductID = FProduct.Prod.Product_ID; //txtQty.Focus(); }
private void btnSuppliers_Click(object sender, EventArgs e) { LMSWarehouse.FrmCustomer FCustomer = new FrmCustomer(CompanyID, "Sup"); ShowForm(FCustomer); }