Browse Source

更新版本

FoShanPG
Administrator 3 years ago
parent
commit
2119973d16
  1. 115
      src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/Wms/WmsDetailReportDto.cs
  2. 4
      src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WMSJitAppService.cs
  3. 3
      src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WmsOutputSumAppService.cs
  4. 179
      src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WmsUnInterface.cs
  5. 21
      src/Modules/SettleAccount/src/SettleAccount.Application/SettleAccount.Application.xml
  6. 10
      src/Modules/SettleAccount/src/SettleAccount.Application/SettleAccountApplicationAutoMapperProfile.cs
  7. 91
      src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/WmsDetailReport.cs
  8. 44
      src/Modules/SettleAccount/src/SettleAccount.Domain/Reports/ReportDetailBase.cs
  9. 35
      src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/SettleAccountDbContextModelCreatingExtensions.cs
  10. 20
      src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Repository/SettleAccountJob/Report/WmsOutputSumDapperRepository.cs

115
src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/Wms/WmsDetailReportDto.cs

@ -0,0 +1,115 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Win.Sfs.Shared.DtoBase;
namespace Win.Sfs.SettleAccount.Entities.Wms.WmsSumOutput
{
public class WmsRequestDetailReportDto: RequestDtoBase
{
[Display(Name = "行号")]
public int LineNumber { set; get; }
[Display(Name = "客户")]
public string Client { set; get; }
[Display(Name = "出库类型")]
public string Type { set; get; }
[Display(Name = "结算编码")]
public string SettleCode { set; get; }
[Display(Name = "销售渠道")]
public string SaleCode { set; get; }
[Display(Name = "客户代码")]
public string ClientCode { set; get; }
[Display(Name = "结算单")]
public string BillNum { set; get; }
[Display(Name = "结算单")]
public string MaterialCode { set; get; }
[Display(Name = "寄售类别")]
public string SaleType { set; get; }
[Display(Name = "结算数量")]
public decimal Qty { set; get; }
[Display(Name = "实际出库数量")]
public decimal OutputQty { set; get; }
[Display(Name = "差异数量")]
public decimal DiffQty { set; get; }
[Display(Name = "开票单价")]
public decimal Price { set; get; }
[Display(Name = "结算金额")]
public decimal Amt { set; get; }
[Display(Name = "已出库金额")]
public decimal OutPutAmt { set; get; }
[Display(Name = "WMS待出库金额")]
public decimal DiffAmt { set; get; }
[Display(Name = "物料组编码")]
public string MaterialGroupCode { set; get; }
[Display(Name = "物料组(车型)")]
public string MaterialGroup { set; get; }
[Display(Name = "物料组描述")]
public string MaterialDesc { set; get; }
[Display(Name = "备注")]
public string Remark1 { set; get; }
[Display(Name = "状态")]
public int State { set; get; }
}
public class WmsDetailReportDto
{
public WmsDetailReportDto()
{
}
[Display(Name = "行号")]
public int LineNumber { set; get; }
[Display(Name = "客户")]
public string Client { set; get; }
[Display(Name = "出库类型")]
public string Type { set; get; }
[Display(Name = "结算编码")]
public string SettleCode { set; get; }
[Display(Name = "销售渠道")]
public string SaleCode { set; get; }
[Display(Name = "客户代码")]
public string ClientCode { set; get; }
[Display(Name = "结算单")]
public string BillNum { set; get; }
[Display(Name = "结算单")]
public string MaterialCode { set; get; }
[Display(Name = "寄售类别")]
public string SaleType { set; get; }
[Display(Name = "结算数量")]
public decimal Qty { set; get; }
[Display(Name = "实际出库数量")]
public decimal OutputQty { set; get; }
[Display(Name = "差异数量")]
public decimal DiffQty { set; get; }
[Display(Name = "开票单价")]
public decimal Price { set; get; }
[Display(Name = "结算金额")]
public decimal Amt { set; get; }
[Display(Name = "已出库金额")]
public decimal OutPutAmt { set; get; }
[Display(Name = "WMS待出库金额")]
public decimal DiffAmt { set; get; }
[Display(Name = "物料组编码")]
public string MaterialGroupCode { set; get; }
[Display(Name = "物料组(车型)")]
public string MaterialGroup { set; get; }
[Display(Name = "物料组描述")]
public string MaterialDesc { set; get; }
[Display(Name = "备注")]
public string Remark1 { set; get; }
[Display(Name = "状态")]
public int State { set; get; }
}
}

