已发布试卷中的试题不可以被删除

草稿箱和已停用可以删除但是发布需要校验
master
xiaochanghai 1 year ago
parent 18d026b3d6
commit 851556bac8
  1. 1094
      Model/Tiobon.Web.pdm
  2. 2
      Tiobon.Core.Api/Controllers/Ghre/Ghre_ExamRecordController.cs
  3. 2
      Tiobon.Core.IServices/Ghre/IGhre_ExamRecordServices.cs
  4. 13
      Tiobon.Core.Model/Base/Ghre/Ghre_ExamRecord.Dto.Base.cs
  5. 4
      Tiobon.Core.Model/Edit/Ghre/Ghre_ExamRecord.Dto.EditInput.cs
  6. 4
      Tiobon.Core.Model/Insert/Ghre/Ghre_ExamRecord.Dto.InsertInput.cs
  7. 15
      Tiobon.Core.Model/Models/Ghre/Ghre_ExamRecord.cs
  8. 4
      Tiobon.Core.Model/View/Ghre/Ghre_ExamRecord.Dto.View.cs
  9. 27
      Tiobon.Core.Services/CommonServices.cs
  10. 1435
      Tiobon.Core.Services/Ghre/Ghre_ExamPaperServices.cs
  11. 2
      Tiobon.Core.Services/Ghre/Ghre_ExamRecordServices.cs

File diff suppressed because it is too large Load Diff

@ -1,7 +1,7 @@
namespace Tiobon.Core.Api.Controllers; namespace Tiobon.Core.Api.Controllers;
/// <summary> /// <summary>
/// Ghre_ExamRecord(Controller) /// 考试记录(Controller)
/// </summary> /// </summary>
[Route("api/[controller]")] [Route("api/[controller]")]
[ApiController, GlobalActionFilter] [ApiController, GlobalActionFilter]

