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
a872dad4
Commit
a872dad4
authored
Aug 06, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
5dd93d2f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
1 deletion
+22
-1
EducationReceiptQuery.cs
Edu.Model/ViewModel/EduTask/EducationReceiptQuery.cs
+5
-0
StudentBillModule.cs
Edu.Module.Course/StudentBillModule.cs
+13
-1
RB_Education_ReceiptRepository.cs
Edu.Repository/EduTask/RB_Education_ReceiptRepository.cs
+4
-0
No files found.
Edu.Model/ViewModel/EduTask/EducationReceiptQuery.cs
View file @
a872dad4
...
...
@@ -65,5 +65,10 @@ namespace Edu.Model.ViewModel.EduTask
/// 查询生效时间
/// </summary>
public
string
QEffectiveDate
{
get
;
set
;
}
/// <summary>
/// 关联单号
/// </summary>
public
int
RelationId
{
get
;
set
;
}
}
}
Edu.Module.Course/StudentBillModule.cs
View file @
a872dad4
...
...
@@ -9,6 +9,7 @@ using Edu.Model.Entity.BackClass;
using
Edu.Model.Entity.Course
;
using
Edu.Model.ViewModel.Contract
;
using
Edu.Model.ViewModel.Course
;
using
Edu.Model.ViewModel.EduTask
;
using
Edu.Model.ViewModel.Finance
;
using
Edu.Model.ViewModel.Grade
;
using
Edu.Model.ViewModel.Sell
;
...
...
@@ -16,6 +17,7 @@ using Edu.Model.ViewModel.User;
using
Edu.Repository.BackClass
;
using
Edu.Repository.Contract
;
using
Edu.Repository.Course
;
using
Edu.Repository.EduTask
;
using
Edu.Repository.Finance
;
using
Edu.Repository.Flow
;
using
Edu.Repository.Grade
;
...
...
@@ -96,6 +98,11 @@ namespace Edu.Module.Course
/// </summary>
private
readonly
RB_BackClass_ProtocolRepository
backClass_ProtocolRepository
=
new
RB_BackClass_ProtocolRepository
();
/// <summary>
/// 业务单据仓储层对象
/// </summary>
private
readonly
RB_Education_ReceiptRepository
education_ReceiptRepository
=
new
RB_Education_ReceiptRepository
();
/// <summary>
/// 计算学员退课金额
/// </summary>
...
...
@@ -151,6 +158,11 @@ namespace Edu.Module.Course
{
BackId
=
backClassId
})?.
FirstOrDefault
();
var
eduReceipt
=
education_ReceiptRepository
.
GetEducationReceiptListRepository
(
new
EducationReceiptQuery
()
{
ReceiptType
=
2
,
RelationId
=
backClassId
})?.
FirstOrDefault
();
if
(
backModel
==
null
||
backModel
.
AuditStatus
!=
WFRrocessStatus
.
AuditThrough
)
{
return
"退课流程未审核通过"
;
}
if
(
backModel
.
FinanceId
>
0
)
{
return
"已制单,无法再次生成财务单据"
;
}
var
guestModel
=
order_GuestRepository
.
GetEntity
(
backModel
.
GuestId
);
...
...
@@ -176,7 +188,7 @@ namespace Edu.Module.Course
var
financeObj
=
new
{
OtherType
=
28
,
ReFinanceId
=
backClassId
,
ReFinanceId
=
eduReceipt
?.
Id
??
0
,
ReFinanceId2
=
BackClassProtocolModel
?.
Id
??
0
,
IsPublic
,
ClientType
=
clientType
,
...
...
Edu.Repository/EduTask/RB_Education_ReceiptRepository.cs
View file @
a872dad4
...
...
@@ -171,6 +171,10 @@ WHERE 1=1
{
builder
.
AppendFormat
(
@" AND A.{0} IN ({1}) "
,
nameof
(
RB_Education_Receipt_ViewModel
.
Id
),
query
.
QIds
);
}
if
(
query
.
RelationId
>
0
)
{
builder
.
AppendFormat
(
@" AND A.{0} IN ({1}) "
,
nameof
(
RB_Education_Receipt_ViewModel
.
RelationId
),
query
.
RelationId
);
}
if
(!
string
.
IsNullOrEmpty
(
query
.
Title
))
{
builder
.
AppendFormat
(
@" AND A.{0} LIKE @Title "
,
nameof
(
RB_Education_Receipt_ViewModel
.
Title
));
...
...
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