diff --git a/EETGW.sln b/EETGW.sln index 3bcd126..f3bb624 100644 --- a/EETGW.sln +++ b/EETGW.sln @@ -39,6 +39,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "JobReportMailService", "Job EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FOW0000", "SubProject\FOW0000\FOW0000.csproj", "{8D593B42-1EAE-4D5A-A2C1-0361E2C43A80}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UMSControl", "SubProject\CMSControl\UMSControl.csproj", "{55EF08A8-6E94-4569-8371-7AAC9DE916AB}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -159,6 +161,14 @@ Global {8D593B42-1EAE-4D5A-A2C1-0361E2C43A80}.Release|Any CPU.Build.0 = Release|Any CPU {8D593B42-1EAE-4D5A-A2C1-0361E2C43A80}.Release|x86.ActiveCfg = Release|Any CPU {8D593B42-1EAE-4D5A-A2C1-0361E2C43A80}.Release|x86.Build.0 = Release|Any CPU + {55EF08A8-6E94-4569-8371-7AAC9DE916AB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {55EF08A8-6E94-4569-8371-7AAC9DE916AB}.Debug|Any CPU.Build.0 = Debug|Any CPU + {55EF08A8-6E94-4569-8371-7AAC9DE916AB}.Debug|x86.ActiveCfg = Debug|Any CPU + {55EF08A8-6E94-4569-8371-7AAC9DE916AB}.Debug|x86.Build.0 = Debug|Any CPU + {55EF08A8-6E94-4569-8371-7AAC9DE916AB}.Release|Any CPU.ActiveCfg = Release|Any CPU + {55EF08A8-6E94-4569-8371-7AAC9DE916AB}.Release|Any CPU.Build.0 = Release|Any CPU + {55EF08A8-6E94-4569-8371-7AAC9DE916AB}.Release|x86.ActiveCfg = Release|Any CPU + {55EF08A8-6E94-4569-8371-7AAC9DE916AB}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -177,6 +187,7 @@ Global {58CFC90C-5068-46A2-A8DE-0E92EE9E0990} = {28105E67-9D33-4627-8E26-FCE67700622F} {3CD79316-211A-4B57-A6B4-00FA6091C29D} = {28105E67-9D33-4627-8E26-FCE67700622F} {8D593B42-1EAE-4D5A-A2C1-0361E2C43A80} = {6C7EC99E-7367-4255-A039-EF5E8D75A2F6} + {55EF08A8-6E94-4569-8371-7AAC9DE916AB} = {28105E67-9D33-4627-8E26-FCE67700622F} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {B5B1FD72-356F-4840-83E8-B070AC21C8D9} diff --git a/Project/EETGW.csproj b/Project/EETGW.csproj index 90e962f..12aebfb 100644 --- a/Project/EETGW.csproj +++ b/Project/EETGW.csproj @@ -138,6 +138,9 @@ ..\packages\CefSharp.WinForms.87.1.132\lib\net452\CefSharp.WinForms.dll + + ..\packages\CsvHelper.27.0.4\lib\net45\CsvHelper.dll + ..\packages\EntityFramework.6.2.0\lib\net45\EntityFramework.dll @@ -177,20 +180,32 @@ ..\packages\Owin.1.0\lib\net40\Owin.dll + + ..\packages\System.Buffers.4.5.1\lib\netstandard1.1\System.Buffers.dll + + + ..\packages\System.Memory.4.5.4\lib\netstandard1.1\System.Memory.dll + ..\packages\Microsoft.AspNet.WebApi.Client.5.2.7\lib\net45\System.Net.Http.Formatting.dll + + ..\packages\System.Runtime.CompilerServices.Unsafe.4.5.3\lib\netstandard1.0\System.Runtime.CompilerServices.Unsafe.dll + + + ..\packages\System.ValueTuple.4.5.0\lib\netstandard1.0\System.ValueTuple.dll + ..\packages\Microsoft.AspNet.WebApi.Core.5.2.7\lib\net45\System.Web.Http.dll @@ -821,6 +836,10 @@ + + {55ef08a8-6e94-4569-8371-7aac9de916ab} + UMSControl + {f6f515c6-6628-47c4-8a94-683bdf9fbb9c} FBS0000 diff --git a/Project/_Common/fADSUserList.Designer.cs b/Project/_Common/fADSUserList.Designer.cs index 411de1f..225196c 100644 --- a/Project/_Common/fADSUserList.Designer.cs +++ b/Project/_Common/fADSUserList.Designer.cs @@ -1,272 +1,287 @@ -namespace Project._Common -{ - partial class fADSUserList - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Windows Form Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - this.components = new System.ComponentModel.Container(); - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fADSUserList)); - this.statusStrip1 = new System.Windows.Forms.StatusStrip(); - this.toolStripStatusLabel2 = new System.Windows.Forms.ToolStripStatusLabel(); - this.lbDomain = new System.Windows.Forms.ToolStripStatusLabel(); - this.listView1 = new System.Windows.Forms.ListView(); - this.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); - this.columnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); - this.columnHeader3 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); - this.columnHeader4 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); - this.columnHeader5 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); - this.columnHeader6 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); - this.columnHeader7 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); - this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components); - this.allSelectToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.deSelectToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.unSelectToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.toolStrip1 = new System.Windows.Forms.ToolStrip(); - this.toolStripButton1 = new System.Windows.Forms.ToolStripButton(); - this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); - this.toolStripLabel1 = new System.Windows.Forms.ToolStripLabel(); - this.toolStripTextBox1 = new System.Windows.Forms.ToolStripTextBox(); - this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); - this.btInsert = new System.Windows.Forms.ToolStripButton(); - this.prb1 = new System.Windows.Forms.ProgressBar(); - this.taUser = new Project.dsMSSQLTableAdapters.UsersTableAdapter(); - this.toolStripLabel2 = new System.Windows.Forms.ToolStripLabel(); - this.tbEntry = new System.Windows.Forms.ToolStripTextBox(); - this.statusStrip1.SuspendLayout(); - this.contextMenuStrip1.SuspendLayout(); - this.toolStrip1.SuspendLayout(); - this.SuspendLayout(); - // - // statusStrip1 - // - this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.toolStripStatusLabel2, - this.lbDomain}); - this.statusStrip1.Location = new System.Drawing.Point(0, 476); - this.statusStrip1.Name = "statusStrip1"; - this.statusStrip1.Size = new System.Drawing.Size(660, 22); - this.statusStrip1.TabIndex = 0; - this.statusStrip1.Text = "statusStrip1"; - // - // toolStripStatusLabel2 - // - this.toolStripStatusLabel2.Name = "toolStripStatusLabel2"; - this.toolStripStatusLabel2.Size = new System.Drawing.Size(50, 17); - this.toolStripStatusLabel2.Text = "Domain"; - // - // lbDomain - // - this.lbDomain.Name = "lbDomain"; - this.lbDomain.Size = new System.Drawing.Size(17, 17); - this.lbDomain.Text = "--"; - // - // listView1 - // - this.listView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { - this.columnHeader1, - this.columnHeader2, - this.columnHeader3, - this.columnHeader4, - this.columnHeader5, - this.columnHeader6, - this.columnHeader7}); - this.listView1.ContextMenuStrip = this.contextMenuStrip1; - this.listView1.Dock = System.Windows.Forms.DockStyle.Fill; - this.listView1.FullRowSelect = true; - this.listView1.Location = new System.Drawing.Point(0, 25); - this.listView1.Name = "listView1"; - this.listView1.Size = new System.Drawing.Size(660, 443); - this.listView1.TabIndex = 1; - this.listView1.UseCompatibleStateImageBehavior = false; - // - // contextMenuStrip1 - // - this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.allSelectToolStripMenuItem, - this.deSelectToolStripMenuItem, - this.unSelectToolStripMenuItem}); - this.contextMenuStrip1.Name = "contextMenuStrip1"; - this.contextMenuStrip1.Size = new System.Drawing.Size(126, 70); - // - // allSelectToolStripMenuItem - // - this.allSelectToolStripMenuItem.Name = "allSelectToolStripMenuItem"; - this.allSelectToolStripMenuItem.Size = new System.Drawing.Size(125, 22); - this.allSelectToolStripMenuItem.Text = "All Select"; - this.allSelectToolStripMenuItem.Click += new System.EventHandler(this.allSelectToolStripMenuItem_Click); - // - // deSelectToolStripMenuItem - // - this.deSelectToolStripMenuItem.Name = "deSelectToolStripMenuItem"; - this.deSelectToolStripMenuItem.Size = new System.Drawing.Size(125, 22); - this.deSelectToolStripMenuItem.Text = "De Select"; - this.deSelectToolStripMenuItem.Click += new System.EventHandler(this.deSelectToolStripMenuItem_Click); - // - // unSelectToolStripMenuItem - // - this.unSelectToolStripMenuItem.Name = "unSelectToolStripMenuItem"; - this.unSelectToolStripMenuItem.Size = new System.Drawing.Size(125, 22); - this.unSelectToolStripMenuItem.Text = "Un Select"; - this.unSelectToolStripMenuItem.Click += new System.EventHandler(this.unSelectToolStripMenuItem_Click); - // - // toolStrip1 - // - this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.toolStripButton1, - this.toolStripSeparator1, - this.toolStripLabel2, - this.tbEntry, - this.toolStripLabel1, - this.toolStripTextBox1, - this.toolStripSeparator2, - this.btInsert}); - this.toolStrip1.Location = new System.Drawing.Point(0, 0); - this.toolStrip1.Name = "toolStrip1"; - this.toolStrip1.Size = new System.Drawing.Size(660, 25); - this.toolStrip1.TabIndex = 2; - this.toolStrip1.Text = "toolStrip1"; - // - // toolStripButton1 - // - this.toolStripButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton1.Image"))); - this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta; - this.toolStripButton1.Name = "toolStripButton1"; - this.toolStripButton1.Size = new System.Drawing.Size(66, 22); - this.toolStripButton1.Text = "Refresh"; - this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click); - // - // toolStripSeparator1 - // - this.toolStripSeparator1.Name = "toolStripSeparator1"; - this.toolStripSeparator1.Size = new System.Drawing.Size(6, 25); - // - // toolStripLabel1 - // - this.toolStripLabel1.Name = "toolStripLabel1"; - this.toolStripLabel1.Size = new System.Drawing.Size(31, 22); - this.toolStripLabel1.Text = "dept"; - // - // toolStripTextBox1 - // - this.toolStripTextBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.toolStripTextBox1.Name = "toolStripTextBox1"; - this.toolStripTextBox1.Size = new System.Drawing.Size(100, 25); - this.toolStripTextBox1.Text = "장비기술"; - this.toolStripTextBox1.TextBoxTextAlign = System.Windows.Forms.HorizontalAlignment.Center; - // - // toolStripSeparator2 - // - this.toolStripSeparator2.Name = "toolStripSeparator2"; - this.toolStripSeparator2.Size = new System.Drawing.Size(6, 25); - // - // btInsert - // - this.btInsert.Image = ((System.Drawing.Image)(resources.GetObject("btInsert.Image"))); - this.btInsert.ImageTransparentColor = System.Drawing.Color.Magenta; - this.btInsert.Name = "btInsert"; - this.btInsert.Size = new System.Drawing.Size(85, 22); - this.btInsert.Text = "insert Data"; - this.btInsert.Click += new System.EventHandler(this.btInsert_Click); - // - // prb1 - // - this.prb1.Dock = System.Windows.Forms.DockStyle.Bottom; - this.prb1.Location = new System.Drawing.Point(0, 468); - this.prb1.Name = "prb1"; - this.prb1.Size = new System.Drawing.Size(660, 8); - this.prb1.TabIndex = 3; - // - // taUser - // - this.taUser.ClearBeforeFill = true; - // - // toolStripLabel2 - // - this.toolStripLabel2.Name = "toolStripLabel2"; - this.toolStripLabel2.Size = new System.Drawing.Size(34, 22); - this.toolStripLabel2.Text = "Entry"; - // - // tbEntry - // - this.tbEntry.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.tbEntry.Name = "tbEntry"; - this.tbEntry.Size = new System.Drawing.Size(200, 25); - this.tbEntry.Text = "LDAP://OU=Users,OU=People,OU=K4,DC=kr,DC=ds,DC=amkor,DC=com"; - this.tbEntry.TextBoxTextAlign = System.Windows.Forms.HorizontalAlignment.Center; - // - // fADSUserList - // - this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(660, 498); - this.Controls.Add(this.listView1); - this.Controls.Add(this.prb1); - this.Controls.Add(this.toolStrip1); - this.Controls.Add(this.statusStrip1); - this.Name = "fADSUserList"; - this.Text = "fADSUserList"; - this.Load += new System.EventHandler(this.fADSUserList_Load); - this.statusStrip1.ResumeLayout(false); - this.statusStrip1.PerformLayout(); - this.contextMenuStrip1.ResumeLayout(false); - this.toolStrip1.ResumeLayout(false); - this.toolStrip1.PerformLayout(); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - - private System.Windows.Forms.StatusStrip statusStrip1; - private System.Windows.Forms.ToolStripStatusLabel lbDomain; - private System.Windows.Forms.ToolStripStatusLabel toolStripStatusLabel2; - private System.Windows.Forms.ListView listView1; - private System.Windows.Forms.ToolStrip toolStrip1; - private System.Windows.Forms.ToolStripButton toolStripButton1; - private System.Windows.Forms.ColumnHeader columnHeader1; - private System.Windows.Forms.ColumnHeader columnHeader2; - private System.Windows.Forms.ColumnHeader columnHeader3; - private System.Windows.Forms.ColumnHeader columnHeader4; - private System.Windows.Forms.ColumnHeader columnHeader5; - private System.Windows.Forms.ColumnHeader columnHeader6; - private System.Windows.Forms.ColumnHeader columnHeader7; - private dsMSSQLTableAdapters.UsersTableAdapter taUser; - private System.Windows.Forms.ToolStripSeparator toolStripSeparator1; - private System.Windows.Forms.ToolStripLabel toolStripLabel1; - private System.Windows.Forms.ToolStripTextBox toolStripTextBox1; - private System.Windows.Forms.ToolStripSeparator toolStripSeparator2; - private System.Windows.Forms.ToolStripButton btInsert; - private System.Windows.Forms.ProgressBar prb1; - private System.Windows.Forms.ContextMenuStrip contextMenuStrip1; - private System.Windows.Forms.ToolStripMenuItem allSelectToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem deSelectToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem unSelectToolStripMenuItem; - private System.Windows.Forms.ToolStripLabel toolStripLabel2; - private System.Windows.Forms.ToolStripTextBox tbEntry; - } +namespace Project._Common +{ + partial class fADSUserList + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fADSUserList)); + this.statusStrip1 = new System.Windows.Forms.StatusStrip(); + this.toolStripStatusLabel2 = new System.Windows.Forms.ToolStripStatusLabel(); + this.lbDomain = new System.Windows.Forms.ToolStripStatusLabel(); + this.listView1 = new System.Windows.Forms.ListView(); + this.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); + this.columnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); + this.columnHeader3 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); + this.columnHeader4 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); + this.columnHeader5 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); + this.columnHeader6 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); + this.columnHeader7 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); + this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components); + this.allSelectToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.deSelectToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.unSelectToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStrip1 = new System.Windows.Forms.ToolStrip(); + this.toolStripButton1 = new System.Windows.Forms.ToolStripButton(); + this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); + this.toolStripLabel2 = new System.Windows.Forms.ToolStripLabel(); + this.tbEntry = new System.Windows.Forms.ToolStripTextBox(); + this.toolStripLabel1 = new System.Windows.Forms.ToolStripLabel(); + this.toolStripTextBox1 = new System.Windows.Forms.ToolStripTextBox(); + this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); + this.btInsert = new System.Windows.Forms.ToolStripButton(); + this.prb1 = new System.Windows.Forms.ProgressBar(); + this.taUser = new Project.dsMSSQLTableAdapters.UsersTableAdapter(); + this.toolStripButton2 = new System.Windows.Forms.ToolStripButton(); + this.statusStrip1.SuspendLayout(); + this.contextMenuStrip1.SuspendLayout(); + this.toolStrip1.SuspendLayout(); + this.SuspendLayout(); + // + // statusStrip1 + // + this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.toolStripStatusLabel2, + this.lbDomain}); + this.statusStrip1.Location = new System.Drawing.Point(0, 476); + this.statusStrip1.Name = "statusStrip1"; + this.statusStrip1.Size = new System.Drawing.Size(660, 22); + this.statusStrip1.TabIndex = 0; + this.statusStrip1.Text = "statusStrip1"; + // + // toolStripStatusLabel2 + // + this.toolStripStatusLabel2.Name = "toolStripStatusLabel2"; + this.toolStripStatusLabel2.Size = new System.Drawing.Size(50, 17); + this.toolStripStatusLabel2.Text = "Domain"; + // + // lbDomain + // + this.lbDomain.Name = "lbDomain"; + this.lbDomain.Size = new System.Drawing.Size(17, 17); + this.lbDomain.Text = "--"; + // + // listView1 + // + this.listView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { + this.columnHeader1, + this.columnHeader2, + this.columnHeader3, + this.columnHeader4, + this.columnHeader5, + this.columnHeader6, + this.columnHeader7}); + this.listView1.ContextMenuStrip = this.contextMenuStrip1; + this.listView1.Dock = System.Windows.Forms.DockStyle.Fill; + this.listView1.FullRowSelect = true; + this.listView1.HideSelection = false; + this.listView1.Location = new System.Drawing.Point(0, 25); + this.listView1.Name = "listView1"; + this.listView1.Size = new System.Drawing.Size(660, 443); + this.listView1.TabIndex = 1; + this.listView1.UseCompatibleStateImageBehavior = false; + // + // contextMenuStrip1 + // + this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.allSelectToolStripMenuItem, + this.deSelectToolStripMenuItem, + this.unSelectToolStripMenuItem}); + this.contextMenuStrip1.Name = "contextMenuStrip1"; + this.contextMenuStrip1.Size = new System.Drawing.Size(126, 70); + // + // allSelectToolStripMenuItem + // + this.allSelectToolStripMenuItem.Name = "allSelectToolStripMenuItem"; + this.allSelectToolStripMenuItem.Size = new System.Drawing.Size(125, 22); + this.allSelectToolStripMenuItem.Text = "All Select"; + this.allSelectToolStripMenuItem.Click += new System.EventHandler(this.allSelectToolStripMenuItem_Click); + // + // deSelectToolStripMenuItem + // + this.deSelectToolStripMenuItem.Name = "deSelectToolStripMenuItem"; + this.deSelectToolStripMenuItem.Size = new System.Drawing.Size(125, 22); + this.deSelectToolStripMenuItem.Text = "De Select"; + this.deSelectToolStripMenuItem.Click += new System.EventHandler(this.deSelectToolStripMenuItem_Click); + // + // unSelectToolStripMenuItem + // + this.unSelectToolStripMenuItem.Name = "unSelectToolStripMenuItem"; + this.unSelectToolStripMenuItem.Size = new System.Drawing.Size(125, 22); + this.unSelectToolStripMenuItem.Text = "Un Select"; + this.unSelectToolStripMenuItem.Click += new System.EventHandler(this.unSelectToolStripMenuItem_Click); + // + // toolStrip1 + // + this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.toolStripButton1, + this.toolStripSeparator1, + this.toolStripLabel2, + this.tbEntry, + this.toolStripLabel1, + this.toolStripTextBox1, + this.toolStripSeparator2, + this.btInsert, + this.toolStripButton2}); + this.toolStrip1.Location = new System.Drawing.Point(0, 0); + this.toolStrip1.Name = "toolStrip1"; + this.toolStrip1.Size = new System.Drawing.Size(660, 25); + this.toolStrip1.TabIndex = 2; + this.toolStrip1.Text = "toolStrip1"; + // + // toolStripButton1 + // + this.toolStripButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton1.Image"))); + this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta; + this.toolStripButton1.Name = "toolStripButton1"; + this.toolStripButton1.Size = new System.Drawing.Size(66, 22); + this.toolStripButton1.Text = "Refresh"; + this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click); + // + // toolStripSeparator1 + // + this.toolStripSeparator1.Name = "toolStripSeparator1"; + this.toolStripSeparator1.Size = new System.Drawing.Size(6, 25); + // + // toolStripLabel2 + // + this.toolStripLabel2.Name = "toolStripLabel2"; + this.toolStripLabel2.Size = new System.Drawing.Size(34, 22); + this.toolStripLabel2.Text = "Entry"; + // + // tbEntry + // + this.tbEntry.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.tbEntry.Font = new System.Drawing.Font("맑은 고딕", 9F); + this.tbEntry.Name = "tbEntry"; + this.tbEntry.Size = new System.Drawing.Size(200, 25); + this.tbEntry.Text = "LDAP://OU=Users,OU=People,OU=K4,DC=kr,DC=ds,DC=amkor,DC=com"; + this.tbEntry.TextBoxTextAlign = System.Windows.Forms.HorizontalAlignment.Center; + // + // toolStripLabel1 + // + this.toolStripLabel1.Name = "toolStripLabel1"; + this.toolStripLabel1.Size = new System.Drawing.Size(31, 22); + this.toolStripLabel1.Text = "dept"; + // + // toolStripTextBox1 + // + this.toolStripTextBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.toolStripTextBox1.Font = new System.Drawing.Font("맑은 고딕", 9F); + this.toolStripTextBox1.Name = "toolStripTextBox1"; + this.toolStripTextBox1.Size = new System.Drawing.Size(100, 25); + this.toolStripTextBox1.Text = "장비기술"; + this.toolStripTextBox1.TextBoxTextAlign = System.Windows.Forms.HorizontalAlignment.Center; + // + // toolStripSeparator2 + // + this.toolStripSeparator2.Name = "toolStripSeparator2"; + this.toolStripSeparator2.Size = new System.Drawing.Size(6, 25); + // + // btInsert + // + this.btInsert.Image = ((System.Drawing.Image)(resources.GetObject("btInsert.Image"))); + this.btInsert.ImageTransparentColor = System.Drawing.Color.Magenta; + this.btInsert.Name = "btInsert"; + this.btInsert.Size = new System.Drawing.Size(85, 22); + this.btInsert.Text = "insert Data"; + this.btInsert.Click += new System.EventHandler(this.btInsert_Click); + // + // prb1 + // + this.prb1.Dock = System.Windows.Forms.DockStyle.Bottom; + this.prb1.Location = new System.Drawing.Point(0, 468); + this.prb1.Name = "prb1"; + this.prb1.Size = new System.Drawing.Size(660, 8); + this.prb1.TabIndex = 3; + // + // taUser + // + this.taUser.ClearBeforeFill = true; + // + // toolStripButton2 + // + this.toolStripButton2.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton2.Image"))); + this.toolStripButton2.ImageTransparentColor = System.Drawing.Color.Magenta; + this.toolStripButton2.Name = "toolStripButton2"; + this.toolStripButton2.Size = new System.Drawing.Size(61, 22); + this.toolStripButton2.Text = "Export"; + this.toolStripButton2.Click += new System.EventHandler(this.toolStripButton2_Click); + // + // fADSUserList + // + this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(660, 498); + this.Controls.Add(this.listView1); + this.Controls.Add(this.prb1); + this.Controls.Add(this.toolStrip1); + this.Controls.Add(this.statusStrip1); + this.Name = "fADSUserList"; + this.Text = "fADSUserList"; + this.Load += new System.EventHandler(this.fADSUserList_Load); + this.statusStrip1.ResumeLayout(false); + this.statusStrip1.PerformLayout(); + this.contextMenuStrip1.ResumeLayout(false); + this.toolStrip1.ResumeLayout(false); + this.toolStrip1.PerformLayout(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.StatusStrip statusStrip1; + private System.Windows.Forms.ToolStripStatusLabel lbDomain; + private System.Windows.Forms.ToolStripStatusLabel toolStripStatusLabel2; + private System.Windows.Forms.ListView listView1; + private System.Windows.Forms.ToolStrip toolStrip1; + private System.Windows.Forms.ToolStripButton toolStripButton1; + private System.Windows.Forms.ColumnHeader columnHeader1; + private System.Windows.Forms.ColumnHeader columnHeader2; + private System.Windows.Forms.ColumnHeader columnHeader3; + private System.Windows.Forms.ColumnHeader columnHeader4; + private System.Windows.Forms.ColumnHeader columnHeader5; + private System.Windows.Forms.ColumnHeader columnHeader6; + private System.Windows.Forms.ColumnHeader columnHeader7; + private dsMSSQLTableAdapters.UsersTableAdapter taUser; + private System.Windows.Forms.ToolStripSeparator toolStripSeparator1; + private System.Windows.Forms.ToolStripLabel toolStripLabel1; + private System.Windows.Forms.ToolStripTextBox toolStripTextBox1; + private System.Windows.Forms.ToolStripSeparator toolStripSeparator2; + private System.Windows.Forms.ToolStripButton btInsert; + private System.Windows.Forms.ProgressBar prb1; + private System.Windows.Forms.ContextMenuStrip contextMenuStrip1; + private System.Windows.Forms.ToolStripMenuItem allSelectToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem deSelectToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem unSelectToolStripMenuItem; + private System.Windows.Forms.ToolStripLabel toolStripLabel2; + private System.Windows.Forms.ToolStripTextBox tbEntry; + private System.Windows.Forms.ToolStripButton toolStripButton2; + } } \ No newline at end of file diff --git a/Project/_Common/fADSUserList.cs b/Project/_Common/fADSUserList.cs index 5c0dda4..d29b36f 100644 --- a/Project/_Common/fADSUserList.cs +++ b/Project/_Common/fADSUserList.cs @@ -9,6 +9,9 @@ using System.Threading.Tasks; using System.Windows.Forms; using System.DirectoryServices; +using System.IO; +using CsvHelper; +using System.Globalization; namespace Project._Common { @@ -72,7 +75,8 @@ namespace Project._Common try { Nodename = deParent.SchemaClassName; - } catch (Exception ex) + } + catch (Exception ex) { Util.MsgE(ex.Message + "\n" + tbEntry.Text); Nodename = string.Empty; @@ -187,8 +191,8 @@ namespace Project._Common } } } - - + + FCOMMON.Util.MsgI("exit"); this.listView1.Visible = true; } @@ -204,7 +208,7 @@ namespace Project._Common this.prb1.Maximum = items.Count; this.prb1.Value = 0; - foreach(ListViewItem item in items) + foreach (ListViewItem item in items) { string sn = item.SubItems[0].Text; //이름 @@ -221,9 +225,9 @@ namespace Project._Common try { //이 대상의 id가 잇는지 체크한다. - if(taUser.ExistID(pager) > 0) + if (taUser.ExistID(pager) > 0) { - taUser.UpdateDept(dept, sn , title, pager); + taUser.UpdateDept(dept, sn, title, pager); } else { @@ -233,16 +237,16 @@ namespace Project._Common whencre, "Auto Gen", FCOMMON.info.Login.no, DateTime.Now); } - + } catch (Exception eX) { Console.WriteLine(sn + eX.Message); } - + this.prb1.Value += 1; } - + } private void allSelectToolStripMenuItem_Click(object sender, EventArgs e) @@ -262,5 +266,47 @@ namespace Project._Common foreach (ListViewItem item in this.listView1.Items) item.Checked = false; } + + private void toolStripButton2_Click(object sender, EventArgs e) + { + var sd = new SaveFileDialog(); + sd.Filter = "csv|*.csv"; + if (sd.ShowDialog() != DialogResult.OK) return; + var records = new List>(); + var data = new List(); + + //데이터입력 + foreach (ListViewItem item in this.listView1.Items) + { + + + data.Add(new + { + sn = item.SubItems[0].Text, + cn = item.SubItems[1].Text, + disp = item.SubItems[2].Text, + dept = item.SubItems[3].Text, + title = item.SubItems[4].Text, + tel = item.SubItems[5].Text, + mail = item.SubItems[6].Text, + pager = item.SubItems[7].Text, + empno = item.SubItems[8].Text, + when = item.SubItems[9].Text, + }); + + //records.Add(data); + } + using (var writer = new StreamWriter(sd.FileName,false, System.Text.Encoding.Default)) + using (var csv = new CsvWriter(writer, CultureInfo.InvariantCulture)) + { + //foreach (var item in records) + //{ + // csv.WriteRecord(item); + //} + + csv.WriteRecords(data); + } + FCOMMON.Util.MsgI("저장완료"); + } } } diff --git a/Project/_Common/fADSUserList.resx b/Project/_Common/fADSUserList.resx index 8b90af2..d8a402b 100644 --- a/Project/_Common/fADSUserList.resx +++ b/Project/_Common/fADSUserList.resx @@ -1,163 +1,178 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - - 17, 17 - - - 327, 17 - - - 134, 17 - - - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIDSURBVDhPpZLrS5NhGMb3j4SWh0oRQVExD4gonkDpg4hG - YKxG6WBogkMZKgPNCEVJFBGdGETEvgwyO9DJE5syZw3PIlPEE9pgBCLZ5XvdMB8Ew8gXbl54nuf63dd9 - 0OGSnwCahxbPRNPAPMw9Xpg6ZmF46kZZ0xSKzJPIrhpDWsVnpBhGkKx3nAX8Pv7z1zg8OoY/cITdn4fw - bf/C0kYAN3Ma/w3gWfZL5kzTKBxjWyK2DftwI9tyMYCZKXbNHaD91bLYJrDXsYbrWfUKwJrPE9M2M1Oc - VzOOpHI7Jr376Hi9ogHqFIANO0/MmmmbmSmm9a8ze+I4MrNWAdjtoJgWcx+PSzg166yZZ8xM8XvXDix9 - c4jIqFYAjoriBV9AhEPv1mH/sonogha0afbZMMZz+yreTGyhpusHwtNNCsA5U1zS4BLxzJIfg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8VuMzNrpm1mpjgkoVwB/v8D - TgDQASA1MVpwzwAAAABJRU5ErkJggg== - - - - 240, 17 - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + 17, 17 + + + 327, 17 + + + 134, 17 + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIDSURBVDhPpZLrS5NhGMb3j4SWh0oRQVExD4gonkDpg4hG + YKxG6WBogkMZKgPNCEVJFBGdGETEvgwyO9DJE5syZw3PIlPEE9pgBCLZ5XvdMB8Ew8gXbl54nuf63dd9 + 0OGSnwCahxbPRNPAPMw9Xpg6ZmF46kZZ0xSKzJPIrhpDWsVnpBhGkKx3nAX8Pv7z1zg8OoY/cITdn4fw + bf/C0kYAN3Ma/w3gWfZL5kzTKBxjWyK2DftwI9tyMYCZKXbNHaD91bLYJrDXsYbrWfUKwJrPE9M2M1Oc + VzOOpHI7Jr376Hi9ogHqFIANO0/MmmmbmSmm9a8ze+I4MrNWAdjtoJgWcx+PSzg166yZZ8xM8XvXDix9 + c4jIqFYAjoriBV9AhEPv1mH/sonogha0afbZMMZz+yreTGyhpusHwtNNCsA5U1zS4BLxzJIfg299qO32 + Ir7UJtZfftyATqeT+8o2D8JSjQrAJblrncYL7ZJ2+bfaFnC/1S1NjL3diRat7qrO7wLRP3HjWsojBeCo + mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+ + kx0g8BTA3aZlButjSTyjODq/WcQcW/B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j4SWh0oRQVExD4gonkDpg4hG + YKxG6WBogkMZKgPNCEVJFBGdGETEvgwyO9DJE5syZw3PIlPEE9pgBCLZ5XvdMB8Ew8gXbl54nuf63dd9 + 0OGSnwCahxbPRNPAPMw9Xpg6ZmF46kZZ0xSKzJPIrhpDWsVnpBhGkKx3nAX8Pv7z1zg8OoY/cITdn4fw + bf/C0kYAN3Ma/w3gWfZL5kzTKBxjWyK2DftwI9tyMYCZKXbNHaD91bLYJrDXsYbrWfUKwJrPE9M2M1Oc + VzOOpHI7Jr376Hi9ogHqFIANO0/MmmmbmSmm9a8ze+I4MrNWAdjtoJgWcx+PSzg166yZZ8xM8XvXDix9 + c4jIqFYAjoriBV9AhEPv1mH/sonogha0afbZMMZz+yreTGyhpusHwtNNCsA5U1zS4BLxzJIfg299qO32 + Ir7UJtZfftyATqeT+8o2D8JSjQrAJblrncYL7ZJ2+bfaFnC/1S1NjL3diRat7qrO7wLRP3HjWsojBeCo + mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+ + kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D + TgDQASA1MVpwzwAAAABJRU5ErkJggg== + + + + 240, 17 + \ No newline at end of file diff --git a/Project/app.config b/Project/app.config index 99b7616..ce344b0 100644 --- a/Project/app.config +++ b/Project/app.config @@ -36,6 +36,10 @@ + + + + diff --git a/Project/fMain.Designer.cs b/Project/fMain.Designer.cs index a6e1690..5a04769 100644 --- a/Project/fMain.Designer.cs +++ b/Project/fMain.Designer.cs @@ -117,6 +117,7 @@ this.toolStripButton4 = new System.Windows.Forms.ToolStripButton(); this.toolStripButton1 = new System.Windows.Forms.ToolStripButton(); this.toolStripButton2 = new System.Windows.Forms.ToolStripButton(); + this.layoutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.cmTab.SuspendLayout(); this.statusStrip1.SuspendLayout(); this.menuStrip1.SuspendLayout(); @@ -237,14 +238,14 @@ // this.codesToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("codesToolStripMenuItem.Image"))); this.codesToolStripMenuItem.Name = "codesToolStripMenuItem"; - this.codesToolStripMenuItem.Size = new System.Drawing.Size(153, 24); + this.codesToolStripMenuItem.Size = new System.Drawing.Size(180, 24); this.codesToolStripMenuItem.Text = "공용코드"; this.codesToolStripMenuItem.Click += new System.EventHandler(this.codesToolStripMenuItem_Click); // // itemsToolStripMenuItem // this.itemsToolStripMenuItem.Name = "itemsToolStripMenuItem"; - this.itemsToolStripMenuItem.Size = new System.Drawing.Size(153, 24); + this.itemsToolStripMenuItem.Size = new System.Drawing.Size(180, 24); this.itemsToolStripMenuItem.Text = "품목정보"; this.itemsToolStripMenuItem.Click += new System.EventHandler(this.itemsToolStripMenuItem_Click); // @@ -255,41 +256,41 @@ this.myAccouserToolStripMenuItem, this.권한설정ToolStripMenuItem}); this.userInfoToolStripMenuItem.Name = "userInfoToolStripMenuItem"; - this.userInfoToolStripMenuItem.Size = new System.Drawing.Size(153, 24); + this.userInfoToolStripMenuItem.Size = new System.Drawing.Size(180, 24); this.userInfoToolStripMenuItem.Text = "사용자"; // // userAccountToolStripMenuItem // this.userAccountToolStripMenuItem.Name = "userAccountToolStripMenuItem"; - this.userAccountToolStripMenuItem.Size = new System.Drawing.Size(134, 24); + this.userAccountToolStripMenuItem.Size = new System.Drawing.Size(180, 24); this.userAccountToolStripMenuItem.Text = "계정정보"; this.userAccountToolStripMenuItem.Click += new System.EventHandler(this.userAccountToolStripMenuItem_Click); // // myAccouserToolStripMenuItem // this.myAccouserToolStripMenuItem.Name = "myAccouserToolStripMenuItem"; - this.myAccouserToolStripMenuItem.Size = new System.Drawing.Size(134, 24); + this.myAccouserToolStripMenuItem.Size = new System.Drawing.Size(180, 24); this.myAccouserToolStripMenuItem.Text = "계정목록"; this.myAccouserToolStripMenuItem.Click += new System.EventHandler(this.myAccouserToolStripMenuItem_Click); // // 권한설정ToolStripMenuItem // this.권한설정ToolStripMenuItem.Name = "권한설정ToolStripMenuItem"; - this.권한설정ToolStripMenuItem.Size = new System.Drawing.Size(134, 24); + this.권한설정ToolStripMenuItem.Size = new System.Drawing.Size(180, 24); this.권한설정ToolStripMenuItem.Text = "권한설정"; this.권한설정ToolStripMenuItem.Click += new System.EventHandler(this.권한설정ToolStripMenuItem_Click); // // customerToolStripMenuItem // this.customerToolStripMenuItem.Name = "customerToolStripMenuItem"; - this.customerToolStripMenuItem.Size = new System.Drawing.Size(153, 24); + this.customerToolStripMenuItem.Size = new System.Drawing.Size(180, 24); this.customerToolStripMenuItem.Text = "업체정보"; this.customerToolStripMenuItem.Click += new System.EventHandler(this.customerToolStripMenuItem_Click); // // mn_kuntae // this.mn_kuntae.Name = "mn_kuntae"; - this.mn_kuntae.Size = new System.Drawing.Size(153, 24); + this.mn_kuntae.Size = new System.Drawing.Size(180, 24); this.mn_kuntae.Text = "월별 근무표"; this.mn_kuntae.Click += new System.EventHandler(this.월별근무표ToolStripMenuItem_Click); // @@ -297,7 +298,7 @@ // this.메일양식ToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("메일양식ToolStripMenuItem.Image"))); this.메일양식ToolStripMenuItem.Name = "메일양식ToolStripMenuItem"; - this.메일양식ToolStripMenuItem.Size = new System.Drawing.Size(153, 24); + this.메일양식ToolStripMenuItem.Size = new System.Drawing.Size(180, 24); this.메일양식ToolStripMenuItem.Text = "메일 양식"; this.메일양식ToolStripMenuItem.Click += new System.EventHandler(this.메일양식ToolStripMenuItem_Click); // @@ -331,7 +332,8 @@ // this.mn_project.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.목록ToolStripMenuItem, - this.구매진행현황ToolStripMenuItem}); + this.구매진행현황ToolStripMenuItem, + this.layoutToolStripMenuItem}); this.mn_project.Image = ((System.Drawing.Image)(resources.GetObject("mn_project.Image"))); this.mn_project.Name = "mn_project"; this.mn_project.Size = new System.Drawing.Size(208, 24); @@ -341,14 +343,14 @@ // 목록ToolStripMenuItem // this.목록ToolStripMenuItem.Name = "목록ToolStripMenuItem"; - this.목록ToolStripMenuItem.Size = new System.Drawing.Size(152, 24); + this.목록ToolStripMenuItem.Size = new System.Drawing.Size(180, 24); this.목록ToolStripMenuItem.Text = "목록"; this.목록ToolStripMenuItem.Click += new System.EventHandler(this.목록ToolStripMenuItem_Click); // // 구매진행현황ToolStripMenuItem // this.구매진행현황ToolStripMenuItem.Name = "구매진행현황ToolStripMenuItem"; - this.구매진행현황ToolStripMenuItem.Size = new System.Drawing.Size(152, 24); + this.구매진행현황ToolStripMenuItem.Size = new System.Drawing.Size(180, 24); this.구매진행현황ToolStripMenuItem.Text = "CR구매현황"; this.구매진행현황ToolStripMenuItem.Click += new System.EventHandler(this.구매진행현황ToolStripMenuItem_Click); // @@ -523,39 +525,39 @@ // 메모장ToolStripMenuItem // this.메모장ToolStripMenuItem.Name = "메모장ToolStripMenuItem"; - this.메모장ToolStripMenuItem.Size = new System.Drawing.Size(180, 24); + this.메모장ToolStripMenuItem.Size = new System.Drawing.Size(165, 24); this.메모장ToolStripMenuItem.Text = "메모장"; this.메모장ToolStripMenuItem.Click += new System.EventHandler(this.메모장ToolStripMenuItem_Click); // // toolStripMenuItem4 // this.toolStripMenuItem4.Name = "toolStripMenuItem4"; - this.toolStripMenuItem4.Size = new System.Drawing.Size(177, 6); + this.toolStripMenuItem4.Size = new System.Drawing.Size(162, 6); // // 패치내역ToolStripMenuItem1 // this.패치내역ToolStripMenuItem1.Name = "패치내역ToolStripMenuItem1"; - this.패치내역ToolStripMenuItem1.Size = new System.Drawing.Size(180, 24); + this.패치내역ToolStripMenuItem1.Size = new System.Drawing.Size(165, 24); this.패치내역ToolStripMenuItem1.Text = "패치 내역"; this.패치내역ToolStripMenuItem1.Click += new System.EventHandler(this.패치내역ToolStripMenuItem1_Click); // // 메일내역ToolStripMenuItem // this.메일내역ToolStripMenuItem.Name = "메일내역ToolStripMenuItem"; - this.메일내역ToolStripMenuItem.Size = new System.Drawing.Size(180, 24); + this.메일내역ToolStripMenuItem.Size = new System.Drawing.Size(165, 24); this.메일내역ToolStripMenuItem.Text = "메일 내역"; this.메일내역ToolStripMenuItem.Click += new System.EventHandler(this.메일내역ToolStripMenuItem_Click); // // toolStripMenuItem3 // this.toolStripMenuItem3.Name = "toolStripMenuItem3"; - this.toolStripMenuItem3.Size = new System.Drawing.Size(177, 6); + this.toolStripMenuItem3.Size = new System.Drawing.Size(162, 6); // // minutesToolStripMenuItem // this.minutesToolStripMenuItem.ForeColor = System.Drawing.Color.HotPink; this.minutesToolStripMenuItem.Name = "minutesToolStripMenuItem"; - this.minutesToolStripMenuItem.Size = new System.Drawing.Size(180, 24); + this.minutesToolStripMenuItem.Size = new System.Drawing.Size(165, 24); this.minutesToolStripMenuItem.Text = "회의록"; this.minutesToolStripMenuItem.Visible = false; this.minutesToolStripMenuItem.Click += new System.EventHandler(this.minutesToolStripMenuItem_Click); @@ -564,7 +566,7 @@ // this.requestITemToolStripMenuItem.ForeColor = System.Drawing.Color.HotPink; this.requestITemToolStripMenuItem.Name = "requestITemToolStripMenuItem"; - this.requestITemToolStripMenuItem.Size = new System.Drawing.Size(180, 24); + this.requestITemToolStripMenuItem.Size = new System.Drawing.Size(165, 24); this.requestITemToolStripMenuItem.Text = "견적요청"; this.requestITemToolStripMenuItem.Visible = false; this.requestITemToolStripMenuItem.Click += new System.EventHandler(this.requestITemToolStripMenuItem_Click); @@ -573,7 +575,7 @@ // this.freeBoardToolStripMenuItem.Enabled = false; this.freeBoardToolStripMenuItem.Name = "freeBoardToolStripMenuItem"; - this.freeBoardToolStripMenuItem.Size = new System.Drawing.Size(180, 24); + this.freeBoardToolStripMenuItem.Size = new System.Drawing.Size(165, 24); this.freeBoardToolStripMenuItem.Text = "Free Board"; this.freeBoardToolStripMenuItem.Visible = false; // @@ -581,7 +583,7 @@ // this.bugReportToolStripMenuItem.Enabled = false; this.bugReportToolStripMenuItem.Name = "bugReportToolStripMenuItem"; - this.bugReportToolStripMenuItem.Size = new System.Drawing.Size(180, 24); + this.bugReportToolStripMenuItem.Size = new System.Drawing.Size(165, 24); this.bugReportToolStripMenuItem.Text = "Bug Report"; this.bugReportToolStripMenuItem.Visible = false; // @@ -589,7 +591,7 @@ // this.todoListToolStripMenuItem.Enabled = false; this.todoListToolStripMenuItem.Name = "todoListToolStripMenuItem"; - this.todoListToolStripMenuItem.Size = new System.Drawing.Size(180, 24); + this.todoListToolStripMenuItem.Size = new System.Drawing.Size(165, 24); this.todoListToolStripMenuItem.Text = "Todo List"; this.todoListToolStripMenuItem.Visible = false; this.todoListToolStripMenuItem.Click += new System.EventHandler(this.todoListToolStripMenuItem_Click); @@ -598,7 +600,7 @@ // this.메일전송ToolStripMenuItem.ForeColor = System.Drawing.Color.Red; this.메일전송ToolStripMenuItem.Name = "메일전송ToolStripMenuItem"; - this.메일전송ToolStripMenuItem.Size = new System.Drawing.Size(180, 24); + this.메일전송ToolStripMenuItem.Size = new System.Drawing.Size(165, 24); this.메일전송ToolStripMenuItem.Text = "메일전송"; this.메일전송ToolStripMenuItem.Visible = false; this.메일전송ToolStripMenuItem.Click += new System.EventHandler(this.메일전송ToolStripMenuItem_Click); @@ -607,7 +609,7 @@ // this.toolStripMenuItem5.ForeColor = System.Drawing.Color.Red; this.toolStripMenuItem5.Name = "toolStripMenuItem5"; - this.toolStripMenuItem5.Size = new System.Drawing.Size(180, 24); + this.toolStripMenuItem5.Size = new System.Drawing.Size(165, 24); this.toolStripMenuItem5.Text = "(test)휴가등록"; this.toolStripMenuItem5.Click += new System.EventHandler(this.toolStripMenuItem5_Click); // @@ -865,6 +867,13 @@ this.toolStripButton2.Text = "품목정보"; this.toolStripButton2.Click += new System.EventHandler(this.toolStripButton2_Click_1); // + // layoutToolStripMenuItem + // + this.layoutToolStripMenuItem.Name = "layoutToolStripMenuItem"; + this.layoutToolStripMenuItem.Size = new System.Drawing.Size(180, 24); + this.layoutToolStripMenuItem.Text = "Layout"; + this.layoutToolStripMenuItem.Click += new System.EventHandler(this.layoutToolStripMenuItem_Click); + // // fMain // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; @@ -984,6 +993,7 @@ private System.Windows.Forms.ToolStripMenuItem 품목검색ToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem accessDBToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem aLLToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem layoutToolStripMenuItem; } } diff --git a/Project/fMain.cs b/Project/fMain.cs index 4998d81..6070976 100644 --- a/Project/fMain.cs +++ b/Project/fMain.cs @@ -1013,5 +1013,12 @@ namespace Project if (!ShowForm(formkey)) AddForm(formkey, new FEQ0000.fEquipment(FEQ0000.fEquipment.eTabletype.ALL), "ALL"); } + + private void layoutToolStripMenuItem_Click(object sender, EventArgs e) + { + string formkey = "PLYOU"; + if (!ShowForm(formkey)) + AddForm(formkey, new FPJ0000.fProjectLayout()); + } } } diff --git a/Project/fMain.resx b/Project/fMain.resx index a1cfa6f..312c998 100644 --- a/Project/fMain.resx +++ b/Project/fMain.resx @@ -375,52 +375,52 @@ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAJFSURBVDhPjVPtS1NxGP1B3r+gj/0PfUhXQgQJYWUqRFFB - QwoXhVCNrK1o6oJog+iDkJrIvjRlkKQUgXUZjBB6jyLWjPZtQbCpI7Z5t7teTs/53StLVOiByz7ce55z - nnPO1P9O1lC+r4aal9+CPHbKUL9nDPXHfb35yMdjGUPlCcj3HsNi8ByWBi9gOeyHvIP72foRNu9Ck8rl - WrdjMXAWxZt+lEYCKIX2YCXSip9zA6gGN1mQ3aJiaUNZ+TMnUIz048e1dlhRD+yRXaiPOc+v5CDs6xss - yDapaZFWXxo4j9LdACrhHai7QHtqL2rPulB9dRx2bhTlt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o3 + xNgP7kTcxGpZrdb3zWZz9P7YkiT9UVRUNKjRaJ5ItiQlk/0Pkfw1UAYzAngAAAAASUVORK5CYII= diff --git a/Project/packages.config b/Project/packages.config index 1e44b13..3191fc6 100644 --- a/Project/packages.config +++ b/Project/packages.config @@ -4,6 +4,7 @@ + @@ -12,6 +13,7 @@ + @@ -19,4 +21,8 @@ + + + + \ No newline at end of file diff --git a/SubProject/CMSControl/EventArgs.cs b/SubProject/CMSControl/EventArgs.cs new file mode 100644 index 0000000..505bcb4 --- /dev/null +++ b/SubProject/CMSControl/EventArgs.cs @@ -0,0 +1,43 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Windows.Forms; + +namespace CMSControl +{ + public partial class cmsview + { + public enum eClickArea + { + Normal = 0, + No, + Title, + Content, + } + public class ItemClickEvent : EventArgs + { + public System.Drawing.Point Point { get; set; } + public int Index { get; set; } + public MouseButtons Button; + public eClickArea Area; + public ItemClickEvent(System.Drawing.Point point_, int index_,MouseButtons button_,eClickArea area_) + { + this.Point = point_; + this.Index = index_; + this.Button = button_; + this.Area = area_; + } + } + public class MessageEvent : EventArgs + { + public string Message { get; set; } + public Boolean isError { get; set; } + public MessageEvent(Boolean isError_,string Message_) + { + this.isError = isError_; + this.Message = Message_; + } + } + } +} diff --git a/SubProject/CMSControl/Item.cs b/SubProject/CMSControl/Item.cs new file mode 100644 index 0000000..fa3ecc7 --- /dev/null +++ b/SubProject/CMSControl/Item.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.Drawing; +using System.Linq; +using System.Text; + +namespace CMSControl +{ + public class Item + { + public int SlotIDX { get; set; } + public string ID1 { get; set; } + public string ID2 { get; set; } + public string Name { get; set; } + public string Model { get; set; } + public Boolean Selected { get; set; } + public int Qty { get; set; } + public string Serial { get; set; } + public Single Scale { get; set; } + public string ScaleUnit { get; set; } + public string Unit { get; set; } + + public Boolean QtyManage { get; set; } + public Boolean QtySummary { get; set; } + public Boolean ExpManage { get; set; } + + public Item() + { + SlotIDX = -1; + ID1 = string.Empty; + ID2 = string.Empty; + Name = string.Empty; + Model = string.Empty; + Selected = false; + Qty = 0; + Serial = string.Empty; + Scale = 1.0f; + ScaleUnit = ""; + Unit = ""; + QtyManage = true; + QtySummary = false; + ExpManage = false; + } + } +} diff --git a/SubProject/CMSControl/Properties/AssemblyInfo.cs b/SubProject/CMSControl/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..aece654 --- /dev/null +++ b/SubProject/CMSControl/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// 어셈블리에 대한 일반 정보는 다음 특성 집합을 통해 +// 제어됩니다. 어셈블리와 관련된 정보를 수정하려면 +// 이러한 특성 값을 변경하세요. +[assembly: AssemblyTitle("CMSControl")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("CMSControl")] +[assembly: AssemblyCopyright("Copyright © 2018")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// ComVisible을 false로 설정하면 이 어셈블리의 형식이 COM 구성 요소에 +// 표시되지 않습니다. COM에서 이 어셈블리의 형식에 액세스하려면 +// 해당 형식에 대해 ComVisible 특성을 true로 설정하세요. +[assembly: ComVisible(false)] + +// 이 프로젝트가 COM에 노출되는 경우 다음 GUID는 typelib의 ID를 나타냅니다. +[assembly: Guid("55ef08a8-6e94-4569-8371-7aac9de916ab")] + +// 어셈블리의 버전 정보는 다음 네 가지 값으로 구성됩니다. +// +// 주 버전 +// 부 버전 +// 빌드 번호 +// 수정 버전 +// +// 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호를 +// 기본값으로 할 수 있습니다. +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/SubProject/CMSControl/Slot.cs b/SubProject/CMSControl/Slot.cs new file mode 100644 index 0000000..b19128e --- /dev/null +++ b/SubProject/CMSControl/Slot.cs @@ -0,0 +1,77 @@ +using System; +using System.Collections.Generic; +using System.Drawing; +using System.Linq; +using System.Text; + +namespace CMSControl +{ + public class Slot + { + public Boolean Enable { get; set; } + public byte Index { get; set; } + public string Name { get; set; } + public string No { get; set; } + public Boolean Opend { get; set; } + public Color BackColor { get; set; } + public Color ForeColor { get; set; } + public Color BorderColor { get; set; } + public float BorderSize { get; set; } + + public Rectangle Rect { get; set; } + public Rectangle RectNo { get; set; } + public Rectangle RectT { get; set; } + public Rectangle RectM { get; set; } + public Rectangle RectB { get; set; } + public Rectangle RectCnt { get; set; } + public Boolean Selected { get; set; } + + public Boolean Expiration { get; set; } + + public System.Windows.Forms.Padding PaddingNo { get; set; } + public System.Windows.Forms.Padding PaddingT { get; set; } + public System.Windows.Forms.Padding PaddingM { get; set; } + public System.Windows.Forms.Padding PaddingB { get; set; } + public System.Windows.Forms.Padding PaddingCnt { get; set; } + + + public Slot() + { + Index = 0; + Name = "--"; + Name = string.Empty; + Opend = false; + BorderColor = Color.Black; + BorderSize = 2f; + Selected = false; + Enable = true; + BackColor = Color.White; + Expiration = false; + } + + + void DrawString(Graphics g, Font f, string data, Rectangle rect, Color fcolor, int pos = 1) + { + var fsize = g.MeasureString(data, f); + float cx, cy; + cx = cy = 0; + if (pos == 1) + { + cx = rect.Left + (rect.Width - fsize.Width) / 2; + cy = rect.Top + (rect.Height - fsize.Height) / 2; + } + else if (pos == 0) + { + cx = rect.Left; + cy = rect.Top + (rect.Height - fsize.Height) / 2; + } + else + { + cx = rect.Right - fsize.Width; + cy = rect.Top + (rect.Height - fsize.Height) / 2; + } + + g.DrawString(data, f, new SolidBrush(fcolor), new PointF(cx + 1, cy + 1)); + } + } +} diff --git a/SubProject/CMSControl/UMSControl.csproj b/SubProject/CMSControl/UMSControl.csproj new file mode 100644 index 0000000..3d5b11b --- /dev/null +++ b/SubProject/CMSControl/UMSControl.csproj @@ -0,0 +1,58 @@ + + + + + Debug + AnyCPU + {55EF08A8-6E94-4569-8371-7AAC9DE916AB} + Library + Properties + UMSControl + UMSControl + v4.6 + 512 + + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + false + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + false + + + + + + + + + + + + + + + Component + + + Component + + + + + + + \ No newline at end of file diff --git a/SubProject/CMSControl/cmsview.cs b/SubProject/CMSControl/cmsview.cs new file mode 100644 index 0000000..597d1bd --- /dev/null +++ b/SubProject/CMSControl/cmsview.cs @@ -0,0 +1,687 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Drawing.Drawing2D; +using System.Linq; +using System.Text; +using System.Windows.Forms; + +namespace CMSControl +{ + public enum eSystemStep : byte + { + IDLE = 0, + INPUT, + OUTPUT, + REINPUT, + FINISH, + RESULT, + CLOSING = 90, + CLOSEWAIT, + CLOSED, + } + + + public partial class cmsview : Control + { + + public eSystemStep step = eSystemStep.IDLE; + public UInt16 _page; + private Point _gridcount; + public UInt16 GridItemCount { get { return (UInt16)(_gridcount.X * _gridcount.Y); } } + public Boolean isDebug { get; set; } + public int LastContactSlotIDX = -1; + + //private Font _fontid; + //private Font _fontno; + //private Font _fontcontent; + + public float NoStrSize = 100f; + + public Boolean bRePaint; + public List Slots = new List(); + public List Items = new List(); + public UInt16 ItemMargin { get; set; } + + public Point GridCount { get { return _gridcount; } set { _gridcount = value; } } + + public Font Font_No; //slotno + public Font Font_Top; //top + public Font Font_Bottom; //bottom + public Font Font_Middle; //bottom + public Font Font_Count; //bottom + + public System.Drawing.Color color_font_no = Color.White; + public System.Drawing.Color color_font_top = Color.White; + public System.Drawing.Color color_font_middle = Color.White; + public System.Drawing.Color color_font_bottom_left = Color.White; + public System.Drawing.Color color_font_bottom_right = Color.White; + + public Padding Padding_No; + public Padding Padding_Top; + public Padding Padding_Bottom; + public Padding Padding_Middle; + public Padding Padding_Count; + + public string DisplayT; + public string DisplayM; + public string DisplayBL; + public string DisplayBR; + + public System.Windows.Forms.HorizontalAlignment TextAlignT = HorizontalAlignment.Left; + public System.Windows.Forms.HorizontalAlignment TextAlignM = HorizontalAlignment.Left; + public System.Windows.Forms.HorizontalAlignment TextAlignBL = HorizontalAlignment.Left; + public System.Windows.Forms.HorizontalAlignment TextAlignBR = HorizontalAlignment.Right; + + public Boolean Enable_MultiBox = false; + + public event EventHandler ItemClick; + public event EventHandler Message; + + public UInt16 GetMaxPageCount + { + get + { + if (GridItemCount == 0) return 0; + return (UInt16)(Math.Ceiling(Slots.Count * 1.0 / GridItemCount)); + } + } + + public UInt16 Page + { + get + { + return _page; + } + set + { + if (value < 1) value = 1; + UInt16 MaxPage = GetMaxPageCount; + if (MaxPage < 1) MaxPage = 1; + if (value > MaxPage) value = MaxPage; + if (value != _page) + { + _page = value; + bRePaint = true; + this.Invalidate(); + } + } + } + public cmsview() + { + this.SetStyle(ControlStyles.UserPaint, true); + this.SetStyle(ControlStyles.AllPaintingInWmPaint, true); + this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true); + this.SetStyle(ControlStyles.SupportsTransparentBackColor, true); + + // Redraw when resized + this.SetStyle(ControlStyles.ResizeRedraw, true); + this.Resize += arLabel_Resize; + this.MouseDown += cmsview_MouseDown; + + this._page = 1; + ItemMargin = 3; + this.GridCount = new Point(8, 12); + Font_No = new Font("Consolas", 15f); + Font_Bottom = new Font("Consolas", 8f); + Font_Top = new Font("Consolas", 8f); + bRePaint = false; + isDebug = false; + } + + + public void RaiseMessage(Boolean iserr, string msg) + { + if (Message != null) + Message(this, new MessageEvent(iserr, msg)); + } + public void ClearSelectItem() + { + foreach (var no in preSelectedIndex) + this.Slots[no].Selected = false; + } + /// + /// 지정한 index 의 아이템을 선택합니다. 페이지는 자동 전환됩니다. + /// + /// + public Boolean SelectItem(int idx) + { + ushort newPage = (ushort)(Math.Ceiling((double)(idx + 1) / GridItemCount)); + if (newPage != this._page) Page = newPage; + + if (idx >= Slots.Count) + { + RaiseMessage(true, "Index (" + idx.ToString() + ")Range Error ItemCount=" + this.Slots.Count.ToString()); + return false; //존재하지않는 아이템이다. + } + Slots[idx].Selected = true; + + + if (ItemClick != null) + ItemClick(this, new ItemClickEvent(Point.Empty, idx, MouseButtons.Left, eClickArea.No)); + + //이전에 선택된 것은 제거한다. + ClearPreSelected(); + preSelectedIndex.Add(idx); + + this.Invalidate(); + return true; + } + + /// + /// id가 일치하는 대상을 모두 찾습니다. + /// + /// + public int SelectItem(string ID1, string ID2) + { + int retval = 0; + + //이전에 선택된 것은 제거한다. + ClearPreSelected(); + + //자식데이터가 속해있다면 그것들을 모두 체크해야한다. + var items = this.Items.Where(t => t.ID1 == ID1 && t.ID2 == ID2); + if (items.Count() < 1) + { + RaiseMessage(false, "Not Found UID=" + ID1); + return retval; + } + + //해당 자식들이 속해잇는 슬롯을 모두 선택해준다. + foreach (var item in items) + { + if (item.SlotIDX < this.Slots.Count) + { + var slot = this.Slots[item.SlotIDX]; + if (!slot.Selected) + { + slot.Selected = true; + retval += 1; + preSelectedIndex.Add(slot.Index); + } + } + } + + + ushort newPage = 1; + if (preSelectedIndex.Count > 0) + newPage = (ushort)(Math.Ceiling((double)(preSelectedIndex[preSelectedIndex.Count - 1] + 1) / GridItemCount)); + + if (newPage != this._page) Page = newPage; + + if (ItemClick != null && preSelectedIndex.Count > 0) + ItemClick(this, new ItemClickEvent(Point.Empty, preSelectedIndex[0], MouseButtons.Left, eClickArea.No)); + + this.Invalidate(); + return retval; + } + public int SelectItem(string ID1) + { + int retval = 0; + + //이전에 선택된 것은 제거한다. + ClearPreSelected(); + + //자식데이터가 속해있다면 그것들을 모두 체크해야한다. + var items = this.Items.Where(t => t.ID1 == ID1); + if (items.Count() < 1) + { + RaiseMessage(false, "Not Found UID=" + ID1); + return 0; + } + + //해당 자식들이 속해잇는 슬롯을 모두 선택해준다. + foreach (var item in items) + { + if (item.SlotIDX < this.Slots.Count) + { + var slot = this.Slots[item.SlotIDX]; + if (!slot.Selected) + { + slot.Selected = true; + retval += 1; + preSelectedIndex.Add(slot.Index); + } + } + } + + ushort newPage = 1; + if (preSelectedIndex.Count > 0) + newPage = (ushort)(Math.Ceiling((double)(preSelectedIndex[preSelectedIndex.Count - 1] + 1) / GridItemCount)); + + if (newPage != this._page) Page = newPage; + + this.Invalidate(); + return retval; + } + + public List preSelectedIndex = new List(); + + void cmsview_MouseDown(object sender, MouseEventArgs e) + { + //클릭을 하면 어떤개체가 + if (GridItemCount < 1 || Slots.Count < 1) + { + RaiseMessage(true, "No items"); + return; + } + int StartIndex = (this.Page - 1) * GridItemCount; + for (int i = StartIndex; i < (StartIndex + GridItemCount); i++) + { + if (i < Slots.Count) + { + var item = Slots[i]; + if (item.Rect.Contains(e.Location)) + { + eClickArea area = eClickArea.Normal; + if (item.RectNo.Contains(e.Location)) area = eClickArea.No; + else if (item.RectM.Contains(e.Location)) area = eClickArea.Title; + else if (item.RectB.Contains(e.Location)) area = eClickArea.Content; + + item.Selected = true; + if (ItemClick != null) + ItemClick(this, new ItemClickEvent(e.Location, item.Index, e.Button, area)); + + ClearPreSelected(); + preSelectedIndex.Add(item.Index); + item.Selected = true; + + this.Invalidate(); + + break; + } + } + else break; + } + } + + void ClearPreSelected() + { + //이전에 선택된 것은 제거한다. + foreach (var index in preSelectedIndex) + if (index < Slots.Count) Slots[index].Selected = false; + preSelectedIndex.Clear(); + } + void arLabel_Resize(object sender, EventArgs e) + { + bRePaint = true; + Invalidate(); + } + + int cnt = 0; + protected override void OnPaint(PaintEventArgs pe) + { + base.OnPaint(pe); + cnt += 1; + + int StartIndex = (this.Page - 1) * GridItemCount; + + if (GridItemCount < 1) + { + DrawHelp(pe.Graphics); + } + else + { + ///테스트로 데이터를 만든다. + if (Slots.Count < 1) + { + for(int i = 0; i < this.GridItemCount;i++) + { + Slots.Add(new Slot() + { + BackColor = Color.Lime, + BorderColor = Color.Gray, + BorderSize = 2f, + Enable = true, + ForeColor = Color.Black, + Name = "test" + i.ToString(), + Index = (byte)i, + No = (i+1).ToString(), + Selected = false + }); + } + bRePaint = true; + + + } + + //영역을 다시그려야하는 상황 + if (bRePaint && GridItemCount > 0 && Slots.Count > 0) + { + int gridW = (int)((this.Width - this.Padding.Left - this.Padding.Right) / GridCount.X); + int gridH = (int)((this.Height - this.Padding.Top - this.Padding.Bottom) / GridCount.Y); + + Rectangle rect, rect2, rectNo, rectT, rectM, rectB, rectCNT; + int idx = 0; + for (int r = 0; r < GridCount.Y; r++) + { + for (int c = 0; c < GridCount.X; c++) + { + int x = (c * gridW); + int y = (r * gridH); + rect = new Rectangle(x + this.Padding.Left, y + this.Padding.Top, gridW, gridH); + rect2 = new Rectangle( + rect.Left + this.ItemMargin, + rect.Top + ItemMargin, + rect.Width - ItemMargin * 2, + rect.Height - ItemMargin * 2); + + float NoWidth = NoStrSize; // rect2.Width * 0.2f; + rectNo = new Rectangle(rect2.Left, rect2.Top, (int)NoWidth, (int)(rect2.Height * 0.3)); + var dispHeight1 = (int)(rect2.Height * 0.3); + var dispHeight2 = (int)(rect2.Height * 0.4); + var dispHeight3 = rect2.Height - dispHeight1 - dispHeight2; + rectT = new Rectangle(rectNo.Right, rect2.Top, rect2.Width - rectNo.Width, dispHeight1); ; + rectM = new Rectangle(rectNo.Left, rectT.Bottom, rect2.Width, dispHeight2); + rectB = new Rectangle(rectNo.Left, rectM.Bottom, (int)(rect2.Width / 2.0), dispHeight3); + rectCNT = new Rectangle(rectB.Right, rectM.Bottom, (int)(rect2.Width / 2.0), dispHeight3); + + if (StartIndex + idx < Slots.Count) + { + //items[StartIndex + idx].No = (byte)( idx + 1); + Slots[StartIndex + idx].Rect = rect2; + Slots[StartIndex + idx].RectNo = rectNo; + Slots[StartIndex + idx].RectT = rectT; + Slots[StartIndex + idx].RectM = rectM; + Slots[StartIndex + idx].RectB = rectB; + Slots[StartIndex + idx].RectCnt = rectCNT; + Slots[StartIndex + idx].ForeColor = this.ForeColor; + idx += 1; + } + else break; + } + if (StartIndex + idx >= Slots.Count) break; + } + bRePaint = false; + } + + for (int i = StartIndex; i < StartIndex + GridItemCount; i++) + { + if (i >= Slots.Count) break; //over check + var item = Slots[i]; + var slotItems = Items.Where(t => t.SlotIDX == item.Index); + DrawSlot(pe.Graphics, item, slotItems); + } + + if (isDebug) + { + using (Font f = new Font("Consolas", 15)) + { + System.Text.StringBuilder sb = new StringBuilder(); + sb.AppendLine("## Debug Message ##"); + sb.AppendLine("Step : " + this.step.ToString()); + sb.AppendLine("Refresh Count : " + this.cnt.ToString()); + sb.AppendLine("Slot count : " + Slots.Count.ToString()); + sb.AppendLine("Item Count : " + Items.Count.ToString()); + + sb.AppendLine("font no : " + this.Font_No.ToString()); + sb.AppendLine("font top : " + this.Font_Top.ToString()); + sb.AppendLine("font mid : " + this.Font.ToString()); + sb.AppendLine("font bot : " + this.Font_Bottom.ToString()); + sb.Append("Pre Selected index : "); + foreach (var item in preSelectedIndex) + sb.Append(item + ","); + + if (preSelectedIndex.Count == 1) + { + //세부내역도 표시한다. + var slot = this.Slots[preSelectedIndex[0]]; + var items = this.Items.Where(t => t.SlotIDX == slot.Index); + foreach (var item in items) + { + sb.Append("item " + item.ID1 + ",qty=" + item.Qty.ToString()); + } + } + pe.Graphics.DrawString(sb.ToString(), f, Brushes.Black, 11f, 11f); + pe.Graphics.DrawString(sb.ToString(), f, Brushes.Yellow, 10f, 10f); + } + + } + + } + } + void DrawHelp(Graphics g) + { + System.Text.StringBuilder sb = new StringBuilder(); + sb.AppendLine("컨트롤 설정이 완료되지 않았습니다.\n"); + sb.AppendLine("이 메세지는 GRID COUNT가 설정되지 않았거나 ITEMS 항목이 없는 경우 표시됩니다."); + sb.AppendLine("ITEMS 갯수가 GRID 갯수를 넘을 경우 페이지가 분리됩니다.\n"); + sb.AppendLine("현재 GRID 갯수는 : " + GridCount.ToString() + " = " + GridItemCount.ToString() + " 입니다."); + sb.AppendLine("현재 ITEM 갯수는 : " + Slots.Count.ToString() + " 입니다.\n"); + sb.AppendLine("화면에 5x10 의 배열로 표시를 하려면 GridCount에 5x10을 설정하세요."); + sb.AppendLine("ITEMS 는 코드상에서 입력하세요.\n"); + sb.AppendLine("# Example #"); + sb.AppendLine("var newitem = new CMSControl.Item();"); + sb.AppendLine("newitem.No = \"--\";"); + sb.AppendLine("newitem.Title = \"ItemName\""); + sb.AppendLine("newitem.Contents = \"Model No\";"); + sb.AppendLine("cmsview1.items.Add(newitem);"); + + g.DrawString(sb.ToString(), this.Font, Brushes.Red, 10f, 10f); + + } + + public Color slotColorUnUsed = Color.DimGray; + public Color slotColorDisable = Color.Gray; + public Color slotColorSelect = Color.Lime; + + void DrawSlot(Graphics g, Slot slot, IEnumerable items) + { + if (slot.Rect.IsEmpty) return; + + //fill background color + g.FillRectangle(Brushes.Gray, slot.Rect); + + Color bdColor = Color.FromArgb(194, 192, 194); + Color bColor = slot.BackColor; + float bSize = 1.0f; + if (slot.Selected) + { + bSize = 5.5f; + //bColor = slotColorSelect; + bdColor = Color.Lime; + } + else if (slot.Index == LastContactSlotIDX) + { + bdColor = Color.Yellow; + bSize = 5.5f; + } + + if (!slot.Enable) bColor = slotColorDisable; + else if (items.Count() < 1) bColor = slotColorUnUsed; + + + //no Color.FromArgb(231, 229, 231) + byte R = bColor.R; + byte G = bColor.G; + byte B = bColor.B; + if (R > 22) R -= 22; else R = 0; + if (G > 22) G -= 22; else G = 0; + if (B > 22) B -= 22; else B = 0; + + Color bgColor2 = Color.FromArgb(R, G, B); + using (LinearGradientBrush brush = new LinearGradientBrush(slot.RectNo, bColor, bgColor2, LinearGradientMode.Vertical)) + { + g.FillRectangle(brush, slot.RectNo); + } + g.DrawRectangle(new Pen(bColor), slot.RectNo); + + if (slot.Opend) + { + if (slot.BorderColor == Color.Yellow) bdColor = Color.Tomato; + else bdColor = Color.Yellow; + bSize = 5.0f; + } + + Boolean ItemQtyManage = true; + Boolean ItemQtySummary = false; + Boolean ItemExpManage = false; + + if (items.Count() > 0) + { + var itemInfo = items.First(); + ItemQtyManage = itemInfo.QtyManage; + ItemQtySummary = itemInfo.QtySummary; + ItemExpManage = itemInfo.ExpManage; + } + + //아이템이 여러개 있다면 우측 상단에 책갈피 처럼 표시한다. + if (items.Count() > 1) + { + Rectangle openrect = new Rectangle( + (int)(slot.Rect.Right - 15), + (int)(slot.Rect.Top + 1), + 15, 15); + + Point[] pts = new Point[4]; + pts[0] = new Point(slot.Rect.Right - 30, slot.Rect.Top + 1); + pts[1] = new Point(slot.Rect.Right - 1, slot.Rect.Top + 1); + pts[2] = new Point(slot.Rect.Right - 1, slot.Rect.Top + 30); + pts[3] = new Point(slot.Rect.Right - 30, slot.Rect.Top + 1); + g.FillPolygon(new SolidBrush(Color.FromArgb(40, 40, 40)), pts); + + using (Font f = new Font("맑은 고딕", 10f)) + DrawString(g, f, items.Count().ToString(), openrect, Color.White, 0); + } + + string slotnoStr = (slot.Index + 1).ToString(); + if (slot.No != "") slotnoStr = slot.No; //180607 + + if (slot.Enable) + { + string StrT = slot.Name; + string StrM = string.Empty; + string StrBL = string.Empty; + string StrBR = string.Empty; + + //값이없는 경우 세부항목에서 가져온다. + var subItems = items.ToArray(); + if (StrT == "") + { + StrT = ParserMessage(DisplayT, subItems); // subItems[0].ID1 + "\n" + subItems[0].VNAME; + } + if (subItems.Count() > 0) + { + StrM = ParserMessage(DisplayM, subItems);// subItems[0].Name; + StrBL = ParserMessage(DisplayBL, subItems);// subItems[0].Model; + StrBR = ParserMessage(DisplayBR, subItems);// "[" + subItems[0].Qty.ToString() + subItems[0].Unit + "]"; + } + + //g.DrawRectangle(new Pen(Color.Magenta, 1.5f), RectT); + //g.DrawRectangle(new Pen(Color.Red, 1.5f), RectM); + //g.DrawRectangle(new Pen(Color.Yellow, 1.5f), RectB); + //g.DrawRectangle(new Pen(Color.Yellow, 1.5f),); + + DrawString(g, Font_No, slotnoStr, slot.RectNo, color_font_no, HorizontalAlignment.Center, Padding_No); + + //title + if (StrT != "") + DrawString(g, Font_Top, StrT, slot.RectT, color_font_top, TextAlignT, Padding_Top); + if (StrM != "") + DrawString(g, Font_Middle, StrM, slot.RectM, color_font_middle, TextAlignM, Padding_Middle); + if (StrBL != "") + DrawString(g, Font_Bottom, StrBL, slot.RectB, color_font_bottom_left, TextAlignBL, Padding_Bottom); + if (StrBR != "" && ItemQtyManage) + DrawString(g, Font_Count, StrBR, slot.RectCnt, color_font_bottom_right, TextAlignBR, Padding_Count); + } + else + { + DrawString(g, this.Font_No, slotnoStr, slot.RectNo, color_font_no); + DrawString(g, this.Font_Middle, "Disabled", slot.RectM, color_font_no); + //DrawString(g, fConttent, "DISABLED", RectT, Color.Black, 0); + } + + //g.DrawRectangle(Pens.White, slot.RectT); + //g.DrawRectangle(Pens.White, slot.RectM); + //g.DrawRectangle(Pens.White, slot.RectB); + //g.DrawRectangle(Pens.White, slot.RectCnt); + //g.DrawString(items.Count().ToString(), fNo, Brushes.Red, Rect.Left, Rect.Top); + + g.DrawLine(new Pen(Color.Black, 5f), slot.Rect.Left + 3, slot.Rect.Bottom + 1, slot.Rect.Right + 2, slot.Rect.Bottom + 1); + g.DrawLine(new Pen(Color.Black, 5f), slot.Rect.Right + 1, slot.Rect.Top + 3, slot.Rect.Right + 1, slot.Rect.Bottom + 4); + //g.DrawRectangle(Pens.Black, slot.Rect.Left + 1, slot.Rect.Top + 1, slot.Rect.Width - 2, slot.Rect.Height - 2); + + using (Pen p = new Pen(bdColor, bSize)) + { + g.DrawRectangle(p, slot.Rect); //최종테두리 + } + + slot.BorderColor = bdColor; + //g.DrawString(this.BackColor.ToString(), fID, Brushes.Black,RectNo.Left, RectNo.Top); + + if (slot.Expiration) + { + string msg = "Expiration"; + var fsize = g.MeasureString(msg, this.Font); + var rectheight = (int)(fsize.Height * 1.5); + Rectangle msgRect = new Rectangle(slot.Rect.Left + 1, slot.Rect.Bottom - rectheight, slot.Rect.Width - 1, rectheight); + g.FillRectangle(new SolidBrush(Color.FromArgb(100, Color.Red)), msgRect); + DrawString(g, this.Font, msg, msgRect, Color.White); + //g.DrawString("expiration", this.Font, Brushes.White, msgRect.Left, msgRect.Top); + } + + } + + string ParserMessage(string org, Item[] subItems) + { + org = org.Replace("\\n", "\n"); + if (subItems.Length > 0) + { + var item = subItems[0]; + org = org.Replace("{ID1}", item.ID1); + org = org.Replace("{ID2}", item.ID2); + org = org.Replace("{NAME}", item.Name); + org = org.Replace("{MODEL}", item.Model); + org = org.Replace("{SERIAL}", item.Serial); + + if (item.ScaleUnit != item.Unit && item.ScaleUnit != "") + { + org = org.Replace("{QTY}", (item.Qty / item.Scale).ToString()); + org = org.Replace("{UNIT}", item.ScaleUnit); + } + else + { + org = org.Replace("{QTY}", item.Qty.ToString()); + org = org.Replace("{UNIT}", item.Unit); + } + } + else + { + org = org.Replace("{ID1}", string.Empty); + org = org.Replace("{ID2}", string.Empty); + org = org.Replace("{NAME}", string.Empty); + org = org.Replace("{MODEL}", string.Empty); + org = org.Replace("{SERIAL}", string.Empty); + org = org.Replace("{QTY}", string.Empty); + org = org.Replace("{UNIT}", string.Empty); + } + return org; + } + + void DrawString(Graphics g, Font f, string data, Rectangle rect, Color fcolor, System.Windows.Forms.HorizontalAlignment align = HorizontalAlignment.Center, Padding pad = new Padding()) + { + var fsize = g.MeasureString(data, f); + float cx, cy; + cx = cy = 0; + switch (align) + { + case HorizontalAlignment.Left: + cx = pad.Left + rect.Left; + cy = pad.Top + rect.Top + (rect.Height - fsize.Height) / 2.0f; + break; + case HorizontalAlignment.Center: + cx = pad.Left + rect.Left + (rect.Width - fsize.Width) / 2.0f; + cy = pad.Top + rect.Top + (rect.Height - fsize.Height) / 2.0f; + break; + case HorizontalAlignment.Right: + cx = rect.Right - fsize.Width - pad.Right; + cy = pad.Top + rect.Top + (rect.Height - fsize.Height) / 2.0f; + break; + } + + g.DrawString(data, f, new SolidBrush(fcolor), new PointF(cx + 1, cy + 1)); + } + } +} diff --git a/SubProject/FPJ0000/EETGW_Project_Layout.cs b/SubProject/FPJ0000/EETGW_Project_Layout.cs new file mode 100644 index 0000000..94e9b86 --- /dev/null +++ b/SubProject/FPJ0000/EETGW_Project_Layout.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// 이 코드는 템플릿에서 생성되었습니다. +// +// 이 파일을 수동으로 변경하면 응용 프로그램에서 예기치 않은 동작이 발생할 수 있습니다. +// 이 파일을 수동으로 변경하면 코드가 다시 생성될 때 변경 내용을 덮어씁니다. +// +//------------------------------------------------------------------------------ + +namespace FPJ0000 +{ + using System; + using System.Collections.Generic; + + public partial class EETGW_Project_Layout + { + public int idx { get; set; } + public string gcode { get; set; } + public int no { get; set; } + public int row { get; set; } + public int col { get; set; } + public int rowspan { get; set; } + public int colspan { get; set; } + public Nullable project { get; set; } + public string remark { get; set; } + public string wuid { get; set; } + public System.DateTime wdate { get; set; } + } +} diff --git a/SubProject/FPJ0000/FPJ0000.csproj b/SubProject/FPJ0000/FPJ0000.csproj index b584e07..e50a903 100644 --- a/SubProject/FPJ0000/FPJ0000.csproj +++ b/SubProject/FPJ0000/FPJ0000.csproj @@ -131,6 +131,9 @@ + + ..\CMSControl\obj\Debug\UMSControl.dll + ..\..\packages\NetOffice.Core.1.7.4.4\lib\net40\VBIDEApi.dll False @@ -222,6 +225,9 @@ Model1.tt + + Model1.tt + Model1.tt @@ -330,12 +336,21 @@ fNote.cs + + Model1.tt + Form fPartBuyStatus.cs + + Form + + + fProjectLayout.cs + Form @@ -577,6 +592,9 @@ fPartBuyStatus.cs + + fProjectLayout.cs + fProjectPartListEdit.cs @@ -838,8 +856,8 @@ TextTemplatingFileGenerator - Model1.Context.cs Model1.edmx + Model1.Context.cs TextTemplatingFileGenerator diff --git a/SubProject/FPJ0000/Model1.Context.cs b/SubProject/FPJ0000/Model1.Context.cs index a37538c..9d103c0 100644 --- a/SubProject/FPJ0000/Model1.Context.cs +++ b/SubProject/FPJ0000/Model1.Context.cs @@ -42,5 +42,7 @@ namespace FPJ0000 public virtual DbSet vJobReportForUser { get; set; } public virtual DbSet EETGW_ProjectsSchedule { get; set; } public virtual DbSet Auth { get; set; } + public virtual DbSet EETGW_Project_Layout { get; set; } + public virtual DbSet Projects { get; set; } } } diff --git a/SubProject/FPJ0000/Model1.edmx b/SubProject/FPJ0000/Model1.edmx index f8b0681..49b59b7 100644 --- a/SubProject/FPJ0000/Model1.edmx +++ b/SubProject/FPJ0000/Model1.edmx @@ -88,6 +88,22 @@ + + + + + + + + + + + + + + + + @@ -227,6 +243,62 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -395,12 +467,14 @@ + + @@ -580,6 +654,8 @@ + + @@ -876,6 +952,78 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1271,6 +1419,80 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SubProject/FPJ0000/Model1.edmx.diagram b/SubProject/FPJ0000/Model1.edmx.diagram index 7639077..177a56c 100644 --- a/SubProject/FPJ0000/Model1.edmx.diagram +++ b/SubProject/FPJ0000/Model1.edmx.diagram @@ -4,12 +4,12 @@ - + - + @@ -22,6 +22,8 @@ + + diff --git a/SubProject/FPJ0000/Project/fProjectLayout.Designer.cs b/SubProject/FPJ0000/Project/fProjectLayout.Designer.cs new file mode 100644 index 0000000..0218682 --- /dev/null +++ b/SubProject/FPJ0000/Project/fProjectLayout.Designer.cs @@ -0,0 +1,561 @@ +namespace FPJ0000 +{ + partial class fProjectLayout + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fProjectLayout)); + this.bn = new System.Windows.Forms.BindingNavigator(this.components); + this.bs = new System.Windows.Forms.BindingSource(this.components); + this.dsMSSQL = new FPJ0000.dsPRJ(); + this.bindingNavigatorCountItem = new System.Windows.Forms.ToolStripLabel(); + this.bindingNavigatorMoveFirstItem = new System.Windows.Forms.ToolStripButton(); + this.bindingNavigatorMovePreviousItem = new System.Windows.Forms.ToolStripButton(); + this.bindingNavigatorSeparator = new System.Windows.Forms.ToolStripSeparator(); + this.bindingNavigatorPositionItem = new System.Windows.Forms.ToolStripTextBox(); + this.bindingNavigatorSeparator1 = new System.Windows.Forms.ToolStripSeparator(); + this.bindingNavigatorMoveNextItem = new System.Windows.Forms.ToolStripButton(); + this.bindingNavigatorMoveLastItem = new System.Windows.Forms.ToolStripButton(); + this.bindingNavigatorSeparator2 = new System.Windows.Forms.ToolStripSeparator(); + this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); + this.toolStripButton1 = new System.Windows.Forms.ToolStripButton(); + this.toolStripButton3 = new System.Windows.Forms.ToolStripButton(); + this.toolStripButton4 = new System.Windows.Forms.ToolStripButton(); + this.toolStripSeparator5 = new System.Windows.Forms.ToolStripSeparator(); + this.cm = new System.Windows.Forms.ContextMenuStrip(this.components); + this.columnSizeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.autoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.resetToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.loadToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripSeparator(); + this.편집ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.partListToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.iOMapToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.공유폴더ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.scheduleToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripMenuItem3 = new System.Windows.Forms.ToolStripSeparator(); + this.메일발송주소관리ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.makeRepeatToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.삭제ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.편집ToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripSeparator(); + this.엑셀파일로저장ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.ta = new FPJ0000.dsPRJTableAdapters.ProjectsTableAdapter(); + this.tam = new FPJ0000.dsPRJTableAdapters.TableAdapterManager(); + this.bsHist = new System.Windows.Forms.BindingSource(this.components); + this.taHist = new FPJ0000.dsPRJTableAdapters.ProjectsHistoryTableAdapter(); + this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); + this.panel1 = new System.Windows.Forms.Panel(); + this.btSearch = new System.Windows.Forms.Button(); + this.button1 = new System.Windows.Forms.Button(); + this.cmsview1 = new CMSControl.cmsview(); + this.btEdit = new System.Windows.Forms.ToolStripButton(); + ((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit(); + this.bn.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).BeginInit(); + this.cm.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.bsHist)).BeginInit(); + this.panel1.SuspendLayout(); + this.SuspendLayout(); + // + // bn + // + this.bn.AddNewItem = null; + this.bn.BindingSource = this.bs; + this.bn.CountItem = this.bindingNavigatorCountItem; + this.bn.DeleteItem = null; + this.bn.Dock = System.Windows.Forms.DockStyle.Bottom; + this.bn.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.bindingNavigatorMoveFirstItem, + this.bindingNavigatorMovePreviousItem, + this.bindingNavigatorSeparator, + this.bindingNavigatorPositionItem, + this.bindingNavigatorCountItem, + this.bindingNavigatorSeparator1, + this.bindingNavigatorMoveNextItem, + this.bindingNavigatorMoveLastItem, + this.bindingNavigatorSeparator2, + this.btEdit, + this.toolStripSeparator1, + this.toolStripButton1, + this.toolStripButton3, + this.toolStripButton4, + this.toolStripSeparator5}); + this.bn.Location = new System.Drawing.Point(0, 657); + this.bn.MoveFirstItem = this.bindingNavigatorMoveFirstItem; + this.bn.MoveLastItem = this.bindingNavigatorMoveLastItem; + this.bn.MoveNextItem = this.bindingNavigatorMoveNextItem; + this.bn.MovePreviousItem = this.bindingNavigatorMovePreviousItem; + this.bn.Name = "bn"; + this.bn.PositionItem = this.bindingNavigatorPositionItem; + this.bn.Size = new System.Drawing.Size(1339, 25); + this.bn.TabIndex = 0; + this.bn.Text = "bindingNavigator1"; + // + // bs + // + this.bs.DataMember = "Projects"; + this.bs.DataSource = this.dsMSSQL; + this.bs.CurrentChanged += new System.EventHandler(this.bs_CurrentChanged); + // + // dsMSSQL + // + this.dsMSSQL.DataSetName = "dsMSSQL"; + this.dsMSSQL.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; + // + // bindingNavigatorCountItem + // + this.bindingNavigatorCountItem.Name = "bindingNavigatorCountItem"; + this.bindingNavigatorCountItem.Size = new System.Drawing.Size(27, 22); + this.bindingNavigatorCountItem.Text = "/{0}"; + this.bindingNavigatorCountItem.ToolTipText = "전체 항목 수"; + // + // bindingNavigatorMoveFirstItem + // + this.bindingNavigatorMoveFirstItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.bindingNavigatorMoveFirstItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveFirstItem.Image"))); + this.bindingNavigatorMoveFirstItem.Name = "bindingNavigatorMoveFirstItem"; + this.bindingNavigatorMoveFirstItem.RightToLeftAutoMirrorImage = true; + this.bindingNavigatorMoveFirstItem.Size = new System.Drawing.Size(23, 22); + this.bindingNavigatorMoveFirstItem.Text = "처음으로 이동"; + // + // bindingNavigatorMovePreviousItem + // + this.bindingNavigatorMovePreviousItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.bindingNavigatorMovePreviousItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMovePreviousItem.Image"))); + this.bindingNavigatorMovePreviousItem.Name = "bindingNavigatorMovePreviousItem"; + this.bindingNavigatorMovePreviousItem.RightToLeftAutoMirrorImage = true; + this.bindingNavigatorMovePreviousItem.Size = new System.Drawing.Size(23, 22); + this.bindingNavigatorMovePreviousItem.Text = "이전으로 이동"; + // + // bindingNavigatorSeparator + // + this.bindingNavigatorSeparator.Name = "bindingNavigatorSeparator"; + this.bindingNavigatorSeparator.Size = new System.Drawing.Size(6, 25); + // + // bindingNavigatorPositionItem + // + this.bindingNavigatorPositionItem.AccessibleName = "위치"; + this.bindingNavigatorPositionItem.AutoSize = false; + this.bindingNavigatorPositionItem.Name = "bindingNavigatorPositionItem"; + this.bindingNavigatorPositionItem.Size = new System.Drawing.Size(30, 23); + this.bindingNavigatorPositionItem.Text = "0"; + this.bindingNavigatorPositionItem.ToolTipText = "현재 위치"; + // + // bindingNavigatorSeparator1 + // + this.bindingNavigatorSeparator1.Name = "bindingNavigatorSeparator1"; + this.bindingNavigatorSeparator1.Size = new System.Drawing.Size(6, 25); + // + // bindingNavigatorMoveNextItem + // + this.bindingNavigatorMoveNextItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.bindingNavigatorMoveNextItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveNextItem.Image"))); + this.bindingNavigatorMoveNextItem.Name = "bindingNavigatorMoveNextItem"; + this.bindingNavigatorMoveNextItem.RightToLeftAutoMirrorImage = true; + this.bindingNavigatorMoveNextItem.Size = new System.Drawing.Size(23, 22); + this.bindingNavigatorMoveNextItem.Text = "다음으로 이동"; + // + // bindingNavigatorMoveLastItem + // + this.bindingNavigatorMoveLastItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.bindingNavigatorMoveLastItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveLastItem.Image"))); + this.bindingNavigatorMoveLastItem.Name = "bindingNavigatorMoveLastItem"; + this.bindingNavigatorMoveLastItem.RightToLeftAutoMirrorImage = true; + this.bindingNavigatorMoveLastItem.Size = new System.Drawing.Size(23, 22); + this.bindingNavigatorMoveLastItem.Text = "마지막으로 이동"; + // + // bindingNavigatorSeparator2 + // + this.bindingNavigatorSeparator2.Name = "bindingNavigatorSeparator2"; + this.bindingNavigatorSeparator2.Size = new System.Drawing.Size(6, 25); + // + // toolStripSeparator1 + // + this.toolStripSeparator1.Name = "toolStripSeparator1"; + this.toolStripSeparator1.Size = new System.Drawing.Size(6, 25); + // + // toolStripButton1 + // + this.toolStripButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton1.Image"))); + this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta; + this.toolStripButton1.Name = "toolStripButton1"; + this.toolStripButton1.Size = new System.Drawing.Size(75, 22); + this.toolStripButton1.Text = "부품목록"; + this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click); + // + // toolStripButton3 + // + this.toolStripButton3.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton3.Image"))); + this.toolStripButton3.ImageTransparentColor = System.Drawing.Color.Magenta; + this.toolStripButton3.Name = "toolStripButton3"; + this.toolStripButton3.Size = new System.Drawing.Size(56, 22); + this.toolStripButton3.Text = "I/O맵"; + this.toolStripButton3.Click += new System.EventHandler(this.toolStripButton3_Click); + // + // toolStripButton4 + // + this.toolStripButton4.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton4.Image"))); + this.toolStripButton4.ImageTransparentColor = System.Drawing.Color.Magenta; + this.toolStripButton4.Name = "toolStripButton4"; + this.toolStripButton4.Size = new System.Drawing.Size(75, 22); + this.toolStripButton4.Text = "공유폴더"; + this.toolStripButton4.Click += new System.EventHandler(this.toolStripButton4_Click); + // + // toolStripSeparator5 + // + this.toolStripSeparator5.Name = "toolStripSeparator5"; + this.toolStripSeparator5.Size = new System.Drawing.Size(6, 25); + // + // cm + // + this.cm.Font = new System.Drawing.Font("맑은 고딕", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + this.cm.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.columnSizeToolStripMenuItem, + this.toolStripMenuItem2, + this.편집ToolStripMenuItem, + this.partListToolStripMenuItem, + this.iOMapToolStripMenuItem, + this.공유폴더ToolStripMenuItem, + this.scheduleToolStripMenuItem, + this.toolStripMenuItem3, + this.메일발송주소관리ToolStripMenuItem, + this.makeRepeatToolStripMenuItem, + this.삭제ToolStripMenuItem, + this.편집ToolStripMenuItem1, + this.toolStripMenuItem1, + this.엑셀파일로저장ToolStripMenuItem}); + this.cm.Name = "contextMenuStrip1"; + this.cm.Size = new System.Drawing.Size(299, 418); + // + // columnSizeToolStripMenuItem + // + this.columnSizeToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.autoToolStripMenuItem, + this.resetToolStripMenuItem, + this.saveToolStripMenuItem, + this.loadToolStripMenuItem}); + this.columnSizeToolStripMenuItem.Name = "columnSizeToolStripMenuItem"; + this.columnSizeToolStripMenuItem.Size = new System.Drawing.Size(298, 36); + this.columnSizeToolStripMenuItem.Text = "열 너비"; + // + // autoToolStripMenuItem + // + this.autoToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("autoToolStripMenuItem.Image"))); + this.autoToolStripMenuItem.Name = "autoToolStripMenuItem"; + this.autoToolStripMenuItem.Size = new System.Drawing.Size(149, 36); + this.autoToolStripMenuItem.Text = "Auto"; + this.autoToolStripMenuItem.Click += new System.EventHandler(this.autoToolStripMenuItem_Click); + // + // resetToolStripMenuItem + // + this.resetToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("resetToolStripMenuItem.Image"))); + this.resetToolStripMenuItem.Name = "resetToolStripMenuItem"; + this.resetToolStripMenuItem.Size = new System.Drawing.Size(149, 36); + this.resetToolStripMenuItem.Text = "Reset"; + this.resetToolStripMenuItem.Click += new System.EventHandler(this.resetToolStripMenuItem_Click); + // + // saveToolStripMenuItem + // + this.saveToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("saveToolStripMenuItem.Image"))); + this.saveToolStripMenuItem.Name = "saveToolStripMenuItem"; + this.saveToolStripMenuItem.Size = new System.Drawing.Size(149, 36); + this.saveToolStripMenuItem.Text = "Save"; + this.saveToolStripMenuItem.Click += new System.EventHandler(this.saveToolStripMenuItem_Click); + // + // loadToolStripMenuItem + // + this.loadToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("loadToolStripMenuItem.Image"))); + this.loadToolStripMenuItem.Name = "loadToolStripMenuItem"; + this.loadToolStripMenuItem.Size = new System.Drawing.Size(149, 36); + this.loadToolStripMenuItem.Text = "Load"; + this.loadToolStripMenuItem.Click += new System.EventHandler(this.loadToolStripMenuItem_Click); + // + // toolStripMenuItem2 + // + this.toolStripMenuItem2.Name = "toolStripMenuItem2"; + this.toolStripMenuItem2.Size = new System.Drawing.Size(295, 6); + // + // 편집ToolStripMenuItem + // + this.편집ToolStripMenuItem.Name = "편집ToolStripMenuItem"; + this.편집ToolStripMenuItem.Size = new System.Drawing.Size(298, 36); + this.편집ToolStripMenuItem.Text = "편집"; + this.편집ToolStripMenuItem.Click += new System.EventHandler(this.편집ToolStripMenuItem_Click); + // + // partListToolStripMenuItem + // + this.partListToolStripMenuItem.Name = "partListToolStripMenuItem"; + this.partListToolStripMenuItem.Size = new System.Drawing.Size(298, 36); + this.partListToolStripMenuItem.Text = "파트리스트"; + this.partListToolStripMenuItem.Click += new System.EventHandler(this.partListToolStripMenuItem_Click); + // + // iOMapToolStripMenuItem + // + this.iOMapToolStripMenuItem.Name = "iOMapToolStripMenuItem"; + this.iOMapToolStripMenuItem.Size = new System.Drawing.Size(298, 36); + this.iOMapToolStripMenuItem.Text = "I/O 맵"; + this.iOMapToolStripMenuItem.Click += new System.EventHandler(this.iOMapToolStripMenuItem_Click); + // + // 공유폴더ToolStripMenuItem + // + this.공유폴더ToolStripMenuItem.Name = "공유폴더ToolStripMenuItem"; + this.공유폴더ToolStripMenuItem.Size = new System.Drawing.Size(298, 36); + this.공유폴더ToolStripMenuItem.Text = "공유 폴더"; + this.공유폴더ToolStripMenuItem.Click += new System.EventHandler(this.공유폴더ToolStripMenuItem_Click); + // + // scheduleToolStripMenuItem + // + this.scheduleToolStripMenuItem.ForeColor = System.Drawing.Color.Black; + this.scheduleToolStripMenuItem.Name = "scheduleToolStripMenuItem"; + this.scheduleToolStripMenuItem.Size = new System.Drawing.Size(298, 36); + this.scheduleToolStripMenuItem.Text = "스케쥴 관리"; + this.scheduleToolStripMenuItem.Click += new System.EventHandler(this.scheduleToolStripMenuItem_Click); + // + // toolStripMenuItem3 + // + this.toolStripMenuItem3.Name = "toolStripMenuItem3"; + this.toolStripMenuItem3.Size = new System.Drawing.Size(295, 6); + // + // 메일발송주소관리ToolStripMenuItem + // + this.메일발송주소관리ToolStripMenuItem.ForeColor = System.Drawing.Color.Gray; + this.메일발송주소관리ToolStripMenuItem.Name = "메일발송주소관리ToolStripMenuItem"; + this.메일발송주소관리ToolStripMenuItem.Size = new System.Drawing.Size(298, 36); + this.메일발송주소관리ToolStripMenuItem.Text = "메일발송 주소 관리"; + this.메일발송주소관리ToolStripMenuItem.Click += new System.EventHandler(this.메일발송주소관리ToolStripMenuItem_Click); + // + // makeRepeatToolStripMenuItem + // + this.makeRepeatToolStripMenuItem.Name = "makeRepeatToolStripMenuItem"; + this.makeRepeatToolStripMenuItem.Size = new System.Drawing.Size(298, 36); + this.makeRepeatToolStripMenuItem.Text = "복사"; + this.makeRepeatToolStripMenuItem.Click += new System.EventHandler(this.makeRepeatToolStripMenuItem_Click); + // + // 삭제ToolStripMenuItem + // + this.삭제ToolStripMenuItem.Name = "삭제ToolStripMenuItem"; + this.삭제ToolStripMenuItem.Size = new System.Drawing.Size(298, 36); + this.삭제ToolStripMenuItem.Text = "삭제"; + this.삭제ToolStripMenuItem.Click += new System.EventHandler(this.삭제ToolStripMenuItem_Click); + // + // 편집ToolStripMenuItem1 + // + this.편집ToolStripMenuItem1.Name = "편집ToolStripMenuItem1"; + this.편집ToolStripMenuItem1.Size = new System.Drawing.Size(298, 36); + this.편집ToolStripMenuItem1.Text = "편집"; + // + // toolStripMenuItem1 + // + this.toolStripMenuItem1.Name = "toolStripMenuItem1"; + this.toolStripMenuItem1.Size = new System.Drawing.Size(295, 6); + // + // 엑셀파일로저장ToolStripMenuItem + // + this.엑셀파일로저장ToolStripMenuItem.Name = "엑셀파일로저장ToolStripMenuItem"; + this.엑셀파일로저장ToolStripMenuItem.Size = new System.Drawing.Size(298, 36); + this.엑셀파일로저장ToolStripMenuItem.Text = "목록 내보내기"; + this.엑셀파일로저장ToolStripMenuItem.Click += new System.EventHandler(this.엑셀파일로저장ToolStripMenuItem_Click); + // + // ta + // + this.ta.ClearBeforeFill = true; + // + // tam + // + this.tam.BackupDataSetBeforeUpdate = false; + this.tam.EETGW_JobReport_AutoInputTableAdapter = null; + this.tam.EETGW_JobReport_EBoardTableAdapter = null; + this.tam.EETGW_NoteTableAdapter = null; + this.tam.EETGW_ProjecthistoryDTableAdapter = null; + this.tam.EETGW_ProjectsScheduleTableAdapter = null; + this.tam.EETGW_ProjectToDoTableAdapter = null; + this.tam.EETGW_SaveCostTableAdapter = null; + this.tam.JobReportTableAdapter = null; + this.tam.ProjectPartStatusTableAdapter = null; + this.tam.ProjectsHistoryTableAdapter = null; + this.tam.ProjectsIOMapTableAdapter = null; + this.tam.ProjectsMailListTableAdapter = null; + this.tam.ProjectsPartTableAdapter = null; + this.tam.ProjectsTableAdapter = this.ta; + this.tam.SPMasterTableAdapter = null; + this.tam.UpdateOrder = FPJ0000.dsPRJTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete; + // + // bsHist + // + this.bsHist.DataMember = "ProjectsHistory"; + this.bsHist.DataSource = this.dsMSSQL; + this.bsHist.Sort = "pdate desc"; + // + // taHist + // + this.taHist.ClearBeforeFill = true; + // + // panel1 + // + this.panel1.Controls.Add(this.btSearch); + this.panel1.Controls.Add(this.button1); + this.panel1.Dock = System.Windows.Forms.DockStyle.Top; + this.panel1.Location = new System.Drawing.Point(0, 0); + this.panel1.Name = "panel1"; + this.panel1.Padding = new System.Windows.Forms.Padding(5); + this.panel1.Size = new System.Drawing.Size(1339, 55); + this.panel1.TabIndex = 9; + // + // btSearch + // + this.btSearch.Dock = System.Windows.Forms.DockStyle.Right; + this.btSearch.Image = ((System.Drawing.Image)(resources.GetObject("btSearch.Image"))); + this.btSearch.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; + this.btSearch.Location = new System.Drawing.Point(1114, 5); + this.btSearch.Name = "btSearch"; + this.btSearch.Padding = new System.Windows.Forms.Padding(5, 0, 3, 0); + this.btSearch.Size = new System.Drawing.Size(122, 45); + this.btSearch.TabIndex = 9; + this.btSearch.Text = "새로고침(&R)"; + this.btSearch.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + this.btSearch.UseVisualStyleBackColor = true; + this.btSearch.Click += new System.EventHandler(this.button2_Click); + // + // button1 + // + this.button1.Dock = System.Windows.Forms.DockStyle.Right; + this.button1.Image = ((System.Drawing.Image)(resources.GetObject("button1.Image"))); + this.button1.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; + this.button1.Location = new System.Drawing.Point(1236, 5); + this.button1.Name = "button1"; + this.button1.Padding = new System.Windows.Forms.Padding(5, 0, 5, 0); + this.button1.Size = new System.Drawing.Size(98, 45); + this.button1.TabIndex = 0; + this.button1.Text = "닫기"; + this.button1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + this.button1.UseVisualStyleBackColor = true; + this.button1.Click += new System.EventHandler(this.button1_Click_1); + // + // cmsview1 + // + this.cmsview1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(90)))), ((int)(((byte)(90))))); + this.cmsview1.ContextMenuStrip = this.cm; + this.cmsview1.Dock = System.Windows.Forms.DockStyle.Fill; + this.cmsview1.Font = new System.Drawing.Font("맑은 고딕", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + this.cmsview1.ForeColor = System.Drawing.Color.Black; + this.cmsview1.GridCount = new System.Drawing.Point(5, 2); + this.cmsview1.isDebug = false; + this.cmsview1.ItemMargin = ((ushort)(3)); + this.cmsview1.Location = new System.Drawing.Point(0, 55); + this.cmsview1.Name = "cmsview1"; + this.cmsview1.Padding = new System.Windows.Forms.Padding(10); + this.cmsview1.Page = ((ushort)(1)); + this.cmsview1.Size = new System.Drawing.Size(1339, 602); + this.cmsview1.TabIndex = 10; + this.cmsview1.Text = "cmsview1"; + // + // btEdit + // + this.btEdit.Image = ((System.Drawing.Image)(resources.GetObject("btEdit.Image"))); + this.btEdit.Name = "btEdit"; + this.btEdit.Size = new System.Drawing.Size(65, 22); + this.btEdit.Text = "편집(&E)"; + this.btEdit.Click += new System.EventHandler(this.btEdit_Click); + // + // fProjectLayout + // + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; + this.ClientSize = new System.Drawing.Size(1339, 682); + this.Controls.Add(this.cmsview1); + this.Controls.Add(this.panel1); + this.Controls.Add(this.bn); + this.Name = "fProjectLayout"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; + this.Text = "Project Layout"; + this.Load += new System.EventHandler(this.@__Load); + ((System.ComponentModel.ISupportInitialize)(this.bn)).EndInit(); + this.bn.ResumeLayout(false); + this.bn.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.bs)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).EndInit(); + this.cm.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.bsHist)).EndInit(); + this.panel1.ResumeLayout(false); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private dsPRJ dsMSSQL; + private System.Windows.Forms.BindingSource bs; + private dsPRJTableAdapters.ProjectsTableAdapter ta; + private dsPRJTableAdapters.TableAdapterManager tam; + private System.Windows.Forms.BindingNavigator bn; + private System.Windows.Forms.ToolStripLabel bindingNavigatorCountItem; + private System.Windows.Forms.ToolStripButton bindingNavigatorMoveFirstItem; + private System.Windows.Forms.ToolStripButton bindingNavigatorMovePreviousItem; + private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator; + private System.Windows.Forms.ToolStripTextBox bindingNavigatorPositionItem; + private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator1; + private System.Windows.Forms.ToolStripButton bindingNavigatorMoveNextItem; + private System.Windows.Forms.ToolStripButton bindingNavigatorMoveLastItem; + private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator2; + private System.Windows.Forms.ContextMenuStrip cm; + private System.Windows.Forms.ToolStripMenuItem partListToolStripMenuItem; + private System.Windows.Forms.ToolStripSeparator toolStripSeparator1; + private System.Windows.Forms.ToolStripMenuItem columnSizeToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem autoToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem resetToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem saveToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem loadToolStripMenuItem; + private System.Windows.Forms.ToolStripSeparator toolStripMenuItem2; + private System.Windows.Forms.ToolStripMenuItem scheduleToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem makeRepeatToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem iOMapToolStripMenuItem; + private System.Windows.Forms.ToolStripSeparator toolStripMenuItem3; + private System.Windows.Forms.ToolStripMenuItem 엑셀파일로저장ToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem 메일발송주소관리ToolStripMenuItem; + private System.Windows.Forms.ToolStripSeparator toolStripMenuItem1; + private System.Windows.Forms.BindingSource bsHist; + private dsPRJTableAdapters.ProjectsHistoryTableAdapter taHist; + private System.Windows.Forms.ToolTip toolTip1; + private System.Windows.Forms.ToolStripMenuItem 편집ToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem 편집ToolStripMenuItem1; + private System.Windows.Forms.ToolStripMenuItem 삭제ToolStripMenuItem; + private System.Windows.Forms.ToolStripButton toolStripButton1; + private System.Windows.Forms.ToolStripButton toolStripButton3; + private System.Windows.Forms.ToolStripSeparator toolStripSeparator5; + private System.Windows.Forms.ToolStripMenuItem 공유폴더ToolStripMenuItem; + private System.Windows.Forms.ToolStripButton toolStripButton4; + private System.Windows.Forms.Panel panel1; + private System.Windows.Forms.Button button1; + private System.Windows.Forms.Button btSearch; + private CMSControl.cmsview cmsview1; + private System.Windows.Forms.ToolStripButton btEdit; + } +} \ No newline at end of file diff --git a/SubProject/FPJ0000/Project/fProjectLayout.cs b/SubProject/FPJ0000/Project/fProjectLayout.cs new file mode 100644 index 0000000..d7b39dc --- /dev/null +++ b/SubProject/FPJ0000/Project/fProjectLayout.cs @@ -0,0 +1,501 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Windows.Forms; +using util = FCOMMON.Util; + +namespace FPJ0000 +{ + public partial class fProjectLayout : FCOMMON.fBase + { + string fn_fpcolsize = ""; + public fProjectLayout() + { + InitializeComponent(); + fn_fpcolsize = util.MakeFilePath(util.CurrentPath, "formSetting", "fp_" + this.Name + ".ini"); + this.dsMSSQL.Projects.TableNewRow += Projects_TableNewRow; + this.FormClosed += __Closed; + + } + + void __Closed(object sender, FormClosedEventArgs e) + { + + } + + private void __Load(object sender, EventArgs e) + { + + + + } + + void refreshData() + { + + var db = new EEEntities(); + var list = db.EETGW_Project_Layout.Where(t => t.gcode == FCOMMON.info.Login.gcode).OrderBy(t => t.no).ToList(); + var maxrow = list.Max(t => t.row); + var maxcol = list.Max(t => t.col); + if (list.Any()) + { + this.cmsview1.GridCount = new Point(maxcol + 1, maxrow + 1); + foreach (var item in list) + { + var newitem = (new CMSControl.Slot() + { + BackColor = Color.Lime, + BorderColor = Color.Gray, + BorderSize = 2f, + Enable = true, + ForeColor = Color.Black, + Name = item.no.ToString(), + Index = (byte)item.no, + No = item.no.ToString(), + Selected = false + }); + + if (item.project != null) + { + var project = (int)item.project; + if (project > 0) + { + var drp = db.Projects.Where(t => t.idx == item.project && t.gcode == item.gcode).FirstOrDefault(); + if (drp != null) + { + newitem.Name = drp.name; + } + } + } + cmsview1.Slots.Add(newitem); + } + } + this.cmsview1.Refresh(); + } + + + + void funcSave(Boolean pmt) + { + this.Validate(); + this.bs.EndEdit(); + + if (pmt) + { + var dlg = FCOMMON.Util.MsgQ("변경 사항을 저장하시겠습니까?"); + if (dlg != System.Windows.Forms.DialogResult.Yes) return; + } + + try + { + this.tam.UpdateAll(this.dsMSSQL); + dsMSSQL.AcceptChanges(); + } + catch (Exception ex) + { + FCOMMON.Util.MsgE(ex.Message); + } + } + + private void projectsBindingNavigatorSaveItem_Click(object sender, EventArgs e) + { + funcSave(true); + + } + void Projects_TableNewRow(object sender, DataTableNewRowEventArgs e) + { + e.Row["gcode"] = FCOMMON.info.Login.gcode; + e.Row["wuid"] = FCOMMON.info.Login.no; + e.Row["wdate"] = DateTime.Now; + } + + private void refreshToolStripMenuItem_Click(object sender, EventArgs e) + { + refreshData(); + } + + void menu_partlist() + { + var drv = this.bs.Current as DataRowView; + if (drv == null) return; + var dr = drv.Row as dsPRJ.ProjectsRow; + var f = new fPartList(dr.idx); + f.StartPosition = FormStartPosition.CenterScreen; + f.Show(); + } + private void partListToolStripMenuItem_Click(object sender, EventArgs e) + { + menu_partlist(); + } + + + private void autoToolStripMenuItem_Click(object sender, EventArgs e) + { + + } + + private void resetToolStripMenuItem_Click(object sender, EventArgs e) + { + + } + + private void saveToolStripMenuItem_Click(object sender, EventArgs e) + { + + } + + private void loadToolStripMenuItem_Click(object sender, EventArgs e) + { + + } + + private void btSearch_Click(object sender, EventArgs e) + { + + } + + private void toolStripLabel3_Click(object sender, EventArgs e) + { + refreshData(); + } + + private void scheduleToolStripMenuItem_Click(object sender, EventArgs e) + { + var drv = this.bs.Current as DataRowView; + if (drv == null) return; + var dr = drv.Row as dsPRJ.ProjectsRow; + var f = new fProjectSchedule(dr.idx); + f.MdiParent = this.MdiParent; + f.Show(); + } + + private void makeRepeatToolStripMenuItem_Click(object sender, EventArgs e) + { + funcCopy(); + } + void funcCopy() + { + var drv = this.bs.Current as DataRowView; + if (drv == null) return; + var dr = drv.Row as dsPRJ.ProjectsRow; + var dlg = FCOMMON.Util.MsgQ("선택된 프로젝트를 복사하시겠습니까?\n\n생성된 자료는 [검토] 상태로 전환 됩니다."); + if (dlg == System.Windows.Forms.DialogResult.Yes) + { + var ta = new dsPRJTableAdapters.QueriesTableAdapter(); + int? newidx = -1; + var retval = ta.CopyProjectData(dr.idx, FCOMMON.info.Login.no, ref newidx); + refreshData(); + if (newidx != null) + { + var newdr = this.dsMSSQL.Projects.Where(t => t.idx == newidx).FirstOrDefault(); + newdr.userprocess = FCOMMON.info.Login.process; + var f = new fProjectData(newdr); + if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK) + { + int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.project)); + if (curLevel < 5) + { + funcSave(false); //자동저장 + } + } + } + } + } + + void menu_iomap() + { + var drv = this.bs.Current as DataRowView; + if (drv == null) return; + var dr = drv.Row as dsPRJ.ProjectsRow; + var f = new fProjectIOMap(dr.idx); + f.Show(); + } + + private void iOMapToolStripMenuItem_Click(object sender, EventArgs e) + { + menu_iomap(); + } + + + private void bindingNavigatorDeleteItem_Click(object sender, EventArgs e) + { + funcDelete(); + } + void funcDelete() + { + var dlg = FCOMMON.Util.MsgQ("현재 선택된 자료를 삭제하시겠습니까?"); + if (dlg == System.Windows.Forms.DialogResult.Yes) + { + bs.RemoveCurrent(); + + //일반사용자는 바로 저장되도록 함 + int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.project)); + if (curLevel < 5) + { + funcSave(false); //자동저장 + } + } + } + private void 엑셀파일로저장ToolStripMenuItem_Click(object sender, EventArgs e) + { + SaveFileDialog sd = new SaveFileDialog(); + sd.Filter = ("excel|*.xls"); + var dlg = sd.ShowDialog(); + if (dlg == System.Windows.Forms.DialogResult.OK) + { + + FCOMMON.Util.MsgI("파일생성 완료\n\n" + sd.FileName); + } + } + + private void 메일발송주소관리ToolStripMenuItem_Click(object sender, EventArgs e) + { + var drv = this.bs.Current as DataRowView; + if (drv == null) return; + var dr = drv.Row as dsPRJ.ProjectsRow; + var f = new fMailList(dr.idx); + f.ShowDialog(); + } + + private void bs_CurrentChanged(object sender, EventArgs e) + { + + } + + private void button1_Click(object sender, EventArgs e) + { + var drv = this.bs.Current as DataRowView; + if (drv == null) return; + var dr = drv.Row as dsPRJ.ProjectsRow; + var f = new fProejctHistory(dr.idx); + f.StartPosition = FormStartPosition.CenterScreen; + var dlg = f.ShowDialog(); + bs_CurrentChanged(sender, e); + } + + private void bindingNavigatorAddNewItem_Click(object sender, EventArgs e) + { + var newdr = this.dsMSSQL.Projects.NewProjectsRow(); + newdr.wuid = FCOMMON.info.Login.no; + newdr.wdate = DateTime.Now; + newdr.pdate = DateTime.Now.ToString("yyyy-MM-dd"); + newdr.sdate = DateTime.Now.ToString("yyyy-MM-dd"); + newdr.userManager = FCOMMON.info.Login.nameK; + newdr.progress = 0; + newdr.userprocess = FCOMMON.info.Login.process; + newdr.costn = 0; + newdr.costo = 0; + newdr.cnt = 1; + newdr.name = "Project Title"; + var f = new fProjectData(newdr); + f.StartPosition = FormStartPosition.CenterScreen; + var dlg = f.ShowDialog(); + if (dlg == System.Windows.Forms.DialogResult.OK) + { + this.dsMSSQL.Projects.AddProjectsRow(newdr); + try + { + + ta.Update(newdr); + } + catch (Exception ex) + { + FCOMMON.Util.MsgE("Save Error\n" + ex.Message); + } + + } + else newdr.Delete(); + } + + private void btEdit_Click(object sender, EventArgs e) + { + funcEdit(); + } + void funcEdit() + { + var drv = this.bs.Current as DataRowView; + if (drv == null) return; + var dr = drv.Row as dsPRJ.ProjectsRow; + var f = new fProjectData(dr); + if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK) + { + int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.project)); + if (curLevel < 5) + { + funcSave(false); //자동저장 + } + } + } + + private void 편집ToolStripMenuItem_Click(object sender, EventArgs e) + { + funcEdit(); + } + + private void tbRequest_KeyDown(object sender, KeyEventArgs e) + { + if (e.KeyCode == Keys.Enter) + btSearch.PerformClick(); + } + + private void toolStripComboBox1_SelectedIndexChanged(object sender, EventArgs e) + { + // --- + //Origin Cost + //Input Cost + //Effect Cost + //Asset No + //Project + //Champion + //Requestor + //Process + //switch (cmbSort.SelectedIndex) + //{ + // case 1: + // if (this.bs.Sort == "costo") this.bs.Sort = "costo desc"; + // else this.bs.Sort = "costo"; + // break; + // case 2: + // if (this.bs.Sort == "costn") this.bs.Sort = "costn desc"; + // else this.bs.Sort = "costn"; + // break; + // case 3: + // if (this.bs.Sort == "coste") this.bs.Sort = "coste desc"; + // else this.bs.Sort = "coste"; + // break; + // case 4: + // if (this.bs.Sort == "asset") this.bs.Sort = "asset desc"; + // else this.bs.Sort = "asset"; + // break; + // case 5: + // if (this.bs.Sort == "[namme]") this.bs.Sort = "[namme] desc"; + // else this.bs.Sort = "[namme]"; + // break; + // case 6: + // if (this.bs.Sort == "userManager") this.bs.Sort = "userManager desc"; + // else this.bs.Sort = "userManager"; + // break; + // case 7: + // if (this.bs.Sort == "reqstaff") this.bs.Sort = "reqstaff desc"; + // else this.bs.Sort = "reqstaff"; + // break; + // case 8: + // if (this.bs.Sort == "process") this.bs.Sort = "process desc"; + // else this.bs.Sort = "process"; + // break; + // default: + // this.bs.Sort = ""; + // break; + //} + } + + private void btCopy_Click(object sender, EventArgs e) + { + funcCopy(); + } + + private void toolStripButton2_Click(object sender, EventArgs e) + { + + } + + private void toolStripButton1_Click(object sender, EventArgs e) + { + menu_partlist(); + } + + private void toolStripButton3_Click(object sender, EventArgs e) + { + menu_iomap(); + } + + private void 삭제ToolStripMenuItem_Click(object sender, EventArgs e) + { + funcDelete(); + } + + private void 공유폴더ToolStripMenuItem_Click(object sender, EventArgs e) + { + showfolder(); + } + void showfolder() + { + var drv = this.bs.Current as DataRowView; + if (drv == null) return; + var dr = drv.Row as dsPRJ.ProjectsRow; + + var tbPath = dr.path; + + if (tbPath == "") tbPath = "/" + dr.idx.ToString(); + + if (tbPath.StartsWith("\\") == false) + { + if (tbPath.StartsWith("/")) tbPath = tbPath.Replace("/", "\\"); + else tbPath = "\\" + tbPath; + } + //\\10.131.32.29\Data + var serverpath = Properties.Settings.Default.SharePath + @"\Project"; + if (System.IO.Directory.Exists(serverpath) == false) + { + FCOMMON.Util.MsgE("프로젝트 기본경로가 존재하지 않아 진행할 수 없습니다\n\n" + + serverpath); + return; + } + + var path = serverpath + tbPath; + if (System.IO.Directory.Exists(path) == false) + { + try + { + System.IO.Directory.CreateDirectory(path); + + string[] subdir = new string[] { "Source", "Document", "Draw", "Estimate" }; + foreach (var dir in subdir) + System.IO.Directory.CreateDirectory(path + "\\" + dir); + + } + catch (Exception eX) + { + FCOMMON.Util.MsgE("프로젝트 저장소 생성실패\n" + eX.Message); + return; + } + } + + FCOMMON.Util.RunExplorer(path); + } + + private void toolStripButton4_Click(object sender, EventArgs e) + { + showfolder(); + } + + private void button1_Click_1(object sender, EventArgs e) + { + this.Close(); + } + + private void button2_Click(object sender, EventArgs e) + { + refreshData(); + } + + private void richTextBox2_TextChanged(object sender, EventArgs e) + { + + } + + private void cmbDateType_Click(object sender, EventArgs e) + { + + } + + private void cmbYearE_Click(object sender, EventArgs e) + { + + } + } +} \ No newline at end of file diff --git a/SubProject/FPJ0000/Project/fProjectLayout.resx b/SubProject/FPJ0000/Project/fProjectLayout.resx new file mode 100644 index 0000000..6efebd6 --- /dev/null +++ b/SubProject/FPJ0000/Project/fProjectLayout.resx @@ -0,0 +1,333 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + 321, 17 + + + 122, 17 + + + 17, 17 + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO + wwAADsMBx2+oZAAAASpJREFUOE9jGDygcNbz/00Lnv/PnPj4P1QIA4S3P8Apx5A789n/VUfe/8elKL77 + wf/ghmu4DciY8vT/wn0fsCqK73n4f+n+///9qy/gNiCh58n/aVveYyiKaL8P1pw56/9/r9ITuA2I7Hr0 + v3f1BxRFoa33wJpb1wFt7/z73yX/AG4DApsf/q+b/w6uKLjl7v9Fe///7wBqzpjz879d3c//9hnbcRvg + UXX/f/60NyiK7Ipv/0+f8/u/f9e3/zqF7/5bJKzHbYB96d3/2ZNfYyjSTzn/36ToxX+VrE//jSOX4TbA + Iu/O/9T+11gVGSSd+C+b9vW/bvA83AYYZt3+H9byEqci/dTL/zV8p+E2QCftxn+/6od4Fal4TMBtgFPu + lf8gBXgVDULAwAAA8HbAq6XlmnAAAAAASUVORK5CYII= + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO + wwAADsMBx2+oZAAAALZJREFUOE9jGDogvP3BfyiTdBDf/eB/cMM18gyI73n4f+n+///9qy+QbkBE+32w + 5sxZ//97lZ4gzYDQ1ntgza3rgLZ3/v3vkn+AeAOCW+7+X7T3//8OoOaMOT//29X9/G+fsZ00F9gV3/6f + Puf3f/+ub/91Ct/9t0hYT3oY6Kec/29S9OK/Stan/8aRy0g3AAQMkk78l037+l83eB55BoCAfurl/xq+ + 08g3AARUPCZQZsBgBQwMANAUYJgEulBVAAAAAElFTkSuQmCC + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO + wwAADsMBx2+oZAAAAKNJREFUOE9jGHygcNbz/1AmeSB35rP/Cd33yDckY8rT//P2//6f0HWHPEMSep78 + n73v1//OrX//u5VeJt2QyK5H/6ds+/W/ZOnf/wnT//63yT1LmiGBzQ//t659D9ZsXPLlv3T0tf/GkcuI + N8Sj6v7/krnv4JoVXXpIc4F96d3/gS3PyNMMAhZ5d/7bFFwhTzMIGGbdJl8zCOik3SBf81AEDAwAoH5f + oAc0QjgAAAAASUVORK5CYII= + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO + wwAADsMBx2+oZAAAASxJREFUOE9jGFygcNbz/1AmBgDJNS14/j9z4mOcahhyZz77n9B9D6sCkNyqI+// + h7c/wG1AxpSn/+ft//0/oesOhiKQ3MJ9H/4HN1zDbUBCz5P/s/f9+t+59e9/t9LLKApBctO2vP/vX30B + twGRXY/+T9n263/J0r//E6b//W+TexauGCTXu/rDf6/SE7gNCGx++L917XuwZuOSL/+lo6/9N45cBtYA + kqub/+6/S/4B3AZ4VN3/XzL3HVyzoksPXDFILn/am//2GdtxG2Bfevd/YMszDM0gAJLLnvz6v0XCetwG + WOTd+W9TcAVDMwiA5FL7X8O9hBUYZt3GqhkEQHJhLS//6wbPw22ATtoNnJIgOb/qh/81fKfhNgAfcMq9 + 8l/FYwIYQ4UGBWBgAAC+0b+z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eamgzZ + wsvgp8ZGY0HXXwq5Y+CXhOgaJPv7pYvA3MwMz05MSOfA7OSkaSObA3HedNXWheQx5jTtcbSubl+2AMzN + znJeKPBCMmkKFM/jW2Fnx7SBbfG8RWgsqOojIUvXR9ffozjIjMHs+DjPx+McKOzu8uzU1MkcjfENgM0h + 2drX2rnW0nJESfZOyFI2e73L5cJsUiJeiSiIKxqprY0KWRJ2u7dR+mTGp2gXT6dNAk5EwdTgIKebsyVk + KdSMZTMjI1LjM4Q4nbUFnLsTURAa0BKylQlnp6d5IZUSsiRMY/uZl+MZYQr1lpNQ20XziYRJoDjhSjFF + GqT1Q8gqCr2xyzvnJNcp0e3t4/Ai7DQGTHGyka21eCa58MB/bW4+khmDUlFr3i6OsJcR/+b3H9LVfSNk + qYBQ54BHXGYMXlYBod1mqDTfF7K2klnmKbySkgnMa9rzpfp64+DDB+nCagifiz5fhsrlMyF3AutZXK+i + 6yjFjfb20s8iQJ3CLaql6XhPj9TBRRjv7uZ0jL8+MnZTyMhxLa2PBbPZY2xvIxAoecXOIzV7eIn2HDd7 + Fq6lvbWAZLAaetxBKjK5RG+vWfp+j46axIuDnPji9+dgQ1emuoa+GLa/MIt4RoMu1x8Q46jXG73UvzBX + B0X5B56Fg+LhPgWxAAAAAElFTkSuQmCC + + + \ No newline at end of file diff --git a/SubProject/FPJ0000/Project/fProjectList.Designer.cs b/SubProject/FPJ0000/Project/fProjectList.Designer.cs index bd7d89c..30af276 100644 --- a/SubProject/FPJ0000/Project/fProjectList.Designer.cs +++ b/SubProject/FPJ0000/Project/fProjectList.Designer.cs @@ -30,25 +30,25 @@ { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fProjectList)); - FarPoint.Win.Spread.CellType.NumberCellType numberCellType7 = new FarPoint.Win.Spread.CellType.NumberCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType14 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType15 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.NumberCellType numberCellType8 = new FarPoint.Win.Spread.CellType.NumberCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType16 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType17 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType18 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType19 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType20 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType21 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType22 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType23 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType24 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.NumberCellType numberCellType9 = new FarPoint.Win.Spread.CellType.NumberCellType(); - FarPoint.Win.Spread.CellType.NumberCellType numberCellType10 = new FarPoint.Win.Spread.CellType.NumberCellType(); - FarPoint.Win.Spread.CellType.NumberCellType numberCellType11 = new FarPoint.Win.Spread.CellType.NumberCellType(); - FarPoint.Win.Spread.CellType.NumberCellType numberCellType12 = new FarPoint.Win.Spread.CellType.NumberCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType25 = new FarPoint.Win.Spread.CellType.TextCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType26 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType1 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType1 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType2 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType2 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType3 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType4 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType5 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType6 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType7 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType8 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType9 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType10 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType11 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType3 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType4 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType5 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType6 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType12 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType13 = new FarPoint.Win.Spread.CellType.TextCellType(); this.bn = new System.Windows.Forms.BindingNavigator(this.components); this.bs = new System.Windows.Forms.BindingSource(this.components); this.dsMSSQL = new FPJ0000.dsPRJ(); @@ -660,11 +660,11 @@ this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 17).Value = "CR/CF#"; this.fpSpread1_Sheet1.ColumnHeader.Rows.Get(0).Height = 46F; this.fpSpread1_Sheet1.Columns.Get(0).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); - numberCellType7.DecimalPlaces = 0; - numberCellType7.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; - numberCellType7.MaximumValue = 2147483647D; - numberCellType7.MinimumValue = -2147483648D; - this.fpSpread1_Sheet1.Columns.Get(0).CellType = numberCellType7; + numberCellType1.DecimalPlaces = 0; + numberCellType1.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; + numberCellType1.MaximumValue = 2147483647D; + numberCellType1.MinimumValue = -2147483648D; + this.fpSpread1_Sheet1.Columns.Get(0).CellType = numberCellType1; this.fpSpread1_Sheet1.Columns.Get(0).DataField = "idx"; this.fpSpread1_Sheet1.Columns.Get(0).ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.fpSpread1_Sheet1.Columns.Get(0).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; @@ -672,120 +672,120 @@ this.fpSpread1_Sheet1.Columns.Get(0).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(0).Width = 63F; this.fpSpread1_Sheet1.Columns.Get(1).AllowAutoFilter = true; - this.fpSpread1_Sheet1.Columns.Get(1).CellType = textCellType14; + this.fpSpread1_Sheet1.Columns.Get(1).CellType = textCellType1; this.fpSpread1_Sheet1.Columns.Get(1).DataField = "status"; this.fpSpread1_Sheet1.Columns.Get(1).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(1).Tag = "state"; this.fpSpread1_Sheet1.Columns.Get(1).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(1).Width = 63F; - this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType15; + this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType2; this.fpSpread1_Sheet1.Columns.Get(2).DataField = "edate"; this.fpSpread1_Sheet1.Columns.Get(2).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(2).Label = "(ww)"; this.fpSpread1_Sheet1.Columns.Get(2).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(2).Width = 63F; - numberCellType8.DecimalPlaces = 0; - numberCellType8.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; - numberCellType8.MaximumValue = 2147483647D; - numberCellType8.MinimumValue = -2147483648D; - this.fpSpread1_Sheet1.Columns.Get(3).CellType = numberCellType8; + numberCellType2.DecimalPlaces = 0; + numberCellType2.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; + numberCellType2.MaximumValue = 2147483647D; + numberCellType2.MinimumValue = -2147483648D; + this.fpSpread1_Sheet1.Columns.Get(3).CellType = numberCellType2; this.fpSpread1_Sheet1.Columns.Get(3).DataField = "ProgressPrj"; this.fpSpread1_Sheet1.Columns.Get(3).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(3).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(3).Width = 63F; - this.fpSpread1_Sheet1.Columns.Get(4).CellType = textCellType16; + this.fpSpread1_Sheet1.Columns.Get(4).CellType = textCellType3; this.fpSpread1_Sheet1.Columns.Get(4).DataField = "part"; this.fpSpread1_Sheet1.Columns.Get(4).Width = 63F; this.fpSpread1_Sheet1.Columns.Get(5).AllowAutoFilter = true; - this.fpSpread1_Sheet1.Columns.Get(5).CellType = textCellType17; + this.fpSpread1_Sheet1.Columns.Get(5).CellType = textCellType4; this.fpSpread1_Sheet1.Columns.Get(5).DataField = "process"; this.fpSpread1_Sheet1.Columns.Get(5).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; this.fpSpread1_Sheet1.Columns.Get(5).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(5).Width = 63F; this.fpSpread1_Sheet1.Columns.Get(6).AllowAutoFilter = true; - this.fpSpread1_Sheet1.Columns.Get(6).CellType = textCellType18; + this.fpSpread1_Sheet1.Columns.Get(6).CellType = textCellType5; this.fpSpread1_Sheet1.Columns.Get(6).DataField = "reqstaff"; this.fpSpread1_Sheet1.Columns.Get(6).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(6).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(6).Width = 63F; this.fpSpread1_Sheet1.Columns.Get(7).AllowAutoFilter = true; - this.fpSpread1_Sheet1.Columns.Get(7).CellType = textCellType19; + this.fpSpread1_Sheet1.Columns.Get(7).CellType = textCellType6; this.fpSpread1_Sheet1.Columns.Get(7).DataField = "userManager"; this.fpSpread1_Sheet1.Columns.Get(7).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(7).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(7).Width = 63F; this.fpSpread1_Sheet1.Columns.Get(8).AllowAutoFilter = true; - this.fpSpread1_Sheet1.Columns.Get(8).CellType = textCellType20; + this.fpSpread1_Sheet1.Columns.Get(8).CellType = textCellType7; this.fpSpread1_Sheet1.Columns.Get(8).DataField = "usermain"; this.fpSpread1_Sheet1.Columns.Get(8).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(8).Label = "H/W"; this.fpSpread1_Sheet1.Columns.Get(8).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(8).Width = 63F; this.fpSpread1_Sheet1.Columns.Get(9).AllowAutoFilter = true; - this.fpSpread1_Sheet1.Columns.Get(9).CellType = textCellType21; + this.fpSpread1_Sheet1.Columns.Get(9).CellType = textCellType8; this.fpSpread1_Sheet1.Columns.Get(9).DataField = "userhw2"; this.fpSpread1_Sheet1.Columns.Get(9).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(9).Label = "전장"; this.fpSpread1_Sheet1.Columns.Get(9).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(9).Width = 63F; this.fpSpread1_Sheet1.Columns.Get(10).AllowAutoFilter = true; - this.fpSpread1_Sheet1.Columns.Get(10).CellType = textCellType22; + this.fpSpread1_Sheet1.Columns.Get(10).CellType = textCellType9; this.fpSpread1_Sheet1.Columns.Get(10).DataField = "usersub"; this.fpSpread1_Sheet1.Columns.Get(10).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(10).Label = "S/W"; this.fpSpread1_Sheet1.Columns.Get(10).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(10).Width = 63F; - this.fpSpread1_Sheet1.Columns.Get(11).CellType = textCellType23; + this.fpSpread1_Sheet1.Columns.Get(11).CellType = textCellType10; this.fpSpread1_Sheet1.Columns.Get(11).DataField = "asset"; this.fpSpread1_Sheet1.Columns.Get(11).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(11).Label = "Asset No."; this.fpSpread1_Sheet1.Columns.Get(11).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(11).Width = 63F; this.fpSpread1_Sheet1.Columns.Get(12).AllowAutoFilter = true; - this.fpSpread1_Sheet1.Columns.Get(12).CellType = textCellType24; + this.fpSpread1_Sheet1.Columns.Get(12).CellType = textCellType11; this.fpSpread1_Sheet1.Columns.Get(12).DataField = "name"; this.fpSpread1_Sheet1.Columns.Get(12).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; this.fpSpread1_Sheet1.Columns.Get(12).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(12).Width = 63F; - numberCellType9.DecimalPlaces = 0; - numberCellType9.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; - numberCellType9.MaximumValue = 2147483647D; - numberCellType9.MinimumValue = -2147483648D; - this.fpSpread1_Sheet1.Columns.Get(13).CellType = numberCellType9; + numberCellType3.DecimalPlaces = 0; + numberCellType3.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; + numberCellType3.MaximumValue = 2147483647D; + numberCellType3.MinimumValue = -2147483648D; + this.fpSpread1_Sheet1.Columns.Get(13).CellType = numberCellType3; this.fpSpread1_Sheet1.Columns.Get(13).DataField = "cnt"; this.fpSpread1_Sheet1.Columns.Get(13).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(13).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(13).Width = 63F; - numberCellType10.MaximumValue = 999999999999999D; - numberCellType10.MinimumValue = -999999999999999D; - this.fpSpread1_Sheet1.Columns.Get(14).CellType = numberCellType10; + numberCellType4.MaximumValue = 999999999999999D; + numberCellType4.MinimumValue = -999999999999999D; + this.fpSpread1_Sheet1.Columns.Get(14).CellType = numberCellType4; this.fpSpread1_Sheet1.Columns.Get(14).DataField = "costo"; this.fpSpread1_Sheet1.Columns.Get(14).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(14).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(14).Width = 63F; - numberCellType11.MaximumValue = 999999999999999D; - numberCellType11.MinimumValue = -999999999999999D; - this.fpSpread1_Sheet1.Columns.Get(15).CellType = numberCellType11; + numberCellType5.MaximumValue = 999999999999999D; + numberCellType5.MinimumValue = -999999999999999D; + this.fpSpread1_Sheet1.Columns.Get(15).CellType = numberCellType5; this.fpSpread1_Sheet1.Columns.Get(15).DataField = "costn"; this.fpSpread1_Sheet1.Columns.Get(15).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(15).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(15).Width = 63F; this.fpSpread1_Sheet1.Columns.Get(16).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); - numberCellType12.MaximumValue = 999999999999999D; - numberCellType12.MinimumValue = -999999999999999D; - this.fpSpread1_Sheet1.Columns.Get(16).CellType = numberCellType12; + numberCellType6.MaximumValue = 999999999999999D; + numberCellType6.MinimumValue = -999999999999999D; + this.fpSpread1_Sheet1.Columns.Get(16).CellType = numberCellType6; this.fpSpread1_Sheet1.Columns.Get(16).DataField = "coste"; this.fpSpread1_Sheet1.Columns.Get(16).ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.fpSpread1_Sheet1.Columns.Get(16).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(16).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(16).Width = 63F; - this.fpSpread1_Sheet1.Columns.Get(17).CellType = textCellType25; + this.fpSpread1_Sheet1.Columns.Get(17).CellType = textCellType12; this.fpSpread1_Sheet1.Columns.Get(17).DataField = "orderno"; this.fpSpread1_Sheet1.Columns.Get(17).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(17).Label = "CR/CF#"; this.fpSpread1_Sheet1.Columns.Get(17).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(17).Width = 63F; - this.fpSpread1_Sheet1.Columns.Get(18).CellType = textCellType26; + this.fpSpread1_Sheet1.Columns.Get(18).CellType = textCellType13; this.fpSpread1_Sheet1.Columns.Get(18).DataField = "memo"; this.fpSpread1_Sheet1.Columns.Get(18).Width = 63F; this.fpSpread1_Sheet1.DataAutoSizeColumns = false; diff --git a/SubProject/FPJ0000/Project/fProjectList.resx b/SubProject/FPJ0000/Project/fProjectList.resx index 9cc184e..0a94e6e 100644 --- a/SubProject/FPJ0000/Project/fProjectList.resx +++ b/SubProject/FPJ0000/Project/fProjectList.resx @@ -230,39 +230,36 @@ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIwSURBVDhPpZL/TxJxHMbvP2prU1c613CLylIJXKQt2mzT - 1ZqrqWtYHBhDc8xaNUsJ3WVSOiKiscoCUhxqGmrk+qoV9gWOQCCCsnVPd8dNOfKnem3Pbrv38zx777M3 - 8d8YHR/RcTsIvfU9tEOLOD34Fmrq9RNhLGJgLKbpH11Z7n8chdkdQe+jCIhU5hfy1WRwMUJGBOWJfc/3 - Emd9bdB7NdCOqnHK3cL/bDQ9h5AR0ef5ys8HF66CClyBee4SCOTBGY5cnt+wwOSK8PNcCIs3jFxxhsMX - /aKCWotMUU3tQWWPFMpemchP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, 17 - 387, 17 @@ -320,18 +317,12 @@ 561, 17 - - 561, 17 - 731, 17 647, 17 - - 731, 17 - 169, 56 diff --git a/SubProject/FPJ0000/Projects.cs b/SubProject/FPJ0000/Projects.cs new file mode 100644 index 0000000..242a6a1 --- /dev/null +++ b/SubProject/FPJ0000/Projects.cs @@ -0,0 +1,69 @@ +//------------------------------------------------------------------------------ +// +// 이 코드는 템플릿에서 생성되었습니다. +// +// 이 파일을 수동으로 변경하면 응용 프로그램에서 예기치 않은 동작이 발생할 수 있습니다. +// 이 파일을 수동으로 변경하면 코드가 다시 생성될 때 변경 내용을 덮어씁니다. +// +//------------------------------------------------------------------------------ + +namespace FPJ0000 +{ + using System; + using System.Collections.Generic; + + public partial class Projects + { + public int idx { get; set; } + public Nullable pidx { get; set; } + public string gcode { get; set; } + public Nullable isdel { get; set; } + public string category { get; set; } + public string status { get; set; } + public string asset { get; set; } + public Nullable level { get; set; } + public Nullable rev { get; set; } + public string process { get; set; } + public string part { get; set; } + public string pdate { get; set; } + public string name { get; set; } + public string userManager { get; set; } + public string usermain { get; set; } + public string usersub { get; set; } + public string userhw2 { get; set; } + public string reqstaff { get; set; } + public Nullable costo { get; set; } + public Nullable costn { get; set; } + public Nullable cnt { get; set; } + public string remark_req { get; set; } + public string remark_ans { get; set; } + public string sdate { get; set; } + public string ddate { get; set; } + public string edate { get; set; } + public string odate { get; set; } + public Nullable progress { get; set; } + public string memo { get; set; } + public string wuid { get; set; } + public System.DateTime wdate { get; set; } + public string orderno { get; set; } + public string crdue { get; set; } + public Nullable import { get; set; } + public string path { get; set; } + public string userprocess { get; set; } + public string CMP_Background { get; set; } + public string CMP_Description { get; set; } + public string CMP_Before { get; set; } + public string CMP_After { get; set; } + public Nullable bCost { get; set; } + public Nullable bFanOut { get; set; } + public string div { get; set; } + public string EB_Site { get; set; } + public string EB_Line { get; set; } + public string EB_Team { get; set; } + public string EB_Model { get; set; } + public string EB_OutSourceName { get; set; } + public Nullable EB_RepairTime { get; set; } + public Nullable EB_ConstNew { get; set; } + public string EB_BoardName { get; set; } + } +} diff --git a/SubProject/FPJ0000/Properties/Settings.Designer.cs b/SubProject/FPJ0000/Properties/Settings.Designer.cs index 2acf5c7..77a37d7 100644 --- a/SubProject/FPJ0000/Properties/Settings.Designer.cs +++ b/SubProject/FPJ0000/Properties/Settings.Designer.cs @@ -68,5 +68,16 @@ namespace FPJ0000.Properties { this["SharePath"] = value; } } + + [global::System.Configuration.ApplicationScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)] + [global::System.Configuration.DefaultSettingValueAttribute("Data Source=10.131.15.18;Initial Catalog=EE;Persist Security Info=True;User ID=ee" + + "user;Password=Amkor123!")] + public string EEEntitiesLayout { + get { + return ((string)(this["EEEntitiesLayout"])); + } + } } } diff --git a/SubProject/FPJ0000/Properties/Settings.settings b/SubProject/FPJ0000/Properties/Settings.settings index 22a33af..146e661 100644 --- a/SubProject/FPJ0000/Properties/Settings.settings +++ b/SubProject/FPJ0000/Properties/Settings.settings @@ -24,5 +24,12 @@ \\10.131.32.33\Data + + <?xml version="1.0" encoding="utf-16"?> +<SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> + <ConnectionString>Data Source=10.131.15.18;Initial Catalog=EE;Persist Security Info=True;User ID=eeuser;Password=Amkor123!</ConnectionString> +</SerializableConnectionString> + Data Source=10.131.15.18;Initial Catalog=EE;Persist Security Info=True;User ID=eeuser;Password=Amkor123! + \ No newline at end of file diff --git a/SubProject/FPJ0000/app.config b/SubProject/FPJ0000/app.config index 876691f..51a128f 100644 --- a/SubProject/FPJ0000/app.config +++ b/SubProject/FPJ0000/app.config @@ -8,10 +8,17 @@ - - - - + + + + + +