SyncKingdeeAppService.cs 1.6 KB

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