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
3fbe8d32
Commit
3fbe8d32
authored
Apr 03, 2023
by
ruyun.zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
绩效发放汇总下载默认列
parent
8e2070f7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
13 deletions
+8
-13
performance/Performance.Api/Controllers/ReportController.cs
+1
-6
performance/Performance.Repository/PerforReportRepository .cs
+4
-4
performance/Performance.Services/ComputeConfig.cs
+3
-3
No files found.
performance/Performance.Api/Controllers/ReportController.cs
View file @
3fbe8d32
...
@@ -368,13 +368,10 @@ public IActionResult WholeHospitalGrantSummaryDownload([FromBody] HospitalGrantS
...
@@ -368,13 +368,10 @@ public IActionResult WholeHospitalGrantSummaryDownload([FromBody] HospitalGrantS
string
.
IsNullOrEmpty
(
request
.
EndTime
)
||
!
DateTime
.
TryParse
(
request
.
EndTime
,
out
edate
))
string
.
IsNullOrEmpty
(
request
.
EndTime
)
||
!
DateTime
.
TryParse
(
request
.
EndTime
,
out
edate
))
throw
new
PerformanceException
(
"请输入正确的时间"
);
throw
new
PerformanceException
(
"请输入正确的时间"
);
var
resetGroupBy
=
request
.
GroupBy
.
Copy
();
var
list
=
_computeService
.
GetAllComputeViewByDateAndTotal
(
"view_allot_sign_emp"
,
request
);
var
list
=
_computeService
.
GetAllComputeViewByDateAndTotal
(
"view_allot_sign_emp"
,
request
);
if
(
null
==
list
)
if
(
null
==
list
)
throw
new
PerformanceException
(
"当前绩效记录不存在"
);
throw
new
PerformanceException
(
"当前绩效记录不存在"
);
request
.
GroupBy
=
resetGroupBy
;
List
<
string
>
headlist
=
new
List
<
string
>();
List
<
string
>
headlist
=
new
List
<
string
>();
foreach
(
var
item
in
request
.
GroupBy
.
Union
(
request
.
SumBy
).
ToList
())
foreach
(
var
item
in
request
.
GroupBy
.
Union
(
request
.
SumBy
).
ToList
())
...
@@ -496,12 +493,11 @@ public IActionResult WholeHospitalAccountingGrantSummaryDownload([FromBody] Hosp
...
@@ -496,12 +493,11 @@ public IActionResult WholeHospitalAccountingGrantSummaryDownload([FromBody] Hosp
string
.
IsNullOrEmpty
(
request
.
EndTime
)
||
!
DateTime
.
TryParse
(
request
.
EndTime
,
out
edate
))
string
.
IsNullOrEmpty
(
request
.
EndTime
)
||
!
DateTime
.
TryParse
(
request
.
EndTime
,
out
edate
))
throw
new
PerformanceException
(
"请输入正确的时间"
);
throw
new
PerformanceException
(
"请输入正确的时间"
);
var
list
=
_computeService
.
GetAllComputeViewByDateAndTotal
(
"view_allot_sign_dept"
,
request
);
var
list
=
_computeService
.
GetAllComputeViewByDateAndTotal
(
"view_allot_sign_dept"
,
request
);
if
(
null
==
list
)
if
(
null
==
list
)
throw
new
PerformanceException
(
"当前绩效记录不存在"
);
throw
new
PerformanceException
(
"当前绩效记录不存在"
);
List
<
string
>
headlist
=
new
List
<
string
>();
List
<
string
>
headlist
=
new
List
<
string
>()
{
}
;
foreach
(
var
item
in
request
.
GroupBy
.
Union
(
request
.
SumBy
).
ToList
())
foreach
(
var
item
in
request
.
GroupBy
.
Union
(
request
.
SumBy
).
ToList
())
{
{
...
@@ -619,7 +615,6 @@ public IActionResult WholeHospitalFinanceGrantSummaryDownload([FromBody] Hospita
...
@@ -619,7 +615,6 @@ public IActionResult WholeHospitalFinanceGrantSummaryDownload([FromBody] Hospita
string
.
IsNullOrEmpty
(
request
.
EndTime
)
||
!
DateTime
.
TryParse
(
request
.
EndTime
,
out
edate
))
string
.
IsNullOrEmpty
(
request
.
EndTime
)
||
!
DateTime
.
TryParse
(
request
.
EndTime
,
out
edate
))
throw
new
PerformanceException
(
"请输入正确的时间"
);
throw
new
PerformanceException
(
"请输入正确的时间"
);
var
list
=
_computeService
.
GetAllComputeViewByDateAndTotal
(
"view_allot_sign_emp_finance"
,
request
);
var
list
=
_computeService
.
GetAllComputeViewByDateAndTotal
(
"view_allot_sign_emp_finance"
,
request
);
if
(
null
==
list
)
if
(
null
==
list
)
throw
new
PerformanceException
(
"当前绩效记录不存在"
);
throw
new
PerformanceException
(
"当前绩效记录不存在"
);
...
...
performance/Performance.Repository/PerforReportRepository .cs
View file @
3fbe8d32
...
@@ -435,18 +435,18 @@ public List<dynamic> QueryComputeByDateAndTotal(string viewName, HospitalGrantSu
...
@@ -435,18 +435,18 @@ public List<dynamic> QueryComputeByDateAndTotal(string viewName, HospitalGrantSu
Dictionary
<
string
,
List
<
string
>>
dict
=
new
Dictionary
<
string
,
List
<
string
>>
Dictionary
<
string
,
List
<
string
>>
dict
=
new
Dictionary
<
string
,
List
<
string
>>
{
{
{
"view_allot_sign_emp_group"
,
new
List
<
string
>{
"
hospitalid"
,
"code"
,
"unittype"
,
"accountingunit"
,
"source"
,
"jobnumber"
,
"employeename"
,
"jobtitle"
,
"bankcard"
,
"batch"
,
"jobcategory"
,
"duty"
,
"titleposition"
}
},
{
"view_allot_sign_emp_group"
,
new
List
<
string
>{
"
code"
,
"hospitalid"
,
"unittype"
,
"accountingunit"
,
"source"
,
"jobnumber"
,
"employeename"
,
"jobtitle"
,
"bankcard"
,
"batch"
,
"jobcategory"
,
"duty"
,
"titleposition"
}
},
{
"view_allot_sign_emp_sum"
,
new
List
<
string
>{
"perforsumfee"
,
"performanagementfee"
,
"nightworkperfor"
,
"adjustlaterotherfee"
,
"otherperfor"
,
"hideotherperfor"
,
"shouldgivefee"
,
"reservedratiofee"
,
"realgivefee"
}
},
{
"view_allot_sign_emp_sum"
,
new
List
<
string
>{
"perforsumfee"
,
"performanagementfee"
,
"nightworkperfor"
,
"adjustlaterotherfee"
,
"otherperfor"
,
"hideotherperfor"
,
"shouldgivefee"
,
"reservedratiofee"
,
"realgivefee"
}
},
{
"view_allot_sign_dept_group"
,
new
List
<
string
>{
"
hospitalid"
,
"code"
,
"unittype"
,
"accountingunit"
}
},
{
"view_allot_sign_dept_group"
,
new
List
<
string
>{
"
code"
,
"hospitalid"
,
"unittype"
,
"accountingunit"
}
},
{
"view_allot_sign_dept_sum"
,
new
List
<
string
>{
"perforfee"
,
"workloadfee"
,
"assessbeforeotherfee"
,
"perfortotal"
,
"scoringaverage"
,
"extra"
,
"medicineextra"
,
"materialsextra"
,
"assesslaterotherfee"
,
"assesslaterperfortotal"
,
"adjustfactor"
,
"adjustlaterotherfee"
,
"aprperforamount"
,
"hideaprotherperforamount"
,
"assesslatermanagementfee"
,
"realgivefee"
}
},
{
"view_allot_sign_dept_sum"
,
new
List
<
string
>{
"perforfee"
,
"workloadfee"
,
"assessbeforeotherfee"
,
"perfortotal"
,
"scoringaverage"
,
"extra"
,
"medicineextra"
,
"materialsextra"
,
"assesslaterotherfee"
,
"assesslaterperfortotal"
,
"adjustfactor"
,
"adjustlaterotherfee"
,
"aprperforamount"
,
"hideaprotherperforamount"
,
"assesslatermanagementfee"
,
"realgivefee"
}
},
{
"view_allot_sign_emp_finance_group"
,
new
List
<
string
>{
"
hospitalid"
,
"code
"
,
"unittype"
,
"accountingunit"
,
"jobnumber"
,
"employeename"
,
}
},
{
"view_allot_sign_emp_finance_group"
,
new
List
<
string
>{
"
code"
,
"hospitalid
"
,
"unittype"
,
"accountingunit"
,
"jobnumber"
,
"employeename"
,
}
},
{
"view_allot_sign_emp_finance_sum"
,
new
List
<
string
>{
"perforsumfee"
,
"performanagementfee"
,
"nightworkperfor"
,
"adjustlaterotherfee"
,
"otherperfor"
,
"hideotherperfor"
,
"shouldgivefee"
,
"reservedratiofee"
,
"realgivefee"
}
},
{
"view_allot_sign_emp_finance_sum"
,
new
List
<
string
>{
"perforsumfee"
,
"performanagementfee"
,
"nightworkperfor"
,
"adjustlaterotherfee"
,
"otherperfor"
,
"hideotherperfor"
,
"shouldgivefee"
,
"reservedratiofee"
,
"realgivefee"
}
},
};
};
request
.
GroupBy
.
Remove
(
""
);
if
(
request
.
SumBy
==
null
||
!
request
.
SumBy
.
Any
(
t
=>
!
string
.
IsNullOrEmpty
(
t
)))
request
.
SumBy
=
dict
[
viewName
+
"_sum"
];
if
(
request
.
SumBy
==
null
||
!
request
.
SumBy
.
Any
(
t
=>
!
string
.
IsNullOrEmpty
(
t
)))
request
.
SumBy
=
dict
[
viewName
+
"_sum"
];
if
(
request
.
GroupBy
==
null
||
!
request
.
GroupBy
.
Any
(
t
=>
!
string
.
IsNullOrEmpty
(
t
)))
request
.
GroupBy
=
dict
[
viewName
+
"_group"
];
if
(
request
.
Search
!=
null
&&
request
.
Search
.
Any
(
w
=>
!
string
.
IsNullOrEmpty
(
w
.
Title
)
&&
!
string
.
IsNullOrEmpty
(
w
.
Value
)))
if
(
request
.
Search
!=
null
&&
request
.
Search
.
Any
(
w
=>
!
string
.
IsNullOrEmpty
(
w
.
Title
)
&&
!
string
.
IsNullOrEmpty
(
w
.
Value
)))
{
{
...
...
performance/Performance.Services/ComputeConfig.cs
View file @
3fbe8d32
...
@@ -31,8 +31,8 @@ public static List<cof_alias> PerformanceTotal(string route, string[] heads)
...
@@ -31,8 +31,8 @@ public static List<cof_alias> PerformanceTotal(string route, string[] heads)
public
static
List
<
cof_alias
>
AllComputeView
{
get
;
}
=
new
List
<
cof_alias
>
public
static
List
<
cof_alias
>
AllComputeView
{
get
;
}
=
new
List
<
cof_alias
>
{
{
new
cof_alias
{
Alias
=
"来源"
,
Name
=
nameof
(
view_allot_sign_emp
.
Source
),
States
=
1
,
SumStatus
=
0
,
Sort
=
1
},
new
cof_alias
{
Alias
=
"来源"
,
Name
=
nameof
(
view_allot_sign_emp
.
Source
),
States
=
1
,
SumStatus
=
0
,
Sort
=
1
},
new
cof_alias
{
Alias
=
"核算单元编码"
,
Name
=
nameof
(
view_allot_sign_emp
.
Code
),
States
=
1
,
SumStatus
=
0
,
Sort
=
1
},
new
cof_alias
{
Alias
=
"核算组别"
,
Name
=
nameof
(
view_allot_sign_emp
.
UnitType
),
States
=
1
,
SumStatus
=
0
,
Sort
=
2
},
new
cof_alias
{
Alias
=
"核算组别"
,
Name
=
nameof
(
view_allot_sign_emp
.
UnitType
),
States
=
1
,
SumStatus
=
0
,
Sort
=
2
},
new
cof_alias
{
Alias
=
"核算单元编码"
,
Name
=
nameof
(
view_allot_sign_emp
.
Code
),
States
=
1
,
SumStatus
=
0
,
Sort
=
2
},
new
cof_alias
{
Alias
=
"核算单元"
,
Name
=
nameof
(
view_allot_sign_emp
.
AccountingUnit
),
States
=
1
,
SumStatus
=
0
,
Sort
=
3
},
new
cof_alias
{
Alias
=
"核算单元"
,
Name
=
nameof
(
view_allot_sign_emp
.
AccountingUnit
),
States
=
1
,
SumStatus
=
0
,
Sort
=
3
},
new
cof_alias
{
Alias
=
"员工号"
,
Name
=
nameof
(
view_allot_sign_emp
.
JobNumber
),
States
=
1
,
SumStatus
=
0
,
Sort
=
4
},
new
cof_alias
{
Alias
=
"员工号"
,
Name
=
nameof
(
view_allot_sign_emp
.
JobNumber
),
States
=
1
,
SumStatus
=
0
,
Sort
=
4
},
...
@@ -75,8 +75,8 @@ public static List<cof_alias> AllComputeViewByDate
...
@@ -75,8 +75,8 @@ public static List<cof_alias> AllComputeViewByDate
public
static
List
<
cof_alias
>
AllComputePersonView
{
get
;
}
=
new
List
<
cof_alias
>
public
static
List
<
cof_alias
>
AllComputePersonView
{
get
;
}
=
new
List
<
cof_alias
>
{
{
new
cof_alias
{
Alias
=
"核算单元编码"
,
Name
=
nameof
(
view_allot_sign_emp
.
Code
),
States
=
1
,
SumStatus
=
0
,
Sort
=
0
},
new
cof_alias
{
Alias
=
"核算组别"
,
Name
=
nameof
(
view_allot_sign_emp
.
UnitType
),
States
=
1
,
SumStatus
=
0
,
Sort
=
1
},
new
cof_alias
{
Alias
=
"核算组别"
,
Name
=
nameof
(
view_allot_sign_emp
.
UnitType
),
States
=
1
,
SumStatus
=
0
,
Sort
=
1
},
new
cof_alias
{
Alias
=
"核算单元编码"
,
Name
=
nameof
(
view_allot_sign_emp
.
Code
),
States
=
1
,
SumStatus
=
0
,
Sort
=
2
},
new
cof_alias
{
Alias
=
"核算单元"
,
Name
=
nameof
(
view_allot_sign_emp
.
AccountingUnit
),
States
=
1
,
SumStatus
=
0
,
Sort
=
2
},
new
cof_alias
{
Alias
=
"核算单元"
,
Name
=
nameof
(
view_allot_sign_emp
.
AccountingUnit
),
States
=
1
,
SumStatus
=
0
,
Sort
=
2
},
new
cof_alias
{
Alias
=
"员工号"
,
Name
=
nameof
(
view_allot_sign_emp
.
JobNumber
),
States
=
1
,
SumStatus
=
0
,
Sort
=
3
},
new
cof_alias
{
Alias
=
"员工号"
,
Name
=
nameof
(
view_allot_sign_emp
.
JobNumber
),
States
=
1
,
SumStatus
=
0
,
Sort
=
3
},
new
cof_alias
{
Alias
=
"人员姓名"
,
Name
=
nameof
(
view_allot_sign_emp
.
EmployeeName
),
States
=
1
,
SumStatus
=
0
,
Sort
=
4
},
new
cof_alias
{
Alias
=
"人员姓名"
,
Name
=
nameof
(
view_allot_sign_emp
.
EmployeeName
),
States
=
1
,
SumStatus
=
0
,
Sort
=
4
},
...
@@ -128,8 +128,8 @@ public static List<cof_alias> AllComputePersonViewByDate
...
@@ -128,8 +128,8 @@ public static List<cof_alias> AllComputePersonViewByDate
public
static
List
<
cof_alias
>
AllComputeDepartmentView
{
get
;
}
=
new
List
<
cof_alias
>
public
static
List
<
cof_alias
>
AllComputeDepartmentView
{
get
;
}
=
new
List
<
cof_alias
>
{
{
new
cof_alias
{
Alias
=
"核算单元编码"
,
Name
=
nameof
(
view_allot_sign_emp
.
Code
),
States
=
1
,
SumStatus
=
0
,
Sort
=
0
},
new
cof_alias
{
Alias
=
"核算组别"
,
Name
=
nameof
(
view_allot_sign_dept
.
UnitType
),
States
=
1
,
SumStatus
=
0
,
Sort
=
1
},
new
cof_alias
{
Alias
=
"核算组别"
,
Name
=
nameof
(
view_allot_sign_dept
.
UnitType
),
States
=
1
,
SumStatus
=
0
,
Sort
=
1
},
new
cof_alias
{
Alias
=
"核算单元编码"
,
Name
=
nameof
(
view_allot_sign_emp
.
Code
),
States
=
1
,
SumStatus
=
0
,
Sort
=
2
},
new
cof_alias
{
Alias
=
"核算单元"
,
Name
=
nameof
(
view_allot_sign_dept
.
AccountingUnit
),
States
=
1
,
SumStatus
=
0
,
Sort
=
2
},
new
cof_alias
{
Alias
=
"核算单元"
,
Name
=
nameof
(
view_allot_sign_dept
.
AccountingUnit
),
States
=
1
,
SumStatus
=
0
,
Sort
=
2
},
new
cof_alias
{
Alias
=
"业绩绩效"
,
Name
=
nameof
(
view_allot_sign_dept
.
PerforFee
),
States
=
1
,
SumStatus
=
1
,
Sort
=
3
},
new
cof_alias
{
Alias
=
"业绩绩效"
,
Name
=
nameof
(
view_allot_sign_dept
.
PerforFee
),
States
=
1
,
SumStatus
=
1
,
Sort
=
3
},
new
cof_alias
{
Alias
=
"工作量绩效"
,
Name
=
nameof
(
view_allot_sign_dept
.
WorkloadFee
),
States
=
1
,
SumStatus
=
1
,
Sort
=
4
},
new
cof_alias
{
Alias
=
"工作量绩效"
,
Name
=
nameof
(
view_allot_sign_dept
.
WorkloadFee
),
States
=
1
,
SumStatus
=
1
,
Sort
=
4
},
...
...
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