-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.py
60 lines (44 loc) · 1.14 KB
/
test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# from DatabaseAPI import CompanyDB
#
# db = CompanyDB()
# db.connectdDB()
# data = db.selectEmp()
# #print (db.checkLogin('admin', '1234'))
#
# print (type(data[0][0]))
# import PyQt4
from datetime import date
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import QApplication, QWidget, QMessageBox, QLineEdit, QTableWidgetItem, QDialog
from PyQt5.uic.properties import QtWidgets, QtGui, QtCore
from GUI_employee import Ui_Form
import sys
# class main(QWidget, Ui_Form):
# ##--------------------- constructor ----------------------------
# def __init__(self):
# QWidget.__init__(self)
# self.setupUi(self)
#
#
#
#
# ##----------------- Loop --------------------
# app = QApplication(sys.argv)
# window = main()
# window.show()
# app.exec()
import W_empHistory
from DatabaseAPI import *
zoneTime = ZoneTime()
zoneTime.zone1From = '01:30:00'
zoneTime.zone1To = '20:00:00'
zoneTime.zone2From = '02:00:00'
zoneTime.zone2To = '16:00:00'
zoneTime.zone3From = '03:00:00'
zoneTime.zone3To = '17:00:00'
db = CompanyDB()
db.connectdDB()
table = db.getTimeZoneAccess()
db.closeDB()
print(table.zone1From)