Beispiel #1
0
        private void UpdateQuantityByRID()
        {
            long lngProductID = 0;
            try { 
                lngProductID = long.Parse(cboProductCode.SelectedValue);

                if (lngProductID != 0)
                {
                    Products clsProduct = new Products();
                    txtQuantity.Text = clsProduct.getReorderQtyByRID(lngProductID, Convert.ToDateTime(txtIDCStartDate.Text + " 00:00:00"), Convert.ToDateTime(txtIDCEndDate.Text + " 23:59:59")).ToString("#,##0.##0");
                    clsProduct.CommitAndDispose();

                    ComputeItemAmount();
                }
            }
            catch { }
            
        }