-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgenera_nomina.py
112 lines (105 loc) · 6.42 KB
/
genera_nomina.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'genera_nomina.ui'
#
# Created by: PyQt5 UI code generator 5.15.7
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(223, 250)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.verticalLayout = QtWidgets.QVBoxLayout(self.centralwidget)
self.verticalLayout.setObjectName("verticalLayout")
self.formLayout = QtWidgets.QFormLayout()
self.formLayout.setObjectName("formLayout")
self.label = QtWidgets.QLabel(self.centralwidget)
self.label.setObjectName("label")
self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label)
self.periodo_nomina = QtWidgets.QLineEdit(self.centralwidget)
self.periodo_nomina.setObjectName("periodo_nomina")
self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.periodo_nomina)
self.label_2 = QtWidgets.QLabel(self.centralwidget)
self.label_2.setObjectName("label_2")
self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_2)
self.checkBox = QtWidgets.QCheckBox(self.centralwidget)
self.checkBox.setObjectName("checkBox")
self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.checkBox)
self.label_5 = QtWidgets.QLabel(self.centralwidget)
self.label_5.setObjectName("label_5")
self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.label_5)
self.orden_pago = QtWidgets.QCheckBox(self.centralwidget)
self.orden_pago.setObjectName("orden_pago")
self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.orden_pago)
self.label_6 = QtWidgets.QLabel(self.centralwidget)
self.label_6.setObjectName("label_6")
self.formLayout.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.label_6)
self.correo = QtWidgets.QCheckBox(self.centralwidget)
self.correo.setObjectName("correo")
self.formLayout.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.correo)
self.label_3 = QtWidgets.QLabel(self.centralwidget)
self.label_3.setObjectName("label_3")
self.formLayout.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.label_3)
self.nota = QtWidgets.QPlainTextEdit(self.centralwidget)
self.nota.setObjectName("nota")
self.formLayout.setWidget(4, QtWidgets.QFormLayout.FieldRole, self.nota)
self.verticalLayout.addLayout(self.formLayout)
self.groupBox = QtWidgets.QGroupBox(self.centralwidget)
self.groupBox.setObjectName("groupBox")
self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.groupBox)
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.pagar_salario_navidad = QtWidgets.QRadioButton(self.groupBox)
self.pagar_salario_navidad.setObjectName("pagar_salario_navidad")
self.horizontalLayout_2.addWidget(self.pagar_salario_navidad)
self.radioButton_2 = QtWidgets.QRadioButton(self.groupBox)
self.radioButton_2.setChecked(True)
self.radioButton_2.setObjectName("radioButton_2")
self.horizontalLayout_2.addWidget(self.radioButton_2)
self.verticalLayout.addWidget(self.groupBox)
self.line = QtWidgets.QFrame(self.centralwidget)
self.line.setFrameShape(QtWidgets.QFrame.HLine)
self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
self.line.setObjectName("line")
self.verticalLayout.addWidget(self.line)
self.frame = QtWidgets.QFrame(self.centralwidget)
self.frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame.setObjectName("frame")
self.horizontalLayout = QtWidgets.QHBoxLayout(self.frame)
self.horizontalLayout.setObjectName("horizontalLayout")
spacerItem = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem)
self.correr = QtWidgets.QPushButton(self.frame)
self.correr.setObjectName("correr")
self.horizontalLayout.addWidget(self.correr)
spacerItem1 = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem1)
self.cancelar = QtWidgets.QPushButton(self.frame)
self.cancelar.setObjectName("cancelar")
self.horizontalLayout.addWidget(self.cancelar)
spacerItem2 = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem2)
self.verticalLayout.addWidget(self.frame)
MainWindow.setCentralWidget(self.centralwidget)
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "Generar nómina"))
self.label.setText(_translate("MainWindow", "Periodo de la nómina:"))
self.label_2.setText(_translate("MainWindow", "¿Generar recibos?"))
self.checkBox.setText(_translate("MainWindow", "Sí"))
self.label_5.setText(_translate("MainWindow", "¿Generar orden de pago?"))
self.orden_pago.setText(_translate("MainWindow", "Sí"))
self.label_6.setText(_translate("MainWindow", "¿Enviar por correo los recibos?"))
self.correo.setText(_translate("MainWindow", "Sí"))
self.label_3.setText(_translate("MainWindow", "Nota:"))
self.groupBox.setToolTip(_translate("MainWindow", "<html><head/><body><p>Marque sí para que en la corrida de nómina se pague el salario de navidad que le corresponden a los trabajadores.</p></body></html>"))
self.groupBox.setTitle(_translate("MainWindow", "¿Pagar salario de navidad en esta nómina?"))
self.pagar_salario_navidad.setText(_translate("MainWindow", "Sí"))
self.radioButton_2.setText(_translate("MainWindow", "No"))
self.correr.setText(_translate("MainWindow", "Correr"))
self.cancelar.setText(_translate("MainWindow", "Cancelar"))