Example #1
0
        private void btnAddReq_Click(object sender, EventArgs e)
        {
            try
            {
                string product = cbProducts.SelectedItem.ToString();
                int    qty     = Convert.ToInt16(txtQty.Text);
                statusLbl.Text = balObj.AddToRequestLog(txtCustomer.Text, "Cola Zero", qty);
            }
            catch (FormatException)
            {
                statusLbl.Text = "Quantity should be integer";
            }

            /*
             * string product = cbProducts.SelectedValue.ToString();
             * int qty = Convert.ToInt16(txtQty.Text);
             * string description = "default description";
             *
             * UPDATESTOCK.WS_UpdateStockSoapClient proxy = new UPDATESTOCK.WS_UpdateStockSoapClient();
             * statusLbl.Text = proxy.UpdateStockWith(product, qty, description);
             *
             *
             * //statusLbl.Text = balObj.AddToRequestLog(txtCustomer.Text, cbProducts.SelectedValue.ToString(), Convert.ToInt32(txtQty.Text));
             */
        }
Example #2
0
 private void btnAddReq_Click(object sender, EventArgs e)
 {
     statusLbl.Text = balObj.AddToRequestLog(txtCustomer.Text, cbProducts.SelectedValue.ToString(), Convert.ToInt32(txtQty.Text));
 }