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
fa80dcd0
Commit
fa80dcd0
authored
Feb 18, 2021
by
泽锋 李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
采购建议导出新增仓库类型
parent
a357ba76
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
3 deletions
+28
-3
purchase_advise.cs
AutoTurnOver.DB/purchase_advise.cs
+13
-1
dc_auto_purchase_advise.cs
AutoTurnOver.Models/dc_auto_purchase_advise.cs
+7
-0
dc_auto_turnover.cs
AutoTurnOver.Models/dc_auto_turnover.cs
+5
-0
Program.cs
AutoTurnOver.Purchase.AverageTarget/Program.cs
+1
-1
PurchaseAdviseServices.cs
AutoTurnOver.Services/PurchaseAdviseServices.cs
+2
-1
No files found.
AutoTurnOver.DB/purchase_advise.cs
View file @
fa80dcd0
...
@@ -1808,6 +1808,8 @@ t5.history_sevenday_sales as 't_history_sevenday_sales',
...
@@ -1808,6 +1808,8 @@ 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',
t2.hq_type,
t5.abroad_inbound_config_delivery,
t5.abroad_inbound_config_delivery,
t8.from_warehouse_code as 'transfer_warehouse_from_code',
t8.from_warehouse_code as 'transfer_warehouse_from_code',
...
@@ -1822,7 +1824,7 @@ left join dc_auto_purchase_advise as t4 on t1.main_id = t4.id
...
@@ -1822,7 +1824,7 @@ 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
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
t1.status=0
"
;
where
1=1
"
;
}
}
if
(!
string
.
IsNullOrWhiteSpace
(
m
.
product_inner_code
))
if
(!
string
.
IsNullOrWhiteSpace
(
m
.
product_inner_code
))
...
@@ -1877,6 +1879,16 @@ where t1.status=0 ";
...
@@ -1877,6 +1879,16 @@ where t1.status=0 ";
sql
+=
" and t3.suppliers_name =@suppliers_name "
;
sql
+=
" and t3.suppliers_name =@suppliers_name "
;
parameters
.
Add
(
"suppliers_name"
,
m
.
supplier_name
);
parameters
.
Add
(
"suppliers_name"
,
m
.
supplier_name
);
}
}
if
(!
string
.
IsNullOrWhiteSpace
(
m
.
order_no
))
{
sql
+=
" and t4.`no` =@order_no "
;
parameters
.
Add
(
"order_no"
,
m
.
order_no
);
}
if
(
m
.
is_delete
>-
1
)
{
sql
+=
" and t1.`is_delete` =@is_delete "
;
parameters
.
Add
(
"is_delete"
,
m
.
is_delete
);
}
if
(!
string
.
IsNullOrWhiteSpace
(
m
.
purchase_user
))
if
(!
string
.
IsNullOrWhiteSpace
(
m
.
purchase_user
))
{
{
...
...
AutoTurnOver.Models/dc_auto_purchase_advise.cs
View file @
fa80dcd0
...
@@ -335,6 +335,7 @@ namespace AutoTurnOver.Models
...
@@ -335,6 +335,7 @@ namespace AutoTurnOver.Models
/// <summary>
/// <summary>
/// 转仓来源仓
/// 转仓来源仓
/// </summary>
/// </summary>
public
string
hq_type
{
get
;
set
;
}
public
string
transfer_warehouse_from_code
{
get
;
set
;
}
public
string
transfer_warehouse_from_code
{
get
;
set
;
}
public
string
transfer_warehouse_from_name
{
get
;
set
;
}
public
string
transfer_warehouse_from_name
{
get
;
set
;
}
public
decimal
quantity_actual_push
{
get
public
decimal
quantity_actual_push
{
get
...
@@ -466,6 +467,12 @@ namespace AutoTurnOver.Models
...
@@ -466,6 +467,12 @@ namespace AutoTurnOver.Models
/// </summary>
/// </summary>
public
int
main_id
{
get
;
set
;
}
public
int
main_id
{
get
;
set
;
}
[
Description
(
"建议单号"
)]
public
string
order_no
{
get
;
set
;
}
[
Description
(
"是否过期"
)]
public
int
is_delete
{
get
;
set
;
}
=
0
;
[
Description
(
"sku"
)]
[
Description
(
"sku"
)]
public
string
sku
{
get
;
set
;
}
public
string
sku
{
get
;
set
;
}
[
Description
(
"仓库编码"
)]
[
Description
(
"仓库编码"
)]
...
...
AutoTurnOver.Models/dc_auto_turnover.cs
View file @
fa80dcd0
...
@@ -285,6 +285,11 @@ namespace AutoTurnOver.Models
...
@@ -285,6 +285,11 @@ namespace AutoTurnOver.Models
/// </summary>
/// </summary>
public
string
head_transport_logistics_code
{
get
;
set
;
}
public
string
head_transport_logistics_code
{
get
;
set
;
}
/// <summary>
/// 采购平均下单天数
/// </summary>
public
int
?
purchase_create_order_days
{
get
;
set
;
}
}
}
public
class
Condition_AutoTurnOver
public
class
Condition_AutoTurnOver
...
...
AutoTurnOver.Purchase.AverageTarget/Program.cs
View file @
fa80dcd0
...
@@ -31,7 +31,7 @@ namespace AutoTurnOver.Purchase.AverageTarget
...
@@ -31,7 +31,7 @@ namespace AutoTurnOver.Purchase.AverageTarget
//PurchaseAverageTargetServices.CalculationTransfer();
//PurchaseAverageTargetServices.CalculationTransfer();
//report.ResetTransExpectArrivaltime();
//report.ResetTransExpectArrivaltime();
//dc_auto_return_goods_config_dao.NewCalculation();
//dc_auto_return_goods_config_dao.NewCalculation();
PurchaseAverageTargetServices
.
Calculation
(
"942517901"
,
days
:
360
);
//
PurchaseAverageTargetServices.Calculation("942517901", days: 360);
//PurchaseAverageTargetServices.CalculationTransfer("942517901", 360);
//PurchaseAverageTargetServices.CalculationTransfer("942517901", 360);
}
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
...
...
AutoTurnOver.Services/PurchaseAdviseServices.cs
View file @
fa80dcd0
...
@@ -114,7 +114,7 @@ namespace AutoTurnOver.Services
...
@@ -114,7 +114,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
)
{
{
...
@@ -124,6 +124,7 @@ namespace AutoTurnOver.Services
...
@@ -124,6 +124,7 @@ namespace AutoTurnOver.Services
foreach
(
var
itemData
in
list
)
foreach
(
var
itemData
in
list
)
{
{
DataRow
row
=
table
.
NewRow
();
DataRow
row
=
table
.
NewRow
();
row
[
"仓库类型"
]
=
itemData
.
hq_type
;
row
[
"转仓来源仓库编码"
]
=
itemData
.
transfer_warehouse_from_code
;
row
[
"转仓来源仓库编码"
]
=
itemData
.
transfer_warehouse_from_code
;
row
[
"转仓来源仓库名称"
]
=
itemData
.
transfer_warehouse_from_name
;
row
[
"转仓来源仓库名称"
]
=
itemData
.
transfer_warehouse_from_name
;
...
...
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