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
d1c925a1
Commit
d1c925a1
authored
Jul 01, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/Kui2/education
parents
64def134
674a3f4c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
462 additions
and
64 deletions
+462
-64
RB_Teaching_BonusDetail_ViewModel.cs
...del/ViewModel/Course/RB_Teaching_BonusDetail_ViewModel.cs
+39
-0
TeachingRewardsModule.cs
Edu.Module.Course/TeachingRewardsModule.cs
+1
-1
FinanceModule.cs
Edu.Module.Finance/FinanceModule.cs
+398
-58
RB_Class_CheckRepository.cs
Edu.Repository/Course/RB_Class_CheckRepository.cs
+3
-3
FinanceController.cs
Edu.WebApi/Controllers/Finance/FinanceController.cs
+21
-2
No files found.
Edu.Model/ViewModel/Course/RB_Teaching_BonusDetail_ViewModel.cs
View file @
d1c925a1
...
...
@@ -21,10 +21,16 @@ namespace Edu.Model.ViewModel.Course
/// 教师名称
/// </summary>
public
string
TeacherName
{
get
;
set
;
}
/// <summary>
/// 时间段
/// </summary>
public
string
TimeBucket
{
get
;
set
;
}
/// <summary>
/// 班级名称
/// </summary>
public
string
ClassName
{
get
;
set
;
}
/// <summary>
/// 代课课时
/// </summary>
...
...
@@ -39,5 +45,38 @@ namespace Edu.Model.ViewModel.Course
/// 奖金确认 1是
/// </summary>
public
int
Q_BonusConfirm
{
get
;
set
;
}
#
region
报表统计
/// <summary>
/// 课程id
/// </summary>
public
int
CouseId
{
get
;
set
;
}
/// <summary>
/// 课程名称
/// </summary>
public
string
CourseName
{
get
;
set
;
}
/// <summary>
/// 课时数量
/// </summary>
public
decimal
KSNum
{
get
;
set
;
}
/// <summary>
/// 抵扣课时数量
/// </summary>
public
decimal
DKNum
{
get
;
set
;
}
/// <summary>
/// 小时
/// </summary>
public
decimal
Hours
{
get
;
set
;
}
/// <summary>
/// 小时课时费
/// </summary>
public
decimal
HourMoney
{
get
;
set
;
}
#
endregion
}
}
\ No newline at end of file
Edu.Module.Course/TeachingRewardsModule.cs
View file @
d1c925a1
...
...
@@ -605,7 +605,7 @@ namespace Edu.Module.Course
List
<
int
>
TeacherIdList
=
blist
.
Select
(
x
=>
x
.
TeacherId
).
Distinct
().
ToList
();
foreach
(
var
item
in
TeacherIdList
)
{
var
qblist
=
blist
.
Where
(
x
=>
x
.
TeacherId
==
item
).
OrderBy
(
x
=>
x
.
UnitPrice
).
ThenBy
(
x
=>
x
.
Dat
e
).
ToList
();
var
qblist
=
blist
.
Where
(
x
=>
x
.
TeacherId
==
item
).
OrderBy
(
x
=>
x
.
Date
).
ThenBy
(
x
=>
x
.
UnitPric
e
).
ToList
();
int
BasicHours
=
configModel
.
BasicHours
;
foreach
(
var
qitem
in
qblist
)
{
...
...
Edu.Module.Finance/FinanceModule.cs
View file @
d1c925a1
This diff is collapsed.
Click to expand it.
Edu.Repository/Course/RB_Class_CheckRepository.cs
View file @
d1c925a1
...
...
@@ -455,12 +455,12 @@ ORDER BY p.ClassDate ASC
/// <param name="endMonth"></param>
/// <param name="group_Id"></param>
/// <returns></returns>
public
List
<
RB_Class_Check_ViewModel
>
GetTeacherConsumptionHoursDetialList
(
int
teacherId
,
int
schoolId
,
string
startMonth
,
string
endMonth
,
int
group_Id
)
public
List
<
RB_Class_Check_ViewModel
>
GetTeacherConsumptionHoursDetialList
(
string
teacherIds
,
int
schoolId
,
string
startMonth
,
string
endMonth
,
int
group_Id
)
{
string
where
=
$@" "
;
if
(
teacherId
>
0
)
if
(
!
string
.
IsNullOrEmpty
(
teacherIds
)
)
{
where
+=
$@" and p.TeacherId
=
{
teacherId
}
"
;
where
+=
$@" and p.TeacherId
in(
{
teacherIds
}
)
"
;
}
if
(
schoolId
>=
0
)
{
...
...
Edu.WebApi/Controllers/Finance/FinanceController.cs
View file @
d1c925a1
...
...
@@ -1457,7 +1457,7 @@ namespace Edu.WebApi.Controllers.Finance
return
ApiResult
.
Failed
(
"日期格式有误"
);
}
var
list
=
financeModule
.
GetTeacherConsumptionHoursStatistics
(
pageModel
.
PageIndex
,
pageModel
.
PageSize
,
out
long
count
,
TeacherId
,
SchoolId
,
StartMonth
,
EndMonth
,
userInfo
.
Group_Id
);
var
list
=
financeModule
.
GetTeacherConsumptionHoursStatistics
_V2
(
pageModel
.
PageIndex
,
pageModel
.
PageSize
,
out
long
count
,
TeacherId
,
SchoolId
,
StartMonth
,
EndMonth
,
userInfo
.
Group_Id
);
pageModel
.
Count
=
Convert
.
ToInt32
(
count
);
pageModel
.
PageData
=
list
;
return
ApiResult
.
Success
(
""
,
pageModel
);
...
...
@@ -1480,6 +1480,7 @@ namespace Edu.WebApi.Controllers.Finance
new
ExcelColumn
(
value
:
"专职/兼职"
){
CellWidth
=
15
,
HAlignmentEnum
=
HAlignmentEnum
.
CENTER
,
VAlignmentEnum
=
VAlignmentEnum
.
CENTER
},
new
ExcelColumn
(
value
:
"老师姓名"
){
CellWidth
=
15
,
HAlignmentEnum
=
HAlignmentEnum
.
CENTER
,
VAlignmentEnum
=
VAlignmentEnum
.
CENTER
},
new
ExcelColumn
(
value
:
"上课课时"
){
CellWidth
=
15
,
HAlignmentEnum
=
HAlignmentEnum
.
CENTER
,
VAlignmentEnum
=
VAlignmentEnum
.
CENTER
},
new
ExcelColumn
(
value
:
"基础课时"
){
CellWidth
=
15
,
HAlignmentEnum
=
HAlignmentEnum
.
CENTER
,
VAlignmentEnum
=
VAlignmentEnum
.
CENTER
},
new
ExcelColumn
(
value
:
"上课金额"
){
CellWidth
=
15
,
HAlignmentEnum
=
HAlignmentEnum
.
CENTER
,
VAlignmentEnum
=
VAlignmentEnum
.
CENTER
},
new
ExcelColumn
(
value
:
"课时转换/小时"
){
CellWidth
=
15
,
HAlignmentEnum
=
HAlignmentEnum
.
CENTER
,
VAlignmentEnum
=
VAlignmentEnum
.
CENTER
},
new
ExcelColumn
(
value
:
"课时费"
){
CellWidth
=
15
,
HAlignmentEnum
=
HAlignmentEnum
.
CENTER
,
VAlignmentEnum
=
VAlignmentEnum
.
CENTER
}
...
...
@@ -1566,7 +1567,23 @@ namespace Edu.WebApi.Controllers.Finance
var
list
=
financeModule
.
GetTeacherConsumptionHoursDetialPageList
(
pageModel
.
PageIndex
,
pageModel
.
PageSize
,
out
long
count
,
TeacherId
,
SchoolId
,
StartMonth
,
EndMonth
,
userInfo
.
Group_Id
);
pageModel
.
Count
=
Convert
.
ToInt32
(
count
);
pageModel
.
PageData
=
list
;
pageModel
.
PageData
=
list
.
Select
(
x
=>
new
{
Date
=
x
.
Date
.
ToString
(
"yyyy-MM-dd"
),
x
.
TimeBucket
,
x
.
TeacherId
,
x
.
TeacherName
,
x
.
ClassId
,
x
.
ClassName
,
x
.
CouseId
,
x
.
CourseName
,
x
.
KSNum
,
x
.
DKNum
,
x
.
Hours
,
x
.
HourMoney
,
x
.
UnitPrice
,
KSMoney
=
x
.
Money
});
return
ApiResult
.
Success
(
""
,
pageModel
);
}
...
...
@@ -1587,7 +1604,9 @@ namespace Edu.WebApi.Controllers.Finance
new
ExcelColumn
(
value
:
"班级"
){
CellWidth
=
15
,
HAlignmentEnum
=
HAlignmentEnum
.
CENTER
,
VAlignmentEnum
=
VAlignmentEnum
.
CENTER
},
new
ExcelColumn
(
value
:
"课程"
){
CellWidth
=
15
,
HAlignmentEnum
=
HAlignmentEnum
.
CENTER
,
VAlignmentEnum
=
VAlignmentEnum
.
CENTER
},
new
ExcelColumn
(
value
:
"老师名称"
){
CellWidth
=
15
,
HAlignmentEnum
=
HAlignmentEnum
.
CENTER
,
VAlignmentEnum
=
VAlignmentEnum
.
CENTER
},
new
ExcelColumn
(
value
:
"课时单价"
){
CellWidth
=
15
,
HAlignmentEnum
=
HAlignmentEnum
.
CENTER
,
VAlignmentEnum
=
VAlignmentEnum
.
CENTER
},
new
ExcelColumn
(
value
:
"上课课时"
){
CellWidth
=
15
,
HAlignmentEnum
=
HAlignmentEnum
.
CENTER
,
VAlignmentEnum
=
VAlignmentEnum
.
CENTER
},
new
ExcelColumn
(
value
:
"基础课时"
){
CellWidth
=
15
,
HAlignmentEnum
=
HAlignmentEnum
.
CENTER
,
VAlignmentEnum
=
VAlignmentEnum
.
CENTER
},
new
ExcelColumn
(
value
:
"课时转换/小时"
){
CellWidth
=
15
,
HAlignmentEnum
=
HAlignmentEnum
.
CENTER
,
VAlignmentEnum
=
VAlignmentEnum
.
CENTER
},
new
ExcelColumn
(
value
:
"课时费单价元/小时"
){
CellWidth
=
25
,
HAlignmentEnum
=
HAlignmentEnum
.
CENTER
,
VAlignmentEnum
=
VAlignmentEnum
.
CENTER
},
new
ExcelColumn
(
value
:
"老师课时费"
){
CellWidth
=
15
,
HAlignmentEnum
=
HAlignmentEnum
.
CENTER
,
VAlignmentEnum
=
VAlignmentEnum
.
CENTER
},
...
...
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