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
e92f4cc9
Commit
e92f4cc9
authored
Feb 27, 2021
by
泽锋 李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
57cf9af2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
1 deletion
+30
-1
dc_auto_turnover.cs
AutoTurnOver.DB/dc_auto_turnover.cs
+0
-0
dc_auto_turnover.cs
AutoTurnOver.Models/dc_auto_turnover.cs
+5
-0
Program.cs
AutoTurnOver.Purchase.AverageTarget/Program.cs
+1
-1
TaskDownloadServices.cs
AutoTurnOver.Services/TaskDownloadServices.cs
+24
-0
No files found.
AutoTurnOver.DB/dc_auto_turnover.cs
View file @
e92f4cc9
This diff is collapsed.
Click to expand it.
AutoTurnOver.Models/dc_auto_turnover.cs
View file @
e92f4cc9
...
@@ -83,6 +83,11 @@ namespace AutoTurnOver.Models
...
@@ -83,6 +83,11 @@ namespace AutoTurnOver.Models
/// </summary>
/// </summary>
public
decimal
quantity_safe_inventory
{
get
;
set
;
}
public
decimal
quantity_safe_inventory
{
get
;
set
;
}
/// <summary>
/// 日均加权销量
/// </summary>
public
decimal
daily_weighted_sales
{
get
;
set
;
}
/// <summary>
/// <summary>
/// 备注
/// 备注
...
...
AutoTurnOver.Purchase.AverageTarget/Program.cs
View file @
e92f4cc9
...
@@ -23,7 +23,7 @@ namespace AutoTurnOver.Purchase.AverageTarget
...
@@ -23,7 +23,7 @@ namespace AutoTurnOver.Purchase.AverageTarget
Console
.
WriteLine
(
"采购平均值计算任务启动..."
);
Console
.
WriteLine
(
"采购平均值计算任务启动..."
);
try
try
{
{
//
report.ResetTransExpectArrivaltime();
report
.
ResetTransExpectArrivaltime
();
//PurchaseAverageTargetServices.CalculationTransfer("LM-EO-007", days: (360 * 3));
//PurchaseAverageTargetServices.CalculationTransfer("LM-EO-007", days: (360 * 3));
}
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
...
...
AutoTurnOver.Services/TaskDownloadServices.cs
View file @
e92f4cc9
...
@@ -186,6 +186,30 @@ namespace AutoTurnOver.Services
...
@@ -186,6 +186,30 @@ namespace AutoTurnOver.Services
{
{
dc_auto_purchase_advise_detailed_search_dto
search_data
=
par_json
.
ToObject
<
dc_auto_purchase_advise_detailed_search_dto
>();
dc_auto_purchase_advise_detailed_search_dto
search_data
=
par_json
.
ToObject
<
dc_auto_purchase_advise_detailed_search_dto
>();
if
(
search_data
.
is_delete
!=
0
)
{
if
(
search_data
.
end_date
==
null
||
search_data
.
start_date
==
null
)
{
throw
new
Exception
(
"导已过期的数据务必带上时间范围"
);
}
double
days
=
31
;
try
{
days
=
(
search_data
.
end_date
.
Value
-
search_data
.
start_date
.
Value
).
TotalDays
;
}
catch
(
Exception
)
{
}
if
(
days
>=
30
)
{
throw
new
Exception
(
"已经过期的数据时间范围不可超过30天"
);
}
}
Console
.
WriteLine
(
"DownloadStock - 开始生成文件"
);
Console
.
WriteLine
(
"DownloadStock - 开始生成文件"
);
var
memory
=
new
PurchaseAdviseServices
().
Export
(
search_data
);
var
memory
=
new
PurchaseAdviseServices
().
Export
(
search_data
);
Console
.
WriteLine
(
"DownloadStock - 开始生成上传文件"
);
Console
.
WriteLine
(
"DownloadStock - 开始生成上传文件"
);
...
...
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