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
79c23792
Commit
79c23792
authored
Dec 23, 2020
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
920ed0e2
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
7 deletions
+11
-7
WFTTemplateTypeEnum.cs
Edu.Common/Enum/User/WFTTemplateTypeEnum.cs
+4
-4
StudentBillModule.cs
Edu.Module.Course/StudentBillModule.cs
+1
-0
TeachingRewardsModule.cs
Edu.Module.Course/TeachingRewardsModule.cs
+3
-0
Rb_attendanceRepository.cs
Edu.Repository/User/Rb_attendanceRepository.cs
+2
-2
WorkFlowController.cs
Edu.WebApi/Controllers/User/WorkFlowController.cs
+1
-1
No files found.
Edu.Common/Enum/User/WFTTemplateTypeEnum.cs
View file @
79c23792
...
@@ -11,22 +11,22 @@ namespace Edu.Common.Enum.User
...
@@ -11,22 +11,22 @@ namespace Edu.Common.Enum.User
/// <summary>
/// <summary>
/// 请假
/// 请假
/// </summary>
/// </summary>
[
EnumField
(
"请假|/Upload/Icon/Audit/qingjia.png|1|
app_user_workflow_askforleave_template|app_user_workflow_askforleave_s
ubmit"
)]
[
EnumField
(
"请假|/Upload/Icon/Audit/qingjia.png|1|
/workflow/AskForLeaveTemplate|/workflow/AskForLeaveS
ubmit"
)]
AskForLeave
=
1
,
AskForLeave
=
1
,
/// <summary>
/// <summary>
/// 出差
/// 出差
/// </summary>
/// </summary>
[
EnumField
(
"出差|/Upload/Icon/Audit/chucai.png|1|
app_user_workflow_evection_template|app_user_workflow_evection_s
ubmit"
)]
[
EnumField
(
"出差|/Upload/Icon/Audit/chucai.png|1|
/workflow/EvectionTemplate|/workflow/EvectionS
ubmit"
)]
Evection
=
2
,
Evection
=
2
,
/// <summary>
/// <summary>
/// 外出
/// 外出
/// </summary>
/// </summary>
[
EnumField
(
"外出|/Upload/Icon/Audit/waichu.png|1|
app_user_workflow_goout_template|app_user_workflow_goout_s
ubmit"
)]
[
EnumField
(
"外出|/Upload/Icon/Audit/waichu.png|1|
/workflow/GooutTemplate|/workflow/GooutS
ubmit"
)]
Goout
=
3
,
Goout
=
3
,
/// <summary>
/// <summary>
/// 补卡
/// 补卡
/// </summary>
/// </summary>
[
EnumField
(
"补卡|/Upload/Icon/Audit/buka.png|1|
app_user_workflow_reissueCard_template|app_user_workflow_reissueCard_s
ubmit"
)]
[
EnumField
(
"补卡|/Upload/Icon/Audit/buka.png|1|
/workflow/ReissueCardTemplate|/workflow/ReissueCardS
ubmit"
)]
ReissueCard
=
4
,
ReissueCard
=
4
,
}
}
}
}
Edu.Module.Course/StudentBillModule.cs
View file @
79c23792
...
@@ -739,6 +739,7 @@ namespace Edu.Module.Course
...
@@ -739,6 +739,7 @@ namespace Edu.Module.Course
{
{
var
backModel
=
student_BackClassRepository
.
GetEntity
(
backClassId
);
var
backModel
=
student_BackClassRepository
.
GetEntity
(
backClassId
);
if
(
backModel
==
null
||
backModel
.
AuditStatus
!=
BackClassAuditStatusEnum
.
Pass
)
{
return
"退课流程未审核通过"
;
}
if
(
backModel
==
null
||
backModel
.
AuditStatus
!=
BackClassAuditStatusEnum
.
Pass
)
{
return
"退课流程未审核通过"
;
}
if
(
backModel
.
FinanceId
>
0
)
{
return
"已制单,无法再次生成财务单据"
;
}
var
guestModel
=
order_GuestRepository
.
GetEntity
(
backModel
.
GuestId
);
var
guestModel
=
order_GuestRepository
.
GetEntity
(
backModel
.
GuestId
);
if
(
guestModel
==
null
||
guestModel
.
GuestState
!=
2
)
{
return
"客人名单状态不正确"
;
}
if
(
guestModel
==
null
||
guestModel
.
GuestState
!=
2
)
{
return
"客人名单状态不正确"
;
}
...
...
Edu.Module.Course/TeachingRewardsModule.cs
View file @
79c23792
...
@@ -600,6 +600,8 @@ namespace Edu.Module.Course
...
@@ -600,6 +600,8 @@ namespace Edu.Module.Course
{
{
var
tmodel
=
teaching_BonusRepository
.
GetEntity
(
bonusId
);
var
tmodel
=
teaching_BonusRepository
.
GetEntity
(
bonusId
);
if
(
tmodel
==
null
)
{
return
"教师奖励不存在"
;
}
if
(
tmodel
==
null
)
{
return
"教师奖励不存在"
;
}
if
(
tmodel
.
State
!=
BonusStateEnum
.
Confirmed
)
{
return
"奖金状态不正确"
;
}
if
(!
string
.
IsNullOrEmpty
(
tmodel
.
FinanceId
))
{
return
"已制单,无法再次生成单据"
;
}
var
list
=
teaching_BonusDetailRepository
.
GetTeachingBonusStatistics
(
new
RB_Teaching_BonusDetail_ViewModel
()
{
Group_Id
=
userInfo
.
Group_Id
,
BonusId
=
bonusId
});
var
list
=
teaching_BonusDetailRepository
.
GetTeachingBonusStatistics
(
new
RB_Teaching_BonusDetail_ViewModel
()
{
Group_Id
=
userInfo
.
Group_Id
,
BonusId
=
bonusId
});
string
msg
=
""
;
string
msg
=
""
;
...
@@ -1209,6 +1211,7 @@ namespace Edu.Module.Course
...
@@ -1209,6 +1211,7 @@ namespace Edu.Module.Course
var
tmodel
=
teaching_PerfRepository
.
GetEntity
(
perfId
);
var
tmodel
=
teaching_PerfRepository
.
GetEntity
(
perfId
);
if
(
tmodel
==
null
)
{
return
"教师绩效不存在"
;
}
if
(
tmodel
==
null
)
{
return
"教师绩效不存在"
;
}
if
(
tmodel
.
PerfState
!=
PerfStateEnum
.
Confirmed
)
{
return
"未确认无法制单"
;
}
if
(
tmodel
.
PerfState
!=
PerfStateEnum
.
Confirmed
)
{
return
"未确认无法制单"
;
}
if
(
tmodel
.
FinanceId
>
0
)
{
return
"财务单据已存在,无法再次制单"
;
}
string
msg
=
""
;
string
msg
=
""
;
var
teacherModel
=
teacherRepository
.
GetTeacherList
(
tmodel
.
TeacherId
.
ToString
()).
FirstOrDefault
();
var
teacherModel
=
teacherRepository
.
GetTeacherList
(
tmodel
.
TeacherId
.
ToString
()).
FirstOrDefault
();
...
...
Edu.Repository/User/Rb_attendanceRepository.cs
View file @
79c23792
...
@@ -60,8 +60,8 @@ case when a.Id is NULL then 2 else 1 end AS IsBind ,e.EmName as UpdateName,b.SNa
...
@@ -60,8 +60,8 @@ case when a.Id is NULL then 2 else 1 end AS IsBind ,e.EmName as UpdateName,b.SNa
(select count(*) from rb_employee em where em.IsLeave=0 and em.RB_Branch_id=b.SId) as PeopleNum,
(select count(*) from rb_employee em where em.IsLeave=0 and em.RB_Branch_id=b.SId) as PeopleNum,
case when a.Id IS NOT NULL THEN (select GROUP_CONCAT(ws.Workday SEPARATOR '、')
case when a.Id IS NOT NULL THEN (select GROUP_CONCAT(ws.Workday SEPARATOR '、')
from rb_workdayseting ws where ws.AttendanceId=a.Id) ELSE '' END as AttendanceDate
from rb_workdayseting ws where ws.AttendanceId=a.Id) ELSE '' END as AttendanceDate
from
Rb_attendance a
from
rb_school b
left join
rb_school b
on a.RB_BranchId = b.SId
left join
Rb_attendance a
on a.RB_BranchId = b.SId
left join rb_employee e on a.UpdateBy=e.EmployeeId )t "
+
where
+
" order by t.IsBind,t.RB_BranchId asc"
).
ToList
();
left join rb_employee e on a.UpdateBy=e.EmployeeId )t "
+
where
+
" order by t.IsBind,t.RB_BranchId asc"
).
ToList
();
return
pageList
;
return
pageList
;
}
}
...
...
Edu.WebApi/Controllers/User/WorkFlowController.cs
View file @
79c23792
...
@@ -56,7 +56,7 @@ namespace Edu.WebApi.Controllers.User
...
@@ -56,7 +56,7 @@ namespace Edu.WebApi.Controllers.User
string
[]
tempTypeStr
=
template
.
TemplateType
.
ToName
().
Split
(
'|'
);
string
[]
tempTypeStr
=
template
.
TemplateType
.
ToName
().
Split
(
'|'
);
if
(
tempTypeStr
.
Length
>
1
)
if
(
tempTypeStr
.
Length
>
1
)
{
{
var
tmp
=
new
{
id
=
template
.
Id
,
name
=
template
.
Name
,
icon
=
Config
.
Get
OssFileUrl
+
tempTypeStr
[
1
]
,
cmd
=
tempTypeStr
[
3
],
submitCmd
=
tempTypeStr
[
4
],
jumpUrl
=
$"vt://applySubmit/view?type=
{
template
.
Name
}
"
};
var
tmp
=
new
{
id
=
template
.
Id
,
name
=
template
.
Name
,
icon
=
Config
.
Get
ErpFileUrl
(
tempTypeStr
[
1
])
,
cmd
=
tempTypeStr
[
3
],
submitCmd
=
tempTypeStr
[
4
],
jumpUrl
=
$"vt://applySubmit/view?type=
{
template
.
Name
}
"
};
templateList
.
Add
(
tmp
);
templateList
.
Add
(
tmp
);
}
}
}
}
...
...
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