SyncKingdeeAppService.cs 1.5 KB

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