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
4a1fb586
Commit
4a1fb586
authored
Mar 28, 2019
by
李承祥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
基本配置信息copy() -- 方法修改
parent
1c06b36f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
15 deletions
+12
-15
performance/Performance.Services/PerExcelService/PerExcelService.cs
+12
-15
No files found.
performance/Performance.Services/PerExcelService/PerExcelService.cs
View file @
4a1fb586
...
...
@@ -256,24 +256,21 @@ public void Copy(per_allot allot)
if
(
list
[
i
].
ID
==
allot
.
ID
&&
(
i
-
1
)
>=
0
)
allotId
=
list
[
i
-
1
].
ID
;
}
if
(
allotId
>
0
)
{
var
director
=
_perforCofdirectorRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
)
??
_perforCofdirectorRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
-
1
);
var
newDirectors
=
director
.
Select
(
t
=>
new
cof_director
{
AllotID
=
allot
.
ID
,
JobTitle
=
t
.
JobTitle
,
TypeName
=
t
.
TypeName
,
Value
=
t
.
Value
});
_perforCofdirectorRepository
.
AddRange
(
newDirectors
.
ToArray
());
var
director
=
_perforCofdirectorRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
)
??
_perforCofdirectorRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
-
1
);
var
newDirectors
=
director
.
Select
(
t
=>
new
cof_director
{
AllotID
=
allot
.
ID
,
JobTitle
=
t
.
JobTitle
,
TypeName
=
t
.
TypeName
,
Value
=
t
.
Value
});
_perforCofdirectorRepository
.
AddRange
(
newDirectors
.
ToArray
());
var
durgprop
=
_perforCofdrugpropRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
)
??
_perforCofdrugpropRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
-
1
);
var
newDurgprops
=
durgprop
.
Select
(
t
=>
new
cof_drugprop
{
AllotID
=
allot
.
ID
,
MaxRange
=
t
.
MaxRange
,
MinRange
=
t
.
MinRange
,
Value
=
t
.
Value
});
_perforCofdrugpropRepository
.
AddRange
(
newDurgprops
.
ToArray
());
var
durgprop
=
_perforCofdrugpropRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
)
??
_perforCofdrugpropRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
-
1
);
var
newDurgprops
=
durgprop
.
Select
(
t
=>
new
cof_drugprop
{
AllotID
=
allot
.
ID
,
MaxRange
=
t
.
MaxRange
,
MinRange
=
t
.
MinRange
,
Value
=
t
.
Value
});
_perforCofdrugpropRepository
.
AddRange
(
newDurgprops
.
ToArray
());
var
income
=
_perforCofincomeRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
)
??
_perforCofincomeRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
-
1
);
var
newIncomes
=
income
.
Select
(
t
=>
new
cof_income
{
AllotID
=
allot
.
ID
,
SheetNameKeyword
=
t
.
SheetNameKeyword
,
UnitName
=
t
.
UnitName
,
Value
=
t
.
Value
});
_perforCofincomeRepository
.
AddRange
(
newIncomes
.
ToArray
());
var
income
=
_perforCofincomeRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
)
??
_perforCofincomeRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
-
1
);
var
newIncomes
=
income
.
Select
(
t
=>
new
cof_income
{
AllotID
=
allot
.
ID
,
SheetNameKeyword
=
t
.
SheetNameKeyword
,
UnitName
=
t
.
UnitName
,
Value
=
t
.
Value
});
_perforCofincomeRepository
.
AddRange
(
newIncomes
.
ToArray
());
var
workyear
=
_perforCofworkyearRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
)
??
_perforCofworkyearRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
-
1
);
var
newWorkyears
=
workyear
.
Select
(
t
=>
new
cof_workyear
{
AllotID
=
allot
.
ID
,
MaxRange
=
t
.
MaxRange
,
MinRange
=
t
.
MinRange
,
Value
=
t
.
Value
});
_perforCofworkyearRepository
.
AddRange
(
newWorkyears
.
ToArray
());
}
var
workyear
=
_perforCofworkyearRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
)
??
_perforCofworkyearRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
-
1
);
var
newWorkyears
=
workyear
.
Select
(
t
=>
new
cof_workyear
{
AllotID
=
allot
.
ID
,
MaxRange
=
t
.
MaxRange
,
MinRange
=
t
.
MinRange
,
Value
=
t
.
Value
});
_perforCofworkyearRepository
.
AddRange
(
newWorkyears
.
ToArray
());
}
/// <summary>
...
...
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