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
224581c4
Commit
224581c4
authored
Feb 03, 2021
by
jiawei.su
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixedbug
parent
677e6875
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
AutomationController.cs
Server/Apis/Siger.ApiACC/Controllers/AutomationController.cs
+1
-0
QmsCheckController.cs
Server/Apis/Siger.ApiACC/Controllers/QmsCheckController.cs
+4
-4
SectionPropertyController.cs
...pis/Siger.ApiACC/Controllers/SectionPropertyController.cs
+1
-2
siger_automation_fixture_tools_monitor.cs
...sitory/Entities/siger_automation_fixture_tools_monitor.cs
+1
-1
No files found.
Server/Apis/Siger.ApiACC/Controllers/AutomationController.cs
View file @
224581c4
...
@@ -334,6 +334,7 @@ namespace Siger.ApiACC.Controllers
...
@@ -334,6 +334,7 @@ namespace Siger.ApiACC.Controllers
{
{
throw
new
BadRequestException
(
AccEnum
.
MachineDisable
);
throw
new
BadRequestException
(
AccEnum
.
MachineDisable
);
}
}
if
(
machineStatus
!=
null
)
if
(
machineStatus
!=
null
)
{
{
machineStatus
.
status
=
(
int
)
Automation
.
MachineStatus
.
Waiting
;
machineStatus
.
status
=
(
int
)
Automation
.
MachineStatus
.
Waiting
;
...
...
Server/Apis/Siger.ApiACC/Controllers/QmsCheckController.cs
View file @
224581c4
...
@@ -320,12 +320,11 @@ namespace Siger.ApiACC.Controllers
...
@@ -320,12 +320,11 @@ namespace Siger.ApiACC.Controllers
private
void
CreateTaskList
(
int
section
,
int
productid
,
string
productcode
,
string
sn
,
int
routeid
)
private
void
CreateTaskList
(
int
section
,
int
productid
,
string
productcode
,
string
sn
,
int
routeid
)
{
{
if
(
section
<=
0
||
string
.
IsNullOrEmpty
(
sn
)
||
string
.
IsNullOrEmpty
(
productcode
)
||
productid
<=
0
)
var
monitor
=
_fixtureMonitor
.
Get
(
f
=>
f
.
section
==
section
);
if
(
monitor
==
null
)
{
{
return
;
Logger
.
WriteLineInfo
(
$"检验工站
{
section
}
monitor 为空"
)
;
}
}
var
taskNo
=
_automationTaskList
.
CrateTaskNumber
(
Automation
.
TaskTrigerType
.
Manual
);
var
taskNo
=
_automationTaskList
.
CrateTaskNumber
(
Automation
.
TaskTrigerType
.
Manual
);
_automationTaskList
.
Insert
(
new
siger_automation_task_list
_automationTaskList
.
Insert
(
new
siger_automation_task_list
...
@@ -353,6 +352,7 @@ namespace Siger.ApiACC.Controllers
...
@@ -353,6 +352,7 @@ namespace Siger.ApiACC.Controllers
programnumber
=
""
,
programnumber
=
""
,
remark
=
"质量检验"
,
remark
=
"质量检验"
,
});
});
monitor
.
taskno
=
taskNo
;
_unitOfWork
.
Commit
();
_unitOfWork
.
Commit
();
}
}
...
...
Server/Apis/Siger.ApiACC/Controllers/SectionPropertyController.cs
View file @
224581c4
...
@@ -64,8 +64,7 @@ namespace Siger.ApiACC.Controllers
...
@@ -64,8 +64,7 @@ namespace Siger.ApiACC.Controllers
[
HttpGet
]
[
HttpGet
]
public
IActionResult
GetSn
(
int
sectionid
)
public
IActionResult
GetSn
(
int
sectionid
)
{
{
var
monitor
=
_fixtureMonitor
.
GetList
(
q
=>
q
.
projectId
==
ProjectId
&&
q
.
status
==
(
int
)
RowState
.
Valid
&&
q
.
section
==
sectionid
).
OrderByDescending
(
q
=>
q
.
updatetime
).
var
monitor
=
_fixtureMonitor
.
Get
(
sectionid
);
FirstOrDefault
();
return
new
ObjectResult
(
monitor
?.
sn
??
""
);
return
new
ObjectResult
(
monitor
?.
sn
??
""
);
}
}
}
}
...
...
Server/Infrastructure/Repositories/Siger.Middlelayer.AccRepository/Entities/siger_automation_fixture_tools_monitor.cs
View file @
224581c4
...
@@ -51,7 +51,7 @@ namespace Siger.Middlelayer.AccRepository.Entities
...
@@ -51,7 +51,7 @@ namespace Siger.Middlelayer.AccRepository.Entities
public
int
locationId
{
get
;
set
;
}
public
int
locationId
{
get
;
set
;
}
public
int
unixtime
{
get
;
set
;
}
public
int
unixtime
{
get
;
set
;
}
/// <summary>
/// <summary>
/// 当
然
任务
/// 当
前
任务
/// </summary>
/// </summary>
public
string
taskno
{
get
;
set
;
}
public
string
taskno
{
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