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
6935fb1e
Commit
6935fb1e
authored
Jan 09, 2020
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整资产负债表的显示
parent
54a72c6e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
6 deletions
+32
-6
FinanceController.cs
Bailun.DC.Web/Areas/Reports/Controllers/FinanceController.cs
+26
-3
Index2.cshtml
Bailun.DC.Web/Areas/Reports/Views/Finance/Index2.cshtml
+6
-3
No files found.
Bailun.DC.Web/Areas/Reports/Controllers/FinanceController.cs
View file @
6935fb1e
...
@@ -42,9 +42,32 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
...
@@ -42,9 +42,32 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
/// </summary>
/// </summary>
/// <returns></returns>
/// <returns></returns>
[
HttpPost
]
[
HttpPost
]
public
JsonResult
IndexJson
(
int
type
,
DateTime
day
,
int
paycompanyvalue
)
public
JsonResult
IndexJson
(
int
type
,
int
paycompanyvalue
,
DateTime
?
day
)
{
{
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
);
var
list
=
new
Services
.
FinanceReportServices
().
GetBalanceSheet
(
type
,
date
,
paycompanyvalue
);
...
@@ -168,7 +191,7 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
...
@@ -168,7 +191,7 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
//add by Allan at 20200109,for 标识是否周日或者月末
//add by Allan at 20200109,for 标识是否周日或者月末
if
(
type
==
2
)
//按周
if
(
type
==
2
)
//按周
{
{
if
(
m
.
statistical_time
.
DayOfWeek
==
DayOfWeek
.
Thurs
day
)
if
(
m
.
statistical_time
.
DayOfWeek
==
DayOfWeek
.
Fri
day
)
{
{
m
.
ismark
=
1
;
m
.
ismark
=
1
;
}
}
...
...
Bailun.DC.Web/Areas/Reports/Views/Finance/Index2.cshtml
View file @
6935fb1e
...
@@ -7,6 +7,9 @@
...
@@ -7,6 +7,9 @@
<div class="row">
<div class="row">
<div class="col-sm-12">
<div class="col-sm-12">
<div class="alert alert-warning">
说明:按周显示时,默认显示周五的数据,按月显示时,默认显示每月月末的数据
</div>
<div class="ibox-content m-b-sm border-bottom">
<div class="ibox-content m-b-sm border-bottom">
<form id="toolbar">
<form id="toolbar">
<div class="form-inline" style="line-height:40px;">
<div class="form-inline" style="line-height:40px;">
...
@@ -18,8 +21,8 @@
...
@@ -18,8 +21,8 @@
<option value="3">按月的方式</option>
<option value="3">按月的方式</option>
@*<option value="4">按年的方式</option>*@
@*<option value="4">按年的方式</option>*@
</select>
</select>
<label>日期</label>
@*
<label>日期</label>
<input id="day" type="text" style="width:120px" value="@DateTime.Now.AddDays(-1).ToString("yyyy-MM-dd")" class="form-control">
<input id="day" type="text" style="width:120px" value="@DateTime.Now.AddDays(-1).ToString("yyyy-MM-dd")" class="form-control">
*@
<label>付款主体</label>
<label>付款主体</label>
<select id="sel_paycompany" class="form-control" style="width:200px;">
<select id="sel_paycompany" class="form-control" style="width:200px;">
<option value="0">百伦供应链</option>
<option value="0">百伦供应链</option>
...
@@ -57,7 +60,7 @@
...
@@ -57,7 +60,7 @@
<div class="item-col" style="width:100%;border-left:solid 1px #eee;border-right:solid 1px #eee;border-bottom:solid 1px #eee;height:33px;"> </div>
<div class="item-col" style="width:100%;border-left:solid 1px #eee;border-right:solid 1px #eee;border-bottom:solid 1px #eee;height:33px;"> </div>
<div id="fz" class="item-col" style="width:100%;border-left:solid 1px #eee;border-right:solid 1px #eee;border-bottom:solid 1px #eee;height:264px;line-height:264px;" title="负债和所有者权益">负债和所有者权益</div>
<div id="fz" class="item-col" style="width:100%;border-left:solid 1px #eee;border-right:solid 1px #eee;border-bottom:solid 1px #eee;height:264px;line-height:264px;" title="负债和所有者权益">负债和所有者权益</div>
</div>
</div>
<div style="width:8%;" class="second-row"
>
<div style="width:8%;" class="second-row">
<div id="ldzc" class="item-col zc" style="width:100%;border-bottom:solid 1px #eee;height:33px;line-height:33px;">流动资产</div>
<div id="ldzc" class="item-col zc" style="width:100%;border-bottom:solid 1px #eee;height:33px;line-height:33px;">流动资产</div>
<div id="fldzc" class="item-col zc" style="width:100%;border-bottom:solid 1px #eee;height:33px;line-height:33px;">非流动资产</div>
<div id="fldzc" class="item-col zc" style="width:100%;border-bottom:solid 1px #eee;height:33px;line-height:33px;">非流动资产</div>
<div class="item-col zc" style="width:100%;border-bottom:solid 1px #eee;height:33px;"> </div>
<div class="item-col zc" style="width:100%;border-bottom:solid 1px #eee;height:33px;"> </div>
...
...
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