コード例 #1
0
        private static ReturnRequestOrderItemComponentModel CreateReturnRequestOrderItemComponentModel(MOrder_OrderItemComponent from)
        {
            var to = new ReturnRequestOrderItemComponentModel();

            CopyReturnOrderItemComponentModel(to, from);
            return(to);
        }
コード例 #2
0
 private static void CopyReturnOrderItemComponentModel(ReturnRequestOrderItemComponentModel to, MOrder_OrderItemComponent from)
 {
     to.OrderableProjectComponentId = from.OrderableComponentId;
     to.Name = from.Description;
     //to.Sku = from.Sku;
     to.Quantity   = from.Quantity;
     to.UnitPrice  = from.UnitPrice;
     to.TotalPrice = from.TotalPrice;
 }