메일전송시 전송시간 기록하기

This commit is contained in:
chi
2023-05-31 08:35:36 +09:00
parent 0da45cf931
commit d9e4974886
8 changed files with 412 additions and 169 deletions

View File

@@ -30,17 +30,6 @@
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fMailList));
FarPoint.Win.Spread.CellType.CheckBoxCellType checkBoxCellType1 = new FarPoint.Win.Spread.CellType.CheckBoxCellType();
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.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.CheckBoxCellType checkBoxCellType2 = new FarPoint.Win.Spread.CellType.CheckBoxCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType8 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType9 = new FarPoint.Win.Spread.CellType.TextCellType();
this.dSMail = new FCM0000.DSMail();
this.bs = new System.Windows.Forms.BindingSource(this.components);
this.ta = new FCM0000.DSMailTableAdapters.MailDataTableAdapter();
@@ -65,15 +54,24 @@
this.label2 = new System.Windows.Forms.Label();
this.dtSd = new System.Windows.Forms.DateTimePicker();
this.label1 = new System.Windows.Forms.Label();
this.fpSpread1 = new FarPoint.Win.Spread.FpSpread();
this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView();
this.arDatagridView1 = new arCtl.arDatagridView();
this.pdateDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.subjectDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.fromlistDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.tolistDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.ccDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
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();
((System.ComponentModel.ISupportInitialize)(this.dSMail)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit();
this.bn.SuspendLayout();
this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.arDatagridView1)).BeginInit();
this.SuspendLayout();
//
// dSMail
@@ -119,14 +117,14 @@
this.btAdd,
this.btDel,
this.btSave});
this.bn.Location = new System.Drawing.Point(0, 499);
this.bn.Location = new System.Drawing.Point(0, 528);
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(791, 25);
this.bn.Size = new System.Drawing.Size(855, 25);
this.bn.TabIndex = 0;
this.bn.Text = "bindingNavigator1";
//
@@ -182,7 +180,6 @@
//
this.bindingNavigatorPositionItem.AccessibleName = "위치";
this.bindingNavigatorPositionItem.AutoSize = false;
this.bindingNavigatorPositionItem.Font = new System.Drawing.Font("맑은 고딕", 9F);
this.bindingNavigatorPositionItem.Name = "bindingNavigatorPositionItem";
this.bindingNavigatorPositionItem.Size = new System.Drawing.Size(50, 23);
this.bindingNavigatorPositionItem.Text = "0";
@@ -236,13 +233,13 @@
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(791, 36);
this.panel1.Size = new System.Drawing.Size(855, 36);
this.panel1.TabIndex = 3;
//
// button1
//
this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.button1.Location = new System.Drawing.Point(721, 7);
this.button1.Location = new System.Drawing.Point(785, 7);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(64, 21);
this.button1.TabIndex = 5;
@@ -292,85 +289,122 @@
this.label1.TabIndex = 0;
this.label1.Text = "기간";
//
// fpSpread1
// arDatagridView1
//
this.fpSpread1.AccessibleDescription = "";
this.fpSpread1.Dock = System.Windows.Forms.DockStyle.Fill;
this.fpSpread1.Location = new System.Drawing.Point(0, 36);
this.fpSpread1.Name = "fpSpread1";
this.fpSpread1.Sheets.AddRange(new FarPoint.Win.Spread.SheetView[] {
this.fpSpread1_Sheet1});
this.fpSpread1.Size = new System.Drawing.Size(791, 463);
this.fpSpread1.TabIndex = 4;
this.arDatagridView1.A_DelCurrentCell = true;
this.arDatagridView1.A_EnterToTab = true;
this.arDatagridView1.A_KoreanField = null;
this.arDatagridView1.A_UpperField = null;
this.arDatagridView1.A_ViewRownumOnHeader = true;
this.arDatagridView1.AllowUserToAddRows = false;
this.arDatagridView1.AllowUserToDeleteRows = false;
this.arDatagridView1.AutoGenerateColumns = false;
this.arDatagridView1.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.arDatagridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.arDatagridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.pdateDataGridViewTextBoxColumn,
this.subjectDataGridViewTextBoxColumn,
this.fromlistDataGridViewTextBoxColumn,
this.tolistDataGridViewTextBoxColumn,
this.ccDataGridViewTextBoxColumn,
this.wuidDataGridViewTextBoxColumn,
this.wdateDataGridViewTextBoxColumn,
this.sendOKDataGridViewCheckBoxColumn,
this.suid,
this.sdate,
this.cateDataGridViewTextBoxColumn});
this.arDatagridView1.DataSource = this.bs;
this.arDatagridView1.Dock = System.Windows.Forms.DockStyle.Fill;
this.arDatagridView1.Location = new System.Drawing.Point(0, 36);
this.arDatagridView1.Name = "arDatagridView1";
this.arDatagridView1.ReadOnly = true;
this.arDatagridView1.RowTemplate.Height = 23;
this.arDatagridView1.Size = new System.Drawing.Size(855, 492);
this.arDatagridView1.TabIndex = 4;
//
// fpSpread1_Sheet1
// pdateDataGridViewTextBoxColumn
//
this.fpSpread1_Sheet1.Reset();
this.fpSpread1_Sheet1.SheetName = "Sheet1";
// Formulas and custom names must be loaded with R1C1 reference style
this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.R1C1;
this.fpSpread1_Sheet1.ColumnCount = 11;
this.fpSpread1_Sheet1.ActiveColumnIndex = -1;
this.fpSpread1_Sheet1.ActiveRowIndex = -1;
this.fpSpread1_Sheet1.AutoGenerateColumns = false;
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 0).Value = "전송";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 1).Value = "등록일";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 2).Value = "제목";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 3).Value = "발신";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 4).Value = "수신";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 5).Value = "숨은참조";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 6).Value = "참조";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 7).Value = "비고";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 8).Value = "전송";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 9).Value = "전송시간";
this.fpSpread1_Sheet1.ColumnHeader.Rows.Get(0).Height = 32F;
this.fpSpread1_Sheet1.Columns.Get(0).CellType = checkBoxCellType1;
this.fpSpread1_Sheet1.Columns.Get(0).DataField = "SendOK";
this.fpSpread1_Sheet1.Columns.Get(0).Label = "전송";
this.fpSpread1_Sheet1.Columns.Get(1).CellType = textCellType1;
this.fpSpread1_Sheet1.Columns.Get(1).DataField = "pdate";
this.fpSpread1_Sheet1.Columns.Get(1).Label = "등록일";
this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType2;
this.fpSpread1_Sheet1.Columns.Get(2).DataField = "subject";
this.fpSpread1_Sheet1.Columns.Get(2).Label = "제목";
this.fpSpread1_Sheet1.Columns.Get(3).CellType = textCellType3;
this.fpSpread1_Sheet1.Columns.Get(3).DataField = "fromlist";
this.fpSpread1_Sheet1.Columns.Get(3).Label = "발신";
this.fpSpread1_Sheet1.Columns.Get(4).CellType = textCellType4;
this.fpSpread1_Sheet1.Columns.Get(4).DataField = "tolist";
this.fpSpread1_Sheet1.Columns.Get(4).Label = "수신";
this.fpSpread1_Sheet1.Columns.Get(5).CellType = textCellType5;
this.fpSpread1_Sheet1.Columns.Get(5).DataField = "bcc";
this.fpSpread1_Sheet1.Columns.Get(5).Label = "숨은참조";
this.fpSpread1_Sheet1.Columns.Get(6).CellType = textCellType6;
this.fpSpread1_Sheet1.Columns.Get(6).DataField = "cc";
this.fpSpread1_Sheet1.Columns.Get(6).Label = "참조";
this.fpSpread1_Sheet1.Columns.Get(7).CellType = textCellType7;
this.fpSpread1_Sheet1.Columns.Get(7).DataField = "SendMsg";
this.fpSpread1_Sheet1.Columns.Get(7).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(7).Label = "비고";
this.fpSpread1_Sheet1.Columns.Get(8).CellType = checkBoxCellType2;
this.fpSpread1_Sheet1.Columns.Get(8).DataField = "SendOK";
this.fpSpread1_Sheet1.Columns.Get(8).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(8).Label = "전송";
this.fpSpread1_Sheet1.Columns.Get(8).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(9).CellType = textCellType8;
this.fpSpread1_Sheet1.Columns.Get(9).DataField = "SendMsg";
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(10).CellType = textCellType9;
this.fpSpread1_Sheet1.Columns.Get(10).DataField = "cate";
this.fpSpread1_Sheet1.DataSource = this.bs;
this.fpSpread1_Sheet1.RowHeader.Columns.Default.Resizable = false;
this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1;
this.pdateDataGridViewTextBoxColumn.DataPropertyName = "pdate";
this.pdateDataGridViewTextBoxColumn.HeaderText = "등록일";
this.pdateDataGridViewTextBoxColumn.Name = "pdateDataGridViewTextBoxColumn";
this.pdateDataGridViewTextBoxColumn.ReadOnly = true;
//
// subjectDataGridViewTextBoxColumn
//
this.subjectDataGridViewTextBoxColumn.DataPropertyName = "subject";
this.subjectDataGridViewTextBoxColumn.HeaderText = "제목";
this.subjectDataGridViewTextBoxColumn.Name = "subjectDataGridViewTextBoxColumn";
this.subjectDataGridViewTextBoxColumn.ReadOnly = true;
//
// fromlistDataGridViewTextBoxColumn
//
this.fromlistDataGridViewTextBoxColumn.DataPropertyName = "fromlist";
this.fromlistDataGridViewTextBoxColumn.HeaderText = "From";
this.fromlistDataGridViewTextBoxColumn.Name = "fromlistDataGridViewTextBoxColumn";
this.fromlistDataGridViewTextBoxColumn.ReadOnly = true;
//
// tolistDataGridViewTextBoxColumn
//
this.tolistDataGridViewTextBoxColumn.DataPropertyName = "tolist";
this.tolistDataGridViewTextBoxColumn.HeaderText = "To";
this.tolistDataGridViewTextBoxColumn.Name = "tolistDataGridViewTextBoxColumn";
this.tolistDataGridViewTextBoxColumn.ReadOnly = true;
//
// ccDataGridViewTextBoxColumn
//
this.ccDataGridViewTextBoxColumn.DataPropertyName = "cc";
this.ccDataGridViewTextBoxColumn.HeaderText = "CC";
this.ccDataGridViewTextBoxColumn.Name = "ccDataGridViewTextBoxColumn";
this.ccDataGridViewTextBoxColumn.ReadOnly = true;
//
// wuidDataGridViewTextBoxColumn
//
this.wuidDataGridViewTextBoxColumn.DataPropertyName = "wuid";
this.wuidDataGridViewTextBoxColumn.HeaderText = "작성자";
this.wuidDataGridViewTextBoxColumn.Name = "wuidDataGridViewTextBoxColumn";
this.wuidDataGridViewTextBoxColumn.ReadOnly = true;
//
// wdateDataGridViewTextBoxColumn
//
this.wdateDataGridViewTextBoxColumn.DataPropertyName = "wdate";
this.wdateDataGridViewTextBoxColumn.HeaderText = "작성일";
this.wdateDataGridViewTextBoxColumn.Name = "wdateDataGridViewTextBoxColumn";
this.wdateDataGridViewTextBoxColumn.ReadOnly = true;
//
// sendOKDataGridViewCheckBoxColumn
//
this.sendOKDataGridViewCheckBoxColumn.DataPropertyName = "SendOK";
this.sendOKDataGridViewCheckBoxColumn.HeaderText = "전송";
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";
this.cateDataGridViewTextBoxColumn.HeaderText = "분류";
this.cateDataGridViewTextBoxColumn.Name = "cateDataGridViewTextBoxColumn";
this.cateDataGridViewTextBoxColumn.ReadOnly = true;
//
// fMailList
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(791, 524);
this.Controls.Add(this.fpSpread1);
this.ClientSize = new System.Drawing.Size(855, 553);
this.Controls.Add(this.arDatagridView1);
this.Controls.Add(this.panel1);
this.Controls.Add(this.bn);
this.Name = "fMailList";
@@ -383,8 +417,7 @@
this.bn.PerformLayout();
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.arDatagridView1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
@@ -410,13 +443,23 @@
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator2;
private System.Windows.Forms.ToolStripButton btSave;
private System.Windows.Forms.Panel panel1;
private FarPoint.Win.Spread.FpSpread fpSpread1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.DateTimePicker dtEd;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.DateTimePicker dtSd;
private System.Windows.Forms.Button btRefresh;
private System.Windows.Forms.Button button1;
private FarPoint.Win.Spread.SheetView fpSpread1_Sheet1;
private arCtl.arDatagridView arDatagridView1;
private System.Windows.Forms.DataGridViewTextBoxColumn pdateDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn subjectDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn fromlistDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn tolistDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn ccDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn wuidDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn wdateDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewCheckBoxColumn sendOKDataGridViewCheckBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn suid;
private System.Windows.Forms.DataGridViewTextBoxColumn sdate;
private System.Windows.Forms.DataGridViewTextBoxColumn cateDataGridViewTextBoxColumn;
}
}

