Browse Source

总成查询修改添加字段

HQ
lvzb 10 months ago
parent
commit
57f474a790
  1. 16
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/MsgBaseData/AssemblyCfgs/Dtos/AssemblyCfgErpDto.cs
  2. 15
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/MsgBaseData/AssemblyCfgs/Dtos/ExportErpAssemblyDto.cs
  3. 11
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/MsgBaseData/AssemblyCfgs/Dtos/QueryAssemblyCfgErpDto.cs
  4. 30
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/WY.NewJit.Application.Contracts.xml
  5. 20
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application/MsgBaseData/AssemblyCfgs/AssemblyCfgErpAppService.cs
  6. 8
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application/WY.NewJit.Application.xml

16
src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/MsgBaseData/AssemblyCfgs/Dtos/AssemblyCfgErpDto.cs

@ -46,6 +46,22 @@ namespace WY.NewJit.MsgBaseData
[ImporterHeader(Name = "长描述")] [ImporterHeader(Name = "长描述")]
public virtual string GroupCode { get; set; } public virtual string GroupCode { get; set; }
/// <summary>
/// 规格说明
/// </summary>
[ExporterHeader(DisplayName = "规格说明")]
[ImporterHeader(Name = "规格说明")]
public virtual string SpecExplain { get; set; }
/// <summary>
/// 颜色说明
/// </summary>
[ExporterHeader(DisplayName = "颜色说明")]
[ImporterHeader(Name = "颜色说明")]
public virtual string ColorExplain { get; set; }
/// <summary> /// <summary>
/// 车型 /// 车型
/// </summary> /// </summary>

15
src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/MsgBaseData/AssemblyCfgs/Dtos/ExportErpAssemblyDto.cs

@ -39,6 +39,21 @@ namespace WY.NewJit.MsgBaseData
[ImporterHeader(Name = "ERP总成名称")] [ImporterHeader(Name = "ERP总成名称")]
public string ErpAssemblyName { get; set; } public string ErpAssemblyName { get; set; }
/// <summary>
/// 规格说明
/// </summary>
[ExporterHeader(DisplayName = "规格说明")]
[ImporterHeader(Name = "规格说明")]
public string SpecExplain { get; set; }
/// <summary>
/// 颜色说明
/// </summary>
[ExporterHeader(DisplayName = "颜色说明")]
[ImporterHeader(Name = "颜色说明")]
public string ColorExplain { get; set; }
/// <summary> /// <summary>
/// 客户零件代码 /// 客户零件代码
/// </summary> /// </summary>

11
src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/MsgBaseData/AssemblyCfgs/Dtos/QueryAssemblyCfgErpDto.cs

@ -18,12 +18,21 @@ namespace WY.NewJit.MsgBaseData
/// 总成名称 /// 总成名称
/// </summary> /// </summary>
public string ErpAssemblyName { get; set; } public string ErpAssemblyName { get; set; }
/// <summary> /// <summary>
/// 车型代码 /// 车型代码
/// </summary> /// </summary>
public string VehicleModelCode { get; set; } public string VehicleModelCode { get; set; }
/// <summary>
/// 规格说明
/// </summary>
public string SpecExplain { get; set; }
/// <summary>
/// 颜色说明
/// </summary>
public string ColorExplain { get; set; }
public DateTime? BeginCreateTime { get; set; } public DateTime? BeginCreateTime { get; set; }
public DateTime? EndCreateTime { get; set; } public DateTime? EndCreateTime { get; set; }

30
src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/WY.NewJit.Application.Contracts.xml

