示例#1
0
        private void btnFindItem_Click(object sender, EventArgs e)
        {
            Inventory.frmFindItem frm = new Inventory.frmFindItem();

            frm.ShowDialog();

            if (frm.strItemID.Trim() != "")
            {
                txtItemId.Text = frm.strItemID;
                GetItemData(txtItemId.Text);
                GetTotalQty();
            }
        }
示例#2
0
        private void btnPackageSearch_Click(object sender, EventArgs e)
        {
            Inventory.frmFindItem frm = new Inventory.frmFindItem();
            frm.strWhere = "";


            frm.ShowDialog();

            if (frm.strItemID.Trim() != "")
            {
                txtItemSwid.Text = frm.strItemID;

                //GetPacketItem(txtPackageItemSwid.Text);
            }
        }
示例#3
0
        private void btnFindItem_Click(object sender, EventArgs e)
        {
            if (txtSUPPLIER_ID.Text.Trim() == "")
            {
                glb_function.MsgBox("الرجاء اختيار المورد");
                return;
            }

            Inventory.frmFindItem frm = new Inventory.frmFindItem();

            frm.ShowDialog();

            if (frm.strItemID.Trim() != "")
            {
                txtITEM_SUPPLIER_Id.Text     = "";
                txtITEM_SUPPLIER_NUMBER.Text = "";
                txtITEM_SUPPLIER_NAME.Text   = "";
                txtITEM_INFO.Text            = "";
                txtItemId.Text = frm.strItemID;
                GetItemData(txtItemId.Text);
            }
        }
示例#4
0
 private void GetItem(int iColumn, int iRow)
 {
     if (iColumn == clmItemNo.Index || iColumn == clmItemName.Index)
     {
         if (lstWarehouse.SelectedIndex == -1)
         {
             glb_function.MsgBox("الرجاء اختيار المخزن اولا");
             lstWarehouse.Focus();
             return;
         }
         Inventory.frmFindItem frm = new Inventory.frmFindItem();
         frm.strWhere = " ";
         frm.ShowDialog();
         if (frm.strPKid != "")
         {
             dgvItems[clmItemPKid.Index, iRow].Value    = "";
             dgvItems[clmItemId.Index, iRow].Value      = frm.strPKid;
             dgvItems[clmItemNo.Index, iRow].Value      = frm.strItemNo;
             dgvItems[clmItemName.Index, iRow].Value    = frm.strItemName;
             dgvItems[clmOldUnitCost.Index, iRow].Value = frm.strUnitCost;
             dgvItems[clmQtyOnhand.Index, iRow].Value   = (glb_function.GetQty(frm.strPKid, lstWarehouse.SelectedValue.ToString())).ToString();
         }
     }
 }