diff --git a/CPXV2 TRA JSON Recovery/SystemX.Product.CP.RecoveryTool/App.config b/CPXV2 TRA JSON Recovery/SystemX.Product.CP.RecoveryTool/App.config new file mode 100644 index 0000000..193aecc --- /dev/null +++ b/CPXV2 TRA JSON Recovery/SystemX.Product.CP.RecoveryTool/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/CPXV2 TRA JSON Recovery/SystemX.Product.CP.RecoveryTool/Form1.Designer.cs b/CPXV2 TRA JSON Recovery/SystemX.Product.CP.RecoveryTool/Form1.Designer.cs new file mode 100644 index 0000000..9eb1899 --- /dev/null +++ b/CPXV2 TRA JSON Recovery/SystemX.Product.CP.RecoveryTool/Form1.Designer.cs @@ -0,0 +1,266 @@ +namespace SystemX.Product.CP.RecoveryTool +{ + partial class Form1 + { + /// + /// 필수 디자이너 변수입니다. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// 사용 중인 모든 리소스를 정리합니다. + /// + /// 관리되는 리소스를 삭제해야 하면 true이고, 그렇지 않으면 false입니다. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form 디자이너에서 생성한 코드 + + /// + /// 디자이너 지원에 필요한 메서드입니다. + /// 이 메서드의 내용을 코드 편집기로 수정하지 마세요. + /// + private void InitializeComponent() + { + this.panel1 = new System.Windows.Forms.Panel(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.groupBox2 = new System.Windows.Forms.GroupBox(); + this.btnSelectDb = new System.Windows.Forms.Button(); + this.textMdf = new System.Windows.Forms.TextBox(); + this.label1 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.textLdf = new System.Windows.Forms.TextBox(); + this.ledMdf = new System.Windows.Forms.Panel(); + this.ledLdf = new System.Windows.Forms.Panel(); + this.btnAttach = new System.Windows.Forms.Button(); + this.lbAttachResult = new System.Windows.Forms.Label(); + this.gridDB = new System.Windows.Forms.DataGridView(); + this.colIndex = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colDb = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colRemove = new System.Windows.Forms.DataGridViewButtonColumn(); + this.label3 = new System.Windows.Forms.Label(); + this.textRecoveryName = new System.Windows.Forms.TextBox(); + this.panel1.SuspendLayout(); + this.groupBox1.SuspendLayout(); + this.groupBox2.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.gridDB)).BeginInit(); + this.SuspendLayout(); + // + // panel1 + // + this.panel1.Controls.Add(this.groupBox2); + this.panel1.Controls.Add(this.groupBox1); + this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; + this.panel1.Location = new System.Drawing.Point(0, 0); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(651, 547); + this.panel1.TabIndex = 0; + // + // groupBox1 + // + this.groupBox1.Controls.Add(this.label3); + this.groupBox1.Controls.Add(this.textRecoveryName); + this.groupBox1.Controls.Add(this.lbAttachResult); + this.groupBox1.Controls.Add(this.btnAttach); + this.groupBox1.Controls.Add(this.ledLdf); + this.groupBox1.Controls.Add(this.ledMdf); + this.groupBox1.Controls.Add(this.label2); + this.groupBox1.Controls.Add(this.textLdf); + this.groupBox1.Controls.Add(this.label1); + this.groupBox1.Controls.Add(this.textMdf); + this.groupBox1.Controls.Add(this.btnSelectDb); + this.groupBox1.Location = new System.Drawing.Point(12, 12); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(627, 163); + this.groupBox1.TabIndex = 0; + this.groupBox1.TabStop = false; + this.groupBox1.Text = "Attach"; + // + // groupBox2 + // + this.groupBox2.Controls.Add(this.gridDB); + this.groupBox2.Location = new System.Drawing.Point(12, 181); + this.groupBox2.Name = "groupBox2"; + this.groupBox2.Size = new System.Drawing.Size(627, 354); + this.groupBox2.TabIndex = 1; + this.groupBox2.TabStop = false; + this.groupBox2.Text = "Management"; + // + // btnSelectDb + // + this.btnSelectDb.Location = new System.Drawing.Point(17, 25); + this.btnSelectDb.Name = "btnSelectDb"; + this.btnSelectDb.Size = new System.Drawing.Size(122, 23); + this.btnSelectDb.TabIndex = 0; + this.btnSelectDb.Text = "Select DB"; + this.btnSelectDb.UseVisualStyleBackColor = true; + this.btnSelectDb.Click += new System.EventHandler(this.btnSelectDb_Click); + // + // textMdf + // + this.textMdf.Location = new System.Drawing.Point(195, 24); + this.textMdf.Name = "textMdf"; + this.textMdf.Size = new System.Drawing.Size(379, 21); + this.textMdf.TabIndex = 1; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(152, 30); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(31, 12); + this.label1.TabIndex = 2; + this.label1.Text = "MDF"; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(152, 57); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(27, 12); + this.label2.TabIndex = 4; + this.label2.Text = "LDF"; + // + // textLdf + // + this.textLdf.Location = new System.Drawing.Point(195, 51); + this.textLdf.Name = "textLdf"; + this.textLdf.Size = new System.Drawing.Size(379, 21); + this.textLdf.TabIndex = 3; + // + // ledMdf + // + this.ledMdf.BackColor = System.Drawing.Color.White; + this.ledMdf.Location = new System.Drawing.Point(580, 25); + this.ledMdf.Name = "ledMdf"; + this.ledMdf.Size = new System.Drawing.Size(41, 21); + this.ledMdf.TabIndex = 5; + // + // ledLdf + // + this.ledLdf.BackColor = System.Drawing.Color.White; + this.ledLdf.Location = new System.Drawing.Point(580, 52); + this.ledLdf.Name = "ledLdf"; + this.ledLdf.Size = new System.Drawing.Size(41, 21); + this.ledLdf.TabIndex = 6; + // + // btnAttach + // + this.btnAttach.Location = new System.Drawing.Point(154, 104); + this.btnAttach.Name = "btnAttach"; + this.btnAttach.Size = new System.Drawing.Size(467, 23); + this.btnAttach.TabIndex = 7; + this.btnAttach.Text = "Attach to SqlServer"; + this.btnAttach.UseVisualStyleBackColor = true; + this.btnAttach.Click += new System.EventHandler(this.btnAttach_Click); + // + // lbAttachResult + // + this.lbAttachResult.Location = new System.Drawing.Point(152, 133); + this.lbAttachResult.Name = "lbAttachResult"; + this.lbAttachResult.Size = new System.Drawing.Size(469, 22); + this.lbAttachResult.TabIndex = 8; + this.lbAttachResult.Text = "result"; + // + // gridDB + // + this.gridDB.AllowUserToAddRows = false; + this.gridDB.AllowUserToDeleteRows = false; + this.gridDB.AllowUserToResizeRows = false; + this.gridDB.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.gridDB.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.colIndex, + this.colDb, + this.colRemove}); + this.gridDB.Location = new System.Drawing.Point(17, 34); + this.gridDB.Name = "gridDB"; + this.gridDB.RowTemplate.Height = 23; + this.gridDB.Size = new System.Drawing.Size(590, 306); + this.gridDB.TabIndex = 0; + this.gridDB.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.gridDB_CellContentClick); + // + // colIndex + // + this.colIndex.Frozen = true; + this.colIndex.HeaderText = "Index"; + this.colIndex.Name = "colIndex"; + this.colIndex.ReadOnly = true; + this.colIndex.Width = 50; + // + // colDb + // + this.colDb.Frozen = true; + this.colDb.HeaderText = "DataBase"; + this.colDb.Name = "colDb"; + this.colDb.ReadOnly = true; + this.colDb.Width = 300; + // + // colRemove + // + this.colRemove.Frozen = true; + this.colRemove.HeaderText = "Remove"; + this.colRemove.Name = "colRemove"; + this.colRemove.ReadOnly = true; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(154, 84); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(96, 12); + this.label3.TabIndex = 10; + this.label3.Text = "Recovery Name"; + // + // textRecoveryName + // + this.textRecoveryName.Location = new System.Drawing.Point(256, 78); + this.textRecoveryName.Name = "textRecoveryName"; + this.textRecoveryName.Size = new System.Drawing.Size(318, 21); + this.textRecoveryName.TabIndex = 9; + // + // Form1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(651, 547); + this.Controls.Add(this.panel1); + this.Name = "Form1"; + this.Text = "DB Management Tool"; + this.panel1.ResumeLayout(false); + this.groupBox1.ResumeLayout(false); + this.groupBox1.PerformLayout(); + this.groupBox2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.gridDB)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.Panel panel1; + private System.Windows.Forms.GroupBox groupBox2; + private System.Windows.Forms.GroupBox groupBox1; + private System.Windows.Forms.Button btnSelectDb; + private System.Windows.Forms.TextBox textMdf; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.TextBox textLdf; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Panel ledMdf; + private System.Windows.Forms.Panel ledLdf; + private System.Windows.Forms.Button btnAttach; + private System.Windows.Forms.Label lbAttachResult; + private System.Windows.Forms.DataGridView gridDB; + private System.Windows.Forms.DataGridViewTextBoxColumn colIndex; + private System.Windows.Forms.DataGridViewTextBoxColumn colDb; + private System.Windows.Forms.DataGridViewButtonColumn colRemove; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.TextBox textRecoveryName; + } +} + diff --git a/CPXV2 TRA JSON Recovery/SystemX.Product.CP.RecoveryTool/Form1.cs b/CPXV2 TRA JSON Recovery/SystemX.Product.CP.RecoveryTool/Form1.cs new file mode 100644 index 0000000..3b1fb72 --- /dev/null +++ b/CPXV2 TRA JSON Recovery/SystemX.Product.CP.RecoveryTool/Form1.cs @@ -0,0 +1,211 @@ +using DevExpress.Internal.WinApi.Windows.UI.Notifications; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Data.Common; +using System.Data.SqlClient; +using System.Diagnostics; +using System.Drawing; +using System.IO; +using System.Linq; +using System.Reflection; +using System.Security.Policy; +using System.Text; +using System.Threading; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace SystemX.Product.CP.RecoveryTool +{ + public partial class Form1 : Form + { + string mdfFile = string.Empty; + string ldfFile = string.Empty; + string recoveryName = string.Empty; + + public Form1() + { + InitializeComponent(); + SelectDBList(); + lbAttachResult.Text = string.Empty; + } + + private void btnSelectDb_Click(object sender, EventArgs e) + { + mdfFile = string.Empty; + ldfFile = string.Empty; + recoveryName = string.Empty; + textRecoveryName.Text = string.Empty; + + using (OpenFileDialog dialog = new OpenFileDialog()) + { + dialog.Filter = "*.mdf|*.mdf"; + if (dialog.ShowDialog() == DialogResult.OK) + { + mdfFile = dialog.FileName; + + string ldfName = $"{Path.GetFileNameWithoutExtension(dialog.FileName)}_log.ldf"; + ldfFile = $@"{Path.GetDirectoryName(dialog.FileName)}\{ldfName}"; + } + textMdf.Text = mdfFile; //mdf + textLdf.Text = ldfFile; //ldf + } + } + + private void btnAttach_Click(object sender, EventArgs e) + { + string error = "success"; + + if (File.Exists(mdfFile) == true) + ledMdf.BackColor = Color.Lime; + else + { + ledMdf.BackColor = Color.Red; + error = "Invalid FIle"; + } + + if (File.Exists(ldfFile) == true) + ledLdf.BackColor = Color.Lime; + else + { + ledLdf.BackColor = Color.Red; + error = "Invalid FIle"; + } + + recoveryName = textRecoveryName.Text; + if (string.IsNullOrEmpty(recoveryName) == false) + ledLdf.BackColor = Color.Lime; + else + { + ledLdf.BackColor = Color.Red; + error = "Invalid RecoveryName"; + } + + lbAttachResult.Text = error; + if (error == "success") + { + string attachError = Attach(mdfFile, ldfFile, recoveryName); + if (string.IsNullOrEmpty(attachError) == false) + { + lbAttachResult.ForeColor = Color.Red; + lbAttachResult.Text = attachError; + } + else + lbAttachResult.ForeColor = Color.Lime; + } + else + lbAttachResult.ForeColor = Color.Red; + + SelectDBList(); + } + + private string Attach(string mdfFile, string ldfFile, string attachName) + { + string error = string.Empty; + + // 프로세스 설정 + string command = $" -S localhost -U alis -P Kefico!@34 -Q \"CREATE DATABASE {attachName} ON (FILENAME = '{mdfFile}'), (FILENAME = '{ldfFile}') FOR ATTACH;\""; + Console.WriteLine(command); + ProcessStartInfo startInfo = new ProcessStartInfo + { + FileName = $"sqlcmd", // cmd.exe로 명령어 실행 + Arguments = $"{command}", // /c는 명령어 실행 후 종료하는 옵션 + RedirectStandardOutput = true, // 표준 출력 리디렉션 + RedirectStandardError = true, // 표준 오류 리디렉션 + UseShellExecute = false, // 셸을 사용하지 않도록 설정 + CreateNoWindow = true // 새 창을 열지 않도록 설정, + }; + + // 프로세스 실행 + using (Process process = Process.Start(startInfo)) + { + if (process != null) + { + // 출력 결과를 읽기 + string output = process.StandardOutput.ReadToEnd(); + string response = process.StandardError.ReadToEnd(); + + Console.WriteLine(output); + Console.WriteLine(response); + + error = output; + } + } + + return error; + } + + private void Detach(string dbName) + { + // 프로세스 설정 + string command = $" -S localhost -U alis -P Kefico!@34 -Q \"ALTER DATABASE [{dbName}] SET SINGLE_USER WITH ROLLBACK IMMEDIATE; EXEC sp_detach_db '{dbName}';\""; + Console.WriteLine(command); + ProcessStartInfo startInfo = new ProcessStartInfo + { + FileName = $"sqlcmd", // cmd.exe로 명령어 실행 + Arguments = $"{command}", // /c는 명령어 실행 후 종료하는 옵션 + RedirectStandardOutput = true, // 표준 출력 리디렉션 + RedirectStandardError = true, // 표준 오류 리디렉션 + UseShellExecute = false, // 셸을 사용하지 않도록 설정 + CreateNoWindow = true // 새 창을 열지 않도록 설정, + }; + + // 프로세스 실행 + using (Process process = Process.Start(startInfo)) + { + if (process != null) + { + // 출력 결과를 읽기 + string output = process.StandardOutput.ReadToEnd(); + string response = process.StandardError.ReadToEnd(); + + Console.WriteLine(output); + Console.WriteLine(response); + } + } + } + + private void SelectDBList() + { + //delay + DateTime start = DateTime.Now; + while(true) + { + if (DateTime.Now - start >= TimeSpan.FromMilliseconds(1000)) + break; + Thread.Sleep(10); + } + + gridDB.Rows.Clear(); + + var connMain = new SqlConnection("server=127.0.0.1,1433;uid=alis;password=Kefico!@34;"); + connMain.Open(); + + SqlCommand SQLCmd = new SqlCommand("select name from sys.databases with(nolock) where owner_sid != 0x01;", connMain); + SQLCmd.CommandType = CommandType.Text; + DbDataReader dtReader = SQLCmd.ExecuteReader(); + + DataTable dtResult = new DataTable(); + dtResult.Load(dtReader); + + List list = dtResult?.AsEnumerable()?.Select(x => x.ItemArray?.First()?.ToString())?.ToList(); + + foreach(var db in list) + { + gridDB.Rows.Add(gridDB.Rows.Count + 1, db, "Remove"); + } + } + + private void gridDB_CellContentClick(object sender, DataGridViewCellEventArgs e) + { + //remove button + if (e.ColumnIndex == 2) + { + var dbName = gridDB.Rows[e.RowIndex].Cells[1].Value.ToString(); + Detach(dbName); + SelectDBList(); + } + } + } +} diff --git a/CPXV2 TRA JSON Recovery/SystemX.Product.CP.RecoveryTool/Form1.resx b/CPXV2 TRA JSON Recovery/SystemX.Product.CP.RecoveryTool/Form1.resx new file mode 100644 index 0000000..1b0ed2c --- /dev/null +++ b/CPXV2 TRA JSON Recovery/SystemX.Product.CP.RecoveryTool/Form1.resx @@ -0,0 +1,129 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + True + + + True + + + True + + \ No newline at end of file diff --git a/CPXV2 TRA JSON Recovery/SystemX.Product.CP.RecoveryTool/Program.cs b/CPXV2 TRA JSON Recovery/SystemX.Product.CP.RecoveryTool/Program.cs new file mode 100644 index 0000000..0feb42b --- /dev/null +++ b/CPXV2 TRA JSON Recovery/SystemX.Product.CP.RecoveryTool/Program.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace SystemX.Product.CP.RecoveryTool +{ + internal static class Program + { + /// + /// 해당 애플리케이션의 주 진입점입니다. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new Form1()); + } + } +} diff --git a/CPXV2 TRA JSON Recovery/SystemX.Product.CP.RecoveryTool/Properties/AssemblyInfo.cs b/CPXV2 TRA JSON Recovery/SystemX.Product.CP.RecoveryTool/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..1a260e5 --- /dev/null +++ b/CPXV2 TRA JSON Recovery/SystemX.Product.CP.RecoveryTool/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// 어셈블리에 대한 일반 정보는 다음 특성 집합을 통해 +// 제어됩니다. 어셈블리와 관련된 정보를 수정하려면 +// 이러한 특성 값을 변경하세요. +[assembly: AssemblyTitle("SystemX.Product.CP.RecoveryTool")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("SystemX.Product.CP.RecoveryTool")] +[assembly: AssemblyCopyright("Copyright © 2025")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// ComVisible을 false로 설정하면 이 어셈블리의 형식이 COM 구성 요소에 +// 표시되지 않습니다. COM에서 이 어셈블리의 형식에 액세스하려면 +// 해당 형식에 대해 ComVisible 특성을 true로 설정하세요. +[assembly: ComVisible(false)] + +// 이 프로젝트가 COM에 노출되는 경우 다음 GUID는 typelib의 ID를 나타냅니다. +[assembly: Guid("287e64b3-c49b-4270-9555-3a254a14ffed")] + +// 어셈블리의 버전 정보는 다음 네 가지 값으로 구성됩니다. +// +// 주 버전 +// 부 버전 +// 빌드 번호 +// 수정 버전 +// +// 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호를 +// 기본값으로 할 수 있습니다. +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/CPXV2 TRA JSON Recovery/SystemX.Product.CP.RecoveryTool/Properties/Resources.Designer.cs b/CPXV2 TRA JSON Recovery/SystemX.Product.CP.RecoveryTool/Properties/Resources.Designer.cs new file mode 100644 index 0000000..02946fe --- /dev/null +++ b/CPXV2 TRA JSON Recovery/SystemX.Product.CP.RecoveryTool/Properties/Resources.Designer.cs @@ -0,0 +1,71 @@ +//------------------------------------------------------------------------------ +// +// 이 코드는 도구를 사용하여 생성되었습니다. +// 런타임 버전:4.0.30319.42000 +// +// 파일 내용을 변경하면 잘못된 동작이 발생할 수 있으며, 코드를 다시 생성하면 +// 이러한 변경 내용이 손실됩니다. +// +//------------------------------------------------------------------------------ + +namespace SystemX.Product.CP.RecoveryTool.Properties +{ + + + /// + /// 지역화된 문자열 등을 찾기 위한 강력한 형식의 리소스 클래스입니다. + /// + // 이 클래스는 ResGen 또는 Visual Studio와 같은 도구를 통해 StronglyTypedResourceBuilder + // 클래스에서 자동으로 생성되었습니다. + // 멤버를 추가하거나 제거하려면 .ResX 파일을 편집한 다음 /str 옵션을 사용하여 + // ResGen을 다시 실행하거나 VS 프로젝트를 다시 빌드하십시오. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources + { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() + { + } + + /// + /// 이 클래스에서 사용하는 캐시된 ResourceManager 인스턴스를 반환합니다. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager + { + get + { + if ((resourceMan == null)) + { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("SystemX.Product.CP.RecoveryTool.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// 이 강력한 형식의 리소스 클래스를 사용하여 모든 리소스 조회에 대해 현재 스레드의 CurrentUICulture 속성을 + /// 재정의합니다. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture + { + get + { + return resourceCulture; + } + set + { + resourceCulture = value; + } + } + } +} diff --git a/CPXV2 TRA JSON Recovery/SystemX.Product.CP.RecoveryTool/Properties/Resources.resx b/CPXV2 TRA JSON Recovery/SystemX.Product.CP.RecoveryTool/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/CPXV2 TRA JSON Recovery/SystemX.Product.CP.RecoveryTool/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/CPXV2 TRA JSON Recovery/SystemX.Product.CP.RecoveryTool/Properties/Settings.Designer.cs b/CPXV2 TRA JSON Recovery/SystemX.Product.CP.RecoveryTool/Properties/Settings.Designer.cs new file mode 100644 index 0000000..5f76b49 --- /dev/null +++ b/CPXV2 TRA JSON Recovery/SystemX.Product.CP.RecoveryTool/Properties/Settings.Designer.cs @@ -0,0 +1,30 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace SystemX.Product.CP.RecoveryTool.Properties +{ + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase + { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default + { + get + { + return defaultInstance; + } + } + } +} diff --git a/CPXV2 TRA JSON Recovery/SystemX.Product.CP.RecoveryTool/Properties/Settings.settings b/CPXV2 TRA JSON Recovery/SystemX.Product.CP.RecoveryTool/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/CPXV2 TRA JSON Recovery/SystemX.Product.CP.RecoveryTool/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/CPXV2 TRA JSON Recovery/SystemX.Product.CP.RecoveryTool/Properties/licenses.licx b/CPXV2 TRA JSON Recovery/SystemX.Product.CP.RecoveryTool/Properties/licenses.licx new file mode 100644 index 0000000..d10bc80 --- /dev/null +++ b/CPXV2 TRA JSON Recovery/SystemX.Product.CP.RecoveryTool/Properties/licenses.licx @@ -0,0 +1,2 @@ +DevExpress.XtraEditors.TextEdit, DevExpress.XtraEditors.v22.1, Version=22.1.12.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a +DevExpress.XtraEditors.GridLookUpEdit, DevExpress.XtraGrid.v22.1, Version=22.1.12.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a diff --git a/CPXV2 TRA JSON Recovery/SystemX.Product.CP.RecoveryTool/SystemX.Product.CP.RecoveryTool.csproj b/CPXV2 TRA JSON Recovery/SystemX.Product.CP.RecoveryTool/SystemX.Product.CP.RecoveryTool.csproj new file mode 100644 index 0000000..4d4f4a8 --- /dev/null +++ b/CPXV2 TRA JSON Recovery/SystemX.Product.CP.RecoveryTool/SystemX.Product.CP.RecoveryTool.csproj @@ -0,0 +1,99 @@ + + + + + Debug + AnyCPU + {287E64B3-C49B-4270-9555-3A254A14FFED} + Exe + SystemX.Product.CP.RecoveryTool + SystemX.Product.CP.RecoveryTool + v4.8 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Form + + + Form1.cs + + + + + Form1.cs + + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + + + \ No newline at end of file diff --git a/CPXV2 TRA JSON Recovery/SystemX.Product.CP.TRA.sln b/CPXV2 TRA JSON Recovery/SystemX.Product.CP.TRA.sln index ff3be3b..ebf7921 100644 --- a/CPXV2 TRA JSON Recovery/SystemX.Product.CP.TRA.sln +++ b/CPXV2 TRA JSON Recovery/SystemX.Product.CP.TRA.sln @@ -1,7 +1,7 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 -VisualStudioVersion = 16.0.33027.164 +# Visual Studio Version 17 +VisualStudioVersion = 17.9.34728.123 MinimumVisualStudioVersion = 10.0.40219.1 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{18C1E9B6-823D-49DB-8253-ED32EEA21DB1}" EndProject @@ -12,6 +12,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SystemX.Product.CP.TRA", "S EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SystemX.Product.CP.TRA.BaseView", "SystemX.Product.CP.TRA.BaseView\SystemX.Product.CP.TRA.BaseView.csproj", "{910BB092-A5F3-4ACE-BBF8-C19434F1FA8E}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SystemX.Product.CP.RecoveryTool", "SystemX.Product.CP.RecoveryTool\SystemX.Product.CP.RecoveryTool.csproj", "{287E64B3-C49B-4270-9555-3A254A14FFED}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -36,12 +38,20 @@ Global {910BB092-A5F3-4ACE-BBF8-C19434F1FA8E}.Release|Any CPU.Build.0 = Release|Any CPU {910BB092-A5F3-4ACE-BBF8-C19434F1FA8E}.Release|x64.ActiveCfg = Release|Any CPU {910BB092-A5F3-4ACE-BBF8-C19434F1FA8E}.Release|x64.Build.0 = Release|Any CPU + {287E64B3-C49B-4270-9555-3A254A14FFED}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {287E64B3-C49B-4270-9555-3A254A14FFED}.Debug|Any CPU.Build.0 = Debug|Any CPU + {287E64B3-C49B-4270-9555-3A254A14FFED}.Debug|x64.ActiveCfg = Debug|Any CPU + {287E64B3-C49B-4270-9555-3A254A14FFED}.Debug|x64.Build.0 = Debug|Any CPU + {287E64B3-C49B-4270-9555-3A254A14FFED}.Release|Any CPU.ActiveCfg = Release|Any CPU + {287E64B3-C49B-4270-9555-3A254A14FFED}.Release|Any CPU.Build.0 = Release|Any CPU + {287E64B3-C49B-4270-9555-3A254A14FFED}.Release|x64.ActiveCfg = Release|Any CPU + {287E64B3-C49B-4270-9555-3A254A14FFED}.Release|x64.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution - VisualSVNWorkingCopyRoot = . SolutionGuid = {34BF09E0-D510-452D-8E8B-B0D1C6FE25BF} + VisualSVNWorkingCopyRoot = . EndGlobalSection EndGlobal diff --git a/CPXV2 TRA JSON Recovery/SystemX.Product.CP.TRA/Properties/licenses.licx b/CPXV2 TRA JSON Recovery/SystemX.Product.CP.TRA/Properties/licenses.licx deleted file mode 100644 index fe3deb8..0000000 --- a/CPXV2 TRA JSON Recovery/SystemX.Product.CP.TRA/Properties/licenses.licx +++ /dev/null @@ -1,16 +0,0 @@ -DevExpress.Patch.InMemoryPatch, DevExpress.Patch.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7fc7bfca2443de66 -DevExpress.XtraBars.Ribbon.RibbonControl, DevExpress.XtraBars.v20.2, Version=20.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraEditors.ButtonEdit, DevExpress.XtraEditors.v20.2, Version=20.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraEditors.Repository.RepositoryItemCheckEdit, DevExpress.XtraEditors.v20.2, Version=20.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraEditors.Repository.RepositoryItemProgressBar, DevExpress.XtraEditors.v20.2, Version=20.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraEditors.TextEdit, DevExpress.XtraEditors.v20.2, Version=20.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraGrid.GridControl, DevExpress.XtraGrid.v20.2, Version=20.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraEditors.CheckEdit, DevExpress.XtraEditors.v20.2, Version=20.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraBars.Docking2010.DocumentManager, DevExpress.XtraBars.v20.2, Version=20.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraCharts.ChartControl, DevExpress.XtraCharts.v20.2.UI, Version=20.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraVerticalGrid.VGridControl, DevExpress.XtraVerticalGrid.v20.2, Version=20.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraEditors.Repository.RepositoryItemDateEdit, DevExpress.XtraEditors.v20.2, Version=20.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraEditors.Repository.RepositoryItemTextEdit, DevExpress.XtraEditors.v20.2, Version=20.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraBars.Docking.DockManager, DevExpress.XtraBars.v20.2, Version=20.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraEditors.ComboBoxEdit, DevExpress.XtraEditors.v20.2, Version=20.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraLayout.LayoutControl, DevExpress.XtraLayout.v20.2, Version=20.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a diff --git a/CPXV2 TRA JSON Recovery/SystemX.Product.CP.TRA/SystemX.Product.CP.TRA.csproj b/CPXV2 TRA JSON Recovery/SystemX.Product.CP.TRA/SystemX.Product.CP.TRA.csproj index e98e6f0..fb52080 100644 --- a/CPXV2 TRA JSON Recovery/SystemX.Product.CP.TRA/SystemX.Product.CP.TRA.csproj +++ b/CPXV2 TRA JSON Recovery/SystemX.Product.CP.TRA/SystemX.Product.CP.TRA.csproj @@ -366,7 +366,6 @@ MainForm.cs - ResXFileCodeGenerator Resources.Designer.cs