Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
dream
Commits
88ab97d2
Commit
88ab97d2
authored
Apr 16, 2015
by
panos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fixed in the interface
parent
243dffe8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
dream/KnowledgeExtraction/PilotCases/JobShop/JobShopInterface2.py
...owledgeExtraction/PilotCases/JobShop/JobShopInterface2.py
+8
-6
No files found.
dream/KnowledgeExtraction/PilotCases/JobShop/JobShopInterface2.py
View file @
88ab97d2
...
...
@@ -178,7 +178,7 @@ class TIMEIN(Frame):
return
availableWP
def
updateDatabase
(
self
):
cnxn
=
pyodbc
.
connect
(
"Driver={MySQL ODBC 3.51 Driver};SERVER=localhost; PORT=3306;DATABASE=
bal_database
;UID=root;PASSWORD=Pitheos10;"
)
cnxn
=
pyodbc
.
connect
(
"Driver={MySQL ODBC 3.51 Driver};SERVER=localhost; PORT=3306;DATABASE=
leo_database2
;UID=root;PASSWORD=Pitheos10;"
)
cursor
=
cnxn
.
cursor
()
update_order
=
(
"INSERT INTO prod_status(`status_id`, `WP_id`, `PersonnelCode`, `MachineName`, `TIMEIN`) VALUES (?, ?, ?, ?, ?)"
)
cursor
.
execute
(
"SELECT @@IDENTITY AS ID"
)
...
...
@@ -186,8 +186,9 @@ class TIMEIN(Frame):
select WP_id, Order_id
from sequence where WP_id=?
"""
,
self
.
WPOption
.
get
())
order
=
a
.
fetchone
()
print
order
ind1
=
a
.
fetchone
()
order
=
ind1
[
1
]
cursor
.
execute
(
"SELECT @@IDENTITY AS ID"
)
row
=
cursor
.
fetchone
()
order_ref
=
row
.
ID
status1
=
'in progress'
...
...
@@ -275,7 +276,7 @@ class TIMEOUT(Frame):
return
def
checkInsertedWP
(
self
):
cnxn
=
pyodbc
.
connect
(
"Driver={MySQL ODBC 3.51 Driver};SERVER=localhost; PORT=3306;DATABASE=
bal_database
;UID=root;PASSWORD=Pitheos10;"
)
cnxn
=
pyodbc
.
connect
(
"Driver={MySQL ODBC 3.51 Driver};SERVER=localhost; PORT=3306;DATABASE=
leo_database2
;UID=root;PASSWORD=Pitheos10;"
)
cursor
=
cnxn
.
cursor
()
b
=
cursor
.
execute
(
"""
...
...
@@ -313,13 +314,14 @@ class TIMEOUT(Frame):
return
insertedWP
def
updateDatabase
(
self
):
cnxn
=
pyodbc
.
connect
(
"Driver={MySQL ODBC 3.51 Driver};SERVER=localhost; PORT=3306;DATABASE=
bal_database
;UID=root;PASSWORD=Pitheos10;"
)
cnxn
=
pyodbc
.
connect
(
"Driver={MySQL ODBC 3.51 Driver};SERVER=localhost; PORT=3306;DATABASE=
leo_database2
;UID=root;PASSWORD=Pitheos10;"
)
cursor
=
cnxn
.
cursor
()
a
=
cursor
.
execute
(
"""
select WP_id, Order_id
from sequence where WP_id=?
"""
,
self
.
WPOption
.
get
())
order
=
a
.
fetchone
()[
1
]
ind2
=
a
.
fetchone
()
order
=
ind2
[
1
]
b
=
cursor
.
execute
(
"""
select WP_id, Order_id, PartName
from sequence where Order_id=?
...
...
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