迁移vs2017
@@ -1,20 +0,0 @@
 | 
				
			|||||||
 | 
					 | 
				
			||||||
Microsoft Visual Studio Solution File, Format Version 11.00
 | 
					 | 
				
			||||||
# Visual Studio 2010
 | 
					 | 
				
			||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TelSalePolicyInfoManager", "TelSalePolicyInfoManager\TelSalePolicyInfoManager.vcxproj", "{D8C5BD12-F9A9-48B7-B02E-F3ACF2431DBD}"
 | 
					 | 
				
			||||||
EndProject
 | 
					 | 
				
			||||||
Global
 | 
					 | 
				
			||||||
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
 | 
					 | 
				
			||||||
		Debug|Win32 = Debug|Win32
 | 
					 | 
				
			||||||
		Release|Win32 = Release|Win32
 | 
					 | 
				
			||||||
	EndGlobalSection
 | 
					 | 
				
			||||||
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
 | 
					 | 
				
			||||||
		{D8C5BD12-F9A9-48B7-B02E-F3ACF2431DBD}.Debug|Win32.ActiveCfg = Debug|Win32
 | 
					 | 
				
			||||||
		{D8C5BD12-F9A9-48B7-B02E-F3ACF2431DBD}.Debug|Win32.Build.0 = Debug|Win32
 | 
					 | 
				
			||||||
		{D8C5BD12-F9A9-48B7-B02E-F3ACF2431DBD}.Release|Win32.ActiveCfg = Release|Win32
 | 
					 | 
				
			||||||
		{D8C5BD12-F9A9-48B7-B02E-F3ACF2431DBD}.Release|Win32.Build.0 = Release|Win32
 | 
					 | 
				
			||||||
	EndGlobalSection
 | 
					 | 
				
			||||||
	GlobalSection(SolutionProperties) = preSolution
 | 
					 | 
				
			||||||
		HideSolutionNode = FALSE
 | 
					 | 
				
			||||||
	EndGlobalSection
 | 
					 | 
				
			||||||
EndGlobal
 | 
					 | 
				
			||||||
@@ -0,0 +1,26 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					Microsoft Visual Studio Solution File, Format Version 12.00
 | 
				
			||||||
 | 
					# Visual Studio 15
 | 
				
			||||||
 | 
					VisualStudioVersion = 15.0.27004.2010
 | 
				
			||||||
 | 
					MinimumVisualStudioVersion = 10.0.40219.1
 | 
				
			||||||
 | 
					Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TelSalePolicyInfoManager", "TelSalePolicyInfoManager\TelSalePolicyInfoManager.vcxproj", "{D8C5BD12-F9A9-48B7-B02E-F3ACF2431DBD}"
 | 
				
			||||||
 | 
					EndProject
 | 
				
			||||||
 | 
					Global
 | 
				
			||||||
 | 
						GlobalSection(SolutionConfigurationPlatforms) = preSolution
 | 
				
			||||||
 | 
							Debug|x86 = Debug|x86
 | 
				
			||||||
 | 
							Release|x86 = Release|x86
 | 
				
			||||||
 | 
						EndGlobalSection
 | 
				
			||||||
 | 
						GlobalSection(ProjectConfigurationPlatforms) = postSolution
 | 
				
			||||||
 | 
							{D8C5BD12-F9A9-48B7-B02E-F3ACF2431DBD}.Debug|x86.ActiveCfg = Debug|Win32
 | 
				
			||||||
 | 
							{D8C5BD12-F9A9-48B7-B02E-F3ACF2431DBD}.Debug|x86.Build.0 = Debug|Win32
 | 
				
			||||||
 | 
							{D8C5BD12-F9A9-48B7-B02E-F3ACF2431DBD}.Release|x86.ActiveCfg = Release|Win32
 | 
				
			||||||
 | 
							{D8C5BD12-F9A9-48B7-B02E-F3ACF2431DBD}.Release|x86.Build.0 = Release|Win32
 | 
				
			||||||
 | 
						EndGlobalSection
 | 
				
			||||||
 | 
						GlobalSection(SolutionProperties) = preSolution
 | 
				
			||||||
 | 
							HideSolutionNode = FALSE
 | 
				
			||||||
 | 
						EndGlobalSection
 | 
				
			||||||
 | 
						GlobalSection(ExtensibilityGlobals) = postSolution
 | 
				
			||||||
 | 
							Qt5Version = winrt_x86_msvc2017
 | 
				
			||||||
 | 
							SolutionGuid = {3983EF0A-DBC9-4B43-B9E7-1BC46B0FDE0B}
 | 
				
			||||||
 | 
						EndGlobalSection
 | 
				
			||||||
 | 
					EndGlobal
 | 
				
			||||||
| 
		 Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB  | 
| 
		 Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB  | 
| 
		 Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB  | 
| 
		 Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 37 KiB  | 
| 
		 Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 66 KiB  | 
| 
		 Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB  | 
| 
		 Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 34 KiB  | 
| 
		 Before Width: | Height: | Size: 8.4 KiB After Width: | Height: | Size: 8.4 KiB  | 
| 
		 Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB  | 
| 
		 Before Width: | Height: | Size: 542 B After Width: | Height: | Size: 542 B  | 
| 
		 Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB  | 
| 
		 Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 6.2 KiB  | 
| 
		 Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB  | 
| 
		 Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB  | 
| 
		 Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 5.2 KiB  | 
| 
		 Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB  | 
| 
		 Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB  | 
| 
		 Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB  | 
| 
		 Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB  | 
| 
		 Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB  | 
| 
		 Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB  | 
| 
		 Before Width: | Height: | Size: 952 B After Width: | Height: | Size: 952 B  | 
| 
		 Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB  | 
| 
		 Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB  | 
| 
		 Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB  | 
| 
		 Before Width: | Height: | Size: 7.5 KiB After Width: | Height: | Size: 7.5 KiB  | 
| 
		 Before Width: | Height: | Size: 6.6 KiB After Width: | Height: | Size: 6.6 KiB  | 
| 
		 Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 29 KiB  | 
| 
		 Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB  | 
| 
		 Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 66 KiB  | 
@@ -1,5 +1,5 @@
 | 
				
			|||||||
<?xml version="1.0" encoding="utf-8"?>
 | 
					<?xml version="1.0" encoding="utf-8"?>
 | 
				
			||||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
 | 
					<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
 | 
				
			||||||
  <ItemGroup Label="ProjectConfigurations">
 | 
					  <ItemGroup Label="ProjectConfigurations">
 | 
				
			||||||
    <ProjectConfiguration Include="Debug|Win32">
 | 
					    <ProjectConfiguration Include="Debug|Win32">
 | 
				
			||||||
      <Configuration>Debug</Configuration>
 | 
					      <Configuration>Debug</Configuration>
 | 
				
			||||||
@@ -13,13 +13,16 @@
 | 
				
			|||||||
  <PropertyGroup Label="Globals">
 | 
					  <PropertyGroup Label="Globals">
 | 
				
			||||||
    <ProjectGuid>{D8C5BD12-F9A9-48B7-B02E-F3ACF2431DBD}</ProjectGuid>
 | 
					    <ProjectGuid>{D8C5BD12-F9A9-48B7-B02E-F3ACF2431DBD}</ProjectGuid>
 | 
				
			||||||
    <Keyword>Qt4VSv1.0</Keyword>
 | 
					    <Keyword>Qt4VSv1.0</Keyword>
 | 
				
			||||||
 | 
					    <WindowsTargetPlatformVersion>10.0.14393.0</WindowsTargetPlatformVersion>
 | 
				
			||||||
  </PropertyGroup>
 | 
					  </PropertyGroup>
 | 
				
			||||||
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
 | 
					  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
 | 
				
			||||||
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
 | 
					  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
 | 
				
			||||||
    <ConfigurationType>Application</ConfigurationType>
 | 
					    <ConfigurationType>Application</ConfigurationType>
 | 
				
			||||||
 | 
					    <PlatformToolset>v100</PlatformToolset>
 | 
				
			||||||
  </PropertyGroup>
 | 
					  </PropertyGroup>
 | 
				
			||||||
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
 | 
					  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
 | 
				
			||||||
    <ConfigurationType>Application</ConfigurationType>
 | 
					    <ConfigurationType>Application</ConfigurationType>
 | 
				
			||||||
 | 
					    <PlatformToolset>v141</PlatformToolset>
 | 
				
			||||||
  </PropertyGroup>
 | 
					  </PropertyGroup>
 | 
				
			||||||
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
 | 
					  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
 | 
				
			||||||
  <ImportGroup Label="ExtensionSettings">
 | 
					  <ImportGroup Label="ExtensionSettings">
 | 
				
			||||||
@@ -48,7 +51,7 @@
 | 
				
			|||||||
  </PropertyGroup>
 | 
					  </PropertyGroup>
 | 
				
			||||||
  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
 | 
					  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
 | 
				
			||||||
    <ClCompile>
 | 
					    <ClCompile>
 | 
				
			||||||
      <PreprocessorDefinitions>UNICODE;WIN32;WIN64;QT_DLL;QT_CORE_LIB;QT_GUI_LIB;QT_WIDGETS_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
 | 
					      <PreprocessorDefinitions>UNICODE;WIN32;WIN64;QT_CORE_LIB;QT_GUI_LIB;QT_WIDGETS_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
 | 
				
			||||||
      <AdditionalIncludeDirectories>.\GeneratedFiles;.;$(QTDIR)\include;.\GeneratedFiles\$(ConfigurationName);$(QTDIR)\include\QtCore;$(QTDIR)\include\QtGui;$(QTDIR)\include\QtWidgets;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
 | 
					      <AdditionalIncludeDirectories>.\GeneratedFiles;.;$(QTDIR)\include;.\GeneratedFiles\$(ConfigurationName);$(QTDIR)\include\QtCore;$(QTDIR)\include\QtGui;$(QTDIR)\include\QtWidgets;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
 | 
				
			||||||
      <Optimization>Disabled</Optimization>
 | 
					      <Optimization>Disabled</Optimization>
 | 
				
			||||||
      <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
 | 
					      <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
 | 
				
			||||||
@@ -65,7 +68,7 @@
 | 
				
			|||||||
  </ItemDefinitionGroup>
 | 
					  </ItemDefinitionGroup>
 | 
				
			||||||
  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
 | 
					  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
 | 
				
			||||||
    <ClCompile>
 | 
					    <ClCompile>
 | 
				
			||||||
      <PreprocessorDefinitions>UNICODE;WIN32;WIN64;QT_DLL;QT_NO_DEBUG;NDEBUG;QT_CORE_LIB;QT_GUI_LIB;QT_WIDGETS_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
 | 
					      <PreprocessorDefinitions>UNICODE;WIN32;WIN64;QT_NO_DEBUG;NDEBUG;QT_CORE_LIB;QT_GUI_LIB;QT_WIDGETS_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
 | 
				
			||||||
      <AdditionalIncludeDirectories>.\GeneratedFiles;.;$(QTDIR)\include;.\GeneratedFiles\$(ConfigurationName);$(QTDIR)\include\QtCore;$(QTDIR)\include\QtGui;$(QTDIR)\include\QtWidgets;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
 | 
					      <AdditionalIncludeDirectories>.\GeneratedFiles;.;$(QTDIR)\include;.\GeneratedFiles\$(ConfigurationName);$(QTDIR)\include\QtCore;$(QTDIR)\include\QtGui;$(QTDIR)\include\QtWidgets;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
 | 
				
			||||||
      <DebugInformationFormat>
 | 
					      <DebugInformationFormat>
 | 
				
			||||||
      </DebugInformationFormat>
 | 
					      </DebugInformationFormat>
 | 
				
			||||||
@@ -149,11 +152,11 @@
 | 
				
			|||||||
      <AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(QTDIR)\bin\moc.exe;%(FullPath)</AdditionalInputs>
 | 
					      <AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(QTDIR)\bin\moc.exe;%(FullPath)</AdditionalInputs>
 | 
				
			||||||
      <Message Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Moc%27ing QMainFrame.h...</Message>
 | 
					      <Message Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Moc%27ing QMainFrame.h...</Message>
 | 
				
			||||||
      <Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">.\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp</Outputs>
 | 
					      <Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">.\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp</Outputs>
 | 
				
			||||||
      <Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">"$(QTDIR)\bin\moc.exe"  "%(FullPath)" -o ".\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp"  -DUNICODE -DWIN32 -DWIN64 -DQT_DLL -DQT_CORE_LIB -DQT_GUI_LIB -DQT_WIDGETS_LIB "-I.\GeneratedFiles" "-I." "-I$(QTDIR)\include" "-I.\GeneratedFiles\$(ConfigurationName)\." "-I$(QTDIR)\include\QtCore" "-I$(QTDIR)\include\QtGui" "-I$(QTDIR)\include\QtWidgets"</Command>
 | 
					      <Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">"$(QTDIR)\bin\moc.exe"  "%(FullPath)" -o ".\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp"  -DUNICODE -DWIN32 -DWIN64 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_WIDGETS_LIB  "-I.\GeneratedFiles" "-I." "-I$(QTDIR)\include" "-I.\GeneratedFiles\$(ConfigurationName)\." "-I$(QTDIR)\include\QtCore" "-I$(QTDIR)\include\QtGui" "-I$(QTDIR)\include\QtWidgets"</Command>
 | 
				
			||||||
      <AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(QTDIR)\bin\moc.exe;%(FullPath)</AdditionalInputs>
 | 
					      <AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(QTDIR)\bin\moc.exe;%(FullPath)</AdditionalInputs>
 | 
				
			||||||
      <Message Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Moc%27ing QMainFrame.h...</Message>
 | 
					      <Message Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Moc%27ing QMainFrame.h...</Message>
 | 
				
			||||||
      <Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">.\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp</Outputs>
 | 
					      <Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">.\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp</Outputs>
 | 
				
			||||||
      <Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">"$(QTDIR)\bin\moc.exe"  "%(FullPath)" -o ".\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp"  -DUNICODE -DWIN32 -DWIN64 -DQT_DLL -DQT_NO_DEBUG -DNDEBUG -DQT_CORE_LIB -DQT_GUI_LIB -DQT_WIDGETS_LIB "-I.\GeneratedFiles" "-I." "-I$(QTDIR)\include" "-I.\GeneratedFiles\$(ConfigurationName)\." "-I$(QTDIR)\include\QtCore" "-I$(QTDIR)\include\QtGui" "-I$(QTDIR)\include\QtWidgets"</Command>
 | 
					      <Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">"$(QTDIR)\bin\moc.exe"  "%(FullPath)" -o ".\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp"  -DUNICODE -DWIN32 -DWIN64 -DQT_NO_DEBUG -DNDEBUG -DQT_CORE_LIB -DQT_GUI_LIB -DQT_WIDGETS_LIB  "-I.\GeneratedFiles" "-I." "-I$(QTDIR)\include" "-I.\GeneratedFiles\$(ConfigurationName)\." "-I$(QTDIR)\include\QtCore" "-I$(QTDIR)\include\QtGui" "-I$(QTDIR)\include\QtWidgets"</Command>
 | 
				
			||||||
    </CustomBuild>
 | 
					    </CustomBuild>
 | 
				
			||||||
    <ClInclude Include="DataManipulation.h" />
 | 
					    <ClInclude Include="DataManipulation.h" />
 | 
				
			||||||
    <ClInclude Include="GeneratedFiles\ui_QConfigurationWidget.h" />
 | 
					    <ClInclude Include="GeneratedFiles\ui_QConfigurationWidget.h" />
 | 
				
			||||||
