SyncKingdeeAppService.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. using Business.Domain;
  2. using Microsoft.Extensions.Configuration;
  3. using System;
  4. using System.Collections.Generic;
  5. using Volo.Abp.Application.Services;
  6. using Volo.Abp.DependencyInjection;
  7. using Volo.Abp.Domain.Repositories;
  8. using Volo.Abp.MultiTenancy;
  9. namespace Business.ResourceExamineManagement
  10. {
  11. public class SyncKingdeeAppService : ApplicationService, ISyncKingdeeAppService, ITransientDependency
  12. {
  13. private readonly ICurrentTenant _currentTenant;
  14. private readonly IRepository<in_kd_material,long> _mysql_ic_item;
  15. public SyncKingdeeAppService(IRepository<in_kd_material, long> mysql_ic_item, ICurrentTenant currentTenant)
  16. {
  17. _mysql_ic_item = mysql_ic_item;
  18. _currentTenant = currentTenant;
  19. }
  20. public string SyncSupplier()
  21. {
  22. IConfiguration configuration = new ConfigurationBuilder().SetBasePath(Environment.CurrentDirectory).AddJsonFile("appsettings.json").Build();
  23. var test111=configuration["AuthServer:Authority"];
  24. List<mes_technique> _Techniques= new List<mes_technique>();
  25. _Techniques.Add(new mes_technique { level = 1, tech_name = "1111" });
  26. _Techniques.Add(new mes_technique { level = 2, tech_name = "2222" });
  27. _Techniques.Add(new mes_technique { level = 3, tech_name = "333" });
  28. return "";
  29. }
  30. public string SyncMaterial()
  31. {
  32. throw new NotImplementedException();
  33. }
  34. }
  35. }