| | |
| | | using iWareCommon.Common.Entity; |
| | | using AutoMapper; |
| | | using iWareCommon.Common.Entity; |
| | | using iWareCommon.Utils; |
| | | using iWareDataCore.BASE.Entity; |
| | | using iWareDataCore.BASE.Service; |
| | |
| | | using System.Web.Mvc; |
| | | using WebWIPAPI.Models; |
| | | using WebWIPAPI.Properties; |
| | | using WebWIPAPI.Utils; |
| | | using LogTextHelper = WebWIPAPI.Utils.LogTextHelper; |
| | | |
| | | namespace WebWIPAPI.Controllers |
| | |
| | | |
| | | //第一步:先新增到物料基础表 |
| | | List<MaterialViewEntity> materials = new List<MaterialViewEntity>(); |
| | | materials = ClassHelper.RotationMapping<List<MaterialViewEntity>, List<MaterialViewForMesEntity>>(importMaterials); |
| | | |
| | | materials = ClassHelper.RotationMapping_Json<List<MaterialViewEntity>, List<MaterialViewForMesEntity>>(importMaterials); |
| | | |
| | | |
| | | MaterialViewService.GetInstance().ImportExcelFromMes(materials, out msg); |
| | | if (!string.IsNullOrEmpty(msg)) |
| | | { |
| | |
| | | |
| | | string typeName = "入库"; |
| | | List<InputMaterialEntity> inputmaterials = new List<InputMaterialEntity>(); |
| | | inputmaterials = ClassHelper.RotationMapping<List<InputMaterialEntity>, List<MaterialViewForMesEntity>>(importMaterials); |
| | | inputmaterials = ClassHelper.RotationMapping_Json<List<InputMaterialEntity>, List<MaterialViewForMesEntity>>(importMaterials); |
| | | handler_importOutOrder(typeName, inputmaterials, out msg); |
| | | |
| | | #endregion |