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
2870e78d
Commit
2870e78d
authored
Apr 16, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
8c121015
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
68 additions
and
18 deletions
+68
-18
SaleStateEnum.cs
Edu.Common/Enum/Sale/SaleStateEnum.cs
+6
-3
RB_Order_Guest_ViewModel.cs
Edu.Model/ViewModel/Course/RB_Order_Guest_ViewModel.cs
+23
-0
OrderModule.cs
Edu.Module.Course/OrderModule.cs
+27
-10
StudyAbroadModule.cs
Edu.Module.StudyAbroad/StudyAbroadModule.cs
+7
-4
OrderController.cs
Edu.WebApi/Controllers/Course/OrderController.cs
+5
-1
No files found.
Edu.Common/Enum/Sale/SaleStateEnum.cs
View file @
2870e78d
using
Edu.Common.Plugin
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
Edu.Common.Enum.Sale
{
...
...
@@ -33,5 +30,11 @@ namespace Edu.Common.Enum.Sale
/// </summary>
[
EnumField
(
"审核失败"
)]
Fail
=
4
,
/// <summary>
/// 下架
/// </summary>
[
EnumField
(
"下架"
)]
OffShelf
=
5
,
}
}
Edu.Model/ViewModel/Course/RB_Order_Guest_ViewModel.cs
View file @
2870e78d
...
...
@@ -45,5 +45,28 @@ namespace Edu.Model.ViewModel.Course
return
str
;
}
}
/// <summary>
/// 合同主键编号
/// </summary>
public
int
ContractId
{
get
;
set
;
}
/// <summary>
/// 合同编号
/// </summary>
public
string
ContractNo
{
get
;
set
;
}
/// <summary>
/// 合同状态
/// </summary>
public
int
ContractStatus
{
get
;
set
;
}
/// <summary>
/// 合同状态字符串
/// </summary>
public
string
ContractStatusStr
{
get
;
set
;
}
}
}
\ No newline at end of file
Edu.Module.Course/OrderModule.cs
View file @
2870e78d
...
...
@@ -1560,19 +1560,36 @@ namespace Edu.Module.Course
item
.
DirectorRemarkList
=
remarkList
.
Where
(
x
=>
x
.
OrderId
==
item
.
OrderId
&&
x
.
Type
==
4
).
ToList
();
item
.
GuestList
=
guestList
.
Where
(
x
=>
x
.
OrderId
==
item
.
OrderId
).
ToList
();
item
.
ContractList
=
clist
.
Where
(
x
=>
x
.
OrderId
==
item
.
OrderId
).
ToList
();
var
ZList
=
item
.
GuestList
.
Where
(
x
=>
!
item
.
ContractList
.
Select
(
z
=>
z
.
GuestId
).
Contains
(
x
.
Id
)).
ToList
();
if
(
ZList
.
Any
()
&&
item
.
ContractList
.
Any
())
if
(
item
.
GuestList
!=
null
&&
item
.
GuestList
.
Count
>
0
)
{
foreach
(
var
qitem
in
Z
List
)
foreach
(
var
subItem
in
item
.
Guest
List
)
{
item
.
ContractList
.
Add
(
new
RB_Education_Contract_ViewModel
()
var
contractModel
=
clist
.
Where
(
x
=>
x
.
OrderId
==
item
.
OrderId
&&
x
.
GuestId
==
subItem
.
Id
)?.
FirstOrDefault
();
subItem
.
ContractId
=
contractModel
?.
Id
??
0
;
subItem
.
ContractNo
=
contractModel
?.
ContractNo
??
""
;
subItem
.
ContractStatus
=
contractModel
?.
Status
??
-
1
;
string
ContractStatusStr
=
""
;
if
(
subItem
.
ContractStatus
==
0
)
{
Id
=
0
,
StudentName
=
qitem
.
GuestName
,
ContractNo
=
""
,
GuestId
=
qitem
.
Id
,
Status
=
0
});
ContractStatusStr
=
"草稿"
;
}
else
if
(
subItem
.
ContractStatus
==
1
)
{
ContractStatusStr
=
"提交审核"
;
}
else
if
(
subItem
.
ContractStatus
==
2
)
{
ContractStatusStr
=
"审核通过"
;
}
else
if
(
subItem
.
ContractStatus
==
3
)
{
ContractStatusStr
=
"驳回"
;
}
else
if
(
subItem
.
ContractStatus
==
4
)
{
ContractStatusStr
=
"取消"
;
}
subItem
.
ContractStatusStr
=
ContractStatusStr
;
}
}
}
...
...
Edu.Module.StudyAbroad/StudyAbroadModule.cs
View file @
2870e78d
...
...
@@ -265,11 +265,14 @@ namespace Edu.Module.StudyAbroad
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_StudyAbroad_ViewModel
.
SaleState
),
SaleState
},
{
nameof
(
RB_StudyAbroad_ViewModel
.
DirectorAuditTime
),
null
},
{
nameof
(
RB_StudyAbroad_ViewModel
.
DirectorId
),
Common
.
Config
.
StudyAbroadDirectorId
},
{
nameof
(
RB_StudyAbroad_ViewModel
.
DirectorOpinion
),
""
},
{
nameof
(
RB_StudyAbroad_ViewModel
.
DirectorStatus
),
0
},
};
if
(
SaleState
==
2
)
{
fileds
.
Add
(
nameof
(
RB_StudyAbroad_ViewModel
.
DirectorAuditTime
),
null
);
fileds
.
Add
(
nameof
(
RB_StudyAbroad_ViewModel
.
DirectorId
),
Common
.
Config
.
StudyAbroadDirectorId
);
fileds
.
Add
(
nameof
(
RB_StudyAbroad_ViewModel
.
DirectorOpinion
),
""
);
fileds
.
Add
(
nameof
(
RB_StudyAbroad_ViewModel
.
DirectorStatus
),
0
);
}
bool
flag
=
studyAbroadRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_StudyAbroad_ViewModel
.
Id
),
Id
));
return
flag
;
}
...
...
Edu.WebApi/Controllers/Course/OrderController.cs
View file @
2870e78d
...
...
@@ -1014,7 +1014,11 @@ namespace Edu.WebApi.Controllers.Course
{
z
.
Id
,
z
.
GuestName
,
z
.
GuestState
z
.
GuestState
,
z
.
ContractId
,
z
.
ContractNo
,
z
.
ContractStatus
,
z
.
ContractStatusStr
,
}),
ContractList
=
x
?.
ContractList
.
Select
(
z
=>
new
{
z
.
Id
,
...
...
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