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
4076d690
Commit
4076d690
authored
Dec 26, 2020
by
泽锋 李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
采购建议导出,新增海外仓入库天数字段
parent
696b9b6d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletion
+9
-1
purchase_advise.cs
AutoTurnOver.DB/purchase_advise.cs
+3
-0
dc_auto_purchase_advise.cs
AutoTurnOver.Models/dc_auto_purchase_advise.cs
+4
-0
PurchaseAdviseController.cs
AutoTurnOver/Controllers/PurchaseAdviseController.cs
+2
-1
No files found.
AutoTurnOver.DB/purchase_advise.cs
View file @
4076d690
...
@@ -1508,6 +1508,9 @@ t3.suppliers_name,
...
@@ -1508,6 +1508,9 @@ t3.suppliers_name,
t5.history_sevenday_sales as 't_history_sevenday_sales',
t5.history_sevenday_sales as 't_history_sevenday_sales',
t5.history_fourteenday_sales as 't_history_fourteenday_sales',
t5.history_fourteenday_sales as 't_history_fourteenday_sales',
t5.history_thirtyday_sales as 't_history_thirtyday_sales',
t5.history_thirtyday_sales as 't_history_thirtyday_sales',
t5.abroad_inbound_config_delivery,
(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
...
...
AutoTurnOver.Models/dc_auto_purchase_advise.cs
View file @
4076d690
...
@@ -241,6 +241,10 @@ namespace AutoTurnOver.Models
...
@@ -241,6 +241,10 @@ 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
int
abroad_inbound_config_delivery
{
get
;
set
;
}
public
string
type_str
public
string
type_str
{
{
get
get
...
...
AutoTurnOver/Controllers/PurchaseAdviseController.cs
View file @
4076d690
...
@@ -182,7 +182,7 @@ namespace AutoTurnOver.Controllers
...
@@ -182,7 +182,7 @@ namespace AutoTurnOver.Controllers
DataTable
table
=
new
DataTable
();
DataTable
table
=
new
DataTable
();
string
[]
cols
=
new
string
[]
{
"初始建议数"
,
"系统建议数"
,
"采购数量"
,
"是否已推送"
,
"jit备货类型"
,
"时间"
,
"sku"
,
"产品名称"
,
"产品14日日均"
,
"仓库编码"
,
"仓库名称"
,
"源仓库"
,
string
[]
cols
=
new
string
[]
{
"初始建议数"
,
"系统建议数"
,
"采购数量"
,
"是否已推送"
,
"jit备货类型"
,
"时间"
,
"sku"
,
"产品名称"
,
"产品14日日均"
,
"仓库编码"
,
"仓库名称"
,
"源仓库"
,
"内部商品编码"
,
"商品建议采购"
,
"商品14日日均"
,
"商品moq"
,
"日均加权销量"
,
"安全库存"
,
"缺货"
,
"实时缺货"
,
"调拨在途"
,
"采购在途"
,
"库存数"
,
"内部商品编码"
,
"商品建议采购"
,
"商品14日日均"
,
"商品moq"
,
"日均加权销量"
,
"安全库存"
,
"缺货"
,
"实时缺货"
,
"调拨在途"
,
"采购在途"
,
"库存数"
,
"采购金额"
,
"供应链长度"
,
"供应商名称"
,
"采购类型"
,
"采购员"
,
"突增关注"
,
"待发货百伦单号"
,
"7日日均"
,
"14日日均"
,
"30日日均"
"采购金额"
,
"供应链长度"
,
"供应商名称"
,
"采购类型"
,
"采购员"
,
"突增关注"
,
"待发货百伦单号"
,
"7日日均"
,
"14日日均"
,
"30日日均"
,
"海外仓入库天数"
};
};
foreach
(
var
item
in
cols
)
foreach
(
var
item
in
cols
)
{
{
...
@@ -225,6 +225,7 @@ namespace AutoTurnOver.Controllers
...
@@ -225,6 +225,7 @@ namespace AutoTurnOver.Controllers
row
[
"采购员"
]
=
itemData
.
buyer_name
;
row
[
"采购员"
]
=
itemData
.
buyer_name
;
row
[
"突增关注"
]
=
itemData
.
sudden_increase
;
row
[
"突增关注"
]
=
itemData
.
sudden_increase
;
row
[
"待发货百伦单号"
]
=
itemData
.
bailun_order_ids
;
row
[
"待发货百伦单号"
]
=
itemData
.
bailun_order_ids
;
row
[
"海外仓入库天数"
]
=
itemData
.
abroad_inbound_config_delivery
;
table
.
Rows
.
Add
(
row
);
table
.
Rows
.
Add
(
row
);
}
}
...
...
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