|
|
@ -1,4 +1,4 @@ |
|
|
|
using Magicodes.ExporterAndImporter.Excel; |
|
|
|
using Magicodes.ExporterAndImporter.Excel; |
|
|
|
using Microsoft.AspNetCore.Authorization; |
|
|
|
|
|
|
|
using Microsoft.AspNetCore.Http; |
|
|
@ -73,259 +73,259 @@ namespace Win.Sfs.SettleAccount.Reports.ReportServices |
|
|
|
_invoiceVersionRepository = invoiceVersionRepository; |
|
|
|
_fisVersionrepository = fisVersionrepository; |
|
|
|
_itemInvoicePriceVersionrepository = itemInvoicePriceVersionrepository; |
|
|
|
|
|
|
|
|
|
|
|
_service = service; |
|
|
|
} |
|
|
|
|
|
|
|
#region 派格大众看板-备件结算报表
|
|
|
|
//#region 派格大众看板-备件结算报表
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 大众准时化结算门板价格差异比对报表
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="materialCode">客户物料号</param>
|
|
|
|
/// <param name="version">版本</param>
|
|
|
|
/// <param name="customerCode"></param>
|
|
|
|
/// <param name="sapCode">厂内物料号</param>
|
|
|
|
/// <param name="estimateTypeDesc">物料组</param>
|
|
|
|
/// <returns></returns>
|
|
|
|
[HttpPost] |
|
|
|
[Route("SettleDoorPanel")] |
|
|
|
[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] |
|
|
|
///// <summary>
|
|
|
|
///// 大众准时化结算门板价格差异比对报表
|
|
|
|
///// </summary>
|
|
|
|
///// <param name="materialCode">客户物料号</param>
|
|
|
|
///// <param name="version">版本</param>
|
|
|
|
///// <param name="customerCode"></param>
|
|
|
|
///// <param name="sapCode">厂内物料号</param>
|
|
|
|
///// <param name="estimateTypeDesc">物料组</param>
|
|
|
|
///// <returns></returns>
|
|
|
|
//[HttpPost]
|
|
|
|
//[Route("SettleDoorPanel")]
|
|
|
|
//[DisableRequestSizeLimit]
|
|
|
|
|
|
|
|
public async Task<string> SettledKanBanWithOutCode(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(SettleKBWithOutCodeExportService), customConditionList, (rs) => |
|
|
|
{ |
|
|
|
}); |
|
|
|
return _taskid; |
|
|
|
} |
|
|
|
#region 大众备件0-90天和90天以上输出
|
|
|
|
//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]
|
|
|
|
|
|
|
|
/// <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> 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;
|
|
|
|
//}
|
|
|
|
|
|
|
|
public async Task<string> SettledSparePart90(string purchaseOrderNo, string sapCode, string version, string customerCode, string factory, string matialCode, |
|
|
|
string state, DateTime begin, DateTime end) |
|
|
|
{ |
|
|
|
//[HttpPost]
|
|
|
|
//[Route("SettleKanBan-WithOutCode")]
|
|
|
|
//[DisableRequestSizeLimit]
|
|
|
|
|
|
|
|
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() }); |
|
|
|
//public async Task<string> SettledKanBanWithOutCode(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(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]
|
|
|
|
|
|
|
|
}); |
|
|
|
return _taskid; |
|
|
|
} |
|
|
|
//public async Task<string> SettledSparePart90(string purchaseOrderNo, string sapCode, string version, string customerCode, string factory, string matialCode,
|
|
|
|
// string state, DateTime begin, DateTime end)
|
|
|
|
//{
|
|
|
|
|
|
|
|
/// <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("SettleSparePartExport")] |
|
|
|
[DisableRequestSizeLimit] |
|
|
|
// 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(SettleSparePart90ExportService), 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) |
|
|
|
{ |
|
|
|
// });
|
|
|
|
// return _taskid;
|
|
|
|
//}
|
|
|
|
|
|
|
|
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() }); |
|
|
|
///// <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("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)
|
|
|
|
//{
|
|
|
|
|
|
|
|
}); |
|
|
|
return _taskid; |
|
|
|
} |
|
|
|
// 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(SettleSparePartExportService), 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("UnSettleSparePartExport")] |
|
|
|
[DisableRequestSizeLimit] |
|
|
|
// });
|
|
|
|
// return _taskid;
|
|
|
|
//}
|
|
|
|
|
|
|
|
public async Task<string> UnSettledSparePart(string purchaseOrderNo, string sapCode, string version, string customerCode, string factory, string matialCode, |
|
|
|
string state, DateTime begin, DateTime end) |
|
|
|
{ |
|
|
|
///// <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("UnSettleSparePartExport")]
|
|
|
|
//[DisableRequestSizeLimit]
|
|
|
|
|
|
|
|
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() }); |
|
|
|
//public async Task<string> UnSettledSparePart(string purchaseOrderNo, string sapCode, string version, string customerCode, string factory, string matialCode,
|
|
|
|
// string state, DateTime begin, DateTime end)
|
|
|
|
//{
|
|
|
|
|
|
|
|
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; |
|
|
|
} |
|
|
|
#endregion
|
|
|
|
/// <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("SettleSparePartExportExtend")] |
|
|
|
[DisableRequestSizeLimit] |
|
|
|
// });
|
|
|
|
// return _taskid;
|
|
|
|
//}
|
|
|
|
//#endregion
|
|
|
|
///// <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("SettleSparePartExportExtend")]
|
|
|
|
//[DisableRequestSizeLimit]
|
|
|
|
|
|
|
|
public async Task<string> SettledSparePartExtend(string purchaseOrderNo, string sapCode, string version, string customerCode, string factory, string matialCode, |
|
|
|
string state, DateTime begin, DateTime end) |
|
|
|
{ |
|
|
|
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 ?? "0" }); |
|
|
|
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) => |
|
|
|
{ |
|
|
|
//public async Task<string> SettledSparePartExtend(string purchaseOrderNo, string sapCode, string version, string customerCode, string factory, string matialCode,
|
|
|
|
// string state, DateTime begin, DateTime end)
|
|
|
|
//{
|
|
|
|
// 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 ?? "0" });
|
|
|
|
// 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) =>
|
|
|
|
// {
|
|
|
|
|
|
|
|
}); |
|
|
|
return _taskid; |
|
|
|
} |
|
|
|
#endregion
|
|
|
|
// });
|
|
|
|
// return _taskid;
|
|
|
|
//}
|
|
|
|
//#endregion
|
|
|
|
|
|
|
|
[HttpGet] |
|
|
|
[Route("SharePartUnSettledExport")] |
|
|
@ -692,189 +692,189 @@ namespace Win.Sfs.SettleAccount.Reports.ReportServices |
|
|
|
// return _taskid;
|
|
|
|
//}
|
|
|
|
|
|
|
|
#region 红旗、一汽轿车的输出报表
|
|
|
|
//#region 红旗、一汽轿车的输出报表
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
///红旗工厂核对明细
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="files">上传的文件(前端已经限制只能上传一个附件)</param>
|
|
|
|
/// <returns></returns>
|
|
|
|
[HttpPost] |
|
|
|
[Route("HQHSettledDetailDiffExportService")] |
|
|
|
[DisableRequestSizeLimit] |
|
|
|
[UnitOfWork(false)] |
|
|
|
public async Task<string> HQHSettledDetailDiffExportServiceMake( |
|
|
|
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; |
|
|
|
} |
|
|
|
///// <summary>
|
|
|
|
/////红旗工厂核对明细
|
|
|
|
///// </summary>
|
|
|
|
///// <param name="files">上传的文件(前端已经限制只能上传一个附件)</param>
|
|
|
|
///// <returns></returns>
|
|
|
|
//[HttpPost]
|
|
|
|
//[Route("HQHSettledDetailDiffExportService")]
|
|
|
|
//[DisableRequestSizeLimit]
|
|
|
|
//[UnitOfWork(false)]
|
|
|
|
//public async Task<string> HQHSettledDetailDiffExportServiceMake(
|
|
|
|
// 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;
|
|
|
|
//}
|
|
|
|
|
|
|
|
/// <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>(); |
|
|
|
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 }); |
|
|
|
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>
|
|
|
|
/////红旗工厂未结明细
|
|
|
|
///// </summary>
|
|
|
|
///// <param name="files">上传的文件(前端已经限制只能上传一个附件)</param>
|
|
|
|
///// <returns></returns>
|
|
|
|
//[HttpPost]
|
|
|
|
//[Route("HQHUnSettledDetailDiffExportService")]
|
|
|
|
//[DisableRequestSizeLimit]
|
|
|
|
//public async Task<string> HQHUnSettledDetailDiffExportServiceMake(
|
|
|
|
// HQKanbanRequestDto input
|
|
|
|
// )
|
|
|
|
//{
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
///红旗未结核对
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="files">上传的文件(前端已经限制只能上传一个附件)</param>
|
|
|
|
/// <returns></returns>
|
|
|
|
[HttpPost] |
|
|
|
[Route("HQFactoryUnSettledDetailDiffExportService")] |
|
|
|
[DisableRequestSizeLimit] |
|
|
|
public async Task<string> HQFactoryUnSettledDetailDiffExportService( |
|
|
|
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 });
|
|
|
|
// 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>(); |
|
|
|
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 }); |
|
|
|
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>
|
|
|
|
/////红旗未结核对
|
|
|
|
///// </summary>
|
|
|
|
///// <param name="files">上传的文件(前端已经限制只能上传一个附件)</param>
|
|
|
|
///// <returns></returns>
|
|
|
|
//[HttpPost]
|
|
|
|
//[Route("HQFactoryUnSettledDetailDiffExportService")]
|
|
|
|
//[DisableRequestSizeLimit]
|
|
|
|
//public async Task<string> HQFactoryUnSettledDetailDiffExportService(
|
|
|
|
// HQKanbanRequestDto input
|
|
|
|
// )
|
|
|
|
//{
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 红旗工厂备件明细
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="input"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
[HttpPost] |
|
|
|
[Route("HQHSharePartSettledDetailDiffExportService")] |
|
|
|
[DisableRequestSizeLimit] |
|
|
|
public async Task<string> HQHSharePartSettledDetailDiffExportServiceMake( |
|
|
|
HQKanbanRequestDto input |
|
|
|
) |
|
|
|
{ |
|
|
|
List<CustomCondition> customConditionList = new List<CustomCondition>(); |
|
|
|
customConditionList.Add(new CustomCondition() { Name = "Version", Value = input.Version }); |
|
|
|
// 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 });
|
|
|
|
// 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;
|
|
|
|
//}
|
|
|
|
|
|
|
|
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; |
|
|
|
} |
|
|
|
///// <summary>
|
|
|
|
///// 红旗工厂备件明细
|
|
|
|
///// </summary>
|
|
|
|
///// <param name="input"></param>
|
|
|
|
///// <returns></returns>
|
|
|
|
//[HttpPost]
|
|
|
|
//[Route("HQHSharePartSettledDetailDiffExportService")]
|
|
|
|
//[DisableRequestSizeLimit]
|
|
|
|
//public async Task<string> HQHSharePartSettledDetailDiffExportServiceMake(
|
|
|
|
// HQKanbanRequestDto input
|
|
|
|
// )
|
|
|
|
//{
|
|
|
|
// 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] |
|
|
|
[Route("FisUpdateExportService")] |
|
|
|
[DisableRequestSizeLimit] |
|
|
|
[UnitOfWork(isTransactional: false)] |
|
|
|
public async Task<string> FisUpdateExportServiceMake( |
|
|
|
HQKanbanRequestDto input |
|
|
|
) |
|
|
|
{ |
|
|
|
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 }); |
|
|
|
var _taskid = await _service.ExportEnqueueAsync("Fis发货数据更新状态", ExportExtentsion.Excel, input.Version, null, CurrentUser, typeof(FisUpdateExportService), customConditionList, (rs) => |
|
|
|
{ |
|
|
|
}); |
|
|
|
return _taskid; |
|
|
|
} |
|
|
|
//[HttpPost]
|
|
|
|
//[Route("FisUpdateExportService")]
|
|
|
|
//[DisableRequestSizeLimit]
|
|
|
|
//[UnitOfWork(isTransactional: false)]
|
|
|
|
//public async Task<string> FisUpdateExportServiceMake(
|
|
|
|
// HQKanbanRequestDto input
|
|
|
|
// )
|
|
|
|
//{
|
|
|
|
// 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 });
|
|
|
|
// var _taskid = await _service.ExportEnqueueAsync("Fis发货数据更新状态", ExportExtentsion.Excel, input.Version, null, CurrentUser, typeof(FisUpdateExportService), customConditionList, (rs) =>
|
|
|
|
// {
|
|
|
|
// });
|
|
|
|
// return _taskid;
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 结算未结寄售核对表
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="files">上传的文件(前端已经限制只能上传一个附件)</param>
|
|
|
|
/// <returns></returns>
|
|
|
|
[HttpPost] |
|
|
|
[Route("UnSettledSum-Make")] |
|
|
|
[DisableRequestSizeLimit] |
|
|
|
[UnitOfWork(false)] |
|
|
|
public async Task<string> UnSettledSumServiceMake( |
|
|
|
///// <summary>
|
|
|
|
///// 结算未结寄售核对表
|
|
|
|
///// </summary>
|
|
|
|
///// <param name="files">上传的文件(前端已经限制只能上传一个附件)</param>
|
|
|
|
///// <returns></returns>
|
|
|
|
//[HttpPost]
|
|
|
|
//[Route("UnSettledSum-Make")]
|
|
|
|
//[DisableRequestSizeLimit]
|
|
|
|
//[UnitOfWork(false)]
|
|
|
|
//public async Task<string> UnSettledSumServiceMake(
|
|
|
|
|
|
|
|
BaseRequestDto input |
|
|
|
// BaseRequestDto input
|
|
|
|
|
|
|
|
) |
|
|
|
{ |
|
|
|
// )
|
|
|
|
//{
|
|
|
|
|
|
|
|
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 = "CustomerCode", Value = 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 = "SapMaterialCode", Value = string.Empty }); |
|
|
|
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 = "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 = "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) => |
|
|
|
{ |
|
|
|
}); |
|
|
|
return _taskid; |
|
|
|
} |
|
|
|
// 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 = "CustomerCode", Value = 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 = "SapMaterialCode", Value = string.Empty });
|
|
|
|
// 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 = "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 = "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) =>
|
|
|
|
// {
|
|
|
|
// });
|
|
|
|
// return _taskid;
|
|
|
|
//}
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
//#endregion
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|