@ -1253,6 +1253,16 @@
长描述 长描述
</summary> </summary>
</member> </member>
<member name="P:WY.NewJit.MsgBaseData.AssemblyCfgErpDto.SpecExplain">
<summary>
规格说明
</summary>
</member>
<member name="P:WY.NewJit.MsgBaseData.AssemblyCfgErpDto.ColorExplain">
<summary>
颜色说明
</summary>
</member>
<member name="P:WY.NewJit.MsgBaseData.AssemblyCfgErpDto.VehicleModel"> <member name="P:WY.NewJit.MsgBaseData.AssemblyCfgErpDto.VehicleModel">
<summary> <summary>
车型 车型
@ -1378,6 +1388,16 @@
ERP总成名称 ERP总成名称
</summary> </summary>
</member> </member>
<member name="P:WY.NewJit.MsgBaseData.ExportErpAssemblyDto.SpecExplain">
<summary>
规格说明
</summary>
</member>
<member name="P:WY.NewJit.MsgBaseData.ExportErpAssemblyDto.ColorExplain">
<summary>
颜色说明
</summary>
</member>
<member name="P:WY.NewJit.MsgBaseData.ExportErpAssemblyDto.PartCode"> <member name="P:WY.NewJit.MsgBaseData.ExportErpAssemblyDto.PartCode">
<summary> <summary>
客户零件代码 客户零件代码
@ -1438,6 +1458,16 @@
车型代码 车型代码
</summary> </summary>
</member> </member>
<member name="P:WY.NewJit.MsgBaseData.QueryAssemblyCfgErpDto.SpecExplain">
<summary>
规格说明
</summary>
</member>
<member name="P:WY.NewJit.MsgBaseData.QueryAssemblyCfgErpDto.ColorExplain">
<summary>
颜色说明
</summary>
</member>
<member name="M:WY.NewJit.MsgBaseData.IAssemblyCfgErpAppService.GetErpAssemblyListAsync(WY.NewJit.MsgBaseData.QueryAssemblyCfgErpDto)"> <member name="M:WY.NewJit.MsgBaseData.IAssemblyCfgErpAppService.GetErpAssemblyListAsync(WY.NewJit.MsgBaseData.QueryAssemblyCfgErpDto)">
<summary> <summary>
根据筛选条件获取分页实体列表 根据筛选条件获取分页实体列表

20
src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application/MsgBaseData/AssemblyCfgs/AssemblyCfgErpAppService.cs

