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
9396dbcf
Commit
9396dbcf
authored
Aug 12, 2019
by
lizefeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化采购单推送
parent
23e03c9f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
15 deletions
+18
-15
PurchaseAdviseServices.cs
AutoTurnOver.Services/PurchaseAdviseServices.cs
+18
-15
No files found.
AutoTurnOver.Services/PurchaseAdviseServices.cs
View file @
9396dbcf
...
...
@@ -190,22 +190,25 @@ namespace AutoTurnOver.Services
/// <param name="type">1:张莹霞 2:赵美聪 3:陈嘉雯1 </param>
public
static
void
AutoPushBuySys
(
int
type
)
{
// 生产jit采购建议
var
mainID
=
0
;
if
(
type
==
1
)
{
mainID
=
purchase_advise
.
ImportJITShortageDetailed
(
0
);
}
else
if
(
type
==
2
)
{
mainID
=
purchase_advise
.
ImportFuZhuangShortageDetailed
(
0
);
}
else
if
(
type
==
3
)
{
mainID
=
purchase_advise
.
ImportShoujiShortageDetailed
(
0
);
}
List
<
dc_auto_purchase_advise_detailed_dto
>
datas
=
new
List
<
dc_auto_purchase_advise_detailed_dto
>();
try
{
// 生产jit采购建议
var
mainID
=
0
;
if
(
type
==
1
)
{
mainID
=
purchase_advise
.
ImportJITShortageDetailed
(
0
);
}
else
if
(
type
==
2
)
{
mainID
=
purchase_advise
.
ImportFuZhuangShortageDetailed
(
0
);
}
else
if
(
type
==
3
)
{
mainID
=
purchase_advise
.
ImportShoujiShortageDetailed
(
0
);
}
List
<
dc_auto_purchase_advise_detailed_dto
>
datas
=
new
List
<
dc_auto_purchase_advise_detailed_dto
>();
var
total
=
0
;
datas
.
AddRange
(
PurchaseAdviseServices
.
DetailList
(
new
dc_auto_purchase_advise_detailed_search_dto
{
main_id
=
mainID
,
ispush
=
false
},
0
,
int
.
MaxValue
,
ref
total
));
datas
.
AddRange
(
PurchaseAdviseServices
.
DetailList
(
new
dc_auto_purchase_advise_detailed_search_dto
{
main_id
=
mainID
,
ispush
=
false
},
0
,
int
.
MaxValue
,
ref
total
));
...
...
@@ -218,7 +221,7 @@ namespace AutoTurnOver.Services
{
date
=
DateTime
.
Now
,
message
=
ex
.
Message
,
stack_trace
=
datas
.
ToJson
()
,
stack_trace
=
ex
.
StackTrace
,
task_name
=
"AutoPushBuySys"
});
Console
.
WriteLine
(
ex
.
Message
);
...
...
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