|
@ -14,6 +14,8 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report |
|
|
|
|
|
|
|
|
public class WmsOutputSum |
|
|
public class WmsOutputSum |
|
|
{ |
|
|
{ |
|
|
|
|
|
[ExporterHeader(DisplayName = "行号")] |
|
|
|
|
|
public string 行号 { set; get; } |
|
|
[ExporterHeader(DisplayName = "客户")] |
|
|
[ExporterHeader(DisplayName = "客户")] |
|
|
public string 客户 { set; get; } |
|
|
public string 客户 { set; get; } |
|
|
[ExporterHeader(DisplayName = "出库类型")] |
|
|
[ExporterHeader(DisplayName = "出库类型")] |
|
@ -97,6 +99,7 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report |
|
|
" CODE 结算编码,\n" + |
|
|
" CODE 结算编码,\n" + |
|
|
" SaleCode 销售渠道,\n" + |
|
|
" SaleCode 销售渠道,\n" + |
|
|
" ClientCode 客户代码,\n" + |
|
|
" ClientCode 客户代码,\n" + |
|
|
|
|
|
" LOGN 寄售类别,\n" + |
|
|
" MaterialCode 物料号,\n" + |
|
|
" MaterialCode 物料号,\n" + |
|
|
" MaterialDesc 物料描述,\n" + |
|
|
" MaterialDesc 物料描述,\n" + |
|
|
" BillNum 结算单号,\n" + |
|
|
" BillNum 结算单号,\n" + |
|
@ -128,10 +131,12 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report |
|
|
" EstimateTypeDesc MaterialGroup,\n" + |
|
|
" EstimateTypeDesc MaterialGroup,\n" + |
|
|
" EstimateType,\n" + |
|
|
" EstimateType,\n" + |
|
|
" IsBack,\n" + |
|
|
" IsBack,\n" + |
|
|
" Price \n" + |
|
|
" Price ,\n" + |
|
|
|
|
|
" LOGN\n" + |
|
|
" FROM\n" + |
|
|
" FROM\n" + |
|
|
" (\n" + |
|
|
" (\n" + |
|
|
" SELECT\n" + |
|
|
" SELECT\n" + |
|
|
|
|
|
" '4007' LOGN,\n" + |
|
|
" '大众准时化出库' AS Type,\n" + |
|
|
" '大众准时化出库' AS Type,\n" + |
|
|
" '大众' Client,\n" + |
|
|
" '大众' Client,\n" + |
|
|
" 'Z11' CODE,\n" + |
|
|
" 'Z11' CODE,\n" + |
|
@ -151,6 +156,7 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report |
|
|
" MaterialCode,\n" + |
|
|
" MaterialCode,\n" + |
|
|
" Price UNION ALL\n" + |
|
|
" Price UNION ALL\n" + |
|
|
" SELECT\n" + |
|
|
" SELECT\n" + |
|
|
|
|
|
" '4007' LOGN,\n" + |
|
|
" '大众看板出库' AS Type,\n" + |
|
|
" '大众看板出库' AS Type,\n" + |
|
|
" '大众' Client,\n" + |
|
|
" '大众' Client,\n" + |
|
|
" 'Z12' CODE,\n" + |
|
|
" 'Z12' CODE,\n" + |
|
@ -170,6 +176,7 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report |
|
|
" MaterialCode,\n" + |
|
|
" MaterialCode,\n" + |
|
|
" Price UNION ALL\n" + |
|
|
" Price UNION ALL\n" + |
|
|
" SELECT\n" + |
|
|
" SELECT\n" + |
|
|
|
|
|
" '4007' LOGN,\n" + |
|
|
" '大众无看板出库' AS Type,\n" + |
|
|
" '大众无看板出库' AS Type,\n" + |
|
|
" '大众' Client,\n" + |
|
|
" '大众' Client,\n" + |
|
|
" 'Z12' CODE,\n" + |
|
|
" 'Z12' CODE,\n" + |
|
@ -189,6 +196,7 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report |
|
|
" SapMaterialCode,\n" + |
|
|
" SapMaterialCode,\n" + |
|
|
" Price UNION ALL\n" + |
|
|
" Price UNION ALL\n" + |
|
|
" SELECT\n" + |
|
|
" SELECT\n" + |
|
|
|
|
|
" '4009' LOGN,\n" + |
|
|
" '大众备件汇总出库' AS Type,\n" + |
|
|
" '大众备件汇总出库' AS Type,\n" + |
|
|
" '大众' Client,\n" + |
|
|
" '大众' Client,\n" + |
|
|
" 'Z13' CODE,\n" + |
|
|
" 'Z13' CODE,\n" + |
|
@ -208,6 +216,7 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report |
|
|
" MaterialCode,\n" + |
|
|
" MaterialCode,\n" + |
|
|
" Price UNION ALL\n" + |
|
|
" Price UNION ALL\n" + |
|
|
" SELECT\n" + |
|
|
" SELECT\n" + |
|
|
|
|
|
" '4009' LOGN,\n" + |
|
|
" '大众备件条码出库' AS Type,\n" + |
|
|
" '大众备件条码出库' AS Type,\n" + |
|
|
" '大众' Client,\n" + |
|
|
" '大众' Client,\n" + |
|
|
" 'Z13' CODE,\n" + |
|
|
" 'Z13' CODE,\n" + |
|
@ -227,6 +236,7 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report |
|
|
" MaterialCode,\n" + |
|
|
" MaterialCode,\n" + |
|
|
" Price UNION ALL\n" + |
|
|
" Price UNION ALL\n" + |
|
|
" SELECT\n" + |
|
|
" SELECT\n" + |
|
|
|
|
|
" '4007' LOGN,\n" + |
|
|
" '红旗看板出库' AS Type,\n" + |
|
|
" '红旗看板出库' AS Type,\n" + |
|
|
" '红旗' Client,\n" + |
|
|
" '红旗' Client,\n" + |
|
|
" 'Z34' CODE,\n" + |
|
|
" 'Z34' CODE,\n" + |
|
@ -246,6 +256,7 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report |
|
|
" MaterialCode,\n" + |
|
|
" MaterialCode,\n" + |
|
|
" Price UNION ALL\n" + |
|
|
" Price UNION ALL\n" + |
|
|
" SELECT\n" + |
|
|
" SELECT\n" + |
|
|
|
|
|
" '4007' LOGN,\n" + |
|
|
" '一轿手工出库' AS Type,\n" + |
|
|
" '一轿手工出库' AS Type,\n" + |
|
|
" '一轿' Client,\n" + |
|
|
" '一轿' Client,\n" + |
|
|
" 'Z32' CODE,\n" + |
|
|
" 'Z32' CODE,\n" + |
|
@ -268,6 +279,7 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report |
|
|
" IsBack,\n" + |
|
|
" IsBack,\n" + |
|
|
" Price UNION ALL\n" + |
|
|
" Price UNION ALL\n" + |
|
|
" SELECT\n" + |
|
|
" SELECT\n" + |
|
|
|
|
|
" '4009' LOGN,\n" + |
|
|
" '一轿手工出库(备件)' AS Type,\n" + |
|
|
" '一轿手工出库(备件)' AS Type,\n" + |
|
|
" '一轿' Client,\n" + |
|
|
" '一轿' Client,\n" + |
|
|
" 'Z33' CODE,\n" + |
|
|
" 'Z33' CODE,\n" + |
|
@ -290,6 +302,7 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report |
|
|
" IsBack,\n" + |
|
|
" IsBack,\n" + |
|
|
" Price UNION ALL\n" + |
|
|
" Price UNION ALL\n" + |
|
|
" SELECT\n" + |
|
|
" SELECT\n" + |
|
|
|
|
|
" '4007' LOGN,\n" + |
|
|
" '红旗手工出库' AS Type,\n" + |
|
|
" '红旗手工出库' AS Type,\n" + |
|
|
" '红旗' Client,\n" + |
|
|
" '红旗' Client,\n" + |
|
|
" 'Z34' CODE,\n" + |
|
|
" 'Z34' CODE,\n" + |
|
@ -312,6 +325,7 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report |
|
|
" IsBack,\n" + |
|
|
" IsBack,\n" + |
|
|
" Price UNION ALL\n" + |
|
|
" Price UNION ALL\n" + |
|
|
" SELECT\n" + |
|
|
" SELECT\n" + |
|
|
|
|
|
" '4009' LOGN,\n" + |
|
|
" '红旗手工出库(备件)' AS Type,\n" + |
|
|
" '红旗手工出库(备件)' AS Type,\n" + |
|
|
" '红旗' Client,\n" + |
|
|
" '红旗' Client,\n" + |
|
|
" 'Z35' CODE,\n" + |
|
|
" 'Z35' CODE,\n" + |
|
@ -354,10 +368,12 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report |
|
|
" EstimateTypeDesc MaterialGroup,\n" + |
|
|
" EstimateTypeDesc MaterialGroup,\n" + |
|
|
" EstimateType,\n" + |
|
|
" EstimateType,\n" + |
|
|
" IsBack,\n" + |
|
|
" IsBack,\n" + |
|
|
" Price \n" + |
|
|
" Price ,\n" + |
|
|
|
|
|
" LOGN\n" + |
|
|
" FROM\n" + |
|
|
" FROM\n" + |
|
|
" (\n" + |
|
|
" (\n" + |
|
|
" SELECT\n" + |
|
|
" SELECT\n" + |
|
|
|
|
|
" '4007' LOGN,\n" + |
|
|
" '大众准时化出库' AS Type,\n" + |
|
|
" '大众准时化出库' AS Type,\n" + |
|
|
" '大众' Client,\n" + |
|
|
" '大众' Client,\n" + |
|
|
" 'Z11' CODE,\n" + |
|
|
" 'Z11' CODE,\n" + |
|
@ -378,6 +394,7 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report |
|
|
" MaterialCode,\n" + |
|
|
" MaterialCode,\n" + |
|
|
" Price UNION ALL\n" + |
|
|
" Price UNION ALL\n" + |
|
|
" SELECT\n" + |
|
|
" SELECT\n" + |
|
|
|
|
|
" '4007' LOGN,\n" + |
|
|
" '大众看板出库' AS Type,\n" + |
|
|
" '大众看板出库' AS Type,\n" + |
|
|
" '大众' Client,\n" + |
|
|
" '大众' Client,\n" + |
|
|
" 'Z12' CODE,\n" + |
|
|
" 'Z12' CODE,\n" + |
|
@ -398,6 +415,7 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report |
|
|
" MaterialCode,\n" + |
|
|
" MaterialCode,\n" + |
|
|
" Price UNION ALL\n" + |
|
|
" Price UNION ALL\n" + |
|
|
" SELECT\n" + |
|
|
" SELECT\n" + |
|
|
|
|
|
" '4007' LOGN,\n" + |
|
|
" '大众无看板出库' AS Type,\n" + |
|
|
" '大众无看板出库' AS Type,\n" + |
|
|
" '大众' Client,\n" + |
|
|
" '大众' Client,\n" + |
|
|
" 'Z12' CODE,\n" + |
|
|
" 'Z12' CODE,\n" + |
|
@ -418,6 +436,7 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report |
|
|
" SapMaterialCode,\n" + |
|
|
" SapMaterialCode,\n" + |
|
|
" Price UNION ALL\n" + |
|
|
" Price UNION ALL\n" + |
|
|
" SELECT\n" + |
|
|
" SELECT\n" + |
|
|
|
|
|
" '4009' LOGN,\n" + |
|
|
" '大众备件汇总出库' AS Type,\n" + |
|
|
" '大众备件汇总出库' AS Type,\n" + |
|
|
" '大众' Client,\n" + |
|
|
" '大众' Client,\n" + |
|
|
" 'Z13' CODE,\n" + |
|
|
" 'Z13' CODE,\n" + |
|
@ -438,6 +457,7 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report |
|
|
" MaterialCode,\n" + |
|
|
" MaterialCode,\n" + |
|
|
" Price UNION ALL\n" + |
|
|
" Price UNION ALL\n" + |
|
|
" SELECT\n" + |
|
|
" SELECT\n" + |
|
|
|
|
|
" '4009' LOGN,\n" + |
|
|
" '大众备件条码出库' AS Type,\n" + |
|
|
" '大众备件条码出库' AS Type,\n" + |
|
|
" '大众' Client,\n" + |
|
|
" '大众' Client,\n" + |
|
|
" 'Z13' CODE,\n" + |
|
|
" 'Z13' CODE,\n" + |
|
@ -458,6 +478,7 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report |
|
|
" MaterialCode,\n" + |
|
|
" MaterialCode,\n" + |
|
|
" Price UNION ALL\n" + |
|
|
" Price UNION ALL\n" + |
|
|
" SELECT\n" + |
|
|
" SELECT\n" + |
|
|
|
|
|
" '4007' LOGN,\n" + |
|
|
" '红旗看板出库' AS Type,\n" + |
|
|
" '红旗看板出库' AS Type,\n" + |
|
|
" '红旗' Client,\n" + |
|
|
" '红旗' Client,\n" + |
|
|
" 'Z34' CODE,\n" + |
|
|
" 'Z34' CODE,\n" + |
|
@ -478,6 +499,7 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report |
|
|
" MaterialCode,\n" + |
|
|
" MaterialCode,\n" + |
|
|
" Price UNION ALL\n" + |
|
|
" Price UNION ALL\n" + |
|
|
" SELECT\n" + |
|
|
" SELECT\n" + |
|
|
|
|
|
" '4007' LOGN,\n" + |
|
|
" '一轿手工出库' AS Type,\n" + |
|
|
" '一轿手工出库' AS Type,\n" + |
|
|
" '一轿' Client,\n" + |
|
|
" '一轿' Client,\n" + |
|
|
" 'Z32' CODE,\n" + |
|
|
" 'Z32' CODE,\n" + |
|
@ -501,6 +523,7 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report |
|
|
" IsBack,\n" + |
|
|
" IsBack,\n" + |
|
|
" Price UNION ALL\n" + |
|
|
" Price UNION ALL\n" + |
|
|
" SELECT\n" + |
|
|
" SELECT\n" + |
|
|
|
|
|
" '4009' LOGN,\n" + |
|
|
" '一轿手工出库(备件)' AS Type,\n" + |
|
|
" '一轿手工出库(备件)' AS Type,\n" + |
|
|
" '一轿' Client,\n" + |
|
|
" '一轿' Client,\n" + |
|
|
" 'Z33' CODE,\n" + |
|
|
" 'Z33' CODE,\n" + |
|
@ -524,6 +547,7 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report |
|
|
" IsBack,\n" + |
|
|
" IsBack,\n" + |
|
|
" Price UNION ALL\n" + |
|
|
" Price UNION ALL\n" + |
|
|
" SELECT\n" + |
|
|
" SELECT\n" + |
|
|
|
|
|
" '4007' LOGN,\n" + |
|
|
" '红旗手工出库' AS Type,\n" + |
|
|
" '红旗手工出库' AS Type,\n" + |
|
|
" '红旗' Client,\n" + |
|
|
" '红旗' Client,\n" + |
|
|
" 'Z34' CODE,\n" + |
|
|
" 'Z34' CODE,\n" + |
|
@ -547,6 +571,7 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report |
|
|
" IsBack,\n" + |
|
|
" IsBack,\n" + |
|
|
" Price UNION ALL\n" + |
|
|
" Price UNION ALL\n" + |
|
|
" SELECT\n" + |
|
|
" SELECT\n" + |
|
|
|
|
|
" '4009' LOGN,\n" + |
|
|
" '红旗手工出库(备件)' AS Type,\n" + |
|
|
" '红旗手工出库(备件)' AS Type,\n" + |
|
|
" '红旗' Client,\n" + |
|
|
" '红旗' Client,\n" + |
|
|
" 'Z35' CODE,\n" + |
|
|
" 'Z35' CODE,\n" + |
|
@ -582,6 +607,12 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public virtual List<WmsOutputSum> GetWmsSumReportList(string version,string state) |
|
|
public virtual List<WmsOutputSum> GetWmsSumReportList(string version,string state) |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
@ -739,10 +770,6 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report |
|
|
" ) temp1"; |
|
|
" ) temp1"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_sql = string.Format(_sql, version,state); |
|
|
_sql = string.Format(_sql, version,state); |
|
|
|
|
|
|
|
|
var _query = DbConnection.Query<WmsOutputSum>(_sql,null,null,true,1200,null); |
|
|
var _query = DbConnection.Query<WmsOutputSum>(_sql,null,null,true,1200,null); |
|
|