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
b04b0dd6
Commit
b04b0dd6
authored
Apr 19, 2021
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增开关控制是否自动同步
parent
261fce51
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
47 additions
and
67 deletions
+47
-67
performance/Performance.Api/wwwroot/Performance.EntityModels.xml
+2
-27
performance/Performance.EntityModels/Entity/sys_hospital.cs
+27
-22
performance/Performance.Services/ConfigService.cs
+15
-15
performance/Performance.Services/ExtractExcelService/ExtractJobService.cs
+1
-1
performance/Performance.Services/HospitalService.cs
+2
-2
No files found.
performance/Performance.Api/wwwroot/Performance.EntityModels.xml
View file @
b04b0dd6
...
@@ -6833,36 +6833,11 @@
...
@@ -6833,36 +6833,11 @@
医院状态 1 启用 2 禁用
医院状态 1 启用 2 禁用
</summary>
</summary>
</member>
</member>
<member
name=
"P:Performance.EntityModels.sys_hospital.IsOpenWorkYear"
>
<summary>
是否开启年资系数 1 启用 2 禁用
</summary>
</member>
<member
name=
"P:Performance.EntityModels.sys_hospital.IsOpenDrugprop"
>
<summary>
是否开启药占比系数 1 启用 2 禁用
</summary>
</member>
<member
name=
"P:Performance.EntityModels.sys_hospital.IsOpenIncome"
>
<summary>
是否开启ICU有效收入系数 1 启用 2 禁用
</summary>
</member>
<member
name=
"P:Performance.EntityModels.sys_hospital.IsOpenDirector"
>
<summary>
是否开启规模/效率绩效 1 启用 2 禁用
</summary>
</member>
<member
name=
"P:Performance.EntityModels.sys_hospital.IsShowManage"
>
<member
name=
"P:Performance.EntityModels.sys_hospital.IsShowManage"
>
<summary>
<summary>
是否显示绩效合计 1 显示绩效合计 2 显示管理绩效
是否显示绩效合计 1 显示绩效合计 2 显示管理绩效
</summary>
</summary>
</member>
</member>
<member
name=
"P:Performance.EntityModels.sys_hospital.IsOpenCMIPercent"
>
<summary>
是否开启科室CMI占比 1 启用 2 禁用
</summary>
</member>
<member
name=
"P:Performance.EntityModels.sys_hospital.IsOpenNursingDeptAudit"
>
<member
name=
"P:Performance.EntityModels.sys_hospital.IsOpenNursingDeptAudit"
>
<summary>
<summary>
是否开启护理部审核 1 启用 2 禁用
是否开启护理部审核 1 启用 2 禁用
...
@@ -6873,9 +6848,9 @@
...
@@ -6873,9 +6848,9 @@
是否显示二次绩效科主任1 启用 2 禁用
是否显示二次绩效科主任1 启用 2 禁用
</summary>
</summary>
</member>
</member>
<member
name=
"P:Performance.EntityModels.sys_hospital.IsOpen
LogisticsSecondAllot
"
>
<member
name=
"P:Performance.EntityModels.sys_hospital.IsOpen
TimedTasks
"
>
<summary>
<summary>
是否开启
行政后勤二次绩效分配 1 启用 2 禁用
是否开启
定时抽取任务 1 是 2 否
</summary>
</summary>
</member>
</member>
<member
name=
"P:Performance.EntityModels.sys_hospital.IsSingleProject"
>
<member
name=
"P:Performance.EntityModels.sys_hospital.IsSingleProject"
>
...
...
performance/Performance.EntityModels/Entity/sys_hospital.cs
View file @
b04b0dd6
...
@@ -61,35 +61,35 @@ public class sys_hospital
...
@@ -61,35 +61,35 @@ public class sys_hospital
/// </summary>
/// </summary>
public
Nullable
<
int
>
States
{
get
;
set
;
}
public
Nullable
<
int
>
States
{
get
;
set
;
}
/// <summary>
///
//
<summary>
/// 是否开启年资系数 1 启用 2 禁用
///
//
是否开启年资系数 1 启用 2 禁用
/// </summary>
///
//
</summary>
public
Nullable
<
int
>
IsOpenWorkYear
{
get
;
set
;
}
//
public Nullable<int> IsOpenWorkYear { get; set; }
/// <summary>
///
//
<summary>
/// 是否开启药占比系数 1 启用 2 禁用
///
//
是否开启药占比系数 1 启用 2 禁用
/// </summary>
///
//
</summary>
public
Nullable
<
int
>
IsOpenDrugprop
{
get
;
set
;
}
//
public Nullable<int> IsOpenDrugprop { get; set; }
/// <summary>
///
//
<summary>
/// 是否开启ICU有效收入系数 1 启用 2 禁用
///
//
是否开启ICU有效收入系数 1 启用 2 禁用
/// </summary>
///
//
</summary>
public
Nullable
<
int
>
IsOpenIncome
{
get
;
set
;
}
//
public Nullable<int> IsOpenIncome { get; set; }
/// <summary>
///
//
<summary>
/// 是否开启规模/效率绩效 1 启用 2 禁用
///
//
是否开启规模/效率绩效 1 启用 2 禁用
/// </summary>
///
//
</summary>
public
Nullable
<
int
>
IsOpenDirector
{
get
;
set
;
}
//
public Nullable<int> IsOpenDirector { get; set; }
/// <summary>
/// <summary>
/// 是否显示绩效合计 1 显示绩效合计 2 显示管理绩效
/// 是否显示绩效合计 1 显示绩效合计 2 显示管理绩效
/// </summary>
/// </summary>
public
Nullable
<
int
>
IsShowManage
{
get
;
set
;
}
public
Nullable
<
int
>
IsShowManage
{
get
;
set
;
}
/// <summary>
///
//
<summary>
/// 是否开启科室CMI占比 1 启用 2 禁用
///
//
是否开启科室CMI占比 1 启用 2 禁用
/// </summary>
///
//
</summary>
public
Nullable
<
int
>
IsOpenCMIPercent
{
get
;
set
;
}
//
public Nullable<int> IsOpenCMIPercent { get; set; }
/// <summary>
/// <summary>
/// 是否开启护理部审核 1 启用 2 禁用
/// 是否开启护理部审核 1 启用 2 禁用
...
@@ -101,10 +101,15 @@ public class sys_hospital
...
@@ -101,10 +101,15 @@ public class sys_hospital
/// </summary>
/// </summary>
public
Nullable
<
int
>
IsShowSecondDirector
{
get
;
set
;
}
public
Nullable
<
int
>
IsShowSecondDirector
{
get
;
set
;
}
///// <summary>
///// 是否开启行政后勤二次绩效分配 1 启用 2 禁用
///// </summary>
//public Nullable<int> IsOpenLogisticsSecondAllot { get; set; }
/// <summary>
/// <summary>
/// 是否开启
行政后勤二次绩效分配 1 启用 2 禁用
/// 是否开启
定时抽取任务 1 是 2 否
/// </summary>
/// </summary>
public
Nullable
<
int
>
IsOpen
LogisticsSecondAllot
{
get
;
set
;
}
public
Nullable
<
int
>
IsOpen
TimedTasks
{
get
;
set
;
}
/// <summary>
/// <summary>
/// 抽取项目是否在同一环境 1 是 2 否
/// 抽取项目是否在同一环境 1 是 2 否
...
...
performance/Performance.Services/ConfigService.cs
View file @
b04b0dd6
...
@@ -324,7 +324,7 @@ public class ConfigService : IAutoInjection
...
@@ -324,7 +324,7 @@ public class ConfigService : IAutoInjection
/// <returns></returns>
/// <returns></returns>
public
List
<
cof_drugtype
>
GetDrugtypeList
(
int
HospitalId
,
int
allotId
)
public
List
<
cof_drugtype
>
GetDrugtypeList
(
int
HospitalId
,
int
allotId
)
{
{
var
list
=
_drugtypeRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
&&
t
.
HospitalId
==
HospitalId
);
var
list
=
_drugtypeRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
&&
t
.
HospitalId
==
HospitalId
);
return
list
;
return
list
;
}
}
...
@@ -705,9 +705,9 @@ public void Copy(per_allot allot)
...
@@ -705,9 +705,9 @@ public void Copy(per_allot allot)
logger
.
LogInformation
(
$"workItem"
);
logger
.
LogInformation
(
$"workItem"
);
var
workItem
=
_workitemRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allot
.
ID
);
var
workItem
=
_workitemRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allot
.
ID
);
if
(
hospital
!=
null
&&
hospital
?.
IsOpenDrugprop
==
1
&&
(
workItem
==
null
||
workItem
.
Count
==
0
)
)
if
(
workItem
==
null
||
workItem
.
Count
==
0
)
{
{
workItem
=
_workitemRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
);
workItem
=
_workitemRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
)
??
_workitemRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
-
1
)
;
if
(
workItem
!=
null
&&
workItem
.
Count
>
0
)
if
(
workItem
!=
null
&&
workItem
.
Count
>
0
)
{
{
var
newWorkItem
=
workItem
.
Select
(
t
=>
new
cof_workitem
{
AllotID
=
allot
.
ID
,
Type
=
t
.
Type
,
Item
=
t
.
Item
});
var
newWorkItem
=
workItem
.
Select
(
t
=>
new
cof_workitem
{
AllotID
=
allot
.
ID
,
Type
=
t
.
Type
,
Item
=
t
.
Item
});
...
@@ -720,7 +720,7 @@ public void Copy(per_allot allot)
...
@@ -720,7 +720,7 @@ public void Copy(per_allot allot)
if
(
cofDrugtype
==
null
||
cofDrugtype
.
Count
==
0
)
if
(
cofDrugtype
==
null
||
cofDrugtype
.
Count
==
0
)
{
{
var
drugtype
=
_drugtypeRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
)
??
_drugtypeRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
-
1
);
var
drugtype
=
_drugtypeRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
)
??
_drugtypeRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
-
1
);
var
newAgains
=
drugtype
.
Select
(
t
=>
new
cof_drugtype
{
HospitalId
=
allot
.
HospitalId
,
AllotID
=
allot
.
ID
,
Charge
=
t
.
Charge
,
ChargeType
=
t
.
ChargeType
});
var
newAgains
=
drugtype
.
Select
(
t
=>
new
cof_drugtype
{
HospitalId
=
allot
.
HospitalId
,
AllotID
=
allot
.
ID
,
Charge
=
t
.
Charge
,
ChargeType
=
t
.
ChargeType
});
_drugtypeRepository
.
AddRange
(
newAgains
.
ToArray
());
_drugtypeRepository
.
AddRange
(
newAgains
.
ToArray
());
}
}
...
@@ -846,7 +846,7 @@ private void CopyAprData(int prevAllotId, int allotId)
...
@@ -846,7 +846,7 @@ private void CopyAprData(int prevAllotId, int allotId)
#
region
HRP
人员科室
#
region
HRP
人员科室
public
HandsonTable
GetHrpDeptHands
(
int
HospitalId
,
int
AllotId
)
public
HandsonTable
GetHrpDeptHands
(
int
HospitalId
,
int
AllotId
)
{
{
var
result
=
new
HandsonTable
((
int
)
SheetType
.
Unidentifiable
,
HrpDept
.
Select
(
t
=>
t
.
Value
).
ToArray
(),
HrpDept
.
Select
(
t
=>
new
collect_permission
var
result
=
new
HandsonTable
((
int
)
SheetType
.
Unidentifiable
,
HrpDept
.
Select
(
t
=>
t
.
Value
).
ToArray
(),
HrpDept
.
Select
(
t
=>
new
collect_permission
{
{
...
@@ -921,13 +921,13 @@ public HandsonTable GetSecondaryAlias()
...
@@ -921,13 +921,13 @@ public HandsonTable GetSecondaryAlias()
if
(
column
.
Data
==
"状态"
)
if
(
column
.
Data
==
"状态"
)
{
{
column
.
Type
=
"autocomplete"
;
column
.
Type
=
"autocomplete"
;
column
.
Source
=
new
[]
{
"可用"
,
"禁用"
};
column
.
Source
=
new
[]
{
"可用"
,
"禁用"
};
column
.
Strict
=
true
;
column
.
Strict
=
true
;
}
}
}
}
}
}
var
data
=
perforCofaliasRepository
.
GetEntities
()?.
OrderBy
(
t
=>
t
.
Route
);
var
data
=
perforCofaliasRepository
.
GetEntities
()?.
OrderBy
(
t
=>
t
.
Route
);
if
(
data
==
null
)
return
result
;
if
(
data
==
null
)
return
result
;
List
<
HandsonRowData
>
rowDatas
=
new
List
<
HandsonRowData
>();
List
<
HandsonRowData
>
rowDatas
=
new
List
<
HandsonRowData
>();
int
i
=
0
;
int
i
=
0
;
...
@@ -935,13 +935,13 @@ public HandsonTable GetSecondaryAlias()
...
@@ -935,13 +935,13 @@ public HandsonTable GetSecondaryAlias()
{
{
var
json
=
JsonHelper
.
Serialize
(
item
);
var
json
=
JsonHelper
.
Serialize
(
item
);
var
firstDic
=
JsonHelper
.
Deserialize
<
Dictionary
<
string
,
string
>>(
json
);
var
firstDic
=
JsonHelper
.
Deserialize
<
Dictionary
<
string
,
string
>>(
json
);
firstDic
[
"states"
]
=
firstDic
[
"states"
]
==
"1"
?
"可用"
:
"禁用"
;
firstDic
[
"states"
]
=
firstDic
[
"states"
]
==
"1"
?
"可用"
:
"禁用"
;
var
cells
=
(
from
conf
in
Alias
join
fst
in
firstDic
on
conf
.
Key
.
ToUpper
()
equals
fst
.
Key
.
ToUpper
()
select
new
HandsonCellData
(
conf
.
Value
,
fst
.
Value
)).
ToList
();
var
cells
=
(
from
conf
in
Alias
join
fst
in
firstDic
on
conf
.
Key
.
ToUpper
()
equals
fst
.
Key
.
ToUpper
()
select
new
HandsonCellData
(
conf
.
Value
,
fst
.
Value
)).
ToList
();
rowDatas
.
Add
(
new
HandsonRowData
(
i
,
cells
));
rowDatas
.
Add
(
new
HandsonRowData
(
i
,
cells
));
i
++;
i
++;
}
}
result
.
SetRowData
(
rowDatas
,
rowDatas
!=
null
);
result
.
SetRowData
(
rowDatas
,
rowDatas
!=
null
);
return
result
;
return
result
;
}
}
...
@@ -952,8 +952,8 @@ public void SaveSecondaryAlias(SaveCollectData request)
...
@@ -952,8 +952,8 @@ public void SaveSecondaryAlias(SaveCollectData request)
List
<
cof_alias
>
aliases
=
new
List
<
cof_alias
>();
List
<
cof_alias
>
aliases
=
new
List
<
cof_alias
>();
foreach
(
var
item
in
dicData
)
foreach
(
var
item
in
dicData
)
{
{
var
states
=
new
[]
{
"可用"
,
"禁用"
};
var
states
=
new
[]
{
"可用"
,
"禁用"
};
if
(
item
[
"States"
]
!=
null
&&
states
.
Contains
(
item
[
"States"
]))
if
(
item
[
"States"
]
!=
null
&&
states
.
Contains
(
item
[
"States"
]))
{
{
item
[
"States"
]
=
item
[
"States"
]
==
"可用"
?
"1"
:
"0"
;
item
[
"States"
]
=
item
[
"States"
]
==
"可用"
?
"1"
:
"0"
;
}
}
...
@@ -961,13 +961,13 @@ public void SaveSecondaryAlias(SaveCollectData request)
...
@@ -961,13 +961,13 @@ public void SaveSecondaryAlias(SaveCollectData request)
var
json
=
JsonHelper
.
Serialize
(
item
);
var
json
=
JsonHelper
.
Serialize
(
item
);
var
data
=
JsonHelper
.
Deserialize
<
cof_alias
>(
json
);
var
data
=
JsonHelper
.
Deserialize
<
cof_alias
>(
json
);
if
(!
string
.
IsNullOrEmpty
(
data
.
Name
)
&&
!
string
.
IsNullOrEmpty
(
data
.
OriginalName
)&&
!
string
.
IsNullOrEmpty
(
data
.
Route
)
&&
!
string
.
IsNullOrEmpty
(
data
.
Alias
))
if
(!
string
.
IsNullOrEmpty
(
data
.
Name
)
&&
!
string
.
IsNullOrEmpty
(
data
.
OriginalName
)
&&
!
string
.
IsNullOrEmpty
(
data
.
Route
)
&&
!
string
.
IsNullOrEmpty
(
data
.
Alias
))
{
{
aliases
.
Add
(
data
);
aliases
.
Add
(
data
);
}
}
}
}
perforCofaliasRepository
.
Execute
(
"delete from cof_alias"
,
null
);
perforCofaliasRepository
.
Execute
(
"delete from cof_alias"
,
null
);
perforCofaliasRepository
.
AddRange
(
aliases
.
ToArray
());
perforCofaliasRepository
.
AddRange
(
aliases
.
ToArray
());
}
}
...
...
performance/Performance.Services/ExtractExcelService/ExtractJobService.cs
View file @
b04b0dd6
...
@@ -41,7 +41,7 @@ PerforPerallotRepository perallotRepository
...
@@ -41,7 +41,7 @@ PerforPerallotRepository perallotRepository
public
void
Execute
()
public
void
Execute
()
{
{
var
hospitals
=
hospitalRepository
.
GetEntities
();
var
hospitals
=
hospitalRepository
.
GetEntities
(
w
=>
w
.
IsOpenTimedTasks
==
1
);
if
(
hospitals
==
null
||
!
hospitals
.
Any
())
return
;
if
(
hospitals
==
null
||
!
hospitals
.
Any
())
return
;
var
userId
=
userRepository
.
GetEntity
(
t
=>
t
.
Login
.
ToLower
()
==
"admin"
&&
t
.
States
==
1
&&
t
.
IsDelete
==
1
)?.
ID
??
1
;
var
userId
=
userRepository
.
GetEntity
(
t
=>
t
.
Login
.
ToLower
()
==
"admin"
&&
t
.
States
==
1
&&
t
.
IsDelete
==
1
)?.
ID
??
1
;
...
...
performance/Performance.Services/HospitalService.cs
View file @
b04b0dd6
...
@@ -131,9 +131,9 @@ public HospitalResponse Update(HospitalRequest request)
...
@@ -131,9 +131,9 @@ public HospitalResponse Update(HospitalRequest request)
hospital
.
States
=
request
.
States
;
hospital
.
States
=
request
.
States
;
//hospital.IsOpenWorkYear = request.IsOpenWorkYear;
//hospital.IsOpenWorkYear = request.IsOpenWorkYear;
//hospital.IsOpenDirector = request.IsOpenDirector;
//hospital.IsOpenDirector = request.IsOpenDirector;
hospital
.
IsOpenDrugprop
=
request
.
IsOpenDrugprop
;
//
hospital.IsOpenDrugprop = request.IsOpenDrugprop;
hospital
.
IsShowManage
=
request
.
IsShowManage
;
hospital
.
IsShowManage
=
request
.
IsShowManage
;
hospital
.
IsOpenCMIPercent
=
request
.
IsOpenCMIPercent
;
//
hospital.IsOpenCMIPercent = request.IsOpenCMIPercent;
//hospital.IsOpenLogisticsSecondAllot = request.IsOpenLogisticsSecondAllot;
//hospital.IsOpenLogisticsSecondAllot = request.IsOpenLogisticsSecondAllot;
//hospital.IsOpenIncome = request.IsOpenIncome;
//hospital.IsOpenIncome = request.IsOpenIncome;
...
...
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