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
b79d6a92
Commit
b79d6a92
authored
Oct 15, 2020
by
lcx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加其他工作量
parent
bc32742a
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
52 additions
and
3 deletions
+52
-3
performance/Performance.Api/wwwroot/Performance.DtoModels.xml
+3
-0
performance/Performance.DtoModels/PerExcel/ExcelEnum.cs
+4
-0
performance/Performance.Services/DFExtractService.cs
+26
-0
performance/Performance.Services/ExConfigService.cs
+19
-3
No files found.
performance/Performance.Api/wwwroot/Performance.DtoModels.xml
View file @
b79d6a92
...
@@ -682,6 +682,9 @@
...
@@ -682,6 +682,9 @@
<member
name=
"F:Performance.DtoModels.SheetType.AccountAssess"
>
<member
name=
"F:Performance.DtoModels.SheetType.AccountAssess"
>
<summary>
临床科室医护绩效考核表
</summary>
<summary>
临床科室医护绩效考核表
</summary>
</member>
</member>
<member
name=
"F:Performance.DtoModels.SheetType.OtherWorkload"
>
<summary>
其他工作量(不参与核算)
</summary>
</member>
<member
name=
"T:Performance.DtoModels.AccountUnitType"
>
<member
name=
"T:Performance.DtoModels.AccountUnitType"
>
<summary>
<summary>
核算单元类型
核算单元类型
...
...
performance/Performance.DtoModels/PerExcel/ExcelEnum.cs
View file @
b79d6a92
...
@@ -92,6 +92,10 @@ public enum SheetType
...
@@ -92,6 +92,10 @@ public enum SheetType
/// <summary> 临床科室医护绩效考核表 </summary>
/// <summary> 临床科室医护绩效考核表 </summary>
[
Description
(
"临床科室医护绩效考核表"
)]
[
Description
(
"临床科室医护绩效考核表"
)]
AccountAssess
=
17
,
AccountAssess
=
17
,
/// <summary> 其他工作量(不参与核算) </summary>
[
Description
(
"其他工作量"
)]
OtherWorkload
=
28
,
}
}
/// <summary>
/// <summary>
...
...
performance/Performance.Services/DFExtractService.cs
View file @
b79d6a92
...
@@ -411,6 +411,7 @@ public string TemplateExecute(string email, sys_hospital hospital, List<sys_hosp
...
@@ -411,6 +411,7 @@ public string TemplateExecute(string email, sys_hospital hospital, List<sys_hosp
WriteExpend
(
sheet
,
sheetRead
,
modules
,
items
,
data
);
WriteExpend
(
sheet
,
sheetRead
,
modules
,
items
,
data
);
break
;
break
;
case
SheetType
.
Workload
:
case
SheetType
.
Workload
:
case
SheetType
.
OtherWorkload
:
WriteWorkload
(
sheet
,
sheetRead
,
modules
,
items
,
data
);
WriteWorkload
(
sheet
,
sheetRead
,
modules
,
items
,
data
);
break
;
break
;
//case SheetType.AccountBasic:
//case SheetType.AccountBasic:
...
@@ -506,6 +507,7 @@ public string AlllotExecute(string email, sys_hospital hospital, List<sys_hospit
...
@@ -506,6 +507,7 @@ public string AlllotExecute(string email, sys_hospital hospital, List<sys_hospit
WriteExpend
(
sheet
,
sheetRead
,
modules
,
items
,
extracts
,
false
);
WriteExpend
(
sheet
,
sheetRead
,
modules
,
items
,
extracts
,
false
);
break
;
break
;
case
SheetType
.
Workload
:
case
SheetType
.
Workload
:
case
SheetType
.
OtherWorkload
:
ClearData
(
sheet
,
3
,
3
);
ClearData
(
sheet
,
3
,
3
);
WriteWorkload
(
sheet
,
sheetRead
,
modules
,
items
,
extracts
,
false
);
WriteWorkload
(
sheet
,
sheetRead
,
modules
,
items
,
extracts
,
false
);
break
;
break
;
...
@@ -772,6 +774,7 @@ private void CreateNotExistSheet(List<ex_module> modulesList, IWorkbook workbook
...
@@ -772,6 +774,7 @@ private void CreateNotExistSheet(List<ex_module> modulesList, IWorkbook workbook
}
}
int
sheetIndex
=
0
;
int
sheetIndex
=
0
;
int
newSheetCount
=
0
;
foreach
(
var
module
in
modulesList
.
Where
(
t
=>
t
.
SheetType
==
(
int
)
SheetType
.
Income
)?.
OrderBy
(
t
=>
t
.
ModuleName
))
foreach
(
var
module
in
modulesList
.
Where
(
t
=>
t
.
SheetType
==
(
int
)
SheetType
.
Income
)?.
OrderBy
(
t
=>
t
.
ModuleName
))
{
{
var
sheet
=
workbook
.
GetSheet
(
module
.
ModuleName
);
var
sheet
=
workbook
.
GetSheet
(
module
.
ModuleName
);
...
@@ -789,6 +792,29 @@ private void CreateNotExistSheet(List<ex_module> modulesList, IWorkbook workbook
...
@@ -789,6 +792,29 @@ private void CreateNotExistSheet(List<ex_module> modulesList, IWorkbook workbook
logger
.
LogInformation
(
$"newSheet:
{
newSheet
.
SheetName
}
"
);
logger
.
LogInformation
(
$"newSheet:
{
newSheet
.
SheetName
}
"
);
workbook
.
SetSheetOrder
(
newSheet
.
SheetName
,
sheetIndex
);
workbook
.
SetSheetOrder
(
newSheet
.
SheetName
,
sheetIndex
);
workbook
.
SetSheetName
(
sheetIndex
,
module
.
ModuleName
);
workbook
.
SetSheetName
(
sheetIndex
,
module
.
ModuleName
);
sheetIndex
++;
newSheetCount
++;
}
}
}
sheetIndex
=
0
;
foreach
(
var
module
in
modulesList
.
Where
(
t
=>
t
.
SheetType
==
(
int
)
SheetType
.
OtherWorkload
)?.
OrderBy
(
t
=>
t
.
ModuleName
))
{
var
sheet
=
workbook
.
GetSheet
(
module
.
ModuleName
);
if
(
sheet
==
null
)
{
logger
.
LogInformation
(
$"CreateNotExistSheet:
{
module
.
ModuleName
}
"
);
string
key
=
"工作量"
;
if
(
module
.
ModuleName
.
Contains
(
key
))
{
var
item
=
pairs
.
Where
(
t
=>
t
.
Key
.
StartsWith
(
"3."
)).
OrderByDescending
(
t
=>
t
.
Key
).
First
();
if
(
sheetIndex
==
0
)
sheetIndex
=
item
.
Value
+
newSheetCount
+
1
;
var
copysheet
=
workbook
.
GetSheet
(
item
.
Key
);
var
newSheet
=
copysheet
.
CopySheet
(
item
.
Key
+
Guid
.
NewGuid
().
ToString
(
"N"
),
true
);
logger
.
LogInformation
(
$"newSheet:
{
newSheet
.
SheetName
}
"
);
workbook
.
SetSheetOrder
(
newSheet
.
SheetName
,
sheetIndex
);
workbook
.
SetSheetName
(
sheetIndex
,
module
.
ModuleName
);
sheetIndex
++;
sheetIndex
++;
}
}
}
}
...
...
performance/Performance.Services/ExConfigService.cs
View file @
b79d6a92
...
@@ -100,9 +100,12 @@ private void DefaultModules(int hospitalId)
...
@@ -100,9 +100,12 @@ private void DefaultModules(int hospitalId)
public
ex_module
AddModule
(
ModModuleRequest
request
)
public
ex_module
AddModule
(
ModModuleRequest
request
)
{
{
if
(
request
.
SheetType
!=
(
int
)
SheetType
.
Income
)
if
(
!
new
int
[]
{
(
int
)
SheetType
.
Income
,
(
int
)
SheetType
.
OtherWorkload
}.
Contains
(
request
.
SheetType
.
Value
)
)
throw
new
PerformanceException
(
"模块类型错误,只支持收入模板配置"
);
throw
new
PerformanceException
(
"模块类型错误,只支持收入模板配置"
);
string
addname
=
""
;
if
(
request
.
SheetType
==
(
int
)
SheetType
.
Income
)
{
string
[]
array
=
new
string
[]
{
"开单收入"
,
"执行收入"
};
string
[]
array
=
new
string
[]
{
"开单收入"
,
"执行收入"
};
if
(
request
.
ModuleName
.
IndexOf
(
"开单收入"
)
==
-
1
&&
request
.
ModuleName
.
IndexOf
(
"执行收入"
)
==
-
1
)
if
(
request
.
ModuleName
.
IndexOf
(
"开单收入"
)
==
-
1
&&
request
.
ModuleName
.
IndexOf
(
"执行收入"
)
==
-
1
)
throw
new
PerformanceException
(
"模块名称规则错误"
);
throw
new
PerformanceException
(
"模块名称规则错误"
);
...
@@ -114,7 +117,6 @@ public ex_module AddModule(ModModuleRequest request)
...
@@ -114,7 +117,6 @@ public ex_module AddModule(ModModuleRequest request)
if
(
incomeList
.
Any
(
t
=>
Regex
.
Replace
(
t
.
ModuleName
,
@"\d"
,
""
).
Replace
(
"."
,
""
).
Replace
(
" "
,
""
)
==
request
.
ModuleName
))
if
(
incomeList
.
Any
(
t
=>
Regex
.
Replace
(
t
.
ModuleName
,
@"\d"
,
""
).
Replace
(
"."
,
""
).
Replace
(
" "
,
""
)
==
request
.
ModuleName
))
throw
new
PerformanceException
(
"绩效模板已存在!"
);
throw
new
PerformanceException
(
"绩效模板已存在!"
);
string
addname
=
""
;
var
moduleList
=
exmoduleRepository
.
GetEntities
(
t
=>
t
.
HospitalId
==
request
.
HospitalId
&&
t
.
ModuleName
.
IndexOf
(
"1."
)
!=
-
1
);
var
moduleList
=
exmoduleRepository
.
GetEntities
(
t
=>
t
.
HospitalId
==
request
.
HospitalId
&&
t
.
ModuleName
.
IndexOf
(
"1."
)
!=
-
1
);
string
name
=
request
.
ModuleName
.
Replace
(
"开单收入"
,
""
).
Replace
(
"执行收入"
,
""
);
string
name
=
request
.
ModuleName
.
Replace
(
"开单收入"
,
""
).
Replace
(
"执行收入"
,
""
);
var
exist
=
moduleList
.
Where
(
t
=>
t
.
ModuleName
.
Contains
(
name
));
var
exist
=
moduleList
.
Where
(
t
=>
t
.
ModuleName
.
Contains
(
name
));
...
@@ -132,6 +134,20 @@ public ex_module AddModule(ModModuleRequest request)
...
@@ -132,6 +134,20 @@ public ex_module AddModule(ModModuleRequest request)
sort
[
1
]
+=
1
;
sort
[
1
]
+=
1
;
addname
=
$"
{
sort
[
0
]}
.
{
sort
[
1
]}
.1 "
+
request
.
ModuleName
;
addname
=
$"
{
sort
[
0
]}
.
{
sort
[
1
]}
.1 "
+
request
.
ModuleName
;
}
}
}
else
if
(
request
.
SheetType
==
(
int
)
SheetType
.
OtherWorkload
)
{
var
incomeList
=
exmoduleRepository
.
GetEntities
(
t
=>
t
.
HospitalId
==
request
.
HospitalId
&&
t
.
SheetType
==
(
int
)
SheetType
.
OtherWorkload
);
if
(
incomeList
.
Any
(
t
=>
Regex
.
Replace
(
t
.
ModuleName
,
@"\d"
,
""
).
Replace
(
"."
,
""
).
Replace
(
" "
,
""
)
==
request
.
ModuleName
))
throw
new
PerformanceException
(
"绩效模板已存在!"
);
var
moduleList
=
exmoduleRepository
.
GetEntities
(
t
=>
t
.
HospitalId
==
request
.
HospitalId
&&
t
.
ModuleName
.
IndexOf
(
"3."
)
!=
-
1
);
string
modulename
=
moduleList
.
OrderByDescending
(
t
=>
t
.
ModuleName
).
First
().
ModuleName
;
int
[]
sort
=
Array
.
ConvertAll
(
modulename
.
Split
(
' '
)[
0
].
Split
(
new
string
[]
{
"."
},
StringSplitOptions
.
RemoveEmptyEntries
),
t
=>
ConvertHelper
.
TryInt
(
t
));
sort
[
1
]
+=
1
;
addname
=
$"
{
sort
[
0
]}
.
{
sort
[
1
]}
.1 "
+
request
.
ModuleName
;
}
ex_module
entity
=
new
ex_module
ex_module
entity
=
new
ex_module
{
{
...
@@ -488,7 +504,7 @@ public List<TitleValue> ExtractScheme(int hospitalId, List<int> executeType)
...
@@ -488,7 +504,7 @@ public List<TitleValue> ExtractScheme(int hospitalId, List<int> executeType)
public
List
<
TitleValue
>
FeeType
()
public
List
<
TitleValue
>
FeeType
()
{
{
var
titlevalue
=
new
List
<
TitleValue
>();
var
titlevalue
=
new
List
<
TitleValue
>();
var
type
=
EnumHelper
.
GetItems
<
SheetType
>().
Where
(
t
=>
new
List
<
int
>
{
(
int
)
SheetType
.
Income
,
(
int
)
SheetType
.
OtherIncome
,
(
int
)
SheetType
.
Expend
,
(
int
)
SheetType
.
Workload
,
(
int
)
SheetType
.
SpecialUnit
}.
Contains
(
t
.
Value
));
var
type
=
EnumHelper
.
GetItems
<
SheetType
>().
Where
(
t
=>
new
List
<
int
>
{
(
int
)
SheetType
.
Income
,
(
int
)
SheetType
.
OtherIncome
,
(
int
)
SheetType
.
Expend
,
(
int
)
SheetType
.
Workload
,
(
int
)
SheetType
.
SpecialUnit
,
(
int
)
SheetType
.
OtherWorkload
}.
Contains
(
t
.
Value
));
if
(
type
!=
null
&&
type
.
Any
())
if
(
type
!=
null
&&
type
.
Any
())
{
{
titlevalue
=
type
.
Select
(
t
=>
new
TitleValue
titlevalue
=
type
.
Select
(
t
=>
new
TitleValue
...
...
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