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
ca1eaadb
Commit
ca1eaadb
authored
Mar 15, 2021
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查看逻辑仓库sku明细增加半成品仓库筛选
parent
ccb5af83
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
3 deletions
+30
-3
WareHouseServices.cs
Bailun.DC.Services/WareHouseServices.cs
+16
-0
Services.cs
Bailun.DC.SkuDataWareHouse/Services.cs
+2
-2
WarehouseController.cs
...n.DC.Web/Areas/Reports/Controllers/WarehouseController.cs
+12
-1
No files found.
Bailun.DC.Services/WareHouseServices.cs
View file @
ca1eaadb
...
...
@@ -1634,8 +1634,24 @@ namespace Bailun.DC.Services
#
endregion
#
region
半成品仓库
public
List
<
dc_base_wip_warehouse
>
ListSemiWareHouseNew
()
{
using
(
var
cn
=
new
MySqlConnection
(
Common
.
GlobalConfig
.
ConnectionString_read
))
{
if
(
cn
.
State
==
System
.
Data
.
ConnectionState
.
Closed
)
{
cn
.
Open
();
}
return
cn
.
Query
<
dc_base_wip_warehouse
>(
"select * from dc_base_wip_warehouse"
).
ToList
();
}
}
#
endregion
#
region
Api
...
...
Bailun.DC.SkuDataWareHouse/Services.cs
View file @
ca1eaadb
...
...
@@ -27,12 +27,12 @@ namespace Bailun.DC.SkuDataWareHouse
{
var
now
=
DateTime
.
Now
;
if
(
now
.
Hour
==
4
&&
now
.
Minute
==
1
)
if
(
now
.
Hour
==
5
&&
now
.
Minute
==
1
)
{
Save
();
}
if
(
now
.
Minute
%
20
==
0
)
//每2
0分钟更新一次
if
(
now
.
Minute
%
30
==
0
)
//每3
0分钟更新一次
{
UpdateAllotOnWay
();
}
...
...
Bailun.DC.Web/Areas/Reports/Controllers/WarehouseController.cs
View file @
ca1eaadb
...
...
@@ -225,7 +225,18 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
ViewBag
.
warehousecode
=
code
;
ViewBag
.
available_days
=
available_days
;
ViewBag
.
listWarehouse
=
new
Services
.
WareHouseServices
().
List
(
""
,
null
).
OrderBy
(
a
=>
a
.
warehouse_name
).
ToList
();
var
_warehouseService
=
new
Services
.
WareHouseServices
();
var
listWareHouse
=
_warehouseService
.
List
(
""
,
null
).
OrderBy
(
a
=>
a
.
warehouse_name
).
ToList
();
var
listSemiWarehouse
=
_warehouseService
.
ListSemiWareHouseNew
();
listWareHouse
.
AddRange
(
listSemiWarehouse
.
Select
(
b
=>
new
dc_base_warehouse
{
warehouse_code
=
b
.
warehouse_code
,
warehouse_name
=
b
.
warehouse_name
,
hq_type
=
"半成品仓"
}));
ViewBag
.
listWarehouse
=
listWareHouse
;
ViewBag
.
EndDate
=
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd"
)
+
" 00:00:00"
;
ViewBag
.
StartOneDate
=
DateTime
.
Now
.
AddDays
(-
1
).
ToString
(
"yyyy-MM-dd"
)
+
" 00:00:00"
;
...
...
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