Administrator 3 years ago
parent
commit
4c228f6c8c
  1. 12
      src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Permissions/SettleAccountPermissionDefinitionProvider.cs
  2. 22
      src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Permissions/SettleAccountPermissions.cs
  3. 4
      src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BT_Car/BT_Car_PlatformAppService.cs
  4. 2
      src/Modules/SettleAccount/src/SettleAccount.Application/Entities/CodeSettingTables/CodeSettingAppService.cs
  5. 2
      src/Modules/SettleAccount/src/SettleAccount.Application/Entities/Controls/CentralizedControlAppService.cs
  6. 4
      src/Modules/SettleAccount/src/SettleAccount.Application/Entities/HQ_F/HQ_F_PlatformAppService.cs
  7. 4
      src/Modules/SettleAccount/src/SettleAccount.Application/Entities/HQ_H/HQ_H_PlatformAppService.cs
  8. 4
      src/Modules/SettleAccount/src/SettleAccount.Application/Entities/HQ_M/HQ_M_PlatformAppService.cs
  9. 8
      src/Modules/SettleAccount/src/SettleAccount.Application/Entities/Invoices/InvoiceAppService.cs
  10. 2
      src/Modules/SettleAccount/src/SettleAccount.Application/Entities/Materials/MaterialAppService.cs
  11. 8
      src/Modules/SettleAccount/src/SettleAccount.Application/Entities/Prices/PriceListAppService.cs
  12. 18
      src/Modules/SettleAccount/src/SettleAccount.Application/Entities/SettleAccounts/SettleAccountAppService.cs
  13. 4
      src/Modules/SettleAccount/src/SettleAccount.Application/Entities/UnSettleAccounts/UnSettleAccountAppService.cs
  14. 5
      src/Modules/SettleAccount/src/SettleAccount.Application/Entities/VWKanBan/VWKanBanAppService.cs
  15. 4
      src/Modules/SettleAccount/src/SettleAccount.Application/Entities/VWScrapClaims/ScrapClaimsAppService.cs
  16. 3
      src/Modules/SettleAccount/src/SettleAccount.Application/Entities/VWSparePart/SparePartAppService.cs
  17. 4
      src/Modules/SettleAccount/src/SettleAccount.Application/Reports/ReportServices/ReportMakeService.cs
  18. 26
      src/Modules/SettleAccount/src/SettleAccount.Application/SettleAccount.Application.xml

12
src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Permissions/SettleAccountPermissionDefinitionProvider.cs

@ -67,6 +67,18 @@ namespace Win.Sfs.SettleAccount
unSettleAccount.AddChild(SettleAccountPermissions.UnSettleAccount.Update, L("Update")); unSettleAccount.AddChild(SettleAccountPermissions.UnSettleAccount.Update, L("Update"));
unSettleAccount.AddChild(SettleAccountPermissions.UnSettleAccount.Delete, L("Delete")); unSettleAccount.AddChild(SettleAccountPermissions.UnSettleAccount.Delete, L("Delete"));
//大众输出报表相关权限
var wmsjit = myGroup.AddPermission(SettleAccountPermissions.WMSJIT.Default, L("WMSJIT"));
wmsjit.AddChild(SettleAccountPermissions.WMSJIT.Create, L("Create"));
wmsjit.AddChild(SettleAccountPermissions.WMSJIT.Update, L("Update"));
wmsjit.AddChild(SettleAccountPermissions.WMSJIT.Delete, L("Delete"));
//红旗输出报表相关权限
var wmshq = myGroup.AddPermission(SettleAccountPermissions.WMSHQ.Default, L("WMSHQ"));
wmshq.AddChild(SettleAccountPermissions.WMSHQ.Create, L("Create"));
wmshq.AddChild(SettleAccountPermissions.WMSHQ.Update, L("Update"));
wmshq.AddChild(SettleAccountPermissions.WMSHQ.Delete, L("Delete"));
#endregion #endregion

22
src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Permissions/SettleAccountPermissions.cs

@ -14,6 +14,28 @@ namespace Win.Sfs.SettleAccount
#region 派格 #region 派格
/// <summary>
/// 大众输出报表权限
/// </summary>
public static class WMSJIT
{
public const string Default = GroupName + "." + nameof(WMSJIT);
public const string Create = Default + "." + CreateStr;
public const string Update = Default + "." + UpdateStr;
public const string Delete = Default + "." + DeleteStr;
}
/// <summary>
/// 红旗输出报表权限
/// </summary>
public static class WMSHQ
{
public const string Default = GroupName + "." + nameof(WMSHQ);
public const string Create = Default + "." + CreateStr;
public const string Update = Default + "." + UpdateStr;
public const string Delete = Default + "." + DeleteStr;
}
/// <summary> /// <summary>
/// 一汽轿车-权限 /// 一汽轿车-权限
/// </summary> /// </summary>