4
src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WMSJitAppService.cs

@ -54,9 +54,9 @@ namespace Win.Sfs.SettleAccount.Entities.SettleAccounts
/// wms出库 /// wms出库
/// </summary> /// </summary>
//[AllowAnonymous]
[Route("api/settleaccount/wmsjitoutput")] [Route("api/settleaccount/wmsjitoutput")]
//[Authorize(SettleAccountPermissions.WMSJIT.Default)]
public class WMSJitAppService : public class WMSJitAppService :
SettleAccountApplicationBase<WmsJitOutPutDetial> SettleAccountApplicationBase<WmsJitOutPutDetial>
{ {

3
src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WmsOutputSumAppService.cs

@ -97,6 +97,9 @@ namespace Win.Sfs.SettleAccount.Entities.WMS
//public async Task<string> GetWmsSum(WmsJitOutPutDetial input) //public async Task<string> GetWmsSum(WmsJitOutPutDetial input)
//{ //{

179
src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WmsUnInterface.cs

@ -1,17 +1,192 @@
using System; 
using EFCore.BulkExtensions;
using Magicodes.ExporterAndImporter.Core;
using Magicodes.ExporterAndImporter.Excel;
using Microsoft.AspNetCore.Mvc;
using Shouldly;
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using Volo.Abp;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Caching;
using Volo.Abp.Domain.Repositories;
using Win.Abp.Snowflakes;
using Win.Sfs.BaseData.ImportExcelCommon;
using Win.Sfs.SettleAccount.CommonManagers;
using Win.Sfs.SettleAccount.Constant;
using Win.Sfs.SettleAccount.Entities.Wms;
using Win.Sfs.SettleAccount.Entities.Wms.WmsSumOutput;
using Win.Sfs.SettleAccount.Reports;
using Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report;
using Win.Sfs.Shared.DomainBase;
using Win.Sfs.Shared.Filter;
namespace Win.Sfs.SettleAccount.Entities.WMS namespace Win.Sfs.SettleAccount.Entities.WMS
{ {
public class WmsUnInterface [Route("api/settleaccount/WMSOutputSumReport")]
public class WMSOutputSumReportAppService :
SettleAccountApplicationBase<WmsDetailReport>
{ {
private readonly ISettleAccountBranchEfCoreRepository<WmsDetailReport, Guid> _wmsRepository;
private readonly WmsOutputSumDapperRepository _dapper;
private readonly IExcelImportAppService _excelImportService;
/// <summary>
///
/// </summary>
/// <param name="wmsRepository"></param>
/// <param name="job"></param>
public WMSOutputSumReportAppService(
WmsOutputSumDapperRepository dapper,
ISettleAccountBranchEfCoreRepository<WmsDetailReport, Guid> wmsRepository,
ISettleAccountBranchEfCoreRepository<TaskJob, Guid> job,
IExcelImportAppService excelImportService,
IDistributedCache<WmsDetailReport> cache,
ISnowflakeIdGenerator snowflakeIdGenerator,
ICommonManager commonManager
) : base(cache, excelImportService, snowflakeIdGenerator, commonManager)
{
_wmsRepository = wmsRepository;
_dapper = dapper;
}
[HttpPost]
[Route("Make")]
public async Task<string> ReportMake(string version)
{
var _ls= _dapper.GetWmsSumExtendList(version);//报表
var _count= _wmsRepository.Count(p => p.Version == version && p.State>0);
if (_count > 0)
{
throw new BusinessException("8899", "不能重新生成此版本!");
}
else
{
var query = _wmsRepository.Where(p => p.Version == version);
await query.BatchDeleteAsync();
}
List<WmsDetailReport> _lst = new List<WmsDetailReport>();
if (_ls != null && _ls.Count() > 0)
{
foreach (var itm in _ls)
{
_lst.Add(new WmsDetailReport(Guid.NewGuid(),
int.Parse(itm.),
itm.,
itm.,
itm.,
itm.,
itm.,
itm.,
itm.,
String.Empty,
itm.,
itm.,
itm.,
itm.,
itm.,
itm.,
itm.WMS待出库金额,
itm.,
itm.,
itm.,
String.Empty,
0,
version
));
}
}
await _wmsRepository.GetDbContext().BulkInsertAsync(_lst);
return ApplicationConsts.SuccessStr;
}
private async Task<long> GetCountAsync(WmsRequestDetailReportDto input)
{
// input.Filters.Add(new FilterCondition() { Action = EnumFilterAction.Equal, Column = "BillNum", Logic = EnumFilterLogic.And, Value = input.BillNum });
return await _wmsRepository.GetCountByFilterAsync(GuidGenerator.Create(), input.Filters);
}
/// <summary>
/// Wms汇总合计明细
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpPost]
[Route("WmsDetailReport")]
virtual public async Task<PagedResultDto<WmsDetailReport>> GetListAsync(WmsRequestDetailReportDto input)
{
var entities = await _wmsRepository.GetListByFilterAsync(GuidGenerator.Create(), input.Filters, input.Sorting, input.MaxResultCount,
input.SkipCount, true);
var totalCount = await GetCountAsync(input);
return new PagedResultDto<WmsDetailReport>(totalCount, entities);
}
/// <summary>
/// 导出
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpPost]
[Route("Export")]
virtual public async Task<string> ExportAsync(WmsRequestDetailReportDto input)
{
var entities = await _wmsRepository.GetListByFilterAsync(GuidGenerator.Create(), input.Filters, input.Sorting, int.MaxValue,
0, true);
IExporter _excel = new ExcelExporter();
byte[] result = null;
var _fileName = string.Format("汇总合计报表_{0}.xlsx", Guid.NewGuid().ToString());
result = await _excel.ExportAsByteArray(entities);
result.ShouldNotBeNull();
//保存导出文件到服务器存成二进制
await _excelImportService.SaveBlobAsync(
new SaveExcelImportInputDto
{
Name = _fileName,
Content = result
}
);
return _fileName;
}
} }
} }

