diff --git a/EETGW.sln b/EETGW.sln
index efdb9cd..bb1b89f 100644
--- a/EETGW.sln
+++ b/EETGW.sln
@@ -31,10 +31,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AmkorRestfulService", "Sub\
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "arTCPService.Shared", "Sub\tcpservice\arTCPService.Shared\arTCPService.Shared.csproj", "{3CD79316-211A-4B57-A6B4-00FA6091C29D}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "JobReportMailService", "JobReportMailService\JobReportMailService.csproj", "{DBE5BD4A-09D3-4437-AD6C-81FE270C6458}"
-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
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebServer", "SubProject\WebServer\WebServer.csproj", "{CAFE5CD0-C055-4C77-9253-8D5EE9558D43}"
@@ -138,22 +134,6 @@ Global
{3CD79316-211A-4B57-A6B4-00FA6091C29D}.Release|Any CPU.Build.0 = Release|Any CPU
{3CD79316-211A-4B57-A6B4-00FA6091C29D}.Release|x86.ActiveCfg = Release|Any CPU
{3CD79316-211A-4B57-A6B4-00FA6091C29D}.Release|x86.Build.0 = Release|Any CPU
- {DBE5BD4A-09D3-4437-AD6C-81FE270C6458}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {DBE5BD4A-09D3-4437-AD6C-81FE270C6458}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {DBE5BD4A-09D3-4437-AD6C-81FE270C6458}.Debug|x86.ActiveCfg = Debug|Any CPU
- {DBE5BD4A-09D3-4437-AD6C-81FE270C6458}.Debug|x86.Build.0 = Debug|Any CPU
- {DBE5BD4A-09D3-4437-AD6C-81FE270C6458}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {DBE5BD4A-09D3-4437-AD6C-81FE270C6458}.Release|Any CPU.Build.0 = Release|Any CPU
- {DBE5BD4A-09D3-4437-AD6C-81FE270C6458}.Release|x86.ActiveCfg = Release|Any CPU
- {DBE5BD4A-09D3-4437-AD6C-81FE270C6458}.Release|x86.Build.0 = Release|Any CPU
- {8D593B42-1EAE-4D5A-A2C1-0361E2C43A80}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {8D593B42-1EAE-4D5A-A2C1-0361E2C43A80}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {8D593B42-1EAE-4D5A-A2C1-0361E2C43A80}.Debug|x86.ActiveCfg = Debug|Any CPU
- {8D593B42-1EAE-4D5A-A2C1-0361E2C43A80}.Debug|x86.Build.0 = Debug|Any CPU
- {8D593B42-1EAE-4D5A-A2C1-0361E2C43A80}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {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
@@ -202,7 +182,6 @@ Global
{F31C242C-1B15-4518-9733-48558499FE4B} = {28105E67-9D33-4627-8E26-FCE67700622F}
{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}
{CAFE5CD0-C055-4C77-9253-8D5EE9558D43} = {6C7EC99E-7367-4255-A039-EF5E8D75A2F6}
{3869B8C1-1290-4864-B72D-D771475F914D} = {6C7EC99E-7367-4255-A039-EF5E8D75A2F6}
diff --git a/Project/Properties/Settings.Designer.cs b/Project/Properties/Settings.Designer.cs
index d1d2bf2..bbd294a 100644
--- a/Project/Properties/Settings.Designer.cs
+++ b/Project/Properties/Settings.Designer.cs
@@ -46,5 +46,17 @@ namespace Project.Properties {
return ((string)(this["CS"]));
}
}
+
+ [global::System.Configuration.UserScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.DefaultSettingValueAttribute("10.101.5.150")]
+ public string mailserver {
+ get {
+ return ((string)(this["mailserver"]));
+ }
+ set {
+ this["mailserver"] = value;
+ }
+ }
}
}
diff --git a/Project/Properties/Settings.settings b/Project/Properties/Settings.settings
index 7f4e81e..6cff062 100644
--- a/Project/Properties/Settings.settings
+++ b/Project/Properties/Settings.settings
@@ -18,5 +18,8 @@
</SerializableConnectionString>
Data Source=K4FASQL.kr.ds.amkor.com,50150;Initial Catalog=EE;Persist Security Info=True;User ID=eeadm;Password=uJnU8a8q&DJ+ug-D;Encrypt=False;TrustServerCertificate=True
+
+ 10.101.5.150
+
\ No newline at end of file
diff --git a/Project/Pub.cs b/Project/Pub.cs
index bd5c967..f8dde12 100644
--- a/Project/Pub.cs
+++ b/Project/Pub.cs
@@ -36,6 +36,7 @@ namespace Project
System.IO.Directory.CreateDirectory(FCOMMON.info.Path);
}
FCOMMON.info.CS = Properties.Settings.Default.gwcs;
+ FCOMMON.info.mailserver = Properties.Settings.Default.mailserver;
//setting
setting = new Setting(FCOMMON.info.Path.MakeFilePath("Setting", "Setting.xml"));
diff --git a/Project/StateMachine/_BW.cs b/Project/StateMachine/_BW.cs
index 804d5fd..bbf15f2 100644
--- a/Project/StateMachine/_BW.cs
+++ b/Project/StateMachine/_BW.cs
@@ -71,7 +71,7 @@ namespace Project
while (bBW)
{
ServerUtil.IsMailserver = ServerUtil.SendmailSet();
- if (ServerUtil.IsMailserver && System.Diagnostics.Debugger.IsAttached == false)
+ if (ServerUtil.IsMailserver)
{
//메일대기내역전송
var tsSendMail = DateTime.Now - ChkSendMailTime;
diff --git a/Project/StateMachine/_MailService.cs b/Project/StateMachine/_MailService.cs
index c165e29..e3eb582 100644
--- a/Project/StateMachine/_MailService.cs
+++ b/Project/StateMachine/_MailService.cs
@@ -200,7 +200,7 @@ namespace Project
newdr.gcode = "EET1P";
newdr.cate = "ERR";
newdr.subject = $"[GW] {vGcode} - 업무일지 담당자 이메일 경고";
- newdr.fromlist = "chikyun.kim@amkor.co.kr";
+ newdr.fromlist = "gw@amkor.co.kr";
newdr.tolist = "chikyun.kim@amkor.co.kr";
newdr.bcc = string.Empty;
newdr.cc = string.Empty;
@@ -961,10 +961,11 @@ namespace Project
{
var cn = new System.Data.SqlClient.SqlConnection(Properties.Settings.Default.gwcs);
var cmd = new System.Data.SqlClient.SqlCommand("", cn);
+ var gcode = FCOMMON.info.Login.gcode;
cn.Open();
//1개의데이터 가져오기
- cmd.CommandText = "SELECT top 1 * FROM MailData WHERE ISNULL(SendOK, 0) = 0 order by wdate";
+ cmd.CommandText = $"SELECT top 1 * FROM MailData WHERE ISNULL(SendOK, 0) = 0 order by wdate";
var dar = cmd.ExecuteReader();
var list_from = string.Empty;// getMaillist(dar["fromlist"]);
@@ -1044,7 +1045,7 @@ namespace Project
"
";
//전송을 해야 함
- var mc = new System.Net.Mail.SmtpClient("10.101.5.150");
+ var mc = new System.Net.Mail.SmtpClient(FCOMMON.info.mailserver);
var msg = new System.Net.Mail.MailMessage
(list_from,
list_to,
diff --git a/Project/app.config b/Project/app.config
index 1401849..86ec182 100644
--- a/Project/app.config
+++ b/Project/app.config
@@ -1,6 +1,10 @@
-
+
+
+
+
+
@@ -90,4 +94,11 @@
+
+
+
+ 10.101.5.150
+
+
+
diff --git a/SubProject/FCM0000/Mail/fMailList.Designer.cs b/SubProject/FCM0000/Mail/fMailList.Designer.cs
index b532ad9..09e1ae2 100644
--- a/SubProject/FCM0000/Mail/fMailList.Designer.cs
+++ b/SubProject/FCM0000/Mail/fMailList.Designer.cs
@@ -32,6 +32,8 @@
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fMailList));
this.bn = new System.Windows.Forms.BindingNavigator(this.components);
this.btAdd = new System.Windows.Forms.ToolStripButton();
+ this.bs = new System.Windows.Forms.BindingSource(this.components);
+ this.dSMail = new FCM0000.DSMail();
this.bindingNavigatorCountItem = new System.Windows.Forms.ToolStripLabel();
this.btDel = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorMoveFirstItem = new System.Windows.Forms.ToolStripButton();
@@ -43,6 +45,11 @@
this.bindingNavigatorMoveLastItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorSeparator2 = new System.Windows.Forms.ToolStripSeparator();
this.btSave = new System.Windows.Forms.ToolStripButton();
+ this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
+ this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
+ this.toolStripLabel1 = new System.Windows.Forms.ToolStripLabel();
+ this.tbFind = new System.Windows.Forms.ToolStripTextBox();
+ this.toolStripButton2 = new System.Windows.Forms.ToolStripButton();
this.panel1 = new System.Windows.Forms.Panel();
this.button1 = new System.Windows.Forms.Button();
this.btRefresh = new System.Windows.Forms.Button();
@@ -51,8 +58,6 @@
this.dtSd = new System.Windows.Forms.DateTimePicker();
this.label1 = new System.Windows.Forms.Label();
this.arDatagridView1 = new arCtl.arDatagridView();
- this.suid = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.sdate = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.pdateDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.subjectDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.fromlistDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -61,22 +66,17 @@
this.wuidDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.wdateDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.sendOKDataGridViewCheckBoxColumn = new System.Windows.Forms.DataGridViewCheckBoxColumn();
+ this.suid = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.sdate = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.cateDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.bs = new System.Windows.Forms.BindingSource(this.components);
- this.dSMail = new FCM0000.DSMail();
this.ta = new FCM0000.DSMailTableAdapters.MailDataTableAdapter();
this.tam = new FCM0000.DSMailTableAdapters.TableAdapterManager();
- this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
- this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
- this.toolStripLabel1 = new System.Windows.Forms.ToolStripLabel();
- this.tbFind = new System.Windows.Forms.ToolStripTextBox();
- this.toolStripButton2 = new System.Windows.Forms.ToolStripButton();
((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit();
this.bn.SuspendLayout();
- this.panel1.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.arDatagridView1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dSMail)).BeginInit();
+ this.panel1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.arDatagridView1)).BeginInit();
this.SuspendLayout();
//
// bn
@@ -118,12 +118,23 @@
//
// btAdd
//
- this.btAdd.Enabled = false;
this.btAdd.Image = ((System.Drawing.Image)(resources.GetObject("btAdd.Image")));
this.btAdd.Name = "btAdd";
this.btAdd.RightToLeftAutoMirrorImage = true;
- this.btAdd.Size = new System.Drawing.Size(95, 36);
- this.btAdd.Text = "새로 추가";
+ this.btAdd.Size = new System.Drawing.Size(79, 36);
+ this.btAdd.Text = "테스트";
+ this.btAdd.Click += new System.EventHandler(this.btAdd_Click);
+ //
+ // bs
+ //
+ this.bs.DataMember = "MailData";
+ this.bs.DataSource = this.dSMail;
+ this.bs.Sort = "wdate desc,pdate";
+ //
+ // dSMail
+ //
+ this.dSMail.DataSetName = "DSMail";
+ this.dSMail.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
//
// bindingNavigatorCountItem
//
@@ -211,6 +222,44 @@
this.btSave.Text = "저장";
this.btSave.Click += new System.EventHandler(this.mailDataBindingNavigatorSaveItem_Click);
//
+ // toolStripButton1
+ //
+ this.toolStripButton1.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
+ 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(119, 36);
+ this.toolStripButton1.Text = "목록 내보내기";
+ this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click);
+ //
+ // toolStripSeparator1
+ //
+ this.toolStripSeparator1.Name = "toolStripSeparator1";
+ this.toolStripSeparator1.Size = new System.Drawing.Size(6, 39);
+ //
+ // toolStripLabel1
+ //
+ this.toolStripLabel1.Name = "toolStripLabel1";
+ this.toolStripLabel1.Size = new System.Drawing.Size(31, 36);
+ this.toolStripLabel1.Text = "검색";
+ //
+ // tbFind
+ //
+ this.tbFind.Font = new System.Drawing.Font("맑은 고딕", 9F);
+ this.tbFind.Name = "tbFind";
+ this.tbFind.Size = new System.Drawing.Size(120, 39);
+ this.tbFind.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tbFind_KeyDown_1);
+ //
+ // toolStripButton2
+ //
+ this.toolStripButton2.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
+ 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(36, 36);
+ this.toolStripButton2.Text = "toolStripButton2";
+ this.toolStripButton2.Click += new System.EventHandler(this.toolStripButton2_Click);
+ //
// panel1
//
this.panel1.Controls.Add(this.button1);
@@ -311,20 +360,6 @@
this.arDatagridView1.Size = new System.Drawing.Size(855, 478);
this.arDatagridView1.TabIndex = 4;
//
- // suid
- //
- this.suid.DataPropertyName = "suid";
- this.suid.HeaderText = "전송자";
- this.suid.Name = "suid";
- this.suid.ReadOnly = true;
- //
- // sdate
- //
- this.sdate.DataPropertyName = "sdate";
- this.sdate.HeaderText = "전송시간";
- this.sdate.Name = "sdate";
- this.sdate.ReadOnly = true;
- //
// pdateDataGridViewTextBoxColumn
//
this.pdateDataGridViewTextBoxColumn.DataPropertyName = "pdate";
@@ -381,6 +416,20 @@
this.sendOKDataGridViewCheckBoxColumn.Name = "sendOKDataGridViewCheckBoxColumn";
this.sendOKDataGridViewCheckBoxColumn.ReadOnly = true;
//
+ // suid
+ //
+ this.suid.DataPropertyName = "suid";
+ this.suid.HeaderText = "전송자";
+ this.suid.Name = "suid";
+ this.suid.ReadOnly = true;
+ //
+ // sdate
+ //
+ this.sdate.DataPropertyName = "sdate";
+ this.sdate.HeaderText = "전송시간";
+ this.sdate.Name = "sdate";
+ this.sdate.ReadOnly = true;
+ //
// cateDataGridViewTextBoxColumn
//
this.cateDataGridViewTextBoxColumn.DataPropertyName = "cate";
@@ -388,17 +437,6 @@
this.cateDataGridViewTextBoxColumn.Name = "cateDataGridViewTextBoxColumn";
this.cateDataGridViewTextBoxColumn.ReadOnly = true;
//
- // bs
- //
- this.bs.DataMember = "MailData";
- this.bs.DataSource = this.dSMail;
- this.bs.Sort = "wdate desc,pdate";
- //
- // dSMail
- //
- this.dSMail.DataSetName = "DSMail";
- this.dSMail.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
- //
// ta
//
this.ta.ClearBeforeFill = true;
@@ -411,44 +449,6 @@
this.tam.MailFormTableAdapter = null;
this.tam.UpdateOrder = FCM0000.DSMailTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete;
//
- // toolStripButton1
- //
- this.toolStripButton1.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
- 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(119, 36);
- this.toolStripButton1.Text = "목록 내보내기";
- this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click);
- //
- // toolStripSeparator1
- //
- this.toolStripSeparator1.Name = "toolStripSeparator1";
- this.toolStripSeparator1.Size = new System.Drawing.Size(6, 39);
- //
- // toolStripLabel1
- //
- this.toolStripLabel1.Name = "toolStripLabel1";
- this.toolStripLabel1.Size = new System.Drawing.Size(31, 36);
- this.toolStripLabel1.Text = "검색";
- //
- // tbFind
- //
- this.tbFind.Font = new System.Drawing.Font("맑은 고딕", 9F);
- this.tbFind.Name = "tbFind";
- this.tbFind.Size = new System.Drawing.Size(120, 39);
- this.tbFind.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tbFind_KeyDown_1);
- //
- // toolStripButton2
- //
- this.toolStripButton2.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
- 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(36, 36);
- this.toolStripButton2.Text = "toolStripButton2";
- this.toolStripButton2.Click += new System.EventHandler(this.toolStripButton2_Click);
- //
// fMailList
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
@@ -463,11 +463,11 @@
((System.ComponentModel.ISupportInitialize)(this.bn)).EndInit();
this.bn.ResumeLayout(false);
this.bn.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.bs)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dSMail)).EndInit();
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.arDatagridView1)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.bs)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.dSMail)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
diff --git a/SubProject/FCM0000/Mail/fMailList.cs b/SubProject/FCM0000/Mail/fMailList.cs
index 5b9eeb4..9117b3c 100644
--- a/SubProject/FCM0000/Mail/fMailList.cs
+++ b/SubProject/FCM0000/Mail/fMailList.cs
@@ -136,5 +136,11 @@ namespace FCM0000.Mail
{
if (e.KeyCode == Keys.Enter) find();
}
+
+ private void btAdd_Click(object sender, EventArgs e)
+ {
+ using (var f = new fSendMail())
+ f.ShowDialog();
+ }
}
}
diff --git a/SubProject/FCM0000/Mail/fMailList.resx b/SubProject/FCM0000/Mail/fMailList.resx
index 26e0763..3affccb 100644
--- a/SubProject/FCM0000/Mail/fMailList.resx
+++ b/SubProject/FCM0000/Mail/fMailList.resx
@@ -124,7 +124,7 @@
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
- wQAADsEBuJFr7QAAAUpJREFUOE9jGLzg7gL2/7fmcf6/Oofr/8UZvP+hwsSD60CNfx41/v/zsOH/yckC
+ wAAADsABataJCQ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81AEDAwAoH5f
oAc0QjgAAAAASUVORK5CYII=
@@ -183,7 +183,7 @@
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
- wQAADsEBuJFr7QAAASxJREFUOE9jGFygcNbz/1AmBgDJNS14/j9z4mOcahhyZz77n9B9D6sCkNyqI+//
+ wAAADsABataJCQAAASxJREFUOE9jGFygcNbz/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
@@ -194,42 +194,42 @@
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
- wQAADsEBuJFr7QAAAExJREFUOE9joAr49u3bf1IxVCsEgAWC58Dxh/cf4RhZDETHTNiHaQgpBoAwzBCo
+ wAAADsABataJCQAAAExJREFUOE9joAr49u3bf1IxVCsEgAWC58Dxh/cf4RhZDETHTNiHaQgpBoAwzBCo
dtINAGGiDUDGyGpoawAxeNSAQWkAORiqnRLAwAAA9EMMU8Daa3MAAAAASUVORK5CYII=
iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
- YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIPSURBVFhHYxgFtAKWPZYa5r3W5VTB/fYKUGOpByx7bUIt
- +mz+U4ptJzn+N++1eWjSZ6MENZo6gFoOXH9l43+vGb7UdyS1HHjqyZn/Z5+epb4jqenAF19fUt+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hW
+ HBYXslQ/exPLqQPcaJ1zmGeEeZmTUjITTcjtjsC0LRQVoPeSjEqEnEJ4dbZAPZZTB0Q5jisnnQ4JiaIp
+ jHp7YAwiALmCC2fnRQ5KJJzIF+APBEa/kF6CngwXSXtODd0nzG52KiQmi6askJQ7XEyYVIMwB00GWfsb
+ YdzxPxcye06aPazElUylpGx0h6aQxXIEL6k8WkzO0xYvO8cqhmAK5sY+Jg4RwEsqj1ar64LVO5YoGhZP
+ mpItHnYOIoCXVB4vugYudQ1FUiVToHWI/4iMPafwksqjpavvCu0bz/xvOppSPl+1eEnl8fgVfUw56cK/
+ pt3+SPqp2XsRL6kOnlG2+qHJ+GbJ1OafyKDX7jr8unq4Q9P7KRfzYXAytkn7wp9bO91X8avqA8yRwVmH
+ TK6jeKrKqKn5C/a5W1rSJpvaAAAAAElFTkSuQmCC
diff --git a/SubProject/FCM0000/Mail/fSendMail.Designer.cs b/SubProject/FCM0000/Mail/fSendMail.Designer.cs
index 335268e..e3bd180 100644
--- a/SubProject/FCM0000/Mail/fSendMail.Designer.cs
+++ b/SubProject/FCM0000/Mail/fSendMail.Designer.cs
@@ -38,8 +38,8 @@
this.bn = new System.Windows.Forms.BindingNavigator(this.components);
this.bs = new System.Windows.Forms.BindingSource(this.components);
this.dsMSSQL = new FCM0000.DSMail();
- this.mailFormBindingNavigatorSaveItem = new System.Windows.Forms.ToolStripButton();
- this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
+ this.btSend = new System.Windows.Forms.ToolStripButton();
+ this.btOUtlook = new System.Windows.Forms.ToolStripButton();
this.panel1 = new System.Windows.Forms.Panel();
this.tbBody = new YARTE.UI.HtmlEditor();
this.tbTo = new System.Windows.Forms.TextBox();
@@ -48,6 +48,7 @@
this.tbSubject = new System.Windows.Forms.TextBox();
this.tam = new FCM0000.DSMailTableAdapters.TableAdapterManager();
this.ta = new FCM0000.DSMailTableAdapters.MailDataTableAdapter();
+ this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
tolistLabel = new System.Windows.Forms.Label();
bccLabel = new System.Windows.Forms.Label();
ccLabel = new System.Windows.Forms.Label();
@@ -115,7 +116,8 @@
this.bn.DeleteItem = null;
this.bn.Dock = System.Windows.Forms.DockStyle.Bottom;
this.bn.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.mailFormBindingNavigatorSaveItem,
+ this.btSend,
+ this.btOUtlook,
this.toolStripButton1});
this.bn.Location = new System.Drawing.Point(0, 498);
this.bn.MoveFirstItem = null;
@@ -138,23 +140,23 @@
this.dsMSSQL.DataSetName = "dsMSSQL";
this.dsMSSQL.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
//
- // mailFormBindingNavigatorSaveItem
+ // btSend
//
- this.mailFormBindingNavigatorSaveItem.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
- this.mailFormBindingNavigatorSaveItem.Image = ((System.Drawing.Image)(resources.GetObject("mailFormBindingNavigatorSaveItem.Image")));
- this.mailFormBindingNavigatorSaveItem.Name = "mailFormBindingNavigatorSaveItem";
- this.mailFormBindingNavigatorSaveItem.Size = new System.Drawing.Size(69, 22);
- this.mailFormBindingNavigatorSaveItem.Text = "Send(&S)";
- this.mailFormBindingNavigatorSaveItem.Click += new System.EventHandler(this.mailFormBindingNavigatorSaveItem_Click);
+ this.btSend.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
+ this.btSend.Image = ((System.Drawing.Image)(resources.GetObject("btSend.Image")));
+ this.btSend.Name = "btSend";
+ this.btSend.Size = new System.Drawing.Size(69, 22);
+ this.btSend.Text = "Send(&S)";
+ this.btSend.Click += new System.EventHandler(this.mailFormBindingNavigatorSaveItem_Click);
//
- // toolStripButton1
+ // btOUtlook
//
- this.toolStripButton1.Image = global::FCM0000.Properties.Resources.action_refresh;
- this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
- this.toolStripButton1.Name = "toolStripButton1";
- this.toolStripButton1.Size = new System.Drawing.Size(90, 22);
- this.toolStripButton1.Text = "To OutLook";
- this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click_1);
+ this.btOUtlook.Image = global::FCM0000.Properties.Resources.action_refresh;
+ this.btOUtlook.ImageTransparentColor = System.Drawing.Color.Magenta;
+ this.btOUtlook.Name = "btOUtlook";
+ this.btOUtlook.Size = new System.Drawing.Size(90, 22);
+ this.btOUtlook.Text = "To OutLook";
+ this.btOUtlook.Click += new System.EventHandler(this.toolStripButton1_Click_1);
//
// panel1
//
@@ -180,8 +182,9 @@
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.tbBody.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.tbBody.Html = resources.GetString("tbBody.Html");
+ this.tbBody.Html = "";
this.tbBody.Location = new System.Drawing.Point(74, 97);
+ this.tbBody.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
this.tbBody.Name = "tbBody";
this.tbBody.ReadOnly = false;
this.tbBody.ShowToolbar = true;
@@ -232,6 +235,7 @@
// tam
//
this.tam.BackupDataSetBeforeUpdate = false;
+ this.tam.MailAutoTableAdapter = null;
this.tam.MailDataTableAdapter = this.ta;
this.tam.MailFormTableAdapter = null;
this.tam.UpdateOrder = FCM0000.DSMailTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete;
@@ -240,6 +244,15 @@
//
this.ta.ClearBeforeFill = true;
//
+ // toolStripButton1
+ //
+ this.toolStripButton1.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
+ this.toolStripButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton1.Image")));
+ this.toolStripButton1.Name = "toolStripButton1";
+ this.toolStripButton1.Size = new System.Drawing.Size(90, 22);
+ this.toolStripButton1.Text = "Direct Send";
+ this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click);
+ //
// fSendMail
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
@@ -268,7 +281,7 @@
private System.Windows.Forms.BindingSource bs;
private DSMailTableAdapters.TableAdapterManager tam;
private System.Windows.Forms.BindingNavigator bn;
- private System.Windows.Forms.ToolStripButton mailFormBindingNavigatorSaveItem;
+ private System.Windows.Forms.ToolStripButton btSend;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.TextBox tbTo;
private System.Windows.Forms.TextBox tbBCC;
@@ -276,6 +289,7 @@
private System.Windows.Forms.TextBox tbSubject;
private YARTE.UI.HtmlEditor tbBody;
private DSMailTableAdapters.MailDataTableAdapter ta;
+ private System.Windows.Forms.ToolStripButton btOUtlook;
private System.Windows.Forms.ToolStripButton toolStripButton1;
}
}
\ No newline at end of file
diff --git a/SubProject/FCM0000/Mail/fSendMail.cs b/SubProject/FCM0000/Mail/fSendMail.cs
index eeb865d..1112654 100644
--- a/SubProject/FCM0000/Mail/fSendMail.cs
+++ b/SubProject/FCM0000/Mail/fSendMail.cs
@@ -10,6 +10,7 @@ using YARTE.UI.Buttons;
using NetOffice;
using Outlook = NetOffice.OutlookApi;
using NetOffice.OutlookApi.Enums;
+using static System.Windows.Forms.VisualStyles.VisualStyleElement.Tab;
namespace FCM0000
{
@@ -21,19 +22,24 @@ namespace FCM0000
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
PredefinedButtonSets.SetupDefaultButtons(this.tbBody);
this.dsMSSQL.MailData.TableNewRow += MailForm_TableNewRow;
+
+
}
void MailForm_TableNewRow(object sender, DataTableNewRowEventArgs e)
{
+ e.Row["gcode"] = FCOMMON.info.Login.gcode;
e.Row["wuid"] = FCOMMON.info.Login.no;
e.Row["wdate"] = DateTime.Now;
e.Row["cate"] = "NR";
+ e.Row["pdate"] = DateTime.Now.ToShortDateString();
+ e.Row["fromlist"] = "gw@amkor.co.kr";
}
private void fMailform_Load(object sender, EventArgs e)
{
EnsureVisibleAndUsableSize();
- this.bs.AddNew();
+ this.bs.AddNew(); //신규메일데이터생성
LoadNRData();
}
@@ -49,8 +55,8 @@ namespace FCM0000
this.tbSubject.Text = drForm.subject;
this.tbBody.Html = drForm.body;
this.tbTo.Text = drForm.tolist;
- this.tbBCC.Text = drForm.bcc;
- this.tbCC.Text = drForm.cc;
+ //this.tbBCC.Text = drForm.bcc;
+ //this.tbCC.Text = drForm.cc;
}
}
@@ -58,10 +64,16 @@ namespace FCM0000
{
this.Validate();
var drv = this.bs.Current as DataRowView;
+
+ drv["subject"] = this.tbSubject.Text;
drv["body"] = this.tbBody.Html;
drv.EndEdit();
this.bs.EndEdit();
- this.tam.UpdateAll(this.dsMSSQL);
+ var cnt = this.tam.UpdateAll(this.dsMSSQL);
+ MessageBox.Show($"{cnt}");
+
+ this.bs.AddNew();
+ tbTo.Text = FCOMMON.info.Login.email;
}
private void toolStripButton1_Click_1(object sender, EventArgs e)
@@ -95,5 +107,39 @@ namespace FCM0000
}
}
+
+ private void toolStripButton1_Click(object sender, EventArgs e)
+ {
+ //direct send
+ var list_from = "gw@amkor.co.kr";
+ var list_to = tbTo.Text;
+ var subject = tbSubject.Text;
+ var body = tbBody.Html;
+ var list_bcc = tbBCC.Text;
+ var list_cc = tbCC.Text;
+
+ //전송을 해야 함
+ var mc = new System.Net.Mail.SmtpClient(FCOMMON.info.mailserver);
+ var msg = new System.Net.Mail.MailMessage
+ (list_from,
+ list_to,
+ subject,
+ body);
+
+ if (list_bcc != "") msg.Bcc.Add(list_bcc);
+ if (list_cc != "") msg.CC.Add(list_cc);
+ msg.IsBodyHtml = true;
+
+ try
+ {
+ mc.Send(msg);
+ MessageBox.Show("ok");
+ }
+ catch (Exception eX)
+ {
+ MessageBox.Show(eX.Message);
+ }
+
+ }
}
}
diff --git a/SubProject/FCM0000/Mail/fSendMail.resx b/SubProject/FCM0000/Mail/fSendMail.resx
index 89444a7..c488bbe 100644
--- a/SubProject/FCM0000/Mail/fSendMail.resx
+++ b/SubProject/FCM0000/Mail/fSendMail.resx
@@ -142,21 +142,23 @@
17, 17
-
+
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
- wwAADsMBx2+oZAAAAExJREFUOE9joAr49u3bf1IxVCsEgAWC58Dxh/cf4RhZDETHTNiHaQgpBoAwzBCo
+ wgAADsIBFShKgAAAAExJREFUOE9joAr49u3bf1IxVCsEgAWC58Dxh/cf4RhZDETHTNiHaQgpBoAwzBCo
dtINAGGiDUDGyGpoawAxeNSAQWkAORiqnRLAwAAA9EMMU8Daa3MAAAAASUVORK5CYII=
-
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<HTML><HEAD>
-<META content="text/html; charset=unicode" http-equiv=Content-Type>
-<META name=GENERATOR content="MSHTML 11.00.10570.1001"></HEAD>
-<BODY></BODY></HTML>
+
+
+ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
+ wQAADsEBuJFr7QAAAExJREFUOE9joAr49u3bf1IxVCsEgAWC58Dxh/cf4RhZDETHTNiHaQgpBoAwzBCo
+ dtINAGGiDUDGyGpoawAxeNSAQWkAORiqnRLAwAAA9EMMU8Daa3MAAAAASUVORK5CYII=
+
+ 17, 17
+
186, 17
diff --git a/SubProject/FCM0000/fCode.Designer.cs b/SubProject/FCM0000/fCode.Designer.cs
index c82194b..eb1f47c 100644
--- a/SubProject/FCM0000/fCode.Designer.cs
+++ b/SubProject/FCM0000/fCode.Designer.cs
@@ -57,15 +57,15 @@
this.btAddNew = new System.Windows.Forms.ToolStripButton();
this.btCancle = new System.Windows.Forms.ToolStripButton();
this.dv = new System.Windows.Forms.DataGridView();
- this.ta = new FCM0000.dsMSSQLTableAdapters.CommonTableAdapter();
- this.tam = new FCM0000.dsMSSQLTableAdapters.TableAdapterManager();
- this.tbFind = new System.Windows.Forms.TextBox();
- this.label1 = new System.Windows.Forms.Label();
this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.ta = new FCM0000.dsMSSQLTableAdapters.CommonTableAdapter();
+ this.tam = new FCM0000.dsMSSQLTableAdapters.TableAdapterManager();
+ this.tbFind = new System.Windows.Forms.TextBox();
+ this.label1 = new System.Windows.Forms.Label();
this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit();
this.bn.SuspendLayout();
@@ -335,6 +335,41 @@
this.dv.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.commonDataGridView_CellContentClick);
this.dv.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.commonDataGridView_CellDoubleClick);
//
+ // dataGridViewTextBoxColumn3
+ //
+ this.dataGridViewTextBoxColumn3.DataPropertyName = "code";
+ this.dataGridViewTextBoxColumn3.HeaderText = "Code";
+ this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
+ this.dataGridViewTextBoxColumn3.Width = 70;
+ //
+ // dataGridViewTextBoxColumn7
+ //
+ this.dataGridViewTextBoxColumn7.DataPropertyName = "memo";
+ this.dataGridViewTextBoxColumn7.HeaderText = "Title";
+ this.dataGridViewTextBoxColumn7.Name = "dataGridViewTextBoxColumn7";
+ this.dataGridViewTextBoxColumn7.Width = 65;
+ //
+ // dataGridViewTextBoxColumn4
+ //
+ this.dataGridViewTextBoxColumn4.DataPropertyName = "svalue";
+ this.dataGridViewTextBoxColumn4.HeaderText = "S";
+ this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4";
+ this.dataGridViewTextBoxColumn4.Width = 43;
+ //
+ // dataGridViewTextBoxColumn5
+ //
+ this.dataGridViewTextBoxColumn5.DataPropertyName = "ivalue";
+ this.dataGridViewTextBoxColumn5.HeaderText = "I";
+ this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5";
+ this.dataGridViewTextBoxColumn5.Width = 40;
+ //
+ // dataGridViewTextBoxColumn6
+ //
+ this.dataGridViewTextBoxColumn6.DataPropertyName = "fvalue";
+ this.dataGridViewTextBoxColumn6.HeaderText = "F";
+ this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6";
+ this.dataGridViewTextBoxColumn6.Width = 42;
+ //
// ta
//
this.ta.ClearBeforeFill = true;
@@ -380,41 +415,6 @@
this.label1.Text = "코드값이 없다면 목록에서 노출되지 않습니다";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
- // dataGridViewTextBoxColumn3
- //
- this.dataGridViewTextBoxColumn3.DataPropertyName = "code";
- this.dataGridViewTextBoxColumn3.HeaderText = "Code";
- this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
- this.dataGridViewTextBoxColumn3.Width = 70;
- //
- // dataGridViewTextBoxColumn7
- //
- this.dataGridViewTextBoxColumn7.DataPropertyName = "memo";
- this.dataGridViewTextBoxColumn7.HeaderText = "Title";
- this.dataGridViewTextBoxColumn7.Name = "dataGridViewTextBoxColumn7";
- this.dataGridViewTextBoxColumn7.Width = 65;
- //
- // dataGridViewTextBoxColumn4
- //
- this.dataGridViewTextBoxColumn4.DataPropertyName = "svalue";
- this.dataGridViewTextBoxColumn4.HeaderText = "S";
- this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4";
- this.dataGridViewTextBoxColumn4.Width = 43;
- //
- // dataGridViewTextBoxColumn5
- //
- this.dataGridViewTextBoxColumn5.DataPropertyName = "ivalue";
- this.dataGridViewTextBoxColumn5.HeaderText = "I";
- this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5";
- this.dataGridViewTextBoxColumn5.Width = 40;
- //
- // dataGridViewTextBoxColumn6
- //
- this.dataGridViewTextBoxColumn6.DataPropertyName = "fvalue";
- this.dataGridViewTextBoxColumn6.HeaderText = "F";
- this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6";
- this.dataGridViewTextBoxColumn6.Width = 42;
- //
// fCode
//
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 19F);
diff --git a/SubProject/FCOMMON/Info.cs b/SubProject/FCOMMON/Info.cs
index 17907c2..2424fb0 100644
--- a/SubProject/FCOMMON/Info.cs
+++ b/SubProject/FCOMMON/Info.cs
@@ -63,6 +63,7 @@ namespace FCOMMON
public static string libxlCompany = "Amkor Technology korea, Inc";
public static string libxlKey = "windows-282b2b0800c5e0016bb06a6fafjfd6o8";
public static int camIndex = 0;
+ public static string mailserver = "10.101.5.150";
//public static string datapath;
//public static string ftp_id = "project";
//public static string ftp_pw = "Amkor1234";