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
2e872508
Commit
2e872508
authored
Mar 28, 2022
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into release/v22.2.10-Beta-ninghai
parents
d37bf130
2458960b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
performance/Performance.Api/wwwroot/Performance.Api.xml
+1
-1
performance/Performance.Services/PersonService.cs
+5
-5
No files found.
performance/Performance.Api/wwwroot/Performance.Api.xml
View file @
2e872508
...
...
@@ -806,7 +806,7 @@
</member>
<member
name=
"M:Performance.Api.Controllers.ConfigController.BatchCheckAccounting(System.Int32)"
>
<summary>
核算单元及组别
批量添加
核算单元及组别
检验
</summary>
<param
name=
"allotId"
></param>
<returns></returns>
...
...
performance/Performance.Services/PersonService.cs
View file @
2e872508
...
...
@@ -270,7 +270,7 @@ public ApiResponse CreatePerson(PerEmployeeResponse request)
unittype
.
AddRange
(
EnumHelper
.
GetItems
<
AccountUnitType
>().
Select
(
t
=>
t
.
Description
));
if
(!
unittype
.
Contains
(
request
.
UnitType
))
throw
new
PerformanceException
(
$"
人员类
别不符合规范!"
);
throw
new
PerformanceException
(
$"
核算组
别不符合规范!"
);
var
entity
=
_mapper
.
Map
<
per_employee
>(
request
);
var
allot
=
perallotRepository
.
GetEntity
(
t
=>
t
.
ID
==
request
.
AllotId
);
...
...
@@ -333,7 +333,7 @@ public ApiResponse UpdatePerson(PerEmployeeResponse request)
unittype
.
AddRange
(
EnumHelper
.
GetItems
<
AccountUnitType
>().
Select
(
t
=>
t
.
Description
));
if
(!
unittype
.
Contains
(
request
.
UnitType
))
throw
new
PerformanceException
(
$"
人员类
别不符合规范!"
);
throw
new
PerformanceException
(
$"
核算组
别不符合规范!"
);
var
employee
=
employees
.
First
();
//_mapper.Map(request, employee, typeof(per_employee), typeof(per_employee));
...
...
@@ -741,7 +741,7 @@ public HandsonTable GetBatchPersonStructrue(int hospitalId)
if
(
columns
.
Contains
(
column
.
Data
))
column
.
Type
=
"text"
;
if
(
column
.
Data
==
"
人员类
别"
)
if
(
column
.
Data
==
"
核算组
别"
)
{
column
.
Type
=
"autocomplete"
;
column
.
Source
=
EnumHelper
.
GetItems
<
UnitType
>().
Select
(
w
=>
w
.
Description
.
Replace
(
"行政后勤"
,
"行政工勤"
)).
ToArray
();
...
...
@@ -1075,6 +1075,7 @@ private void DeptDicList(int HospitalId, List<per_dept_dic> deptDics, DeptdicHan
public
static
List
<(
string
,
string
,
Func
<
PersonePassword
,
object
>)>
PersonPassword
{
get
;
}
=
new
List
<(
string
,
string
,
Func
<
PersonePassword
,
object
>)>
{
(
nameof
(
PersonePassword
.
UnitType
),
"核算组别"
,
t
=>
t
.
UnitType
),
(
nameof
(
PersonePassword
.
AccountingUnit
),
"核算单元"
,
t
=>
t
.
AccountingUnit
),
(
nameof
(
PersonePassword
.
Department
),
"科室名称"
,
t
=>
t
.
Department
),
(
nameof
(
PersonePassword
.
DoctorName
),
"姓名"
,
t
=>
t
.
DoctorName
),
...
...
@@ -1082,7 +1083,6 @@ private void DeptDicList(int HospitalId, List<per_dept_dic> deptDics, DeptdicHan
//(nameof(PersonePassword.JobCategory), "正式/临聘", t => t.JobCategory),
//(nameof(PersonePassword.Duty), "职务", t => t.Duty),
//(nameof(PersonePassword.JobTitle), "职称", t => t.JobTitle),
(
nameof
(
PersonePassword
.
UnitType
),
"人员类别"
,
t
=>
t
.
UnitType
),
//(nameof(PersonePassword.AttendanceDay), "出勤天数", t => t.AttendanceDay),
//(nameof(PersonePassword.ReservedRatio), "预留比例", t => t.ReservedRatio),
//(nameof(PersonePassword.BankCard), "银行卡号", t => t.BankCard),
...
...
@@ -1092,6 +1092,7 @@ private void DeptDicList(int HospitalId, List<per_dept_dic> deptDics, DeptdicHan
public
static
List
<(
string
,
string
,
Func
<
per_employee
,
object
>)>
Person
{
get
;
}
=
new
List
<(
string
,
string
,
Func
<
per_employee
,
object
>)>
{
(
nameof
(
per_employee
.
UnitType
),
"核算组别"
,
t
=>
t
.
UnitType
),
(
nameof
(
per_employee
.
AccountingUnit
),
"核算单元"
,
t
=>
t
.
AccountingUnit
),
(
nameof
(
per_employee
.
Department
),
"科室名称"
,
t
=>
t
.
Department
),
(
nameof
(
per_employee
.
DoctorName
),
"姓名"
,
t
=>
t
.
DoctorName
),
...
...
@@ -1099,7 +1100,6 @@ private void DeptDicList(int HospitalId, List<per_dept_dic> deptDics, DeptdicHan
//(nameof(per_employee.JobCategory), "正式/临聘", t => t.JobCategory),
//(nameof(per_employee.Duty), "职务", t => t.Duty),
//(nameof(per_employee.JobTitle), "职称", t => t.JobTitle),
(
nameof
(
per_employee
.
UnitType
),
"人员类别"
,
t
=>
t
.
UnitType
),
//(nameof(per_employee.AttendanceDay), "出勤天数", t => t.AttendanceDay),
//(nameof(per_employee.ReservedRatio), "预留比例", t => t.ReservedRatio),
//(nameof(per_employee.BankCard), "银行卡号", t => t.BankCard),
...
...
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