@ -96,22 +96,22 @@ namespace Win.Sfs.SettleAccount.Reports.ReportServices
string cp7begin ,
string cp7end ,
string kenncode ,
string chassisNumber
string chassisNumber ,
string materialGroup
)
{
List < CustomCondition > customConditionList = new List < CustomCondition > ( ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "Version" , Value = string . IsNullOrEmpty ( version ) ? string . Empty : version } ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "MaterialCode" , Value = string . IsNullOrEmpty ( materialCode ) ? string . Empty : materialCode } ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "BeginTime" , Value = string . IsNullOrEmpty ( begin ) ? string . Empty : materialCode } ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "EndTime" , Value = string . IsNullOrEmpty ( end ) ? string . Empty : materialCode } ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "BeginTime" , Value = string . IsNullOrEmpty ( begin ) ? string . Empty : begin } ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "EndTime" , Value = string . IsNullOrEmpty ( end ) ? string . Empty : end } ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "Cp7BeginTime" , Value = string . IsNullOrEmpty ( cp7begin ) ? string . Empty : cp7begin } ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "Cp7EndTime" , Value = string . IsNullOrEmpty ( cp7end ) ? string . Empty : cp7end } ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "KennCode" , Value = string . IsNullOrEmpty ( kenncode ) ? string . Empty : kenncode } ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "ChassisNumber" , Value = string . IsNullOrEmpty ( chassisNumber ) ? string . Empty : chassisNumber } ) ;
var _ taskid = await _ service . ExportEnqueueAsync ( "大众准时化结算门板价格差异比对报表" , ExportExtentsion . Excel , CurrentUser , typeof ( SettleDoorPanelExportService ) , customConditionList , ( rs ) = >
customConditionList . Add ( new CustomCondition ( ) { Name = "MaterialGroup" , Value = string . IsNullOrEmpty ( materialGroup ) ? string . Empty : materialGroup } ) ;
var _ taskid = await _ service . ExportEnqueueAsync ( "大众准时化结算门板价格差异比对报表" , ExportExtentsion . Excel , CurrentUser , typeof ( SettleDoorPanelExportService ) , customConditionList , ( rs ) = >
{
} ) ;
return _ taskid ;
@ -365,7 +365,8 @@ namespace Win.Sfs.SettleAccount.Reports.ReportServices
string cp7begin ,
string cp7end ,
string kenncode ,
string chassisNumber
string chassisNumber ,
string materialGroup
)
{
@ -373,12 +374,15 @@ namespace Win.Sfs.SettleAccount.Reports.ReportServices
List < CustomCondition > customConditionList = new List < CustomCondition > ( ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "Version" , Value = string . IsNullOrEmpty ( version ) ? string . Empty : version } ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "MaterialCode" , Value = string . IsNullOrEmpty ( materialCode ) ? string . Empty : materialCode } ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "BeginTime" , Value = string . IsNullOrEmpty ( begin ) ? string . Empty : materialCode } ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "EndTime" , Value = string . IsNullOrEmpty ( end ) ? string . Empty : materialCode } ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "BeginTime" , Value = string . IsNullOrEmpty ( begin ) ? string . Empty : begin } ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "EndTime" , Value = string . IsNullOrEmpty ( end ) ? string . Empty : end } ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "Cp7BeginTime" , Value = string . IsNullOrEmpty ( cp7begin ) ? string . Empty : cp7begin } ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "Cp7EndTime" , Value = string . IsNullOrEmpty ( cp7end ) ? string . Empty : cp7end } ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "KennCode" , Value = string . IsNullOrEmpty ( kenncode ) ? string . Empty : kenncode } ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "ChassisNumber" , Value = string . IsNullOrEmpty ( chassisNumber ) ? string . Empty : chassisNumber } ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "MaterialGroup" , Value = string . IsNullOrEmpty ( materialGroup ) ? string . Empty : materialGroup } ) ;
var _ taskid = await _ service . ExportEnqueueAsync ( "大众发票与结算核对明细表" , ExportExtentsion . Excel , CurrentUser , typeof ( InvoiceSettledDetailDiffExportService ) , customConditionList , ( rs ) = >
{
} ) ;
@ -386,7 +390,7 @@ namespace Win.Sfs.SettleAccount.Reports.ReportServices
}
/// <summary>
/// 2.大众结算未发运核对明细 表
///3.大众准时化结算数量差异比对 表
/// </summary>
/// <param name="files">上传的文件(前端已经限制只能上传一个附件)</param>
/// <returns></returns>
@ -429,22 +433,21 @@ namespace Win.Sfs.SettleAccount.Reports.ReportServices
/// </summary>
/// <param name="files">上传的文件(前端已经限制只能上传一个附件)</param>
/// <returns></returns>
[HttpGet]
[Route("SettleFisDiffExport-Make")]
[DisableRequestSizeLimit]
public async Task < string > SettleFisDiffExportMake ( string version , string materialCode , string begin , string end )
{
List < CustomCondition > customConditionList = new List < CustomCondition > ( ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "Version" , Value = version } ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "MaterialCode" , Value = materialCode } ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "BeginTime" , Value = begin } ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "EndTime" , Value = end } ) ;
var _ taskid = await _ service . ExportEnqueueAsync ( "大众准时化结算数量差异比对表" , ExportExtentsion . Excel , CurrentUser , typeof ( SettleFisDiffExportService ) , customConditionList , ( rs ) = >
{
} ) ;
return _ taskid ;
}
//[HttpGet]
//[Route("SettleFisDiffExport-Make")]
//[DisableRequestSizeLimit]
//public async Task<string> SettleFisDiffExportMake( string version, string materialCode, string begin, string end)
//{
// List<CustomCondition> customConditionList = new List<CustomCondition>();
// customConditionList.Add(new CustomCondition() { Name = "Version", Value = version });
// customConditionList.Add(new CustomCondition() { Name = "MaterialCode", Value = materialCode});
// customConditionList.Add(new CustomCondition() { Name = "BeginTime", Value = begin });
// customConditionList.Add(new CustomCondition() { Name = "EndTime", Value = end });
// var _taskid = await _service.ExportEnqueueAsync("大众准时化结算数量差异比对表", ExportExtentsion.Excel, CurrentUser, typeof(SettleFisDiffExportService), customConditionList, (rs) =>
// {
// });
// return _taskid;
//}
/// <summary>
/// 7.大众准时化未结明细表(包含漏结,漏结要有标识)
@ -466,7 +469,7 @@ namespace Win.Sfs.SettleAccount.Reports.ReportServices
customConditionList . Add ( new CustomCondition ( ) { Name = "MaterialCode" , Value = ! string . IsNullOrEmpty ( materialCode ) ? materialCode : string . Empty } ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "Begin" , Value = ! string . IsNullOrEmpty ( begin ) ? string . Empty : begin } ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "End" , Value = ! string . IsNullOrEmpty ( end ) ? string . Empty : end } ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "MaterialCode" , Value = ! string . IsNullOrEmpty ( end ) ? string . Empty : end } ) ;
//var _first = exportName.FirstOrDefault();
@ -570,37 +573,37 @@ namespace Win.Sfs.SettleAccount.Reports.ReportServices
}
/// <summary>
/// 结算总成和ERP总成价格对比
/// </summary>
/// <param name="files">上传的文件(前端已经限制只能上传一个附件)</param>
/// <returns></returns>
[HttpGet]
[Route("SecMatchBaseMake-Make")]
[DisableRequestSizeLimit]
public async Task < string > SecMatchBaseMake ( string version )
{
if ( ! _ relationshipRepository . Any ( p = > p . Version = = version ) )
{
throw new BusinessException ( "8989" , string . Format ( "不存总成与结算件零件关系{0}期间" , version ) ) ;
}
//if (!_settlementPartVersionrepository.Any(p => p.Version == version && p.CustomerCode == customerCode))
//{
// throw new BusinessException("8989", string.Format("不存结算包价格{0}期间", version));
//}
List < CustomCondition > customConditionList = new List < CustomCondition > ( ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "ProjectName" , Value = "二配当月结算表" } ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "Version" , Value = version ? ? string . Empty } ) ;
//customConditionList.Add(new CustomCondition() { Name = "CustomerCode", Value = customerCode });
var _ taskid = await _ service . ExportEnqueueAsync ( "二配当月结算表" , ExportExtentsion . Excel , CurrentUser , typeof ( SecMatchBaseExportService ) , customConditionList , ( rs ) = >
{
} ) ;
return _ taskid ;
}
///// <summary>
///// 结算总成和ERP总成价格对比
///// </summary>
///// <param name="files">上传的文件(前端已经限制只能上传一个附件)</param>
///// <returns></returns>
//[HttpGet]
//[Route("SecMatchBaseMake-Make")]
//[DisableRequestSizeLimit]
//public async Task<string> SecMatchBaseMake(string version)
//{
// if (!_relationshipRepository.Any(p => p.Version == version ))
// {
// throw new BusinessException("8989", string.Format( "不存总成与结算件零件关系{0}期间", version));
// }
// //if (!_settlementPartVersionrepository.Any(p => p.Version == version && p.CustomerCode == customerCode))
// //{
// // throw new BusinessException("8989", string.Format("不存结算包价格{0}期间", version));
// //}
// List<CustomCondition> customConditionList = new List<CustomCondition>();
// customConditionList.Add(new CustomCondition() { Name = "ProjectName", Value = "二配当月结算表" });
// customConditionList.Add(new CustomCondition() { Name = "Version", Value = version ?? string.Empty });
// //customConditionList.Add(new CustomCondition() { Name = "CustomerCode", Value = customerCode });
// var _taskid = await _service.ExportEnqueueAsync("二配当月结算表", ExportExtentsion.Excel, CurrentUser, typeof(SecMatchBaseExportService), customConditionList, (rs) =>
// {
// });
// return _taskid;
//}