예제 #1
0
    public int AmountDesiredOfInventoryType(string type)
    {
        if (RequestedItems.ContainsKey(type) == false)
        {
            return(0);
        }

        Inventory inventory = DeliveredItems.ContainsKey(type) ? DeliveredItems[type] : null;

        return(RequestedItems[type].AmountDesired(inventory));
    }
예제 #2
0
    public int AmountDesiredOfInventoryType(string type)
    {
        RequestedItem requestedItem;

        if (RequestedItems.TryGetValue(type, out requestedItem) == false)
        {
            return(0);
        }

        Inventory inventory;

        if (DeliveredItems.TryGetValue(type, out inventory) == false)
        {
            inventory = null;
        }

        return(requestedItem.AmountDesired(inventory));
    }
예제 #3
0
        public void resetValueofVariables()
        {
            SelectedAdditionalFee      = null;
            SelectedAvailedItem        = null;
            SelectedAvailedServices    = null;
            SelectedCustomerSupplier   = null;
            SelectedEmployeeContractor = null;
            SelectedEmpPosition        = null;
            SelectedJobTitle           = null;
            SelectedPaymentH_          = null;
            SelectedPhase            = null;
            SelectedPhaseGroup       = null;
            SelectedPhasesPerService = null;
            SelectedProduct          = null;
            SelectedProductCategory  = null;
            SelectedProvince         = null;
            SelectedPurchaseOrder    = null;
            SelectedRegion           = null;
            SelectedRequestedItem    = null;
            SelectedSalesInvoice     = null;
            SelectedSalesQuote       = null;
            SelectedService          = null;
            SelectedServiceSchedule_ = null;
            SelectedShipVia          = null;
            SelectedUnit             = null;

            isContractor = false;
            isEdit       = false;

            isNewPurchaseOrder  = false;
            isEditPurchaseOrder = false;
            isViewPurchaseOrder = false;

            isNewSalesQuote  = false;
            isEditSalesQuote = false;
            isViewSalesQuote = false;

            isNewSchedule  = false;
            isEditSchedule = false;
            isViewSchedule = false;

            isNewRecord      = false;
            isNewSupplier    = false;
            isNewTrans       = false;
            isPaymentInvoice = false;
            isNewSched       = false;
            isView           = false;

            VatableSale         = 0;
            VatExemptedSales    = 0;
            TotalSalesWithOutDp = 0;
            ZeroRatedSales      = 0;
            VatAmount           = 0;
            TotalSales          = 0;
            TotalSalesNoVat     = 0;
            TotalDue            = 0;
            TotalDueNoVat       = 0;
            DiscountAmount      = 0;
            WithHoldingTax      = 0;
            Balance             = 0;
            Downpayment         = 0;

            DecimalTextBox = 0;
            IntegerTextBox = 0;
            StringTextBox  = "";
            DatePickerBox  = DateTime.Now;

            RequestedItems.Clear();
        }
예제 #4
0
 public bool Remove(OrderItem item)
 {
     return(RequestedItems.Remove(item));
 }
예제 #5
0
 IEnumerator IEnumerable.GetEnumerator()
 {
     return(RequestedItems.GetEnumerator());
 }
예제 #6
0
 public IEnumerator <OrderItem> GetEnumerator()
 {
     return(RequestedItems.GetEnumerator());
 }
예제 #7
0
 public void CopyTo(OrderItem[] array, int arrayIndex)
 {
     RequestedItems.CopyTo(array, arrayIndex);
 }
예제 #8
0
 public bool Contains(OrderItem item)
 {
     return(RequestedItems.Contains(item));
 }
예제 #9
0
 public void Clear()
 {
     RequestedItems.Clear();
 }
예제 #10
0
 public void Add(OrderItem item)
 {
     RequestedItems.Add(item);
 }