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
8a3157ca
Commit
8a3157ca
authored
Sep 17, 2020
by
lcx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
特殊科室抽取
parent
377064cf
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
21 deletions
+25
-21
performance/Performance.Services/DFExtractService.cs
+24
-20
performance/Performance.Services/LogManageService.cs
+1
-1
No files found.
performance/Performance.Services/DFExtractService.cs
View file @
8a3157ca
...
...
@@ -493,27 +493,27 @@ public string AlllotExecute(string email, sys_hospital hospital, List<sys_hospit
//case SheetType.ClinicEmployee:
// WriteClinicEmployee(sheet, sheetRead, false);
// break;
//
case SheetType.OtherIncome:
//
ClearData(sheet, 5, 7);
//
WriteOtherIncome(sheet, sheetRead, modules, items, extracts, false);
//
break;
//
case SheetType.Income:
//
ClearData(sheet, 5, 3, true);
//
WriteIncome(sheet, sheetRead, modules, items, extracts, false);
//
break;
//
case SheetType.Expend:
//
ClearData(sheet, 5, 7);
//
WriteExpend(sheet, sheetRead, modules, items, extracts, false);
//
break;
//
case SheetType.Workload:
//
ClearData(sheet, 3, 3);
//
WriteWorkload(sheet, sheetRead, modules, items, extracts, false);
//
break;
case
SheetType
.
OtherIncome
:
ClearData
(
sheet
,
5
,
7
);
WriteOtherIncome
(
sheet
,
sheetRead
,
modules
,
items
,
extracts
,
false
);
break
;
case
SheetType
.
Income
:
ClearData
(
sheet
,
5
,
3
,
true
);
WriteIncome
(
sheet
,
sheetRead
,
modules
,
items
,
extracts
,
false
);
break
;
case
SheetType
.
Expend
:
ClearData
(
sheet
,
5
,
7
);
WriteExpend
(
sheet
,
sheetRead
,
modules
,
items
,
extracts
,
false
);
break
;
case
SheetType
.
Workload
:
ClearData
(
sheet
,
3
,
3
);
WriteWorkload
(
sheet
,
sheetRead
,
modules
,
items
,
extracts
,
false
);
break
;
//case SheetType.AccountBasic:
// WriteAccountBasic(sheet, sheetRead, false);
// break;
case
SheetType
.
SpecialUnit
:
//ClearData(sheet, 2, 0
);
ClearData
(
sheet
,
2
,
3
,
endCellNum
:
4
);
SupplySpecialUnit
(
sheet
,
sheetRead
,
specials
,
extracts
,
lastAllot
,
false
);
break
;
}
...
...
@@ -795,7 +795,7 @@ private void CreateNotExistSheet(List<ex_module> modulesList, IWorkbook workbook
}
}
private
void
ClearData
(
ISheet
sheet
,
int
beginRowNum
,
int
beginCellNum
,
bool
isIncome
=
false
)
private
void
ClearData
(
ISheet
sheet
,
int
beginRowNum
,
int
beginCellNum
,
bool
isIncome
=
false
,
int
?
endCellNum
=
null
)
{
if
(
sheet
==
null
)
return
;
...
...
@@ -805,8 +805,9 @@ private void ClearData(ISheet sheet, int beginRowNum, int beginCellNum, bool isI
var
row
=
sheet
.
GetRow
(
i
);
if
(
row
!=
null
)
{
int
lastCellNum
=
endCellNum
??
row
.
LastCellNum
;
//跳过核算单元和科室
for
(
int
j
=
beginCellNum
;
j
<
row
.
L
astCellNum
;
j
++)
for
(
int
j
=
beginCellNum
;
j
<
l
astCellNum
;
j
++)
{
var
cell
=
row
.
GetCell
(
j
);
if
(
cell
!=
null
&&
(
cell
.
CellType
!=
CellType
.
Formula
||
isIncome
))
...
...
@@ -1371,7 +1372,7 @@ private void SupplySpecialUnit(ISheet sheet, IPerSheetDataRead sheetRead, List<e
headerDict
.
Add
(
t
.
StringCellValue
,
cellList
.
IndexOf
(
t
));
});
if
(!
headerDict
.
ContainsKey
(
"科室"
)
||
!
headerDict
.
ContainsKey
(
"量化指标"
))
return
;
if
(!
headerDict
.
ContainsKey
(
"科室"
)
||
!
headerDict
.
ContainsKey
(
"量化指标"
)
||
!
headerDict
.
ContainsKey
(
"数量"
)
)
return
;
var
extractdata
=
data
.
Where
(
t
=>
t
.
SheetName
==
specialname
).
ToList
();
...
...
@@ -1393,6 +1394,9 @@ private void SupplySpecialUnit(ISheet sheet, IPerSheetDataRead sheetRead, List<e
var
config
=
deptSpecials
.
FirstOrDefault
(
t
=>
t
.
Target
==
target
);
if
(
config
!=
null
)
{
var
numcell
=
GetOrCreate
(
row
,
headerDict
[
"数量"
]);
var
value
=
extractdata
?.
FirstOrDefault
(
t
=>
t
.
Department
==
merge
.
Value
&&
t
.
Category
==
target
)?.
Value
;
OutToExcelCell
(
numcell
,
value
);
deptSpecials
.
RemoveAll
(
t
=>
t
.
Department
==
merge
.
Value
&&
t
.
Target
==
target
);
continue
;
}
...
...
performance/Performance.Services/LogManageService.cs
View file @
8a3157ca
...
...
@@ -83,7 +83,7 @@ public void ReturnTheLog(int allotId, string groupName, int type, string tag, ob
var
http
=
url
.
ImportFile
+
$"/template/returnlog?type=
{
type
}
&tag=
{
tag
}
&message=
{
message
}
&level=
{
level
}
&groupName=
{
groupName
}
"
;
//logger.LogInformation("发送日志:" + http);
logdbug
.
Add
(
allotId
,
tag
,
message
.
ToString
(),
level
,
type
);
//
HttpHelper.HttpPost(http);
HttpHelper
.
HttpPost
(
http
);
}
catch
(
Exception
ex
)
{
...
...
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