加入python部分脚本
This commit is contained in:
		@@ -5,22 +5,32 @@ VisualStudioVersion = 16.0.29609.76
 | 
				
			|||||||
MinimumVisualStudioVersion = 10.0.40219.1
 | 
					MinimumVisualStudioVersion = 10.0.40219.1
 | 
				
			||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "car_dealer_util", "car_dealer_util\car_dealer_util.vcxproj", "{B12702AD-ABFB-343A-A199-8E24837244A3}"
 | 
					Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "car_dealer_util", "car_dealer_util\car_dealer_util.vcxproj", "{B12702AD-ABFB-343A-A199-8E24837244A3}"
 | 
				
			||||||
EndProject
 | 
					EndProject
 | 
				
			||||||
 | 
					Project("{888888A0-9F3D-457C-B088-3A5042F75D52}") = "车商渠道数据采集", "..\..\..\..\python\车商渠道数据采集\车商渠道数据采集.pyproj", "{81F2541E-C96A-4C05-B3F5-643B25E708D5}"
 | 
				
			||||||
 | 
					EndProject
 | 
				
			||||||
Global
 | 
					Global
 | 
				
			||||||
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
 | 
						GlobalSection(SolutionConfigurationPlatforms) = preSolution
 | 
				
			||||||
 | 
							Debug|Any CPU = Debug|Any CPU
 | 
				
			||||||
		Debug|x64 = Debug|x64
 | 
							Debug|x64 = Debug|x64
 | 
				
			||||||
 | 
							Release|Any CPU = Release|Any CPU
 | 
				
			||||||
		Release|x64 = Release|x64
 | 
							Release|x64 = Release|x64
 | 
				
			||||||
	EndGlobalSection
 | 
						EndGlobalSection
 | 
				
			||||||
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
 | 
						GlobalSection(ProjectConfigurationPlatforms) = postSolution
 | 
				
			||||||
 | 
							{B12702AD-ABFB-343A-A199-8E24837244A3}.Debug|Any CPU.ActiveCfg = Debug|x64
 | 
				
			||||||
		{B12702AD-ABFB-343A-A199-8E24837244A3}.Debug|x64.ActiveCfg = Debug|x64
 | 
							{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|x64.Build.0 = Debug|x64
 | 
				
			||||||
 | 
							{B12702AD-ABFB-343A-A199-8E24837244A3}.Release|Any CPU.ActiveCfg = Release|x64
 | 
				
			||||||
		{B12702AD-ABFB-343A-A199-8E24837244A3}.Release|x64.ActiveCfg = Release|x64
 | 
							{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|x64.Build.0 = Release|x64
 | 
				
			||||||
 | 
							{81F2541E-C96A-4C05-B3F5-643B25E708D5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
 | 
				
			||||||
 | 
							{81F2541E-C96A-4C05-B3F5-643B25E708D5}.Debug|x64.ActiveCfg = Debug|Any CPU
 | 
				
			||||||
 | 
							{81F2541E-C96A-4C05-B3F5-643B25E708D5}.Release|Any CPU.ActiveCfg = Release|Any CPU
 | 
				
			||||||
 | 
							{81F2541E-C96A-4C05-B3F5-643B25E708D5}.Release|x64.ActiveCfg = Release|Any CPU
 | 
				
			||||||
	EndGlobalSection
 | 
						EndGlobalSection
 | 
				
			||||||
	GlobalSection(SolutionProperties) = preSolution
 | 
						GlobalSection(SolutionProperties) = preSolution
 | 
				
			||||||
		HideSolutionNode = FALSE
 | 
							HideSolutionNode = FALSE
 | 
				
			||||||
	EndGlobalSection
 | 
						EndGlobalSection
 | 
				
			||||||
	GlobalSection(ExtensibilityGlobals) = postSolution
 | 
						GlobalSection(ExtensibilityGlobals) = postSolution
 | 
				
			||||||
		Qt5Version = 5.14.2_msvc2017_x64
 | 
					 | 
				
			||||||
		SolutionGuid = {7A1F667A-8FB5-4B18-8D74-E810D205DFA9}
 | 
							SolutionGuid = {7A1F667A-8FB5-4B18-8D74-E810D205DFA9}
 | 
				
			||||||
 | 
							Qt5Version = 5.14.2_msvc2017_x64
 | 
				
			||||||
	EndGlobalSection
 | 
						EndGlobalSection
 | 
				
			||||||
EndGlobal
 | 
					EndGlobal
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -0,0 +1 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
@@ -0,0 +1,35 @@
 | 
				
			|||||||
 | 
					<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
 | 
				
			||||||
 | 
					  <PropertyGroup>
 | 
				
			||||||
 | 
					    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
 | 
				
			||||||
 | 
					    <SchemaVersion>2.0</SchemaVersion>
 | 
				
			||||||
 | 
					    <ProjectGuid>636b8684-898c-46dc-bfb0-b5f81f274867</ProjectGuid>
 | 
				
			||||||
 | 
					    <ProjectHome>.</ProjectHome>
 | 
				
			||||||
 | 
					    <StartupFile>车商渠道系统数据采集.py</StartupFile>
 | 
				
			||||||
 | 
					    <SearchPath>
 | 
				
			||||||
 | 
					    </SearchPath>
 | 
				
			||||||
 | 
					    <WorkingDirectory>.</WorkingDirectory>
 | 
				
			||||||
 | 
					    <OutputPath>.</OutputPath>
 | 
				
			||||||
 | 
					    <Name>车商渠道系统数据采集</Name>
 | 
				
			||||||
 | 
					    <RootNamespace>车商渠道系统数据采集</RootNamespace>
 | 
				
			||||||
 | 
					  </PropertyGroup>
 | 
				
			||||||
 | 
					  <PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
 | 
				
			||||||
 | 
					    <DebugSymbols>true</DebugSymbols>
 | 
				
			||||||
 | 
					    <EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
 | 
				
			||||||
 | 
					  </PropertyGroup>
 | 
				
			||||||
 | 
					  <PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
 | 
				
			||||||
 | 
					    <DebugSymbols>true</DebugSymbols>
 | 
				
			||||||
 | 
					    <EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
 | 
				
			||||||
 | 
					  </PropertyGroup>
 | 
				
			||||||
 | 
					  <ItemGroup>
 | 
				
			||||||
 | 
					    <Compile Include="车商渠道系统数据采集.py" />
 | 
				
			||||||
 | 
					  </ItemGroup>
 | 
				
			||||||
 | 
					  <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\Python Tools\Microsoft.PythonTools.targets" />
 | 
				
			||||||
 | 
					  <!-- Uncomment the CoreCompile target to enable the Build command in
 | 
				
			||||||
 | 
					       Visual Studio and specify your pre- and post-build commands in
 | 
				
			||||||
 | 
					       the BeforeBuild and AfterBuild targets below. -->
 | 
				
			||||||
 | 
					  <!--<Target Name="CoreCompile" />-->
 | 
				
			||||||
 | 
					  <Target Name="BeforeBuild">
 | 
				
			||||||
 | 
					  </Target>
 | 
				
			||||||
 | 
					  <Target Name="AfterBuild">
 | 
				
			||||||
 | 
					  </Target>
 | 
				
			||||||
 | 
					</Project>
 | 
				
			||||||
							
								
								
									
										25
									
								
								code/python/车商渠道数据采集/DataManagement/CarDealer.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								code/python/车商渠道数据采集/DataManagement/CarDealer.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,25 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					import sys;
 | 
				
			||||||
 | 
					import cx_Oracle;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					def getConnectString( user_name, password, db_name ):
 | 
				
			||||||
 | 
					    return userName + "/" + password + "@" + dbName
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					sql = \
 | 
				
			||||||
 | 
					    "select * \n" \
 | 
				
			||||||
 | 
					    "  from idst0.rydm_t"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					userName = "dataex"
 | 
				
			||||||
 | 
					password = "cpic123456"
 | 
				
			||||||
 | 
					dbName = "10.39.0.86/xmcx1"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					conn = cx_Oracle.connect( getConnectString(userName,password,dbName) )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					curs = conn.cursor()
 | 
				
			||||||
 | 
					result = curs.execute(sql)
 | 
				
			||||||
 | 
					row = curs.fetchone()
 | 
				
			||||||
 | 
					print( row )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					curs.close()
 | 
				
			||||||
 | 
					conn.close()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
							
								
								
									
										0
									
								
								code/python/车商渠道数据采集/DataManagement/__init__.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								code/python/车商渠道数据采集/DataManagement/__init__.py
									
									
									
									
									
										Normal file
									
								
							@@ -4,7 +4,7 @@
 | 
				
			|||||||
    <SchemaVersion>2.0</SchemaVersion>
 | 
					    <SchemaVersion>2.0</SchemaVersion>
 | 
				
			||||||
    <ProjectGuid>81f2541e-c96a-4c05-b3f5-643b25e708d5</ProjectGuid>
 | 
					    <ProjectGuid>81f2541e-c96a-4c05-b3f5-643b25e708d5</ProjectGuid>
 | 
				
			||||||
    <ProjectHome>.</ProjectHome>
 | 
					    <ProjectHome>.</ProjectHome>
 | 
				
			||||||
    <StartupFile>RepairOrderScrap\RepairOrderScrap.py</StartupFile>
 | 
					    <StartupFile>DataManagement\CarDealer.py</StartupFile>
 | 
				
			||||||
    <SearchPath>
 | 
					    <SearchPath>
 | 
				
			||||||
    </SearchPath>
 | 
					    </SearchPath>
 | 
				
			||||||
    <WorkingDirectory>.</WorkingDirectory>
 | 
					    <WorkingDirectory>.</WorkingDirectory>
 | 
				
			||||||
@@ -22,9 +22,12 @@
 | 
				
			|||||||
    <EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
 | 
					    <EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
 | 
				
			||||||
  </PropertyGroup>
 | 
					  </PropertyGroup>
 | 
				
			||||||
  <ItemGroup>
 | 
					  <ItemGroup>
 | 
				
			||||||
 | 
					    <Folder Include="DataManagement\" />
 | 
				
			||||||
    <Folder Include="RepairOrderScrap\" />
 | 
					    <Folder Include="RepairOrderScrap\" />
 | 
				
			||||||
  </ItemGroup>
 | 
					  </ItemGroup>
 | 
				
			||||||
  <ItemGroup>
 | 
					  <ItemGroup>
 | 
				
			||||||
 | 
					    <Compile Include="DataManagement\CarDealer.py" />
 | 
				
			||||||
 | 
					    <Compile Include="DataManagement\__init__.py" />
 | 
				
			||||||
    <Compile Include="RepairOrderScrap\RepairOrderScrap.py">
 | 
					    <Compile Include="RepairOrderScrap\RepairOrderScrap.py">
 | 
				
			||||||
      <SubType>Code</SubType>
 | 
					      <SubType>Code</SubType>
 | 
				
			||||||
    </Compile>
 | 
					    </Compile>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user