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
d0e6c66b
Commit
d0e6c66b
authored
Jan 13, 2022
by
纪旭 韦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
人员字典修改
parent
c5539259
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
19 deletions
+37
-19
performance/Performance.Services/PersonService.cs
+15
-15
performance/Performance.Services/ReportGlobalService.cs
+22
-4
No files found.
performance/Performance.Services/PersonService.cs
View file @
d0e6c66b
...
@@ -944,15 +944,15 @@ private void DeptDicList(int HospitalId, List<per_dept_dic> deptDics, DeptdicHan
...
@@ -944,15 +944,15 @@ private void DeptDicList(int HospitalId, List<per_dept_dic> deptDics, DeptdicHan
(
nameof
(
PersonePassword
.
Department
),
"科室名称"
,
t
=>
t
.
Department
),
(
nameof
(
PersonePassword
.
Department
),
"科室名称"
,
t
=>
t
.
Department
),
(
nameof
(
PersonePassword
.
DoctorName
),
"姓名"
,
t
=>
t
.
DoctorName
),
(
nameof
(
PersonePassword
.
DoctorName
),
"姓名"
,
t
=>
t
.
DoctorName
),
(
nameof
(
PersonePassword
.
PersonnelNumber
),
"员工工号"
,
t
=>
t
.
PersonnelNumber
),
(
nameof
(
PersonePassword
.
PersonnelNumber
),
"员工工号"
,
t
=>
t
.
PersonnelNumber
),
(
nameof
(
PersonePassword
.
JobCategory
),
"正式/临聘"
,
t
=>
t
.
JobCategory
),
//
(nameof(PersonePassword.JobCategory), "正式/临聘", t => t.JobCategory),
(
nameof
(
PersonePassword
.
Duty
),
"职务"
,
t
=>
t
.
Duty
),
//
(nameof(PersonePassword.Duty), "职务", t => t.Duty),
(
nameof
(
PersonePassword
.
JobTitle
),
"职称"
,
t
=>
t
.
JobTitle
),
//
(nameof(PersonePassword.JobTitle), "职称", t => t.JobTitle),
(
nameof
(
PersonePassword
.
UnitType
),
"人员类别"
,
t
=>
t
.
UnitType
),
(
nameof
(
PersonePassword
.
UnitType
),
"人员类别"
,
t
=>
t
.
UnitType
),
(
nameof
(
PersonePassword
.
AttendanceDay
),
"出勤天数"
,
t
=>
t
.
AttendanceDay
),
//
(nameof(PersonePassword.AttendanceDay), "出勤天数", t => t.AttendanceDay),
(
nameof
(
PersonePassword
.
ReservedRatio
),
"预留比例"
,
t
=>
t
.
ReservedRatio
),
//
(nameof(PersonePassword.ReservedRatio), "预留比例", t => t.ReservedRatio),
(
nameof
(
PersonePassword
.
BankCard
),
"银行卡号"
,
t
=>
t
.
BankCard
),
//
(nameof(PersonePassword.BankCard), "银行卡号", t => t.BankCard),
(
nameof
(
PersonePassword
.
Password
),
"密码"
,
t
=>
t
.
Password
),
//
(nameof(PersonePassword.Password), "密码", t => t.Password),
(
nameof
(
PersonePassword
.
Remark
),
"备注"
,
t
=>
t
.
Remark
),
//
(nameof(PersonePassword.Remark), "备注", t => t.Remark),
};
};
public
static
List
<(
string
,
string
,
Func
<
per_employee
,
object
>)>
Person
{
get
;
}
=
new
List
<(
string
,
string
,
Func
<
per_employee
,
object
>)>
public
static
List
<(
string
,
string
,
Func
<
per_employee
,
object
>)>
Person
{
get
;
}
=
new
List
<(
string
,
string
,
Func
<
per_employee
,
object
>)>
...
@@ -961,14 +961,14 @@ private void DeptDicList(int HospitalId, List<per_dept_dic> deptDics, DeptdicHan
...
@@ -961,14 +961,14 @@ private void DeptDicList(int HospitalId, List<per_dept_dic> deptDics, DeptdicHan
(
nameof
(
per_employee
.
Department
),
"科室名称"
,
t
=>
t
.
Department
),
(
nameof
(
per_employee
.
Department
),
"科室名称"
,
t
=>
t
.
Department
),
(
nameof
(
per_employee
.
DoctorName
),
"姓名"
,
t
=>
t
.
DoctorName
),
(
nameof
(
per_employee
.
DoctorName
),
"姓名"
,
t
=>
t
.
DoctorName
),
(
nameof
(
per_employee
.
PersonnelNumber
),
"员工工号"
,
t
=>
t
.
PersonnelNumber
),
(
nameof
(
per_employee
.
PersonnelNumber
),
"员工工号"
,
t
=>
t
.
PersonnelNumber
),
(
nameof
(
per_employee
.
JobCategory
),
"正式/临聘"
,
t
=>
t
.
JobCategory
),
//
(nameof(per_employee.JobCategory), "正式/临聘", t => t.JobCategory),
(
nameof
(
per_employee
.
Duty
),
"职务"
,
t
=>
t
.
Duty
),
//
(nameof(per_employee.Duty), "职务", t => t.Duty),
(
nameof
(
per_employee
.
JobTitle
),
"职称"
,
t
=>
t
.
JobTitle
),
//
(nameof(per_employee.JobTitle), "职称", t => t.JobTitle),
(
nameof
(
per_employee
.
UnitType
),
"人员类别"
,
t
=>
t
.
UnitType
),
(
nameof
(
per_employee
.
UnitType
),
"人员类别"
,
t
=>
t
.
UnitType
),
(
nameof
(
per_employee
.
AttendanceDay
),
"出勤天数"
,
t
=>
t
.
AttendanceDay
),
//
(nameof(per_employee.AttendanceDay), "出勤天数", t => t.AttendanceDay),
(
nameof
(
per_employee
.
ReservedRatio
),
"预留比例"
,
t
=>
t
.
ReservedRatio
),
//
(nameof(per_employee.ReservedRatio), "预留比例", t => t.ReservedRatio),
(
nameof
(
per_employee
.
BankCard
),
"银行卡号"
,
t
=>
t
.
BankCard
),
//
(nameof(per_employee.BankCard), "银行卡号", t => t.BankCard),
(
nameof
(
per_employee
.
Remark
),
"备注"
,
t
=>
t
.
Remark
),
//
(nameof(per_employee.Remark), "备注", t => t.Remark),
};
};
private
static
Dictionary
<
string
,
string
>
DeptDic
{
get
;
}
=
new
Dictionary
<
string
,
string
>
private
static
Dictionary
<
string
,
string
>
DeptDic
{
get
;
}
=
new
Dictionary
<
string
,
string
>
...
...
performance/Performance.Services/ReportGlobalService.cs
View file @
d0e6c66b
...
@@ -546,7 +546,25 @@ public HandsonTable GetReportPersonTag(int hospitalId)
...
@@ -546,7 +546,25 @@ public HandsonTable GetReportPersonTag(int hospitalId)
rowDatas
.
Add
(
new
HandsonRowData
(
i
,
cells
));
rowDatas
.
Add
(
new
HandsonRowData
(
i
,
cells
));
i
++;
i
++;
}
}
result
.
SetRowData
(
rowDatas
,
rowDatas
!=
null
);
List
<
HandsonRowData
>
rowDatas2
=
new
List
<
HandsonRowData
>();
foreach
(
var
item
in
rowDatas
)
{
if
(
rowDatas2
.
Count
==
0
)
rowDatas2
.
Add
(
item
);
var
flag
=
true
;
foreach
(
var
item2
in
rowDatas2
)
{
if
(
item
.
CellData
.
ToList
()[
1
].
Value
.
Equals
(
item2
.
CellData
.
ToList
()[
1
].
Value
))
flag
=
false
;
}
if
(
flag
)
rowDatas2
.
Add
(
item
);
}
result
.
SetRowData
(
rowDatas2
,
rowDatas2
!=
null
);
return
result
;
return
result
;
}
}
...
@@ -559,7 +577,7 @@ public void SaveReportPersonTag(int hospitalId, SaveCollectData request)
...
@@ -559,7 +577,7 @@ public void SaveReportPersonTag(int hospitalId, SaveCollectData request)
{
{
var
json
=
JsonHelper
.
Serialize
(
item
);
var
json
=
JsonHelper
.
Serialize
(
item
);
var
data
=
JsonHelper
.
Deserialize
<
report_performance_person_tags
>(
json
);
var
data
=
JsonHelper
.
Deserialize
<
report_performance_person_tags
>(
json
);
if
(
!
string
.
IsNullOrEmpty
(
data
.
UnitType
)
&&
!
string
.
IsNullOrEmpty
(
data
.
AccountingUnit
)
&&
!
string
.
IsNullOrEmpty
(
data
.
PersonnelName
)
&&
!
string
.
IsNullOrEmpty
(
data
.
PersonnelNumber
)
&&
!
string
.
IsNullOrEmpty
(
data
.
Tag1
)
&&
!
string
.
IsNullOrEmpty
(
data
.
Tag2
))
if
(
/*!string.IsNullOrEmpty(data.UnitType) && !string.IsNullOrEmpty(data.AccountingUnit) && */
!
string
.
IsNullOrEmpty
(
data
.
PersonnelName
)
&&
!
string
.
IsNullOrEmpty
(
data
.
PersonnelNumber
)
&&
!
string
.
IsNullOrEmpty
(
data
.
Tag1
)
&&
!
string
.
IsNullOrEmpty
(
data
.
Tag2
))
{
{
data
.
CreateTime
=
Convert
.
ToDateTime
(
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
));
data
.
CreateTime
=
Convert
.
ToDateTime
(
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
));
personTags
.
Add
(
data
);
personTags
.
Add
(
data
);
...
@@ -619,8 +637,8 @@ public void SaveReportTag(int hospitalId, SaveCollectData request)
...
@@ -619,8 +637,8 @@ public void SaveReportTag(int hospitalId, SaveCollectData request)
private
static
Dictionary
<
string
,
string
>
PersonTag
{
get
;
}
=
new
Dictionary
<
string
,
string
>
private
static
Dictionary
<
string
,
string
>
PersonTag
{
get
;
}
=
new
Dictionary
<
string
,
string
>
{
{
{
nameof
(
report_performance_person_tags
.
UnitType
),
"核算单元类型"
},
//
{nameof(report_performance_person_tags.UnitType), "核算单元类型"},
{
nameof
(
report_performance_person_tags
.
AccountingUnit
),
"科室"
},
//
{nameof(report_performance_person_tags.AccountingUnit), "科室"},
{
nameof
(
report_performance_person_tags
.
PersonnelNumber
),
"工号"
},
{
nameof
(
report_performance_person_tags
.
PersonnelNumber
),
"工号"
},
{
nameof
(
report_performance_person_tags
.
PersonnelName
),
"姓名"
},
{
nameof
(
report_performance_person_tags
.
PersonnelName
),
"姓名"
},
{
nameof
(
report_performance_person_tags
.
Tag1
),
"绩效发放情况"
},
{
nameof
(
report_performance_person_tags
.
Tag1
),
"绩效发放情况"
},
...
...
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