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
dd78830e
Commit
dd78830e
authored
Jan 09, 2020
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决资产负债表无法导出的问题
parent
fb28e93e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
2 deletions
+25
-2
FinanceController.cs
Bailun.DC.Web/Areas/Reports/Controllers/FinanceController.cs
+25
-2
No files found.
Bailun.DC.Web/Areas/Reports/Controllers/FinanceController.cs
View file @
dd78830e
...
...
@@ -214,9 +214,32 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
});
}
public
ActionResult
ExportIndex
(
int
type
,
DateTime
day
,
int
paycompanyvalue
)
public
ActionResult
ExportIndex
(
int
type
,
DateTime
?
day
,
int
paycompanyvalue
)
{
var
date
=
day
;
var
date
=
DateTime
.
Now
.
AddDays
(-
1
);
if
(
type
==
2
)
//按周
{
if
(
date
.
DayOfWeek
==
DayOfWeek
.
Saturday
)
{
date
=
date
.
AddDays
(-
1
);
}
else
if
(
date
.
DayOfWeek
==
DayOfWeek
.
Sunday
)
{
date
=
date
.
AddDays
(-
2
);
}
else
{
date
=
date
.
AddDays
(-
2
-
(
int
)
date
.
DayOfWeek
);
}
}
else
if
(
type
==
3
)
//按月
{
if
(
date
.
AddDays
(
1
).
ToString
(
"yyyy-MM"
)
==
date
.
ToString
(
"yyyy-MM"
))
{
date
=
DateTime
.
Parse
(
date
.
ToString
(
"yyyy-MM"
)
+
"-01"
).
AddDays
(-
1
);
}
}
var
list
=
new
Services
.
FinanceReportServices
().
GetBalanceSheet
(
type
,
date
,
paycompanyvalue
);
...
...
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