コード例 #1
0
        public virtual ApiBillOfMaterialResponseModel MapBOToModel(
            BOBillOfMaterial boBillOfMaterial)
        {
            var model = new ApiBillOfMaterialResponseModel();

            model.SetProperties(boBillOfMaterial.BillOfMaterialsID, boBillOfMaterial.BOMLevel, boBillOfMaterial.ComponentID, boBillOfMaterial.EndDate, boBillOfMaterial.ModifiedDate, boBillOfMaterial.PerAssemblyQty, boBillOfMaterial.ProductAssemblyID, boBillOfMaterial.StartDate, boBillOfMaterial.UnitMeasureCode);

            return(model);
        }
コード例 #2
0
        public virtual BOBillOfMaterial MapEFToBO(
            BillOfMaterial ef)
        {
            var bo = new BOBillOfMaterial();

            bo.SetProperties(
                ef.BillOfMaterialsID,
                ef.BOMLevel,
                ef.ComponentID,
                ef.EndDate,
                ef.ModifiedDate,
                ef.PerAssemblyQty,
                ef.ProductAssemblyID,
                ef.StartDate,
                ef.UnitMeasureCode);
            return(bo);
        }
コード例 #3
0
        public virtual BillOfMaterial MapBOToEF(
            BOBillOfMaterial bo)
        {
            BillOfMaterial efBillOfMaterial = new BillOfMaterial();

            efBillOfMaterial.SetProperties(
                bo.BillOfMaterialsID,
                bo.BOMLevel,
                bo.ComponentID,
                bo.EndDate,
                bo.ModifiedDate,
                bo.PerAssemblyQty,
                bo.ProductAssemblyID,
                bo.StartDate,
                bo.UnitMeasureCode);
            return(efBillOfMaterial);
        }
コード例 #4
0
        public virtual BOBillOfMaterial MapModelToBO(
            int billOfMaterialsID,
            ApiBillOfMaterialRequestModel model
            )
        {
            BOBillOfMaterial boBillOfMaterial = new BOBillOfMaterial();

            boBillOfMaterial.SetProperties(
                billOfMaterialsID,
                model.BOMLevel,
                model.ComponentID,
                model.EndDate,
                model.ModifiedDate,
                model.PerAssemblyQty,
                model.ProductAssemblyID,
                model.StartDate,
                model.UnitMeasureCode);
            return(boBillOfMaterial);
        }