| | |
| | | |
| | | var maxSort = await _wmsplaceRepository.GetMaxSortAsync(); |
| | | var sort = input.Sort ?? maxSort; |
| | | var wmsplace = new WmsPlace |
| | | { |
| | | |
| | | }; |
| | | var wmsplace = ObjectMapper.Map<WmsPlaceCreateDto,WmsPlace>(input); |
| | | input.MapExtraPropertiesTo(wmsplace, MappingPropertyDefinitionChecks.None); |
| | | |
| | | wmsplace.Sort = sort; |
| | | await _wmsplaceRepository.InsertAsync(wmsplace); |
| | | |
| | | if (input.Sort.HasValue && wmsplace.Sort != maxSort) |
| | |
| | | wmsplace.SetConcurrencyStampIfNotNull(input.ConcurrencyStamp); |
| | | input.MapExtraPropertiesTo(wmsplace, MappingPropertyDefinitionChecks.None); |
| | | |
| | | wmsplace.PlaceNo = input.PlaceNo; |
| | | wmsplace.StorageTypeNo = input.StorageTypeNo; |
| | | wmsplace.PlaceStatus = input.PlaceStatus; |
| | | wmsplace.AreaCode = input.AreaCode; |
| | | wmsplace.Aisle = input.Aisle; |
| | | wmsplace.RowNo = input.RowNo; |
| | | wmsplace.ColumnNo = input.ColumnNo; |
| | | wmsplace.LayerNo = input.LayerNo; |
| | | wmsplace.Islock = input.Islock; |
| | | wmsplace.EmptyContainer = input.EmptyContainer; |
| | | wmsplace.RedundantField1 = input.RedundantField1; |
| | | wmsplace.RedundantField2 = input.RedundantField2; |
| | | wmsplace.RedundantField3 = input.RedundantField3; |
| | | wmsplace.Remark = input.Remark; |
| | | |
| | | await _wmsplaceRepository.UpdateAsync(wmsplace); |
| | | |