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
47663fc8
Commit
47663fc8
authored
Mar 26, 2019
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码调整
parent
5ba21ca7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
30 deletions
+10
-30
performance/Performance.Services/PerExcelService/PerExcelService.cs
+10
-30
No files found.
performance/Performance.Services/PerExcelService/PerExcelService.cs
View file @
47663fc8
...
...
@@ -226,52 +226,32 @@ public void Copy(per_allot allot)
var
director
=
_perforCofdirectorRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
);
if
(
director
!=
null
)
{
foreach
(
var
item
in
director
)
{
item
.
ID
=
0
;
item
.
AllotID
=
allot
.
ID
;
_perforCofdirectorRepository
.
Add
(
item
);
}
director
.
ForEach
(
t
=>
{
t
.
ID
=
0
;
t
.
AllotID
=
allot
.
ID
;
});
_perforCofdirectorRepository
.
AddRange
(
director
.
ToArray
());
}
var
durgprop
=
_perforCofdrugpropRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
);
if
(
durgprop
!=
null
)
{
foreach
(
var
item
in
durgprop
)
{
item
.
ID
=
0
;
item
.
AllotID
=
allot
.
ID
;
_perforCofdrugpropRepository
.
Add
(
item
);
}
durgprop
.
ForEach
(
t
=>
{
t
.
ID
=
0
;
t
.
AllotID
=
allot
.
ID
;
});
_perforCofdrugpropRepository
.
AddRange
(
durgprop
.
ToArray
());
}
var
income
=
_perforCofincomeRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
);
if
(
income
!=
null
)
{
foreach
(
var
item
in
income
)
{
item
.
ID
=
0
;
item
.
AllotID
=
allot
.
ID
;
_perforCofincomeRepository
.
Add
(
item
);
}
income
.
ForEach
(
t
=>
{
t
.
ID
=
0
;
t
.
AllotID
=
allot
.
ID
;
});
_perforCofincomeRepository
.
AddRange
(
income
.
ToArray
());
}
var
position
=
_perforCofpositionRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
);
if
(
position
!=
null
)
{
foreach
(
var
item
in
position
)
{
item
.
ID
=
0
;
item
.
AllotID
=
allot
.
ID
;
_perforCofpositionRepository
.
Add
(
item
);
}
position
.
ForEach
(
t
=>
{
t
.
ID
=
0
;
t
.
AllotID
=
allot
.
ID
;
});
_perforCofpositionRepository
.
AddRange
(
position
.
ToArray
());
}
var
workyear
=
_perforCofworkyearRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
);
if
(
workyear
!=
null
)
{
foreach
(
var
item
in
workyear
)
{
item
.
ID
=
0
;
item
.
AllotID
=
allot
.
ID
;
_perforCofworkyearRepository
.
Add
(
item
);
}
workyear
.
ForEach
(
t
=>
{
t
.
ID
=
0
;
t
.
AllotID
=
allot
.
ID
;
});
_perforCofworkyearRepository
.
AddRange
(
workyear
.
ToArray
());
}
}
}
...
...
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