private void btnFindItem_Click(object sender, EventArgs e) { frmFindItem frm = new frmFindItem(); frm.ShowDialog(); if (frm.strItemID.Trim() != "") { txtItemId.Text = frm.strItemID; GetItemData(txtItemId.Text); GetData(); } }
private void btnFindSrvceItem_Click(object sender, EventArgs e) { frmFindItem frm = new frmFindItem(); frm.ShowDialog(); if (frm.strItemID.Trim() != "") { txtSrvceItemSwid.Text = frm.strItemID; GetSrvceItem(txtSrvceItemSwid.Text); dgServiceItems.Rows[0].Selected = true; GetSrvceMaterialData(dgServiceItems[0, 0].Value.ToString()); } }
private void btnFindItem_Click(object sender, EventArgs e) { if (lstWarehouse.SelectedIndex == -1) { glb_function.MsgBox("الرجاء اختيار المخزن اولا"); lstWarehouse.Focus(); return; } frmFindItem frm = new frmFindItem(); frm.ShowDialog(); if (frm.strItemID.Trim() != "") { txtItemId.Text = frm.strItemID; GetItemData(txtItemId.Text); } }