Welcome.razor 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. @using System.Text.RegularExpressions
  2. @using wispro.sp.web.Components
  3. @page "/Home"
  4. @attribute [Authorize]
  5. <PageContainer>
  6. <Breadcrumb>
  7. <Breadcrumb>
  8. <BreadcrumbItem><Icon Type="home" />首页</BreadcrumbItem>
  9. </Breadcrumb>
  10. </Breadcrumb>
  11. <Content>
  12. <div class="pageHeaderContent__b__0">
  13. <div class="avatar">
  14. <Avatar size="large" src="https://gw.alipayobjects.com/zos/antfincdn/XAosXuNZyF/BiazfanxmamNRoxxVxka.png" />
  15. </div>
  16. <div class="content">
  17. @if (_CurrentUser != null)
  18. {
  19. <div class="contentTitle">
  20. @(_CurrentUser.Name)好, 祝您一天愉快!
  21. </div>
  22. <div>
  23. 深圳威世博代理事务所 | 工作地:深圳
  24. </div>
  25. }
  26. </div>
  27. </div>
  28. </Content>
  29. <ExtraContent>
  30. @if (HandlingMonth != null)
  31. {
  32. <div class="statItem">
  33. <span>【@HandlingMonth.Year-@HandlingMonth.Month】月数据正在处理中,您有<a href="/MyCaseList">@waitingHandleItems</a>笔绩效数据需要处理!</span>
  34. </div>
  35. }
  36. <div class="statItem">
  37. <span>您的总绩效数据有:<a href="/MyCaseList">@allItems </a> </span>
  38. </div>
  39. </ExtraContent>
  40. <ChildContent>
  41. <Row Gutter="24">
  42. <AntDesign.Col Xl="24" Lg="24" Md="24" Sm="24" Xs="24">
  43. <Card BodyStyle="padding: 0px;" Class="activeCard">
  44. <CardTabs>
  45. <Tabs>
  46. <TabPane Key="1">
  47. <TabTemplate>信息动态</TabTemplate>
  48. <ChildContent>
  49. <AntList TItem="AppealRecord" DataSource="@AppealRecords"
  50. Class="activitiesList"
  51. Size="large"
  52. ItemLayout="ListItemLayout.Horizontal">
  53. <ListItem>
  54. <ListItemMeta Avatar="@context.Creater.Name" Description="@(context.ReviewTime.HasValue?context.ReviewTime.Value.ToFriendlyDisplay():context.CreateTime.ToFriendlyDisplay())">
  55. <TitleTemplate>
  56. <span>
  57. <span class="event">
  58. @if (context.ReviewTime.HasValue)
  59. {
  60. if (context.CreaterId == _CurrentUser.Userid)
  61. {
  62. <span>(@context.Reviewer.Name 在 @context.ReviewTime.Value.ToFriendlyDisplay() 审核了你提交的 @(context.Item==null?"":context.Item.CaseNo) @context.Type.Name")</span> }
  63. else
  64. {
  65. if (context.ReviewerId != _CurrentUser.Userid)
  66. {
  67. <span>(您在 @context.CreateTime.ToFriendlyDisplay()提交的 @(context.Item==null?"":context.Item.CaseNo) @context.Type.Name,@context.Reviewer.Name 已于 @context.ReviewTime.Value.ToFriendlyDisplay() 审核完成"</span>
  68. }
  69. }
  70. }
  71. else
  72. {
  73. if (context.CreaterId == _CurrentUser.Userid)
  74. {
  75. <span>您在 @context.CreateTime.ToFriendlyDisplay() 提交的 @(context.Item==null?"":context.Item.CaseNo) @context.Type.Name ,正在等待 @context.Reviewer.Name 审核!"</span>}
  76. else
  77. {
  78. <span>@context.Creater.Name 在 @context.CreateTime.ToFriendlyDisplay() 提交的 @(context.Item==null?"":context.Item.CaseNo) @context.Type.Name ,请您尽快<Button Danger Type="@ButtonType.Link" OnClick="()=>ShowModel(context)">审核</Button>!</span>
  79. }
  80. }
  81. </span>
  82. </span>
  83. </TitleTemplate>
  84. </ListItemMeta>
  85. </ListItem>
  86. </AntList>
  87. </ChildContent>
  88. </TabPane>
  89. @if (WaitingReviewProjects != null && WaitingReviewProjects.Count > 0)
  90. {
  91. <TabPane @key="2">
  92. <TabTemplate>待分配绩效专案</TabTemplate>
  93. <ChildContent>
  94. <AntDesign.Table TItem="ProjectInfo"
  95. DataSource="@WaitingReviewProjects"
  96. Bordered=@true
  97. Size=@TableSize.Middle
  98. HidePagination="@true">
  99. <RowTemplate>
  100. @*<Selection Key="@(context.ProjectNo)" />*@
  101. <AntDesign.Column Title="序号" TData="int" Width="60">
  102. @serialNumber(context)
  103. </AntDesign.Column>
  104. <AntDesign.Column Title="我方文号" @bind-Field="@context.CaseNo" Sortable Filterable />
  105. <AntDesign.Column Title="案件名称" @bind-Field="@context.CaseName" TData="string" Sortable Filterable />
  106. <AntDesign.Column Title="案件类型" @bind-Field="@context.CaseType" TData="string" Sortable Filterable />
  107. <AntDesign.Column Title="客户" DataIndex="Customer.Name" TData="string" Sortable Filterable />
  108. <AntDesign.Column Title="案件审核人" DataIndex="Reviewer.Name" TData="string" Sortable Filterable />
  109. <ActionColumn>
  110. <a href="/Project/Reviewer/@context.CaseNo">绩效分配</a>
  111. </ActionColumn>
  112. </RowTemplate>
  113. </AntDesign.Table>
  114. </ChildContent>
  115. </TabPane>
  116. }
  117. </Tabs>
  118. </CardTabs>
  119. </Card>
  120. </AntDesign.Col>
  121. </Row>
  122. </ChildContent>
  123. </PageContainer>