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
0f929c1e
Commit
0f929c1e
authored
Jun 28, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增实体类
parent
958d8830
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
61 additions
and
7 deletions
+61
-7
RB_Duty_Item.cs
Edu.Model/Entity/Duty/RB_Duty_Item.cs
+10
-0
RB_Duty_Item_ViewModel.cs
Edu.Model/ViewModel/Duty/RB_Duty_Item_ViewModel.cs
+37
-0
ClassModule.cs
Edu.Module.Course/ClassModule.cs
+1
-1
DutyModule.cs
Edu.Module.Duty/DutyModule.cs
+2
-0
VisitorReserveModule.cs
Edu.Module.Duty/VisitorReserveModule.cs
+5
-3
TeacherModule.cs
Edu.Module.User/TeacherModule.cs
+1
-2
DutyController.cs
Edu.WebApi/Controllers/Duty/DutyController.cs
+5
-1
No files found.
Edu.Model/Entity/Duty/RB_Duty_Item.cs
View file @
0f929c1e
...
...
@@ -70,5 +70,15 @@ namespace Edu.Model.Entity.Duty
/// 值班标准图片
/// </summary>
public
string
ItemImg
{
get
;
set
;
}
/// <summary>
/// 值班事项分类(1-工作清单,2-突发事项,3-交接说明)
/// </summary>
public
int
DutyCategory
{
get
;
set
;
}
/// <summary>
/// 值班类型(1-规则事项,2-值班事项)
/// </summary>
public
int
DutyType
{
get
;
set
;
}
}
}
Edu.Model/ViewModel/Duty/RB_Duty_Item_ViewModel.cs
View file @
0f929c1e
...
...
@@ -39,5 +39,42 @@ namespace Edu.Model.ViewModel.Duty
/// 值班项目图片列表
/// </summary>
public
List
<
string
>
ItemImgList
{
get
;
set
;
}
/// <summary>
/// 值班事项分类字符串
/// </summary>
public
string
DutyCategoryStr
{
get
{
string
str
=
""
;
switch
(
this
.
DutyCategory
)
{
case
1
:
str
=
"工作清单"
;
break
;
case
2
:
str
=
"突发事项"
;
break
;
case
3
:
str
=
"交接说明"
;
break
;
}
return
str
;
}
}
/// <summary>
/// 值班类型字符串
/// </summary>
public
string
DutyTypeStr
{
get
{
string
str
=
""
;
switch
(
this
.
DutyType
)
{
case
1
:
str
=
"规则事项"
;
break
;
case
2
:
str
=
"值班事项"
;
break
;
}
return
str
;
}
}
}
}
Edu.Module.Course/ClassModule.cs
View file @
0f929c1e
...
...
@@ -2275,7 +2275,7 @@ namespace Edu.Module.Course
subItem
.
TeacherName
,
TimeStr
=
Common
.
ConvertHelper
.
GetTimeStr
(
currentDate
),
StartTime
=
subItem
.
ClassTime
,
EndTime
=
subItem
.
EndTime
,
subItem
.
EndTime
,
CompleteProgress
=-
1
,
GuestList
=
visitorList
?.
Where
(
qitem
=>
qitem
.
ReserveClassId
==
subItem
.
ReserveClassId
)?.
Select
(
qitem
=>
new
{
GuestName
=
qitem
.
VisitorName
})
});
...
...
Edu.Module.Duty/DutyModule.cs
View file @
0f929c1e
...
...
@@ -93,6 +93,8 @@ namespace Edu.Module.Duty
{
nameof
(
RB_Duty_Item_ViewModel
.
UpdateBy
),
model
.
UpdateBy
},
{
nameof
(
RB_Duty_Item_ViewModel
.
UpdateTime
),
model
.
UpdateTime
},
{
nameof
(
RB_Duty_Item_ViewModel
.
ItemImg
),
model
.
ItemImg
},
{
nameof
(
RB_Duty_Item_ViewModel
.
DutyCategory
),
model
.
DutyCategory
},
{
nameof
(
RB_Duty_Item_ViewModel
.
DutyType
),
model
.
DutyType
},
};
return
dutyItemRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Duty_Item_ViewModel
.
Id
),
model
.
Id
));
}
...
...
Edu.Module.Duty/VisitorReserveModule.cs
View file @
0f929c1e
...
...
@@ -287,9 +287,11 @@ namespace Edu.Module.Duty
Platform
=
2
,
ReceiveId
=
(
teacherList
.
Where
(
qitem
=>
qitem
.
AccountId
==
oldModel
.
TeacherId
)?.
FirstOrDefault
()?.
Id
??
0
).
ToString
(),
};
List
<
PushMessageModel
>
messageList
=
new
List
<
PushMessageModel
>();
messageList
.
Add
(
pushModel
);
messageList
.
Add
(
pushModel2
);
List
<
PushMessageModel
>
messageList
=
new
List
<
PushMessageModel
>
{
pushModel
,
pushModel2
};
Common
.
Message
.
MessageHelper
.
SendMessage
(
messageList
);
}
}
...
...
Edu.Module.User/TeacherModule.cs
View file @
0f929c1e
...
...
@@ -267,9 +267,8 @@ namespace Edu.Module.User
/// 教师端(新增修改讲师)
/// </summary>
/// <param name="model"></param>
/// <param name="isUpdateBasic">是否更新基础资料</param>
/// <returns></returns>
public
bool
SetTeacherModule_V2
(
RB_Teacher_ViewModel
model
,
bool
isUpdateBasic
=
false
)
public
bool
SetTeacherModule_V2
(
RB_Teacher_ViewModel
model
)
{
bool
flag
;
if
(
model
.
TId
>
0
)
...
...
Edu.WebApi/Controllers/Duty/DutyController.cs
View file @
0f929c1e
...
...
@@ -244,6 +244,8 @@ namespace Edu.WebApi.Controllers.Duty
Shifts
=
base
.
ParmJObj
.
GetStringValue
(
"Shifts"
),
Group_Id
=
base
.
UserInfo
.
Group_Id
,
Id
=
base
.
ParmJObj
.
GetInt
(
"Id"
),
DutyCategory
=
base
.
ParmJObj
.
GetInt
(
"DutyCategory"
),
DutyType
=
base
.
ParmJObj
.
GetInt
(
"DutyType"
),
};
query
.
ItemImgList
=
Common
.
Plugin
.
JsonHelper
.
DeserializeObject
<
List
<
string
>>(
base
.
ParmJObj
.
GetStringValue
(
"ItemImgList"
));
if
(
query
.
ItemImgList
!=
null
&&
query
.
ItemImgList
.
Count
>
0
)
...
...
@@ -318,7 +320,9 @@ namespace Edu.WebApi.Controllers.Duty
SchoolList
,
model
?.
Shifts
,
ShiftList
,
ItemImgList
=
ImgList
ItemImgList
=
ImgList
,
model
?.
DutyType
,
model
?.
DutyCategory
,
};
}
return
ApiResult
.
Success
(
data
:
obj
);
...
...
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