private void txtStockCode_Leave(object sender, EventArgs e)
        {
            txtStockCode.Text = clsUtils.ChangeCase(txtStockCode.Text, 1);
            clsStock stock = new clsStock();

            stock.StockCode    = txtStockCode.Text.TrimEnd();
            stock.SupplierRef  = txtWarehouseRef.Text.TrimEnd();
            txtCurrentQty.Text = stock.GetWarehouseStockQty().ToString();
        }
Exemplo n.º 2
0
 private void TxtStockCode_Leave(object sender, EventArgs e)
 {
     if (TxtStockCode.TextLength != 0)
     {
         TxtStockCode.Text = clsUtils.ChangeCase(TxtStockCode.Text, 1);
         clsStock stock = new clsStock();
         stock.StockCode    = TxtStockCode.Text.TrimEnd();
         stock.SupplierRef  = TxtFromWarehouseRef.Text.TrimEnd();
         TxtCurrentQty.Text = stock.GetWarehouseStockQty().ToString();
     }
     else
     {
     }
 }
Exemplo n.º 3
0
        private void TxtStockCode_Leave(object sender, EventArgs e)
        {
            TxtStockCode.Text = clsUtils.ChangeCase(TxtStockCode.Text, 1);
            clsStock stock = new clsStock();

            stock.StockCode   = TxtStockCode.Text.TrimEnd();
            stock.SupplierRef = TxtWarehouseRef.Text.TrimEnd();
            if (TxtWarehouseName.Text == "")
            {
                TxtCurrentHangers.Text = "0";
            }
            else
            {
                TxtCurrentHangers.Text = stock.GetWarehouseStockQty().ToString();
            }
        }