@@ -162,21 +165,21 @@
 | 
				
			|||||||
      <AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(QTDIR)\bin\moc.exe;%(FullPath)</AdditionalInputs>
 | 
					      <AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(QTDIR)\bin\moc.exe;%(FullPath)</AdditionalInputs>
 | 
				
			||||||
      <Message Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Moc%27ing QMyStackedWidget.h...</Message>
 | 
					      <Message Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Moc%27ing QMyStackedWidget.h...</Message>
 | 
				
			||||||
      <Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">.\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp</Outputs>
 | 
					      <Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">.\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp</Outputs>
 | 
				
			||||||
      <Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">"$(QTDIR)\bin\moc.exe"  "%(FullPath)" -o ".\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp"  -DUNICODE -DWIN32 -DWIN64 -DQT_DLL -DQT_CORE_LIB -DQT_GUI_LIB -DQT_WIDGETS_LIB "-I.\GeneratedFiles" "-I." "-I$(QTDIR)\include" "-I.\GeneratedFiles\$(ConfigurationName)\." "-I$(QTDIR)\include\QtCore" "-I$(QTDIR)\include\QtGui" "-I$(QTDIR)\include\QtWidgets"</Command>
 | 
					      <Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">"$(QTDIR)\bin\moc.exe"  "%(FullPath)" -o ".\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp"  -DUNICODE -DWIN32 -DWIN64 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_WIDGETS_LIB  "-I.\GeneratedFiles" "-I." "-I$(QTDIR)\include" "-I.\GeneratedFiles\$(ConfigurationName)\." "-I$(QTDIR)\include\QtCore" "-I$(QTDIR)\include\QtGui" "-I$(QTDIR)\include\QtWidgets"</Command>
 | 
				
			||||||
      <AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(QTDIR)\bin\moc.exe;%(FullPath)</AdditionalInputs>
 | 
					      <AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(QTDIR)\bin\moc.exe;%(FullPath)</AdditionalInputs>
 | 
				
			||||||
      <Message Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Moc%27ing QMyStackedWidget.h...</Message>
 | 
					      <Message Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Moc%27ing QMyStackedWidget.h...</Message>
 | 
				
			||||||
      <Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">.\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp</Outputs>
 | 
					      <Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">.\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp</Outputs>
 | 
				
			||||||
      <Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">"$(QTDIR)\bin\moc.exe"  "%(FullPath)" -o ".\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp"  -DUNICODE -DWIN32 -DWIN64 -DQT_DLL -DQT_NO_DEBUG -DNDEBUG -DQT_CORE_LIB -DQT_GUI_LIB -DQT_WIDGETS_LIB "-I.\GeneratedFiles" "-I." "-I$(QTDIR)\include" "-I.\GeneratedFiles\$(ConfigurationName)\." "-I$(QTDIR)\include\QtCore" "-I$(QTDIR)\include\QtGui" "-I$(QTDIR)\include\QtWidgets"</Command>
 | 
					      <Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">"$(QTDIR)\bin\moc.exe"  "%(FullPath)" -o ".\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp"  -DUNICODE -DWIN32 -DWIN64 -DQT_NO_DEBUG -DNDEBUG -DQT_CORE_LIB -DQT_GUI_LIB -DQT_WIDGETS_LIB  "-I.\GeneratedFiles" "-I." "-I$(QTDIR)\include" "-I.\GeneratedFiles\$(ConfigurationName)\." "-I$(QTDIR)\include\QtCore" "-I$(QTDIR)\include\QtGui" "-I$(QTDIR)\include\QtWidgets"</Command>
 | 
				
			||||||
    </CustomBuild>
 | 
					    </CustomBuild>
 | 
				
			||||||
    <CustomBuild Include="QTelSalePolicyInfoInputWidget.h">
 | 
					    <CustomBuild Include="QTelSalePolicyInfoInputWidget.h">
 | 
				
			||||||
      <AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(QTDIR)\bin\moc.exe;%(FullPath)</AdditionalInputs>
 | 
					      <AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(QTDIR)\bin\moc.exe;%(FullPath)</AdditionalInputs>
 | 
				
			||||||
      <Message Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Moc%27ing QTelSalePolicyInfoInputWidget.h...</Message>
 | 
					      <Message Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Moc%27ing QTelSalePolicyInfoInputWidget.h...</Message>
 | 
				
			||||||
      <Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">.\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp</Outputs>
 | 
					      <Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">.\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp</Outputs>
 | 
				
			||||||
      <Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">"$(QTDIR)\bin\moc.exe"  "%(FullPath)" -o ".\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp"  -DUNICODE -DWIN32 -DWIN64 -DQT_DLL -DQT_CORE_LIB -DQT_GUI_LIB -DQT_WIDGETS_LIB "-I.\GeneratedFiles" "-I." "-I$(QTDIR)\include" "-I.\GeneratedFiles\$(ConfigurationName)\." "-I$(QTDIR)\include\QtCore" "-I$(QTDIR)\include\QtGui" "-I$(QTDIR)\include\QtWidgets"</Command>
 | 
					      <Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">"$(QTDIR)\bin\moc.exe"  "%(FullPath)" -o ".\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp"  -DUNICODE -DWIN32 -DWIN64 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_WIDGETS_LIB  "-I.\GeneratedFiles" "-I." "-I$(QTDIR)\include" "-I.\GeneratedFiles\$(ConfigurationName)\." "-I$(QTDIR)\include\QtCore" "-I$(QTDIR)\include\QtGui" "-I$(QTDIR)\include\QtWidgets"</Command>
 | 
				
			||||||
      <AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(QTDIR)\bin\moc.exe;%(FullPath)</AdditionalInputs>
 | 
					      <AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(QTDIR)\bin\moc.exe;%(FullPath)</AdditionalInputs>
 | 
				
			||||||
      <Message Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Moc%27ing QTelSalePolicyInfoInputWidget.h...</Message>
 | 
					      <Message Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Moc%27ing QTelSalePolicyInfoInputWidget.h...</Message>
 | 
				
			||||||
      <Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">.\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp</Outputs>
 | 
					      <Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">.\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp</Outputs>
 | 
				
			||||||
      <Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">"$(QTDIR)\bin\moc.exe"  "%(FullPath)" -o ".\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp"  -DUNICODE -DWIN32 -DWIN64 -DQT_DLL -DQT_NO_DEBUG -DNDEBUG -DQT_CORE_LIB -DQT_GUI_LIB -DQT_WIDGETS_LIB "-I.\GeneratedFiles" "-I." "-I$(QTDIR)\include" "-I.\GeneratedFiles\$(ConfigurationName)\." "-I$(QTDIR)\include\QtCore" "-I$(QTDIR)\include\QtGui" "-I$(QTDIR)\include\QtWidgets"</Command>
 | 
					      <Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">"$(QTDIR)\bin\moc.exe"  "%(FullPath)" -o ".\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp"  -DUNICODE -DWIN32 -DWIN64 -DQT_NO_DEBUG -DNDEBUG -DQT_CORE_LIB -DQT_GUI_LIB -DQT_WIDGETS_LIB  "-I.\GeneratedFiles" "-I." "-I$(QTDIR)\include" "-I.\GeneratedFiles\$(ConfigurationName)\." "-I$(QTDIR)\include\QtCore" "-I$(QTDIR)\include\QtGui" "-I$(QTDIR)\include\QtWidgets"</Command>
 | 
				
			||||||
    </CustomBuild>
 | 
					    </CustomBuild>
 | 
				
			||||||
    <ClInclude Include="GeneratedFiles\ui_QRapidInputWidget.h" />
 | 
					    <ClInclude Include="GeneratedFiles\ui_QRapidInputWidget.h" />
 | 
				
			||||||
    <ClInclude Include="GeneratedFiles\ui_QTelSalePolicyInfoInputWidget.h" />
 | 
					    <ClInclude Include="GeneratedFiles\ui_QTelSalePolicyInfoInputWidget.h" />
 | 
				
			||||||
@@ -184,33 +187,33 @@
 | 
				
			|||||||
      <AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(QTDIR)\bin\moc.exe;%(FullPath)</AdditionalInputs>
 | 
					      <AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(QTDIR)\bin\moc.exe;%(FullPath)</AdditionalInputs>
 | 
				
			||||||
      <Message Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Moc%27ing QTelSalePolicyInfoQuery.h...</Message>
 | 
					      <Message Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Moc%27ing QTelSalePolicyInfoQuery.h...</Message>
 | 
				
			||||||
      <Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">.\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp</Outputs>
 | 
					      <Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">.\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp</Outputs>
 | 
				
			||||||
      <Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">"$(QTDIR)\bin\moc.exe"  "%(FullPath)" -o ".\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp"  -DUNICODE -DWIN32 -DWIN64 -DQT_DLL -DQT_CORE_LIB -DQT_GUI_LIB -DQT_WIDGETS_LIB "-I.\GeneratedFiles" "-I." "-I$(QTDIR)\include" "-I.\GeneratedFiles\$(ConfigurationName)\." "-I$(QTDIR)\include\QtCore" "-I$(QTDIR)\include\QtGui" "-I$(QTDIR)\include\QtWidgets"</Command>
 | 
					      <Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">"$(QTDIR)\bin\moc.exe"  "%(FullPath)" -o ".\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp"  -DUNICODE -DWIN32 -DWIN64 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_WIDGETS_LIB  "-I.\GeneratedFiles" "-I." "-I$(QTDIR)\include" "-I.\GeneratedFiles\$(ConfigurationName)\." "-I$(QTDIR)\include\QtCore" "-I$(QTDIR)\include\QtGui" "-I$(QTDIR)\include\QtWidgets"</Command>
 | 
				
			||||||
      <AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(QTDIR)\bin\moc.exe;%(FullPath)</AdditionalInputs>
 | 
					      <AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(QTDIR)\bin\moc.exe;%(FullPath)</AdditionalInputs>
 | 
				
			||||||
      <Message Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Moc%27ing QTelSalePolicyInfoQuery.h...</Message>
 | 
					      <Message Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Moc%27ing QTelSalePolicyInfoQuery.h...</Message>
 | 
				
			||||||
      <Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">.\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp</Outputs>
 | 
					      <Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">.\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp</Outputs>
 | 
				
			||||||
      <Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">"$(QTDIR)\bin\moc.exe"  "%(FullPath)" -o ".\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp"  -DUNICODE -DWIN32 -DWIN64 -DQT_DLL -DQT_NO_DEBUG -DNDEBUG -DQT_CORE_LIB -DQT_GUI_LIB -DQT_WIDGETS_LIB "-I.\GeneratedFiles" "-I." "-I$(QTDIR)\include" "-I.\GeneratedFiles\$(ConfigurationName)\." "-I$(QTDIR)\include\QtCore" "-I$(QTDIR)\include\QtGui" "-I$(QTDIR)\include\QtWidgets"</Command>
 | 
					      <Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">"$(QTDIR)\bin\moc.exe"  "%(FullPath)" -o ".\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp"  -DUNICODE -DWIN32 -DWIN64 -DQT_NO_DEBUG -DNDEBUG -DQT_CORE_LIB -DQT_GUI_LIB -DQT_WIDGETS_LIB  "-I.\GeneratedFiles" "-I." "-I$(QTDIR)\include" "-I.\GeneratedFiles\$(ConfigurationName)\." "-I$(QTDIR)\include\QtCore" "-I$(QTDIR)\include\QtGui" "-I$(QTDIR)\include\QtWidgets"</Command>
 | 
				
			||||||
    </CustomBuild>
 | 
					    </CustomBuild>
 | 
				
			||||||
    <ClInclude Include="GeneratedFiles\ui_QTelSalePolicyInfoQuery.h" />
 | 
					    <ClInclude Include="GeneratedFiles\ui_QTelSalePolicyInfoQuery.h" />
 | 
				
			||||||
    <CustomBuild Include="QConfigurationWidget.h">
 | 
					    <CustomBuild Include="QConfigurationWidget.h">
 | 
				
			||||||
      <AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(QTDIR)\bin\moc.exe;%(FullPath)</AdditionalInputs>
 | 
					      <AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(QTDIR)\bin\moc.exe;%(FullPath)</AdditionalInputs>
 | 
				
			||||||
      <Message Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Moc%27ing QConfigurationWidget.h...</Message>
 | 
					      <Message Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Moc%27ing QConfigurationWidget.h...</Message>
 | 
				
			||||||
      <Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">.\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp</Outputs>
 | 
					      <Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">.\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp</Outputs>
 | 
				
			||||||
      <Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">"$(QTDIR)\bin\moc.exe"  "%(FullPath)" -o ".\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp"  -DUNICODE -DWIN32 -DWIN64 -DQT_DLL -DQT_CORE_LIB -DQT_GUI_LIB -DQT_WIDGETS_LIB "-I.\GeneratedFiles" "-I." "-I$(QTDIR)\include" "-I.\GeneratedFiles\$(ConfigurationName)\." "-I$(QTDIR)\include\QtCore" "-I$(QTDIR)\include\QtGui" "-I$(QTDIR)\include\QtWidgets"</Command>
 | 
					      <Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">"$(QTDIR)\bin\moc.exe"  "%(FullPath)" -o ".\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp"  -DUNICODE -DWIN32 -DWIN64 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_WIDGETS_LIB  "-I.\GeneratedFiles" "-I." "-I$(QTDIR)\include" "-I.\GeneratedFiles\$(ConfigurationName)\." "-I$(QTDIR)\include\QtCore" "-I$(QTDIR)\include\QtGui" "-I$(QTDIR)\include\QtWidgets"</Command>
 | 
				
			||||||
      <AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(QTDIR)\bin\moc.exe;%(FullPath)</AdditionalInputs>
 | 
					      <AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(QTDIR)\bin\moc.exe;%(FullPath)</AdditionalInputs>
 | 
				
			||||||
      <Message Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Moc%27ing QConfigurationWidget.h...</Message>
 | 
					      <Message Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Moc%27ing QConfigurationWidget.h...</Message>
 | 
				
			||||||
      <Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">.\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp</Outputs>
 | 
					      <Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">.\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp</Outputs>
 | 
				
			||||||
      <Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">"$(QTDIR)\bin\moc.exe"  "%(FullPath)" -o ".\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp"  -DUNICODE -DWIN32 -DWIN64 -DQT_DLL -DQT_NO_DEBUG -DNDEBUG -DQT_CORE_LIB -DQT_GUI_LIB -DQT_WIDGETS_LIB "-I.\GeneratedFiles" "-I." "-I$(QTDIR)\include" "-I.\GeneratedFiles\$(ConfigurationName)\." "-I$(QTDIR)\include\QtCore" "-I$(QTDIR)\include\QtGui" "-I$(QTDIR)\include\QtWidgets"</Command>
 | 
					      <Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">"$(QTDIR)\bin\moc.exe"  "%(FullPath)" -o ".\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp"  -DUNICODE -DWIN32 -DWIN64 -DQT_NO_DEBUG -DNDEBUG -DQT_CORE_LIB -DQT_GUI_LIB -DQT_WIDGETS_LIB  "-I.\GeneratedFiles" "-I." "-I$(QTDIR)\include" "-I.\GeneratedFiles\$(ConfigurationName)\." "-I$(QTDIR)\include\QtCore" "-I$(QTDIR)\include\QtGui" "-I$(QTDIR)\include\QtWidgets"</Command>
 | 
				
			||||||
    </CustomBuild>
 | 
					    </CustomBuild>
 | 
				
			||||||
    <ClInclude Include="Parameters.h" />
 | 
					    <ClInclude Include="Parameters.h" />
 | 
				
			||||||
    <CustomBuild Include="QRapidInputWidget.h">
 | 
					    <CustomBuild Include="QRapidInputWidget.h">
 | 
				
			||||||
      <AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(QTDIR)\bin\moc.exe;%(FullPath)</AdditionalInputs>
 | 
					      <AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(QTDIR)\bin\moc.exe;%(FullPath)</AdditionalInputs>
 | 
				
			||||||
      <Message Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Moc%27ing QRapidInputWidget.h...</Message>
 | 
					      <Message Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Moc%27ing QRapidInputWidget.h...</Message>
 | 
				
			||||||
      <Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">.\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp</Outputs>
 | 
					      <Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">.\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp</Outputs>
 | 
				
			||||||
      <Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">"$(QTDIR)\bin\moc.exe"  "%(FullPath)" -o ".\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp"  -DUNICODE -DWIN32 -DWIN64 -DQT_DLL -DQT_CORE_LIB -DQT_GUI_LIB -DQT_WIDGETS_LIB "-I.\GeneratedFiles" "-I." "-I$(QTDIR)\include" "-I.\GeneratedFiles\$(ConfigurationName)\." "-I$(QTDIR)\include\QtCore" "-I$(QTDIR)\include\QtGui" "-I$(QTDIR)\include\QtWidgets"</Command>
 | 
					      <Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">"$(QTDIR)\bin\moc.exe"  "%(FullPath)" -o ".\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp"  -DUNICODE -DWIN32 -DWIN64 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_WIDGETS_LIB  "-I.\GeneratedFiles" "-I." "-I$(QTDIR)\include" "-I.\GeneratedFiles\$(ConfigurationName)\." "-I$(QTDIR)\include\QtCore" "-I$(QTDIR)\include\QtGui" "-I$(QTDIR)\include\QtWidgets"</Command>
 | 
				
			||||||
      <AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(QTDIR)\bin\moc.exe;%(FullPath)</AdditionalInputs>
 | 
					      <AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(QTDIR)\bin\moc.exe;%(FullPath)</AdditionalInputs>
 | 
				
			||||||
      <Message Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Moc%27ing QRapidInputWidget.h...</Message>
 | 
					      <Message Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Moc%27ing QRapidInputWidget.h...</Message>
 | 
				
			||||||
      <Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">.\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp</Outputs>
 | 
					      <Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">.\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp</Outputs>
 | 
				
			||||||
      <Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">"$(QTDIR)\bin\moc.exe"  "%(FullPath)" -o ".\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp"  -DUNICODE -DWIN32 -DWIN64 -DQT_DLL -DQT_NO_DEBUG -DNDEBUG -DQT_CORE_LIB -DQT_GUI_LIB -DQT_WIDGETS_LIB "-I.\GeneratedFiles" "-I." "-I$(QTDIR)\include" "-I.\GeneratedFiles\$(ConfigurationName)\." "-I$(QTDIR)\include\QtCore" "-I$(QTDIR)\include\QtGui" "-I$(QTDIR)\include\QtWidgets"</Command>
 | 
					      <Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">"$(QTDIR)\bin\moc.exe"  "%(FullPath)" -o ".\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp"  -DUNICODE -DWIN32 -DWIN64 -DQT_NO_DEBUG -DNDEBUG -DQT_CORE_LIB -DQT_GUI_LIB -DQT_WIDGETS_LIB  "-I.\GeneratedFiles" "-I." "-I$(QTDIR)\include" "-I.\GeneratedFiles\$(ConfigurationName)\." "-I$(QTDIR)\include\QtCore" "-I$(QTDIR)\include\QtGui" "-I$(QTDIR)\include\QtWidgets"</Command>
 | 
				
			||||||
    </CustomBuild>
 | 
					    </CustomBuild>
 | 
				
			||||||
    <ClInclude Include="sqlite\sqlite3.h" />
 | 
					    <ClInclude Include="sqlite\sqlite3.h" />
 | 
				
			||||||
    <ClInclude Include="sqlite\sqlite3ext.h" />
 | 
					    <ClInclude Include="sqlite\sqlite3ext.h" />
 | 
				
			||||||
