Browse Source

创建个性导出表

master
郑渤旭[Irelia] 1 year ago
parent
commit
6755c16d7d
  1. 2
      Code/Be/Faster.Zheng.Winin/src/Faster.Zheng.Winin.Application.Contracts/AppBusiness/TestSchool/Dtos/CreateUpdateTestSchoolDto.cs
  2. 2
      Code/Be/Faster.Zheng.Winin/src/Faster.Zheng.Winin.Application.Contracts/AppBusiness/TestSchool/Dtos/CreateUpdateTestStudentDetailDto.cs
  3. 2
      Code/Be/Faster.Zheng.Winin/src/Faster.Zheng.Winin.Application.Contracts/AppBusiness/TestSchool/Dtos/TestSchoolDto.cs
  4. 2
      Code/Be/Faster.Zheng.Winin/src/Faster.Zheng.Winin.Application.Contracts/AppBusiness/TestSchool/Dtos/TestStudentDetailDto.cs
  5. 14
      Code/Be/Faster.Zheng.Winin/src/Faster.Zheng.Winin.Domain.Shared/Enums/Enum_ExportCustomUserSetting.cs
  6. 2
      Code/Be/Faster.Zheng.Winin/src/Faster.Zheng.Winin.Domain.Shared/Enums/Enum_SchoolType.cs
  7. 2
      Code/Be/Faster.Zheng.Winin/src/Faster.Zheng.Winin.Domain.Shared/Enums/Enum_StudentType.cs
  8. 16
      Code/Be/Faster.Zheng.Winin/src/Faster.Zheng.Winin.Domain/AppBusiness/ExportCustomUser/ExportCustomUser.cs
  9. 42
      Code/Be/Faster.Zheng.Winin/src/Faster.Zheng.Winin.Domain/AppBusiness/ExportCustomUserSetting/ExportCustomUserSetting.cs
  10. 4
      Code/Be/Faster.Zheng.Winin/src/Faster.Zheng.Winin.Domain/AppBusiness/TestSchool/TestSchool.cs
  11. 2
      Code/Be/Faster.Zheng.Winin/src/Faster.Zheng.Winin.Domain/AppBusiness/TestSchool/TestStudentDetail.cs
  12. 2
      Code/Be/Faster.Zheng.Winin/src/Faster.Zheng.Winin.Web/Pages/AppBusiness/TestSchool/TestSchool/ViewModels/CreateEditTestSchoolViewModel.cs
  13. 2
      Code/Be/Faster.Zheng.Winin/src/Faster.Zheng.Winin.Web/Pages/AppBusiness/TestSchool/TestStudentDetail/ViewModels/CreateEditTestStudentDetailViewModel.cs

2
Code/Be/Faster.Zheng.Winin/src/Faster.Zheng.Winin.Application.Contracts/AppBusiness/TestSchool/Dtos/CreateUpdateTestSchoolDto.cs

@ -16,7 +16,7 @@ public class CreateUpdateTestSchoolDto
/// <summary>
///
/// </summary>
public SchoolType OrderType { get; set; }
public Enum_SchoolType OrderType { get; set; }
/// <summary>
///

2
Code/Be/Faster.Zheng.Winin/src/Faster.Zheng.Winin.Application.Contracts/AppBusiness/TestSchool/Dtos/CreateUpdateTestStudentDetailDto.cs

@ -19,5 +19,5 @@ public class CreateUpdateTestStudentDetailDto
/// <summary>
///
/// </summary>
public StudentType OrderType { get; set; }
public Enum_StudentType OrderType { get; set; }
}

2
Code/Be/Faster.Zheng.Winin/src/Faster.Zheng.Winin.Application.Contracts/AppBusiness/TestSchool/Dtos/TestSchoolDto.cs

@ -20,7 +20,7 @@ public class TestSchoolDto : AuditedEntityDto<Guid>
/// <summary>
///
/// </summary>
public SchoolType OrderType { get; set; }
public Enum_SchoolType OrderType { get; set; }
/// <summary>
///

2
Code/Be/Faster.Zheng.Winin/src/Faster.Zheng.Winin.Application.Contracts/AppBusiness/TestSchool/Dtos/TestStudentDetailDto.cs

@ -23,5 +23,5 @@ public class TestStudentDetailDto : AuditedEntityDto<Guid>
/// <summary>
///
/// </summary>
public StudentType OrderType { get; set; }
public Enum_StudentType OrderType { get; set; }
}

14
Code/Be/Faster.Zheng.Winin/src/Faster.Zheng.Winin.Domain.Shared/Enums/Enum_ExportCustomUserSetting.cs

@ -0,0 +1,14 @@
using System.ComponentModel.DataAnnotations;
namespace Faster.Zheng.Winin.Enums
{
public enum Enum_ExportCustomUserSetting
{
[Display(Name = "未定义")]
None=0,
[Display(Name = "导出")]
Yes=1,
[Display(Name = "不导出")]
No = 2
}
}

