ReadMessage.razor.cs 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. using AntDesign;
  2. using Microsoft.AspNetCore.Components;
  3. using System;
  4. using System.Collections.Generic;
  5. using wispro.sp.web.Models;
  6. namespace wispro.sp.web.Pages.Project
  7. {
  8. public partial class ReadMessage
  9. {
  10. [Parameter]
  11. public int messageId { get; set; }
  12. [Inject] protected NavigationManager NavigationManager { get; set; }
  13. ITable table;
  14. int _pageIndex = 1;
  15. int _pageSize = 10;
  16. int _total = 0;
  17. bool _loading = false;
  18. wispro.sp.entity.StaffGrade EditingStaff = null;
  19. bool _visible = false;
  20. bool _isAdd = false;
  21. private ProjectMessage projectMessage = new ProjectMessage()
  22. {
  23. From ="系统",
  24. To= new List<MsgReadInfo>()
  25. {
  26. new(){Reciever = "钟子敏"}
  27. },
  28. MessageInfo ="系统已将专案数据导入,如下案件需要您分配点数,请尽快处理!",
  29. Type="专案点数分配任务通知",
  30. Tasks = new List<Models.Task>()
  31. {
  32. new(){
  33. ProjectInfo = new ProjectInfo(){
  34. CaseNo ="S2112394",
  35. CaseName ="美的-洗碗机专利调查",
  36. DoItem="提出报告",
  37. DoPerson=new List<string>(){"李申", "何倚雯", "王晴", "陆跃" },
  38. ResponseMan ="黄瑜"
  39. },
  40. Id =1,
  41. Name ="2021年9月专案点数分配任务",
  42. Type="专案点数分配任务",
  43. ResponseMan ="黄瑜",
  44. State="待处理",
  45. LimiteDate = DateTime.Now.AddDays(4),
  46. Handles= new List<TaskHandleInfo>()
  47. {
  48. new TaskHandleInfo(){Name = "分配点数",UIUrl="/Project/AssignPoint"}
  49. },
  50. //UIUrl = "/Project/AssignPoint"
  51. },
  52. new(){
  53. ProjectInfo = new ProjectInfo(){
  54. CaseNo ="S2112214",
  55. CaseName ="EV热管理项目",
  56. DoItem="提出报告",
  57. DoPerson=new List<string>(){"何倚雯", "王晴", "陆跃" },
  58. ResponseMan ="黄瑜"
  59. },
  60. Id =2,
  61. Name ="2021年9月专案点数分配任务",
  62. Type="专案点数分配任务",
  63. ResponseMan ="黄瑜",
  64. State="待处理",
  65. LimiteDate = DateTime.Now.AddDays(4),
  66. Handles= new List<TaskHandleInfo>()
  67. {
  68. new TaskHandleInfo(){Name = "分配点数",UIUrl="/Project/AssignPoint"}
  69. }
  70. }
  71. }
  72. };
  73. private void Handle(string UIUrl, int id)
  74. {
  75. NavigationManager.NavigateTo($"{UIUrl}/{id}");
  76. }
  77. }
  78. }