|
@ -1,4 +1,4 @@ |
|
|
using Magicodes.ExporterAndImporter.Excel; |
|
|
using Magicodes.ExporterAndImporter.Excel; |
|
|
using Microsoft.AspNetCore.Authorization; |
|
|
using Microsoft.AspNetCore.Authorization; |
|
|
|
|
|
|
|
|
using Microsoft.AspNetCore.Http; |
|
|
using Microsoft.AspNetCore.Http; |
|
@ -73,259 +73,259 @@ namespace Win.Sfs.SettleAccount.Reports.ReportServices |
|
|
_invoiceVersionRepository = invoiceVersionRepository; |
|
|
_invoiceVersionRepository = invoiceVersionRepository; |
|
|
_fisVersionrepository = fisVersionrepository; |
|
|
_fisVersionrepository = fisVersionrepository; |
|
|
_itemInvoicePriceVersionrepository = itemInvoicePriceVersionrepository; |
|
|
_itemInvoicePriceVersionrepository = itemInvoicePriceVersionrepository; |
|
|
|
|
|
|
|
|
_service = service; |
|
|
_service = service; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
#region 派格大众看板-备件结算报表
|
|
|
//#region 派格大众看板-备件结算报表
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
///// <summary>
|
|
|
/// 大众准时化结算门板价格差异比对报表
|
|
|
///// 大众准时化结算门板价格差异比对报表
|
|
|
/// </summary>
|
|
|
///// </summary>
|
|
|
/// <param name="materialCode">客户物料号</param>
|
|
|
///// <param name="materialCode">客户物料号</param>
|
|
|
/// <param name="version">版本</param>
|
|
|
///// <param name="version">版本</param>
|
|
|
/// <param name="customerCode"></param>
|
|
|
///// <param name="customerCode"></param>
|
|
|
/// <param name="sapCode">厂内物料号</param>
|
|
|
///// <param name="sapCode">厂内物料号</param>
|
|
|
/// <param name="estimateTypeDesc">物料组</param>
|
|
|
///// <param name="estimateTypeDesc">物料组</param>
|
|
|
/// <returns></returns>
|
|
|
///// <returns></returns>
|
|
|
[HttpPost] |
|
|
//[HttpPost]
|
|
|
[Route("SettleDoorPanel")] |
|
|
//[Route("SettleDoorPanel")]
|
|
|
[DisableRequestSizeLimit] |
|
|
//[DisableRequestSizeLimit]
|
|
|
|
|
|
|
|
|
public async Task<string> SettleDoorPanel( |
|
|
|
|
|
BaseRequestDto input |
|
|
|
|
|
) |
|
|
|
|
|
{ |
|
|
|
|
|
List<CustomCondition> customConditionList = new List<CustomCondition>(); |
|
|
|
|
|
customConditionList.Add(new CustomCondition() { Name = "Version", Value = string.IsNullOrEmpty(input.Version) ? string.Empty : input.Version }); |
|
|
|
|
|
customConditionList.Add(new CustomCondition() { Name = "MaterialCode", Value = string.IsNullOrEmpty(input.MaterialCode) ? string.Empty : input.MaterialCode }); |
|
|
|
|
|
customConditionList.Add(new CustomCondition() { Name = "BeginTime", Value = string.IsNullOrEmpty(input.Begin) ? string.Empty : input.Begin }); |
|
|
|
|
|
customConditionList.Add(new CustomCondition() { Name = "EndTime", Value = string.IsNullOrEmpty(input.End) ? string.Empty : input.End }); |
|
|
|
|
|
customConditionList.Add(new CustomCondition() { Name = "Cp7BeginTime", Value = string.IsNullOrEmpty(input.Cp7Begin) ? string.Empty : input.Cp7Begin }); |
|
|
|
|
|
customConditionList.Add(new CustomCondition() { Name = "Cp7EndTime", Value = string.IsNullOrEmpty(input.Cp7End) ? string.Empty : input.Cp7End }); |
|
|
|
|
|
customConditionList.Add(new CustomCondition() { Name = "KennCode", Value = string.IsNullOrEmpty(input.Kenncode) ? string.Empty : input.Kenncode }); |
|
|
|
|
|
customConditionList.Add(new CustomCondition() { Name = "ChassisNumber", Value = string.IsNullOrEmpty(input.ChassisNumber) ? string.Empty : input.ChassisNumber }); |
|
|
|
|
|
customConditionList.Add(new CustomCondition() { Name = "MaterialGroup", Value = string.IsNullOrEmpty(input.MaterialGroup) ? string.Empty : input.MaterialGroup }); |
|
|
|
|
|
customConditionList.Add(new CustomCondition() { Name = "SapCode", Value = string.IsNullOrEmpty(input.SapCode) ? string.Empty : input.SapCode }); |
|
|
|
|
|
var _taskid = await _service.ExportEnqueueAsync("准时化结算门板价格差异比对报表", ExportExtentsion.Excel, input.Version, string.IsNullOrEmpty(input.MaterialGroup) ? string.Empty : input.MaterialGroup, CurrentUser, typeof(SettleDoorPanelExportService), customConditionList, (rs) => |
|
|
|
|
|
{ |
|
|
|
|
|
}); |
|
|
|
|
|
return _taskid; |
|
|
|
|
|
} |
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 有条码看板结算核对
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="kanBan">看板号</param>
|
|
|
|
|
|
/// <param name="sapMaterialCode">厂内零件号</param>
|
|
|
|
|
|
/// <param name="version">版本</param>
|
|
|
|
|
|
/// <param name="customerCode"></param>
|
|
|
|
|
|
/// <param name="customerPartCode">客户物料号</param>
|
|
|
|
|
|
/// <param name="estimateTypeDesc">物料组(车型)</param>
|
|
|
|
|
|
/// <param name="state"></param>
|
|
|
|
|
|
/// <param name="begin"></param>
|
|
|
|
|
|
/// <param name="end"></param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost] |
|
|
|
|
|
[Route("SettleKanBan-WithCode")] |
|
|
|
|
|
[DisableRequestSizeLimit] |
|
|
|
|
|
|
|
|
|
|
|
public async Task<string> SettledKanBanWithCode(BaseKanbanReqestDto input) |
|
|
|
|
|
{ |
|
|
|
|
|
List<CustomCondition> customConditionList = new List<CustomCondition>(); |
|
|
|
|
|
customConditionList.Add(new CustomCondition() { Name = "Version", Value = input.Version ?? string.Empty }); |
|
|
|
|
|
customConditionList.Add(new CustomCondition() { Name = "CustomerCode", Value = input.CustomerCode ?? string.Empty }); |
|
|
|
|
|
customConditionList.Add(new CustomCondition() { Name = "CustomerPartCode", Value = input.CustomerPartCode ?? string.Empty }); |
|
|
|
|
|
customConditionList.Add(new CustomCondition() { Name = "State", Value = input.State ?? "0" }); |
|
|
|
|
|
customConditionList.Add(new CustomCondition() { Name = "EstimateTypeDesc", Value = input.EstimateTypeDesc ?? string.Empty }); |
|
|
|
|
|
customConditionList.Add(new CustomCondition() { Name = "ProjectName", Value = "有条码看板结算核对" }); |
|
|
|
|
|
customConditionList.Add(new CustomCondition() { Name = "Kanban", Value = input.KanBan ?? string.Empty }); |
|
|
|
|
|
customConditionList.Add(new CustomCondition() { Name = "SapMaterialCode", Value = input.SapMaterialCode ?? string.Empty }); |
|
|
|
|
|
customConditionList.Add(new CustomCondition() { Name = "BegingTime", Value = input.Begin ?? string.Empty }); |
|
|
|
|
|
customConditionList.Add(new CustomCondition() { Name = "EndTime", Value = input.End ?? string.Empty }); |
|
|
|
|
|
var _taskid = await _service.ExportEnqueueAsync("看板结算输出", ExportExtentsion.Excel,input.Version ,string.Empty,CurrentUser, typeof(SettleKBWithCodeExportService), customConditionList, (rs) => |
|
|
|
|
|
{ |
|
|
|
|
|
}); |
|
|
|
|
|
return _taskid; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[HttpPost] |
|
|
|
|
|
[Route("SettleKanBan-WithOutCode")] |
|
|
|
|
|
[DisableRequestSizeLimit] |
|
|
|
|
|
|
|
|
|
|
|
public async Task<string> SettledKanBanWithOutCode(BaseKanbanReqestDto input) |
|
|
//public async Task<string> SettleDoorPanel(
|
|
|
{ |
|
|
// BaseRequestDto input
|
|
|
List<CustomCondition> customConditionList = new List<CustomCondition>(); |
|
|
// )
|
|
|
customConditionList.Add(new CustomCondition() { Name = "Version", Value = input.Version ?? string.Empty }); |
|
|
//{
|
|
|
customConditionList.Add(new CustomCondition() { Name = "CustomerCode", Value = input.CustomerCode ?? string.Empty }); |
|
|
// List<CustomCondition> customConditionList = new List<CustomCondition>();
|
|
|
customConditionList.Add(new CustomCondition() { Name = "CustomerPartCode", Value = input.CustomerPartCode ?? string.Empty }); |
|
|
// customConditionList.Add(new CustomCondition() { Name = "Version", Value = string.IsNullOrEmpty(input.Version) ? string.Empty : input.Version });
|
|
|
customConditionList.Add(new CustomCondition() { Name = "State", Value = input.State ?? "0" }); |
|
|
// customConditionList.Add(new CustomCondition() { Name = "MaterialCode", Value = string.IsNullOrEmpty(input.MaterialCode) ? string.Empty : input.MaterialCode });
|
|
|
customConditionList.Add(new CustomCondition() { Name = "EstimateTypeDesc", Value = input.EstimateTypeDesc ?? string.Empty }); |
|
|
// customConditionList.Add(new CustomCondition() { Name = "BeginTime", Value = string.IsNullOrEmpty(input.Begin) ? string.Empty : input.Begin });
|
|
|
customConditionList.Add(new CustomCondition() { Name = "ProjectName", Value = "有条码看板结算核对" }); |
|
|
// customConditionList.Add(new CustomCondition() { Name = "EndTime", Value = string.IsNullOrEmpty(input.End) ? string.Empty : input.End });
|
|
|
customConditionList.Add(new CustomCondition() { Name = "Kanban", Value = input.KanBan ?? string.Empty }); |
|
|
// customConditionList.Add(new CustomCondition() { Name = "Cp7BeginTime", Value = string.IsNullOrEmpty(input.Cp7Begin) ? string.Empty : input.Cp7Begin });
|
|
|
customConditionList.Add(new CustomCondition() { Name = "SapMaterialCode", Value = input.SapMaterialCode ?? string.Empty }); |
|
|
// customConditionList.Add(new CustomCondition() { Name = "Cp7EndTime", Value = string.IsNullOrEmpty(input.Cp7End) ? string.Empty : input.Cp7End });
|
|
|
customConditionList.Add(new CustomCondition() { Name = "BegingTime", Value = input.Begin ?? string.Empty }); |
|
|
// customConditionList.Add(new CustomCondition() { Name = "KennCode", Value = string.IsNullOrEmpty(input.Kenncode) ? string.Empty : input.Kenncode });
|
|
|
customConditionList.Add(new CustomCondition() { Name = "EndTime", Value = input.End ?? string.Empty }); |
|
|
// customConditionList.Add(new CustomCondition() { Name = "ChassisNumber", Value = string.IsNullOrEmpty(input.ChassisNumber) ? string.Empty : input.ChassisNumber });
|
|
|
var _taskid = await _service.ExportEnqueueAsync("无条码看板结算输出", ExportExtentsion.Excel, input.Version,string.Empty, CurrentUser, typeof(SettleKBWithOutCodeExportService), customConditionList, (rs) => |
|
|
// customConditionList.Add(new CustomCondition() { Name = "MaterialGroup", Value = string.IsNullOrEmpty(input.MaterialGroup) ? string.Empty : input.MaterialGroup });
|
|
|
{ |
|
|
// customConditionList.Add(new CustomCondition() { Name = "SapCode", Value = string.IsNullOrEmpty(input.SapCode) ? string.Empty : input.SapCode });
|
|
|
}); |
|
|
// var _taskid = await _service.ExportEnqueueAsync("准时化结算门板价格差异比对报表", ExportExtentsion.Excel, input.Version, string.IsNullOrEmpty(input.MaterialGroup) ? string.Empty : input.MaterialGroup, CurrentUser, typeof(SettleDoorPanelExportService), customConditionList, (rs) =>
|
|
|
return _taskid; |
|
|
// {
|
|
|
} |
|
|
// });
|
|
|
#region 大众备件0-90天和90天以上输出
|
|
|
// return _taskid;
|
|
|
|
|
|
//}
|
|
|
|
|
|
///// <summary>
|
|
|
|
|
|
///// 有条码看板结算核对
|
|
|
|
|
|
///// </summary>
|
|
|
|
|
|
///// <param name="kanBan">看板号</param>
|
|
|
|
|
|
///// <param name="sapMaterialCode">厂内零件号</param>
|
|
|
|
|
|
///// <param name="version">版本</param>
|
|
|
|
|
|
///// <param name="customerCode"></param>
|
|
|
|
|
|
///// <param name="customerPartCode">客户物料号</param>
|
|
|
|
|
|
///// <param name="estimateTypeDesc">物料组(车型)</param>
|
|
|
|
|
|
///// <param name="state"></param>
|
|
|
|
|
|
///// <param name="begin"></param>
|
|
|
|
|
|
///// <param name="end"></param>
|
|
|
|
|
|
///// <returns></returns>
|
|
|
|
|
|
//[HttpPost]
|
|
|
|
|
|
//[Route("SettleKanBan-WithCode")]
|
|
|
|
|
|
//[DisableRequestSizeLimit]
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
//public async Task<string> SettledKanBanWithCode(BaseKanbanReqestDto input)
|
|
|
/// 大众备件数据调整结算输出
|
|
|
//{
|
|
|
/// </summary>
|
|
|
// List<CustomCondition> customConditionList = new List<CustomCondition>();
|
|
|
/// <param name="purchaseOrderNo"></param>
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "Version", Value = input.Version ?? string.Empty });
|
|
|
/// <param name="sapCode"></param>
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "CustomerCode", Value = input.CustomerCode ?? string.Empty });
|
|
|
/// <param name="version"></param>
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "CustomerPartCode", Value = input.CustomerPartCode ?? string.Empty });
|
|
|
/// <param name="customerCode"></param>
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "State", Value = input.State ?? "0" });
|
|
|
/// <param name="factory"></param>
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "EstimateTypeDesc", Value = input.EstimateTypeDesc ?? string.Empty });
|
|
|
/// <param name="matialCode"></param>
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "ProjectName", Value = "有条码看板结算核对" });
|
|
|
/// <param name="state"></param>
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "Kanban", Value = input.KanBan ?? string.Empty });
|
|
|
/// <param name="begin"></param>
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "SapMaterialCode", Value = input.SapMaterialCode ?? string.Empty });
|
|
|
/// <param name="end"></param>
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "BegingTime", Value = input.Begin ?? string.Empty });
|
|
|
/// <returns></returns>
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "EndTime", Value = input.End ?? string.Empty });
|
|
|
[HttpGet] |
|
|
// var _taskid = await _service.ExportEnqueueAsync("看板结算输出", ExportExtentsion.Excel,input.Version ,string.Empty,CurrentUser, typeof(SettleKBWithCodeExportService), customConditionList, (rs) =>
|
|
|
[Route("SettleSparePart90Export")] |
|
|
// {
|
|
|
[DisableRequestSizeLimit] |
|
|
// });
|
|
|
|
|
|
// return _taskid;
|
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
public async Task<string> SettledSparePart90(string purchaseOrderNo, string sapCode, string version, string customerCode, string factory, string matialCode, |
|
|
//[HttpPost]
|
|
|
string state, DateTime begin, DateTime end) |
|
|
//[Route("SettleKanBan-WithOutCode")]
|
|
|
{ |
|
|
//[DisableRequestSizeLimit]
|
|
|
|
|
|
|
|
|
List<CustomCondition> customConditionList = new List<CustomCondition>(); |
|
|
//public async Task<string> SettledKanBanWithOutCode(BaseKanbanReqestDto input)
|
|
|
customConditionList.Add(new CustomCondition() { Name = "Version", Value = version ?? string.Empty }); |
|
|
//{
|
|
|
customConditionList.Add(new CustomCondition() { Name = "PurchaseOrderNo", Value = purchaseOrderNo ?? string.Empty }); |
|
|
// List<CustomCondition> customConditionList = new List<CustomCondition>();
|
|
|
customConditionList.Add(new CustomCondition() { Name = "SAPCode", Value = sapCode ?? string.Empty }); |
|
|
// customConditionList.Add(new CustomCondition() { Name = "Version", Value = input.Version ?? string.Empty });
|
|
|
customConditionList.Add(new CustomCondition() { Name = "CustomerCode", Value = customerCode ?? string.Empty }); |
|
|
// customConditionList.Add(new CustomCondition() { Name = "CustomerCode", Value = input.CustomerCode ?? string.Empty });
|
|
|
customConditionList.Add(new CustomCondition() { Name = "State", Value = state ?? "0" }); |
|
|
// customConditionList.Add(new CustomCondition() { Name = "CustomerPartCode", Value = input.CustomerPartCode ?? string.Empty });
|
|
|
customConditionList.Add(new CustomCondition() { Name = "MatialCode", Value = matialCode ?? string.Empty }); |
|
|
// customConditionList.Add(new CustomCondition() { Name = "State", Value = input.State ?? "0" });
|
|
|
customConditionList.Add(new CustomCondition() { Name = "ProjectName", Value = "大众备件结算核对" }); |
|
|
// customConditionList.Add(new CustomCondition() { Name = "EstimateTypeDesc", Value = input.EstimateTypeDesc ?? string.Empty });
|
|
|
customConditionList.Add(new CustomCondition() { Name = "BegingTime", Value = begin.ToString() }); |
|
|
// customConditionList.Add(new CustomCondition() { Name = "ProjectName", Value = "有条码看板结算核对" });
|
|
|
customConditionList.Add(new CustomCondition() { Name = "EndTime", Value = end.ToString() }); |
|
|
// customConditionList.Add(new CustomCondition() { Name = "Kanban", Value = input.KanBan ?? string.Empty });
|
|
|
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "SapMaterialCode", Value = input.SapMaterialCode ?? string.Empty });
|
|
|
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "BegingTime", Value = input.Begin ?? string.Empty });
|
|
|
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "EndTime", Value = input.End ?? string.Empty });
|
|
|
|
|
|
// var _taskid = await _service.ExportEnqueueAsync("无条码看板结算输出", ExportExtentsion.Excel, input.Version,string.Empty, CurrentUser, typeof(SettleKBWithOutCodeExportService), customConditionList, (rs) =>
|
|
|
|
|
|
// {
|
|
|
|
|
|
// });
|
|
|
|
|
|
// return _taskid;
|
|
|
|
|
|
//}
|
|
|
|
|
|
//#region 大众备件0-90天和90天以上输出
|
|
|
|
|
|
|
|
|
var _taskid = await _service.ExportEnqueueAsync("大众备件数据调整结算输出", ExportExtentsion.Excel, version, string.Empty, CurrentUser, typeof(SettleSparePart90ExportService), customConditionList, (rs) => |
|
|
///// <summary>
|
|
|
{ |
|
|
///// 大众备件数据调整结算输出
|
|
|
|
|
|
///// </summary>
|
|
|
|
|
|
///// <param name="purchaseOrderNo"></param>
|
|
|
|
|
|
///// <param name="sapCode"></param>
|
|
|
|
|
|
///// <param name="version"></param>
|
|
|
|
|
|
///// <param name="customerCode"></param>
|
|
|
|
|
|
///// <param name="factory"></param>
|
|
|
|
|
|
///// <param name="matialCode"></param>
|
|
|
|
|
|
///// <param name="state"></param>
|
|
|
|
|
|
///// <param name="begin"></param>
|
|
|
|
|
|
///// <param name="end"></param>
|
|
|
|
|
|
///// <returns></returns>
|
|
|
|
|
|
//[HttpGet]
|
|
|
|
|
|
//[Route("SettleSparePart90Export")]
|
|
|
|
|
|
//[DisableRequestSizeLimit]
|
|
|
|
|
|
|
|
|
}); |
|
|
//public async Task<string> SettledSparePart90(string purchaseOrderNo, string sapCode, string version, string customerCode, string factory, string matialCode,
|
|
|
return _taskid; |
|
|
// string state, DateTime begin, DateTime end)
|
|
|
} |
|
|
//{
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
// List<CustomCondition> customConditionList = new List<CustomCondition>();
|
|
|
/// 大众备件输出(包括带订货单号和无订单号)
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "Version", Value = version ?? string.Empty });
|
|
|
/// </summary>
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "PurchaseOrderNo", Value = purchaseOrderNo ?? string.Empty });
|
|
|
/// <param name="purchaseOrderNo">采购订单号</param>
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "SAPCode", Value = sapCode ?? string.Empty });
|
|
|
/// <param name="sapCode">厂内物料号</param>
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "CustomerCode", Value = customerCode ?? string.Empty });
|
|
|
/// <param name="version">版本</param>
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "State", Value = state ?? "0" });
|
|
|
/// <param name="customerCode"></param>
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "MatialCode", Value = matialCode ?? string.Empty });
|
|
|
/// <param name="factory"></param>
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "ProjectName", Value = "大众备件结算核对" });
|
|
|
/// <param name="matialCode">物料代码</param>
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "BegingTime", Value = begin.ToString() });
|
|
|
/// <param name="state"></param>
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "EndTime", Value = end.ToString() });
|
|
|
/// <param name="begin"></param>
|
|
|
|
|
|
/// <param name="end"></param>
|
|
|
// var _taskid = await _service.ExportEnqueueAsync("大众备件数据调整结算输出", ExportExtentsion.Excel, version, string.Empty, CurrentUser, typeof(SettleSparePart90ExportService), customConditionList, (rs) =>
|
|
|
/// <returns></returns>
|
|
|
// {
|
|
|
[HttpGet] |
|
|
|
|
|
[Route("SettleSparePartExport")] |
|
|
|
|
|
[DisableRequestSizeLimit] |
|
|
|
|
|
|
|
|
|
|
|
public async Task<string> SettledSparePart(string purchaseOrderNo, string sapCode, string version, string customerCode, string factory, string matialCode, |
|
|
// });
|
|
|
string state, DateTime begin, DateTime end) |
|
|
// return _taskid;
|
|
|
{ |
|
|
//}
|
|
|
|
|
|
|
|
|
List<CustomCondition> customConditionList = new List<CustomCondition>(); |
|
|
///// <summary>
|
|
|
customConditionList.Add(new CustomCondition() { Name = "Version", Value = version ?? string.Empty }); |
|
|
///// 大众备件输出(包括带订货单号和无订单号)
|
|
|
customConditionList.Add(new CustomCondition() { Name = "PurchaseOrderNo", Value = purchaseOrderNo ?? string.Empty }); |
|
|
///// </summary>
|
|
|
customConditionList.Add(new CustomCondition() { Name = "SAPCode", Value = sapCode ?? string.Empty }); |
|
|
///// <param name="purchaseOrderNo">采购订单号</param>
|
|
|
customConditionList.Add(new CustomCondition() { Name = "CustomerCode", Value = customerCode ?? string.Empty }); |
|
|
///// <param name="sapCode">厂内物料号</param>
|
|
|
customConditionList.Add(new CustomCondition() { Name = "State", Value = state ?? "0" }); |
|
|
///// <param name="version">版本</param>
|
|
|
customConditionList.Add(new CustomCondition() { Name = "MatialCode", Value = matialCode ?? string.Empty }); |
|
|
///// <param name="customerCode"></param>
|
|
|
customConditionList.Add(new CustomCondition() { Name = "ProjectName", Value = "大众备件结算核对" }); |
|
|
///// <param name="factory"></param>
|
|
|
customConditionList.Add(new CustomCondition() { Name = "BegingTime", Value = begin.ToString() }); |
|
|
///// <param name="matialCode">物料代码</param>
|
|
|
customConditionList.Add(new CustomCondition() { Name = "EndTime", Value = end.ToString() }); |
|
|
///// <param name="state"></param>
|
|
|
|
|
|
///// <param name="begin"></param>
|
|
|
|
|
|
///// <param name="end"></param>
|
|
|
|
|
|
///// <returns></returns>
|
|
|
|
|
|
//[HttpGet]
|
|
|
|
|
|
//[Route("SettleSparePartExport")]
|
|
|
|
|
|
//[DisableRequestSizeLimit]
|
|
|
|
|
|
|
|
|
var _taskid = await _service.ExportEnqueueAsync("大众备件结算输出", ExportExtentsion.Excel, version, string.Empty, CurrentUser, typeof(SettleSparePartExportService), customConditionList, (rs) => |
|
|
//public async Task<string> SettledSparePart(string purchaseOrderNo, string sapCode, string version, string customerCode, string factory, string matialCode,
|
|
|
{ |
|
|
// string state, DateTime begin, DateTime end)
|
|
|
|
|
|
//{
|
|
|
|
|
|
|
|
|
}); |
|
|
// List<CustomCondition> customConditionList = new List<CustomCondition>();
|
|
|
return _taskid; |
|
|
// customConditionList.Add(new CustomCondition() { Name = "Version", Value = version ?? string.Empty });
|
|
|
} |
|
|
// customConditionList.Add(new CustomCondition() { Name = "PurchaseOrderNo", Value = purchaseOrderNo ?? string.Empty });
|
|
|
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "SAPCode", Value = sapCode ?? string.Empty });
|
|
|
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "CustomerCode", Value = customerCode ?? string.Empty });
|
|
|
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "State", Value = state ?? "0" });
|
|
|
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "MatialCode", Value = matialCode ?? string.Empty });
|
|
|
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "ProjectName", Value = "大众备件结算核对" });
|
|
|
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "BegingTime", Value = begin.ToString() });
|
|
|
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "EndTime", Value = end.ToString() });
|
|
|
|
|
|
|
|
|
|
|
|
// var _taskid = await _service.ExportEnqueueAsync("大众备件结算输出", ExportExtentsion.Excel, version, string.Empty, CurrentUser, typeof(SettleSparePartExportService), customConditionList, (rs) =>
|
|
|
|
|
|
// {
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
// });
|
|
|
/// 大众备件未结明细
|
|
|
// return _taskid;
|
|
|
/// </summary>
|
|
|
//}
|
|
|
/// <param name="purchaseOrderNo"></param>
|
|
|
|
|
|
/// <param name="sapCode"></param>
|
|
|
|
|
|
/// <param name="version"></param>
|
|
|
|
|
|
/// <param name="customerCode"></param>
|
|
|
|
|
|
/// <param name="factory"></param>
|
|
|
|
|
|
/// <param name="matialCode"></param>
|
|
|
|
|
|
/// <param name="state"></param>
|
|
|
|
|
|
/// <param name="begin"></param>
|
|
|
|
|
|
/// <param name="end"></param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet] |
|
|
|
|
|
[Route("UnSettleSparePartExport")] |
|
|
|
|
|
[DisableRequestSizeLimit] |
|
|
|
|
|
|
|
|
|
|
|
public async Task<string> UnSettledSparePart(string purchaseOrderNo, string sapCode, string version, string customerCode, string factory, string matialCode, |
|
|
///// <summary>
|
|
|
string state, DateTime begin, DateTime end) |
|
|
///// 大众备件未结明细
|
|
|
{ |
|
|
///// </summary>
|
|
|
|
|
|
///// <param name="purchaseOrderNo"></param>
|
|
|
|
|
|
///// <param name="sapCode"></param>
|
|
|
|
|
|
///// <param name="version"></param>
|
|
|
|
|
|
///// <param name="customerCode"></param>
|
|
|
|
|
|
///// <param name="factory"></param>
|
|
|
|
|
|
///// <param name="matialCode"></param>
|
|
|
|
|
|
///// <param name="state"></param>
|
|
|
|
|
|
///// <param name="begin"></param>
|
|
|
|
|
|
///// <param name="end"></param>
|
|
|
|
|
|
///// <returns></returns>
|
|
|
|
|
|
//[HttpGet]
|
|
|
|
|
|
//[Route("UnSettleSparePartExport")]
|
|
|
|
|
|
//[DisableRequestSizeLimit]
|
|
|
|
|
|
|
|
|
List<CustomCondition> customConditionList = new List<CustomCondition>(); |
|
|
//public async Task<string> UnSettledSparePart(string purchaseOrderNo, string sapCode, string version, string customerCode, string factory, string matialCode,
|
|
|
customConditionList.Add(new CustomCondition() { Name = "Version", Value = version ?? string.Empty }); |
|
|
// string state, DateTime begin, DateTime end)
|
|
|
customConditionList.Add(new CustomCondition() { Name = "PurchaseOrderNo", Value = purchaseOrderNo ?? string.Empty }); |
|
|
//{
|
|
|
customConditionList.Add(new CustomCondition() { Name = "SAPCode", Value = sapCode ?? string.Empty }); |
|
|
|
|
|
customConditionList.Add(new CustomCondition() { Name = "CustomerCode", Value = customerCode ?? string.Empty }); |
|
|
|
|
|
customConditionList.Add(new CustomCondition() { Name = "State", Value = state ?? "0" }); |
|
|
|
|
|
customConditionList.Add(new CustomCondition() { Name = "MatialCode", Value = matialCode ?? string.Empty }); |
|
|
|
|
|
customConditionList.Add(new CustomCondition() { Name = "ProjectName", Value = "大众备件结算核对" }); |
|
|
|
|
|
customConditionList.Add(new CustomCondition() { Name = "BegingTime", Value = begin.ToString() }); |
|
|
|
|
|
customConditionList.Add(new CustomCondition() { Name = "EndTime", Value = end.ToString() }); |
|
|
|
|
|
|
|
|
|
|
|
var _taskid = await _service.ExportEnqueueAsync("大众备件未结输出", ExportExtentsion.Excel, version, string.Empty, CurrentUser, typeof(SettleUnSparePartExportService), customConditionList, (rs) => |
|
|
// List<CustomCondition> customConditionList = new List<CustomCondition>();
|
|
|
{ |
|
|
// customConditionList.Add(new CustomCondition() { Name = "Version", Value = version ?? string.Empty });
|
|
|
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "PurchaseOrderNo", Value = purchaseOrderNo ?? string.Empty });
|
|
|
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "SAPCode", Value = sapCode ?? string.Empty });
|
|
|
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "CustomerCode", Value = customerCode ?? string.Empty });
|
|
|
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "State", Value = state ?? "0" });
|
|
|
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "MatialCode", Value = matialCode ?? string.Empty });
|
|
|
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "ProjectName", Value = "大众备件结算核对" });
|
|
|
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "BegingTime", Value = begin.ToString() });
|
|
|
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "EndTime", Value = end.ToString() });
|
|
|
|
|
|
|
|
|
|
|
|
// var _taskid = await _service.ExportEnqueueAsync("大众备件未结输出", ExportExtentsion.Excel, version, string.Empty, CurrentUser, typeof(SettleUnSparePartExportService), customConditionList, (rs) =>
|
|
|
|
|
|
// {
|
|
|
|
|
|
|
|
|
}); |
|
|
// });
|
|
|
return _taskid; |
|
|
// return _taskid;
|
|
|
} |
|
|
//}
|
|
|
#endregion
|
|
|
//#endregion
|
|
|
/// <summary>
|
|
|
///// <summary>
|
|
|
/// 无订单备件结算输出
|
|
|
///// 无订单备件结算输出
|
|
|
/// </summary>
|
|
|
///// </summary>
|
|
|
/// <param name="purchaseOrderNo">采购订单号</param>
|
|
|
///// <param name="purchaseOrderNo">采购订单号</param>
|
|
|
/// <param name="sapCode">厂内物料号</param>
|
|
|
///// <param name="sapCode">厂内物料号</param>
|
|
|
/// <param name="version">版本</param>
|
|
|
///// <param name="version">版本</param>
|
|
|
/// <param name="customerCode"></param>
|
|
|
///// <param name="customerCode"></param>
|
|
|
/// <param name="factory"></param>
|
|
|
///// <param name="factory"></param>
|
|
|
/// <param name="matialCode">物料代码</param>
|
|
|
///// <param name="matialCode">物料代码</param>
|
|
|
/// <param name="state"></param>
|
|
|
///// <param name="state"></param>
|
|
|
/// <param name="begin"></param>
|
|
|
///// <param name="begin"></param>
|
|
|
/// <param name="end"></param>
|
|
|
///// <param name="end"></param>
|
|
|
/// <returns></returns>
|
|
|
///// <returns></returns>
|
|
|
[HttpGet] |
|
|
//[HttpGet]
|
|
|
[Route("SettleSparePartExportExtend")] |
|
|
//[Route("SettleSparePartExportExtend")]
|
|
|
[DisableRequestSizeLimit] |
|
|
//[DisableRequestSizeLimit]
|
|
|
|
|
|
|
|
|
public async Task<string> SettledSparePartExtend(string purchaseOrderNo, string sapCode, string version, string customerCode, string factory, string matialCode, |
|
|
//public async Task<string> SettledSparePartExtend(string purchaseOrderNo, string sapCode, string version, string customerCode, string factory, string matialCode,
|
|
|
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 = "PurchaseOrderNo", Value = purchaseOrderNo ?? string.Empty }); |
|
|
// customConditionList.Add(new CustomCondition() { Name = "PurchaseOrderNo", Value = purchaseOrderNo ?? string.Empty });
|
|
|
customConditionList.Add(new CustomCondition() { Name = "SAPCode", Value = sapCode ?? string.Empty }); |
|
|
// customConditionList.Add(new CustomCondition() { Name = "SAPCode", Value = sapCode ?? string.Empty });
|
|
|
customConditionList.Add(new CustomCondition() { Name = "CustomerCode", Value = customerCode ?? string.Empty }); |
|
|
// customConditionList.Add(new CustomCondition() { Name = "CustomerCode", Value = customerCode ?? string.Empty });
|
|
|
customConditionList.Add(new CustomCondition() { Name = "State", Value = state ?? "0" }); |
|
|
// customConditionList.Add(new CustomCondition() { Name = "State", Value = state ?? "0" });
|
|
|
customConditionList.Add(new CustomCondition() { Name = "MatialCode", Value = matialCode ?? "0" }); |
|
|
// customConditionList.Add(new CustomCondition() { Name = "MatialCode", Value = matialCode ?? "0" });
|
|
|
customConditionList.Add(new CustomCondition() { Name = "ProjectName", Value = "大众备件结算核对" }); |
|
|
// customConditionList.Add(new CustomCondition() { Name = "ProjectName", Value = "大众备件结算核对" });
|
|
|
customConditionList.Add(new CustomCondition() { Name = "BegingTime", Value = begin.ToString() }); |
|
|
// customConditionList.Add(new CustomCondition() { Name = "BegingTime", Value = begin.ToString() });
|
|
|
customConditionList.Add(new CustomCondition() { Name = "EndTime", Value = end.ToString() }); |
|
|
// customConditionList.Add(new CustomCondition() { Name = "EndTime", Value = end.ToString() });
|
|
|
var _taskid = await _service.ExportEnqueueAsync("无订单备件结算输出", ExportExtentsion.Excel, version, string.Empty, CurrentUser, typeof(SettleSparePartExportService), customConditionList, (rs) => |
|
|
// var _taskid = await _service.ExportEnqueueAsync("无订单备件结算输出", ExportExtentsion.Excel, version, string.Empty, CurrentUser, typeof(SettleSparePartExportService), customConditionList, (rs) =>
|
|
|
{ |
|
|
// {
|
|
|
|
|
|
|
|
|
}); |
|
|
// });
|
|
|
return _taskid; |
|
|
// return _taskid;
|
|
|
} |
|
|
//}
|
|
|
#endregion
|
|
|
//#endregion
|
|
|
|
|
|
|
|
|
[HttpGet] |
|
|
[HttpGet] |
|
|
[Route("SharePartUnSettledExport")] |
|
|
[Route("SharePartUnSettledExport")] |
|
@ -692,189 +692,189 @@ namespace Win.Sfs.SettleAccount.Reports.ReportServices |
|
|
// return _taskid;
|
|
|
// return _taskid;
|
|
|
//}
|
|
|
//}
|
|
|
|
|
|
|
|
|
#region 红旗、一汽轿车的输出报表
|
|
|
//#region 红旗、一汽轿车的输出报表
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
///// <summary>
|
|
|
///红旗工厂核对明细
|
|
|
/////红旗工厂核对明细
|
|
|
/// </summary>
|
|
|
///// </summary>
|
|
|
/// <param name="files">上传的文件(前端已经限制只能上传一个附件)</param>
|
|
|
///// <param name="files">上传的文件(前端已经限制只能上传一个附件)</param>
|
|
|
/// <returns></returns>
|
|
|
///// <returns></returns>
|
|
|
[HttpPost] |
|
|
//[HttpPost]
|
|
|
[Route("HQHSettledDetailDiffExportService")] |
|
|
//[Route("HQHSettledDetailDiffExportService")]
|
|
|
[DisableRequestSizeLimit] |
|
|
//[DisableRequestSizeLimit]
|
|
|
[UnitOfWork(false)] |
|
|
//[UnitOfWork(false)]
|
|
|
public async Task<string> HQHSettledDetailDiffExportServiceMake( |
|
|
//public async Task<string> HQHSettledDetailDiffExportServiceMake(
|
|
|
HQKanbanRequestDto input |
|
|
// HQKanbanRequestDto input
|
|
|
) |
|
|
// )
|
|
|
{ |
|
|
//{
|
|
|
|
|
|
|
|
|
List<CustomCondition> customConditionList = new List<CustomCondition>(); |
|
|
|
|
|
customConditionList.Add(new CustomCondition() { Name = "Version", Value = input.Version }); |
|
|
|
|
|
customConditionList.Add(new CustomCondition() { Name = "MaterialCode", Value = input.MaterialCode }); |
|
|
|
|
|
customConditionList.Add(new CustomCondition() { Name = "BeginTime", Value = input.Begin }); |
|
|
|
|
|
customConditionList.Add(new CustomCondition() { Name = "EndTime", Value = input.End }); |
|
|
|
|
|
customConditionList.Add(new CustomCondition() { Name = "MaterialCode", Value = input.MaterialCode }); |
|
|
|
|
|
customConditionList.Add(new CustomCondition() { Name = "AcceptNo", Value = input.AcceptNo }); |
|
|
|
|
|
customConditionList.Add(new CustomCondition() { Name = "WarehouseDesc", Value = input.WarehouseDesc }); |
|
|
|
|
|
customConditionList.Add(new CustomCondition() { Name = "Kanban", Value = input.Kanban }); |
|
|
|
|
|
customConditionList.Add(new CustomCondition() { Name = "MaterialGroup", Value = string.IsNullOrEmpty(input.MaterialGroup) ? string.Empty : input.MaterialGroup }); |
|
|
|
|
|
customConditionList.Add(new CustomCondition() { Name = "SapCode", Value = string.IsNullOrEmpty(input.SapCode) ? string.Empty : input.SapCode }); |
|
|
|
|
|
var _taskid = await _service.ExportEnqueueAsync("红旗工厂核对明细", ExportExtentsion.Excel, input.Version, string.IsNullOrEmpty(input.MaterialGroup) ? string.Empty : input.MaterialGroup, CurrentUser, typeof(HQHSettledDetailDiffExportService), customConditionList, (rs) => |
|
|
|
|
|
{ |
|
|
|
|
|
}); |
|
|
|
|
|
return _taskid; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// List<CustomCondition> customConditionList = new List<CustomCondition>();
|
|
|
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "Version", Value = input.Version });
|
|
|
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "MaterialCode", Value = input.MaterialCode });
|
|
|
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "BeginTime", Value = input.Begin });
|
|
|
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "EndTime", Value = input.End });
|
|
|
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "MaterialCode", Value = input.MaterialCode });
|
|
|
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "AcceptNo", Value = input.AcceptNo });
|
|
|
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "WarehouseDesc", Value = input.WarehouseDesc });
|
|
|
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "Kanban", Value = input.Kanban });
|
|
|
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "MaterialGroup", Value = string.IsNullOrEmpty(input.MaterialGroup) ? string.Empty : input.MaterialGroup });
|
|
|
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "SapCode", Value = string.IsNullOrEmpty(input.SapCode) ? string.Empty : input.SapCode });
|
|
|
|
|
|
// var _taskid = await _service.ExportEnqueueAsync("红旗工厂核对明细", ExportExtentsion.Excel, input.Version, string.IsNullOrEmpty(input.MaterialGroup) ? string.Empty : input.MaterialGroup, CurrentUser, typeof(HQHSettledDetailDiffExportService), customConditionList, (rs) =>
|
|
|
|
|
|
// {
|
|
|
|
|
|
// });
|
|
|
|
|
|
// return _taskid;
|
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
///红旗工厂未结明细
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="files">上传的文件(前端已经限制只能上传一个附件)</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost] |
|
|
|
|
|
[Route("HQHUnSettledDetailDiffExportService")] |
|
|
|
|
|
[DisableRequestSizeLimit] |
|
|
|
|
|
public async Task<string> HQHUnSettledDetailDiffExportServiceMake( |
|
|
|
|
|
HQKanbanRequestDto input |
|
|
|
|
|
) |
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
List<CustomCondition> customConditionList = new List<CustomCondition>(); |
|
|
///// <summary>
|
|
|
customConditionList.Add(new CustomCondition() { Name = "Version", Value = input.Version }); |
|
|
/////红旗工厂未结明细
|
|
|
customConditionList.Add(new CustomCondition() { Name = "MaterialCode", Value = input.MaterialCode }); |
|
|
///// </summary>
|
|
|
customConditionList.Add(new CustomCondition() { Name = "BeginTime", Value = input.Begin }); |
|
|
///// <param name="files">上传的文件(前端已经限制只能上传一个附件)</param>
|
|
|
customConditionList.Add(new CustomCondition() { Name = "EndTime", Value = input.End }); |
|
|
///// <returns></returns>
|
|
|
customConditionList.Add(new CustomCondition() { Name = "MaterialCode", Value = input.MaterialCode }); |
|
|
//[HttpPost]
|
|
|
customConditionList.Add(new CustomCondition() { Name = "AcceptNo", Value = input.AcceptNo }); |
|
|
//[Route("HQHUnSettledDetailDiffExportService")]
|
|
|
customConditionList.Add(new CustomCondition() { Name = "WarehouseDesc", Value = input.WarehouseDesc }); |
|
|
//[DisableRequestSizeLimit]
|
|
|
customConditionList.Add(new CustomCondition() { Name = "Kanban", Value = input.Kanban }); |
|
|
//public async Task<string> HQHUnSettledDetailDiffExportServiceMake(
|
|
|
customConditionList.Add(new CustomCondition() { Name = "MaterialGroup", Value = string.IsNullOrEmpty(input.MaterialGroup) ? string.Empty : input.MaterialGroup }); |
|
|
// HQKanbanRequestDto input
|
|
|
customConditionList.Add(new CustomCondition() { Name = "SapCode", Value = string.IsNullOrEmpty(input.SapCode) ? string.Empty : input.SapCode }); |
|
|
// )
|
|
|
customConditionList.Add(new CustomCondition() { Name = "IsContainVersion", Value = input.IsContainVersion }); |
|
|
//{
|
|
|
var _taskid = await _service.ExportEnqueueAsync("红旗工厂未结明细", ExportExtentsion.Excel, input.Version, string.IsNullOrEmpty(input.MaterialGroup) ? string.Empty : input.MaterialGroup, CurrentUser, typeof(HQHUnSettledDetailDiffExportService), customConditionList, (rs) => |
|
|
|
|
|
{ |
|
|
|
|
|
}); |
|
|
|
|
|
return _taskid; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
// List<CustomCondition> customConditionList = new List<CustomCondition>();
|
|
|
///红旗未结核对
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "Version", Value = input.Version });
|
|
|
/// </summary>
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "MaterialCode", Value = input.MaterialCode });
|
|
|
/// <param name="files">上传的文件(前端已经限制只能上传一个附件)</param>
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "BeginTime", Value = input.Begin });
|
|
|
/// <returns></returns>
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "EndTime", Value = input.End });
|
|
|
[HttpPost] |
|
|
// customConditionList.Add(new CustomCondition() { Name = "MaterialCode", Value = input.MaterialCode });
|
|
|
[Route("HQFactoryUnSettledDetailDiffExportService")] |
|
|
// customConditionList.Add(new CustomCondition() { Name = "AcceptNo", Value = input.AcceptNo });
|
|
|
[DisableRequestSizeLimit] |
|
|
// customConditionList.Add(new CustomCondition() { Name = "WarehouseDesc", Value = input.WarehouseDesc });
|
|
|
public async Task<string> HQFactoryUnSettledDetailDiffExportService( |
|
|
// customConditionList.Add(new CustomCondition() { Name = "Kanban", Value = input.Kanban });
|
|
|
HQKanbanRequestDto input |
|
|
// customConditionList.Add(new CustomCondition() { Name = "MaterialGroup", Value = string.IsNullOrEmpty(input.MaterialGroup) ? string.Empty : input.MaterialGroup });
|
|
|
) |
|
|
// customConditionList.Add(new CustomCondition() { Name = "SapCode", Value = string.IsNullOrEmpty(input.SapCode) ? string.Empty : input.SapCode });
|
|
|
{ |
|
|
// customConditionList.Add(new CustomCondition() { Name = "IsContainVersion", Value = input.IsContainVersion });
|
|
|
|
|
|
// var _taskid = await _service.ExportEnqueueAsync("红旗工厂未结明细", ExportExtentsion.Excel, input.Version, string.IsNullOrEmpty(input.MaterialGroup) ? string.Empty : input.MaterialGroup, CurrentUser, typeof(HQHUnSettledDetailDiffExportService), customConditionList, (rs) =>
|
|
|
|
|
|
// {
|
|
|
|
|
|
// });
|
|
|
|
|
|
// return _taskid;
|
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
List<CustomCondition> customConditionList = new List<CustomCondition>(); |
|
|
///// <summary>
|
|
|
customConditionList.Add(new CustomCondition() { Name = "Version", Value = input.Version }); |
|
|
/////红旗未结核对
|
|
|
customConditionList.Add(new CustomCondition() { Name = "MaterialCode", Value = input.MaterialCode }); |
|
|
///// </summary>
|
|
|
customConditionList.Add(new CustomCondition() { Name = "BeginTime", Value = input.Begin }); |
|
|
///// <param name="files">上传的文件(前端已经限制只能上传一个附件)</param>
|
|
|
customConditionList.Add(new CustomCondition() { Name = "EndTime", Value = input.End }); |
|
|
///// <returns></returns>
|
|
|
customConditionList.Add(new CustomCondition() { Name = "MaterialCode", Value = input.MaterialCode }); |
|
|
//[HttpPost]
|
|
|
customConditionList.Add(new CustomCondition() { Name = "AcceptNo", Value = input.AcceptNo }); |
|
|
//[Route("HQFactoryUnSettledDetailDiffExportService")]
|
|
|
customConditionList.Add(new CustomCondition() { Name = "WarehouseDesc", Value = input.WarehouseDesc }); |
|
|
//[DisableRequestSizeLimit]
|
|
|
customConditionList.Add(new CustomCondition() { Name = "Kanban", Value = input.Kanban }); |
|
|
//public async Task<string> HQFactoryUnSettledDetailDiffExportService(
|
|
|
customConditionList.Add(new CustomCondition() { Name = "MaterialGroup", Value = string.IsNullOrEmpty(input.MaterialGroup) ? string.Empty : input.MaterialGroup }); |
|
|
// HQKanbanRequestDto input
|
|
|
customConditionList.Add(new CustomCondition() { Name = "SapCode", Value = string.IsNullOrEmpty(input.SapCode) ? string.Empty : input.SapCode }); |
|
|
// )
|
|
|
customConditionList.Add(new CustomCondition() { Name = "IsContainVersion", Value = input.IsContainVersion }); |
|
|
//{
|
|
|
var _taskid = await _service.ExportEnqueueAsync("红旗未结核对", ExportExtentsion.Excel, input.Version, string.IsNullOrEmpty(input.MaterialGroup) ? string.Empty : input.MaterialGroup, CurrentUser, typeof(HQFactoryUnSettledDetailDiffExportService), customConditionList, (rs) => |
|
|
|
|
|
{ |
|
|
|
|
|
}); |
|
|
|
|
|
return _taskid; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
// List<CustomCondition> customConditionList = new List<CustomCondition>();
|
|
|
/// 红旗工厂备件明细
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "Version", Value = input.Version });
|
|
|
/// </summary>
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "MaterialCode", Value = input.MaterialCode });
|
|
|
/// <param name="input"></param>
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "BeginTime", Value = input.Begin });
|
|
|
/// <returns></returns>
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "EndTime", Value = input.End });
|
|
|
[HttpPost] |
|
|
// customConditionList.Add(new CustomCondition() { Name = "MaterialCode", Value = input.MaterialCode });
|
|
|
[Route("HQHSharePartSettledDetailDiffExportService")] |
|
|
// customConditionList.Add(new CustomCondition() { Name = "AcceptNo", Value = input.AcceptNo });
|
|
|
[DisableRequestSizeLimit] |
|
|
// customConditionList.Add(new CustomCondition() { Name = "WarehouseDesc", Value = input.WarehouseDesc });
|
|
|
public async Task<string> HQHSharePartSettledDetailDiffExportServiceMake( |
|
|
// customConditionList.Add(new CustomCondition() { Name = "Kanban", Value = input.Kanban });
|
|
|
HQKanbanRequestDto input |
|
|
// customConditionList.Add(new CustomCondition() { Name = "MaterialGroup", Value = string.IsNullOrEmpty(input.MaterialGroup) ? string.Empty : input.MaterialGroup });
|
|
|
) |
|
|
// customConditionList.Add(new CustomCondition() { Name = "SapCode", Value = string.IsNullOrEmpty(input.SapCode) ? string.Empty : input.SapCode });
|
|
|
{ |
|
|
// customConditionList.Add(new CustomCondition() { Name = "IsContainVersion", Value = input.IsContainVersion });
|
|
|
List<CustomCondition> customConditionList = new List<CustomCondition>(); |
|
|
// var _taskid = await _service.ExportEnqueueAsync("红旗未结核对", ExportExtentsion.Excel, input.Version, string.IsNullOrEmpty(input.MaterialGroup) ? string.Empty : input.MaterialGroup, CurrentUser, typeof(HQFactoryUnSettledDetailDiffExportService), customConditionList, (rs) =>
|
|
|
customConditionList.Add(new CustomCondition() { Name = "Version", Value = input.Version }); |
|
|
// {
|
|
|
|
|
|
// });
|
|
|
|
|
|
// return _taskid;
|
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
customConditionList.Add(new CustomCondition() { Name = "BeginTime", Value = input.Begin }); |
|
|
///// <summary>
|
|
|
customConditionList.Add(new CustomCondition() { Name = "EndTime", Value = input.End }); |
|
|
///// 红旗工厂备件明细
|
|
|
customConditionList.Add(new CustomCondition() { Name = "MaterialCode", Value = input.MaterialCode }); |
|
|
///// </summary>
|
|
|
customConditionList.Add(new CustomCondition() { Name = "AcceptNo", Value = input.AcceptNo }); |
|
|
///// <param name="input"></param>
|
|
|
customConditionList.Add(new CustomCondition() { Name = "WarehouseDesc", Value = input.WarehouseDesc }); |
|
|
///// <returns></returns>
|
|
|
customConditionList.Add(new CustomCondition() { Name = "Kanban", Value = input.Kanban }); |
|
|
//[HttpPost]
|
|
|
customConditionList.Add(new CustomCondition() { Name = "MaterialGroup", Value = string.IsNullOrEmpty(input.MaterialGroup) ? string.Empty : input.MaterialGroup }); |
|
|
//[Route("HQHSharePartSettledDetailDiffExportService")]
|
|
|
customConditionList.Add(new CustomCondition() { Name = "SapCode", Value = string.IsNullOrEmpty(input.SapCode) ? string.Empty : input.SapCode }); |
|
|
//[DisableRequestSizeLimit]
|
|
|
var _taskid = await _service.ExportEnqueueAsync("H平台备件核对明细", ExportExtentsion.Excel, input.Version, string.IsNullOrEmpty(input.MaterialGroup) ? string.Empty : input.MaterialGroup, CurrentUser, typeof(HQHSharePartSettledDetailDiffExportService), customConditionList, (rs) => |
|
|
//public async Task<string> HQHSharePartSettledDetailDiffExportServiceMake(
|
|
|
{ |
|
|
// HQKanbanRequestDto input
|
|
|
}); |
|
|
// )
|
|
|
return _taskid; |
|
|
//{
|
|
|
} |
|
|
// List<CustomCondition> customConditionList = new List<CustomCondition>();
|
|
|
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "Version", Value = input.Version });
|
|
|
|
|
|
|
|
|
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "BeginTime", Value = input.Begin });
|
|
|
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "EndTime", Value = input.End });
|
|
|
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "MaterialCode", Value = input.MaterialCode });
|
|
|
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "AcceptNo", Value = input.AcceptNo });
|
|
|
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "WarehouseDesc", Value = input.WarehouseDesc });
|
|
|
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "Kanban", Value = input.Kanban });
|
|
|
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "MaterialGroup", Value = string.IsNullOrEmpty(input.MaterialGroup) ? string.Empty : input.MaterialGroup });
|
|
|
|
|
|
// customConditionList.Add(new CustomCondition() { Name = "SapCode", Value = string.IsNullOrEmpty(input.SapCode) ? string.Empty : input.SapCode });
|
|
|
|
|
|
// var _taskid = await _service.ExportEnqueueAsync("H平台备件核对明细", ExportExtentsion.Excel, input.Version, string.IsNullOrEmpty(input.MaterialGroup) ? string.Empty : input.MaterialGroup, CurrentUser, typeof(HQHSharePartSettledDetailDiffExportService), customConditionList, (rs) =>
|
|
|
|
|
|
// {
|
|
|
|
|
|
// });
|
|
|
|
|
|
// return _taskid;
|
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[HttpPost] |
|
|
//[HttpPost]
|
|
|
[Route("FisUpdateExportService")] |
|
|
//[Route("FisUpdateExportService")]
|
|
|
[DisableRequestSizeLimit] |
|
|
//[DisableRequestSizeLimit]
|
|
|
[UnitOfWork(isTransactional: false)] |
|
|
//[UnitOfWork(isTransactional: false)]
|
|
|
public async Task<string> FisUpdateExportServiceMake( |
|
|
//public async Task<string> FisUpdateExportServiceMake(
|
|
|
HQKanbanRequestDto input |
|
|
// HQKanbanRequestDto input
|
|
|
) |
|
|
// )
|
|
|
{ |
|
|
//{
|
|
|
List<CustomCondition> customConditionList = new List<CustomCondition>(); |
|
|
// List<CustomCondition> customConditionList = new List<CustomCondition>();
|
|
|
customConditionList.Add(new CustomCondition() { Name = "Version", Value = input.Version }); |
|
|
// customConditionList.Add(new CustomCondition() { Name = "Version", Value = input.Version });
|
|
|
customConditionList.Add(new CustomCondition() { Name = "BeginTime", Value = input.Begin }); |
|
|
// customConditionList.Add(new CustomCondition() { Name = "BeginTime", Value = input.Begin });
|
|
|
customConditionList.Add(new CustomCondition() { Name = "EndTime", Value = input.End }); |
|
|
// customConditionList.Add(new CustomCondition() { Name = "EndTime", Value = input.End });
|
|
|
var _taskid = await _service.ExportEnqueueAsync("Fis发货数据更新状态", ExportExtentsion.Excel, input.Version, null, CurrentUser, typeof(FisUpdateExportService), customConditionList, (rs) => |
|
|
// var _taskid = await _service.ExportEnqueueAsync("Fis发货数据更新状态", ExportExtentsion.Excel, input.Version, null, CurrentUser, typeof(FisUpdateExportService), customConditionList, (rs) =>
|
|
|
{ |
|
|
// {
|
|
|
}); |
|
|
// });
|
|
|
return _taskid; |
|
|
// return _taskid;
|
|
|
} |
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
///// <summary>
|
|
|
/// 结算未结寄售核对表
|
|
|
///// 结算未结寄售核对表
|
|
|
/// </summary>
|
|
|
///// </summary>
|
|
|
/// <param name="files">上传的文件(前端已经限制只能上传一个附件)</param>
|
|
|
///// <param name="files">上传的文件(前端已经限制只能上传一个附件)</param>
|
|
|
/// <returns></returns>
|
|
|
///// <returns></returns>
|
|
|
[HttpPost] |
|
|
//[HttpPost]
|
|
|
[Route("UnSettledSum-Make")] |
|
|
//[Route("UnSettledSum-Make")]
|
|
|
[DisableRequestSizeLimit] |
|
|
//[DisableRequestSizeLimit]
|
|
|
[UnitOfWork(false)] |
|
|
//[UnitOfWork(false)]
|
|
|
public async Task<string> UnSettledSumServiceMake( |
|
|
//public async Task<string> UnSettledSumServiceMake(
|
|
|
|
|
|
|
|
|
BaseRequestDto input |
|
|
// BaseRequestDto input
|
|
|
|
|
|
|
|
|
) |
|
|
// )
|
|
|
{ |
|
|
//{
|
|
|
|
|
|
|
|
|
List<CustomCondition> customConditionList = new List<CustomCondition>(); |
|
|
// List<CustomCondition> customConditionList = new List<CustomCondition>();
|
|
|
customConditionList.Add(new CustomCondition() { Name = "Version", Value = !string.IsNullOrEmpty(input.Version) ? input.Version : string.Empty }); |
|
|
// customConditionList.Add(new CustomCondition() { Name = "Version", Value = !string.IsNullOrEmpty(input.Version) ? input.Version : string.Empty });
|
|
|
customConditionList.Add(new CustomCondition() { Name = "CustomerCode", Value = string.Empty }); |
|
|
// customConditionList.Add(new CustomCondition() { Name = "CustomerCode", Value = string.Empty });
|
|
|
customConditionList.Add(new CustomCondition() { Name = "MaterialCode", Value = !string.IsNullOrEmpty(input.MaterialCode) ? input.MaterialCode : string.Empty }); |
|
|
// customConditionList.Add(new CustomCondition() { Name = "MaterialCode", Value = !string.IsNullOrEmpty(input.MaterialCode) ? input.MaterialCode : string.Empty });
|
|
|
customConditionList.Add(new CustomCondition() { Name = "MaterialGroup", Value = !string.IsNullOrEmpty(input.MaterialGroup) ? input.MaterialGroup : string.Empty }); |
|
|
// customConditionList.Add(new CustomCondition() { Name = "MaterialGroup", Value = !string.IsNullOrEmpty(input.MaterialGroup) ? input.MaterialGroup : string.Empty });
|
|
|
customConditionList.Add(new CustomCondition() { Name = "SapMaterialCode", Value = string.Empty }); |
|
|
// customConditionList.Add(new CustomCondition() { Name = "SapMaterialCode", Value = string.Empty });
|
|
|
customConditionList.Add(new CustomCondition() { Name = "Begin", Value = string.IsNullOrEmpty(input.Begin) ? string.Empty : input.Begin }); |
|
|
// customConditionList.Add(new CustomCondition() { Name = "Begin", Value = string.IsNullOrEmpty(input.Begin) ? string.Empty : input.Begin });
|
|
|
customConditionList.Add(new CustomCondition() { Name = "End", Value = string.IsNullOrEmpty(input.End) ? string.Empty : input.End }); |
|
|
// customConditionList.Add(new CustomCondition() { Name = "End", Value = string.IsNullOrEmpty(input.End) ? string.Empty : input.End });
|
|
|
customConditionList.Add(new CustomCondition() { Name = "KennCode", Value = string.IsNullOrEmpty(input.Kenncode) ? string.Empty : input.Kenncode }); |
|
|
// customConditionList.Add(new CustomCondition() { Name = "KennCode", Value = string.IsNullOrEmpty(input.Kenncode) ? string.Empty : input.Kenncode });
|
|
|
customConditionList.Add(new CustomCondition() { Name = "ChassisNumber", Value = string.IsNullOrEmpty(input.ChassisNumber) ? string.Empty : input.ChassisNumber }); |
|
|
// customConditionList.Add(new CustomCondition() { Name = "ChassisNumber", Value = string.IsNullOrEmpty(input.ChassisNumber) ? string.Empty : input.ChassisNumber });
|
|
|
customConditionList.Add(new CustomCondition() { Name = "SapCode", Value = string.IsNullOrEmpty(input.SapCode) ? string.Empty : input.SapCode }); |
|
|
// customConditionList.Add(new CustomCondition() { Name = "SapCode", Value = string.IsNullOrEmpty(input.SapCode) ? string.Empty : input.SapCode });
|
|
|
var _taskid = await _service.ExportEnqueueAsync("结算未结寄售核对表", ExportExtentsion.Excel, input.Version, string.IsNullOrEmpty(input.MaterialGroup) ? string.Empty : input.MaterialGroup, CurrentUser, typeof(UnSettledSumService), customConditionList, (rs) => |
|
|
// var _taskid = await _service.ExportEnqueueAsync("结算未结寄售核对表", ExportExtentsion.Excel, input.Version, string.IsNullOrEmpty(input.MaterialGroup) ? string.Empty : input.MaterialGroup, CurrentUser, typeof(UnSettledSumService), customConditionList, (rs) =>
|
|
|
{ |
|
|
// {
|
|
|
}); |
|
|
// });
|
|
|
return _taskid; |
|
|
// return _taskid;
|
|
|
} |
|
|
//}
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
//#endregion
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|