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
a9e6525f
Commit
a9e6525f
authored
Jul 12, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增调课流程
parent
aa7685d9
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
62 additions
and
7 deletions
+62
-7
Config.cs
Edu.Common/Config.cs
+12
-0
WFTAuditTypeEnum.cs
Edu.Common/Enum/User/WFTAuditTypeEnum.cs
+10
-3
RB_Flow_AduitInfo.cs
Edu.Model/Entity/Flow/RB_Flow_AduitInfo.cs
+2
-2
RB_Education_ReceiptRepository.cs
Edu.Repository/EduTask/RB_Education_ReceiptRepository.cs
+1
-1
FlowController.cs
Edu.WebApi/Controllers/Public/FlowController.cs
+34
-0
appsettings.json
Edu.WebApi/appsettings.json
+3
-1
No files found.
Edu.Common/Config.cs
View file @
a9e6525f
...
...
@@ -356,6 +356,18 @@ namespace Edu.Common
}
}
/// <summary>
/// 调课流程编号
/// </summary>
public
static
int
ChangeClassFlowId
{
get
{
int
.
TryParse
(
ReadConfigKey
(
"ChangeClassFlowId"
),
out
int
ChangeClassFlowId
);
return
ChangeClassFlowId
;
}
}
/// <summary>
/// okr关注事项配置
/// </summary>
...
...
Edu.Common/Enum/User/WFTAuditTypeEnum.cs
View file @
a9e6525f
...
...
@@ -18,11 +18,18 @@ namespace Edu.Common.Enum.User
[
EnumField
(
"指定成员"
)]
SpecifiedMember
=
2
,
/// <summary>
/// 角色
///
指定
角色
/// </summary>
[
EnumField
(
"角色"
)]
Role
=
3
[
EnumField
(
"指定角色"
)]
Role
=
3
,
/// <summary>
/// 系统角色
/// </summary>
[
EnumField
(
"系统角色"
)]
Post
=
4
,
}
/// <summary>
/// 审核方式
/// </summary>
...
...
Edu.Model/Entity/Flow/RB_Flow_AduitInfo.cs
View file @
a9e6525f
...
...
@@ -39,7 +39,7 @@ namespace Edu.Model.Entity.Flow
public
WFTAuditTypeEnum
AuditType
{
get
;
set
;
}
/// <summary>
/// 审核人员编号(AuditType为
1
时使用)
/// 审核人员编号(AuditType为
2
时使用)
/// </summary>
public
int
UserId
{
get
;
set
;
}
...
...
@@ -49,7 +49,7 @@ namespace Edu.Model.Entity.Flow
public
int
IsSpecNode
{
get
;
set
;
}
/// <summary>
///
1-班级教师,2-关联销售,3-分区校长,4-教务长 AuditType为2时使用
///
AuditType=3【1-班级教师,2-关联销售,3-分区校长,4-教务长】AuditType=4【系统角色】
/// </summary>
public
int
PostType
{
get
;
set
;
}
...
...
Edu.Repository/EduTask/RB_Education_ReceiptRepository.cs
View file @
a9e6525f
...
...
@@ -148,7 +148,7 @@ WHERE 1=1
}
else
if
(
model
.
ReceiptType
==
Common
.
Enum
.
Finance
.
ReceiptTypeEnum
.
ChangeClass
)
{
flowModel
=
flowRepository
.
GetFlowRepository
(
Common
.
Config
.
Back
ClassFlowId
);
flowModel
=
flowRepository
.
GetFlowRepository
(
Common
.
Config
.
Change
ClassFlowId
);
if
(
flowModel
==
null
)
{
message
=
"未配置调课流程!"
;
...
...
Edu.WebApi/Controllers/Public/FlowController.cs
View file @
a9e6525f
...
...
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using
System.Linq
;
using
System.Threading.Tasks
;
using
Edu.Common.API
;
using
Edu.Common.Enum.User
;
using
Edu.Common.Plugin
;
using
Edu.Model.ViewModel.Flow
;
using
Edu.Module.System
;
...
...
@@ -10,6 +11,7 @@ using Edu.WebApi.Filter;
using
Microsoft.AspNetCore.Cors
;
using
Microsoft.AspNetCore.Http
;
using
Microsoft.AspNetCore.Mvc
;
using
Newtonsoft.Json.Linq
;
namespace
Edu.WebApi.Controllers.Public
{
...
...
@@ -58,6 +60,38 @@ namespace Edu.WebApi.Controllers.Public
UpdateBy
=
base
.
UserInfo
.
Id
,
UpdateTime
=
DateTime
.
Now
,
};
extModel
.
FlowNodeList
=
new
List
<
RB_Flow_Node_ViewModel
>();
JArray
jArray
=
JArray
.
Parse
(
base
.
ParmJObj
.
GetStringValue
(
"FlowNodeList"
));
foreach
(
var
jItem
in
jArray
)
{
JObject
jObj
=
JObject
.
Parse
(
jItem
.
ToString
());
RB_Flow_Node_ViewModel
model
=
new
RB_Flow_Node_ViewModel
()
{
FlowId
=
jObj
.
GetInt
(
"FlowId"
),
NodeId
=
jObj
.
GetInt
(
"NodeId"
),
NodeName
=
jObj
.
GetStringValue
(
"NodeName"
),
SortNum
=
jObj
.
GetInt
(
"SortNum"
),
};
model
.
FlowAduitList
=
new
List
<
RB_Flow_AduitInfo_ViewModel
>();
//审核人数组
JArray
subArray
=
JArray
.
Parse
(
jObj
.
GetStringValue
(
"FlowAduitList"
));
foreach
(
var
sItem
in
subArray
)
{
JObject
sObj
=
JObject
.
Parse
(
sItem
.
ToString
());
model
.
FlowAduitList
.
Add
(
new
RB_Flow_AduitInfo_ViewModel
()
{
CheckId
=
sObj
.
GetInt
(
"CheckId"
),
NodeId
=
sObj
.
GetInt
(
"NodeId"
),
FlowId
=
sObj
.
GetInt
(
"FlowId"
),
AduitName
=
sObj
.
GetStringValue
(
"AduitName"
),
AuditType
=(
WFTAuditTypeEnum
)
sObj
.
GetInt
(
"AuditType"
),
UserId
=
sObj
.
GetInt
(
"UserId"
),
IsSpecNode
=
sObj
.
GetInt
(
"IsSpecNode"
),
PostType
=
sObj
.
GetInt
(
"PostType"
),
AuditWay
=(
WFTAuditWayEnum
)
sObj
.
GetInt
(
"AuditWay"
),
});
}
}
if
(!
string
.
IsNullOrEmpty
(
base
.
ParmJObj
.
GetStringValue
(
"FlowNodeList"
)))
{
try
...
...
Edu.WebApi/appsettings.json
View file @
a9e6525f
...
...
@@ -77,5 +77,7 @@
//连续缺课课时
"AbsentHours"
:
12
,
//值班时间验证日期
"DutyDate"
:
"2021-06-30"
"DutyDate"
:
"2021-06-30"
,
//调课流程编号
"ChangeClassFlowId"
:
2
}
\ No newline at end of file
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