Browse Source

备件调整

FoShanPG
44673626 3 years ago
parent
commit
1d1ddd36cf
  1. 6
      src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WMSSharePart90AppService.cs
  2. 148
      src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/WMS/TaskList.cs
  3. 103
      src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Repository/SettleAccountJob/Report/SettleSparePartDapperReportRepository.cs

6
src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WMSSharePart90AppService.cs

@ -237,14 +237,14 @@ namespace Win.Sfs.SettleAccount.Entities.WMS
0,
!string.IsNullOrEmpty(p.Extend1) ? p.Extend1 : string.Empty,
string.Empty,
p.Version,
p.Version,
p.MaterialCode,
_billNum,
GuidGenerator.Create(),
string.Empty,
p.Qty,
p.StockQty,
p.Qty
p.StockQty,
p.Qty
));
_lst.AddRange(_list.ToArray());
}

148
src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/WMS/TaskList.cs

@ -1494,7 +1494,7 @@ namespace Win.Sfs.SettleAccount.Entities.WMS
[ImporterHeader(Name = "开票数量")]
public decimal Qty { set; get; }
[ImporterHeader(Name = "数量", IsIgnore = true)]
[ImporterHeader(Name = "单据", IsIgnore = true)]
public string BillNum { set; get; }
@ -1530,6 +1530,146 @@ namespace Win.Sfs.SettleAccount.Entities.WMS
}
//public class WmsSharePart90OutPutDetial : FullAuditedAggregateRootBase<Guid>
//{
// public WmsSharePart90OutPutDetial()
// {
// }
// public WmsSharePart90OutPutDetial(Guid id, DateTime spareDate, string orderGoodsData, string wmsBillNum, string orderBillNum,
// string materialCode, string materialDesc, string purchaseOrderNoText, string extend1, string extend2, string extend3,
// decimal billNum, decimal qty, decimal diffQty, decimal invoicePrice, decimal amountNoTax, decimal price, decimal diffPrice, decimal diffAmountNoTax,string billNO,
// Guid taskId, string remark, decimal stockQty, decimal outputQty, string outPut, string inPut,
// int state)
// {
// Id = id;
// SpareDate = spareDate;
// OrderGoodsData = orderGoodsData;
// WmsBillNum = wmsBillNum;
// OrderBillNum = orderBillNum;
// MaterialCode = materialCode;
// MaterialDesc = materialDesc;
// PurchaseOrderNoText = purchaseOrderNoText;
// Extend1 = extend1;
// Extend2 = extend2;
// Version = extend3;
// BillNum = billNum;
// Qty = qty;
// DiffQty = diffQty;
// InvoicePrice = invoicePrice;
// AmountNoTax = amountNoTax;
// Price = price;
// DiffPrice = diffPrice;
// DiffAmountNoTax = diffAmountNoTax;
// BillNO = billNO;
// TaskId = taskId;
// Remark = remark;
// StockQty = stockQty;
// OutPutQty = outputQty;
// OutPut = outPut;
// InPut = inPut;
// State = state;
// }
// public void SetId(Guid id)
// {
// Id = id;
// }
// // 期间 交货单号 发货日期 采购订单号 SAP编码 物料代码 物料描述 物料组 开票单价 数量差异 发货数量 开票数量 定价 单价差异
// [ImporterHeader(Name = "寄销库数量", IsIgnore = true)]
// public decimal StockQty { set; get; }
// [ImporterHeader(Name = "出库数量", IsIgnore = true)]
// public decimal OutPutQty { set; get; }
// [ImporterHeader(Name = "交货日期", Format ="yyyy-MM-dd")]
// public DateTime SpareDate { get; set; }
// [ImporterHeader(Name = "交货单号")]
// public string WmsBillNum { set; get; }
// [ImporterHeader(Name = "订单日期")]
// public string OrderGoodsData { set; get; }
// [ImporterHeader(Name = "采购订单号")]
// //KENN号
// public string OrderBillNum { set; get; }
// [ImporterHeader(Name = "SAP编码")]
// public string MaterialCode { set; get; }
// [ImporterHeader(Name = "物料代码")]
// public string Extend1 { set; get; }
// [ImporterHeader(Name = "物料描述")]
// public string MaterialDesc { set; get; }
// [ImporterHeader(Name = "采购订单文本")]
// public string PurchaseOrderNoText { get; set; }
// [ImporterHeader(Name = "发货数量", IsIgnore = true)]
// public decimal BillNum { set; get; }
// [ImporterHeader(Name = "开票数量")]
// public decimal Qty { set; get; }
// [ImporterHeader(Name = "发货与开票差异")]
// public decimal DiffQty { set; get; }
// [ImporterHeader(Name = "开票单价")]
// public decimal InvoicePrice { get; set; }
// [ImporterHeader(Name = "开票金额")]
// public decimal AmountNoTax { get; set; }
// [ImporterHeader(Name = "定价")]
// public decimal Price { get; set; }
// [ImporterHeader(Name = "单价差异")]
// public decimal DiffPrice { get; set; }
// [ImporterHeader(Name = "差异总金额")]
// public decimal DiffAmountNoTax { get; set; }
// [ImporterHeader(Name = "单据", IsIgnore = true)]
// public string BillNO { set; get; }
// [ImporterHeader(Name = "出库库位", IsIgnore = true)]
// //出库库位
// public string OutPut { set; get; }
// [ImporterHeader(Name = "入库库位", IsIgnore = true)]
// //入库库位
// public string InPut { set; get; }
// [ImporterHeader(Name = "状态", IsIgnore = true)]
// public int State { get; set; }
// /// <summary>
// /// 扩展字段2
// /// </summary>
// [ImporterHeader(Name = "扩展字段2", IsIgnore = true)]
// public string Extend2 { set; get; }
// /// <summary>
// /// 扩展字段3
// /// </summary>
// [ImporterHeader(Name = "版本号", IsIgnore = true)]
// public string Version { set; get; }
// [ImporterHeader(Name = "任务代码", IsIgnore = true)]
// public Guid TaskId { set; get; }
//}
public class WmsSharePart90OutPutDetial : FullAuditedAggregateRootBase<Guid>
{
public WmsSharePart90OutPutDetial()
@ -1588,7 +1728,7 @@ namespace Win.Sfs.SettleAccount.Entities.WMS
[ImporterHeader(Name = "物料描述")]
//物料描述
public string MaterialDesc { set; get; }
[ImporterHeader(Name = "物料组(车型)")]
[ImporterHeader(Name = "物料组(车型)", IsIgnore = true)]
//物料组(车型)
public string MaterialGroup { set; get; }
[ImporterHeader(Name = "出库库位", IsIgnore = true)]
@ -1614,10 +1754,11 @@ namespace Win.Sfs.SettleAccount.Entities.WMS
/// </summary>
[ImporterHeader(Name = "版本号", IsIgnore = true)]
public string Version { set; get; }
[ImporterHeader(Name = "开票数量")]
public decimal Qty { set; get; }
[ImporterHeader(Name = "数量", IsIgnore = true)]
[ImporterHeader(Name = "单据", IsIgnore = true)]
public string BillNum { set; get; }
@ -1637,4 +1778,5 @@ namespace Win.Sfs.SettleAccount.Entities.WMS
}

