Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
data-center-auto
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
data-center-auto
Commits
69a900d8
Commit
69a900d8
authored
Jan 21, 2021
by
泽锋 李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
采购建议,新增转仓来源仓库
parent
29b1cbb1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
1 deletion
+13
-1
purchase_advise.cs
AutoTurnOver.DB/purchase_advise.cs
+4
-0
dc_auto_purchase_advise.cs
AutoTurnOver.Models/dc_auto_purchase_advise.cs
+5
-0
PurchaseAdviseServices.cs
AutoTurnOver.Services/PurchaseAdviseServices.cs
+4
-1
No files found.
AutoTurnOver.DB/purchase_advise.cs
View file @
69a900d8
...
@@ -1686,6 +1686,9 @@ t5.history_thirtyday_sales as 't_history_thirtyday_sales',
...
@@ -1686,6 +1686,9 @@ t5.history_thirtyday_sales as 't_history_thirtyday_sales',
t5.abroad_inbound_config_delivery,
t5.abroad_inbound_config_delivery,
t8.from_warehouse_code as 'transfer_warehouse_from_code',
t8.from_warehouse_name as 'transfer_warehouse_from_name',
(t1.history_fourteenday_sales - t5.forecast_fourteenday_sales) as 'sudden_increase' -- 突增关注
(t1.history_fourteenday_sales - t5.forecast_fourteenday_sales) as 'sudden_increase' -- 突增关注
from dc_auto_purchase_advise_detailed as t1
from dc_auto_purchase_advise_detailed as t1
left join dc_base_warehouse as t2 on t1.warehouse_code = t2.warehouse_code
left join dc_base_warehouse as t2 on t1.warehouse_code = t2.warehouse_code
...
@@ -1694,6 +1697,7 @@ left join dc_base_sku as t3 on t1.bailun_sku = t3.bailun_sku
...
@@ -1694,6 +1697,7 @@ left join dc_base_sku as t3 on t1.bailun_sku = t3.bailun_sku
left join dc_auto_purchase_advise as t4 on t1.main_id = t4.id
left join dc_auto_purchase_advise as t4 on t1.main_id = t4.id
left join dc_auto_turnover as t5 on t1.warehouse_code = t5.warehouse_code and t1.bailun_sku = t5.bailun_sku
left join dc_auto_turnover as t5 on t1.warehouse_code = t5.warehouse_code and t1.bailun_sku = t5.bailun_sku
left join dc_mid_transit as t7 on t1.bailun_sku = t7.bailun_sku and t1.warehouse_code = t7.warehouse_code
left join dc_mid_transit as t7 on t1.bailun_sku = t7.bailun_sku and t1.warehouse_code = t7.warehouse_code
left join dc_aims_transfer_warehouse_log as t8 on t1.bailun_sku = t8.bailun_sku and t1.warehouse_code = t8.to_warehouse_code
where 1=1 "
;
where 1=1 "
;
}
}
...
...
AutoTurnOver.Models/dc_auto_purchase_advise.cs
View file @
69a900d8
...
@@ -325,6 +325,11 @@ namespace AutoTurnOver.Models
...
@@ -325,6 +325,11 @@ namespace AutoTurnOver.Models
public
class
dc_auto_purchase_advise_detailed_dto
:
dc_auto_purchase_advise_detailed
public
class
dc_auto_purchase_advise_detailed_dto
:
dc_auto_purchase_advise_detailed
{
{
/// <summary>
/// 转仓来源仓
/// </summary>
public
string
transfer_warehouse_from_code
{
get
;
set
;
}
public
string
transfer_warehouse_from_name
{
get
;
set
;
}
public
decimal
quantity_actual_push
{
get
public
decimal
quantity_actual_push
{
get
{
{
if
(
ispush
==
1
)
if
(
ispush
==
1
)
...
...
AutoTurnOver.Services/PurchaseAdviseServices.cs
View file @
69a900d8
...
@@ -110,7 +110,7 @@ namespace AutoTurnOver.Services
...
@@ -110,7 +110,7 @@ namespace AutoTurnOver.Services
"内部商品编码"
,
"商品建议采购"
,
"商品14日日均"
,
"商品moq"
,
"日均加权销量"
,
"缺货"
,
"实时缺货"
,
"调拨在途"
,
"调拨单在途"
,
"调拨在途(采购临时数据)"
,
"调拨在途(暂存)"
,
"采购在途"
,
"库存数"
,
"内部商品编码"
,
"商品建议采购"
,
"商品14日日均"
,
"商品moq"
,
"日均加权销量"
,
"缺货"
,
"实时缺货"
,
"调拨在途"
,
"调拨单在途"
,
"调拨在途(采购临时数据)"
,
"调拨在途(暂存)"
,
"采购在途"
,
"库存数"
,
"采购金额"
,
"供应链长度"
,
"供应商名称"
,
"采购类型"
,
"采购员"
,
"突增关注"
,
"待发货百伦单号"
,
"7日日均"
,
"14日日均"
,
"30日日均"
,
"海外仓入库天数"
,
"采购金额"
,
"供应链长度"
,
"供应商名称"
,
"采购类型"
,
"采购员"
,
"突增关注"
,
"待发货百伦单号"
,
"7日日均"
,
"14日日均"
,
"30日日均"
,
"海外仓入库天数"
,
"采购单价"
,
"历史7天日均"
,
"历史14日均"
,
"历史30日均"
,
"加权日均"
,
"安全库存"
,
"今日实际缺货"
,
"供应链累积销量"
,
"供应链到货当天的销量"
"采购单价"
,
"历史7天日均"
,
"历史14日均"
,
"历史30日均"
,
"加权日均"
,
"安全库存"
,
"今日实际缺货"
,
"供应链累积销量"
,
"供应链到货当天的销量"
,
"预测销量"
,
"累积入库数量"
,
"实际库存"
,
"moq"
,
"多备天数"
,
"预测销量配置"
,
"实际推送下单数量"
,
"总下单金额"
,
"预测销量"
,
"累积入库数量"
,
"实际库存"
,
"moq"
,
"多备天数"
,
"预测销量配置"
,
"实际推送下单数量"
,
"总下单金额"
,
"转仓来源仓库编码"
,
"转仓来源仓库名称"
};
};
foreach
(
var
item
in
cols
)
foreach
(
var
item
in
cols
)
{
{
...
@@ -120,6 +120,9 @@ namespace AutoTurnOver.Services
...
@@ -120,6 +120,9 @@ namespace AutoTurnOver.Services
foreach
(
var
itemData
in
list
)
foreach
(
var
itemData
in
list
)
{
{
DataRow
row
=
table
.
NewRow
();
DataRow
row
=
table
.
NewRow
();
row
[
"转仓来源仓库编码"
]
=
itemData
.
transfer_warehouse_from_code
;
row
[
"转仓来源仓库名称"
]
=
itemData
.
transfer_warehouse_from_name
;
row
[
"采购单价"
]
=
itemData
.
fixed_unit_price
;
row
[
"采购单价"
]
=
itemData
.
fixed_unit_price
;
row
[
"历史7天日均"
]
=
itemData
.
fixed_history_sevenday_sales
;
row
[
"历史7天日均"
]
=
itemData
.
fixed_history_sevenday_sales
;
row
[
"历史14日均"
]
=
itemData
.
fixed_history_fourteenday_sales
;
row
[
"历史14日均"
]
=
itemData
.
fixed_history_fourteenday_sales
;
...
...
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