@ -157,7 +157,7 @@ SELECT top 1 v.Id
( (
select ROW_NUMBER() OVER(order by a.[CreationTime]) as row_number, select ROW_NUMBER() OVER(order by a.[CreationTime]) as row_number,
a.Id, a.ErpAssemblyCode, a.ErpAssemblyName, a.ErpAssemblyVersion, a.Id, a.ErpAssemblyCode, a.ErpAssemblyName, a.ErpAssemblyVersion,
g.GroupCode, g.VehicleModel, g.IsDisable, g.CreationTime g.GroupCode, g.VehicleModel, g.IsDisable, g.CreationTime ,g.SpecExplain,g.ColorExplain
from FisAssemblyCfgErp a from FisAssemblyCfgErp a
join FisAssemblyCfgGroup g on g.Id = a.GroupId join FisAssemblyCfgGroup g on g.Id = a.GroupId
where g.IsDeleted = 0 and g.IsDisable <> 1 {0} where g.IsDeleted = 0 and g.IsDisable <> 1 {0}
@ -190,10 +190,10 @@ SELECT top 1 v.Id
select ROW_NUMBER() OVER(order by a.[CreationTime]) as row_number, select ROW_NUMBER() OVER(order by a.[CreationTime]) as row_number,
a.Id, g.GroupCode, a.ErpAssemblyCode, a.ErpAssemblyName, a.Id, g.GroupCode, a.ErpAssemblyCode, a.ErpAssemblyName,
p.PartCode, pc.PartName, p.PartNum, p.PartCode, pc.PartName, p.PartNum,
g.VehicleModel, g.IsDisable, g.CreationTime g.VehicleModel, g.IsDisable, g.CreationTime,g.SpecExplain,g.ColorExplain
from FisAssemblyCfgErp a from FisAssemblyCfgErp a
join FisAssemblyCfgGroup g on g.Id = a.GroupId join FisAssemblyCfgGroup g on g.Id = a.GroupId
join FisAssemblyCfgPart p on a.Id = p.AssemblyCfgErpId left join FisAssemblyCfgPart p on a.Id = p.AssemblyCfgErpId
left join FisPartCfg pc on p.PartCode = pc.PartCode left join FisPartCfg pc on p.PartCode = pc.PartCode
where g.IsDeleted = 0 and g.IsDisable <> 1 {0} where g.IsDeleted = 0 and g.IsDisable <> 1 {0}
"; ";
@ -218,6 +218,14 @@ SELECT top 1 v.Id
{ {
where += string.Format(" and g.VehicleModel = '{0}'", input.VehicleModelCode); where += string.Format(" and g.VehicleModel = '{0}'", input.VehicleModelCode);
} }
if (!string.IsNullOrEmpty(input.SpecExplain))
{
where += string.Format(" and g.SpecExplain = '{0}'", input.SpecExplain);
}
if (!string.IsNullOrEmpty(input.ColorExplain))
{
where += string.Format(" and g.ColorExplain = '{0}'", input.ColorExplain);
}
if (input.BeginCreateTime != null) if (input.BeginCreateTime != null)
{ {
where += string.Format(" and g.CreationTime >= '{0}'", ((DateTime)input.BeginCreateTime).ToString("yyyy-MM-dd HH:mm:ss")); where += string.Format(" and g.CreationTime >= '{0}'", ((DateTime)input.BeginCreateTime).ToString("yyyy-MM-dd HH:mm:ss"));
@ -677,10 +685,10 @@ SELECT top 1 v.Id
/// <summary> /// <summary>
/// 导入 /// 总成组导入
/// </summary> /// </summary>
/// <param name="files">导入文件</param> /// <param name="files"></param>
/// <returns>执行成功返回真</returns> /// <returns></returns>
[HttpPost] [HttpPost]
[Route("import-erp-assembly-group")] [Route("import-erp-assembly-group")]
[DisableRequestSizeLimit] [DisableRequestSizeLimit]

8
src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application/WY.NewJit.Application.xml

@ -130,7 +130,7 @@
<param name="forceExecute">校验出错时,是否强制执行</param> <param name="forceExecute">校验出错时,是否强制执行</param>
<returns>执行成功返回真</returns> <returns>执行成功返回真</returns>
</member> </member>
<member name="M:WY.NewJit.EdiReceive.ImportRecordAppService.PrintTimeoutRemind(WY.NewJit.MsgCheck.TimeOutRemindInputDto)"> <member name="M:WY.NewJit.EdiReceive.ImportRecordAppService.PrintTimeoutRemind">
<summary> <summary>
打印时间提醒 打印时间提醒
</summary> </summary>
@ -409,10 +409,10 @@
</member> </member>
<member name="M:WY.NewJit.MsgBaseData.AssemblyCfgErpAppService.ImportErpAssemblyGroupAsync(Microsoft.AspNetCore.Http.IFormFileCollection)"> <member name="M:WY.NewJit.MsgBaseData.AssemblyCfgErpAppService.ImportErpAssemblyGroupAsync(Microsoft.AspNetCore.Http.IFormFileCollection)">
<summary> <summary>
导入 总成组导入
</summary> </summary>
<param name="files">导入文件</param> <param name="files"></param>
<returns>执行成功返回真</returns> <returns></returns>
</member> </member>
<member name="M:WY.NewJit.MsgBaseData.AssemblyCfgErpAppService.RemoveRepeatErpAssembly(System.Int32)"> <member name="M:WY.NewJit.MsgBaseData.AssemblyCfgErpAppService.RemoveRepeatErpAssembly(System.Int32)">
<summary> <summary>

Loading…
Cancel
Save