Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
TakeStock
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
pengjinyang
TakeStock
Commits
eab87216
Commit
eab87216
authored
Jul 02, 2019
by
pengjinyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
957b8cea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
TakeStockService.cs
Service/TakeStock/TakeStockService.cs
+9
-9
No files found.
Service/TakeStock/TakeStockService.cs
View file @
eab87216
...
@@ -68,7 +68,7 @@ namespace Service.TakeStock
...
@@ -68,7 +68,7 @@ namespace Service.TakeStock
}
}
isSuccess
=
true
;
isSuccess
=
true
;
}
}
catch
catch
(
Exception
ex
)
{
{
isSuccess
=
false
;
isSuccess
=
false
;
}
}
...
@@ -102,7 +102,7 @@ namespace Service.TakeStock
...
@@ -102,7 +102,7 @@ namespace Service.TakeStock
/// <param name="id"></param>
/// <param name="id"></param>
/// <returns></returns>
/// <returns></returns>
[
DisplayName
(
"冻结库存, 盘点单Id:{0}"
)]
[
DisplayName
(
"冻结库存, 盘点单Id:{0}"
)]
[
Queue
(
"FreezeStock"
)]
//
[Queue("FreezeStock")]
public
async
Task
<
bool
>
FreezeStockAsync
(
int
id
)
public
async
Task
<
bool
>
FreezeStockAsync
(
int
id
)
{
{
var
order
=
orderRepository
.
Get
(
id
);
var
order
=
orderRepository
.
Get
(
id
);
...
@@ -160,7 +160,7 @@ namespace Service.TakeStock
...
@@ -160,7 +160,7 @@ namespace Service.TakeStock
/// <param name="sku"></param>
/// <param name="sku"></param>
/// <returns></returns>
/// <returns></returns>
[
DisplayName
(
"回滚库存, 盘点单Id:{0}"
)]
[
DisplayName
(
"回滚库存, 盘点单Id:{0}"
)]
[
Queue
(
"RollbackStock"
)]
//
[Queue("RollbackStock")]
public
async
Task
<
bool
>
RollbackStockAsync
(
int
id
)
public
async
Task
<
bool
>
RollbackStockAsync
(
int
id
)
{
{
var
order
=
orderRepository
.
Get
(
id
);
var
order
=
orderRepository
.
Get
(
id
);
...
@@ -235,7 +235,7 @@ namespace Service.TakeStock
...
@@ -235,7 +235,7 @@ namespace Service.TakeStock
/// <param name="sku"></param>
/// <param name="sku"></param>
/// <returns></returns>
/// <returns></returns>
[
DisplayName
(
"同步并启用库存, 盘点单Id:{0}"
)]
[
DisplayName
(
"同步并启用库存, 盘点单Id:{0}"
)]
[
Queue
(
"SyncAndEnabledStock"
)]
//
[Queue("SyncAndEnabledStock")]
public
async
Task
<
bool
>
SyncAndEnabledAsync
(
int
id
)
public
async
Task
<
bool
>
SyncAndEnabledAsync
(
int
id
)
{
{
var
order
=
orderRepository
.
Get
(
id
);
var
order
=
orderRepository
.
Get
(
id
);
...
@@ -337,7 +337,7 @@ namespace Service.TakeStock
...
@@ -337,7 +337,7 @@ namespace Service.TakeStock
/// <param name="sku"></param>
/// <param name="sku"></param>
/// <returns></returns>
/// <returns></returns>
[
DisplayName
(
"修改并启用库存, 盘点单Id:{0}"
)]
[
DisplayName
(
"修改并启用库存, 盘点单Id:{0}"
)]
[
Queue
(
"ModifAndEnabledStock"
)]
//
[Queue("ModifAndEnabledStock")]
public
async
Task
<
bool
>
ModifAndEnabledAsync
(
int
id
)
public
async
Task
<
bool
>
ModifAndEnabledAsync
(
int
id
)
{
{
var
order
=
orderRepository
.
Get
(
id
);
var
order
=
orderRepository
.
Get
(
id
);
...
@@ -428,7 +428,7 @@ namespace Service.TakeStock
...
@@ -428,7 +428,7 @@ namespace Service.TakeStock
/// </summary>
/// </summary>
/// <param name="scheduleId"></param>
/// <param name="scheduleId"></param>
[
DisplayName
(
"报溢报损, 盘点计划Id:{0}"
)]
[
DisplayName
(
"报溢报损, 盘点计划Id:{0}"
)]
[
Queue
(
"ModifAndEnabledStock"
)]
//
[Queue("ModifAndEnabledStock")]
public
void
GainLoss
(
int
scheduleId
)
public
void
GainLoss
(
int
scheduleId
)
{
{
var
schedule
=
scheduleRepository
.
Get
(
scheduleId
);
var
schedule
=
scheduleRepository
.
Get
(
scheduleId
);
...
@@ -472,7 +472,7 @@ namespace Service.TakeStock
...
@@ -472,7 +472,7 @@ namespace Service.TakeStock
}
}
[
DisplayName
(
"远程调用报溢报损,"
)]
[
DisplayName
(
"远程调用报溢报损,"
)]
[
Queue
(
"ModifAndEnabledStock"
)]
//
[Queue("ModifAndEnabledStock")]
public
async
Task
<
string
>
AddGainLoss
(
object
obj
)
public
async
Task
<
string
>
AddGainLoss
(
object
obj
)
{
{
string
code
=
string
.
Empty
;
string
code
=
string
.
Empty
;
...
@@ -500,7 +500,7 @@ namespace Service.TakeStock
...
@@ -500,7 +500,7 @@ namespace Service.TakeStock
/// <param name="id"></param>
/// <param name="id"></param>
/// <returns></returns>
/// <returns></returns>
[
DisplayName
(
"取消盘点, 盘点单Id:{0}"
)]
[
DisplayName
(
"取消盘点, 盘点单Id:{0}"
)]
[
Queue
(
"CancelTakeStock"
)]
//
[Queue("CancelTakeStock")]
public
async
Task
<
bool
>
CancelOrder
(
int
id
)
public
async
Task
<
bool
>
CancelOrder
(
int
id
)
{
{
var
order
=
orderRepository
.
Get
(
id
);
var
order
=
orderRepository
.
Get
(
id
);
...
@@ -549,7 +549,7 @@ namespace Service.TakeStock
...
@@ -549,7 +549,7 @@ namespace Service.TakeStock
/// <param name="scheduleId"></param>
/// <param name="scheduleId"></param>
/// <returns></returns>
/// <returns></returns>
[
DisplayName
(
"取消盘点, 盘点计划Id:{0}"
)]
[
DisplayName
(
"取消盘点, 盘点计划Id:{0}"
)]
[
Queue
(
"CancelTakeStock"
)]
//
[Queue("CancelTakeStock")]
private
async
Task
CancelSchedule
(
int
scheduleId
)
private
async
Task
CancelSchedule
(
int
scheduleId
)
{
{
var
schedule
=
scheduleRepository
.
Get
(
scheduleId
);
var
schedule
=
scheduleRepository
.
Get
(
scheduleId
);
...
...
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