Exemplo n.º 1
0
        public void UpdateQtyPerPallet()
        {
            double CasesPerPallet  = 0;
            double QuantityPerUnit = 0;
            int    itemId          = Convert.ToInt32(itemLookUpEdit.EditValue);

            QuantityPerUnit = ItemsBLL.GetCaseQuantity(itemId);
            CasesPerPallet  = m_Items.GetCasesPerPallet(itemId);

            //UnitsPerPltTextEdit.EditValue = CasesPerPallet;
            QtyPerPltTextEdit.EditValue = (CasesPerPallet * QuantityPerUnit);

            //if(!string.IsNullOrEmpty(QtyTextEdit.Text))
            //    UnitsTextEdit.EditValue = Math.Ceiling(Convert.ToDouble(QtyTextEdit.Text) / QuantityPerUnit);
        }