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
3a2e7a19
Commit
3a2e7a19
authored
Feb 05, 2021
by
钟博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改百分比的属性、显示排序
parent
e63d247c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
45 deletions
+47
-45
performance/Performance.Services/ConfigService.cs
+5
-6
performance/Performance.Services/ExConfigService.cs
+41
-38
performance/Performance.Services/PersonService.cs
+1
-1
No files found.
performance/Performance.Services/ConfigService.cs
View file @
3a2e7a19
...
...
@@ -392,7 +392,7 @@ public HandsonTable GetDrugtypeHands(int allotId)
}
}
var
list
=
_drugtypeRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
);
var
list
=
_drugtypeRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
)
.
OrderBy
(
c
=>
c
.
Charge
)
;
if
(
list
==
null
)
return
handson
;
List
<
HandsonRowData
>
rowDatas
=
new
List
<
HandsonRowData
>();
...
...
@@ -428,11 +428,10 @@ public void SaveDrugtypeHands(int allotId, SaveConfigData request)
{
var
json
=
JsonHelper
.
Serialize
(
item
);
var
data
=
JsonHelper
.
Deserialize
<
cof_drugtype
>(
json
);
if
(!
string
.
IsNullOrEmpty
(
data
.
Charge
)
||
!
string
.
IsNullOrEmpty
(
data
.
ChargeType
)
)
if
(!
string
.
IsNullOrEmpty
(
data
.
Charge
))
{
drugs
.
Add
(
data
);
}
}
_drugtypeRepository
.
Execute
(
"delete from cof_drugtype where allotid = @allotid"
,
new
{
allotId
});
...
...
@@ -539,7 +538,7 @@ public HandsonTable GetWorkItemHands(int allotId, int type)
List
<
HandsonRowData
>
rowDatas
=
new
List
<
HandsonRowData
>();
int
i
=
0
;
foreach
(
var
item
in
list
)
foreach
(
var
item
in
list
.
OrderBy
(
c
=>
c
.
Item
)
)
{
var
json
=
JsonHelper
.
Serialize
(
item
);
...
...
@@ -686,7 +685,7 @@ public HandsonTable GetDepttypeHands(int allotId)
Readnoly
=
0
}).
ToList
());
var
list
=
perforCofdepttypeRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
);
var
list
=
perforCofdepttypeRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
)
.
OrderBy
(
c
=>
c
.
Charge
)
;
if
(
list
==
null
)
return
handson
;
List
<
HandsonRowData
>
rowDatas
=
new
List
<
HandsonRowData
>();
...
...
@@ -727,7 +726,7 @@ public void SaveDepttypeHands(int allotId, SaveConfigData request)
{
var
json
=
JsonHelper
.
Serialize
(
item
);
var
data
=
JsonHelper
.
Deserialize
<
cof_depttype
>(
json
);
if
(!
string
.
IsNullOrEmpty
(
data
.
Charge
)
||
!
string
.
IsNullOrEmpty
(
data
.
ChargeType
)
)
if
(!
string
.
IsNullOrEmpty
(
data
.
Charge
))
{
depts
.
Add
(
data
);
}
...
...
performance/Performance.Services/ExConfigService.cs
View file @
3a2e7a19
...
...
@@ -66,18 +66,8 @@ ILogger<ExConfigService> logger
#
region
Modules
public
List
<
ex_module
>
QueryModule
(
int
hospitalId
)
{
//首次添加费用字典默认值
DefaultModules
(
hospitalId
);
var
list
=
exmoduleRepository
.
GetEntities
(
t
=>
t
.
HospitalId
==
hospitalId
).
OrderBy
(
t
=>
t
.
ModuleName
).
ToList
();
return
list
;
}
private
void
DefaultModules
(
int
hospitalId
)
{
var
moduleList
=
new
ex_module
[]
private
readonly
ex_module
[]
moduleList
=
new
ex_module
[]
{
new
ex_module
{
ModuleName
=
"1.0.1 额外收入"
,
SheetType
=
(
int
)
SheetType
.
OtherIncome
},
new
ex_module
{
ModuleName
=
"1.1.1 门诊开单收入"
,
SheetType
=
(
int
)
SheetType
.
Income
},
...
...
@@ -89,6 +79,18 @@ private void DefaultModules(int hospitalId)
new
ex_module
{
ModuleName
=
"3.2 护理组工作量绩效测算表"
,
SheetType
=
(
int
)
SheetType
.
Workload
},
};
public
List
<
ex_module
>
QueryModule
(
int
hospitalId
)
{
//首次添加费用字典默认值
DefaultModules
(
hospitalId
);
var
list
=
exmoduleRepository
.
GetEntities
(
t
=>
t
.
HospitalId
==
hospitalId
).
OrderBy
(
t
=>
t
.
ModuleName
).
ToList
();
return
list
;
}
private
void
DefaultModules
(
int
hospitalId
)
{
var
data
=
exmoduleRepository
.
GetEntities
(
t
=>
t
.
HospitalId
==
hospitalId
);
var
inexistence
=
data
==
null
?
moduleList
:
moduleList
.
Where
(
t
=>
!
data
.
Select
(
p
=>
p
.
ModuleName
).
ToArray
().
Contains
(
t
.
ModuleName
));
...
...
@@ -294,8 +296,13 @@ public void DelItem(int itemId)
public
HandsonTable
GetQueryItemHands
(
ModModuleRequest
request
)
{
var
DicType
=
new
Dictionary
<
string
,
string
>();
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 (moduleList.Where(t=>t.SheetType == (int)SheetType.Income).Select(t=>t.ModuleName).Contains(module.ModuleName) )
DicType
=
OutDic
;
else
DicType
=
CostDic
;
...
...
@@ -311,6 +318,19 @@ public HandsonTable GetQueryItemHands(ModModuleRequest request)
{
foreach
(
var
column
in
handson
.
Columns
)
{
if
(
new
[]{
"医生系数"
,
"护理系数"
,
"医技系数"
}.
Contains
(
column
.
Data
))
{
column
.
Type
=
"numeric"
;
column
.
NumericFormat
=
new
NumericFormat
(){
Pattern
=
"%"
};
column
.
Strict
=
false
;
}
if
(
column
.
Data
==
"单元工作量绩效标准"
)
{
column
.
Type
=
"numeric"
;
column
.
Strict
=
false
;
}
if
(
column
.
Data
==
"自动提取规则(无法提取的考核项请勿填写)"
)
{
column
.
Type
=
"autocomplete"
;
...
...
@@ -320,7 +340,7 @@ public HandsonTable GetQueryItemHands(ModModuleRequest request)
}
}
var
list
=
exitemRepository
.
GetEntities
(
t
=>
t
.
ModuleId
==
request
.
ModuleId
);
var
list
=
exitemRepository
.
GetEntities
(
t
=>
t
.
ModuleId
==
request
.
ModuleId
)
.
OrderBy
(
c
=>
c
.
ItemName
)
;
if
(
list
==
null
)
return
handson
;
List
<
HandsonRowData
>
rowDatas
=
new
List
<
HandsonRowData
>();
...
...
@@ -334,16 +354,7 @@ public HandsonTable GetQueryItemHands(ModModuleRequest request)
firstDic
[
"typeid"
]
=
typeId
.
First
().
Title
;
else
firstDic
[
"typeid"
]
=
""
;
if
(
request
.
SheetType
!=
(
int
)
SheetType
.
Workload
)
{
var
FactorValue1
=
(
item
.
FactorValue1
*
100
).
ToString
();
var
FactorValue2
=
(
item
.
FactorValue2
*
100
).
ToString
();
var
FactorValue3
=
(
item
.
FactorValue3
*
100
).
ToString
();
firstDic
[
"factorvalue1"
]
=
FactorValue1
.
Remove
(
FactorValue1
.
IndexOf
(
'.'
))
+
"%"
;
firstDic
[
"factorvalue2"
]
=
FactorValue2
.
Remove
(
FactorValue2
.
IndexOf
(
'.'
))
+
"%"
;
firstDic
[
"factorvalue3"
]
=
FactorValue3
.
Remove
(
FactorValue3
.
IndexOf
(
'.'
))
+
"%"
;
}
var
cells
=
(
from
conf
in
DicType
join
fst
in
firstDic
on
conf
.
Key
.
ToUpper
()
equals
fst
.
Key
.
ToUpper
()
select
new
HandsonCellData
(
conf
.
Value
,
fst
.
Value
)).
ToList
();
...
...
@@ -373,25 +384,9 @@ public void SaveItemHands(int ModuleId, SaveItemData request)
if
(
dicValue
.
Any
())
item
[
"TypeId"
]
=
dicValue
.
First
().
Value
;
if
(
entity
.
SheetType
!=(
int
)
SheetType
.
Workload
)
{
if
(
item
[
"FactorValue1"
]!=
null
)
{
item
[
"FactorValue1"
]
=
(
Convert
.
ToInt32
(
item
[
"FactorValue1"
].
TrimEnd
(
'%'
))
*
0.01
).
ToString
();
}
if
(
item
[
"FactorValue2"
]
!=
null
)
{
item
[
"FactorValue2"
]
=
(
Convert
.
ToInt32
(
item
[
"FactorValue2"
].
TrimEnd
(
'%'
))
*
0.01
).
ToString
();
}
if
(
item
[
"FactorValue3"
]
!=
null
)
{
item
[
"FactorValue3"
]
=
(
Convert
.
ToInt32
(
item
[
"FactorValue3"
].
TrimEnd
(
'%'
))
*
0.01
).
ToString
();
}
}
var
json
=
JsonHelper
.
Serialize
(
item
);
var
data
=
JsonHelper
.
Deserialize
<
ex_item
>(
json
);
if
(!
string
.
IsNullOrEmpty
(
data
.
ItemName
)
||
!
string
.
IsNullOrEmpty
(
data
.
TypeId
.
ToString
())
)
if
(!
string
.
IsNullOrEmpty
(
data
.
ItemName
))
{
data
.
ModuleId
=
ModuleId
;
if
(
string
.
IsNullOrEmpty
(
data
.
FactorValue1
.
ToString
()))
...
...
@@ -459,6 +454,14 @@ public void SaveItemHands(int ModuleId, SaveItemData request)
{
nameof
(
ex_item
.
TypeId
),
"自动提取规则(无法提取的考核项请勿填写)"
}
};
public
static
Dictionary
<
string
,
string
>
OutDic
{
get
;
}
=
new
Dictionary
<
string
,
string
>
{
{
nameof
(
ex_item
.
ItemName
),
"绩效考核项"
},
{
nameof
(
ex_item
.
FactorValue1
),
"医生系数"
},
{
nameof
(
ex_item
.
FactorValue2
),
"护理系数"
},
{
nameof
(
ex_item
.
FactorValue3
),
"医技系数"
}
};
public
static
Dictionary
<
string
,
string
>
WorkLoadDic
{
get
;
}
=
new
Dictionary
<
string
,
string
>
{
{
nameof
(
ex_item
.
ItemName
),
"绩效考核项"
},
...
...
performance/Performance.Services/PersonService.cs
View file @
3a2e7a19
...
...
@@ -614,7 +614,7 @@ public HandsonTable GetDepartmentHands(int hospitalId)
}
}
var
getDept
=
GetDepartments
(
hospitalId
);
var
getDept
=
GetDepartments
(
hospitalId
)
.
OrderBy
(
c
=>
c
.
Department
)
;
var
rowDatas
=
DeptHandsonRowData
(
getDept
);
handson
.
SetRowData
(
rowDatas
,
rowDatas
!=
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