Commit eb8e4d23 刘韬

旧代码归档整理

1 个父辈 2bdddf2a
正在显示 37 个修改的文件 包含 109 行增加121 行删除
...@@ -175,7 +175,12 @@ ...@@ -175,7 +175,12 @@
<Compile Include="FrmCrystalReprotEN.Designer.cs"> <Compile Include="FrmCrystalReprotEN.Designer.cs">
<DependentUpon>FrmCrystalReprotEN.cs</DependentUpon> <DependentUpon>FrmCrystalReprotEN.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="From.cs" /> <Compile Include="FrmStandard.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmStandard.Designer.cs">
<DependentUpon>FrmStandard.cs</DependentUpon>
</Compile>
<Compile Include="InputInfo.cs"> <Compile Include="InputInfo.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
...@@ -248,34 +253,24 @@ ...@@ -248,34 +253,24 @@
<Compile Include="NewCode\ucCalibration.Designer.cs"> <Compile Include="NewCode\ucCalibration.Designer.cs">
<DependentUpon>ucCalibration.cs</DependentUpon> <DependentUpon>ucCalibration.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="OldCode\FrmCurve.cs"> <Compile Include="FrmCurve.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
<Compile Include="OldCode\FrmCurve.Designer.cs"> <Compile Include="FrmCurve.Designer.cs">
<DependentUpon>FrmCurve.cs</DependentUpon> <DependentUpon>FrmCurve.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="OldCode\FrmSPCCurve.cs"> <Compile Include="FrmSPCCurve.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
<Compile Include="OldCode\FrmSPCCurve.Designer.cs"> <Compile Include="FrmSPCCurve.Designer.cs">
<DependentUpon>FrmSPCCurve.cs</DependentUpon> <DependentUpon>FrmSPCCurve.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="OldCode\FrmStandard.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="OldCode\FrmStandard.Designer.cs">
<DependentUpon>FrmStandard.cs</DependentUpon>
</Compile>
<Compile Include="Properties\Resources.Designer.cs"> <Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen> <AutoGen>True</AutoGen>
<DesignTime>True</DesignTime> <DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon> <DependentUpon>Resources.resx</DependentUpon>
</Compile> </Compile>
<Compile Include="ReceiveMachineData.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Resources\AppGlobal.cs" /> <Compile Include="Resources\AppGlobal.cs" />
<Compile Include="CheckVersion.cs" />
<Compile Include="FrmBase.cs"> <Compile Include="FrmBase.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
...@@ -312,13 +307,9 @@ ...@@ -312,13 +307,9 @@
<Compile Include="FrmTestResult.Designer.cs"> <Compile Include="FrmTestResult.Designer.cs">
<DependentUpon>FrmTestResult.cs</DependentUpon> <DependentUpon>FrmTestResult.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="GetServiceVersion.cs" />
<Compile Include="GlobalConfig.cs" />
<Compile Include="InfoForm.cs"> <Compile Include="InfoForm.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
<Compile Include="Licence.cs" />
<Compile Include="Main.cs" />
<Compile Include="Program.cs" /> <Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="CrystalReport\CrystalReportCH.rpt"> <EmbeddedResource Include="CrystalReport\CrystalReportCH.rpt">
...@@ -355,6 +346,9 @@ ...@@ -355,6 +346,9 @@
<DependentUpon>FrmSplash.cs</DependentUpon> <DependentUpon>FrmSplash.cs</DependentUpon>
<SubType>Designer</SubType> <SubType>Designer</SubType>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="FrmStandard.resx">
<DependentUpon>FrmStandard.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmTestManage.resx"> <EmbeddedResource Include="FrmTestManage.resx">
<DependentUpon>FrmTestManage.cs</DependentUpon> <DependentUpon>FrmTestManage.cs</DependentUpon>
<SubType>Designer</SubType> <SubType>Designer</SubType>
...@@ -404,18 +398,14 @@ ...@@ -404,18 +398,14 @@
<EmbeddedResource Include="NewCode\ucCalibration.resx"> <EmbeddedResource Include="NewCode\ucCalibration.resx">
<DependentUpon>ucCalibration.cs</DependentUpon> <DependentUpon>ucCalibration.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="OldCode\FrmCurve.resx"> <EmbeddedResource Include="FrmCurve.resx">
<DependentUpon>FrmCurve.cs</DependentUpon> <DependentUpon>FrmCurve.cs</DependentUpon>
<SubType>Designer</SubType> <SubType>Designer</SubType>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="OldCode\FrmSPCCurve.resx"> <EmbeddedResource Include="FrmSPCCurve.resx">
<DependentUpon>FrmSPCCurve.cs</DependentUpon> <DependentUpon>FrmSPCCurve.cs</DependentUpon>
<SubType>Designer</SubType> <SubType>Designer</SubType>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="OldCode\FrmStandard.resx">
<DependentUpon>FrmStandard.cs</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="Properties\LResource.ja-JP.resx"> <EmbeddedResource Include="Properties\LResource.ja-JP.resx">
<SubType>Designer</SubType> <SubType>Designer</SubType>
</EmbeddedResource> </EmbeddedResource>
...@@ -430,9 +420,6 @@ ...@@ -430,9 +420,6 @@
<SubType>Designer</SubType> <SubType>Designer</SubType>
<LastGenOutput>Resources.Designer.cs</LastGenOutput> <LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="ReceiveMachineData.resx">
<DependentUpon>ReceiveMachineData.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="testZedGraph.resx"> <EmbeddedResource Include="testZedGraph.resx">
<DependentUpon>testZedGraph.cs</DependentUpon> <DependentUpon>testZedGraph.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
...@@ -603,13 +590,11 @@ ...@@ -603,13 +590,11 @@
<None Include="Resources\picture\uss.png" /> <None Include="Resources\picture\uss.png" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Content Include="DiskSerialNo.dll" />
<None Include="Resources\ButtonBg.png" /> <None Include="Resources\ButtonBg.png" />
<None Include="Resources\addCurve.png" /> <None Include="Resources\addCurve.png" />
<None Include="PCB.jpg"> <None Include="PCB.jpg">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None> </None>
<Content Include="License-LGPL.txt" />
<Content Include="Resources\B_click1.png" /> <Content Include="Resources\B_click1.png" />
<Content Include="Resources\B_on1.png" /> <Content Include="Resources\B_on1.png" />
<None Include="CrystalReport\DataSet1.xsc"> <None Include="CrystalReport\DataSet1.xsc">
...@@ -629,9 +614,6 @@ ...@@ -629,9 +614,6 @@
<None Include="Resources\export.png" /> <None Include="Resources\export.png" />
<None Include="Resources\OpenFile.png" /> <None Include="Resources\OpenFile.png" />
<None Include="Resources\PCB-min.jpg" /> <None Include="Resources\PCB-min.jpg" />
<Content Include="user32.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<None Include="Resources\picture\量表.png" /> <None Include="Resources\picture\量表.png" />
<None Include="app.config"> <None Include="app.config">
<SubType>Designer</SubType> <SubType>Designer</SubType>
...@@ -748,6 +730,7 @@ ...@@ -748,6 +730,7 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Folder Include="bin\" /> <Folder Include="bin\" />
<Folder Include="OldCode\" />
</ItemGroup> </ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" /> <Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
......

