ApprovalProcessDto.cs 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. using OASystem.Domain.ViewModels.System;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace OASystem.Domain.Dtos.System
  8. {
  9. /// <summary>
  10. /// 审核模板Dto
  11. /// </summary>
  12. public class ApprovalProcessDto : AuditTemplateView
  13. {
  14. public int CurrUserId { get; set; }
  15. public ApprovalProcessDto() { }
  16. /// <summary>
  17. /// 物资领用-其他物品
  18. /// </summary>
  19. public static ApprovalProcessDto AuditTempOtherGoods()
  20. {
  21. var tempInfo = new ApprovalProcessDto()
  22. {
  23. TemplateName = $"物资进销存领用审批-其他物品模板",
  24. TemplateCode = $"InvAppTplCode-001‌",
  25. BusinessType = 1,
  26. Status = 1,
  27. CurrUserId = 208,
  28. TempNodes = new List<AuditTemplateNodeView>() {
  29. new AuditTemplateNodeView(){
  30. TemplateId = 0,
  31. NodeName="前台审核",
  32. NodeOrder = 0,
  33. ApproveType=2,
  34. IsRequired=true,
  35. NodeUsers = new List<AuditTemplateNodeUserView>(){
  36. new(){ NodeId = 0 ,UserId = 374,UserName = $"罗颖" }
  37. }
  38. }
  39. }
  40. };
  41. return tempInfo;
  42. }
  43. /// <summary>
  44. /// 物资领用-贵重物品
  45. /// </summary>
  46. public static ApprovalProcessDto AuditTempValuableGoods()
  47. {
  48. var tempInfo = new ApprovalProcessDto()
  49. {
  50. TemplateName = $"物资进销存领用审批-贵重物品模板",
  51. TemplateCode = $"InvAppTplCode-002‌",
  52. BusinessType = 1,
  53. Status = 1,
  54. CurrUserId = 208,
  55. TempNodes = new List<AuditTemplateNodeView>() {
  56. new AuditTemplateNodeView(){
  57. TemplateId = 0,
  58. NodeName = "前台审核",
  59. NodeOrder = 0,
  60. ApproveType = 2,
  61. IsRequired = true,
  62. NodeUsers = new List<AuditTemplateNodeUserView>(){
  63. new (){ NodeId = 0 ,UserId = 374,UserName = $"罗颖" }
  64. }
  65. },
  66. new AuditTemplateNodeView(){
  67. TemplateId = 0,
  68. NodeName = "人事部主管/经理审核",
  69. NodeOrder = 1,
  70. ApproveType = 2,
  71. IsRequired = true,
  72. NodeUsers = new List<AuditTemplateNodeUserView>(){
  73. new (){ NodeId = 0 ,UserId = 343,UserName = $"陈湘" }
  74. }
  75. }
  76. }
  77. };
  78. return tempInfo;
  79. }
  80. }
  81. }