@ -4,7 +4,7 @@ using Tiobon.Core.Model.Models;
namespace Tiobon.Core.IServices namespace Tiobon.Core.IServices
{ {
/// <summary> /// <summary>
/// Ghre_ExamRecord(自定义服务接口) /// 考试记录(自定义服务接口)
/// </summary> /// </summary>
public interface IGhre_ExamRecordServices :IBaseServices<Ghre_ExamRecord, Ghre_ExamRecordDto, InsertGhre_ExamRecordInput, EditGhre_ExamRecordInput> public interface IGhre_ExamRecordServices :IBaseServices<Ghre_ExamRecord, Ghre_ExamRecordDto, InsertGhre_ExamRecordInput, EditGhre_ExamRecordInput>
{ {

@ -6,7 +6,7 @@
* *
* Ver * Ver
* *
*V0.01 2024/5/31 17:43:01 SimonHsiao *V0.01 2024/6/21 17:49:13 SimonHsiao
* *
* Copyright(c) 2024 Tiobon Corporation. All Rights Reserved. * Copyright(c) 2024 Tiobon Corporation. All Rights Reserved.
* *
@ -22,7 +22,7 @@ namespace Tiobon.Core.Model.Models
{ {
/// <summary> /// <summary>
/// Ghre_ExamRecord (Dto.Base) /// 考试记录 (Dto.Base)
/// </summary> /// </summary>
public class Ghre_ExamRecordBase public class Ghre_ExamRecordBase
{ {
@ -65,14 +65,15 @@ namespace Tiobon.Core.Model.Models
public DateTime? EndTime { get; set; } public DateTime? EndTime { get; set; }
/// <summary> /// <summary>
/// 实际开始时间 /// 实际结束时间
/// </summary> /// </summary>
public DateTime? ActualBeginTime { get; set; } public DateTime? ActualEndTime { get; set; }
/// <summary> /// <summary>
/// 实际结束时间 /// 状态
/// </summary> /// </summary>
public DateTime? ActualEndTime { get; set; } [Display(Name = "Status"), Description("状态"), MaxLength(32, ErrorMessage = "状态 不能超过 32 个字符")]
public string Status { get; set; }
/// <summary> /// <summary>
/// 备注 /// 备注

@ -6,7 +6,7 @@
* *
* Ver * Ver
* *
*V0.01 2024/5/31 17:43:01 SimonHsiao *V0.01 2024/6/21 17:49:13 SimonHsiao
* *
* Copyright(c) 2024 Tiobon Corporation. All Rights Reserved. * Copyright(c) 2024 Tiobon Corporation. All Rights Reserved.
* *
@ -19,7 +19,7 @@ namespace Tiobon.Core.Model.Models
{ {
/// <summary> /// <summary>
/// Ghre_ExamRecord (Dto.EditInput) /// 考试记录 (Dto.EditInput)
/// </summary> /// </summary>
public class EditGhre_ExamRecordInput : Ghre_ExamRecordBase public class EditGhre_ExamRecordInput : Ghre_ExamRecordBase
{ {

@ -6,7 +6,7 @@
* *
* Ver * Ver
* *
*V0.01 2024/5/31 17:43:01 SimonHsiao *V0.01 2024/6/21 17:49:13 SimonHsiao
* *
* Copyright(c) 2024 Tiobon Corporation. All Rights Reserved. * Copyright(c) 2024 Tiobon Corporation. All Rights Reserved.
* *
@ -19,7 +19,7 @@ namespace Tiobon.Core.Model.Models
{ {
/// <summary> /// <summary>
/// Ghre_ExamRecord (Dto.InsertInput) /// 考试记录 (Dto.InsertInput)
/// </summary> /// </summary>
public class InsertGhre_ExamRecordInput : Ghre_ExamRecordBase public class InsertGhre_ExamRecordInput : Ghre_ExamRecordBase
{ {

@ -6,7 +6,7 @@
* *
* Ver * Ver
* *
*V0.01 2024/5/31 17:43:01 SimonHsiao *V0.01 2024/6/21 17:49:13 SimonHsiao
* *
* Copyright(c) 2024 Tiobon Corporation. All Rights Reserved. * Copyright(c) 2024 Tiobon Corporation. All Rights Reserved.
* *
@ -23,9 +23,9 @@ namespace Tiobon.Core.Model.Models
{ {
/// <summary> /// <summary>
/// Ghre_ExamRecord (Model) /// 考试记录 (Model)
/// </summary> /// </summary>
[SugarTable("Ghre_ExamRecord", "Ghre_ExamRecord"), Entity(TableCnName = "Ghre_ExamRecord", TableName = "Ghre_ExamRecord")] [SugarTable("Ghre_ExamRecord", "Ghre_ExamRecord"), Entity(TableCnName = "考试记录", TableName = "Ghre_ExamRecord")]
public class Ghre_ExamRecord : BasePoco public class Ghre_ExamRecord : BasePoco
{ {
@ -67,14 +67,15 @@ namespace Tiobon.Core.Model.Models
public DateTime? EndTime { get; set; } public DateTime? EndTime { get; set; }
/// <summary> /// <summary>
/// 实际开始时间 /// 实际结束时间
/// </summary> /// </summary>
public DateTime? ActualBeginTime { get; set; } public DateTime? ActualEndTime { get; set; }
/// <summary> /// <summary>
/// 实际结束时间 /// 状态
/// </summary> /// </summary>
public DateTime? ActualEndTime { get; set; } [Display(Name = "Status"), Description("状态"), MaxLength(32, ErrorMessage = "状态 不能超过 32 个字符")]
public string Status { get; set; }
/// <summary> /// <summary>
/// 备注 /// 备注

@ -6,7 +6,7 @@
* *
* Ver * Ver
* *
*V0.01 2024/5/31 17:43:01 SimonHsiao *V0.01 2024/6/21 17:49:13 SimonHsiao
* *
* Copyright(c) 2024 Tiobon Corporation. All Rights Reserved. * Copyright(c) 2024 Tiobon Corporation. All Rights Reserved.
* *
@ -18,7 +18,7 @@
namespace Tiobon.Core.Model.Models; namespace Tiobon.Core.Model.Models;
/// <summary> /// <summary>
/// Ghre_ExamRecord(Dto.View) /// 考试记录(Dto.View)
/// </summary> /// </summary>
public class Ghre_ExamRecordDto : Ghre_ExamRecord public class Ghre_ExamRecordDto : Ghre_ExamRecord
{ {

@ -891,6 +891,15 @@ public partial class CommonServices : BaseServices<RootEntityTkey<int>>, ICommon
icon = "ghr-publish", icon = "ghr-publish",
position = "left" position = "left"
}); });
result.JM_PageControlT1.Toolbar.Add(new Toolbar()
{
display = true,
fnKey = "TBD6YN",
fnTitle = "预览",
fnType = "row",
icon = "ghr-preview",
position = "left"
});
break; break;
case "F_ExamPaperReleased": case "F_ExamPaperReleased":
@ -915,6 +924,15 @@ public partial class CommonServices : BaseServices<RootEntityTkey<int>>, ICommon
icon = "ghr-icon-stop", icon = "ghr-icon-stop",
position = "left" position = "left"
}); });
result.JM_PageControlT1.Toolbar.Add(new Toolbar()
{
display = true,
fnKey = "TBD6YN",
fnTitle = "预览",
fnType = "row",
icon = "ghr-preview",
position = "left"
});
break; break;
case "F_ExamPaperDisabled": case "F_ExamPaperDisabled":
@ -930,6 +948,15 @@ public partial class CommonServices : BaseServices<RootEntityTkey<int>>, ICommon
icon = "ghr-icon-start", icon = "ghr-icon-start",
position = "left" position = "left"
}); });
result.JM_PageControlT1.Toolbar.Add(new Toolbar()
{
display = true,
fnKey = "TBD6YN",
fnTitle = "预览",
fnType = "row",
icon = "ghr-preview",
position = "left"
});
break; break;
case "F_Training_CoursewWare": case "F_Training_CoursewWare":
toolbar = result.JM_PageControlT1.Toolbar.Where(x => x.fnKey == "NewYN").FirstOrDefault(); toolbar = result.JM_PageControlT1.Toolbar.Where(x => x.fnKey == "NewYN").FirstOrDefault();

File diff suppressed because it is too large Load Diff

@ -8,7 +8,7 @@ using Tiobon.Core.Common.Caches;
namespace Tiobon.Core.Services namespace Tiobon.Core.Services
{ {
/// <summary> /// <summary>
/// Ghre_ExamRecord (服务) /// 考试记录 (服务)
/// </summary> /// </summary>
public class Ghre_ExamRecordServices : BaseServices<Ghre_ExamRecord, Ghre_ExamRecordDto, InsertGhre_ExamRecordInput, EditGhre_ExamRecordInput>, IGhre_ExamRecordServices public class Ghre_ExamRecordServices : BaseServices<Ghre_ExamRecord, Ghre_ExamRecordDto, InsertGhre_ExamRecordInput, EditGhre_ExamRecordInput>, IGhre_ExamRecordServices
{ {

Loading…
Cancel
Save