# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'e:\NDC借調処理\python\src\StyleLayout.ui'
#
# Created by: PyQt5 UI code generator 5.13.0
#
# WARNING! All changes made in this file will be lost!
import sys
import os
import images_rc
import xlrd
import win32com.client
import time
from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
from CalculateSalary import CalculateSalary
class Ui_Management(object):
def setupUi(self, Management):
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(":/img/logo.jpg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
Management.setObjectName("Management")
Management.resize(579, 593)
Management.setStyleSheet("background-image: url(:/img/img.jpg);")
Management.setWindowIcon(icon)
# 窗口垂直设计,画面控件随窗口变化而变化(自适应)
self.verticalLayout_3 = QtWidgets.QVBoxLayout(Management)
self.verticalLayout_3.setObjectName("verticalLayout_3")
# 文件处理层
self.groupBox1 = QtWidgets.QGroupBox(Management)
font = QtGui.QFont()
font.setPointSize(16)
font.setBold(True)
font.setItalic(True)
font.setWeight(75)
self.groupBox1.setFont(font)
self.groupBox1.setStyleSheet("color: rgb(85, 170, 255);")
self.groupBox1.setObjectName("groupBox1")
self.verticalLayout = QtWidgets.QVBoxLayout(self.groupBox1)
self.verticalLayout.setContentsMargins(-1, -1, -1, 9)
self.verticalLayout.setSpacing(6)
self.verticalLayout.setObjectName("verticalLayout")
self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
# 选择目标文件路径
self.folderSourceLabel = QtWidgets.QLabel(self.groupBox1)
font = QtGui.QFont()
font.setPointSize(12)
self.folderSourceLabel.setFont(font)
self.folderSourceLabel.setStyleSheet("color: rgb(0, 0, 0);")
self.folderSourceLabel.setObjectName("folderSourceLabel")
self.horizontalLayout_3.addWidget(self.folderSourceLabel)
# 在文本框显示文件夹路径内容
self.pathEdit = QtWidgets.QLineEdit(self.groupBox1)
font = QtGui.QFont()
font.setPointSize(12)
self.pathEdit.setFont(font)
self.pathEdit.setStyleSheet("background-color: rgb(255, 255, 255);""color: rgb(0, 0, 0);")
self.pathEdit.setObjectName("pathEdit")
self.horizontalLayout_3.addWidget(self.pathEdit)
# 浏览按钮
self.searchButton = QtWidgets.QPushButton(self.groupBox1)
font = QtGui.QFont()
font.setPointSize(12)
self.searchButton.setFont(font)
self.searchButton.setStyleSheet("color: rgb(200, 97, 84);")
self.searchButton.setCheckable(False)
self.searchButton.setAutoRepeat(False)
self.searchButton.setAutoExclusive(False)
self.searchButton.setFlat(False)
self.searchButton.setObjectName("searchButton")
self.horizontalLayout_3.addWidget(self.searchButton)
self.horizontalLayout_3.setStretch(0, 1)
self.horizontalLayout_3.setStretch(1, 5)
self.horizontalLayout_3.setStretch(2, 1)
s