├── PatholoSystem.pro ├── PatholoSystem.pro.user ├── README.md ├── alterpassword ├── alterpassword.cpp ├── alterpassword.h └── alterpassword.ui ├── app.ico ├── bin ├── Makefile ├── Makefile.Debug ├── Makefile.Release ├── config.ini ├── object_script.PatholoSystem.Debug ├── object_script.PatholoSystem.Release ├── patholo.db ├── release │ ├── D3Dcompiler_47.dll │ ├── PatholoSystem.exe │ ├── Qt5Core.dll │ ├── Qt5Gui.dll │ ├── Qt5Network.dll │ ├── Qt5PrintSupport.dll │ ├── Qt5Sql.dll │ ├── Qt5Svg.dll │ ├── Qt5Widgets.dll │ ├── alterpassword.o │ ├── bearer │ │ ├── qgenericbearer.dll │ │ └── qnativewifibearer.dll │ ├── bitstream.o │ ├── coderole.o │ ├── config.ini │ ├── exceloperate.o │ ├── iconengines │ │ └── qsvgicon.dll │ ├── imageformats │ │ ├── qdds.dll │ │ ├── qgif.dll │ │ ├── qicns.dll │ │ ├── qico.dll │ │ ├── qjpeg.dll │ │ ├── qsvg.dll │ │ ├── qtga.dll │ │ ├── qtiff.dll │ │ ├── qwbmp.dll │ │ └── qwebp.dll │ ├── immuneindexset.o │ ├── immuneslicedata.o │ ├── immunetypeset.o │ ├── libEGL.dll │ ├── libGLESV2.dll │ ├── libgcc_s_dw2-1.dll │ ├── libpng16.dll │ ├── libstdc++-6.dll │ ├── libwinpthread-1.dll │ ├── logindata.o │ ├── logindata.obj │ ├── logindialog.o │ ├── logindialog.obj │ ├── main.o │ ├── main.obj │ ├── mainwindow.o │ ├── mainwindow.obj │ ├── mask.o │ ├── materialdata.o │ ├── messagedialog.o │ ├── messagedialog.obj │ ├── mmask.o │ ├── moc_alterpassword.cpp │ ├── moc_alterpassword.o │ ├── moc_coderole.cpp │ ├── moc_coderole.o │ ├── moc_immuneindexset.cpp │ ├── moc_immuneindexset.o │ ├── moc_immunetypeset.cpp │ ├── moc_immunetypeset.o │ ├── moc_logindialog.cpp │ ├── moc_logindialog.o │ ├── moc_logindialog.obj │ ├── moc_mainwindow.cpp │ ├── moc_mainwindow.o │ ├── moc_mainwindow.obj │ ├── moc_messagedialog.cpp │ ├── moc_messagedialog.o │ ├── moc_messagedialog.obj │ ├── moc_movewidgetcontrol.cpp │ ├── moc_movewidgetcontrol.o │ ├── moc_newimmuneslice.cpp │ ├── moc_newimmuneslice.o │ ├── moc_newmoreimmuneslice.cpp │ ├── moc_newmoreimmuneslice.o │ ├── moc_newmorenormalslice.cpp │ ├── moc_newmorenormalslice.o │ ├── moc_newmoreslices.cpp │ ├── moc_newmoreslices.o │ ├── moc_newmorespecialslice.cpp │ ├── moc_newmorespecialslice.o │ ├── moc_newnormalslice.cpp │ ├── moc_newnormalslice.o │ ├── moc_newslices.cpp │ ├── moc_newslices.o │ ├── moc_newslices.obj │ ├── moc_newspecialslice.cpp │ ├── moc_newspecialslice.o │ ├── moc_normalmaterial.cpp │ ├── moc_normalmaterial.o │ ├── moc_patientinfo.cpp │ ├── moc_patientinfo.o │ ├── moc_printset.cpp │ ├── moc_printset.o │ ├── moc_qcustomplot.cpp │ ├── moc_qcustomplot.o │ ├── moc_qselectwidget.cpp │ ├── moc_qselectwidget.o │ ├── moc_qtbuttonpropertybrowser.cpp │ ├── moc_qteditorfactory.cpp │ ├── moc_qtgroupboxpropertybrowser.cpp │ ├── moc_qtpropertybrowser.cpp │ ├── moc_qtpropertybrowserutils_p.cpp │ ├── moc_qtpropertybrowserutils_p.o │ ├── moc_qtpropertymanager.cpp │ ├── moc_qttreepropertybrowser.cpp │ ├── moc_qtvariantproperty.cpp │ ├── moc_specialindexset.cpp │ ├── moc_specialindexset.o │ ├── moc_specialtypeset.cpp │ ├── moc_specialtypeset.o │ ├── moc_tabimmuneslice.cpp │ ├── moc_tabimmuneslice.o │ ├── moc_tabmaterial.cpp │ ├── moc_tabmaterial.o │ ├── moc_tabnormalslice.cpp │ ├── moc_tabnormalslice.o │ ├── moc_tabregister.cpp │ ├── moc_tabregister.o │ ├── moc_tabregister.obj │ ├── moc_tabspecialslice.cpp │ ├── moc_tabspecialslice.o │ ├── moc_tabstatistics.cpp │ ├── moc_tabstatistics.o │ ├── moc_tabsystemset.cpp │ ├── moc_tabsystemset.o │ ├── moc_templatesetup.cpp │ ├── moc_templatesetup.o │ ├── moc_typeset.cpp │ ├── moc_typeset.o │ ├── moc_typesetdialog.cpp │ ├── moc_typesetdialog.o │ ├── moc_userset.cpp │ ├── moc_userset.o │ ├── moc_userwidget.cpp │ ├── moc_userwidget.o │ ├── movewidgetcontrol.o │ ├── mqrspec.o │ ├── myapp.res │ ├── myapp_res.o │ ├── newimmuneslice.o │ ├── newmoreimmuneslice.o │ ├── newmorenormalslice.o │ ├── newmoreslices.o │ ├── newmorespecialslice.o │ ├── newnormalslice.o │ ├── newslices.o │ ├── newslices.obj │ ├── newspecialslice.o │ ├── normalmaterial.o │ ├── normalslicedata.o │ ├── opengl32sw.dll │ ├── paintdata.o │ ├── patholo.db │ ├── patientinfo.o │ ├── platforms │ │ └── qwindows.dll │ ├── printset.o │ ├── printsupport │ │ └── windowsprintersupport.dll │ ├── qcustomplot.o │ ├── qrc_qtpropertybrowser.cpp │ ├── qrc_qtpropertybrowser.o │ ├── qrc_res.cpp │ ├── qrc_res.o │ ├── qrc_res.obj │ ├── qreadini.o │ ├── qreadini.obj │ ├── qrenc.o │ ├── qrencode.o │ ├── qrinput.o │ ├── qrspec.o │ ├── qselectwidget.o │ ├── qtbuttonpropertybrowser.o │ ├── qteditorfactory.moc │ ├── qteditorfactory.o │ ├── qtgroupboxpropertybrowser.o │ ├── qtpropertybrowser.o │ ├── qtpropertybrowserutils.o │ ├── qtpropertymanager.moc │ ├── qtpropertymanager.o │ ├── qttreepropertybrowser.moc │ ├── qttreepropertybrowser.o │ ├── qtvariantproperty.o │ ├── registerdata.o │ ├── registerdata.obj │ ├── rscode.o │ ├── singleton.o │ ├── singleton.obj │ ├── specialindexset.o │ ├── specialslicedata.o │ ├── specialtypeset.o │ ├── split.o │ ├── sqldrivers │ │ ├── qsqlite.dll │ │ ├── qsqlmysql.dll │ │ ├── qsqlodbc.dll │ │ └── qsqlpsql.dll │ ├── tabimmuneslice.o │ ├── tabmaterial.o │ ├── tabnormalslice.o │ ├── tabregister.o │ ├── tabregister.obj │ ├── tabspecialslice.o │ ├── tabstatistics.o │ ├── tabsystemdata.o │ ├── tabsystemset.o │ ├── templatedata.o │ ├── templatesetup.o │ ├── translations │ │ ├── qt_ca.qm │ │ ├── qt_cs.qm │ │ ├── qt_de.qm │ │ ├── qt_en.qm │ │ ├── qt_fi.qm │ │ ├── qt_fr.qm │ │ ├── qt_he.qm │ │ ├── qt_hu.qm │ │ ├── qt_it.qm │ │ ├── qt_ja.qm │ │ ├── qt_ko.qm │ │ ├── qt_lv.qm │ │ ├── qt_pl.qm │ │ ├── qt_ru.qm │ │ ├── qt_sk.qm │ │ └── qt_uk.qm │ ├── typeset.o │ ├── typesetdialog.o │ ├── userset.o │ └── userwidget.o ├── test.png ├── ui_alterpassword.h ├── ui_coderole.h ├── ui_immuneindexset.h ├── ui_immunetypeset.h ├── ui_logindialog.h ├── ui_mainwindow.h ├── ui_messagedialog.h ├── ui_newimmuneslice.h ├── ui_newmoreimmuneslice.h ├── ui_newmorenormalslice.h ├── ui_newmoreslices.h ├── ui_newmorespecialslice.h ├── ui_newnormalslice.h ├── ui_newslices.h ├── ui_newspecialslice.h ├── ui_normalmaterial.h ├── ui_patientinfo.h ├── ui_printset.h ├── ui_specialindexset.h ├── ui_specialtypeset.h ├── ui_tabimmuneslice.h ├── ui_tabmaterial.h ├── ui_tabnormalslice.h ├── ui_tabregister.h ├── ui_tabspecialslice.h ├── ui_tabstatistics.h ├── ui_tabsystemset.h ├── ui_templatesetup.h ├── ui_typeset.h ├── ui_typesetdialog.h ├── ui_userset.h └── ui_userwidget.h ├── config ├── qreadini.cpp └── qreadini.h ├── databasedef.h ├── exceloperate ├── exceloperate.cpp └── exceloperate.h ├── globaldef.h ├── image ├── about.png ├── add.png ├── addto.png ├── background.png ├── color.png ├── copy.png ├── critical.png ├── edit-clear.png ├── excel.png ├── exit.png ├── fail.png ├── filenew.png ├── happy.png ├── header.png ├── information.png ├── login.png ├── newmore.png ├── ok.png ├── open.png ├── print.jpg ├── printmore.jpg ├── question.png ├── refresh.gif ├── refresh.png ├── save.png ├── serch.png ├── tc.ico ├── tempalte.jpg └── txt.jpg ├── lib ├── libpng16.lib └── zlib.lib ├── logindialog ├── logindata.cpp ├── logindata.h ├── logindialog.cpp ├── logindialog.h └── logindialog.ui ├── main.cpp ├── mainwindow.cpp ├── mainwindow.h ├── mainwindow.ui ├── messagebox ├── messagedialog.cpp ├── messagedialog.h └── messagedialog.ui ├── myapp.rc ├── paintinfo ├── paintdata.cpp ├── paintdata.h ├── patientinfo.cpp ├── patientinfo.h └── patientinfo.ui ├── printtemplate ├── PrintDemo.pro ├── QRcode │ ├── bitstream.c │ ├── bitstream.h │ ├── config.h │ ├── mask.c │ ├── mask.h │ ├── mmask.c │ ├── mmask.h │ ├── mqrspec.c │ ├── mqrspec.h │ ├── png.h │ ├── qrenc.c │ ├── qrencode.c │ ├── qrencode.h │ ├── qrencode_inner.h │ ├── qrinput.c │ ├── qrinput.h │ ├── qrspec.c │ ├── qrspec.h │ ├── rscode.c │ ├── rscode.h │ ├── split.c │ └── split.h ├── globaldef.h ├── image │ ├── delete.ico │ ├── delete.jpg │ └── plus.ico ├── include │ ├── PngFile.h │ ├── crc32.h │ ├── deflate.h │ ├── gzguts.h │ ├── inffast.h │ ├── inffixed.h │ ├── inflate.h │ ├── inftrees.h │ ├── png.h │ ├── pngconf.h │ ├── pngdebug.h │ ├── pnginfo.h │ ├── pnglibconf.h │ ├── pngpriv.h │ ├── pngstruct.h │ ├── trees.h │ ├── zconf.h │ ├── zint.h │ ├── zlib.h │ └── zutil.h ├── movewidgetcontrol │ ├── movewidgetcontrol.cpp │ └── movewidgetcontrol.h ├── qselectwidget │ ├── qselectwidget.cpp │ └── qselectwidget.h ├── res.qrc ├── templatedata │ ├── templatedata.cpp │ └── templatedata.h ├── templatesetup.cpp ├── templatesetup.h └── templatesetup.ui ├── qss └── style.qss ├── res.qrc ├── tabimmuneslice ├── immuneslicedata.cpp ├── immuneslicedata.h ├── newimmuneslice.cpp ├── newimmuneslice.h ├── newimmuneslice.ui ├── newmoreimmuneslice.cpp ├── newmoreimmuneslice.h ├── newmoreimmuneslice.ui ├── tabimmuneslice.cpp ├── tabimmuneslice.h └── tabimmuneslice.ui ├── tabmaterial ├── materialdata.cpp ├── materialdata.h ├── normalmaterial.cpp ├── normalmaterial.h ├── normalmaterial.ui ├── tabmaterial.cpp ├── tabmaterial.h └── tabmaterial.ui ├── tabnormalslice ├── newmorenormalslice.cpp ├── newmorenormalslice.h ├── newmorenormalslice.ui ├── newnormalslice.cpp ├── newnormalslice.h ├── newnormalslice.ui ├── normalslicedata.cpp ├── normalslicedata.h ├── tabnormalslice.cpp ├── tabnormalslice.h └── tabnormalslice.ui ├── tabregister ├── newmoreslices.cpp ├── newmoreslices.h ├── newmoreslices.ui ├── newslices.cpp ├── newslices.h ├── newslices.ui ├── registerdata.cpp ├── registerdata.h ├── tabregister.cpp ├── tabregister.h └── tabregister.ui ├── tabspecialslice ├── newmorespecialslice.cpp ├── newmorespecialslice.h ├── newmorespecialslice.ui ├── newspecialslice.cpp ├── newspecialslice.h ├── newspecialslice.ui ├── specialslicedata.cpp ├── specialslicedata.h ├── tabspecialslice.cpp ├── tabspecialslice.h └── tabspecialslice.ui ├── tabstatistics ├── tabstatistics.cpp ├── tabstatistics.h └── tabstatistics.ui └── tabsystemset ├── otherwidget ├── coderole.cpp ├── coderole.h ├── coderole.ui ├── immuneindexset.cpp ├── immuneindexset.h ├── immuneindexset.ui ├── immunetypeset.cpp ├── immunetypeset.h ├── immunetypeset.ui ├── printset.cpp ├── printset.h ├── printset.ui ├── specialindexset.cpp ├── specialindexset.h ├── specialindexset.ui ├── specialtypeset.cpp ├── specialtypeset.h ├── specialtypeset.ui ├── typeset.cpp ├── typeset.h ├── typeset.ui ├── typesetdialog.cpp ├── typesetdialog.h ├── typesetdialog.ui ├── userset.cpp ├── userset.h ├── userset.ui ├── userwidget.cpp ├── userwidget.h └── userwidget.ui ├── tabsystemdata.cpp ├── tabsystemdata.h ├── tabsystemset.cpp ├── tabsystemset.h └── tabsystemset.ui /README.md: -------------------------------------------------------------------------------- 1 | # PatholoSystem 2 | 病理打码系统 3 | 4 | 采用Qt进行开发,接打印机 将二维码打印到盖玻片 5 | 数据库采用sqlite 6 | -------------------------------------------------------------------------------- /alterpassword/alterpassword.cpp: -------------------------------------------------------------------------------- 1 | #include "alterpassword.h" 2 | #include "ui_alterpassword.h" 3 | #include "config/qreadini.h" 4 | #include "messagebox/messagedialog.h" 5 | #include "globaldef.h" 6 | 7 | /**************** 构造函数 ***************/ 8 | AlterPassword::AlterPassword(QWidget *parent) : 9 | QMainWindow(parent), 10 | ui(new Ui::alterpassword) 11 | { 12 | ui->setupUi(this); 13 | 14 | this->setWindowFlags(this->windowFlags()&~Qt::WindowMaximizeButtonHint&~Qt::WindowMinimizeButtonHint); 15 | 16 | this->setWindowTitle("修改密码"); 17 | } 18 | 19 | /**************** 析构函数 ***************/ 20 | AlterPassword::~AlterPassword() 21 | { 22 | delete ui; 23 | } 24 | 25 | /**************** 确定按钮 ***************/ 26 | void AlterPassword::on_pushButtonOk_clicked() 27 | { 28 | if(ui->lineEditPsdMore->text().isEmpty()) return; 29 | 30 | if(ui->lineEditPsdMore->text() == ui->lineEditNewPsd->text()) 31 | { 32 | INICONFIG->readIni(); 33 | bool success = loginData.selectData(INICONFIG->getLoginConfig().userName, ui->lineEditOldPsd->text()); 34 | 35 | if(success) 36 | { 37 | loginData.updateData(INICONFIG->getLoginConfig().userName, ui->lineEditPsdMore->text()); 38 | this->close(); 39 | } 40 | else 41 | { 42 | MESSAGEBOX->setInfo(GLOBALDEF::SYSTEMINFO, "请检查密码是否正确是否正确 ", QPixmap(GLOBALDEF::FAILIMAGE), true, this); 43 | } 44 | } 45 | else 46 | { 47 | 48 | MESSAGEBOX->setInfo(GLOBALDEF::SYSTEMINFO, "请检查两次密码是否一致 ", QPixmap(GLOBALDEF::FAILIMAGE), true, this); 49 | } 50 | } 51 | 52 | /**************** 取消按钮 ***************/ 53 | void AlterPassword::on_pushButtonCancel_clicked() 54 | { 55 | this->close(); 56 | } 57 | -------------------------------------------------------------------------------- /alterpassword/alterpassword.h: -------------------------------------------------------------------------------- 1 | #ifndef ALTERPASSWORD_H 2 | #define ALTERPASSWORD_H 3 | 4 | /*************************************************************** 5 | 功能:修改密码 6 | 7 | 创建人:殷宇辰 8 | 9 | 创建时间:2017-9-25 10 | **************************************************************/ 11 | 12 | #include 13 | #include "logindialog/logindata.h" 14 | 15 | namespace Ui { 16 | class alterpassword; 17 | } 18 | 19 | class AlterPassword : public QMainWindow 20 | { 21 | Q_OBJECT 22 | 23 | public: 24 | explicit AlterPassword(QWidget *parent = 0); 25 | ~AlterPassword(); 26 | 27 | private slots: 28 | void on_pushButtonOk_clicked(); //确定按钮 29 | void on_pushButtonCancel_clicked(); //取消按钮 30 | 31 | private: 32 | Ui::alterpassword *ui; 33 | LoginData loginData; //数据库对象 34 | }; 35 | 36 | #endif // ALTERPASSWORD_H 37 | -------------------------------------------------------------------------------- /app.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/app.ico -------------------------------------------------------------------------------- /bin/config.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/config.ini -------------------------------------------------------------------------------- /bin/object_script.PatholoSystem.Debug: -------------------------------------------------------------------------------- 1 | INPUT( 2 | ./debug\main.o 3 | ./debug\mainwindow.o 4 | ./debug\logindialog.o 5 | ./debug\qreadini.o 6 | ./debug\logindata.o 7 | ./debug\messagedialog.o 8 | ./debug\tabregister.o 9 | ./debug\registerdata.o 10 | ./debug\newslices.o 11 | ./debug\newmoreslices.o 12 | ./debug\tabsystemset.o 13 | ./debug\typeset.o 14 | ./debug\tabmaterial.o 15 | ./debug\tabnormalslice.o 16 | ./debug\templatesetup.o 17 | ./debug\movewidgetcontrol.o 18 | ./debug\bitstream.o 19 | ./debug\mask.o 20 | ./debug\mmask.o 21 | ./debug\mqrspec.o 22 | ./debug\qrenc.o 23 | ./debug\qrencode.o 24 | ./debug\qrinput.o 25 | ./debug\qrspec.o 26 | ./debug\rscode.o 27 | ./debug\split.o 28 | ./debug\qselectwidget.o 29 | ./debug\tabsystemdata.o 30 | ./debug\coderole.o 31 | ./debug\typesetdialog.o 32 | ./debug\exceloperate.o 33 | ./debug\templatedata.o 34 | ./debug\patientinfo.o 35 | ./debug\paintdata.o 36 | ./debug\tabimmuneslice.o 37 | ./debug\tabspecialslice.o 38 | ./debug\immuneindexset.o 39 | ./debug\immunetypeset.o 40 | ./debug\printset.o 41 | ./debug\specialindexset.o 42 | ./debug\specialtypeset.o 43 | ./debug\userset.o 44 | ./debug\normalmaterial.o 45 | ./debug\materialdata.o 46 | ./debug\newnormalslice.o 47 | ./debug\normalslicedata.o 48 | ./debug\newmorenormalslice.o 49 | ./debug\immuneslicedata.o 50 | ./debug\newmoreimmuneslice.o 51 | ./debug\newimmuneslice.o 52 | ./debug\newmorespecialslice.o 53 | ./debug\newspecialslice.o 54 | ./debug\specialslicedata.o 55 | ./debug\tabstatistics.o 56 | ./debug\userwidget.o 57 | ./debug\alterpassword.o 58 | ./debug\qrc_res.o 59 | ./debug\moc_mainwindow.o 60 | ./debug\moc_logindialog.o 61 | ./debug\moc_messagedialog.o 62 | ./debug\moc_tabregister.o 63 | ./debug\moc_newslices.o 64 | ./debug\moc_newmoreslices.o 65 | ./debug\moc_tabsystemset.o 66 | ./debug\moc_typeset.o 67 | ./debug\moc_tabmaterial.o 68 | ./debug\moc_tabnormalslice.o 69 | ./debug\moc_templatesetup.o 70 | ./debug\moc_movewidgetcontrol.o 71 | ./debug\moc_qselectwidget.o 72 | ./debug\moc_coderole.o 73 | ./debug\moc_typesetdialog.o 74 | ./debug\moc_patientinfo.o 75 | ./debug\moc_tabimmuneslice.o 76 | ./debug\moc_tabspecialslice.o 77 | ./debug\moc_immuneindexset.o 78 | ./debug\moc_immunetypeset.o 79 | ./debug\moc_printset.o 80 | ./debug\moc_specialindexset.o 81 | ./debug\moc_specialtypeset.o 82 | ./debug\moc_userset.o 83 | ./debug\moc_normalmaterial.o 84 | ./debug\moc_newnormalslice.o 85 | ./debug\moc_newmorenormalslice.o 86 | ./debug\moc_newmoreimmuneslice.o 87 | ./debug\moc_newimmuneslice.o 88 | ./debug\moc_newmorespecialslice.o 89 | ./debug\moc_newspecialslice.o 90 | ./debug\moc_tabstatistics.o 91 | ./debug\moc_userwidget.o 92 | ./debug\moc_alterpassword.o 93 | ); 94 | -------------------------------------------------------------------------------- /bin/object_script.PatholoSystem.Release: -------------------------------------------------------------------------------- 1 | INPUT( 2 | ./release\main.o 3 | ./release\mainwindow.o 4 | ./release\logindialog.o 5 | ./release\qreadini.o 6 | ./release\logindata.o 7 | ./release\messagedialog.o 8 | ./release\tabregister.o 9 | ./release\registerdata.o 10 | ./release\newslices.o 11 | ./release\newmoreslices.o 12 | ./release\tabsystemset.o 13 | ./release\typeset.o 14 | ./release\tabmaterial.o 15 | ./release\tabnormalslice.o 16 | ./release\templatesetup.o 17 | ./release\movewidgetcontrol.o 18 | ./release\bitstream.o 19 | ./release\mask.o 20 | ./release\mmask.o 21 | ./release\mqrspec.o 22 | ./release\qrenc.o 23 | ./release\qrencode.o 24 | ./release\qrinput.o 25 | ./release\qrspec.o 26 | ./release\rscode.o 27 | ./release\split.o 28 | ./release\qselectwidget.o 29 | ./release\tabsystemdata.o 30 | ./release\coderole.o 31 | ./release\typesetdialog.o 32 | ./release\exceloperate.o 33 | ./release\templatedata.o 34 | ./release\patientinfo.o 35 | ./release\paintdata.o 36 | ./release\tabimmuneslice.o 37 | ./release\tabspecialslice.o 38 | ./release\immuneindexset.o 39 | ./release\immunetypeset.o 40 | ./release\printset.o 41 | ./release\specialindexset.o 42 | ./release\specialtypeset.o 43 | ./release\userset.o 44 | ./release\normalmaterial.o 45 | ./release\materialdata.o 46 | ./release\newnormalslice.o 47 | ./release\normalslicedata.o 48 | ./release\newmorenormalslice.o 49 | ./release\immuneslicedata.o 50 | ./release\newmoreimmuneslice.o 51 | ./release\newimmuneslice.o 52 | ./release\newmorespecialslice.o 53 | ./release\newspecialslice.o 54 | ./release\specialslicedata.o 55 | ./release\tabstatistics.o 56 | ./release\userwidget.o 57 | ./release\alterpassword.o 58 | ./release\qrc_res.o 59 | ./release\moc_mainwindow.o 60 | ./release\moc_logindialog.o 61 | ./release\moc_messagedialog.o 62 | ./release\moc_tabregister.o 63 | ./release\moc_newslices.o 64 | ./release\moc_newmoreslices.o 65 | ./release\moc_tabsystemset.o 66 | ./release\moc_typeset.o 67 | ./release\moc_tabmaterial.o 68 | ./release\moc_tabnormalslice.o 69 | ./release\moc_templatesetup.o 70 | ./release\moc_movewidgetcontrol.o 71 | ./release\moc_qselectwidget.o 72 | ./release\moc_coderole.o 73 | ./release\moc_typesetdialog.o 74 | ./release\moc_patientinfo.o 75 | ./release\moc_tabimmuneslice.o 76 | ./release\moc_tabspecialslice.o 77 | ./release\moc_immuneindexset.o 78 | ./release\moc_immunetypeset.o 79 | ./release\moc_printset.o 80 | ./release\moc_specialindexset.o 81 | ./release\moc_specialtypeset.o 82 | ./release\moc_userset.o 83 | ./release\moc_normalmaterial.o 84 | ./release\moc_newnormalslice.o 85 | ./release\moc_newmorenormalslice.o 86 | ./release\moc_newmoreimmuneslice.o 87 | ./release\moc_newimmuneslice.o 88 | ./release\moc_newmorespecialslice.o 89 | ./release\moc_newspecialslice.o 90 | ./release\moc_tabstatistics.o 91 | ./release\moc_userwidget.o 92 | ./release\moc_alterpassword.o 93 | ); 94 | -------------------------------------------------------------------------------- /bin/patholo.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/patholo.db -------------------------------------------------------------------------------- /bin/release/D3Dcompiler_47.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/D3Dcompiler_47.dll -------------------------------------------------------------------------------- /bin/release/PatholoSystem.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/PatholoSystem.exe -------------------------------------------------------------------------------- /bin/release/Qt5Core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/Qt5Core.dll -------------------------------------------------------------------------------- /bin/release/Qt5Gui.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/Qt5Gui.dll -------------------------------------------------------------------------------- /bin/release/Qt5Network.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/Qt5Network.dll -------------------------------------------------------------------------------- /bin/release/Qt5PrintSupport.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/Qt5PrintSupport.dll -------------------------------------------------------------------------------- /bin/release/Qt5Sql.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/Qt5Sql.dll -------------------------------------------------------------------------------- /bin/release/Qt5Svg.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/Qt5Svg.dll -------------------------------------------------------------------------------- /bin/release/Qt5Widgets.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/Qt5Widgets.dll -------------------------------------------------------------------------------- /bin/release/alterpassword.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/alterpassword.o -------------------------------------------------------------------------------- /bin/release/bearer/qgenericbearer.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/bearer/qgenericbearer.dll -------------------------------------------------------------------------------- /bin/release/bearer/qnativewifibearer.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/bearer/qnativewifibearer.dll -------------------------------------------------------------------------------- /bin/release/bitstream.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/bitstream.o -------------------------------------------------------------------------------- /bin/release/coderole.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/coderole.o -------------------------------------------------------------------------------- /bin/release/config.ini: -------------------------------------------------------------------------------- 1 | [conn] 2 | ip=127.0.0.1 3 | port=8080 4 | databaseversion=QSQLITE 5 | databasename=patholo.db 6 | username=YYC 7 | password=root 8 | 9 | [login] 10 | username=root 11 | password= 12 | 13 | [init] 14 | startNumber=555555578 15 | -------------------------------------------------------------------------------- /bin/release/exceloperate.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/exceloperate.o -------------------------------------------------------------------------------- /bin/release/iconengines/qsvgicon.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/iconengines/qsvgicon.dll -------------------------------------------------------------------------------- /bin/release/imageformats/qdds.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/imageformats/qdds.dll -------------------------------------------------------------------------------- /bin/release/imageformats/qgif.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/imageformats/qgif.dll -------------------------------------------------------------------------------- /bin/release/imageformats/qicns.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/imageformats/qicns.dll -------------------------------------------------------------------------------- /bin/release/imageformats/qico.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/imageformats/qico.dll -------------------------------------------------------------------------------- /bin/release/imageformats/qjpeg.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/imageformats/qjpeg.dll -------------------------------------------------------------------------------- /bin/release/imageformats/qsvg.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/imageformats/qsvg.dll -------------------------------------------------------------------------------- /bin/release/imageformats/qtga.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/imageformats/qtga.dll -------------------------------------------------------------------------------- /bin/release/imageformats/qtiff.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/imageformats/qtiff.dll -------------------------------------------------------------------------------- /bin/release/imageformats/qwbmp.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/imageformats/qwbmp.dll -------------------------------------------------------------------------------- /bin/release/imageformats/qwebp.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/imageformats/qwebp.dll -------------------------------------------------------------------------------- /bin/release/immuneindexset.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/immuneindexset.o -------------------------------------------------------------------------------- /bin/release/immuneslicedata.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/immuneslicedata.o -------------------------------------------------------------------------------- /bin/release/immunetypeset.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/immunetypeset.o -------------------------------------------------------------------------------- /bin/release/libEGL.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/libEGL.dll -------------------------------------------------------------------------------- /bin/release/libGLESV2.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/libGLESV2.dll -------------------------------------------------------------------------------- /bin/release/libgcc_s_dw2-1.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/libgcc_s_dw2-1.dll -------------------------------------------------------------------------------- /bin/release/libpng16.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/libpng16.dll -------------------------------------------------------------------------------- /bin/release/libstdc++-6.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/libstdc++-6.dll -------------------------------------------------------------------------------- /bin/release/libwinpthread-1.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/libwinpthread-1.dll -------------------------------------------------------------------------------- /bin/release/logindata.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/logindata.o -------------------------------------------------------------------------------- /bin/release/logindata.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/logindata.obj -------------------------------------------------------------------------------- /bin/release/logindialog.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/logindialog.o -------------------------------------------------------------------------------- /bin/release/logindialog.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/logindialog.obj -------------------------------------------------------------------------------- /bin/release/main.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/main.o -------------------------------------------------------------------------------- /bin/release/main.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/main.obj -------------------------------------------------------------------------------- /bin/release/mainwindow.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/mainwindow.o -------------------------------------------------------------------------------- /bin/release/mainwindow.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/mainwindow.obj -------------------------------------------------------------------------------- /bin/release/mask.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/mask.o -------------------------------------------------------------------------------- /bin/release/materialdata.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/materialdata.o -------------------------------------------------------------------------------- /bin/release/messagedialog.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/messagedialog.o -------------------------------------------------------------------------------- /bin/release/messagedialog.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/messagedialog.obj -------------------------------------------------------------------------------- /bin/release/mmask.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/mmask.o -------------------------------------------------------------------------------- /bin/release/moc_alterpassword.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/moc_alterpassword.o -------------------------------------------------------------------------------- /bin/release/moc_coderole.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/moc_coderole.o -------------------------------------------------------------------------------- /bin/release/moc_immuneindexset.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/moc_immuneindexset.o -------------------------------------------------------------------------------- /bin/release/moc_immunetypeset.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/moc_immunetypeset.o -------------------------------------------------------------------------------- /bin/release/moc_logindialog.cpp: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | ** Meta object code from reading C++ file 'logindialog.h' 3 | ** 4 | ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.6.1) 5 | ** 6 | ** WARNING! All changes made in this file will be lost! 7 | *****************************************************************************/ 8 | 9 | #include "../../logindialog/logindialog.h" 10 | #include 11 | #include 12 | #if !defined(Q_MOC_OUTPUT_REVISION) 13 | #error "The header file 'logindialog.h' doesn't include ." 14 | #elif Q_MOC_OUTPUT_REVISION != 67 15 | #error "This file was generated using the moc from 5.6.1. It" 16 | #error "cannot be used with the include files from this version of Qt." 17 | #error "(The moc has changed too much.)" 18 | #endif 19 | 20 | QT_BEGIN_MOC_NAMESPACE 21 | struct qt_meta_stringdata_LoginDialog_t { 22 | QByteArrayData data[4]; 23 | char stringdata0[65]; 24 | }; 25 | #define QT_MOC_LITERAL(idx, ofs, len) \ 26 | Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ 27 | qptrdiff(offsetof(qt_meta_stringdata_LoginDialog_t, stringdata0) + ofs \ 28 | - idx * sizeof(QByteArrayData)) \ 29 | ) 30 | static const qt_meta_stringdata_LoginDialog_t qt_meta_stringdata_LoginDialog = { 31 | { 32 | QT_MOC_LITERAL(0, 0, 11), // "LoginDialog" 33 | QT_MOC_LITERAL(1, 12, 23), // "on_pushButtonOk_clicked" 34 | QT_MOC_LITERAL(2, 36, 0), // "" 35 | QT_MOC_LITERAL(3, 37, 27) // "on_pushButtonCancel_clicked" 36 | 37 | }, 38 | "LoginDialog\0on_pushButtonOk_clicked\0" 39 | "\0on_pushButtonCancel_clicked" 40 | }; 41 | #undef QT_MOC_LITERAL 42 | 43 | static const uint qt_meta_data_LoginDialog[] = { 44 | 45 | // content: 46 | 7, // revision 47 | 0, // classname 48 | 0, 0, // classinfo 49 | 2, 14, // methods 50 | 0, 0, // properties 51 | 0, 0, // enums/sets 52 | 0, 0, // constructors 53 | 0, // flags 54 | 0, // signalCount 55 | 56 | // slots: name, argc, parameters, tag, flags 57 | 1, 0, 24, 2, 0x08 /* Private */, 58 | 3, 0, 25, 2, 0x08 /* Private */, 59 | 60 | // slots: parameters 61 | QMetaType::Void, 62 | QMetaType::Void, 63 | 64 | 0 // eod 65 | }; 66 | 67 | void LoginDialog::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) 68 | { 69 | if (_c == QMetaObject::InvokeMetaMethod) { 70 | LoginDialog *_t = static_cast(_o); 71 | Q_UNUSED(_t) 72 | switch (_id) { 73 | case 0: _t->on_pushButtonOk_clicked(); break; 74 | case 1: _t->on_pushButtonCancel_clicked(); break; 75 | default: ; 76 | } 77 | } 78 | Q_UNUSED(_a); 79 | } 80 | 81 | const QMetaObject LoginDialog::staticMetaObject = { 82 | { &QDialog::staticMetaObject, qt_meta_stringdata_LoginDialog.data, 83 | qt_meta_data_LoginDialog, qt_static_metacall, Q_NULLPTR, Q_NULLPTR} 84 | }; 85 | 86 | 87 | const QMetaObject *LoginDialog::metaObject() const 88 | { 89 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; 90 | } 91 | 92 | void *LoginDialog::qt_metacast(const char *_clname) 93 | { 94 | if (!_clname) return Q_NULLPTR; 95 | if (!strcmp(_clname, qt_meta_stringdata_LoginDialog.stringdata0)) 96 | return static_cast(const_cast< LoginDialog*>(this)); 97 | return QDialog::qt_metacast(_clname); 98 | } 99 | 100 | int LoginDialog::qt_metacall(QMetaObject::Call _c, int _id, void **_a) 101 | { 102 | _id = QDialog::qt_metacall(_c, _id, _a); 103 | if (_id < 0) 104 | return _id; 105 | if (_c == QMetaObject::InvokeMetaMethod) { 106 | if (_id < 2) 107 | qt_static_metacall(this, _c, _id, _a); 108 | _id -= 2; 109 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { 110 | if (_id < 2) 111 | *reinterpret_cast(_a[0]) = -1; 112 | _id -= 2; 113 | } 114 | return _id; 115 | } 116 | QT_END_MOC_NAMESPACE 117 | -------------------------------------------------------------------------------- /bin/release/moc_logindialog.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/moc_logindialog.o -------------------------------------------------------------------------------- /bin/release/moc_logindialog.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/moc_logindialog.obj -------------------------------------------------------------------------------- /bin/release/moc_mainwindow.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/moc_mainwindow.o -------------------------------------------------------------------------------- /bin/release/moc_mainwindow.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/moc_mainwindow.obj -------------------------------------------------------------------------------- /bin/release/moc_messagedialog.cpp: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | ** Meta object code from reading C++ file 'messagedialog.h' 3 | ** 4 | ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.6.1) 5 | ** 6 | ** WARNING! All changes made in this file will be lost! 7 | *****************************************************************************/ 8 | 9 | #include "../../messagebox/messagedialog.h" 10 | #include 11 | #include 12 | #if !defined(Q_MOC_OUTPUT_REVISION) 13 | #error "The header file 'messagedialog.h' doesn't include ." 14 | #elif Q_MOC_OUTPUT_REVISION != 67 15 | #error "This file was generated using the moc from 5.6.1. It" 16 | #error "cannot be used with the include files from this version of Qt." 17 | #error "(The moc has changed too much.)" 18 | #endif 19 | 20 | QT_BEGIN_MOC_NAMESPACE 21 | struct qt_meta_stringdata_MessageDialog_t { 22 | QByteArrayData data[4]; 23 | char stringdata0[39]; 24 | }; 25 | #define QT_MOC_LITERAL(idx, ofs, len) \ 26 | Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ 27 | qptrdiff(offsetof(qt_meta_stringdata_MessageDialog_t, stringdata0) + ofs \ 28 | - idx * sizeof(QByteArrayData)) \ 29 | ) 30 | static const qt_meta_stringdata_MessageDialog_t qt_meta_stringdata_MessageDialog = { 31 | { 32 | QT_MOC_LITERAL(0, 0, 13), // "MessageDialog" 33 | QT_MOC_LITERAL(1, 14, 9), // "okOperate" 34 | QT_MOC_LITERAL(2, 24, 0), // "" 35 | QT_MOC_LITERAL(3, 25, 13) // "cancelOperate" 36 | 37 | }, 38 | "MessageDialog\0okOperate\0\0cancelOperate" 39 | }; 40 | #undef QT_MOC_LITERAL 41 | 42 | static const uint qt_meta_data_MessageDialog[] = { 43 | 44 | // content: 45 | 7, // revision 46 | 0, // classname 47 | 0, 0, // classinfo 48 | 2, 14, // methods 49 | 0, 0, // properties 50 | 0, 0, // enums/sets 51 | 0, 0, // constructors 52 | 0, // flags 53 | 0, // signalCount 54 | 55 | // slots: name, argc, parameters, tag, flags 56 | 1, 0, 24, 2, 0x0a /* Public */, 57 | 3, 0, 25, 2, 0x0a /* Public */, 58 | 59 | // slots: parameters 60 | QMetaType::Void, 61 | QMetaType::Void, 62 | 63 | 0 // eod 64 | }; 65 | 66 | void MessageDialog::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) 67 | { 68 | if (_c == QMetaObject::InvokeMetaMethod) { 69 | MessageDialog *_t = static_cast(_o); 70 | Q_UNUSED(_t) 71 | switch (_id) { 72 | case 0: _t->okOperate(); break; 73 | case 1: _t->cancelOperate(); break; 74 | default: ; 75 | } 76 | } 77 | Q_UNUSED(_a); 78 | } 79 | 80 | const QMetaObject MessageDialog::staticMetaObject = { 81 | { &QDialog::staticMetaObject, qt_meta_stringdata_MessageDialog.data, 82 | qt_meta_data_MessageDialog, qt_static_metacall, Q_NULLPTR, Q_NULLPTR} 83 | }; 84 | 85 | 86 | const QMetaObject *MessageDialog::metaObject() const 87 | { 88 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; 89 | } 90 | 91 | void *MessageDialog::qt_metacast(const char *_clname) 92 | { 93 | if (!_clname) return Q_NULLPTR; 94 | if (!strcmp(_clname, qt_meta_stringdata_MessageDialog.stringdata0)) 95 | return static_cast(const_cast< MessageDialog*>(this)); 96 | return QDialog::qt_metacast(_clname); 97 | } 98 | 99 | int MessageDialog::qt_metacall(QMetaObject::Call _c, int _id, void **_a) 100 | { 101 | _id = QDialog::qt_metacall(_c, _id, _a); 102 | if (_id < 0) 103 | return _id; 104 | if (_c == QMetaObject::InvokeMetaMethod) { 105 | if (_id < 2) 106 | qt_static_metacall(this, _c, _id, _a); 107 | _id -= 2; 108 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { 109 | if (_id < 2) 110 | *reinterpret_cast(_a[0]) = -1; 111 | _id -= 2; 112 | } 113 | return _id; 114 | } 115 | QT_END_MOC_NAMESPACE 116 | -------------------------------------------------------------------------------- /bin/release/moc_messagedialog.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/moc_messagedialog.o -------------------------------------------------------------------------------- /bin/release/moc_messagedialog.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/moc_messagedialog.obj -------------------------------------------------------------------------------- /bin/release/moc_movewidgetcontrol.cpp: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | ** Meta object code from reading C++ file 'movewidgetcontrol.h' 3 | ** 4 | ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.6.1) 5 | ** 6 | ** WARNING! All changes made in this file will be lost! 7 | *****************************************************************************/ 8 | 9 | #include "../../printtemplate/movewidgetcontrol/movewidgetcontrol.h" 10 | #include 11 | #include 12 | #if !defined(Q_MOC_OUTPUT_REVISION) 13 | #error "The header file 'movewidgetcontrol.h' doesn't include ." 14 | #elif Q_MOC_OUTPUT_REVISION != 67 15 | #error "This file was generated using the moc from 5.6.1. It" 16 | #error "cannot be used with the include files from this version of Qt." 17 | #error "(The moc has changed too much.)" 18 | #endif 19 | 20 | QT_BEGIN_MOC_NAMESPACE 21 | struct qt_meta_stringdata_MoveWidgetControl_t { 22 | QByteArrayData data[1]; 23 | char stringdata0[18]; 24 | }; 25 | #define QT_MOC_LITERAL(idx, ofs, len) \ 26 | Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ 27 | qptrdiff(offsetof(qt_meta_stringdata_MoveWidgetControl_t, stringdata0) + ofs \ 28 | - idx * sizeof(QByteArrayData)) \ 29 | ) 30 | static const qt_meta_stringdata_MoveWidgetControl_t qt_meta_stringdata_MoveWidgetControl = { 31 | { 32 | QT_MOC_LITERAL(0, 0, 17) // "MoveWidgetControl" 33 | 34 | }, 35 | "MoveWidgetControl" 36 | }; 37 | #undef QT_MOC_LITERAL 38 | 39 | static const uint qt_meta_data_MoveWidgetControl[] = { 40 | 41 | // content: 42 | 7, // revision 43 | 0, // classname 44 | 0, 0, // classinfo 45 | 0, 0, // methods 46 | 0, 0, // properties 47 | 0, 0, // enums/sets 48 | 0, 0, // constructors 49 | 0, // flags 50 | 0, // signalCount 51 | 52 | 0 // eod 53 | }; 54 | 55 | void MoveWidgetControl::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) 56 | { 57 | Q_UNUSED(_o); 58 | Q_UNUSED(_id); 59 | Q_UNUSED(_c); 60 | Q_UNUSED(_a); 61 | } 62 | 63 | const QMetaObject MoveWidgetControl::staticMetaObject = { 64 | { &QWidget::staticMetaObject, qt_meta_stringdata_MoveWidgetControl.data, 65 | qt_meta_data_MoveWidgetControl, qt_static_metacall, Q_NULLPTR, Q_NULLPTR} 66 | }; 67 | 68 | 69 | const QMetaObject *MoveWidgetControl::metaObject() const 70 | { 71 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; 72 | } 73 | 74 | void *MoveWidgetControl::qt_metacast(const char *_clname) 75 | { 76 | if (!_clname) return Q_NULLPTR; 77 | if (!strcmp(_clname, qt_meta_stringdata_MoveWidgetControl.stringdata0)) 78 | return static_cast(const_cast< MoveWidgetControl*>(this)); 79 | return QWidget::qt_metacast(_clname); 80 | } 81 | 82 | int MoveWidgetControl::qt_metacall(QMetaObject::Call _c, int _id, void **_a) 83 | { 84 | _id = QWidget::qt_metacall(_c, _id, _a); 85 | if (_id < 0) 86 | return _id; 87 | return _id; 88 | } 89 | QT_END_MOC_NAMESPACE 90 | -------------------------------------------------------------------------------- /bin/release/moc_movewidgetcontrol.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/moc_movewidgetcontrol.o -------------------------------------------------------------------------------- /bin/release/moc_newimmuneslice.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/moc_newimmuneslice.o -------------------------------------------------------------------------------- /bin/release/moc_newmoreimmuneslice.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/moc_newmoreimmuneslice.o -------------------------------------------------------------------------------- /bin/release/moc_newmorenormalslice.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/moc_newmorenormalslice.o -------------------------------------------------------------------------------- /bin/release/moc_newmoreslices.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/moc_newmoreslices.o -------------------------------------------------------------------------------- /bin/release/moc_newmorespecialslice.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/moc_newmorespecialslice.o -------------------------------------------------------------------------------- /bin/release/moc_newnormalslice.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/moc_newnormalslice.o -------------------------------------------------------------------------------- /bin/release/moc_newslices.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/moc_newslices.o -------------------------------------------------------------------------------- /bin/release/moc_newslices.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/moc_newslices.obj -------------------------------------------------------------------------------- /bin/release/moc_newspecialslice.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/moc_newspecialslice.o -------------------------------------------------------------------------------- /bin/release/moc_normalmaterial.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/moc_normalmaterial.o -------------------------------------------------------------------------------- /bin/release/moc_patientinfo.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/moc_patientinfo.o -------------------------------------------------------------------------------- /bin/release/moc_printset.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/moc_printset.o -------------------------------------------------------------------------------- /bin/release/moc_qcustomplot.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/moc_qcustomplot.o -------------------------------------------------------------------------------- /bin/release/moc_qselectwidget.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/moc_qselectwidget.o -------------------------------------------------------------------------------- /bin/release/moc_qtpropertybrowserutils_p.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/moc_qtpropertybrowserutils_p.o -------------------------------------------------------------------------------- /bin/release/moc_specialindexset.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/moc_specialindexset.o -------------------------------------------------------------------------------- /bin/release/moc_specialtypeset.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/moc_specialtypeset.o -------------------------------------------------------------------------------- /bin/release/moc_tabimmuneslice.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/moc_tabimmuneslice.o -------------------------------------------------------------------------------- /bin/release/moc_tabmaterial.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/moc_tabmaterial.o -------------------------------------------------------------------------------- /bin/release/moc_tabnormalslice.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/moc_tabnormalslice.o -------------------------------------------------------------------------------- /bin/release/moc_tabregister.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/moc_tabregister.o -------------------------------------------------------------------------------- /bin/release/moc_tabregister.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/moc_tabregister.obj -------------------------------------------------------------------------------- /bin/release/moc_tabspecialslice.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/moc_tabspecialslice.o -------------------------------------------------------------------------------- /bin/release/moc_tabstatistics.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/moc_tabstatistics.o -------------------------------------------------------------------------------- /bin/release/moc_tabsystemset.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/moc_tabsystemset.o -------------------------------------------------------------------------------- /bin/release/moc_templatesetup.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/moc_templatesetup.o -------------------------------------------------------------------------------- /bin/release/moc_typeset.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/moc_typeset.o -------------------------------------------------------------------------------- /bin/release/moc_typesetdialog.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/moc_typesetdialog.o -------------------------------------------------------------------------------- /bin/release/moc_userset.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/moc_userset.o -------------------------------------------------------------------------------- /bin/release/moc_userwidget.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/moc_userwidget.o -------------------------------------------------------------------------------- /bin/release/movewidgetcontrol.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/movewidgetcontrol.o -------------------------------------------------------------------------------- /bin/release/mqrspec.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/mqrspec.o -------------------------------------------------------------------------------- /bin/release/myapp.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/myapp.res -------------------------------------------------------------------------------- /bin/release/myapp_res.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/myapp_res.o -------------------------------------------------------------------------------- /bin/release/newimmuneslice.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/newimmuneslice.o -------------------------------------------------------------------------------- /bin/release/newmoreimmuneslice.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/newmoreimmuneslice.o -------------------------------------------------------------------------------- /bin/release/newmorenormalslice.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/newmorenormalslice.o -------------------------------------------------------------------------------- /bin/release/newmoreslices.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/newmoreslices.o -------------------------------------------------------------------------------- /bin/release/newmorespecialslice.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/newmorespecialslice.o -------------------------------------------------------------------------------- /bin/release/newnormalslice.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/newnormalslice.o -------------------------------------------------------------------------------- /bin/release/newslices.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/newslices.o -------------------------------------------------------------------------------- /bin/release/newslices.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/newslices.obj -------------------------------------------------------------------------------- /bin/release/newspecialslice.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/newspecialslice.o -------------------------------------------------------------------------------- /bin/release/normalmaterial.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/normalmaterial.o -------------------------------------------------------------------------------- /bin/release/normalslicedata.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/normalslicedata.o -------------------------------------------------------------------------------- /bin/release/opengl32sw.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/opengl32sw.dll -------------------------------------------------------------------------------- /bin/release/paintdata.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/paintdata.o -------------------------------------------------------------------------------- /bin/release/patholo.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/patholo.db -------------------------------------------------------------------------------- /bin/release/patientinfo.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/patientinfo.o -------------------------------------------------------------------------------- /bin/release/platforms/qwindows.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/platforms/qwindows.dll -------------------------------------------------------------------------------- /bin/release/printset.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/printset.o -------------------------------------------------------------------------------- /bin/release/printsupport/windowsprintersupport.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/printsupport/windowsprintersupport.dll -------------------------------------------------------------------------------- /bin/release/qcustomplot.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/qcustomplot.o -------------------------------------------------------------------------------- /bin/release/qrc_qtpropertybrowser.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/qrc_qtpropertybrowser.o -------------------------------------------------------------------------------- /bin/release/qrc_res.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/qrc_res.o -------------------------------------------------------------------------------- /bin/release/qrc_res.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/qrc_res.obj -------------------------------------------------------------------------------- /bin/release/qreadini.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/qreadini.o -------------------------------------------------------------------------------- /bin/release/qreadini.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/qreadini.obj -------------------------------------------------------------------------------- /bin/release/qrenc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/qrenc.o -------------------------------------------------------------------------------- /bin/release/qrencode.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/qrencode.o -------------------------------------------------------------------------------- /bin/release/qrinput.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/qrinput.o -------------------------------------------------------------------------------- /bin/release/qrspec.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/qrspec.o -------------------------------------------------------------------------------- /bin/release/qselectwidget.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/qselectwidget.o -------------------------------------------------------------------------------- /bin/release/qtbuttonpropertybrowser.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/qtbuttonpropertybrowser.o -------------------------------------------------------------------------------- /bin/release/qteditorfactory.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/qteditorfactory.o -------------------------------------------------------------------------------- /bin/release/qtgroupboxpropertybrowser.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/qtgroupboxpropertybrowser.o -------------------------------------------------------------------------------- /bin/release/qtpropertybrowser.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/qtpropertybrowser.o -------------------------------------------------------------------------------- /bin/release/qtpropertybrowserutils.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/qtpropertybrowserutils.o -------------------------------------------------------------------------------- /bin/release/qtpropertymanager.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/qtpropertymanager.o -------------------------------------------------------------------------------- /bin/release/qttreepropertybrowser.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/qttreepropertybrowser.o -------------------------------------------------------------------------------- /bin/release/qtvariantproperty.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/qtvariantproperty.o -------------------------------------------------------------------------------- /bin/release/registerdata.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/registerdata.o -------------------------------------------------------------------------------- /bin/release/registerdata.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/registerdata.obj -------------------------------------------------------------------------------- /bin/release/rscode.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/rscode.o -------------------------------------------------------------------------------- /bin/release/singleton.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/singleton.o -------------------------------------------------------------------------------- /bin/release/singleton.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/singleton.obj -------------------------------------------------------------------------------- /bin/release/specialindexset.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/specialindexset.o -------------------------------------------------------------------------------- /bin/release/specialslicedata.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/specialslicedata.o -------------------------------------------------------------------------------- /bin/release/specialtypeset.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/specialtypeset.o -------------------------------------------------------------------------------- /bin/release/split.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/split.o -------------------------------------------------------------------------------- /bin/release/sqldrivers/qsqlite.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/sqldrivers/qsqlite.dll -------------------------------------------------------------------------------- /bin/release/sqldrivers/qsqlmysql.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/sqldrivers/qsqlmysql.dll -------------------------------------------------------------------------------- /bin/release/sqldrivers/qsqlodbc.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/sqldrivers/qsqlodbc.dll -------------------------------------------------------------------------------- /bin/release/sqldrivers/qsqlpsql.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/sqldrivers/qsqlpsql.dll -------------------------------------------------------------------------------- /bin/release/tabimmuneslice.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/tabimmuneslice.o -------------------------------------------------------------------------------- /bin/release/tabmaterial.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/tabmaterial.o -------------------------------------------------------------------------------- /bin/release/tabnormalslice.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/tabnormalslice.o -------------------------------------------------------------------------------- /bin/release/tabregister.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/tabregister.o -------------------------------------------------------------------------------- /bin/release/tabregister.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/tabregister.obj -------------------------------------------------------------------------------- /bin/release/tabspecialslice.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/tabspecialslice.o -------------------------------------------------------------------------------- /bin/release/tabstatistics.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/tabstatistics.o -------------------------------------------------------------------------------- /bin/release/tabsystemdata.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/tabsystemdata.o -------------------------------------------------------------------------------- /bin/release/tabsystemset.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/tabsystemset.o -------------------------------------------------------------------------------- /bin/release/templatedata.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/templatedata.o -------------------------------------------------------------------------------- /bin/release/templatesetup.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/templatesetup.o -------------------------------------------------------------------------------- /bin/release/translations/qt_ca.qm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/translations/qt_ca.qm -------------------------------------------------------------------------------- /bin/release/translations/qt_cs.qm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/translations/qt_cs.qm -------------------------------------------------------------------------------- /bin/release/translations/qt_de.qm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/translations/qt_de.qm -------------------------------------------------------------------------------- /bin/release/translations/qt_en.qm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/translations/qt_en.qm -------------------------------------------------------------------------------- /bin/release/translations/qt_fi.qm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/translations/qt_fi.qm -------------------------------------------------------------------------------- /bin/release/translations/qt_fr.qm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/translations/qt_fr.qm -------------------------------------------------------------------------------- /bin/release/translations/qt_he.qm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/translations/qt_he.qm -------------------------------------------------------------------------------- /bin/release/translations/qt_hu.qm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/translations/qt_hu.qm -------------------------------------------------------------------------------- /bin/release/translations/qt_it.qm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/translations/qt_it.qm -------------------------------------------------------------------------------- /bin/release/translations/qt_ja.qm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/translations/qt_ja.qm -------------------------------------------------------------------------------- /bin/release/translations/qt_ko.qm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/translations/qt_ko.qm -------------------------------------------------------------------------------- /bin/release/translations/qt_lv.qm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/translations/qt_lv.qm -------------------------------------------------------------------------------- /bin/release/translations/qt_pl.qm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/translations/qt_pl.qm -------------------------------------------------------------------------------- /bin/release/translations/qt_ru.qm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/translations/qt_ru.qm -------------------------------------------------------------------------------- /bin/release/translations/qt_sk.qm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/translations/qt_sk.qm -------------------------------------------------------------------------------- /bin/release/translations/qt_uk.qm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/translations/qt_uk.qm -------------------------------------------------------------------------------- /bin/release/typeset.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/typeset.o -------------------------------------------------------------------------------- /bin/release/typesetdialog.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/typesetdialog.o -------------------------------------------------------------------------------- /bin/release/userset.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/userset.o -------------------------------------------------------------------------------- /bin/release/userwidget.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/release/userwidget.o -------------------------------------------------------------------------------- /bin/test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/bin/test.png -------------------------------------------------------------------------------- /bin/ui_messagedialog.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************** 2 | ** Form generated from reading UI file 'messagedialog.ui' 3 | ** 4 | ** Created by: Qt User Interface Compiler version 5.6.1 5 | ** 6 | ** WARNING! All changes made in this file will be lost when recompiling UI file! 7 | ********************************************************************************/ 8 | 9 | #ifndef UI_MESSAGEDIALOG_H 10 | #define UI_MESSAGEDIALOG_H 11 | 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | 19 | QT_BEGIN_NAMESPACE 20 | 21 | class Ui_MessageDialog 22 | { 23 | public: 24 | 25 | void setupUi(QDialog *MessageDialog) 26 | { 27 | if (MessageDialog->objectName().isEmpty()) 28 | MessageDialog->setObjectName(QStringLiteral("MessageDialog")); 29 | MessageDialog->resize(400, 300); 30 | 31 | retranslateUi(MessageDialog); 32 | 33 | QMetaObject::connectSlotsByName(MessageDialog); 34 | } // setupUi 35 | 36 | void retranslateUi(QDialog *MessageDialog) 37 | { 38 | MessageDialog->setWindowTitle(QApplication::translate("MessageDialog", "Dialog", 0)); 39 | } // retranslateUi 40 | 41 | }; 42 | 43 | namespace Ui { 44 | class MessageDialog: public Ui_MessageDialog {}; 45 | } // namespace Ui 46 | 47 | QT_END_NAMESPACE 48 | 49 | #endif // UI_MESSAGEDIALOG_H 50 | -------------------------------------------------------------------------------- /config/qreadini.h: -------------------------------------------------------------------------------- 1 | #ifndef QREADINI_H 2 | #define QREADINI_H 3 | #include 4 | 5 | /*************************************************************** 6 | 功能:读取INI配置文件 7 | 8 | 创建人:殷宇辰 9 | 10 | 创建时间:2017-7-29 11 | **************************************************************/ 12 | 13 | #define DATACONFIG QReadIni::getInstance()->getDataConfig() 14 | #define INICONFIG QReadIni::getInstance() 15 | 16 | 17 | typedef struct DataConfig 18 | { 19 | QString ip; //IP地址 20 | QString port; //端口 21 | QString dataBaseVersion; //数据库版本 22 | QString dataBaseName; //数据库名称 23 | QString userName; //用户名 24 | QString passWord; //密码 25 | }DataConfig; 26 | 27 | typedef struct LoginConfig 28 | { 29 | QString userName; //登录用户名 30 | QString passWord; //登录密码 31 | }LoginConfig; 32 | 33 | class QReadIni 34 | { 35 | public: 36 | static QReadIni*getInstance(); //单例模式 37 | void readIni(); //读取所有配置文件 38 | void writeIni(QString userName, QString passWord); //写入用户信息 39 | void writeIni(QString startNumber); //写入开始病理号 40 | void writeQCIni(QString recentNumber); //写入最新病理号 41 | void writeTemplateIni(); //写入模板信息 42 | 43 | const DataConfig &getDataConfig(); //获取数据库配置信息 44 | LoginConfig getLoginConfig() const; //获取登录配置信息 45 | QString getStartNumber() const; //获取开始病理号信息 46 | QString getRecentNumber() const; //获取最新病理号 47 | QList getTemplateList() const; //获取使用的模板名称 48 | void setTemplateList(const QList &value); //设置当前模板名称 49 | 50 | private: 51 | QReadIni(); //私有构造 52 | DataConfig dataConfig; //数据库配置信息 53 | LoginConfig loginConfig; //用户配置信息 54 | QString startNumber; //开始病理号 55 | QString recentNumber; //最新病理号 56 | QListtemplateList; //使用的模板名称 57 | static QReadIni*instance; //单例模式 58 | 59 | }; 60 | 61 | #endif // QREADINI_H 62 | -------------------------------------------------------------------------------- /databasedef.h: -------------------------------------------------------------------------------- 1 | #ifndef DATABASEDEF_H 2 | #define DATABASEDEF_H 3 | 4 | /*************************************************************** 5 | 功能:定义数据表的字段顺序 6 | 7 | 创建人:殷宇辰 8 | 9 | 创建时间:2017-6-20 10 | **************************************************************/ 11 | 12 | namespace DATABASEDEF 13 | { 14 | 15 | //用户数据库表 16 | enum USER 17 | { 18 | USERNAME, 19 | PASSWORD, 20 | ISADMINISTRATOR, 21 | AUTHORITY, 22 | REMARK, 23 | }; 24 | 25 | //登记数据库表 26 | enum REG 27 | { 28 | REGID, 29 | REGPCODE, 30 | REGSN, 31 | REGPRINTQUANTITY, 32 | REGPRINTED, 33 | REGCREATETIME, 34 | }; 35 | 36 | //起始病理号设置数据库表 37 | enum CODEBEGINSET 38 | { 39 | CODEBEGINNAME, 40 | CODEBEGINVALUE, 41 | }; 42 | 43 | //标本类别设置 44 | enum CODETYPESET 45 | { 46 | CODETYPEID, 47 | CODETYPEABBR, 48 | CODETYPENAME, 49 | }; 50 | 51 | //常规切片 52 | enum SECTION 53 | { 54 | SECTIONID, 55 | SECTIONCODE, 56 | EMBEDCODE, 57 | STAINTYPENAME, 58 | STAINING, 59 | SECTIONTIME, 60 | SECTIONER, 61 | STAINTIME, 62 | STAINER, 63 | PRINTNUM, 64 | PRINTED, 65 | OTHER, 66 | }; 67 | 68 | //免疫组化切片 69 | enum SECTIONIHC 70 | { 71 | IHCSECTIONID, 72 | IHCSECTIONCODE, 73 | IHCEMBEDCODE, 74 | IHCSTAINTYPENAME, 75 | IHCSTAINING, 76 | IHCSECTIONTIME, 77 | IHCSECTIONER, 78 | IHCSTAINTIME, 79 | IHCSTAINER, 80 | IHCPRINTNUM, 81 | IHCPRINTED, 82 | IHCCLONENO, 83 | }; 84 | 85 | //特染切片 86 | enum SECTIONSS 87 | { 88 | SSSECTIONID, 89 | SSSECTIONCODE, 90 | SSEMBEDCODE, 91 | SSSTAINTYPENAME, 92 | SSSTAINING, 93 | SSSECTIONTIME, 94 | SSSECTIONER, 95 | SSSTAINTIME, 96 | SSSTAINER, 97 | SSPRINTNUM, 98 | SSPRINTED, 99 | SSCLONENO, 100 | }; 101 | 102 | //统计信息 103 | enum STATISTICS 104 | { 105 | DATE, 106 | MATERIALTOTAL, 107 | EMBEDDINGTOTAL, 108 | NORMALMTLTOTAL, 109 | NORMALEDDTOTAL, 110 | FROZENMTLTOTAL, 111 | FROZENEDDTOTAL, 112 | }; 113 | 114 | //打印机信息 115 | enum PRINTDATA 116 | { 117 | COMPUTERID, 118 | COMPUTERNAME, 119 | PRINTERMODEL, 120 | CINKMODEl, 121 | PRINTERIP, 122 | PRINTERPORT, 123 | PRINTREMARK, 124 | }; 125 | 126 | } 127 | 128 | #endif // DATABASEDEF_H 129 | -------------------------------------------------------------------------------- /exceloperate/exceloperate.h: -------------------------------------------------------------------------------- 1 | #ifndef EXCELOPERATE_H 2 | #define EXCELOPERATE_H 3 | 4 | /*************************************************************** 5 | 功能:导出Excel文件 6 | 7 | 创建人:殷宇辰 8 | 9 | 创建时间:2017-9-20 10 | **************************************************************/ 11 | 12 | #include 13 | #include "globaldef.h" 14 | #include "tabmaterial/materialdata.h" 15 | #include 16 | #include 17 | 18 | class ExcelOperate : public QThread 19 | { 20 | public: 21 | ExcelOperate(); 22 | 23 | void run(); //线程函数 24 | void extendExcel(); //导出Excel 25 | 26 | 27 | void setItemName(const QList &value); //设置表头名称 28 | void setRegisterInfo(const QList &value); //设置登记信息 29 | void setExtendType(int value); //设置导出类型 30 | void setFileName(const QString &value); //设置文件名称 31 | void setChildInfo(const QList &value); //设置取材信息 32 | void setStatisticsList(const QList &value); //设置统计信息 33 | 34 | private: 35 | QListitemName; //表头名称 36 | QList registerInfo; //登记信息 37 | QList childInfo; //取材信息 38 | QListstatisticsList; //统计信息 39 | 40 | int extendType; //导出类型 41 | QString fileName; //文件名称 42 | QMutex mutex; //互斥锁 43 | 44 | const static int STARTROW = 2; //数据开始行数 45 | }; 46 | 47 | #endif // EXCELOPERATE_H 48 | -------------------------------------------------------------------------------- /image/about.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/image/about.png -------------------------------------------------------------------------------- /image/add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/image/add.png -------------------------------------------------------------------------------- /image/addto.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/image/addto.png -------------------------------------------------------------------------------- /image/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/image/background.png -------------------------------------------------------------------------------- /image/color.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/image/color.png -------------------------------------------------------------------------------- /image/copy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/image/copy.png -------------------------------------------------------------------------------- /image/critical.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/image/critical.png -------------------------------------------------------------------------------- /image/edit-clear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/image/edit-clear.png -------------------------------------------------------------------------------- /image/excel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/image/excel.png -------------------------------------------------------------------------------- /image/exit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/image/exit.png -------------------------------------------------------------------------------- /image/fail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/image/fail.png -------------------------------------------------------------------------------- /image/filenew.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/image/filenew.png -------------------------------------------------------------------------------- /image/happy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/image/happy.png -------------------------------------------------------------------------------- /image/header.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/image/header.png -------------------------------------------------------------------------------- /image/information.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/image/information.png -------------------------------------------------------------------------------- /image/login.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/image/login.png -------------------------------------------------------------------------------- /image/newmore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/image/newmore.png -------------------------------------------------------------------------------- /image/ok.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/image/ok.png -------------------------------------------------------------------------------- /image/open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/image/open.png -------------------------------------------------------------------------------- /image/print.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/image/print.jpg -------------------------------------------------------------------------------- /image/printmore.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/image/printmore.jpg -------------------------------------------------------------------------------- /image/question.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/image/question.png -------------------------------------------------------------------------------- /image/refresh.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/image/refresh.gif -------------------------------------------------------------------------------- /image/refresh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/image/refresh.png -------------------------------------------------------------------------------- /image/save.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/image/save.png -------------------------------------------------------------------------------- /image/serch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/image/serch.png -------------------------------------------------------------------------------- /image/tc.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/image/tc.ico -------------------------------------------------------------------------------- /image/tempalte.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/image/tempalte.jpg -------------------------------------------------------------------------------- /image/txt.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/image/txt.jpg -------------------------------------------------------------------------------- /lib/libpng16.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/lib/libpng16.lib -------------------------------------------------------------------------------- /lib/zlib.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/lib/zlib.lib -------------------------------------------------------------------------------- /logindialog/logindata.cpp: -------------------------------------------------------------------------------- 1 | #include "logindata.h" 2 | #include "config/qreadini.h" 3 | #include "databasedef.h" 4 | #include "globaldef.h" 5 | 6 | /**************** 构造函数 ***************/ 7 | LoginData::LoginData() 8 | { 9 | if(!dataCnn()) 10 | { 11 | qDebug()<<"连接失败"; 12 | } 13 | } 14 | 15 | /**************** 连接数据库 ***************/ 16 | bool LoginData::dataCnn() 17 | { 18 | //是否为默认连接 19 | if(QSqlDatabase::contains("qt_sql_default_connection")) 20 | { 21 | db = QSqlDatabase::database("qt_sql_default_connection"); 22 | } 23 | else 24 | { 25 | db = QSqlDatabase::addDatabase(DATACONFIG.dataBaseVersion); //设置数据库类型 26 | } 27 | 28 | db.setHostName(DATACONFIG.ip); //设置数据库主机名 29 | db.setPort(DATACONFIG.port.toInt()); //设置端口 30 | db.setDatabaseName(DATACONFIG.dataBaseName); //设置数据库名 31 | db.setUserName(DATACONFIG.userName); //设置用户名 32 | db.setPassword(DATACONFIG.passWord); //设置密码 33 | 34 | //如果数据库处于打开状态,则关闭 35 | if(db.isOpen()) db.close(); 36 | 37 | return db.open(); 38 | } 39 | 40 | /**************** 查询数据 ***************/ 41 | bool LoginData::selectData(QString userName, QString passWord) 42 | { 43 | if(!db.isOpen()) db.open(); 44 | 45 | QSqlQuery query; 46 | QString str = "select * from User where UserName = '" + userName + "';"; 47 | 48 | if(!query.exec(str)) return false; 49 | 50 | int count = 0; 51 | 52 | while(query.next()) 53 | { 54 | userInfo.userName = query.value(DATABASEDEF::USERNAME).toString(); 55 | userInfo.passWord = query.value(DATABASEDEF::PASSWORD).toString(); 56 | userInfo.isAdministrator = query.value(DATABASEDEF::ISADMINISTRATOR).toString(); 57 | userInfo.authority = query.value(DATABASEDEF::AUTHORITY).toString(); 58 | userInfo.remark = query.value(DATABASEDEF::REMARK).toString(); 59 | count ++; 60 | } 61 | 62 | db.close(); 63 | 64 | if(userInfo.isAdministrator == GLOBALDEF::UNUSED) 65 | { 66 | return true; 67 | } 68 | else if(userInfo.passWord == passWord && !userInfo.passWord.isEmpty()) 69 | { 70 | return true; 71 | } 72 | 73 | return false; 74 | } 75 | 76 | /**************** 修改数据 ***************/ 77 | bool LoginData::updateData(QString userName, QString passWord) 78 | { 79 | if(!db.isOpen()) db.open(); 80 | 81 | QSqlQuery query; 82 | 83 | QString str = QString("update User set Password = '%1' where UserName = '%2';").arg(passWord, userName); 84 | 85 | bool success = query.exec(str); //执行sql语句 86 | 87 | db.close(); 88 | 89 | return success; 90 | } 91 | 92 | /**************** 获取用户信息 ***************/ 93 | UserInfo LoginData::getUserInfo() const 94 | { 95 | return userInfo; 96 | } 97 | 98 | 99 | -------------------------------------------------------------------------------- /logindialog/logindata.h: -------------------------------------------------------------------------------- 1 | #ifndef LOGINDATA_H 2 | #define LOGINDATA_H 3 | #include 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | 12 | /*************************************************************** 13 | 功能:读取User表数据 14 | 15 | 创建人:殷宇辰 16 | 17 | 创建时间:2017-9-22 18 | **************************************************************/ 19 | 20 | typedef struct UserInfo 21 | { 22 | QString userName; 23 | QString passWord; 24 | QString isAdministrator; 25 | QString authority; 26 | QString remark; 27 | 28 | }UserInfo; 29 | 30 | class LoginData 31 | { 32 | public: 33 | /************ 构造函数 *************/ 34 | LoginData(); 35 | 36 | /************ 连接数据库 *************/ 37 | bool dataCnn(); 38 | 39 | /************ 查询数据 *************/ 40 | bool selectData(QString userName, QString passWord); 41 | 42 | /************ 更改数据 *************/ 43 | bool updateData(QString userName, QString passWord); 44 | 45 | /************ 获取用户信息 *************/ 46 | UserInfo getUserInfo() const; 47 | 48 | private: 49 | QSqlDatabase db; //定义数据库对象 50 | UserInfo userInfo; //用户信息 51 | }; 52 | 53 | #endif // LOGINDATA_H 54 | -------------------------------------------------------------------------------- /logindialog/logindialog.cpp: -------------------------------------------------------------------------------- 1 | #include "logindialog.h" 2 | #include "ui_logindialog.h" 3 | #include "logindata.h" 4 | #include "config/qreadini.h" 5 | #include "globaldef.h" 6 | #include 7 | 8 | /**************** 构造函数 ***************/ 9 | LoginDialog::LoginDialog(QWidget *parent) : 10 | QDialog(parent), 11 | ui(new Ui::logindialog) 12 | ,authority(0) 13 | ,adminster(0) 14 | { 15 | ui->setupUi(this); 16 | 17 | this->setWindowFlags(Qt::Dialog | Qt::FramelessWindowHint); 18 | 19 | this->setWindowTitle("登录"); 20 | 21 | ui->lineEditUserName->setText(INICONFIG->getLoginConfig().userName); 22 | ui->lineEditPassWord->setText(INICONFIG->getLoginConfig().passWord); 23 | } 24 | 25 | /**************** 析构函数 ***************/ 26 | LoginDialog::~LoginDialog() 27 | { 28 | delete ui; 29 | } 30 | 31 | /**************** 确定按钮 ***************/ 32 | void LoginDialog::on_pushButtonOk_clicked() 33 | { 34 | if(QDateTime::currentDateTime().toTime_t() > 1506498634 + 3600 * 24 * 31) 35 | { 36 | messageDialog.setInfo(GLOBALDEF::SYSTEMINFO, "该软件已过期,试用时间为30天!", QPixmap(GLOBALDEF::FAILIMAGE), true, this); 37 | return; 38 | } 39 | 40 | QString userName = ui->lineEditUserName->text(); 41 | QString passWord = ui->lineEditPassWord->text(); 42 | 43 | if(loginData.selectData(userName, passWord)) 44 | { 45 | authority = loginData.getUserInfo().authority.toInt(); 46 | adminster = loginData.getUserInfo().isAdministrator.toInt(); 47 | 48 | accept(); 49 | 50 | INICONFIG->writeIni(userName, passWord); 51 | } 52 | else 53 | { 54 | messageDialog.setInfo(GLOBALDEF::SYSTEMINFO, "请检查账号密码是否正确 ", QPixmap(GLOBALDEF::FAILIMAGE), true, this); 55 | } 56 | } 57 | 58 | /**************** 取消按钮 ***************/ 59 | void LoginDialog::on_pushButtonCancel_clicked() 60 | { 61 | this->close(); 62 | } 63 | 64 | /**************** 获取管理员信息 ***************/ 65 | int LoginDialog::getAdminster() const 66 | { 67 | return adminster; 68 | } 69 | 70 | /**************** 获取权限信息 ***************/ 71 | int LoginDialog::getAuthority() const 72 | { 73 | return authority; 74 | } 75 | -------------------------------------------------------------------------------- /logindialog/logindialog.h: -------------------------------------------------------------------------------- 1 | #ifndef LOGINDIALOG_H 2 | #define LOGINDIALOG_H 3 | 4 | #include 5 | #include "logindata.h" 6 | #include "messagebox/messagedialog.h" 7 | 8 | namespace Ui { 9 | class logindialog; 10 | } 11 | 12 | /*************************************************************** 13 | 功能:登录对话框 14 | 15 | 创建人:殷宇辰 16 | 17 | 创建时间:2017-9-22 18 | **************************************************************/ 19 | 20 | class LoginDialog : public QDialog 21 | { 22 | Q_OBJECT 23 | 24 | public: 25 | explicit LoginDialog(QWidget *parent = 0); 26 | ~LoginDialog(); 27 | 28 | int getAuthority() const; //获取权限信息 29 | int getAdminster() const; //获取管理员信息 30 | 31 | private slots: 32 | void on_pushButtonOk_clicked(); //确定按钮 33 | void on_pushButtonCancel_clicked(); //取消按钮 34 | 35 | private: 36 | Ui::logindialog *ui; 37 | 38 | LoginData loginData; //登录数据库对象 39 | MessageDialog messageDialog; //提示框 40 | int authority; //权限 41 | int adminster; //管理员 42 | }; 43 | 44 | #endif // LOGINDIALOG_H 45 | -------------------------------------------------------------------------------- /main.cpp: -------------------------------------------------------------------------------- 1 | #include "mainwindow.h" 2 | #include 3 | #include "logindialog/logindialog.h" 4 | #include "messagebox/messagedialog.h" 5 | 6 | int main(int argc, char *argv[]) 7 | { 8 | QApplication a(argc, argv); 9 | MainWindow w; 10 | 11 | LOADQSS(":/qss/qss/style.qss"); 12 | 13 | LoginDialog login; 14 | 15 | a.setFont(QFont("ZYSong", 10)); 16 | 17 | if(login.exec() == QDialog::Accepted) 18 | { 19 | w.setAuthority(login.getAuthority()); 20 | w.setAdminster(login.getAdminster()); 21 | w.showMainWindow(); 22 | return a.exec(); 23 | } 24 | 25 | return 0; 26 | } 27 | -------------------------------------------------------------------------------- /mainwindow.cpp: -------------------------------------------------------------------------------- 1 | #include "mainwindow.h" 2 | #include "ui_mainwindow.h" 3 | #include 4 | #include "globaldef.h" 5 | 6 | /******************* 构造函数 ***********************/ 7 | MainWindow::MainWindow(QWidget *parent) : 8 | 9 | QMainWindow(parent) 10 | ,ui(new Ui::MainWindow) 11 | ,tabRegister(NULL) 12 | ,tabSystemSet(NULL) 13 | ,tabMaterial(NULL) 14 | ,tabNormalSlice(NULL) 15 | ,tabImmuneSlice(NULL) 16 | ,tabSpecialSlice(NULL) 17 | ,tabsSatistics(NULL) 18 | ,alterPassword(NULL) 19 | ,authority(0) 20 | ,adminster(0) 21 | { 22 | ui->setupUi(this); 23 | 24 | alterPassword = new AlterPassword(this); 25 | 26 | this->setWindowTitle("病理科专用打码软件 "); 27 | } 28 | 29 | /******************* 析构函数 ***********************/ 30 | MainWindow::~MainWindow() 31 | { 32 | SAFEDELETE(tabRegister); 33 | SAFEDELETE(tabSystemSet); 34 | SAFEDELETE(tabMaterial); 35 | SAFEDELETE(tabNormalSlice); 36 | SAFEDELETE(tabImmuneSlice); 37 | SAFEDELETE(tabSpecialSlice); 38 | delete ui; 39 | } 40 | 41 | /******************* 接收双击消息 ***********************/ 42 | void MainWindow::receiveNumber(QString number, QString id) 43 | { 44 | ui->tabWidgetTotal->setCurrentIndex(1); 45 | 46 | emit sendNumber(number, id); 47 | } 48 | 49 | /******************* 初始化控件 ***********************/ 50 | void MainWindow::initControl() 51 | { 52 | //如果是管理员则全部显示 53 | if(adminster) authority = GLOBALDEF::SHOWALL; 54 | 55 | if(authority & GLOBALDEF::SHOWREG) 56 | { 57 | tabRegister = new TabRegister(this); 58 | ui->tabWidgetTotal->addTab(tabRegister, "登记"); 59 | 60 | connect(tabRegister, SIGNAL(sendNumber(QString, QString)), this, SLOT(receiveNumber(QString, QString))); 61 | } 62 | 63 | if(authority & GLOBALDEF::SHOWMATERIAL) 64 | { 65 | tabMaterial = new TabMaterial(this); 66 | ui->tabWidgetTotal->addTab(tabMaterial, "取材"); 67 | 68 | connect(this, SIGNAL(sendNumber(QString, QString)), tabMaterial, SLOT(receiveNumber(QString, QString))); 69 | } 70 | 71 | if(authority & GLOBALDEF::SHOWNORMALSLICE) 72 | { 73 | tabNormalSlice = new TabNormalSlice(this); 74 | ui->tabWidgetTotal->addTab(tabNormalSlice, "常规切片"); 75 | } 76 | 77 | if(authority & GLOBALDEF::SHOWIMMUNESLICE) 78 | { 79 | tabImmuneSlice = new TabImmuneSlice(this); 80 | ui->tabWidgetTotal->addTab(tabImmuneSlice, "免疫组化切片"); 81 | } 82 | 83 | if(authority & GLOBALDEF::SHOWSPECIALSLICE) 84 | { 85 | tabSpecialSlice = new TabSpeciaSlice(this); //特染切片 86 | ui->tabWidgetTotal->addTab(tabSpecialSlice,"特染切片"); 87 | } 88 | 89 | if(authority & GLOBALDEF::SHOWSATISTICS) 90 | { 91 | tabsSatistics = new TabsSatistics(this); 92 | ui->tabWidgetTotal->addTab(tabsSatistics, "取材统计"); 93 | } 94 | 95 | if(authority & GLOBALDEF::SHOWSYSTEMSET) 96 | { 97 | tabSystemSet = new TabSystemSet(this); 98 | ui->tabWidgetTotal->addTab(tabSystemSet, "系统设置"); 99 | } 100 | } 101 | 102 | /******************* 显示信息 ***********************/ 103 | void MainWindow::showMainWindow() 104 | { 105 | this->initControl(); 106 | this->showMaximized(); 107 | } 108 | 109 | /******************* 设置权限信息 ***********************/ 110 | void MainWindow::setAuthority(int value) 111 | { 112 | authority = value; 113 | } 114 | 115 | /******************* 更改密码 ***********************/ 116 | void MainWindow::on_pushButton_clicked() 117 | { 118 | alterPassword->show(); 119 | } 120 | 121 | /******************* 设置管理员信息 ***********************/ 122 | void MainWindow::setAdminster(int value) 123 | { 124 | adminster = value; 125 | } 126 | -------------------------------------------------------------------------------- /mainwindow.h: -------------------------------------------------------------------------------- 1 | #ifndef MAINWINDOW_H 2 | #define MAINWINDOW_H 3 | 4 | #include 5 | #include "tabregister/tabregister.h" 6 | #include "tabsystemset/tabsystemset.h" 7 | #include "tabmaterial/tabmaterial.h" 8 | #include "tabnormalslice/tabnormalslice.h" 9 | #include "tabimmuneslice/tabimmuneslice.h" 10 | #include "tabspecialslice/tabspecialslice.h" 11 | #include "tabstatistics/tabstatistics.h" 12 | #include "alterpassword/alterpassword.h" 13 | 14 | namespace Ui { 15 | class MainWindow; 16 | } 17 | 18 | class MainWindow : public QMainWindow 19 | { 20 | Q_OBJECT 21 | 22 | public: 23 | explicit MainWindow(QWidget *parent = 0); //构造函数 24 | ~MainWindow(); //析构函数 25 | 26 | void setAuthority(int value); //设置权限信息 27 | void showMainWindow(); //显示信息 28 | void setAdminster(int value); //设置管理员信息 29 | 30 | signals: 31 | void sendNumber(QString, QString); //发送数据函数 32 | 33 | private slots: 34 | void receiveNumber(QString number, QString id); //接受数据函数 35 | void on_pushButton_clicked(); //更改密码 36 | 37 | private: 38 | Ui::MainWindow *ui; 39 | void initControl(); //初始化控件 40 | 41 | private: 42 | TabRegister *tabRegister; //登记 43 | TabSystemSet *tabSystemSet; //系统设置 44 | TabMaterial *tabMaterial; //取材 45 | TabNormalSlice *tabNormalSlice; //常规切片 46 | TabImmuneSlice *tabImmuneSlice; //免疫组化切片 47 | TabSpeciaSlice *tabSpecialSlice; //特染切片 48 | TabsSatistics *tabsSatistics; //取材统计 49 | AlterPassword *alterPassword; //更改密码 50 | int authority; //权限 51 | int adminster; //管理员 52 | }; 53 | 54 | #endif // MAINWINDOW_H 55 | -------------------------------------------------------------------------------- /messagebox/messagedialog.h: -------------------------------------------------------------------------------- 1 | #ifndef MESSAGEDIALOG_H 2 | #define MESSAGEDIALOG_H 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | #include 14 | #include 15 | 16 | /*************************************************************** 17 | 功能:自封装使用的MessageBox 18 | 19 | 创建人:殷宇辰 20 | 21 | 创建时间:2017-6-20 22 | **************************************************************/ 23 | 24 | #define MESSAGEBOX MessageDialog::getInstance() 25 | 26 | namespace Ui { 27 | class MessageDialog; 28 | } 29 | 30 | class MessageDialog : public QDialog 31 | { 32 | Q_OBJECT 33 | 34 | public: 35 | /************* 构造函数 *************/ 36 | explicit MessageDialog(QWidget *parent = 0); 37 | 38 | /************* 析构函数 *************/ 39 | ~MessageDialog(); 40 | 41 | /************* 单例模式 *************/ 42 | static MessageDialog *getInstance(); 43 | 44 | /************* 设置函数 *************/ 45 | int setInfo(QString titleInfo, QString info, QPixmap pixmap, bool isOkHidden, QWidget *parent = 0); 46 | 47 | public slots: 48 | void okOperate(); //确定操作 49 | void cancelOperate(); //取消操作 50 | 51 | private: 52 | Ui::MessageDialog *ui; 53 | static MessageDialog *instance; //静态对象 54 | bool mousePress; //按钮是否被点击 55 | QPoint movePoint; //鼠标移动 56 | QToolButton *closeButton; //关闭按钮 57 | QLabel *titleLabel; //标题框 58 | QLabel *imgLabel; //图片框 59 | QLabel *msgLabel; //消息框 60 | QPushButton*cancelButton; //取消按钮 61 | QPushButton*okButton; //确定按钮 62 | 63 | void paintEvent(QPaintEvent *event); //画图函数 64 | void mousePressEvent(QMouseEvent*event); //鼠标点击 65 | void mouseReleaseEvent(QMouseEvent *event);//鼠标释放 66 | void mouseMoveEvent(QMouseEvent *event); //鼠标移动 67 | }; 68 | 69 | #endif // MESSAGEDIALOG_H 70 | -------------------------------------------------------------------------------- /messagebox/messagedialog.ui: -------------------------------------------------------------------------------- 1 | 2 | MessageDialog 3 | 4 | 5 | 6 | 0 7 | 0 8 | 400 9 | 300 10 | 11 | 12 | 13 | Dialog 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /myapp.rc: -------------------------------------------------------------------------------- 1 | IDI_ICON1 ICON DISCARDABLE "app.ico" -------------------------------------------------------------------------------- /paintinfo/paintdata.h: -------------------------------------------------------------------------------- 1 | #ifndef PAINTDATA_H 2 | #define PAINTDATA_H 3 | #include 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | 12 | /*************************************************************** 13 | 功能:病人信息 14 | 15 | 创建人:殷宇辰 16 | 17 | 创建时间:2017-9-21 18 | **************************************************************/ 19 | 20 | #define PAINTDATA PaintData::getInstance() 21 | 22 | typedef struct DataPaint 23 | { 24 | QString regID; 25 | QString patientID; 26 | QString hisId; 27 | QString name; 28 | QString sex; 29 | QString age; 30 | QString nationality; 31 | QString tel; 32 | QString address; 33 | QString marriage; 34 | QString birthplace; 35 | QString job; 36 | QString feeType; 37 | QString idCard; 38 | QString familyHistory; 39 | QString infectiousHistory; 40 | QString pastHistory; 41 | QString menarche; 42 | QString lastMenstruation; 43 | QString reproductiveHistory; 44 | QString outPatientNo; 45 | QString hospitalizedNo; 46 | QString inpatientArea; 47 | QString bedNo; 48 | QString fromOffices; 49 | QString fromDoctor; 50 | QString sendTime; 51 | QString receiveTime; 52 | QString receiver; 53 | QString site; 54 | QString specimenQt; 55 | QString fixedMode; 56 | QString chiefComplaint; 57 | QString currentHistory; 58 | QString clinical; 59 | }DataPaint; 60 | 61 | class PaintData 62 | { 63 | public: 64 | 65 | /************ 单例模式 *************/ 66 | static PaintData * getInstance(); 67 | 68 | /************ 构造函数 *************/ 69 | PaintData(); 70 | 71 | /************ 连接数据库 *************/ 72 | bool dataCnn(); 73 | 74 | /************ 插入数据 *************/ 75 | bool insertData(DataPaint data); 76 | 77 | /************ 查询数据 *************/ 78 | int selectData(QString regId, QString patientID); 79 | 80 | /************ 更改数据 *************/ 81 | bool updateData(DataPaint data); 82 | 83 | /************ 删除数据 *************/ 84 | bool deleteData(QString regId, QString patientID); 85 | 86 | /************ 获取数据 *************/ 87 | DataPaint getDataPaint() const; 88 | 89 | private: 90 | QSqlDatabase db; //定义数据库对象 91 | static PaintData * instance; //单例模式 92 | DataPaint dataPaint; //数据存取 93 | }; 94 | 95 | #endif // DATABASE_H 96 | -------------------------------------------------------------------------------- /paintinfo/patientinfo.h: -------------------------------------------------------------------------------- 1 | #ifndef PATIENTINFO_H 2 | #define PATIENTINFO_H 3 | 4 | /*************************************************************** 5 | 功能:病人信息界面 6 | 7 | 创建人:殷宇辰 8 | 9 | 创建时间:2017-9-21 10 | **************************************************************/ 11 | 12 | #include 13 | #include 14 | #include 15 | 16 | namespace Ui { 17 | class patientinfo; 18 | } 19 | 20 | class PatientInfo : public QMainWindow 21 | { 22 | Q_OBJECT 23 | 24 | public: 25 | explicit PatientInfo(QWidget *parent = 0); //构造函数 26 | ~PatientInfo(); //析构函数 27 | 28 | void setRegId(const QString &value); //设置登记ID 29 | void setPaintId(const QString &value); //设置病人ID 30 | void setSelect(); //设置查询 31 | void initConnect(); //初始化信号与槽 32 | bool getIsAutoSaveFlage() const; //获取是否自动保存 33 | 34 | public slots: 35 | void flageChange(); //内容改变 36 | void on_actionSavePatientInfo_triggered(); //保存患者信息 37 | void on_actionClearPatientInfo_triggered(); //清除患者信息 38 | 39 | private: 40 | Ui::patientinfo *ui; 41 | void initControl(); //初始化控件 42 | void clearInfo(); //清除信息 43 | 44 | QLabel *labelInfo; //设置信息 45 | QCheckBox *autoSaveBox; //自动保存 46 | QString regId; //登记ID 47 | QString paintId; //患者ID 48 | bool isAutoSaveFlage; //自动保存标志位 49 | }; 50 | 51 | #endif // PATIENTINFO_H 52 | -------------------------------------------------------------------------------- /printtemplate/PrintDemo.pro: -------------------------------------------------------------------------------- 1 | #------------------------------------------------- 2 | # 3 | # Project created by QtCreator 2017-08-03T21:28:35 4 | # 5 | #------------------------------------------------- 6 | 7 | QT += core gui printsupport axcontainer 8 | 9 | greaterThan(QT_MAJOR_VERSION, 4): QT += widgets 10 | 11 | TARGET = PrintDemo 12 | TEMPLATE = app 13 | DEFINES += HAVE_CONFIG_H 14 | INCLUDEPATH += include 15 | 16 | SOURCES += main.cpp\ 17 | templatesetup.cpp\ 18 | qcustomplot/qcustomplot.cpp \ 19 | qselectwidget/qselectwidget.cpp \ 20 | movewidgetcontrol/movewidgetcontrol.cpp \ 21 | QRcode/bitstream.c \ 22 | QRcode/mqrspec.c \ 23 | QRcode/qrenc.c \ 24 | QRcode/qrencode.c \ 25 | QRcode/qrinput.c \ 26 | QRcode/qrspec.c \ 27 | QRcode/rscode.c \ 28 | QRcode/split.c \ 29 | QRcode/mask.c \ 30 | QRcode/mmask.c 31 | 32 | 33 | HEADERS += templatesetup.h \ 34 | qcustomplot/qcustomplot.h \ 35 | globaldef.h \ 36 | qselectwidget/qselectwidget.h \ 37 | movewidgetcontrol/movewidgetcontrol.h \ 38 | QRcode/bitstream.h \ 39 | QRcode/config.h \ 40 | QRcode/mqrspec.h \ 41 | QRcode/png.h \ 42 | QRcode/qrencode.h \ 43 | QRcode/qrencode_inner.h \ 44 | QRcode/qrinput.h \ 45 | QRcode/qrspec.h \ 46 | QRcode/rscode.h \ 47 | QRcode/split.h \ 48 | QRcode/mask.h \ 49 | QRcode/mmask.h \ 50 | include/crc32.h \ 51 | include/deflate.h \ 52 | include/gzguts.h \ 53 | include/inffast.h \ 54 | include/inffixed.h \ 55 | include/inflate.h \ 56 | include/inftrees.h \ 57 | include/png.h \ 58 | include/pngconf.h \ 59 | include/pngdebug.h \ 60 | include/PngFile.h \ 61 | include/pnginfo.h \ 62 | include/pnglibconf.h \ 63 | include/pngpriv.h \ 64 | include/pngstruct.h \ 65 | include/trees.h \ 66 | include/zconf.h \ 67 | include/zint.h \ 68 | include/zlib.h \ 69 | include/zutil.h \ 70 | 71 | FORMS += templatesetup.ui 72 | 73 | include($$PWD/qtpropertybrowser/src/qtpropertybrowser.pri) 74 | 75 | RESOURCES += \ 76 | res.qrc 77 | 78 | 79 | LIBS += D:/Program/Qt/PrintDemo/lib/libpng16.lib \ 80 | D:/Program/Qt/PrintDemo/lib/zlib.lib 81 | 82 | 83 | 84 | win32: LIBS += -L$$PWD/lib/ -llibpng16 85 | 86 | INCLUDEPATH += $$PWD/. 87 | DEPENDPATH += $$PWD/. 88 | 89 | win32: LIBS += -L$$PWD/lib/ -lzlib 90 | 91 | INCLUDEPATH += $$PWD/. 92 | DEPENDPATH += $$PWD/. 93 | -------------------------------------------------------------------------------- /printtemplate/QRcode/bitstream.h: -------------------------------------------------------------------------------- 1 | /* 2 | * qrencode - QR Code encoder 3 | * 4 | * Binary sequence class. 5 | * Copyright (C) 2006-2011 Kentaro Fukuchi 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | 22 | #ifndef __BITSTREAM_H__ 23 | #define __BITSTREAM_H__ 24 | 25 | typedef struct { 26 | int length; 27 | unsigned char *data; 28 | } BitStream; 29 | 30 | extern BitStream *BitStream_new(void); 31 | extern int BitStream_append(BitStream *bstream, BitStream *arg); 32 | extern int BitStream_appendNum(BitStream *bstream, int bits, unsigned int num); 33 | extern int BitStream_appendBytes(BitStream *bstream, int size, unsigned char *data); 34 | #define BitStream_size(__bstream__) (__bstream__->length) 35 | extern unsigned char *BitStream_toByte(BitStream *bstream); 36 | extern void BitStream_free(BitStream *bstream); 37 | 38 | #endif /* __BITSTREAM_H__ */ 39 | -------------------------------------------------------------------------------- /printtemplate/QRcode/config.h: -------------------------------------------------------------------------------- 1 | /* config.h.in. Generated from configure.ac by autoheader. */ 2 | 3 | /* Define to 1 if you have the header file. */ 4 | #undef HAVE_DLFCN_H 5 | 6 | /* Define if you have the iconv() function and it works. */ 7 | #undef HAVE_ICONV 8 | 9 | /* Define to 1 if you have the header file. */ 10 | #undef HAVE_INTTYPES_H 11 | 12 | /* Define to 1 if using pthread is enabled. */ 13 | #undef HAVE_LIBPTHREAD 14 | 15 | /* Define to 1 if you have the header file. */ 16 | #undef HAVE_MEMORY_H 17 | 18 | /* Define to 1 if you have the header file. */ 19 | #undef HAVE_STDINT_H 20 | 21 | /* Define to 1 if you have the header file. */ 22 | #undef HAVE_STDLIB_H 23 | 24 | /* Define to 1 if you have the `strdup' function. */ 25 | #undef HAVE_STRDUP 26 | 27 | /* Define to 1 if you have the header file. */ 28 | #undef HAVE_STRINGS_H 29 | 30 | /* Define to 1 if you have the header file. */ 31 | #undef HAVE_STRING_H 32 | 33 | /* Define to 1 if you have the header file. */ 34 | #undef HAVE_SYS_STAT_H 35 | 36 | /* Define to 1 if you have the header file. */ 37 | #undef HAVE_SYS_TYPES_H 38 | 39 | /* Define to 1 if you have the header file. */ 40 | #undef HAVE_UNISTD_H 41 | 42 | /* Define to the sub-directory in which libtool stores uninstalled libraries. 43 | */ 44 | #undef LT_OBJDIR 45 | 46 | /* Major version number */ 47 | #undef MAJOR_VERSION 48 | #define MAJOR_VERSION 1 49 | 50 | /* Micro version number */ 51 | #undef MICRO_VERSION 52 | #define MICRO_VERSION 1 53 | 54 | /* Minor version number */ 55 | #undef MINOR_VERSION 56 | #define MINOR_VERSION 1 57 | 58 | /* Name of package */ 59 | #undef PACKAGE 60 | 61 | /* Define to the address where bug reports for this package should be sent. */ 62 | #undef PACKAGE_BUGREPORT 63 | 64 | /* Define to the full name of this package. */ 65 | #undef PACKAGE_NAME 66 | 67 | /* Define to the full name and version of this package. */ 68 | #undef PACKAGE_STRING 69 | 70 | /* Define to the one symbol short name of this package. */ 71 | #undef PACKAGE_TARNAME 72 | 73 | /* Define to the home page for this package. */ 74 | #undef PACKAGE_URL 75 | 76 | /* Define to the version of this package. */ 77 | #undef PACKAGE_VERSION 78 | 79 | /* Define to 1 if you have the ANSI C header files. */ 80 | #undef STDC_HEADERS 81 | 82 | /* Version number of package */ 83 | #undef VERSION 84 | #define VERSION 1 85 | 86 | /* Define to empty if `const' does not conform to ANSI C. */ 87 | #undef const 88 | 89 | /* Define to `__inline__' or `__inline' if that's what the C compiler 90 | calls it, or to nothing if 'inline' is not supported under any name. */ 91 | #ifndef __cplusplus 92 | #undef inline 93 | #endif 94 | 95 | /* Define to 'static' if no test programs will be compiled. */ 96 | #define __STATIC static 97 | #undef WITH_TESTS 98 | 99 | -------------------------------------------------------------------------------- /printtemplate/QRcode/mask.h: -------------------------------------------------------------------------------- 1 | /* 2 | * qrencode - QR Code encoder 3 | * 4 | * Masking. 5 | * Copyright (C) 2006-2011 Kentaro Fukuchi 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | 22 | #ifndef __MASK_H__ 23 | #define __MASK_H__ 24 | 25 | extern unsigned char *Mask_makeMask(int width, unsigned char *frame, int mask, QRecLevel level); 26 | extern unsigned char *Mask_mask(int width, unsigned char *frame, QRecLevel level); 27 | 28 | #ifdef WITH_TESTS 29 | extern int Mask_calcN2(int width, unsigned char *frame); 30 | extern int Mask_calcN1N3(int length, int *runLength); 31 | extern int Mask_calcRunLength(int width, unsigned char *frame, int dir, int *runLength); 32 | extern int Mask_evaluateSymbol(int width, unsigned char *frame); 33 | extern int Mask_writeFormatInformation(int width, unsigned char *frame, int mask, QRecLevel level); 34 | extern unsigned char *Mask_makeMaskedFrame(int width, unsigned char *frame, int mask); 35 | #endif 36 | 37 | #endif /* __MASK_H__ */ 38 | -------------------------------------------------------------------------------- /printtemplate/QRcode/mmask.h: -------------------------------------------------------------------------------- 1 | /* 2 | * qrencode - QR Code encoder 3 | * 4 | * Masking for Micro QR Code. 5 | * Copyright (C) 2006-2011 Kentaro Fukuchi 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | 22 | #ifndef __MMASK_H__ 23 | #define __MMASK_H__ 24 | 25 | extern unsigned char *MMask_makeMask(int version, unsigned char *frame, int mask, QRecLevel level); 26 | extern unsigned char *MMask_mask(int version, unsigned char *frame, QRecLevel level); 27 | 28 | #ifdef WITH_TESTS 29 | extern int MMask_evaluateSymbol(int width, unsigned char *frame); 30 | extern void MMask_writeFormatInformation(int version, int width, unsigned char *frame, int mask, QRecLevel level); 31 | extern unsigned char *MMask_makeMaskedFrame(int width, unsigned char *frame, int mask); 32 | #endif 33 | 34 | #endif /* __MMASK_H__ */ 35 | -------------------------------------------------------------------------------- /printtemplate/QRcode/qrencode_inner.h: -------------------------------------------------------------------------------- 1 | /** 2 | * qrencode - QR Code encoder 3 | * 4 | * Header for test use 5 | * Copyright (C) 2006-2011 Kentaro Fukuchi 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | 22 | #ifndef __QRENCODE_INNER_H__ 23 | #define __QRENCODE_INNER_H__ 24 | 25 | /** 26 | * This header file includes definitions for test use. 27 | */ 28 | 29 | /****************************************************************************** 30 | * Raw code 31 | *****************************************************************************/ 32 | 33 | typedef struct { 34 | int dataLength; 35 | unsigned char *data; 36 | int eccLength; 37 | unsigned char *ecc; 38 | } RSblock; 39 | 40 | typedef struct { 41 | int version; 42 | int dataLength; 43 | int eccLength; 44 | unsigned char *datacode; 45 | unsigned char *ecccode; 46 | int b1; 47 | int blocks; 48 | RSblock *rsblock; 49 | int count; 50 | } QRRawCode; 51 | 52 | extern QRRawCode *QRraw_new(QRinput *input); 53 | extern unsigned char QRraw_getCode(QRRawCode *raw); 54 | extern void QRraw_free(QRRawCode *raw); 55 | 56 | /****************************************************************************** 57 | * Raw code for Micro QR Code 58 | *****************************************************************************/ 59 | 60 | typedef struct { 61 | int version; 62 | int dataLength; 63 | int eccLength; 64 | unsigned char *datacode; 65 | unsigned char *ecccode; 66 | RSblock *rsblock; 67 | int oddbits; 68 | int count; 69 | } MQRRawCode; 70 | 71 | extern MQRRawCode *MQRraw_new(QRinput *input); 72 | extern unsigned char MQRraw_getCode(MQRRawCode *raw); 73 | extern void MQRraw_free(MQRRawCode *raw); 74 | 75 | /****************************************************************************** 76 | * Frame filling 77 | *****************************************************************************/ 78 | extern unsigned char *FrameFiller_test(int version); 79 | extern unsigned char *FrameFiller_testMQR(int version); 80 | 81 | /****************************************************************************** 82 | * QR-code encoding 83 | *****************************************************************************/ 84 | extern QRcode *QRcode_encodeMask(QRinput *input, int mask); 85 | extern QRcode *QRcode_encodeMaskMQR(QRinput *input, int mask); 86 | extern QRcode *QRcode_new(int version, int width, unsigned char *data); 87 | 88 | #endif /* __QRENCODE_INNER_H__ */ 89 | -------------------------------------------------------------------------------- /printtemplate/QRcode/rscode.h: -------------------------------------------------------------------------------- 1 | /* 2 | * qrencode - QR Code encoder 3 | * 4 | * Reed solomon encoder. This code is taken from Phil Karn's libfec then 5 | * editted and packed into a pair of .c and .h files. 6 | * 7 | * Copyright (C) 2002, 2003, 2004, 2006 Phil Karn, KA9Q 8 | * (libfec is released under the GNU Lesser General Public License.) 9 | * 10 | * Copyright (C) 2006-2011 Kentaro Fukuchi 11 | * 12 | * This library is free software; you can redistribute it and/or 13 | * modify it under the terms of the GNU Lesser General Public 14 | * License as published by the Free Software Foundation; either 15 | * version 2.1 of the License, or any later version. 16 | * 17 | * This library is distributed in the hope that it will be useful, 18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 20 | * Lesser General Public License for more details. 21 | * 22 | * You should have received a copy of the GNU Lesser General Public 23 | * License along with this library; if not, write to the Free Software 24 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 25 | */ 26 | 27 | #ifndef __RSCODE_H__ 28 | #define __RSCODE_H__ 29 | 30 | /* 31 | * General purpose RS codec, 8-bit symbols. 32 | */ 33 | 34 | typedef struct _RS RS; 35 | 36 | extern RS *init_rs(int symsize, int gfpoly, int fcr, int prim, int nroots, int pad); 37 | extern void encode_rs_char(RS *rs, const unsigned char *data, unsigned char *parity); 38 | extern void free_rs_char(RS *rs); 39 | extern void free_rs_cache(void); 40 | 41 | #endif /* __RSCODE_H__ */ 42 | -------------------------------------------------------------------------------- /printtemplate/QRcode/split.h: -------------------------------------------------------------------------------- 1 | /* 2 | * qrencode - QR Code encoder 3 | * 4 | * Input data splitter. 5 | * Copyright (C) 2006-2011 Kentaro Fukuchi 6 | * 7 | * The following data / specifications are taken from 8 | * "Two dimensional symbol -- QR-code -- Basic Specification" (JIS X0510:2004) 9 | * or 10 | * "Automatic identification and data capture techniques -- 11 | * QR Code 2005 bar code symbology specification" (ISO/IEC 18004:2006) 12 | * 13 | * This library is free software; you can redistribute it and/or 14 | * modify it under the terms of the GNU Lesser General Public 15 | * License as published by the Free Software Foundation; either 16 | * version 2.1 of the License, or any later version. 17 | * 18 | * This library is distributed in the hope that it will be useful, 19 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | * Lesser General Public License for more details. 22 | * 23 | * You should have received a copy of the GNU Lesser General Public 24 | * License along with this library; if not, write to the Free Software 25 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 26 | */ 27 | 28 | #ifndef __SPLIT_H__ 29 | #define __SPLIT_H__ 30 | 31 | #include "qrencode.h" 32 | 33 | /** 34 | * Split the input string (null terminated) into QRinput. 35 | * @param string input string 36 | * @param hint give QR_MODE_KANJI if the input string contains Kanji character encoded in Shift-JIS. If not, give QR_MODE_8. 37 | * @param casesensitive 0 for case-insensitive encoding (all alphabet characters are replaced to UPPER-CASE CHARACTERS. 38 | * @retval 0 success. 39 | * @retval -1 an error occurred. errno is set to indicate the error. See 40 | * Exceptions for the details. 41 | * @throw EINVAL invalid input object. 42 | * @throw ENOMEM unable to allocate memory for input objects. 43 | */ 44 | extern int Split_splitStringToQRinput(const char *string, QRinput *input, 45 | QRencodeMode hint, int casesensitive); 46 | 47 | #endif /* __SPLIT_H__ */ 48 | -------------------------------------------------------------------------------- /printtemplate/globaldef.h: -------------------------------------------------------------------------------- 1 | #ifndef GLOBALDEF_H 2 | #define GLOBALDEF_H 3 | #include 4 | #include 5 | #include 6 | #include 7 | 8 | 9 | /******************* 字体 *******************/ 10 | const static QString FAMILY = "Family"; 11 | const static QString POINTSIZE = "Point Size"; 12 | const static QString BOLD = "Bold"; 13 | const static QString ITALIC = "Italic"; 14 | const static QString UNDERLINE = "Underline"; 15 | const static QString STRIKEOUT = "Strikeout"; 16 | const static QString KERNING = "Kerning"; 17 | 18 | /******************* 大小 *******************/ 19 | const static QString WIDTH = "Width"; 20 | const static QString HEIGHT = "Height"; 21 | 22 | const static int INVALIDVALUE = -1; //无用值 23 | const static QPoint STARTPOINT = QPoint(16, 56); //绘图开始点 24 | const static QFont STARTFONT = QFont("宋体", 16); //开始字体 25 | const static QSize STARTSIZE = QSize(100, 100); //开始大小 26 | 27 | 28 | const static QString labelType = "labelType"; 29 | const static QString labelText = "labelText"; 30 | const static QString fontType = "fontType"; 31 | const static QString fontSize = "fontSize"; 32 | const static QString fontColor = "fontColor"; 33 | const static QString labelWidth = "labelWidth"; 34 | const static QString labelHeight = "labelHeight"; 35 | const static QString gemoryX = "gemoryX"; 36 | const static QString gemoryY = "gemoryY"; 37 | 38 | #define SAFEDELETE(pointer) \ 39 | { \ 40 | if(pointer) \ 41 | { \ 42 | delete pointer; \ 43 | } \ 44 | pointer = NULL; \ 45 | } 46 | 47 | //label类型 48 | enum CONTROLTYPE 49 | { 50 | TEXTTYPE, 51 | BINGLITYPE, 52 | QRCODETYPE, 53 | LABELFOUR, 54 | LABELFIVE, 55 | LABELSIX, 56 | LABELSEVEN, 57 | LABELEIGHT, 58 | LABELNINE, 59 | LABELTEN, 60 | LABELELEVEN, 61 | LABELTWELVE, 62 | TYPEMAX, 63 | }; 64 | 65 | //模板数据 66 | enum PRINTDATA 67 | { 68 | TEMPLATENAME, 69 | TEMPLATETEXT, 70 | }; 71 | 72 | //模板控件信息 73 | enum CHANGETYPE 74 | { 75 | FONTTYPECHANGE, 76 | FONTSIZECHANGE, 77 | TEXTCHANGE, 78 | TEXTCOLORCHANGE, 79 | }; 80 | 81 | 82 | #endif // GLOBALDEF_H 83 | -------------------------------------------------------------------------------- /printtemplate/image/delete.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/printtemplate/image/delete.ico -------------------------------------------------------------------------------- /printtemplate/image/delete.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/printtemplate/image/delete.jpg -------------------------------------------------------------------------------- /printtemplate/image/plus.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YYC572652645/PatholoSystem/d7b7be2558b44a9c34307561b82b378bf4a04a0f/printtemplate/image/plus.ico -------------------------------------------------------------------------------- /printtemplate/include/PngFile.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------*/ 2 | /* PNGFILE.H -- Header File for pngfile.c*/ 3 | /*------------------------------------------*/ 4 | 5 | /* Copyright 2000, Willem van Schaik.*/ 6 | 7 | /* This code is released under the libpng license.*/ 8 | /* For conditions of distribution and use, see the disclaimer*/ 9 | /* and license in png.h*/ 10 | 11 | #include 12 | #include 13 | #include 14 | #include 15 | 16 | void PngFileInitialize (HWND hwnd) ; 17 | BOOL PngFileOpenDlg (HWND hwnd, PTSTR pstrFileName, PTSTR pstrTitleName) ; 18 | BOOL PngFileSaveDlg (HWND hwnd, PTSTR pstrFileName, PTSTR pstrTitleName) ; 19 | 20 | BOOL PngLoadImage (PTSTR pstrFileName, png_byte **ppbImageData, 21 | int *piWidth, int *piHeight, int *piChannels, png_color *pBkgColor); 22 | BOOL PngSaveImage (PTSTR pstrFileName, png_byte *pDiData, 23 | int iWidth, int iHeight, png_color BkgColor); 24 | 25 | #ifndef PNG_STDIO_SUPPORTED 26 | static void png_read_data(png_structp png_ptr, png_bytep data, png_size_t length); 27 | static void png_write_data(png_structp png_ptr, png_bytep data, png_size_t length); 28 | static void png_flush(png_structp png_ptr); 29 | #endif 30 | 31 | -------------------------------------------------------------------------------- /printtemplate/include/inffast.h: -------------------------------------------------------------------------------- 1 | /* inffast.h -- header to use inffast.c 2 | * Copyright (C) 1995-2003, 2010 Mark Adler 3 | * For conditions of distribution and use, see copyright notice in zlib.h 4 | */ 5 | 6 | /* WARNING: this file should *not* be used by applications. It is 7 | part of the implementation of the compression library and is 8 | subject to change. Applications should only use zlib.h. 9 | */ 10 | 11 | void ZLIB_INTERNAL inflate_fast OF((z_streamp strm, unsigned start)); 12 | -------------------------------------------------------------------------------- /printtemplate/include/inftrees.h: -------------------------------------------------------------------------------- 1 | /* inftrees.h -- header to use inftrees.c 2 | * Copyright (C) 1995-2005, 2010 Mark Adler 3 | * For conditions of distribution and use, see copyright notice in zlib.h 4 | */ 5 | 6 | /* WARNING: this file should *not* be used by applications. It is 7 | part of the implementation of the compression library and is 8 | subject to change. Applications should only use zlib.h. 9 | */ 10 | 11 | /* Structure for decoding tables. Each entry provides either the 12 | information needed to do the operation requested by the code that 13 | indexed that table entry, or it provides a pointer to another 14 | table that indexes more bits of the code. op indicates whether 15 | the entry is a pointer to another table, a literal, a length or 16 | distance, an end-of-block, or an invalid code. For a table 17 | pointer, the low four bits of op is the number of index bits of 18 | that table. For a length or distance, the low four bits of op 19 | is the number of extra bits to get after the code. bits is 20 | the number of bits in this code or part of the code to drop off 21 | of the bit buffer. val is the actual byte to output in the case 22 | of a literal, the base length or distance, or the offset from 23 | the current table to the next table. Each entry is four bytes. */ 24 | typedef struct { 25 | unsigned char op; /* operation, extra bits, table bits */ 26 | unsigned char bits; /* bits in this part of the code */ 27 | unsigned short val; /* offset in table or code value */ 28 | } code; 29 | 30 | /* op values as set by inflate_table(): 31 | 00000000 - literal 32 | 0000tttt - table link, tttt != 0 is the number of table index bits 33 | 0001eeee - length or distance, eeee is the number of extra bits 34 | 01100000 - end of block 35 | 01000000 - invalid code 36 | */ 37 | 38 | /* Maximum size of the dynamic table. The maximum number of code structures is 39 | 1444, which is the sum of 852 for literal/length codes and 592 for distance 40 | codes. These values were found by exhaustive searches using the program 41 | examples/enough.c found in the zlib distribtution. The arguments to that 42 | program are the number of symbols, the initial root table size, and the 43 | maximum bit length of a code. "enough 286 9 15" for literal/length codes 44 | returns returns 852, and "enough 30 6 15" for distance codes returns 592. 45 | The initial root table size (9 or 6) is found in the fifth argument of the 46 | inflate_table() calls in inflate.c and infback.c. If the root table size is 47 | changed, then these maximum sizes would be need to be recalculated and 48 | updated. */ 49 | #define ENOUGH_LENS 852 50 | #define ENOUGH_DISTS 592 51 | #define ENOUGH (ENOUGH_LENS+ENOUGH_DISTS) 52 | 53 | /* Type of code to build for inflate_table() */ 54 | typedef enum { 55 | CODES, 56 | LENS, 57 | DISTS 58 | } codetype; 59 | 60 | int ZLIB_INTERNAL inflate_table OF((codetype type, unsigned short FAR *lens, 61 | unsigned codes, code FAR * FAR *table, 62 | unsigned FAR *bits, unsigned short FAR *work)); 63 | -------------------------------------------------------------------------------- /printtemplate/movewidgetcontrol/movewidgetcontrol.cpp: -------------------------------------------------------------------------------- 1 | #include "movewidgetcontrol.h" 2 | #include "globaldef.h" 3 | #include 4 | 5 | /**************** 构造函数 ***************/ 6 | MoveWidgetControl::MoveWidgetControl(QWidget *parent) : QWidget(parent), selectWidget(NULL) 7 | { 8 | selectWidget = new Selection(this); 9 | } 10 | 11 | /**************** 清除Box边界 ***************/ 12 | void MoveWidgetControl::clearBox() 13 | { 14 | selectWidget->clear(); 15 | } 16 | -------------------------------------------------------------------------------- /printtemplate/movewidgetcontrol/movewidgetcontrol.h: -------------------------------------------------------------------------------- 1 | #ifndef MOVEWIDGETCONTROL_H 2 | #define MOVEWIDGETCONTROL_H 3 | 4 | /*************************************************************** 5 | 功能:提升的打印区域Widget,可用来移动控件 6 | 7 | 创建人:殷宇辰 8 | 9 | 创建时间:2017-9-18 10 | **************************************************************/ 11 | 12 | #include 13 | #include 14 | #include 15 | #include "printtemplate/qselectwidget/qselectwidget.h" 16 | #include 17 | 18 | class MoveWidgetControl : public QWidget 19 | { 20 | Q_OBJECT 21 | public: 22 | explicit MoveWidgetControl(QWidget *parent = 0); 23 | 24 | public: 25 | Selection *selectWidget; //提升窗口部件 26 | void clearBox(); //清除Box边界 27 | }; 28 | 29 | #endif // MOVEWIDGETCONTROL_H 30 | -------------------------------------------------------------------------------- /printtemplate/qselectwidget/qselectwidget.h: -------------------------------------------------------------------------------- 1 | #ifndef QSELECTWIDGET_H 2 | #define QSELECTWIDGET_H 3 | 4 | #include 5 | #include 6 | 7 | 8 | class WidgetHandle: public QWidget 9 | { 10 | Q_OBJECT 11 | public: 12 | enum Type 13 | { 14 | LeftTop, 15 | Top, 16 | RightTop, 17 | Right, 18 | RightBottom, 19 | Bottom, 20 | LeftBottom, 21 | Left, 22 | TypeCount 23 | }; 24 | public: 25 | WidgetHandle(QWidget* parent,Type t); 26 | 27 | void setWidget(QWidget *w); 28 | void setCurrent(bool b); 29 | protected: 30 | protected: 31 | void paintEvent(QPaintEvent *); 32 | void mousePressEvent(QMouseEvent *e); 33 | void mouseMoveEvent(QMouseEvent *e); 34 | void mouseReleaseEvent(QMouseEvent *e); 35 | 36 | protected: 37 | void updateCursor(); 38 | void trySetGeometry(QWidget *w, int x, int y, int width, int height); 39 | void tryResize(QWidget *w, int width, int height); 40 | signals: 41 | void sizeChanged(int x,int y,int width,int height); 42 | void mouse_button_release(const QRect& old,const QRect & now); 43 | protected: 44 | Type m_type; 45 | QWidget * m_widget; 46 | bool m_current; 47 | QPoint m_origPressPos; 48 | QRect m_geom, m_origGeom; 49 | }; 50 | 51 | class WidgetSelection: public QObject 52 | { 53 | Q_OBJECT 54 | public: 55 | WidgetSelection(QWidget *parent); 56 | 57 | void setWidget(QWidget *w); 58 | QWidget *widget(); 59 | bool isUsed() const; 60 | 61 | void hide(); 62 | void show(); 63 | void update(); 64 | void updateGeometry(); 65 | 66 | void setCurrent(bool b); 67 | protected: 68 | bool eventFilter(QObject *object, QEvent *event); 69 | 70 | protected slots: 71 | void changedsize(int x,int y,int width,int height); 72 | void mouse_button_release(const QRect& old,const QRect & now); 73 | signals: 74 | void sizeChanged(QWidget* wid,const QRect& old,const QRect & now); 75 | protected: 76 | WidgetHandle *m_handles[WidgetHandle::TypeCount]; 77 | QWidget *m_widget; 78 | QWidget *m_formWindow; 79 | }; 80 | 81 | class Selection : public QObject 82 | { 83 | Q_OBJECT 84 | public: 85 | Selection(QWidget *formwindow); 86 | ~Selection(); 87 | 88 | void clear(); 89 | 90 | void clearSelectionPool(); 91 | 92 | void repaintSelection(QWidget *w); 93 | void repaintSelection(); 94 | 95 | bool isWidgetSelected(QWidget *w) const; 96 | QWidgetList selectedWidgets() const; 97 | 98 | WidgetSelection *addWidget(QWidget *w); 99 | QWidget* removeWidget(QWidget *w); 100 | QWidget* current(); 101 | 102 | void raiseList(const QWidgetList& l); 103 | void raiseWidget(QWidget *w); 104 | 105 | void updateGeometry(QWidget *w); 106 | 107 | void hide(QWidget *w); 108 | void show(QWidget *w); 109 | 110 | 111 | void setCurrent(QWidget *w); 112 | signals: 113 | void sizeChanged(QWidget* wid,const QRect& old,const QRect & now); 114 | 115 | private: 116 | 117 | typedef QList SelectionPool; 118 | SelectionPool m_selectionPool; 119 | 120 | typedef QHash SelectionHash; 121 | SelectionHash m_usedSelections; 122 | WidgetSelection * m_current; 123 | QWidget* m_formwindow; 124 | }; 125 | 126 | #endif // QSELECTWIDGET_H 127 | -------------------------------------------------------------------------------- /printtemplate/res.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | image/delete.ico 4 | image/plus.ico 5 | image/delete.jpg 6 | 7 | 8 | -------------------------------------------------------------------------------- /printtemplate/templatedata/templatedata.cpp: -------------------------------------------------------------------------------- 1 | #include "templatedata.h" 2 | #include "../../config/qreadini.h" 3 | #include "../globaldef.h" 4 | 5 | /**************** 构造函数 ***************/ 6 | TemplateData::TemplateData() 7 | { 8 | if(!dataCnn()) 9 | { 10 | qDebug()<<"连接失败"; 11 | } 12 | } 13 | 14 | /**************** 连接数据库 ***************/ 15 | bool TemplateData::dataCnn() 16 | { 17 | //是否为默认连接 18 | if(QSqlDatabase::contains("qt_sql_default_connection")) 19 | { 20 | db = QSqlDatabase::database("qt_sql_default_connection"); 21 | } 22 | else 23 | { 24 | db = QSqlDatabase::addDatabase(DATACONFIG.dataBaseVersion); //设置数据库类型 25 | } 26 | 27 | db.setHostName(DATACONFIG.ip); //设置数据库主机名 28 | db.setPort(DATACONFIG.port.toInt()); //设置端口 29 | db.setDatabaseName(DATACONFIG.dataBaseName); //设置数据库名 30 | db.setUserName(DATACONFIG.userName); //设置用户名 31 | db.setPassword(DATACONFIG.passWord); //设置密码 32 | //如果数据库处于打开状态,则关闭 33 | if(db.isOpen()) 34 | { 35 | db.close(); 36 | } 37 | return db.open(); 38 | } 39 | 40 | /**************** 插入数据 ***************/ 41 | bool TemplateData::insertData(QString name, QString templateText, int type) 42 | { 43 | if(!db.isOpen()) 44 | { 45 | db.open(); 46 | } 47 | QSqlQuery query; 48 | 49 | QString Str = QString("insert into PrintTemplate values('%1','%2', '%3');").arg(name, templateText, QString::number(type)); 50 | 51 | bool success = query.exec(Str); //执行sql语句 52 | 53 | db.close(); 54 | 55 | return success; 56 | } 57 | 58 | /**************** 查询数据 ***************/ 59 | int TemplateData::selectData(int type) 60 | { 61 | int count = 0; 62 | if(!db.isOpen()) db.open(); 63 | 64 | QSqlQuery query; 65 | QString str = QString("select * from PrintTemplate where Type = '%1';").arg(QString::number(type)); 66 | bool success = query.exec(str); 67 | if(!success) return count; 68 | 69 | dataTemplate.clear(); 70 | 71 | while(query.next()) 72 | { 73 | DataTemplate data; 74 | 75 | data.templateName = query.value(TEMPLATENAME).toString(); 76 | data.templateText = query.value(TEMPLATETEXT).toString(); 77 | 78 | dataTemplate.append(data); 79 | count ++; 80 | } 81 | 82 | db.close(); 83 | 84 | return count; 85 | } 86 | 87 | /**************** 更改数据 ***************/ 88 | bool TemplateData::updateData(QString name, QString templateText, int type) 89 | { 90 | if(!db.isOpen()) 91 | { 92 | db.open(); 93 | } 94 | QSqlQuery query; 95 | 96 | QString Str = QString("update PrintTemplate set Template = '%1' where Name = '%2' and Type = '%3';").arg(templateText, name, QString::number(type)); 97 | 98 | bool success = query.exec(Str); //执行sql语句 99 | 100 | db.close(); 101 | 102 | return success; 103 | } 104 | 105 | /**************** 删除数据 ***************/ 106 | bool TemplateData::deleteData(QString name, int type) 107 | { 108 | if(!db.isOpen()) 109 | { 110 | db.open(); 111 | } 112 | QSqlQuery query; 113 | QString Str = QString("delete from PrintTemplate where Name = '%1' and Type = '%2';").arg(name, QString::number(type)); 114 | bool success = query.exec(Str); //执行sql语句 115 | 116 | db.close(); 117 | 118 | return success; 119 | } 120 | 121 | /**************** 获取信息 ***************/ 122 | QList TemplateData::getDataTemplate() const 123 | { 124 | return dataTemplate; 125 | } 126 | 127 | 128 | -------------------------------------------------------------------------------- /printtemplate/templatedata/templatedata.h: -------------------------------------------------------------------------------- 1 | #ifndef TEMPLATEDATA_H 2 | #define TEMPLATEDATA_H 3 | #include 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | 12 | /*************************************************************** 13 | 功能:打印模板数据库信息 14 | 15 | 创建人:殷宇辰 16 | 17 | 创建时间:2017-9-20 18 | **************************************************************/ 19 | 20 | typedef struct DataTemplate 21 | { 22 | QString templateName; 23 | QString templateText; 24 | }DataTemplate; 25 | 26 | class TemplateData 27 | { 28 | public: 29 | /************ 构造函数 *************/ 30 | TemplateData(); 31 | 32 | /************ 连接数据库 *************/ 33 | bool dataCnn(); 34 | 35 | /************ 插入数据 *************/ 36 | bool insertData(QString name, QString templateText, int type); 37 | 38 | /************ 查询数据 *************/ 39 | int selectData(int type); 40 | 41 | /************ 更改数据 *************/ 42 | bool updateData(QString name, QString templateText, int type); 43 | 44 | /************ 删除数据 *************/ 45 | bool deleteData(QString name, int type); 46 | 47 | /************ 获取信息 *************/ 48 | QList getDataTemplate() const; 49 | 50 | private: 51 | QSqlDatabase db; //定义数据库对象 52 | QList dataTemplate; //模板信息 53 | }; 54 | 55 | #endif // DATABASE_H 56 | -------------------------------------------------------------------------------- /qss/style.qss: -------------------------------------------------------------------------------- 1 | QTableWidget::item:selected:active 2 | { 3 | background-color:#828282; 4 | color:white; 5 | } 6 | 7 | QTableWidget::item:selected:!active 8 | { 9 | background-color:#828282; 10 | color:white; 11 | } 12 | 13 | QHeaderView::section 14 | { 15 | font:12pt; 16 | background-color:rgb(0,130,150); 17 | color:white; 18 | height:30px; 19 | } 20 | 21 | QGroupBox 22 | { 23 | border-radius: 5px; 24 | border-width: 1px; 25 | border-style: solid; 26 | border-color: darkCyan; 27 | margin-top: 5px; 28 | } 29 | 30 | QGroupBox::title 31 | { 32 | subcontrol-origin: margin; 33 | subcontrol-position: top center; 34 | padding: 0 3px; 35 | margin-top: 0px; 36 | } 37 | 38 | QProgressBar 39 | { 40 | border: 2px solid grey; 41 | border-radius: 5px; 42 | text-align: center; 43 | } 44 | 45 | QProgressBar::chunk 46 | { 47 | background-color: #CD96CD; 48 | width: 10px; 49 | margin: 0.5px; 50 | } 51 | 52 | QMenuBar 53 | { 54 | background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1,stop:0 lightgray, stop:1 darkgray); 55 | } 56 | 57 | QMenuBar::item 58 | { 59 | spacing: 3px; 60 | padding: 1px 4px; 61 | background: transparent; 62 | border-radius: 4px; 63 | } 64 | 65 | QMenuBar::item:selected 66 | { 67 | background: #a8a8a8; 68 | } 69 | 70 | QMenuBar::item:pressed 71 | { 72 | background: #888888; 73 | } 74 | 75 | QListWidget::item#systemList 76 | { 77 | height:50px; 78 | } 79 | 80 | QListWidget::item::hover#systemList 81 | { 82 | background-color:rgb(9,150,200,100); 83 | color:white; 84 | } 85 | 86 | QListWidget::item:selected#systemList 87 | { 88 | background-color:rgb(9,150,200,255); 89 | color:white; 90 | } 91 | QListWidget#systemList 92 | { 93 | background-color:#2c3e50; 94 | color:white; 95 | font-weight:bold; 96 | } 97 | 98 | QTreeWidget::item:selected:active 99 | { 100 | background-color: #828282; 101 | color:white; 102 | } 103 | 104 | QTreeWidget::item:selected:!active 105 | { 106 | background-color: #828282; 107 | color:white; 108 | } 109 | 110 | QTabBar::tab 111 | { 112 | min-width:100px; 113 | color: white; 114 | background-color:qlineargradient(x1: 0, y1: 0, x2: 0.7, y2: 0.7,stop: 0.3 rgb(40,150,200,160),stop: 0.6 rgb(40,150,200,220),stop:1 rgb(40,150,200,255)); 115 | border: 0px solid; 116 | border-top-left-radius: 10px; 117 | border-top-right-radius: 10px; 118 | padding:5px; 119 | } 120 | 121 | QTabBar::tab:!selected 122 | { 123 | margin-top: 5px; 124 | } 125 | 126 | QTabBar::tab:selected 127 | { 128 | color: white; 129 | font-size:14px; 130 | font-weight:bold; 131 | } 132 | 133 | 134 | *{outline:0px;} 135 | 136 | -------------------------------------------------------------------------------- /res.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | image/header.png 4 | image/login.png 5 | image/background.png 6 | image/color.png 7 | image/fail.png 8 | image/happy.png 9 | image/ok.png 10 | image/about.png 11 | image/add.png 12 | image/copy.png 13 | image/critical.png 14 | image/edit-clear.png 15 | image/excel.png 16 | image/exit.png 17 | image/filenew.png 18 | image/information.png 19 | image/newmore.png 20 | image/open.png 21 | image/question.png 22 | image/save.png 23 | image/serch.png 24 | image/printmore.jpg 25 | image/tempalte.jpg 26 | image/print.jpg 27 | image/txt.jpg 28 | image/refresh.png 29 | image/refresh.gif 30 | image/addto.png 31 | image/tc.ico 32 | 33 | 34 | qss/style.qss 35 | 36 | 37 | -------------------------------------------------------------------------------- /tabimmuneslice/immuneslicedata.h: -------------------------------------------------------------------------------- 1 | #ifndef IMMUNESLICEDATA_H 2 | #define IMMUNESLICEDATA_H 3 | 4 | /*************************************************************** 5 | 功能:免疫组化切片数据库信息 6 | 7 | 创建人:殷宇辰 8 | 9 | 创建时间:2017-9-22 10 | **************************************************************/ 11 | 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | #include 19 | #include 20 | 21 | #define IMMUNESLICEDATA ImmuneSliceData::getInstance() 22 | 23 | typedef struct DataImmuneSlice 24 | { 25 | QString sectionId; //id 26 | QString sectionCode; //编号 27 | QString embedCode; //编号 28 | QString stainTypeName; //染色类型 29 | QString staining; //染色指标 30 | QString sectionTime; //切片时间 31 | QString sectioner; //切片人 32 | QString stainTime; //染色时间 33 | QString stainer; //染色人 34 | QString printNum; //打印数量 35 | QString printed; //是否打印 36 | QString cloneNumber; //克隆号码 37 | }DataImmuneSlice; 38 | 39 | class ImmuneSliceData 40 | { 41 | public: 42 | /************ 单例模式 *************/ 43 | static ImmuneSliceData * getInstance() 44 | { 45 | if(NULL == instance) 46 | { 47 | instance = new ImmuneSliceData(); 48 | } 49 | 50 | return instance; 51 | } 52 | 53 | /************ 构造函数 *************/ 54 | ImmuneSliceData(); 55 | 56 | /************ 连接数据库 *************/ 57 | bool dataCnn(); 58 | 59 | /************ 插入数据 *************/ 60 | bool insertData(DataImmuneSlice data); 61 | 62 | /************ 查询数据 *************/ 63 | int selectData(int type, QString text); 64 | 65 | /************ 更改数据 *************/ 66 | bool updateData(DataImmuneSlice data); 67 | 68 | /************ 删除数据 *************/ 69 | bool deleteData(int type, QString id); 70 | 71 | /************ 获取数据 *************/ 72 | QList getDataList() const; 73 | 74 | private: 75 | QSqlDatabase db; //定义数据库对象 76 | static ImmuneSliceData * instance; //单例模式 77 | QList dataList; //数据库数据 78 | }; 79 | 80 | #endif // DATABASE_H 81 | -------------------------------------------------------------------------------- /tabimmuneslice/newimmuneslice.h: -------------------------------------------------------------------------------- 1 | #ifndef NEWIMMUNESLICE_H 2 | #define NEWIMMUNESLICE_H 3 | 4 | /*************************************************************** 5 | 功能:新建切片 6 | 7 | 创建人:殷宇辰 8 | 9 | 创建时间:2017-9-22 10 | **************************************************************/ 11 | 12 | #include 13 | #include 14 | #include "immuneslicedata.h" 15 | 16 | namespace Ui { 17 | class newimmuneslice; 18 | } 19 | 20 | class NewImmuneSlice : public QMainWindow 21 | { 22 | Q_OBJECT 23 | 24 | public: 25 | explicit NewImmuneSlice(QWidget *parent = 0); 26 | ~NewImmuneSlice(); 27 | 28 | void showWidget(); //显示窗口 29 | void showWidget(DataImmuneSlice data); //显示窗口 30 | signals: 31 | void sendSelect(); //发送查询信号 32 | 33 | private slots: 34 | void on_pushButtonOk_clicked(); //确定按钮 35 | void on_pushButtonCancel_clicked(); //取消按钮 36 | 37 | private: 38 | Ui::newimmuneslice *ui; 39 | void setComboBoxInfo(); //设置信息 40 | void keyPressEvent(QKeyEvent * event); //确定点击 41 | }; 42 | 43 | #endif // NEWNORMALSLICE_H 44 | -------------------------------------------------------------------------------- /tabimmuneslice/newmoreimmuneslice.h: -------------------------------------------------------------------------------- 1 | #ifndef NEWMOREIMMUNESLICE_H 2 | #define NEWMOREIMMUNESLICE_H 3 | 4 | /*************************************************************** 5 | 功能:批量新建 6 | 7 | 创建人:殷宇辰 8 | 9 | 创建时间:2017-9-22 10 | **************************************************************/ 11 | 12 | #include 13 | #include 14 | #include "immuneslicedata.h" 15 | 16 | namespace Ui { 17 | class newmoreimmuneslice; 18 | } 19 | 20 | class NewMoreImmuneSlice : public QMainWindow 21 | { 22 | Q_OBJECT 23 | 24 | signals: 25 | void sendSelect(); //发送查询信号 26 | 27 | public: 28 | explicit NewMoreImmuneSlice(QWidget *parent = 0); //构造函数 29 | ~NewMoreImmuneSlice(); //析构函数 30 | void showWidget(); //显示窗口 31 | 32 | private slots: 33 | void on_pushButtonOk_clicked(); //确定按钮 34 | void on_pushButtonCancel_clicked(); //取消按钮 35 | 36 | private: 37 | Ui::newmoreimmuneslice *ui; 38 | 39 | void keyPressEvent(QKeyEvent * event); //获取扫码枪数据 40 | QString subFinger(QString number); //去字母 41 | void setComboBoxInfo(); //设置信息 42 | }; 43 | 44 | #endif // NEWMORENORMALSLICE_H 45 | -------------------------------------------------------------------------------- /tabimmuneslice/tabimmuneslice.h: -------------------------------------------------------------------------------- 1 | #ifndef TABIMMUNESLICE_H 2 | #define TABIMMUNESLICE_H 3 | 4 | /*************************************************************** 5 | 功能:免疫组化切片 6 | 7 | 创建人:殷宇辰 8 | 9 | 创建时间:2017-9-22 10 | **************************************************************/ 11 | 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | #include 19 | #include 20 | #include "immuneslicedata.h" 21 | #include "newimmuneslice.h" 22 | #include "newmoreimmuneslice.h" 23 | #include "printtemplate/templatesetup.h" 24 | 25 | namespace Ui { 26 | class tabimmuneslice; 27 | } 28 | 29 | class TabImmuneSlice : public QMainWindow 30 | { 31 | Q_OBJECT 32 | 33 | public: 34 | explicit TabImmuneSlice(QWidget *parent = 0); 35 | ~TabImmuneSlice(); 36 | 37 | private slots: 38 | void receiveSelect(); //接收查询 39 | void updateMovie(); //更新Gif 40 | void on_actionNewSlice_triggered(); //新建切片 41 | void on_actionNewMore_triggered(); //批量打印 42 | void on_actionPrintLabel_triggered(); //打印标签 43 | void on_actionDeleteInfo_triggered(); //删除信息 44 | void on_actionPrintTemplate_triggered(); //打印模板 45 | void on_pushButtonRefresh_clicked(); //刷新数据 46 | void on_tableWidget_doubleClicked(const QModelIndex &index); 47 | void on_pushButtonFind_clicked(); //查找数据 48 | 49 | private: 50 | Ui::tabimmuneslice *ui; 51 | void initControl(); //初始化控件 52 | void initData(); //初始化数据 53 | void createActions(); //创建菜单 54 | void contextMenuEvent(QContextMenuEvent *event); //鼠标响应 55 | void dataSelect(int type); //查询数据 56 | 57 | NewImmuneSlice *newImmuneSlice; //新建切片 58 | NewMoreImmuneSlice * newMoreSlice; //批量新增 59 | TemplateSetUp *templateSetUp; //模板 60 | QMenu *menu; //菜单 61 | QAction *print; //打印 62 | QAction *del; //删除 63 | QAction *refresh; //刷新 64 | QMovie *movie; //播放gif 65 | QTimer *timer; //设置定时器 66 | }; 67 | 68 | #endif // TABNORMALSLICE_H 69 | -------------------------------------------------------------------------------- /tabmaterial/materialdata.h: -------------------------------------------------------------------------------- 1 | #ifndef MATERIALDATA_H 2 | #define MATERIALDATA_H 3 | 4 | /*************************************************************** 5 | 功能:取材数据库信息 6 | 7 | 创建人:殷宇辰 8 | 9 | 创建时间:2017-9-22 10 | **************************************************************/ 11 | 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | #include 19 | #include 20 | #include "globaldef.h" 21 | 22 | #define MATERIALDATA MaterialData::getInstance() 23 | 24 | typedef struct DataParent 25 | { 26 | QString samplingId; //取材ID 27 | QString pCode; //病理号 28 | QString specimenName; //标本名称 29 | QString specimenQuantity; //标本数量 30 | QString specimenSize; //标本大小 31 | QString specimenWeight; //标本重量 32 | QString samplingCount; //取材总数 33 | QString sampler; //取材人 34 | QString note; //检测记录 35 | QString noter; //记录人 36 | QString createTime; //取材时间 37 | }DataParent; 38 | 39 | 40 | typedef struct DataChild 41 | { 42 | QString samplingId; //取材ID 43 | QString sn; //序号 44 | QString embedCode; //病理号子序号 45 | QString tissue; //组织名称 46 | QString printed; //是否打印 47 | QString printTime; //打印时间 48 | QString sampled; //是否取材 49 | QString sampler; //取材人 50 | QString samplingTime; //取材时间 51 | }DataChild; 52 | 53 | typedef struct DataStatistics 54 | { 55 | QString date; //日期 56 | QString materialTotal; //取材总例数 57 | QString embeddingTotal; //包埋总数 58 | QString normalMtlTotal; //常规取材例数 59 | QString normalEddTotal; //常规包埋数 60 | QString frozenMtlTotal; //冰冻取材例数 61 | QString frozenEddTotal; //冰冻包埋数 62 | }DataStatistics; 63 | 64 | class MaterialData 65 | { 66 | public: 67 | /************ 单例模式 *************/ 68 | static MaterialData * getInstance() 69 | { 70 | if(NULL == instance) 71 | { 72 | instance = new MaterialData(); 73 | } 74 | 75 | return instance; 76 | } 77 | 78 | /************ 构造函数 *************/ 79 | MaterialData(); 80 | 81 | /************ 连接数据库 *************/ 82 | bool dataCnn(); 83 | 84 | /************ 插入父类数据 *************/ 85 | bool insertParentData(DataParent data); 86 | 87 | /************ 插入子类数据 *************/ 88 | bool insertChildData(DataChild data); 89 | 90 | /************ 查询数据 *************/ 91 | bool selectData(int type, QString number = NULL); 92 | 93 | /************ 查询编号 **************/ 94 | QString selectCode(QString blNumber); 95 | 96 | /************ 查询包埋数量 *************/ 97 | int selectBaoMai(QString blNumber); 98 | 99 | /************ 统计数据 *************/ 100 | int selectStatistics(QString beginTime = NULL, QString endTime = NULL); 101 | 102 | /************ 更改子类数据 *************/ 103 | bool updateChildData(DataChild data); 104 | 105 | /************ 更改父类数据 *************/ 106 | bool updateParentData(DataParent data); 107 | 108 | /************ 删除数据 *************/ 109 | bool deleteData(int type, QString id = NULL, QString embedCode = NULL); 110 | 111 | /************ 获取子节点数据 *************/ 112 | QList getChildList() const; 113 | 114 | /************ 获取父节点数据 *************/ 115 | QList getParentList() const; 116 | 117 | /************ 获取统计数据 *************/ 118 | QList getStatisticsList() const; 119 | 120 | private: 121 | QSqlDatabase db; //数据库对象 122 | static MaterialData *instance; //单例模式 123 | QList parentList; //父节点数据 124 | QList childList; //子节点数据 125 | QList statisticsList; //统计数据 126 | }; 127 | 128 | #endif // DATABASE_H 129 | -------------------------------------------------------------------------------- /tabmaterial/normalmaterial.h: -------------------------------------------------------------------------------- 1 | #ifndef NORMALMATERIAL_H 2 | #define NORMALMATERIAL_H 3 | 4 | /*************************************************************** 5 | 功能:常规取材 6 | 7 | 创建人:殷宇辰 8 | 9 | 创建时间:2017-9-22 10 | **************************************************************/ 11 | 12 | #include 13 | #include 14 | #include "materialdata.h" 15 | 16 | namespace Ui { 17 | class normalmaterial; 18 | } 19 | 20 | class NormalMaterial : public QMainWindow 21 | { 22 | Q_OBJECT 23 | 24 | signals: 25 | void sendSelect(); 26 | 27 | public: 28 | explicit NormalMaterial(QWidget *parent = 0); 29 | ~NormalMaterial(); 30 | 31 | QString subFinger(QString number); //去字母 32 | void showWidget(QString number, QString id); //显示窗口 33 | void showWidget(); //显示窗口 34 | void setData(DataParent data); //设置数据 35 | 36 | private slots: 37 | void on_pushButtonOk_clicked(); //确定按钮 38 | void on_pushButtonCancel_clicked(); //取消按钮 39 | 40 | private: 41 | Ui::normalmaterial *ui; 42 | void keyPressEvent(QKeyEvent *event); //按键点击 43 | QString numberToLetter(int type, int number); //数字转字母 44 | QString id; 45 | }; 46 | 47 | #endif // NORMALMATERIAL_H 48 | -------------------------------------------------------------------------------- /tabmaterial/tabmaterial.h: -------------------------------------------------------------------------------- 1 | #ifndef TABMATERIAL_H 2 | #define TABMATERIAL_H 3 | 4 | #include 5 | #include 6 | #include "paintinfo/patientinfo.h" 7 | #include "printtemplate/templatesetup.h" 8 | #include "normalmaterial.h" 9 | #include 10 | #include 11 | #include 12 | #include 13 | #include 14 | #include "exceloperate/exceloperate.h" 15 | 16 | namespace Ui { 17 | class tabmaterial; 18 | } 19 | 20 | class TabMaterial : public QMainWindow 21 | { 22 | Q_OBJECT 23 | 24 | public: 25 | explicit TabMaterial(QWidget *parent = 0); 26 | ~TabMaterial(); 27 | 28 | private slots: 29 | void receiveSelect(); //查询 30 | void updateMovie(); //更新Gif 31 | void receiveNumber(QString number, QString id); //接收病理号 32 | void on_actionNormalMaterial_triggered(); //常规取材 33 | void on_actionAddBaoMai_triggered(); //添加包埋 34 | void on_actionPrintLabel_triggered(); //打印 35 | void on_actionPrintMoreLabel_triggered(); //批量打印 36 | void on_actionAddBingLiNumber_triggered(); //添加病理号 37 | void on_pushButtonRefresh_clicked(); //刷新数据 38 | void on_treeWidget_doubleClicked(const QModelIndex &index); //双击按钮 39 | void on_treeWidget_clicked(const QModelIndex &index); //单击 40 | void on_pushButtonFind_clicked(); //查询 41 | void on_actionDeleteInfo_triggered(); //删除数据 42 | void on_actionPrintTemplate_triggered(); //打印模板 43 | void on_treeWidget_itemChanged(QTreeWidgetItem *item, int column); //内容改变 44 | void on_actionExtendExcel_triggered(); //导出Excel 45 | 46 | private: 47 | Ui::tabmaterial *ui; 48 | 49 | void initControl(); //初始化控件 50 | void initData(); //初始化数据 51 | void initConnect(); //初始化信号与槽 52 | void selectData(int type); //查询数据 53 | void createActions(); //创建菜单 54 | void extendTxt(QString fileName); //导出txt 55 | QString getIndexNumber(int type, QString blNumber); //获取id 56 | void contextMenuEvent(QContextMenuEvent *event); //鼠标响应 57 | int subFinger(QString number); //去字母 58 | bool isEmpty(DataChild data); //判断结构体是否为空 59 | void dataChildClear(); //清空结构体 60 | QString numberToLetter(int type, int number); //数字转字母 61 | DataChild getDataChild(QString blNumber); //获取子节点数据 62 | DataParent getDataParent(QString blNumber); //获取父节点数据 63 | 64 | PatientInfo patientInfo; //患者信息 65 | NormalMaterial *normalMaterial; //常规取材 66 | int currentRow; //当前行 67 | int currentColume; //当前列 68 | bool updateFlage; //更新标志位 69 | QTreeWidgetItem *currentItem; //当前Item 70 | TemplateSetUp *templateSetUp; //打印模板 71 | QMovie *movie; //播放gif 72 | QTimer *timer; //设置定时器 73 | QMenu *menu; //菜单 74 | QAction *print; //打印 75 | QAction *del; //删除 76 | QAction *refresh; //刷新 77 | DataChild dataUpdate; //需要更新的数据 78 | 79 | }; 80 | 81 | #endif // TABREGISTER_H 82 | -------------------------------------------------------------------------------- /tabnormalslice/newmorenormalslice.h: -------------------------------------------------------------------------------- 1 | #ifndef NEWMORENORMALSLICE_H 2 | #define NEWMORENORMALSLICE_H 3 | 4 | /*************************************************************** 5 | 功能:批量切片 6 | 7 | 创建人:殷宇辰 8 | 9 | 创建时间:2017-9-22 10 | **************************************************************/ 11 | 12 | #include 13 | #include 14 | #include "normalslicedata.h" 15 | 16 | namespace Ui { 17 | class newmorenormalslice; 18 | } 19 | 20 | class NewMoreNormalSlice : public QMainWindow 21 | { 22 | Q_OBJECT 23 | 24 | signals: 25 | void sendSelect(); 26 | 27 | public: 28 | explicit NewMoreNormalSlice(QWidget *parent = 0); 29 | ~NewMoreNormalSlice(); 30 | void showWidget(); 31 | 32 | private slots: 33 | void on_pushButtonOk_clicked(); 34 | 35 | void on_pushButtonCancel_clicked(); 36 | 37 | private: 38 | Ui::newmorenormalslice *ui; 39 | 40 | QString subFinger(QString number); 41 | 42 | void keyPressEvent(QKeyEvent * event); 43 | }; 44 | 45 | #endif // NEWMORENORMALSLICE_H 46 | -------------------------------------------------------------------------------- /tabnormalslice/newnormalslice.cpp: -------------------------------------------------------------------------------- 1 | #include "newnormalslice.h" 2 | #include "ui_newnormalslice.h" 3 | 4 | /******************* 构造函数 ***********************/ 5 | NewNormalSlice::NewNormalSlice(QWidget *parent) : 6 | QMainWindow(parent), 7 | ui(new Ui::newnormalslice) 8 | { 9 | ui->setupUi(this); 10 | 11 | this->setWindowFlags(this->windowFlags()&~Qt::WindowMaximizeButtonHint&~Qt::WindowMinimizeButtonHint); 12 | 13 | this->setWindowTitle("新建切片"); 14 | } 15 | 16 | /******************* 析构函数 ***********************/ 17 | NewNormalSlice::~NewNormalSlice() 18 | { 19 | delete ui; 20 | } 21 | 22 | /******************* 显示界面 ***********************/ 23 | void NewNormalSlice::showWidget() 24 | { 25 | ui->dateEditQPTime->setDisplayFormat("yyyy-MM-dd HH:mm:ss"); 26 | ui->dateEditQPTime->setDateTime(QDateTime::currentDateTime()); 27 | 28 | ui->dateEditRSTime->setDisplayFormat("yyyy-MM-dd HH:mm:ss"); 29 | ui->dateEditRSTime->setDateTime(QDateTime::currentDateTime()); 30 | 31 | this->show(); 32 | } 33 | 34 | /******************* 显示界面 ***********************/ 35 | void NewNormalSlice::showWidget(DataNormalSlice data) 36 | { 37 | ui->lineEditCodeNumber->setText(data.embedCode); 38 | ui->spinBoxPrintNumber->setValue(data.printNum.toInt()); 39 | ui->lineEditColorType->setText(data.stainTypeName); 40 | ui->lineEditColorIndex->setText(data.staining); 41 | ui->lineEditOther->setText(data.other); 42 | ui->comboBoxQPPeople->setCurrentText(data.sectioner); 43 | 44 | ui->dateEditQPTime->setDisplayFormat("yyyy-MM-dd HH:mm:ss"); 45 | ui->dateEditQPTime->setDateTime(QDateTime::fromString(data.sectionTime, "yyyy-MM-dd hh:mm:ss")); 46 | ui->comboBoxRSPeople->setCurrentText(data.stainer); 47 | 48 | ui->dateEditRSTime->setDisplayFormat("yyyy-MM-dd HH:mm:ss"); 49 | ui->dateEditRSTime->setDateTime(QDateTime::fromString(data.stainTime, "yyyy-MM-dd hh:mm:ss")); 50 | 51 | this->show(); 52 | } 53 | 54 | /******************* 确定按钮 ***********************/ 55 | void NewNormalSlice::on_pushButtonOk_clicked() 56 | { 57 | DataNormalSlice data; 58 | 59 | data.embedCode = ui->lineEditCodeNumber->text(); 60 | data.sectionCode = ui->lineEditCodeNumber->text(); 61 | data.printNum = QString::number(ui->spinBoxPrintNumber->value()); 62 | data.stainTypeName = ui->lineEditColorType->text(); 63 | data.staining = ui->lineEditColorIndex->text(); 64 | data.other = ui->lineEditOther->text(); 65 | data.sectioner = ui->comboBoxQPPeople->currentText(); 66 | data.sectionTime = ui->dateEditQPTime->dateTime().toString("yyyy-MM-dd hh:mm:ss"); 67 | data.stainer = ui->comboBoxRSPeople->currentText(); 68 | data.stainTime = ui->dateEditRSTime->dateTime().toString("yyyy-MM-dd hh:mm:ss"); 69 | data.printed = "0"; 70 | 71 | NORMALSLICEDATA->insertData(data); 72 | 73 | emit sendSelect(); 74 | 75 | this->close(); 76 | } 77 | 78 | /******************* 取消按钮 ***********************/ 79 | void NewNormalSlice::on_pushButtonCancel_clicked() 80 | { 81 | this->close(); 82 | } 83 | 84 | /******************* 按钮点击 ***********************/ 85 | void NewNormalSlice::keyPressEvent(QKeyEvent * event) 86 | { 87 | static QString strNumber; 88 | if(event->key() == Qt::Key_Return) 89 | { 90 | ui->lineEditCodeNumber->setText(strNumber); 91 | strNumber.clear(); 92 | } 93 | else 94 | { 95 | strNumber += event->text(); 96 | } 97 | } 98 | -------------------------------------------------------------------------------- /tabnormalslice/newnormalslice.h: -------------------------------------------------------------------------------- 1 | #ifndef NEWNORMALSLICE_H 2 | #define NEWNORMALSLICE_H 3 | 4 | /*************************************************************** 5 | 功能:新建切片 6 | 7 | 创建人:殷宇辰 8 | 9 | 创建时间:2017-9-22 10 | **************************************************************/ 11 | 12 | #include 13 | #include 14 | #include "normalslicedata.h" 15 | 16 | namespace Ui { 17 | class newnormalslice; 18 | } 19 | 20 | class NewNormalSlice : public QMainWindow 21 | { 22 | Q_OBJECT 23 | 24 | public: 25 | explicit NewNormalSlice(QWidget *parent = 0); //构造函数 26 | ~NewNormalSlice(); //析构函数 27 | 28 | void showWidget(); //显示界面 29 | void showWidget(DataNormalSlice data); //显示界面 30 | 31 | signals: 32 | void sendSelect(); 33 | 34 | private slots: 35 | void on_pushButtonOk_clicked(); //确定按钮 36 | void on_pushButtonCancel_clicked(); //取消按钮 37 | 38 | private: 39 | Ui::newnormalslice *ui; 40 | void keyPressEvent(QKeyEvent * event); //获取扫码器信息 41 | }; 42 | 43 | #endif // NEWNORMALSLICE_H 44 | -------------------------------------------------------------------------------- /tabnormalslice/normalslicedata.h: -------------------------------------------------------------------------------- 1 | #ifndef NORMALSLICEDATA_H 2 | #define NORMALSLICEDATA_H 3 | 4 | /*************************************************************** 5 | 功能:常规切片数据库信息 6 | 7 | 创建人:殷宇辰 8 | 9 | 创建时间:2017-9-22 10 | **************************************************************/ 11 | 12 | 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | #include 19 | #include 20 | #include 21 | 22 | typedef struct DataNormalSlice 23 | { 24 | QString sectionId; //id 25 | QString sectionCode; //编号 26 | QString embedCode; //编号 27 | QString stainTypeName; //染色类型 28 | QString staining; //染色指标 29 | QString sectionTime; //切片时间 30 | QString sectioner; //切片人 31 | QString stainTime; //染色时间 32 | QString stainer; //染色人 33 | QString printNum; //打印数量 34 | QString printed; //是否打印 35 | QString other; //其他 36 | }DataNormalSlice; 37 | 38 | 39 | #define NORMALSLICEDATA NormalSliceData::getInstance() 40 | 41 | class NormalSliceData 42 | { 43 | public: 44 | /************ 单例模式 *************/ 45 | static NormalSliceData * getInstance() 46 | { 47 | if(NULL == instance) 48 | { 49 | instance = new NormalSliceData(); 50 | } 51 | 52 | return instance; 53 | } 54 | 55 | /************ 构造函数 *************/ 56 | NormalSliceData(); 57 | 58 | /************ 连接数据库 *************/ 59 | bool dataCnn(); 60 | 61 | /************ 插入数据 *************/ 62 | bool insertData(DataNormalSlice data); 63 | 64 | /************ 查询数据 *************/ 65 | int selectData(int type, QString text); 66 | 67 | /************ 更改数据 *************/ 68 | bool updateData(DataNormalSlice data); 69 | 70 | /************ 删除数据 *************/ 71 | bool deleteData(int type, QString id); 72 | 73 | /************ 获取数据 *************/ 74 | QList getDataList() const; 75 | 76 | private: 77 | QSqlDatabase db; //定义数据库对象 78 | static NormalSliceData * instance; //单例模式 79 | QList dataList; //数据库数据 80 | }; 81 | 82 | #endif // DATABASE_H 83 | -------------------------------------------------------------------------------- /tabnormalslice/tabnormalslice.h: -------------------------------------------------------------------------------- 1 | #ifndef TABNORMALSLICE_H 2 | #define TABNORMALSLICE_H 3 | 4 | /*************************************************************** 5 | 功能:常规切片 6 | 7 | 创建人:殷宇辰 8 | 9 | 创建时间:2017-9-22 10 | **************************************************************/ 11 | 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | #include 19 | #include 20 | #include "newnormalslice.h" 21 | #include "newmorenormalslice.h" 22 | #include "printtemplate/templatesetup.h" 23 | 24 | namespace Ui { 25 | class tabnormalslice; 26 | } 27 | 28 | class TabNormalSlice : public QMainWindow 29 | { 30 | Q_OBJECT 31 | 32 | public: 33 | explicit TabNormalSlice(QWidget *parent = 0); //构造函数 34 | ~TabNormalSlice(); //析构函数 35 | 36 | private slots: 37 | void receiveSelect(); //接收查询信号 38 | void updateMovie(); //更新Gif 39 | void on_actionNewSlice_triggered(); //新建切片 40 | void on_actionPrintLabel_triggered(); //打印标签 41 | void on_actionPrintMoreLabel_triggered(); //批量打印 42 | void on_actionDeleteInfo_triggered(); //删除信息 43 | void on_actionClearInfo_triggered(); //清空信息 44 | void on_pushButtonRefresh_clicked(); //刷新 45 | void on_tableWidget_doubleClicked(const QModelIndex &index); 46 | void on_pushButtonFind_clicked(); //搜索数据 47 | void on_actionNewMore_triggered(); //批量新建 48 | void on_actionPrintTemplate_triggered(); //打印模版 49 | void on_actionImportTxt_triggered(); //导入Txt 50 | 51 | private: 52 | Ui::tabnormalslice *ui; 53 | 54 | void initControl(); //初始化控件 55 | void initData(); //初始化数据 56 | void createActions(); //创建菜单 57 | void contextMenuEvent(QContextMenuEvent *event); //鼠标响应 58 | void dataSelect(int type); //查询数据 59 | 60 | private: 61 | NewNormalSlice *newNormalSlice; //新建切片 62 | NewMoreNormalSlice * newMoreSlice; //批量新建 63 | TemplateSetUp *templateSetUp; //模板 64 | QMenu *menu; //菜单 65 | QAction *print; //打印 66 | QAction *del; //删除 67 | QAction *refresh; //刷新 68 | QMovie *movie; //播放gif 69 | QTimer *timer; //设置定时器 70 | 71 | }; 72 | 73 | #endif // TABNORMALSLICE_H 74 | -------------------------------------------------------------------------------- /tabregister/newmoreslices.h: -------------------------------------------------------------------------------- 1 | #ifndef NEWMORESLICES_H 2 | #define NEWMORESLICES_H 3 | 4 | /*************************************************************** 5 | 功能:批量切片 6 | 7 | 创建人:殷宇辰 8 | 9 | 创建时间:2017-9-22 10 | **************************************************************/ 11 | 12 | #include 13 | #include "registerdata.h" 14 | 15 | namespace Ui { 16 | class newmoreslices; 17 | } 18 | 19 | class CodeTypeInfo; 20 | 21 | class NewMoreSlices : public QMainWindow 22 | { 23 | Q_OBJECT 24 | 25 | public: 26 | explicit NewMoreSlices(QWidget *parent = 0); //构造函数 27 | ~NewMoreSlices(); //析构函数 28 | void showDialog(); //显示界面 29 | 30 | signals: 31 | void signalSelect(int, int); //查询信号 32 | 33 | private slots: 34 | void on_pushButtonOk_clicked(); //确定按钮 35 | void on_pushButtonCancel_clicked(); //取消按钮 36 | 37 | private: 38 | Ui::newmoreslices *ui; 39 | RegisterData registerData; //登记数据库对象 40 | QList dataInfo; //数据信息 41 | }; 42 | 43 | #endif // NEWMORESLICES_H 44 | -------------------------------------------------------------------------------- /tabregister/newslices.cpp: -------------------------------------------------------------------------------- 1 | #include "newslices.h" 2 | #include "ui_newslices.h" 3 | #include 4 | #include "config/qreadini.h" 5 | 6 | /******************* 构造函数 ***********************/ 7 | NewSlices::NewSlices(QWidget *parent) : 8 | QMainWindow(parent), 9 | ui(new Ui::newslices) 10 | { 11 | ui->setupUi(this); 12 | 13 | this->setWindowTitle("标本登记"); 14 | 15 | this->setWindowFlags(this->windowFlags()&~Qt::WindowMaximizeButtonHint&~Qt::WindowMinimizeButtonHint); 16 | } 17 | 18 | /******************* 析构函数 ***********************/ 19 | NewSlices::~NewSlices() 20 | { 21 | delete ui; 22 | } 23 | 24 | /******************* 确定按钮 ***********************/ 25 | void NewSlices::on_pushButtonOk_clicked() 26 | { 27 | SYSTEMDATA->codeBeginSelectData(); 28 | QMapmapData = SYSTEMDATA->getCodeBeginSnSetInfo(); 29 | 30 | RegisterInfo data; 31 | 32 | //序号 33 | { 34 | int setBeginNumber = mapData.value(PCODEBEGINSN).toInt(); 35 | int maxId = registerData.selectMaxId(); 36 | 37 | INICONFIG ->readIni(); 38 | 39 | if(INICONFIG->getStartNumber().toInt() > maxId) 40 | { 41 | data.pCode = QString::number(setBeginNumber); 42 | } 43 | else 44 | { 45 | data.pCode = QString::number(maxId + 1); 46 | } 47 | 48 | INICONFIG->writeIni(data.pCode); 49 | } 50 | 51 | //病理号 52 | { 53 | QDate date = QDate::currentDate(); 54 | 55 | QString str; 56 | str += mapData.value(CUSTOMPREFIX); 57 | if(0 != mapData.value(USERPREFIX).toInt()) 58 | { 59 | if(ui->comboBoxType->currentIndex() >= dataInfo.size()) return; 60 | str += dataInfo.value(ui->comboBoxType->currentIndex()).codeTypeAbbr; 61 | } 62 | 63 | const static int HUNDREDTIME = 100; 64 | if(0 != mapData.value(USEYEAR).toInt()) 65 | { 66 | if(mapData[YEARTYPE].toInt() == 2) 67 | { 68 | str += QString::number((date.year() % HUNDREDTIME)); 69 | } 70 | else 71 | { 72 | str += QString::number((date.year())); 73 | } 74 | } 75 | 76 | if(0 != mapData.value(USEMONTH).toInt()) 77 | { 78 | str += QString::number((date.month())); 79 | } 80 | 81 | if(0 != mapData.value(USEDAY).toInt()) 82 | { 83 | str += QString::number((date.day())); 84 | } 85 | 86 | str += mapData[SPIN]; 87 | 88 | for(int i = 0; i < mapData.value(SNLENGTH).toInt() - data.pCode.length(); i++) 89 | { 90 | str += "0"; 91 | } 92 | 93 | str += data.pCode; 94 | 95 | data.sn = str; 96 | } 97 | 98 | //打印数量 99 | data.printQuantity = QString::number(ui->spinBoxPrintNumber->value()); 100 | 101 | //是否打印 102 | data.printed = QString::number(ui->checkBoxPrint->isChecked()); 103 | 104 | if(ui->checkBoxPrint->isChecked()) 105 | { 106 | emit printBLNumber(ui->spinBoxPrintNumber->value(), data.sn); 107 | } 108 | 109 | //打印时间 110 | data.createTime = QDateTime::currentDateTime().toString("yyyy-MM-dd hh:mm:ss"); 111 | 112 | //录入数据库 113 | registerData.insertRegData(data); 114 | 115 | //发送更新信号 116 | emit signalSelect(ALLDATA, true); 117 | 118 | //关闭窗口 119 | this->close(); 120 | } 121 | 122 | /******************* 取消按钮 ***********************/ 123 | void NewSlices::on_pushButtonCancel_clicked() 124 | { 125 | this->close(); 126 | } 127 | 128 | /******************* 显示对话框 ***********************/ 129 | void NewSlices::showDialog() 130 | { 131 | ui->comboBoxType->clear(); 132 | 133 | SYSTEMDATA->codeTypeSelectData(); 134 | 135 | dataInfo = SYSTEMDATA->getCodeTypeInfo(); 136 | 137 | for(int i = 0; i < dataInfo.size(); i ++) 138 | { 139 | ui->comboBoxType->addItem(dataInfo.at(i).codeTypeAbbr +" "+ dataInfo.at(i).codeTypeName); 140 | } 141 | 142 | this->show(); 143 | } 144 | -------------------------------------------------------------------------------- /tabregister/newslices.h: -------------------------------------------------------------------------------- 1 | #ifndef NEWSLICES_H 2 | #define NEWSLICES_H 3 | 4 | /*************************************************************** 5 | 功能:新建切片 6 | 7 | 创建人:殷宇辰 8 | 9 | 创建时间:2017-9-22 10 | **************************************************************/ 11 | 12 | #include 13 | #include "registerdata.h" 14 | #include "tabsystemset/tabsystemdata.h" 15 | namespace Ui { 16 | class newslices; 17 | } 18 | 19 | class NewSlices : public QMainWindow 20 | { 21 | Q_OBJECT 22 | 23 | public: 24 | explicit NewSlices(QWidget *parent = 0); //构造函数 25 | ~NewSlices(); //析构函数 26 | void showDialog(); //显示对话框 27 | 28 | signals: 29 | void signalSelect(int, int); //查询信号 30 | void printBLNumber(int, QString); //打印信号 31 | 32 | private slots: 33 | void on_pushButtonOk_clicked(); //确定按钮 34 | void on_pushButtonCancel_clicked(); //取消按钮 35 | 36 | private: 37 | Ui::newslices *ui; 38 | RegisterData registerData; //登记数据库对象 39 | QList dataInfo; //数据信息 40 | }; 41 | 42 | #endif // NEWSLICES_H 43 | -------------------------------------------------------------------------------- /tabregister/registerdata.h: -------------------------------------------------------------------------------- 1 | #ifndef REGISTERDATA_H 2 | #define REGISTERDATA_H 3 | 4 | /*************************************************************** 5 | 功能:登记数据库信息 6 | 7 | 创建人:殷宇辰 8 | 9 | 创建时间:2017-9-22 10 | **************************************************************/ 11 | 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | #include 19 | #include 20 | #include "globaldef.h" 21 | 22 | class RegisterData 23 | { 24 | public: 25 | 26 | /************ 构造函数 *************/ 27 | RegisterData(); 28 | 29 | /************ 连接数据库 *************/ 30 | bool dataCnn(); 31 | 32 | /************ 插入数据 *************/ 33 | bool insertRegData(RegisterInfo & data); 34 | 35 | /************ 查询最大Id号 *************/ 36 | int selectMaxId(); 37 | 38 | /************ 查询数据 *************/ 39 | int selectData(); 40 | 41 | /************ 查询数据 *************/ 42 | int selectBLData(QString blNumber); 43 | 44 | /************ 更改数据 *************/ 45 | bool updateBLData(QString printed, QString id); 46 | 47 | /************ 删除数据 *************/ 48 | bool deleteAllData(); 49 | 50 | /************ 删除数据 *************/ 51 | bool deleteRowData(QString id); 52 | 53 | /************ 存储数据 *************/ 54 | QListregisterInfo; 55 | 56 | private: 57 | QSqlDatabase db; //定义数据库对象 58 | }; 59 | 60 | #endif // DATABASE_H 61 | -------------------------------------------------------------------------------- /tabregister/tabregister.h: -------------------------------------------------------------------------------- 1 | #ifndef TABREGISTER_H 2 | #define TABREGISTER_H 3 | 4 | /*************************************************************** 5 | 功能:登记 6 | 7 | 创建人:殷宇辰 8 | 9 | 创建时间:2017-9-22 10 | **************************************************************/ 11 | 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include "registerdata.h" 17 | #include "newslices.h" 18 | #include "paintinfo/patientinfo.h" 19 | #include "newmoreslices.h" 20 | #include "printtemplate/templatesetup.h" 21 | #include "registerdata.h" 22 | #include 23 | #include 24 | #include 25 | namespace Ui { 26 | class tabregister; 27 | } 28 | 29 | class TabRegister : public QMainWindow 30 | { 31 | Q_OBJECT 32 | 33 | public: 34 | explicit TabRegister(QWidget *parent = 0); 35 | ~TabRegister(); 36 | 37 | signals: 38 | void sendNumber(QString, QString); 39 | 40 | private slots: 41 | void updateMovie(); //更新gif 42 | void printBLNumber(int count, QString number); //打印数据 43 | void selectData(int type, int scrollFlage); //查询数据 44 | void on_actionNewNumber_triggered(); //新建编号 45 | void on_actionNewMoreNumber_triggered(); //批量编号 46 | void on_actionPrintTemplate_triggered(); //打印模版 47 | void on_actionDeleteInfo_triggered(); //删除数据 48 | void on_actionClearInfo_triggered(); //清空数据 49 | void on_actionExtendExcel_triggered(); //导出Excel 50 | void on_pushButtonRefresh_clicked(); //刷新数据 51 | void on_pushButtonFind_clicked(); //查找数据 52 | void on_tableWidget_clicked(const QModelIndex ¤tIndex); //单击列表 53 | void on_tableWidget_doubleClicked(const QModelIndex ¤tIndex); //双击列表 54 | void on_actionPrintLabel_triggered(); //打印标签 55 | void on_actionPrintMoreLabel_triggered(); //批量打印 56 | 57 | private: 58 | Ui::tabregister *ui; 59 | 60 | void contextMenuEvent(QContextMenuEvent *event); //显示菜单 61 | void initControl(); //初始化控件 62 | void initData(); //初始化数据 63 | void createActions(); //创建菜单栏 64 | 65 | private: 66 | RegisterData registerData; //登记数据库 67 | PatientInfo patientInfo; //患者信息 68 | NewSlices *newSlices; //新编号 69 | NewMoreSlices *newMoreSlices; //批量编号 70 | TemplateSetUp *templateSetUp; //打印模板 71 | QMovie *movie; //播放gif 72 | QTimer *timer; //设置定时器 73 | QString deleteID; //删除的ID 74 | QMenu *menu; //菜单 75 | QAction *print; //打印 76 | QAction *del; //删除 77 | QAction *refresh; //刷新 78 | }; 79 | 80 | #endif // TABREGISTER_H 81 | -------------------------------------------------------------------------------- /tabspecialslice/newmorespecialslice.h: -------------------------------------------------------------------------------- 1 | #ifndef NEWMORESPECIALSLICE_H 2 | #define NEWMORESPECIALSLICE_H 3 | 4 | 5 | /*************************************************************** 6 | 功能:批量切片 7 | 8 | 创建人:殷宇辰 9 | 10 | 创建时间:2017-9-22 11 | **************************************************************/ 12 | 13 | #include 14 | #include 15 | #include "specialslicedata.h" 16 | 17 | namespace Ui { 18 | class newmorespecialslice; 19 | } 20 | 21 | class NewMoreSpecialSlice : public QMainWindow 22 | { 23 | Q_OBJECT 24 | 25 | signals: 26 | void sendSelect(); //发送查询信号 27 | 28 | public: 29 | explicit NewMoreSpecialSlice(QWidget *parent = 0); //构造函数 30 | ~NewMoreSpecialSlice(); //析构函数 31 | void showWidget(); //显示界面 32 | 33 | private slots: 34 | void on_pushButtonOk_clicked(); //确定按钮 35 | void on_pushButtonCancel_clicked(); //取消按钮 36 | 37 | private: 38 | Ui::newmorespecialslice *ui; 39 | void keyPressEvent(QKeyEvent * event); //获取扫码枪数据 40 | QString subFinger(QString number); //去字母 41 | void setComboBoxInfo(); //设置信息 42 | }; 43 | 44 | #endif // NEWMORENORMALSLICE_H 45 | -------------------------------------------------------------------------------- /tabspecialslice/newspecialslice.h: -------------------------------------------------------------------------------- 1 | #ifndef NEWSPECIALSLICE_H 2 | #define NEWSPECIALSLICE_H 3 | 4 | /*************************************************************** 5 | 功能:新建切片 6 | 7 | 创建人:殷宇辰 8 | 9 | 创建时间:2017-9-22 10 | **************************************************************/ 11 | 12 | #include 13 | #include 14 | #include "specialslicedata.h" 15 | 16 | namespace Ui { 17 | class newspecialslice; 18 | } 19 | 20 | class NewSpecialSlice : public QMainWindow 21 | { 22 | Q_OBJECT 23 | 24 | public: 25 | explicit NewSpecialSlice(QWidget *parent = 0); //构造函数 26 | ~NewSpecialSlice(); //析构函数 27 | 28 | void showWidget(); //显示窗口 29 | void showWidget(DataSpecialSlice data); //显示窗口 30 | 31 | signals: 32 | void sendSelect(); //发送查询信号 33 | 34 | private slots: 35 | void on_pushButtonOk_clicked(); //确定按钮 36 | void on_pushButtonCancel_clicked(); //取消按钮 37 | 38 | private: 39 | Ui::newspecialslice *ui; 40 | void setComboBoxInfo(); //设置信息 41 | void keyPressEvent(QKeyEvent * event); //获取扫码枪数据 42 | }; 43 | 44 | #endif // NEWNORMALSLICE_H 45 | -------------------------------------------------------------------------------- /tabspecialslice/specialslicedata.h: -------------------------------------------------------------------------------- 1 | #ifndef SPECIALSLICEDATA_H 2 | #define SPECIALSLICEDATA_H 3 | 4 | /*************************************************************** 5 | 功能:特染切片数据库信息 6 | 7 | 创建人:殷宇辰 8 | 9 | 创建时间:2017-9-22 10 | **************************************************************/ 11 | 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | #include 19 | #include 20 | 21 | #define SPECIALSLICEDATA SpecialSliceData::getInstance() 22 | 23 | typedef struct DataSpecialSlice 24 | { 25 | QString sectionId; //id 26 | QString sectionCode; //编号 27 | QString embedCode; //编号 28 | QString stainTypeName; //染色类型 29 | QString staining; //染色指标 30 | QString sectionTime; //切片时间 31 | QString sectioner; //切片人 32 | QString stainTime; //染色时间 33 | QString stainer; //染色人 34 | QString printNum; //打印数量 35 | QString printed; //是否打印 36 | QString cloneNumber; //克隆号码 37 | }DataSpecialSlice; 38 | 39 | class SpecialSliceData 40 | { 41 | public: 42 | 43 | /************ 单例模式 *************/ 44 | static SpecialSliceData * getInstance() 45 | { 46 | if(NULL == instance) 47 | { 48 | instance = new SpecialSliceData(); 49 | } 50 | 51 | return instance; 52 | } 53 | 54 | /************ 构造函数 *************/ 55 | SpecialSliceData(); 56 | 57 | /************ 连接数据库 *************/ 58 | bool dataCnn(); 59 | 60 | /************ 插入数据 *************/ 61 | bool insertData(DataSpecialSlice data); 62 | 63 | /************ 查询数据 *************/ 64 | int selectData(int type, QString text); 65 | 66 | /************ 更改数据 *************/ 67 | bool updateData(DataSpecialSlice data); 68 | 69 | /************ 删除数据 *************/ 70 | bool deleteData(int type, QString id); 71 | 72 | /************ 获取数据 *************/ 73 | QList getDataList() const; 74 | 75 | private: 76 | QSqlDatabase db; //定义数据库对象 77 | static SpecialSliceData * instance; //单例模式 78 | QList dataList; //数据库数据 79 | }; 80 | 81 | #endif // DATABASE_H 82 | -------------------------------------------------------------------------------- /tabspecialslice/tabspecialslice.h: -------------------------------------------------------------------------------- 1 | #ifndef TABSPECIASLICE_H 2 | #define TABSPECIASLICE_H 3 | 4 | /*************************************************************** 5 | 功能:特染切片 6 | 7 | 创建人:殷宇辰 8 | 9 | 创建时间:2017-9-22 10 | **************************************************************/ 11 | 12 | #include 13 | #include 14 | #include "newmorespecialslice.h" 15 | #include "newspecialslice.h" 16 | #include "printtemplate/templatesetup.h" 17 | #include 18 | #include 19 | #include 20 | #include 21 | #include 22 | #include 23 | #include 24 | 25 | namespace Ui { 26 | class tabspecialslice; 27 | } 28 | 29 | 30 | class TabSpeciaSlice : public QMainWindow 31 | { 32 | Q_OBJECT 33 | 34 | public: 35 | explicit TabSpeciaSlice(QWidget *parent = 0); 36 | ~TabSpeciaSlice(); 37 | 38 | private slots: 39 | void receiveSelect(); //接收查询 40 | void updateMovie(); //更新Gif 41 | void on_actionNewSlice_triggered(); //新建切片 42 | void on_actionNewMore_triggered(); //批量打印 43 | void on_actionPrintLabel_triggered(); //打印标签 44 | void on_actionDeleteInfo_triggered(); //删除信息 45 | void on_actionPrintTemplate_triggered(); //打印模板 46 | void on_pushButtonRefresh_clicked(); //刷新数据 47 | void on_tableWidget_doubleClicked(const QModelIndex &index); 48 | void on_pushButtonFind_clicked(); //查找数据 49 | 50 | private: 51 | Ui::tabspecialslice *ui; 52 | void initControl(); //初始化控件 53 | void initData(); //初始化数据 54 | void createActions(); //创建菜单 55 | void contextMenuEvent(QContextMenuEvent *event); //鼠标响应 56 | void dataSelect(int type); //查询数据 57 | 58 | NewSpecialSlice *newSpecialSlice; //新建切片 59 | NewMoreSpecialSlice * newMoreSlice; //批量新增 60 | TemplateSetUp *templateSetUp; //模板 61 | QMenu *menu; //菜单 62 | QAction *print; //打印 63 | QAction *del; //删除 64 | QAction *refresh; //刷新 65 | QMovie *movie; //播放gif 66 | QTimer *timer; //设置定时器 67 | 68 | }; 69 | 70 | #endif // TABNORMALSLICE_H 71 | -------------------------------------------------------------------------------- /tabstatistics/tabstatistics.h: -------------------------------------------------------------------------------- 1 | #ifndef TABSTATISTICS_H 2 | #define TABSTATISTICS_H 3 | 4 | /*************************************************************** 5 | 功能:统计数据 6 | 7 | 创建人:殷宇辰 8 | 9 | 创建时间:2017-9-22 10 | **************************************************************/ 11 | 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include "tabmaterial/materialdata.h" 17 | 18 | namespace Ui { 19 | class tabstatistics; 20 | } 21 | 22 | class TabsSatistics : public QMainWindow 23 | { 24 | Q_OBJECT 25 | 26 | public: 27 | explicit TabsSatistics(QWidget *parent = 0); 28 | ~TabsSatistics(); 29 | 30 | private slots: 31 | void on_actionReferesh_triggered(); //刷新 32 | void on_actionExtend_triggered(); //导出 33 | void on_pushButtonSum_clicked(); //统计 34 | 35 | private: 36 | Ui::tabstatistics *ui; 37 | QMenu *menu; //菜单 38 | QAction *refresh; //刷新 39 | QAction *extend; //导出 40 | 41 | void contextMenuEvent(QContextMenuEvent *event); //显示菜单 42 | void initControl(); //初始化控件 43 | void initData(); //初始化数据 44 | void createActions(); //创建菜单栏 45 | void dataSelect(int type); //查询数据 46 | }; 47 | 48 | #endif // TABSTATISTICS_H 49 | -------------------------------------------------------------------------------- /tabsystemset/otherwidget/coderole.h: -------------------------------------------------------------------------------- 1 | #ifndef CODEROLE_H 2 | #define CODEROLE_H 3 | 4 | /*************************************************************** 5 | 功能:设置编码规则 6 | 7 | 创建人:殷宇辰 8 | 9 | 创建时间:2017-7-29 10 | **************************************************************/ 11 | 12 | 13 | #include 14 | #include 15 | #include 16 | 17 | namespace Ui { 18 | class coderole; 19 | } 20 | 21 | enum NUMBERTYPEENUM 22 | { 23 | NUMBER, 24 | SMALLLETTER, 25 | BIGLETTER, 26 | }; 27 | 28 | class CodeRole : public QWidget 29 | { 30 | Q_OBJECT 31 | 32 | public: 33 | explicit CodeRole(QWidget *parent = 0); 34 | ~CodeRole(); 35 | 36 | private slots: 37 | void on_checkBoxType_clicked(); //类别 38 | void on_checkBoxYear_clicked(); //年份 39 | void on_radioButtonTwo_clicked(); //两位年份 40 | void on_radioButtonFour_clicked(); //四位年份 41 | void on_checkBoxMonth_clicked(); //月份 42 | void on_checkBoxDay_clicked(); //日 43 | void on_lineEditPrefix_textChanged(const QString &arg1); //前缀 44 | void on_spinBoxLength_valueChanged(const QString &arg1); //流水号长度 45 | void on_lineEditSpin_textChanged(const QString &arg1); //间隔符 46 | void on_checkBoxBingLiNumber_clicked(); //病理号 47 | void on_checkBoxHyphen_clicked(); //连字符 48 | void on_comboBoxNumberType_activated(const QString &arg1); //流水号类型 49 | void on_pushButtonOk_clicked(); //确定按钮 50 | void on_pushButtonCancel_clicked(); //取消按钮 51 | 52 | private: 53 | Ui::coderole *ui; 54 | void changeBingLiCodeRule(); //病理号编码规则 55 | void changQuCaiCodeRule(); //取材编码规则 56 | void initCodeRule(); //初始化编码规则 57 | }; 58 | 59 | //线程类,用于插入数据 60 | class InsertThread: public QThread 61 | { 62 | public: 63 | InsertThread(); 64 | 65 | void run(); 66 | public: 67 | QString customPrefix; 68 | QString usePrefix; 69 | QString useYear; 70 | QString yearType; 71 | QString useMonth; 72 | QString useDay; 73 | QString spin; 74 | QString snLength; 75 | QString bLNumber; 76 | QString hyphen; 77 | QString numberType; 78 | QString itemSplit; 79 | QMutex mutex; 80 | }; 81 | 82 | #endif // CODEROLE_H 83 | -------------------------------------------------------------------------------- /tabsystemset/otherwidget/immuneindexset.h: -------------------------------------------------------------------------------- 1 | #ifndef IMMUNEINDEXSET_H 2 | #define IMMUNEINDEXSET_H 3 | 4 | /*************************************************************** 5 | 功能:免疫组化切片指标设置 6 | 7 | 创建人:殷宇辰 8 | 9 | 创建时间:2017-7-29 10 | **************************************************************/ 11 | 12 | #include 13 | #include "tabsystemset/tabsystemdata.h" 14 | #include "tabsystemset/otherwidget/typesetdialog.h" 15 | #include "printtemplate/templatesetup.h" 16 | 17 | namespace Ui { 18 | class immuneindexset; 19 | } 20 | 21 | class ImmuneIndexSet : public QWidget 22 | { 23 | Q_OBJECT 24 | 25 | public: 26 | explicit ImmuneIndexSet(QWidget *parent = 0); 27 | ~ImmuneIndexSet(); 28 | 29 | void showDialog(); 30 | 31 | private slots: 32 | void receiveData(QString typeName, int type); //接收数据 33 | void on_pushButtonNew_clicked(); //新建 34 | void on_pushButtonDelete_clicked(); //删除 35 | void on_pushButtonUpdate_clicked(); //更改 36 | void on_pushButtonExit_clicked(); //退出 37 | void on_tableWidget_clicked(const QModelIndex &index); //列表点击 38 | void on_pushButtonTemplateSet_clicked(); //设置模板 39 | void on_pushButtonPrint_clicked(); //点击打印 40 | void on_pushButtonPrintAll_clicked(); //打印所有 41 | 42 | private: 43 | Ui::immuneindexset *ui; 44 | 45 | void initControl(); //初始化控件 46 | void initValue(); //初始化值 47 | 48 | private: 49 | int nowRow; //当前选中行 50 | TypeSetDialog *typeSetDialog; //新建输入框 51 | TemplateSetUp *templateSetUp; //打印模板 52 | }; 53 | 54 | #endif // TYPESET_H 55 | -------------------------------------------------------------------------------- /tabsystemset/otherwidget/immunetypeset.h: -------------------------------------------------------------------------------- 1 | #ifndef IMMUNETYPESET_H 2 | #define IMMUNETYPESET_H 3 | 4 | 5 | /*************************************************************** 6 | 功能:免疫组化切片类型设置 7 | 8 | 创建人:殷宇辰 9 | 10 | 创建时间:2017-7-29 11 | **************************************************************/ 12 | 13 | 14 | #include 15 | #include "tabsystemset/tabsystemdata.h" 16 | #include "tabsystemset/otherwidget/typesetdialog.h" 17 | 18 | namespace Ui { 19 | class immunetypeset; 20 | } 21 | 22 | class ImmuneTypeSet : public QWidget 23 | { 24 | Q_OBJECT 25 | 26 | public: 27 | explicit ImmuneTypeSet(QWidget *parent = 0); //构造函数 28 | ~ImmuneTypeSet(); //析构函数 29 | void showDialog(); //显示窗口 30 | 31 | private slots: 32 | void receiveData(QString typeName, int type); //接收数据 33 | void on_pushButtonNew_clicked(); //新建 34 | void on_pushButtonDelete_clicked(); //删除 35 | void on_pushButtonUpdate_clicked(); //更改 36 | void on_pushButtonExit_clicked(); //退出 37 | void on_tableWidget_clicked(const QModelIndex &index); //点击列表 38 | 39 | private: 40 | Ui::immunetypeset *ui; 41 | 42 | void initControl(); //初始化控件 43 | void initValue(); //初始化值 44 | 45 | private: 46 | int nowRow; //当前选中行 47 | TypeSetDialog *typeSetDialog; //新建输入框 48 | }; 49 | 50 | #endif // TYPESET_H 51 | -------------------------------------------------------------------------------- /tabsystemset/otherwidget/printset.h: -------------------------------------------------------------------------------- 1 | #ifndef PRINTSET_H 2 | #define PRINTSET_H 3 | 4 | /*************************************************************** 5 | 功能:打印设置 6 | 7 | 创建人:殷宇辰 8 | 9 | 创建时间:2017-7-29 10 | **************************************************************/ 11 | 12 | #include 13 | #include "tabsystemset/tabsystemdata.h" 14 | #include "tabsystemset/otherwidget/typesetdialog.h" 15 | #include 16 | 17 | namespace Ui { 18 | class printset; 19 | } 20 | 21 | class PrintSet : public QWidget 22 | { 23 | Q_OBJECT 24 | 25 | public: 26 | explicit PrintSet(QWidget *parent = 0); //构造函数 27 | ~PrintSet(); //析构函数 28 | void showDialog(); //显示界面 29 | 30 | private slots: 31 | void on_pushButtonOk_clicked(); //确定按钮 32 | void on_pushButtonCancel_clicked(); //取消按钮 33 | void on_tableWidget_doubleClicked(const QModelIndex &index); //双击列表 34 | void on_pushButtonDelete_clicked(); //删除数据 35 | 36 | private: 37 | Ui::printset *ui; 38 | 39 | void initControl(); //初始化控件 40 | void initValue(); //初始化值 41 | void dataSelect(); //查询数据 42 | QPrinterInfo printer; //打印对象 43 | }; 44 | 45 | #endif // TYPESET_H 46 | -------------------------------------------------------------------------------- /tabsystemset/otherwidget/specialindexset.h: -------------------------------------------------------------------------------- 1 | #ifndef SPECIALINDEXSETSET_H 2 | #define SPECIALINDEXSETSET_H 3 | 4 | /*************************************************************** 5 | 功能:特染切片指标设置 6 | 7 | 创建人:殷宇辰 8 | 9 | 创建时间:2017-7-29 10 | **************************************************************/ 11 | 12 | #include 13 | #include "tabsystemset/tabsystemdata.h" 14 | #include "tabsystemset/otherwidget/typesetdialog.h" 15 | #include "printtemplate/templatesetup.h" 16 | 17 | namespace Ui { 18 | class specialindexset; 19 | } 20 | 21 | class SpeciaIndexSet : public QWidget 22 | { 23 | Q_OBJECT 24 | 25 | public: 26 | explicit SpeciaIndexSet(QWidget *parent = 0); //构造函数 27 | ~SpeciaIndexSet(); //析构函数 28 | void showDialog(); //显示界面 29 | 30 | private slots: 31 | void receiveData(QString typeName, int type); //接收数据 32 | void on_pushButtonNew_clicked(); //新建 33 | void on_pushButtonDelete_clicked(); //删除 34 | void on_pushButtonUpdate_clicked(); //更改 35 | void on_pushButtonExit_clicked(); //退出 36 | void on_tableWidget_clicked(const QModelIndex &index); //点击列表 37 | void on_pushButtonPrint_clicked(); //打印 38 | void on_pushButtonPrintAll_clicked(); //打印所有 39 | void on_pushButtonTemplateSet_clicked(); //模板设置 40 | 41 | private: 42 | Ui::specialindexset *ui; 43 | 44 | void initControl(); //初始化控件 45 | void initValue(); //初始化值 46 | 47 | private: 48 | int nowRow; //当前选中行 49 | TypeSetDialog *typeSetDialog; //新建输入框 50 | TemplateSetUp *templateSetUp; //打印模板 51 | }; 52 | 53 | #endif // TYPESET_H 54 | -------------------------------------------------------------------------------- /tabsystemset/otherwidget/specialtypeset.h: -------------------------------------------------------------------------------- 1 | #ifndef SPECIATYPESET_H 2 | #define SPECIATYPESET_H 3 | 4 | /*************************************************************** 5 | 功能:特染切片类型设置 6 | 7 | 创建人:殷宇辰 8 | 9 | 创建时间:2017-7-29 10 | **************************************************************/ 11 | 12 | #include 13 | #include "tabsystemset/tabsystemdata.h" 14 | #include "tabsystemset/otherwidget/typesetdialog.h" 15 | 16 | namespace Ui { 17 | class speciatypeset; 18 | } 19 | 20 | class SpeciaTypeSet : public QWidget 21 | { 22 | Q_OBJECT 23 | 24 | public: 25 | explicit SpeciaTypeSet(QWidget *parent = 0); //构造函数 26 | ~SpeciaTypeSet(); //析构函数 27 | void showDialog(); //显示界面 28 | 29 | private slots: 30 | void receiveData(QString typeName, int type); //接收数据 31 | void on_pushButtonNew_clicked(); //新建 32 | void on_pushButtonDelete_clicked(); //删除 33 | void on_pushButtonUpdate_clicked(); //更改 34 | void on_pushButtonExit_clicked(); //退出 35 | void on_tableWidget_clicked(const QModelIndex &index); //列表点击 36 | 37 | private: 38 | Ui::speciatypeset *ui; 39 | 40 | void initControl(); //初始化控件 41 | void initValue(); //初始化值 42 | 43 | private: 44 | int nowRow; //当前选中行 45 | TypeSetDialog *typeSetDialog; //新建输入框 46 | }; 47 | 48 | #endif // TYPESET_H 49 | -------------------------------------------------------------------------------- /tabsystemset/otherwidget/typeset.h: -------------------------------------------------------------------------------- 1 | #ifndef TYPESET_H 2 | #define TYPESET_H 3 | 4 | /*************************************************************** 5 | 功能:标本类别设置 6 | 7 | 创建人:殷宇辰 8 | 9 | 创建时间:2017-7-29 10 | **************************************************************/ 11 | 12 | #include 13 | #include "tabsystemset/tabsystemdata.h" 14 | #include "tabsystemset/otherwidget/typesetdialog.h" 15 | 16 | namespace Ui { 17 | class typeset; 18 | } 19 | 20 | class TypeSet : public QWidget 21 | { 22 | Q_OBJECT 23 | 24 | public: 25 | explicit TypeSet(QWidget *parent = 0); 26 | ~TypeSet(); 27 | 28 | void showDialog(); 29 | 30 | private slots: 31 | void receiveData(QString typeAbbreviation, QString typeName, int type); //接收数据 32 | void on_pushButtonNew_clicked(); //新建 33 | void on_pushButtonDelete_clicked(); //删除 34 | void on_pushButtonUpdate_clicked(); //更改 35 | void on_pushButtonExit_clicked(); //退出 36 | void on_tableWidget_clicked(const QModelIndex &index); //点击列表 37 | 38 | private: 39 | Ui::typeset *ui; 40 | 41 | void initControl(); //初始化控件 42 | void initValue(); //初始化值 43 | 44 | private: 45 | int nowRow; //当前选中行 46 | TypeSetDialog *typeSetDialog; //新建输入框 47 | }; 48 | 49 | #endif // TYPESET_H 50 | -------------------------------------------------------------------------------- /tabsystemset/otherwidget/typesetdialog.cpp: -------------------------------------------------------------------------------- 1 | #include "typesetdialog.h" 2 | #include "ui_typesetdialog.h" 3 | #include "messagebox/messagedialog.h" 4 | #include "globaldef.h" 5 | 6 | /**************** 构造函数 **********************/ 7 | TypeSetDialog::TypeSetDialog(QWidget *parent) : 8 | QMainWindow(parent) 9 | ,ui(new Ui::typesetdialog) 10 | ,dataType(0) 11 | { 12 | ui->setupUi(this); 13 | 14 | this->setWindowTitle("类别"); 15 | 16 | this->setWindowFlags(this->windowFlags()&~Qt::WindowMaximizeButtonHint&~Qt::WindowMinimizeButtonHint); 17 | } 18 | 19 | 20 | /**************** 析构函数 **********************/ 21 | TypeSetDialog::~TypeSetDialog() 22 | { 23 | delete ui; 24 | } 25 | 26 | /**************** 确定按钮 **********************/ 27 | void TypeSetDialog::on_pushButtonOk_clicked() 28 | { 29 | if(ui->lineEditTypeName->text().isEmpty()) 30 | { 31 | MESSAGEBOX->setInfo(GLOBALDEF::SYSTEMINFO, "请输入类别名称!", QPixmap(GLOBALDEF::FAILIMAGE), false, this); 32 | return; 33 | } 34 | 35 | if(ui->label->isHidden()) 36 | { 37 | emit sendString(ui->lineEditTypeName->text(), dataType); 38 | } 39 | else 40 | { 41 | emit sendString(ui->lineEditTypeAbbreviation->text(), ui->lineEditTypeName->text(), dataType); 42 | } 43 | 44 | 45 | this->close(); 46 | } 47 | 48 | /**************** 取消按钮 **********************/ 49 | void TypeSetDialog::on_pushButtonCancel_clicked() 50 | { 51 | this->close(); 52 | } 53 | 54 | /**************** 显示更新窗口 **********************/ 55 | void TypeSetDialog::showUpdateDialog(QString typeAbbreviation, QString typeName) 56 | { 57 | dataType = GLOBALDEF::TYPEUPDATE; 58 | ui->lineEditTypeAbbreviation->setText(typeAbbreviation); 59 | ui->lineEditTypeName->setText(typeName); 60 | 61 | this->show(); 62 | } 63 | 64 | /**************** 显示窗口 **********************/ 65 | void TypeSetDialog::showNewDialog() 66 | { 67 | dataType = GLOBALDEF::TYPEINSERT; 68 | 69 | ui->lineEditTypeAbbreviation->setText(""); 70 | ui->lineEditTypeName->setText(""); 71 | 72 | this->show(); 73 | } 74 | 75 | /**************** 设置信息 **********************/ 76 | void TypeSetDialog::setInfo() 77 | { 78 | ui->label->hide(); 79 | ui->lineEditTypeAbbreviation->hide(); 80 | this->setWindowTitle("属性"); 81 | this->setMinimumHeight(180); 82 | this->setMaximumHeight(180); 83 | } 84 | -------------------------------------------------------------------------------- /tabsystemset/otherwidget/typesetdialog.h: -------------------------------------------------------------------------------- 1 | #ifndef TYPESETDIALOG_H 2 | #define TYPESETDIALOG_H 3 | 4 | /*************************************************************** 5 | 功能:新建更新对话框 6 | 7 | 创建人:殷宇辰 8 | 9 | 创建时间:2017-7-29 10 | **************************************************************/ 11 | 12 | #include 13 | 14 | namespace Ui { 15 | class typesetdialog; 16 | } 17 | 18 | class TypeSetDialog : public QMainWindow 19 | { 20 | Q_OBJECT 21 | 22 | public: 23 | explicit TypeSetDialog(QWidget *parent = 0); //构造函数 24 | ~TypeSetDialog(); //析构函数 25 | 26 | void showUpdateDialog(QString typeAbbreviation, QString typeName); //显示更新窗口 27 | void showNewDialog(); //显示窗口 28 | void setInfo(); //设置信息 29 | 30 | private slots: 31 | void on_pushButtonOk_clicked(); //确定按钮 32 | void on_pushButtonCancel_clicked(); //取消按钮 33 | 34 | signals: 35 | void sendString(QString, QString, int); //发送信号 36 | void sendString(QString, int); //发送信号 37 | 38 | private: 39 | Ui::typesetdialog *ui; 40 | int dataType; //数据类型 41 | }; 42 | 43 | #endif // TYPESETDIALOG_H 44 | -------------------------------------------------------------------------------- /tabsystemset/otherwidget/userset.h: -------------------------------------------------------------------------------- 1 | #ifndef USERSET_H 2 | #define USERSET_H 3 | 4 | /*************************************************************** 5 | 功能:用户设置 6 | 7 | 创建人:殷宇辰 8 | 9 | 创建时间:2017-7-29 10 | **************************************************************/ 11 | 12 | #include 13 | #include "tabsystemset/tabsystemdata.h" 14 | #include "tabsystemset/otherwidget/typesetdialog.h" 15 | #include "userwidget.h" 16 | 17 | namespace Ui { 18 | class userset; 19 | } 20 | 21 | class UserSet : public QWidget 22 | { 23 | Q_OBJECT 24 | 25 | public: 26 | explicit UserSet(QWidget *parent = 0); 27 | ~UserSet(); 28 | 29 | void showDialog(); 30 | 31 | private slots: 32 | void receiveData(UserData data); //接收数据 33 | void on_pushButtonNew_clicked(); //新建 34 | void on_pushButtonDelete_clicked(); //删除 35 | void on_pushButtonUpdate_clicked(); //更新 36 | void on_pushButtonExit_clicked(); //退出 37 | void on_tableWidget_clicked(const QModelIndex &index); //点击列表 38 | 39 | private: 40 | Ui::userset *ui; 41 | 42 | void initControl(); //初始化控件 43 | void initValue(); //初始化值 44 | void dataSelect(); //数据查询 45 | QWidget * setWidget(int authority, int type); //设置Check 46 | 47 | private: 48 | UserWidget *userWidget; 49 | int nowRow; //当前选中行 50 | }; 51 | 52 | #endif // TYPESET_H 53 | -------------------------------------------------------------------------------- /tabsystemset/otherwidget/userwidget.cpp: -------------------------------------------------------------------------------- 1 | #include "userwidget.h" 2 | #include "ui_userwidget.h" 3 | #include "globaldef.h" 4 | 5 | /**************** 构造函数 **********************/ 6 | UserWidget::UserWidget(QWidget *parent) : 7 | QMainWindow(parent), 8 | ui(new Ui::userwidget) 9 | { 10 | ui->setupUi(this); 11 | 12 | this->setWindowTitle("用户"); 13 | this->setWindowFlags(this->windowFlags()& ~Qt::WindowMaximizeButtonHint& ~Qt::WindowMinimizeButtonHint); 14 | } 15 | 16 | /**************** 析构函数 **********************/ 17 | UserWidget::~UserWidget() 18 | { 19 | delete ui; 20 | } 21 | 22 | /**************** 显示窗口窗口 **********************/ 23 | void UserWidget::showWidget() 24 | { 25 | this->clearInfo(); 26 | 27 | this->show(); 28 | } 29 | 30 | /**************** 显示更新窗口 **********************/ 31 | void UserWidget::showUpdateWidget(UserData data) 32 | { 33 | clearInfo(); 34 | 35 | ui->lineEditUserName->setText(data.userName); 36 | 37 | if(data.isAdministrator.toInt()) 38 | { 39 | ui->checkBoxAdminster->setChecked(true); 40 | } 41 | 42 | ui->lineEditRemark->setText(data.remark); 43 | 44 | int authority = data.authority.toInt(); 45 | 46 | if(authority & GLOBALDEF::SHOWREG) ui->checkBoxReg->setChecked(true); 47 | 48 | if(authority & GLOBALDEF::SHOWMATERIAL) ui->checkBoxMateral->setChecked(true); 49 | 50 | if(authority & GLOBALDEF::SHOWNORMALSLICE) ui->checkBoxNormal->setChecked(true); 51 | 52 | if(authority & GLOBALDEF::SHOWIMMUNESLICE) ui->checkBoxImmune->setChecked(true); 53 | 54 | if(authority & GLOBALDEF::SHOWSPECIALSLICE) ui->checkBoxSpecial->setChecked(true); 55 | 56 | if(authority & GLOBALDEF::SHOWSATISTICS) ui->checkBoxSelect->setChecked(true); 57 | 58 | this->show(); 59 | } 60 | 61 | /**************** 确定按钮 **********************/ 62 | void UserWidget::on_pushButtonOk_clicked() 63 | { 64 | UserData data; 65 | 66 | if(ui->lineEditUserName->text().isEmpty()) return; 67 | 68 | data.userName = ui->lineEditUserName->text(); 69 | 70 | if(ui->lineEditPassWord->text() != ui->lineEditPassWordMore->text()) return; 71 | 72 | data.passWord = ui->lineEditPassWord->text(); 73 | 74 | data.isAdministrator = QString::number(ui->checkBoxAdminster->isChecked()); 75 | 76 | data.remark = ui->lineEditRemark->text(); 77 | 78 | int authority = 0; 79 | 80 | if(ui->checkBoxReg->isChecked()) 81 | { 82 | authority |= GLOBALDEF::SHOWREG; 83 | } 84 | if(ui->checkBoxMateral->isChecked()) 85 | { 86 | authority |= GLOBALDEF::SHOWMATERIAL; 87 | } 88 | if(ui->checkBoxNormal->isChecked()) 89 | { 90 | authority |= GLOBALDEF::SHOWNORMALSLICE; 91 | } 92 | if(ui->checkBoxImmune->isChecked()) 93 | { 94 | authority |= GLOBALDEF::SHOWIMMUNESLICE; 95 | } 96 | if(ui->checkBoxSpecial->isChecked()) 97 | { 98 | authority |= GLOBALDEF::SHOWSPECIALSLICE; 99 | } 100 | if(ui->checkBoxSelect->isChecked()) 101 | { 102 | authority |= GLOBALDEF::SHOWSATISTICS; 103 | } 104 | 105 | data.authority = QString::number(authority); 106 | 107 | emit sendData(data); 108 | 109 | this->close(); 110 | } 111 | 112 | /**************** 取消按钮 **********************/ 113 | void UserWidget::on_pushButtonCancel_clicked() 114 | { 115 | this->close(); 116 | } 117 | 118 | /**************** 清空信息 **********************/ 119 | void UserWidget::clearInfo() 120 | { 121 | ui->checkBoxAdminster->setChecked(false); 122 | ui->checkBoxImmune->setChecked(false); 123 | ui->checkBoxReg->setChecked(false); 124 | ui->checkBoxMateral->setChecked(false); 125 | ui->checkBoxNormal->setChecked(false); 126 | ui->checkBoxSpecial->setChecked(false); 127 | ui->checkBoxSpecial->setChecked(false); 128 | 129 | ui->lineEditPassWord->clear(); 130 | ui->lineEditPassWordMore->clear(); 131 | ui->lineEditRemark->clear(); 132 | ui->lineEditUserName->clear(); 133 | } 134 | -------------------------------------------------------------------------------- /tabsystemset/otherwidget/userwidget.h: -------------------------------------------------------------------------------- 1 | #ifndef USERWIDGET_H 2 | #define USERWIDGET_H 3 | 4 | 5 | /*************************************************************** 6 | 功能:用户新建更改对话框 7 | 8 | 创建人:殷宇辰 9 | 10 | 创建时间:2017-7-29 11 | **************************************************************/ 12 | 13 | #include 14 | #include "../tabsystemdata.h" 15 | 16 | namespace Ui { 17 | class userwidget; 18 | } 19 | 20 | class UserWidget : public QMainWindow 21 | { 22 | Q_OBJECT 23 | 24 | public: 25 | explicit UserWidget(QWidget *parent = 0); //构造函数 26 | ~UserWidget(); //析构函数 27 | void showWidget(); //显示窗口 28 | void showUpdateWidget(UserData data); //显示更新界面 29 | 30 | signals: 31 | void sendData(UserData data); //发送数据 32 | 33 | private slots: 34 | void on_pushButtonOk_clicked(); //确定按钮 35 | void on_pushButtonCancel_clicked(); //取消按钮 36 | 37 | private: 38 | Ui::userwidget *ui; 39 | void clearInfo(); //清空信息 40 | }; 41 | 42 | #endif // USERWIDGET_H 43 | -------------------------------------------------------------------------------- /tabsystemset/tabsystemset.h: -------------------------------------------------------------------------------- 1 | #ifndef TABSYSTEMSET_H 2 | #define TABSYSTEMSET_H 3 | 4 | /*************************************************************** 5 | 功能:系统设置 6 | 7 | 创建人:殷宇辰 8 | 9 | 创建时间:2017-7-25 10 | **************************************************************/ 11 | 12 | #include 13 | #include 14 | #include 15 | #include "otherwidget/typeset.h" 16 | #include "otherwidget/coderole.h" 17 | #include "tabsystemdata.h" 18 | #include "otherwidget/printset.h" 19 | #include "otherwidget/immuneindexset.h" 20 | #include "otherwidget/immunetypeset.h" 21 | #include "otherwidget/specialindexset.h" 22 | #include "otherwidget/specialtypeset.h" 23 | #include "otherwidget/userset.h" 24 | 25 | namespace Ui { 26 | class tabsystemset; 27 | } 28 | 29 | class TabSystemSet : public QMainWindow 30 | { 31 | Q_OBJECT 32 | 33 | public: 34 | explicit TabSystemSet(QWidget *parent = 0); //构造函数 35 | ~TabSystemSet(); //析构函数 36 | 37 | private slots: 38 | void listWidgetClicked(const QModelIndex &index); //点击列表 39 | void on_pushButtonOk_clicked(); //确定按钮 40 | void on_pushButtonCancel_clicked(); //取消按钮 41 | 42 | private: 43 | Ui::tabsystemset *ui; 44 | void initControl(); //初始化控件 45 | 46 | private: 47 | QListWidget *listWidget; //列表控件 48 | 49 | //系统设置窗口 50 | TypeSet typeSet; 51 | CodeRole codeRole; 52 | PrintSet printSet; 53 | UserSet userSet; 54 | SpeciaIndexSet speciaIndexSet; 55 | SpeciaTypeSet speciaTypeSet; 56 | ImmuneIndexSet immuneIndexSet; 57 | ImmuneTypeSet immuneTypeSet; 58 | 59 | //显示窗口 60 | void showCentralwidget(); 61 | void showTypeSet(); 62 | void showCodeRule(); 63 | void showPrintSet(); 64 | void showUserSet(); 65 | void showImmuneTypeSet(); 66 | void showImmuneIndexSet(); 67 | void showSpecialTypeSet(); 68 | void showSpecialIndexSet(); 69 | 70 | }; 71 | 72 | #endif // TABSYSTEMSET_H 73 | --------------------------------------------------------------------------------