Browse Source

更新版本

FoShanPG
Administrator 3 years ago
parent
commit
f7078cc9ea
  1. BIN
      .vs/Win.Sfs.SmartSettlementSystem.PG/v16/.suo
  2. 21
      src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Repository/SettleAccountJob/Report/HQHSettledDetailDapperRepository.cs
  3. 1
      src/Modules/SettleAccount/src/SettleAccount.Job/Services/Report/HQHSettledDetailDiffExportService.cs

BIN
.vs/Win.Sfs.SmartSettlementSystem.PG/v16/.suo

Binary file not shown.

21
src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Repository/SettleAccountJob/Report/HQHSettledDetailDapperRepository.cs

@ -62,7 +62,7 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report
//// condition += string.Format(" B.chassisNumber='{0}' ", materialGroup); //// condition += string.Format(" B.chassisNumber='{0}' ", materialGroup);
////} ////}
string str = "SELECT\n" + string str = "SELECT\n" +
" temp1.交货日期,\n" + " Convert(varchar(10),temp1.交货日期,120) 交货日期,\n" +
" isnull( temp1.手工或自动, '' ) 手工或自动,\n" + " isnull( temp1.手工或自动, '' ) 手工或自动,\n" +
" isnull( temp1.交货单号, '' ) 交货单号,\n" + " isnull( temp1.交货单号, '' ) 交货单号,\n" +
" temp1.收货仓库,\n" + " temp1.收货仓库,\n" +
@ -79,6 +79,9 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report
" temp1.结算数量,\n" + " temp1.结算数量,\n" +
" temp1.结算单价,\n" + " temp1.结算单价,\n" +
" temp1.结算金额,\n" + " temp1.结算金额,\n" +
" TEMP1.工厂,\n" +
" isnull( TEMP2.Price, 0 ) AS 发货定价,\n" + " isnull( TEMP2.Price, 0 ) AS 发货定价,\n" +
" isnull( temp1.发货数量, 0 ) * isnull( TEMP2.Price, 0 ) AS 发货总金额,\n" + " isnull( temp1.发货数量, 0 ) * isnull( TEMP2.Price, 0 ) AS 发货总金额,\n" +
" 0 AS 数量差异,\n" + " 0 AS 数量差异,\n" +
@ -103,7 +106,9 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report
" isnull( a.Qty, 0 ) AS 结算数量,\n" + " isnull( a.Qty, 0 ) AS 结算数量,\n" +
" isnull( a.Price, 0 ) AS 结算单价,\n" + " isnull( a.Price, 0 ) AS 结算单价,\n" +
" isnull( a.Amt, 0 ) AS 结算金额 ,\n" + " isnull( a.Amt, 0 ) AS 结算金额 ,\n" +
" C.EstimateTypeDesc AS 物料组 \n" + " C.EstimateTypeDesc AS 物料组, \n" +
" A.Factory 工厂 \n"+
" FROM\n" + " FROM\n" +
" Set_HQ_H_Platform AS a\n" + " Set_HQ_H_Platform AS a\n" +
" LEFT OUTER JOIN Set_HQ_H_Kanban AS b ON a.HQHKanBan = b.Kanban \n" + " LEFT OUTER JOIN Set_HQ_H_Kanban AS b ON a.HQHKanBan = b.Kanban \n" +
@ -260,15 +265,19 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report
{ {
[ExporterHeader(DisplayName = "交货单号")] [ExporterHeader(DisplayName = "交货单号")]
public string { set; get; } public string { set; get; }
[ExporterHeader(DisplayName = "交货时间")] [ExporterHeader(DisplayName = "交货日期")]
public string { set; get; } public string { set; get; }
[ExporterHeader(DisplayName = "手工或自动")] [ExporterHeader(DisplayName = "手工或自动")]
public string { set; get; } public string { set; get; }
[ExporterHeader(DisplayName = "工厂")]
public string { set; get; }
[ExporterHeader(DisplayName = "收货仓库")] [ExporterHeader(DisplayName = "收货仓库")]
public string { set; get; } public string { set; get; }
[ExporterHeader(DisplayName = "收货仓库描述")] [ExporterHeader(DisplayName = "收货仓库描述")]
public string { set; get; } public string { set; get; }
[ExporterHeader(DisplayName = "订货看板编号")] [ExporterHeader(DisplayName = "看板编号")]
public string { set; get; } public string { set; get; }
[ExporterHeader(DisplayName = "订货零件号")] [ExporterHeader(DisplayName = "订货零件号")]
public string { set; get; } public string { set; get; }
@ -284,7 +293,7 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report
public decimal { set; get; } public decimal { set; get; }
[ExporterHeader(DisplayName = "发货状态")] [ExporterHeader(DisplayName = "发货状态")]
public string { set; get; } public string { set; get; }
[ExporterHeader(DisplayName = "结算验收单号")] [ExporterHeader(DisplayName = "验收单号")]
public string { set; get; } public string { set; get; }
[ExporterHeader(DisplayName = "结算数量")] [ExporterHeader(DisplayName = "结算数量")]
public decimal { set; get; } public decimal { set; get; }

1
src/Modules/SettleAccount/src/SettleAccount.Job/Services/Report/HQHSettledDetailDiffExportService.cs

@ -109,6 +109,7 @@ namespace SettleAccount.Job.Services.Report
_ls = _ls.Where(p => _groupList.Contains(p.Sap编码)).ToList(); _ls = _ls.Where(p => _groupList.Contains(p.Sap编码)).ToList();
} }
} }
_ls=_ls.OrderBy(p => p.).ToList();
_outputService.Export<HQHSettledDetailDiff>(id, _filename, _ls); _outputService.Export<HQHSettledDetailDiff>(id, _filename, _ls);
return id.ToString(); return id.ToString();
} }

Loading…
Cancel
Save