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
7955b8b6
Commit
7955b8b6
authored
Nov 04, 2019
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整报表
parent
98f86df0
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
9 deletions
+39
-9
WareHouseServices.cs
Bailun.DC.Services/WareHouseServices.cs
+1
-1
WarehouseController.cs
...n.DC.Web/Areas/Reports/Controllers/WarehouseController.cs
+0
-0
DailyPurchaseSalesCount.cshtml
...as/Reports/Views/Warehouse/DailyPurchaseSalesCount.cshtml
+38
-8
No files found.
Bailun.DC.Services/WareHouseServices.cs
View file @
7955b8b6
...
@@ -1056,7 +1056,7 @@ namespace Bailun.DC.Services
...
@@ -1056,7 +1056,7 @@ namespace Bailun.DC.Services
{
{
var
sqlparam
=
new
DynamicParameters
();
var
sqlparam
=
new
DynamicParameters
();
var
sql
=
$@"select t1.day,t1.warehouse_name as category_simple_name,sum(t1.amount_purchase) amount_purchase,sum(t1.count_purchase) count_purchase,sum(t1.amount_s
hipping) amount_shipping,sum(t1.count_shipping) count_shipping
from dc_daily_purchase_sales t1
var
sql
=
$@"select t1.day,t1.warehouse_name as category_simple_name,sum(t1.amount_purchase) amount_purchase,sum(t1.count_purchase) count_purchase,sum(t1.amount_s
ales) amount_sales,sum(t1.count_sales) count_sales
from dc_daily_purchase_sales t1
where t1.isfinish=0 and warehouse_code>0 and t1.day>='
{
start
.
ToString
(
"yyyy-MM-dd"
)}
' and t1.day<'
{
end
.
AddDays
(
1
).
ToString
()}
'
where t1.isfinish=0 and warehouse_code>0 and t1.day>='
{
start
.
ToString
(
"yyyy-MM-dd"
)}
' and t1.day<'
{
end
.
AddDays
(
1
).
ToString
()}
'
"
;
"
;
...
...
Bailun.DC.Web/Areas/Reports/Controllers/WarehouseController.cs
View file @
7955b8b6
This diff is collapsed.
Click to expand it.
Bailun.DC.Web/Areas/Reports/Views/Warehouse/DailyPurchaseSalesCount.cshtml
View file @
7955b8b6
...
@@ -65,16 +65,31 @@
...
@@ -65,16 +65,31 @@
<table id="subcounttb" class="table table-hover table-bordered table-condensed table-striped">
<table id="subcounttb" class="table table-hover table-bordered table-condensed table-striped">
<thead>
<thead>
<tr>
<tr>
<td>Sku分类</td>
<td>外采类型</td>
<td>总采购下单金额</td>
<td>采购金额</td>
<td>总采购下单数</td>
<td>采购数量</td>
<td>总发货金额</td>
<td>销售成本</td>
<td>总发货数量</td>
<td>销售数量</td>
<td>差异金额</td>
<td>差异数量</td>
</tr>
</tr>
</thead>
</thead>
<tbody>
<tbody></tbody>
</table>
</tbody>
<hr />
<table id="subcounttb1" class="table table-hover table-bordered table-condensed table-striped">
<thead>
<tr>
<td>生产下单类型</td>
<td>采购金额</td>
<td>采购数量</td>
<td>销售成本</td>
<td>销售数量</td>
<td>差异金额</td>
<td>差异数量</td>
</tr>
</thead>
<tbody></tbody>
</table>
</table>
</div>
</div>
</div>
</div>
...
@@ -210,6 +225,21 @@
...
@@ -210,6 +225,21 @@
}
}
}
}
$('#subcounttb1').find('tbody').html('');
if (result.subcount1.length > 0) {
for (var i = 0; i < result.subcount1.length; i++) {
var s = '<tr>';
var obj = result.subcount1[i];
for (var c in obj) {
s += ('<td>' + obj[c] + '</td>');
}
s += "</tr>";
$('#subcounttb1').find('tbody').append(s);
}
}
}
}
else {
else {
layer.msg('出现异常。');
layer.msg('出现异常。');
...
...
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