21
src/Modules/SettleAccount/src/SettleAccount.Application/SettleAccount.Application.xml

@ -3617,6 +3617,27 @@
<param name="input"></param> <param name="input"></param>
<returns></returns> <returns></returns>
</member> </member>
<member name="M:Win.Sfs.SettleAccount.Entities.WMS.WMSOutputSumReportAppService.#ctor(Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report.WmsOutputSumDapperRepository,Win.Sfs.SettleAccount.ISettleAccountBranchEfCoreRepository{Win.Sfs.SettleAccount.Entities.WmsDetailReport,System.Guid},Win.Sfs.SettleAccount.ISettleAccountBranchEfCoreRepository{Win.Sfs.SettleAccount.Entities.TaskJob,System.Guid},Win.Sfs.BaseData.ImportExcelCommon.IExcelImportAppService,Volo.Abp.Caching.IDistributedCache{Win.Sfs.SettleAccount.Entities.WmsDetailReport},Win.Abp.Snowflakes.ISnowflakeIdGenerator,Win.Sfs.SettleAccount.CommonManagers.ICommonManager)">
<summary>
</summary>
<param name="wmsRepository"></param>
<param name="job"></param>
</member>
<member name="M:Win.Sfs.SettleAccount.Entities.WMS.WMSOutputSumReportAppService.GetListAsync(Win.Sfs.SettleAccount.Entities.Wms.WmsSumOutput.WmsRequestDetailReportDto)">
<summary>
Wms汇总合计明细
</summary>
<param name="input"></param>
<returns></returns>
</member>
<member name="M:Win.Sfs.SettleAccount.Entities.WMS.WMSOutputSumReportAppService.ExportAsync(Win.Sfs.SettleAccount.Entities.Wms.WmsSumOutput.WmsRequestDetailReportDto)">
<summary>
导出
</summary>
<param name="input"></param>
<returns></returns>
</member>
<member name="T:Win.Sfs.SettleAccount.FISes.FISAppService"> <member name="T:Win.Sfs.SettleAccount.FISes.FISAppService">
<summary> <summary>
区域相关应用服务 区域相关应用服务

10
src/Modules/SettleAccount/src/SettleAccount.Application/SettleAccountApplicationAutoMapperProfile.cs

