private void Btn_itemCode_Click(object sender, EventArgs e) { Purchase_Order = "Purchase_order"; var form = new PurchaseItemLIst(Purchase_Order, txt_Itemcode.Text); form.ShowDialog(); txt_Itemcode.Text = itemcode; DataTable dtb = this.cntrl.get_itemname(Itemid); Load_discription(dtb); check_purchaseRate(); }
private void txt_Itemcode_KeyUp(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { string item = txt_Itemcode.Text; if (item != "") { Purchase_Order = "Purchase_order"; var form = new PurchaseItemLIst(Purchase_Order, item); form.ShowDialog(); if (Itemid != "") { DataTable dtb = this.cntrl.get_itemname(Itemid); Load_discription(dtb); check_purchaseRate(); } } } }