103
src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Repository/SettleAccountJob/Report/SettleSparePartDapperReportRepository.cs

@ -304,91 +304,44 @@ public class SparePartSumQtyDiff
//[ExcelExporter(Name = "未结明细", AutoFitAllColumn = true, MaxRowNumberOnASheet = 500000)]
public class SettleSparePartExport
{
[ExporterHeader(DisplayName = "期间 ")]
public string {set;get;}
[ExporterHeader(DisplayName = "交货日期 ")]
public string { set; get; }
[ExporterHeader(DisplayName = "交货单号")]
public string {set;get;}
[ExporterHeader(DisplayName = "发货日期")]
public string {set;get;}
public string { set; get; }
[ExporterHeader(DisplayName = "订单日期")]
public string { set; get; }
[ExporterHeader(DisplayName = "采购订单号")]
public string {set;get;}
public string { set; get; }
[ExporterHeader(DisplayName = "SAP编码")]
public string SAP编码 {set;get;}
public string SAP编码 { set; get; }
[ExporterHeader(DisplayName = "物料代码")]
public string {set;get;}
public string { set; get; }
[ExporterHeader(DisplayName = "物料描述")]
public string {set;get;}
[ExporterHeader(DisplayName = "物料组")]
public string {set;get;}
[ExporterHeader(DisplayName = "开票单价")]
public decimal {set;get;}
[ExporterHeader(DisplayName = "数量差异")]
public decimal {set;get;}
public string { set; get; }
[ExporterHeader(DisplayName = "采购订单文本")]
public string { set; get; }
[ExporterHeader(DisplayName = "发货数量")]
public decimal {set;get;}
public decimal { set; get; }
[ExporterHeader(DisplayName = "开票数量")]
public decimal {set;get;}
public decimal { set; get; }
[ExporterHeader(DisplayName = "发货与开票差异")]
public decimal { set; get; }
[ExporterHeader(DisplayName = "开票单价")]
public decimal { set; get; }
[ExporterHeader(DisplayName = "开票金额")]
public decimal { set; get; }
[ExporterHeader(DisplayName = "定价")]
public decimal {set;get;}
public decimal { set; get; }
[ExporterHeader(DisplayName = "单价差异")]
public decimal { set; get;}
//[ExporterHeader(DisplayName = "行号")]
//public string LineNumber { set; get; }
//[ExporterHeader(DisplayName = "交货日期")]
//public string WMSDeliveryDate { set; get; }
//[ExporterHeader(DisplayName = "交货单号")]
//public string DeliveryOrderNo { set; get; }
//[ExporterHeader(DisplayName = "订单日期")]
//public DateTime OrderDate{ set; get; }
//[ExporterHeader(DisplayName = "采购订单号")]
//public string PurchaseOrderNo { set; get; }
//[ExporterHeader(DisplayName = "SAP编码")]
//public string SAPCode { set; get; }
//[ExporterHeader(DisplayName = "物料代码")]
//public string MaterialCode { set; get; }
//[ExporterHeader(DisplayName = "物料描述")]
//public string MaterialDesc { set; get; }
//[ExporterHeader(DisplayName = "采购订单文本")]
//public string PurchaseOrderNoText { set; get; }
//[ExporterHeader(DisplayName = "发货数量")]
//public decimal ReceiptQty { set; get; }
//[ExporterHeader(DisplayName = "开票数量")]
//public decimal InvoicedQty { set; get; }
//[ExporterHeader(DisplayName = "发货与开票差异")]
//public decimal SettleInvoiceDiffQty { set; get; }
//[ExporterHeader(DisplayName = "开票单价")]
//public decimal InvoicePrice { set; get; }
//[ExporterHeader(DisplayName = "开票金额")]
//public decimal InvoiceMoney { set; get; }
//[ExporterHeader(DisplayName = "定价")]
//public decimal Price { set; get; }
//[ExporterHeader(DisplayName = "单价差异")]
//public decimal InvoiceDiffPrice { set; get; }
public decimal { set; get; }
//[ExporterHeader(DisplayName = "总金额差异")]
//public decimal SumDiffMoney { set; get; }
[ExporterHeader(DisplayName = "差异总金额")]
public decimal { set; get; }
}
}

Loading…
Cancel
Save