Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
performance
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zry
performance
Commits
d62de023
Commit
d62de023
authored
Nov 12, 2020
by
lcx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
抽取添加注释
parent
da17812e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
3 deletions
+20
-3
performance/Performance.Extract.Api/Controllers/ExtractController.cs
+2
-2
performance/Performance.Services/EmployeeService.cs
+1
-1
performance/Performance.Services/ExtractExcelService/SheetDataWrite/ISheetDataWrite.cs
+17
-0
No files found.
performance/Performance.Extract.Api/Controllers/ExtractController.cs
View file @
d62de023
...
@@ -153,8 +153,8 @@ public void ExtractData([FromForm] IFormCollection form, int allotId, int hospit
...
@@ -153,8 +153,8 @@ public void ExtractData([FromForm] IFormCollection form, int allotId, int hospit
#
endregion
#
endregion
//string filePath = newExtractService.ExtractData(allotId, request.Email, hospitalId);
//string filePath = newExtractService.ExtractData(allotId, request.Email, hospitalId);
//
string filePath = extractService.ExtractData(allotId, email, hospitalId, "User" + userId, path); //抽取
string
filePath
=
extractService
.
ExtractData
(
allotId
,
email
,
hospitalId
,
"User"
+
userId
,
path
);
//抽取
string
filePath
=
extractService1
.
Main
(
allotId
,
hospitalId
,
email
,
"User"
+
userId
,
path
);
//
string filePath = extractService1.Main(allotId, hospitalId, email, "User" + userId, path);
#
region
保存文件到网站下
#
region
保存文件到网站下
...
...
performance/Performance.Services/EmployeeService.cs
View file @
d62de023
...
@@ -446,7 +446,7 @@ public bool ConfirmAudit(int userid, AprAmountAuditRequest request)
...
@@ -446,7 +446,7 @@ public bool ConfirmAudit(int userid, AprAmountAuditRequest request)
if
(
request
.
Id
.
Length
==
0
)
if
(
request
.
Id
.
Length
==
0
)
throw
new
PerformanceException
(
"审核信息无效,请确认"
);
throw
new
PerformanceException
(
"审核信息无效,请确认"
);
var
apramounts
=
perapramountRepository
.
GetEntities
(
t
=>
request
.
Id
.
Contains
(
t
.
Id
)
);
var
apramounts
=
perapramountRepository
.
GetEntities
(
t
=>
(
t
.
DoctorName
??
""
)
==
request
.
DoctorName
&&
(
t
.
PersonnelNumber
??
""
)
==
request
.
PersonnelNumber
);
foreach
(
var
item
in
apramounts
)
foreach
(
var
item
in
apramounts
)
{
{
item
.
Status
=
(
request
.
IsPass
==
1
)
?
3
:
4
;
item
.
Status
=
(
request
.
IsPass
==
1
)
?
3
:
4
;
...
...
performance/Performance.Services/ExtractExcelService/SheetDataWrite/ISheetDataWrite.cs
View file @
d62de023
...
@@ -9,8 +9,25 @@ namespace Performance.Services.ExtractExcelService.SheetDataWrite
...
@@ -9,8 +9,25 @@ namespace Performance.Services.ExtractExcelService.SheetDataWrite
{
{
public
interface
ISheetDataWrite
public
interface
ISheetDataWrite
{
{
/// <summary>
/// 写入采集数据
/// </summary>
/// <param name="sheet">ISheet</param>
/// <param name="point">数据起始字典</param>
/// <param name="sheetType"></param>
/// <param name="style"></param>
/// <param name="collects">采集数据</param>
void
WriteCollectData
(
ISheet
sheet
,
PerSheetPoint
point
,
SheetType
sheetType
,
ExcelStyle
style
,
List
<
collect_data
>
collects
);
void
WriteCollectData
(
ISheet
sheet
,
PerSheetPoint
point
,
SheetType
sheetType
,
ExcelStyle
style
,
List
<
collect_data
>
collects
);
/// <summary>
/// 写入抽取数据
/// </summary>
/// <param name="sheet">ISheet</param>
/// <param name="point">数据起始字典</param>
/// <param name="sheetType"></param>
/// <param name="style"></param>
/// <param name="data">抽取数据</param>
/// <param name="exdict">配置字典</param>
void
WriteSheetData
(
ISheet
sheet
,
PerSheetPoint
point
,
SheetType
sheetType
,
ExcelStyle
style
,
object
data
,
Dictionary
<
ExDataDict
,
object
>
exdict
=
null
);
void
WriteSheetData
(
ISheet
sheet
,
PerSheetPoint
point
,
SheetType
sheetType
,
ExcelStyle
style
,
object
data
,
Dictionary
<
ExDataDict
,
object
>
exdict
=
null
);
}
}
}
}
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