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
a1c92ed4
Commit
a1c92ed4
authored
Dec 30, 2021
by
liudong1993
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/Kui2/education
parents
ff2b83c3
ea33beae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
EducationContractModule.cs
Edu.Module.Course/EducationContractModule.cs
+5
-1
EducationContractController.cs
Edu.WebApi/Controllers/Course/EducationContractController.cs
+2
-1
No files found.
Edu.Module.Course/EducationContractModule.cs
View file @
a1c92ed4
...
@@ -689,13 +689,17 @@ namespace Edu.Module.Course
...
@@ -689,13 +689,17 @@ namespace Edu.Module.Course
/// <param name="sign"></param>
/// <param name="sign"></param>
/// <param name="userInfo"></param>
/// <param name="userInfo"></param>
/// <returns></returns>
/// <returns></returns>
public
bool
SetEducationContractSignModule
(
int
contractId
,
string
sign
)
public
bool
SetEducationContractSignModule
(
int
contractId
,
string
sign
,
string
StuIDCard
)
{
{
Dictionary
<
string
,
object
>
keyValues
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
keyValues
=
new
Dictionary
<
string
,
object
>()
{
{
{
nameof
(
RB_Education_Contract_ViewModel
.
Sign
),
sign
},
{
nameof
(
RB_Education_Contract_ViewModel
.
Sign
),
sign
},
{
nameof
(
RB_Education_Contract_ViewModel
.
SignDate
),
DateTime
.
Now
},
{
nameof
(
RB_Education_Contract_ViewModel
.
SignDate
),
DateTime
.
Now
},
};
};
if
(!
string
.
IsNullOrEmpty
(
StuIDCard
))
{
keyValues
.
Add
(
nameof
(
RB_Education_Contract_ViewModel
.
Sign
),
StuIDCard
);
}
var
model
=
education_ContractRepository
.
GetEntity
(
contractId
);
var
model
=
education_ContractRepository
.
GetEntity
(
contractId
);
var
notifyObj
=
accountRepository
.
GetEntity
(
model
.
CreateBy
);
var
notifyObj
=
accountRepository
.
GetEntity
(
model
.
CreateBy
);
if
(
notifyObj
!=
null
&&
!
string
.
IsNullOrEmpty
(
notifyObj
.
WorkUserId
))
if
(
notifyObj
!=
null
&&
!
string
.
IsNullOrEmpty
(
notifyObj
.
WorkUserId
))
...
...
Edu.WebApi/Controllers/Course/EducationContractController.cs
View file @
a1c92ed4
...
@@ -418,11 +418,12 @@ namespace Edu.WebApi.Controllers.Course
...
@@ -418,11 +418,12 @@ namespace Edu.WebApi.Controllers.Course
{
{
int
ContractId
=
base
.
ParmJObj
.
GetInt
(
"ContractId"
,
0
);
//合同id
int
ContractId
=
base
.
ParmJObj
.
GetInt
(
"ContractId"
,
0
);
//合同id
string
Sign
=
base
.
ParmJObj
.
GetStringValue
(
"Sign"
);
//签名
string
Sign
=
base
.
ParmJObj
.
GetStringValue
(
"Sign"
);
//签名
string
StuIDCard
=
base
.
ParmJObj
.
GetStringValue
(
"StuIDCard"
);
if
(
ContractId
<=
0
)
if
(
ContractId
<=
0
)
{
{
return
ApiResult
.
ParamIsNull
(
"请传递合同id"
);
return
ApiResult
.
ParamIsNull
(
"请传递合同id"
);
}
}
bool
flag
=
educationContractModule
.
SetEducationContractSignModule
(
ContractId
,
Sign
);
bool
flag
=
educationContractModule
.
SetEducationContractSignModule
(
ContractId
,
Sign
,
StuIDCard
);
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
}
}
...
...
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