@ -90,6 +90,7 @@ using Win.Sfs.SettleAccount.Entities.BT_Car;
using Win.Sfs.SettleAccount.Entities.WMS; using Win.Sfs.SettleAccount.Entities.WMS;
using Win.Sfs.SettleAccount.Entities; using Win.Sfs.SettleAccount.Entities;
using Win.Sfs.SettleAccount.Entities.UnHQSettleAccounts; using Win.Sfs.SettleAccount.Entities.UnHQSettleAccounts;
using Win.Sfs.SettleAccount.Entities.Wms.WmsSumOutput;
namespace Win.Sfs.SettleAccount namespace Win.Sfs.SettleAccount
{ {
@ -263,13 +264,20 @@ namespace Win.Sfs.SettleAccount
CreateMapWmsHQWithOutKanban(); CreateMapWmsHQWithOutKanban();
CreateMapWmsHQCar(); CreateMapWmsHQCar();
CreateMapWmsOneTimeSale(); CreateMapWmsOneTimeSale();
CreateMapWMSOutputSum();
#endregion #endregion
} }
#region 派格出库单 #region 派格出库单
private void CreateMapWMSOutputSum()
{
CreateMap<WmsDetailReport, WmsDetailReportDto>().ReverseMap();
CreateMap<WmsDetailReport, WmsRequestDetailReportDto>().ReverseMap();
}
private void CreateMapWMSJit() private void CreateMapWMSJit()
{ {
CreateMap<WmsJitOutPutDetial, WmsJitOutPutDetialDto>().ReverseMap(); CreateMap<WmsJitOutPutDetial, WmsJitOutPutDetialDto>().ReverseMap();

91
src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/WmsDetailReport.cs

@ -0,0 +1,91 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Win.Sfs.Shared.DomainBase;
namespace Win.Sfs.SettleAccount.Entities
{
public class WmsDetailReport : FullAuditedAggregateRootBase<Guid>
{
public WmsDetailReport()
{
}
public WmsDetailReport(Guid id, int lineNumber, string client, string type, string settleCode, string saleCode, string clientCode, string billNum, string materialCode, string saleType, decimal qty, decimal outputQty, decimal diffQty, decimal price, decimal amt, decimal outPutAmt, decimal diffAmt, string materialGroupCode, string materialGroup, string materialDesc, string remark1, int state, string version) : base(id)
{
LineNumber = lineNumber;
Client = client;
Type = type;
SettleCode = settleCode;
SaleCode = saleCode;
ClientCode = clientCode;
BillNum = billNum;
MaterialCode = materialCode;
//SaleType = saleType;
Qty = qty;
OutputQty = outputQty;
DiffQty = diffQty;
Price = price;
Amt = amt;
OutPutAmt = outPutAmt;
DiffAmt = diffAmt;
MaterialGroupCode = materialGroupCode;
MaterialGroup = materialGroup;
MaterialDesc = materialDesc;
Remark1 = remark1;
State = state;
Version = version;
}
[Display(Name = "行号")]
public int LineNumber { set; get; }
[Display(Name = "版本号")]
public string Version { set; get; }
[Display(Name = "客户")]
public string Client { set; get; }
[Display(Name = "出库类型")]
public string Type { set; get; }
[Display(Name = "结算编码")]
public string SettleCode { set; get; }
[Display(Name = "销售渠道")]
public string SaleCode { set; get; }
[Display(Name = "客户代码")]
public string ClientCode { set; get; }
[Display(Name = "结算单")]
public string BillNum { set; get; }
[Display(Name = "物料号")]
public string MaterialCode { set; get; }
//[Display(Name = "寄售类别")]
//public string SaleType { set; get; }
[Display(Name = "结算数量")]
public decimal Qty { set; get; }
[Display(Name = "实际出库数量")]
public decimal OutputQty { set; get; }
[Display(Name = "差异数量")]
public decimal DiffQty { set; get; }
[Display(Name = "开票单价")]
public decimal Price { set; get; }
[Display(Name = "结算金额")]
public decimal Amt { set; get; }
[Display(Name = "已出库金额")]
public decimal OutPutAmt { set; get; }
[Display(Name = "WMS待出库金额")]
public decimal DiffAmt { set; get; }
[Display(Name = "物料组编码")]
public string MaterialGroupCode { set; get; }
[Display(Name = "物料组(车型)")]
public string MaterialGroup { set; get; }
[Display(Name = "物料组描述")]
public string MaterialDesc { set; get; }
[Display(Name = "备注")]
public string Remark1 { set; get; }
public int State { set; get; }
}
}

44
src/Modules/SettleAccount/src/SettleAccount.Domain/Reports/ReportDetailBase.cs

@ -1,13 +1,20 @@
using Magicodes.ExporterAndImporter.Core; using Magicodes.ExporterAndImporter.Core;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using Win.Sfs.Shared.DomainBase;
namespace Win.Sfs.SettleAccount.Reports namespace Win.Sfs.SettleAccount.Reports
{ {
public class ReportDetailBase public class ReportDetailBase
{ {
@ -37,47 +44,10 @@ namespace Win.Sfs.SettleAccount.Reports
public virtual decimal Price { set; get; } public virtual decimal Price { set; get; }
[ExporterHeader(DisplayName = "金额 ")] [ExporterHeader(DisplayName = "金额 ")]
public virtual decimal Amt { set; get; } public virtual decimal Amt { set; get; }
[ExporterHeader(DisplayName = "结算日期")] [ExporterHeader(DisplayName = "结算日期")]
public virtual DateTime CP7Time { set; get; } public virtual DateTime CP7Time { set; get; }
[ExporterHeader(DisplayName = "开票单价")] [ExporterHeader(DisplayName = "开票单价")]
public virtual decimal InvoicePrice { set; get; } public virtual decimal InvoicePrice { set; get; }
//public virtual string WmsBillNum { set; get; }
//public virtual DateTime CP5Time { set; get; }
//public virtual string KENNCode { set; get; }
//public virtual string ChassisNumber { set; get; }
//public virtual string WmsState { set; get; }
//public virtual string SapMaterialCode { set; get; }
//public virtual string MaterialDesc { set; get; }
//public virtual string MaterialCode { set; get; }
//public virtual string ParentSapMaterialCode { set; get; }
//public virtual string ParentMaterialDesc { set; get; }
//public virtual string MaterialGroup { set; get; }
//public virtual decimal Price { set; get; }
//public virtual decimal Amt { set; get; }
} }
} }

35
src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/SettleAccountDbContextModelCreatingExtensions.cs

@ -376,8 +376,8 @@ namespace Win.Sfs.SettleAccount
//一次性寄售销售库 //一次性寄售销售库
builder.ConfigureWmsOneTimeSaleOutPutVersion(options); builder.ConfigureWmsOneTimeSaleOutPutVersion(options);
builder.ConfigureWmsOneTimeSaleOutPutDetial(options); builder.ConfigureWmsOneTimeSaleOutPutDetial(options);
#endregion #endregion
@ -526,6 +526,9 @@ namespace Win.Sfs.SettleAccount
#region PG-派格 #region PG-派格
private static void ConfigureHQFKanban(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options) private static void ConfigureHQFKanban(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options)
{ {
@ -549,6 +552,36 @@ namespace Win.Sfs.SettleAccount
}); });
} }
private static void ConfigureWmsDetailReport(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options)
{
builder.Entity<WmsDetailReport>(b =>
{
b.ToTable($"{options.TablePrefix}_WmsDetailReport", options.Schema);
b.ConfigureByConvention();
b.Property(x => x.BillNum).IsRequired().HasMaxLength(50);//必填项
b.Property(x => x.MaterialCode).HasMaxLength(50);
b.Property(x => x.MaterialDesc).HasMaxLength(100);
b.Property(x => x.Client).IsRequired().HasMaxLength(50);
b.Property(x => x.ClientCode).HasMaxLength(50);
b.Property(x => x.MaterialCode).HasMaxLength(50);
b.Property(x => x.MaterialDesc).HasMaxLength(150);
b.Property(x => x.MaterialGroup).HasMaxLength(50);
b.Property(x => x.MaterialGroupCode).HasMaxLength(50);
b.Property(x=>x.SaleCode).HasMaxLength(50);
b.Property(x => x.SettleCode).HasMaxLength(50);
//创建组合索引
});
}
private static void ConfigureHQMKanban(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options) private static void ConfigureHQMKanban(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options)
{ {

20
src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Repository/SettleAccountJob/Report/WmsOutputSumDapperRepository.cs

@ -237,7 +237,7 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report
" '大众' Client,\n" + " '大众' Client,\n" +
" 'Z11' CODE,\n" + " 'Z11' CODE,\n" +
" '10' SaleCode,\n" + " '10' SaleCode,\n" +
" '10001' ClientCode,\n" + " '100001' ClientCode,\n" +
" BillNum,\n" + " BillNum,\n" +
" MaterialCode,\n" + " MaterialCode,\n" +
" SUM( Qty ) Qty,\n" + " SUM( Qty ) Qty,\n" +
@ -257,7 +257,7 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report
" '大众' Client,\n" + " '大众' Client,\n" +
" 'Z12' CODE,\n" + " 'Z12' CODE,\n" +
" '10' SaleCode,\n" + " '10' SaleCode,\n" +
" '10001' ClientCode,\n" + " '100001' ClientCode,\n" +
" BillNum,\n" + " BillNum,\n" +
" MaterialCode,\n" + " MaterialCode,\n" +
" SUM( Qty ) Qty,\n" + " SUM( Qty ) Qty,\n" +
@ -277,7 +277,7 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report
" '大众' Client,\n" + " '大众' Client,\n" +
" 'Z12' CODE,\n" + " 'Z12' CODE,\n" +
" '10' SaleCode,\n" + " '10' SaleCode,\n" +
" '10001' ClientCode,\n" + " '100001' ClientCode,\n" +
" BillNum,\n" + " BillNum,\n" +
" SapMaterialCode MaterialCode,\n" + " SapMaterialCode MaterialCode,\n" +
" SUM( Qty ) Qty,\n" + " SUM( Qty ) Qty,\n" +
@ -297,7 +297,7 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report
" '大众' Client,\n" + " '大众' Client,\n" +
" 'Z13' CODE,\n" + " 'Z13' CODE,\n" +
" '20' SaleCode,\n" + " '20' SaleCode,\n" +
" '10001' ClientCode,\n" + " '100001' ClientCode,\n" +
" BillNum,\n" + " BillNum,\n" +
" MaterialCode,\n" + " MaterialCode,\n" +
" SUM( Qty ) Qty,\n" + " SUM( Qty ) Qty,\n" +
@ -317,7 +317,7 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report
" '大众' Client,\n" + " '大众' Client,\n" +
" 'Z13' CODE,\n" + " 'Z13' CODE,\n" +
" '20' SaleCode,\n" + " '20' SaleCode,\n" +
" '10001' ClientCode,\n" + " '100001' ClientCode,\n" +
" BillNum,\n" + " BillNum,\n" +
" MaterialCode,\n" + " MaterialCode,\n" +
" SUM( Qty ) Qty,\n" + " SUM( Qty ) Qty,\n" +
@ -474,7 +474,7 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report
" '大众' Client,\n" + " '大众' Client,\n" +
" 'Z11' CODE,\n" + " 'Z11' CODE,\n" +
" '10' SaleCode,\n" + " '10' SaleCode,\n" +
" '10001' ClientCode,\n" + " '100001' ClientCode,\n" +
" BillNum,\n" + " BillNum,\n" +
" MaterialCode,\n" + " MaterialCode,\n" +
" SUM( Qty ) Qty,\n" + " SUM( Qty ) Qty,\n" +
@ -495,7 +495,7 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report
" '大众' Client,\n" + " '大众' Client,\n" +
" 'Z12' CODE,\n" + " 'Z12' CODE,\n" +
" '10' SaleCode,\n" + " '10' SaleCode,\n" +
" '10001' ClientCode,\n" + " '100001' ClientCode,\n" +
" BillNum,\n" + " BillNum,\n" +
" MaterialCode,\n" + " MaterialCode,\n" +
" SUM( Qty ) Qty,\n" + " SUM( Qty ) Qty,\n" +
@ -516,7 +516,7 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report
" '大众' Client,\n" + " '大众' Client,\n" +
" 'Z12' CODE,\n" + " 'Z12' CODE,\n" +
" '10' SaleCode,\n" + " '10' SaleCode,\n" +
" '10001' ClientCode,\n" + " '100001' ClientCode,\n" +
" BillNum,\n" + " BillNum,\n" +
" SapMaterialCode MaterialCode,\n" + " SapMaterialCode MaterialCode,\n" +
" SUM( RealityNumber ) Qty,\n" + " SUM( RealityNumber ) Qty,\n" +
@ -537,7 +537,7 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report
" '大众' Client,\n" + " '大众' Client,\n" +
" 'Z13' CODE,\n" + " 'Z13' CODE,\n" +
" '20' SaleCode,\n" + " '20' SaleCode,\n" +
" '10001' ClientCode,\n" + " '100001' ClientCode,\n" +
" BillNum,\n" + " BillNum,\n" +
" MaterialCode,\n" + " MaterialCode,\n" +
" SUM( RealityNumber ) Qty,\n" + " SUM( RealityNumber ) Qty,\n" +
@ -558,7 +558,7 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report
" '大众' Client,\n" + " '大众' Client,\n" +
" 'Z13' CODE,\n" + " 'Z13' CODE,\n" +
" '20' SaleCode,\n" + " '20' SaleCode,\n" +
" '10001' ClientCode,\n" + " '100001' ClientCode,\n" +
" BillNum,\n" + " BillNum,\n" +
" MaterialCode,\n" + " MaterialCode,\n" +
" SUM( Qty ) Qty,\n" + " SUM( Qty ) Qty,\n" +

Loading…
Cancel
Save