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
35b67d53
Commit
35b67d53
authored
Aug 04, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
52579ab5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
73 additions
and
4 deletions
+73
-4
RB_BackClass_Protocol_ViewModel.cs
...del/ViewModel/Contract/RB_BackClass_Protocol_ViewModel.cs
+22
-0
EducationContractModule.cs
Edu.Module.Course/EducationContractModule.cs
+27
-4
EducationContractController.cs
Edu.WebApi/Controllers/Course/EducationContractController.cs
+24
-0
No files found.
Edu.Model/ViewModel/Contract/RB_BackClass_Protocol_ViewModel.cs
View file @
35b67d53
...
...
@@ -64,5 +64,27 @@ namespace Edu.Model.ViewModel.Contract
return
str
;
}
}
/// <summary>
/// 实收字符串
/// </summary>
public
string
OldIncomeStr
{
get
{
string
str
=
Common
.
Plugin
.
StringHelper
.
MoneyToUpper
(
this
.
OldIncome
.
ToString
());
return
str
;
}
}
/// <summary>
/// 退还账号名
/// </summary>
public
string
BackAccountName
{
get
;
set
;
}
/// <summary>
/// 退还账号
/// </summary>
public
string
BackAccount
{
get
;
set
;
}
}
}
Edu.Module.Course/EducationContractModule.cs
View file @
35b67d53
...
...
@@ -12,6 +12,7 @@ using Edu.Model.ViewModel.Finance;
using
Edu.Model.ViewModel.Grade
;
using
Edu.Model.ViewModel.Sell
;
using
Edu.Model.ViewModel.User
;
using
Edu.Repository.BackClass
;
using
Edu.Repository.Contract
;
using
Edu.Repository.Course
;
using
Edu.Repository.Finance
;
...
...
@@ -87,6 +88,11 @@ namespace Edu.Module.Course
/// </summary>
private
readonly
RB_BackClass_ProtocolRepository
backClass_ProtocolRepository
=
new
RB_BackClass_ProtocolRepository
();
/// <summary>
/// 退课申请仓储层对象
/// </summary>
private
readonly
RB_Student_BackClassRepository
student_BackClassRepository
=
new
RB_Student_BackClassRepository
();
/// <summary>
/// 获取学员信息
/// </summary>
...
...
@@ -676,15 +682,20 @@ namespace Edu.Module.Course
{
extModel
=
new
RB_BackClass_Protocol_ViewModel
();
}
if
(
extModel
!=
null
&&
extModel
.
Id
>
0
)
{
var
backModel
=
student_BackClassRepository
.
GetEntity
(
extModel
.
BackId
);
extModel
.
BackAccountName
=
backModel
?.
BackAccountName
??
""
;
extModel
.
BackAccount
=
backModel
?.
BackAccount
??
""
;
}
return
extModel
;
}
/// <summary>
/// 退课协议,学员签字
/// </summary>
/// <param name="
contractId">
</param>
/// <param name="
Id">协议编号
</param>
/// <param name="sign"></param>
/// <param name="userInfo"></param>
/// <returns></returns>
public
bool
SetBackClassProtocolSignModule
(
int
Id
,
string
sign
)
{
...
...
@@ -697,7 +708,19 @@ namespace Edu.Module.Course
return
backClass_ProtocolRepository
.
Update
(
keyValues
,
new
WhereHelper
(
nameof
(
RB_BackClass_Protocol_ViewModel
.
Id
),
Id
));
}
/// <summary>
/// 退课协议,销售确认
/// </summary>
/// <param name="Id">协议编号</param>
/// <param name="IsSure">是否销售确认(1-是)</param>
/// <returns></returns>
public
bool
SetBackClassProtocolSureModule
(
int
Id
,
int
IsSure
)
{
Dictionary
<
string
,
object
>
keyValues
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_BackClass_Protocol_ViewModel
.
IsSure
),
IsSure
},
};
return
backClass_ProtocolRepository
.
Update
(
keyValues
,
new
WhereHelper
(
nameof
(
RB_BackClass_Protocol_ViewModel
.
Id
),
Id
));
}
}
}
\ No newline at end of file
Edu.WebApi/Controllers/Course/EducationContractController.cs
View file @
35b67d53
...
...
@@ -487,5 +487,29 @@ namespace Edu.WebApi.Controllers.Course
var
model
=
educationContractModule
.
GetBackClassProtocolModule
(
Id
);
return
ApiResult
.
Success
(
data
:
model
);
}
/// <summary>
/// 退课协议学员签字
/// </summary>
/// <returns></returns>
public
ApiResult
SetBackClassProtocolSign
()
{
int
Id
=
base
.
ParmJObj
.
GetInt
(
"Id"
);
string
sign
=
base
.
ParmJObj
.
GetStringValue
(
"sign"
);
var
flag
=
educationContractModule
.
SetBackClassProtocolSignModule
(
Id
,
sign
);
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
}
/// <summary>
/// 退课协议销售确认
/// </summary>
/// <returns></returns>
public
ApiResult
SetBackClassProtocolSure
()
{
int
Id
=
base
.
ParmJObj
.
GetInt
(
"Id"
);
int
IsSure
=
base
.
ParmJObj
.
GetInt
(
"IsSure"
);
var
flag
=
educationContractModule
.
SetBackClassProtocolSureModule
(
Id
,
IsSure
);
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
}
}
}
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