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
a3f40a1c
Commit
a3f40a1c
authored
Mar 18, 2021
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
逻辑仓库相关功能 增加产品分类支持
parent
5d78bfed
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
7 deletions
+15
-7
WareHouseServices.cs
Bailun.DC.Services/WareHouseServices.cs
+6
-2
WarehouseController.cs
...n.DC.Web/Areas/Reports/Controllers/WarehouseController.cs
+1
-1
LogicWarehouse.cshtml
...C.Web/Areas/Reports/Views/Warehouse/LogicWarehouse.cshtml
+8
-4
No files found.
Bailun.DC.Services/WareHouseServices.cs
View file @
a3f40a1c
...
...
@@ -1384,7 +1384,7 @@ namespace Bailun.DC.Services
/// <param name="warehouse_code"></param>
/// <param name="columnname"></param>
/// <returns></returns>
public
List
<
string
>
GetMidLogicWarehouseStatistic
(
string
warehouse_code
,
string
columnname
,
DateTime
start
,
DateTime
end
)
public
List
<
string
>
GetMidLogicWarehouseStatistic
(
string
warehouse_code
,
string
columnname
,
DateTime
start
,
DateTime
end
,
string
category
)
{
var
sql
=
"select CONCAT(name,',',DATE_FORMAT(day,'%Y-%m-%d')) as name from ("
;
...
...
@@ -1397,6 +1397,10 @@ namespace Bailun.DC.Services
sql
+=
"select sum("
+
columnname
+
") as name,day from dc_daily_logic_wh_statistic where warehouse_code='"
+
warehouse_code
+
"' "
;
}
if
(!
string
.
IsNullOrWhiteSpace
(
category
))
{
sql
+=
$" and skucategory='
{
category
}
' "
;
}
sql
+=
$" and day>='
{
start
.
ToString
(
"yyyy-MM-dd"
)}
' and day<='
{
end
.
ToString
(
"yyyy-MM-dd"
)}
' group by day"
;
...
...
@@ -1437,7 +1441,7 @@ namespace Bailun.DC.Services
if
(!
string
.
IsNullOrWhiteSpace
(
category
))
{
sql
+=
$" skucategory='
{
category
}
' "
;
sql
+=
$" skucategory='
{
category
}
'
and
"
;
}
sql
+=
$" day>='
{
start
.
ToString
(
"yyyy-MM-dd"
)}
' and day<='
{
end
.
ToString
(
"yyyy-MM-dd"
)}
' group by day"
;
...
...
Bailun.DC.Web/Areas/Reports/Controllers/WarehouseController.cs
View file @
a3f40a1c
...
...
@@ -1804,7 +1804,7 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
}
else
{
obj
=
new
Services
.
WareHouseServices
().
GetMidLogicWarehouseStatistic
(
warehouse_code
,
key
,
start
,
end
);
obj
=
new
Services
.
WareHouseServices
().
GetMidLogicWarehouseStatistic
(
warehouse_code
,
key
,
start
,
end
,
category
);
}
...
...
Bailun.DC.Web/Areas/Reports/Views/Warehouse/LogicWarehouse.cshtml
View file @
a3f40a1c
...
...
@@ -332,7 +332,7 @@
title += ' ';
layer_show(
title+
name + '动态库存分析', '@Url.Content("~/Reports/Warehouse/DynamicStockAnalyse?warehouse_code=")' + code + '&isfinish=' + $('#isfinish').val() + '&category=' + $('#category').val(),'90%','90%');
layer_show(name + '动态库存分析', '@Url.Content("~/Reports/Warehouse/DynamicStockAnalyse?warehouse_code=")' + code + '&isfinish=' + $('#isfinish').val() + '&category=' + $('#category').val(),'90%','90%');
}
function ShowTrendChart(code, name, key, whname) {
...
...
@@ -340,6 +340,10 @@
code = '';
}
var isfinish = $('#isfinish').val();
var category = $('#category').val();
var title = '';
if (isfinish != '') {
title == isfinish == 1 ? "成品 " : "半成品 ";
}
...
...
@@ -388,7 +392,7 @@
$('#category').html('<option value="">产品类型</option>');
for (var i in financecategory) {
$('#category').append('<option value="' + financecategory[i].financecategory
id
+ '">' + financecategory[i].financecategoryname + '</option>');
$('#category').append('<option value="' + financecategory[i].financecategory
name
+ '">' + financecategory[i].financecategoryname + '</option>');
}
}
}
...
...
@@ -397,7 +401,7 @@
else {
$('#category').html('<option value="">产品类型</option>');
for (var i in financecategory) {
$('#category').append('<option value="' + financecategory[i].financecategory
id
+ '">' + financecategory[i].financecategoryname + '</option>');
$('#category').append('<option value="' + financecategory[i].financecategory
name
+ '">' + financecategory[i].financecategoryname + '</option>');
}
}
}
...
...
@@ -427,7 +431,7 @@
else {
$('#category').html('<option value="">产品类型</option>');
for (var i in semiCategory) {
$('#category').append('<option value="' + semiCategory[i].financecategory
id
+ '">' + semiCategory[i].financecategoryname + '</option>');
$('#category').append('<option value="' + semiCategory[i].financecategory
name
+ '">' + semiCategory[i].financecategoryname + '</option>');
}
}
}
...
...
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