internal void toItemDeit(Logic.Item itm) { txtRBItemCode.Text = itm.strItemID; txtRBItemName.Text = itm.strItemName; txtRBUoM.SelectedText = itm.strItemUoM; txtRBQty.Text = Convert.ToString(new Logic.RemainingQtyService().getQty(itm.strItemID)); }
internal void toItemDeit(Logic.Item itm) { txtPOItemCode.Text = itm.strItemID; txtPOItemName.Text = itm.strItemName; txtPOUoM.SelectedText = itm.strItemUoM; txtPOItmUnitPrice.Text = Convert.ToString(itm.dmlItemSellingPrice); }
private void dgdRBItemSearch_MouseDoubleClick(object sender, MouseEventArgs e) { txtRBItemCode.Text = this.dgdRBItemSearch.CurrentRow.Cells[0].Value.ToString(); txtRBItemName.Text = this.dgdRBItemSearch.CurrentRow.Cells[1].Value.ToString(); Logic.Item itm = new Logic.Item(); itm = new Logic.ItemService().seaarchItemId(txtRBItemCode.Text); txtRBUoM.Text = itm.strItemUoM; txtRBQty.Text = Convert.ToString(new Logic.RemainingQtyService().getQty(itm.strItemID)); dgdRBItemSearch.Visible = false; }
private void dgdOBItemSearch_MouseDoubleClick(object sender, MouseEventArgs e) { txtOBItemCode.Text = this.dgdOBItemSearch.CurrentRow.Cells[0].Value.ToString(); txtOBItemName.Text = this.dgdOBItemSearch.CurrentRow.Cells[1].Value.ToString(); Logic.Item itm = new Logic.Item(); itm = new Logic.ItemService().seaarchItemId(txtOBItemCode.Text); txtOBUoM.Text = itm.strItemUoM; dgdOBItemSearch.Visible = false; txtOBQty.Focus(); }
internal void toItem(Logic.Item itm) { txtItemID.Text = itm.strItemID; txtItemName.Text = itm.strItemName; txtItemDesc.Text = itm.strItemDescription; if (itm.strItemCategory == "lubricant") { rbtlubricant.Checked = true; } else if (itm.strItemCategory == "other") { rbtother.Checked = true; } cmbItemUoM.SelectedText = itm.strItemUoM; txtReOrderLevel.Text = Convert.ToString(itm.fltItemReOderLevel); txtcurrrentStock.Text = Convert.ToString(itm.fltcurrentStock); txtItmCostPrice.Text = Convert.ToString(itm.dmlItemCostPrice); txtItemSellingPrice.Text = Convert.ToString(itm.dmlItemSellingPrice); }
private Logic.Item fromUi() { Logic.Item itm = new Logic.Item(); itm.strItemID = txtItemID.Text; itm.strItemName = txtItemName.Text; itm.strItemDescription = txtItemDesc.Text; if (rbtlubricant.Checked) { itm.strItemCategory = "lubricant"; } else if (rbtother.Checked) { itm.strItemCategory = "other"; } itm.strItemUoM = cmbItemUoM.SelectedItem.ToString(); itm.fltItemReOderLevel = float.Parse(txtReOrderLevel.Text); itm.fltcurrentStock = float.Parse(txtcurrrentStock.Text); itm.dmlItemCostPrice = Convert.ToDecimal(txtItmCostPrice.Text); itm.dmlItemSellingPrice = Convert.ToDecimal(txtItemSellingPrice.Text); return(itm); }
internal void toItemDeit(Logic.Item itm) { txtOBItemCode.Text = itm.strItemID; txtOBItemName.Text = itm.strItemName; txtOBUoM.SelectedText = itm.strItemUoM; }