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
a64cd6ff
Commit
a64cd6ff
authored
May 08, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
也没修过
parent
a7e1c459
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
200 additions
and
271 deletions
+200
-271
DutyStatusEnum.cs
Edu.Common/Enum/Duty/DutyStatusEnum.cs
+8
-2
RB_Duty_PlanDetails_ViewModel.cs
Edu.Model/ViewModel/Duty/RB_Duty_PlanDetails_ViewModel.cs
+1
-25
DutyPlanModule.cs
Edu.Module.Duty/DutyPlanModule.cs
+178
-236
DutyPlanController.cs
Edu.WebApi/Controllers/Duty/DutyPlanController.cs
+13
-8
No files found.
Edu.Common/Enum/Duty/DutyStatusEnum.cs
View file @
a64cd6ff
...
...
@@ -20,9 +20,15 @@ namespace Edu.Common.Enum.Duty
DutyIng
=
1
,
/// <summary>
///
值班
完成
///
已
完成
/// </summary>
[
EnumField
(
"
值班
完成"
)]
[
EnumField
(
"
已
完成"
)]
DutyFinished
=
2
,
/// <summary>
/// 未值班
/// </summary>
[
EnumField
(
"未值班"
)]
NoDuty
=
3
,
}
}
Edu.Model/ViewModel/Duty/RB_Duty_PlanDetails_ViewModel.cs
View file @
a64cd6ff
...
...
@@ -58,35 +58,11 @@ namespace Edu.Model.ViewModel.Duty
{
get
{
string
str
=
"未开始"
;
if
(
this
.
Status
==
1
)
{
str
=
"已打卡"
;
}
if
(
this
.
Status
==
2
)
{
str
=
"已交接"
;
}
return
str
;
return
Common
.
Plugin
.
EnumHelper
.
ToName
(
this
.
Status
);
}
}
/// <summary>
/// 值班状态(见枚举)
/// </summary>
public
DutyStatusEnum
DutyStatus
{
get
;
set
;
}
/// <summary>
/// 值班状态字符串
/// </summary>
public
string
DutyStatusStr
{
get
{
string
str
=
Common
.
Plugin
.
EnumHelper
.
ToName
(
this
.
DutyStatus
);
return
str
;
}
}
/// <summary>
/// 突发事件总数
...
...
Edu.Module.Duty/DutyPlanModule.cs
View file @
a64cd6ff
This diff is collapsed.
Click to expand it.
Edu.WebApi/Controllers/Duty/DutyPlanController.cs
View file @
a64cd6ff
...
...
@@ -63,8 +63,7 @@ namespace Edu.WebApi.Controllers.Duty
PlanDate
=
Common
.
ConvertHelper
.
FormatDate
(
item
.
Date
),
item
.
SchoolName
,
item
.
School_Id
,
item
.
DutyStatus
,
item
.
DutyStatusStr
,
PlanDetails
=
item
?.
PlanDetails
?.
Select
(
qitem
=>
new
{
qitem
.
Id
,
...
...
@@ -75,8 +74,7 @@ namespace Edu.WebApi.Controllers.Duty
qitem
.
EndTime
,
qitem
.
Shift
,
qitem
.
ShiftName
,
qitem
.
DutyStatus
,
qitem
.
DutyStatusStr
,
qitem
.
Status
,
qitem
.
CheckTimeStr
,
qitem
.
FinishTimeStr
,
...
...
@@ -144,6 +142,7 @@ namespace Edu.WebApi.Controllers.Duty
nextModel
=
item
.
PlanDetails
[
nextIndex
];
}
}
string
jiaoBanMan
=
""
;
//交班人
string
jieBanMan
=
""
;
//接班人
if
(
nextModel
!=
null
&&
nextModel
.
Id
>
0
)
...
...
@@ -155,6 +154,10 @@ namespace Edu.WebApi.Controllers.Duty
{
jiaoBanMan
=
previousModel
?.
DutyManName
??
""
;
}
if
(
currentModel
.
Status
==
Common
.
Enum
.
Duty
.
DutyStatusEnum
.
NoStart
)
{
currentModel
.
Status
=
dutyPlanModule
.
CalcDutyPlanStatusModule
(
item
.
Date
,
currentModel
.
StartTime
,
currentModel
.
EndTime
);
}
result
.
Add
(
new
{
item
.
Id
,
...
...
@@ -165,17 +168,19 @@ namespace Edu.WebApi.Controllers.Duty
currentModel
.
StartTime
,
currentModel
.
EndTime
,
PlanList
=
currentModel
?.
WorkContentList
??
new
List
<
RB_Duty_PlanWork_ViewModel
>(),
currentModel
.
CheckLateTime
,
currentModel
.
FinishLateTime
,
currentModel
.
BurstCount
,
currentModel
.
HandoverCount
,
ReciveMan
=
jieBanMan
,
GiveMan
=
jiaoBanMan
,
item
.
CreateByName
,
currentModel
.
Duty
Status
,
currentModel
.
Duty
StatusStr
,
currentModel
.
Status
,
currentModel
.
StatusStr
,
item
.
TotalBurstCount
,
item
.
TotalHandoverCount
,
currentModel
.
CheckTimeStr
,
currentModel
.
CheckLateTime
,
currentModel
.
FinishTimeStr
,
currentModel
.
FinishLateTime
,
});
}
pageModel
.
Count
=
rowsCount
;
...
...
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