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
c5ec633b
Commit
c5ec633b
authored
Nov 05, 2019
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整每日销进比报表
parent
fd837313
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
16 deletions
+16
-16
WareHouseServices.cs
Bailun.DC.Services/WareHouseServices.cs
+2
-2
WarehouseController.cs
...n.DC.Web/Areas/Reports/Controllers/WarehouseController.cs
+10
-10
DailyPurchaseSalesCount.cshtml
...as/Reports/Views/Warehouse/DailyPurchaseSalesCount.cshtml
+4
-4
No files found.
Bailun.DC.Services/WareHouseServices.cs
View file @
c5ec633b
...
...
@@ -1056,11 +1056,11 @@ namespace Bailun.DC.Services
{
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_sales) amount_sales,sum(t1.count_sales) count_sales
from dc_daily_purchase_sales t1
var
sql
=
$@"select t1.
warehouse_name as category_simple_name,sum(t1.count_sales) count_sales,sum(t1.amount_sales) amount_sales,sum(t1.count_purchase) count_purchase,sum(t1.amount_purchase) amount_purchase,sum(count_putin) count_putin,sum(amount_putin) amount_putin,sum(count_shipping) count_shipping,sum(t1.amount_shipping) amount_shipping
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
()}
'
"
;
sql
+=
" group by t1.
day,t1.
warehouse_code"
;
sql
+=
" group by t1.warehouse_code"
;
using
(
var
cn
=
new
MySqlConnection
(
Common
.
GlobalConfig
.
ConnectionString
))
{
if
(
cn
.
State
==
System
.
Data
.
ConnectionState
.
Closed
)
...
...
Bailun.DC.Web/Areas/Reports/Controllers/WarehouseController.cs
View file @
c5ec633b
This diff is collapsed.
Click to expand it.
Bailun.DC.Web/Areas/Reports/Views/Warehouse/DailyPurchaseSalesCount.cshtml
View file @
c5ec633b
...
...
@@ -68,8 +68,8 @@
<td>外采类型</td>
<td>采购金额</td>
<td>采购数量</td>
<td>
销售
成本</td>
<td>
销售
数量</td>
<td>
发货
成本</td>
<td>
发货
数量</td>
<td>差异金额</td>
<td>差异数量</td>
</tr>
...
...
@@ -83,8 +83,8 @@
<td>生产下单类型</td>
<td>采购金额</td>
<td>采购数量</td>
<td>
销售
成本</td>
<td>
销售
数量</td>
<td>
发货
成本</td>
<td>
发货
数量</td>
<td>差异金额</td>
<td>差异数量</td>
</tr>
...
...
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