\ No newline at end of file \ No newline at end of file
...@@ -247,100 +247,100 @@ namespace App ...@@ -247,100 +247,100 @@ namespace App
/// <summary> /// <summary>
/// 检测App.exe.config文件并且获取WebService的Url /// 检测App.exe.config文件并且获取WebService的Url
/// </summary> /// </summary>
public bool CheckAppConfigWebService() //public bool CheckAppConfigWebService()
{ //{
FileInfo fi = new FileInfo(GlobalConfig.CLIENTCONFIGNAME); // FileInfo fi = new FileInfo(GlobalConfig.CLIENTCONFIGNAME);
if (!fi.Exists) // if (!fi.Exists)
return false; // return false;
GlobalConfig globalconfig = new GlobalConfig(); // GlobalConfig globalconfig = new GlobalConfig();
if (String.IsNullOrEmpty(globalconfig.WebServiceUrl.Trim())) // if (String.IsNullOrEmpty(globalconfig.WebServiceUrl.Trim()))
{ // {
//todo 多语言 // //todo 多语言
MessageBox.Show("客户端设置文件已损坏!\n请联系系统管理员!\n是否继续运行程序?", "软件测试 信息"); // MessageBox.Show("客户端设置文件已损坏!\n请联系系统管理员!\n是否继续运行程序?", "软件测试 信息");
return false; // return false;
} // }
return true; // return true;
} //}
//检测本地客户端的主版本并与升级服务器端的最新客户端进行比较 //检测本地客户端的主版本并与升级服务器端的最新客户端进行比较
public bool CheckNewVersion() //public bool CheckNewVersion()
{ //{
Cursor.Current = Cursors.WaitCursor; // Cursor.Current = Cursors.WaitCursor;
CheckVersion checkversion = new App.CheckVersion(); // CheckVersion checkversion = new App.CheckVersion();
if (checkversion.SkipCheck) // if (checkversion.SkipCheck)
{ // {
try // try
{ // {
checkversion.StartCheck(); // checkversion.StartCheck();
switch (checkversion.CompareVersion()) // switch (checkversion.CompareVersion())
{ // {
case 0: // case 0:
break; // break;
case 1: // case 1:
if (MessageBox.Show("已检测到存在更新的版本,您是否要现在进行更新?", "MyCMMI 客户端自动更新", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1) == DialogResult.Yes) // if (MessageBox.Show("已检测到存在更新的版本,您是否要现在进行更新?", "MyCMMI 客户端自动更新", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1) == DialogResult.Yes)
{ // {
checkversion.CallUpdateFile(); // checkversion.CallUpdateFile();
return false; // return false;
} // }
break; // break;
case 2: // case 2:
if (MessageBox.Show("已检测到存在一个比当前更旧的版本,您是否要现在进行更新?", "MyCMMI 客户端自动更新", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) == DialogResult.Yes) // if (MessageBox.Show("已检测到存在一个比当前更旧的版本,您是否要现在进行更新?", "MyCMMI 客户端自动更新", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) == DialogResult.Yes)
{ // {
checkversion.CallUpdateFile(); // checkversion.CallUpdateFile();
return false; // return false;
} // }
break; // break;
default: // default:
{ // {
break; // break;
} // }
} // }
} // }
catch (Exception e) // catch (Exception e)
{ // {
if (MessageBox.Show("无法连接到升级服务器!请联系系统管理员!\n是否继续运行程序?", "自动更新失败", MessageBoxButtons.YesNo, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1) == DialogResult.No) // if (MessageBox.Show("无法连接到升级服务器!请联系系统管理员!\n是否继续运行程序?", "自动更新失败", MessageBoxButtons.YesNo, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1) == DialogResult.No)
{ // {
return false; // return false;
} // }
} // }
} // }
return true; // return true;
} //}
//检测当前用户所用的网络服务器是否在当前客户端支持的范围内 //检测当前用户所用的网络服务器是否在当前客户端支持的范围内
public bool CheckCurrWebService() //public bool CheckCurrWebService()
{
Cursor.Current = Cursors.WaitCursor;
GetServiceVersion f_GetServiceVerion = new GetServiceVersion();
if (f_GetServiceVerion.CanCheckWebServiceVersion)
{
//f_GetServiceVerion.GetCurrentWebServiceVersion();
if (string.IsNullOrEmpty(f_GetServiceVerion.CurrentWebServiceVersion))
{
if (MessageBox.Show("无法连接到网络服务器,请联系系统管理员!\n是否继续运行程序?", "MyCMMI Client启动故障", MessageBoxButtons.YesNo, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button2) == DialogResult.No)
{
return false;
}
//else
//{ //{
// f_GetServiceVerion.CanCheckWebServiceVersion = false; // Cursor.Current = Cursors.WaitCursor;
// GetServiceVersion f_GetServiceVerion = new GetServiceVersion();
// if (f_GetServiceVerion.CanCheckWebServiceVersion)
// {
// //f_GetServiceVerion.GetCurrentWebServiceVersion();
// if (string.IsNullOrEmpty(f_GetServiceVerion.CurrentWebServiceVersion))
// {
// if (MessageBox.Show("无法连接到网络服务器,请联系系统管理员!\n是否继续运行程序?", "MyCMMI Client启动故障", MessageBoxButtons.YesNo, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button2) == DialogResult.No)
// {
// return false;
// }
// //else
// //{
// // f_GetServiceVerion.CanCheckWebServiceVersion = false;
// //}
// }
// }
// if (!f_GetServiceVerion.CompareWebServiceVersion() && f_GetServiceVerion.CanCheckWebServiceVersion)
// {
// if (MessageBox.Show("已检测到您选用的网络服务器无法支持您当前的客户端版本!" + "\n" + "请联系系统管理员!\n是否继续运行程序?", "MyCMMI Client启动提示", MessageBoxButtons.YesNo, MessageBoxIcon.Information, MessageBoxDefaultButton.Button2) == DialogResult.No)
// {
// return false;
// }
// }
// return true;
//} //}
} }
}
if (!f_GetServiceVerion.CompareWebServiceVersion() && f_GetServiceVerion.CanCheckWebServiceVersion)
{
if (MessageBox.Show("已检测到您选用的网络服务器无法支持您当前的客户端版本!" + "\n" + "请联系系统管理员!\n是否继续运行程序?", "MyCMMI Client启动提示", MessageBoxButtons.YesNo, MessageBoxIcon.Information, MessageBoxDefaultButton.Button2) == DialogResult.No)
{
return false;
}
}
return true;
}
}
} }
\ No newline at end of file \ No newline at end of file
...@@ -49,7 +49,6 @@ Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "WebService", "WebService\", ...@@ -49,7 +49,6 @@ Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "WebService", "WebService\",
Release.AspNetCompiler.Debug = "False" Release.AspNetCompiler.Debug = "False"
VWDPort = "59831" VWDPort = "59831"
VWDDynamicPort = "false" VWDDynamicPort = "false"
SlnRelativePath = "WebService\"
DefaultWebSiteLanguage = "Visual C#" DefaultWebSiteLanguage = "Visual C#"
EndProjectSection EndProjectSection
EndProject EndProject
...@@ -63,6 +62,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "授权升级", "授权升 ...@@ -63,6 +62,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "授权升级", "授权升
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "loadingControl", "loadingControl\loadingControl.csproj", "{ED2F12BD-DB28-42B8-8177-18395A10AFA6}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "loadingControl", "loadingControl\loadingControl.csproj", "{ED2F12BD-DB28-42B8-8177-18395A10AFA6}"
EndProject EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "旧项目", "旧项目", "{92B907A3-84AF-4683-9F2D-2E011B875E82}"
EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|.NET = Debug|.NET Debug|.NET = Debug|.NET
...@@ -246,12 +247,17 @@ Global ...@@ -246,12 +247,17 @@ Global
GlobalSection(NestedProjects) = preSolution GlobalSection(NestedProjects) = preSolution
{FB89F830-9695-466E-B495-6D7E1E3AD198} = {EB7075CD-8FB0-4FE5-92D0-67D0F878BB64} {FB89F830-9695-466E-B495-6D7E1E3AD198} = {EB7075CD-8FB0-4FE5-92D0-67D0F878BB64}
{7DC9A638-7BE8-4CF7-AC2E-57C77F1BF9BC} = {EB7075CD-8FB0-4FE5-92D0-67D0F878BB64} {7DC9A638-7BE8-4CF7-AC2E-57C77F1BF9BC} = {EB7075CD-8FB0-4FE5-92D0-67D0F878BB64}
{6C382361-BBE2-4F1F-A5BE-084C7457EE3E} = {92B907A3-84AF-4683-9F2D-2E011B875E82}
{F63A0939-5ADD-4931-8066-6901B5FBEF67} = {EB7075CD-8FB0-4FE5-92D0-67D0F878BB64} {F63A0939-5ADD-4931-8066-6901B5FBEF67} = {EB7075CD-8FB0-4FE5-92D0-67D0F878BB64}
{2541686B-1673-43BF-AF89-3163945DB009} = {EB7075CD-8FB0-4FE5-92D0-67D0F878BB64} {2541686B-1673-43BF-AF89-3163945DB009} = {EB7075CD-8FB0-4FE5-92D0-67D0F878BB64}
{88402163-A455-4C86-8F1E-DAA8C3EEF56E} = {92B907A3-84AF-4683-9F2D-2E011B875E82}
{70F73B3C-62BB-4338-A0C6-370528D8FABE} = {92B907A3-84AF-4683-9F2D-2E011B875E82}
{0AD4235A-D1F6-4A47-AB08-5C96CBABC864} = {5FDFF49A-D457-4CB1-9DE0-227A9E7256F0} {0AD4235A-D1F6-4A47-AB08-5C96CBABC864} = {5FDFF49A-D457-4CB1-9DE0-227A9E7256F0}
{26016A3B-AB63-477E-80E2-9F2B317F528E} = {5FDFF49A-D457-4CB1-9DE0-227A9E7256F0} {26016A3B-AB63-477E-80E2-9F2B317F528E} = {5FDFF49A-D457-4CB1-9DE0-227A9E7256F0}
{C1EE4B7B-9313-4C5D-B0A8-5A890CDD4B8A} = {5FDFF49A-D457-4CB1-9DE0-227A9E7256F0} {C1EE4B7B-9313-4C5D-B0A8-5A890CDD4B8A} = {5FDFF49A-D457-4CB1-9DE0-227A9E7256F0}
{006FC019-FB8D-4038-9F63-2CC1C2D63388} = {5FDFF49A-D457-4CB1-9DE0-227A9E7256F0} {006FC019-FB8D-4038-9F63-2CC1C2D63388} = {5FDFF49A-D457-4CB1-9DE0-227A9E7256F0}
{F3178C9E-E0A1-4488-94DF-96CC535DFA29} = {92B907A3-84AF-4683-9F2D-2E011B875E82}
{5FDFF49A-D457-4CB1-9DE0-227A9E7256F0} = {92B907A3-84AF-4683-9F2D-2E011B875E82}
{ED2F12BD-DB28-42B8-8177-18395A10AFA6} = {EB7075CD-8FB0-4FE5-92D0-67D0F878BB64} {ED2F12BD-DB28-42B8-8177-18395A10AFA6} = {EB7075CD-8FB0-4FE5-92D0-67D0F878BB64}
EndGlobalSection EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution GlobalSection(ExtensibilityGlobals) = postSolution
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!