示例#1
0
        public static TOrderItem ConvertToTOrderItem(OrderItem item, bool isDeleted)
        {
            TOrderItem orderItem = ConvertToTOrderItem(item);

            orderItem.IsDeleted = isDeleted;
            return(orderItem);
        }
示例#2
0
        public static OrderItem ConvertToOrderItem(TOrderItem item)
        {
            OrderItem orderItem = new OrderItem();

            orderItem.id                = item.ItemId;
            orderItem.order_id          = item.OrderId;
            orderItem.cost              = decimal.Parse(item.Cost.ToString());
            orderItem.description       = item.Description;
            orderItem.name              = item.Name;
            orderItem.order_item_number = item.OrderItemNumber;
            orderItem.quantity          = item.Quantity;
            orderItem.size              = item.Size;
            orderItem.value             = decimal.Parse(item.Value.ToString());
            orderItem.weight            = item.Weight;

            return(orderItem);
        }
示例#3
0
        public static TOrderItem ConvertToTOrderItem(OrderItem item)
        {
            TOrderItem titem = new TOrderItem();

            titem.ItemId          = item.id;
            titem.Cost            = double.Parse(item.cost.ToString());
            titem.Description     = item.description;
            titem.Name            = item.name;
            titem.OrderId         = item.order_id;
            titem.OrderItemNumber = item.order_item_number;
            titem.Quantity        = item.quantity;
            titem.Size            = item.size;
            titem.Value           = double.Parse(item.value.ToString());
            titem.Weight          = double.Parse(item.weight.ToString());

            return(titem);
        }