From ad2a36a8425406799db94a2e26d1fba82db6aa60 Mon Sep 17 00:00:00 2001 From: congmu <congmu2024@163.com> Date: 星期四, 31 十月 2024 15:56:12 +0800 Subject: [PATCH] Merge branch 'master' of ssh://115.28.86.8:29418/~admin/昆仑_1025 --- Client/李宵增/document/历史查询分析模块需求分析.docx | 0 Server/王琨元/code/MysqlConn.h | 63 + Server/马渝杭/log/20241031昆仑日报.doc | 0 Client/姜可庚/code/2024kunlun_project_permisson/mainwindow.cpp | 14 Client/姜可庚/code/2024kunlun_project_permisson/PmsClientSocket.cpp.autosave | 109 ++ Client/王鑫鑫/log/昆仑_1031项目日报.doc | 0 Client/姜可庚/code/2024kunlun_project_permisson/main.cpp | 11 Client/黎弘霖/log/设备管理_黎弘霖_1031.doc | 0 Client/姜可庚/code/2024kunlun_project_permisson/syncdatatodb.h | 48 Client/宋昊昳/log/日志_宋昊昳_1031.doc | 0 Server/王琨元/code/ConnectionPool.cpp | 131 ++ Client/姜可庚/code/2024kunlun_project_permisson/permissonwindow.h | 55 + Server/王琨元/document/建表.docx | 0 Client/姜可庚/code/2024kunlun_project_permisson/2024kunlun_project_permisson.pro.user | 809 +++++++++++++++ Client/姜可庚/code/2024kunlun_project_permisson/modeldisplay.h | 22 Client/姜可庚/code/2024kunlun_project_permisson/PmsClientSocket.cpp | 109 ++ Client/姜可庚/code/2024kunlun_project_permisson/permissondialog.h | 36 Client/姜可庚/code/2024kunlun_project_permisson/mainwindow.ui | 24 Client/姜可庚/code/2024kunlun_project_permisson/permissondialog.cpp | 86 + Client/申烜/document/注册登录数据库表.docx | 0 Server/胡家明/log/日志_胡家明_1030.doc | 0 Server/马渝杭/code/common.h | 164 +++ Server/王琨元/log/日志模板_王琨元_1030.doc | 0 Server/王琨元/code/MysqlConn.cpp | 174 +++ Server/马渝杭/log/日志_马渝杭_20241030.doc | 0 Client/姜可庚/code/2024kunlun_project_permisson/mainwindow.h | 22 Client/姜可庚/code/2024kunlun_project_permisson/permissondialog.ui | 302 +++++ Client/姜可庚/code/2024kunlun_project_permisson/qcomboxdelegate.h | 27 Client/申烜/log/日志_注册登录_2024.10.31.doc | 0 Client/姜可庚/code/2024kunlun_project_permisson/permissonwindow.ui | 86 + Client/姜可庚/code/2024kunlun_project_permisson/2024kunlun_project_permisson.pro | 56 + Client/郑凯文/log/郑凯文1031.doc | 0 Client/冀浩昶/log/日志_冀浩昶_1031.doc | 0 Client/姜可庚/code/2024kunlun_project_permisson/qcomboxdelegate.cpp | 40 Client/姜可庚/code/2024kunlun_project_permisson/modeldisplay.cpp | 14 Server/王琨元/code/ConnectionPool.h | 54 + Client/姜可庚/code/2024kunlun_project_permisson/modeldisplay.ui | 32 Client/姜可庚/code/2024kunlun_project_permisson/pmsqueryresult.h | 73 + Client/姜可庚/code/2024kunlun_project_permisson/pmsparam.h | 43 Client/姜可庚/code/2024kunlun_project_permisson/pmsplusparam.h | 65 + Client/郑凯文/log/郑凯文1030.doc | 0 Server/马丽萍/log/log_1031.doc | 0 Client/王鑫鑫/log/日志_王鑫鑫_1031.doc | 0 Client/姜可庚/code/2024kunlun_project_permisson/PmsClientSocket.h | 121 ++ Client/姜可庚/log/姜可庚_1031.doc | 0 Client/李宵增/document/~$查询分析模块需求分析.docx | 0 Client/姜可庚/code/2024kunlun_project_permisson/syncdatatodb.cpp | 94 + /dev/null | 0 Client/刘子航/log/日志_刘子航_1031.doc | 0 Client/宋昊昳/document/系统设置需求分析.docx | 0 Client/姜可庚/code/2024kunlun_project_permisson/permissonwindow.cpp | 160 +++ Client/姜可庚/log/姜可庚_1030.doc | 0 Server/马丽萍/code/log/log.h | 4 Server/李转转/log/log_1031.doc | 0 Client/冀浩昶/document/生产计划管理_需求分析.docx | 0 Client/李宵增/log/历史查询_李宵增_1030.doc | 0 56 files changed, 3,046 insertions(+), 2 deletions(-) diff --git "a/Client/\345\206\200\346\265\251\346\230\266/document/\347\224\237\344\272\247\350\256\241\345\210\222\347\256\241\347\220\206_\351\234\200\346\261\202\345\210\206\346\236\220.docx" "b/Client/\345\206\200\346\265\251\346\230\266/document/\347\224\237\344\272\247\350\256\241\345\210\222\347\256\241\347\220\206_\351\234\200\346\261\202\345\210\206\346\236\220.docx" index 9d55fac..8b40728 100644 --- "a/Client/\345\206\200\346\265\251\346\230\266/document/\347\224\237\344\272\247\350\256\241\345\210\222\347\256\241\347\220\206_\351\234\200\346\261\202\345\210\206\346\236\220.docx" +++ "b/Client/\345\206\200\346\265\251\346\230\266/document/\347\224\237\344\272\247\350\256\241\345\210\222\347\256\241\347\220\206_\351\234\200\346\261\202\345\210\206\346\236\220.docx" Binary files differ diff --git "a/Client/\345\206\200\346\265\251\346\230\266/log/\346\227\245\345\277\227_\345\206\200\346\265\251\346\230\266_1031.doc" "b/Client/\345\206\200\346\265\251\346\230\266/log/\346\227\245\345\277\227_\345\206\200\346\265\251\346\230\266_1031.doc" new file mode 100644 index 0000000..f77c0ed --- /dev/null +++ "b/Client/\345\206\200\346\265\251\346\230\266/log/\346\227\245\345\277\227_\345\206\200\346\265\251\346\230\266_1031.doc" Binary files differ diff --git "a/Client/\345\210\230\345\255\220\350\210\252/log/\346\227\245\345\277\227_\345\210\230\345\255\220\350\210\252_1031.doc" "b/Client/\345\210\230\345\255\220\350\210\252/log/\346\227\245\345\277\227_\345\210\230\345\255\220\350\210\252_1031.doc" new file mode 100644 index 0000000..d4737e9 --- /dev/null +++ "b/Client/\345\210\230\345\255\220\350\210\252/log/\346\227\245\345\277\227_\345\210\230\345\255\220\350\210\252_1031.doc" Binary files differ diff --git "a/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/2024kunlun_project_permisson.pro" "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/2024kunlun_project_permisson.pro" new file mode 100644 index 0000000..e11cc5c --- /dev/null +++ "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/2024kunlun_project_permisson.pro" @@ -0,0 +1,56 @@ +#------------------------------------------------- +# +# Project created by QtCreator 2024-10-29T15:47:42 +# +#------------------------------------------------- + +QT += core gui network + +greaterThan(QT_MAJOR_VERSION, 4): QT += widgets + +TARGET = 2024kunlun_project_permisson +TEMPLATE = app + +# The following define makes your compiler emit warnings if you use +# any feature of Qt which has been marked as deprecated (the exact warnings +# depend on your compiler). Please consult the documentation of the +# deprecated API in order to know how to port your code away from it. +DEFINES += QT_DEPRECATED_WARNINGS + +# You can also make your code fail to compile if you use deprecated APIs. +# In order to do so, uncomment the following line. +# You can also select to disable deprecated APIs only up to a certain version of Qt. +#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 + + + + + + + +unix|win32: LIBS += -L$$PWD/../ThreeExmapleDisplay/mysql-connector-c-noinstall-6.0.2-win32/lib/ -llibmysql + +INCLUDEPATH += $$PWD/../ThreeExmapleDisplay/mysql-connector-c-noinstall-6.0.2-win32/include +DEPENDPATH += $$PWD/../ThreeExmapleDisplay/mysql-connector-c-noinstall-6.0.2-win32/include + +FORMS += \ + permissondialog.ui \ + permissonwindow.ui + +HEADERS += \ + permissondialog.h \ + permissonwindow.h \ + pmsparam.h \ + pmsplusparam.h \ + pmsqueryresult.h \ + qcomboxdelegate.h \ + syncdatatodb.h \ + PmsClientSocket.h + +SOURCES += \ + main.cpp \ + permissondialog.cpp \ + permissonwindow.cpp \ + qcomboxdelegate.cpp \ + syncdatatodb.cpp \ + PmsClientSocket.cpp diff --git "a/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/2024kunlun_project_permisson.pro.user" "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/2024kunlun_project_permisson.pro.user" new file mode 100644 index 0000000..1e45d46 --- /dev/null +++ "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/2024kunlun_project_permisson.pro.user" @@ -0,0 +1,809 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE QtCreatorProject> +<!-- Written by QtCreator 4.5.0, 2024-10-31T15:06:39. --> +<qtcreator> + <data> + <variable>EnvironmentId</variable> + <value type="QByteArray">{46516c51-2f4e-4d5d-a484-8049bf7097d3}</value> + </data> + <data> + <variable>ProjectExplorer.Project.ActiveTarget</variable> + <value type="int">0</value> + </data> + <data> + <variable>ProjectExplorer.Project.EditorSettings</variable> + <valuemap type="QVariantMap"> + <value type="bool" key="EditorConfiguration.AutoIndent">true</value> + <value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value> + <value type="bool" key="EditorConfiguration.CamelCaseNavigation">true</value> + <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0"> + <value type="QString" key="language">Cpp</value> + <valuemap type="QVariantMap" key="value"> + <value type="QByteArray" key="CurrentPreferences">CppGlobal</value> + </valuemap> + </valuemap> + <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1"> + <value type="QString" key="language">QmlJS</value> + <valuemap type="QVariantMap" key="value"> + <value type="QByteArray" key="CurrentPreferences">QmlJSGlobal</value> + </valuemap> + </valuemap> + <value type="int" key="EditorConfiguration.CodeStyle.Count">2</value> + <value type="QByteArray" key="EditorConfiguration.Codec">UTF-8</value> + <value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value> + <value type="int" key="EditorConfiguration.IndentSize">4</value> + <value type="bool" key="EditorConfiguration.KeyboardTooltips">false</value> + <value type="int" key="EditorConfiguration.MarginColumn">80</value> + <value type="bool" key="EditorConfiguration.MouseHiding">true</value> + <value type="bool" key="EditorConfiguration.MouseNavigation">true</value> + <value type="int" key="EditorConfiguration.PaddingMode">1</value> + <value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value> + <value type="bool" key="EditorConfiguration.ShowMargin">false</value> + <value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value> + <value type="bool" key="EditorConfiguration.SmartSelectionChanging">true</value> + <value type="bool" key="EditorConfiguration.SpacesForTabs">true</value> + <value type="int" key="EditorConfiguration.TabKeyBehavior">0</value> + <value type="int" key="EditorConfiguration.TabSize">8</value> + <value type="bool" key="EditorConfiguration.UseGlobal">true</value> + <value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value> + <value type="bool" key="EditorConfiguration.addFinalNewLine">true</value> + <value type="bool" key="EditorConfiguration.cleanIndentation">true</value> + <value type="bool" key="EditorConfiguration.cleanWhitespace">true</value> + <value type="bool" key="EditorConfiguration.inEntireDocument">false</value> + </valuemap> + </data> + <data> + <variable>ProjectExplorer.Project.PluginSettings</variable> + <valuemap type="QVariantMap"/> + </data> + <data> + <variable>ProjectExplorer.Project.Target.0</variable> + <valuemap type="QVariantMap"> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop Qt 5.9.4 MinGW 32bit</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop Qt 5.9.4 MinGW 32bit</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">qt.594.win32_mingw53_kit</value> + <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value> + <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value> + <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value> + <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0"> + <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">D:/Qt/project/build-2024kunlun_project_permisson-Desktop_Qt_5_9_4_MinGW_32bit-Debug</value> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">true</value> + <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.SeparateDebugInfo">false</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.UseQtQuickCompiler">false</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">鏋勫缓</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">娓呯悊</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> + <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> + <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Debug</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> + <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value> + <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">true</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1"> + <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">D:/Qt/project/build-2024kunlun_project_permisson-Desktop_Qt_5_9_4_MinGW_32bit-Release</value> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value> + <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.SeparateDebugInfo">false</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.UseQtQuickCompiler">false</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">鏋勫缓</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">娓呯悊</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> + <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> + <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Release</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> + <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value> + <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">true</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.2"> + <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">D:/Qt/project/build-2024kunlun_project_permisson-Desktop_Qt_5_9_4_MinGW_32bit-Profile</value> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">true</value> + <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.SeparateDebugInfo">true</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.UseQtQuickCompiler">false</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">鏋勫缓</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">娓呯悊</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> + <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> + <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Profile</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> + <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value> + <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">true</value> + </valuemap> + <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">3</value> + <valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">閮ㄧ讲</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">鍦ㄦ湰鍦伴儴缃�</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value> + </valuemap> + <value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value> + <valuemap type="QVariantMap" key="ProjectExplorer.Target.PluginSettings"/> + <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0"> + <value type="bool" key="Analyzer.QmlProfiler.AggregateTraces">false</value> + <value type="bool" key="Analyzer.QmlProfiler.FlushEnabled">false</value> + <value type="uint" key="Analyzer.QmlProfiler.FlushInterval">1000</value> + <value type="QString" key="Analyzer.QmlProfiler.LastTraceFile"></value> + <value type="bool" key="Analyzer.QmlProfiler.Settings.UseGlobalSettings">true</value> + <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> + <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> + <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> + <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> + <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> + <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> + <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> + <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> + <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> + <value type="int" key="Analyzer.Valgrind.LeakCheckOnFinish">1</value> + <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> + <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> + <value type="int" key="Analyzer.Valgrind.SelfModifyingCodeDetection">1</value> + <value type="bool" key="Analyzer.Valgrind.Settings.UseGlobalSettings">true</value> + <value type="bool" key="Analyzer.Valgrind.ShowReachable">false</value> + <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> + <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> + <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> + <value type="int">0</value> + <value type="int">1</value> + <value type="int">2</value> + <value type="int">3</value> + <value type="int">4</value> + <value type="int">5</value> + <value type="int">6</value> + <value type="int">7</value> + <value type="int">8</value> + <value type="int">9</value> + <value type="int">10</value> + <value type="int">11</value> + <value type="int">12</value> + <value type="int">13</value> + <value type="int">14</value> + </valuelist> + <value type="int" key="PE.EnvironmentAspect.Base">2</value> + <valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">2024kunlun_project_permisson</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:D:/Qt/project/2024kunlun_project_permisson/2024kunlun_project_permisson.pro</value> + <value type="bool" key="QmakeProjectManager.QmakeRunConfiguration.UseLibrarySearchPath">true</value> + <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.CommandLineArguments"></value> + <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.ProFile">2024kunlun_project_permisson.pro</value> + <value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseDyldImageSuffix">false</value> + <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory"></value> + <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory.default">D:/Qt/project/build-2024kunlun_project_permisson-Desktop_Qt_5_9_4_MinGW_32bit-Debug</value> + <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value> + <value type="bool" key="RunConfiguration.UseCppDebugger">false</value> + <value type="bool" key="RunConfiguration.UseCppDebuggerAuto">true</value> + <value type="bool" key="RunConfiguration.UseMultiProcess">false</value> + <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value> + <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value> + </valuemap> + <value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value> + </valuemap> + </data> + <data> + <variable>ProjectExplorer.Project.Target.1</variable> + <valuemap type="QVariantMap"> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop Qt 5.9.4 MSVC2015 32bit</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop Qt 5.9.4 MSVC2015 32bit</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">qt.594.win32_msvc2015_kit</value> + <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value> + <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value> + <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value> + <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0"> + <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">D:/Qt/project/build-2024kunlun_project_permisson-Desktop_Qt_5_9_4_MSVC2015_32bit-Debug</value> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">true</value> + <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.SeparateDebugInfo">false</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.UseQtQuickCompiler">false</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">鏋勫缓</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">娓呯悊</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> + <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> + <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Debug</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> + <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value> + <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">true</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1"> + <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">D:/Qt/project/build-2024kunlun_project_permisson-Desktop_Qt_5_9_4_MSVC2015_32bit-Release</value> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value> + <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.SeparateDebugInfo">false</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.UseQtQuickCompiler">false</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">鏋勫缓</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">娓呯悊</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> + <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> + <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Release</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> + <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value> + <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">true</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.2"> + <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">D:/Qt/project/build-2024kunlun_project_permisson-Desktop_Qt_5_9_4_MSVC2015_32bit-Profile</value> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">true</value> + <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.SeparateDebugInfo">true</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.UseQtQuickCompiler">false</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">鏋勫缓</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">娓呯悊</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> + <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> + <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Profile</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> + <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value> + <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">true</value> + </valuemap> + <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">3</value> + <valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">閮ㄧ讲</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">鍦ㄦ湰鍦伴儴缃�</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value> + </valuemap> + <value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value> + <valuemap type="QVariantMap" key="ProjectExplorer.Target.PluginSettings"/> + <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0"> + <value type="bool" key="Analyzer.QmlProfiler.AggregateTraces">false</value> + <value type="bool" key="Analyzer.QmlProfiler.FlushEnabled">false</value> + <value type="uint" key="Analyzer.QmlProfiler.FlushInterval">1000</value> + <value type="QString" key="Analyzer.QmlProfiler.LastTraceFile"></value> + <value type="bool" key="Analyzer.QmlProfiler.Settings.UseGlobalSettings">true</value> + <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> + <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> + <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> + <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> + <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> + <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> + <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> + <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> + <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> + <value type="int" key="Analyzer.Valgrind.LeakCheckOnFinish">1</value> + <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> + <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> + <value type="int" key="Analyzer.Valgrind.SelfModifyingCodeDetection">1</value> + <value type="bool" key="Analyzer.Valgrind.Settings.UseGlobalSettings">true</value> + <value type="bool" key="Analyzer.Valgrind.ShowReachable">false</value> + <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> + <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> + <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> + <value type="int">0</value> + <value type="int">1</value> + <value type="int">2</value> + <value type="int">3</value> + <value type="int">4</value> + <value type="int">5</value> + <value type="int">6</value> + <value type="int">7</value> + <value type="int">8</value> + <value type="int">9</value> + <value type="int">10</value> + <value type="int">11</value> + <value type="int">12</value> + <value type="int">13</value> + <value type="int">14</value> + </valuelist> + <value type="int" key="PE.EnvironmentAspect.Base">2</value> + <valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">2024kunlun_project_permisson</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:D:/Qt/project/2024kunlun_project_permisson/2024kunlun_project_permisson.pro</value> + <value type="bool" key="QmakeProjectManager.QmakeRunConfiguration.UseLibrarySearchPath">true</value> + <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.CommandLineArguments"></value> + <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.ProFile">2024kunlun_project_permisson.pro</value> + <value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseDyldImageSuffix">false</value> + <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory"></value> + <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory.default">D:/Qt/project/build-2024kunlun_project_permisson-Desktop_Qt_5_9_4_MinGW_32bit-Debug</value> + <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value> + <value type="bool" key="RunConfiguration.UseCppDebugger">false</value> + <value type="bool" key="RunConfiguration.UseCppDebuggerAuto">true</value> + <value type="bool" key="RunConfiguration.UseMultiProcess">false</value> + <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value> + <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value> + </valuemap> + <value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value> + </valuemap> + </data> + <data> + <variable>ProjectExplorer.Project.Target.2</variable> + <valuemap type="QVariantMap"> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop Qt 5.9.4 MSVC2015 64bit</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop Qt 5.9.4 MSVC2015 64bit</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">qt.594.win64_msvc2015_64_kit</value> + <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value> + <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value> + <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value> + <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0"> + <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">D:/Qt/project/build-2024kunlun_project_permisson-Desktop_Qt_5_9_4_MSVC2015_64bit-Debug</value> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">true</value> + <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.SeparateDebugInfo">false</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.UseQtQuickCompiler">false</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">鏋勫缓</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">娓呯悊</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> + <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> + <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Debug</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> + <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value> + <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">true</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1"> + <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">D:/Qt/project/build-2024kunlun_project_permisson-Desktop_Qt_5_9_4_MSVC2015_64bit-Release</value> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value> + <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.SeparateDebugInfo">false</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.UseQtQuickCompiler">false</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">鏋勫缓</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">娓呯悊</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> + <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> + <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Release</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> + <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value> + <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">true</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.2"> + <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">D:/Qt/project/build-2024kunlun_project_permisson-Desktop_Qt_5_9_4_MSVC2015_64bit-Profile</value> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">true</value> + <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.SeparateDebugInfo">true</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.UseQtQuickCompiler">false</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">鏋勫缓</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">娓呯悊</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> + <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> + <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Profile</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> + <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value> + <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">true</value> + </valuemap> + <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">3</value> + <valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">閮ㄧ讲</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">鍦ㄦ湰鍦伴儴缃�</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value> + </valuemap> + <value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value> + <valuemap type="QVariantMap" key="ProjectExplorer.Target.PluginSettings"/> + <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0"> + <value type="bool" key="Analyzer.QmlProfiler.AggregateTraces">false</value> + <value type="bool" key="Analyzer.QmlProfiler.FlushEnabled">false</value> + <value type="uint" key="Analyzer.QmlProfiler.FlushInterval">1000</value> + <value type="QString" key="Analyzer.QmlProfiler.LastTraceFile"></value> + <value type="bool" key="Analyzer.QmlProfiler.Settings.UseGlobalSettings">true</value> + <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> + <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> + <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> + <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> + <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> + <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> + <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> + <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> + <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> + <value type="int" key="Analyzer.Valgrind.LeakCheckOnFinish">1</value> + <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> + <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> + <value type="int" key="Analyzer.Valgrind.SelfModifyingCodeDetection">1</value> + <value type="bool" key="Analyzer.Valgrind.Settings.UseGlobalSettings">true</value> + <value type="bool" key="Analyzer.Valgrind.ShowReachable">false</value> + <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> + <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> + <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> + <value type="int">0</value> + <value type="int">1</value> + <value type="int">2</value> + <value type="int">3</value> + <value type="int">4</value> + <value type="int">5</value> + <value type="int">6</value> + <value type="int">7</value> + <value type="int">8</value> + <value type="int">9</value> + <value type="int">10</value> + <value type="int">11</value> + <value type="int">12</value> + <value type="int">13</value> + <value type="int">14</value> + </valuelist> + <value type="int" key="PE.EnvironmentAspect.Base">-1</value> + <valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/> + <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Arguments"></value> + <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Executable"></value> + <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.WorkingDirectory">%{buildDir}</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Custom Executable</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.CustomExecutableRunConfiguration</value> + <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value> + <value type="bool" key="RunConfiguration.UseCppDebugger">false</value> + <value type="bool" key="RunConfiguration.UseCppDebuggerAuto">true</value> + <value type="bool" key="RunConfiguration.UseMultiProcess">false</value> + <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value> + <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value> + </valuemap> + <value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value> + </valuemap> + </data> + <data> + <variable>ProjectExplorer.Project.TargetCount</variable> + <value type="int">3</value> + </data> + <data> + <variable>ProjectExplorer.Project.Updater.FileVersion</variable> + <value type="int">18</value> + </data> + <data> + <variable>Version</variable> + <value type="int">18</value> + </data> +</qtcreator> diff --git "a/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/PmsClientSocket.cpp" "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/PmsClientSocket.cpp" new file mode 100644 index 0000000..bf4d8d6 --- /dev/null +++ "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/PmsClientSocket.cpp" @@ -0,0 +1,109 @@ +锘�#include "PmsClientSocket.h" + +#include <QMessageBox> + +PmsClientSocket::PmsClientSocket(QWidget * parent):QWidget(parent) +{ + client = new QTcpSocket(this); + + client->connectToHost(targetIp,port); + if(!client->waitForConnected(3000)){ + + qDebug()<< "QT缃戠粶閫氫俊,杩炴帴鏈嶅姟绔け璐ワ紒"; + return; + } + connectSuccess = true; + qDebug()<< "QT缃戠粶閫氫俊鎴愬姛宸茶繛鎺ユ湇鍔″櫒锛�"; + connect(client,SIGNAL(connected()),this,SLOT(connected_Slot())); + +} + +void PmsClientSocket::queryAllUserAboutUser() +{ + if(connectSuccess){ + QueryPmsRequest req; + client->write((char *)&req,req.head.len); + qDebug() << "鏌ヨ鍏ㄩ儴鏉冮檺璇锋眰鍙戦�佹垚鍔�"; + } + +} +void PmsClientSocket::queryPmsByParam(PmsParam param) +{ + if(connectSuccess){ + QueryPmsRequest req; + strcpy(req.name,param.getName().c_str()); + strcpy(req.permissonType,param.getPermissonType().c_str()); + strcpy(req.userNo,param.getUserNo().c_str()); + client->write((char *)&req,req.head.len); + qDebug() << "鏉′欢鏌ヨ鏉冮檺璇锋眰鍙戦�佹垚鍔�"; + } +} + +void PmsClientSocket::updatePmsByParam(PmsPlusParma param) +{ + UpdatePmsRequest upReq; + upReq.devManage = param.getDevManage(); + upReq.loggerSearch = param.getLoggerSearch(); + upReq.mapMark = param.getMapMark(); + upReq.productPlan = param.getProductPlan(); + upReq.roleId = param.getRoleId(); + client->write((char *)&upReq,upReq.head.len); + qDebug() << "鏇存柊鏉冮檺璇锋眰鍙戦�佹垚鍔�"; +} + +void PmsClientSocket::connected_Slot() +{ + connect(client,SIGNAL(readyRead()),this,SLOT(readyRead_Slot())); +} + +void PmsClientSocket::readyRead_Slot() +{ + QByteArray buf = client->readAll(); + QString recvData = QString::fromLocal8Bit(buf); + qDebug()<< "client鏀跺埌鐨勬暟鎹�" << recvData; + QueryPmsResponse * res; + UpdatePmsResponse * upRes; + int type = *(int *)buf.data(); + if(type == QUERY_PMS_REQ){ + res = (QueryPmsResponse *)buf.data(); + if(res->success){ + vector<PmsQueryResult> vecs; + + for(int i =0;i<100;i++){ + PmsRes structRes =res->pmsList[i]; + if(*(int *)&structRes){ + PmsQueryResult res; + res.setName(string(structRes.name)); + res.setUserNo(string(structRes.userNo)); + res.setRoleId(structRes.roleId); + res.setStartDateTime(string(structRes.startDateTime)); + res.setEndDateTime(string(structRes.endDateTime)); + res.setLoggerSearch(structRes.loggerSearch); + res.setMapMark(structRes.mapMark); + res.setDevManage(structRes.devManage); + res.setProductPlan(structRes.productPlan); + res.setQueryHistory(structRes.queryHistory); + + res.setPermissonType(string(structRes.permissonType)); + + vecs.push_back(res); + + }else break; + } + if(!vecs.empty()){ + emit notifyDateChange(vecs); + } + } + } + if(type == UPDATE_PMS_REQ){ + res = (QueryPmsResponse *)buf.data(); + if(res->success){ + QString dlgTitle = "鏇存柊缁撴灉"; + QString strInfo = "鏉冮檺淇℃伅鏇存柊鎴愬姛"; + QMessageBox::information(this,dlgTitle,strInfo, + QMessageBox::Ok, QMessageBox::NoButton); + }else{ + QMessageBox::warning(this, "鏇存柊缁撴灉", "鏉冮檺淇℃伅鏇存柊澶辫触"); + } + } +} diff --git "a/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/PmsClientSocket.cpp.autosave" "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/PmsClientSocket.cpp.autosave" new file mode 100644 index 0000000..bf4d8d6 --- /dev/null +++ "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/PmsClientSocket.cpp.autosave" @@ -0,0 +1,109 @@ +锘�#include "PmsClientSocket.h" + +#include <QMessageBox> + +PmsClientSocket::PmsClientSocket(QWidget * parent):QWidget(parent) +{ + client = new QTcpSocket(this); + + client->connectToHost(targetIp,port); + if(!client->waitForConnected(3000)){ + + qDebug()<< "QT缃戠粶閫氫俊,杩炴帴鏈嶅姟绔け璐ワ紒"; + return; + } + connectSuccess = true; + qDebug()<< "QT缃戠粶閫氫俊鎴愬姛宸茶繛鎺ユ湇鍔″櫒锛�"; + connect(client,SIGNAL(connected()),this,SLOT(connected_Slot())); + +} + +void PmsClientSocket::queryAllUserAboutUser() +{ + if(connectSuccess){ + QueryPmsRequest req; + client->write((char *)&req,req.head.len); + qDebug() << "鏌ヨ鍏ㄩ儴鏉冮檺璇锋眰鍙戦�佹垚鍔�"; + } + +} +void PmsClientSocket::queryPmsByParam(PmsParam param) +{ + if(connectSuccess){ + QueryPmsRequest req; + strcpy(req.name,param.getName().c_str()); + strcpy(req.permissonType,param.getPermissonType().c_str()); + strcpy(req.userNo,param.getUserNo().c_str()); + client->write((char *)&req,req.head.len); + qDebug() << "鏉′欢鏌ヨ鏉冮檺璇锋眰鍙戦�佹垚鍔�"; + } +} + +void PmsClientSocket::updatePmsByParam(PmsPlusParma param) +{ + UpdatePmsRequest upReq; + upReq.devManage = param.getDevManage(); + upReq.loggerSearch = param.getLoggerSearch(); + upReq.mapMark = param.getMapMark(); + upReq.productPlan = param.getProductPlan(); + upReq.roleId = param.getRoleId(); + client->write((char *)&upReq,upReq.head.len); + qDebug() << "鏇存柊鏉冮檺璇锋眰鍙戦�佹垚鍔�"; +} + +void PmsClientSocket::connected_Slot() +{ + connect(client,SIGNAL(readyRead()),this,SLOT(readyRead_Slot())); +} + +void PmsClientSocket::readyRead_Slot() +{ + QByteArray buf = client->readAll(); + QString recvData = QString::fromLocal8Bit(buf); + qDebug()<< "client鏀跺埌鐨勬暟鎹�" << recvData; + QueryPmsResponse * res; + UpdatePmsResponse * upRes; + int type = *(int *)buf.data(); + if(type == QUERY_PMS_REQ){ + res = (QueryPmsResponse *)buf.data(); + if(res->success){ + vector<PmsQueryResult> vecs; + + for(int i =0;i<100;i++){ + PmsRes structRes =res->pmsList[i]; + if(*(int *)&structRes){ + PmsQueryResult res; + res.setName(string(structRes.name)); + res.setUserNo(string(structRes.userNo)); + res.setRoleId(structRes.roleId); + res.setStartDateTime(string(structRes.startDateTime)); + res.setEndDateTime(string(structRes.endDateTime)); + res.setLoggerSearch(structRes.loggerSearch); + res.setMapMark(structRes.mapMark); + res.setDevManage(structRes.devManage); + res.setProductPlan(structRes.productPlan); + res.setQueryHistory(structRes.queryHistory); + + res.setPermissonType(string(structRes.permissonType)); + + vecs.push_back(res); + + }else break; + } + if(!vecs.empty()){ + emit notifyDateChange(vecs); + } + } + } + if(type == UPDATE_PMS_REQ){ + res = (QueryPmsResponse *)buf.data(); + if(res->success){ + QString dlgTitle = "鏇存柊缁撴灉"; + QString strInfo = "鏉冮檺淇℃伅鏇存柊鎴愬姛"; + QMessageBox::information(this,dlgTitle,strInfo, + QMessageBox::Ok, QMessageBox::NoButton); + }else{ + QMessageBox::warning(this, "鏇存柊缁撴灉", "鏉冮檺淇℃伅鏇存柊澶辫触"); + } + } +} diff --git "a/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/PmsClientSocket.h" "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/PmsClientSocket.h" new file mode 100644 index 0000000..2795585 --- /dev/null +++ "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/PmsClientSocket.h" @@ -0,0 +1,121 @@ +锘�#ifndef PMSCLINETSOCKET_H +#define PMSCLINETSOCKET_H +#include <QTcpSocket> +#include <string> +#include "pmsqueryresult.h" +#include <vector> +#include "pmsplusparam.h" +#include <QDebug> +#include <QWidget> + +using namespace std; + +struct Head{ + int type; + int len; +}; + +enum option{ + QUERY_PMS_REQ, + UPDATE_PMS_REQ, + QUERY_PMS_RES, + UPDATE_PMS_RES, +}; + + +// 鎸夊憳宸ョ紪鍙枫�佸悕瀛楁垨鑱屼綅鏌ヨ浜哄憳鏉冮檺淇℃伅璇锋眰 +typedef struct QueryPmsRequest{ + Head head; + char userNo[32]; + char name[32]; + char permissonType[32]; + QueryPmsRequest(){ + head.type=QUERY_PMS_REQ; + memset(userNo,0,32); + memset(permissonType,0,32); + memset(name,0,32); + head.len = sizeof(QueryPmsRequest); + } +} QueryPmsRequest; + +// 鎸夎鑹瞚d鏇存柊鏉冮檺淇℃伅璇锋眰 +typedef struct UpdatePmsRequest{ + Head head; + int roleId; + int queryHistory; + int loggerSearch; + int mapMark; + int devManage; + int productPlan; + UpdatePmsRequest(){ + head.type=QUERY_PMS_RES; + head.len = sizeof(UpdatePmsRequest); + } +} UpdatePmsRequest; + +// 鍗曚釜浜哄憳鏉冮檺缁撴瀯浣� +typedef struct UserAboutPms{ + int queryHistory; + int loggerSearch; + int mapMark; + int devManage; + int productPlan; + int roleId; + char userNo[32]; + char name[32]; + char permissonType[32]; + char startDateTime[32]; + char endDateTime[32]; +} PmsRes; + +// 鏌ヨ浜哄憳鍜岃鑹蹭俊鎭殑鍝嶅簲缁撴瀯浣� +typedef struct UserAboutPmsResponse{ + Head head; + int success; // 1涓烘垚鍔� ,0涓哄け璐� + PmsRes pmsList[100]; + UserAboutPmsResponse(){ + head.type=QUERY_PMS_RES; + memset(pmsList,0,sizeof(PmsRes)); + head.len = sizeof(UserAboutPmsResponse); + } +} QueryPmsResponse; + +// 鏉冮檺鏇存柊缁撴灉鍝嶅簲浣� +typedef struct UpdatePmsResponse{ + Head head; + int success; // 1涓烘垚鍔� ,0涓哄け璐� + UpdatePmsResponse(){ + head.type = UPDATE_PMS_RES; + head.len = sizeof(UpdatePmsResponse); + } + +} UpdatePmsResponse ; + + +class PmsClientSocket : public QWidget +{ + Q_OBJECT + + QTcpSocket *client; + + int port=88888; + QString targetIp = "127.0.0.1"; + + bool connectSuccess= false; + +public: + PmsClientSocket(QWidget * parent=0); + void queryAllUserAboutUser(); + + void queryPmsByParam(PmsParam param); + + void updatePmsByParam(PmsPlusParma param); +signals: + void notifyDateChange(vector<PmsQueryResult>); + +private slots: + void connected_Slot(); //澹版槑妲藉嚱鏁� + void readyRead_Slot(); +}; + +#endif // PMSCLINETSOCKET_H diff --git "a/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/main.cpp" "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/main.cpp" new file mode 100644 index 0000000..41b03d3 --- /dev/null +++ "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/main.cpp" @@ -0,0 +1,11 @@ +锘�#include "permissonwindow.h" +#include <QApplication> + +int main(int argc, char *argv[]) +{ + QApplication a(argc, argv); + PermissonWindow w; + w.show(); + + return a.exec(); +} diff --git "a/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/mainwindow.cpp" "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/mainwindow.cpp" new file mode 100644 index 0000000..9a2b266 --- /dev/null +++ "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/mainwindow.cpp" @@ -0,0 +1,14 @@ +锘�#include "mainwindow.h" +#include "ui_mainwindow.h" + +MainWindow::MainWindow(QWidget *parent) : + QMainWindow(parent), + ui(new Ui::MainWindow) +{ + ui->setupUi(this); +} + +MainWindow::~MainWindow() +{ + delete ui; +} diff --git "a/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/mainwindow.h" "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/mainwindow.h" new file mode 100644 index 0000000..10c706e --- /dev/null +++ "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/mainwindow.h" @@ -0,0 +1,22 @@ +锘�#ifndef MAINWINDOW_H +#define MAINWINDOW_H + +#include <QMainWindow> + +namespace Ui { +class MainWindow; +} + +class MainWindow : public QMainWindow +{ + Q_OBJECT + +public: + explicit MainWindow(QWidget *parent = 0); + ~MainWindow(); + +private: + Ui::MainWindow *ui; +}; + +#endif // MAINWINDOW_H diff --git "a/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/mainwindow.ui" "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/mainwindow.ui" new file mode 100644 index 0000000..0a06936 --- /dev/null +++ "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/mainwindow.ui" @@ -0,0 +1,24 @@ +<ui version="4.0"> + <author/> + <comment/> + <exportmacro/> + <class>MainWindow</class> + <widget name="MainWindow" class="QMainWindow"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>800</width> + <height>600</height> + </rect> + </property> + <property name="windowTitle"> + <string>MainWindow</string> + </property> + <widget name="menubar" class="QMenuBar"/> + <widget name="centralwidget" class="QWidget"/> + <widget name="statusbar" class="QStatusBar"/> + </widget> + <pixmapfunction/> + <connections/> +</ui> diff --git "a/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/modeldisplay.cpp" "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/modeldisplay.cpp" new file mode 100644 index 0000000..e645808 --- /dev/null +++ "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/modeldisplay.cpp" @@ -0,0 +1,14 @@ +#include "modeldisplay.h" +#include "ui_modeldisplay.h" + +modelDisplay::modelDisplay(QWidget *parent) : + QWidget(parent), + ui(new Ui::modelDisplay) +{ + ui->setupUi(this); +} + +modelDisplay::~modelDisplay() +{ + delete ui; +} diff --git "a/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/modeldisplay.h" "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/modeldisplay.h" new file mode 100644 index 0000000..7d94869 --- /dev/null +++ "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/modeldisplay.h" @@ -0,0 +1,22 @@ +#ifndef MODELDISPLAY_H +#define MODELDISPLAY_H + +#include <QWidget> + +namespace Ui { +class modelDisplay; +} + +class modelDisplay : public QWidget +{ + Q_OBJECT + +public: + explicit modelDisplay(QWidget *parent = 0); + ~modelDisplay(); + +private: + Ui::modelDisplay *ui; +}; + +#endif // MODELDISPLAY_H diff --git "a/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/modeldisplay.ui" "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/modeldisplay.ui" new file mode 100644 index 0000000..5fe7e47 --- /dev/null +++ "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/modeldisplay.ui" @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>modelDisplay</class> + <widget class="QWidget" name="modelDisplay"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>400</width> + <height>300</height> + </rect> + </property> + <property name="windowTitle"> + <string>Form</string> + </property> + <widget class="QLabel" name="label"> + <property name="geometry"> + <rect> + <x>120</x> + <y>160</y> + <width>72</width> + <height>15</height> + </rect> + </property> + <property name="text"> + <string>妯℃��</string> + </property> + </widget> + </widget> + <resources/> + <connections/> +</ui> diff --git "a/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/permissondialog.cpp" "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/permissondialog.cpp" new file mode 100644 index 0000000..258f81e --- /dev/null +++ "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/permissondialog.cpp" @@ -0,0 +1,86 @@ +锘�#include "permissondialog.h" +#include "ui_permissondialog.h" + +PermissonDialog::PermissonDialog(QWidget *parent,PmsClientSocket * client) : + QDialog(parent), + client(client), + ui(new Ui::PermissonDialog) +{ + ui->setupUi(this); + + map<int,QRadioButton *> map1; + map1[0]=ui->radioButton; + map1[1]=ui->radioButton_2; + map1[2]=ui->radioButton_3; + + map<int,QRadioButton *> map2; + map2[0]=ui->radioButton_4; + map2[1]=ui->radioButton_5; + map2[2]=ui->radioButton_6; + + map<int,QRadioButton *> map3; + map3[0]=ui->radioButton_7; + map3[1]=ui->radioButton_8; + map3[2]=ui->radioButton_9; + + map<int,QRadioButton *> map4; + map4[0]=ui->radioButton_10; + map4[1]=ui->radioButton_11; + map4[2]=ui->radioButton_12; + + map<int,QRadioButton *> map5; + map5[0]=ui->radioButton_13; + map5[1]=ui->radioButton_14; + map5[2]=ui->radioButton_15; + + + btnList.push_back(map1); + btnList.push_back(map2); + btnList.push_back(map3); + btnList.push_back(map4); + btnList.push_back(map5); + +} + +PermissonDialog::~PermissonDialog() +{ + delete ui; +} + +int PermissonDialog::findBoxCheck(map<int, QRadioButton *> map) +{ + for(int i =0;i<map.size();i++){ + if(btnList[0][i]->isChecked()){ + return i; + } + } +} + +void PermissonDialog::recvUserNo(PmsQueryResult res) +{ + + // 濉厖checkbox + btnList[0][res.getQueryHistory()]->setChecked(true); + btnList[1][res.getLoggerSearch()]->setChecked(true); + btnList[2][res.getMapMark()]->setChecked(true); + btnList[3][res.getDevManage()]->setChecked(true); + btnList[4][res.getProductPlan()]->setChecked(true); + +} + + +void PermissonDialog::on_buttonBox_accepted() +{ + qDebug()<< "鍙戦�佹洿鏂拌姹�"; + PmsPlusParma param; + + param.setQueryHistory(findBoxCheck(btnList[0])); + param.setLoggerSearch(findBoxCheck(btnList[1])); + param.setMapMark(findBoxCheck(btnList[2])); + param.setDevManage(findBoxCheck(btnList[3])); + param.setProductPlan(findBoxCheck(btnList[4])); + + + client->updatePmsByParam(param); + +} diff --git "a/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/permissondialog.h" "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/permissondialog.h" new file mode 100644 index 0000000..3ddff06 --- /dev/null +++ "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/permissondialog.h" @@ -0,0 +1,36 @@ +锘�#ifndef PERMISSONDIALOG_H +#define PERMISSONDIALOG_H + +#include <QDialog> +#include "PmsClientSocket.h" +#include <qradiobutton.h> +#include <vector> +#include <map> +#include <QDebug> +using namespace std; + +namespace Ui { +class PermissonDialog; +} + +class PermissonDialog : public QDialog +{ + Q_OBJECT +public: + explicit PermissonDialog(QWidget *parent,PmsClientSocket * client); + ~PermissonDialog(); +private: + Ui::PermissonDialog *ui; + + PmsClientSocket * client; + + vector<map<int,QRadioButton *>> btnList; + + int findBoxCheck(map<int,QRadioButton *> map); + +private slots: + void recvUserNo(PmsQueryResult pms); + void on_buttonBox_accepted(); +}; + +#endif // PERMISSONDIALOG_H diff --git "a/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/permissondialog.ui" "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/permissondialog.ui" new file mode 100644 index 0000000..2701441 --- /dev/null +++ "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/permissondialog.ui" @@ -0,0 +1,302 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>PermissonDialog</class> + <widget class="QDialog" name="PermissonDialog"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>421</width> + <height>361</height> + </rect> + </property> + <property name="windowTitle"> + <string>Dialog</string> + </property> + <layout class="QGridLayout" name="gridLayout_3"> + <item row="0" column="0"> + <layout class="QGridLayout" name="gridLayout_2"> + <item row="0" column="0"> + <layout class="QGridLayout" name="gridLayout"> + <item row="0" column="0"> + <widget class="QGroupBox" name="groupBox"> + <property name="title"> + <string>鍘嗘椂鏌ヨ</string> + </property> + <widget class="QRadioButton" name="radioButton"> + <property name="geometry"> + <rect> + <x>20</x> + <y>20</y> + <width>115</width> + <height>19</height> + </rect> + </property> + <property name="text"> + <string>鏃犳潈闄�</string> + </property> + </widget> + <widget class="QRadioButton" name="radioButton_2"> + <property name="geometry"> + <rect> + <x>150</x> + <y>20</y> + <width>115</width> + <height>19</height> + </rect> + </property> + <property name="text"> + <string>鍙煡鐪�</string> + </property> + </widget> + <widget class="QRadioButton" name="radioButton_3"> + <property name="geometry"> + <rect> + <x>280</x> + <y>20</y> + <width>115</width> + <height>19</height> + </rect> + </property> + <property name="text"> + <string>鍙慨鏀�</string> + </property> + </widget> + </widget> + </item> + <item row="1" column="0"> + <widget class="QGroupBox" name="groupBox_2"> + <property name="title"> + <string>鏃ュ織鏌ヨ</string> + </property> + <widget class="QRadioButton" name="radioButton_4"> + <property name="geometry"> + <rect> + <x>20</x> + <y>20</y> + <width>115</width> + <height>19</height> + </rect> + </property> + <property name="text"> + <string>鏃犳潈闄�</string> + </property> + </widget> + <widget class="QRadioButton" name="radioButton_5"> + <property name="geometry"> + <rect> + <x>150</x> + <y>20</y> + <width>115</width> + <height>19</height> + </rect> + </property> + <property name="text"> + <string>鍙煡鐪�</string> + </property> + </widget> + <widget class="QRadioButton" name="radioButton_6"> + <property name="geometry"> + <rect> + <x>280</x> + <y>20</y> + <width>115</width> + <height>19</height> + </rect> + </property> + <property name="text"> + <string>鍙慨鏀�</string> + </property> + </widget> + </widget> + </item> + <item row="2" column="0"> + <widget class="QGroupBox" name="groupBox_3"> + <property name="title"> + <string>鍦板浘鏍囨敞</string> + </property> + <widget class="QRadioButton" name="radioButton_7"> + <property name="geometry"> + <rect> + <x>20</x> + <y>20</y> + <width>115</width> + <height>19</height> + </rect> + </property> + <property name="text"> + <string>鏃犳潈闄�</string> + </property> + </widget> + <widget class="QRadioButton" name="radioButton_8"> + <property name="geometry"> + <rect> + <x>150</x> + <y>20</y> + <width>115</width> + <height>19</height> + </rect> + </property> + <property name="text"> + <string>鍙煡鐪�</string> + </property> + </widget> + <widget class="QRadioButton" name="radioButton_9"> + <property name="geometry"> + <rect> + <x>280</x> + <y>20</y> + <width>115</width> + <height>19</height> + </rect> + </property> + <property name="text"> + <string>鍙慨鏀�</string> + </property> + </widget> + </widget> + </item> + <item row="3" column="0"> + <widget class="QGroupBox" name="groupBox_4"> + <property name="title"> + <string>璁惧绠$悊</string> + </property> + <widget class="QRadioButton" name="radioButton_10"> + <property name="geometry"> + <rect> + <x>20</x> + <y>20</y> + <width>115</width> + <height>19</height> + </rect> + </property> + <property name="text"> + <string>鏃犳潈闄�</string> + </property> + </widget> + <widget class="QRadioButton" name="radioButton_11"> + <property name="geometry"> + <rect> + <x>150</x> + <y>20</y> + <width>115</width> + <height>19</height> + </rect> + </property> + <property name="text"> + <string>鍙煡鐪�</string> + </property> + </widget> + <widget class="QRadioButton" name="radioButton_12"> + <property name="geometry"> + <rect> + <x>280</x> + <y>20</y> + <width>115</width> + <height>19</height> + </rect> + </property> + <property name="text"> + <string>鍙慨鏀�</string> + </property> + </widget> + </widget> + </item> + <item row="4" column="0"> + <widget class="QGroupBox" name="groupBox_5"> + <property name="title"> + <string>鐢熶骇璁″垝</string> + </property> + <widget class="QRadioButton" name="radioButton_13"> + <property name="geometry"> + <rect> + <x>20</x> + <y>20</y> + <width>115</width> + <height>19</height> + </rect> + </property> + <property name="text"> + <string>鏃犳潈闄�</string> + </property> + </widget> + <widget class="QRadioButton" name="radioButton_14"> + <property name="geometry"> + <rect> + <x>150</x> + <y>20</y> + <width>115</width> + <height>19</height> + </rect> + </property> + <property name="text"> + <string>鍙煡鐪�</string> + </property> + </widget> + <widget class="QRadioButton" name="radioButton_15"> + <property name="geometry"> + <rect> + <x>280</x> + <y>20</y> + <width>115</width> + <height>19</height> + </rect> + </property> + <property name="text"> + <string>鍙慨鏀�</string> + </property> + </widget> + </widget> + </item> + </layout> + </item> + <item row="1" column="0"> + <widget class="QDialogButtonBox" name="buttonBox"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="standardButtons"> + <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set> + </property> + </widget> + </item> + </layout> + </item> + </layout> + </widget> + <resources/> + <connections> + <connection> + <sender>buttonBox</sender> + <signal>accepted()</signal> + <receiver>PermissonDialog</receiver> + <slot>accept()</slot> + <hints> + <hint type="sourcelabel"> + <x>248</x> + <y>254</y> + </hint> + <hint type="destinationlabel"> + <x>157</x> + <y>274</y> + </hint> + </hints> + </connection> + <connection> + <sender>buttonBox</sender> + <signal>rejected()</signal> + <receiver>PermissonDialog</receiver> + <slot>reject()</slot> + <hints> + <hint type="sourcelabel"> + <x>316</x> + <y>260</y> + </hint> + <hint type="destinationlabel"> + <x>286</x> + <y>274</y> + </hint> + </hints> + </connection> + </connections> +</ui> diff --git "a/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/permissonwindow.cpp" "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/permissonwindow.cpp" new file mode 100644 index 0000000..cd23094 --- /dev/null +++ "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/permissonwindow.cpp" @@ -0,0 +1,160 @@ +锘�#include "permissonwindow.h" +#include "qcomboxdelegate.h" +#include "ui_permissonwindow.h" + +#include <QDialog> +#include <QMouseEvent> +#include <QPushButton> + +PermissonWindow::PermissonWindow(QWidget *parent) : + QMainWindow(parent), + ui(new Ui::PermissonWindow) +{ + ui->setupUi(this); + clientSocket = new PmsClientSocket(this); + + dia = new PermissonDialog(this,clientSocket); + + + + connect(this,SIGNAL(sendUserNo(PmsQueryResult)),dia,SLOT(recvUserNo(PmsQueryResult))); + connect(clientSocket,SIGNAL(notifyDateChange(vector<PmsQueryResult>)),this,SLOT(renderItemData(vector<PmsQueryResult>))); + + roleMap["鏅�氶噰鐭垮憳宸�"] = 1; + roleMap["鎶�鏈淮鎶や汉鍛�"] = 2; + roleMap["绯荤粺绠$悊鍛�"] = 3; + roleMap["瀹夊叏绠$悊浜哄憳"] = 4; + + this->setWindowTitle("鏉冮檺绠$悊"); + vector<QString> lableList; + lableList.push_back("鍛樺伐缂栧彿"); + lableList.push_back("濮撳悕"); + lableList.push_back("褰撳ぉ宸ヤ綔鏃堕棿"); + lableList.push_back("褰撳ぉ缁撴潫鏃堕棿"); + lableList.push_back("鑱屼綅"); + + + + m_model = new QStandardItemModel(globalPms.size(),lableList.size(),this); + + ui->tableView->setModel(m_model); + + for(int i=0;i<m_model->rowCount();i++){ + PmsQueryResult curRes = globalPms[i]; + m_model->setItem(i,0,new QStandardItem(QString::fromStdString(curRes.getUserNo()))); + m_model->setItem(i,1,new QStandardItem(QString::fromLocal8Bit(curRes.getName().c_str()))); + m_model->setItem(i,2,new QStandardItem(QString::fromStdString(curRes.getStartDateTime()))); + m_model->setItem(i,3,new QStandardItem(QString::fromStdString(curRes.getEndDateTime()))); + m_model->setItem(i,4,new QStandardItem(QString::fromLocal8Bit(curRes.getPermissonType().c_str()))); + + } + + ui->tableView->horizontalHeader()->setSectionResizeMode(QHeaderView::Stretch); + ui->tableView->verticalHeader()->hide(); + + + QStringList lable; + for(int i=0;i<m_model->columnCount();i++){ + lable << lableList.at(i); + } + + m_model->setHorizontalHeaderLabels(lable); + + QComBoxDelegate * qc = new QComBoxDelegate(this); + + + + ui->tableView->setItemDelegateForColumn(4,qc); + + + m = new QMenu(this); + QAction * ac1 = new QAction("缂栬緫褰撳墠鍛樺伐鏉冮檺"); + + + m->addAction(ac1); + + + ui->tableView->viewport()->installEventFilter(this); + + + + connect(ac1,&QAction::triggered,[=]{ + int row = ui->tableView->currentIndex().row(); + qDebug() << globalPms[row].getDevManage(); + // 鍙戦�佸憳宸ョ紪鍙蜂俊鎭� + emit sendUserNo(globalPms[row]); + + dia->setModal(true); + dia->show(); + }); + + + connect(m_model,SIGNAL(itemChanged(QStandardItem*)),this,SLOT(listenItemChange(QStandardItem*))); + + +} + +bool PermissonWindow::eventFilter(QObject *watch, QEvent *event) +{ + if(watch == ui->tableView->viewport() || watch == ui->tableView->verticalHeader()->viewport() + + || watch == ui->tableView->horizontalHeader()->viewport()){ + if(event->type()==QEvent::MouseButtonPress && ((QMouseEvent *)event)->button()==Qt::RightButton){ + m->exec(QCursor::pos()); + } + + } + return QMainWindow::eventFilter(watch,event); +} + + +PermissonWindow::~PermissonWindow() +{ + delete dbInfo; + delete dia; + delete m_model; + delete m; + delete ui; +} + +void PermissonWindow::on_pushButton_clicked() +{ + qDebug() << "鍙戦�佹煡璇㈣姹�"; + PmsParam pm; + pm.setName(ui->lineEdit->text().toStdString()); + pm.setPermissonType(ui->lineEdit_2->text().toStdString()); + pm.setUserNo(ui->lineEdit_3->text().toStdString()); + + clientSocket->queryPmsByParam(pm); + qDebug() << "鏌ヨ涓�"; + +} + +void PermissonWindow::listenItemChange(QStandardItem *item) +{ + qDebug() << "鏁版嵁寮�濮嬫洿鏂�"; + QString localText = item->text(); + PmsPlusParma pm; + pm.setPermissonType(localText.toStdString()); + pm.setRoleId(roleMap[localText.toStdString()]); + clientSocket->updatePmsByParam(pm); +} + +void PermissonWindow::renderItemData(vector<PmsQueryResult> res) +{ + globalPms = res; + m_model->setRowCount(globalPms.size()); + + for(int i=0;i<m_model->rowCount();i++){ + PmsQueryResult curRes = globalPms[i]; + m_model->setItem(i,0,new QStandardItem(QString::fromStdString(curRes.getUserNo()))); + m_model->setItem(i,1,new QStandardItem(QString::fromLocal8Bit(curRes.getName().c_str()))); + m_model->setItem(i,2,new QStandardItem(QString::fromStdString(curRes.getStartDateTime()))); + m_model->setItem(i,3,new QStandardItem(QString::fromStdString(curRes.getEndDateTime()))); + m_model->setItem(i,4,new QStandardItem(QString::fromLocal8Bit(curRes.getPermissonType().c_str()))); + + } + ui->tableView->horizontalHeader()->setSectionResizeMode(QHeaderView::Stretch); + qDebug() << "鏌ヨ鍒扮殑鏁伴噺 " << globalPms.size(); +} + diff --git "a/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/permissonwindow.h" "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/permissonwindow.h" new file mode 100644 index 0000000..aeb776b --- /dev/null +++ "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/permissonwindow.h" @@ -0,0 +1,55 @@ +锘�#ifndef PERMISSONWINDOW_H +#define PERMISSONWINDOW_H + +#include <QMainWindow> +#include <QMenu> +#include <qstandarditemmodel.h> +#include <QDebug> +#include <map> +#include "permissondialog.h" +#include "syncdatatodb.h" +#include "PmsClientSocket.h" + + + +using namespace std; + +namespace Ui { +class PermissonWindow; +} + +class PermissonWindow : public QMainWindow +{ + Q_OBJECT +public: + explicit PermissonWindow(QWidget *parent = 0); + ~PermissonWindow(); + + bool eventFilter(QObject *watch, QEvent *event); + +signals: + void sendUserNo(PmsQueryResult); +private slots: + void on_pushButton_clicked(); + + void listenItemChange(QStandardItem * item); + + void renderItemData(vector<PmsQueryResult> res); + + + +private: + Ui::PermissonWindow *ui; + QStandardItemModel * m_model; + QMenu * m; + PermissonDialog *dia; + SyncDataToDB * dbInfo; + map<string,int> roleMap; + + vector<PmsQueryResult> globalPms; + PmsClientSocket * clientSocket; + + +}; + +#endif // PERMISSONWINDOW_H diff --git "a/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/permissonwindow.ui" "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/permissonwindow.ui" new file mode 100644 index 0000000..1e82783 --- /dev/null +++ "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/permissonwindow.ui" @@ -0,0 +1,86 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>PermissonWindow</class> + <widget class="QMainWindow" name="PermissonWindow"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>803</width> + <height>461</height> + </rect> + </property> + <property name="windowTitle"> + <string>PermissonWindow</string> + </property> + <widget class="QWidget" name="centralWidget"> + <layout class="QGridLayout" name="gridLayout"> + <item row="0" column="0"> + <layout class="QHBoxLayout" name="horizontalLayout"> + <item> + <widget class="QLabel" name="label"> + <property name="text"> + <string>鐢ㄦ埛鍚�</string> + </property> + </widget> + </item> + <item> + <widget class="QLineEdit" name="lineEdit"/> + </item> + <item> + <widget class="QLabel" name="label_2"> + <property name="text"> + <string>鑱屼綅</string> + </property> + </widget> + </item> + <item> + <widget class="QLineEdit" name="lineEdit_2"/> + </item> + <item> + <widget class="QLabel" name="label_3"> + <property name="text"> + <string>鍛樺伐缂栧彿</string> + </property> + </widget> + </item> + <item> + <widget class="QLineEdit" name="lineEdit_3"/> + </item> + </layout> + </item> + <item row="1" column="0"> + <layout class="QHBoxLayout" name="horizontalLayout_2"> + <item> + <spacer name="horizontalSpacer"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QPushButton" name="pushButton"> + <property name="text"> + <string>鏌ヨ</string> + </property> + </widget> + </item> + </layout> + </item> + <item row="2" column="0"> + <widget class="QTableView" name="tableView"/> + </item> + </layout> + </widget> + <widget class="QStatusBar" name="statusBar"/> + </widget> + <layoutdefault spacing="6" margin="11"/> + <resources/> + <connections/> +</ui> diff --git "a/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/pmsparam.h" "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/pmsparam.h" new file mode 100644 index 0000000..0683706 --- /dev/null +++ "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/pmsparam.h" @@ -0,0 +1,43 @@ +锘�#ifndef PMSPARAM_H +#define PMSPARAM_H +#include <string> +using namespace std; + + +class PmsParam { +protected: + string userNo; + string name; + string permissonType; +public: + void setUserNo(string id){ + this->userNo = id; + } + void setName(string name){ + this->name = name; + } + void setPermissonType(string permissonType){ + this->permissonType = permissonType; + } + + string getUserNo(){ + return userNo; + } + string getName(){ + return name; + } + string getPermissonType(){ + return permissonType; + } + + PmsParam(){ + this->userNo=""; + this->name = ""; + this->permissonType = ""; + } + + +}; + + +#endif // PMSPARAM_H diff --git "a/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/pmsplusparam.h" "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/pmsplusparam.h" new file mode 100644 index 0000000..23885dd --- /dev/null +++ "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/pmsplusparam.h" @@ -0,0 +1,65 @@ +#ifndef PMSPLUSPARAM_H +#define PMSPLUSPARAM_H +#include "pmsparam.h" + +class PmsPlusParma : public PmsParam{ + int roleId; + + int queryHistory; + int loggerSearch; + int mapMark; + int devManage; + int productPlan; +public: + void setQueryHistory(int val){ + this->queryHistory = val; + } + void setLoggerSearch(int val){ + this->loggerSearch = val; + } + void setMapMark(int val){ + this->mapMark = val; + } + void setDevManage(int val){ + this->devManage = val; + } + void setProductPlan(int val){ + this->productPlan = val; + } + + void setRoleId(int val){ + this->roleId = val; + } + + int getQueryHistory(){ + return queryHistory; + } + int getLoggerSearch(){ + return loggerSearch; + } + int getMapMark(){ + return mapMark; + } + int getDevManage(){ + return devManage; + } + int getProductPlan(){ + return productPlan; + } + + int getRoleId(){ + return roleId; + } + + + PmsPlusParma(){ + roleId = -1; + queryHistory = -1; + loggerSearch = -1; + mapMark = -1; + devManage = -1; + productPlan = -1; + } +}; + +#endif // PMSPLUSPARAM_H diff --git "a/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/pmsqueryresult.h" "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/pmsqueryresult.h" new file mode 100644 index 0000000..e35b54f --- /dev/null +++ "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/pmsqueryresult.h" @@ -0,0 +1,73 @@ +#ifndef PMSQUERYRESULT_H +#define PMSQUERYRESULT_H + +#include "pmsparam.h" +class PmsQueryResult : public PmsParam{ + string startDateTime; + string endDateTime; + + int queryHistory; + int loggerSearch; + int mapMark; + int devManage; + int productPlan; + + int roleId; +public: + void setStartDateTime(string time){ + this->startDateTime = time; + } + void setEndDateTime(string time){ + this->endDateTime = time; + } + + void setQueryHistory(int val){ + this->queryHistory = val; + } + void setLoggerSearch(int val){ + this->loggerSearch = val; + } + void setMapMark(int val){ + this->mapMark = val; + } + void setDevManage(int val){ + this->devManage = val; + } + void setProductPlan(int val){ + this->productPlan = val; + } + void setRoleId(int val){ + this->roleId = val; + } + + + string getStartDateTime(){ + return startDateTime; + } + string getEndDateTime(){ + return endDateTime; + } + int getQueryHistory(){ + return queryHistory; + } + int getLoggerSearch(){ + return loggerSearch; + } + int getMapMark(){ + return mapMark; + } + int getDevManage(){ + return devManage; + } + int getProductPlan(){ + return productPlan; + } + int getRoleId(){ + return roleId; + } + + +}; + + +#endif // PMSQUERYRESULT_H diff --git "a/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/qcomboxdelegate.cpp" "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/qcomboxdelegate.cpp" new file mode 100644 index 0000000..8eab6b3 --- /dev/null +++ "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/qcomboxdelegate.cpp" @@ -0,0 +1,40 @@ +锘�#include "qcomboxdelegate.h" + + + +QComBoxDelegate::QComBoxDelegate() +{ + +} + +QComBoxDelegate::QComBoxDelegate(QObject *p):QItemDelegate(p) +{ + +} + +QWidget *QComBoxDelegate::createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const +{ + QComboBox * box = new QComboBox(parent); + QStringList text; + text << "鏅�氶噰鐭垮憳宸�" << "鎶�鏈淮鎶や汉鍛�" << "绯荤粺绠$悊鍛�"<< "瀹夊叏绠$悊浜哄憳"; + box->addItems(text); + + return box; +} + +void QComBoxDelegate::updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const +{ + QRect rec = option.rect; + editor->setGeometry(rec); +} + +void QComBoxDelegate::setEditorData(QWidget *editor, const QModelIndex &index) const +{ + +} + +void QComBoxDelegate::setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const +{ + QString val = static_cast<QComboBox *>(editor)->currentText(); + model->setData(index,val); +} diff --git "a/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/qcomboxdelegate.h" "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/qcomboxdelegate.h" new file mode 100644 index 0000000..d9e575e --- /dev/null +++ "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/qcomboxdelegate.h" @@ -0,0 +1,27 @@ +#ifndef QCOMBOXDELEGATE_H +#define QCOMBOXDELEGATE_H + +#include <QItemDelegate> +#include <QComboBox> +#pragma execution_character_set("utf-8") + +class QComBoxDelegate : public QItemDelegate +{ +public: + QComBoxDelegate(); + QComBoxDelegate(QObject * p=0); + + + // 鍒涘缓缂栬緫鍣� + QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const; + + // 鏄剧ず缂栬緫鍣紝鏇存柊鍑犱綍浣嶇疆 + void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const; + + // 璁惧畾缂栬緫鍣ㄦ暟鎹� + void setEditorData(QWidget *editor, const QModelIndex &index) const; + // 璁惧畾妯″瀷鏁版嵁 + void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const; +}; + +#endif // QCOMBOXDELEGATE_H diff --git "a/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/syncdatatodb.cpp" "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/syncdatatodb.cpp" new file mode 100644 index 0000000..96ca144 --- /dev/null +++ "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/syncdatatodb.cpp" @@ -0,0 +1,94 @@ +锘�#include "syncdatatodb.h" + + + +vector<PmsQueryResult> SyncDataToDB::queryAllUserAboutUser() +{ + string sql = "SELECT * FROM user_info AS u, employee_permisson AS e WHERE u.role_id=e.id"; + + mysql_real_query(&mysql, sql.c_str(), sql.size()); + res = mysql_store_result(&mysql); + + vector<PmsQueryResult> resv; + while ((row = mysql_fetch_row(res)) != NULL) { + + PmsQueryResult res; + setPmsResult(res,row); + resv.push_back(res); + } + return resv; +} + +vector<PmsQueryResult> SyncDataToDB::queryPmsByParam(PmsParam param) +{ + string sql = "SELECT * FROM user_info AS u, employee_permisson AS e WHERE u.role_id=e.id"; + + if(!param.getUserNo().empty()){ + sql += " and u.user_no='" + param.getUserNo() + "'"; + } + + if(!param.getName().empty()){ + sql += " and u.name='" + param.getName()+ "'"; + } + + if(!param.getPermissonType().empty()){ + sql += " and e.permission_type='" + param.getPermissonType()+ "'"; + } + + qDebug() << "sql璇彞" << QString::fromStdString(sql); + + mysql_real_query(&mysql, sql.c_str(), sql.size()); + res = mysql_store_result(&mysql); + + vector<PmsQueryResult> resv; + while ((row = mysql_fetch_row(res)) != NULL) { + + PmsQueryResult res; + setPmsResult(res,row); + resv.push_back(res); + } + return resv; +} + +int SyncDataToDB::updatePmsByParam(PmsPlusParma param) +{ + + string sql = "update employee_permisson"; + + // 鍙洿鏀硅亴浣� + if(!param.getPermissonType().empty()){ + sql.append(" set permission_type='" + param.getPermissonType())+ "'"; + }else{ + sql.append(" set query_history=") + to_string(param.getQueryHistory()); + sql.append(",logger_search=") + to_string(param.getLoggerSearch()); + sql.append(",map_mark=") + to_string(param.getMapMark()); + sql.append(",dev_manage=") + to_string(param.getDevManage()); + sql.append(",product_plan=") + to_string(param.getProductPlan()); + } + sql.append(" where e.id=" + param.getRoleId()); + + mysql_real_query(&mysql, sql.c_str(), sql.size()); + mysql_store_result(&mysql); + //qDebug() << res->row_count; + return res->row_count; + +} + +void SyncDataToDB::setPmsResult(PmsQueryResult &res, char **row) +{ + res.setName(string(row[1])); + res.setUserNo(string(row[5])); + res.setStartDateTime(string(row[2])); + res.setEndDateTime(string(row[3])); + res.setRoleId(stoi(string(row[4]))); + + res.setPermissonType(string(row[8])); + res.setQueryHistory(stoi(string(row[9]))); + res.setLoggerSearch(stoi(string(row[10]))); + res.setMapMark(stoi(string(row[11]))); + res.setDevManage(stoi(string(row[12]))); + res.setProductPlan(stoi(string(row[13]))); + + + qDebug() << QString::fromStdString(res.getUserNo()); +} diff --git "a/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/syncdatatodb.h" "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/syncdatatodb.h" new file mode 100644 index 0000000..ed52a26 --- /dev/null +++ "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/syncdatatodb.h" @@ -0,0 +1,48 @@ +锘�#ifndef SYNCDATATODB_H +#define SYNCDATATODB_H + +#include <WinSock2.h> +#include <mysql.h> +#include <string> +#include "pmsqueryresult.h" +#include <vector> +#include "pmsplusparam.h" +#include <QDebug> + +using namespace std; + +class SyncDataToDB{ +private: + MYSQL mysql; + MYSQL_RES * res; + MYSQL_ROW row; + + void DBInit() { + mysql_init(&mysql); + mysql_real_connect(&mysql, "127.0.0.1", "root", "root", "mydb", 3306, NULL, 0); + string sql1 = "set names gbk"; + mysql_real_query(&mysql, sql1.c_str(), sql1.size()); + } + + void DBClose() { + mysql_free_result(res); + mysql_close(&mysql); + } +public: + SyncDataToDB() { + DBInit(); + } + ~SyncDataToDB() { + DBClose(); + } + // 浠庢暟鎹簱鏌ヨ鎵�鏈夊憳宸ョ殑瑙掕壊鏉冮檺淇℃伅 + vector<PmsQueryResult> queryAllUserAboutUser(); + + vector<PmsQueryResult> queryPmsByParam(PmsParam param); + + int updatePmsByParam(PmsPlusParma param); + + void setPmsResult(PmsQueryResult & res,char ** row); +}; + +#endif // SYNCDATATODB_H diff --git "a/Client/\351\203\221\345\207\257\346\226\207/log/\351\203\221\345\207\257\346\226\2071029.doc" "b/Client/\345\247\234\345\217\257\345\272\232/log/\345\247\234\345\217\257\345\272\232_1030.doc" similarity index 80% rename from "Client/\351\203\221\345\207\257\346\226\207/log/\351\203\221\345\207\257\346\226\2071029.doc" rename to "Client/\345\247\234\345\217\257\345\272\232/log/\345\247\234\345\217\257\345\272\232_1030.doc" index 0530ea7..2c2d918 100644 --- "a/Client/\351\203\221\345\207\257\346\226\207/log/\351\203\221\345\207\257\346\226\2071029.doc" +++ "b/Client/\345\247\234\345\217\257\345\272\232/log/\345\247\234\345\217\257\345\272\232_1030.doc" Binary files differ diff --git "a/Client/\351\203\221\345\207\257\346\226\207/log/\351\203\221\345\207\257\346\226\2071029.doc" "b/Client/\345\247\234\345\217\257\345\272\232/log/\345\247\234\345\217\257\345\272\232_1031.doc" similarity index 79% copy from "Client/\351\203\221\345\207\257\346\226\207/log/\351\203\221\345\207\257\346\226\2071029.doc" copy to "Client/\345\247\234\345\217\257\345\272\232/log/\345\247\234\345\217\257\345\272\232_1031.doc" index 0530ea7..60ec89f 100644 --- "a/Client/\351\203\221\345\207\257\346\226\207/log/\351\203\221\345\207\257\346\226\2071029.doc" +++ "b/Client/\345\247\234\345\217\257\345\272\232/log/\345\247\234\345\217\257\345\272\232_1031.doc" Binary files differ diff --git "a/Client/\345\256\213\346\230\212\346\230\263/document/\347\263\273\347\273\237\350\256\276\347\275\256\351\234\200\346\261\202\345\210\206\346\236\220.docx" "b/Client/\345\256\213\346\230\212\346\230\263/document/\347\263\273\347\273\237\350\256\276\347\275\256\351\234\200\346\261\202\345\210\206\346\236\220.docx" index 7ff6bde..58cade1 100644 --- "a/Client/\345\256\213\346\230\212\346\230\263/document/\347\263\273\347\273\237\350\256\276\347\275\256\351\234\200\346\261\202\345\210\206\346\236\220.docx" +++ "b/Client/\345\256\213\346\230\212\346\230\263/document/\347\263\273\347\273\237\350\256\276\347\275\256\351\234\200\346\261\202\345\210\206\346\236\220.docx" Binary files differ diff --git "a/Client/\345\256\213\346\230\212\346\230\263/log/\346\227\245\345\277\227_\345\256\213\346\230\212\346\230\263_1031.doc" "b/Client/\345\256\213\346\230\212\346\230\263/log/\346\227\245\345\277\227_\345\256\213\346\230\212\346\230\263_1031.doc" new file mode 100644 index 0000000..a58b65e --- /dev/null +++ "b/Client/\345\256\213\346\230\212\346\230\263/log/\346\227\245\345\277\227_\345\256\213\346\230\212\346\230\263_1031.doc" Binary files differ diff --git "a/Client/\346\235\216\345\256\265\345\242\236/document/~$\346\237\245\350\257\242\345\210\206\346\236\220\346\250\241\345\235\227\351\234\200\346\261\202\345\210\206\346\236\220.docx" "b/Client/\346\235\216\345\256\265\345\242\236/document/~$\346\237\245\350\257\242\345\210\206\346\236\220\346\250\241\345\235\227\351\234\200\346\261\202\345\210\206\346\236\220.docx" new file mode 100644 index 0000000..2e393fe --- /dev/null +++ "b/Client/\346\235\216\345\256\265\345\242\236/document/~$\346\237\245\350\257\242\345\210\206\346\236\220\346\250\241\345\235\227\351\234\200\346\261\202\345\210\206\346\236\220.docx" Binary files differ diff --git "a/Client/\346\235\216\345\256\265\345\242\236/document/\345\216\206\345\217\262\346\237\245\350\257\242\345\210\206\346\236\220\346\250\241\345\235\227\351\234\200\346\261\202\345\210\206\346\236\220.docx" "b/Client/\346\235\216\345\256\265\345\242\236/document/\345\216\206\345\217\262\346\237\245\350\257\242\345\210\206\346\236\220\346\250\241\345\235\227\351\234\200\346\261\202\345\210\206\346\236\220.docx" index e2a8493..6b3025b 100644 --- "a/Client/\346\235\216\345\256\265\345\242\236/document/\345\216\206\345\217\262\346\237\245\350\257\242\345\210\206\346\236\220\346\250\241\345\235\227\351\234\200\346\261\202\345\210\206\346\236\220.docx" +++ "b/Client/\346\235\216\345\256\265\345\242\236/document/\345\216\206\345\217\262\346\237\245\350\257\242\345\210\206\346\236\220\346\250\241\345\235\227\351\234\200\346\261\202\345\210\206\346\236\220.docx" Binary files differ diff --git "a/Client/\351\203\221\345\207\257\346\226\207/log/\351\203\221\345\207\257\346\226\2071029.doc" "b/Client/\346\235\216\345\256\265\345\242\236/log/\345\216\206\345\217\262\346\237\245\350\257\242_\346\235\216\345\256\265\345\242\236_1030.doc" similarity index 62% copy from "Client/\351\203\221\345\207\257\346\226\207/log/\351\203\221\345\207\257\346\226\2071029.doc" copy to "Client/\346\235\216\345\256\265\345\242\236/log/\345\216\206\345\217\262\346\237\245\350\257\242_\346\235\216\345\256\265\345\242\236_1030.doc" index 0530ea7..cebcc04 100644 --- "a/Client/\351\203\221\345\207\257\346\226\207/log/\351\203\221\345\207\257\346\226\2071029.doc" +++ "b/Client/\346\235\216\345\256\265\345\242\236/log/\345\216\206\345\217\262\346\237\245\350\257\242_\346\235\216\345\256\265\345\242\236_1030.doc" Binary files differ diff --git "a/Client/\347\216\213\351\221\253\351\221\253/log/\346\227\245\345\277\227_\347\216\213\351\221\253\351\221\253_1031.doc" "b/Client/\347\216\213\351\221\253\351\221\253/log/\346\227\245\345\277\227_\347\216\213\351\221\253\351\221\253_1031.doc" new file mode 100644 index 0000000..bd1f6d1 --- /dev/null +++ "b/Client/\347\216\213\351\221\253\351\221\253/log/\346\227\245\345\277\227_\347\216\213\351\221\253\351\221\253_1031.doc" Binary files differ diff --git "a/Client/\347\216\213\351\221\253\351\221\253/log/\346\230\206\344\273\221_1031\351\241\271\347\233\256\346\227\245\346\212\245.doc" "b/Client/\347\216\213\351\221\253\351\221\253/log/\346\230\206\344\273\221_1031\351\241\271\347\233\256\346\227\245\346\212\245.doc" new file mode 100644 index 0000000..a07a550 --- /dev/null +++ "b/Client/\347\216\213\351\221\253\351\221\253/log/\346\230\206\344\273\221_1031\351\241\271\347\233\256\346\227\245\346\212\245.doc" Binary files differ diff --git "a/Client/\347\224\263\347\203\234/document/\346\263\250\345\206\214\347\231\273\345\275\225\346\225\260\346\215\256\345\272\223\350\241\250.docx" "b/Client/\347\224\263\347\203\234/document/\346\263\250\345\206\214\347\231\273\345\275\225\346\225\260\346\215\256\345\272\223\350\241\250.docx" new file mode 100644 index 0000000..a37ff65 --- /dev/null +++ "b/Client/\347\224\263\347\203\234/document/\346\263\250\345\206\214\347\231\273\345\275\225\346\225\260\346\215\256\345\272\223\350\241\250.docx" Binary files differ diff --git "a/Client/\347\224\263\347\203\234/document/\346\263\250\345\206\214\347\231\273\345\275\225\351\234\200\346\261\202\345\210\206\346\236\220.docx" "b/Client/\347\224\263\347\203\234/document/\346\263\250\345\206\214\347\231\273\345\275\225\351\234\200\346\261\202\345\210\206\346\236\220.docx" deleted file mode 100644 index 366835e..0000000 --- "a/Client/\347\224\263\347\203\234/document/\346\263\250\345\206\214\347\231\273\345\275\225\351\234\200\346\261\202\345\210\206\346\236\220.docx" +++ /dev/null Binary files differ diff --git "a/Client/\351\203\221\345\207\257\346\226\207/log/\351\203\221\345\207\257\346\226\2071029.doc" "b/Client/\347\224\263\347\203\234/log/\346\227\245\345\277\227_\346\263\250\345\206\214\347\231\273\345\275\225_2024.10.31.doc" similarity index 74% copy from "Client/\351\203\221\345\207\257\346\226\207/log/\351\203\221\345\207\257\346\226\2071029.doc" copy to "Client/\347\224\263\347\203\234/log/\346\227\245\345\277\227_\346\263\250\345\206\214\347\231\273\345\275\225_2024.10.31.doc" index 0530ea7..c9478d9 100644 --- "a/Client/\351\203\221\345\207\257\346\226\207/log/\351\203\221\345\207\257\346\226\2071029.doc" +++ "b/Client/\347\224\263\347\203\234/log/\346\227\245\345\277\227_\346\263\250\345\206\214\347\231\273\345\275\225_2024.10.31.doc" Binary files differ diff --git "a/Client/\351\203\221\345\207\257\346\226\207/log/\351\203\221\345\207\257\346\226\2071030.doc" "b/Client/\351\203\221\345\207\257\346\226\207/log/\351\203\221\345\207\257\346\226\2071030.doc" index 1f09eef..24d2fcc 100644 --- "a/Client/\351\203\221\345\207\257\346\226\207/log/\351\203\221\345\207\257\346\226\2071030.doc" +++ "b/Client/\351\203\221\345\207\257\346\226\207/log/\351\203\221\345\207\257\346\226\2071030.doc" Binary files differ diff --git "a/Client/\351\203\221\345\207\257\346\226\207/log/\351\203\221\345\207\257\346\226\2071029.doc" "b/Client/\351\203\221\345\207\257\346\226\207/log/\351\203\221\345\207\257\346\226\2071031.doc" similarity index 79% copy from "Client/\351\203\221\345\207\257\346\226\207/log/\351\203\221\345\207\257\346\226\2071029.doc" copy to "Client/\351\203\221\345\207\257\346\226\207/log/\351\203\221\345\207\257\346\226\2071031.doc" index 0530ea7..0731a0d 100644 --- "a/Client/\351\203\221\345\207\257\346\226\207/log/\351\203\221\345\207\257\346\226\2071029.doc" +++ "b/Client/\351\203\221\345\207\257\346\226\207/log/\351\203\221\345\207\257\346\226\2071031.doc" Binary files differ diff --git "a/Client/\351\273\216\345\274\230\351\234\226/code/device_management.zip" "b/Client/\351\273\216\345\274\230\351\234\226/code/device_management.zip" deleted file mode 100644 index 98e3eae..0000000 --- "a/Client/\351\273\216\345\274\230\351\234\226/code/device_management.zip" +++ /dev/null Binary files differ diff --git "a/Client/\351\203\221\345\207\257\346\226\207/log/\351\203\221\345\207\257\346\226\2071029.doc" "b/Client/\351\273\216\345\274\230\351\234\226/log/\350\256\276\345\244\207\347\256\241\347\220\206_\351\273\216\345\274\230\351\234\226_1031.doc" similarity index 75% copy from "Client/\351\203\221\345\207\257\346\226\207/log/\351\203\221\345\207\257\346\226\2071029.doc" copy to "Client/\351\273\216\345\274\230\351\234\226/log/\350\256\276\345\244\207\347\256\241\347\220\206_\351\273\216\345\274\230\351\234\226_1031.doc" index 0530ea7..e8f66d0 100644 --- "a/Client/\351\203\221\345\207\257\346\226\207/log/\351\203\221\345\207\257\346\226\2071029.doc" +++ "b/Client/\351\273\216\345\274\230\351\234\226/log/\350\256\276\345\244\207\347\256\241\347\220\206_\351\273\216\345\274\230\351\234\226_1031.doc" Binary files differ diff --git "a/Server/\346\235\216\350\275\254\350\275\254/log/log_1031.doc" "b/Server/\346\235\216\350\275\254\350\275\254/log/log_1031.doc" new file mode 100644 index 0000000..08ede4d --- /dev/null +++ "b/Server/\346\235\216\350\275\254\350\275\254/log/log_1031.doc" Binary files differ diff --git "a/Server/\347\216\213\347\220\250\345\205\203/code/ConnectionPool.cpp" "b/Server/\347\216\213\347\220\250\345\205\203/code/ConnectionPool.cpp" new file mode 100644 index 0000000..367a7f1 --- /dev/null +++ "b/Server/\347\216\213\347\220\250\345\205\203/code/ConnectionPool.cpp" @@ -0,0 +1,131 @@ +#include "ConnectionPool.h" +ConnectionPool::ConnectionPool() +{ + if (!parseXmlFile()) + return; + for (m_num = 0; m_num < m_minSize;) { + bool flag = addConnection(); + if (!flag) { + return; + } + } + // 如果子线程的任务函数是类的非静态函数,我们需要指定任务函数的地址和任务函数的所有者 + thread producer(&ConnectionPool::productConnection, this); // 创建连接 + thread recycler(&ConnectionPool::recycleConnection, this); // 检测并销毁连接 + // 线程分离,防止阻塞主线程 + producer.detach(); + recycler.detach(); +} +ConnectionPool::~ConnectionPool() +{ + while (!m_connections.empty()) { + MysqlConn* conn = m_connections.front(); + m_connections.pop(); + delete conn; + } +} +bool ConnectionPool::parseXmlFile() +{ + TiXmlDocument xml("mysql.xml"); + // 加载文件 + bool res = xml.LoadFile(); + if (!res) { + return false; // 提示 + } + // 根 + TiXmlElement* rootElement = xml.RootElement(); + TiXmlElement* childElement = rootElement->FirstChildElement("mysql"); + // 读取信息 + m_ip = childElement->FirstChildElement("ip")->GetText(); + m_port = static_cast<unsigned short>(stoi(string(childElement->FirstChildElement("port")->GetText()))); + m_user = childElement->FirstChildElement("username")->GetText(); + m_passwd = childElement->FirstChildElement("password")->GetText(); + m_dbName = childElement->FirstChildElement("dbName")->GetText(); + m_minSize = static_cast<int>(stoi(string(childElement->FirstChildElement("minSize")->GetText()))); + m_maxSize = static_cast<int>(stoi(string(childElement->FirstChildElement("maxSize")->GetText()))); + m_maxIdleTime = static_cast<int>(stoi(string(childElement->FirstChildElement("maxIdleTime")->GetText()))); + m_timeout = static_cast<int>(stoi(string(childElement->FirstChildElement("timeout")->GetText()))); + return true; +} +bool ConnectionPool::addConnection() +{ + MysqlConn* conn = new MysqlConn; + bool res = conn->connect(m_user, m_passwd, m_dbName, m_ip, m_port); + if (res) { + // 刷新空闲时间 + conn->refreashAliveTime(); + m_connections.push(conn); + ++m_num; + return true; + } + else { + delete conn; + return false; // 提示 + } +} +void ConnectionPool::productConnection() +{ + while (true) { + unique_lock<mutex> lc(m_mutex); + m_cond.wait(lc, [this]() {return m_connections.empty(); }); + if (m_num < m_maxSize) { + bool flag = addConnection(); + if (!flag) { + return; + } + } + // 唤醒 + m_cond1.notify_all(); + } +} +void ConnectionPool::recycleConnection() +{ + while (true) { + // 休眠一段时间 0.5s + this_thread::sleep_for(milliseconds(500)); + lock_guard<mutex> lc(m_mutex); + while (!m_connections.empty() && m_num > m_minSize) { + MysqlConn* conn = m_connections.front(); + if (conn->getAliveTime() >= m_maxIdleTime) { + m_connections.pop(); + delete conn; + --m_num; + } + else { + break; + } + } + } +} +ConnectionPool* ConnectionPool::getConnectPool() +{ + // 不使用互斥锁的线程安全的懒汉模式 + static ConnectionPool pool; // 只在第一次调用函数时初始化 + return &pool; +} +shared_ptr<MysqlConn> ConnectionPool::getConnection() +{ + unique_lock<mutex> lc(m_mutex); + while (m_connections.empty()) { + if (cv_status::timeout == m_cond1.wait_for(lc, chrono::milliseconds(m_timeout))) { + if (m_connections.empty()) { + // cout << "out of time" << endl; + return nullptr; // 结束 // 提示 + // continue; // 利用while配合continue 继续阻塞 + } + } + } + // 要指定删除器destructor,来保证连接的归还 + shared_ptr<MysqlConn> conn(m_connections.front(), [this](MysqlConn* conn) { + // 加锁保证队列线程安全 + // m_mutex.lock(); // 1 + unique_lock<mutex> lc(m_mutex); // 2 + // lock_guard<mutex> lc(m_mutex); // 3 + conn->refreashAliveTime(); + m_connections.push(conn); + // m_mutex.unlock(); // 1 + }); + m_connections.pop(); + m_cond.notify_all(); + return conn; +} diff --git "a/Server/\347\216\213\347\220\250\345\205\203/code/ConnectionPool.h" "b/Server/\347\216\213\347\220\250\345\205\203/code/ConnectionPool.h" new file mode 100644 index 0000000..3ad1ee0 --- /dev/null +++ "b/Server/\347\216\213\347\220\250\345\205\203/code/ConnectionPool.h" @@ -0,0 +1,54 @@ +#pragma once +#include "MysqlConn.h" +#include "./tinyxml/tinyxml.h" +#include <queue> +#include <mutex> +#include <thread> +#include <atomic> +#include <condition_variable> + + +#pragma comment(lib, "./tinyxml/x64/Debug/tinyxml.lib") + +// 应用-单例模式:懒汉模式[需要考虑多线程安全问题] +class ConnectionPool +{ +private: + ConnectionPool(); + // 移动拷贝最终还是有且仅有一个对象,所以依旧是属于单例模式。 + // delete 阻止拷贝构造和拷贝赋值的类对象生成 + ConnectionPool(ConnectionPool&) = delete; + ConnectionPool& operator=(ConnectionPool&) = delete; + ~ConnectionPool(); + // 解析xml配置文件 读取数据库及连接池的相关信息 + bool parseXmlFile(); + // 添加连接 + bool addConnection(); + // 线程函数 + void productConnection(); + void recycleConnection(); + + // 存放数据库连接池建立的连接 + queue<MysqlConn*> m_connections; + // 一些基本信息 + string m_ip; // IP + unsigned short m_port; // 端口 + string m_user; // 用户名 + string m_passwd; // 密码 + string m_dbName; // 数据库名称 + int m_minSize; // 初始连接量(最小连接量) + int m_maxSize; // 最大连接量 + int m_timeout; // 超时时长 + int m_maxIdleTime; // 最大空闲时长 + // 线程安全相关 + mutex m_mutex; + condition_variable m_cond; // 仅用一个条件变量来唤醒线程,但并不影响线程运行 + condition_variable m_cond1; + // 连接数量 + atomic_int m_num; // 连接的总数量 +public: + // 获取单例对象的接口 + static ConnectionPool* getConnectPool(); + // 用户获取连接的接口, 如果获取失败,会返回nullptr + shared_ptr<MysqlConn> getConnection(); +}; diff --git "a/Server/\347\216\213\347\220\250\345\205\203/code/MysqlConn.cpp" "b/Server/\347\216\213\347\220\250\345\205\203/code/MysqlConn.cpp" new file mode 100644 index 0000000..57ba1c6 --- /dev/null +++ "b/Server/\347\216\213\347\220\250\345\205\203/code/MysqlConn.cpp" @@ -0,0 +1,174 @@ +#include "MysqlConn.h" + +MysqlConn::MysqlConn()//初始化数据库 +{ + m_result = nullptr; + m_mysqlRow = nullptr; + // 传入nullptr空指针时,会自动分配一个MYSQL对象 + m_conn = mysql_init(nullptr); +} +MysqlConn::~MysqlConn()//释放数据库连接 +{ + freeRes(); // 释放结果集 + if (m_conn != nullptr) { + mysql_close(m_conn); + m_conn = nullptr; + } +} +void MysqlConn::freeRes()//结果集释放 +{ + if (m_result) { + mysql_free_result(m_result); + m_result = nullptr; + } +} +bool MysqlConn::connect(const string user, const string passwd, \ + const string dbName, string ip, \ + const unsigned short port)//连接数据库 +{ + MYSQL* res = mysql_real_connect(m_conn, ip.c_str(), user.c_str(), \ + passwd.c_str(), dbName.c_str(), port, nullptr, 0); + // 修改编码 + mysql_set_character_set(m_conn, "gb2312"); + return res != nullptr; +} +bool MysqlConn::update(const string sql) const +{ + // 执行成功返回0; + int res = mysql_real_query(m_conn, sql.c_str(), static_cast<unsigned int>(sql.size())); + if (res != 0) { + return false; // 提示 + } + return true; +} +bool MysqlConn::query(const string sql) +{ + freeRes(); + int res = mysql_real_query(m_conn, sql.c_str(), static_cast<unsigned int>(sql.size())); + if (res != 0) { + return false; // 提示 + } + m_result = mysql_store_result(m_conn); + return true; +} +bool MysqlConn::getRes() +{ + if (m_result != nullptr) { + // char** 获取单行记录 + m_mysqlRow = mysql_fetch_row(m_result); + if (m_mysqlRow != nullptr) { + return true; + } + freeRes(); + } + return false; +} +string MysqlConn::getValue(const int fieldIndex) const +{ + int fieldCount = mysql_num_fields(m_result); + if (fieldIndex >= fieldCount || fieldIndex < 0) { + return string(); // 提示 + } + char* value = m_mysqlRow[fieldIndex]; + // 得到一个保存各字段值长度的数组 + unsigned long* len = mysql_fetch_lengths(m_result); + unsigned long length = len[fieldIndex]; + // 防止结果中存在\0导致数据丢失 + return string(value, length); +} +bool MysqlConn::selectDB(const string dbName) const +{ + int res = mysql_select_db(m_conn, dbName.c_str()); + if (res != 0) { + return false; // 提示 + } + return true; +} +void MysqlConn::backupCurrentDB(const string path) +{ + string sql = "show tables"; + int r = mysql_real_query(m_conn, sql.c_str(), static_cast<unsigned long>(sql.size())); + if (r != 0) { + return; // 提示 + } + MYSQL_RES* tableRes = mysql_store_result(m_conn); + for (int i = 0; i < mysql_num_rows(tableRes); ++i) { + MYSQL_ROW tableName = mysql_fetch_row(tableRes); + backupCurrentTable(path, tableName[0]); + } +} +void MysqlConn::backupCurrentTable(const string path, const string tableName) +{ + string file = path + tableName + ".sql"; + ofstream ofs(file); + if (!ofs.is_open()) { + return; // 提示 + } + // 表结构写入 + string showCreate = "show create table " + tableName + ";"; + bool res = query(showCreate); + if (!res) { + return; // 提示 + } + if (getRes()) { + string writeSQL = getValue(1) + ";\n"; + ofs.write(writeSQL.c_str(), writeSQL.size()); + // cout << writeSQL << endl; + } + // 表数据写入 + string sql = "select * from " + tableName + ";"; + res = query(sql); + if (!res) { + return; // 提示 + } + while (getRes()) { + string writeSQL = "insert into `" + tableName + "` values("; + for (int i = 0; !getValue(i).empty(); ++i) { + if (i != 0) { + writeSQL += ","; + } + MYSQL_FIELD* valueType = mysql_fetch_field_direct(m_result, i); + if (valueType->type == MYSQL_TYPE_DECIMAL + || valueType->type == MYSQL_TYPE_TINY + || valueType->type == MYSQL_TYPE_SHORT + || valueType->type == MYSQL_TYPE_LONG + || valueType->type == MYSQL_TYPE_FLOAT + || valueType->type == MYSQL_TYPE_DOUBLE + || valueType->type == MYSQL_TYPE_TIMESTAMP + || valueType->type == MYSQL_TYPE_LONGLONG + || valueType->type == MYSQL_TYPE_INT24) { + writeSQL += getValue(i); + } + else { + writeSQL += "'" + getValue(i) + "'"; + } + } + writeSQL += ");\n"; + ofs.write(writeSQL.c_str(), writeSQL.size()); + } + ofs.close(); +} +bool MysqlConn::transaction() const +{ + // 将事务提交设置为手动提交 + return mysql_autocommit(m_conn, false); +} +bool MysqlConn::commit() const +{ + return mysql_commit(m_conn); +} +bool MysqlConn::rollback() const +{ + return mysql_rollback(m_conn); +} +void MysqlConn::refreashAliveTime() +{ + m_alivetime = steady_clock::now(); +} +ll MysqlConn::getAliveTime() +{ + // 毫秒 <<= 纳秒:精度降低 + milliseconds res = duration_cast<milliseconds>(steady_clock::now() - m_alivetime); + return res.count(); +} + diff --git "a/Server/\347\216\213\347\220\250\345\205\203/code/MysqlConn.h" "b/Server/\347\216\213\347\220\250\345\205\203/code/MysqlConn.h" new file mode 100644 index 0000000..0dbbea9 --- /dev/null +++ "b/Server/\347\216\213\347\220\250\345\205\203/code/MysqlConn.h" @@ -0,0 +1,63 @@ +#pragma once +#include<iostream> +#include <memory> +#include <string> +#include <mysql.h> +#include <chrono> // 时钟 +#include <fstream> + +#pragma comment(lib, "./lib/libmysql.lib") // 加载数据库库文件 +using namespace std; +using namespace chrono; +typedef long long ll; + +class MysqlConn +{ +private: + // 绝对时钟 + steady_clock::time_point m_alivetime; + // 连接 + MYSQL* m_conn; + // 查询的结果集 + MYSQL_RES* m_result; + // 单记录结果集 + MYSQL_ROW m_mysqlRow; + + // 结果集释放 + void freeRes(); + // 导出某一张表中的数据 + void backupCurrentTable(const string path, const string tableName); +public: + // 初始化数据库 + MysqlConn(); + // 数据库连接释放 + ~MysqlConn(); + // 连接数据库, 需提供用户 密码 数据库名称 ip 端口 + bool connect(const string user, const string passwd, \ + const string dbName, string ip, \ + const unsigned short port = 3306U); + // 更新数据库:增删改操作 + bool update(const string sql) const; + // 查询数据库 + bool query(const string sql); + // 遍历查询结果集 + bool getRes(); + // 获取结果集中的字段值 + string getValue(const int fieldIndex) const; + // 切换数据库 + bool selectDB(const string dbName) const; + // 建库 + //bool createDB(const string dbName) const; + // 备份某个库 + void backupCurrentDB(const string path); + // 事务操作 + bool transaction() const; + // 提交事务 + bool commit() const; + // 事务回滚 + bool rollback() const; + // 刷新起始的空闲时间点 + void refreashAliveTime(); + // 计算存活总时长 + ll getAliveTime(); +}; diff --git "a/Server/\347\216\213\347\220\250\345\205\203/document/\345\273\272\350\241\250.docx" "b/Server/\347\216\213\347\220\250\345\205\203/document/\345\273\272\350\241\250.docx" index b777db4..ed3cc7a 100644 --- "a/Server/\347\216\213\347\220\250\345\205\203/document/\345\273\272\350\241\250.docx" +++ "b/Server/\347\216\213\347\220\250\345\205\203/document/\345\273\272\350\241\250.docx" Binary files differ diff --git "a/Server/\347\216\213\347\220\250\345\205\203/log/\346\227\245\345\277\227\346\250\241\346\235\277_\347\216\213\347\220\250\345\205\203_1030.doc" "b/Server/\347\216\213\347\220\250\345\205\203/log/\346\227\245\345\277\227\346\250\241\346\235\277_\347\216\213\347\220\250\345\205\203_1030.doc" new file mode 100644 index 0000000..c668cfd --- /dev/null +++ "b/Server/\347\216\213\347\220\250\345\205\203/log/\346\227\245\345\277\227\346\250\241\346\235\277_\347\216\213\347\220\250\345\205\203_1030.doc" Binary files differ diff --git "a/Server/\350\203\241\345\256\266\346\230\216/log/\346\227\245\345\277\227_\350\203\241\345\256\266\346\230\216_1030.doc" "b/Server/\350\203\241\345\256\266\346\230\216/log/\346\227\245\345\277\227_\350\203\241\345\256\266\346\230\216_1030.doc" new file mode 100644 index 0000000..b77e6fc --- /dev/null +++ "b/Server/\350\203\241\345\256\266\346\230\216/log/\346\227\245\345\277\227_\350\203\241\345\256\266\346\230\216_1030.doc" Binary files differ diff --git "a/Server/\351\251\254\344\270\275\350\220\215/code/log/log.h" "b/Server/\351\251\254\344\270\275\350\220\215/code/log/log.h" index be28a84..37cc6bb 100644 --- "a/Server/\351\251\254\344\270\275\350\220\215/code/log/log.h" +++ "b/Server/\351\251\254\344\270\275\350\220\215/code/log/log.h" @@ -7,7 +7,7 @@ #include <stdarg.h> #include <thread> #include "block_queue.h" -#include "locker.h" // 纭繚 locker.h 琚寘鍚� +#include "locker.h" #include <fstream> using namespace std; @@ -82,7 +82,7 @@ bool m_is_async; // 鏄惁寮傛鏍囧織浣� locker m_mutex; // 浜掓枼閿� int m_close_log; // 鍏抽棴鏃ュ織鐨勬爣蹇� - long max_size = 10 * 1024 * 1024; // 10MB + long max_size = 10 * 1024 * 1024; // 鍗曚釜鏃ュ織鏂囦欢鐨勫ぇ灏� 10MB //娴嬭瘯鏂囦欢閲岄潰鐨� int m_close_log; // 纭繚鍦ㄨ繖閲屽畾涔� }; diff --git "a/Server/\351\251\254\344\270\275\350\220\215/log/log_1031.doc" "b/Server/\351\251\254\344\270\275\350\220\215/log/log_1031.doc" new file mode 100644 index 0000000..9740cdd --- /dev/null +++ "b/Server/\351\251\254\344\270\275\350\220\215/log/log_1031.doc" Binary files differ diff --git "a/Server/\351\251\254\346\270\235\346\235\255/code/common.h" "b/Server/\351\251\254\346\270\235\346\235\255/code/common.h" new file mode 100644 index 0000000..b6c770d --- /dev/null +++ "b/Server/\351\251\254\346\270\235\346\235\255/code/common.h" @@ -0,0 +1,164 @@ +#ifndef COMMON_H +#define COMMON_H +#include <string.h> +//绉佹湁鍗忚灏佽 + +//璇锋眰鍝嶅簲缁撴瀯浣撴湁鏁版嵁澶�+鏁版嵁浣� + +//浣跨敤鏋氫妇鏉ョ粺涓�鍚勭鍔熻兘绫诲瀷銆� + +enum TypeInfo{ + LOGIN_REQ, //鐧诲綍璇锋眰 + LOGIN_RES, + VERSIONUPDATA_REQ, // 鐗堟湰鏇存柊璇锋眰 + VERSIONUPDATA_RES, + VERSIONNUM_REQ, //鐗堟湰鍙疯姹� + VERSIONNUM_RES, + UPLOAD_FILE_REQ, + UPLOAD_FILE_RES, + VERSIONINFOENTRY_REQ, //鐗堟湰淇℃伅鏉$洰 + VERSIONINFOENTRY_RES +}; + +struct Head +{ + int type; // 鍔熻兘绫诲瀷锛岃В鍐虫瘡涓寘鐨勫叿浣撲綔鐢紝鍖哄垎涓氬姟 + int len; //灏佸寘闀垮害 + +}; +// 鐧诲綍涓氬姟 +// 鐧诲綍璇锋眰 +struct LoginReq +{ + Head head; + + char user_name[32]; + char password[32]; + LoginReq(){ + head.type=LOGIN_REQ; + head.len=sizeof(LoginReq); + } +}; +//鐧诲綍鏉冮檺缁撴瀯浣� +struct PermissionInfo +{ + int admin; //绠$悊鍛� + int history; //鍘嗗彶鏌ョ湅 + int version_manager;//鐗堟湰绠$悊 + int log_search; //鏃ュ織鏌ョ湅 + int flaw_mark ; //缂洪櫡鏍囪 + +}; + +//鐧诲綍鍝嶅簲 +struct LoginRes +{ + Head head; + char user_name[32]; + int state; // 鐧诲綍鐘舵�� + PermissionInfo per; + LoginRes(){ + head.type=LOGIN_RES; + head.len=sizeof(LoginRes); + } +}; +struct VersionUpdataReq //鐗堟湰鏇存柊璇锋眰鐨勭粨鏋勪綋 +{ + Head head; + VersionUpdataReq(){ + head.type=VERSIONUPDATA_REQ; + head.len=sizeof(VersionUpdataReq); + } +}; +struct VersionUpdataRes //鐗堟湰鏇存柊鍝嶅簲鐨勭粨鏋勪綋 +{ + Head head; + char version_id[64]; // 鐗堟湰鍙� + char update_date[32]; //鏇存柊鏃堕棿 + char file_path[128]; //鏈嶅姟绔彁渚涙渶鏂扮増鏈殑鏈湴璺緞 + VersionUpdataRes(){ + head.type=VERSIONUPDATA_REQ; + head.len=sizeof(VersionUpdataReq); + } +}; +struct VersionNumReq //鐗堟湰鍙疯姹� +{ + Head head; + VersionNumReq(){ + head.type=VERSIONNUM_REQ; + head.len=sizeof(VersionNumReq); + } +}; +struct VersionNumRes +{ + Head head; + char version_id[64]; + VersionNumRes(){ + head.type=VERSIONNUM_RES; + head.len=sizeof(VersionNumRes); + } +}; +//鏂囦欢浼犺緭鍔熻兘 +struct FileInfo +{ + char file_name[256]; + long long file_size; + char s_filepath[32]; + char content[0]; //鏌旀�ф暟缁勭粨鏋勪綋 +}; +struct UploadFileReq +{ + Head head; + FileInfo fileInfo; + UploadFileReq(){ + head.type=UPLOAD_FILE_REQ; + head.len=sizeof(UploadFileReq); + } +}; +struct UploadFileRes +{ + Head head; + int status; + long long file_size; //鎬诲ぇ灏� + long long file_cuesize; //鏂囦欢宸蹭紶澶у皬 + UploadFileRes(){ + head.type=UPLOAD_FILE_RES; + head.len=sizeof(UploadFileRes); + } +}; +//鐗堟湰淇℃伅褰曞叆---鐗堟湰淇℃伅鏉$洰 +struct VersionInfoEntryReq +{ + Head head; + char version_id[64]; + char version_id_old[64]; + char s_filepath[32]; //鏈嶅姟鍣ㄦ斁鏈�鏂扮増鏈殑璺緞 + char version_description[256]; //鏇存柊鎻忚堪 + char version_creattime[32]; //鏇存柊鏃堕棿 + char filename[16][128]; //鏀寔澶氭枃浠朵笂浼� + long long filesize[16]; //鏂囦欢缁勭殑澶у皬 + char c_filepath[16][128]; //瀹㈡埛绔殑瀹夎璺緞 + int filenum; //涓�娆$増鏈洿鏂版墍闇�鏂囦欢涓暟 + + VersionInfoEntryReq(){ + head.type=VERSIONINFOENTRY_REQ; + head.len=sizeof(VersionInfoEntryReq); + } +}; +//鍝嶅簲 +struct VersionInfoEntryRes { + Head head; + char version_id_old[64]; // 鐗堟湰鍙� + VersionInfoEntryRes() + { + head.type = VERSIONINFOENTRY_RES; + head.len = sizeof(VersionInfoEntryRes); + } +}; + + + + + + +#endif // COMMON_H diff --git "a/Server/\351\251\254\346\270\235\346\235\255/log/20241031\346\230\206\344\273\221\346\227\245\346\212\245.doc" "b/Server/\351\251\254\346\270\235\346\235\255/log/20241031\346\230\206\344\273\221\346\227\245\346\212\245.doc" new file mode 100644 index 0000000..4021a6c --- /dev/null +++ "b/Server/\351\251\254\346\270\235\346\235\255/log/20241031\346\230\206\344\273\221\346\227\245\346\212\245.doc" Binary files differ diff --git "a/Client/\351\203\221\345\207\257\346\226\207/log/\351\203\221\345\207\257\346\226\2071029.doc" "b/Server/\351\251\254\346\270\235\346\235\255/log/\346\227\245\345\277\227_\351\251\254\346\270\235\346\235\255_20241030.doc" similarity index 78% copy from "Client/\351\203\221\345\207\257\346\226\207/log/\351\203\221\345\207\257\346\226\2071029.doc" copy to "Server/\351\251\254\346\270\235\346\235\255/log/\346\227\245\345\277\227_\351\251\254\346\270\235\346\235\255_20241030.doc" index 0530ea7..3171038 100644 --- "a/Client/\351\203\221\345\207\257\346\226\207/log/\351\203\221\345\207\257\346\226\2071029.doc" +++ "b/Server/\351\251\254\346\270\235\346\235\255/log/\346\227\245\345\277\227_\351\251\254\346\270\235\346\235\255_20241030.doc" Binary files differ -- Gitblit v1.8.0