-
23ConsultaPrecio_Maxi.pro
-
336ConsultaPrecio_Maxi.pro.user
-
BINRecursos/180.png
-
BINRecursos/300.png
-
BINRecursos/400.png
-
BINRecursos/cancel_grey_192x192.png
-
BINRecursos/chico_emanuel_logo.png
-
BINRecursos/chico_maxi_logo.png
-
BINRecursos/close-delete-cancel-del-ui-round-512.png
-
BINRecursos/emanuel_logo.png
-
308Recursos/fb_power.css
-
308Recursos/fb_power_mini.css
-
BINRecursos/logo_maxi.jpg
-
BINRecursos/maxi_logo.png
-
BINRecursos/maxi_ofertas_chico.jpg
-
BINRecursos/scanner_250.png
-
BINRecursos/scanner_380.png
-
BINRecursos/scanner_400.png
-
6config.ini
-
30main.cpp
-
786principal.cpp
-
146principal.h
-
357principal.ui
-
137107qrc_resources.cpp
-
20resources.qrc
-
300ui_principal.h
@ -0,0 +1,23 @@ |
|||||
|
#------------------------------------------------- |
||||
|
# |
||||
|
# Project created by QtCreator 2018-10-23T11:13:41 |
||||
|
# |
||||
|
#------------------------------------------------- |
||||
|
|
||||
|
QT += core gui sql network |
||||
|
|
||||
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets |
||||
|
|
||||
|
TARGET = ConsultaPrecio_Maxi |
||||
|
TEMPLATE = app |
||||
|
|
||||
|
|
||||
|
SOURCES += main.cpp\ |
||||
|
principal.cpp |
||||
|
|
||||
|
HEADERS += principal.h |
||||
|
|
||||
|
FORMS += principal.ui |
||||
|
|
||||
|
RESOURCES += \ |
||||
|
resources.qrc |
@ -0,0 +1,336 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<!DOCTYPE QtCreatorProject> |
||||
|
<!-- Written by QtCreator 4.5.0, 2024-09-03T09:32:50. --> |
||||
|
<qtcreator> |
||||
|
<data> |
||||
|
<variable>EnvironmentId</variable> |
||||
|
<value type="QByteArray">{103d5d99-0b83-44b6-a661-9f9147381172}</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.10.0 GCC 64bit</value> |
||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop Qt 5.10.0 GCC 64bit</value> |
||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">qt.qt5.5100.gcc_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">/home/nico/Escritorio/ConsultaPrecio_Maxi.bk20240828/build-ConsultaPrecio_Maxi-Desktop_Qt_5_10_0_GCC_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="QString">-w</value> |
||||
|
<value type="QString">-r</value> |
||||
|
</valuelist> |
||||
|
<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">Build</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="QString">-w</value> |
||||
|
<value type="QString">-r</value> |
||||
|
</valuelist> |
||||
|
<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">Clean</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">/home/nico/Escritorio/ConsultaPrecio_Maxi.bk20240828/build-ConsultaPrecio_Maxi-Desktop_Qt_5_10_0_GCC_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="QString">-w</value> |
||||
|
<value type="QString">-r</value> |
||||
|
</valuelist> |
||||
|
<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">Build</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="QString">-w</value> |
||||
|
<value type="QString">-r</value> |
||||
|
</valuelist> |
||||
|
<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">Clean</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">/home/nico/Escritorio/ConsultaPrecio_Maxi.bk20240828/build-ConsultaPrecio_Maxi-Desktop_Qt_5_10_0_GCC_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="QString">-w</value> |
||||
|
<value type="QString">-r</value> |
||||
|
</valuelist> |
||||
|
<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">Build</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="QString">-w</value> |
||||
|
<value type="QString">-r</value> |
||||
|
</valuelist> |
||||
|
<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">Clean</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">Deploy</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">Deploy locally</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">ConsultaPrecio_Maxi</value> |
||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
||||
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:/home/nico/Escritorio/ConsultaPrecio_Maxi.bk20240828/ConsultaPrecio/ConsultaPrecio_Maxi.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">ConsultaPrecio_Maxi.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"></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">1</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> |
After Width: 180 | Height: 48 | Size: 9.7 KiB |
After Width: 300 | Height: 80 | Size: 17 KiB |
After Width: 400 | Height: 106 | Size: 23 KiB |
After Width: 192 | Height: 192 | Size: 2.4 KiB |
After Width: 180 | Height: 48 | Size: 9.7 KiB |
After Width: 102 | Height: 50 | Size: 3.9 KiB |
After Width: 512 | Height: 512 | Size: 17 KiB |
After Width: 527 | Height: 258 | Size: 23 KiB |
@ -0,0 +1,308 @@ |
|||||
|
QPushButton { |
||||
|
font: bold 25px; |
||||
|
margin: 0; |
||||
|
padding: 0 5px; |
||||
|
line-height: 30px; |
||||
|
font-weight: bold; |
||||
|
text-decoration: none; |
||||
|
text-align: center; |
||||
|
white-space: nowrap; |
||||
|
color: #fff; |
||||
|
outline: none; |
||||
|
background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(134, 198, 135, 255), stop:0.5 rgba(76, 174, 78, 255), stop:0.505 rgba(58, 166, 62, 255), stop:1 rgba(61, 164, 62, 255)); |
||||
|
/*background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(1, 171, 154, 1), stop:0.5 rgba(24, 154, 97, 1), stop:0.505 rgba(24, 154, 97, 1), stop:1 rgba(24, 154, 97, 1));*/ |
||||
|
border-radius: 2px; |
||||
|
border: 0px solid #555; |
||||
|
border-style: inset; |
||||
|
} |
||||
|
|
||||
|
QMainWindow |
||||
|
{ |
||||
|
/*background-color: qlineargradient(spread:pad, x1:1, y1:0, x2:1, y2:0.989, stop:0 rgba(0, 0, 0, 255), stop:1 rgba(129, 129, 129, 255)); ROB HOY*/ |
||||
|
/*background-color: qlineargradient(spread:pad, x1:1, y1:1, x2:1, y2:0, stop:0 rgba(153, 153, 153, 153), stop:1 rgba(204, 204, 204, 204) );*/ |
||||
|
/*background-color: qconicalgradient(cx:1, cy:0.687, angle:84.4, stop:0 rgba(255, 255, 255, 255), stop:0.502222 rgba(138, 138, 138, 255), stop:1 rgba(0, 0, 0, 255));*/ |
||||
|
background-color: rgb(255, 255, 255); |
||||
|
|
||||
|
/*background-color: qlineargradient(spread:pad, x1:1, y1:1, x2:1, y2:0, stop:0 rgba(255, 255, 255, 255), stop:1 rgba(212, 225, 245, 255) );*/ |
||||
|
/*background-color: rgb(255, 255, 255);*/ |
||||
|
} |
||||
|
QFrame#frame_salida |
||||
|
{ |
||||
|
background-color: rgba(255, 255, 255, 255); |
||||
|
/*background-color: qlineargradient(spread:pad, x1:1, y1:1, x2:1, y2:0, stop:0 rgba(255, 255, 255, 255), stop:1 rgba(212, 225, 245, 255) );*/ |
||||
|
border-radius:5px; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
QFrame#frame_barra |
||||
|
{ |
||||
|
background-color: rgb(130, 224, 170, 255); |
||||
|
border-radius:5px; |
||||
|
border-top-color: rgb(255, 255, 255); |
||||
|
border-left-color: rgb(255, 255, 255); |
||||
|
} |
||||
|
|
||||
|
QFrame#frame_titulo |
||||
|
{ |
||||
|
background-color: rgb(36, 113, 163, 255); |
||||
|
border-radius:5px; |
||||
|
border-top-color: rgb(255, 255, 255); |
||||
|
border-left-color: rgb(255, 255, 255); |
||||
|
} |
||||
|
|
||||
|
QLabel#label_desc |
||||
|
{ |
||||
|
color: rgba(0, 0, 0, 255); |
||||
|
font: 48pt "Ubuntu"; |
||||
|
font-weight: bold; |
||||
|
} |
||||
|
|
||||
|
QLabel#label_desc2 |
||||
|
{ |
||||
|
color: rgba(0, 0, 0, 255); |
||||
|
font: 48pt "Ubuntu"; |
||||
|
font-weight: bold; |
||||
|
} |
||||
|
|
||||
|
QLabel#label_precio |
||||
|
{ |
||||
|
color: rgba(12, 88, 144, 255); |
||||
|
font: 52pt "Ubuntu"; |
||||
|
font-weight: bold; |
||||
|
} |
||||
|
QLabel#label_ofe |
||||
|
{ |
||||
|
color: rgba(52, 140, 12, 255); |
||||
|
font: 40pt "Ubuntu"; |
||||
|
font-weight: bold; |
||||
|
} |
||||
|
QLabel#label_despofe |
||||
|
{ |
||||
|
color: rgba(52, 140, 12, 255); |
||||
|
font: 12pt "Ubuntu"; |
||||
|
font-weight: bold; |
||||
|
} |
||||
|
QLabel#label_despnorm |
||||
|
{ |
||||
|
color: rgba(12, 88, 144, 255); |
||||
|
font: 12pt "Ubuntu"; |
||||
|
font-weight: bold; |
||||
|
} |
||||
|
|
||||
|
QLabel#label_titulo |
||||
|
{ |
||||
|
color: rgba(255, 255, 255, 255); |
||||
|
font: 32pt "Ubuntu"; |
||||
|
font-weight: bold; |
||||
|
} |
||||
|
|
||||
|
QLabel#label_promo |
||||
|
{ |
||||
|
color: rgba(144, 12, 63, 255); |
||||
|
font: 20pt "Ubuntu"; |
||||
|
font-weight: bold; |
||||
|
} |
||||
|
|
||||
|
QLabel#label_prom_valida |
||||
|
{ |
||||
|
color: rgba(144, 12, 63, 255); |
||||
|
font: 14pt "Ubuntu"; |
||||
|
font-weight: bold; |
||||
|
} |
||||
|
|
||||
|
QLabel#label_codbar |
||||
|
{ |
||||
|
font: 14pt "Ubuntu"; |
||||
|
font-weight: bold; |
||||
|
} |
||||
|
|
||||
|
QLabel#label_codart |
||||
|
{ |
||||
|
font: 14pt "Ubuntu"; |
||||
|
font-weight: bold; |
||||
|
} |
||||
|
|
||||
|
QLabel#label_status |
||||
|
{ |
||||
|
font: 22pt "Ubuntu"; |
||||
|
font-weight: bold; |
||||
|
color: rgba(224, 4, 4, 255); |
||||
|
} |
||||
|
|
||||
|
QLabel#label_principal |
||||
|
{ |
||||
|
font: 32pt "Ubuntu"; |
||||
|
font-weight: bold; |
||||
|
/*color: rgba(224, 4, 4, 255);*/ |
||||
|
} |
||||
|
|
||||
|
QPushButton:pressed { |
||||
|
font: 16pt "MS Shell Dlg 2"; |
||||
|
/*background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(142, 164, 193, 255), stop:0.5 rgba(88, 120, 162, 255), stop:0.505 rgba(71, 105, 153, 255), stop:1 rgba(74, 109, 155, 255));*/ /*azul*/ |
||||
|
background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(197, 103, 110, 255), stop:0.5 rgba(166, 58, 66, 255), stop:0.505 rgba(162, 42, 48, 255), stop:1 rgba(159, 45, 52, 255)); /*rojo*/ |
||||
|
margin: 0; |
||||
|
padding: 0 5px; |
||||
|
font-weight: bold; |
||||
|
text-decoration: none; |
||||
|
text-align: center; |
||||
|
white-space: nowrap; |
||||
|
|
||||
|
color: #fff; |
||||
|
outline: none; |
||||
|
} |
||||
|
|
||||
|
QMessageBox, QDialog { |
||||
|
/*background-color: qlineargradient(spread:pad, x1:1, y1:0, x2:1, y2:0.989, stop:0 rgba(0, 0, 0, 255), stop:1 rgba(129, 129, 129, 255));*/ |
||||
|
/*background-color: qlineargradient(spread:pad, x1:1, y1:1, x2:1, y2:0, stop:0 rgba(153, 153, 153, 153), stop:1 rgba(204, 204, 204, 204) );*/ |
||||
|
/*background-color: qlineargradient(spread:pad, x1:1, y1:1, x2:1, y2:0, stop:0 rgba(255, 255, 255, 153), stop:1 rgba(212, 225, 245, 204) );*/ |
||||
|
background-color: white; |
||||
|
/*background-color: rgb(186, 186, 186);*/ |
||||
|
border: 2px solid gray; |
||||
|
border-style: solid; |
||||
|
border-radius: 10px; |
||||
|
} |
||||
|
|
||||
|
QTabWidget::pane { /* The tab widget frame */ |
||||
|
border-top: 2px solid #C2C7CB; |
||||
|
/*background-color: qlineargradient(spread:pad, x1:1, y1:0, x2:1, y2:0.989, stop:0 rgba(0, 0, 0, 255), stop:1 rgba(129, 129, 129, 255));*/ |
||||
|
background-color: white; |
||||
|
} |
||||
|
QTabWidget::tab-bar { |
||||
|
left: 5px; /* move to the right by 5px */ |
||||
|
} |
||||
|
QTabBar::tab { |
||||
|
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, |
||||
|
stop: 0 #E1E1E1, stop: 0.4 #DDDDDD, |
||||
|
stop: 0.5 #D8D8D8, stop: 1.0 #D3D3D3); |
||||
|
border: 2px solid #C4C4C3; |
||||
|
border-bottom-color: #C2C7CB; /* same as the pane color */ |
||||
|
border-top-left-radius: 4px; |
||||
|
border-top-right-radius: 4px; |
||||
|
min-width: 8ex; |
||||
|
padding: 2px; |
||||
|
} |
||||
|
|
||||
|
QTabBar::tab:selected, QTabBar::tab:hover { |
||||
|
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, |
||||
|
stop: 0 #fafafa, stop: 0.4 #f4f4f4, |
||||
|
stop: 0.5 #e7e7e7, stop: 1.0 #fafafa); |
||||
|
|
||||
|
} |
||||
|
|
||||
|
QTabBar::tab:selected { |
||||
|
border-color: #9B9B9B; |
||||
|
border-bottom-color: #C2C7CB; /* same as pane color */ |
||||
|
color: rgb(255, 255, 0); |
||||
|
} |
||||
|
|
||||
|
QTabBar::tab:!selected { |
||||
|
margin-top: 2px; /* make non-selected tabs look smaller */ |
||||
|
} |
||||
|
|
||||
|
QDoubleSpinBox, QSpinBox, QLineEdit { |
||||
|
border: 2px solid gray; |
||||
|
border-radius: 10px; |
||||
|
padding: 0 8px; |
||||
|
selection-background-color: darkgray; |
||||
|
} |
||||
|
|
||||
|
QCheckBox{ |
||||
|
checkbox: 18pt; |
||||
|
color: rgb(255, 255, 0); |
||||
|
} |
||||
|
|
||||
|
QCheckBox::indicator:checked { |
||||
|
image: url(:/mcaposrec/chek_ena.png); |
||||
|
} |
||||
|
QCheckBox::indicator:unchecked { |
||||
|
image: url(:/mcaposrec/chek_dis.png); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
||||
|
QComboBox { |
||||
|
border-style: outset; |
||||
|
border-width: 2px; |
||||
|
border-color: beige; |
||||
|
border-radius: 10px; |
||||
|
padding: 1px 8px 1px 3px; |
||||
|
min-width: 6em; |
||||
|
background-color: gray; |
||||
|
} |
||||
|
|
||||
|
QComboBox::drop-down { |
||||
|
subcontrol-origin: padding; |
||||
|
subcontrol-position: top right; |
||||
|
|
||||
|
width: 24px; |
||||
|
background-color: gray; |
||||
|
border-left-width: 0px; |
||||
|
/*border-left-color: darkgray; |
||||
|
border-left-style: solid; just a single line */ |
||||
|
border-top-right-radius: 10px; /* same radius as the QComboBox */ |
||||
|
border-bottom-right-radius: 10px; |
||||
|
} |
||||
|
|
||||
|
QComboBox::down-arrow{ |
||||
|
image: url(:/mcaposrec/combo_arrow22x22.png); |
||||
|
} |
||||
|
|
||||
|
QComboBox::down-arrow:on { /* shift the arrow when popup is open */ |
||||
|
top: 1px; |
||||
|
left: 1px; |
||||
|
} |
||||
|
|
||||
|
QProgressBar{ |
||||
|
font: 22 pt "MS Shell Dlg 2"; |
||||
|
border-radius: 5px; |
||||
|
border: 2px solid grey; |
||||
|
background-color: qlineargradient(spread:reflect, x1:0, y1:1, x2:0, y2:0, stop:0 rgba(113, 113, 113, 255), stop:0.181818 rgba(36, 36, 36, 255), stop:0.257576 rgba(38, 38, 38, 255), stop:0.343434 rgba(43, 43, 43, 255), stop:1 rgba(137, 137, 137, 255)); |
||||
|
} |
||||
|
|
||||
|
QProgressBar::chunk { |
||||
|
background-color: qlineargradient(spread:reflect, x1:0, y1:1, x2:0, y2:0, stop:0 rgba(255, 255, 127, 255), stop:0.181818 rgba(255, 206, 8, 255), stop:0.257576 rgba(255, 206, 8, 255), stop:0.343434 rgba(255, 206, 8, 255), stop:1 rgba(255, 255, 127, 255)); |
||||
|
width: 20px; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
||||
|
QListWidget, QTableWidget { |
||||
|
border-radius: 10px; |
||||
|
/*background-color: qlineargradient(spread:reflect, x1:0, y1:1, x2:0, y2:0, stop:0 rgba(113, 113, 113, 255), stop:0.181818 rgba(36, 36, 36, 255), stop:0.257576 rgba(38, 38, 38, 255), stop:0.343434 rgba(43, 43, 43, 255), stop:1 rgba(137, 137, 137, 255));*/ |
||||
|
background-color: white; |
||||
|
border-right-width: 1px; |
||||
|
border-right-color: darkgray; |
||||
|
} |
||||
|
|
||||
|
QTableWidget::item{ |
||||
|
border-radius: 10px; |
||||
|
} |
||||
|
|
||||
|
QPushButton:disabled |
||||
|
{ |
||||
|
background-color: gray; |
||||
|
} |
||||
|
|
||||
|
QTableWidget::item:selected { |
||||
|
border-radius: 10px; |
||||
|
background-color: qlineargradient(spread:reflect, x1:0, y1:1, x2:0, y2:0, stop:0 rgba(255, 255, 127, 255), stop:0.181818 rgba(255, 206, 8, 255), stop:0.257576 rgba(255, 206, 8, 255), stop:0.343434 rgba(255, 206, 8, 255), stop:1 rgba(255, 255, 127, 255)); |
||||
|
} |
||||
|
|
||||
|
QListView::item{ |
||||
|
border-radius: 10px; |
||||
|
} |
||||
|
|
||||
|
QListView::item:selected { |
||||
|
border-radius: 10px; |
||||
|
background-color: qlineargradient(spread:reflect, x1:0, y1:1, x2:0, y2:0, stop:0 rgba(255, 255, 127, 255), stop:0.181818 rgba(255, 206, 8, 255), stop:0.257576 rgba(255, 206, 8, 255), stop:0.343434 rgba(255, 206, 8, 255), stop:1 rgba(255, 255, 127, 255)); |
||||
|
} |
||||
|
|
||||
|
QMessageBox{ |
||||
|
align: center; |
||||
|
} |
||||
|
|
||||
|
/* FOCO */ |
||||
|
QPushButton:pressed{ background-color: orange; } |
||||
|
QPushButton:focus{ background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(197, 103, 110, 255), stop:0.5 rgba(166, 58, 66, 255), stop:0.505 rgba(162, 42, 48, 255), stop:1 rgba(159, 45, 52, 255))} |
||||
|
QPushButton:hover{ background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(185, 145, 209, 255), stop:0.5 rgba(158, 93, 198, 255), stop:0.505 rgba(141, 47, 199, 255), stop:1 rgba(122, 0, 196, 255))} |
||||
|
|
@ -0,0 +1,308 @@ |
|||||
|
QPushButton { |
||||
|
font: bold 25px; |
||||
|
margin: 0; |
||||
|
padding: 0 5px; |
||||
|
line-height: 30px; |
||||
|
font-weight: bold; |
||||
|
text-decoration: none; |
||||
|
text-align: center; |
||||
|
white-space: nowrap; |
||||
|
color: #fff; |
||||
|
outline: none; |
||||
|
background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(134, 198, 135, 255), stop:0.5 rgba(76, 174, 78, 255), stop:0.505 rgba(58, 166, 62, 255), stop:1 rgba(61, 164, 62, 255)); |
||||
|
/*background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(1, 171, 154, 1), stop:0.5 rgba(24, 154, 97, 1), stop:0.505 rgba(24, 154, 97, 1), stop:1 rgba(24, 154, 97, 1));*/ |
||||
|
border-radius: 2px; |
||||
|
border: 0px solid #555; |
||||
|
border-style: inset; |
||||
|
} |
||||
|
|
||||
|
QMainWindow |
||||
|
{ |
||||
|
/*background-color: qlineargradient(spread:pad, x1:1, y1:0, x2:1, y2:0.989, stop:0 rgba(0, 0, 0, 255), stop:1 rgba(129, 129, 129, 255)); ROB HOY*/ |
||||
|
/*background-color: qlineargradient(spread:pad, x1:1, y1:1, x2:1, y2:0, stop:0 rgba(153, 153, 153, 153), stop:1 rgba(204, 204, 204, 204) );*/ |
||||
|
/*background-color: qconicalgradient(cx:1, cy:0.687, angle:84.4, stop:0 rgba(255, 255, 255, 255), stop:0.502222 rgba(138, 138, 138, 255), stop:1 rgba(0, 0, 0, 255));*/ |
||||
|
background-color: rgb(255, 255, 255); |
||||
|
|
||||
|
/*background-color: qlineargradient(spread:pad, x1:1, y1:1, x2:1, y2:0, stop:0 rgba(255, 255, 255, 255), stop:1 rgba(212, 225, 245, 255) );*/ |
||||
|
/*background-color: rgb(255, 255, 255);*/ |
||||
|
} |
||||
|
QFrame#frame_salida |
||||
|
{ |
||||
|
background-color: rgba(255, 255, 255, 255); |
||||
|
/*background-color: qlineargradient(spread:pad, x1:1, y1:1, x2:1, y2:0, stop:0 rgba(255, 255, 255, 255), stop:1 rgba(212, 225, 245, 255) );*/ |
||||
|
border-radius:5px; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
QFrame#frame_barra |
||||
|
{ |
||||
|
background-color: rgb(130, 224, 170, 255); |
||||
|
border-radius:5px; |
||||
|
border-top-color: rgb(255, 255, 255); |
||||
|
border-left-color: rgb(255, 255, 255); |
||||
|
} |
||||
|
|
||||
|
QFrame#frame_titulo |
||||
|
{ |
||||
|
background-color: rgb(36, 113, 163, 255); |
||||
|
border-radius:5px; |
||||
|
border-top-color: rgb(255, 255, 255); |
||||
|
border-left-color: rgb(255, 255, 255); |
||||
|
} |
||||
|
|
||||
|
QLabel#label_desc |
||||
|
{ |
||||
|
color: rgba(0, 0, 0, 255); |
||||
|
font: 33pt "Ubuntu"; |
||||
|
font-weight: bold; |
||||
|
} |
||||
|
|
||||
|
QLabel#label_desc2 |
||||
|
{ |
||||
|
color: rgba(0, 0, 0, 255); |
||||
|
font: 32pt "Ubuntu"; |
||||
|
font-weight: bold; |
||||
|
} |
||||
|
|
||||
|
QLabel#label_precio |
||||
|
{ |
||||
|
color: rgba(12, 88, 144, 255); |
||||
|
font: 38pt "Ubuntu"; |
||||
|
font-weight: bold; |
||||
|
} |
||||
|
QLabel#label_ofe |
||||
|
{ |
||||
|
color: rgba(52, 140, 12, 255); |
||||
|
font: 40pt "Ubuntu"; |
||||
|
font-weight: bold; |
||||
|
} |
||||
|
QLabel#label_despofe |
||||
|
{ |
||||
|
color: rgba(52, 140, 12, 255); |
||||
|
font: 12pt "Ubuntu"; |
||||
|
font-weight: bold; |
||||
|
} |
||||
|
QLabel#label_despnorm |
||||
|
{ |
||||
|
color: rgba(12, 88, 144, 255); |
||||
|
font: 12pt "Ubuntu"; |
||||
|
font-weight: bold; |
||||
|
} |
||||
|
|
||||
|
QLabel#label_titulo |
||||
|
{ |
||||
|
color: rgba(255, 255, 255, 255); |
||||
|
font: 28pt "Ubuntu"; |
||||
|
font-weight: bold; |
||||
|
} |
||||
|
|
||||
|
QLabel#label_promo |
||||
|
{ |
||||
|
color: rgba(144, 12, 63, 255); |
||||
|
font: 16pt "Ubuntu"; |
||||
|
font-weight: bold; |
||||
|
} |
||||
|
|
||||
|
QLabel#label_prom_valida |
||||
|
{ |
||||
|
color: rgba(144, 12, 63, 255); |
||||
|
font: 10pt "Ubuntu"; |
||||
|
font-weight: bold; |
||||
|
} |
||||
|
|
||||
|
QLabel#label_codbar |
||||
|
{ |
||||
|
font: 12pt "Ubuntu"; |
||||
|
font-weight: bold; |
||||
|
} |
||||
|
|
||||
|
QLabel#label_codart |
||||
|
{ |
||||
|
font: 12pt "Ubuntu"; |
||||
|
font-weight: bold; |
||||
|
} |
||||
|
|
||||
|
QLabel#label_status |
||||
|
{ |
||||
|
font: 18pt "Ubuntu"; |
||||
|
font-weight: bold; |
||||
|
color: rgba(224, 4, 4, 255); |
||||
|
} |
||||
|
|
||||
|
QLabel#label_principal |
||||
|
{ |
||||
|
font: 28pt "Ubuntu"; |
||||
|
font-weight: bold; |
||||
|
/*color: rgba(224, 4, 4, 255);*/ |
||||
|
} |
||||
|
|
||||
|
QPushButton:pressed { |
||||
|
font: 16pt "MS Shell Dlg 2"; |
||||
|
/*background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(142, 164, 193, 255), stop:0.5 rgba(88, 120, 162, 255), stop:0.505 rgba(71, 105, 153, 255), stop:1 rgba(74, 109, 155, 255));*/ /*azul*/ |
||||
|
background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(197, 103, 110, 255), stop:0.5 rgba(166, 58, 66, 255), stop:0.505 rgba(162, 42, 48, 255), stop:1 rgba(159, 45, 52, 255)); /*rojo*/ |
||||
|
margin: 0; |
||||
|
padding: 0 5px; |
||||
|
font-weight: bold; |
||||
|
text-decoration: none; |
||||
|
text-align: center; |
||||
|
white-space: nowrap; |
||||
|
|
||||
|
color: #fff; |
||||
|
outline: none; |
||||
|
} |
||||
|
|
||||
|
QMessageBox, QDialog { |
||||
|
/*background-color: qlineargradient(spread:pad, x1:1, y1:0, x2:1, y2:0.989, stop:0 rgba(0, 0, 0, 255), stop:1 rgba(129, 129, 129, 255));*/ |
||||
|
/*background-color: qlineargradient(spread:pad, x1:1, y1:1, x2:1, y2:0, stop:0 rgba(153, 153, 153, 153), stop:1 rgba(204, 204, 204, 204) );*/ |
||||
|
/*background-color: qlineargradient(spread:pad, x1:1, y1:1, x2:1, y2:0, stop:0 rgba(255, 255, 255, 153), stop:1 rgba(212, 225, 245, 204) );*/ |
||||
|
background-color: white; |
||||
|
/*background-color: rgb(186, 186, 186);*/ |
||||
|
border: 2px solid gray; |
||||
|
border-style: solid; |
||||
|
border-radius: 10px; |
||||
|
} |
||||
|
|
||||
|
QTabWidget::pane { /* The tab widget frame */ |
||||
|
border-top: 2px solid #C2C7CB; |
||||
|
/*background-color: qlineargradient(spread:pad, x1:1, y1:0, x2:1, y2:0.989, stop:0 rgba(0, 0, 0, 255), stop:1 rgba(129, 129, 129, 255));*/ |
||||
|
background-color: white; |
||||
|
} |
||||
|
QTabWidget::tab-bar { |
||||
|
left: 5px; /* move to the right by 5px */ |
||||
|
} |
||||
|
QTabBar::tab { |
||||
|
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, |
||||
|
stop: 0 #E1E1E1, stop: 0.4 #DDDDDD, |
||||
|
stop: 0.5 #D8D8D8, stop: 1.0 #D3D3D3); |
||||
|
border: 2px solid #C4C4C3; |
||||
|
border-bottom-color: #C2C7CB; /* same as the pane color */ |
||||
|
border-top-left-radius: 4px; |
||||
|
border-top-right-radius: 4px; |
||||
|
min-width: 8ex; |
||||
|
padding: 2px; |
||||
|
} |
||||
|
|
||||
|
QTabBar::tab:selected, QTabBar::tab:hover { |
||||
|
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, |
||||
|
stop: 0 #fafafa, stop: 0.4 #f4f4f4, |
||||
|
stop: 0.5 #e7e7e7, stop: 1.0 #fafafa); |
||||
|
|
||||
|
} |
||||
|
|
||||
|
QTabBar::tab:selected { |
||||
|
border-color: #9B9B9B; |
||||
|
border-bottom-color: #C2C7CB; /* same as pane color */ |
||||
|
color: rgb(255, 255, 0); |
||||
|
} |
||||
|
|
||||
|
QTabBar::tab:!selected { |
||||
|
margin-top: 2px; /* make non-selected tabs look smaller */ |
||||
|
} |
||||
|
|
||||
|
QDoubleSpinBox, QSpinBox, QLineEdit { |
||||
|
border: 2px solid gray; |
||||
|
border-radius: 10px; |
||||
|
padding: 0 8px; |
||||
|
selection-background-color: darkgray; |
||||
|
} |
||||
|
|
||||
|
QCheckBox{ |
||||
|
checkbox: 18pt; |
||||
|
color: rgb(255, 255, 0); |
||||
|
} |
||||
|
|
||||
|
QCheckBox::indicator:checked { |
||||
|
image: url(:/mcaposrec/chek_ena.png); |
||||
|
} |
||||
|
QCheckBox::indicator:unchecked { |
||||
|
image: url(:/mcaposrec/chek_dis.png); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
||||
|
QComboBox { |
||||
|
border-style: outset; |
||||
|
border-width: 2px; |
||||
|
border-color: beige; |
||||
|
border-radius: 10px; |
||||
|
padding: 1px 8px 1px 3px; |
||||
|
min-width: 6em; |
||||
|
background-color: gray; |
||||
|
} |
||||
|
|
||||
|
QComboBox::drop-down { |
||||
|
subcontrol-origin: padding; |
||||
|
subcontrol-position: top right; |
||||
|
|
||||
|
width: 24px; |
||||
|
background-color: gray; |
||||
|
border-left-width: 0px; |
||||
|
/*border-left-color: darkgray; |
||||
|
border-left-style: solid; just a single line */ |
||||
|
border-top-right-radius: 10px; /* same radius as the QComboBox */ |
||||
|
border-bottom-right-radius: 10px; |
||||
|
} |
||||
|
|
||||
|
QComboBox::down-arrow{ |
||||
|
image: url(:/mcaposrec/combo_arrow22x22.png); |
||||
|
} |
||||
|
|
||||
|
QComboBox::down-arrow:on { /* shift the arrow when popup is open */ |
||||
|
top: 1px; |
||||
|
left: 1px; |
||||
|
} |
||||
|
|
||||
|
QProgressBar{ |
||||
|
font: 22 pt "MS Shell Dlg 2"; |
||||
|
border-radius: 5px; |
||||
|
border: 2px solid grey; |
||||
|
background-color: qlineargradient(spread:reflect, x1:0, y1:1, x2:0, y2:0, stop:0 rgba(113, 113, 113, 255), stop:0.181818 rgba(36, 36, 36, 255), stop:0.257576 rgba(38, 38, 38, 255), stop:0.343434 rgba(43, 43, 43, 255), stop:1 rgba(137, 137, 137, 255)); |
||||
|
} |
||||
|
|
||||
|
QProgressBar::chunk { |
||||
|
background-color: qlineargradient(spread:reflect, x1:0, y1:1, x2:0, y2:0, stop:0 rgba(255, 255, 127, 255), stop:0.181818 rgba(255, 206, 8, 255), stop:0.257576 rgba(255, 206, 8, 255), stop:0.343434 rgba(255, 206, 8, 255), stop:1 rgba(255, 255, 127, 255)); |
||||
|
width: 20px; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
||||
|
QListWidget, QTableWidget { |
||||
|
border-radius: 10px; |
||||
|
/*background-color: qlineargradient(spread:reflect, x1:0, y1:1, x2:0, y2:0, stop:0 rgba(113, 113, 113, 255), stop:0.181818 rgba(36, 36, 36, 255), stop:0.257576 rgba(38, 38, 38, 255), stop:0.343434 rgba(43, 43, 43, 255), stop:1 rgba(137, 137, 137, 255));*/ |
||||
|
background-color: white; |
||||
|
border-right-width: 1px; |
||||
|
border-right-color: darkgray; |
||||
|
} |
||||
|
|
||||
|
QTableWidget::item{ |
||||
|
border-radius: 10px; |
||||
|
} |
||||
|
|
||||
|
QPushButton:disabled |
||||
|
{ |
||||
|
background-color: gray; |
||||
|
} |
||||
|
|
||||
|
QTableWidget::item:selected { |
||||
|
border-radius: 10px; |
||||
|
background-color: qlineargradient(spread:reflect, x1:0, y1:1, x2:0, y2:0, stop:0 rgba(255, 255, 127, 255), stop:0.181818 rgba(255, 206, 8, 255), stop:0.257576 rgba(255, 206, 8, 255), stop:0.343434 rgba(255, 206, 8, 255), stop:1 rgba(255, 255, 127, 255)); |
||||
|
} |
||||
|
|
||||
|
QListView::item{ |
||||
|
border-radius: 10px; |
||||
|
} |
||||
|
|
||||
|
QListView::item:selected { |
||||
|
border-radius: 10px; |
||||
|
background-color: qlineargradient(spread:reflect, x1:0, y1:1, x2:0, y2:0, stop:0 rgba(255, 255, 127, 255), stop:0.181818 rgba(255, 206, 8, 255), stop:0.257576 rgba(255, 206, 8, 255), stop:0.343434 rgba(255, 206, 8, 255), stop:1 rgba(255, 255, 127, 255)); |
||||
|
} |
||||
|
|
||||
|
QMessageBox{ |
||||
|
align: center; |
||||
|
} |
||||
|
|
||||
|
/* FOCO */ |
||||
|
QPushButton:pressed{ background-color: orange; } |
||||
|
QPushButton:focus{ background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(197, 103, 110, 255), stop:0.5 rgba(166, 58, 66, 255), stop:0.505 rgba(162, 42, 48, 255), stop:1 rgba(159, 45, 52, 255))} |
||||
|
QPushButton:hover{ background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(185, 145, 209, 255), stop:0.5 rgba(158, 93, 198, 255), stop:0.505 rgba(141, 47, 199, 255), stop:1 rgba(122, 0, 196, 255))} |
||||
|
|
After Width: 839 | Height: 378 | Size: 1.9 MiB |
After Width: 527 | Height: 258 | Size: 20 KiB |
After Width: 121 | Height: 50 | Size: 13 KiB |
After Width: 250 | Height: 179 | Size: 12 KiB |
After Width: 380 | Height: 271 | Size: 23 KiB |
After Width: 490 | Height: 350 | Size: 30 KiB |
@ -0,0 +1,6 @@ |
|||||
|
[General] |
||||
|
conexion=192.168.85.10 |
||||
|
dbase=postgres |
||||
|
pass=postgres08 |
||||
|
port=5432 |
||||
|
user=postgres |
@ -0,0 +1,30 @@ |
|||||
|
#include "principal.h"
|
||||
|
#include <QApplication>
|
||||
|
#include <QDesktopWidget>
|
||||
|
#include <QPaintEngine>
|
||||
|
#include <QtDebug>
|
||||
|
#include <QFile>
|
||||
|
#include <QSettings>
|
||||
|
|
||||
|
QSettings settings("config.ini", QSettings::NativeFormat); |
||||
|
|
||||
|
struct g_datos p_datos; |
||||
|
|
||||
|
int main(int argc, char *argv[]) |
||||
|
{ |
||||
|
QApplication a(argc, argv); |
||||
|
|
||||
|
QCoreApplication::setOrganizationName("McaNet"); |
||||
|
QCoreApplication::setOrganizationDomain("Aquiles"); |
||||
|
QCoreApplication::setApplicationName("Consulta"); |
||||
|
|
||||
|
QFile file; |
||||
|
file.setFileName(":/Recursos/fb_power_mini.css"); |
||||
|
|
||||
|
file.open(QFile::ReadOnly); |
||||
|
a.setStyleSheet(file.readAll()); |
||||
|
|
||||
|
Principal w; |
||||
|
w.showFullScreen(); |
||||
|
return a.exec(); |
||||
|
} |
@ -0,0 +1,786 @@ |
|||||
|
#include <QtSql>
|
||||
|
#include <QItemSelection>
|
||||
|
#include <QStandardItemModel>
|
||||
|
#include <QMessageBox>
|
||||
|
#include <QDebug>
|
||||
|
#include <QKeyEvent>
|
||||
|
#include <QEvent>
|
||||
|
#include <QDate>
|
||||
|
#include <QTimer>
|
||||
|
|
||||
|
#include "principal.h"
|
||||
|
#include "ui_principal.h"
|
||||
|
|
||||
|
extern struct g_datos p_datos; |
||||
|
extern QSettings settings; |
||||
|
|
||||
|
Principal::Principal(QWidget *parent) : |
||||
|
QMainWindow(parent), |
||||
|
ui(new Ui::Principal) |
||||
|
{ |
||||
|
ui->setupUi(this); |
||||
|
ui->centralWidget->installEventFilter(this); |
||||
|
db = QSqlDatabase::addDatabase("QPSQL"); |
||||
|
Leo_Settings(); |
||||
|
db.setHostName(settings.value("conexion").toString()); |
||||
|
db.setPort(settings.value("port").toInt()); |
||||
|
db.setDatabaseName(settings.value("dbase").toString()); |
||||
|
db.setUserName(settings.value("user").toString()); |
||||
|
db.setPassword(settings.value("pass").toString()); |
||||
|
db.open(); |
||||
|
|
||||
|
g_flag1=0; |
||||
|
g_flag2=0; |
||||
|
|
||||
|
|
||||
|
connect(timer, SIGNAL(timeout()), this, SLOT(Muestra_principal())); |
||||
|
|
||||
|
Muestra_principal(); |
||||
|
|
||||
|
Leo_config(); |
||||
|
Leo_fecha(); |
||||
|
Leo_situa(); |
||||
|
} |
||||
|
|
||||
|
Principal::~Principal() |
||||
|
{ |
||||
|
delete ui; |
||||
|
} |
||||
|
|
||||
|
QString Principal::Leo_fecha() |
||||
|
{ |
||||
|
QDate fnow= QDate::currentDate(); |
||||
|
QString fec_now= fnow.toString("dd/MM/yyyy"); |
||||
|
g_fecha_sql= fnow.toString("yyyy/MM/dd"); |
||||
|
return fec_now; |
||||
|
} |
||||
|
|
||||
|
QString Principal::Leo_hora() |
||||
|
{ |
||||
|
QTime hnow = QTime::currentTime(); |
||||
|
g_hora_sql = hnow.toString("hh:mm:ss"); |
||||
|
return g_hora_sql; |
||||
|
} |
||||
|
|
||||
|
void Principal::Leo_Settings() |
||||
|
{ |
||||
|
/*if(settings.value("conexion", "default").toString() == "default")
|
||||
|
settings.setValue("conexion", "192.168.200.201"); |
||||
|
if(settings.value("port", "default").toString() == "default") |
||||
|
settings.setValue("port", "5432"); |
||||
|
if(settings.value("dbase", "default").toString() == "default") |
||||
|
settings.setValue("dbase", "maxi"); |
||||
|
if(settings.value("user", "default").toString() == "default") |
||||
|
settings.setValue("user", "postgres"); |
||||
|
if(settings.value("pass", "default").toString() == "default") |
||||
|
settings.setValue("pass", "postgres08");*/ |
||||
|
} |
||||
|
|
||||
|
|
||||
|
void Principal::Leo_situa() |
||||
|
{ |
||||
|
QSqlQuery query; |
||||
|
QString v_sql; |
||||
|
int num_items=0; |
||||
|
|
||||
|
v_sql="SELECT codsit,desr FROM general.situa WHERE desr='CF' LIMIT 1; "; |
||||
|
query.exec(v_sql); |
||||
|
QSqlRecord rec = query.record(); |
||||
|
num_items=query.size(); |
||||
|
if(num_items>0) |
||||
|
{ |
||||
|
int nameCol1 = rec.indexOf("codsit"); |
||||
|
int nameCol2 = rec.indexOf("desr"); |
||||
|
query.next(); |
||||
|
|
||||
|
g_codsit = query.value(nameCol1).toString(); |
||||
|
g_desr = query.value(nameCol2).toString(); |
||||
|
busiva(g_codsit); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
int Principal::busiva( QString p_codsit ) |
||||
|
{ |
||||
|
int v_error, v_i; |
||||
|
v_error=1; |
||||
|
v_i=0; |
||||
|
|
||||
|
QSqlQuery query_select; |
||||
|
QString v_sql; |
||||
|
QString v_tiptas, v_forexp, v_tasa1, v_tasa2, v_tasa3, v_tasa4, v_pciasli, v_suslib; |
||||
|
int row=0; |
||||
|
int num_items=0; |
||||
|
QDate fnow= QDate::currentDate(); |
||||
|
fec_now= fnow.toString("dd/MM/yyyy"); |
||||
|
fec_now2=fnow.toString("yyyyMMdd"); |
||||
|
|
||||
|
v_sql="SELECT tiptas, forexp, tasa1, tasa2, tasa3, tasa4, pciasli, suslib FROM general.situa WHERE '"+fec_now+"' >= fecvig AND '"+p_codsit+"' = codsit ORDER BY fecvig DESC LIMIT 1;"; |
||||
|
query_select.exec(v_sql); |
||||
|
|
||||
|
num_items=query_select.size(); |
||||
|
QSqlRecord rec = query_select.record(); |
||||
|
if( num_items > 0 ) |
||||
|
{ |
||||
|
int nameCol1 = rec.indexOf("tiptas" ); |
||||
|
int nameCol2 = rec.indexOf("forexp" ); |
||||
|
int nameCol3 = rec.indexOf("tasa1" ); |
||||
|
int nameCol4 = rec.indexOf("tasa2" ); |
||||
|
int nameCol5 = rec.indexOf("tasa3" ); |
||||
|
int nameCol6 = rec.indexOf("tasa4" ); |
||||
|
int nameCol7 = rec.indexOf("pciasli"); |
||||
|
int nameCol8 = rec.indexOf("suslib" ); |
||||
|
row=0; |
||||
|
while (query_select.next()) |
||||
|
{ |
||||
|
v_tiptas = query_select.value(nameCol1).toString(); |
||||
|
v_forexp = query_select.value(nameCol2).toString(); |
||||
|
v_tasa1 = query_select.value(nameCol3).toString(); |
||||
|
v_tasa2 = query_select.value(nameCol4).toString(); |
||||
|
v_tasa3 = query_select.value(nameCol5).toString(); |
||||
|
v_tasa4 = query_select.value(nameCol6).toString(); |
||||
|
v_pciasli= query_select.value(nameCol7).toString(); |
||||
|
v_suslib = query_select.value(nameCol8).toString(); |
||||
|
row++; |
||||
|
} |
||||
|
v_error=0; |
||||
|
} |
||||
|
|
||||
|
if( v_error == 0 ) |
||||
|
{ |
||||
|
tiptas=v_tiptas; |
||||
|
forexp=v_forexp; |
||||
|
tasa1 =v_tasa1.toInt(); |
||||
|
tasa2 =v_tasa2.toInt(); |
||||
|
tasa3 =v_tasa3.toInt(); |
||||
|
tasa4 =v_tasa4.toInt(); |
||||
|
porsus=0; |
||||
|
} |
||||
|
return v_error; |
||||
|
} |
||||
|
|
||||
|
int Principal::caltas( int p_tiart ) |
||||
|
{ |
||||
|
tasa_iva=0; |
||||
|
tas1=tas2=tas3=tas4=0; |
||||
|
int v_error=1; |
||||
|
|
||||
|
QSqlQuery query_select; |
||||
|
QString v_sql; |
||||
|
QString v_valtas1, v_valtas2, v_valtas3, v_valtas4; |
||||
|
int row=0; |
||||
|
int num_items=0; |
||||
|
QDate fnow= QDate::currentDate(); |
||||
|
QString fec_now= fnow.toString("dd/MM/yyyy"); |
||||
|
if( tasa1 != 0 || tasa2 != 0 || tasa3 != 0 || tasa4 != 0 ) |
||||
|
{ |
||||
|
v_sql="SELECT valtas1, valtas2, valtas3, valtas4 FROM general.tasas WHERE '"+fec_now+"' >= fecvig AND '"+QString::number(p_tiart)+"' = tipiva ORDER BY fecvig DESC LIMIT 1;"; |
||||
|
query_select.exec(v_sql); |
||||
|
num_items=query_select.size(); |
||||
|
QSqlRecord rec = query_select.record(); |
||||
|
if( num_items > 0 ) |
||||
|
{ |
||||
|
int nameCol1 = rec.indexOf("valtas1" ); |
||||
|
int nameCol2 = rec.indexOf("valtas2" ); |
||||
|
int nameCol3 = rec.indexOf("valtas3" ); |
||||
|
int nameCol4 = rec.indexOf("valtas4" ); |
||||
|
row=0; |
||||
|
while (query_select.next()) |
||||
|
{ |
||||
|
v_valtas1 = query_select.value(nameCol1).toString(); |
||||
|
v_valtas2 = query_select.value(nameCol2).toString(); |
||||
|
v_valtas3 = query_select.value(nameCol3).toString(); |
||||
|
v_valtas4 = query_select.value(nameCol4).toString(); |
||||
|
row++; |
||||
|
} |
||||
|
v_error=0; |
||||
|
} |
||||
|
} |
||||
|
if( tasa1 == 1 ) |
||||
|
{ |
||||
|
tas1=v_valtas1.toDouble(); |
||||
|
tasa_iva=v_valtas1.toDouble();; |
||||
|
} |
||||
|
if( tasa2 == 1 ) |
||||
|
{ |
||||
|
tas2=v_valtas2.toDouble(); |
||||
|
tasa_iva=v_valtas2.toDouble();; |
||||
|
} |
||||
|
if( tasa3 == 1 ) |
||||
|
{ |
||||
|
tas3=v_valtas3.toDouble(); |
||||
|
tasa_iva=v_valtas3.toDouble();; |
||||
|
} |
||||
|
if( tasa4 == 1 ) |
||||
|
{ |
||||
|
tas4=v_valtas4.toDouble(); |
||||
|
tasa_iva=v_valtas4.toDouble();; |
||||
|
} |
||||
|
return v_error; |
||||
|
} |
||||
|
|
||||
|
void Principal::caliva(double impor) |
||||
|
{ |
||||
|
iva1=impor*tas1/100; |
||||
|
iva2=impor*tas2/100; |
||||
|
iva3=impor*tas3/100; |
||||
|
iva4=impor*tas4/100; |
||||
|
iva=iva1+iva2+iva3+iva4; |
||||
|
neto=impor+iva; |
||||
|
} |
||||
|
|
||||
|
void Principal::Leo_config() |
||||
|
{ |
||||
|
QSqlQuery query; |
||||
|
QSqlQuery query_m; |
||||
|
QSqlQuery query_o; |
||||
|
QSqlQuery query_s; |
||||
|
QSqlQuery query_p; |
||||
|
QString v_sql; |
||||
|
QString v_sql_m; |
||||
|
QString v_sql_o; |
||||
|
QString v_sql_s; |
||||
|
QString v_sql_p; |
||||
|
int num_items=0; |
||||
|
int num_items_m=0; |
||||
|
int num_items_o=0; |
||||
|
int num_items_s=0; |
||||
|
int num_items_p=0; |
||||
|
|
||||
|
// v_sql="SELECT g_sucursal,g_tcom,g_ope,g_cliente FROM minor.configuracion;"; LA BASE NO TIENE CLIENTE
|
||||
|
|
||||
|
v_sql="SELECT g_sucursal,g_tcom,g_ope FROM minor.configuracion;"; |
||||
|
query.exec(v_sql); |
||||
|
QSqlRecord rec = query.record(); |
||||
|
num_items=query.size(); |
||||
|
if(num_items>0) |
||||
|
{ |
||||
|
int nameCol1 = rec.indexOf("g_sucursal"); |
||||
|
int nameCol2 = rec.indexOf("g_tcom"); |
||||
|
int nameCol3 = rec.indexOf("g_ope"); |
||||
|
//int nameCol4 = rec.indexOf("g_cliente");
|
||||
|
query.next(); |
||||
|
g_suc = query.value(nameCol1).toString(); |
||||
|
g_tcom = query.value(nameCol2).toString(); |
||||
|
g_ope = query.value(nameCol3).toString(); |
||||
|
//g_cliente = query.value(nameCol4).toString();
|
||||
|
} |
||||
|
v_sql_m="select mos_mvta from forum.mov_sto where mos_tip='"+g_tcom+"' and mos_stip='"+g_ope+"';"; |
||||
|
query_m.exec(v_sql_m); |
||||
|
QSqlRecord rec_m = query_m.record(); |
||||
|
num_items_m=query_m.size(); |
||||
|
if(num_items_m>0) |
||||
|
{ |
||||
|
int nameCol1 = rec_m.indexOf("mos_mvta"); |
||||
|
query_m.next(); |
||||
|
g_mos_vta = query_m.value(nameCol1).toString(); |
||||
|
} |
||||
|
|
||||
|
v_sql_o="select opr_secup from forumpre.oprecio where opr_tvta='"+g_mos_vta+"';"; |
||||
|
query_o.exec(v_sql_o); |
||||
|
QSqlRecord rec_o = query_o.record(); |
||||
|
num_items_o=query_o.size(); |
||||
|
if(num_items_o>0) |
||||
|
{ |
||||
|
int nameCol1 = rec_o.indexOf("opr_secup"); |
||||
|
query_o.next(); |
||||
|
g_opr_secup = query_o.value(nameCol1).toString(); |
||||
|
qDebug() << "g_opr_secup" << g_opr_secup; |
||||
|
QStringList v_secup_list; |
||||
|
int v_n=g_opr_secup.length(); |
||||
|
g_opr_secup=g_opr_secup.mid(1,v_n-2); |
||||
|
v_secup_list=g_opr_secup.split(",", QString::SkipEmptyParts); |
||||
|
v_n=v_secup_list.length(); |
||||
|
for(v_i=0;v_i<v_n;v_i++) |
||||
|
{ |
||||
|
g_secup[v_i]=v_secup_list.at(v_i).toLatin1().constData(); |
||||
|
} |
||||
|
} |
||||
|
v_sql_s="select gps_tlisuc, gps_suc from forumpre.gralsuc where gps_suc='"+g_suc+"';"; |
||||
|
query_s.exec(v_sql_s); |
||||
|
QSqlRecord rec_s = query_s.record(); |
||||
|
num_items_s=query_s.size(); |
||||
|
if(num_items_s>0) |
||||
|
{ |
||||
|
int nameCol1 = rec_s.indexOf("gps_tlisuc"); |
||||
|
int nameCol2 = rec_s.indexOf("gps_suc"); |
||||
|
query_s.next(); |
||||
|
g_gps_tlisuc = query_s.value(nameCol1).toString(); |
||||
|
g_gps_suc = query_s.value(nameCol2).toString(); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
int Principal::Busca_Articulo(QString p_codbar, g_datos * p_datos) |
||||
|
{ |
||||
|
p_datos->g_cod = 0; |
||||
|
p_datos->g_des = ""; |
||||
|
p_datos->g_iva = ""; |
||||
|
p_datos->g_dep = ""; |
||||
|
p_datos->g_uxb = ""; |
||||
|
p_datos->g_env = 0; |
||||
|
p_datos->g_medi= ""; |
||||
|
p_datos->g_tpre= ""; |
||||
|
p_datos->g_codb= ""; |
||||
|
p_datos->g_iint= ""; |
||||
|
p_datos->g_datfar= ""; |
||||
|
p_datos->g_cpie= ""; |
||||
|
|
||||
|
QSqlQuery query; |
||||
|
QString v_sql, v_sql_tip; |
||||
|
int num_items=0; |
||||
|
int num_items_tip=0; |
||||
|
|
||||
|
v_sql="SELECT art_baj,art_cod,bar_cod,art_des,art_desr,art_iva,art_dep,art_bul,art_ustk,art_datfar,art_env,art_medi,bar_uxb,art_coda,art_iin,art_desf FROM forum.articulo INNER JOIN forum.barras on art_cod=bar_art WHERE bar_cod='"+p_codbar+"' AND art_frag!='M' ;"; |
||||
|
|
||||
|
query.exec(v_sql); |
||||
|
num_items=query.size(); |
||||
|
qDebug() << "v_sql" << v_sql; |
||||
|
p_datos->g_tprect="0.0"; |
||||
|
|
||||
|
QSqlRecord rec = query.record(); |
||||
|
if( num_items > 0 ) |
||||
|
{ |
||||
|
int nameCol1 = rec.indexOf("art_cod" ); |
||||
|
int nameCol2 = rec.indexOf("art_des" ); |
||||
|
int nameCol3 = rec.indexOf("art_desr"); |
||||
|
int nameCol5 = rec.indexOf("art_iva" ); |
||||
|
int nameCol6 = rec.indexOf("art_dep" ); |
||||
|
int nameCol7 = rec.indexOf("bar_uxb" );//art_bul
|
||||
|
int nameCol8 = rec.indexOf("art_env" ); |
||||
|
int nameCol9 = rec.indexOf("art_ustk"); |
||||
|
int nameCol11= rec.indexOf("bar_cod" ); |
||||
|
int nameCol12= rec.indexOf("art_desf"); |
||||
|
int nameCol13= rec.indexOf("art_iin" ); |
||||
|
int nameCol14= rec.indexOf("art_datfar"); |
||||
|
int nameCol15= rec.indexOf("art_coda"); |
||||
|
|
||||
|
while (query.next()) |
||||
|
{ |
||||
|
p_datos->g_cod = query.value(nameCol1).toLongLong(); |
||||
|
p_datos->g_des = query.value(nameCol2).toString (); //+" "+query.value(nameCol12).toString()).left(30) ;
|
||||
|
p_datos->g_iva = query.value(nameCol5).toString (); |
||||
|
p_datos->g_dep = query.value(nameCol6).toString (); |
||||
|
p_datos->g_uxb = query.value(nameCol7).toString (); |
||||
|
p_datos->g_env = query.value(nameCol8).toLongLong(); |
||||
|
p_datos->g_medi= query.value(nameCol9).toString (); |
||||
|
p_datos->g_codb= query.value(nameCol11).toString (); |
||||
|
p_datos->g_iint= query.value(nameCol13).toString (); |
||||
|
p_datos->g_datfar= query.value(nameCol14).toString(); |
||||
|
p_datos->g_coda = query.value(nameCol15).toString(); |
||||
|
|
||||
|
if(p_datos->g_medi=="1") |
||||
|
p_datos->g_cpie="1"; |
||||
|
else |
||||
|
p_datos->g_cpie="0"; |
||||
|
|
||||
|
Leo_fecha(); |
||||
|
Leo_hora(); |
||||
|
g_pre_ofe = 0; |
||||
|
|
||||
|
for( int v_i=-1; v_i<10; v_i++ ) |
||||
|
{ |
||||
|
QSqlQuery querydpr; |
||||
|
qDebug() << "v_i" << v_i; |
||||
|
|
||||
|
if( v_i == -1 ) |
||||
|
{ |
||||
|
v_sql="SELECT dpr_pval, dpr_tpre FROM forumpre.dprecio WHERE dpr_art='"+QString::number(p_datos->g_cod)+"' AND dpr_tli='"+g_gps_tlisuc+"' AND dpr_tpre='3"+g_gps_suc+"' "+ |
||||
|
"AND dpr_fvig IN (SELECT dpr_fvig FROM forumpre.dprecio WHERE dpr_art = '"+QString::number(p_datos->g_cod)+"' AND dpr_tli='"+g_gps_tlisuc+"' AND dpr_tpre='3"+g_gps_suc+"' AND dpr_fvig <= '"+g_fecha_sql+"' ORDER BY dpr_fvig desc, dpr_hvig desc LIMIT 1)" + |
||||
|
"AND dpr_hvig IN (SELECT dpr_hvig FROM forumpre.dprecio WHERE dpr_art = '"+QString::number(p_datos->g_cod)+"' AND dpr_tli='"+g_gps_tlisuc+"' AND dpr_tpre='3"+g_gps_suc+"' AND dpr_fvig <= '"+g_fecha_sql+"' ORDER BY dpr_fvig desc, dpr_hvig desc LIMIT 1)"; |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
v_sql="SELECT dpr_pval, dpr_tpre FROM forumpre.dprecio WHERE dpr_art='"+QString::number(p_datos->g_cod)+"' AND dpr_tli='"+g_gps_tlisuc+"' AND dpr_tpre='"+g_secup[v_i]+"' "+ |
||||
|
"AND dpr_fvig IN (SELECT dpr_fvig FROM forumpre.dprecio WHERE dpr_art = '"+QString::number(p_datos->g_cod)+"' AND dpr_tli='"+g_gps_tlisuc+"' AND dpr_tpre='"+g_secup[v_i]+"' AND dpr_fvig <= '"+g_fecha_sql+"' ORDER BY dpr_fvig desc, dpr_hvig desc LIMIT 1)" + |
||||
|
"AND dpr_hvig IN (SELECT dpr_hvig FROM forumpre.dprecio WHERE dpr_art = '"+QString::number(p_datos->g_cod)+"' AND dpr_tli='"+g_gps_tlisuc+"' AND dpr_tpre='"+g_secup[v_i]+"' AND dpr_fvig <= '"+g_fecha_sql+"' ORDER BY dpr_fvig desc, dpr_hvig desc LIMIT 1)"; |
||||
|
} |
||||
|
querydpr.exec(v_sql); |
||||
|
num_items=querydpr.size(); |
||||
|
qDebug() << "v_sql" << v_sql; |
||||
|
p_datos->g_tip_pre=g_secup[v_i]; // tipo de precio
|
||||
|
QSqlRecord rec_p = querydpr.record(); |
||||
|
if( num_items > 0 ) |
||||
|
{ |
||||
|
querydpr.next(); |
||||
|
int nameCol4 = rec_p.indexOf("dpr_pval"); |
||||
|
int nameCol10= rec_p.indexOf("dpr_tpre");// no va
|
||||
|
double v_precio = querydpr.value(nameCol4).toDouble(); |
||||
|
p_datos->g_pre= QString::number(v_precio,'f',2); |
||||
|
if( p_datos->g_pre != "0.00" ) |
||||
|
{ |
||||
|
p_datos->g_tpre= querydpr.value(nameCol10).toString(); |
||||
|
caltas(p_datos->g_iva.toInt()); |
||||
|
caliva(p_datos->g_pre.toDouble()); |
||||
|
g_prec_iva = neto; |
||||
|
|
||||
|
QSqlQuery querytip; |
||||
|
v_sql_tip="SELECT ctp_mvili FROM forumpre.ctippre WHERE ctp_tpre='"+p_datos->g_tip_pre+"' LIMIT 1;"; |
||||
|
qDebug()<< v_sql_tip; |
||||
|
querytip.exec(v_sql_tip); |
||||
|
num_items_tip=querytip.size(); |
||||
|
if( num_items_tip > 0 ) |
||||
|
{ |
||||
|
querytip.next(); |
||||
|
qDebug() << "TIPO DE PRECIO: " << querytip.value(0).toInt(); |
||||
|
if(querytip.value(0).toInt() > 0) |
||||
|
{ |
||||
|
g_pre_ofe = 1; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
break; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
return 2; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
void Principal::Ingresa_articulo() |
||||
|
{ |
||||
|
QString v_codbar=ui->label_status->text(); |
||||
|
int v_resu = Busca_Articulo(v_codbar, &p_datos); |
||||
|
|
||||
|
if(v_resu==2) |
||||
|
{ |
||||
|
ui->label_status->setText("Artículo no encontrado"); |
||||
|
ui->label_codart->setText(""); |
||||
|
ui->label_codbar->setText(""); |
||||
|
ui->label_desc->setText(""); |
||||
|
ui->label_desc2->setText(""); |
||||
|
ui->label_precio->setText(""); |
||||
|
ui->label_promo->setText(""); |
||||
|
ui->label_prom_valida->setText(""); |
||||
|
g_flag1=0; |
||||
|
g_flag2=0; |
||||
|
|
||||
|
timer->setSingleShot(true); |
||||
|
timer->start(1000); |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
Busca_promo(QString::number(p_datos.g_cod), &p_datos); |
||||
|
Imprime_pantalla(); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
void Principal::Imprime_pantalla() |
||||
|
{ |
||||
|
g_flag1=0; |
||||
|
g_flag2=0; |
||||
|
ui->label_codart->setVisible(true); |
||||
|
ui->label_codbar->setVisible(true); |
||||
|
ui->label_desc->setVisible(true); |
||||
|
ui->label_desc2->setVisible(true); |
||||
|
ui->label_promo->setVisible(true); |
||||
|
ui->label_prom_valida->setVisible(true); |
||||
|
ui->label_status->setVisible(true); |
||||
|
|
||||
|
ui->label_status->setText(""); |
||||
|
|
||||
|
if (g_pre_ofe == 1) |
||||
|
{ |
||||
|
ui->label_ofe->setVisible(true); |
||||
|
ui->label_despofe->setVisible(true); |
||||
|
ui->label_ofe->setText("$"+QString::number(g_prec_iva,'f',2)); |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
ui->label_precio->setVisible(true); |
||||
|
ui->label_despnorm->setVisible(true); |
||||
|
ui->label_precio->setText("$"+QString::number(g_prec_iva,'f',2)); |
||||
|
} |
||||
|
|
||||
|
int v_largo = p_datos.g_des.length(); |
||||
|
|
||||
|
if(v_largo>25) |
||||
|
{ |
||||
|
ui->label_desc->setText(p_datos.g_des.left(25)); |
||||
|
ui->label_desc2->setText(p_datos.g_des.mid(25)); |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
ui->label_desc->setText(p_datos.g_des); |
||||
|
} |
||||
|
|
||||
|
ui->label_codbar->setText("Cod.Barras: "+p_datos.g_codb); |
||||
|
ui->label_codart->setText("Cod.Int: "+p_datos.g_coda); |
||||
|
|
||||
|
timer->setSingleShot(true); |
||||
|
|
||||
|
timer->start(20000); |
||||
|
} |
||||
|
|
||||
|
void Principal::Muestra_principal() |
||||
|
{ |
||||
|
ui->label_codart->setText(""); |
||||
|
ui->label_codbar->setText(""); |
||||
|
ui->label_desc->setText(""); |
||||
|
ui->label_desc2->setText(""); |
||||
|
ui->label_precio->setText(""); |
||||
|
ui->label_ofe->setText(""); |
||||
|
ui->label_promo->setText(""); |
||||
|
ui->label_prom_valida->setText(""); |
||||
|
ui->label_status->setText(""); |
||||
|
|
||||
|
ui->label_codart->setVisible(false); |
||||
|
ui->label_codbar->setVisible(false); |
||||
|
ui->label_desc->setVisible(false); |
||||
|
ui->label_desc2->setVisible(false); |
||||
|
ui->label_precio->setVisible(false); |
||||
|
ui->label_despnorm->setVisible(false); |
||||
|
ui->label_ofe->setVisible(false); |
||||
|
ui->label_despofe->setVisible(false); |
||||
|
ui->label_promo->setVisible(false); |
||||
|
ui->label_prom_valida->setVisible(false); |
||||
|
ui->label_status->setVisible(false); |
||||
|
|
||||
|
ui->label_principal->setVisible(true); |
||||
|
ui->label_imagen->setVisible(true); |
||||
|
ui->label_principal->setText("Escanee un articulo..."); |
||||
|
|
||||
|
g_startcodbar=0; |
||||
|
} |
||||
|
|
||||
|
void Principal::Busca_promo(QString p_cod , g_datos * p_datos) |
||||
|
{ |
||||
|
QSqlQuery query; |
||||
|
QString v_sql; |
||||
|
int num_items=0; |
||||
|
/*v_sql="SELECT * FROM forumpr1.dpromo join forumpr1.accionpro on dpr_accion = accionpro.acp_accion "
|
||||
|
"WHERE (dpr_art = '"+p_cod+"' or dpr_art = '"+p_cod+"') and acp_fdesde <= '"+g_fecha_sql+"' and acp_fhasta >= '"+g_fecha_sql+"' " |
||||
|
"and dpr_accion in (SELECT dpr_accion FROM forumpr1.dpromo join forumpr1.accionpro on dpr_accion = accionpro.acp_accion " |
||||
|
"WHERE acp_fdesde <= '"+g_fecha_sql+"' and acp_fhasta >= '"+g_fecha_sql+"' and (dpr_art = '"+p_cod+"' or dpr_art = '"+p_cod+"') " |
||||
|
"order by dpr_accion asc, dpr_promo, dpr_item desc limit 1);";*/ |
||||
|
v_sql="SELECT * FROM forumpr1.dpromo join forumpr1.accionpro on dpr_accion = accionpro.acp_accion " |
||||
|
"join forumpr1.cpromocup on dpr_accion = cpromocup.kpr_accion join minor.configuracion on kpr_suc = configuracion.g_sucursal " |
||||
|
"WHERE (dpr_art = '"+p_cod+"' or dpr_art = '"+p_cod+"') and acp_fdesde <= '"+g_fecha_sql+"' and acp_fhasta >= '"+g_fecha_sql+"' and kpr_promo = dpr_promo " |
||||
|
"and dpr_accion in (SELECT dpr_accion FROM forumpr1.dpromo join forumpr1.accionpro on dpr_accion = accionpro.acp_accion " |
||||
|
"join forumpr1.cpromocup on dpr_accion = cpromocup.kpr_accion join minor.configuracion on kpr_suc = configuracion.g_sucursal " |
||||
|
"WHERE acp_fdesde <= '"+g_fecha_sql+"' and acp_fhasta >= '"+g_fecha_sql+"' and (dpr_art = '"+p_cod+"' or dpr_art = '"+p_cod+"' and kpr_promo = dpr_promo) " |
||||
|
"order by dpr_accion asc, dpr_promo, dpr_item desc limit 1);"; |
||||
|
|
||||
|
qDebug()<< "sql_dpromo: "<< v_sql; |
||||
|
query.exec(v_sql); |
||||
|
num_items=query.size(); |
||||
|
QSqlRecord rec = query.record(); |
||||
|
if(num_items>0) |
||||
|
{ |
||||
|
int nameCol1 = rec.indexOf("dpr_promo"); |
||||
|
int nameCol2 = rec.indexOf("dpr_lleva"); |
||||
|
int nameCol3 = rec.indexOf("dpr_paga"); |
||||
|
int nameCol4 = rec.indexOf("dpr_des"); |
||||
|
int nameCol5 = rec.indexOf("acp_accion"); |
||||
|
int nameCol6 = rec.indexOf("acp_fdesde"); |
||||
|
int nameCol7 = rec.indexOf("acp_fhasta"); |
||||
|
while( query.next() ) |
||||
|
{ |
||||
|
QString v_promo = query.value(nameCol1).toString(); |
||||
|
QString v_lleva = query.value(nameCol2).toString(); |
||||
|
QString v_paga = query.value(nameCol3).toString(); |
||||
|
float v_des = query.value(nameCol4).toFloat(); |
||||
|
QString v_accion = query.value(nameCol5).toString(); |
||||
|
QString v_fdesde = query.value(nameCol6).toString(); |
||||
|
QString v_fhasta = query.value(nameCol7).toString(); |
||||
|
|
||||
|
QSqlQuery query_select, query_select2, query_select3; |
||||
|
QString v_sql1, v_sql2, v_sql3; |
||||
|
int num_items1=0; |
||||
|
int num_items2=0; |
||||
|
int num_items3=0; |
||||
|
|
||||
|
v_sql1="SELECT * FROM forumpr1.cpromo WHERE cpr_accion = '"+v_accion+"' and cpr_promo = '"+v_promo+"';"; |
||||
|
//qDebug()<< "sql_cpromo: _____________"<< v_sql1;
|
||||
|
|
||||
|
query_select.exec(v_sql1); |
||||
|
num_items1=query_select.size(); |
||||
|
QSqlRecord rec1 = query_select.record(); |
||||
|
if(num_items1>0) |
||||
|
{ |
||||
|
int nameCol1 = rec1.indexOf("cpr_tpromo"); |
||||
|
//int nameCol2 = rec1.indexOf("cpr_dpromo");
|
||||
|
while( query_select.next() ) |
||||
|
{ |
||||
|
QString v_tpromo = query_select.value(nameCol1).toString(); |
||||
|
//QString v_dpromo = query_select.value(nameCol2).toString();
|
||||
|
if(v_tpromo=="1" || v_tpromo=="2" || v_tpromo=="3" || v_tpromo=="4" || v_tpromo=="6") |
||||
|
{ |
||||
|
if(v_tpromo=="1") |
||||
|
ui->label_promo->setText(ui->label_promo->text()+"\n"+"LLEVA "+v_lleva+" PAGA "+v_paga); |
||||
|
if(v_tpromo=="2") |
||||
|
{ |
||||
|
//BUSCA LOS OTROS ARTICULOS DE LA PROMO
|
||||
|
v_sql2="SELECT art_des, dpr_art, dpr_lleva, dpr_yo FROM forumpr1.dpromo, forum.articulo WHERE forum.articulo.art_cod = forumpr1.dpromo.dpr_art AND dpr_accion = '"+v_accion+"' AND dpr_promo = '"+v_promo+"' order by dpr_item;"; |
||||
|
query_select2.exec(v_sql2); |
||||
|
num_items2=query_select2.size(); |
||||
|
ui->label_promo->setText("LLEVANDO ");//LEER TABLA RPROMO
|
||||
|
if(num_items2>0) |
||||
|
{ |
||||
|
while( query_select2.next() ) |
||||
|
{ |
||||
|
QString v_descartpromo = query_select2.value(0).toString(); |
||||
|
QString v_artpromo = query_select2.value(1).toString(); |
||||
|
QString v_llevaartpromo = query_select2.value(2).toString(); |
||||
|
QString v_connartpromo = query_select2.value(3).toString(); |
||||
|
//BUSQUEDA DE DESCRIPCION DE ARTICULO
|
||||
|
|
||||
|
if(v_connartpromo == "fin") v_connartpromo = ""; |
||||
|
ui->label_promo->setText(ui->label_promo->text()+"\n"+v_llevaartpromo+" x "+v_descartpromo+" "+v_connartpromo);//LEER TABLA RPROMO
|
||||
|
} |
||||
|
|
||||
|
} |
||||
|
//BUSCA EL REGALO
|
||||
|
v_sql3="SELECT forum.articulo.art_des, rpr_art, rpr_regalo FROM forumpr1.rpromo, forum.articulo WHERE forum.articulo.art_cod = rpr_art AND rpr_accion = '"+v_accion+"' AND rpr_promo = '"+v_promo+"' ;"; |
||||
|
query_select3.exec(v_sql3); |
||||
|
num_items3=query_select3.size(); |
||||
|
ui->label_promo->setText(ui->label_promo->text()+"\n"+"DE REGALO: ");//LEER TABLA RPROMO
|
||||
|
if(num_items3>0) |
||||
|
{ |
||||
|
if(query_select3.next()) |
||||
|
{ |
||||
|
QString v_desartregalo = query_select3.value(0).toString(); |
||||
|
QString v_artregalo = query_select3.value(1).toString(); |
||||
|
QString v_cantartregalo = query_select3.value(2).toString(); |
||||
|
ui->label_promo->setText(ui->label_promo->text()+"\n"+v_cantartregalo+" x "+v_artregalo+ " " + v_desartregalo); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
if(v_tpromo=="3") |
||||
|
ui->label_promo->setText(ui->label_promo->text()+"\n"+"LLEVA SURTIDO "+v_lleva+" PAGA "+v_paga); |
||||
|
if(v_tpromo=="4") |
||||
|
ui->label_promo->setText(ui->label_promo->text()+"\n"+"LLEVA "+v_lleva+" DESCUENTO "+QString::number(v_des,'f',2)+"%"); |
||||
|
if(v_tpromo=="6") |
||||
|
ui->label_promo->setText(ui->label_promo->text()+"\n"+"LLEVA SURTIDO "+v_lleva+" DESCUENTO "+QString::number(v_des,'f',2)+"%"); |
||||
|
|
||||
|
ui->label_prom_valida->setText("Valido desde "+v_fdesde+" hasta "+v_fhasta+" inclusive."); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
else { |
||||
|
QSqlQuery query_select_frac; |
||||
|
QString v_sql2; |
||||
|
int num_items=0; |
||||
|
v_sql2="SELECT art_des, art_frac, art_cumf FROM forum.articulo WHERE forum.articulo.art_frac < 0 AND art_cod = "+p_cod+" ;"; |
||||
|
query_select_frac.exec(v_sql2); |
||||
|
num_items=query_select_frac.size(); |
||||
|
|
||||
|
|
||||
|
if(num_items>0) |
||||
|
{ |
||||
|
if(query_select_frac.next()) |
||||
|
{ |
||||
|
QString v_desc = query_select_frac.value(0).toString(); |
||||
|
QString v_frac = query_select_frac.value(1).toString(); |
||||
|
QString v_cumf = query_select_frac.value(2).toString(); |
||||
|
|
||||
|
ui->label_promo->setText(ui->label_promo->text()+"\n"+"LLEVANDO "+v_cumf+" O MAS TIENE UN "+v_frac+"% DE DESCUENTO $ "+ QString::number( (float)g_prec_iva-((float)g_prec_iva*(-1)*v_frac.toFloat()/(float)100) ,'f', 2));//LEER TABLA RPROMO
|
||||
|
qDebug() <<"PRE: "<< g_prec_iva << " DESC: " << (float)g_prec_iva-((float)g_prec_iva*(-1)*v_frac.toFloat()/(float)100); |
||||
|
ui->label_ofe->setVisible(true); |
||||
|
ui->label_ofe->setText("$"+QString::number((float)g_prec_iva-((float)g_prec_iva*(-1)*v_frac.toFloat()/(float)100),'f',2)); |
||||
|
ui->label_despofe->setVisible(true); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
bool Principal::eventFilter(QObject *obj, QEvent *event) |
||||
|
{ |
||||
|
if (obj == (QObject *)ui->centralWidget) |
||||
|
{ |
||||
|
if ( event->type() == QEvent::KeyRelease ) |
||||
|
{ |
||||
|
QKeyEvent *keyEvent = static_cast<QKeyEvent*>(event); |
||||
|
|
||||
|
//qDebug() << "Toque esta tecla: " << keyEvent->key();
|
||||
|
|
||||
|
if(g_startcodbar==0 && keyEvent->key() == 48) //número 0
|
||||
|
{ |
||||
|
g_flag1=1; |
||||
|
g_startcodbar=1; |
||||
|
} |
||||
|
|
||||
|
if(keyEvent->key() == Qt::Key_Enter || keyEvent->key() == 16777220 ) //enter
|
||||
|
{ |
||||
|
if(g_flag1==0) |
||||
|
{ |
||||
|
g_startcodbar=0; |
||||
|
if(ui->label_status->text()!="") |
||||
|
{ |
||||
|
Ingresa_articulo(); |
||||
|
} |
||||
|
} |
||||
|
if(g_flag1==1) |
||||
|
{ |
||||
|
g_codigo=""; |
||||
|
g_startcodbar=1; |
||||
|
ui->label_status->setVisible(true); |
||||
|
ui->label_status->setText("Ingrese código de barras"); |
||||
|
ui->label_codart->setText(""); |
||||
|
ui->label_codbar->setText(""); |
||||
|
ui->label_desc->setText(""); |
||||
|
ui->label_desc2->setText(""); |
||||
|
ui->label_precio->setText(""); |
||||
|
ui->label_ofe->setText(""); |
||||
|
ui->label_promo->setText(""); |
||||
|
ui->label_prom_valida->setText(""); |
||||
|
ui->label_precio->setVisible(false); |
||||
|
ui->label_ofe->setVisible(false); |
||||
|
ui->label_despofe->setVisible(false); |
||||
|
ui->label_despnorm->setVisible(false); |
||||
|
ui->label_principal->setVisible(false); |
||||
|
ui->label_imagen->setVisible(false); |
||||
|
g_flag2=1; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
if(g_startcodbar==0 && keyEvent->key() == 16777275) //F12 (16777275)
|
||||
|
{ |
||||
|
g_codigo=""; |
||||
|
g_startcodbar=1; |
||||
|
ui->label_status->setVisible(true); |
||||
|
ui->label_status->setText("Ingrese código de barras"); |
||||
|
ui->label_codart->setText(""); |
||||
|
ui->label_codbar->setText(""); |
||||
|
ui->label_desc->setText(""); |
||||
|
ui->label_desc2->setText(""); |
||||
|
ui->label_precio->setText(""); |
||||
|
ui->label_ofe->setText(""); |
||||
|
ui->label_promo->setText(""); |
||||
|
ui->label_prom_valida->setText(""); |
||||
|
ui->label_precio->setVisible(false); |
||||
|
ui->label_ofe->setVisible(false); |
||||
|
ui->label_despofe->setVisible(false); |
||||
|
ui->label_despnorm->setVisible(false); |
||||
|
ui->label_principal->setVisible(false); |
||||
|
ui->label_imagen->setVisible(false); |
||||
|
g_flag2=1; |
||||
|
} |
||||
|
|
||||
|
if(keyEvent->key() == 16777216 || keyEvent->key() == 16777233) //esc o fin
|
||||
|
{ |
||||
|
close(); |
||||
|
} |
||||
|
|
||||
|
if(keyEvent->key() >= 48 && keyEvent->key() <= 57 && g_startcodbar==1 && g_flag2==1) //TECLADO NUMERICO
|
||||
|
{ |
||||
|
if(g_codigo.count()<=13) |
||||
|
{ |
||||
|
g_codigo+=keyEvent->text().toUpper(); |
||||
|
ui->label_status->setText(g_codigo); |
||||
|
g_flag1=0; |
||||
|
} |
||||
|
} |
||||
|
if(keyEvent->key() ==16777219 && g_startcodbar==1)// <-- BORRAR
|
||||
|
{ |
||||
|
g_codigo.chop(1); |
||||
|
ui->label_status->setText(g_codigo); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,146 @@ |
|||||
|
#ifndef PRINCIPAL_H |
||||
|
#define PRINCIPAL_H |
||||
|
|
||||
|
#include <QMainWindow> |
||||
|
#include <QPropertyAnimation> |
||||
|
#include <QTimer> |
||||
|
#include <QLabel> |
||||
|
#include <QSql> |
||||
|
#include <QSqlQuery> |
||||
|
#include <QSettings> |
||||
|
|
||||
|
struct g_datos |
||||
|
{ |
||||
|
long g_cod ; |
||||
|
QString g_codb ; |
||||
|
QString g_des ; |
||||
|
QString g_desr ; |
||||
|
QString g_pre ; |
||||
|
QString g_iva ; |
||||
|
QString g_dep ; |
||||
|
QString g_uxb ; |
||||
|
long g_env ; |
||||
|
QString g_medi ; |
||||
|
QString g_peso ; |
||||
|
QString g_tpre ; |
||||
|
QString g_iint ; |
||||
|
QString g_datfar; |
||||
|
QString g_tprect; |
||||
|
QString g_cpie ; |
||||
|
double g_tas ; |
||||
|
QString g_coda ; |
||||
|
QString g_tip_pre; |
||||
|
}; |
||||
|
|
||||
|
namespace Ui { |
||||
|
class Principal; |
||||
|
} |
||||
|
|
||||
|
class Principal : public QMainWindow |
||||
|
{ |
||||
|
Q_OBJECT |
||||
|
|
||||
|
public: |
||||
|
explicit Principal(QWidget *parent = 0); |
||||
|
~Principal(); |
||||
|
QSqlDatabase db; |
||||
|
QString Leo_fecha(); |
||||
|
QString Leo_hora(); |
||||
|
int busiva(QString); |
||||
|
void Leo_situa(); |
||||
|
int Busca_Articulo(QString, struct g_datos *); |
||||
|
void caliva (double); |
||||
|
int caltas (int); |
||||
|
void Leo_config(); |
||||
|
void Leo_Settings(); |
||||
|
void Imprime_pantalla(); |
||||
|
void Ingresa_articulo(); |
||||
|
void Busca_promo(QString, struct g_datos *); |
||||
|
|
||||
|
QTimer *timer = new QTimer(); |
||||
|
|
||||
|
|
||||
|
|
||||
|
QString g_fecha_sql; |
||||
|
QString g_hora_sql; |
||||
|
|
||||
|
QString tiptas;/* tipo de tasa (se obtine en esta funcion ) */ |
||||
|
QString forexp;/* forma de expresion (se obtiene en esta funcion)*/ |
||||
|
double porsus;/* porcentaje de suspencion(" " " " " ) */ |
||||
|
double iva1, /* importe del iva para tasa 1 */ |
||||
|
iva2, /* " " " " " 2 */ |
||||
|
iva3, /* " " " " " 3 */ |
||||
|
iva4, /* " " " " " 3 */ |
||||
|
iva, /* importe iva total */ |
||||
|
liber, /* importe de la liberacion */ |
||||
|
susp, /* " " " suspension */ |
||||
|
neto; /* " neto */ |
||||
|
int tasa1,tasa2,tasa3,tasa4; /* (vienen de BUSIVA) */ |
||||
|
double tas1, /* tasa 1 si la lleva (lo obtiene esta rutina) */ |
||||
|
tas2, /* tasa 2 si la " (" " " " ) */ |
||||
|
tas3, /* tasa 3 " " " ( " " " " ) */ |
||||
|
tas4, /* tasa 4 " " " ( " " " " ) */ |
||||
|
tasa; /* auxiliar para calculo */ |
||||
|
|
||||
|
int errnum; /* indica posibles errores en la numeracion */ |
||||
|
int forma; /* indica forma de numeracion */ |
||||
|
long g_nro; |
||||
|
QString g_codnum_periren, g_codnum_nroinic, g_codnum_nrotope; |
||||
|
QString g_automat_emp, g_automat_suc, g_automat_drel, g_automat_anio, g_automat_mes, g_automat_dia, g_automat_nro, g_automat_fecha; |
||||
|
QString g_manual_nro, g_manual_fecha, g_manual_uso; |
||||
|
QString g_secup[10];//tipo de precio //SACAR, MANDAR A OTRA GLOBAL GENERAL |
||||
|
int g_tli ; |
||||
|
|
||||
|
|
||||
|
|
||||
|
QString g_prueba_2; |
||||
|
QString fec_now; |
||||
|
QString fec_now2; |
||||
|
QString gn_nro; |
||||
|
QString g_suc; |
||||
|
QString g_tcom; |
||||
|
QString g_ope; |
||||
|
QString g_mos_vta; |
||||
|
QString g_opr_secup; |
||||
|
QString g_gps_tlisuc; |
||||
|
QString g_gps_suc; |
||||
|
QString g_codsit; |
||||
|
QString g_desr; |
||||
|
QString g_cliente; |
||||
|
int v_i; |
||||
|
QString g_prueba; |
||||
|
QString g_sql; |
||||
|
int num_items_art; |
||||
|
int num_items; |
||||
|
QSqlQuery query; |
||||
|
QSqlQuery query_art; |
||||
|
QString v_datos_pre; |
||||
|
double tasa_iva; |
||||
|
float g_prec_iva; |
||||
|
int g_pre_ofe; |
||||
|
int nameCol1; |
||||
|
int nameCol2; |
||||
|
int nameCol3; |
||||
|
int nameCol3b; |
||||
|
int nameCol4; |
||||
|
int nameCol4b; |
||||
|
int nameCol5; |
||||
|
int nameCol6; |
||||
|
int nameCol7; |
||||
|
int g_flag1; |
||||
|
int g_flag2; |
||||
|
|
||||
|
int g_startcodbar; |
||||
|
QString g_codigo; |
||||
|
|
||||
|
protected: |
||||
|
bool eventFilter(QObject *obj, QEvent *ev); |
||||
|
|
||||
|
private slots: |
||||
|
void Muestra_principal(); |
||||
|
|
||||
|
private: |
||||
|
Ui::Principal *ui; |
||||
|
}; |
||||
|
|
||||
|
#endif // PRINCIPAL_H |
@ -0,0 +1,357 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<ui version="4.0"> |
||||
|
<class>Principal</class> |
||||
|
<widget class="QMainWindow" name="Principal"> |
||||
|
<property name="geometry"> |
||||
|
<rect> |
||||
|
<x>0</x> |
||||
|
<y>0</y> |
||||
|
<width>521</width> |
||||
|
<height>637</height> |
||||
|
</rect> |
||||
|
</property> |
||||
|
<property name="windowTitle"> |
||||
|
<string>Mcanet</string> |
||||
|
</property> |
||||
|
<widget class="QWidget" name="centralWidget"> |
||||
|
<layout class="QGridLayout" name="gridLayout_2"> |
||||
|
<item row="35" column="0"> |
||||
|
<widget class="QFrame" name="frame_barra"> |
||||
|
<property name="styleSheet"> |
||||
|
<string notr="true"/> |
||||
|
</property> |
||||
|
<property name="frameShape"> |
||||
|
<enum>QFrame::StyledPanel</enum> |
||||
|
</property> |
||||
|
<property name="frameShadow"> |
||||
|
<enum>QFrame::Sunken</enum> |
||||
|
</property> |
||||
|
<layout class="QVBoxLayout" name="verticalLayout_2"> |
||||
|
<item> |
||||
|
<layout class="QVBoxLayout" name="verticalLayout"> |
||||
|
<property name="topMargin"> |
||||
|
<number>0</number> |
||||
|
</property> |
||||
|
<item> |
||||
|
<widget class="QLabel" name="label_codbar"> |
||||
|
<property name="styleSheet"> |
||||
|
<string notr="true"/> |
||||
|
</property> |
||||
|
<property name="text"> |
||||
|
<string>Código de barras</string> |
||||
|
</property> |
||||
|
<property name="alignment"> |
||||
|
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> |
||||
|
</property> |
||||
|
</widget> |
||||
|
</item> |
||||
|
<item> |
||||
|
<layout class="QHBoxLayout" name="horizontalLayout"> |
||||
|
<property name="topMargin"> |
||||
|
<number>0</number> |
||||
|
</property> |
||||
|
<item> |
||||
|
<widget class="QLabel" name="label_codart"> |
||||
|
<property name="styleSheet"> |
||||
|
<string notr="true"/> |
||||
|
</property> |
||||
|
<property name="text"> |
||||
|
<string>Código interno</string> |
||||
|
</property> |
||||
|
<property name="alignment"> |
||||
|
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> |
||||
|
</property> |
||||
|
</widget> |
||||
|
</item> |
||||
|
<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="QLabel" name="label_logo_mca"> |
||||
|
<property name="focusPolicy"> |
||||
|
<enum>Qt::StrongFocus</enum> |
||||
|
</property> |
||||
|
<property name="text"> |
||||
|
<string/> |
||||
|
</property> |
||||
|
<property name="pixmap"> |
||||
|
<pixmap resource="resources.qrc">:/Recursos/180.png</pixmap> |
||||
|
</property> |
||||
|
<property name="scaledContents"> |
||||
|
<bool>false</bool> |
||||
|
</property> |
||||
|
</widget> |
||||
|
</item> |
||||
|
</layout> |
||||
|
</item> |
||||
|
</layout> |
||||
|
</item> |
||||
|
</layout> |
||||
|
</widget> |
||||
|
</item> |
||||
|
<item row="6" column="0"> |
||||
|
<widget class="QLabel" name="label_principal"> |
||||
|
<property name="text"> |
||||
|
<string>Principal</string> |
||||
|
</property> |
||||
|
<property name="alignment"> |
||||
|
<set>Qt::AlignCenter</set> |
||||
|
</property> |
||||
|
</widget> |
||||
|
</item> |
||||
|
<item row="2" column="0"> |
||||
|
<spacer name="verticalSpacer"> |
||||
|
<property name="orientation"> |
||||
|
<enum>Qt::Vertical</enum> |
||||
|
</property> |
||||
|
<property name="sizeHint" stdset="0"> |
||||
|
<size> |
||||
|
<width>20</width> |
||||
|
<height>40</height> |
||||
|
</size> |
||||
|
</property> |
||||
|
</spacer> |
||||
|
</item> |
||||
|
<item row="11" column="0"> |
||||
|
<widget class="QLabel" name="label_prom_valida"> |
||||
|
<property name="styleSheet"> |
||||
|
<string notr="true"/> |
||||
|
</property> |
||||
|
<property name="text"> |
||||
|
<string>Promo valida d h</string> |
||||
|
</property> |
||||
|
<property name="alignment"> |
||||
|
<set>Qt::AlignCenter</set> |
||||
|
</property> |
||||
|
</widget> |
||||
|
</item> |
||||
|
<item row="8" column="0"> |
||||
|
<layout class="QGridLayout" name="gridLayout_3"> |
||||
|
<property name="sizeConstraint"> |
||||
|
<enum>QLayout::SetNoConstraint</enum> |
||||
|
</property> |
||||
|
<property name="topMargin"> |
||||
|
<number>0</number> |
||||
|
</property> |
||||
|
<property name="spacing"> |
||||
|
<number>0</number> |
||||
|
</property> |
||||
|
<item row="0" column="1"> |
||||
|
<widget class="QLabel" name="label_ofe"> |
||||
|
<property name="text"> |
||||
|
<string>Oferta</string> |
||||
|
</property> |
||||
|
<property name="alignment"> |
||||
|
<set>Qt::AlignCenter</set> |
||||
|
</property> |
||||
|
</widget> |
||||
|
</item> |
||||
|
<item row="0" column="0"> |
||||
|
<widget class="QLabel" name="label_precio"> |
||||
|
<property name="styleSheet"> |
||||
|
<string notr="true"/> |
||||
|
</property> |
||||
|
<property name="text"> |
||||
|
<string>Precio</string> |
||||
|
</property> |
||||
|
<property name="alignment"> |
||||
|
<set>Qt::AlignCenter</set> |
||||
|
</property> |
||||
|
</widget> |
||||
|
</item> |
||||
|
<item row="1" column="0"> |
||||
|
<widget class="QLabel" name="label_despnorm"> |
||||
|
<property name="text"> |
||||
|
<string>Precio normal</string> |
||||
|
</property> |
||||
|
<property name="alignment"> |
||||
|
<set>Qt::AlignCenter</set> |
||||
|
</property> |
||||
|
</widget> |
||||
|
</item> |
||||
|
<item row="1" column="1"> |
||||
|
<widget class="QLabel" name="label_despofe"> |
||||
|
<property name="text"> |
||||
|
<string>Precio Oferta</string> |
||||
|
</property> |
||||
|
<property name="alignment"> |
||||
|
<set>Qt::AlignCenter</set> |
||||
|
</property> |
||||
|
</widget> |
||||
|
</item> |
||||
|
</layout> |
||||
|
</item> |
||||
|
<item row="4" column="0"> |
||||
|
<widget class="QLabel" name="label_desc"> |
||||
|
<property name="styleSheet"> |
||||
|
<string notr="true"/> |
||||
|
</property> |
||||
|
<property name="text"> |
||||
|
<string>Descripción</string> |
||||
|
</property> |
||||
|
<property name="alignment"> |
||||
|
<set>Qt::AlignCenter</set> |
||||
|
</property> |
||||
|
</widget> |
||||
|
</item> |
||||
|
<item row="7" column="0"> |
||||
|
<widget class="QLabel" name="label_imagen"> |
||||
|
<property name="text"> |
||||
|
<string/> |
||||
|
</property> |
||||
|
<property name="pixmap"> |
||||
|
<pixmap resource="resources.qrc">:/Recursos/scanner_250.png</pixmap> |
||||
|
</property> |
||||
|
<property name="alignment"> |
||||
|
<set>Qt::AlignCenter</set> |
||||
|
</property> |
||||
|
</widget> |
||||
|
</item> |
||||
|
<item row="1" column="0"> |
||||
|
<widget class="QFrame" name="frame_titulo"> |
||||
|
<property name="frameShape"> |
||||
|
<enum>QFrame::StyledPanel</enum> |
||||
|
</property> |
||||
|
<property name="frameShadow"> |
||||
|
<enum>QFrame::Raised</enum> |
||||
|
</property> |
||||
|
<layout class="QGridLayout" name="gridLayout"> |
||||
|
<item row="2" column="0"> |
||||
|
<layout class="QHBoxLayout" name="horizontalLayout_5"> |
||||
|
<property name="topMargin"> |
||||
|
<number>0</number> |
||||
|
</property> |
||||
|
<item> |
||||
|
<widget class="QLabel" name="label_titulo"> |
||||
|
<property name="styleSheet"> |
||||
|
<string notr="true"/> |
||||
|
</property> |
||||
|
<property name="text"> |
||||
|
<string>Consulta de precios</string> |
||||
|
</property> |
||||
|
<property name="alignment"> |
||||
|
<set>Qt::AlignCenter</set> |
||||
|
</property> |
||||
|
</widget> |
||||
|
</item> |
||||
|
<item> |
||||
|
<spacer name="horizontalSpacer_3"> |
||||
|
<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="QLabel" name="label_maxi"> |
||||
|
<property name="text"> |
||||
|
<string/> |
||||
|
</property> |
||||
|
<property name="pixmap"> |
||||
|
<pixmap resource="resources.qrc">:/Recursos/chico_emanuel_logo.png</pixmap> |
||||
|
</property> |
||||
|
<property name="alignment"> |
||||
|
<set>Qt::AlignCenter</set> |
||||
|
</property> |
||||
|
</widget> |
||||
|
</item> |
||||
|
</layout> |
||||
|
</item> |
||||
|
</layout> |
||||
|
</widget> |
||||
|
</item> |
||||
|
<item row="12" column="0"> |
||||
|
<spacer name="verticalSpacer_3"> |
||||
|
<property name="orientation"> |
||||
|
<enum>Qt::Vertical</enum> |
||||
|
</property> |
||||
|
<property name="sizeHint" stdset="0"> |
||||
|
<size> |
||||
|
<width>20</width> |
||||
|
<height>40</height> |
||||
|
</size> |
||||
|
</property> |
||||
|
</spacer> |
||||
|
</item> |
||||
|
<item row="10" column="0"> |
||||
|
<widget class="QLabel" name="label_promo"> |
||||
|
<property name="styleSheet"> |
||||
|
<string notr="true"/> |
||||
|
</property> |
||||
|
<property name="text"> |
||||
|
<string>Promo</string> |
||||
|
</property> |
||||
|
<property name="alignment"> |
||||
|
<set>Qt::AlignCenter</set> |
||||
|
</property> |
||||
|
</widget> |
||||
|
</item> |
||||
|
<item row="3" column="0"> |
||||
|
<widget class="QLabel" name="label_status"> |
||||
|
<property name="styleSheet"> |
||||
|
<string notr="true"/> |
||||
|
</property> |
||||
|
<property name="text"> |
||||
|
<string>Estado</string> |
||||
|
</property> |
||||
|
<property name="alignment"> |
||||
|
<set>Qt::AlignCenter</set> |
||||
|
</property> |
||||
|
</widget> |
||||
|
</item> |
||||
|
<item row="9" column="0"> |
||||
|
<spacer name="verticalSpacer_2"> |
||||
|
<property name="orientation"> |
||||
|
<enum>Qt::Vertical</enum> |
||||
|
</property> |
||||
|
<property name="sizeHint" stdset="0"> |
||||
|
<size> |
||||
|
<width>20</width> |
||||
|
<height>40</height> |
||||
|
</size> |
||||
|
</property> |
||||
|
</spacer> |
||||
|
</item> |
||||
|
<item row="5" column="0"> |
||||
|
<widget class="QLabel" name="label_desc2"> |
||||
|
<property name="text"> |
||||
|
<string>Descripción 2</string> |
||||
|
</property> |
||||
|
<property name="alignment"> |
||||
|
<set>Qt::AlignCenter</set> |
||||
|
</property> |
||||
|
</widget> |
||||
|
</item> |
||||
|
</layout> |
||||
|
</widget> |
||||
|
<widget class="QToolBar" name="mainToolBar"> |
||||
|
<attribute name="toolBarArea"> |
||||
|
<enum>TopToolBarArea</enum> |
||||
|
</attribute> |
||||
|
<attribute name="toolBarBreak"> |
||||
|
<bool>false</bool> |
||||
|
</attribute> |
||||
|
</widget> |
||||
|
<widget class="QStatusBar" name="statusBar"/> |
||||
|
</widget> |
||||
|
<layoutdefault spacing="6" margin="11"/> |
||||
|
<resources> |
||||
|
<include location="resources.qrc"/> |
||||
|
</resources> |
||||
|
<connections/> |
||||
|
</ui> |
137107
qrc_resources.cpp
File diff suppressed because it is too large
View File
@ -0,0 +1,20 @@ |
|||||
|
<RCC> |
||||
|
<qresource prefix="/"> |
||||
|
<file>Recursos/fb_power.css</file> |
||||
|
<file>Recursos/fb_power_mini.css</file> |
||||
|
<file>Recursos/close-delete-cancel-del-ui-round-512.png</file> |
||||
|
<file>Recursos/cancel_grey_192x192.png</file> |
||||
|
<file>Recursos/300.png</file> |
||||
|
<file>Recursos/400.png</file> |
||||
|
<file>Recursos/180.png</file> |
||||
|
<file>Recursos/logo_maxi.jpg</file> |
||||
|
<file>Recursos/scanner_400.png</file> |
||||
|
<file>Recursos/scanner_380.png</file> |
||||
|
<file>Recursos/scanner_250.png</file> |
||||
|
<file>Recursos/maxi_ofertas_chico.jpg</file> |
||||
|
<file>Recursos/maxi_logo.png</file> |
||||
|
<file>Recursos/chico_maxi_logo.png</file> |
||||
|
<file>Recursos/emanuel_logo.png</file> |
||||
|
<file>Recursos/chico_emanuel_logo.png</file> |
||||
|
</qresource> |
||||
|
</RCC> |
@ -0,0 +1,300 @@ |
|||||
|
/******************************************************************************** |
||||
|
** Form generated from reading UI file 'principal.ui' |
||||
|
** |
||||
|
** Created by: Qt User Interface Compiler version 5.7.1 |
||||
|
** |
||||
|
** WARNING! All changes made in this file will be lost when recompiling UI file! |
||||
|
********************************************************************************/ |
||||
|
|
||||
|
#ifndef UI_PRINCIPAL_H |
||||
|
#define UI_PRINCIPAL_H |
||||
|
|
||||
|
#include <QtCore/QVariant> |
||||
|
#include <QtWidgets/QAction> |
||||
|
#include <QtWidgets/QApplication> |
||||
|
#include <QtWidgets/QButtonGroup> |
||||
|
#include <QtWidgets/QFrame> |
||||
|
#include <QtWidgets/QGridLayout> |
||||
|
#include <QtWidgets/QHBoxLayout> |
||||
|
#include <QtWidgets/QHeaderView> |
||||
|
#include <QtWidgets/QLabel> |
||||
|
#include <QtWidgets/QMainWindow> |
||||
|
#include <QtWidgets/QSpacerItem> |
||||
|
#include <QtWidgets/QStatusBar> |
||||
|
#include <QtWidgets/QToolBar> |
||||
|
#include <QtWidgets/QVBoxLayout> |
||||
|
#include <QtWidgets/QWidget> |
||||
|
|
||||
|
QT_BEGIN_NAMESPACE |
||||
|
|
||||
|
class Ui_Principal |
||||
|
{ |
||||
|
public: |
||||
|
QWidget *centralWidget; |
||||
|
QGridLayout *gridLayout_2; |
||||
|
QFrame *frame_barra; |
||||
|
QVBoxLayout *verticalLayout_2; |
||||
|
QVBoxLayout *verticalLayout; |
||||
|
QLabel *label_codbar; |
||||
|
QHBoxLayout *horizontalLayout; |
||||
|
QLabel *label_codart; |
||||
|
QSpacerItem *horizontalSpacer; |
||||
|
QLabel *label_logo_mca; |
||||
|
QLabel *label_principal; |
||||
|
QSpacerItem *verticalSpacer; |
||||
|
QLabel *label_prom_valida; |
||||
|
QGridLayout *gridLayout_3; |
||||
|
QLabel *label_ofe; |
||||
|
QLabel *label_precio; |
||||
|
QLabel *label_despnorm; |
||||
|
QLabel *label_despofe; |
||||
|
QLabel *label_desc; |
||||
|
QLabel *label_imagen; |
||||
|
QFrame *frame_titulo; |
||||
|
QGridLayout *gridLayout; |
||||
|
QHBoxLayout *horizontalLayout_5; |
||||
|
QLabel *label_titulo; |
||||
|
QSpacerItem *horizontalSpacer_3; |
||||
|
QLabel *label_maxi; |
||||
|
QSpacerItem *verticalSpacer_3; |
||||
|
QLabel *label_promo; |
||||
|
QLabel *label_status; |
||||
|
QSpacerItem *verticalSpacer_2; |
||||
|
QLabel *label_desc2; |
||||
|
QToolBar *mainToolBar; |
||||
|
QStatusBar *statusBar; |
||||
|
|
||||
|
void setupUi(QMainWindow *Principal) |
||||
|
{ |
||||
|
if (Principal->objectName().isEmpty()) |
||||
|
Principal->setObjectName(QStringLiteral("Principal")); |
||||
|
Principal->resize(521, 637); |
||||
|
centralWidget = new QWidget(Principal); |
||||
|
centralWidget->setObjectName(QStringLiteral("centralWidget")); |
||||
|
gridLayout_2 = new QGridLayout(centralWidget); |
||||
|
gridLayout_2->setSpacing(6); |
||||
|
gridLayout_2->setContentsMargins(11, 11, 11, 11); |
||||
|
gridLayout_2->setObjectName(QStringLiteral("gridLayout_2")); |
||||
|
frame_barra = new QFrame(centralWidget); |
||||
|
frame_barra->setObjectName(QStringLiteral("frame_barra")); |
||||
|
frame_barra->setStyleSheet(QStringLiteral("")); |
||||
|
frame_barra->setFrameShape(QFrame::StyledPanel); |
||||
|
frame_barra->setFrameShadow(QFrame::Sunken); |
||||
|
verticalLayout_2 = new QVBoxLayout(frame_barra); |
||||
|
verticalLayout_2->setSpacing(6); |
||||
|
verticalLayout_2->setContentsMargins(11, 11, 11, 11); |
||||
|
verticalLayout_2->setObjectName(QStringLiteral("verticalLayout_2")); |
||||
|
verticalLayout = new QVBoxLayout(); |
||||
|
verticalLayout->setSpacing(6); |
||||
|
verticalLayout->setObjectName(QStringLiteral("verticalLayout")); |
||||
|
verticalLayout->setContentsMargins(-1, 0, -1, -1); |
||||
|
label_codbar = new QLabel(frame_barra); |
||||
|
label_codbar->setObjectName(QStringLiteral("label_codbar")); |
||||
|
label_codbar->setStyleSheet(QStringLiteral("")); |
||||
|
label_codbar->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter); |
||||
|
|
||||
|
verticalLayout->addWidget(label_codbar); |
||||
|
|
||||
|
horizontalLayout = new QHBoxLayout(); |
||||
|
horizontalLayout->setSpacing(6); |
||||
|
horizontalLayout->setObjectName(QStringLiteral("horizontalLayout")); |
||||
|
horizontalLayout->setContentsMargins(-1, 0, -1, -1); |
||||
|
label_codart = new QLabel(frame_barra); |
||||
|
label_codart->setObjectName(QStringLiteral("label_codart")); |
||||
|
label_codart->setStyleSheet(QStringLiteral("")); |
||||
|
label_codart->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter); |
||||
|
|
||||
|
horizontalLayout->addWidget(label_codart); |
||||
|
|
||||
|
horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum); |
||||
|
|
||||
|
horizontalLayout->addItem(horizontalSpacer); |
||||
|
|
||||
|
label_logo_mca = new QLabel(frame_barra); |
||||
|
label_logo_mca->setObjectName(QStringLiteral("label_logo_mca")); |
||||
|
label_logo_mca->setFocusPolicy(Qt::StrongFocus); |
||||
|
label_logo_mca->setPixmap(QPixmap(QString::fromUtf8(":/Recursos/180.png"))); |
||||
|
label_logo_mca->setScaledContents(false); |
||||
|
|
||||
|
horizontalLayout->addWidget(label_logo_mca); |
||||
|
|
||||
|
|
||||
|
verticalLayout->addLayout(horizontalLayout); |
||||
|
|
||||
|
|
||||
|
verticalLayout_2->addLayout(verticalLayout); |
||||
|
|
||||
|
|
||||
|
gridLayout_2->addWidget(frame_barra, 35, 0, 1, 1); |
||||
|
|
||||
|
label_principal = new QLabel(centralWidget); |
||||
|
label_principal->setObjectName(QStringLiteral("label_principal")); |
||||
|
label_principal->setAlignment(Qt::AlignCenter); |
||||
|
|
||||
|
gridLayout_2->addWidget(label_principal, 6, 0, 1, 1); |
||||
|
|
||||
|
verticalSpacer = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding); |
||||
|
|
||||
|
gridLayout_2->addItem(verticalSpacer, 2, 0, 1, 1); |
||||
|
|
||||
|
label_prom_valida = new QLabel(centralWidget); |
||||
|
label_prom_valida->setObjectName(QStringLiteral("label_prom_valida")); |
||||
|
label_prom_valida->setStyleSheet(QStringLiteral("")); |
||||
|
label_prom_valida->setAlignment(Qt::AlignCenter); |
||||
|
|
||||
|
gridLayout_2->addWidget(label_prom_valida, 11, 0, 1, 1); |
||||
|
|
||||
|
gridLayout_3 = new QGridLayout(); |
||||
|
gridLayout_3->setSpacing(0); |
||||
|
gridLayout_3->setObjectName(QStringLiteral("gridLayout_3")); |
||||
|
gridLayout_3->setSizeConstraint(QLayout::SetNoConstraint); |
||||
|
gridLayout_3->setContentsMargins(-1, 0, -1, -1); |
||||
|
label_ofe = new QLabel(centralWidget); |
||||
|
label_ofe->setObjectName(QStringLiteral("label_ofe")); |
||||
|
label_ofe->setAlignment(Qt::AlignCenter); |
||||
|
|
||||
|
gridLayout_3->addWidget(label_ofe, 0, 1, 1, 1); |
||||
|
|
||||
|
label_precio = new QLabel(centralWidget); |
||||
|
label_precio->setObjectName(QStringLiteral("label_precio")); |
||||
|
label_precio->setStyleSheet(QStringLiteral("")); |
||||
|
label_precio->setAlignment(Qt::AlignCenter); |
||||
|
|
||||
|
gridLayout_3->addWidget(label_precio, 0, 0, 1, 1); |
||||
|
|
||||
|
label_despnorm = new QLabel(centralWidget); |
||||
|
label_despnorm->setObjectName(QStringLiteral("label_despnorm")); |
||||
|
label_despnorm->setAlignment(Qt::AlignCenter); |
||||
|
|
||||
|
gridLayout_3->addWidget(label_despnorm, 1, 0, 1, 1); |
||||
|
|
||||
|
label_despofe = new QLabel(centralWidget); |
||||
|
label_despofe->setObjectName(QStringLiteral("label_despofe")); |
||||
|
label_despofe->setAlignment(Qt::AlignCenter); |
||||
|
|
||||
|
gridLayout_3->addWidget(label_despofe, 1, 1, 1, 1); |
||||
|
|
||||
|
|
||||
|
gridLayout_2->addLayout(gridLayout_3, 8, 0, 1, 1); |
||||
|
|
||||
|
label_desc = new QLabel(centralWidget); |
||||
|
label_desc->setObjectName(QStringLiteral("label_desc")); |
||||
|
label_desc->setStyleSheet(QStringLiteral("")); |
||||
|
label_desc->setAlignment(Qt::AlignCenter); |
||||
|
|
||||
|
gridLayout_2->addWidget(label_desc, 4, 0, 1, 1); |
||||
|
|
||||
|
label_imagen = new QLabel(centralWidget); |
||||
|
label_imagen->setObjectName(QStringLiteral("label_imagen")); |
||||
|
label_imagen->setPixmap(QPixmap(QString::fromUtf8(":/Recursos/scanner_250.png"))); |
||||
|
label_imagen->setAlignment(Qt::AlignCenter); |
||||
|
|
||||
|
gridLayout_2->addWidget(label_imagen, 7, 0, 1, 1); |
||||
|
|
||||
|
frame_titulo = new QFrame(centralWidget); |
||||
|
frame_titulo->setObjectName(QStringLiteral("frame_titulo")); |
||||
|
frame_titulo->setFrameShape(QFrame::StyledPanel); |
||||
|
frame_titulo->setFrameShadow(QFrame::Raised); |
||||
|
gridLayout = new QGridLayout(frame_titulo); |
||||
|
gridLayout->setSpacing(6); |
||||
|
gridLayout->setContentsMargins(11, 11, 11, 11); |
||||
|
gridLayout->setObjectName(QStringLiteral("gridLayout")); |
||||
|
horizontalLayout_5 = new QHBoxLayout(); |
||||
|
horizontalLayout_5->setSpacing(6); |
||||
|
horizontalLayout_5->setObjectName(QStringLiteral("horizontalLayout_5")); |
||||
|
horizontalLayout_5->setContentsMargins(-1, 0, -1, -1); |
||||
|
label_titulo = new QLabel(frame_titulo); |
||||
|
label_titulo->setObjectName(QStringLiteral("label_titulo")); |
||||
|
label_titulo->setStyleSheet(QStringLiteral("")); |
||||
|
label_titulo->setAlignment(Qt::AlignCenter); |
||||
|
|
||||
|
horizontalLayout_5->addWidget(label_titulo); |
||||
|
|
||||
|
horizontalSpacer_3 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum); |
||||
|
|
||||
|
horizontalLayout_5->addItem(horizontalSpacer_3); |
||||
|
|
||||
|
label_maxi = new QLabel(frame_titulo); |
||||
|
label_maxi->setObjectName(QStringLiteral("label_maxi")); |
||||
|
label_maxi->setPixmap(QPixmap(QString::fromUtf8(":/Recursos/chico_emanuel_logo.png"))); |
||||
|
label_maxi->setAlignment(Qt::AlignCenter); |
||||
|
|
||||
|
horizontalLayout_5->addWidget(label_maxi); |
||||
|
|
||||
|
|
||||
|
gridLayout->addLayout(horizontalLayout_5, 2, 0, 1, 1); |
||||
|
|
||||
|
|
||||
|
gridLayout_2->addWidget(frame_titulo, 1, 0, 1, 1); |
||||
|
|
||||
|
verticalSpacer_3 = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding); |
||||
|
|
||||
|
gridLayout_2->addItem(verticalSpacer_3, 12, 0, 1, 1); |
||||
|
|
||||
|
label_promo = new QLabel(centralWidget); |
||||
|
label_promo->setObjectName(QStringLiteral("label_promo")); |
||||
|
label_promo->setStyleSheet(QStringLiteral("")); |
||||
|
label_promo->setAlignment(Qt::AlignCenter); |
||||
|
|
||||
|
gridLayout_2->addWidget(label_promo, 10, 0, 1, 1); |
||||
|
|
||||
|
label_status = new QLabel(centralWidget); |
||||
|
label_status->setObjectName(QStringLiteral("label_status")); |
||||
|
label_status->setStyleSheet(QStringLiteral("")); |
||||
|
label_status->setAlignment(Qt::AlignCenter); |
||||
|
|
||||
|
gridLayout_2->addWidget(label_status, 3, 0, 1, 1); |
||||
|
|
||||
|
verticalSpacer_2 = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding); |
||||
|
|
||||
|
gridLayout_2->addItem(verticalSpacer_2, 9, 0, 1, 1); |
||||
|
|
||||
|
label_desc2 = new QLabel(centralWidget); |
||||
|
label_desc2->setObjectName(QStringLiteral("label_desc2")); |
||||
|
label_desc2->setAlignment(Qt::AlignCenter); |
||||
|
|
||||
|
gridLayout_2->addWidget(label_desc2, 5, 0, 1, 1); |
||||
|
|
||||
|
Principal->setCentralWidget(centralWidget); |
||||
|
mainToolBar = new QToolBar(Principal); |
||||
|
mainToolBar->setObjectName(QStringLiteral("mainToolBar")); |
||||
|
Principal->addToolBar(Qt::TopToolBarArea, mainToolBar); |
||||
|
statusBar = new QStatusBar(Principal); |
||||
|
statusBar->setObjectName(QStringLiteral("statusBar")); |
||||
|
Principal->setStatusBar(statusBar); |
||||
|
|
||||
|
retranslateUi(Principal); |
||||
|
|
||||
|
QMetaObject::connectSlotsByName(Principal); |
||||
|
} // setupUi |
||||
|
|
||||
|
void retranslateUi(QMainWindow *Principal) |
||||
|
{ |
||||
|
Principal->setWindowTitle(QApplication::translate("Principal", "Mcanet", Q_NULLPTR)); |
||||
|
label_codbar->setText(QApplication::translate("Principal", "C\303\263digo de barras", Q_NULLPTR)); |
||||
|
label_codart->setText(QApplication::translate("Principal", "C\303\263digo interno", Q_NULLPTR)); |
||||
|
label_logo_mca->setText(QString()); |
||||
|
label_principal->setText(QApplication::translate("Principal", "Principal", Q_NULLPTR)); |
||||
|
label_prom_valida->setText(QApplication::translate("Principal", "Promo valida d h", Q_NULLPTR)); |
||||
|
label_ofe->setText(QApplication::translate("Principal", "Oferta", Q_NULLPTR)); |
||||
|
label_precio->setText(QApplication::translate("Principal", "Precio", Q_NULLPTR)); |
||||
|
label_despnorm->setText(QApplication::translate("Principal", "Precio normal", Q_NULLPTR)); |
||||
|
label_despofe->setText(QApplication::translate("Principal", "Precio Oferta", Q_NULLPTR)); |
||||
|
label_desc->setText(QApplication::translate("Principal", "Descripci\303\263n", Q_NULLPTR)); |
||||
|
label_imagen->setText(QString()); |
||||
|
label_titulo->setText(QApplication::translate("Principal", "Consulta de precios", Q_NULLPTR)); |
||||
|
label_maxi->setText(QString()); |
||||
|
label_promo->setText(QApplication::translate("Principal", "Promo", Q_NULLPTR)); |
||||
|
label_status->setText(QApplication::translate("Principal", "Estado", Q_NULLPTR)); |
||||
|
label_desc2->setText(QApplication::translate("Principal", "Descripci\303\263n 2", Q_NULLPTR)); |
||||
|
} // retranslateUi |
||||
|
|
||||
|
}; |
||||
|
|
||||
|
namespace Ui { |
||||
|
class Principal: public Ui_Principal {}; |
||||
|
} // namespace Ui |
||||
|
|
||||
|
QT_END_NAMESPACE |
||||
|
|
||||
|
#endif // UI_PRINCIPAL_H |