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
13a36237
Commit
13a36237
authored
Dec 26, 2019
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改管理成本导出,改为从库表的数据源导出
parent
ca37ff09
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
69 additions
and
32 deletions
+69
-32
FinanceController.cs
Bailun.DC.Web/Areas/Reports/Controllers/FinanceController.cs
+69
-32
No files found.
Bailun.DC.Web/Areas/Reports/Controllers/FinanceController.cs
View file @
13a36237
...
...
@@ -1034,42 +1034,77 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
/// <returns></returns>
public
ActionResult
ExportListAdministrativeCost
(
DateTime
start
,
DateTime
end
,
int
?
paycompanyid
,
string
headname
,
string
categoryname
,
int
type
,
int
issub
)
{
var
url
=
ConfigHelper
.
GetByName
(
"FeeUrl"
)
+
"?o=0"
;
//
var url = ConfigHelper.GetByName("FeeUrl") + "?o=0";
url
+=
"&startDate="
+
start
.
ToString
(
"yyyy-MM-dd"
)
+
"&endDate="
+
end
.
ToString
(
"yyyy-MM-dd"
);
//url += "&startDate=" + start.ToString("yyyy-MM-dd") + "&endDate=" + end.ToString("yyyy-MM-dd");
//if (paycompanyid.HasValue && paycompanyid.Value > 0)
//{
// url += "&companyValue=" + paycompanyid.Value;
//}
//if (!string.IsNullOrEmpty(headname))
//{
// if (type == 1)
// {
// url += "&departmentName=" + headname;
// }
// else
// {
// url += "&companyValue=" + headname;
// }
//}
//if (!string.IsNullOrEmpty(categoryname))
//{
// if (issub == 0)
// {
// url += "&feeSuperType=" + categoryname;
// }
// else
// {
// url += "&feeSubType=" + categoryname;
// }
//}
if
(
paycompanyid
.
HasValue
&&
paycompanyid
.
Value
>
0
)
{
url
+=
"&companyValue="
+
paycompanyid
.
Value
;
}
if
(!
string
.
IsNullOrEmpty
(
headname
))
{
if
(
type
==
1
)
{
url
+=
"&departmentName="
+
headname
;
//
url += "&departmentName=" + headname;
}
else
{
url
+=
"&companyValue="
+
headname
;
var
objPayCompany
=
new
Services
.
FinanceReportServices
().
GetPayCompanyByName
(
headname
);
if
(
objPayCompany
!=
null
)
{
paycompanyid
=
objPayCompany
.
company_value
;
}
}
}
if
(!
string
.
IsNullOrEmpty
(
categoryname
))
{
if
(
issub
==
0
)
{
url
+=
"&feeSuperType="
+
categoryname
;
}
else
{
url
+=
"&feeSubType="
+
categoryname
;
}
//
if (!string.IsNullOrEmpty(categoryname))
//
{
//
if (issub == 0)
//
{
//
url += "&feeSuperType=" + categoryname;
//
}
//
else
//
{
//
url += "&feeSubType=" + categoryname;
//
}
}
//}
//var obj = new Services.FinanceReportServices().ListOtherCost(url);
var
obj
=
new
Services
.
FinanceReportServices
().
ListFinanceManageCost
(
start
,
end
,
(
issub
==
0
?
categoryname
:
""
),
(
issub
!=
0
?
categoryname
:
""
),
(
type
==
1
?
headname
:
""
),
paycompanyid
);
var
obj
=
new
Services
.
FinanceReportServices
().
ListOtherCost
(
url
);
var
colNames
=
new
List
<
string
>
{
"部门名称"
,
"付款主体名称"
,
"父级分类"
,
"子分类"
,
"金额"
,
"币种"
,
"人民币金额"
};
...
...
@@ -1077,8 +1112,8 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
var
list
=
new
List
<
string
>();
foreach
(
var
item
in
obj
)
{
list
.
Add
(
item
.
department
Name
+
"|"
+
item
.
companyName
+
"|"
+
item
.
feeSuperType
+
"|"
+
item
.
feeSubT
ype
+
"|"
+
item
.
amount
+
"|"
+
item
.
currency
+
"|"
+
item
.
amount
R
mb
list
.
Add
(
item
.
department
_name
+
"|"
+
item
.
company_name
+
"|"
+
item
.
fee_super_type
+
"|"
+
item
.
fee_sub_t
ype
+
"|"
+
item
.
amount
+
"|"
+
item
.
currency
+
"|"
+
item
.
amount
_r
mb
);
}
...
...
@@ -1106,17 +1141,19 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
/// <returns></returns>
public
IActionResult
ExportAdministrativeCost
(
DateTime
start
,
DateTime
end
,
int
?
paycompanyid
)
{
var
url
=
ConfigHelper
.
GetByName
(
"FeeUrl"
)
+
"?o=0"
;
//
var url = ConfigHelper.GetByName("FeeUrl") + "?o=0";
url
+=
"&startDate="
+
start
.
ToString
(
"yyyy-MM-dd"
)
+
"&endDate="
+
end
.
ToString
(
"yyyy-MM-dd"
);
//
url += "&startDate=" + start.ToString("yyyy-MM-dd") + "&endDate=" + end.ToString("yyyy-MM-dd");
if
(
paycompanyid
.
HasValue
&&
paycompanyid
.
Value
>
0
)
{
url
+=
"&companyValue="
+
paycompanyid
.
Value
;
}
//if (paycompanyid.HasValue && paycompanyid.Value > 0)
//{
// url += "&companyValue=" + paycompanyid.Value;
//}
//var obj = new Services.FinanceReportServices().ListOtherCost(url);
var
obj
=
new
Services
.
FinanceReportServices
().
List
OtherCost
(
url
);
var
obj
=
new
Services
.
FinanceReportServices
().
List
FinanceManageCost
(
start
,
end
,
""
,
""
,
""
,
paycompanyid
);
var
colNames
=
new
List
<
string
>
{
"部门名称"
,
"付款主体名称"
,
"父级分类"
,
"子分类"
,
"金额"
,
"币种"
,
"人民币金额"
};
...
...
@@ -1124,8 +1161,8 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
var
list
=
new
List
<
string
>();
foreach
(
var
item
in
obj
)
{
list
.
Add
(
item
.
department
Name
+
"|"
+
item
.
companyName
+
"|"
+
item
.
feeSuperType
+
"|"
+
item
.
feeSubT
ype
+
"|"
+
item
.
amount
+
"|"
+
item
.
currency
+
"|"
+
item
.
amount
R
mb
list
.
Add
(
item
.
department
_name
+
"|"
+
item
.
company_name
+
"|"
+
item
.
fee_super_type
+
"|"
+
item
.
fee_sub_t
ype
+
"|"
+
item
.
amount
+
"|"
+
item
.
currency
+
"|"
+
item
.
amount
_r
mb
);
}
...
...
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