1
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"profiles": {
|
||||
"Tnb.BasicData.Entities": {
|
||||
"commandName": "Project",
|
||||
"launchBrowser": true,
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
},
|
||||
"applicationUrl": "https://localhost:50313;http://localhost:50314"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,5 +18,12 @@ namespace Tnb.BasicData.Interfaces
|
||||
/// <returns></returns>
|
||||
public Task<dynamic> GetHistoryList(EsopHistoryListQueryInput input);
|
||||
|
||||
/// <summary>
|
||||
/// 根据生产bom工序id获取实体
|
||||
/// </summary>
|
||||
/// <param name="dic">mbomProcessId</param>
|
||||
/// <returns></returns>
|
||||
public Task<dynamic> GetEntityByMbomProcessId(Dictionary<string,string> dic);
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"profiles": {
|
||||
"Tnb.BasicData.Interfaces": {
|
||||
"commandName": "Project",
|
||||
"launchBrowser": true,
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
},
|
||||
"applicationUrl": "https://localhost:50305;http://localhost:50306"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -126,6 +126,18 @@ namespace Tnb.BasicData
|
||||
return PageResult<ESopListOutput>.SqlSugarPageResult(list);
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
public async Task<dynamic> GetEntityByMbomProcessId(Dictionary<string, string> dic)
|
||||
{
|
||||
string mbomProcessId = dic["mbomProcessId"];
|
||||
if (!string.IsNullOrEmpty(mbomProcessId))
|
||||
{
|
||||
return await _repository.GetFirstAsync(x => x.mbom_process_id == mbomProcessId && x.enabled == 1);
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
public async Task<dynamic> UploadNewVersion(UploadNewVersionInput input)
|
||||
{
|
||||
|
||||
12
BasicData/Tnb.BasicData/Properties/launchSettings.json
Normal file
12
BasicData/Tnb.BasicData/Properties/launchSettings.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"profiles": {
|
||||
"Tnb.BasicData": {
|
||||
"commandName": "Project",
|
||||
"launchBrowser": true,
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
},
|
||||
"applicationUrl": "https://localhost:50307;http://localhost:50308"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -21,5 +21,9 @@ namespace Tnb.EquipMgr
|
||||
/// 报废
|
||||
/// </summary>
|
||||
public const string SCRAP = "4";
|
||||
/// <summary>
|
||||
/// 未入场
|
||||
/// </summary>
|
||||
public const string NOTADMITTED = "4";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
namespace Tnb.EquipMgr.Entities.Dto
|
||||
{
|
||||
public class EquipWorkshopChangeInput
|
||||
{
|
||||
public string equip_id { get; set; } = string.Empty;
|
||||
public string new_workshop_id { get; set; } = string.Empty;
|
||||
public string? new_installation_location { get; set; }
|
||||
public string? remark { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
namespace Tnb.EquipMgr.Entities.Dto
|
||||
{
|
||||
public class EquipWorkshopChangeQueryOutput
|
||||
{
|
||||
public string id { get; set; } = string.Empty;
|
||||
/// <summary>
|
||||
/// 旧车间id
|
||||
/// </summary>
|
||||
public string old_workshop_id { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 新车间id
|
||||
/// </summary>
|
||||
public string new_workshop_id { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 旧安装地点
|
||||
/// </summary>
|
||||
public string? old_installation_location { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 新安装地点
|
||||
/// </summary>
|
||||
public string? new_installation_location { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
public string? remark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
public string? create_time { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -188,4 +188,14 @@ public partial class EqpEquipment : BaseEntity<string>
|
||||
/// </summary>
|
||||
public string? station_code { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 质保开始时间
|
||||
/// </summary>
|
||||
public DateTime? warranty_start_time { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 质保结束时间
|
||||
/// </summary>
|
||||
public DateTime? warranty_end_time { get; set; }
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
using JNPF.Common.Contracts;
|
||||
using JNPF.Common.Security;
|
||||
using SqlSugar;
|
||||
|
||||
namespace Tnb.EquipMgr.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 设备使用车间变更记录
|
||||
/// </summary>
|
||||
[SugarTable("eqp_workshop_change_log")]
|
||||
public partial class EqpWorkshopChangeLog : BaseEntity<string>
|
||||
{
|
||||
public EqpWorkshopChangeLog()
|
||||
{
|
||||
id = SnowflakeIdHelper.NextId();
|
||||
}
|
||||
/// <summary>
|
||||
/// 设备id
|
||||
/// </summary>
|
||||
public string equip_id { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 旧车间id
|
||||
/// </summary>
|
||||
public string? old_workshop_id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 新车间id
|
||||
/// </summary>
|
||||
public string? new_workshop_id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 旧安装地点
|
||||
/// </summary>
|
||||
public string? old_installation_location { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 新安装地点
|
||||
/// </summary>
|
||||
public string? new_installation_location { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
public string? remark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建用户
|
||||
/// </summary>
|
||||
public string? create_id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
public DateTime? create_time { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改用户
|
||||
/// </summary>
|
||||
public string? modify_id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改时间
|
||||
/// </summary>
|
||||
public DateTime? modify_time { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 所属组织
|
||||
/// </summary>
|
||||
public string? org_id { get; set; }
|
||||
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"profiles": {
|
||||
"Tnb.EquipMgr.Entities": {
|
||||
"commandName": "Project",
|
||||
"launchBrowser": true,
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
},
|
||||
"applicationUrl": "https://localhost:50299;http://localhost:50300"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
using Tnb.EquipMgr.Entities.Dto;
|
||||
|
||||
namespace Tnb.EquipMgr.Interfaces
|
||||
{
|
||||
/// <summary>
|
||||
/// 设备迁移服务
|
||||
/// </summary>
|
||||
public interface IEqpWorkshopChangeLogService
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据设备id获取迁移记录
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public Task<dynamic> GetEquipWorkshopChangeList(EquipQueryInput input);
|
||||
|
||||
/// <summary>
|
||||
/// 设备迁移
|
||||
/// </summary>
|
||||
/// <param name="input"></param>
|
||||
/// <returns></returns>
|
||||
public Task<dynamic> WorkshopChange(EquipWorkshopChangeInput input);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"profiles": {
|
||||
"Tnb.EquipMgr.Interfaces": {
|
||||
"commandName": "Project",
|
||||
"launchBrowser": true,
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
},
|
||||
"applicationUrl": "https://localhost:50303;http://localhost:50304"
|
||||
}
|
||||
}
|
||||
}
|
||||
95
EquipMgr/Tnb.EquipMgr/EqpWorkshopChangeLogService.cs
Normal file
95
EquipMgr/Tnb.EquipMgr/EqpWorkshopChangeLogService.cs
Normal file
@@ -0,0 +1,95 @@
|
||||
using JNPF.Common.Core.Manager;
|
||||
using JNPF.Common.Enums;
|
||||
using JNPF.Common.Filter;
|
||||
using JNPF.DependencyInjection;
|
||||
using JNPF.DynamicApiController;
|
||||
using JNPF.FriendlyException;
|
||||
using JNPF.Systems.Entitys.Permission;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Newtonsoft.Json;
|
||||
using SqlSugar;
|
||||
using Tnb.EquipMgr.Entities;
|
||||
using Tnb.EquipMgr.Entities.Dto;
|
||||
using Tnb.EquipMgr.Interfaces;
|
||||
|
||||
namespace Tnb.EquipMgr
|
||||
{
|
||||
/// <summary>
|
||||
/// 设备技术参数
|
||||
/// </summary>
|
||||
[ApiDescriptionSettings(Tag = ModuleConsts.Tag, Area = ModuleConsts.Area, Order = 700)]
|
||||
[Route("api/[area]/[controller]/[action]")]
|
||||
public class EqpWorkshopChangeLogService : IEqpWorkshopChangeLogService, IDynamicApiController, ITransient
|
||||
{
|
||||
private readonly ISqlSugarRepository<EqpWorkshopChangeLog> _repository;
|
||||
private readonly IUserManager _userManager;
|
||||
|
||||
public EqpWorkshopChangeLogService(ISqlSugarRepository<EqpWorkshopChangeLog> repository, IUserManager userManager)
|
||||
{
|
||||
_userManager = userManager;
|
||||
_repository = repository;
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
public async Task<dynamic> GetEquipWorkshopChangeList(EquipQueryInput input)
|
||||
{
|
||||
var db = _repository.AsSugarClient();
|
||||
// Dictionary<string, string>? queryJson = new Dictionary<string, string>();
|
||||
// if (input!=null && !string.IsNullOrEmpty(input.queryJson))
|
||||
// {
|
||||
// queryJson = JsonConvert.DeserializeObject<Dictionary<string, string>>(input?.queryJson ?? "");
|
||||
// }
|
||||
var result = await db.Queryable<EqpWorkshopChangeLog>()
|
||||
.LeftJoin<OrganizeEntity>((a,b)=>a.old_workshop_id==b.Id)
|
||||
.LeftJoin<OrganizeEntity>((a,b,c)=>a.new_workshop_id==c.Id)
|
||||
.WhereIF(input!=null,a=>a.equip_id==input.equip_id)
|
||||
//.WhereIF(queryJson!=null && queryJson.ContainsKey("name"),a=>a.name.Contains(queryJson["name"]))
|
||||
.Select((a,b,c) => new EquipWorkshopChangeQueryOutput
|
||||
{
|
||||
id = a.id,
|
||||
old_workshop_id = b.FullName,
|
||||
new_workshop_id = c.FullName,
|
||||
old_installation_location = a.old_installation_location,
|
||||
new_installation_location = a.new_installation_location,
|
||||
remark = a.remark,
|
||||
create_time = a.create_time==null ? null : a.create_time.Value.ToString("yyyy-MM-dd"),
|
||||
}).ToPagedListAsync((input?.currentPage??1), (input?.pageSize??50));
|
||||
|
||||
return PageResult<EquipWorkshopChangeQueryOutput>.SqlSugarPageResult(result);
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
public async Task<dynamic> WorkshopChange(EquipWorkshopChangeInput input)
|
||||
{
|
||||
var db = _repository.AsSugarClient();
|
||||
DbResult<bool> result = await db.Ado.UseTranAsync(async () =>
|
||||
{
|
||||
EqpEquipment eqpEquipment = await db.Queryable<EqpEquipment>().SingleAsync(x => x.id == input.equip_id);
|
||||
|
||||
EqpWorkshopChangeLog eqpWorkshopChangeLog = new EqpWorkshopChangeLog()
|
||||
{
|
||||
equip_id = input.equip_id,
|
||||
old_workshop_id = eqpEquipment.use_department_id,
|
||||
new_workshop_id = input.new_workshop_id,
|
||||
old_installation_location = eqpEquipment.installation_location,
|
||||
new_installation_location = input.new_installation_location,
|
||||
remark = input.remark,
|
||||
create_id = _userManager.UserId,
|
||||
create_time = DateTime.Now,
|
||||
org_id = _userManager.GetUserInfo().Result.organizeId
|
||||
};
|
||||
|
||||
await _repository.InsertAsync(eqpWorkshopChangeLog);
|
||||
|
||||
await db.Updateable<EqpEquipment>()
|
||||
.SetColumns(x => x.use_department_id == input.new_workshop_id)
|
||||
.SetColumns(x => x.installation_location == input.new_installation_location)
|
||||
.Where(x => x.id == input.equip_id).ExecuteCommandAsync();
|
||||
|
||||
});
|
||||
|
||||
if(!result.IsSuccess) throw Oops.Oh(ErrorCode.COM1008);
|
||||
return result.IsSuccess ? "迁移成功" : result.ErrorMessage;
|
||||
}
|
||||
}
|
||||
}
|
||||
12
EquipMgr/Tnb.EquipMgr/Properties/launchSettings.json
Normal file
12
EquipMgr/Tnb.EquipMgr/Properties/launchSettings.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"profiles": {
|
||||
"Tnb.EquipMgr": {
|
||||
"commandName": "Project",
|
||||
"launchBrowser": true,
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
},
|
||||
"applicationUrl": "https://localhost:50301;http://localhost:50302"
|
||||
}
|
||||
}
|
||||
}
|
||||
12
PerMgr/Tnb.PerMgr.Entities/Properties/launchSettings.json
Normal file
12
PerMgr/Tnb.PerMgr.Entities/Properties/launchSettings.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"profiles": {
|
||||
"Tnb.PerMgr.Entities": {
|
||||
"commandName": "Project",
|
||||
"launchBrowser": true,
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
},
|
||||
"applicationUrl": "https://localhost:50319;http://localhost:50320"
|
||||
}
|
||||
}
|
||||
}
|
||||
12
PerMgr/Tnb.PerMgr.Interfaces/Properties/launchSettings.json
Normal file
12
PerMgr/Tnb.PerMgr.Interfaces/Properties/launchSettings.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"profiles": {
|
||||
"Tnb.PerMgr.Interfaces": {
|
||||
"commandName": "Project",
|
||||
"launchBrowser": true,
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
},
|
||||
"applicationUrl": "https://localhost:50321;http://localhost:50322"
|
||||
}
|
||||
}
|
||||
}
|
||||
12
PerMgr/Tnb.PerMgr/Properties/launchSettings.json
Normal file
12
PerMgr/Tnb.PerMgr/Properties/launchSettings.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"profiles": {
|
||||
"Tnb.PerMgr": {
|
||||
"commandName": "Project",
|
||||
"launchBrowser": true,
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
},
|
||||
"applicationUrl": "https://localhost:50317;http://localhost:50318"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"profiles": {
|
||||
"Tnb.ProductionMgr.Entities": {
|
||||
"commandName": "Project",
|
||||
"launchBrowser": true,
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
},
|
||||
"applicationUrl": "https://localhost:50311;http://localhost:50312"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"profiles": {
|
||||
"Tnb.ProductionMgr.Interfaces": {
|
||||
"commandName": "Project",
|
||||
"launchBrowser": true,
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
},
|
||||
"applicationUrl": "https://localhost:50315;http://localhost:50316"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -89,7 +89,7 @@ namespace Tnb.ProductionMgr
|
||||
process_id = a.process_id,
|
||||
plan_start_date = a.estimated_start_date,
|
||||
plan_end_date = a.estimated_end_date,
|
||||
plan_qty = c.plan_qty,
|
||||
plan_qty = c.scheduled_qty,
|
||||
// complete_qty = SqlFunc.Subqueryable<PrdReport>().Where(it => it.mo_task_code == a.mo_task_code).Sum(it => it.reported_work_qty),
|
||||
complete_qty = a.last_process_complete_qty,
|
||||
mo_task_status = a.mo_task_status,
|
||||
@@ -179,7 +179,7 @@ namespace Tnb.ProductionMgr
|
||||
process_name = b.process_name,
|
||||
plan_start_date = a.estimated_start_date,
|
||||
plan_end_date = a.estimated_end_date,
|
||||
plan_qty = c.plan_qty,
|
||||
plan_qty = c.scheduled_qty,
|
||||
//complete_qty = SqlFunc.Subqueryable<PrdReport>().Where(it => it.mo_task_code == a.mo_task_code).Sum(it => it.reported_work_qty),
|
||||
complete_qty = a.reported_work_qty + a.scrap_qty,
|
||||
mo_task_status = a.mo_task_status,
|
||||
@@ -197,8 +197,8 @@ namespace Tnb.ProductionMgr
|
||||
{
|
||||
nsChild[i].parentId = parentId;
|
||||
nsChild[i].process_id = $"{items[i].process_code}/{items[i].process_name}";
|
||||
nsChild[i].plan_start_date = items[i].estimated_start_date.HasValue ? items[i].estimated_start_date.Value.ToString("yyyy-MM-dd HH:mm:ss") : "";
|
||||
nsChild[i].plan_end_date = items[i].estimated_end_date.HasValue ? items[i].estimated_end_date.Value.ToString("yyyy-MM-dd HH:mm:ss") : "";
|
||||
nsChild[i].plan_start_date = items[i].plan_start_date.HasValue ? items[i].plan_start_date.Value.ToString("yyyy-MM-dd HH:mm:ss") : "";
|
||||
nsChild[i].plan_end_date = items[i].plan_end_date.HasValue ? items[i].plan_end_date.Value.ToString("yyyy-MM-dd HH:mm:ss") : "";
|
||||
|
||||
if (nsChild[i].workline_id.IsNotEmptyOrNull())
|
||||
{
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"profiles": {
|
||||
"Tnb.ProductionMgr": {
|
||||
"commandName": "Project",
|
||||
"launchBrowser": true,
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
},
|
||||
"applicationUrl": "https://localhost:50309;http://localhost:50310"
|
||||
}
|
||||
}
|
||||
}
|
||||
12
QcMgr/Tnb.QcMgr.Entities/Properties/launchSettings.json
Normal file
12
QcMgr/Tnb.QcMgr.Entities/Properties/launchSettings.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"profiles": {
|
||||
"Tnb.QcMgr.Entities": {
|
||||
"commandName": "Project",
|
||||
"launchBrowser": true,
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
},
|
||||
"applicationUrl": "https://localhost:50295;http://localhost:50296"
|
||||
}
|
||||
}
|
||||
}
|
||||
12
QcMgr/Tnb.QcMgr.Interfaces/Properties/launchSettings.json
Normal file
12
QcMgr/Tnb.QcMgr.Interfaces/Properties/launchSettings.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"profiles": {
|
||||
"Tnb.QcMgr.Interfaces": {
|
||||
"commandName": "Project",
|
||||
"launchBrowser": true,
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
},
|
||||
"applicationUrl": "https://localhost:50297;http://localhost:50298"
|
||||
}
|
||||
}
|
||||
}
|
||||
12
QcMgr/Tnb.QcMgr/Properties/launchSettings.json
Normal file
12
QcMgr/Tnb.QcMgr/Properties/launchSettings.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"profiles": {
|
||||
"Tnb.QcMgr": {
|
||||
"commandName": "Project",
|
||||
"launchBrowser": true,
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
},
|
||||
"applicationUrl": "https://localhost:50291;http://localhost:50292"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -94,6 +94,9 @@ EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "12-ProductionMgr", "12-ProductionMgr", "{ABE58B5E-610B-4159-BFF0-8B04BF700B3C}"
|
||||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "13-WarehouseMgr", "13-WarehouseMgr", "{D90E2789-189A-4F05-B081-27F2FABB2E7E}"
|
||||
ProjectSection(SolutionItems) = preProject
|
||||
WmsSignForDeliveryService.txt = WmsSignForDeliveryService.txt
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "14-QcMgr", "14-QcMgr", "{D65B00D5-F40C-4FF2-8F8D-870772FAAA56}"
|
||||
EndProject
|
||||
@@ -131,11 +134,11 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tnb.ProductionMgr.Entities"
|
||||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "16-PerMgr", "16-PerMgr", "{74AB6486-1090-4CC9-9D1A-F1245E3ECFC3}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tnb.PerMgr", "PerMgr\Tnb.PerMgr\Tnb.PerMgr.csproj", "{D41946CF-09C6-4CA4-A1F4-42E7E1538BF7}"
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tnb.PerMgr", "PerMgr\Tnb.PerMgr\Tnb.PerMgr.csproj", "{D41946CF-09C6-4CA4-A1F4-42E7E1538BF7}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tnb.PerMgr.Entities", "PerMgr\Tnb.PerMgr.Entities\Tnb.PerMgr.Entities.csproj", "{42AD083D-D199-4B09-ADD8-89251011C959}"
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tnb.PerMgr.Entities", "PerMgr\Tnb.PerMgr.Entities\Tnb.PerMgr.Entities.csproj", "{42AD083D-D199-4B09-ADD8-89251011C959}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tnb.PerMgr.Interfaces", "PerMgr\Tnb.PerMgr.Interfaces\Tnb.PerMgr.Interfaces.csproj", "{F3656494-27D3-4BD7-B831-8D909DFBD7B9}"
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tnb.PerMgr.Interfaces", "PerMgr\Tnb.PerMgr.Interfaces\Tnb.PerMgr.Interfaces.csproj", "{F3656494-27D3-4BD7-B831-8D909DFBD7B9}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
|
||||
@@ -15,6 +15,10 @@ namespace Tnb.WarehouseMgr.Entities.Consts
|
||||
/// </summary>
|
||||
public const string WMS_INSTOCK_D_BILL_STATUS_TYPEID = "25065133038101";
|
||||
/// <summary>
|
||||
/// 业务类型TypeId
|
||||
/// </summary>
|
||||
public const string WMS_BIZTYPE_ID = "25043955941909";
|
||||
/// <summary>
|
||||
/// 预任务生成EnCode
|
||||
/// </summary>
|
||||
public const string WMS_PRETASK_H_ENCODE = "PreTaskGen";
|
||||
@@ -74,6 +78,23 @@ namespace Tnb.WarehouseMgr.Entities.Consts
|
||||
/// 单据状态-完成
|
||||
/// </summary>
|
||||
public const string BILLSTATUS_COMPLETE_ID = "25065149810453";
|
||||
/// <summary>
|
||||
/// 单据状态-取消
|
||||
/// </summary>
|
||||
public const string BILLSTATUS_CANCEL_ID = "25065146252309";
|
||||
/// <summary>
|
||||
/// 单据状态-新增
|
||||
/// </summary>
|
||||
public const string BILLSTATUS_ADD_ID = "25065138925589";
|
||||
/// <summary>
|
||||
/// 单据状态-已呼叫
|
||||
/// </summary>
|
||||
public const string BILLSTATUS_CALLED_ID = "25065138925589";
|
||||
/// <summary>
|
||||
/// 单据状态-待配送
|
||||
/// </summary>
|
||||
public const string BILLSTATUS_TOBESHIPPED_ID = "26169434213669";
|
||||
|
||||
/// <summary>
|
||||
/// 任务类型-入库TypeId
|
||||
/// </summary>
|
||||
@@ -149,7 +170,5 @@ namespace Tnb.WarehouseMgr.Entities.Consts
|
||||
/// </summary>
|
||||
public const string BARCODE_PRINT_STATUS_COMPLETE_ID = "26191372853541";
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Tnb.WarehouseMgr.Entities.Dto.Inputs
|
||||
{
|
||||
/// <summary>
|
||||
/// 出库签收输入参数
|
||||
/// </summary>
|
||||
public class SignForDeliveryInput
|
||||
{
|
||||
/// <summary>
|
||||
/// 任务ID
|
||||
/// </summary>
|
||||
public string disTaskId { get; set; }
|
||||
/// <summary>
|
||||
/// 载具ID
|
||||
/// </summary>
|
||||
public string carryId { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,142 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Tnb.WarehouseMgr.Entities.Dto.Outputs
|
||||
{
|
||||
/// <summary>
|
||||
/// 载具信息输出类
|
||||
/// </summary>
|
||||
public class CarryInfoOutput
|
||||
{
|
||||
/// <summary>
|
||||
/// 租户ID
|
||||
/// </summary>
|
||||
public string? tenant_id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 所属组织ID
|
||||
/// </summary>
|
||||
public string? org_id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 载具编号
|
||||
/// </summary>
|
||||
public string carry_code { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 载具名称
|
||||
/// </summary>
|
||||
public string carry_name { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 状态
|
||||
/// </summary>
|
||||
public int status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 载具状态
|
||||
/// </summary>
|
||||
public string carry_status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 载具分类ID
|
||||
/// </summary>
|
||||
public string carrystd_id { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 载具库位ID
|
||||
/// </summary>
|
||||
public string? location_id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 载具库位编号
|
||||
/// </summary>
|
||||
public string? location_code { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否锁定
|
||||
/// </summary>
|
||||
public int is_lock { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 出库类型
|
||||
/// </summary>
|
||||
public string out_status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否检验
|
||||
/// </summary>
|
||||
public int is_check { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 来源单据ID
|
||||
/// </summary>
|
||||
public string? source_id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 来源单据代码
|
||||
/// </summary>
|
||||
public string? source_code { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建用户
|
||||
/// </summary>
|
||||
public string create_id { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
public DateTime create_time { get; set; } = DateTime.Now;
|
||||
|
||||
/// <summary>
|
||||
/// 最后修改人员ID
|
||||
/// </summary>
|
||||
public string? modify_id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 最后修改时间
|
||||
/// </summary>
|
||||
public DateTime? modify_time { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 扩展字段
|
||||
/// </summary>
|
||||
public string? extras { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 时间戳(用于并发控制)
|
||||
/// </summary>
|
||||
public DateTime? timestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 打包号
|
||||
/// </summary>
|
||||
public string? bale_num { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 齐套搭配方案ID
|
||||
/// </summary>
|
||||
public string? collocation_scheme_id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 齐套搭配方案编号
|
||||
/// </summary>
|
||||
public string? collocation_scheme_code { get; set; }
|
||||
/// <summary>
|
||||
/// 载具明细列表
|
||||
/// </summary>
|
||||
public List<WmsCarryD> carryDetails { get; set; }=new List<WmsCarryD>();
|
||||
/// <summary>
|
||||
/// 载具条码列表
|
||||
/// </summary>
|
||||
public List<WmsCarryCode> carryCodes { get; set; } = new List<WmsCarryCode>();
|
||||
/// <summary>
|
||||
/// 载具无聊分拣明细
|
||||
/// </summary>
|
||||
public List<WmsCarryMat> carryMats { get; set; } = new List<WmsCarryMat>();
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
using JNPF.Common.Contracts;
|
||||
using JNPF.Common.Security;
|
||||
using SqlSugar;
|
||||
using SqlSugar.DbConvert;
|
||||
|
||||
namespace Tnb.WarehouseMgr.Entities;
|
||||
|
||||
@@ -42,7 +43,9 @@ public partial class WmsCarryH : BaseEntity<string>
|
||||
/// <summary>
|
||||
/// 载具状态
|
||||
/// </summary>
|
||||
public string carry_status { get; set; }
|
||||
///
|
||||
[SugarColumn(ColumnDataType = "varchar(32)", SqlParameterDbType = typeof(CommonPropertyConvert))]
|
||||
public int carry_status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 载具分类ID
|
||||
|
||||
@@ -13,5 +13,5 @@ public partial class WmsDistaskH
|
||||
/// 载具状态
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public string carry_status { get; set; }
|
||||
public int carry_status { get; set; }
|
||||
}
|
||||
|
||||
@@ -94,9 +94,4 @@ public partial class WmsFeedingrecordCode : BaseEntity<string>
|
||||
/// </summary>
|
||||
public DateTime? modify_time { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 行号
|
||||
/// </summary>
|
||||
public int no { get; set; }
|
||||
|
||||
}
|
||||
|
||||
@@ -55,9 +55,9 @@ public partial class WmsKittingoutD : BaseEntity<string>
|
||||
public string? code_batch { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数量(件数)
|
||||
/// 出库需求数量
|
||||
/// </summary>
|
||||
public decimal qty { get; set; }
|
||||
public decimal pr_qty { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 箱数
|
||||
|
||||
@@ -122,7 +122,7 @@ public partial class WmsSetsortingH : BaseEntity<string>
|
||||
/// <summary>
|
||||
/// 顺序号
|
||||
/// </summary>
|
||||
public int order { get; set; }
|
||||
public int seq { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
@@ -152,11 +152,21 @@ public partial class WmsSetsortingH : BaseEntity<string>
|
||||
/// <summary>
|
||||
/// 修改用户
|
||||
/// </summary>
|
||||
public string modify_id { get; set; } = string.Empty;
|
||||
public string? modify_id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改时间
|
||||
/// </summary>
|
||||
public DateTime modify_time { get; set; } = DateTime.Now;
|
||||
public DateTime? modify_time { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 流程任务Id
|
||||
/// </summary>
|
||||
public string? f_flowtaskid { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 流程引擎Id
|
||||
/// </summary>
|
||||
public string? f_flowid { get; set; }
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
using JNPF.Common.Contracts;
|
||||
using JNPF.Common.Security;
|
||||
using SqlSugar;
|
||||
|
||||
namespace Tnb.WarehouseMgr.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 齐套分拣主表
|
||||
/// </summary>
|
||||
public partial class WmsSetsortingH
|
||||
{
|
||||
/// <summary>
|
||||
/// 载具ID
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public string? carry_id { get; set; }
|
||||
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public string? carry_code { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"profiles": {
|
||||
"Tnb.WarehouseMgr.Entities": {
|
||||
"commandName": "Project",
|
||||
"launchBrowser": true,
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
},
|
||||
"applicationUrl": "https://localhost:50287;http://localhost:50288"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Tnb.WarehouseMgr.Interfaces
|
||||
{
|
||||
/// <summary>
|
||||
/// 齐套出库服务接口
|
||||
/// </summary>
|
||||
public interface IWmskittingOutService
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"profiles": {
|
||||
"Tnb.WarehouseMgr.Interfaces": {
|
||||
"commandName": "Project",
|
||||
"launchBrowser": true,
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
},
|
||||
"applicationUrl": "https://localhost:50293;http://localhost:50294"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -446,11 +446,11 @@ namespace Tnb.WarehouseMgr
|
||||
for (int i = 0; i < multis.Count; i++)
|
||||
{
|
||||
var carryStatus = multis[i].carry_status;
|
||||
if (multis[i].carry_status == "0")
|
||||
if (multis[i].carry_status == (int)EnumCarryStatus.空闲)
|
||||
{
|
||||
carryStatus = "1";
|
||||
carryStatus = (int)EnumCarryStatus.空闲;
|
||||
}
|
||||
await _db.Updateable<BasLocation>().SetColumns(it => new BasLocation { is_use = carryStatus, is_lock = 0 }).Where(it => it.id == multis[i].endlocation_id).ExecuteCommandAsync();
|
||||
await _db.Updateable<BasLocation>().SetColumns(it => new BasLocation { is_use = carryStatus.ToString(), is_lock = 0 }).Where(it => it.id == multis[i].endlocation_id).ExecuteCommandAsync();
|
||||
}
|
||||
//更新业务主表的单据状态
|
||||
if (disTasks?.Count > 0)
|
||||
@@ -517,7 +517,10 @@ namespace Tnb.WarehouseMgr
|
||||
{
|
||||
await _db.Ado.BeginTranAsync();
|
||||
//根据生成的预任务,插入预任务操作记录
|
||||
if (input.PreTaskRecord != null)
|
||||
{
|
||||
await _db.Insertable(input.PreTaskRecord).ExecuteCommandAsync();
|
||||
}
|
||||
if (input.PreTaskHandleCodes.Count > 0)
|
||||
{
|
||||
await _db.Insertable(input.PreTaskHandleCodes).ExecuteCommandAsync();
|
||||
|
||||
@@ -22,6 +22,7 @@ using Tnb.WarehouseMgr.Entities;
|
||||
using Tnb.WarehouseMgr.Entities.Attributes;
|
||||
using Tnb.WarehouseMgr.Entities.Consts;
|
||||
using Tnb.WarehouseMgr.Entities.Dto;
|
||||
using Tnb.WarehouseMgr.Entities.Enums;
|
||||
using Tnb.WarehouseMgr.Interfaces;
|
||||
|
||||
namespace Tnb.WarehouseMgr
|
||||
@@ -69,9 +70,9 @@ namespace Tnb.WarehouseMgr
|
||||
var subCarry = await _db.Queryable<WmsCarryH>().SingleAsync(it => it.id == subCarryId);
|
||||
if (carry != null && subCarry != null)
|
||||
{
|
||||
carry.carry_status = "1";
|
||||
carry.carry_status = (int)EnumCarryStatus.占用;
|
||||
var row = await _db.Updateable(carry).ExecuteCommandAsync();
|
||||
subCarry.carry_status = "1";
|
||||
subCarry.carry_status = (int)EnumCarryStatus.占用;
|
||||
row = await _db.Updateable(subCarry).ExecuteCommandAsync();
|
||||
//更新载具明细表
|
||||
WmsCarryD wmsCarryD = new()
|
||||
|
||||
@@ -18,6 +18,7 @@ using Tnb.Common.Utils;
|
||||
using Tnb.WarehouseMgr.Entities;
|
||||
using Tnb.WarehouseMgr.Entities.Consts;
|
||||
using Tnb.WarehouseMgr.Entities.Dto;
|
||||
using Tnb.WarehouseMgr.Entities.Dto.Outputs;
|
||||
using Tnb.WarehouseMgr.Entities.Enums;
|
||||
using Tnb.WarehouseMgr.Interfaces;
|
||||
|
||||
@@ -49,6 +50,23 @@ namespace Tnb.WarehouseMgr
|
||||
OverideFuncs.CreateAsync = ExchangeCarry;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据载具ID获取载具信息
|
||||
/// </summary>
|
||||
/// <param name="carryId"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet]
|
||||
public async Task<dynamic> GetCarryInfoById([FromRoute] string carryId)
|
||||
{
|
||||
var carryOutPut = await _db.Queryable<WmsCarryH>().Where(it => it.id == carryId).Select<CarryInfoOutput>().FirstAsync();
|
||||
if (carryOutPut == null) throw new AppFriendlyException("找不到载具", 500);
|
||||
carryOutPut.carryDetails = await _db.Queryable<WmsCarryD>().Where(it=>it.carry_id == carryId).ToListAsync();
|
||||
carryOutPut.carryCodes = await _db.Queryable<WmsCarryCode>().Where(it => it.carry_id == carryId).ToListAsync();
|
||||
carryOutPut.carryMats = await _db.Queryable<WmsCarryMat>().Where(it => it.carry_id == carryId).ToListAsync();
|
||||
return carryOutPut;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 更换载具
|
||||
/// </summary>
|
||||
@@ -142,11 +160,11 @@ namespace Tnb.WarehouseMgr
|
||||
try
|
||||
{
|
||||
carryObj.status = 0;
|
||||
carryObj.carry_status = "0";
|
||||
carryObj.carry_status = (int)EnumCarryStatus.空闲;
|
||||
carryObj.location_id = null;
|
||||
carryObj.location_code = null;
|
||||
carryObj.out_status = "0";
|
||||
carryObj.is_check = 0;
|
||||
carryObj.is_check = 1;
|
||||
carryObj.status = 1;
|
||||
carryObj.bale_num = null;
|
||||
carryObj.collocation_scheme_id = null;
|
||||
|
||||
@@ -22,6 +22,7 @@ using Tnb.WarehouseMgr.Entities;
|
||||
using Tnb.WarehouseMgr.Entities.Attributes;
|
||||
using Tnb.WarehouseMgr.Entities.Consts;
|
||||
using Tnb.WarehouseMgr.Entities.Dto;
|
||||
using Tnb.WarehouseMgr.Entities.Enums;
|
||||
using Tnb.WarehouseMgr.Interfaces;
|
||||
|
||||
namespace Tnb.WarehouseMgr
|
||||
@@ -91,9 +92,9 @@ namespace Tnb.WarehouseMgr
|
||||
wmsCarryUnbindCode.create_time = DateTime.Now;
|
||||
row = await _db.Insertable(wmsCarryUnbindCode).ExecuteCommandAsync();
|
||||
}
|
||||
carry.carry_status = "0";
|
||||
carry.carry_status = (int)EnumCarryStatus.空闲;
|
||||
row = await _db.Updateable(carry).ExecuteCommandAsync();
|
||||
subCarry.carry_status = "0";
|
||||
subCarry.carry_status = (int)EnumCarryStatus.空闲;
|
||||
row = await _db.Updateable(subCarry).ExecuteCommandAsync();
|
||||
isOk = (row > 0);
|
||||
if (!isOk) throw Oops.Oh(ErrorCode.COM1001);
|
||||
|
||||
@@ -158,7 +158,7 @@ namespace Tnb.WarehouseMgr
|
||||
var location = await _db.Queryable<BasLocation>().SingleAsync(it => it.id == input.data[nameof(WmsDelivery.startlocation_id)].ToString());
|
||||
{
|
||||
//载具加锁,增加库位信息
|
||||
await _db.Updateable<WmsCarryH>().SetColumns(it => new WmsCarryH { carry_status = ((int)EnumCarryStatus.占用).ToString(),
|
||||
await _db.Updateable<WmsCarryH>().SetColumns(it => new WmsCarryH { carry_status = (int)EnumCarryStatus.占用,
|
||||
is_lock = 1, location_id = input.data[nameof(WmsDelivery.startlocation_id)].ToString(), location_code = location.location_code}).Where(it => it.id == input.data[nameof(WmsDelivery.carry_id)].ToString()).ExecuteCommandAsync();
|
||||
}
|
||||
|
||||
|
||||
@@ -78,7 +78,7 @@ namespace Tnb.WarehouseMgr
|
||||
var setQty = await _db.Queryable<WmsEmptyOutstockH>().FirstAsync(it => it.bill_code == input.data[nameof(WmsEmptyOutstockH.bill_code)].ToString());
|
||||
var carrys = await _db.Queryable<WmsCarryH>().LeftJoin<BasLocation>((a, b) => a.location_id == b.id)
|
||||
.Where((a, b) => a.carrystd_id == input.data[nameof(WmsEmptyOutstockH.carrystd_id)].ToString()
|
||||
&& a.carry_status == "0" && a.is_lock == 0 && b.is_lock == 0)
|
||||
&& a.carry_status == (int)EnumCarryStatus.空闲 && a.is_lock == 0 && b.is_lock == 0)
|
||||
.ToListAsync();
|
||||
|
||||
WmsPointH sPoint = null;
|
||||
|
||||
@@ -81,24 +81,40 @@ namespace Tnb.WarehouseMgr
|
||||
List<WmsCarryCode> carryCodes = new();
|
||||
foreach (var os in outStockDList)
|
||||
{
|
||||
var carryCodesPart = await _db.Queryable<WmsCarryH>().InnerJoin<WmsCarryCode>((a, b) => a.id == b.carry_id)
|
||||
.Where((a, b) => b.material_id == os.material_id && b.code_batch == os.code_batch && a.is_lock == 0 && !string.IsNullOrEmpty(a.location_id) && a.status == (int)EnumCarryStatus.占用)
|
||||
var carryCodesPart = await _db.Queryable<WmsCarryH>().InnerJoin<WmsCarryCode>((a, b) => a.id == b.carry_id).InnerJoin<BasLocation>((a, b, c) => a.location_id == c.id)
|
||||
.Where((a, b, c) => b.material_id == os.material_id && a.is_lock == 0 && !string.IsNullOrEmpty(a.location_id) && a.status == (int)EnumCarryStatus.占用 && c.is_type == ((int)EnumLocationType.存储库位).ToString())
|
||||
.WhereIF(!string.IsNullOrEmpty(os.code_batch), (a, b) => b.code_batch == os.code_batch)
|
||||
.Select<WmsCarryCode>()
|
||||
.ToListAsync();
|
||||
if (carryCodesPart?.Count > 0)
|
||||
{
|
||||
|
||||
carryCodes.AddRange(carryCodesPart);
|
||||
var codeQty = carryCodes.Sum(x => x.codeqty);
|
||||
if (codeQty < os.pr_qty)
|
||||
{
|
||||
throw new AppFriendlyException($"需要出库[{os.pr_qty}],实际库存{codeQty},数量不足", 500);
|
||||
}
|
||||
var partCarryMats = carryCodesPart.Adapt<List<WmsCarryMat>>();
|
||||
partCarryMats.ForEach(x =>
|
||||
List<WmsCarryCode> curCarryCodes = new();
|
||||
for (int i = 0; i < carryCodesPart.Count; i++)
|
||||
{
|
||||
x.need_qty = (int)os.pr_qty;
|
||||
x.real_qty = codeQty;
|
||||
});
|
||||
if (os.pr_qty > carryCodesPart[i].codeqty)
|
||||
{
|
||||
os.pr_qty -= carryCodesPart[i].codeqty;
|
||||
curCarryCodes.Add(carryCodesPart[i]);
|
||||
}
|
||||
else if (os.pr_qty <= carryCodesPart[i].codeqty)
|
||||
{
|
||||
carryCodesPart[i].codeqty = os.pr_qty;
|
||||
curCarryCodes.Add(carryCodesPart[i]);
|
||||
break;
|
||||
}
|
||||
}
|
||||
var partCarryMats = curCarryCodes.Adapt<List<WmsCarryMat>>();
|
||||
for (int i = 0; i < partCarryMats.Count; i++)
|
||||
{
|
||||
partCarryMats[i].need_qty = carryCodesPart[i].codeqty;
|
||||
}
|
||||
carryMats.AddRange(partCarryMats);
|
||||
}
|
||||
}
|
||||
@@ -109,12 +125,12 @@ namespace Tnb.WarehouseMgr
|
||||
.Select(x =>
|
||||
{
|
||||
WmsCarryMat? carryMat = x.FirstOrDefault()!;
|
||||
carryMat.real_qty = x.Sum(d => d.real_qty);
|
||||
carryMat.need_qty = x.Sum(d => d.need_qty);
|
||||
return carryMat;
|
||||
})
|
||||
.ToList();
|
||||
await _db.Insertable(carryMats).ExecuteCommandAsync();
|
||||
var dic = carryMats.DistinctBy(x => x.carry_id).ToDictionary(x => x.carry_id, x => x.real_qty);
|
||||
var dic = carryMats.DistinctBy(x => x.carry_id).ToDictionary(x => x.carry_id, x => x.need_qty);
|
||||
var allOutIds = new List<string>();
|
||||
var sortingOutIds = new List<string>();
|
||||
foreach (var pair in dic)
|
||||
|
||||
@@ -22,6 +22,7 @@ using Tnb.WarehouseMgr.Entities;
|
||||
using Tnb.WarehouseMgr.Entities.Attributes;
|
||||
using Tnb.WarehouseMgr.Entities.Consts;
|
||||
using Tnb.WarehouseMgr.Entities.Dto;
|
||||
using Tnb.WarehouseMgr.Entities.Enums;
|
||||
using Tnb.WarehouseMgr.Interfaces;
|
||||
|
||||
namespace Tnb.WarehouseMgr
|
||||
@@ -83,9 +84,9 @@ namespace Tnb.WarehouseMgr
|
||||
create_time = DateTime.Now
|
||||
};
|
||||
var row = await _db.Insertable(wmsCarryD).ExecuteCommandAsync();
|
||||
carry.carry_status = "1";
|
||||
carry.carry_status = (int)EnumCarryStatus.占用;
|
||||
row = await _db.Updateable(carry).ExecuteCommandAsync();
|
||||
subCarry.carry_status = "1";
|
||||
subCarry.carry_status = (int)EnumCarryStatus.占用;
|
||||
row = await _db.Updateable(subCarry).ExecuteCommandAsync();
|
||||
var items = await _db.Queryable<WmsCarryCode>().Where(it => it.carry_id == subCarryId).ToListAsync();
|
||||
//更新载具绑定条码表
|
||||
|
||||
@@ -22,6 +22,7 @@ using Tnb.WarehouseMgr.Entities;
|
||||
using Tnb.WarehouseMgr.Entities.Attributes;
|
||||
using Tnb.WarehouseMgr.Entities.Consts;
|
||||
using Tnb.WarehouseMgr.Entities.Dto;
|
||||
using Tnb.WarehouseMgr.Entities.Enums;
|
||||
using Tnb.WarehouseMgr.Interfaces;
|
||||
|
||||
namespace Tnb.WarehouseMgr
|
||||
@@ -90,9 +91,9 @@ namespace Tnb.WarehouseMgr
|
||||
wmsCarryUnbindCode.create_time = DateTime.Now;
|
||||
row = await _db.Insertable(wmsCarryUnbindCode).ExecuteCommandAsync();
|
||||
}
|
||||
carry.carry_status = "0";
|
||||
carry.carry_status = (int)EnumCarryStatus.空闲;
|
||||
row = await _db.Updateable(carry).ExecuteCommandAsync();
|
||||
subCarry.carry_status = "0";
|
||||
subCarry.carry_status = (int)EnumCarryStatus.空闲;
|
||||
row = await _db.Updateable(subCarry).ExecuteCommandAsync();
|
||||
isOk = (row > 0);
|
||||
if (!isOk) throw Oops.Oh(ErrorCode.COM1001);
|
||||
|
||||
@@ -157,7 +157,7 @@ namespace Tnb.WarehouseMgr
|
||||
//载具加锁,增加库位信息
|
||||
await _db.Updateable<WmsCarryH>().SetColumns(it => new WmsCarryH
|
||||
{
|
||||
carry_status = ((int)EnumCarryStatus.占用).ToString(),
|
||||
carry_status = (int)EnumCarryStatus.占用,
|
||||
is_lock = 1,
|
||||
location_id = input.data[nameof(WmsDelivery.startlocation_id)].ToString(),
|
||||
location_code = location.location_code
|
||||
|
||||
@@ -75,7 +75,7 @@ namespace Tnb.WarehouseMgr
|
||||
var setQty = await _db.Queryable<WmsEmptyOutstockH>().FirstAsync(it => it.bill_code == input.data[nameof(WmsEmptyOutstockH.bill_code)].ToString());
|
||||
var carrys = await _db.Queryable<WmsCarryH>().LeftJoin<BasLocation>((a, b) => a.location_id == b.id)
|
||||
.Where((a, b) => a.carrystd_id == input.data[nameof(WmsEmptyOutstockH.carrystd_id)].ToString()
|
||||
&& a.carry_status == "0" && a.is_lock == 0 && b.is_lock == 0)
|
||||
&& a.carry_status ==(int)EnumCarryStatus.空闲 && a.is_lock == 0 && b.is_lock == 0)
|
||||
.ToListAsync();
|
||||
|
||||
WmsPointH sPoint = null;
|
||||
|
||||
@@ -61,10 +61,9 @@ namespace Tnb.WarehouseMgr
|
||||
/// </param>
|
||||
/// <returns></returns>
|
||||
/// <exception cref="ArgumentNullException"></exception>
|
||||
|
||||
private async Task<dynamic> WmsPDAFeedingRecord(VisualDevModelDataCrInput input)
|
||||
{
|
||||
|
||||
|
||||
var isOk = false;
|
||||
try
|
||||
{
|
||||
@@ -79,35 +78,24 @@ namespace Tnb.WarehouseMgr
|
||||
var feedBox = await _db.Queryable<WmsFeedbox>().SingleAsync(it => it.feedbox_code == feedBoxCode);
|
||||
var carryMaterial = await _db.Queryable<WmsCarryMat>().FirstAsync(it => it.carry_id == carryId);
|
||||
var carryCodes = await _db.Queryable<WmsCarryCode>().Where(it => it.carry_id == carryId).ToListAsync();
|
||||
if (carry != null && feedBox != null)
|
||||
if (carryMaterial != null && feedBox != null && carry != null)
|
||||
{
|
||||
//更新投料箱
|
||||
feedBox.material_id = carryMaterial.material_id;
|
||||
feedBox.material_code = carryMaterial.material_code;
|
||||
feedBox.qty = carryMaterial.qty;
|
||||
feedBox.batch = carryMaterial?.code_batch!;
|
||||
feedBox.status = carry.status;
|
||||
feedBox.create_id = _userManager.UserId;
|
||||
feedBox.create_time = DateTime.Now;
|
||||
var row = await _db.Updateable(feedBox).ExecuteCommandAsync();
|
||||
//更新投料记录条码表
|
||||
foreach (var carryCode in carryCodes)
|
||||
{
|
||||
WmsFeedingrecordCode wmsFeedingrecordCode = new();
|
||||
wmsFeedingrecordCode.id = SnowflakeIdHelper.NextId();
|
||||
wmsFeedingrecordCode.org_id = _userManager.User.OrganizeId;
|
||||
wmsFeedingrecordCode.record_id = input.data["ReturnIdentity"]?.ToString()!;
|
||||
wmsFeedingrecordCode.material_id = carryCode.material_id;
|
||||
wmsFeedingrecordCode.material_code = carryCode.material_code;
|
||||
wmsFeedingrecordCode.barcode = carryCode.barcode;
|
||||
wmsFeedingrecordCode.code_batch = carryCode.code_batch;
|
||||
wmsFeedingrecordCode.codeqty = carryCode.codeqty;
|
||||
wmsFeedingrecordCode.unit_id = carryCode.unit_id;
|
||||
wmsFeedingrecordCode.unit_code = carryCode.unit_code;
|
||||
wmsFeedingrecordCode.create_id = _userManager.UserId;
|
||||
wmsFeedingrecordCode.create_time = DateTime.Now;
|
||||
row = await _db.Insertable(wmsFeedingrecordCode).ExecuteCommandAsync();
|
||||
}
|
||||
feedBox.modify_id = _userManager.UserId;
|
||||
feedBox.modify_time = DateTime.Now;
|
||||
var row = await _db.Updateable(feedBox)
|
||||
.UpdateColumns(it => new {
|
||||
it.material_id,
|
||||
it.material_code,
|
||||
it.qty,
|
||||
it.batch,
|
||||
it.modify_id,
|
||||
it.modify_time
|
||||
}).ExecuteCommandAsync();
|
||||
//更新载具
|
||||
row = await UpdateNullCarry(carry);
|
||||
isOk = (row > 0);
|
||||
@@ -115,13 +103,13 @@ namespace Tnb.WarehouseMgr
|
||||
}
|
||||
else
|
||||
{
|
||||
if (carry == null)
|
||||
if (carryMaterial == null)
|
||||
{
|
||||
throw new AppFriendlyException("没有可用的旧载具", 500);
|
||||
throw new AppFriendlyException("没有可用的载具", 500);
|
||||
}
|
||||
if (feedBox == null)
|
||||
{
|
||||
throw new AppFriendlyException("没有可用的新载具", 500);
|
||||
throw new AppFriendlyException("没有可用的投料箱", 500);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -129,7 +117,7 @@ namespace Tnb.WarehouseMgr
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Log.Error("载具更换失败", ex);
|
||||
Log.Error("投料失败", ex);
|
||||
await _db.Ado.RollbackTranAsync();
|
||||
throw;
|
||||
}
|
||||
@@ -142,7 +130,7 @@ namespace Tnb.WarehouseMgr
|
||||
try
|
||||
{
|
||||
carryObj.status = 0;
|
||||
carryObj.carry_status = "0";
|
||||
carryObj.carry_status = (int)EnumCarryStatus.空闲;
|
||||
carryObj.location_id = null;
|
||||
carryObj.location_code = null;
|
||||
carryObj.out_status = "0";
|
||||
|
||||
@@ -239,7 +239,7 @@ namespace Tnb.WarehouseMgr
|
||||
await _db.Insertable(carryCodes).ExecuteCommandAsync();
|
||||
await _db.Insertable(instockCOdes).CallEntityMethod(it => it.Create(orgId)).ExecuteCommandAsync();
|
||||
await _wareHouseService.GenInStockTaskHandleAfter(preTaskUpInput,
|
||||
it => new WmsCarryH { carry_code = input.data[nameof(WmsCarryH.carry_code)].ToString()!, is_lock = 1, carry_status = ((int)EnumCarryStatus.占用).ToString(), location_id = preTaskUpInput.CarryStartLocationId, location_code = preTaskUpInput.CarryStartLocationCode },
|
||||
it => new WmsCarryH { carry_code = input.data[nameof(WmsCarryH.carry_code)].ToString()!, is_lock = 1, carry_status = (int)EnumCarryStatus.占用, location_id = preTaskUpInput.CarryStartLocationId, location_code = preTaskUpInput.CarryStartLocationCode },
|
||||
it => new BasLocation { is_lock = 1, is_use = "1" });
|
||||
if (instockCOdes?.Count > 0)
|
||||
{
|
||||
|
||||
@@ -145,7 +145,7 @@ namespace Tnb.WarehouseMgr
|
||||
|
||||
var baleNum = input.data[nameof(WmsCarryH.bale_num)]?.ToString();
|
||||
await _wareHouseService.GenInStockTaskHandleAfter(preTaskUpInput,
|
||||
it => new WmsCarryH { is_lock = 1, location_id = preTaskUpInput.CarryStartLocationId, location_code = preTaskUpInput.CarryStartLocationCode, carry_status = ((int)EnumCarryStatus.寄存).ToString(), bale_num = baleNum },
|
||||
it => new WmsCarryH { is_lock = 1, location_id = preTaskUpInput.CarryStartLocationId, location_code = preTaskUpInput.CarryStartLocationCode, carry_status = (int)EnumCarryStatus.寄存, bale_num = baleNum },
|
||||
it => new BasLocation { is_lock = 1 });
|
||||
//((int)EnumCarryStatus.寄存).ToString()
|
||||
}
|
||||
|
||||
@@ -122,7 +122,7 @@ namespace Tnb.WarehouseMgr
|
||||
//载具加锁,增加库位信息
|
||||
await _db.Updateable<WmsCarryH>().SetColumns(it => new WmsCarryH
|
||||
{
|
||||
carry_status = ((int)EnumCarryStatus.占用).ToString(),
|
||||
carry_status = (int)EnumCarryStatus.占用,
|
||||
is_lock = 1,
|
||||
location_id = input.data[nameof(WmsTransfer.startlocation_id)].ToString(),
|
||||
location_code = location.location_code
|
||||
|
||||
197
WarehouseMgr/Tnb.WarehouseMgr/WmsSetSortingService.cs
Normal file
197
WarehouseMgr/Tnb.WarehouseMgr/WmsSetSortingService.cs
Normal file
@@ -0,0 +1,197 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using JNPF.Common.Core.Manager;
|
||||
using JNPF.Common.Extension;
|
||||
using JNPF.Common.Security;
|
||||
using JNPF.FriendlyException;
|
||||
using JNPF.Systems.Interfaces.System;
|
||||
using Mapster;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using NPOI.SS.Formula;
|
||||
using SqlSugar;
|
||||
using Tnb.BasicData.Entities;
|
||||
using Tnb.WarehouseMgr.Entities;
|
||||
using Tnb.WarehouseMgr.Entities.Consts;
|
||||
using Tnb.WarehouseMgr.Entities.Dto;
|
||||
using Tnb.WarehouseMgr.Entities.Enums;
|
||||
using Tnb.WarehouseMgr.Interfaces;
|
||||
|
||||
namespace Tnb.WarehouseMgr
|
||||
{
|
||||
/// <summary>
|
||||
/// 齐套分拣服务类
|
||||
/// </summary>
|
||||
public class WmsSetSortingService : BaseWareHouseService
|
||||
{
|
||||
private readonly ISqlSugarClient _db;
|
||||
private readonly IWareHouseService _wareHouseService;
|
||||
private readonly IBillRullService _billRullService;
|
||||
private readonly IUserManager _userManager;
|
||||
|
||||
public WmsSetSortingService(ISqlSugarRepository<WmsSetsortingH> repository, IWareHouseService wareHouseService, IUserManager userManager, IBillRullService billRullService)
|
||||
{
|
||||
_db = repository.AsSugarClient();
|
||||
_wareHouseService = wareHouseService;
|
||||
_billRullService = billRullService;
|
||||
_userManager = userManager;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 齐套分拣(新增状态)
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public async Task PackSortingByAdd()
|
||||
{
|
||||
var setSortings = await _db.Queryable<WmsSetsortingH>()
|
||||
.Where(a => a.status == WmsWareHouseConst.BILLSTATUS_ADD_ID).OrderBy(a => a.seq)
|
||||
.ToListAsync();
|
||||
var items = await _db.Queryable<WmsSetsortingH>().Where(it => it.status == WmsWareHouseConst.BILLSTATUS_ON_ID).ToListAsync();
|
||||
var onFlag = items?.Count > 0;
|
||||
if (setSortings?.Count > 0 && !onFlag)
|
||||
{
|
||||
var singleSorting = setSortings[^setSortings.Count];
|
||||
var setSortingDList = await _db.Queryable<WmsSetsortingD>().Where(it => it.bill_id == singleSorting.id).ToListAsync();
|
||||
if (setSortingDList?.Count > 0)
|
||||
{
|
||||
List<WmsCarryMat> carryMats = new();
|
||||
List<WmsCarryCode> carryCodes = new();
|
||||
List<string> carryIds = new();
|
||||
foreach (var os in setSortingDList)
|
||||
{
|
||||
var carryCodesPart = await _db.Queryable<WmsCarryH>().InnerJoin<WmsCarryCode>((a, b) => a.id == b.carry_id)
|
||||
.Where((a, b) => b.material_id == os.material_id && a.is_lock == 0 && !string.IsNullOrEmpty(a.location_id) && a.status == (int)EnumCarryStatus.占用)
|
||||
.WhereIF(!string.IsNullOrEmpty(os.code_batch), (a, b) => b.code_batch == os.code_batch)
|
||||
.Select<WmsCarryCode>()
|
||||
.ToListAsync();
|
||||
if (carryCodesPart?.Count > 0)
|
||||
{
|
||||
carryCodes.AddRange(carryCodesPart);
|
||||
var codeQty = carryCodes.Sum(x => x.codeqty);
|
||||
if (codeQty < os.pr_qty)
|
||||
{
|
||||
throw new AppFriendlyException($"需要出库[{os.pr_qty}],实际库存{codeQty},数量不足", 500);
|
||||
}
|
||||
var partCarryMats = carryCodesPart.Adapt<List<WmsCarryMat>>();
|
||||
for (int i = 0; i < partCarryMats.Count; i++)
|
||||
{
|
||||
partCarryMats[i].need_qty = carryCodesPart[i].codeqty;
|
||||
}
|
||||
|
||||
carryMats.AddRange(partCarryMats);
|
||||
}
|
||||
}
|
||||
if (carryMats.Count > 0)
|
||||
{
|
||||
carryMats.ForEach(x => x.id = SnowflakeIdHelper.NextId());
|
||||
carryMats = carryMats.OrderBy(o => o.create_time).GroupBy(g => new { g.carry_id, g.material_id, g.code_batch })
|
||||
.Select(x =>
|
||||
{
|
||||
WmsCarryMat? carryMat = x.FirstOrDefault()!;
|
||||
carryMat.need_qty = x.Sum(d => d.need_qty);
|
||||
return carryMat;
|
||||
})
|
||||
.ToList();
|
||||
await _db.Insertable(carryMats).ExecuteCommandAsync();
|
||||
var dic = carryMats.DistinctBy(x => x.carry_id).ToDictionary(x => x.carry_id, x => x.need_qty);
|
||||
|
||||
carryIds = carryMats.Select(x => x.carry_id).Distinct().ToList();
|
||||
await _db.Updateable<WmsCarryH>().SetColumns(it => new WmsCarryH { out_status = ((int)EnumOutStatus.全部出).ToString() }).Where(it => carryIds.Contains(it.id)).ExecuteCommandAsync();
|
||||
//天益项目不需要
|
||||
//await _db.Updateable<WmsCarryH>().SetColumns(it => new WmsCarryH { out_status = ((int)EnumOutStatus.分拣出).ToString() }).Where(it => sortingOutIds.Contains(it.id)).ExecuteCommandAsync();
|
||||
}
|
||||
var carrys = await _db.Queryable<WmsCarryH>().Where(it => carryIds.Contains(it.id)).ToArrayAsync();
|
||||
if (carrys?.Length > 0)
|
||||
{
|
||||
List<WmsPretaskH> preTasks = new();
|
||||
List<string> locIds = new();
|
||||
string firstLocationId = "27010980724501", secondLocationId = "27010987857941";
|
||||
if (carrys.Length > 6)
|
||||
{
|
||||
var leftCarrys = carrys[..6];
|
||||
var rightCarrys = carrys[6..];
|
||||
await _genPreTask(leftCarrys, locIds, firstLocationId, singleSorting.id, singleSorting.bill_code, preTasks);
|
||||
await _genPreTask(rightCarrys, locIds, secondLocationId, singleSorting.id, singleSorting.bill_code, preTasks);
|
||||
}
|
||||
else
|
||||
{
|
||||
await _genPreTask(carrys, locIds, firstLocationId, singleSorting.id, singleSorting.bill_code, preTasks);
|
||||
}
|
||||
var isOk = await _wareHouseService.GenPreTask(preTasks, null);
|
||||
GenPreTaskUpInput genPreTaskAfterUpInput = new();
|
||||
genPreTaskAfterUpInput.CarryIds = preTasks.Select(x => x.carry_id).ToList();
|
||||
genPreTaskAfterUpInput.LocationIds = new HashSet<string>(locIds).ToList();
|
||||
await _wareHouseService.GenInStockTaskHandleAfter(genPreTaskAfterUpInput, it => new WmsCarryH { is_lock = 1, carry_status = (int)EnumCarryStatus.齐套分拣 }, it => new BasLocation { is_use = ((int)EnumCarryStatus.齐套分拣).ToString() });
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private async Task _genPreTask(WmsCarryH[] carrys, List<string> locIds, string eLocationId, string requireId, string requireCode, List<WmsPretaskH> preTasks)
|
||||
{
|
||||
var loc = await _db.Queryable<BasLocation>().SingleAsync(it => it.id == eLocationId);
|
||||
foreach (var carry in carrys)
|
||||
{
|
||||
WmsPointH sPoint = await _db.Queryable<WmsPointH>().FirstAsync(it => it.location_id == carry.location_id);
|
||||
WmsPointH ePoint = await _db.Queryable<WmsPointH>().FirstAsync(it => it.location_id == eLocationId);
|
||||
|
||||
if (sPoint != null && ePoint != null)
|
||||
{
|
||||
var points = await _wareHouseService.PathAlgorithms(sPoint.id, ePoint.id);
|
||||
locIds.AddRange(points.Select(x => x.location_id).ToList()!);
|
||||
//根据获取的路径点生成预任务,生成顺序必须预路径算法返回的起终点的顺序一致(预任务顺序)
|
||||
if (points?.Count > 0)
|
||||
{
|
||||
if (points.Count <= 2) throw new AppFriendlyException("该路径不存在", 500);
|
||||
var curPreTasks = points.Where(it => !it.location_id.IsNullOrEmpty()).GroupBy(g => g.area_code).Select(it =>
|
||||
{
|
||||
var sPoint = it.FirstOrDefault();
|
||||
var ePoint = it.LastOrDefault();
|
||||
|
||||
WmsPretaskH preTask = new();
|
||||
preTask.org_id = _userManager.User.OrganizeId;
|
||||
preTask.startlocation_id = sPoint?.location_id!;
|
||||
preTask.startlocation_code = sPoint?.location_code!;
|
||||
preTask.endlocation_id = ePoint?.location_id!;
|
||||
preTask.endlocation_code = ePoint?.location_code!;
|
||||
preTask.start_floor = sPoint?.floor.ToString();
|
||||
preTask.end_floor = ePoint?.floor.ToString();
|
||||
preTask.bill_code = _billRullService.GetBillNumber(WmsWareHouseConst.WMS_PRETASK_H_ENCODE).GetAwaiter().GetResult();
|
||||
preTask.status = WmsWareHouseConst.PRETASK_BILL_STATUS_DXF_ID;
|
||||
preTask.biz_type = WmsWareHouseConst.BIZTYPE_WMSOUTSTOCK_ID;
|
||||
preTask.task_type = WmsWareHouseConst.WMS_PRETASK_OUTSTOCK_TYPE_ID;
|
||||
preTask.carry_id = carry.id;
|
||||
preTask.carry_code = carry.carry_code;
|
||||
preTask.area_id = sPoint?.area_id!;
|
||||
preTask.area_code = it.Key;
|
||||
preTask.require_id = requireId;
|
||||
preTask.require_code = requireCode;
|
||||
preTask.create_id = _userManager.UserId;
|
||||
preTask.create_time = DateTime.Now;
|
||||
return preTask;
|
||||
}).ToList();
|
||||
if (loc.is_sign == 0)
|
||||
{
|
||||
curPreTasks[^1].is_sign = 0; // 修改最后一个元素的是否签收值
|
||||
}
|
||||
preTasks.AddRange(curPreTasks);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public override Task ModifyAsync(WareHouseUpInput input)
|
||||
{
|
||||
return Task.CompletedTask;
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
100
WarehouseMgr/Tnb.WarehouseMgr/WmsSignForDeliveryService.cs
Normal file
100
WarehouseMgr/Tnb.WarehouseMgr/WmsSignForDeliveryService.cs
Normal file
@@ -0,0 +1,100 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Linq.Expressions;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using JNPF.Common.Contracts;
|
||||
using JNPF.Common.Enums;
|
||||
using JNPF.Common.Extension;
|
||||
using JNPF.FriendlyException;
|
||||
using JNPF.Systems.Interfaces.System;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.CodeAnalysis.Operations;
|
||||
using SqlSugar;
|
||||
using Tnb.BasicData.Entities;
|
||||
using Tnb.WarehouseMgr.Entities;
|
||||
using Tnb.WarehouseMgr.Entities.Consts;
|
||||
using Tnb.WarehouseMgr.Entities.Dto;
|
||||
using Tnb.WarehouseMgr.Entities.Dto.Inputs;
|
||||
using Tnb.WarehouseMgr.Interfaces;
|
||||
|
||||
namespace Tnb.WarehouseMgr
|
||||
{
|
||||
/// <summary>
|
||||
/// 出库签收
|
||||
/// </summary>
|
||||
public class WmsSignForDeliveryService : BaseWareHouseService
|
||||
{
|
||||
private readonly ISqlSugarClient _db;
|
||||
private readonly IWmsCarryService _wareCarryService;
|
||||
private readonly IDictionaryDataService _dictionaryDataService;
|
||||
private static Dictionary<string, object> _dicBizType = new();
|
||||
public WmsSignForDeliveryService(ISqlSugarRepository<WmsDistaskH> repository, IWmsCarryService wareCarryService, IDictionaryDataService dictionaryDataService)
|
||||
{
|
||||
_db = repository.AsSugarClient();
|
||||
_wareCarryService = wareCarryService;
|
||||
_dictionaryDataService = dictionaryDataService;
|
||||
}
|
||||
/// <summary>
|
||||
/// 根据载具ID获取,对应的执行任务记录
|
||||
/// </summary>
|
||||
/// <param name="carryId"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet]
|
||||
public async Task<dynamic> GetDisTasksByCarryId([FromRoute] string carryId)
|
||||
{
|
||||
var item = await _db.Queryable<WmsDistaskH>().FirstAsync(it => it.carry_id == carryId && it.status == WmsWareHouseConst.TASK_BILL_STATUS_COMPLE_ID && it.is_sign == 0);
|
||||
return item;
|
||||
}
|
||||
/// <summary>
|
||||
/// 出库签收
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public async Task SignForDelivery(SignForDeliveryInput input)
|
||||
{
|
||||
if (_dicBizType.Count < 1)
|
||||
{
|
||||
_dicBizType = await _dictionaryDataService.GetDictionaryByTypeId(WmsWareHouseConst.WMS_BIZTYPE_ID);
|
||||
}
|
||||
try
|
||||
{
|
||||
await _db.Ado.BeginTranAsync();
|
||||
|
||||
var carry = await _db.Queryable<WmsCarryH>().SingleAsync(it => it.id == input.carryId);
|
||||
if (carry != null)
|
||||
{
|
||||
var disTask = await _db.Queryable<WmsDistaskH>().SingleAsync(it => it.id == input.disTaskId);
|
||||
if (disTask != null)
|
||||
{
|
||||
if (_dicBizType.ContainsKey(disTask.biz_type))
|
||||
{
|
||||
switch (_dicBizType[disTask.biz_type])
|
||||
{
|
||||
case "空载具出库":
|
||||
case "寄存出库":
|
||||
case "齐套出库":
|
||||
case "一般出库":
|
||||
await _wareCarryService.UpdateNullCarry(carry);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
var loc = await _db.Queryable<BasLocation>().SingleAsync(it => it.id == carry.location_id);
|
||||
loc.is_use = "0";
|
||||
await _db.Updateable(loc).UpdateColumns(it => it.is_use).ExecuteCommandAsync();
|
||||
}
|
||||
|
||||
await _db.Ado.CommitTranAsync();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
await _db.Ado.RollbackTranAsync();
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -122,7 +122,7 @@ namespace Tnb.WarehouseMgr
|
||||
//载具加锁,增加库位信息
|
||||
await _db.Updateable<WmsCarryH>().SetColumns(it => new WmsCarryH
|
||||
{
|
||||
carry_status = ((int)EnumCarryStatus.占用).ToString(),
|
||||
carry_status = (int)EnumCarryStatus.占用,
|
||||
is_lock = 1,
|
||||
location_id = input.data[nameof(WmsTransfer.startlocation_id)].ToString(),
|
||||
location_code = location.location_code
|
||||
|
||||
190
WarehouseMgr/Tnb.WarehouseMgr/WmskittingOutService.cs
Normal file
190
WarehouseMgr/Tnb.WarehouseMgr/WmskittingOutService.cs
Normal file
@@ -0,0 +1,190 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Aop.Api.Domain;
|
||||
using JNPF.Common.Core.Manager;
|
||||
using JNPF.Common.Extension;
|
||||
using JNPF.Common.Security;
|
||||
using JNPF.FriendlyException;
|
||||
using JNPF.Systems.Interfaces.System;
|
||||
using Mapster;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using SqlSugar;
|
||||
using Tnb.BasicData.Entities;
|
||||
using Tnb.WarehouseMgr.Entities;
|
||||
using Tnb.WarehouseMgr.Entities.Consts;
|
||||
using Tnb.WarehouseMgr.Entities.Dto;
|
||||
using Tnb.WarehouseMgr.Entities.Enums;
|
||||
using Tnb.WarehouseMgr.Interfaces;
|
||||
|
||||
namespace Tnb.WarehouseMgr
|
||||
{
|
||||
/// <summary>
|
||||
/// 齐套出库服务类
|
||||
/// </summary>
|
||||
public class WmskittingOutService : BaseWareHouseService, IWmskittingOutService
|
||||
{
|
||||
private readonly ISqlSugarClient _db;
|
||||
private readonly IWareHouseService _warehouseService;
|
||||
private readonly IUserManager _userManager;
|
||||
private readonly IBillRullService _billRullService;
|
||||
public WmskittingOutService(ISqlSugarRepository<WmsKittingoutH> repository, IWareHouseService warehouseService, IUserManager userManager, IBillRullService billRullService)
|
||||
{
|
||||
_db = repository.AsSugarClient();
|
||||
_warehouseService = warehouseService;
|
||||
_userManager = userManager;
|
||||
_billRullService = billRullService;
|
||||
}
|
||||
/// <summary>
|
||||
/// 齐套出库(新增状态)
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public async Task KittingOutByAdd()
|
||||
{
|
||||
try
|
||||
{
|
||||
await _db.Ado.BeginTranAsync();
|
||||
|
||||
var kittingOuts = await _db.Queryable<WmsKittingoutH>()
|
||||
.Where(a => a.status == WmsWareHouseConst.BILLSTATUS_ADD_ID)
|
||||
.OrderBy(a => a.seq)
|
||||
.ToListAsync();
|
||||
// 是否有已呼叫的齐套出库任务
|
||||
// var set = true ; 如果有 把set修改为false
|
||||
var items = await _db.Queryable<WmsKittingoutH>().Where(it => it.status == WmsWareHouseConst.BILLSTATUS_CALLED_ID).ToListAsync();
|
||||
var isCalled = items?.Count > 0;
|
||||
if (kittingOuts?.Count > 0)
|
||||
{
|
||||
foreach (var ko in kittingOuts)
|
||||
{
|
||||
var carrys = await _db.Queryable<WmsCarryH>().Where(it => it.collocation_scheme_id == ko.collocation_scheme_id && it.is_lock == 0).ToListAsync();
|
||||
if (carrys?.Count > 0)
|
||||
{
|
||||
var firstCarry = carrys.FirstOrDefault();
|
||||
GenPreTaskUpInput genPreTaskInput = new() { CarryId = firstCarry.id };
|
||||
await _warehouseService.GenInStockTaskHandleAfter(genPreTaskInput, it => new WmsCarryH { is_lock = 1 }, null!);
|
||||
ko.status = WmsWareHouseConst.BILLSTATUS_TOBESHIPPED_ID;
|
||||
ko.carry_id = firstCarry.id;
|
||||
ko.carry_code = firstCarry.carry_code;
|
||||
await _db.Updateable(ko).UpdateColumns(it => new { it.status, it.carry_id, it.carry_code }).ExecuteCommandAsync();
|
||||
}
|
||||
else
|
||||
{
|
||||
//if(false) 跳出 插入完一次齐套分拣 set 改为false
|
||||
if (!isCalled)
|
||||
{
|
||||
var setSortingH = ko.Adapt<WmsSetsortingH>();
|
||||
setSortingH.id = SnowflakeIdHelper.NextId();
|
||||
setSortingH.kittingout_id = ko.id;
|
||||
setSortingH.seq = ko.seq;
|
||||
setSortingH.org_id = _userManager.User.OrganizeId;
|
||||
setSortingH.create_id = _userManager.UserId;
|
||||
setSortingH.create_time = DateTime.Now;
|
||||
await _db.Insertable(setSortingH).ExecuteCommandAsync();
|
||||
|
||||
var kittingOutDetails = await _db.Queryable<WmsKittingoutD>().Where(it => it.bill_id == setSortingH.id).ToListAsync();
|
||||
var setSortDetails = kittingOutDetails.Adapt<List<WmsSetsortingD>>();
|
||||
setSortDetails.ForEach(x =>
|
||||
{
|
||||
x.id = SnowflakeIdHelper.NextId();
|
||||
x.org_id = _userManager.User.OrganizeId;
|
||||
x.create_id = _userManager.UserId;
|
||||
x.create_time = DateTime.Now;
|
||||
});
|
||||
await _db.Insertable(setSortDetails).ExecuteCommandAsync();
|
||||
ko.status = WmsWareHouseConst.BILLSTATUS_CALLED_ID;
|
||||
await _db.Updateable(ko).UpdateColumns(it => it.status).ExecuteCommandAsync();
|
||||
isCalled = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
await _db.Ado.CommitTranAsync();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
await _db.Ado.RollbackTranAsync();
|
||||
throw;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 齐套出库,(待配送状态)
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public async Task KittingOutByIsToBeShipped()
|
||||
{
|
||||
|
||||
var kittingOuts = await _db.Queryable<WmsKittingoutH>()
|
||||
.Where(a => a.status == WmsWareHouseConst.BILLSTATUS_TOBESHIPPED_ID)
|
||||
.OrderBy(a => a.seq)
|
||||
.ToListAsync();
|
||||
if (kittingOuts?.Count > 0)
|
||||
{
|
||||
var grpList = kittingOuts.GroupBy(g => g.location_id).ToList();
|
||||
foreach (var koGrp in grpList)
|
||||
{
|
||||
var locs = await _db.Queryable<BasLocation>().Where(it => it.id == koGrp.Key && it.is_use == "0" && it.is_lock == 0).ToListAsync();
|
||||
if (locs?.Count > 0)
|
||||
{
|
||||
|
||||
var arr = koGrp.ToArray();
|
||||
var ko = arr[^arr.Length];
|
||||
var carry = await _db.Queryable<WmsCarryH>().SingleAsync(it => it.id == ko.carry_id);
|
||||
if (carry != null)
|
||||
{
|
||||
WmsPointH sPoint = await _db.Queryable<WmsPointH>().FirstAsync(it => it.location_id == carry.location_id);
|
||||
WmsPointH ePoint = await _db.Queryable<WmsPointH>().FirstAsync(it => it.location_id == ko.location_id);
|
||||
if (sPoint != null && ePoint != null)
|
||||
{
|
||||
var points = await _warehouseService.PathAlgorithms(sPoint.id, ePoint.id);
|
||||
if (points?.Count > 0)
|
||||
{
|
||||
if (points.Count <= 2) throw new AppFriendlyException("该路径不存在", 500);
|
||||
var preTasks = points.Where(it => !it.location_id.IsNullOrEmpty()).GroupBy(g => g.area_code).Select(it =>
|
||||
{
|
||||
var sPoint = it.FirstOrDefault();
|
||||
var ePoint = it.LastOrDefault();
|
||||
|
||||
WmsPretaskH preTask = new();
|
||||
preTask.org_id = _userManager.User.OrganizeId;
|
||||
preTask.startlocation_id = sPoint?.location_id;
|
||||
preTask.startlocation_code = sPoint?.location_code;
|
||||
preTask.endlocation_id = ePoint?.location_id;
|
||||
preTask.endlocation_code = ePoint?.location_code;
|
||||
preTask.start_floor = sPoint?.floor.ToString();
|
||||
preTask.end_floor = ePoint?.floor.ToString();
|
||||
preTask.bill_code = _billRullService.GetBillNumber(WmsWareHouseConst.WMS_PRETASK_H_ENCODE).GetAwaiter().GetResult();
|
||||
preTask.status = WmsWareHouseConst.PRETASK_BILL_STATUS_DXF_ID;
|
||||
preTask.biz_type = ko.biz_type;
|
||||
preTask.task_type = WmsWareHouseConst.WMS_PRETASK_INSTOCK_TYPE_ID;
|
||||
preTask.carry_id = ko.carry_id;
|
||||
preTask.carry_code = ko.carry_code;
|
||||
preTask.area_id = sPoint?.area_id;
|
||||
preTask.area_code = it.Key;
|
||||
preTask.require_id = ko.id;
|
||||
preTask.require_code = ko.bill_code;
|
||||
preTask.create_id = _userManager.UserId;
|
||||
preTask.create_time = DateTime.Now;
|
||||
return preTask;
|
||||
}).ToList();
|
||||
await _warehouseService.GenPreTask(preTasks, null!);
|
||||
var subCarrys = await _db.Queryable<WmsCarryD>().Where(it => it.carry_id == ko.carry_id).ToListAsync();
|
||||
var carryIds = subCarrys.Select(x => x.carry_id).Concat(new[] { ko.carry_id }).Distinct().ToList();
|
||||
GenPreTaskUpInput genPreTaskInput = new() { CarryIds = carryIds, LocationIds = new List<string> { carry.location_id, ko.location_id } };
|
||||
await _warehouseService.GenInStockTaskHandleAfter(genPreTaskInput, it => new WmsCarryH { is_lock = 1, carry_status = (int)EnumCarryStatus.齐套 }, it => new BasLocation { is_lock = 1 });
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
0
WmsSignForDeliveryService.txt
Normal file
0
WmsSignForDeliveryService.txt
Normal file
12
app/Tnb.Apps.Interfaces/Properties/launchSettings.json
Normal file
12
app/Tnb.Apps.Interfaces/Properties/launchSettings.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"profiles": {
|
||||
"Tnb.Apps.Interfaces": {
|
||||
"commandName": "Project",
|
||||
"launchBrowser": true,
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
},
|
||||
"applicationUrl": "https://localhost:50247;http://localhost:50263"
|
||||
}
|
||||
}
|
||||
}
|
||||
12
app/Tnb.Apps/Properties/launchSettings.json
Normal file
12
app/Tnb.Apps/Properties/launchSettings.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"profiles": {
|
||||
"Tnb.Apps": {
|
||||
"commandName": "Project",
|
||||
"launchBrowser": true,
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
},
|
||||
"applicationUrl": "https://localhost:50240;http://localhost:50264"
|
||||
}
|
||||
}
|
||||
}
|
||||
12
common/Tnb.CollectiveOAuth/Properties/launchSettings.json
Normal file
12
common/Tnb.CollectiveOAuth/Properties/launchSettings.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"profiles": {
|
||||
"Tnb.CollectiveOAuth": {
|
||||
"commandName": "Project",
|
||||
"launchBrowser": true,
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
},
|
||||
"applicationUrl": "https://localhost:50269;http://localhost:50270"
|
||||
}
|
||||
}
|
||||
}
|
||||
12
common/Tnb.Common.Core/Properties/launchSettings.json
Normal file
12
common/Tnb.Common.Core/Properties/launchSettings.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"profiles": {
|
||||
"Tnb.Common.Core": {
|
||||
"commandName": "Project",
|
||||
"launchBrowser": true,
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
},
|
||||
"applicationUrl": "https://localhost:50271;http://localhost:50273"
|
||||
}
|
||||
}
|
||||
}
|
||||
12
common/Tnb.Common/Properties/launchSettings.json
Normal file
12
common/Tnb.Common/Properties/launchSettings.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"profiles": {
|
||||
"Tnb.Common": {
|
||||
"commandName": "Project",
|
||||
"launchBrowser": true,
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
},
|
||||
"applicationUrl": "https://localhost:50246;http://localhost:50267"
|
||||
}
|
||||
}
|
||||
}
|
||||
12
common/Tnb.SqlSugar/Properties/launchSettings.json
Normal file
12
common/Tnb.SqlSugar/Properties/launchSettings.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"profiles": {
|
||||
"Tnb.SqlSugar": {
|
||||
"commandName": "Project",
|
||||
"launchBrowser": true,
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
},
|
||||
"applicationUrl": "https://localhost:50289;http://localhost:50290"
|
||||
}
|
||||
}
|
||||
}
|
||||
12
common/Tnb.Thirdparty/Properties/launchSettings.json
vendored
Normal file
12
common/Tnb.Thirdparty/Properties/launchSettings.json
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"profiles": {
|
||||
"Tnb.Thirdparty": {
|
||||
"commandName": "Project",
|
||||
"launchBrowser": true,
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
},
|
||||
"applicationUrl": "https://localhost:50276;http://localhost:50277"
|
||||
}
|
||||
}
|
||||
}
|
||||
12
common/Tnb.WebSockets/Properties/launchSettings.json
Normal file
12
common/Tnb.WebSockets/Properties/launchSettings.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"profiles": {
|
||||
"Tnb.WebSockets": {
|
||||
"commandName": "Project",
|
||||
"launchBrowser": true,
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
},
|
||||
"applicationUrl": "https://localhost:50272;http://localhost:50274"
|
||||
}
|
||||
}
|
||||
}
|
||||
12
extend/Tnb.Extend.Entitys/Properties/launchSettings.json
Normal file
12
extend/Tnb.Extend.Entitys/Properties/launchSettings.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"profiles": {
|
||||
"Tnb.Extend.Entitys": {
|
||||
"commandName": "Project",
|
||||
"launchBrowser": true,
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
},
|
||||
"applicationUrl": "https://localhost:50285;http://localhost:50286"
|
||||
}
|
||||
}
|
||||
}
|
||||
12
extend/Tnb.Extend.Interfaces/Properties/launchSettings.json
Normal file
12
extend/Tnb.Extend.Interfaces/Properties/launchSettings.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"profiles": {
|
||||
"Tnb.Extend.Interfaces": {
|
||||
"commandName": "Project",
|
||||
"launchBrowser": true,
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
},
|
||||
"applicationUrl": "https://localhost:50283;http://localhost:50284"
|
||||
}
|
||||
}
|
||||
}
|
||||
12
message/Tnb.Message.Entitys/Properties/launchSettings.json
Normal file
12
message/Tnb.Message.Entitys/Properties/launchSettings.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"profiles": {
|
||||
"Tnb.Message.Entitys": {
|
||||
"commandName": "Project",
|
||||
"launchBrowser": true,
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
},
|
||||
"applicationUrl": "https://localhost:50244;http://localhost:50268"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"profiles": {
|
||||
"Tnb.Message.Interfaces": {
|
||||
"commandName": "Project",
|
||||
"launchBrowser": true,
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
},
|
||||
"applicationUrl": "https://localhost:50239;http://localhost:50259"
|
||||
}
|
||||
}
|
||||
}
|
||||
12
message/Tnb.Message/Properties/launchSettings.json
Normal file
12
message/Tnb.Message/Properties/launchSettings.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"profiles": {
|
||||
"Tnb.Message": {
|
||||
"commandName": "Project",
|
||||
"launchBrowser": true,
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
},
|
||||
"applicationUrl": "https://localhost:50241;http://localhost:50262"
|
||||
}
|
||||
}
|
||||
}
|
||||
12
system/Tnb.OAuth/Properties/launchSettings.json
Normal file
12
system/Tnb.OAuth/Properties/launchSettings.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"profiles": {
|
||||
"Tnb.OAuth": {
|
||||
"commandName": "Project",
|
||||
"launchBrowser": true,
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
},
|
||||
"applicationUrl": "https://localhost:50278;http://localhost:50279"
|
||||
}
|
||||
}
|
||||
}
|
||||
12
system/Tnb.Systems.Entitys/Properties/launchSettings.json
Normal file
12
system/Tnb.Systems.Entitys/Properties/launchSettings.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"profiles": {
|
||||
"Tnb.Systems.Entitys": {
|
||||
"commandName": "Project",
|
||||
"launchBrowser": true,
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
},
|
||||
"applicationUrl": "https://localhost:50280;http://localhost:50281"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"profiles": {
|
||||
"Tnb.TaskScheduler.Entitys": {
|
||||
"commandName": "Project",
|
||||
"launchBrowser": true,
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
},
|
||||
"applicationUrl": "https://localhost:50245;http://localhost:50257"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"profiles": {
|
||||
"Tnb.TaskScheduler.Interfaces": {
|
||||
"commandName": "Project",
|
||||
"launchBrowser": true,
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
},
|
||||
"applicationUrl": "https://localhost:50251;http://localhost:50258"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"profiles": {
|
||||
"Tnb.TaskScheduler": {
|
||||
"commandName": "Project",
|
||||
"launchBrowser": true,
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
},
|
||||
"applicationUrl": "https://localhost:50250;http://localhost:50255"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"profiles": {
|
||||
"Tnb.VisualDev.Engine": {
|
||||
"commandName": "Project",
|
||||
"launchBrowser": true,
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
},
|
||||
"applicationUrl": "https://localhost:50248;http://localhost:50254"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"profiles": {
|
||||
"Tnb.VisualDev.Entitys": {
|
||||
"commandName": "Project",
|
||||
"launchBrowser": true,
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
},
|
||||
"applicationUrl": "https://localhost:50243;http://localhost:50260"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"profiles": {
|
||||
"Tnb.VisualDev.Interfaces": {
|
||||
"commandName": "Project",
|
||||
"launchBrowser": true,
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
},
|
||||
"applicationUrl": "https://localhost:50252;http://localhost:50256"
|
||||
}
|
||||
}
|
||||
}
|
||||
12
visualdev/Tnb.VisualDev/Properties/launchSettings.json
Normal file
12
visualdev/Tnb.VisualDev/Properties/launchSettings.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"profiles": {
|
||||
"Tnb.VisualDev": {
|
||||
"commandName": "Project",
|
||||
"launchBrowser": true,
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
},
|
||||
"applicationUrl": "https://localhost:50242;http://localhost:50266"
|
||||
}
|
||||
}
|
||||
}
|
||||
12
workflow/Tnb.WorkFlow.Entitys/Properties/launchSettings.json
Normal file
12
workflow/Tnb.WorkFlow.Entitys/Properties/launchSettings.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"profiles": {
|
||||
"Tnb.WorkFlow.Entitys": {
|
||||
"commandName": "Project",
|
||||
"launchBrowser": true,
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
},
|
||||
"applicationUrl": "https://localhost:50253;http://localhost:50261"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"profiles": {
|
||||
"Tnb.WorkFlow.Interfaces": {
|
||||
"commandName": "Project",
|
||||
"launchBrowser": true,
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
},
|
||||
"applicationUrl": "https://localhost:50249;http://localhost:50265"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user