ParseFacilityTabCode.cs 810 B

12345678910111213141516171819202122232425262728293031
  1. /* ==============================================================================
  2. * 功能描述:ParseFacilityTabCode
  3. * 创 建 者:Garrett
  4. * 创建日期:2019/10/22 17:43:59
  5. * ==============================================================================*/
  6. using System;
  7. using System.IO;
  8. using Newtonsoft.Json;
  9. using SAGA.DotNetUtils.Serializer;
  10. namespace Saga.PlugIn.CreateFacility
  11. {
  12. /// <summary>
  13. /// ParseFacilityTabCode
  14. /// </summary>
  15. public class ParseFacilityTabCode
  16. {
  17. public static MFacilityTabCode Parse(string json)
  18. {
  19. try
  20. {
  21. return JsonConvert.DeserializeObject<MFacilityTabCode>(json);
  22. }
  23. catch (Exception e)
  24. {
  25. return null;
  26. }
  27. }
  28. }
  29. }