@@ -222,11 +225,11 @@
 | 
				
			|||||||
      <AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(QTDIR)\bin\moc.exe;%(FullPath)</AdditionalInputs>
 | 
					      <AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(QTDIR)\bin\moc.exe;%(FullPath)</AdditionalInputs>
 | 
				
			||||||
      <Message Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Moc%27ing QLoginWidget.h...</Message>
 | 
					      <Message Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Moc%27ing QLoginWidget.h...</Message>
 | 
				
			||||||
      <Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">.\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp</Outputs>
 | 
					      <Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">.\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp</Outputs>
 | 
				
			||||||
      <Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">"$(QTDIR)\bin\moc.exe"  "%(FullPath)" -o ".\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp"  -DUNICODE -DWIN32 -DWIN64 -DQT_DLL -DQT_CORE_LIB -DQT_GUI_LIB -DQT_WIDGETS_LIB "-I.\GeneratedFiles" "-I." "-I$(QTDIR)\include" "-I.\GeneratedFiles\$(ConfigurationName)\." "-I$(QTDIR)\include\QtCore" "-I$(QTDIR)\include\QtGui" "-I$(QTDIR)\include\QtWidgets"</Command>
 | 
					      <Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">"$(QTDIR)\bin\moc.exe"  "%(FullPath)" -o ".\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp"  -DUNICODE -DWIN32 -DWIN64 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_WIDGETS_LIB  "-I.\GeneratedFiles" "-I." "-I$(QTDIR)\include" "-I.\GeneratedFiles\$(ConfigurationName)\." "-I$(QTDIR)\include\QtCore" "-I$(QTDIR)\include\QtGui" "-I$(QTDIR)\include\QtWidgets"</Command>
 | 
				
			||||||
      <AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(QTDIR)\bin\moc.exe;%(FullPath)</AdditionalInputs>
 | 
					      <AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(QTDIR)\bin\moc.exe;%(FullPath)</AdditionalInputs>
 | 
				
			||||||
      <Message Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Moc%27ing QLoginWidget.h...</Message>
 | 
					      <Message Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Moc%27ing QLoginWidget.h...</Message>
 | 
				
			||||||
      <Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">.\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp</Outputs>
 | 
					      <Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">.\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp</Outputs>
 | 
				
			||||||
      <Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">"$(QTDIR)\bin\moc.exe"  "%(FullPath)" -o ".\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp"  -DUNICODE -DWIN32 -DWIN64 -DQT_DLL -DQT_NO_DEBUG -DNDEBUG -DQT_CORE_LIB -DQT_GUI_LIB -DQT_WIDGETS_LIB "-I.\GeneratedFiles" "-I." "-I$(QTDIR)\include" "-I.\GeneratedFiles\$(ConfigurationName)\." "-I$(QTDIR)\include\QtCore" "-I$(QTDIR)\include\QtGui" "-I$(QTDIR)\include\QtWidgets"</Command>
 | 
					      <Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">"$(QTDIR)\bin\moc.exe"  "%(FullPath)" -o ".\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp"  -DUNICODE -DWIN32 -DWIN64 -DQT_NO_DEBUG -DNDEBUG -DQT_CORE_LIB -DQT_GUI_LIB -DQT_WIDGETS_LIB  "-I.\GeneratedFiles" "-I." "-I$(QTDIR)\include" "-I.\GeneratedFiles\$(ConfigurationName)\." "-I$(QTDIR)\include\QtCore" "-I$(QTDIR)\include\QtGui" "-I$(QTDIR)\include\QtWidgets"</Command>
 | 
				
			||||||
    </CustomBuild>
 | 
					    </CustomBuild>
 | 
				
			||||||
  </ItemGroup>
 | 
					  </ItemGroup>
 | 
				
			||||||
  <ItemGroup>
 | 
					  <ItemGroup>
 | 
				
			||||||
@@ -328,7 +331,7 @@
 | 
				
			|||||||
  </ImportGroup>
 | 
					  </ImportGroup>
 | 
				
			||||||
  <ProjectExtensions>
 | 
					  <ProjectExtensions>
 | 
				
			||||||
    <VisualStudio>
 | 
					    <VisualStudio>
 | 
				
			||||||
      <UserProperties UicDir=".\GeneratedFiles" MocDir=".\GeneratedFiles\$(ConfigurationName)" MocOptions="" RccDir=".\GeneratedFiles" lupdateOnBuild="0" lupdateOptions="" lreleaseOptions="" Qt5Version_x0020_Win32="qt_5.5.1_msvc2010" />
 | 
					      <UserProperties MocDir=".\GeneratedFiles\$(ConfigurationName)" UicDir=".\GeneratedFiles" RccDir=".\GeneratedFiles" lupdateOptions="" lupdateOnBuild="0" lreleaseOptions="" Qt5Version_x0020_Win32="winrt_x86_msvc2017" Qt5Version_x0020_x64="$(DefaultQtVersion)" MocOptions="" />
 | 
				
			||||||
    </VisualStudio>
 | 
					    </VisualStudio>
 | 
				
			||||||
  </ProjectExtensions>
 | 
					  </ProjectExtensions>
 | 
				
			||||||
</Project>
 | 
					</Project>
 | 
				
			||||||
@@ -1,11 +1,11 @@
 | 
				
			|||||||
<?xml version="1.0" encoding="utf-8"?>
 | 
					<?xml version="1.0" encoding="utf-8"?>
 | 
				
			||||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
 | 
					<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
 | 
				
			||||||
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
 | 
					  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
 | 
				
			||||||
    <QTDIR>D:\develop\sdk\qt\qt_5.5.1_msvc2010\5.5\msvc2010</QTDIR>
 | 
					    <QTDIR>D:\develop\sdk\c\qt\qt_5.9.2\5.9.2\winrt_x86_msvc2017</QTDIR>
 | 
				
			||||||
    <LocalDebuggerEnvironment>PATH=$(QTDIR)\bin%3b$(PATH)</LocalDebuggerEnvironment>
 | 
					    <LocalDebuggerEnvironment>PATH=$(QTDIR)\bin%3b$(PATH)</LocalDebuggerEnvironment>
 | 
				
			||||||
  </PropertyGroup>
 | 
					  </PropertyGroup>
 | 
				
			||||||
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
 | 
					  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
 | 
				
			||||||
    <QTDIR>D:\develop\sdk\qt\qt_5.5.1_msvc2010\5.5\msvc2010</QTDIR>
 | 
					    <QTDIR>D:\develop\sdk\c\qt\qt_5.9.2\5.9.2\winrt_x86_msvc2017</QTDIR>
 | 
				
			||||||
    <LocalDebuggerEnvironment>PATH=$(QTDIR)\bin%3b$(PATH)</LocalDebuggerEnvironment>
 | 
					    <LocalDebuggerEnvironment>PATH=$(QTDIR)\bin%3b$(PATH)</LocalDebuggerEnvironment>
 | 
				
			||||||
  </PropertyGroup>
 | 
					  </PropertyGroup>
 | 
				
			||||||
