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
909cff7f
Commit
909cff7f
authored
Mar 15, 2021
by
yiyu.li
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://test.siger-data.com:9000/jiawei.su/Laisi_AutoMES2
parents
62bea448
232ecd3b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
10 deletions
+20
-10
AutomationController.cs
Server/Apis/Siger.ApiACC/Controllers/AutomationController.cs
+7
-0
AutomationOperateController.cs
...s/Siger.ApiACC/Controllers/AutomationOperateController.cs
+7
-6
AutomationStateController.cs
...pis/Siger.ApiACC/Controllers/AutomationStateController.cs
+2
-2
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 @
909cff7f
...
...
@@ -327,6 +327,7 @@ namespace Siger.ApiACC.Controllers
location
.
route
=
download
?
""
:
taskObj
.
route
.
ToString
();
location
.
sn
=
download
?
""
:
taskObj
.
sn
;
location
.
status
=
(
int
)
LocationStatus
.
In
;
location
.
updatetime
=
DateTime
.
Now
;
_automationLocation
.
Update
(
location
);
sectionProperty
.
upload
=
0
;
...
...
@@ -352,6 +353,7 @@ namespace Siger.ApiACC.Controllers
location
.
route
=
taskObj
.
route
.
ToString
();
location
.
routeid
=
taskObj
.
route
;
location
.
status
=
(
int
)
LocationStatus
.
Out
;
location
.
updatetime
=
DateTime
.
Now
;
_automationLocation
.
Update
(
location
);
//上下料位状态 为后台控制
...
...
@@ -374,6 +376,7 @@ namespace Siger.ApiACC.Controllers
}
location
.
status
=
(
int
)
LocationStatus
.
Out
;
location
.
updatetime
=
DateTime
.
Now
;
_automationLocation
.
Update
(
location
);
}
...
...
@@ -393,6 +396,7 @@ namespace Siger.ApiACC.Controllers
if
(
taskObj
.
action
==
TaskAction
.
Step_LK_JGZX
)
{
location
.
status
=
(
int
)
LocationStatus
.
Out
;
location
.
updatetime
=
DateTime
.
Now
;
_automationLocation
.
Update
(
location
);
}
if
(
taskObj
.
action
==
TaskAction
.
Step_JGZX_QXJ
)
...
...
@@ -436,6 +440,7 @@ namespace Siger.ApiACC.Controllers
if
(
taskObj
.
action
==
TaskAction
.
Step_LK_CJT
)
{
location
.
status
=
(
int
)
LocationStatus
.
Out
;
location
.
updatetime
=
DateTime
.
Now
;
_automationLocation
.
Update
(
location
);
}
if
(
taskObj
.
action
==
TaskAction
.
Step_CJT_SXLW
)
...
...
@@ -517,6 +522,7 @@ namespace Siger.ApiACC.Controllers
location
.
route
=
taskObj
.
route
.
ToString
();
location
.
routeid
=
taskObj
.
route
;
location
.
status
=
(
int
)
LocationStatus
.
Out
;
location
.
updatetime
=
DateTime
.
Now
;
_automationLocation
.
Update
(
location
);
if
(
machineStatusObj
!=
null
)
...
...
@@ -538,6 +544,7 @@ namespace Siger.ApiACC.Controllers
if
(
taskObj
.
action
==
TaskAction
.
Step_LK_JGZX
)
{
location
.
status
=
(
int
)
LocationStatus
.
Out
;
location
.
updatetime
=
DateTime
.
Now
;
_automationLocation
.
Update
(
location
);
}
...
...
Server/Apis/Siger.ApiACC/Controllers/AutomationOperateController.cs
View file @
909cff7f
...
...
@@ -154,23 +154,23 @@ namespace Siger.ApiACC.Controllers
{
throw
new
BadRequestException
(
CommonEnum
.
RecordNotFound
);
}
var
monitor
=
_automation
TaskList
.
GetList
(
f
=>
f
.
sectionid
==
section
,
"id"
,
true
).
FirstOrDefault
(
);
var
monitor
=
_automation
FixtureMonitor
.
Get
(
f
=>
f
.
section
==
section
);
var
img
=
string
.
Empty
;
if
(
monitor
!=
null
)
{
var
pd
=
_sigerProjectProduct
.
Get
(
f
=>
f
.
code
==
monitor
.
product
c
ode
);
var
pd
=
_sigerProjectProduct
.
Get
(
f
=>
f
.
code
==
monitor
.
product
C
ode
);
img
=
pd
!=
null
?
pd
.
image
:
""
;
}
var
result
=
new
ResponsePlanlFixtureInfo
{
OrderNumber
=
monitor
!=
null
?
monitor
.
order
code
:
""
,
OrderNumber
=
monitor
!=
null
?
monitor
.
order
number
:
""
,
FixtureGuid
=
monitor
!=
null
?
monitor
.
fixtureguid
:
""
,
FixtureCode
=
monitor
!=
null
?
monitor
.
fixturename
:
""
,
ProductCode
=
monitor
!=
null
?
monitor
.
product
c
ode
:
""
,
ProductName
=
monitor
!=
null
?
monitor
.
product
n
ame
:
""
,
ProductCode
=
monitor
!=
null
?
monitor
.
product
C
ode
:
""
,
ProductName
=
monitor
!=
null
?
monitor
.
product
N
ame
:
""
,
Sn
=
monitor
!=
null
?
monitor
.
sn
:
""
,
status
=
monitor
!=
null
?
monitor
.
status
:
0
,
Location
=
monitor
!=
null
?
monitor
.
location
i
d
:
0
,
Location
=
monitor
!=
null
?
monitor
.
location
I
d
:
0
,
Url
=
img
};
return
new
ObjectResult
(
result
);
...
...
@@ -762,6 +762,7 @@ namespace Siger.ApiACC.Controllers
sn
=
monitor
.
sn
,
ordercode
=
monitor
.
ordernumber
,
fixtureguid
=
monitor
.
fixtureguid
,
fixturename
=
monitor
.
fixturename
,
locationid
=
monitor
.
locationId
,
productcode
=
monitor
.
productCode
,
productname
=
monitor
.
productName
,
...
...
Server/Apis/Siger.ApiACC/Controllers/AutomationStateController.cs
View file @
909cff7f
...
...
@@ -226,13 +226,13 @@ namespace Siger.ApiACC.Controllers
//去抽检台
if
(
record
.
extend1
.
ToInt
()==
perperty
.
sectionid
&&
record
.
action
==
Automation
.
TaskAction
.
Step_LK_CJT
)
{
perperty
.
upload
=
0
;
perperty
.
down
=
0
;
_automationSectionProperty
.
Update
(
perperty
);
}
//去下料位
if
(
record
.
extend1
.
ToInt
()==
perperty
.
sectionid
&&
record
.
action
==
Automation
.
TaskAction
.
Step_LK_SXLW
)
{
perperty
.
upload
=
0
;
perperty
.
down
=
0
;
_automationSectionProperty
.
Update
(
perperty
);
}
}
...
...
Server/Infrastructure/Repositories/Siger.Middlelayer.AccRepository/Repositories/AutomationLocationRepository.cs
View file @
909cff7f
...
...
@@ -272,7 +272,8 @@ namespace Siger.Middlelayer.AccRepository.Repositories
materialsn
=
q
.
sn
,
productcode
=
tp
.
productcode
,
routeid
=
q
.
routeid
,
route
=
r
!=
null
?
r
.
name
:
""
route
=
r
!=
null
?
r
.
name
:
""
,
update
=
q
.
updatetime
};
Expression
<
Func
<
ResponseAutomationLocationList
,
bool
>>
locationidFullExpression
=
f
=>
true
;
if
(
full
==
1
)
...
...
@@ -288,7 +289,7 @@ namespace Siger.Middlelayer.AccRepository.Repositories
productExpression
=
f
=>
f
.
productcode
.
Contains
(
productCode
);
}
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 @
909cff7f
...
...
@@ -107,5 +107,6 @@ namespace Siger.Middlelayer.AccRepository.Response
public
string
productcode
{
get
;
set
;
}
public
int
routeid
{
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