DocDicHelper.cs 705 B

12345678910111213141516171819202122232425262728293031
  1. using HH.YiDaSyncNC.Dtos.NC;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace HH.YiDaSyncNC.Helper
  8. {
  9. public class DocDicHelper
  10. {
  11. public Dictionary<string,string> _AppType;
  12. public string ContrastDoc(List<org_orgs> dataDic, string value)
  13. {
  14. var resData = "";
  15. if (!string.IsNullOrWhiteSpace(value))
  16. {
  17. var tempData = dataDic.FirstOrDefault(f => f.name == value);
  18. if (tempData != null)
  19. {
  20. resData = tempData.code;
  21. }
  22. }
  23. return resData;
  24. }
  25. }
  26. }