Ejemplo n.º 1
0
        public static ReceiveDetailViewModel GenerateReceiveDetailModel(ReceiveDetail ReceiveDetailModel)
        {
            var model = new ReceiveDetailViewModel();

            model.ReceiveDetailID        = ReceiveDetailModel.ReceiveDetailID;
            model.UnitID                 = ReceiveDetailModel.UnitID;
            model.Description            = ReceiveDetailModel.Description;
            model.ReceivedQuantityInMT   = ReceiveDetailModel.QuantityInMT;
            model.ReceivedQuantityInUnit = ReceiveDetailModel.QuantityInUnit;
            model.CommodityGradeID       = ReceiveDetailModel.CommodityGradeID;
            model.CommodityID            = ReceiveDetailModel.CommodityID;
            model.SentQuantityInMT       = ReceiveDetailModel.SentQuantityInMT;
            model.SentQuantityInUnit     = ReceiveDetailModel.SentQuantityInUnit;
            model.ReceiveID              = ReceiveDetailModel.ReceiveID;
            return(model);
        }
Ejemplo n.º 2
0
 public static ReceiveDetailViewModel GenerateReceiveDetailModel(ReceiveDetail ReceiveDetailModel)
 {
     ReceiveDetailViewModel model = new ReceiveDetailViewModel();
     model.ReceiveDetailID = ReceiveDetailModel.ReceiveDetailID;
     model.UnitID = ReceiveDetailModel.UnitID;
     model.Description = ReceiveDetailModel.Description;
     model.ReceivedQuantityInMT = ReceiveDetailModel.QuantityInMT;
     model.ReceivedQuantityInUnit = ReceiveDetailModel.QuantityInUnit;
     model.CommodityGradeID = ReceiveDetailModel.CommodityGradeID;
     model.CommodityID = ReceiveDetailModel.CommodityID;
     model.SentQuantityInMT = ReceiveDetailModel.SentQuantityInMT;
     model.SentQuantityInUnit = ReceiveDetailModel.SentQuantityInUnit;
     model.ReceiveID = ReceiveDetailModel.ReceiveID;
     return model;
 }