Commit 4b1246d4 authored by 黄奎's avatar 黄奎

新增实体类

parent 310a85fd
...@@ -367,6 +367,7 @@ namespace Edu.Common ...@@ -367,6 +367,7 @@ namespace Edu.Common
return ChangeClassFlowId; return ChangeClassFlowId;
} }
} }
/// <summary> /// <summary>
/// 停课流程编号 /// 停课流程编号
/// </summary> /// </summary>
...@@ -379,6 +380,18 @@ namespace Edu.Common ...@@ -379,6 +380,18 @@ namespace Edu.Common
} }
} }
/// <summary>
/// 订单转班流程编号
/// </summary>
public static int OrderTransClassFlowId
{
get
{
int.TryParse(ReadConfigKey("OrderTransClassFlowId"), out int OrderTransClassFlowId);
return OrderTransClassFlowId;
}
}
......
...@@ -33,9 +33,9 @@ namespace Edu.Common.Enum.Finance ...@@ -33,9 +33,9 @@ namespace Edu.Common.Enum.Finance
InvitationClass = 4, InvitationClass = 4,
/// <summary> /// <summary>
/// 转班 /// 订单转班
/// </summary> /// </summary>
[EnumField("转班")] [EnumField("订单转班")]
TransClass = 5, OrderTransClass = 5,
} }
} }
using System; using System;
using System.Collections.Generic;
using System.Text;
using VT.FW.DB; using VT.FW.DB;
namespace Edu.Model.Entity.EduTask namespace Edu.Model.Entity.EduTask
...@@ -37,6 +35,11 @@ namespace Edu.Model.Entity.EduTask ...@@ -37,6 +35,11 @@ namespace Edu.Model.Entity.EduTask
/// </summary> /// </summary>
public int NewCourseId { get; set; } public int NewCourseId { get; set; }
/// <summary>
/// 生效日期
/// </summary>
public DateTime EffectiveDate { get; set; }
/// <summary> /// <summary>
/// 变更原因 /// 变更原因
/// </summary> /// </summary>
......
...@@ -39,7 +39,7 @@ namespace Edu.Module.EduTask ...@@ -39,7 +39,7 @@ namespace Edu.Module.EduTask
{ {
Id = 0, Id = 0,
Title = "转班申请", Title = "转班申请",
ReceiptType = Common.Enum.Finance.ReceiptTypeEnum.TransClass, ReceiptType = Common.Enum.Finance.ReceiptTypeEnum.OrderTransClass,
RelationId = newId, RelationId = newId,
OrderId = model.SourceOrderId, OrderId = model.SourceOrderId,
ClassId = model.NewClassId, ClassId = model.NewClassId,
......
...@@ -172,7 +172,16 @@ WHERE 1=1 ...@@ -172,7 +172,16 @@ WHERE 1=1
flowModel = flowRepository.GetFlowRepository(Common.Config.StopClassFlowId); flowModel = flowRepository.GetFlowRepository(Common.Config.StopClassFlowId);
if (flowModel == null) if (flowModel == null)
{ {
message = "未配置调课流程!"; message = "未配置停课流程!";
return false;
}
}
else if (model.ReceiptType == Common.Enum.Finance.ReceiptTypeEnum.OrderTransClass)
{
flowModel = flowRepository.GetFlowRepository(Common.Config.OrderTransClassFlowId);
if (flowModel == null)
{
message = "未配置订单转班流程!";
return false; return false;
} }
} }
......
...@@ -83,5 +83,7 @@ ...@@ -83,5 +83,7 @@
//调课流程编号 //调课流程编号
"ChangeClassFlowId": 2, "ChangeClassFlowId": 2,
//停课流程编号 //停课流程编号
"StopClassFlowId": 3 "StopClassFlowId": 3,
//订单转班流程编号
"OrderTransClassFlowId": 5
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment