diff --git a/AlertPopup.Designer.cs b/AlertPopup.Designer.cs new file mode 100644 index 0000000..cf491c1 --- /dev/null +++ b/AlertPopup.Designer.cs @@ -0,0 +1,101 @@ +namespace friction +{ + partial class AlertPopup + { + /// + /// 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() + { + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AlertPopup)); + this.tbAlert = new System.Windows.Forms.RichTextBox(); + this.chAgree = new System.Windows.Forms.CheckBox(); + this.btnOK = new System.Windows.Forms.Button(); + this.btnCancel = new System.Windows.Forms.Button(); + this.SuspendLayout(); + // + // tbAlert + // + this.tbAlert.Location = new System.Drawing.Point(12, 12); + this.tbAlert.Name = "tbAlert"; + this.tbAlert.Size = new System.Drawing.Size(614, 464); + this.tbAlert.TabIndex = 0; + this.tbAlert.Text = resources.GetString("tbAlert.Text"); + // + // chAgree + // + this.chAgree.AutoSize = true; + this.chAgree.Location = new System.Drawing.Point(12, 482); + this.chAgree.Name = "chAgree"; + this.chAgree.Size = new System.Drawing.Size(543, 16); + this.chAgree.TabIndex = 1; + this.chAgree.Text = "상기 정보 보호 관련 경고 사항을 확인하며, 이를 위반 시 민∙형사상 책임을 감수함을 서약합니다 "; + this.chAgree.UseVisualStyleBackColor = true; + this.chAgree.CheckedChanged += new System.EventHandler(this.chAgree_CheckedChanged); + // + // btnOK + // + this.btnOK.Enabled = false; + this.btnOK.Location = new System.Drawing.Point(442, 515); + this.btnOK.Name = "btnOK"; + this.btnOK.Size = new System.Drawing.Size(75, 23); + this.btnOK.TabIndex = 2; + this.btnOK.Text = "확인"; + this.btnOK.UseVisualStyleBackColor = true; + this.btnOK.Click += new System.EventHandler(this.btnOK_Click); + // + // btnCancel + // + this.btnCancel.Location = new System.Drawing.Point(523, 515); + this.btnCancel.Name = "btnCancel"; + this.btnCancel.Size = new System.Drawing.Size(75, 23); + this.btnCancel.TabIndex = 3; + this.btnCancel.Text = "취소"; + this.btnCancel.UseVisualStyleBackColor = true; + this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); + // + // AlertPopup + // + this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(638, 549); + this.Controls.Add(this.btnCancel); + this.Controls.Add(this.btnOK); + this.Controls.Add(this.chAgree); + this.Controls.Add(this.tbAlert); + this.Name = "AlertPopup"; + this.Text = "보안 경고"; + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.RichTextBox tbAlert; + private System.Windows.Forms.CheckBox chAgree; + private System.Windows.Forms.Button btnOK; + private System.Windows.Forms.Button btnCancel; + } +} \ No newline at end of file diff --git a/AlertPopup.cs b/AlertPopup.cs new file mode 100644 index 0000000..d8722b6 --- /dev/null +++ b/AlertPopup.cs @@ -0,0 +1,44 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace friction +{ + public partial class AlertPopup : Form + { + public AlertPopup() + { + this.DialogResult = DialogResult.Abort; + + InitializeComponent(); + + Theme.Apply(this); + Theme.Apply(tbAlert); + Theme.Apply(chAgree); + Theme.Apply(btnOK); + Theme.Apply(btnCancel); + } + + private void chAgree_CheckedChanged(object sender, EventArgs e) + { + btnOK.Enabled = (chAgree.Checked == true); + } + + private void btnOK_Click(object sender, EventArgs e) + { + if(chAgree.Checked == true) + this.DialogResult = DialogResult.OK; + } + + private void btnCancel_Click(object sender, EventArgs e) + { + this.DialogResult = DialogResult.Abort; + } + } +} diff --git a/AlertPopup.resx b/AlertPopup.resx new file mode 100644 index 0000000..2608bcf --- /dev/null +++ b/AlertPopup.resx @@ -0,0 +1,162 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + 회사 정보 보호 서약 + +제 1 조 【회사정보의 의의】 + +본인은 본 서약서에서 “회사정보”란 본인이 업무수행 중 또는 수행과 관계없이 지득한 회사의 영업비밀(공공연히 알려져 있지 아니하고 독립된 경제적 가치를 가지는 것으로서, 상당한 노력에 의하여 비밀로 유지된 생산방법, 판매방법, 그 밖에 영업활동에 유용한 회사의 기술상 또는 경영상의 정보)과 노하우 등을 포함하여 제2조에서 정한 사항과 관련된 일체의 정보를 뜻한다는 점을 이해하고 인지합니다. + +제 2 조 【회사정보의 범위】 + +① 인사, 조직, 재무, 마케팅, 전산부문의 각종 현황 등 회사의 경영에 관한 사항 +② 제품의 설계방법, 설계도면, 제조공정, 제조장치 기타 제품 제조나 생산•수리와 관련된 기술에 관한 비밀사항 +③ 제품의 연구개발(R&D) 계획, 작업보고서 및 일지, 실험데이터, 연구성과 분석자료, 신차 관련 정보 등 연구개발에 관한 사항 +④ 사업계획, 생산계획, 예산 등 회사의 계획에 관한 사항 +⑤ 회사의 임직원, 고객, 회원, 타사 직원 등의 개인정보에 관한 사항 +⑥ 기타 업무수행 중 또는 업무수행과 관계없이 지득하게 된 회사경영과 관련된 제반사항 + +제 3 조 [회사 보안관리규정의 준수] + +본인은 회사의 회사정보 보호를 위한 지시 및 회사의 제반 보안관리규정을 준수하겠습니다. + +제 4 조 [부정사용 / 누설 /공개 금지] + +본인은 회사의 사전 서면 동의 없이 회사정보가 공지의 사실이 될 때까지 회사정보를 업무수행 목적 이외의 목적으로 사용하거나, 제3자에게 누설•공개하지 않겠습니다. + +제 5 조 [무단복제금지 등] + +① 본인은 업무수행 목적 이외의 목적으로 회사정보를 복사•녹음•촬영 등 기타 어떠한 방법으로 복제를 하지 않겠습니다. + + +② 본인은 회사의 시설물에서 승인되지 않은 장비(OA기기, 통신장비, USB 등 저장장치, 개인노트북 등) 사용, 출입금지구역 출입, 자료열람, 촬영행위를 하지 않겠으며 출입관련 회사의 제반 보안규정을 준수하겠습니다. + +제 6 조 [회사정보의 반납 / 파기 / 보유 금지] + +① 본인은 본인의 소속회사와 회사간 계약서 상에 명시된 정보의 보호기간(단, 계약서 상에 정보 보호기간이 명시되어 있지 않은 경우에는 계약기간)이 종료(또는 본인의 소속업체 퇴직)되는 즉시(또는 회사와의 합의에 따라 계약종료 후 정해진 일정한 시점) 용역과 관련된 도면, 도표, 설계도, 명세서, 메모, 보고서, 노트, 자기테이프, 디지털 및 아날로그 저장장치(자기테이프, 외장형 저장장치, USB 디스크, CD, DVD, 디지털 카메라, 컴퓨터 하드디스크, 스마트 패드, 영상기록장치 등)에 보관하고 있는 회사와 관련된 일체의 정보를 회사에 반납하거나 반납이 어려울 경우 회사와 협의하여 파기하고, 이에 관해 어떠한 형태의 사본도 보유하지 않겠습니다. +② 본인은 제6조 ①항에서 정한 사항의 이행여부를 확인하는 확인서를 회사에 제출하도록 하겠습니다. + +제 7 조 [서약사항 위반시 민•형사상 책임] + +본인은 본인의 소속회사 재직 중은 물론 퇴직 후에도 위 각 서약사항을 위반 시 ‘부정 경쟁방지 및 영업비밀보호에 관한 법률’, ‘산업기술의 유출 방지 및 보호에 관한 법률’ 등 관련 법률에 규정된 민•형사상 책임, 민사상의 채무 불이행책임 또는 불법행위로 인한 손해배상책임 등 제반 관련법규에 따른 민•형사상의 책임을 부담하며, 회사의 금전적 손해에 대해 손해액 일체를 즉시 배상하도록 하겠습니다. + +현대/기아자동차주식회사 귀중 + + \ No newline at end of file diff --git a/Config.cs b/Config.cs index de89ab9..91cca05 100644 --- a/Config.cs +++ b/Config.cs @@ -222,6 +222,21 @@ namespace friction return m_UncheckedMaterial[m_strCurMaterial].m_Tables; } + public bool DidAgreeAlert() + { + StringBuilder temp = new StringBuilder(10240); + int iRes = GetPrivateProfileString("Agree", "agree", "", temp, 10240, m_strPath); + bool bResult = false; + bool.TryParse(temp.ToString(), out bResult); + + return bResult; + } + + public void SetAgreeAlert() + { + WritePrivateProfileString("Agree", "agree", "true", m_strPath); + } + public struct COLUMN_NAME { diff --git a/MainForm.Designer.cs b/MainForm.Designer.cs index c249d01..f8afc1f 100644 --- a/MainForm.Designer.cs +++ b/MainForm.Designer.cs @@ -38,8 +38,8 @@ this.toolStripButtonAnalysis = new System.Windows.Forms.ToolStripButton(); this.toolStripButtonMap = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); - this.toolStripButtonRadarGraph = new System.Windows.Forms.ToolStripButton(); this.toolStripButtonTrendGraph = new System.Windows.Forms.ToolStripButton(); + this.toolStripButtonRadarGraph = new System.Windows.Forms.ToolStripButton(); this.statusStrip = new System.Windows.Forms.StatusStrip(); this.toolStripStatusLabel = new System.Windows.Forms.ToolStripStatusLabel(); this.menuStrip = new System.Windows.Forms.MenuStrip(); @@ -52,8 +52,8 @@ this.analysisTableToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.materialCompatibilityMapToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.graphToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.radarGraphToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.trendGraphToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.radarGraphToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.reportToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.allToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.preferenceToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); @@ -162,17 +162,6 @@ this.toolStripSeparator2.Name = "toolStripSeparator2"; this.toolStripSeparator2.Size = new System.Drawing.Size(6, 32); // - // toolStripButtonRadarGraph - // - this.toolStripButtonRadarGraph.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; - this.toolStripButtonRadarGraph.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButtonRadarGraph.Image"))); - this.toolStripButtonRadarGraph.ImageTransparentColor = System.Drawing.Color.Magenta; - this.toolStripButtonRadarGraph.Name = "toolStripButtonRadarGraph"; - this.toolStripButtonRadarGraph.Size = new System.Drawing.Size(28, 29); - this.toolStripButtonRadarGraph.Text = "toolStripButton3"; - this.toolStripButtonRadarGraph.ToolTipText = "Radar Graph (Ctrl+D)"; - this.toolStripButtonRadarGraph.Click += new System.EventHandler(this.toolStripButtonRadarGraph_Click); - // // toolStripButtonTrendGraph // this.toolStripButtonTrendGraph.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; @@ -184,6 +173,17 @@ this.toolStripButtonTrendGraph.ToolTipText = "Trend Graph (Ctrl+T)"; this.toolStripButtonTrendGraph.Click += new System.EventHandler(this.toolStripButtonTrendGraph_Click); // + // toolStripButtonRadarGraph + // + this.toolStripButtonRadarGraph.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.toolStripButtonRadarGraph.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButtonRadarGraph.Image"))); + this.toolStripButtonRadarGraph.ImageTransparentColor = System.Drawing.Color.Magenta; + this.toolStripButtonRadarGraph.Name = "toolStripButtonRadarGraph"; + this.toolStripButtonRadarGraph.Size = new System.Drawing.Size(28, 29); + this.toolStripButtonRadarGraph.Text = "toolStripButton3"; + this.toolStripButtonRadarGraph.ToolTipText = "Radar Graph (Ctrl+D)"; + this.toolStripButtonRadarGraph.Click += new System.EventHandler(this.toolStripButtonRadarGraph_Click); + // // statusStrip // this.statusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { @@ -287,13 +287,6 @@ this.graphToolStripMenuItem.Size = new System.Drawing.Size(63, 24); this.graphToolStripMenuItem.Text = "Graph"; // - // radarGraphToolStripMenuItem - // - this.radarGraphToolStripMenuItem.Name = "radarGraphToolStripMenuItem"; - this.radarGraphToolStripMenuItem.Size = new System.Drawing.Size(164, 24); - this.radarGraphToolStripMenuItem.Text = "Radar Graph"; - this.radarGraphToolStripMenuItem.Click += new System.EventHandler(this.radarGraphToolStripMenuItem_Click); - // // trendGraphToolStripMenuItem // this.trendGraphToolStripMenuItem.Name = "trendGraphToolStripMenuItem"; @@ -301,6 +294,13 @@ this.trendGraphToolStripMenuItem.Text = "Trend Graph"; this.trendGraphToolStripMenuItem.Click += new System.EventHandler(this.trendGraphToolStripMenuItem_Click); // + // radarGraphToolStripMenuItem + // + this.radarGraphToolStripMenuItem.Name = "radarGraphToolStripMenuItem"; + this.radarGraphToolStripMenuItem.Size = new System.Drawing.Size(164, 24); + this.radarGraphToolStripMenuItem.Text = "Radar Graph"; + this.radarGraphToolStripMenuItem.Click += new System.EventHandler(this.radarGraphToolStripMenuItem_Click); + // // reportToolStripMenuItem // this.reportToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { @@ -376,6 +376,7 @@ this.Name = "MainForm"; this.Text = "Material Stick-Slip Analysis"; this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.MainForm_FormClosing); + this.Shown += new System.EventHandler(this.MainForm_Shown); this.toolStripMain.ResumeLayout(false); this.toolStripMain.PerformLayout(); this.statusStrip.ResumeLayout(false); diff --git a/MainForm.cs b/MainForm.cs index bd9d542..74a3f41 100644 --- a/MainForm.cs +++ b/MainForm.cs @@ -54,6 +54,19 @@ namespace friction dockPanel.Font = new Font(dockPanel.Font.FontFamily, 12.0f); } + private void MainForm_Shown(object sender, EventArgs e) + { + if (Config.GetInstance().DidAgreeAlert() == true) + return; + + AlertPopup alert = new AlertPopup(); + DialogResult alertResult = alert.ShowDialog(); + if (alertResult == DialogResult.OK) + Config.GetInstance().SetAgreeAlert(); + else + Application.Exit(); + } + void UpdateRecentFile() { recentToolStripMenuItem.DropDownItems.Clear(); diff --git a/MainForm.resx b/MainForm.resx index 14deed7..c1d41e3 100644 --- a/MainForm.resx +++ b/MainForm.resx @@ -167,34 +167,34 @@ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAELSURBVDhPYxhcwH/7dgXv3ZsdoFwMAJIDqYFyMYHvzs0N - vru2/IdyMQBIDqQGykUFKYuPvY9evP9r/Pyjv0FsbDhq8d5fybP3fgOxodoQwHfi7v+kYKg2BGjff+N/ + vru2/IdyMQBIDqQGykUFKYuPvY9avP9r/Pyjv0FsbDhy8Z5fybP3fAOxodoQwHfi7v+kYKg2BGjff+N/ 274b/1uBuBmIm/Ze/98IxPVAXLfn+v+aPdf+V+++9r8SiqHaEODw26//97z6+H/rs7f/QWwQDeJjEzvw 9gt2AxovXv4PCqgtLz+D6aKzF7GKgdRCtSEASHD5wxf/W67cAtry5X/n1dv/Z917hlUMpwEzb9//n3vq - FFhxwenT//tv3MMqhtOA9qvX/4fs2w12bhiQLrtwFasYTgNIwVBtCHD49WcHUjBU24ADBgYA/MWMDLj5 - 81AAAAAASUVORK5CYII= + FFhxwenT//tv3MMqhtOA9qvX/4fs2w12bhiQLrtwFasYTgNIwVBtCHD49WcHUjBU24ADBgYA8TGMCJUH + 0TwAAAAASUVORK5CYII= iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEpSURBVDhPY6A7COk9xuk1Za88lIsdBE7bKeY7aac1lIsC - /CbtXunbsu6fV/8uTagQJvCdtHuT78Td//2n7DSACoHB8RefxTsP3rruM2Hnbv/+/QJQYUww6eitw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mwzVBgOQE6HGVB57tR/qDACIBvgNXHXFagwBPz/z7j4wZsfu199/r/1xaf/q5++xzTAu3/HOZgB IOwzYVciVIqhfNP5tsNvv/6H4bV3Xn2BSiGAz8TdRcgGQPE1MJ6w+3/55otwA6adfrAWqg0BQnqPcYKc - jmYAHHtP2PU/ffnJ/+svvv5ef+IWH1QbKvCZsFsOnyFuvTtuJs3ZbwJVjh3Yz9/PAfHOrrO+/eu/g/HE - 3WeA/AKQHFTZoAEMDABbpj40S+1sRQAAAABJRU5ErkJggg== + jmYAHHtP2PU/ffnJ/+svvP5ef+IWH1QbKvCZsFsOnyFuvTtuJs3ZbwJVjh3Yz9/PAfHOrrO+/eu/g/HE + 3WeA/AKQHFTZoAEMDABRBD4v4Uy/mAAAAABJRU5ErkJggg== diff --git a/friction.csproj b/friction.csproj index c013c92..7f315ab 100644 --- a/friction.csproj +++ b/friction.csproj @@ -77,6 +77,12 @@ AboutBox.cs + + Form + + + AlertPopup.cs + @@ -136,6 +142,9 @@ AboutBox.cs + + AlertPopup.cs + MainForm.cs