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
5ae51faa
Commit
5ae51faa
authored
Apr 29, 2021
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
资产负债表支持按月维度,按周维度选择日期查看历史数据
parent
a684c678
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
11 deletions
+23
-11
FinanceReportServices.cs
Bailun.DC.Services/FinanceReportServices.cs
+0
-1
FinanceController.cs
Bailun.DC.Web/Areas/Reports/Controllers/FinanceController.cs
+14
-1
Index2.cshtml
Bailun.DC.Web/Areas/Reports/Views/Finance/Index2.cshtml
+9
-9
No files found.
Bailun.DC.Services/FinanceReportServices.cs
View file @
5ae51faa
...
@@ -7705,7 +7705,6 @@ group by currency";
...
@@ -7705,7 +7705,6 @@ group by currency";
#
endregion
#
endregion
#
region
4
k
资产负债表
#
region
4
k
资产负债表
/// <summary>
/// <summary>
...
...
Bailun.DC.Web/Areas/Reports/Controllers/FinanceController.cs
View file @
5ae51faa
...
@@ -53,7 +53,15 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
...
@@ -53,7 +53,15 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
if
(
type
==
2
)
//按周
if
(
type
==
2
)
//按周
{
{
date
=
date
.
AddDays
(-
1
);
if
(
day
.
HasValue
)
//Add by Allan at 20210429,按周也可以选择日期进行查看
{
date
=
day
.
Value
;
}
else
{
date
=
date
.
AddDays
(-
1
);
}
if
(
date
.
DayOfWeek
==
DayOfWeek
.
Saturday
)
if
(
date
.
DayOfWeek
==
DayOfWeek
.
Saturday
)
{
{
...
@@ -82,6 +90,11 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
...
@@ -82,6 +90,11 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
}
}
else
if
(
type
==
3
)
//按月
else
if
(
type
==
3
)
//按月
{
{
if
(
day
.
HasValue
)
//Add by Allan at 20210429,for 月份也可选择日期进行查看
{
date
=
day
.
Value
;
}
if
(
date
.
AddDays
(
1
).
ToString
(
"yyyy-MM"
)
==
date
.
ToString
(
"yyyy-MM"
))
if
(
date
.
AddDays
(
1
).
ToString
(
"yyyy-MM"
)
==
date
.
ToString
(
"yyyy-MM"
))
{
{
date
=
DateTime
.
Parse
(
date
.
ToString
(
"yyyy-MM"
)
+
"-01"
).
AddDays
(-
1
);
date
=
DateTime
.
Parse
(
date
.
ToString
(
"yyyy-MM"
)
+
"-01"
).
AddDays
(-
1
);
...
...
Bailun.DC.Web/Areas/Reports/Views/Finance/Index2.cshtml
View file @
5ae51faa
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
<option value="1">按日的方式</option>
<option value="1">按日的方式</option>
</select>
</select>
@*<label>日期</label>*@
@*<label>日期</label>*@
<input id="day" type="text" style="width:120px;
display:none;
" 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>
...
@@ -1463,14 +1463,14 @@
...
@@ -1463,14 +1463,14 @@
init();
init();
//list();
//list();
$('#timetype').change(function () {
//
$('#timetype').change(function () {
if ($('#timetype').val() == 1) {
//
if ($('#timetype').val() == 1) {
$('#day').show();
//
$('#day').show();
}
//
}
else {
//
else {
$('#day').hide();
//
$('#day').hide();
}
//
}
})
//
})
})
})
...
...
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