private void btnSearchProduct_Click(object sender, EventArgs e) { frmProductSearch obj = new frmProductSearch(); obj.ShowDialog(); //XtraMessageBox.Show("test"); txtProductName.Text = bllUtility.ReturnSearchedProduct.returnSearchedProductInfo.ProductName; //test code rasel txtProductID.Text = bllUtility.ReturnSearchedProduct.returnSearchedProductInfo.ProductID; if (txtProductID.Text.Length > 4) { load_product_info(); } //clearing global search object. bllUtility.ReturnSearchedProduct.returnSearchedProductInfo = null; }
private void btn_product_search_Click(object sender, EventArgs e) { frmProductSearch obj = new frmProductSearch(); obj.ShowDialog(); this.txtProductName.Text = bllUtility.ReturnSearchedProduct.returnSearchedProductInfo.ProductName; //test code rasel this.txtProductCodeSearch.Text = bllUtility.ReturnSearchedProduct.returnSearchedProductInfo.ProductID; //clearing global search object. bllUtility.ReturnSearchedProduct.returnSearchedProductInfo = null; txt_commission_percent.Text = "8"; if (txtProductName.Text.Length > 3 && txtAccountHolder.Text.Length > 3) { get_sale_qty(); get_adjustment_due(); calc_n_set_adjust_qty(); } }
private void btnSearchProduct_Click(object sender, EventArgs e) { frmProductSearch obj = new frmProductSearch(); obj.ShowDialog(); this.txtProductName.Text = bllUtility.ReturnSearchedProduct.returnSearchedProductInfo.ProductName; //test code rasel this.txtProductID.Text = bllUtility.ReturnSearchedProduct.returnSearchedProductInfo.ProductID; if (txtProductID.Text.Length > 4) { lblStockFromStore.Text = "0"; if (txtProductID.Text == "") { return; } if (cmb_from_store.EditValue == "") { return; } lblStockFromStore.Text = get_product_stock(txtProductID.Text, cmb_from_store.EditValue.ToString()).ToString(); } bllUtility.ReturnSearchedProduct.returnSearchedProductInfo = null; }