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
292445ad
Commit
292445ad
authored
Aug 18, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
18024c5f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
10 deletions
+21
-10
PaperModule.cs
Edu.Module.Exam/PaperModule.cs
+9
-10
RB_Examination_PaperRepository.cs
Edu.Repository/Exam/RB_Examination_PaperRepository.cs
+12
-0
No files found.
Edu.Module.Exam/PaperModule.cs
View file @
292445ad
...
@@ -656,6 +656,7 @@ namespace Edu.Module.Exam
...
@@ -656,6 +656,7 @@ namespace Edu.Module.Exam
model
.
Group_Id
=
UserInfo
.
Group_Id
;
model
.
Group_Id
=
UserInfo
.
Group_Id
;
model
.
School_Id
=
UserInfo
.
School_Id
;
model
.
School_Id
=
UserInfo
.
School_Id
;
model
.
CreateTime
=
DateTime
.
Now
;
model
.
CreateTime
=
DateTime
.
Now
;
if
(
model
.
GroupList
!=
null
&&
model
.
GroupList
.
Count
>
0
)
if
(
model
.
GroupList
!=
null
&&
model
.
GroupList
.
Count
>
0
)
{
{
foreach
(
var
gItem
in
model
.
GroupList
)
foreach
(
var
gItem
in
model
.
GroupList
)
...
@@ -672,7 +673,6 @@ namespace Edu.Module.Exam
...
@@ -672,7 +673,6 @@ namespace Edu.Module.Exam
}
}
}
}
}
}
var
configureModel
=
new
RB_Examination_Configure_ViewModel
()
var
configureModel
=
new
RB_Examination_Configure_ViewModel
()
{
{
Group_Id
=
model
.
Group_Id
,
Group_Id
=
model
.
Group_Id
,
...
@@ -830,7 +830,7 @@ namespace Edu.Module.Exam
...
@@ -830,7 +830,7 @@ namespace Edu.Module.Exam
{
nameof
(
RB_Examination_Publish_ViewModel
.
FillInIsSubject
),
model
.
FillInIsSubject
},
{
nameof
(
RB_Examination_Publish_ViewModel
.
FillInIsSubject
),
model
.
FillInIsSubject
},
{
nameof
(
RB_Examination_Publish_ViewModel
.
FillInIsIgnore
),
model
.
FillInIsIgnore
},
{
nameof
(
RB_Examination_Publish_ViewModel
.
FillInIsIgnore
),
model
.
FillInIsIgnore
},
{
nameof
(
RB_Examination_Publish_ViewModel
.
IsHalfScore
),
model
.
IsHalfScore
},
{
nameof
(
RB_Examination_Publish_ViewModel
.
IsHalfScore
),
model
.
IsHalfScore
},
{
nameof
(
RB_Examination_Publish_ViewModel
.
ExamineStatus
),
model
.
ExamineStatus
},
{
nameof
(
RB_Examination_Publish_ViewModel
.
ExamineStatus
),
model
.
ExamineStatus
},
};
};
flag
=
examination_PublishRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Examination_Publish_ViewModel
.
Id
),
model
.
Id
));
flag
=
examination_PublishRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Examination_Publish_ViewModel
.
Id
),
model
.
Id
));
}
}
...
@@ -839,17 +839,17 @@ namespace Edu.Module.Exam
...
@@ -839,17 +839,17 @@ namespace Edu.Module.Exam
var
newId
=
examination_PublishRepository
.
Insert
(
model
);
var
newId
=
examination_PublishRepository
.
Insert
(
model
);
model
.
Id
=
newId
;
model
.
Id
=
newId
;
model
.
IsExamine
=
1
;
model
.
IsExamine
=
1
;
flag
=
newId
>
0
;
flag
=
newId
>
0
;
examination_PaperRepository
.
UpdateExaminationPaperPublishCountRepository
(
model
.
PaperId
);
}
}
if
(
flag
&&
obj
.
IsOpenExamApply
==
1
&&
model
.
IsExamine
==
1
)
if
(
flag
&&
obj
.
IsOpenExamApply
==
1
&&
model
.
IsExamine
==
1
)
{
{
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
{
nameof
(
RB_Examination_Publish_ViewModel
.
ExamineStatus
),
Common
.
Enum
.
EduTask
.
EduTaskRrocessStatus
.
AuditIng
},
{
nameof
(
RB_Examination_Publish_ViewModel
.
ExamineStatus
),
Common
.
Enum
.
EduTask
.
EduTaskRrocessStatus
.
AuditIng
},
{
nameof
(
RB_Examination_Publish_ViewModel
.
Reviewer
),
obj
.
ZuJuanReviewer
}
{
nameof
(
RB_Examination_Publish_ViewModel
.
Reviewer
),
obj
.
ZuJuanReviewer
}
};
};
flag
=
examination_PublishRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Examination_Publish_ViewModel
.
Id
),
model
.
Id
));
flag
=
examination_PublishRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Examination_Publish_ViewModel
.
Id
),
model
.
Id
));
var
educationReceipt
=
new
Model
.
Entity
.
EduTask
.
RB_Education_Receipt
()
var
educationReceipt
=
new
Model
.
Entity
.
EduTask
.
RB_Education_Receipt
()
{
{
Id
=
0
,
Id
=
0
,
...
@@ -923,8 +923,6 @@ namespace Edu.Module.Exam
...
@@ -923,8 +923,6 @@ namespace Edu.Module.Exam
return
flag
;
return
flag
;
}
}
#
region
考试配置
#
region
考试配置
/// <summary>
/// <summary>
/// 获取配置列表
/// 获取配置列表
...
@@ -975,6 +973,7 @@ namespace Edu.Module.Exam
...
@@ -975,6 +973,7 @@ namespace Edu.Module.Exam
return
flag
;
return
flag
;
}
}
#
endregion
#
endregion
/// <summary>
/// <summary>
/// 根据编号获取考试发布详情
/// 根据编号获取考试发布详情
/// </summary>
/// </summary>
...
...
Edu.Repository/Exam/RB_Examination_PaperRepository.cs
View file @
292445ad
...
@@ -122,5 +122,17 @@ WHERE 1=1
...
@@ -122,5 +122,17 @@ WHERE 1=1
parameters
.
Add
(
"QPaperIds"
,
QPaperIds
,
direction
:
ParameterDirection
.
Input
);
parameters
.
Add
(
"QPaperIds"
,
QPaperIds
,
direction
:
ParameterDirection
.
Input
);
return
Get
<
RB_Examination_Paper_ViewModel
>(
procName
,
parameters
,
commandType
:
CommandType
.
StoredProcedure
).
ToList
();
return
Get
<
RB_Examination_Paper_ViewModel
>(
procName
,
parameters
,
commandType
:
CommandType
.
StoredProcedure
).
ToList
();
}
}
/// <summary>
/// 修改试卷发布次数
/// </summary>
/// <param name="PaperId"></param>
/// <returns></returns>
public
int
UpdateExaminationPaperPublishCountRepository
(
int
PaperId
)
{
StringBuilder
builder
=
new
StringBuilder
();
builder
.
AppendFormat
(
" UPDATE RB_Examination_Paper SET PublishCount=PublishCount+1 WHERE PaperId={0} "
,
PaperId
);
return
base
.
Execute
(
builder
.
ToString
());
}
}
}
}
}
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