Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
Laisi_AutoMES2
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
jiawei.su
Laisi_AutoMES2
Commits
d75cce34
Commit
d75cce34
authored
Mar 15, 2021
by
jiawei.su
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixedbug
parent
48b16c0a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
AutomationController.cs
Server/Apis/Siger.ApiACC/Controllers/AutomationController.cs
+7
-0
AutomationLocationRepository.cs
...ccRepository/Repositories/AutomationLocationRepository.cs
+3
-2
ResponseAutomationLocation.cs
...ayer.AccRepository/Response/ResponseAutomationLocation.cs
+1
-0
No files found.
Server/Apis/Siger.ApiACC/Controllers/AutomationController.cs
View file @
d75cce34
...
@@ -327,6 +327,7 @@ namespace Siger.ApiACC.Controllers
...
@@ -327,6 +327,7 @@ namespace Siger.ApiACC.Controllers
location
.
route
=
download
?
""
:
taskObj
.
route
.
ToString
();
location
.
route
=
download
?
""
:
taskObj
.
route
.
ToString
();
location
.
sn
=
download
?
""
:
taskObj
.
sn
;
location
.
sn
=
download
?
""
:
taskObj
.
sn
;
location
.
status
=
(
int
)
LocationStatus
.
In
;
location
.
status
=
(
int
)
LocationStatus
.
In
;
location
.
updatetime
=
DateTime
.
Now
;
_automationLocation
.
Update
(
location
);
_automationLocation
.
Update
(
location
);
sectionProperty
.
upload
=
0
;
sectionProperty
.
upload
=
0
;
...
@@ -352,6 +353,7 @@ namespace Siger.ApiACC.Controllers
...
@@ -352,6 +353,7 @@ namespace Siger.ApiACC.Controllers
location
.
route
=
taskObj
.
route
.
ToString
();
location
.
route
=
taskObj
.
route
.
ToString
();
location
.
routeid
=
taskObj
.
route
;
location
.
routeid
=
taskObj
.
route
;
location
.
status
=
(
int
)
LocationStatus
.
Out
;
location
.
status
=
(
int
)
LocationStatus
.
Out
;
location
.
updatetime
=
DateTime
.
Now
;
_automationLocation
.
Update
(
location
);
_automationLocation
.
Update
(
location
);
//上下料位状态 为后台控制
//上下料位状态 为后台控制
...
@@ -374,6 +376,7 @@ namespace Siger.ApiACC.Controllers
...
@@ -374,6 +376,7 @@ namespace Siger.ApiACC.Controllers
}
}
location
.
status
=
(
int
)
LocationStatus
.
Out
;
location
.
status
=
(
int
)
LocationStatus
.
Out
;
location
.
updatetime
=
DateTime
.
Now
;
_automationLocation
.
Update
(
location
);
_automationLocation
.
Update
(
location
);
}
}
...
@@ -393,6 +396,7 @@ namespace Siger.ApiACC.Controllers
...
@@ -393,6 +396,7 @@ namespace Siger.ApiACC.Controllers
if
(
taskObj
.
action
==
TaskAction
.
Step_LK_JGZX
)
if
(
taskObj
.
action
==
TaskAction
.
Step_LK_JGZX
)
{
{
location
.
status
=
(
int
)
LocationStatus
.
Out
;
location
.
status
=
(
int
)
LocationStatus
.
Out
;
location
.
updatetime
=
DateTime
.
Now
;
_automationLocation
.
Update
(
location
);
_automationLocation
.
Update
(
location
);
}
}
if
(
taskObj
.
action
==
TaskAction
.
Step_JGZX_QXJ
)
if
(
taskObj
.
action
==
TaskAction
.
Step_JGZX_QXJ
)
...
@@ -436,6 +440,7 @@ namespace Siger.ApiACC.Controllers
...
@@ -436,6 +440,7 @@ namespace Siger.ApiACC.Controllers
if
(
taskObj
.
action
==
TaskAction
.
Step_LK_CJT
)
if
(
taskObj
.
action
==
TaskAction
.
Step_LK_CJT
)
{
{
location
.
status
=
(
int
)
LocationStatus
.
Out
;
location
.
status
=
(
int
)
LocationStatus
.
Out
;
location
.
updatetime
=
DateTime
.
Now
;
_automationLocation
.
Update
(
location
);
_automationLocation
.
Update
(
location
);
}
}
if
(
taskObj
.
action
==
TaskAction
.
Step_CJT_SXLW
)
if
(
taskObj
.
action
==
TaskAction
.
Step_CJT_SXLW
)
...
@@ -517,6 +522,7 @@ namespace Siger.ApiACC.Controllers
...
@@ -517,6 +522,7 @@ namespace Siger.ApiACC.Controllers
location
.
route
=
taskObj
.
route
.
ToString
();
location
.
route
=
taskObj
.
route
.
ToString
();
location
.
routeid
=
taskObj
.
route
;
location
.
routeid
=
taskObj
.
route
;
location
.
status
=
(
int
)
LocationStatus
.
Out
;
location
.
status
=
(
int
)
LocationStatus
.
Out
;
location
.
updatetime
=
DateTime
.
Now
;
_automationLocation
.
Update
(
location
);
_automationLocation
.
Update
(
location
);
if
(
machineStatusObj
!=
null
)
if
(
machineStatusObj
!=
null
)
...
@@ -538,6 +544,7 @@ namespace Siger.ApiACC.Controllers
...
@@ -538,6 +544,7 @@ namespace Siger.ApiACC.Controllers
if
(
taskObj
.
action
==
TaskAction
.
Step_LK_JGZX
)
if
(
taskObj
.
action
==
TaskAction
.
Step_LK_JGZX
)
{
{
location
.
status
=
(
int
)
LocationStatus
.
Out
;
location
.
status
=
(
int
)
LocationStatus
.
Out
;
location
.
updatetime
=
DateTime
.
Now
;
_automationLocation
.
Update
(
location
);
_automationLocation
.
Update
(
location
);
}
}
...
...
Server/Infrastructure/Repositories/Siger.Middlelayer.AccRepository/Repositories/AutomationLocationRepository.cs
View file @
d75cce34
...
@@ -272,7 +272,8 @@ namespace Siger.Middlelayer.AccRepository.Repositories
...
@@ -272,7 +272,8 @@ namespace Siger.Middlelayer.AccRepository.Repositories
materialsn
=
q
.
sn
,
materialsn
=
q
.
sn
,
productcode
=
tp
.
productcode
,
productcode
=
tp
.
productcode
,
routeid
=
q
.
routeid
,
routeid
=
q
.
routeid
,
route
=
r
!=
null
?
r
.
name
:
""
route
=
r
!=
null
?
r
.
name
:
""
,
update
=
q
.
updatetime
};
};
Expression
<
Func
<
ResponseAutomationLocationList
,
bool
>>
locationidFullExpression
=
f
=>
true
;
Expression
<
Func
<
ResponseAutomationLocationList
,
bool
>>
locationidFullExpression
=
f
=>
true
;
if
(
full
==
1
)
if
(
full
==
1
)
...
@@ -288,7 +289,7 @@ namespace Siger.Middlelayer.AccRepository.Repositories
...
@@ -288,7 +289,7 @@ namespace Siger.Middlelayer.AccRepository.Repositories
productExpression
=
f
=>
f
.
productcode
.
Contains
(
productCode
);
productExpression
=
f
=>
f
.
productcode
.
Contains
(
productCode
);
}
}
var
expression
=
locationidFullExpression
.
And
(
productExpression
);
var
expression
=
locationidFullExpression
.
And
(
productExpression
);
return
query
.
Where
(
expression
);
return
query
.
Where
(
expression
)
.
OrderBy
(
q
=>
q
.
update
)
;
}
}
...
...
Server/Infrastructure/Repositories/Siger.Middlelayer.AccRepository/Response/ResponseAutomationLocation.cs
View file @
d75cce34
...
@@ -107,5 +107,6 @@ namespace Siger.Middlelayer.AccRepository.Response
...
@@ -107,5 +107,6 @@ namespace Siger.Middlelayer.AccRepository.Response
public
string
productcode
{
get
;
set
;
}
public
string
productcode
{
get
;
set
;
}
public
int
routeid
{
get
;
set
;
}
public
int
routeid
{
get
;
set
;
}
public
string
route
{
get
;
set
;
}
public
string
route
{
get
;
set
;
}
public
DateTime
?
update
{
get
;
set
;
}
}
}
}
}
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