View File

@@ -22,7 +22,7 @@ namespace FCM0000.Mail
void fAutoSendSetting_FormClosed(object sender, FormClosedEventArgs e)
{
FCOMMON.Util.FPColsizeSave(this.fpSpread1, fn_fpcolsize);
//FCOMMON.Util.FPColsizeSave(this.fpSpread1, fn_fpcolsize);
}
private void mailDataBindingNavigatorSaveItem_Click(object sender, EventArgs e)
{
@@ -55,7 +55,8 @@ namespace FCM0000.Mail
{
System.Windows.Forms.MessageBox.Show(ex.Message);
}
FCOMMON.Util.FPColSizeLoad(ref this.fpSpread1, fn_fpcolsize);
this.arDatagridView1.AutoResizeColumns();
// FCOMMON.Util.FPColSizeLoad(ref this.fpSpread1, fn_fpcolsize);
}
private void btRefresh_Click(object sender, EventArgs e)
{

View File

@@ -204,7 +204,10 @@
dtINAGGiDUDGyGpoawAxeNSAQWkAORiqnRLAwAAA9EMMU8Daa3MAAAAASUVORK5CYII=
</value>
</data>
<metadata name="fpSpread1_Sheet1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>371, 17</value>
<metadata name="suid.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="sdate.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>