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
61af1ed9
Commit
61af1ed9
authored
Mar 16, 2021
by
钟博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
人员、科室标签配置排序表头修改
parent
e54426c5
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
22 deletions
+23
-22
performance/Performance.Services/ConfigService.cs
+1
-1
performance/Performance.Services/ExConfigService.cs
+10
-9
performance/Performance.Services/ReportGlobalService.cs
+12
-12
No files found.
performance/Performance.Services/ConfigService.cs
View file @
61af1ed9
...
...
@@ -1160,7 +1160,7 @@ public HandsonTable GetSecondaryAlias()
{
column
.
Type
=
"autocomplete"
;
column
.
Source
=
new
[]
{
"可用"
,
"禁用"
};
column
.
Strict
=
tru
e
;
column
.
Strict
=
fals
e
;
}
}
}
...
...
performance/Performance.Services/ExConfigService.cs
View file @
61af1ed9
...
...
@@ -300,9 +300,9 @@ public HandsonTable GetQueryItemHands(ModModuleRequest request)
var
module
=
exmoduleRepository
.
GetEntity
(
t
=>
t
.
Id
==
request
.
ModuleId
);
if
(
request
.
SheetType
==
(
int
)
SheetType
.
Workload
)
DicType
=
WorkLoadDic
;
else
if
(
request
.
SheetType
==
(
int
)
SheetType
.
Income
)
else
if
(
request
.
SheetType
==
(
int
)
SheetType
.
Income
)
//else if (moduleList.Where(t=>t.SheetType == (int)SheetType.Income).Select(t=>t.ModuleName).Contains(module.ModuleName) )
DicType
=
OutDic
;
DicType
=
OutDic
;
else
DicType
=
CostDic
;
...
...
@@ -318,14 +318,14 @@ public HandsonTable GetQueryItemHands(ModModuleRequest request)
{
foreach
(
var
column
in
handson
.
Columns
)
{
if
(
new
[]
{
"医生系数"
,
"护理系数"
,
"医技系数"
}.
Contains
(
column
.
Data
))
if
(
new
[]
{
"医生系数"
,
"护理系数"
,
"医技系数"
}.
Contains
(
column
.
Data
))
{
column
.
Type
=
"numeric"
;
column
.
NumericFormat
=
new
NumericFormat
(){
Pattern
=
"%"
};
column
.
NumericFormat
=
new
NumericFormat
()
{
Pattern
=
"%"
};
column
.
Strict
=
false
;
}
if
(
column
.
Data
==
"单元工作量绩效标准"
)
if
(
column
.
Data
==
"单元工作量绩效标准"
)
{
column
.
Type
=
"numeric"
;
column
.
Strict
=
false
;
...
...
@@ -340,7 +340,7 @@ public HandsonTable GetQueryItemHands(ModModuleRequest request)
}
}
var
list
=
exitemRepository
.
GetEntities
(
t
=>
t
.
ModuleId
==
request
.
ModuleId
)?.
OrderBy
(
c
=>
c
.
ItemName
);
var
list
=
exitemRepository
.
GetEntities
(
t
=>
t
.
ModuleId
==
request
.
ModuleId
)?.
OrderBy
(
c
=>
c
.
ItemName
);
if
(
list
==
null
)
return
handson
;
List
<
HandsonRowData
>
rowDatas
=
new
List
<
HandsonRowData
>();
...
...
@@ -600,12 +600,13 @@ private bool QueryAndAddItem(List<sys_hospitalconfig> hospitalconfigs, string sq
List
<
string
>
itemNames
=
new
List
<
string
>();
foreach
(
var
hospitalConfig
in
hospitalconfigs
)
{
var
connection
=
ConnectionBuilder
.
Create
((
DatabaseType
)
hospitalConfig
.
DataBaseType
,
hospitalConfig
.
DbSource
,
hospitalConfig
.
DbName
,
hospitalConfig
.
DbUser
,
hospitalConfig
.
DbPassword
);
logger
.
LogInformation
(
$"执行sql:
{
sql
}
"
);
try
{
var
connection
=
ConnectionBuilder
.
Create
((
DatabaseType
)
hospitalConfig
.
DataBaseType
,
hospitalConfig
.
DbSource
,
hospitalConfig
.
DbName
,
hospitalConfig
.
DbUser
,
hospitalConfig
.
DbPassword
,
5
);
logger
.
LogInformation
(
$"ConnectionString:
{
connection
?.
ConnectionString
}
"
);
var
dataList
=
extractRepository
.
ExecuteScript
(
connection
,
sql
,
null
);
logger
.
LogInformation
(
$"执行sql:
{
sql
}
"
);
var
dataList
=
extractRepository
.
ExecuteScript
(
connection
,
sql
,
null
,
5000
);
logger
.
LogInformation
(
$"获取数据
{
dataList
?.
Count
??
0
}
条"
);
if
(
dataList
!=
null
&&
dataList
.
Any
())
itemNames
.
AddRange
(
dataList
.
Select
(
t
=>
t
.
Value
.
ToString
()));
...
...
performance/Performance.Services/ReportGlobalService.cs
View file @
61af1ed9
...
...
@@ -531,7 +531,7 @@ public HandsonTable GetReportPersonTag(int hospitalId)
Visible
=
1
}).
ToList
());
var
data
=
reportperformancepersontagsRepository
.
GetEntities
(
t
=>
t
.
HospitalId
==
hospitalId
)?.
OrderBy
(
t
=>
Convert
.
ToInt32
(
t
.
PersonnelNumber
));
var
data
=
reportperformancepersontagsRepository
.
GetEntities
(
t
=>
t
.
HospitalId
==
hospitalId
)?.
OrderBy
(
t
=>
t
.
UnitType
).
ThenBy
(
t
=>
t
.
AccountingUnit
).
ThenBy
(
t
=>
Convert
.
ToInt32
(
t
.
PersonnelNumber
));
if
(
data
==
null
)
return
result
;
List
<
HandsonRowData
>
rowDatas
=
new
List
<
HandsonRowData
>();
...
...
@@ -578,7 +578,7 @@ public HandsonTable GetReportTag(int hospitalId)
Visible
=
1
}).
ToList
());
var
data
=
reportperformancetagsRepository
.
GetEntities
(
t
=>
t
.
HospitalId
==
hospitalId
)?.
OrderBy
(
t
=>
t
.
UnitType
);
var
data
=
reportperformancetagsRepository
.
GetEntities
(
t
=>
t
.
HospitalId
==
hospitalId
)?.
OrderBy
(
t
=>
t
.
UnitType
)
.
ThenBy
(
t
=>
t
.
AccountingUnit
)
;
if
(
data
==
null
)
return
result
;
List
<
HandsonRowData
>
rowDatas
=
new
List
<
HandsonRowData
>();
...
...
@@ -623,22 +623,22 @@ public void SaveReportTag(int hospitalId, SaveCollectData request)
{
nameof
(
report_performance_person_tags
.
AccountingUnit
),
"科室"
},
{
nameof
(
report_performance_person_tags
.
PersonnelNumber
),
"工号"
},
{
nameof
(
report_performance_person_tags
.
PersonnelName
),
"姓名"
},
{
nameof
(
report_performance_person_tags
.
Tag1
),
"
绩效发放情况
"
},
{
nameof
(
report_performance_person_tags
.
Tag2
),
"
当月绩效权重
"
},
{
nameof
(
report_performance_person_tags
.
Tag3
),
"
重点群体对比1
"
},
{
nameof
(
report_performance_person_tags
.
Tag4
),
"
重点群体对比2
"
},
{
nameof
(
report_performance_person_tags
.
Tag5
),
"
重点群体对比
5"
},
{
nameof
(
report_performance_person_tags
.
Tag1
),
"
Tag1
"
},
{
nameof
(
report_performance_person_tags
.
Tag2
),
"
Tag2
"
},
{
nameof
(
report_performance_person_tags
.
Tag3
),
"
Tag3
"
},
{
nameof
(
report_performance_person_tags
.
Tag4
),
"
Tag4
"
},
{
nameof
(
report_performance_person_tags
.
Tag5
),
"
Tag
5"
},
};
public
static
Dictionary
<
string
,
string
>
ReportTag
{
get
;
}
=
new
Dictionary
<
string
,
string
>
{
{
nameof
(
report_performance_tags
.
UnitType
),
"核算单元类型"
},
{
nameof
(
report_performance_tags
.
AccountingUnit
),
"科室"
},
{
nameof
(
report_performance_tags
.
Tag1
),
"
绩效发放情况
"
},
{
nameof
(
report_performance_tags
.
Tag2
),
"
当月绩效权重
"
},
{
nameof
(
report_performance_tags
.
Tag3
),
"
重点群体对比1
"
},
{
nameof
(
report_performance_tags
.
Tag4
),
"
重点群体对比2
"
},
{
nameof
(
report_performance_tags
.
Tag5
),
"
重点群体对比
5"
},
{
nameof
(
report_performance_tags
.
Tag1
),
"
Tag1
"
},
{
nameof
(
report_performance_tags
.
Tag2
),
"
Tag2
"
},
{
nameof
(
report_performance_tags
.
Tag3
),
"
Tag3
"
},
{
nameof
(
report_performance_tags
.
Tag4
),
"
Tag4
"
},
{
nameof
(
report_performance_tags
.
Tag5
),
"
Tag
5"
},
};
private
List
<
Dictionary
<
string
,
string
>>
CreateDataRow
(
int
hospitalId
,
SaveCollectData
request
,
Dictionary
<
string
,
string
>
config
)
...
...
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