2
Code/Be/Faster.Zheng.Winin/src/Faster.Zheng.Winin.Domain.Shared/Enums/SchoolType.cs → Code/Be/Faster.Zheng.Winin/src/Faster.Zheng.Winin.Domain.Shared/Enums/Enum_SchoolType.cs

@ -2,7 +2,7 @@
namespace Faster.Zheng.Winin.Enums
{
public enum SchoolType
public enum Enum_SchoolType
{
[Display(Name = "未定义")]
None=0,

2
Code/Be/Faster.Zheng.Winin/src/Faster.Zheng.Winin.Domain.Shared/Enums/StudentType.cs → Code/Be/Faster.Zheng.Winin/src/Faster.Zheng.Winin.Domain.Shared/Enums/Enum_StudentType.cs

@ -2,7 +2,7 @@
namespace Faster.Zheng.Winin.Enums
{
public enum StudentType
public enum Enum_StudentType
{
[Display(Name = "未定义")]
None=0,

16
Code/Be/Faster.Zheng.Winin/src/Faster.Zheng.Winin.Domain/AppBusiness/ExportCustomUser/ExportCustomUser.cs

@ -1,16 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities.Auditing;
namespace Faster.Zheng.Winin.AppBusiness.AppExportUser
{
public class ExportCustomUser :AuditedAggregateRoot<Guid>
{
public string ExportUserId { get; set; }
public string ExportColumnName { get; set; }
public string ExportTableName { get; set; }
}
}

42
Code/Be/Faster.Zheng.Winin/src/Faster.Zheng.Winin.Domain/AppBusiness/ExportCustomUserSetting/ExportCustomUserSetting.cs

@ -0,0 +1,42 @@
using System;
using System.ComponentModel.DataAnnotations;
using Faster.Zheng.Winin.Enums;
using Volo.Abp.Domain.Entities.Auditing;
namespace Faster.Zheng.Winin.AppBusiness.ExportCustomUserSetting;
/// <summary>
/// 用户个型导出配置
/// </summary>
public class ExportCustomUserSetting : AuditedAggregateRoot<Guid>
{
/// <summary>
/// 用户ID
/// </summary>
[Display(Name = "用户ID")]
public string ExportUserId { get; set; }
/// <summary>
/// 用户姓名
/// </summary>
[Display(Name = "用户姓名")]
public string ExportUserName { get; set; }
/// <summary>
/// 列名
/// </summary>
[Display(Name = "列名")]
public string ExportColumnName { get; set; }
/// <summary>
/// 表名
/// </summary>
[Display(Name = "表名")]
public string ExportTableName { get; set; }
/// <summary>
/// 导出设置项
/// </summary>
[Display(Name = "导出设置项")]
public Enum_ExportCustomUserSetting CustomUserSetting { get; set; }
}

4
Code/Be/Faster.Zheng.Winin/src/Faster.Zheng.Winin.Domain/AppBusiness/TestSchool/TestSchool.cs

@ -8,12 +8,14 @@ using Volo.Abp.Domain.Entities.Auditing;
namespace Faster.Zheng.Winin.AppBusiness.TestSchool;
//[Table("School")] 不起作用
//设置索引
[Index(nameof(TestSchool.SchoolName), nameof(TestSchool.OrderType))]
public class TestSchool : AuditedAggregateRoot<Guid>
{
public string SchoolName { get; set; }
public SchoolType OrderType { get; set; }
public Enum_SchoolType OrderType { get; set; }
public List<TestStudentDetail> Details { get; set; } = new();
}

2
Code/Be/Faster.Zheng.Winin/src/Faster.Zheng.Winin.Domain/AppBusiness/TestSchool/TestStudentDetail.cs

@ -13,5 +13,5 @@ public class TestStudentDetail : AuditedAggregateRoot<Guid>
public string StudentName { get; set; }
public StudentType OrderType { get; set; }
public Enum_StudentType OrderType { get; set; }
}

2
Code/Be/Faster.Zheng.Winin/src/Faster.Zheng.Winin.Web/Pages/AppBusiness/TestSchool/TestSchool/ViewModels/CreateEditTestSchoolViewModel.cs

@ -11,7 +11,7 @@ public class CreateEditTestSchoolViewModel
public string SchoolName { get; set; }
[Display(Name = "TestSchoolOrderType")]
public SchoolType OrderType { get; set; }
public Enum_SchoolType OrderType { get; set; }
[Display(Name = "TestSchoolDetails")]
public List<Winin.AppBusiness.TestSchool.TestStudentDetail> Details { get; set; }

2
Code/Be/Faster.Zheng.Winin/src/Faster.Zheng.Winin.Web/Pages/AppBusiness/TestSchool/TestStudentDetail/ViewModels/CreateEditTestStudentDetailViewModel.cs

@ -13,5 +13,5 @@ public class CreateEditTestStudentDetailViewModel
public string StudentName { get; set; }
[Display(Name = "TestStudentDetailOrderType")]
public StudentType OrderType { get; set; }
public Enum_StudentType OrderType { get; set; }
}

Loading…
Cancel
Save