From 07df0488930e47a613b4e793ce9f62a8cadfa490 Mon Sep 17 00:00:00 2001 From: 14278/caihao <572156462@qq.com> Date: Mon, 15 Jan 2024 14:19:16 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SRC/wsABC/My Project/Application.Designer.cs | 11 -- SRC/wsABC/My Project/Application.myapp | 10 - SRC/wsABC/My Project/Settings.Designer.cs | 88 --------- SRC/wsABC/My Project/Settings.settings | 7 - SRC/wsABC/Properties/AssemblyInfo.cs | 32 ---- .../Properties/BuildIncrementVersionInfo.cs | 1 - SRC/wsABC/Resources.Designer.cs | 70 ------- SRC/wsABC/Resources.resx | 117 ------------ SRC/wsABC/wsABC.csproj | 171 ------------------ SRC/wsABC/wsABC.csproj.vspscc | 10 - SRC/wsABC/wsABC.sln | 30 --- SRC/wsABC/wsWIP/wsWIP.cs | 131 -------------- 12 files changed, 678 deletions(-) delete mode 100644 SRC/wsABC/My Project/Application.Designer.cs delete mode 100644 SRC/wsABC/My Project/Application.myapp delete mode 100644 SRC/wsABC/My Project/Settings.Designer.cs delete mode 100644 SRC/wsABC/My Project/Settings.settings delete mode 100644 SRC/wsABC/Properties/AssemblyInfo.cs delete mode 100644 SRC/wsABC/Properties/BuildIncrementVersionInfo.cs delete mode 100644 SRC/wsABC/Resources.Designer.cs delete mode 100644 SRC/wsABC/Resources.resx delete mode 100644 SRC/wsABC/wsABC.csproj delete mode 100644 SRC/wsABC/wsABC.csproj.vspscc delete mode 100644 SRC/wsABC/wsABC.sln delete mode 100644 SRC/wsABC/wsWIP/wsWIP.cs diff --git a/SRC/wsABC/My Project/Application.Designer.cs b/SRC/wsABC/My Project/Application.Designer.cs deleted file mode 100644 index 299bbe3..0000000 --- a/SRC/wsABC/My Project/Application.Designer.cs +++ /dev/null @@ -1,11 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// 這段程式碼是由工具產生的。 -// 執行階段版本:4.0.30319.42000 -// -// 對這個檔案所做的變更可能會造成錯誤的行為,而且如果重新產生程式碼, -// 變更將會遺失。 -// -// ------------------------------------------------------------------------------ - - diff --git a/SRC/wsABC/My Project/Application.myapp b/SRC/wsABC/My Project/Application.myapp deleted file mode 100644 index 758895d..0000000 --- a/SRC/wsABC/My Project/Application.myapp +++ /dev/null @@ -1,10 +0,0 @@ - - - false - false - 0 - true - 0 - 1 - true - diff --git a/SRC/wsABC/My Project/Settings.Designer.cs b/SRC/wsABC/My Project/Settings.Designer.cs deleted file mode 100644 index 47aea5e..0000000 --- a/SRC/wsABC/My Project/Settings.Designer.cs +++ /dev/null @@ -1,88 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// 這段程式碼是由工具產生的。 -// 執行階段版本:4.0.30319.42000 -// -// 對這個檔案所做的變更可能會造成錯誤的行為,而且如果重新產生程式碼, -// 變更將會遺失。 -// -// ------------------------------------------------------------------------------ - -using System.Diagnostics; -using Microsoft.VisualBasic; - - -namespace wsABC.My -{ - - [System.Runtime.CompilerServices.CompilerGenerated()] - [System.CodeDom.Compiler.GeneratedCode("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0")] - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)] - internal sealed partial class MySettings : System.Configuration.ApplicationSettingsBase - { - - private static MySettings defaultInstance = (MySettings)Synchronized(new MySettings()); - - #region My.Settings 自動儲存功能 - /* TODO ERROR: Skipped IfDirectiveTrivia - #If _MyType = "WindowsForms" Then - *//* TODO ERROR: Skipped DisabledTextTrivia - Private Shared addedHandler As Boolean - - Private Shared addedHandlerLockObject As New Object - - _ - Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal e As Global.System.EventArgs) - If My.Application.SaveMySettingsOnExit Then - My.Settings.Save() - End If - End Sub - *//* TODO ERROR: Skipped EndIfDirectiveTrivia - #End If - */ - #endregion - - public static MySettings Default - { - get - { - - /* TODO ERROR: Skipped IfDirectiveTrivia - #If _MyType = "WindowsForms" Then - *//* TODO ERROR: Skipped DisabledTextTrivia - If Not addedHandler Then - SyncLock addedHandlerLockObject - If Not addedHandler Then - AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings - addedHandler = True - End If - End SyncLock - End If - *//* TODO ERROR: Skipped EndIfDirectiveTrivia - #End If - */ - return defaultInstance; - } - } - } -} - -namespace wsABC.My -{ - - [HideModuleName()] - [DebuggerNonUserCode()] - [System.Runtime.CompilerServices.CompilerGenerated()] - internal static class MySettingsProperty - { - - [System.ComponentModel.Design.HelpKeyword("My.Settings")] - internal static MySettings Settings - { - get - { - return MySettings.Default; - } - } - } -} \ No newline at end of file diff --git a/SRC/wsABC/My Project/Settings.settings b/SRC/wsABC/My Project/Settings.settings deleted file mode 100644 index 85b890b..0000000 --- a/SRC/wsABC/My Project/Settings.settings +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/SRC/wsABC/Properties/AssemblyInfo.cs b/SRC/wsABC/Properties/AssemblyInfo.cs deleted file mode 100644 index 7ead6a6..0000000 --- a/SRC/wsABC/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// 組件的一般資訊是由下列的屬性集控制。 -// 變更這些屬性的值即可修改組件的相關 -// 資訊。 -[assembly: AssemblyTitle("wsABC.Properties")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("iMES Technology Inc.")] -[assembly: AssemblyProduct("MESSeries 6")] -[assembly: AssemblyCopyright("Copyright iMES Technology Inc.")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// 將 ComVisible 設定為 false 會使得這個組件中的類型 -// 對 COM 元件而言為不可見。如果您需要從 COM 存取這個組件中 -// 的類型,請在該類型上將 ComVisible 屬性設定為 true。 -[assembly: ComVisible(false)] - -// 下列 GUID 為專案公開 (Expose) 至 COM 時所要使用的 typelib ID -[assembly: Guid("ad05cadf-ff22-498b-a29e-df915118873d")] - -// 組件的版本資訊由下列四個值所組成: -// -// 主要版本 -// 次要版本 -// 組建編號 -// 修訂編號 -// -[assembly: AssemblyVersion("6.0.0.0")] diff --git a/SRC/wsABC/Properties/BuildIncrementVersionInfo.cs b/SRC/wsABC/Properties/BuildIncrementVersionInfo.cs deleted file mode 100644 index 8f1deae..0000000 --- a/SRC/wsABC/Properties/BuildIncrementVersionInfo.cs +++ /dev/null @@ -1 +0,0 @@ -[assembly: System.Reflection.AssemblyFileVersion("6.0.5.30818")] diff --git a/SRC/wsABC/Resources.Designer.cs b/SRC/wsABC/Resources.Designer.cs deleted file mode 100644 index 303e10b..0000000 --- a/SRC/wsABC/Resources.Designer.cs +++ /dev/null @@ -1,70 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// 這段程式碼是由工具產生的。 -// 執行階段版本:4.0.30319.42000 -// -// 對這個檔案所做的變更可能會造成錯誤的行為,而且如果重新產生程式碼, -// 變更將會遺失。 -// -// ------------------------------------------------------------------------------ - - -using System.Diagnostics; -using Microsoft.VisualBasic; - -namespace wsABC.My.Resources -{ - - // 這個類別是自動產生的,是利用 StronglyTypedResourceBuilder - // 類別透過 ResGen 或 Visual Studio 這類工具。 - // 若要加入或移除成員,請編輯您的 .ResX 檔,然後重新執行 ResGen - // (利用 /str 選項),或重建您的 VS 專案。 - /// - /// 用於查詢當地語系化字串等的強類型資源類別。 - /// - [System.CodeDom.Compiler.GeneratedCode("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] - [DebuggerNonUserCode()] - [System.Runtime.CompilerServices.CompilerGenerated()] - [HideModuleName()] - internal static class Resources - { - - private static System.Resources.ResourceManager resourceMan; - - private static System.Globalization.CultureInfo resourceCulture; - - /// - /// 傳回這個類別使用的快取的 ResourceManager 執行個體。 - /// - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)] - internal static System.Resources.ResourceManager ResourceManager - { - get - { - if (ReferenceEquals(resourceMan, null)) - { - var temp = new System.Resources.ResourceManager("wsABC.Resources", typeof(Resources).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// 覆寫目前執行緒的 CurrentUICulture 屬性,對象是所有 - /// 使用這個強類型資源類別的資源查閱。 - /// - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)] - internal static System.Globalization.CultureInfo Culture - { - get - { - return resourceCulture; - } - set - { - resourceCulture = value; - } - } - } -} \ No newline at end of file diff --git a/SRC/wsABC/Resources.resx b/SRC/wsABC/Resources.resx deleted file mode 100644 index af7dbeb..0000000 --- a/SRC/wsABC/Resources.resx +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/SRC/wsABC/wsABC.csproj b/SRC/wsABC/wsABC.csproj deleted file mode 100644 index abf9c5e..0000000 --- a/SRC/wsABC/wsABC.csproj +++ /dev/null @@ -1,171 +0,0 @@ - - - - - Debug - AnyCPU - {881686CE-A940-0485-2766-D411835B2FBB} - Library - wsABC - wsABC - 512 - Windows - v4.6.2 - - SAK - SAK - SAK - SAK - $(DefaultItemExcludes);$(ProjectDir)**\*.vb - - - true - full - true - true - ..\MES_S_DLL\ - ..\MES_S_DLL\wsABC.xml - 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022 - 0 - false - - - pdbonly - false - true - true - ..\..\MES_S_DLL\ - ..\..\MES_S_DLL\ - - 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022 - 0 - false - - - On - - - Binary - - - Off - - - On - - - - - False - ..\MES_S_DLL\iMESAppSetting.dll - False - - - False - ..\MES_S_DLL\iMESComSubroutine.dll - False - - - False - ..\MES_S_DLL\iMESComXML.dll - False - - - False - ..\MES_S_DLL\iMESConst.dll - False - - - ..\MES_S_DLL\iMESException.dll - False - - - False - ..\MES_S_DLL\iMESSCI.dll - False - - - ..\MES_S_DLL\kcSYS.dll - False - False - - - False - ..\MES_S_DLL\Newtonsoft.Json.dll - False - - - - - - - - - - - - - - - False - - - - - - - - - - - - - - - - True - Application.myapp - - - - True - True - Resources.resx - - - True - Settings.settings - True - - - - - - ResXFileCodeGenerator - Resources.Designer.cs - wsABC.My.Resources - Designer - - - - - MyApplicationCodeGenerator - Application.Designer.cs - - - SettingsSingleFileGenerator - wsABC.My - Settings.Designer.cs - - - - - - - \ No newline at end of file diff --git a/SRC/wsABC/wsABC.csproj.vspscc b/SRC/wsABC/wsABC.csproj.vspscc deleted file mode 100644 index b6d3289..0000000 --- a/SRC/wsABC/wsABC.csproj.vspscc +++ /dev/null @@ -1,10 +0,0 @@ -"" -{ -"FILE_VERSION" = "9237" -"ENLISTMENT_CHOICE" = "NEVER" -"PROJECT_FILE_RELATIVE_PATH" = "" -"NUMBER_OF_EXCLUDED_FILES" = "0" -"ORIGINAL_PROJECT_FILE_PATH" = "" -"NUMBER_OF_NESTED_PROJECTS" = "0" -"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" -} diff --git a/SRC/wsABC/wsABC.sln b/SRC/wsABC/wsABC.sln deleted file mode 100644 index ba785d8..0000000 --- a/SRC/wsABC/wsABC.sln +++ /dev/null @@ -1,30 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 14 -VisualStudioVersion = 14.0.25420.1 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "wsABC", "wsABC.csproj", "{881686CE-A940-0485-2766-D411835B2FBB}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {881686CE-A940-0485-2766-D411835B2FBB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {881686CE-A940-0485-2766-D411835B2FBB}.Debug|Any CPU.Build.0 = Debug|Any CPU - {881686CE-A940-0485-2766-D411835B2FBB}.Release|Any CPU.ActiveCfg = Release|Any CPU - {881686CE-A940-0485-2766-D411835B2FBB}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(TeamFoundationVersionControl) = preSolution - SccNumberOfProjects = 2 - SccEnterpriseProvider = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C} - SccTeamFoundationServer = http://tfs.imestech.com:8080/tfs/messeries6 - SccLocalPath0 = . - SccProjectUniqueName1 = wsABC.vbproj - SccLocalPath1 = . - EndGlobalSection -EndGlobal diff --git a/SRC/wsABC/wsWIP/wsWIP.cs b/SRC/wsABC/wsWIP/wsWIP.cs deleted file mode 100644 index 039a1e6..0000000 --- a/SRC/wsABC/wsWIP/wsWIP.cs +++ /dev/null @@ -1,131 +0,0 @@ -using System; -using Microsoft.VisualBasic; -using static iMESCore.Base.iMESComSubroutine; -using static iMESCore.Base.iMESComXML; -using static iMESCore.Base.iMESConst; -using iMESCore.Settings; - -namespace wsABC -{ - - public class wsWIP - { - - private iMESCore.Settings.AppSettings objSetting = new iMESCore.Settings.AppSettings(); - private System.Xml.XmlDocument xmlDoc = new System.Xml.XmlDocument(); // 用以讀取Xml字串 - private DateTime ArriveTime; // 送達時間 - private string strIdentity; // Identity XML字串 - private string strReturnValue; // ReturnValue XML字串 - private string strException; // Exception XML字串 - private string strResult; // Result XML字串 - private string strMessage; // Message XML字串 - private string strServiceName = "wsWIP_ABC"; // ServiceName - private string strResourceDir = "Resources"; - - private kcSYS.clsSYSUserLog objSYS = new kcSYS.clsSYSUserLog(); // 宣告Sys的物件 - - public wsWIP() - { - try - { - strResourceDir = System.IO.Path.Combine("wsUpdateResource", objSetting["ResourceDir"].ToString()); - } - catch (Exception) - { } - } - - public string HelloWorld(string InXml) - { - return "HelloWorld"; - } - - - //public string LoadOPMaterialState(string InXml) - //{ - // string LoadOPMaterialStateRet = null; - - // // 先給預設值,以判斷是否有傳入該參數 - // string OPNo = defString; - // string MaterialNo = defString; - // string MaterialLotNo = defString; - // string UnitNo = defString; - // string MaterialType = defString; - - // ArriveTime = DateTime.Now; - - // try - // { - // // 讀取InXml字串 - // xmlDoc.LoadXml(InXml); - // // 組Identity字串 - // strIdentity = CombineXMLIdentity(Environment.MachineName, GetXMLCurUserNo(xmlDoc), ArriveTime.ToString(defDateTimeFormat)); - - // // 判斷是否有傳入OPNo,若有,表示要依OPNo查詢 - // if (xmlDoc.DocumentElement.GetElementsByTagName("opno").Count > 0) - // { - // if (xmlDoc.GetElementsByTagName("opno").Item(0).SelectNodes("value").Count > 0) - // { - // OPNo = xmlDoc.DocumentElement.GetElementsByTagName("opno").Item(0).SelectNodes("value").Item(0).InnerText; - // } - // } - // // 判斷是否有傳入MaterialNo,若有,表示要依MaterialNo查詢 - // if (xmlDoc.DocumentElement.GetElementsByTagName("materialno").Count > 0) - // { - // if (xmlDoc.GetElementsByTagName("materialno").Item(0).SelectNodes("value").Count > 0) - // { - // MaterialNo = xmlDoc.DocumentElement.GetElementsByTagName("materialno").Item(0).SelectNodes("value").Item(0).InnerText; - // } - // } - // // 判斷是否有傳入MaterialLotNo,若有,表示要依MaterialLotNo查詢 - // if (xmlDoc.DocumentElement.GetElementsByTagName("materiallotno").Count > 0) - // { - // if (xmlDoc.GetElementsByTagName("materiallotno").Item(0).SelectNodes("value").Count > 0) - // { - // MaterialLotNo = xmlDoc.DocumentElement.GetElementsByTagName("materiallotno").Item(0).SelectNodes("value").Item(0).InnerText; - // } - // } - // if (xmlDoc.DocumentElement.GetElementsByTagName("unitno").Count > 0) - // { - // if (xmlDoc.GetElementsByTagName("unitno").Item(0).SelectNodes("value").Count > 0) - // { - // UnitNo = xmlDoc.DocumentElement.GetElementsByTagName("unitno").Item(0).SelectNodes("value").Item(0).InnerText; - // } - // } - // if (xmlDoc.DocumentElement.GetElementsByTagName("materialtype").Count > 0) - // { - // if (xmlDoc.GetElementsByTagName("materialtype").Item(0).SelectNodes("value").Count > 0) - // { - // MaterialType = xmlDoc.DocumentElement.GetElementsByTagName("materialtype").Item(0).SelectNodes("value").Item(0).InnerText; - // } - // } - - // // 呼叫Dll執行 - // //strReturnValue = objWIP.LoadOPMaterialState(OPNo, MaterialNo, MaterialLotNo, UnitNo, MaterialType); - // strException = ""; - // strResult = "success"; - // } - - // catch (iMESException.MESException ex) - // { - // strReturnValue = ""; - // strException = CombineXMLException(ex.ErrorCode.ToString(), TranslateMsg(ex.Message, GetXMLLanguageMode(xmlDoc), strResourceDir), "Load OP Material State Fail!!", ex.StackTrace); - // strResult = "fail"; - // } - - // catch (Exception ex) - // { - // strReturnValue = ""; - // strException = CombineXMLException(defWSErrCode, ex.Message, "Load OP Material State Fail!!", ex.StackTrace); - // strResult = "fail"; - // } - - // finally - // { - // // 將各部份之XML字串組起來並傳出 - // LoadOPMaterialStateRet = CombineXMLResponse(strIdentity, strReturnValue, strException, strResult, ""); - // } - // return LoadOPMaterialStateRet; - - //} - } -} \ No newline at end of file