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
f7375fb9
Commit
f7375fb9
authored
Apr 21, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
dff5b95e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
137 additions
and
2 deletions
+137
-2
RB_Education_Contract_ViewModel.cs
...Model/ViewModel/Course/RB_Education_Contract_ViewModel.cs
+132
-0
EducationContractModule.cs
Edu.Module.Course/EducationContractModule.cs
+5
-2
No files found.
Edu.Model/ViewModel/Course/RB_Education_Contract_ViewModel.cs
View file @
f7375fb9
...
...
@@ -226,5 +226,137 @@ namespace Edu.Model.ViewModel.Course
return
FirstMoney
+
SecondMoney
+
ThirdMoney
;
}
}
/// <summary>
/// 公司合同章图片
/// </summary>
public
string
GroupSealImg
{
get
;
set
;
}
/// <summary>
/// 学员签字年份
/// </summary>
public
string
StuSignYear
{
get
{
string
yearStr
=
""
;
string
signDate
=
Common
.
ConvertHelper
.
FormatDate
(
this
.
SignDate
);
if
(!
string
.
IsNullOrEmpty
(
signDate
))
{
var
signDateArray
=
signDate
.
Split
(
'-'
);
if
(
signDateArray
!=
null
&&
signDateArray
.
Length
>
0
)
{
yearStr
=
signDateArray
[
0
];
}
}
return
yearStr
;
}
}
/// <summary>
/// 学员签字月份
/// </summary>
public
string
StuSignMonth
{
get
{
string
monthStr
=
""
;
string
signDate
=
Common
.
ConvertHelper
.
FormatDate
(
this
.
SignDate
);
if
(!
string
.
IsNullOrEmpty
(
signDate
))
{
var
signDateArray
=
signDate
.
Split
(
'-'
);
if
(
signDateArray
!=
null
&&
signDateArray
.
Length
>
1
)
{
monthStr
=
signDateArray
[
1
];
}
}
return
monthStr
;
}
}
/// <summary>
/// 学员签字天
/// </summary>
public
string
StuSignDay
{
get
{
string
dayStr
=
""
;
string
signDate
=
Common
.
ConvertHelper
.
FormatDate
(
this
.
SignDate
);
if
(!
string
.
IsNullOrEmpty
(
signDate
))
{
var
signDateArray
=
signDate
.
Split
(
'-'
);
if
(
signDateArray
!=
null
&&
signDateArray
.
Length
>
2
)
{
dayStr
=
signDateArray
[
2
];
}
}
return
dayStr
;
}
}
/// <summary>
/// 公司签字年份
/// </summary>
public
string
SealDateYear
{
get
{
string
yearStr
=
""
;
string
signDate
=
Common
.
ConvertHelper
.
FormatDate
(
this
.
SealDate
);
if
(!
string
.
IsNullOrEmpty
(
signDate
))
{
var
signDateArray
=
signDate
.
Split
(
'-'
);
if
(
signDateArray
!=
null
&&
signDateArray
.
Length
>
0
)
{
yearStr
=
signDateArray
[
0
];
}
}
return
yearStr
;
}
}
/// <summary>
/// 公司签字月份
/// </summary>
public
string
SealDateMonth
{
get
{
string
monthStr
=
""
;
string
signDate
=
Common
.
ConvertHelper
.
FormatDate
(
this
.
SealDate
);
if
(!
string
.
IsNullOrEmpty
(
signDate
))
{
var
signDateArray
=
signDate
.
Split
(
'-'
);
if
(
signDateArray
!=
null
&&
signDateArray
.
Length
>
1
)
{
monthStr
=
signDateArray
[
1
];
}
}
return
monthStr
;
}
}
/// <summary>
/// 公司签字天
/// </summary>
public
string
SealDateDay
{
get
{
string
dayStr
=
""
;
string
signDate
=
Common
.
ConvertHelper
.
FormatDate
(
this
.
SealDate
);
if
(!
string
.
IsNullOrEmpty
(
signDate
))
{
var
signDateArray
=
signDate
.
Split
(
'-'
);
if
(
signDateArray
!=
null
&&
signDateArray
.
Length
>
2
)
{
dayStr
=
signDateArray
[
2
];
}
}
return
dayStr
;
}
}
}
}
Edu.Module.Course/EducationContractModule.cs
View file @
f7375fb9
...
...
@@ -247,8 +247,11 @@ namespace Edu.Module.Course
public
RB_Education_Contract_ViewModel
GetEducationContractModule
(
int
contractId
)
{
var
model
=
education_ContractRepository
.
GetEntity
<
RB_Education_Contract_ViewModel
>(
contractId
);
if
(
model
==
null
)
return
model
;
var
gmodel
=
groupRepository
.
GetEntity
(
model
.
Group_Id
);
if
(
model
!=
null
)
{
var
gmodel
=
groupRepository
.
GetEntity
(
model
.
Group_Id
);
model
.
GroupSealImg
=
gmodel
?.
SealImage
??
""
;
}
return
model
;
}
...
...
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