Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
DataCenter_Core2.1_20190520
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bltdc
DataCenter_Core2.1_20190520
Commits
498ba049
Commit
498ba049
authored
Sep 16, 2020
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
管理成本增加4千里主体数据
parent
dd4b510b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
8 deletions
+31
-8
FinanceReportServices.cs
Bailun.DC.Services/FinanceReportServices.cs
+4
-0
FinanceController.cs
Bailun.DC.Web/Areas/Reports/Controllers/FinanceController.cs
+27
-8
No files found.
Bailun.DC.Services/FinanceReportServices.cs
View file @
498ba049
...
@@ -723,6 +723,10 @@ namespace Bailun.DC.Services
...
@@ -723,6 +723,10 @@ namespace Bailun.DC.Services
{
{
sql
+=
" and company_value in (53,59,60,61,66)"
;
sql
+=
" and company_value in (53,59,60,61,66)"
;
}
}
else
if
(
paycompanyid
.
Value
==
54
)
//四千里
{
sql
+=
" and company_value in (72, 67, 58, 54)"
;
}
else
else
{
{
sql
+=
" and company_value="
+
paycompanyid
.
Value
;
sql
+=
" and company_value="
+
paycompanyid
.
Value
;
...
...
Bailun.DC.Web/Areas/Reports/Controllers/FinanceController.cs
View file @
498ba049
...
@@ -628,10 +628,22 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
...
@@ -628,10 +628,22 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
if
(
list
.
Count
>
0
)
if
(
list
.
Count
>
0
)
{
{
var
list4K
=
new
List
<
int
>()
{
72
,
67
,
58
,
54
};
if
(
t
==
2
)
//按付款主体
if
(
t
==
2
)
//按付款主体
{
{
listCol
=
list
.
GroupBy
(
a
=>
a
.
company_name
).
Select
(
p
=>
p
.
Key
).
OrderBy
(
a
=>
a
).
ToList
();
listCol
=
list
.
GroupBy
(
a
=>
a
.
company_name
).
Select
(
p
=>
p
.
Key
).
OrderBy
(
a
=>
a
).
ToList
();
//对四千里主体的数据进行合并处理,四千里的主体包括:香港四千里数据科技有限公司(72),深圳市四千里数据科技有限公司(67),4Kmiles tec Limited(58),广州四千里数据科技有限公司(54)
if
(
list
.
Where
(
a
=>
list4K
.
Contains
(
a
.
company_value
)).
Count
()
>
0
)
{
listCol
.
Remove
(
"香港四千里数据科技有限公司"
);
listCol
.
Remove
(
"深圳市四千里数据科技有限公司"
);
listCol
.
Remove
(
"4Kmiles tec Limited"
);
listCol
.
Remove
(
"广州四千里数据科技有限公司"
);
listCol
.
Add
(
"四千里主体"
);
}
}
}
else
//按部门
else
//按部门
{
{
...
@@ -644,7 +656,7 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
...
@@ -644,7 +656,7 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
{
{
if
(
t
==
2
)
//按付款主体
if
(
t
==
2
)
//按付款主体
{
{
if
(
item
.
company_name
==
listCol
[
i
])
if
(
item
.
company_name
==
listCol
[
i
]
||
(
list4K
.
Contains
(
item
.
company_value
)
&&
listCol
[
i
]==
"四千里主体"
)
)
{
{
var
obj
=
listValue
.
Where
(
a
=>
a
.
Item1
==
item
.
fee_super_type
).
FirstOrDefault
();
var
obj
=
listValue
.
Where
(
a
=>
a
.
Item1
==
item
.
fee_super_type
).
FirstOrDefault
();
...
@@ -909,8 +921,7 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
...
@@ -909,8 +921,7 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
}
}
}
}
//手续费支出
//手续费支出
if
(
listHandleFee
.
Count
>
0
)
if
(
listHandleFee
.
Count
>
0
)
{
{
...
@@ -1234,13 +1245,21 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
...
@@ -1234,13 +1245,21 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
}
}
else
else
{
{
var
val
=
-
1
;
if
(
headname
==
"四千里主体"
)
//四千里
var
objPayCompany
=
new
Services
.
FinanceReportServices
().
GetPayCompanyByName
(
headname
);
if
(
objPayCompany
!=
null
)
{
{
paycompanyid
=
objPayCompany
.
company_value
;
paycompanyid
=
54
;
}
}
else
{
var
val
=
-
1
;
var
objPayCompany
=
new
Services
.
FinanceReportServices
().
GetPayCompanyByName
(
headname
);
if
(
objPayCompany
!=
null
)
{
paycompanyid
=
objPayCompany
.
company_value
;
}
}
}
}
}
}
...
...
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