Example #1
0
        public SupplierQuantityTableItem(
            int tenderQuantityTableItemId,
            string price,
            string discount,
            QuantityTableItem xxtem = null)

        {
            TenderQuantityTableItemId = tenderQuantityTableItemId;
            Price    = price;
            Discount = discount;
            TenderQuantityTableItem = xxtem;
            ItemAttachmentId        = xxtem.ItemAttachmentId;
            ItemAttachmentName      = xxtem.ItemAttachmentName;
            Name     = xxtem.Name;
            Quantity = xxtem.Quantity;
            Unit     = xxtem.Unit;
            if (xxtem == null)
            {
                TenderQuantityTableItemId = null;
            }
            EntityCreated();
        }
Example #2
0
 public SupplierQuantityTableItemsTemp(int tenderQuantityTableItemId, decimal price, decimal discount, QuantityTableItem xxtem = null)
 {
     //TenderQuantityTableItemId = tenderQuantityTableItemId;
     Price    = price;
     Discount = discount;
     //TenderQuantityTableItem = xxtem;
     ItemAttachmentId   = xxtem.ItemAttachmentId;
     ItemAttachmentName = xxtem.ItemAttachmentName;
     Name     = xxtem.Name;
     Quantity = xxtem.Quantity;
     Unit     = xxtem.Unit;
     //if (xxtem == null)
     //{
     //    TenderQuantityTableItemId = null;
     //}
     EntityCreated();
 }