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
65d97d24
Commit
65d97d24
authored
Aug 10, 2023
by
wyc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
手工录入数据条件修改
parent
737fb0d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
performance/Performance.Services/EmployeeService.cs
+13
-13
No files found.
performance/Performance.Services/EmployeeService.cs
View file @
65d97d24
...
...
@@ -1980,19 +1980,19 @@ public ApiResponse SaveGatherHands(int allotId, SaveGatherData saveGather)
{
"错误原因"
,
$"人员字典中不存在工号[
{
newGather
[
i
].
PersonnelNumber
}
]"
},
});
var
ExistNameData
=
employees
.
FirstOrDefault
(
w
=>
w
.
AllotId
==
allotId
&&
(
w
.
DoctorName
!=
null
&&
w
.
DoctorName
==
newGather
[
i
].
DoctorName
));
if
((
ExistNumberData
==
null
||
ExistNumberData
.
DoctorName
!=
newGather
[
i
].
DoctorName
)
||
(
ExistNameData
==
null
||
ExistNameData
.
PersonnelNumber
!=
newGather
[
i
].
PersonnelNumber
))
error
.
Add
(
new
Dictionary
<
string
,
string
>
{
{
"行号"
,
$"第
{
i
+
1
}
行"
},
{
"科室"
,
newGather
[
i
].
Department
??
""
},
{
"医生姓名"
,
newGather
[
i
].
DoctorName
??
""
},
{
"人员工号"
,
newGather
[
i
].
PersonnelNumber
??
""
},
{
"数值"
,
newGather
[
i
].
Fee
.
ToString
()
},
{
"来源"
,
"粘贴数据"
},
{
"错误原因"
,
$"该人员姓名和工号与人员字典中不匹配"
},
});
//
var ExistNameData = employees.FirstOrDefault(w => w.AllotId == allotId && (w.DoctorName != null && w.DoctorName == newGather[i].DoctorName));
//
if ((ExistNumberData == null || ExistNumberData.DoctorName != newGather[i].DoctorName)
//
|| (ExistNameData == null || ExistNameData.PersonnelNumber != newGather[i].PersonnelNumber))
//
error.Add(new Dictionary<string, string>
//
{
//
{ "行号", $"第{i+1}行" },
//
{ "科室", newGather[i].Department??"" },
//
{ "医生姓名", newGather[i].DoctorName??"" },
//
{ "人员工号", newGather[i].PersonnelNumber??"" },
//
{ "数值", newGather[i].Fee.ToString() },
//
{ "来源", "粘贴数据" },
//
{ "错误原因", $"该人员姓名和工号与人员字典中不匹配" },
//
});
}
//if (accountingUnit.Login != "admin")
...
...
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