@ -97,10 +97,9 @@ namespace Win.Sfs.SettleAccount.Reports.ReportServices
string cp7end ,
string cp7end ,
string kenncode ,
string kenncode ,
string chassisNumber ,
string chassisNumber ,
string materialGroup
string materialGroup
)
)
{
{
List < CustomCondition > customConditionList = new List < CustomCondition > ( ) ;
List < CustomCondition > customConditionList = new List < CustomCondition > ( ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "Version" , Value = string . IsNullOrEmpty ( version ) ? string . Empty : version } ) ;
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 = "MaterialCode" , Value = string . IsNullOrEmpty ( materialCode ) ? string . Empty : materialCode } ) ;
@ -136,7 +135,6 @@ namespace Win.Sfs.SettleAccount.Reports.ReportServices
public async Task < string > SettledKanBanWithCode ( string kanBan , string sapMaterialCode , string version , string customerCode , string customerPartCode , string estimateTypeDesc ,
public async Task < string > SettledKanBanWithCode ( string kanBan , string sapMaterialCode , string version , string customerCode , string customerPartCode , string estimateTypeDesc ,
string state , DateTime begin , DateTime end )
string state , DateTime begin , DateTime end )
{
{
List < CustomCondition > customConditionList = new List < CustomCondition > ( ) ;
List < CustomCondition > customConditionList = new List < CustomCondition > ( ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "Version" , Value = version ? ? string . Empty } ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "Version" , Value = version ? ? string . Empty } ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "CustomerCode" , Value = customerCode ? ? string . Empty } ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "CustomerCode" , Value = customerCode ? ? string . Empty } ) ;
@ -366,10 +364,16 @@ namespace Win.Sfs.SettleAccount.Reports.ReportServices
string cp7end ,
string cp7end ,
string kenncode ,
string kenncode ,
string chassisNumber ,
string chassisNumber ,
string materialGroup
List < string > materialGroup
)
)
{
{
string str1 = string . Empty ;
if ( materialGroup ! = null )
{
str1 = string . Join ( ',' , materialGroup . ToArray ( ) ) ;
}
List < CustomCondition > customConditionList = new List < CustomCondition > ( ) ;
List < CustomCondition > customConditionList = new List < CustomCondition > ( ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "Version" , Value = string . IsNullOrEmpty ( version ) ? string . Empty : version } ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "Version" , Value = string . IsNullOrEmpty ( version ) ? string . Empty : version } ) ;
@ -380,7 +384,9 @@ namespace Win.Sfs.SettleAccount.Reports.ReportServices
customConditionList . Add ( new CustomCondition ( ) { Name = "Cp7EndTime" , Value = string . IsNullOrEmpty ( cp7end ) ? string . Empty : cp7end } ) ;
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 = "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 = "ChassisNumber" , Value = string . IsNullOrEmpty ( chassisNumber ) ? string . Empty : chassisNumber } ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "MaterialGroup" , Value = string . IsNullOrEmpty ( materialGroup ) ? string . Empty : materialGroup } ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "MaterialGroup" , Value = string . IsNullOrEmpty ( str1 ) ? string . Empty : str1 } ) ;
var _ taskid = await _ service . ExportEnqueueAsync ( "大众发票与结算核对明细表" , ExportExtentsion . Excel , CurrentUser , typeof ( InvoiceSettledDetailDiffExportService ) , customConditionList , ( rs ) = >
var _ taskid = await _ service . ExportEnqueueAsync ( "大众发票与结算核对明细表" , ExportExtentsion . Excel , CurrentUser , typeof ( InvoiceSettledDetailDiffExportService ) , customConditionList , ( rs ) = >
@ -406,7 +412,9 @@ namespace Win.Sfs.SettleAccount.Reports.ReportServices
string cp7begin ,
string cp7begin ,
string cp7end ,
string cp7end ,
string kenncode ,
string kenncode ,
string chassisNumber
string chassisNumber ,
string materialGroup
)
)
{
{
@ -420,6 +428,10 @@ namespace Win.Sfs.SettleAccount.Reports.ReportServices
customConditionList . Add ( new CustomCondition ( ) { Name = "Cp7EndTime" , Value = string . IsNullOrEmpty ( cp7end ) ? string . Empty : cp7end } ) ;
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 = "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 = "ChassisNumber" , Value = string . IsNullOrEmpty ( chassisNumber ) ? string . Empty : chassisNumber } ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "Mater" , 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 ( UnInvoiceSettledDetailDiffExportService ) , customConditionList , ( rs ) = >
var _ taskid = await _ service . ExportEnqueueAsync ( "大众结算未发运核对明细表" , ExportExtentsion . Excel , CurrentUser , typeof ( UnInvoiceSettledDetailDiffExportService ) , customConditionList , ( rs ) = >
{
{
} ) ;
} ) ;
@ -458,32 +470,27 @@ namespace Win.Sfs.SettleAccount.Reports.ReportServices
[Route("UnsettledDetailReportService-Make")]
[Route("UnsettledDetailReportService-Make")]
[DisableRequestSizeLimit]
[DisableRequestSizeLimit]
public async Task < string > UnsettledDetailReportServiceMake ( string version , string customerCode , string materialGroup , string materialCode , string begin , string end , string sapCode )
public async Task < string > UnsettledDetailReportServiceMake (
string version ,
string materialCode ,
string begin ,
string end ,
string kenncode ,
string chassisNumber ,
string materialGroup
)
{
{
List < CustomCondition > customConditionList = new List < CustomCondition > ( ) ;
List < CustomCondition > customConditionList = new List < CustomCondition > ( ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "Version" , Value = ! string . IsNullOrEmpty ( version ) ? version : string . Empty } ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "Version" , Value = ! string . IsNullOrEmpty ( version ) ? version : string . Empty } ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "CustomerCode" , Value = ! string . IsNullOrEmpty ( customerCode ) ? version : string . Empty } ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "CustomerCode" , Value = string . Empty } ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "MaterialCode" , Value = ! string . IsNullOrEmpty ( materialCode ) ? materialCode : string . Empty } ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "MaterialCode" , Value = ! string . IsNullOrEmpty ( materialCode ) ? materialCode : string . Empty } ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "MaterialGroup" , Value = ! string . IsNullOrEmpty ( materialGroup ) ? materialGroup : string . Empty } ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "MaterialGroup" , Value = ! string . IsNullOrEmpty ( materialGroup ) ? materialGroup : string . Empty } ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "SapMaterialCode" , Value = ! string . IsNullOrEmpty ( sapCode ) ? sapCode : string . Empty } ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "SapMaterialCode" , Value = string . Empty } ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "MaterialCode" , Value = ! string . IsNullOrEmpty ( materialCode ) ? materialCode : string . Empty } ) ;
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 = "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 = "End" , Value = ! string . IsNullOrEmpty ( end ) ? string . Empty : end } ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "MaterialCode" , Value = ! string . IsNullOrEmpty ( end ) ? string . Empty : end } ) ;
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 _first = exportName.FirstOrDefault();
//var version = p_list.Where(p => p.Name == "Version").FirstOrDefault().Value;
//var customerCode = p_list.Where(p => p.Name == "CustomerCode").FirstOrDefault().Value;
//var materailCode = p_list.Where(p => p.Name == "MaterialCode").FirstOrDefault().Value;
//var materialGroup = p_list.Where(p => p.Name == "MaterialGroup").FirstOrDefault().Value;
//var sapcode = p_list.Where(p => p.Name == "SapMaterialCode").FirstOrDefault().Value;
//var begin = p_list.Where(p => p.Name == "Begin").FirstOrDefault().Value;
//var end = p_list.Where(p => p.Name == "End").FirstOrDefault().Value;
var _ taskid = await _ service . ExportEnqueueAsync ( "大众准时化未结明细表" , ExportExtentsion . Excel , CurrentUser , typeof ( UnsettledDetailReportService ) , customConditionList , ( rs ) = >
var _ taskid = await _ service . ExportEnqueueAsync ( "大众准时化未结明细表" , ExportExtentsion . Excel , CurrentUser , typeof ( UnsettledDetailReportService ) , customConditionList , ( rs ) = >
{
{
@ -512,7 +519,19 @@ namespace Win.Sfs.SettleAccount.Reports.ReportServices
[Route("UnSettleDiffExport-Make")]
[Route("UnSettleDiffExport-Make")]
[DisableRequestSizeLimit]
[DisableRequestSizeLimit]
public async Task < string > UnSettleDiffExportServiceMake ( string version , string type , string year , string materialCode , string sapMaterialCode , string begin , string end )
public async Task < string > UnSettleDiffExportServiceMake (
string version ,
string materialCode ,
string begin ,
string end ,
string kenncode ,
string chassisNumber ,
string materialGroup ,
string type
)
{
{
List < CustomCondition > customConditionList = new List < CustomCondition > ( ) ;
List < CustomCondition > customConditionList = new List < CustomCondition > ( ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "Version" , Value = version } ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "Version" , Value = version } ) ;
@ -520,11 +539,15 @@ namespace Win.Sfs.SettleAccount.Reports.ReportServices
customConditionList . Add ( new CustomCondition ( ) { Name = "BeginTime" , Value = begin } ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "BeginTime" , Value = begin } ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "EndTime" , Value = end } ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "EndTime" , Value = end } ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "Type" , Value = type } ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "Type" , Value = type } ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "Year" , Value = year } ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "Year" , Value = string . Empty } ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "MaterialCode" , Value = materialCode } ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "MaterialCode" , Value = materialCode } ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "SapMaterialCode" , Value = sapMaterialCode } ) ;
customConditionList . Add ( new CustomCondition ( ) { Name = "SapMaterialCode" , Value = string . Empty } ) ;
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 materialGroup = p_list.Where(p => p.Name == "MaterialGroup").FirstOrDefault().Value;
//var type = p_list.Where(p => p.Name == "Type").FirstOrDefault().Value;
//var type = p_list.Where(p => p.Name == "Type").FirstOrDefault().Value;
//var year = p_list.Where(p => p.Name == "Year").FirstOrDefault().Value;
//var year = p_list.Where(p => p.Name == "Year").FirstOrDefault().Value;
//var materialCode = p_list.Where(p => p.Name == "MaterialCode").FirstOrDefault().Value;
//var materialCode = p_list.Where(p => p.Name == "MaterialCode").FirstOrDefault().Value;