</Project>
 | 
					</Project>
 | 
				
			||||||
							
								
								
									
										
											BIN
										
									
								
								代码/vs2017/TelsaleAuxKit/.vs/TelsaleAuxKit/v15/Browse.VC.db
									
									
									
									
									
										Normal file
									
								
							
							
						
						
							
								
								
									
										32
									
								
								代码/vs2017/TelsaleAuxKit/TelsaleAuxKit.sln
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,32 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					Microsoft Visual Studio Solution File, Format Version 12.00
 | 
				
			||||||
 | 
					# Visual Studio 15
 | 
				
			||||||
 | 
					VisualStudioVersion = 15.0.27130.2010
 | 
				
			||||||
 | 
					MinimumVisualStudioVersion = 10.0.40219.1
 | 
				
			||||||
 | 
					Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TelsaleAuxKit", "TelsaleAuxKit\TelsaleAuxKit.vcxproj", "{B12702AD-ABFB-343A-A199-8E24837244A3}"
 | 
				
			||||||
 | 
					EndProject
 | 
				
			||||||
 | 
					Global
 | 
				
			||||||
 | 
						GlobalSection(SolutionConfigurationPlatforms) = preSolution
 | 
				
			||||||
 | 
							Debug|x64 = Debug|x64
 | 
				
			||||||
 | 
							Debug|x86 = Debug|x86
 | 
				
			||||||
 | 
							Release|x64 = Release|x64
 | 
				
			||||||
 | 
							Release|x86 = Release|x86
 | 
				
			||||||
 | 
						EndGlobalSection
 | 
				
			||||||
 | 
						GlobalSection(ProjectConfigurationPlatforms) = postSolution
 | 
				
			||||||
 | 
							{B12702AD-ABFB-343A-A199-8E24837244A3}.Debug|x64.ActiveCfg = Debug|x64
 | 
				
			||||||
 | 
							{B12702AD-ABFB-343A-A199-8E24837244A3}.Debug|x64.Build.0 = Debug|x64
 | 
				
			||||||
 | 
							{B12702AD-ABFB-343A-A199-8E24837244A3}.Debug|x86.ActiveCfg = Debug|Win32
 | 
				
			||||||
 | 
							{B12702AD-ABFB-343A-A199-8E24837244A3}.Debug|x86.Build.0 = Debug|Win32
 | 
				
			||||||
 | 
							{B12702AD-ABFB-343A-A199-8E24837244A3}.Release|x64.ActiveCfg = Release|x64
 | 
				
			||||||
 | 
							{B12702AD-ABFB-343A-A199-8E24837244A3}.Release|x64.Build.0 = Release|x64
 | 
				
			||||||
 | 
							{B12702AD-ABFB-343A-A199-8E24837244A3}.Release|x86.ActiveCfg = Release|Win32
 | 
				
			||||||
 | 
							{B12702AD-ABFB-343A-A199-8E24837244A3}.Release|x86.Build.0 = Release|Win32
 | 
				
			||||||
 | 
						EndGlobalSection
 | 
				
			||||||
 | 
						GlobalSection(SolutionProperties) = preSolution
 | 
				
			||||||
 | 
							HideSolutionNode = FALSE
 | 
				
			||||||
 | 
						EndGlobalSection
 | 
				
			||||||
 | 
						GlobalSection(ExtensibilityGlobals) = postSolution
 | 
				
			||||||
 | 
							Qt5Version = qt_5.10.0_msvc2017_64
 | 
				
			||||||
 | 
							SolutionGuid = {89ED0A44-DA37-4BE9-97E6-7C42257A3D78}
 | 
				
			||||||
 | 
						EndGlobalSection
 | 
				
			||||||
 | 
					EndGlobal
 | 
				
			||||||
							
								
								
									
										602
									
								
								代码/vs2017/TelsaleAuxKit/TelsaleAuxKit/DataManipulation.cpp
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,602 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					#include <SQLAPI.h>
 | 
				
			||||||
 | 
					#include <string>
 | 
				
			||||||
 | 
					#include <sstream>
 | 
				
			||||||
 | 
					#include <exception>
 | 
				
			||||||
 | 
					#include <stdlib.h>
 | 
				
			||||||
 | 
					#include <libxl.h>
 | 
				
			||||||
 | 
					#include "DataManipulation.h"
 | 
				
			||||||
 | 
					#include "SystemDataQuery.h"
 | 
				
			||||||
 | 
					#include "StringCodeConverter.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#pragma comment( lib, "user32.lib")
 | 
				
			||||||
 | 
					#pragma comment( lib, "version.lib")
 | 
				
			||||||
 | 
					#pragma comment( lib, "oleaut32.lib")
 | 
				
			||||||
 | 
					#pragma comment( lib, "ole32.lib")
 | 
				
			||||||
 | 
					#pragma comment( lib, "libxl.lib")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifdef _DEBUG
 | 
				
			||||||
 | 
					#pragma comment( lib, "sqlapisd.lib")
 | 
				
			||||||
 | 
					#else
 | 
				
			||||||
 | 
					#pragma comment( lib, "sqlapis.lib")
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					const char g_cszConnectStringIDS6[] = 
 | 
				
			||||||
 | 
						"DRIVER={};"
 | 
				
			||||||
 | 
						"PROTOCOL=onsoctcp;"
 | 
				
			||||||
 | 
						"SERVICE=16191;"
 | 
				
			||||||
 | 
						"SERVER=xmcx1;"
 | 
				
			||||||
 | 
						"HOST=10.39.0.91;"
 | 
				
			||||||
 | 
						"DATABASE=ids6;"
 | 
				
			||||||
 | 
						"DB_LOCALE=en_US.819;";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					const static char g_szUserNameIDS6[] = "ccx99";
 | 
				
			||||||
 | 
					const static char g_szPasswordIDS6[] = "c91IT09";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					const static char g_cszConnstringYwgl[] =
 | 
				
			||||||
 | 
						"DRIVER={};"
 | 
				
			||||||
 | 
						"PROTOCOL=onsoctcp;"
 | 
				
			||||||
 | 
						"SERVICE=16192;"
 | 
				
			||||||
 | 
						"SERVER=xmcx2;"
 | 
				
			||||||
 | 
						"HOST=10.39.0.92;"
 | 
				
			||||||
 | 
						"DATABASE=ywgl_xm;"
 | 
				
			||||||
 | 
						"DB_LOCALE=en_US.819;";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					const static char g_cszUserNameYwgl[] = "ccx99";
 | 
				
			||||||
 | 
					const static char g_cszPasswordYwgl[] = "c92IT09";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void queryTelsalePolicyGifts( vector<TelSalePolicyGift> &giftList )
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						SAConnection connection;
 | 
				
			||||||
 | 
						SACommand command;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						string strSQL = "select id, trim(name), default_price from w_dx_gifts";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						command.setConnection( &connection );
 | 
				
			||||||
 | 
						command.setCommandText( strSQL.c_str() );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						try
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							connection.Connect(
 | 
				
			||||||
 | 
								g_cszConnstringYwgl,
 | 
				
			||||||
 | 
								g_cszUserNameYwgl,
 | 
				
			||||||
 | 
								g_cszPasswordYwgl,
 | 
				
			||||||
 | 
								SA_Informix_Client );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							command.Execute();
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						catch ( SAException &error )
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							throw runtime_error( error.ErrText() );
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						while ( command.FetchNext() )
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							TelSalePolicyGift gift;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							gift.Id( command.Field(1).asLong() );
 | 
				
			||||||
 | 
							gift.GiftName( (const char *)(command.Field(2).asString()) );
 | 
				
			||||||
 | 
							gift.GiftDefaultPrice( (const char *)(command.Field(3).asString()) );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							giftList.push_back( gift );
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						connection.Disconnect();
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void SaveTelSalePolicyInfo(const SPolicyRecord & policy, const vector<TelSalePolicyGift> & giftList)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						if ( policy.strPolicySerial.empty() == true )
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							throw invalid_argument( "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊ<EFBFBD><EFBFBD>!" );
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if ( policy.strSalerCode.empty() == true )
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							throw invalid_argument( "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊ<EFBFBD>գ<EFBFBD>" );
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						ostringstream ostrCommand;
 | 
				
			||||||
 | 
						string strAutotraderCall;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
 | 
				
			||||||
 | 
						if ( policy.bIsAutotraderCall == true )
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							strAutotraderCall = "1";
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						else
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							strAutotraderCall = "0";
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						ostrCommand << "insert into w_dxbd_i ( jjbj, khjl, khjllx, bdh, zhjywy, zhjywymc, zhjywybm, zhjywybmm, kshdm, kshmc, czydm, czrq , chdlh, chshdm, chshmc, khmc, chph, chjh, fdjh ) "
 | 
				
			||||||
 | 
							"values( 1, 0, 0, "
 | 
				
			||||||
 | 
							<< "trim('" << policy.strPolicySerial << "'), "
 | 
				
			||||||
 | 
							<< "trim('" << policy.strSalerCode << "'), "
 | 
				
			||||||
 | 
							<< "trim('" << policy.strSalerName << "'), "
 | 
				
			||||||
 | 
							<< "trim('" << policy.strSalerDeptCode << "'), "
 | 
				
			||||||
 | 
							<< "trim('" << policy.strSalerDeptName << "'), "
 | 
				
			||||||
 | 
							<< "trim('" << policy.strSalerOfficeCode << "'), "
 | 
				
			||||||
 | 
							<< "trim('" << policy.strSalerOfficeName << "'), "
 | 
				
			||||||
 | 
							<< "trim('" << policy.strOperatorCode << "'), "
 | 
				
			||||||
 | 
							<< "today, "
 | 
				
			||||||
 | 
							<< "'" << strAutotraderCall << "'";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if ( policy.strAutoTraderCode.empty() == false )
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							ostrCommand << ", '" << policy.strAutoTraderCode << "'";
 | 
				
			||||||
 | 
							ostrCommand << ", '" << policy.strAutoTraderName << "'";
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						else
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							ostrCommand << ", NULL, NULL";
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if ( policy.strCustomerName.empty() == false )
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							ostrCommand << ", '" << policy.strCustomerName << "'";
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						else
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							ostrCommand << ", NULL";
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if ( policy.strPlateSerial.empty() == false )
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							ostrCommand << ", '" << policy.strPlateSerial << "'";
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						else
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							ostrCommand << ", NULL";
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if ( policy.strFrameSerial.empty() == false )
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							ostrCommand << ", '" << policy.strFrameSerial << "'";
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						else
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							ostrCommand << ", NULL";
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if ( policy.strEngineSerial.empty() == false )
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							ostrCommand << ", '" << policy.strEngineSerial << "'";
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						else
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							ostrCommand << ", NULL";
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						ostrCommand << " )";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						string strCommand = ostrCommand.str();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						SAConnection conn;
 | 
				
			||||||
 | 
						SACommand command;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						command.setConnection( &conn );
 | 
				
			||||||
 | 
						command.setCommandText( strCommand.c_str() );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						try
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							conn.Connect(
 | 
				
			||||||
 | 
								g_cszConnstringYwgl,
 | 
				
			||||||
 | 
								g_cszUserNameYwgl,
 | 
				
			||||||
 | 
								g_cszPasswordYwgl,
 | 
				
			||||||
 | 
								SA_Informix_Client );
 | 
				
			||||||
 | 
							//conn.setAutoCommit( SA_AutoCommitOff ); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							//<2F><><EFBFBD>汣<EFBFBD><E6B1A3>
 | 
				
			||||||
 | 
							command.Execute();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʒ<EFBFBD>б<EFBFBD>,<2C><>ɾ<EFBFBD><C9BE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
 | 
				
			||||||
 | 
							command.setCommandText( "delete w_dxbd_gift_i where bdh = :1 " );
 | 
				
			||||||
 | 
							command.Param( 1 ).setAsString() = policy.strPolicySerial.c_str();
 | 
				
			||||||
 | 
							command.Execute();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							command.setCommandText( "insert into w_dxbd_gift_i ( bdh, gift_name, gift_price ) values ( :1, :2, :3 )" );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							for ( vector<TelSalePolicyGift>::const_iterator iter = giftList.begin(); iter != giftList.end(); ++iter )
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								command.Param( 1 ).setAsString() = policy.strPolicySerial.c_str();
 | 
				
			||||||
 | 
								command.Param( 2 ).setAsString() = iter->GiftName().c_str();
 | 
				
			||||||
 | 
								command.Param( 3 ).setAsString() = iter->GiftDefaultPrice().c_str();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
								command.Execute();
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							conn.Commit();
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						catch ( SAException &error )
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							conn.Rollback();
 | 
				
			||||||
 | 
							conn.Disconnect();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							throw runtime_error( error.ErrText() );
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						conn.Disconnect();
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void QueryTelSalePolicyInfo( const string & strPolicyNo, 
 | 
				
			||||||
 | 
						                         const string & strOperatorCode, 
 | 
				
			||||||
 | 
												 const string & strStartDate, 
 | 
				
			||||||
 | 
												 const string & strEndDate, 
 | 
				
			||||||
 | 
												 vector<SPolicyQuery> & vPolicyInfo )
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						SACommand command;
 | 
				
			||||||
 | 
						SAConnection connection;
 | 
				
			||||||
 | 
						SPolicyQuery policy;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						string strSQL = 
 | 
				
			||||||
 | 
							"select trim(bdh) bdh, trim(zhjywy) zhjywy, to_char(czrq, '%Y<><59>%m<><6D>%d<><64>') czrq, trim(czydm) czydm, chdlh, zhjywybmm, kshmc, chshdm, chshmc "
 | 
				
			||||||
 | 
							"  from w_dxbd_i "
 | 
				
			||||||
 | 
							" where 1=1 ";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if ( !strPolicyNo.empty() )
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							strSQL.append( "and bdh = '" );
 | 
				
			||||||
 | 
							strSQL.append( strPolicyNo );
 | 
				
			||||||
 | 
							strSQL.append( "' " );
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if ( !strOperatorCode.empty() )
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							strSQL.append( "and czydm = '" );
 | 
				
			||||||
 | 
							strSQL.append( strOperatorCode );
 | 
				
			||||||
 | 
							strSQL.append( "' " );
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if ( !strStartDate.empty() )
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							strSQL.append( "and czrq >= '" );
 | 
				
			||||||
 | 
							strSQL.append( strStartDate );
 | 
				
			||||||
 | 
							strSQL.append( "' " );
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if ( !strEndDate.empty() )
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							strSQL.append( "and czrq <= '" );
 | 
				
			||||||
 | 
							strSQL.append( strEndDate );
 | 
				
			||||||
 | 
							strSQL.append( "' " );
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						try
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							command.setCommandText( strSQL.c_str() );
 | 
				
			||||||
 | 
							command.setConnection( &connection );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							connection.Connect(
 | 
				
			||||||
 | 
								g_cszConnstringYwgl,
 | 
				
			||||||
 | 
								g_cszUserNameYwgl,
 | 
				
			||||||
 | 
								g_cszPasswordYwgl,
 | 
				
			||||||
 | 
								SA_Informix_Client );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							command.Execute();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							while ( command.FetchNext() )
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								policy.strPolicySerial = command.Field("bdh").asString();
 | 
				
			||||||
 | 
								policy.strSalerCode = command.Field("zhjywy").asString();
 | 
				
			||||||
 | 
								policy.strDeptName = command.Field("zhjywybmm").asString();
 | 
				
			||||||
 | 
								policy.strOfficeName = command.Field("kshmc").asString();
 | 
				
			||||||
 | 
								policy.strAutoTraderCode = command.Field("chshdm").asString();
 | 
				
			||||||
 | 
								policy.strAutoTraderName = command.Field("chshmc").asString();
 | 
				
			||||||
 | 
								policy.strInputDate = command.Field("czrq").asString();
 | 
				
			||||||
 | 
								policy.strCDLH = command.Field("chdlh").asString();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
								QueryPolicyGifts( policy.strPolicySerial, policy.strGifts, policy.dGiftPriceSum );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
								vPolicyInfo.push_back( policy );
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							connection.Disconnect();
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						catch ( SAException & error )
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							throw runtime_error( error.ErrText() );
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void QueryPolicyGifts(const string & strPolicyNo, string & strGifts, double dGiftPriceSum )
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						SAConnection connection;
 | 
				
			||||||
 | 
						SACommand    command;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						string strSQL = 
 | 
				
			||||||
 | 
							"select gift_name, gift_price "
 | 
				
			||||||
 | 
							"  from w_dxbd_gift_i "
 | 
				
			||||||
 | 
							" where bdh = '" + strPolicyNo + "'";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						string strSQLSum = 
 | 
				
			||||||
 | 
							"select sum( gift_price ) "
 | 
				
			||||||
 | 
							"  from w_dxbd_gift_i "
 | 
				
			||||||
 | 
							" where bdh = '" + strPolicyNo + "'";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						try
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							command.setConnection( &connection );
 | 
				
			||||||
 | 
							command.setCommandText( strSQL.c_str() );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							connection.Connect( g_cszConnstringYwgl,
 | 
				
			||||||
 | 
								                g_cszUserNameYwgl,
 | 
				
			||||||
 | 
												g_cszPasswordYwgl,
 | 
				
			||||||
 | 
												SA_Informix_Client );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							command.Execute();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							strGifts.clear();
 | 
				
			||||||
 | 
							dGiftPriceSum = 0.0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							while ( command.FetchNext() )
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								if ( !strGifts.empty() )
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
 | 
									strGifts.append( "; " );
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
								strGifts.append( command.Field("gift_name").asString() );
 | 
				
			||||||
 | 
								strGifts.append( " " );
 | 
				
			||||||
 | 
								strGifts.append( command.Field("gift_price").asString() );
 | 
				
			||||||
 | 
								strGifts.append( "Ԫ" );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
								dGiftPriceSum += command.Field("gift_price").asDouble();
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							/*command.setCommandText( strSQLSum.c_str() );
 | 
				
			||||||
 | 
							command.Execute();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							if ( command.FetchNext() )
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
							strGiftPriceSum = command.Field( 0 ).asString();
 | 
				
			||||||
 | 
							}*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							connection.Disconnect();
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						catch ( SAException & error )
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							throw runtime_error( error.ErrText() );
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void readTelsaleXlsFile(const string strFilePath, vector<SPolicyRecord> & listPolicy, bool hasTitle, bool isXML )
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						IBookT<char> * pBook = NULL;
 | 
				
			||||||
 | 
						ISheetT<char> * pSheet = NULL;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						int iRowCount = 0;
 | 
				
			||||||
 | 
						int iRowIndex = 0;
 | 
				
			||||||
 | 
						
 | 
				
			||||||
 | 
						
 | 
				
			||||||
 | 
						//if ( isXML == true )
 | 
				
			||||||
 | 
						//{
 | 
				
			||||||
 | 
							pBook = xlCreateXMLBookA();
 | 
				
			||||||
 | 
						/*}
 | 
				
			||||||
 | 
						else
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							pBook = xlCreateBook();
 | 
				
			||||||
 | 
						}*/
 | 
				
			||||||
 | 
						
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if ( pBook == NULL )
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							throw string("");
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if ( pBook->load(strFilePath.c_str()) == NULL )
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							string strMessage = pBook->errorMessage();
 | 
				
			||||||
 | 
							throw string( strMessage );
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						pSheet = pBook->getSheet( 0 );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if ( pSheet == NULL )
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							throw string( "<EFBFBD><EFBFBD>ȡsheetʧ<EFBFBD>ܣ<EFBFBD>" );
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						iRowCount = pSheet->lastRow();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if ( hasTitle == true )
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							iRowIndex = 1;
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						//<2F><>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD>
 | 
				
			||||||
 | 
						while ( iRowIndex < iRowCount )
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							SPolicyRecord policy;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							CellType type = pSheet->cellType( iRowIndex, 4 );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							policy.strSignDate     = readXlsCell( pSheet, iRowIndex, 0 );
 | 
				
			||||||
 | 
							policy.strPolicySerial = readXlsCell( pSheet, iRowIndex, 1 );
 | 
				
			||||||
 | 
							policy.strPlateSerial  = readXlsCell( pSheet, iRowIndex, 2 );
 | 
				
			||||||
 | 
							policy.strCustomerName = readXlsCell( pSheet, iRowIndex, 3 );
 | 
				
			||||||
 | 
							policy.strSalerCode    = readXlsCell( pSheet, iRowIndex, 4 );
 | 
				
			||||||
 | 
							//policy.strAutoTraderName = readXlsCell( pSheet, iRowIndex, 5 );
 | 
				
			||||||
 | 
							policy.strAutoTraderCode = readXlsCell( pSheet, iRowIndex, 6 );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							//<2F><><EFBFBD>빤<EFBFBD><EBB9A4>
 | 
				
			||||||
 | 
							if ( policy.strSalerCode.length() == 1 )
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								policy.strSalerCode = string("00") + policy.strSalerCode;
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							if ( policy.strSalerCode.length() == 2 )
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								policy.strSalerCode = string("0") + policy.strSalerCode;
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							policy.strOperatorCode = getUserCode();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							queryAutoTraderInfo( policy.strAutoTraderCode, policy.strAutoTraderName );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							queryStaffInfo( policy.strSalerCode, 
 | 
				
			||||||
 | 
								            policy.strSalerName, 
 | 
				
			||||||
 | 
											policy.strSalerDeptCode,
 | 
				
			||||||
 | 
											policy.strSalerDeptName,
 | 
				
			||||||
 | 
											policy.strSalerOfficeCode,
 | 
				
			||||||
 | 
											policy.strSalerOfficeName );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							listPolicy.push_back( policy );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							iRowIndex++;
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						pBook->release();
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					string readXlsCell(ISheetT<char> * pSheet, int iRowIndex, int iColIndex)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						string strCell;
 | 
				
			||||||
 | 
						char szNum[40];
 | 
				
			||||||
 | 
						int iCell;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if ( pSheet == NULL )
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							throw string("");
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						CellType cellType = pSheet->cellType( iRowIndex, iColIndex );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						switch( cellType )
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
						case libxl::CELLTYPE_STRING:
 | 
				
			||||||
 | 
							strCell = pSheet->readStr( iRowIndex, iColIndex );
 | 
				
			||||||
 | 
							break;
 | 
				
			||||||
 | 
						case libxl::CELLTYPE_NUMBER:
 | 
				
			||||||
 | 
							memset( szNum, NULL, 40 );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							iCell = pSheet->readNum( iRowIndex, iColIndex );
 | 
				
			||||||
 | 
							sprintf( szNum, "%d", iCell );
 | 
				
			||||||
 | 
							strCell = szNum;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							break;
 | 
				
			||||||
 | 
						default:
 | 
				
			||||||
 | 
							strCell = "";
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						return strCell;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					string readXlsxCell(ISheetT<wchar_t> * pSheet, int iRowIndex, int iColIndex)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						wstring strCell;
 | 
				
			||||||
 | 
						string strReturn;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						char szNum[40];
 | 
				
			||||||
 | 
						int iCell;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if ( pSheet == NULL )
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							throw string("");
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						CellType cellType = pSheet->cellType( iRowIndex, iColIndex );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						switch( cellType )
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
						case libxl::CELLTYPE_STRING:
 | 
				
			||||||
 | 
							strCell = pSheet->readStr( iRowIndex, iColIndex );
 | 
				
			||||||
 | 
							break;
 | 
				
			||||||
 | 
						case libxl::CELLTYPE_NUMBER:
 | 
				
			||||||
 | 
							memset( szNum, NULL, 40 );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							iCell = pSheet->readNum( iRowIndex, iColIndex );
 | 
				
			||||||
 | 
							sprintf( szNum, "%d", iCell );
 | 
				
			||||||
 | 
							strReturn = szNum;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							break;
 | 
				
			||||||
 | 
						default:
 | 
				
			||||||
 | 
							strReturn = "";
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						StringCodeConverter::unicode2mbs( strCell, strReturn );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						return strReturn;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void readTelsaleXlsxFile(wchar_t * wszFilePath, vector<SPolicyRecord> & listPolicy, bool hasTitle)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						IBookT<wchar_t> * pBook = NULL;
 | 
				
			||||||
 | 
						ISheetT<wchar_t> * pSheet = NULL;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						int iRowCount = 0;
 | 
				
			||||||
 | 
						int iRowIndex = 0;
 | 
				
			||||||
 | 
						
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						pBook = xlCreateXMLBookW();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if ( pBook == NULL )
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							throw string("");
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if ( pBook->load(L"D:/1111.xlsx") == false )
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							throw string("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>ʧ<EFBFBD>ܣ<EFBFBD>" );
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						pSheet = pBook->getSheet( 0 );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if ( pSheet == NULL )
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							throw string( "<EFBFBD><EFBFBD>ȡsheetʧ<EFBFBD>ܣ<EFBFBD>" );
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						iRowCount = pSheet->lastRow();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if ( hasTitle == true )
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							iRowIndex = 1;
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						//<2F><>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD>
 | 
				
			||||||
 | 
						while ( iRowIndex < iRowCount )
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							SPolicyRecord policy;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							CellType type = pSheet->cellType( iRowIndex, 4 );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							policy.strSignDate     = readXlsxCell( pSheet, iRowIndex, 0 );
 | 
				
			||||||
 | 
							policy.strPolicySerial = readXlsxCell( pSheet, iRowIndex, 1 );
 | 
				
			||||||
 | 
							policy.strPlateSerial  = readXlsxCell( pSheet, iRowIndex, 2 );
 | 
				
			||||||
 | 
							policy.strCustomerName = readXlsxCell( pSheet, iRowIndex, 3 );
 | 
				
			||||||
 | 
							policy.strSalerCode    = readXlsxCell( pSheet, iRowIndex, 4 );
 | 
				
			||||||
 | 
							policy.strAutoTraderName = readXlsxCell( pSheet, iRowIndex, 6 );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							//<2F><><EFBFBD>빤<EFBFBD><EBB9A4>
 | 
				
			||||||
 | 
							if ( policy.strSalerCode.length() == 1 )
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								policy.strSalerCode = string("00") + policy.strSalerCode;
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							if ( policy.strSalerCode.length() == 2 )
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								policy.strSalerCode = string("0") + policy.strSalerCode;
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							policy.strOperatorCode = getUserCode();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							queryStaffInfo( 
 | 
				
			||||||
 | 
								policy.strSalerCode, 
 | 
				
			||||||
 | 
								policy.strSalerName, 
 | 
				
			||||||
 | 
								policy.strSalerDeptCode,
 | 
				
			||||||
 | 
								policy.strSalerDeptName,
 | 
				
			||||||
 | 
								policy.strSalerOfficeCode,
 | 
				
			||||||
 | 
								policy.strSalerOfficeName );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							listPolicy.push_back( policy );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							iRowIndex++;
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						pBook->release();
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
							
								
								
									
										145
									
								
								代码/vs2017/TelsaleAuxKit/TelsaleAuxKit/DataManipulation.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,145 @@
 | 
				
			|||||||
 | 
					/*!
 | 
				
			||||||
 | 
					 * \file DataManipulation.h
 | 
				
			||||||
 | 
					 * \date 2014/08/18 15:43
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * \author Kane
 | 
				
			||||||
 | 
					 * Contact: user@company.com
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * \brief ת<><D7AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݴ<EFBFBD><DDB4><EFBFBD>
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * TODO: long description
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * \note
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifndef DataManipulation_h__
 | 
				
			||||||
 | 
					#define DataManipulation_h__
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#define _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include <libxl.h>
 | 
				
			||||||
 | 
					#include <string>
 | 
				
			||||||
 | 
					#include <vector>
 | 
				
			||||||
 | 
					#include "SystemData.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					using namespace std;
 | 
				
			||||||
 | 
					using namespace libxl;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					typedef struct
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						string strPolicySerial;
 | 
				
			||||||
 | 
						string strSignDate;
 | 
				
			||||||
 | 
						string strSalerCode;
 | 
				
			||||||
 | 
						string strSalerName;
 | 
				
			||||||
 | 
						string strSalerDeptCode;
 | 
				
			||||||
 | 
						string strSalerDeptName;
 | 
				
			||||||
 | 
						string strSalerOfficeCode;
 | 
				
			||||||
 | 
						string strSalerOfficeName;
 | 
				
			||||||
 | 
						string strAutoTraderCode;
 | 
				
			||||||
 | 
						string strAutoTraderName;
 | 
				
			||||||
 | 
						string strCustomerName;
 | 
				
			||||||
 | 
						string strPlateSerial;
 | 
				
			||||||
 | 
						string strFrameSerial;
 | 
				
			||||||
 | 
						string strEngineSerial;
 | 
				
			||||||
 | 
						string strOperatorDate;
 | 
				
			||||||
 | 
						string strOperatorCode;
 | 
				
			||||||
 | 
						bool bIsAutotraderCall;
 | 
				
			||||||
 | 
					} SPolicyRecord;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					typedef struct
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						string strPolicySerial;
 | 
				
			||||||
 | 
						string strSalerCode;
 | 
				
			||||||
 | 
						string strDeptName;
 | 
				
			||||||
 | 
						string strOfficeName;
 | 
				
			||||||
 | 
						string strCDLH;
 | 
				
			||||||
 | 
						string strAutoTraderCode;
 | 
				
			||||||
 | 
						string strAutoTraderName;
 | 
				
			||||||
 | 
						double dGiftPriceSum;
 | 
				
			||||||
 | 
						string strGifts;
 | 
				
			||||||
 | 
						string strInputDate;
 | 
				
			||||||
 | 
					} SPolicyQuery;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					class TelSalePolicyGift
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					public:
 | 
				
			||||||
 | 
						TelSalePolicyGift() {};
 | 
				
			||||||
 | 
						TelSalePolicyGift( int id, string & name, string & defaultPrice ) : m_id( id ), m_giftName( name ), m_giftDefaultPrice( defaultPrice ) {}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						inline int Id() const { return m_id; }
 | 
				
			||||||
 | 
						void Id(int val) { m_id = val; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						string GiftName() const { return m_giftName; }
 | 
				
			||||||
 | 
						void GiftName(string val) { m_giftName = val; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						string GiftDefaultPrice() const { return m_giftDefaultPrice; }
 | 
				
			||||||
 | 
						void GiftDefaultPrice(string val) { m_giftDefaultPrice = val; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					private:
 | 
				
			||||||
 | 
						int m_id;
 | 
				
			||||||
 | 
						string m_giftName;
 | 
				
			||||||
 | 
						string m_giftDefaultPrice;
 | 
				
			||||||
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					//************************************
 | 
				
			||||||
 | 
					// Method:    queryTelsalePolicyGifts
 | 
				
			||||||
 | 
					// FullName:  queryTelsalePolicyGifts
 | 
				
			||||||
 | 
					// Access:    public 
 | 
				
			||||||
 | 
					// Returns:   void
 | 
				
			||||||
 | 
					// Qualifier: <20><>ѯ<EFBFBD><D1AF>Ʒ<EFBFBD><C6B7>Ϣ
 | 
				
			||||||
 | 
					// Parameter: vector<TelSalePolicyGift> & giftList <20><>Ʒ<EFBFBD>б<EFBFBD>
 | 
				
			||||||
 | 
					//************************************
 | 
				
			||||||
 | 
					void queryTelsalePolicyGifts( vector<TelSalePolicyGift> &giftList );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					//************************************
 | 
				
			||||||
 | 
					// Method:    SaveTelSalePolicyInfo
 | 
				
			||||||
 | 
					// FullName:  SaveTelSalePolicyInfo
 | 
				
			||||||
 | 
					// Access:    public 
 | 
				
			||||||
 | 
					// Returns:   void
 | 
				
			||||||
 | 
					// Qualifier:
 | 
				
			||||||
 | 
					// Parameter: const SPolicyRecord & policy
 | 
				
			||||||
 | 
					// Parameter: const vector<TelSalePolicyGift> & giftList
 | 
				
			||||||
 | 
					//************************************
 | 
				
			||||||
 | 
					void SaveTelSalePolicyInfo( const SPolicyRecord & policy, const vector<TelSalePolicyGift> & giftList );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					//************************************
 | 
				
			||||||
 | 
					// Method:    QueryTelSalePolicyInfo
 | 
				
			||||||
 | 
					// FullName:  QueryTelSalePolicyInfo
 | 
				
			||||||
 | 
					// Access:    public 
 | 
				
			||||||
 | 
					// Returns:   void
 | 
				
			||||||
 | 
					// Qualifier:
 | 
				
			||||||
 | 
					// Parameter: const string & strPolicyNo
 | 
				
			||||||
 | 
					// Parameter: const string & strOperatorCode
 | 
				
			||||||
 | 
					// Parameter: const string & strStartDate
 | 
				
			||||||
 | 
					// Parameter: const string & strEndDate
 | 
				
			||||||
 | 
					// Parameter: vector<SPolicyQuery> & vPolicyInfo
 | 
				
			||||||
 | 
					//************************************
 | 
				
			||||||
 | 
					void QueryTelSalePolicyInfo( const string & strPolicyNo,
 | 
				
			||||||
 | 
						                         const string & strOperatorCode,
 | 
				
			||||||
 | 
												 const string & strStartDate,
 | 
				
			||||||
 | 
												 const string & strEndDate,
 | 
				
			||||||
 | 
												 vector<SPolicyQuery> & vPolicyInfo );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					//************************************
 | 
				
			||||||
 | 
					// Method:    QueryPolicyGifts
 | 
				
			||||||
 | 
					// FullName:  QueryPolicyGifts
 | 
				
			||||||
 | 
					// Access:    public 
 | 
				
			||||||
 | 
					// Returns:   void
 | 
				
			||||||
 | 
					// Qualifier: <20><>ѯ<EFBFBD><D1AF>Ʒ<EFBFBD>б<EFBFBD><D0B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD>
 | 
				
			||||||
 | 
					// Parameter: const string & strPolicyNo
 | 
				
			||||||
 | 
					// Parameter: string & strGifts
 | 
				
			||||||
 | 
					//************************************
 | 
				
			||||||
 | 
					void QueryPolicyGifts( const string & strPolicyNo,
 | 
				
			||||||
 | 
						                         string & strGifts,
 | 
				
			||||||
 | 
												 double dGiftPriceSum );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void readTelsaleXlsFile( const string strFilePath, vector<SPolicyRecord> & listPolicy, bool hasTitle, bool isXML );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void readTelsaleXlsxFile( wchar_t * wszFilePath, vector<SPolicyRecord> & listPolicy, bool hasTitle );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					string readXlsCell( ISheetT<char> * pSheet, int iRowIndex, int iColIndex );
 | 
				
			||||||
 | 
					string readXlsxCell( ISheetT<wchar_t> * pSheet, int iRowIndex, int iColIndex);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#endif // DataManipulation_h__
 | 
				
			||||||
							
								
								
									
										102
									
								
								代码/vs2017/TelsaleAuxKit/TelsaleAuxKit/Parameters.cpp
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,102 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					#include <exception>
 | 
				
			||||||
 | 
					#include "Parameters.h"
 | 
				
			||||||
 | 
					#include "sqlite/sqlite3.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					using namespace std;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Parameters::Parameters(void)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Parameters::Parameters(const string & strFilePath)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						sqlite3 * pdbParameter;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						int returnCode;
 | 
				
			||||||
 | 
						int nRowCount;
 | 
				
			||||||
 | 
						int nColCount;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						char ** result;
 | 
				
			||||||
 | 
						char * pszMessage;
 | 
				
			||||||
 | 
						char szSQL[] = 
 | 
				
			||||||
 | 
							"select name, value from sys_parameter ";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						returnCode = sqlite3_open( strFilePath.c_str(), &pdbParameter );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if ( returnCode != SQLITE_OK )
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							throw runtime_error( sqlite3_errmsg(pdbParameter) );
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						//<2F><>ѯ
 | 
				
			||||||
 | 
						returnCode = sqlite3_get_table( pdbParameter, szSQL, &result, &nRowCount, &nColCount, &pszMessage );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if ( returnCode != SQLITE_OK )
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							throw runtime_error( sqlite3_errmsg( pdbParameter ));
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						for ( int nRowIndex = nColCount; nRowIndex < nColCount*(nRowCount+1); nRowIndex += nColCount )
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							string strName = result[nRowIndex];
 | 
				
			||||||
 | 
							string strValue = result[nRowIndex+1];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							m_parameters[strName] = strValue;
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						//<2F><><EFBFBD><EFBFBD>
 | 
				
			||||||
 | 
						sqlite3_free_table( result );
 | 
				
			||||||
 | 
						sqlite3_close( pdbParameter );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						//<2F><><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>·<EFBFBD><C2B7>
 | 
				
			||||||
 | 
						m_strDbFilePath = strFilePath;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Parameters::~Parameters(void)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					string Parameters::getParameter(const string & strParaName)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						return m_parameters[strParaName];
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void Parameters::setParameter(const string & strParaName, const string & strParaValue)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						if ( m_parameters.find( strParaName) == m_parameters.end() )
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							throw runtime_error( "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƴ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" );
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						m_parameters[strParaName] = strParaValue;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						sqlite3 * pDb = NULL;
 | 
				
			||||||
 | 
						int iReturnCode;
 | 
				
			||||||
 | 
						char * szMsg;
 | 
				
			||||||
 | 
						string strSQL = 
 | 
				
			||||||
 | 
							"update sys_parameter set value = '";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						strSQL.append( strParaValue );
 | 
				
			||||||
 | 
						strSQL.append( "' where name = '" );
 | 
				
			||||||
 | 
						strSQL.append( strParaName );
 | 
				
			||||||
 | 
						strSQL.append( "' " );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						iReturnCode = sqlite3_open( m_strDbFilePath.c_str(), &pDb );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if ( iReturnCode != SQLITE_OK )
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							throw runtime_error( sqlite3_errmsg( pDb ));
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						iReturnCode = sqlite3_exec( pDb, strSQL.c_str(), NULL, NULL, &szMsg );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if ( iReturnCode != SQLITE_OK )
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							throw runtime_error( szMsg );
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						sqlite3_close( pDb );
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
							
								
								
									
										44
									
								
								代码/vs2017/TelsaleAuxKit/TelsaleAuxKit/Parameters.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,44 @@
 | 
				
			|||||||
 | 
					/*!
 | 
				
			||||||
 | 
					 * \file Parameters.h
 | 
				
			||||||
 | 
					 * \date 2014/08/25 11:44
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * \author Kane
 | 
				
			||||||
 | 
					 * Contact: user@company.com
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * \brief 
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * TODO: long description
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * \note
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifndef Parameters_h__
 | 
				
			||||||
 | 
					#define Parameters_h__
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#define _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include <string>
 | 
				
			||||||
 | 
					#include <hash_map>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					using std::string;
 | 
				
			||||||
 | 
					using std::hash_map;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					class Parameters
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					public:
 | 
				
			||||||
 | 
						Parameters( const string & strFilePath );
 | 
				
			||||||
 | 
						virtual ~Parameters(void);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						string getParameter( const string & strParaName );
 | 
				
			||||||
 | 
						void   setParameter( const string & strParaName, const string & strParaValue );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					private:
 | 
				
			||||||
 | 
						Parameters();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					private:
 | 
				
			||||||
 | 
						string m_strDbFilePath;
 | 
				
			||||||
 | 
						hash_map<string, string> m_parameters;
 | 
				
			||||||
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#endif // Parameters_h__
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -0,0 +1,84 @@
 | 
				
			|||||||
 | 
					#include <Qtwidgets/QtWidgets>
 | 
				
			||||||
 | 
					#include "QConfigurationWidget.h"
 | 
				
			||||||
 | 
					#include "SystemDataQuery.h"
 | 
				
			||||||
 | 
					#include "SystemData.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					QConfigurationWidget::QConfigurationWidget(QWidget *parent)
 | 
				
			||||||
 | 
						: QWidget(parent)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						setupUi(this);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						init();
 | 
				
			||||||
 | 
						initWidget();
 | 
				
			||||||
 | 
						initSignal();
 | 
				
			||||||
 | 
						initData();
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					QConfigurationWidget::~QConfigurationWidget()
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void QConfigurationWidget::init()
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void QConfigurationWidget::initWidget()
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						setLayout( pLayoutMain );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						setMaximumWidth( 800 );
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void QConfigurationWidget::initSignal()
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						connect( pEditAutoTraderCode, SIGNAL(editingFinished()), this, SLOT(onAutoTraderCodeEdited()));
 | 
				
			||||||
 | 
						connect( pEditAutoTraderCode, SIGNAL(textChanged(const QString &)), this, SLOT(onAutoTraderCodeChanged()) );
 | 
				
			||||||
 | 
						connect( pButtonSave, SIGNAL(clicked()), this, SLOT(onSave()) );
 | 
				
			||||||
 | 
						connect( pButtonReset, SIGNAL(clicked()), this, SLOT(onReset()) );
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void QConfigurationWidget::initData()
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						pEditAutoTraderCode->setText( QString::fromLocal8Bit( parameters.getParameter("Ĭ<EFBFBD>ϳ<EFBFBD><EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>").c_str() ));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						emit pEditAutoTraderCode->editingFinished();
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void QConfigurationWidget::onAutoTraderCodeEdited()
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						string strAutoTraderCode = pEditAutoTraderCode->text().trimmed().toUpper().toLocal8Bit().data();
 | 
				
			||||||
 | 
						string strAutoTraderName;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						queryAutoTraderInfo( strAutoTraderCode, strAutoTraderName );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						pEditAutoTraderName->setText( QString::fromLocal8Bit( strAutoTraderName.c_str() ));
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void QConfigurationWidget::onAutoTraderCodeChanged()
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						pEditAutoTraderName->clear();
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void QConfigurationWidget::onSave()
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						if ( pEditAutoTraderName->text().isEmpty() )
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							emit pEditAutoTraderCode->editingFinished();
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						
 | 
				
			||||||
 | 
						if ( pEditAutoTraderName->text().isEmpty() )
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							QMessageBox::critical( this, QString::fromLocal8Bit("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"), QString::fromLocal8Bit("<EFBFBD><EFBFBD><EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>") );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							return;
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						parameters.setParameter( "Ĭ<EFBFBD>ϳ<EFBFBD><EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>", pEditAutoTraderCode->text().toLocal8Bit().data() );
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void QConfigurationWidget::onReset()
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						initData();
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										31
									
								
								代码/vs2017/TelsaleAuxKit/TelsaleAuxKit/QConfigurationWidget.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,31 @@
 | 
				
			|||||||
 | 
					#ifndef QCONFIGURATIONWIDGET_H
 | 
				
			||||||
 | 
					#define QCONFIGURATIONWIDGET_H
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include <QWidget>
 | 
				
			||||||
 | 
					#include <string>
 | 
				
			||||||
 | 
					#include "ui_QConfigurationWidget.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					using std::string;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					class QConfigurationWidget : public QWidget, public Ui::QConfigurationWidget
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						Q_OBJECT
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					public:
 | 
				
			||||||
 | 
						QConfigurationWidget(QWidget *parent = 0);
 | 
				
			||||||
 | 
						~QConfigurationWidget();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					protected Q_SLOTS:
 | 
				
			||||||
 | 
						void onAutoTraderCodeEdited();
 | 
				
			||||||
 | 
						void onAutoTraderCodeChanged();
 | 
				
			||||||
 | 
						void onSave();
 | 
				
			||||||
 | 
						void onReset();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					private:
 | 
				
			||||||
 | 
						void init();
 | 
				
			||||||
 | 
						void initWidget();
 | 
				
			||||||
 | 
						void initSignal();
 | 
				
			||||||
 | 
						void initData();
 | 
				
			||||||
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#endif // QCONFIGURATIONWIDGET_H
 | 
				
			||||||
							
								
								
									
										224
									
								
								代码/vs2017/TelsaleAuxKit/TelsaleAuxKit/QConfigurationWidget.ui
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,224 @@
 | 
				
			|||||||
 | 
					<?xml version="1.0" encoding="UTF-8"?>
 | 
				
			||||||
 | 
					<ui version="4.0">
 | 
				
			||||||
 | 
					 <class>QConfigurationWidget</class>
 | 
				
			||||||
 | 
					 <widget class="QWidget" name="QConfigurationWidget">
 | 
				
			||||||
 | 
					  <property name="geometry">
 | 
				
			||||||
 | 
					   <rect>
 | 
				
			||||||
 | 
					    <x>0</x>
 | 
				
			||||||
 | 
					    <y>0</y>
 | 
				
			||||||
 | 
					    <width>843</width>
 | 
				
			||||||
 | 
					    <height>527</height>
 | 
				
			||||||
 | 
					   </rect>
 | 
				
			||||||
 | 
					  </property>
 | 
				
			||||||
 | 
					  <property name="windowTitle">
 | 
				
			||||||
 | 
					   <string>QConfigurationWidget</string>
 | 
				
			||||||
 | 
					  </property>
 | 
				
			||||||
 | 
					  <widget class="QWidget" name="">
 | 
				
			||||||
 | 
					   <property name="geometry">
 | 
				
			||||||
 | 
					    <rect>
 | 
				
			||||||
 | 
					     <x>55</x>
 | 
				
			||||||
 | 
					     <y>95</y>
 | 
				
			||||||
 | 
					     <width>571</width>
 | 
				
			||||||
 | 
					     <height>208</height>
 | 
				
			||||||
 | 
					    </rect>
 | 
				
			||||||
 | 
					   </property>
 | 
				
			||||||
 | 
					   <layout class="QVBoxLayout" name="pLayoutMain">
 | 
				
			||||||
 | 
					    <property name="leftMargin">
 | 
				
			||||||
 | 
					     <number>5</number>
 | 
				
			||||||
 | 
					    </property>
 | 
				
			||||||
 | 
					    <property name="topMargin">
 | 
				
			||||||
 | 
					     <number>5</number>
 | 
				
			||||||
 | 
					    </property>
 | 
				
			||||||
 | 
					    <property name="rightMargin">
 | 
				
			||||||
 | 
					     <number>5</number>
 | 
				
			||||||
 | 
					    </property>
 | 
				
			||||||
 | 
					    <property name="bottomMargin">
 | 
				
			||||||
 | 
					     <number>5</number>
 | 
				
			||||||
 | 
					    </property>
 | 
				
			||||||
 | 
					    <item>
 | 
				
			||||||
 | 
					     <widget class="QGroupBox" name="groupBox">
 | 
				
			||||||
 | 
					      <property name="title">
 | 
				
			||||||
 | 
					       <string>默认车商代码:</string>
 | 
				
			||||||
 | 
					      </property>
 | 
				
			||||||
 | 
					      <layout class="QGridLayout" name="gridLayout">
 | 
				
			||||||
 | 
					       <item row="0" column="0">
 | 
				
			||||||
 | 
					        <widget class="QLabel" name="label_20">
 | 
				
			||||||
 | 
					         <property name="text">
 | 
				
			||||||
 | 
					          <string>车商代码:</string>
 | 
				
			||||||
 | 
					         </property>
 | 
				
			||||||
 | 
					         <property name="alignment">
 | 
				
			||||||
 | 
					          <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
 | 
				
			||||||
 | 
					         </property>
 | 
				
			||||||
 | 
					        </widget>
 | 
				
			||||||
 | 
					       </item>
 | 
				
			||||||
 | 
					       <item row="0" column="1">
 | 
				
			||||||
 | 
					        <widget class="QLineEdit" name="pEditAutoTraderCode">
 | 
				
			||||||
 | 
					         <property name="minimumSize">
 | 
				
			||||||
 | 
					          <size>
 | 
				
			||||||
 | 
					           <width>90</width>
 | 
				
			||||||
 | 
					           <height>0</height>
 | 
				
			||||||
 | 
					          </size>
 | 
				
			||||||
 | 
					         </property>
 | 
				
			||||||
 | 
					         <property name="maximumSize">
 | 
				
			||||||
 | 
					          <size>
 | 
				
			||||||
 | 
					           <width>90</width>
 | 
				
			||||||
 | 
					           <height>16777215</height>
 | 
				
			||||||
 | 
					          </size>
 | 
				
			||||||
 | 
					         </property>
 | 
				
			||||||
 | 
					         <property name="styleSheet">
 | 
				
			||||||
 | 
					          <string notr="true">border: 1px solid red;
 | 
				
			||||||
 | 
					height: 1.5em;</string>
 | 
				
			||||||
 | 
					         </property>
 | 
				
			||||||
 | 
					         <property name="alignment">
 | 
				
			||||||
 | 
					          <set>Qt::AlignCenter</set>
 | 
				
			||||||
 | 
					         </property>
 | 
				
			||||||
 | 
					         <property name="readOnly">
 | 
				
			||||||
 | 
					          <bool>false</bool>
 | 
				
			||||||
 | 
					         </property>
 | 
				
			||||||
 | 
					        </widget>
 | 
				
			||||||
 | 
					       </item>
 | 
				
			||||||
 | 
					       <item row="0" column="2">
 | 
				
			||||||
 | 
					        <widget class="QLabel" name="label_21">
 | 
				
			||||||
 | 
					         <property name="text">
 | 
				
			||||||
 | 
					          <string>车商名称:</string>
 | 
				
			||||||
 | 
					         </property>
 | 
				
			||||||
 | 
					         <property name="alignment">
 | 
				
			||||||
 | 
					          <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
 | 
				
			||||||
 | 
					         </property>
 | 
				
			||||||
 | 
					        </widget>
 | 
				
			||||||
 | 
					       </item>
 | 
				
			||||||
 | 
					       <item row="0" column="3">
 | 
				
			||||||
 | 
					        <widget class="QLineEdit" name="pEditAutoTraderName">
 | 
				
			||||||
 | 
					         <property name="styleSheet">
 | 
				
			||||||
 | 
					          <string notr="true">border: 1px solid silver;
 | 
				
			||||||
 | 
					height: 1.5em;</string>
 | 
				
			||||||
 | 
					         </property>
 | 
				
			||||||
 | 
					         <property name="text">
 | 
				
			||||||
 | 
					          <string/>
 | 
				
			||||||
 | 
					         </property>
 | 
				
			||||||
 | 
					         <property name="alignment">
 | 
				
			||||||
 | 
					          <set>Qt::AlignCenter</set>
 | 
				
			||||||
 | 
					         </property>
 | 
				
			||||||
 | 
					         <property name="readOnly">
 | 
				
			||||||
 | 
					          <bool>true</bool>
 | 
				
			||||||
 | 
					         </property>
 | 
				
			||||||
 | 
					        </widget>
 | 
				
			||||||
 | 
					       </item>
 | 
				
			||||||
 | 
					      </layout>
 | 
				
			||||||
 | 
					     </widget>
 | 
				
			||||||
 | 
					    </item>
 | 
				
			||||||
 | 
					    <item>
 | 
				
			||||||
 | 
					     <widget class="QGroupBox" name="groupBox_4">
 | 
				
			||||||
 | 
					      <property name="minimumSize">
 | 
				
			||||||
 | 
					       <size>
 | 
				
			||||||
 | 
					        <width>0</width>
 | 
				
			||||||
 | 
					        <height>0</height>
 | 
				
			||||||
 | 
					       </size>
 | 
				
			||||||
 | 
					      </property>
 | 
				
			||||||
 | 
					      <property name="maximumSize">
 | 
				
			||||||
 | 
					       <size>
 | 
				
			||||||
 | 
					        <width>16777215</width>
 | 
				
			||||||
 | 
					        <height>16777215</height>
 | 
				
			||||||
 | 
					       </size>
 | 
				
			||||||
 | 
					      </property>
 | 
				
			||||||
 | 
					      <property name="title">
 | 
				
			||||||
 | 
					       <string>操作</string>
 | 
				
			||||||
 | 
					      </property>
 | 
				
			||||||
 | 
					      <layout class="QGridLayout" name="gridLayout_6">
 | 
				
			||||||
 | 
					       <item row="0" column="3">
 | 
				
			||||||
 | 
					        <spacer name="horizontalSpacer_2">
 | 
				
			||||||
 | 
					         <property name="orientation">
 | 
				
			||||||
 | 
					          <enum>Qt::Horizontal</enum>
 | 
				
			||||||
 | 
					         </property>
 | 
				
			||||||
 | 
					         <property name="sizeHint" stdset="0">
 | 
				
			||||||
 | 
					          <size>
 | 
				
			||||||
 | 
					           <width>301</width>
 | 
				
			||||||
 | 
					           <height>20</height>
 | 
				
			||||||
 | 
					          </size>
 | 
				
			||||||
 | 
					         </property>
 | 
				
			||||||
 | 
					        </spacer>
 | 
				
			||||||
 | 
					       </item>
 | 
				
			||||||
 | 
					       <item row="0" column="0">
 | 
				
			||||||
 | 
					        <spacer name="horizontalSpacer_3">
 | 
				
			||||||
 | 
					         <property name="orientation">
 | 
				
			||||||
 | 
					          <enum>Qt::Horizontal</enum>
 | 
				
			||||||
 | 
					         </property>
 | 
				
			||||||
 | 
					         <property name="sizeHint" stdset="0">
 | 
				
			||||||
 | 
					          <size>
 | 
				
			||||||
 | 
					           <width>301</width>
 | 
				
			||||||
 | 
					           <height>20</height>
 | 
				
			||||||
 | 
					          </size>
 | 
				
			||||||
 | 
					         </property>
 | 
				
			||||||
 | 
					        </spacer>
 | 
				
			||||||
 | 
					       </item>
 | 
				
			||||||
 | 
					       <item row="0" column="1">
 | 
				
			||||||
 | 
					        <widget class="QToolButton" name="pButtonSave">
 | 
				
			||||||
 | 
					         <property name="toolTip">
 | 
				
			||||||
 | 
					          <string>保存信息</string>
 | 
				
			||||||
 | 
					         </property>
 | 
				
			||||||
 | 
					         <property name="text">
 | 
				
			||||||
 | 
					          <string>保存</string>
 | 
				
			||||||
 | 
					         </property>
 | 
				
			||||||
 | 
					         <property name="icon">
 | 
				
			||||||
 | 
					          <iconset resource="resource.qrc">
 | 
				
			||||||
 | 
					           <normaloff>:/QMainFrame/Resources/save2.png</normaloff>:/QMainFrame/Resources/save2.png</iconset>
 | 
				
			||||||
 | 
					         </property>
 | 
				
			||||||
 | 
					         <property name="iconSize">
 | 
				
			||||||
 | 
					          <size>
 | 
				
			||||||
 | 
					           <width>64</width>
 | 
				
			||||||
 | 
					           <height>64</height>
 | 
				
			||||||
 | 
					          </size>
 | 
				
			||||||
 | 
					         </property>
 | 
				
			||||||
 | 
					         <property name="toolButtonStyle">
 | 
				
			||||||
 | 
					          <enum>Qt::ToolButtonIconOnly</enum>
 | 
				
			||||||
 | 
					         </property>
 | 
				
			||||||
 | 
					        </widget>
 | 
				
			||||||
 | 
					       </item>
 | 
				
			||||||
 | 
					       <item row="0" column="2">
 | 
				
			||||||
 | 
					        <widget class="QToolButton" name="pButtonReset">
 | 
				
			||||||
 | 
					         <property name="toolTip">
 | 
				
			||||||
 | 
					          <string>重置所有</string>
 | 
				
			||||||
 | 
					         </property>
 | 
				
			||||||
 | 
					         <property name="text">
 | 
				
			||||||
 | 
					          <string>重置</string>
 | 
				
			||||||
 | 
					         </property>
 | 
				
			||||||
 | 
					         <property name="icon">
 | 
				
			||||||
 | 
					          <iconset resource="resource.qrc">
 | 
				
			||||||
 | 
					           <normaloff>:/QMainFrame/Resources/clean.png</normaloff>:/QMainFrame/Resources/clean.png</iconset>
 | 
				
			||||||
 | 
					         </property>
 | 
				
			||||||
 | 
					         <property name="iconSize">
 | 
				
			||||||
 | 
					          <size>
 | 
				
			||||||
 | 
					           <width>64</width>
 | 
				
			||||||
 | 
					           <height>64</height>
 | 
				
			||||||
 | 
					          </size>
 | 
				
			||||||
 | 
					         </property>
 | 
				
			||||||
 | 
					         <property name="toolButtonStyle">
 | 
				
			||||||
 | 
					          <enum>Qt::ToolButtonIconOnly</enum>
 | 
				
			||||||
 | 
					         </property>
 | 
				
			||||||
 | 
					        </widget>
 | 
				
			||||||
 | 
					       </item>
 | 
				
			||||||
 | 
					      </layout>
 | 
				
			||||||
 | 
					     </widget>
 | 
				
			||||||
 | 
					    </item>
 | 
				
			||||||
 | 
					    <item>
 | 
				
			||||||
 | 
					     <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>
 | 
				
			||||||
 | 
					   </layout>
 | 
				
			||||||
 | 
					  </widget>
 | 
				
			||||||
 | 
					 </widget>
 | 
				
			||||||
 | 
					 <layoutdefault spacing="6" margin="11"/>
 | 
				
			||||||
 | 
					 <resources>
 | 
				
			||||||
 | 
					  <include location="resource.qrc"/>
 | 
				
			||||||
 | 
					 </resources>
 | 
				
			||||||
 | 
					 <connections/>
 | 
				
			||||||
 | 
					</ui>
 | 
				
			||||||
							
								
								
									
										86
									
								
								代码/vs2017/TelsaleAuxKit/TelsaleAuxKit/QLoginWidget.cpp
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,86 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					//#include <occi.h>
 | 
				
			||||||
 | 
					#include <QTextCodec>
 | 
				
			||||||
 | 
					#include <QtWidgets/QMessageBox>
 | 
				
			||||||
 | 
					#include "QLoginWidget.h"
 | 
				
			||||||
 | 
					#include "SystemData.h"
 | 
				
			||||||
 | 
					#include "SystemDataQuery.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					QLoginWidget::QLoginWidget(QWidget *parent)
 | 
				
			||||||
 | 
						: QDialog(parent)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						ui.setupUi(this);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						init();
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					QLoginWidget::~QLoginWidget()
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void QLoginWidget::init()
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						initWidget();
 | 
				
			||||||
 | 
						initSignal();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						pCodecLocal = QTextCodec::codecForLocale();
 | 
				
			||||||
 | 
						pCodecUTF8 = QTextCodec::codecForName( "UTF-8" );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						m_isLoginSuccess = false;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void QLoginWidget::initWidget()
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						setLayout( ui.pLayoutMain );
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void QLoginWidget::initSignal()
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						connect( ui.pButtonLogin, SIGNAL(clicked()), this, SLOT(login()) );
 | 
				
			||||||
 | 
						connect( ui.pButtonCancel, SIGNAL(clicked()), this, SLOT(cancel()) );
 | 
				
			||||||
 | 
						connect( ui.pEditUserCode, SIGNAL(editingFinished()), this, SLOT(getUserName()) );
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void QLoginWidget::login()
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						string strPassword( (char *)ui.pEditPassword->text().toLocal8Bit().data() );
 | 
				
			||||||
 | 
						
 | 
				
			||||||
 | 
						if ( strPassword == m_userPassword )
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							m_isLoginSuccess = true;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							//<2F><><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><C3BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
 | 
				
			||||||
 | 
							setUserCode( m_userCode );
 | 
				
			||||||
 | 
							setUserName( m_userName );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							close();
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						else
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							QMessageBox::warning( this, QString::fromLocal8Bit("<EFBFBD><EFBFBD><EFBFBD><EFBFBD>"), QString::fromLocal8Bit("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>") );
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void QLoginWidget::cancel()
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						m_isLoginSuccess = false;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						close();
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void QLoginWidget::getUserName()
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						m_userCode = ui.pEditUserCode->text().toLocal8Bit().data();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						try
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							QueryUserInfo( m_userCode, m_userName, m_userPassword );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							ui.pEditUserName->setText( QString::fromLocal8Bit(m_userName.c_str()));
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						catch ( runtime_error & exp )
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							QMessageBox::critical( this, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>", QString::fromUtf8( exp.what() ));
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										46
									
								
								代码/vs2017/TelsaleAuxKit/TelsaleAuxKit/QLoginWidget.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,46 @@
 | 
				
			|||||||
 | 
					#ifndef QLOGINWIDGET_H
 | 
				
			||||||
 | 
					#define QLOGINWIDGET_H
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include <string>
 | 
				
			||||||
 | 
					#include <QDialog>
 | 
				
			||||||
 | 
					#include <QTextCodec>
 | 
				
			||||||
 | 
					#include "ui_QLoginWidget.h"
 | 
				
			||||||
 | 
					//#include "DataManipulate.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					using namespace std;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					class QLoginWidget : public QDialog
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						Q_OBJECT
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					public:
 | 
				
			||||||
 | 
						QLoginWidget(QWidget *parent = 0);
 | 
				
			||||||
 | 
						~QLoginWidget();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						bool isLogin() const { return m_isLoginSuccess; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					private:
 | 
				
			||||||
 | 
						void init();
 | 
				
			||||||
 | 
						void initWidget();
 | 
				
			||||||
 | 
						void initSignal();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					protected Q_SLOTS:
 | 
				
			||||||
 | 
						void login();
 | 
				
			||||||
 | 
						void cancel();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						void getUserName();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					private:
 | 
				
			||||||
 | 
						Ui::QLoginWidget ui;
 | 
				
			||||||
 | 
						QTextCodec * pCodecLocal;
 | 
				
			||||||
 | 
						QTextCodec * pCodecUTF8;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					private:
 | 
				
			||||||
 | 
						string m_userCode;
 | 
				
			||||||
 | 
						string m_userName;
 | 
				
			||||||
 | 
						string m_userPassword;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						bool m_isLoginSuccess;
 | 
				
			||||||
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#endif // QLOGINWIDGET_H
 | 
				
			||||||
							
								
								
									
										290
									
								
								代码/vs2017/TelsaleAuxKit/TelsaleAuxKit/QLoginWidget.ui
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,290 @@
 | 
				
			|||||||
 | 
					<?xml version="1.0" encoding="UTF-8"?>
 | 
				
			||||||
 | 
					<ui version="4.0">
 | 
				
			||||||
 | 
					 <class>QLoginWidget</class>
 | 
				
			||||||
 | 
					 <widget class="QDialog" name="QLoginWidget">
 | 
				
			||||||
 | 
					  <property name="geometry">
 | 
				
			||||||
 | 
					   <rect>
 | 
				
			||||||
 | 
					    <x>0</x>
 | 
				
			||||||
 | 
					    <y>0</y>
 | 
				
			||||||
 | 
					    <width>764</width>
 | 
				
			||||||
 | 
					    <height>480</height>
 | 
				
			||||||
 | 
					   </rect>
 | 
				
			||||||
 | 
					  </property>
 | 
				
			||||||
 | 
					  <property name="windowTitle">
 | 
				
			||||||
 | 
					   <string>登录</string>
 | 
				
			||||||
 | 
					  </property>
 | 
				
			||||||
 | 
					  <property name="windowIcon">
 | 
				
			||||||
 | 
					   <iconset resource="resource.qrc">
 | 
				
			||||||
 | 
					    <normaloff>:/QMainFrame/Resources/CPIC.png</normaloff>:/QMainFrame/Resources/CPIC.png</iconset>
 | 
				
			||||||
 | 
					  </property>
 | 
				
			||||||
 | 
					  <widget class="QWidget" name="gridLayoutWidget">
 | 
				
			||||||
 | 
					   <property name="geometry">
 | 
				
			||||||
 | 
					    <rect>
 | 
				
			||||||
 | 
					     <x>40</x>
 | 
				
			||||||
 | 
					     <y>40</y>
 | 
				
			||||||
 | 
					     <width>369</width>
 | 
				
			||||||
 | 
					     <height>164</height>
 | 
				
			||||||
 | 
					    </rect>
 | 
				
			||||||
 | 
					   </property>
 | 
				
			||||||
 | 
					   <layout class="QGridLayout" name="pLayoutMain">
 | 
				
			||||||
 | 
					    <property name="sizeConstraint">
 | 
				
			||||||
 | 
					     <enum>QLayout::SetFixedSize</enum>
 | 
				
			||||||
 | 
					    </property>
 | 
				
			||||||
 | 
					    <item row="0" column="0">
 | 
				
			||||||
 | 
					     <layout class="QVBoxLayout" name="verticalLayout">
 | 
				
			||||||
 | 
					      <property name="leftMargin">
 | 
				
			||||||
 | 
					       <number>5</number>
 | 
				
			||||||
 | 
					      </property>
 | 
				
			||||||
 | 
					      <property name="topMargin">
 | 
				
			||||||
 | 
					       <number>5</number>
 | 
				
			||||||
 | 
					      </property>
 | 
				
			||||||
 | 
					      <property name="rightMargin">
 | 
				
			||||||
 | 
					       <number>5</number>
 | 
				
			||||||
 | 
					      </property>
 | 
				
			||||||
 | 
					      <property name="bottomMargin">
 | 
				
			||||||
 | 
					       <number>5</number>
 | 
				
			||||||
 | 
					      </property>
 | 
				
			||||||
 | 
					      <item>
 | 
				
			||||||
 | 
					       <layout class="QHBoxLayout" name="horizontalLayout">
 | 
				
			||||||
 | 
					        <item>
 | 
				
			||||||
 | 
					         <widget class="QLabel" name="label_4">
 | 
				
			||||||
 | 
					          <property name="sizePolicy">
 | 
				
			||||||
 | 
					           <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
 | 
				
			||||||
 | 
					            <horstretch>0</horstretch>
 | 
				
			||||||
 | 
					            <verstretch>0</verstretch>
 | 
				
			||||||
 | 
					           </sizepolicy>
 | 
				
			||||||
 | 
					          </property>
 | 
				
			||||||
 | 
					          <property name="minimumSize">
 | 
				
			||||||
 | 
					           <size>
 | 
				
			||||||
 | 
					            <width>104</width>
 | 
				
			||||||
 | 
					            <height>104</height>
 | 
				
			||||||
 | 
					           </size>
 | 
				
			||||||
 | 
					          </property>
 | 
				
			||||||
 | 
					          <property name="maximumSize">
 | 
				
			||||||
 | 
					           <size>
 | 
				
			||||||
 | 
					            <width>104</width>
 | 
				
			||||||
 | 
					            <height>104</height>
 | 
				
			||||||
 | 
					           </size>
 | 
				
			||||||
 | 
					          </property>
 | 
				
			||||||
 | 
					          <property name="text">
 | 
				
			||||||
 | 
					           <string/>
 | 
				
			||||||
 | 
					          </property>
 | 
				
			||||||
 | 
					          <property name="pixmap">
 | 
				
			||||||
 | 
					           <pixmap resource="resource.qrc">:/QMainFrame/Resources/login.png</pixmap>
 | 
				
			||||||
 | 
					          </property>
 | 
				
			||||||
 | 
					          <property name="scaledContents">
 | 
				
			||||||
 | 
					           <bool>true</bool>
 | 
				
			||||||
 | 
					          </property>
 | 
				
			||||||
 | 
					          <property name="alignment">
 | 
				
			||||||
 | 
					           <set>Qt::AlignCenter</set>
 | 
				
			||||||
 | 
					          </property>
 | 
				
			||||||
 | 
					         </widget>
 | 
				
			||||||
 | 
					        </item>
 | 
				
			||||||
 | 
					        <item>
 | 
				
			||||||
 | 
					         <widget class="QGroupBox" name="groupBox">
 | 
				
			||||||
 | 
					          <property name="sizePolicy">
 | 
				
			||||||
 | 
					           <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
 | 
				
			||||||
 | 
					            <horstretch>0</horstretch>
 | 
				
			||||||
 | 
					            <verstretch>0</verstretch>
 | 
				
			||||||
 | 
					           </sizepolicy>
 | 
				
			||||||
 | 
					          </property>
 | 
				
			||||||
 | 
					          <property name="minimumSize">
 | 
				
			||||||
 | 
					           <size>
 | 
				
			||||||
 | 
					            <width>245</width>
 | 
				
			||||||
 | 
					            <height>104</height>
 | 
				
			||||||
 | 
					           </size>
 | 
				
			||||||
 | 
					          </property>
 | 
				
			||||||
 | 
					          <property name="maximumSize">
 | 
				
			||||||
 | 
					           <size>
 | 
				
			||||||
 | 
					            <width>245</width>
 | 
				
			||||||
 | 
					            <height>104</height>
 | 
				
			||||||
 | 
					           </size>
 | 
				
			||||||
 | 
					          </property>
 | 
				
			||||||
 | 
					          <property name="title">
 | 
				
			||||||
 | 
					           <string>登录信息:</string>
 | 
				
			||||||
 | 
					          </property>
 | 
				
			||||||
 | 
					          <layout class="QGridLayout" name="gridLayout">
 | 
				
			||||||
 | 
					           <property name="sizeConstraint">
 | 
				
			||||||
 | 
					            <enum>QLayout::SetFixedSize</enum>
 | 
				
			||||||
 | 
					           </property>
 | 
				
			||||||
 | 
					           <item row="0" column="0">
 | 
				
			||||||
 | 
					            <widget class="QLabel" name="label">
 | 
				
			||||||
 | 
					             <property name="text">
 | 
				
			||||||
 | 
					              <string>    工号:</string>
 | 
				
			||||||
 | 
					             </property>
 | 
				
			||||||
 | 
					             <property name="alignment">
 | 
				
			||||||
 | 
					              <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
 | 
				
			||||||
 | 
					             </property>
 | 
				
			||||||
 | 
					            </widget>
 | 
				
			||||||
 | 
					           </item>
 | 
				
			||||||
 | 
					           <item row="0" column="1">
 | 
				
			||||||
 | 
					            <widget class="QLineEdit" name="pEditUserCode">
 | 
				
			||||||
 | 
					             <property name="maxLength">
 | 
				
			||||||
 | 
					              <number>6</number>
 | 
				
			||||||
 | 
					             </property>
 | 
				
			||||||
 | 
					             <property name="alignment">
 | 
				
			||||||
 | 
					              <set>Qt::AlignCenter</set>
 | 
				
			||||||
 | 
					             </property>
 | 
				
			||||||
 | 
					             <property name="clearButtonEnabled">
 | 
				
			||||||
 | 
					              <bool>true</bool>
 | 
				
			||||||
 | 
					             </property>
 | 
				
			||||||
 | 
					            </widget>
 | 
				
			||||||
 | 
					           </item>
 | 
				
			||||||
 | 
					           <item row="1" column="0">
 | 
				
			||||||
 | 
					            <widget class="QLabel" name="label_2">
 | 
				
			||||||
 | 
					             <property name="text">
 | 
				
			||||||
 | 
					              <string>名称:</string>
 | 
				
			||||||
 | 
					             </property>
 | 
				
			||||||
 | 
					             <property name="alignment">
 | 
				
			||||||
 | 
					              <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
 | 
				
			||||||
 | 
					             </property>
 | 
				
			||||||
 | 
					            </widget>
 | 
				
			||||||
 | 
					           </item>
 | 
				
			||||||
 | 
					           <item row="1" column="1">
 | 
				
			||||||
 | 
					            <widget class="QLineEdit" name="pEditUserName">
 | 
				
			||||||
 | 
					             <property name="maxLength">
 | 
				
			||||||
 | 
					              <number>20</number>
 | 
				
			||||||
 | 
					             </property>
 | 
				
			||||||
 | 
					             <property name="alignment">
 | 
				
			||||||
 | 
					              <set>Qt::AlignCenter</set>
 | 
				
			||||||
 | 
					             </property>
 | 
				
			||||||
 | 
					             <property name="readOnly">
 | 
				
			||||||
 | 
					              <bool>true</bool>
 | 
				
			||||||
 | 
					             </property>
 | 
				
			||||||
 | 
					             <property name="clearButtonEnabled">
 | 
				
			||||||
 | 
					              <bool>true</bool>
 | 
				
			||||||
 | 
					             </property>
 | 
				
			||||||
 | 
					            </widget>
 | 
				
			||||||
 | 
					           </item>
 | 
				
			||||||
 | 
					           <item row="2" column="0">
 | 
				
			||||||
 | 
					            <widget class="QLabel" name="label_3">
 | 
				
			||||||
 | 
					             <property name="text">
 | 
				
			||||||
 | 
					              <string>密码:</string>
 | 
				
			||||||
 | 
					             </property>
 | 
				
			||||||
 | 
					             <property name="alignment">
 | 
				
			||||||
 | 
					              <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
 | 
				
			||||||
 | 
					             </property>
 | 
				
			||||||
 | 
					            </widget>
 | 
				
			||||||
 | 
					           </item>
 | 
				
			||||||
 | 
					           <item row="2" column="1">
 | 
				
			||||||
 | 
					            <widget class="QLineEdit" name="pEditPassword">
 | 
				
			||||||
 | 
					             <property name="maxLength">
 | 
				
			||||||
 | 
					              <number>999</number>
 | 
				
			||||||
 | 
					             </property>
 | 
				
			||||||
 | 
					             <property name="echoMode">
 | 
				
			||||||
 | 
					              <enum>QLineEdit::Password</enum>
 | 
				
			||||||
 | 
					             </property>
 | 
				
			||||||
 | 
					             <property name="alignment">
 | 
				
			||||||
 | 
					              <set>Qt::AlignCenter</set>
 | 
				
			||||||
 | 
					             </property>
 | 
				
			||||||
 | 
					             <property name="clearButtonEnabled">
 | 
				
			||||||
 | 
					              <bool>true</bool>
 | 
				
			||||||
 | 
					             </property>
 | 
				
			||||||
 | 
					            </widget>
 | 
				
			||||||
 | 
					           </item>
 | 
				
			||||||
 | 
					          </layout>
 | 
				
			||||||
 | 
					         </widget>
 | 
				
			||||||
 | 
					        </item>
 | 
				
			||||||
 | 
					       </layout>
 | 
				
			||||||
 | 
					      </item>
 | 
				
			||||||
 | 
					      <item>
 | 
				
			||||||
 | 
					       <layout class="QHBoxLayout" name="horizontalLayout_2">
 | 
				
			||||||
 | 
					        <item>
 | 
				
			||||||
 | 
					         <spacer name="horizontalSpacer_2">
 | 
				
			||||||
 | 
					          <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="QToolButton" name="pButtonLogin">
 | 
				
			||||||
 | 
					          <property name="text">
 | 
				
			||||||
 | 
					           <string>登录</string>
 | 
				
			||||||
 | 
					          </property>
 | 
				
			||||||
 | 
					          <property name="icon">
 | 
				
			||||||
 | 
					           <iconset resource="resource.qrc">
 | 
				
			||||||
 | 
					            <normaloff>:/QMainFrame/Resources/ok.png</normaloff>:/QMainFrame/Resources/ok.png</iconset>
 | 
				
			||||||
 | 
					          </property>
 | 
				
			||||||
 | 
					          <property name="iconSize">
 | 
				
			||||||
 | 
					           <size>
 | 
				
			||||||
 | 
					            <width>32</width>
 | 
				
			||||||
 | 
					            <height>32</height>
 | 
				
			||||||
 | 
					           </size>
 | 
				
			||||||
 | 
					          </property>
 | 
				
			||||||
 | 
					          <property name="toolButtonStyle">
 | 
				
			||||||
 | 
					           <enum>Qt::ToolButtonTextBesideIcon</enum>
 | 
				
			||||||
 | 
					          </property>
 | 
				
			||||||
 | 
					         </widget>
 | 
				
			||||||
 | 
					        </item>
 | 
				
			||||||
 | 
					        <item>
 | 
				
			||||||
 | 
					         <spacer name="horizontalSpacer">
 | 
				
			||||||
 | 
					          <property name="orientation">
 | 
				
			||||||
 | 
					           <enum>Qt::Horizontal</enum>
 | 
				
			||||||
 | 
					          </property>
 | 
				
			||||||
 | 
					          <property name="sizeType">
 | 
				
			||||||
 | 
					           <enum>QSizePolicy::Fixed</enum>
 | 
				
			||||||
 | 
					          </property>
 | 
				
			||||||
 | 
					          <property name="sizeHint" stdset="0">
 | 
				
			||||||
 | 
					           <size>
 | 
				
			||||||
 | 
					            <width>5</width>
 | 
				
			||||||
 | 
					            <height>20</height>
 | 
				
			||||||
 | 
					           </size>
 | 
				
			||||||
 | 
					          </property>
 | 
				
			||||||
 | 
					         </spacer>
 | 
				
			||||||
 | 
					        </item>
 | 
				
			||||||
 | 
					        <item>
 | 
				
			||||||
 | 
					         <widget class="QToolButton" name="pButtonCancel">
 | 
				
			||||||
 | 
					          <property name="text">
 | 
				
			||||||
 | 
					           <string>放弃</string>
 | 
				
			||||||
 | 
					          </property>
 | 
				
			||||||
 | 
					          <property name="icon">
 | 
				
			||||||
 | 
					           <iconset resource="resource.qrc">
 | 
				
			||||||
 | 
					            <normaloff>:/QMainFrame/Resources/x.png</normaloff>:/QMainFrame/Resources/x.png</iconset>
 | 
				
			||||||
 | 
					          </property>
 | 
				
			||||||
 | 
					          <property name="iconSize">
 | 
				
			||||||
 | 
					           <size>
 | 
				
			||||||
 | 
					            <width>32</width>
 | 
				
			||||||
 | 
					            <height>32</height>
 | 
				
			||||||
 | 
					           </size>
 | 
				
			||||||
 | 
					          </property>
 | 
				
			||||||
 | 
					          <property name="toolButtonStyle">
 | 
				
			||||||
 | 
					           <enum>Qt::ToolButtonTextBesideIcon</enum>
 | 
				
			||||||
 | 
					          </property>
 | 
				
			||||||
 | 
					         </widget>
 | 
				
			||||||
 | 
					        </item>
 | 
				
			||||||
 | 
					        <item>
 | 
				
			||||||
 | 
					         <spacer name="horizontalSpacer_3">
 | 
				
			||||||
 | 
					          <property name="orientation">
 | 
				
			||||||
 | 
					           <enum>Qt::Horizontal</enum>
 | 
				
			||||||
 | 
					          </property>
 | 
				
			||||||
 | 
					          <property name="sizeType">
 | 
				
			||||||
 | 
					           <enum>QSizePolicy::Fixed</enum>
 | 
				
			||||||
 | 
					          </property>
 | 
				
			||||||
 | 
					          <property name="sizeHint" stdset="0">
 | 
				
			||||||
 | 
					           <size>
 | 
				
			||||||
 | 
					            <width>5</width>
 | 
				
			||||||
 | 
					            <height>20</height>
 | 
				
			||||||
 | 
					           </size>
 | 
				
			||||||
 | 
					          </property>
 | 
				
			||||||
 | 
					         </spacer>
 | 
				
			||||||
 | 
					        </item>
 | 
				
			||||||
 | 
					       </layout>
 | 
				
			||||||
 | 
					      </item>
 | 
				
			||||||
 | 
					     </layout>
 | 
				
			||||||
 | 
					    </item>
 | 
				
			||||||
 | 
					   </layout>
 | 
				
			||||||
 | 
					  </widget>
 | 
				
			||||||
 | 
					 </widget>
 | 
				
			||||||
 | 
					 <layoutdefault spacing="6" margin="11"/>
 | 
				
			||||||
 | 
					 <resources>
 | 
				
			||||||
 | 
					  <include location="resource.qrc"/>
 | 
				
			||||||
 | 
					  <include location="resources.qrc"/>
 | 
				
			||||||
 | 
					 </resources>
 | 
				
			||||||
 | 
					 <connections/>
 | 
				
			||||||
 | 
					</ui>
 | 
				
			||||||
							
								
								
									
										109
									
								
								代码/vs2017/TelsaleAuxKit/TelsaleAuxKit/QMainFrame.cpp
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,109 @@
 | 
				
			|||||||
 | 
					#include <QtWidgets/QtWidgets>
 | 
				
			||||||
 | 
					#include <QStatusBar>
 | 
				
			||||||
 | 
					#include <QtWidgets/QtWidgets>
 | 
				
			||||||
 | 
					#include "QMainFrame.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					QMainFrame::QMainFrame(QWidget *parent)
 | 
				
			||||||
 | 
						: QMainWindow(parent)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						setupUi(this);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						init();
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					QMainFrame::~QMainFrame()
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void QMainFrame::init()
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						initWidget();
 | 
				
			||||||
 | 
						initSignal();
 | 
				
			||||||
 | 
						initStatusBar();
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void QMainFrame::initWidget()
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
 | 
				
			||||||
 | 
						setWindowTitle( windowTitle() + QString::fromLocal8Bit(" - <20>汾<EFBFBD>ţ<EFBFBD>v") + QString::fromLocal8Bit( getVersion().c_str()) );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
 | 
				
			||||||
 | 
						//ui.pActionDataManage->setEnabled( false );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
 | 
				
			||||||
 | 
						m_pWidgetStack = new QMyStackedWidget( this );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						setCentralWidget( m_pWidgetStack );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ¼<CFA2>봰<EFBFBD><EBB4B0>
 | 
				
			||||||
 | 
						m_pWidgetInfoInput = new QTelSalePolicyInfoInputWidget();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						m_pWidgetStack->addWidget( m_pWidgetInfoInput, QString::fromLocal8Bit("<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ת<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ¼<EFBFBD>봰<EFBFBD><EFBFBD>") );
 | 
				
			||||||
 | 
						m_pWidgetStack->showWidget( QString::fromLocal8Bit("<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ת<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ¼<EFBFBD>봰<EFBFBD><EFBFBD>") );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD>
 | 
				
			||||||
 | 
						m_pWidgetQuery = new QTelSalePolicyInfoQuery();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						m_pWidgetStack->addWidget( m_pWidgetQuery, QString::fromLocal8Bit("<EFBFBD><EFBFBD>Ϣ<EFBFBD><EFBFBD>ѯ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>") );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ô<EFBFBD><C3B4><EFBFBD>
 | 
				
			||||||
 | 
						QScrollArea * pScrollArea = new QScrollArea();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						m_pWidgetConfiguration = new QConfigurationWidget();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						pScrollArea->setWidget( m_pWidgetConfiguration );
 | 
				
			||||||
 | 
						pScrollArea->setAlignment( Qt::AlignLeft | Qt::AlignTop );
 | 
				
			||||||
 | 
						pScrollArea->setObjectName( QString::fromLocal8Bit("pScrollAreaInput") );
 | 
				
			||||||
 | 
						pScrollArea->setStyleSheet( QString::fromLocal8Bit( "#pScrollAreaInput\n{\n	border: none;\n}" ));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						m_pWidgetStack->addWidget( pScrollArea, QString::fromLocal8Bit("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ô<EFBFBD><EFBFBD><EFBFBD>") );
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void QMainFrame::initSignal()
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						connect( pActionInput, SIGNAL(triggered()), this, SLOT(onShowInputWidget()) );
 | 
				
			||||||
 | 
						connect( pActionQuery, SIGNAL(triggered()), this, SLOT(onShowQueryWidget()) );
 | 
				
			||||||
 | 
						connect( pActionSetParameter, SIGNAL(triggered()), this, SLOT(onShowSetParameterWidget()) );
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void QMainFrame::resizeEvent( QResizeEvent * pEvent )
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						QMainWindow::resizeEvent( pEvent );
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void QMainFrame::initStatusBar()
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						//<2F><>֤
 | 
				
			||||||
 | 
						QStatusBar * pStatusBar = this->statusBar();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if ( pStatusBar == NULL )
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							return;
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						QString strDate = QDate::currentDate().toString( QString::fromLocal8Bit("<EFBFBD><EFBFBD>ǰ<EFBFBD><EFBFBD><EFBFBD>ڣ<EFBFBD>yyyy<EFBFBD><EFBFBD>MM<EFBFBD><EFBFBD>dd<EFBFBD><EFBFBD> ") );
 | 
				
			||||||
 | 
						QString strUserName = QString::fromLocal8Bit("<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ա<EFBFBD><EFBFBD>") + QString::fromLocal8Bit( getUserName().c_str() ) + QString(" ");
 | 
				
			||||||
 | 
						QString strUserCode = QString::fromLocal8Bit("<EFBFBD><EFBFBD><EFBFBD>ţ<EFBFBD>") + QString::fromLocal8Bit( getUserCode().c_str() ) + QString(" ");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						//strUser.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						pStatusBar->addPermanentWidget( new QLabel(strDate) );
 | 
				
			||||||
 | 
						pStatusBar->addPermanentWidget( new QLabel(strUserName) );
 | 
				
			||||||
 | 
						pStatusBar->addPermanentWidget( new QLabel(strUserCode) );
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void QMainFrame::onShowInputWidget()
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						m_pWidgetStack->showWidget( QString::fromLocal8Bit("<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ת<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ¼<EFBFBD>봰<EFBFBD><EFBFBD>") );
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void QMainFrame::onShowQueryWidget()
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						m_pWidgetStack->showWidget( QString::fromLocal8Bit("<EFBFBD><EFBFBD>Ϣ<EFBFBD><EFBFBD>ѯ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>") );
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void QMainFrame::onShowSetParameterWidget()
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						m_pWidgetStack->showWidget( QString::fromLocal8Bit("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ô<EFBFBD><EFBFBD><EFBFBD>") );
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										43
									
								
								代码/vs2017/TelsaleAuxKit/TelsaleAuxKit/QMainFrame.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,43 @@
 | 
				
			|||||||
 | 
					#ifndef QMAINFRAME_H
 | 
				
			||||||
 | 
					#define QMAINFRAME_H
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include <QMainWindow>
 | 
				
			||||||
 | 
					#include "SystemData.h"
 | 
				
			||||||
 | 
					#include "QMyStackedWidget.h"
 | 
				
			||||||
 | 
					#include "QTelSalePolicyInfoInputWidget.h"
 | 
				
			||||||
 | 
					#include "QTelSalePolicyInfoQuery.h"
 | 
				
			||||||
 | 
					#include "QConfigurationWidget.h"
 | 
				
			||||||
 | 
					#include "ui_QMainFrame.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					class QMainFrame : public QMainWindow, public Ui::QMainFrame
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						Q_OBJECT
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					public:
 | 
				
			||||||
 | 
						QMainFrame(QWidget *parent = 0);
 | 
				
			||||||
 | 
						~QMainFrame();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					protected Q_SLOTS:
 | 
				
			||||||
 | 
						void onShowInputWidget();
 | 
				
			||||||
 | 
						void onShowQueryWidget();
 | 
				
			||||||
 | 
						void onShowSetParameterWidget();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					protected:
 | 
				
			||||||
 | 
						void resizeEvent(QResizeEvent * pEvent);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					private:
 | 
				
			||||||
 | 
						void init();
 | 
				
			||||||
 | 
						void initWidget();
 | 
				
			||||||
 | 
						void initSignal();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						void initStatusBar();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					private:
 | 
				
			||||||
 | 
						QMyStackedWidget * m_pWidgetStack;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						QTelSalePolicyInfoInputWidget * m_pWidgetInfoInput;
 | 
				
			||||||
 | 
						QTelSalePolicyInfoQuery * m_pWidgetQuery;
 | 
				
			||||||
 | 
						QConfigurationWidget * m_pWidgetConfiguration;
 | 
				
			||||||
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#endif // QMAINFRAME_H
 | 
				
			||||||
							
								
								
									
										129
									
								
								代码/vs2017/TelsaleAuxKit/TelsaleAuxKit/QMainFrame.ui
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,129 @@
 | 
				
			|||||||
 | 
					<?xml version="1.0" encoding="UTF-8"?>
 | 
				
			||||||
 | 
					<ui version="4.0">
 | 
				
			||||||
 | 
					 <class>QMainFrame</class>
 | 
				
			||||||
 | 
					 <widget class="QMainWindow" name="QMainFrame">
 | 
				
			||||||
 | 
					  <property name="geometry">
 | 
				
			||||||
 | 
					   <rect>
 | 
				
			||||||
 | 
					    <x>0</x>
 | 
				
			||||||
 | 
					    <y>0</y>
 | 
				
			||||||
 | 
					    <width>768</width>
 | 
				
			||||||
 | 
					    <height>534</height>
 | 
				
			||||||
 | 
					   </rect>
 | 
				
			||||||
 | 
					  </property>
 | 
				
			||||||
 | 
					  <property name="windowTitle">
 | 
				
			||||||
 | 
					   <string>电销转介绍信息管理系统</string>
 | 
				
			||||||
 | 
					  </property>
 | 
				
			||||||
 | 
					  <property name="windowIcon">
 | 
				
			||||||
 | 
					   <iconset resource="resource.qrc">
 | 
				
			||||||
 | 
					    <normaloff>:/QMainFrame/Resources/telephone.png</normaloff>:/QMainFrame/Resources/telephone.png</iconset>
 | 
				
			||||||
 | 
					  </property>
 | 
				
			||||||
 | 
					  <widget class="QWidget" name="centralWidget"/>
 | 
				
			||||||
 | 
					  <widget class="QMenuBar" name="menuBar">
 | 
				
			||||||
 | 
					   <property name="geometry">
 | 
				
			||||||
 | 
					    <rect>
 | 
				
			||||||
 | 
					     <x>0</x>
 | 
				
			||||||
 | 
					     <y>0</y>
 | 
				
			||||||
 | 
					     <width>768</width>
 | 
				
			||||||
 | 
					     <height>23</height>
 | 
				
			||||||
 | 
					    </rect>
 | 
				
			||||||
 | 
					   </property>
 | 
				
			||||||
 | 
					   <widget class="QMenu" name="menu">
 | 
				
			||||||
 | 
					    <property name="title">
 | 
				
			||||||
 | 
					     <string>系统</string>
 | 
				
			||||||
 | 
					    </property>
 | 
				
			||||||
 | 
					    <addaction name="pActionExit"/>
 | 
				
			||||||
 | 
					   </widget>
 | 
				
			||||||
 | 
					   <widget class="QMenu" name="menu_2">
 | 
				
			||||||
 | 
					    <property name="title">
 | 
				
			||||||
 | 
					     <string>帮助</string>
 | 
				
			||||||
 | 
					    </property>
 | 
				
			||||||
 | 
					    <addaction name="pActionAbout"/>
 | 
				
			||||||
 | 
					   </widget>
 | 
				
			||||||
 | 
					   <addaction name="menu"/>
 | 
				
			||||||
 | 
					   <addaction name="menu_2"/>
 | 
				
			||||||
 | 
					  </widget>
 | 
				
			||||||
 | 
					  <widget class="QToolBar" name="mainToolBar">
 | 
				
			||||||
 | 
					   <property name="iconSize">
 | 
				
			||||||
 | 
					    <size>
 | 
				
			||||||
 | 
					     <width>40</width>
 | 
				
			||||||
 | 
					     <height>40</height>
 | 
				
			||||||
 | 
					    </size>
 | 
				
			||||||
 | 
					   </property>
 | 
				
			||||||
 | 
					   <property name="toolButtonStyle">
 | 
				
			||||||
 | 
					    <enum>Qt::ToolButtonIconOnly</enum>
 | 
				
			||||||
 | 
					   </property>
 | 
				
			||||||
 | 
					   <attribute name="toolBarArea">
 | 
				
			||||||
 | 
					    <enum>TopToolBarArea</enum>
 | 
				
			||||||
 | 
					   </attribute>
 | 
				
			||||||
 | 
					   <attribute name="toolBarBreak">
 | 
				
			||||||
 | 
					    <bool>false</bool>
 | 
				
			||||||
 | 
					   </attribute>
 | 
				
			||||||
 | 
					   <addaction name="pActionInput"/>
 | 
				
			||||||
 | 
					   <addaction name="pActionQuery"/>
 | 
				
			||||||
 | 
					   <addaction name="pActionSetParameter"/>
 | 
				
			||||||
 | 
					  </widget>
 | 
				
			||||||
 | 
					  <widget class="QStatusBar" name="pStatusBar"/>
 | 
				
			||||||
 | 
					  <action name="pActionExit">
 | 
				
			||||||
 | 
					   <property name="icon">
 | 
				
			||||||
 | 
					    <iconset resource="resource.qrc">
 | 
				
			||||||
 | 
					     <normaloff>:/QMainFrame/Resources/x.png</normaloff>:/QMainFrame/Resources/x.png</iconset>
 | 
				
			||||||
 | 
					   </property>
 | 
				
			||||||
 | 
					   <property name="text">
 | 
				
			||||||
 | 
					    <string>退出</string>
 | 
				
			||||||
 | 
					   </property>
 | 
				
			||||||
 | 
					   <property name="toolTip">
 | 
				
			||||||
 | 
					    <string>退出程序</string>
 | 
				
			||||||
 | 
					   </property>
 | 
				
			||||||
 | 
					  </action>
 | 
				
			||||||
 | 
					  <action name="pActionAbout">
 | 
				
			||||||
 | 
					   <property name="icon">
 | 
				
			||||||
 | 
					    <iconset resource="resource.qrc">
 | 
				
			||||||
 | 
					     <normaloff>:/QMainFrame/Resources/CPIC.png</normaloff>:/QMainFrame/Resources/CPIC.png</iconset>
 | 
				
			||||||
 | 
					   </property>
 | 
				
			||||||
 | 
					   <property name="text">
 | 
				
			||||||
 | 
					    <string>关于</string>
 | 
				
			||||||
 | 
					   </property>
 | 
				
			||||||
 | 
					  </action>
 | 
				
			||||||
 | 
					  <action name="pActionInput">
 | 
				
			||||||
 | 
					   <property name="icon">
 | 
				
			||||||
 | 
					    <iconset resource="resource.qrc">
 | 
				
			||||||
 | 
					     <normaloff>:/QMainFrame/Resources/edit.png</normaloff>:/QMainFrame/Resources/edit.png</iconset>
 | 
				
			||||||
 | 
					   </property>
 | 
				
			||||||
 | 
					   <property name="text">
 | 
				
			||||||
 | 
					    <string>录入</string>
 | 
				
			||||||
 | 
					   </property>
 | 
				
			||||||
 | 
					   <property name="toolTip">
 | 
				
			||||||
 | 
					    <string>转介绍信息录入</string>
 | 
				
			||||||
 | 
					   </property>
 | 
				
			||||||
 | 
					  </action>
 | 
				
			||||||
 | 
					  <action name="pActionQuery">
 | 
				
			||||||
 | 
					   <property name="icon">
 | 
				
			||||||
 | 
					    <iconset resource="resource.qrc">
 | 
				
			||||||
 | 
					     <normaloff>:/QMainFrame/Resources/find.png</normaloff>:/QMainFrame/Resources/find.png</iconset>
 | 
				
			||||||
 | 
					   </property>
 | 
				
			||||||
 | 
					   <property name="text">
 | 
				
			||||||
 | 
					    <string>查询</string>
 | 
				
			||||||
 | 
					   </property>
 | 
				
			||||||
 | 
					   <property name="toolTip">
 | 
				
			||||||
 | 
					    <string>转介绍信息查询</string>
 | 
				
			||||||
 | 
					   </property>
 | 
				
			||||||
 | 
					  </action>
 | 
				
			||||||
 | 
					  <action name="pActionSetParameter">
 | 
				
			||||||
 | 
					   <property name="icon">
 | 
				
			||||||
 | 
					    <iconset resource="resource.qrc">
 | 
				
			||||||
 | 
					     <normaloff>:/QMainFrame/Resources/gear.png</normaloff>:/QMainFrame/Resources/gear.png</iconset>
 | 
				
			||||||
 | 
					   </property>
 | 
				
			||||||
 | 
					   <property name="text">
 | 
				
			||||||
 | 
					    <string>参数设置</string>
 | 
				
			||||||
 | 
					   </property>
 | 
				
			||||||
 | 
					   <property name="toolTip">
 | 
				
			||||||
 | 
					    <string>参数设置</string>
 | 
				
			||||||
 | 
					   </property>
 | 
				
			||||||
 | 
					  </action>
 | 
				
			||||||
 | 
					 </widget>
 | 
				
			||||||
 | 
					 <layoutdefault spacing="6" margin="11"/>
 | 
				
			||||||
 | 
					 <resources>
 | 
				
			||||||
 | 
					  <include location="resource.qrc"/>
 | 
				
			||||||
 | 
					 </resources>
 | 
				
			||||||
 | 
					 <connections/>
 | 
				
			||||||
 | 
					</ui>
 | 
				
			||||||
							
								
								
									
										12
									
								
								代码/vs2017/TelsaleAuxKit/TelsaleAuxKit/QMainWidget.cpp
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,12 @@
 | 
				
			|||||||
 | 
					#include "QMainWidget.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					QMainWidget::QMainWidget(QWidget *parent)
 | 
				
			||||||
 | 
						: QWidget(parent)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						ui.setupUi(this);
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					QMainWidget::~QMainWidget()
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										19
									
								
								代码/vs2017/TelsaleAuxKit/TelsaleAuxKit/QMainWidget.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,19 @@
 | 
				
			|||||||
 | 
					#ifndef QMAINWIDGET_H
 | 
				
			||||||
 | 
					#define QMAINWIDGET_H
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include <QtWidgets/QWidget>
 | 
				
			||||||
 | 
					#include "ui_QMainWidget.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					class QMainWidget : public QWidget
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						Q_OBJECT
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					public:
 | 
				
			||||||
 | 
						QMainWidget(QWidget *parent = 0);
 | 
				
			||||||
 | 
						~QMainWidget();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					private:
 | 
				
			||||||
 | 
						Ui::QMainWidgetClass ui;
 | 
				
			||||||
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#endif // QMAINWIDGET_H
 | 
				
			||||||