4
src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BT_Car/BT_Car_PlatformAppService.cs

@ -28,7 +28,7 @@ namespace Win.Sfs.SettleAccount.Entities.BT_Car
/// <summary> /// <summary>
/// 一汽轿车平台导入 /// 一汽轿车平台导入
/// </summary> /// </summary>
//[Authorize(SettleAccountPermissions.BT_Carlatform.Default)] [Authorize(SettleAccountPermissions.BT_Carlatform.Default)]
//[AllowAnonymous] //[AllowAnonymous]
[Route("api/settleaccount/BT_Carlatform")] [Route("api/settleaccount/BT_Carlatform")]
public class BT_Car_PlatformAppService : SettleAccountApplicationBase<BT_Car_Platform>, IBT_Car_PlatformAppService public class BT_Car_PlatformAppService : SettleAccountApplicationBase<BT_Car_Platform>, IBT_Car_PlatformAppService
@ -70,7 +70,7 @@ namespace Win.Sfs.SettleAccount.Entities.BT_Car
[HttpPost] [HttpPost]
[Route("ExcelImport")] [Route("ExcelImport")]
[DisableRequestSizeLimit] [DisableRequestSizeLimit]
//[Authorize(SettleAccountPermissions.SettleAccounts.Default)] [Authorize(SettleAccountPermissions.BT_Carlatform.Create)]
public async Task<string> BT_Car_PlatformUploadExcelImport([FromForm] IFormFileCollection files, Guid branchId, string year, string period, string version, string customerCode) public async Task<string> BT_Car_PlatformUploadExcelImport([FromForm] IFormFileCollection files, Guid branchId, string year, string period, string version, string customerCode)
{ {
ExportImporter _exportImporter = new ExportImporter(); ExportImporter _exportImporter = new ExportImporter();

2
src/Modules/SettleAccount/src/SettleAccount.Application/Entities/CodeSettingTables/CodeSettingAppService.cs

@ -31,7 +31,7 @@ namespace Win.Sfs.SettleAccount.Entities.CodeSettingTables
{ {
/// <summary> /// <summary>
/// 区域相关应用服务 /// 通用代码-相关应用服务
/// </summary> /// </summary>
[Authorize(SettleAccountPermissions.CodeSettings.Default)] [Authorize(SettleAccountPermissions.CodeSettings.Default)]

2
src/Modules/SettleAccount/src/SettleAccount.Application/Entities/Controls/CentralizedControlAppService.cs

@ -34,7 +34,7 @@ namespace Win.Sfs.SettleAccount.Entities.Controls
/// <summary> /// <summary>
/// 区域相关应用服务 /// 期间设置
/// </summary> /// </summary>
[Authorize(SettleAccountPermissions.CentralizedControls.Default)] [Authorize(SettleAccountPermissions.CentralizedControls.Default)]
//[AllowAnonymous] //[AllowAnonymous]

4
src/Modules/SettleAccount/src/SettleAccount.Application/Entities/HQ_F/HQ_F_PlatformAppService.cs

@ -28,7 +28,7 @@ namespace Win.Sfs.SettleAccount.Entities.HQ_F
/// <summary> /// <summary>
/// 红旗F平台导入 /// 红旗F平台导入
/// </summary> /// </summary>
//[Authorize(SettleAccountPermissions.HQ_FPlatform.Default)] [Authorize(SettleAccountPermissions.HQ_FPlatform.Default)]
//[AllowAnonymous] //[AllowAnonymous]
[Route("api/settleaccount/HQFPlatform")] [Route("api/settleaccount/HQFPlatform")]
public class HQ_F_PlatformAppService : SettleAccountApplicationBase<HQ_F_Platform>, IHQ_F_PlatformAppService public class HQ_F_PlatformAppService : SettleAccountApplicationBase<HQ_F_Platform>, IHQ_F_PlatformAppService
@ -70,7 +70,7 @@ namespace Win.Sfs.SettleAccount.Entities.HQ_F
[HttpPost] [HttpPost]
[Route("ExcelImport")] [Route("ExcelImport")]
[DisableRequestSizeLimit] [DisableRequestSizeLimit]
//[Authorize(SettleAccountPermissions.SettleAccounts.Default)] [Authorize(SettleAccountPermissions.HQ_FPlatform.Create)]
public async Task<string> HQ_F_PlatformUploadExcelImport([FromForm] IFormFileCollection files, Guid branchId, string year, string period, string version, string customerCode) public async Task<string> HQ_F_PlatformUploadExcelImport([FromForm] IFormFileCollection files, Guid branchId, string year, string period, string version, string customerCode)
{ {
ExportImporter _exportImporter = new ExportImporter(); ExportImporter _exportImporter = new ExportImporter();

4
src/Modules/SettleAccount/src/SettleAccount.Application/Entities/HQ_H/HQ_H_PlatformAppService.cs

@ -28,7 +28,7 @@ namespace Win.Sfs.SettleAccount.Entities.HQ_H
/// <summary> /// <summary>
/// 红旗H平台导入 /// 红旗H平台导入
/// </summary> /// </summary>
//[Authorize(SettleAccountPermissions.HQ_HPlatform.Default)] [Authorize(SettleAccountPermissions.HQ_HPlatform.Default)]
//[AllowAnonymous] //[AllowAnonymous]
[Route("api/settleaccount/HQHPlatform")] [Route("api/settleaccount/HQHPlatform")]
public class HQ_H_PlatformAppService : SettleAccountApplicationBase<HQ_H_Platform>, IHQ_H_PlatformAppService public class HQ_H_PlatformAppService : SettleAccountApplicationBase<HQ_H_Platform>, IHQ_H_PlatformAppService
@ -70,7 +70,7 @@ namespace Win.Sfs.SettleAccount.Entities.HQ_H
[HttpPost] [HttpPost]
[Route("ExcelImport")] [Route("ExcelImport")]
[DisableRequestSizeLimit] [DisableRequestSizeLimit]
//[Authorize(SettleAccountPermissions.SettleAccounts.Default)] [Authorize(SettleAccountPermissions.HQ_HPlatform.Create)]
public async Task<string> HQ_H_PlatformUploadExcelImport([FromForm] IFormFileCollection files, Guid branchId, string year, string period, string version, string customerCode) public async Task<string> HQ_H_PlatformUploadExcelImport([FromForm] IFormFileCollection files, Guid branchId, string year, string period, string version, string customerCode)
{ {
ExportImporter _exportImporter = new ExportImporter(); ExportImporter _exportImporter = new ExportImporter();

4
src/Modules/SettleAccount/src/SettleAccount.Application/Entities/HQ_M/HQ_M_PlatformAppService.cs

@ -28,7 +28,7 @@ namespace Win.Sfs.SettleAccount.Entities.HQ_M
/// <summary> /// <summary>
/// 红旗M平台导入 /// 红旗M平台导入
/// </summary> /// </summary>
//[Authorize(SettleAccountPermissions.HQ_MPlatform.Default)] [Authorize(SettleAccountPermissions.HQ_MPlatform.Default)]
//[AllowAnonymous] //[AllowAnonymous]
[Route("api/settleaccount/HQMPlatform")] [Route("api/settleaccount/HQMPlatform")]
public class HQ_M_PlatformAppService : SettleAccountApplicationBase<HQ_M_Platform>, IHQ_M_PlatformAppService public class HQ_M_PlatformAppService : SettleAccountApplicationBase<HQ_M_Platform>, IHQ_M_PlatformAppService
@ -70,7 +70,7 @@ namespace Win.Sfs.SettleAccount.Entities.HQ_M
[HttpPost] [HttpPost]
[Route("ExcelImport")] [Route("ExcelImport")]
[DisableRequestSizeLimit] [DisableRequestSizeLimit]
//[Authorize(SettleAccountPermissions.SettleAccounts.Default)] [Authorize(SettleAccountPermissions.HQ_MPlatform.Create)]
public async Task<string> HQ_M_PlatformUploadExcelImport([FromForm] IFormFileCollection files, Guid branchId, string year, string period, string version, string customerCode) public async Task<string> HQ_M_PlatformUploadExcelImport([FromForm] IFormFileCollection files, Guid branchId, string year, string period, string version, string customerCode)
{ {
ExportImporter _exportImporter = new ExportImporter(); ExportImporter _exportImporter = new ExportImporter();

8
src/Modules/SettleAccount/src/SettleAccount.Application/Entities/Invoices/InvoiceAppService.cs

@ -38,11 +38,11 @@ using Win.Utils;
namespace Win.Sfs.SettleAccount.Entities.Invoices namespace Win.Sfs.SettleAccount.Entities.Invoices
{ {
//[Authorize(SettleAccountPermissions.Invoices.Default)] /// <summary>
///
/// </summary>
//[AllowAnonymous]
[Route("api/settleaccount/Invoices")] [Route("api/settleaccount/Invoices")]
[Authorize(SettleAccountPermissions.Invoices.Default)]
public class InvoiceAppService : SettleAccountApplicationBase<Invoice>,IInvoiceAppService public class InvoiceAppService : SettleAccountApplicationBase<Invoice>,IInvoiceAppService
{ {

2
src/Modules/SettleAccount/src/SettleAccount.Application/Entities/Materials/MaterialAppService.cs

@ -41,7 +41,7 @@ namespace Win.Sfs.SettleAccount.Entities.Materials
{ {
/// <summary> /// <summary>
/// 区域相关应用服务 /// 物料主数据应用服务
/// </summary> /// </summary>
[Authorize(SettleAccountPermissions.Materials.Default)] [Authorize(SettleAccountPermissions.Materials.Default)]
//[AllowAnonymous] //[AllowAnonymous]

8
src/Modules/SettleAccount/src/SettleAccount.Application/Entities/Prices/PriceListAppService.cs

@ -21,11 +21,9 @@ using Win.Sfs.Shared.Filter;
namespace Win.Sfs.SettleAccount.Entities.Prices namespace Win.Sfs.SettleAccount.Entities.Prices
{ {
/// <summary> /// <summary>
/// 供应商相关应用服务 /// 标准价格单-相关应用服务
/// </summary> /// </summary>
[AllowAnonymous] [Authorize(SettleAccountPermissions.PriceLists.Default)]
//[Authorize(SettleAccountPermissions.PriceLists.Default)]
[Route("api/SettleAccount/PriceList")] [Route("api/SettleAccount/PriceList")]
public class PriceListAppService : ApplicationService public class PriceListAppService : ApplicationService
/*, IPriceListAppService*/ /*, IPriceListAppService*/
@ -158,7 +156,7 @@ namespace Win.Sfs.SettleAccount.Entities.Prices
/// <returns>是否导入成功</returns> /// <returns>是否导入成功</returns>
[HttpPost] [HttpPost]
[Route("ExcelImport-Map")] [Route("ExcelImport-Map")]
//[Authorize(SettleAccountPermissions.PriceLists.Create)] [Authorize(SettleAccountPermissions.PriceLists.Create)]
virtual public async Task<string> ImportAsync([FromForm] IFormFileCollection files,string version) virtual public async Task<string> ImportAsync([FromForm] IFormFileCollection files,string version)
{ {
ExportImporter _exportImporter = new ExportImporter(); ExportImporter _exportImporter = new ExportImporter();

18
src/Modules/SettleAccount/src/SettleAccount.Application/Entities/SettleAccounts/SettleAccountAppService.cs

@ -52,8 +52,8 @@ namespace Win.Sfs.SettleAccount.Entities.SettleAccounts
/// <summary> /// <summary>
/// 大众准时化结算明细导入-R3已结 /// 大众准时化结算明细导入-R3已结
/// </summary> /// </summary>
//[Authorize(SettleAccountPermissions.SettleAccounts.Default)] [Authorize(SettleAccountPermissions.SettleAccounts.Default)]
[AllowAnonymous] //[AllowAnonymous]
[Route("api/settleaccount/SettleAccount")] [Route("api/settleaccount/SettleAccount")]
public class SettleAccountAppService : SettleAccountApplicationBase<SettleAccount>, ISettleAccountAppService public class SettleAccountAppService : SettleAccountApplicationBase<SettleAccount>, ISettleAccountAppService
{ {
@ -261,9 +261,21 @@ namespace Win.Sfs.SettleAccount.Entities.SettleAccounts
}); });
return _taskid; return _taskid;
} }
/// <summary>
/// 导入功能
/// </summary>
/// <param name="files"></param>
/// <param name="branchId"></param>
/// <param name="year"></param>
/// <param name="period"></param>
/// <param name="version"></param>
/// <param name="customerCode"></param>
/// <param name="factory"></param>
/// <returns></returns>
[HttpPost] [HttpPost]
[Route("ExcelImport-PG")] [Route("ExcelImport-PG")]
[DisableRequestSizeLimit] [DisableRequestSizeLimit]
[Authorize(SettleAccountPermissions.SettleAccounts.Create)]
public async Task<string> SettleAccountUploadExcelImportTH([FromForm] IFormFileCollection files, Guid branchId, string year, string period, string version, string customerCode, string factory) public async Task<string> SettleAccountUploadExcelImportTH([FromForm] IFormFileCollection files, Guid branchId, string year, string period, string version, string customerCode, string factory)
{ {
@ -300,7 +312,7 @@ namespace Win.Sfs.SettleAccount.Entities.SettleAccounts
[HttpPost] [HttpPost]
[Route("ExcelImport")] [Route("ExcelImport")]
[DisableRequestSizeLimit] [DisableRequestSizeLimit]
[Authorize(SettleAccountPermissions.SettleAccounts.Default)] [Authorize(SettleAccountPermissions.SettleAccounts.Create)]
public async Task<string> SettleAccountUploadExcelImport([FromForm] IFormFileCollection files, Guid branchId, string year, string period, string version, string customerCode, string factory) public async Task<string> SettleAccountUploadExcelImport([FromForm] IFormFileCollection files, Guid branchId, string year, string period, string version, string customerCode, string factory)
{ {
List<SettleAccount> _setls = new List<SettleAccount>(); List<SettleAccount> _setls = new List<SettleAccount>();

4
src/Modules/SettleAccount/src/SettleAccount.Application/Entities/UnSettleAccounts/UnSettleAccountAppService.cs

@ -49,7 +49,7 @@ namespace Win.Sfs.SettleAccount.Entities.SettleAccounts
/// <summary> /// <summary>
///大众FIS未结算明细导入功能 ///大众FIS未结算明细导入功能
/// </summary> /// </summary>
//[Authorize(SettleAccountPermissions.SettleAccounts.Default)] [Authorize(SettleAccountPermissions.UnSettleAccount.Default)]
//[AllowAnonymous] //[AllowAnonymous]
[Route("api/settleaccount/UnSettleAccount")] [Route("api/settleaccount/UnSettleAccount")]
public class UnSettleAccountAppService : SettleAccountApplicationBase<UnSettleAccount>, IUnSettleAccountAppService public class UnSettleAccountAppService : SettleAccountApplicationBase<UnSettleAccount>, IUnSettleAccountAppService
@ -100,7 +100,7 @@ namespace Win.Sfs.SettleAccount.Entities.SettleAccounts
[HttpPost] [HttpPost]
[Route("ExcelImport")] [Route("ExcelImport")]
[DisableRequestSizeLimit] [DisableRequestSizeLimit]
//[Authorize(SettleAccountPermissions.SettleAccounts.Default)] [Authorize(SettleAccountPermissions.SettleAccounts.Create)]
public async Task<string> UnSettleAccountUploadExcelImport([FromForm] IFormFileCollection files, Guid branchId, public async Task<string> UnSettleAccountUploadExcelImport([FromForm] IFormFileCollection files, Guid branchId,
string year, string period, string version, string customerCode, string factory) string year, string period, string version, string customerCode, string factory)
{ {

5
src/Modules/SettleAccount/src/SettleAccount.Application/Entities/VWKanBan/VWKanBanAppService.cs

@ -30,8 +30,7 @@ namespace Win.Sfs.SettleAccount.Entities.VWKanBan
/// <summary> /// <summary>
/// 大众看板结算明细导入 /// 大众看板结算明细导入
/// </summary> /// </summary>
//[Authorize(SettleAccountPermissions.SettleAccounts.Default)] [Authorize(SettleAccountPermissions.VWKanBan.Default)]
//[AllowAnonymous]
[Route("api/settleaccount/VWKanBan")] [Route("api/settleaccount/VWKanBan")]
public class VWKanBanAppService : SettleAccountApplicationBase<KanBanSettle>, IVWKanBanAppService public class VWKanBanAppService : SettleAccountApplicationBase<KanBanSettle>, IVWKanBanAppService
{ {
@ -72,7 +71,7 @@ namespace Win.Sfs.SettleAccount.Entities.VWKanBan
[HttpPost] [HttpPost]
[Route("ExcelImport")] [Route("ExcelImport")]
[DisableRequestSizeLimit] [DisableRequestSizeLimit]
//[Authorize(SettleAccountPermissions.SettleAccounts.Default)] [Authorize(SettleAccountPermissions.SettleAccounts.Create)]
public async Task<string> VWKanBanUploadExcelImport([FromForm] IFormFileCollection files, Guid branchId, string year, string period, string version, string customerCode) public async Task<string> VWKanBanUploadExcelImport([FromForm] IFormFileCollection files, Guid branchId, string year, string period, string version, string customerCode)
{ {
if(string.IsNullOrEmpty(version)) if(string.IsNullOrEmpty(version))

4
src/Modules/SettleAccount/src/SettleAccount.Application/Entities/VWScrapClaims/ScrapClaimsAppService.cs

@ -28,7 +28,7 @@ namespace Win.Sfs.SettleAccount.Entities.VWScrapClaims
/// <summary> /// <summary>
/// 大众CP7报废和索赔导入 /// 大众CP7报废和索赔导入
/// </summary> /// </summary>
//[Authorize(SettleAccountPermissions.SettleAccounts.Default)] [Authorize(SettleAccountPermissions.ScrapClaims.Default)]
//[AllowAnonymous] //[AllowAnonymous]
[Route("api/settleaccount/ScrapClaims")] [Route("api/settleaccount/ScrapClaims")]
public class ScrapClaimsAppService : SettleAccountApplicationBase<ScrapClaims>, IScrapClaimsAppService public class ScrapClaimsAppService : SettleAccountApplicationBase<ScrapClaims>, IScrapClaimsAppService
@ -70,7 +70,7 @@ namespace Win.Sfs.SettleAccount.Entities.VWScrapClaims
[HttpPost] [HttpPost]
[Route("ExcelImport")] [Route("ExcelImport")]
[DisableRequestSizeLimit] [DisableRequestSizeLimit]
//[Authorize(SettleAccountPermissions.SettleAccounts.Default)] [Authorize(SettleAccountPermissions.ScrapClaims.Create)]
public async Task<string> ScrapClaimsUploadExcelImport([FromForm] IFormFileCollection files, Guid branchId, string year, string period, string version, string customerCode) public async Task<string> ScrapClaimsUploadExcelImport([FromForm] IFormFileCollection files, Guid branchId, string year, string period, string version, string customerCode)
{ {
ExportImporter _exportImporter = new ExportImporter(); ExportImporter _exportImporter = new ExportImporter();

3
src/Modules/SettleAccount/src/SettleAccount.Application/Entities/VWSparePart/SparePartAppService.cs

@ -30,6 +30,7 @@ namespace Win.Sfs.SettleAccount.Entities.VWSparePart
/// 大众备件服务 /// 大众备件服务
/// </summary> /// </summary>
[Route("api/settleaccount/SparePart")] [Route("api/settleaccount/SparePart")]
[Authorize(SettleAccountPermissions.SparePart.Default)]
public class SparePartAppService : SettleAccountApplicationBase<SparePart>, ISparePartAppService public class SparePartAppService : SettleAccountApplicationBase<SparePart>, ISparePartAppService
{ {
private readonly IGuidGenerator _guidGenerator; private readonly IGuidGenerator _guidGenerator;
@ -69,7 +70,7 @@ namespace Win.Sfs.SettleAccount.Entities.VWSparePart
[HttpPost] [HttpPost]
[Route("ExcelImport")] [Route("ExcelImport")]
[DisableRequestSizeLimit] [DisableRequestSizeLimit]
//[Authorize(SettleAccountPermissions.SettleAccounts.Default)] [Authorize(SettleAccountPermissions.SettleAccounts.Create)]
public async Task<string> SparePartUploadExcelImport([FromForm] IFormFileCollection files, Guid branchId, string year, string period, string version, string customerCode) public async Task<string> SparePartUploadExcelImport([FromForm] IFormFileCollection files, Guid branchId, string year, string period, string version, string customerCode)
{ {
if (string.IsNullOrEmpty(version)) if (string.IsNullOrEmpty(version))

4
src/Modules/SettleAccount/src/SettleAccount.Application/Reports/ReportServices/ReportMakeService.cs

@ -32,8 +32,8 @@ using Win.Sfs.SettleAccount.Reports.ReportRequestDto;
namespace Win.Sfs.SettleAccount.Reports.ReportServices namespace Win.Sfs.SettleAccount.Reports.ReportServices
{ {
//[Authorize(SettleAccountPermissions.Reports.Default)] [Authorize(SettleAccountPermissions.Reports.Default)]
[AllowAnonymous] //[AllowAnonymous]
[Route("api/settleaccount/ReportMakeService")] [Route("api/settleaccount/ReportMakeService")]
public class ReportService : ApplicationService public class ReportService : ApplicationService
{ {

26
src/Modules/SettleAccount/src/SettleAccount.Application/SettleAccount.Application.xml

@ -484,7 +484,7 @@
</member> </member>
<member name="T:Win.Sfs.SettleAccount.Entities.CodeSettingTables.CodeSettingAppService"> <member name="T:Win.Sfs.SettleAccount.Entities.CodeSettingTables.CodeSettingAppService">
<summary> <summary>
区域相关应用服务 通用代码-相关应用服务
</summary> </summary>
</member> </member>
<member name="M:Win.Sfs.SettleAccount.Entities.CodeSettingTables.CodeSettingAppService.#ctor(Volo.Abp.Guids.IGuidGenerator,Volo.Abp.ObjectMapping.IObjectMapper,Win.Sfs.SettleAccount.ISettleAccountBranchEfCoreRepository{Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting,System.Guid},Win.Sfs.SettleAccount.ISettleAccountBranchEfCoreRepository{Win.Sfs.SettleAccount.Entities.ImportMap.ImportColumnMap,System.Guid},Volo.Abp.Caching.IDistributedCache{Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting},Win.Sfs.BaseData.ImportExcelCommon.IExcelImportAppService,Win.Abp.Snowflakes.ISnowflakeIdGenerator,Win.Sfs.SettleAccount.CommonManagers.ICommonManager)"> <member name="M:Win.Sfs.SettleAccount.Entities.CodeSettingTables.CodeSettingAppService.#ctor(Volo.Abp.Guids.IGuidGenerator,Volo.Abp.ObjectMapping.IObjectMapper,Win.Sfs.SettleAccount.ISettleAccountBranchEfCoreRepository{Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting,System.Guid},Win.Sfs.SettleAccount.ISettleAccountBranchEfCoreRepository{Win.Sfs.SettleAccount.Entities.ImportMap.ImportColumnMap,System.Guid},Volo.Abp.Caching.IDistributedCache{Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting},Win.Sfs.BaseData.ImportExcelCommon.IExcelImportAppService,Win.Abp.Snowflakes.ISnowflakeIdGenerator,Win.Sfs.SettleAccount.CommonManagers.ICommonManager)">
@ -576,7 +576,7 @@
</member> </member>
<member name="T:Win.Sfs.SettleAccount.Entities.Controls.CentralizedControlAppService"> <member name="T:Win.Sfs.SettleAccount.Entities.Controls.CentralizedControlAppService">
<summary> <summary>
区域相关应用服务 期间设置
</summary> </summary>
</member> </member>
<member name="M:Win.Sfs.SettleAccount.Entities.Controls.CentralizedControlAppService.#ctor(Volo.Abp.Guids.IGuidGenerator,Volo.Abp.ObjectMapping.IObjectMapper,Win.Sfs.SettleAccount.ISettleAccountBranchEfCoreRepository{Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl,System.Guid},Volo.Abp.Caching.IDistributedCache{Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl},Win.Sfs.BaseData.ImportExcelCommon.IExcelImportAppService,Win.Abp.Snowflakes.ISnowflakeIdGenerator,Win.Sfs.SettleAccount.CommonManagers.ICommonManager)"> <member name="M:Win.Sfs.SettleAccount.Entities.Controls.CentralizedControlAppService.#ctor(Volo.Abp.Guids.IGuidGenerator,Volo.Abp.ObjectMapping.IObjectMapper,Win.Sfs.SettleAccount.ISettleAccountBranchEfCoreRepository{Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl,System.Guid},Volo.Abp.Caching.IDistributedCache{Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl},Win.Sfs.BaseData.ImportExcelCommon.IExcelImportAppService,Win.Abp.Snowflakes.ISnowflakeIdGenerator,Win.Sfs.SettleAccount.CommonManagers.ICommonManager)">
@ -978,6 +978,11 @@
<param name="input"></param> <param name="input"></param>
<returns></returns> <returns></returns>
</member> </member>
<member name="T:Win.Sfs.SettleAccount.Entities.Invoices.InvoiceAppService">
<summary>
</summary>
</member>
<member name="M:Win.Sfs.SettleAccount.Entities.Invoices.InvoiceAppService.#ctor(Win.Sfs.SettleAccount.ISettleAccountBranchEfCoreRepository{Win.Sfs.SettleAccount.Entities.Materials.Material,System.Guid},Win.Sfs.SettleAccount.ISettleAccountBranchEfCoreRepository{Win.Sfs.SettleAccount.Entities.Invoices.Invoice,System.Guid},Win.Sfs.SettleAccount.ISettleAccountBranchEfCoreRepository{Win.Sfs.SettleAccount.Entities.Invoices.InvoiceVersion,System.Guid},Volo.Abp.Caching.IDistributedCache{Win.Sfs.SettleAccount.Entities.Invoices.Invoice},Win.Sfs.BaseData.ImportExcelCommon.IExcelImportAppService,Win.Abp.Snowflakes.ISnowflakeIdGenerator,Win.Sfs.SettleAccount.CommonManagers.ICommonManager,Win.Sfs.SettleAccount.Entities.TaskJobs.TaskJobService)"> <member name="M:Win.Sfs.SettleAccount.Entities.Invoices.InvoiceAppService.#ctor(Win.Sfs.SettleAccount.ISettleAccountBranchEfCoreRepository{Win.Sfs.SettleAccount.Entities.Materials.Material,System.Guid},Win.Sfs.SettleAccount.ISettleAccountBranchEfCoreRepository{Win.Sfs.SettleAccount.Entities.Invoices.Invoice,System.Guid},Win.Sfs.SettleAccount.ISettleAccountBranchEfCoreRepository{Win.Sfs.SettleAccount.Entities.Invoices.InvoiceVersion,System.Guid},Volo.Abp.Caching.IDistributedCache{Win.Sfs.SettleAccount.Entities.Invoices.Invoice},Win.Sfs.BaseData.ImportExcelCommon.IExcelImportAppService,Win.Abp.Snowflakes.ISnowflakeIdGenerator,Win.Sfs.SettleAccount.CommonManagers.ICommonManager,Win.Sfs.SettleAccount.Entities.TaskJobs.TaskJobService)">
<summary> <summary>
构建方法 构建方法
@ -1219,7 +1224,7 @@
</member> </member>
<member name="T:Win.Sfs.SettleAccount.Entities.Materials.MaterialAppService"> <member name="T:Win.Sfs.SettleAccount.Entities.Materials.MaterialAppService">
<summary> <summary>
区域相关应用服务 物料主数据应用服务
</summary> </summary>
</member> </member>
<member name="M:Win.Sfs.SettleAccount.Entities.Materials.MaterialAppService.#ctor(Win.Sfs.SettleAccount.ISettleAccountBranchEfCoreRepository{Win.Sfs.SettleAccount.Entities.Materials.Material,System.Guid},Win.Sfs.SettleAccount.ISettleAccountBranchEfCoreRepository{Win.Sfs.SettleAccount.Entities.ImportMap.ImportColumnMap,System.Guid},Win.Sfs.SettleAccount.ISettleAccountBranchEfCoreRepository{Win.Sfs.SettleAccount.Boms.Bom,System.Guid},Win.Sfs.SettleAccount.ISettleAccountBranchEfCoreRepository{Win.Sfs.SettleAccount.Entities.Boms.BomVersion,System.Guid},Win.Sfs.SettleAccount.Entities.TaskJobs.TaskJobService,Win.Sfs.SettleAccount.ISettleAccountBranchEfCoreRepository{Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship,System.Guid},Win.Sfs.SettleAccount.ISettleAccountBranchEfCoreRepository{Win.Sfs.SettleAccount.Entities.Prices.PriceList,System.Guid},Win.Sfs.SettleAccount.ISettleAccountBranchEfCoreRepository{Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion,System.Guid},Volo.Abp.Caching.IDistributedCache{Win.Sfs.SettleAccount.Entities.Materials.Material},Win.Sfs.BaseData.ImportExcelCommon.IExcelImportAppService,Win.Abp.Snowflakes.ISnowflakeIdGenerator,Win.Sfs.SettleAccount.CommonManagers.ICommonManager)"> <member name="M:Win.Sfs.SettleAccount.Entities.Materials.MaterialAppService.#ctor(Win.Sfs.SettleAccount.ISettleAccountBranchEfCoreRepository{Win.Sfs.SettleAccount.Entities.Materials.Material,System.Guid},Win.Sfs.SettleAccount.ISettleAccountBranchEfCoreRepository{Win.Sfs.SettleAccount.Entities.ImportMap.ImportColumnMap,System.Guid},Win.Sfs.SettleAccount.ISettleAccountBranchEfCoreRepository{Win.Sfs.SettleAccount.Boms.Bom,System.Guid},Win.Sfs.SettleAccount.ISettleAccountBranchEfCoreRepository{Win.Sfs.SettleAccount.Entities.Boms.BomVersion,System.Guid},Win.Sfs.SettleAccount.Entities.TaskJobs.TaskJobService,Win.Sfs.SettleAccount.ISettleAccountBranchEfCoreRepository{Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship,System.Guid},Win.Sfs.SettleAccount.ISettleAccountBranchEfCoreRepository{Win.Sfs.SettleAccount.Entities.Prices.PriceList,System.Guid},Win.Sfs.SettleAccount.ISettleAccountBranchEfCoreRepository{Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion,System.Guid},Volo.Abp.Caching.IDistributedCache{Win.Sfs.SettleAccount.Entities.Materials.Material},Win.Sfs.BaseData.ImportExcelCommon.IExcelImportAppService,Win.Abp.Snowflakes.ISnowflakeIdGenerator,Win.Sfs.SettleAccount.CommonManagers.ICommonManager)">
@ -1311,7 +1316,7 @@
</member> </member>
<member name="T:Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService"> <member name="T:Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService">
<summary> <summary>
供应商相关应用服务 标准价格单-相关应用服务
</summary> </summary>
</member> </member>
<member name="M:Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.GetAsync(System.Guid)"> <member name="M:Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.GetAsync(System.Guid)">
@ -1497,6 +1502,19 @@
<param name="files">上传的文件(前端已经限制只能上传一个附件)</param> <param name="files">上传的文件(前端已经限制只能上传一个附件)</param>
<returns></returns> <returns></returns>
</member> </member>
<member name="M:Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccountAppService.SettleAccountUploadExcelImportTH(Microsoft.AspNetCore.Http.IFormFileCollection,System.Guid,System.String,System.String,System.String,System.String,System.String)">
<summary>
导入功能
</summary>
<param name="files"></param>
<param name="branchId"></param>
<param name="year"></param>
<param name="period"></param>
<param name="version"></param>
<param name="customerCode"></param>
<param name="factory"></param>
<returns></returns>
</member>
<member name="M:Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccountAppService.SettleAccountUploadExcelImport(Microsoft.AspNetCore.Http.IFormFileCollection,System.Guid,System.String,System.String,System.String,System.String,System.String)"> <member name="M:Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccountAppService.SettleAccountUploadExcelImport(Microsoft.AspNetCore.Http.IFormFileCollection,System.Guid,System.String,System.String,System.String,System.String,System.String)">
<summary> <summary>
导入功能 导入功能

Loading…
Cancel
Save