59 changed files with 622 additions and 229 deletions
@ -1,4 +1,5 @@ |
|||||
using Volo.Abp.Authorization.Permissions; |
using Volo.Abp.Authorization.Permissions; |
||||
|
using Win_in.Sfs.Wms.Store.Domain; |
||||
|
|
||||
namespace Win_in.Sfs.Wms.Store.Application.Contracts; |
namespace Win_in.Sfs.Wms.Store.Application.Contracts; |
||||
|
|
@ -0,0 +1,21 @@ |
|||||
|
using Volo.Abp.Authorization.Permissions; |
||||
|
using Win_in.Sfs.Wms.Store.Domain; |
||||
|
|
||||
|
namespace Win_in.Sfs.Wms.Store.Application.Contracts; |
||||
|
|
||||
|
public static class ChassisOperationSequencePermissions |
||||
|
{ |
||||
|
public const string Default = StorePermissions.GroupName + "." + nameof(ChassisOperationSequence); |
||||
|
public const string Create = Default + "." + StorePermissions.CreateStr; |
||||
|
public const string Update = Default + "." + StorePermissions.UpdateStr; |
||||
|
public const string Delete = Default + "." + StorePermissions.DeleteStr; |
||||
|
|
||||
|
public static void AddChassisOperationSequencePermission(this PermissionGroupDefinition permissionGroup) |
||||
|
{ |
||||
|
var purchaseOrderPermission = |
||||
|
permissionGroup.AddPermission(Default, StorePermissionDefinitionProvider.L(nameof(ChassisOperationSequence))); |
||||
|
purchaseOrderPermission.AddChild(Create, StorePermissionDefinitionProvider.L(StorePermissions.CreateStr)); |
||||
|
purchaseOrderPermission.AddChild(Update, StorePermissionDefinitionProvider.L(StorePermissions.UpdateStr)); |
||||
|
purchaseOrderPermission.AddChild(Delete, StorePermissionDefinitionProvider.L(StorePermissions.DeleteStr)); |
||||
|
} |
||||
|
} |
@ -0,0 +1,48 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using Win_in.Sfs.Shared.Application.Contracts; |
||||
|
|
||||
|
namespace Win_in.Sfs.Wms.Store.Application.Contracts; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 底盘信息
|
||||
|
/// </summary>
|
||||
|
[Display(Name = "底盘信息")] |
||||
|
public class ChassisOperationSequenceDTO : SfsBasicDTOBase |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// Wms编号
|
||||
|
/// </summary>
|
||||
|
[Display(Name = "Wms编号")] |
||||
|
public string Number { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 底盘号
|
||||
|
/// </summary>
|
||||
|
[Display(Name = "底盘号")] |
||||
|
public string ChassisOperationSequenceNumber { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 描述
|
||||
|
/// </summary>
|
||||
|
[Display(Name = "描述")] |
||||
|
public string Description { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 底盘生产时间
|
||||
|
/// </summary>
|
||||
|
[Display(Name = "底盘生产时间")] |
||||
|
public DateTime ProduceDateTime { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 接收接口时间
|
||||
|
/// </summary>
|
||||
|
[Display(Name = "接收接口时间")] |
||||
|
public DateTime ReceiveInterfaceDateTime { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 执行位置排序列
|
||||
|
/// </summary>
|
||||
|
[Display(Name = "执行位置排序列")] |
||||
|
public long SortNumber { get; set; } |
||||
|
} |
@ -0,0 +1,12 @@ |
|||||
|
using Win_in.Sfs.Shared.Application.Contracts; |
||||
|
|
||||
|
namespace Win_in.Sfs.Wms.Store.Application.Contracts; |
||||
|
|
||||
|
public interface IChassisOperationSequenceAppService |
||||
|
: |
||||
|
ISfsStoreMasterAppServiceBase<ChassisOperationSequenceDTO, SfsStoreRequestInputBase, ChassisOperationSequenceEditInput, ChassisOperationSequenceDTO, |
||||
|
SfsStoreRequestInputBase>, |
||||
|
ISfsCheckStatusAppService |
||||
|
, ISfsUpsertAppService<ChassisOperationSequenceEditInput> |
||||
|
{ |
||||
|
} |
@ -0,0 +1,48 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
|
||||
|
namespace Win_in.Sfs.Wms.Store.Application.Contracts; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 底盘信息
|
||||
|
/// </summary>
|
||||
|
[Display(Name = "底盘信息")] |
||||
|
public class ChassisOperationSequenceEditInput |
||||
|
: SfsStoreCreateOrUpdateInputBase |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// Wms编号
|
||||
|
/// </summary>
|
||||
|
[Display(Name = "Wms编号")] |
||||
|
public string Number { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 底盘号
|
||||
|
/// </summary>
|
||||
|
[Display(Name = "底盘号")] |
||||
|
public string ChassisOperationSequenceNumber { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 描述
|
||||
|
/// </summary>
|
||||
|
[Display(Name = "描述")] |
||||
|
public string Description { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 底盘生产时间
|
||||
|
/// </summary>
|
||||
|
[Display(Name = "底盘生产时间")] |
||||
|
public DateTime ProduceDateTime { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 接收接口时间
|
||||
|
/// </summary>
|
||||
|
[Display(Name = "接收接口时间")] |
||||
|
public DateTime ReceiveInterfaceDateTime { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 执行位置排序列
|
||||
|
/// </summary>
|
||||
|
[Display(Name = "执行位置排序列")] |
||||
|
public long SortNumber { get; set; } |
||||
|
} |
@ -0,0 +1,51 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using Win_in.Sfs.Shared.Application.Contracts; |
||||
|
using Win_in.Sfs.Shared.Application.Contracts.ExportAndImport; |
||||
|
using Win_in.Sfs.Shared.Domain; |
||||
|
using Win_in.Sfs.Shared.Domain.Shared; |
||||
|
|
||||
|
namespace Win_in.Sfs.Wms.Store.Application.Contracts; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 底盘信息
|
||||
|
/// </summary>
|
||||
|
[Display(Name = "底盘信息")] |
||||
|
public class ChassisOperationSequenceImportInput : SfsStoreImportInputBase |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// Wms编号
|
||||
|
/// </summary>
|
||||
|
[Display(Name = "Wms编号")] |
||||
|
public string Number { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 底盘号
|
||||
|
/// </summary>
|
||||
|
[Display(Name = "底盘号")] |
||||
|
public string ChassisOperationSequenceNumber { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 描述
|
||||
|
/// </summary>
|
||||
|
[Display(Name = "描述")] |
||||
|
public string Description { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 底盘生产时间
|
||||
|
/// </summary>
|
||||
|
[Display(Name = "底盘生产时间")] |
||||
|
public DateTime ProduceDateTime { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 接收接口时间
|
||||
|
/// </summary>
|
||||
|
[Display(Name = "接收接口时间")] |
||||
|
public DateTime ReceiveInterfaceDateTime { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 执行位置排序列
|
||||
|
/// </summary>
|
||||
|
[Display(Name = "执行位置排序列")] |
||||
|
public long SortNumber { get; set; } |
||||
|
} |
@ -0,0 +1,87 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Threading; |
||||
|
using System.Threading.Tasks; |
||||
|
using Castle.Components.DictionaryAdapter; |
||||
|
using Microsoft.AspNetCore.Authorization; |
||||
|
using Microsoft.AspNetCore.Mvc; |
||||
|
using Microsoft.EntityFrameworkCore; |
||||
|
using Volo.Abp; |
||||
|
using Volo.Abp.Application.Dtos; |
||||
|
using Volo.Abp.Domain.Entities; |
||||
|
using Volo.Abp.Domain.Repositories; |
||||
|
using Volo.Abp.ObjectMapping; |
||||
|
using Win_in.Sfs.Basedata.Equipments.DTOs; |
||||
|
using Win_in.Sfs.Shared.Application; |
||||
|
using Win_in.Sfs.Shared.Application.Contracts; |
||||
|
using Win_in.Sfs.Store.Application.Contracts; |
||||
|
using Win_in.Sfs.Wms.Store.Application.Contracts; |
||||
|
using Win_in.Sfs.Wms.Store.Domain; |
||||
|
using Win_in.Sfs.Wms.Store.Domain.Shared; |
||||
|
using Win_in.Sfs.Wms.Store.Equipments; |
||||
|
|
||||
|
namespace Win_in.Sfs.Wms.Store.Application; |
||||
|
|
||||
|
[Authorize] |
||||
|
[Route($"{StoreConsts.RootPath}ChassisOperationSequence")] |
||||
|
public class ChassisOperationSequenceAppService |
||||
|
: SfsStoreAppServiceBase<Domain.ChassisOperationSequence, ChassisOperationSequenceDTO, SfsStoreRequestInputBase, ChassisOperationSequenceEditInput, |
||||
|
ExchangeDataImportInput> |
||||
|
, IChassisOperationSequenceAppService |
||||
|
|
||||
|
{ |
||||
|
private new readonly IChassisOperationSequenceRepository _repository; |
||||
|
private readonly IChassisOperationSequenceManager _manager; |
||||
|
|
||||
|
public ChassisOperationSequenceAppService( |
||||
|
IChassisOperationSequenceRepository repository, IChassisOperationSequenceManager manager |
||||
|
):base(repository) |
||||
|
{ |
||||
|
base.CreatePolicyName = ChassisOperationSequencePermissions.Create; |
||||
|
base.UpdatePolicyName = ChassisOperationSequencePermissions.Update; |
||||
|
base.DeletePolicyName = ChassisOperationSequencePermissions.Delete; |
||||
|
|
||||
|
_repository = repository; |
||||
|
_manager = manager; |
||||
|
} |
||||
|
#region 无用
|
||||
|
|
||||
|
[NonAction] |
||||
|
public Task<ChassisOperationSequenceDTO> GetDetailAsync(Guid id, Guid detailId) |
||||
|
{ |
||||
|
throw new NotImplementedException(); |
||||
|
} |
||||
|
|
||||
|
[NonAction] |
||||
|
public Task<List<ChassisOperationSequenceDTO>> GetDetailListAsync(Guid id, SfsStoreRequestInputBase requestInput) |
||||
|
{ |
||||
|
throw new NotImplementedException(); |
||||
|
} |
||||
|
|
||||
|
[NonAction] |
||||
|
public Task AddDetailListAsync(Guid id, List<ChassisOperationSequenceDTO> list) |
||||
|
{ |
||||
|
throw new NotImplementedException(); |
||||
|
} |
||||
|
|
||||
|
[NonAction] |
||||
|
public Task UpdateDetailAsync(Guid id, Guid detailId, ChassisOperationSequenceDTO updateDTO) |
||||
|
{ |
||||
|
throw new NotImplementedException(); |
||||
|
} |
||||
|
|
||||
|
[NonAction] |
||||
|
public Task CheckStatusAsync(string number) |
||||
|
{ |
||||
|
throw new NotImplementedException(); |
||||
|
} |
||||
|
|
||||
|
[NonAction] |
||||
|
public Task UpsertAsync(ChassisOperationSequenceEditInput input) |
||||
|
{ |
||||
|
throw new NotImplementedException(); |
||||
|
} |
||||
|
|
||||
|
#endregion
|
||||
|
} |
@ -0,0 +1,19 @@ |
|||||
|
using AutoMapper; |
||||
|
using Volo.Abp.AutoMapper; |
||||
|
using Win_in.Sfs.Basedata.Application.Contracts; |
||||
|
using Win_in.Sfs.Basedata.Domain; |
||||
|
using Win_in.Sfs.Store.Application.Contracts; |
||||
|
using Win_in.Sfs.Wms.Store.Application.Contracts; |
||||
|
using Win_in.Sfs.Wms.Store.Domain; |
||||
|
using Win_in.Sfs.Wms.Store.Equipments; |
||||
|
|
||||
|
namespace Win_in.Sfs.Wms.Store.Application; |
||||
|
|
||||
|
public partial class StoreApplicationAutoMapperProfile : Profile |
||||
|
{ |
||||
|
private void ChassisOperationSequenceAutoMapperProfile() |
||||
|
{ |
||||
|
CreateMap<Domain.ChassisOperationSequence, ChassisOperationSequenceDTO>() |
||||
|
.ReverseMap(); |
||||
|
} |
||||
|
} |
@ -1,13 +0,0 @@ |
|||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
using System.Linq; |
|
||||
using System.Text; |
|
||||
using System.Threading.Tasks; |
|
||||
using Win_in.Sfs.Shared.Domain; |
|
||||
using Win_in.Sfs.Wms.Store.Domain; |
|
||||
|
|
||||
namespace Win_in.Sfs.Wms.Store.Chassis; |
|
||||
public class ChassisDetail: SfsStoreDetailEntityBase |
|
||||
{ |
|
||||
|
|
||||
} |
|
@ -0,0 +1,49 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using Win_in.Sfs.Shared.Domain; |
||||
|
|
||||
|
namespace Win_in.Sfs.Wms.Store.Domain; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 底盘信息
|
||||
|
/// </summary>
|
||||
|
[Display(Name = "底盘信息")] |
||||
|
public class ChassisOperationSequence : SfsAggregateRootBase |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// Wms编号
|
||||
|
/// </summary>
|
||||
|
[Display(Name = "Wms编号")] |
||||
|
public string Number { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 底盘号
|
||||
|
/// </summary>
|
||||
|
[Display(Name = "底盘号")] |
||||
|
public string ChassisOperationSequenceNumber { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 描述
|
||||
|
/// </summary>
|
||||
|
[Display(Name = "描述")] |
||||
|
public string Description { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 底盘生产时间
|
||||
|
/// </summary>
|
||||
|
[Display(Name = "底盘生产时间")] |
||||
|
public DateTime ProduceDateTime { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 接收接口时间
|
||||
|
/// </summary>
|
||||
|
[Display(Name = "接收接口时间")] |
||||
|
public DateTime ReceiveInterfaceDateTime { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 执行位置排序列
|
||||
|
/// </summary>
|
||||
|
[Display(Name = "执行位置排序列")] |
||||
|
public long SortNumber { get; set; } |
||||
|
} |
@ -0,0 +1,23 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Threading.Tasks; |
||||
|
using Volo.Abp.Domain.Services; |
||||
|
|
||||
|
namespace Win_in.Sfs.Wms.Store.Domain; |
||||
|
|
||||
|
public class ChassisOperationSequenceManager : DomainService, IChassisOperationSequenceManager |
||||
|
{ |
||||
|
private readonly IChassisOperationSequenceRepository _repository; |
||||
|
|
||||
|
public ChassisOperationSequenceManager( |
||||
|
IChassisOperationSequenceRepository repository |
||||
|
) |
||||
|
{ |
||||
|
_repository = repository; |
||||
|
} |
||||
|
|
||||
|
public Task ImportDataAsync(List<ChassisOperationSequence> entities, List<ChassisOperationSequence> deleteEntities = null) |
||||
|
{ |
||||
|
throw new NotImplementedException(); |
||||
|
} |
||||
|
} |
@ -0,0 +1,12 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Threading.Tasks; |
||||
|
using Win_in.Sfs.Basedata.Equipments.DTOs; |
||||
|
using Win_in.Sfs.Shared.Domain; |
||||
|
using Win_in.Sfs.Wms.Store.Equipments; |
||||
|
|
||||
|
namespace Win_in.Sfs.Wms.Store.Domain; |
||||
|
|
||||
|
public interface IChassisOperationSequenceManager : IBulkImportService<ChassisOperationSequence> |
||||
|
{ |
||||
|
} |
@ -0,0 +1,10 @@ |
|||||
|
using System.Threading.Tasks; |
||||
|
using Win_in.Sfs.Shared.Domain; |
||||
|
using Win_in.Sfs.Wms.Store.Equipments; |
||||
|
|
||||
|
namespace Win_in.Sfs.Wms.Store.Domain; |
||||
|
|
||||
|
public interface IChassisOperationSequenceRepository : ISfsStoreRepositoryBase<ChassisOperationSequence>, ISfsBulkRepositoryBase<ChassisOperationSequence> |
||||
|
{ |
||||
|
|
||||
|
} |
@ -0,0 +1,31 @@ |
|||||
|
using Microsoft.EntityFrameworkCore; |
||||
|
using Volo.Abp.EntityFrameworkCore.Modeling; |
||||
|
using Win_in.Sfs.Shared.Domain.Shared; |
||||
|
using Win_in.Sfs.Wms.Store.Domain; |
||||
|
using Win_in.Sfs.Wms.Store.Equipments; |
||||
|
|
||||
|
namespace Win_in.Sfs.Wms.Store.EntityFrameworkCore; |
||||
|
|
||||
|
public static class ChassisOperationSequenceDbContextModelCreatingExtensions |
||||
|
{ |
||||
|
public static void ConfigureChassisOperationSequence(this ModelBuilder builder, StoreModelBuilderConfigurationOptions options) |
||||
|
{ |
||||
|
builder.Entity<Domain.ChassisOperationSequence>(b => |
||||
|
{ |
||||
|
//Configure table & schema name
|
||||
|
b.ToTable(options.TablePrefix + nameof(ChassisOperationSequence), options.Schema); |
||||
|
//Configure ABP properties
|
||||
|
b.ConfigureByConvention(); |
||||
|
//Configure Sfs base properties
|
||||
|
b.ConfigureSfsStoreBase(); |
||||
|
|
||||
|
b.Property(q => q.SortNumber).IsRequired(); |
||||
|
b.Property(q => q.ChassisOperationSequenceNumber).IsRequired().HasMaxLength(SfsPropertyConst.CodeLength).IsRequired(); |
||||
|
b.Property(q => q.Number).IsRequired().HasMaxLength(SfsPropertyConst.CodeLength).IsRequired(); |
||||
|
|
||||
|
b.HasIndex(q => q.ChassisOperationSequenceNumber).IsUnique(); |
||||
|
b.HasIndex(q => q.SortNumber).IsUnique(); |
||||
|
b.HasIndex(q => q.Number).IsUnique(); |
||||
|
}); |
||||
|
} |
||||
|
} |
@ -0,0 +1,18 @@ |
|||||
|
using System.Linq; |
||||
|
using System.Threading.Tasks; |
||||
|
using Microsoft.EntityFrameworkCore; |
||||
|
using Volo.Abp.EntityFrameworkCore; |
||||
|
using Win_in.Sfs.Shared.Domain; |
||||
|
using Win_in.Sfs.Wms.Store.Domain; |
||||
|
using Win_in.Sfs.Wms.Store.Equipments; |
||||
|
|
||||
|
namespace Win_in.Sfs.Wms.Store.EntityFrameworkCore; |
||||
|
|
||||
|
public class ChassisOperationSequenceEfCoreRepository : SfsStoreEfCoreRepositoryBase<StoreDbContext, Domain.ChassisOperationSequence>, IChassisOperationSequenceRepository, ISfsBulkRepositoryBase<Domain.ChassisOperationSequence> |
||||
|
{ |
||||
|
public ChassisOperationSequenceEfCoreRepository(IDbContextProvider<StoreDbContext> dbContextProvider) : base(dbContextProvider) |
||||
|
{ |
||||
|
} |
||||
|
|
||||
|
|
||||
|
} |
Loading…
Reference in new issue