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

新增实体类

parent 310a85fd
......@@ -367,6 +367,7 @@ namespace Edu.Common
return ChangeClassFlowId;
}
}
/// <summary>
/// 停课流程编号
/// </summary>
......@@ -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
InvitationClass = 4,
/// <summary>
/// 转班
/// 订单转班
/// </summary>
[EnumField("转班")]
TransClass = 5,
[EnumField("订单转班")]
OrderTransClass = 5,
}
}
using System;
using System.Collections.Generic;
using System.Text;
using VT.FW.DB;
namespace Edu.Model.Entity.EduTask
......@@ -37,6 +35,11 @@ namespace Edu.Model.Entity.EduTask
/// </summary>
public int NewCourseId { get; set; }
/// <summary>
/// 生效日期
/// </summary>
public DateTime EffectiveDate { get; set; }
/// <summary>
/// 变更原因
/// </summary>
......
......@@ -39,7 +39,7 @@ namespace Edu.Module.EduTask
{
Id = 0,
Title = "转班申请",
ReceiptType = Common.Enum.Finance.ReceiptTypeEnum.TransClass,
ReceiptType = Common.Enum.Finance.ReceiptTypeEnum.OrderTransClass,
RelationId = newId,
OrderId = model.SourceOrderId,
ClassId = model.NewClassId,
......
......@@ -172,7 +172,16 @@ WHERE 1=1
flowModel = flowRepository.GetFlowRepository(Common.Config.StopClassFlowId);
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;
}
}
......
......@@ -83,5 +83,7 @@
//调课流程编号
"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