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
9e9b119f
Commit
9e9b119f
authored
Jan 11, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
79d1fbb7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
322 additions
and
14 deletions
+322
-14
XlsQuestionHelper.cs
Edu.Common/Data/XlsQuestionHelper.cs
+9
-1
ConvertHelper.cs
Edu.Common/Plugin/ConvertHelper.cs
+15
-0
RB_AccountRepository.cs
Edu.Repository/User/RB_AccountRepository.cs
+2
-1
QuestionController.cs
Edu.WebApi/Controllers/Course/QuestionController.cs
+296
-12
No files found.
Edu.Common/Data/XlsQuestionHelper.cs
View file @
9e9b119f
...
@@ -5,8 +5,16 @@ using System.Text;
...
@@ -5,8 +5,16 @@ using System.Text;
namespace
Edu.Common.Data
namespace
Edu.Common.Data
{
{
public
class
XlsQuestionHelper
/// <summary>
/// 导入问题帮助类
/// </summary>
public
class
QuestionHelper
{
{
/// <summary>
/// 根据Excel文件获取问题列表
/// </summary>
/// <param name="filePath"></param>
/// <returns></returns>
public
static
List
<
XlsItem
>
GetXlsQuestionData
(
string
filePath
)
public
static
List
<
XlsItem
>
GetXlsQuestionData
(
string
filePath
)
{
{
List
<
XlsItem
>
xlsItems
=
new
List
<
XlsItem
>();
List
<
XlsItem
>
xlsItems
=
new
List
<
XlsItem
>();
...
...
Edu.Common/Plugin/ConvertHelper.cs
View file @
9e9b119f
...
@@ -198,6 +198,21 @@ namespace Edu.Common
...
@@ -198,6 +198,21 @@ namespace Edu.Common
{
{
return
Regex
.
IsMatch
(
StrSource
,
@"^((20|21|22|23|[0-1]?\d):[0-5]?\d:[0-5]?\d)$"
);
return
Regex
.
IsMatch
(
StrSource
,
@"^((20|21|22|23|[0-1]?\d):[0-5]?\d:[0-5]?\d)$"
);
}
}
/// <summary>
/// 获取英文字母
/// </summary>
/// <param name="index"></param>
/// <returns></returns>
public
static
string
GetEnChar
(
int
index
)
{
string
[]
tempArray
=
{
"A"
,
"B"
,
"C"
,
"D"
,
"E"
,
"F"
,
"G"
,
"H"
,
"I"
,
"J"
,
"K"
,
"L"
,
"M"
,
"N"
,
"O"
,
"P"
,
"Q"
,
"R"
,
"S"
,
"T"
,
"U"
,
"V"
,
"W"
,
"X"
,
"Y"
,
"Z"
};
if
(
index
<
tempArray
.
Length
)
{
return
tempArray
[
index
];
}
return
""
;
}
}
}
}
}
\ No newline at end of file
Edu.Repository/User/RB_AccountRepository.cs
View file @
9e9b119f
...
@@ -215,6 +215,7 @@ WHERE 1=1 {1}
...
@@ -215,6 +215,7 @@ WHERE 1=1 {1}
StringBuilder
wheremanager
=
new
StringBuilder
();
StringBuilder
wheremanager
=
new
StringBuilder
();
StringBuilder
whereteacher
=
new
StringBuilder
();
StringBuilder
whereteacher
=
new
StringBuilder
();
StringBuilder
whereassist
=
new
StringBuilder
();
StringBuilder
whereassist
=
new
StringBuilder
();
where
.
AppendFormat
(
" AND A.{0}={1} "
,
nameof
(
Employee_ViewModel
.
Status
),
(
int
)
DateStateEnum
.
Normal
);
if
(
query
!=
null
)
if
(
query
!=
null
)
{
{
if
(
query
.
Group_Id
>
0
)
if
(
query
.
Group_Id
>
0
)
...
@@ -346,7 +347,7 @@ FROM
...
@@ -346,7 +347,7 @@ FROM
,b.School_Id,IFNULL(B.AssistName,'') AS EmployeeName,B.AssistIcon AS UserIcon,B.Dept_Id,B.Post_Id,B.IDCard
,b.School_Id,IFNULL(B.AssistName,'') AS EmployeeName,B.AssistIcon AS UserIcon,B.Dept_Id,B.Post_Id,B.IDCard
,B.Sex,B.Education,B.EntryTime,B.Address,B.BirthDate
,B.Sex,B.Education,B.EntryTime,B.Address,B.BirthDate
,B.LeaveStatus,B.LeaveTime,B.AssistTel AS EmployeeTel,IFNULL(B.Email,'') AS Email
,B.LeaveStatus,B.LeaveTime,B.AssistTel AS EmployeeTel,IFNULL(B.Email,'') AS Email
FROM rb_assist AS B LEFT JOIN rb_account AS A ON A.AccountId=B.AId AND A.AccountType=3
FROM rb_assist AS B LEFT JOIN rb_account AS A ON A.AccountId=B.AId AND A.AccountType=3
WHERE 1=1 {0} {3}
WHERE 1=1 {0} {3}
) AS A LEFT JOIN rb_group AS g ON A.Group_Id=g.GId
) AS A LEFT JOIN rb_group AS g ON A.Group_Id=g.GId
LEFT JOIN rb_school AS s ON A.School_Id=s.SId
LEFT JOIN rb_school AS s ON A.School_Id=s.SId
...
...
Edu.WebApi/Controllers/Course/QuestionController.cs
View file @
9e9b119f
This diff is collapsed.
Click to expand it.
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