版博士V2.0程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

49 rivejä
1.4 KiB

  1. using SqlSugar;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace Models
  8. {
  9. [SugarIndex("index_{table}_code", nameof(Step.Code), OrderByType.Asc, isUnique: true)]
  10. public class Step:BaseTable
  11. {
  12. /// <summary>
  13. /// 0-主控台 1-修复台
  14. /// </summary>
  15. public int Tag { get; set; }
  16. public string Code { get; set; }
  17. public string Name { get; set; }
  18. /// <summary>
  19. /// 新流程判断
  20. /// </summary>
  21. [SugarColumn(IsNullable = true)]
  22. public string ProcessType { get; set; }
  23. /// <summary>
  24. /// 开始计时工序索引1-n(0则不计时)
  25. /// </summary>
  26. public int StartTimeIndex { get; set; }
  27. [Navigate(NavigateType.OneToMany, nameof(StepProcess.Pid))]
  28. public List<StepProcess> ProcessList { get; set; }//注意禁止给books手动赋值,也不能new初始化,否则导航查询不到
  29. }
  30. public class StepProcess : BaseTable
  31. {
  32. public int Pid { get; set; }
  33. public int Order { get; set; } = 1;
  34. public string ProcessCode { get; set; }
  35. public string ProcessName { get; set; }
  36. /// <summary>
  37. /// json
  38. /// </summary>
  39. [SugarColumn(IsNullable = true, Length =2048)]
  40. public string ProcessParams { get; set; }
  41. }
  42. }