Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Education
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄奎
Education
Commits
310a85fd
Commit
310a85fd
authored
Jul 15, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增实体类
parent
5e488fc3
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
205 additions
and
1 deletion
+205
-1
ReceiptTypeEnum.cs
Edu.Common/Enum/Finance/ReceiptTypeEnum.cs
+6
-0
RB_Order_Change.cs
Edu.Model/Entity/EduTask/RB_Order_Change.cs
+75
-0
RB_Order_Change_ViewModel.cs
Edu.Model/ViewModel/EduTask/RB_Order_Change_ViewModel.cs
+18
-0
ChangeClassPlanModule.cs
Edu.Module.EduTask/ChangeClassPlanModule.cs
+1
-1
OrderChangeModule.cs
Edu.Module.EduTask/OrderChangeModule.cs
+59
-0
RB_Order_ChangeRepository.cs
Edu.Repository/EduTask/RB_Order_ChangeRepository.cs
+46
-0
No files found.
Edu.Common/Enum/Finance/ReceiptTypeEnum.cs
View file @
310a85fd
...
@@ -31,5 +31,11 @@ namespace Edu.Common.Enum.Finance
...
@@ -31,5 +31,11 @@ namespace Edu.Common.Enum.Finance
/// </summary>
/// </summary>
[
EnumField
(
"临时上课邀请"
)]
[
EnumField
(
"临时上课邀请"
)]
InvitationClass
=
4
,
InvitationClass
=
4
,
/// <summary>
/// 转班
/// </summary>
[
EnumField
(
"转班"
)]
TransClass
=
5
,
}
}
}
}
Edu.Model/Entity/EduTask/RB_Order_Change.cs
0 → 100644
View file @
310a85fd
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
using
VT.FW.DB
;
namespace
Edu.Model.Entity.EduTask
{
/// <summary>
/// 订单转班、分拆实体类
/// </summary>
[
Serializable
]
[
DB
(
ConnectionName
=
"DefaultConnection"
)]
public
class
RB_Order_Change
{
/// <summary>
/// 主键编号
/// </summary>
public
int
Id
{
get
;
set
;
}
/// <summary>
/// 原订单编号
/// </summary>
public
int
SourceOrderId
{
get
;
set
;
}
/// <summary>
/// 变更类型(1-转班,2-分拆)
/// </summary>
public
int
ChangeType
{
get
;
set
;
}
/// <summary>
/// 新班级编号
/// </summary>
public
int
NewClassId
{
get
;
set
;
}
/// <summary>
/// 新课程编号
/// </summary>
public
int
NewCourseId
{
get
;
set
;
}
/// <summary>
/// 变更原因
/// </summary>
public
string
Remarks
{
get
;
set
;
}
/// <summary>
/// 集团编号
/// </summary>
public
int
Group_Id
{
get
;
set
;
}
/// <summary>
/// 学校编号
/// </summary>
public
int
School_Id
{
get
;
set
;
}
/// <summary>
/// 创建人
/// </summary>
public
int
CreateBy
{
get
;
set
;
}
/// <summary>
/// 创建时间
/// </summary>
public
DateTime
CreateTime
{
get
;
set
;
}
/// <summary>
/// 修改人
/// </summary>
public
int
UpdateBy
{
get
;
set
;
}
/// <summary>
/// 更新时间
/// </summary>
public
DateTime
UpdateTime
{
get
;
set
;
}
}
}
Edu.Model/ViewModel/EduTask/RB_Order_Change_ViewModel.cs
0 → 100644
View file @
310a85fd
using
Edu.Model.Entity.EduTask
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
Edu.Model.ViewModel.EduTask
{
/// <summary>
/// 订单转班、分拆视图实体类
/// </summary>
public
class
RB_Order_Change_ViewModel
:
RB_Order_Change
{
/// <summary>
/// 查询编号【多个逗号分隔】
/// </summary>
public
string
QIds
{
get
;
set
;
}
}
}
Edu.Module.EduTask/ChangeClassPlanModule.cs
View file @
310a85fd
...
@@ -56,7 +56,7 @@ namespace Edu.Module.EduTask
...
@@ -56,7 +56,7 @@ namespace Edu.Module.EduTask
{
{
{
nameof
(
RB_Change_ClassPlan_ViewModel
.
ChangeType
),
extModel
.
ChangeType
},
{
nameof
(
RB_Change_ClassPlan_ViewModel
.
ChangeType
),
extModel
.
ChangeType
},
{
nameof
(
RB_Change_ClassPlan_ViewModel
.
MoveType
),
extModel
.
MoveType
},
{
nameof
(
RB_Change_ClassPlan_ViewModel
.
MoveType
),
extModel
.
MoveType
},
{
nameof
(
RB_Change_ClassPlan_ViewModel
.
TakeEffectTime
),
extModel
.
TakeEffectTime
},
{
nameof
(
RB_Change_ClassPlan_ViewModel
.
TakeEffectTime
),
extModel
.
TakeEffectTime
},
{
nameof
(
RB_Change_ClassPlan_ViewModel
.
SourceData
),
extModel
.
SourceData
},
{
nameof
(
RB_Change_ClassPlan_ViewModel
.
SourceData
),
extModel
.
SourceData
},
{
nameof
(
RB_Change_ClassPlan_ViewModel
.
TargetData
),
extModel
.
TargetData
},
{
nameof
(
RB_Change_ClassPlan_ViewModel
.
TargetData
),
extModel
.
TargetData
},
{
nameof
(
RB_Change_ClassPlan_ViewModel
.
UpdateBy
),
extModel
.
UpdateBy
},
{
nameof
(
RB_Change_ClassPlan_ViewModel
.
UpdateBy
),
extModel
.
UpdateBy
},
...
...
Edu.Module.EduTask/OrderChangeModule.cs
0 → 100644
View file @
310a85fd
using
Edu.AOP.CustomerAttribute
;
using
Edu.Model.Entity.EduTask
;
using
Edu.Model.ViewModel.EduTask
;
using
Edu.Repository.EduTask
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
Edu.Module.EduTask
{
public
class
OrderChangeModule
{
/// <summary>
/// 订单转班、分拆仓储层对象
/// </summary>
private
readonly
RB_Order_ChangeRepository
order_ChangeRepository
=
new
RB_Order_ChangeRepository
();
/// <summary>
/// 教务单据仓储层对象
/// </summary>
private
readonly
RB_Education_ReceiptRepository
education_ReceiptRepository
=
new
RB_Education_ReceiptRepository
();
/// <summary>
/// 新增订单转班、分拆
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
[
TransactionCallHandler
]
public
virtual
bool
SetOrderChangeModule
(
RB_Order_Change_ViewModel
model
,
out
string
message
)
{
message
=
""
;
bool
flag
=
false
;
var
newId
=
order_ChangeRepository
.
Insert
(
model
);
model
.
Id
=
newId
;
flag
=
newId
>
0
;
if
(
flag
)
{
var
educationReceipt
=
new
RB_Education_Receipt
()
{
Id
=
0
,
Title
=
"转班申请"
,
ReceiptType
=
Common
.
Enum
.
Finance
.
ReceiptTypeEnum
.
TransClass
,
RelationId
=
newId
,
OrderId
=
model
.
SourceOrderId
,
ClassId
=
model
.
NewClassId
,
Group_Id
=
model
.
Group_Id
,
School_Id
=
model
.
School_Id
,
CreateBy
=
model
.
CreateBy
,
CreateTime
=
model
.
CreateTime
,
UpdateBy
=
model
.
UpdateBy
,
UpdateTime
=
model
.
UpdateTime
,
VerifyStatus
=
Common
.
Enum
.
EduTask
.
EduTaskRrocessStatus
.
NotAudit
};
flag
=
education_ReceiptRepository
.
SetEducationReceiptRepository
(
educationReceipt
,
out
message
);
}
return
flag
;
}
}
}
Edu.Repository/EduTask/RB_Order_ChangeRepository.cs
0 → 100644
View file @
310a85fd
using
Edu.Model.Entity.EduTask
;
using
Edu.Model.ViewModel.EduTask
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
namespace
Edu.Repository.EduTask
{
/// <summary>
/// 订单转班、分拆仓储层
/// </summary>
public
class
RB_Order_ChangeRepository
:
BaseRepository
<
RB_Order_Change
>
{
/// <summary>
/// 获取订单转班、分拆列表
/// </summary>
/// <param name="query"></param>
/// <returns></returns>
public
List
<
RB_Order_Change_ViewModel
>
GetOrderChangeListRepository
(
RB_Order_Change_ViewModel
query
)
{
StringBuilder
builder
=
new
StringBuilder
();
builder
.
AppendFormat
(
@"
SELECT A.*
FROM RB_Order_Change AS A
WHERE 1=1
"
);
if
(
query
!=
null
)
{
if
(
query
.
Group_Id
>
0
)
{
builder
.
AppendFormat
(
" AND A.{0}={1} "
,
nameof
(
RB_Order_Change_ViewModel
.
Group_Id
),
query
.
Group_Id
);
}
if
(
query
.
Id
>
0
)
{
builder
.
AppendFormat
(
" AND A.{0}={1} "
,
nameof
(
RB_Order_Change_ViewModel
.
Id
),
query
.
Id
);
}
if
(!
string
.
IsNullOrEmpty
(
query
.
QIds
))
{
builder
.
AppendFormat
(
" AND A.{0} IN({1}) "
,
nameof
(
RB_Order_Change_ViewModel
.
Id
),
query
.
QIds
);
}
}
return
Get
<
RB_Order_Change_ViewModel
>(
builder
.
ToString
()).
ToList
();
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment