13 changed files with 241 additions and 84 deletions
@ -0,0 +1,24 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
|
|||
namespace Dy_Exchange.Z_Business |
|||
{ |
|||
public class DataExchangeInterfaceOptions |
|||
{ |
|||
//public string wmsCode = "WMS";
|
|||
//public string cmdStartPath = @"D:\Proc_DyNevWms\publish\start.cmd";
|
|||
//public string cmdClosePath1 = @"D:\Proc_DyNevWms\publish\stop.cmd";
|
|||
//public string cmdClosePath2 = @"D:\Proc_DyNevWms\publish\TaskKill.exe";
|
|||
//public string wmsUrl = "http://10.164.233.5:60085/swagger/AbpTenant/swagger.json";
|
|||
|
|||
|
|||
public string WmsCode { get; set; } |
|||
public string CmdStartPath { get; set; } |
|||
public string CmdClosePath1 { get; set; } |
|||
public string CmdClosePath2 { get; set; } |
|||
public string WmsUrl { get; set; } |
|||
} |
|||
} |
@ -1,26 +1,38 @@ |
|||
{ |
|||
"App": { |
|||
"CorsOrigins": "http://192.168.0.146:20033", |
|||
"Audit": { |
|||
"IsEnabled": false // 禁用审计功能 |
|||
// 其他审计相关设置项 |
|||
} |
|||
}, |
|||
"ConnectionStrings": { |
|||
"Default": "Server=.;Database=Dy_FasterZ_Exchange;uid=sa;pwd=sasa;timeout=6000;Encrypt=False;", |
|||
"Dy_Exchange": "Server=dev.ccwin-in.com,13319;Database=WMS_DongYang_DataExchange_CC;uid=ccwin-in;pwd=Microsoft@2022;timeout=60000;Encrypt=False;" |
|||
}, |
|||
"Redis": { |
|||
"Configuration": "127.0.0.1" |
|||
}, |
|||
"AuthServer": { |
|||
"Authority": "http://192.168.1.75:60080", |
|||
"RequireHttpsMetadata": "false", |
|||
"SwaggerClientId": "Dy_Exchange_Swagger" |
|||
}, |
|||
"StringEncryption": { |
|||
"DefaultPassPhrase": "ybgU8NieQZNjguXe" |
|||
}, |
|||
"AlwaysAllowAuthorization": "true", |
|||
"urls": "http://192.168.1.75:60081" |
|||
"App": { |
|||
"CorsOrigins": "http://192.168.0.146:20033", |
|||
"Audit": { |
|||
"IsEnabled": false // 禁用审计功能 |
|||
// 其他审计相关设置项 |
|||
} |
|||
}, |
|||
"ConnectionStrings": { |
|||
"Default": "Server=.;Database=Dy_FasterZ_Exchange;uid=sa;pwd=sasa;timeout=6000;Encrypt=False;", |
|||
"Dy_Exchange": "Server=dev.ccwin-in.com,13319;Database=WMS_DongYang_DataExchange_CC;uid=ccwin-in;pwd=Microsoft@2022;timeout=60000;Encrypt=False;" |
|||
}, |
|||
"Redis": { |
|||
"Configuration": "127.0.0.1" |
|||
}, |
|||
|
|||
|
|||
|
|||
"AuthServer": { |
|||
"Authority": "http://192.168.1.75:60080", |
|||
"RequireHttpsMetadata": "false", |
|||
"SwaggerClientId": "Dy_Exchange_Swagger" |
|||
}, |
|||
"StringEncryption": { |
|||
"DefaultPassPhrase": "ybgU8NieQZNjguXe" |
|||
}, |
|||
"AlwaysAllowAuthorization": "true", |
|||
"urls": "http://192.168.1.75:60081", |
|||
"DataExchangeInterfaceOptions": { |
|||
"WmsCode": "WMS", |
|||
"CmdStartPath": "D:\\Proc_DyNevWms\\publish\\start.cmd", |
|||
"CmdClosePath1": "D:\\Proc_DyNevWms\\publish\\stop.cmd", |
|||
"CmdClosePath2": "D:\\Proc_DyNevWms\\publish\\TaskKill.exe", |
|||
"WmsUrl": "http://10.164.233.5:60085/swagger/AbpTenant/swagger.json" |
|||
|
|||
} |
|||
} |
|||
|
|||
|
@ -0,0 +1,98 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
using Microsoft.AspNetCore.Authorization; |
|||
using Microsoft.AspNetCore.Mvc; |
|||
using Volo.Abp; |
|||
using Volo.Abp.Application.Services; |
|||
using Volo.Abp.Uow; |
|||
using Volo.Abp.Users; |
|||
using Win_in.Sfs.Basedata.Application.Contracts; |
|||
using Win_in.Sfs.Basedata.Domain; |
|||
using Win_in.Sfs.Basedata.Domain.Shared; |
|||
using Win_in.Sfs.Shared.Domain.Shared; |
|||
using Win_in.Sfs.Wms.Inventory.Application.Contracts; |
|||
using Win_in.Sfs.Wms.Store.Application.Contracts; |
|||
using Win_in.Sfs.Wms.Store.Domain.Shared; |
|||
|
|||
namespace Win_in.Sfs.Wms.Store.Jobs.IssueJobs.AgvServices; |
|||
|
|||
|
|||
[AllowAnonymous] |
|||
[Route($"{StoreConsts.RootPath}agv-job-Account")] |
|||
public class AgvJobAccountService : ApplicationService, IAgvJobAccountService |
|||
{ |
|||
private IAssembleIssueJobAppService _assembleIssueJobAppService; |
|||
private ICoatingIssueJobAppService _coatingIssueJobAppService; |
|||
private IInjectionIssueJobAppService _injectionIssueJobAppService; |
|||
private IKittingIssueJobAppService _kittingIssueJobAppService; |
|||
private ISparePartIssueJobAppService _sparePartIssueJobAppService; |
|||
|
|||
public AgvJobAccountService( |
|||
|
|||
IAssembleIssueJobAppService assembleIssueJobAppService, |
|||
ICoatingIssueJobAppService coatingIssueJobAppService, |
|||
IInjectionIssueJobAppService injectionIssueJobAppService, |
|||
IKittingIssueJobAppService kittingIssueJobAppService, |
|||
ISparePartIssueJobAppService sparePartIssueJobAppService |
|||
|
|||
) |
|||
{ |
|||
_assembleIssueJobAppService = assembleIssueJobAppService; |
|||
_coatingIssueJobAppService= coatingIssueJobAppService; |
|||
_injectionIssueJobAppService= injectionIssueJobAppService; |
|||
_kittingIssueJobAppService = kittingIssueJobAppService; |
|||
_sparePartIssueJobAppService= sparePartIssueJobAppService; |
|||
} |
|||
|
|||
public async Task<AgvResultObject> AccountOutOrderAsync(AgvRequestOnlyJobHK request) |
|||
{ |
|||
var res=new AgvResultObject(); |
|||
res.Code = "0"; |
|||
|
|||
foreach (var itm in request.Data) |
|||
{ |
|||
switch (itm.OrderType) |
|||
{ |
|||
case "1": |
|||
|
|||
var assemblejob= new AssembleIssueJobDTO(); |
|||
|
|||
foreach (var detail in request.Data) |
|||
{ |
|||
|
|||
} |
|||
|
|||
|
|||
|
|||
|
|||
var assemb=await _assembleIssueJobAppService.GetByNumberAsync(itm.OrderNum).ConfigureAwait(false); |
|||
await _assembleIssueJobAppService.CompleteAsync(assemb.Id).ConfigureAwait(false); |
|||
res.ReqCode = assemb.AssembleRequestNumber; |
|||
res.Message = "OK"; |
|||
break; |
|||
case "2": |
|||
var coating = await _coatingIssueJobAppService.GetByNumberAsync(itm.OrderNum).ConfigureAwait(false); |
|||
await _coatingIssueJobAppService.CompleteAsync(coating.Id).ConfigureAwait(false); |
|||
break; |
|||
case "3": |
|||
var injection = await _injectionIssueJobAppService.GetByNumberAsync(itm.OrderNum).ConfigureAwait(false); |
|||
await _injectionIssueJobAppService.CompleteAsync(injection.Id).ConfigureAwait(false); |
|||
break; |
|||
case "4": |
|||
var kitting = await _kittingIssueJobAppService.GetByNumberAsync(itm.OrderNum).ConfigureAwait(false); |
|||
await _kittingIssueJobAppService.CompleteAsync(kitting.Id).ConfigureAwait(false); |
|||
|
|||
break; |
|||
case "5": |
|||
var sparePart = await _sparePartIssueJobAppService.GetByNumberAsync(itm.OrderNum).ConfigureAwait(false); |
|||
await _sparePartIssueJobAppService.CompleteAsync(sparePart.Id).ConfigureAwait(false); |
|||
break; |
|||
|
|||
} |
|||
} |
|||
|
|||
} |
|||
} |
@ -1,29 +0,0 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
using Microsoft.AspNetCore.Authorization; |
|||
using Microsoft.AspNetCore.Mvc; |
|||
using Volo.Abp; |
|||
using Volo.Abp.Application.Services; |
|||
using Volo.Abp.Uow; |
|||
using Volo.Abp.Users; |
|||
using Win_in.Sfs.Basedata.Application.Contracts; |
|||
using Win_in.Sfs.Basedata.Domain; |
|||
using Win_in.Sfs.Basedata.Domain.Shared; |
|||
using Win_in.Sfs.Shared.Domain.Shared; |
|||
using Win_in.Sfs.Wms.Inventory.Application.Contracts; |
|||
using Win_in.Sfs.Wms.Store.Application.Contracts; |
|||
using Win_in.Sfs.Wms.Store.Domain.Shared; |
|||
|
|||
namespace Win_in.Sfs.Wms.Store.Jobs.IssueJobs.AgvServices; |
|||
|
|||
|
|||
[AllowAnonymous] |
|||
[Route($"{StoreConsts.RootPath}agv-job-out")] |
|||
public class AgvJobInputService:ApplicationService |
|||
{ |
|||
|
|||
|
|||
} |
Loading…
Reference in new issue