HttControlLogEntityPlus.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Linq;
  5. using System.Text;
  6. using Newtonsoft.Json;
  7. namespace Core.StlMes.Client.Mcp.Control.Entity
  8. {
  9. public class HttControlLogEntityPlus : HttControlLogEntity
  10. {
  11. /// <summary>
  12. /// 小时能力
  13. /// </summary>
  14. private string hrCapcty = "";
  15. /// <summary>
  16. /// GUID主键
  17. /// </summary>
  18. [Description("小时能力(支/小时)")]
  19. [JsonProperty("controlId")]
  20. public string HrCapcty
  21. {
  22. get { return hrCapcty; }
  23. set { hrCapcty = value; }
  24. }
  25. /// <summary>
  26. /// GUID主键
  27. /// </summary>
  28. [Description("小时节奏(支/小时)")]
  29. public double HrRhythm
  30. {
  31. get
  32. {
  33. double Product = 0d;
  34. double Num = 0d;
  35. if (double.TryParse(ProductTime, out Product) && double.TryParse(qualifiedNum.ToString3(), out Num))
  36. {
  37. return Math.Round(Num/Product*60d);
  38. }
  39. return 0;
  40. }
  41. }
  42. }
  43. }