190806 chi 품목정보에서 카테고리 없는 자료도 보이게 함
품목정보 정렬 기능 추가 190731 로그기록화면(beta)추가
This commit is contained in:
		
							
								
								
									
										257
									
								
								SubProject/FLG0000/LogData/Add.Designer.cs
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										257
									
								
								SubProject/FLG0000/LogData/Add.Designer.cs
									
									
									
										generated
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,257 @@ | ||||
| namespace FLG0000.LogData | ||||
| { | ||||
|     partial class Add | ||||
|     { | ||||
|         /// <summary> | ||||
|         /// Required designer variable. | ||||
|         /// </summary> | ||||
|         private System.ComponentModel.IContainer components = null; | ||||
|  | ||||
|         /// <summary> | ||||
|         /// Clean up any resources being used. | ||||
|         /// </summary> | ||||
|         /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> | ||||
|         protected override void Dispose(bool disposing) | ||||
|         { | ||||
|             if (disposing && (components != null)) | ||||
|             { | ||||
|                 components.Dispose(); | ||||
|             } | ||||
|             base.Dispose(disposing); | ||||
|         } | ||||
|  | ||||
|         #region Windows Form Designer generated code | ||||
|  | ||||
|         /// <summary> | ||||
|         /// Required method for Designer support - do not modify | ||||
|         /// the contents of this method with the code editor. | ||||
|         /// </summary> | ||||
|         private void InitializeComponent() | ||||
|         { | ||||
|             this.components = new System.ComponentModel.Container(); | ||||
|             System.Windows.Forms.Label deptLabel; | ||||
|             System.Windows.Forms.Label label1; | ||||
|             System.Windows.Forms.Label label2; | ||||
|             this.tbRemark = new System.Windows.Forms.TextBox(); | ||||
|             this.dtPdate = new System.Windows.Forms.DateTimePicker(); | ||||
|             this.btSave = new System.Windows.Forms.Button(); | ||||
|             this.linkLabel7 = new System.Windows.Forms.LinkLabel(); | ||||
|             this.linkLabel6 = new System.Windows.Forms.LinkLabel(); | ||||
|             this.linkLabel5 = new System.Windows.Forms.LinkLabel(); | ||||
|             this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); | ||||
|             this.dsLog = new FLG0000.DSLog(); | ||||
|             this.bs = new System.Windows.Forms.BindingSource(this.components); | ||||
|             this.ta = new FLG0000.DSLogTableAdapters.LogDataTableAdapter(); | ||||
|             this.tbLocation = new System.Windows.Forms.ComboBox(); | ||||
|             this.tbReason = new System.Windows.Forms.ComboBox(); | ||||
|             this.tbResult = new System.Windows.Forms.ComboBox(); | ||||
|             this.textBox1 = new System.Windows.Forms.TextBox(); | ||||
|             deptLabel = new System.Windows.Forms.Label(); | ||||
|             label1 = new System.Windows.Forms.Label(); | ||||
|             label2 = new System.Windows.Forms.Label(); | ||||
|             ((System.ComponentModel.ISupportInitialize)(this.dsLog)).BeginInit(); | ||||
|             ((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit(); | ||||
|             this.SuspendLayout(); | ||||
|             //  | ||||
|             // deptLabel | ||||
|             //  | ||||
|             deptLabel.AutoSize = true; | ||||
|             deptLabel.Location = new System.Drawing.Point(29, 262); | ||||
|             deptLabel.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0); | ||||
|             deptLabel.Name = "deptLabel"; | ||||
|             deptLabel.Size = new System.Drawing.Size(52, 28); | ||||
|             deptLabel.TabIndex = 0; | ||||
|             deptLabel.Text = "비고"; | ||||
|             //  | ||||
|             // label1 | ||||
|             //  | ||||
|             label1.AutoSize = true; | ||||
|             label1.Location = new System.Drawing.Point(9, 19); | ||||
|             label1.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0); | ||||
|             label1.Name = "label1"; | ||||
|             label1.Size = new System.Drawing.Size(72, 28); | ||||
|             label1.TabIndex = 0; | ||||
|             label1.Text = "입력일"; | ||||
|             //  | ||||
|             // tbRemark | ||||
|             //  | ||||
|             this.tbRemark.ImeMode = System.Windows.Forms.ImeMode.Hangul; | ||||
|             this.tbRemark.Location = new System.Drawing.Point(90, 257); | ||||
|             this.tbRemark.Margin = new System.Windows.Forms.Padding(5, 6, 5, 6); | ||||
|             this.tbRemark.MaxLength = 500; | ||||
|             this.tbRemark.Name = "tbRemark"; | ||||
|             this.tbRemark.Size = new System.Drawing.Size(465, 34); | ||||
|             this.tbRemark.TabIndex = 7; | ||||
|             this.tbRemark.TabStop = false; | ||||
|             //  | ||||
|             // dtPdate | ||||
|             //  | ||||
|             this.dtPdate.Location = new System.Drawing.Point(90, 16); | ||||
|             this.dtPdate.Margin = new System.Windows.Forms.Padding(5, 6, 5, 6); | ||||
|             this.dtPdate.Name = "dtPdate"; | ||||
|             this.dtPdate.Size = new System.Drawing.Size(465, 34); | ||||
|             this.dtPdate.TabIndex = 1; | ||||
|             //  | ||||
|             // btSave | ||||
|             //  | ||||
|             this.btSave.Location = new System.Drawing.Point(23, 303); | ||||
|             this.btSave.Margin = new System.Windows.Forms.Padding(5, 6, 5, 6); | ||||
|             this.btSave.Name = "btSave"; | ||||
|             this.btSave.Size = new System.Drawing.Size(532, 69); | ||||
|             this.btSave.TabIndex = 8; | ||||
|             this.btSave.Text = "저장(&S)"; | ||||
|             this.btSave.UseVisualStyleBackColor = true; | ||||
|             this.btSave.Click += new System.EventHandler(this.button1_Click); | ||||
|             //  | ||||
|             // linkLabel7 | ||||
|             //  | ||||
|             this.linkLabel7.AutoSize = true; | ||||
|             this.linkLabel7.Location = new System.Drawing.Point(29, 212); | ||||
|             this.linkLabel7.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0); | ||||
|             this.linkLabel7.Name = "linkLabel7"; | ||||
|             this.linkLabel7.Size = new System.Drawing.Size(52, 28); | ||||
|             this.linkLabel7.TabIndex = 12; | ||||
|             this.linkLabel7.Text = "결과"; | ||||
|             this.linkLabel7.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel7_LinkClicked); | ||||
|             //  | ||||
|             // linkLabel6 | ||||
|             //  | ||||
|             this.linkLabel6.AutoSize = true; | ||||
|             this.linkLabel6.Location = new System.Drawing.Point(29, 160); | ||||
|             this.linkLabel6.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0); | ||||
|             this.linkLabel6.Name = "linkLabel6"; | ||||
|             this.linkLabel6.Size = new System.Drawing.Size(52, 28); | ||||
|             this.linkLabel6.TabIndex = 11; | ||||
|             this.linkLabel6.Text = "원인"; | ||||
|             this.linkLabel6.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel6_LinkClicked); | ||||
|             //  | ||||
|             // linkLabel5 | ||||
|             //  | ||||
|             this.linkLabel5.AutoSize = true; | ||||
|             this.linkLabel5.Location = new System.Drawing.Point(29, 108); | ||||
|             this.linkLabel5.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0); | ||||
|             this.linkLabel5.Name = "linkLabel5"; | ||||
|             this.linkLabel5.Size = new System.Drawing.Size(52, 28); | ||||
|             this.linkLabel5.TabIndex = 10; | ||||
|             this.linkLabel5.Text = "위치"; | ||||
|             this.linkLabel5.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel5_LinkClicked); | ||||
|             //  | ||||
|             // dsLog | ||||
|             //  | ||||
|             this.dsLog.DataSetName = "dsPurchase"; | ||||
|             this.dsLog.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; | ||||
|             //  | ||||
|             // bs | ||||
|             //  | ||||
|             this.bs.DataMember = "LogData"; | ||||
|             this.bs.DataSource = this.dsLog; | ||||
|             //  | ||||
|             // ta | ||||
|             //  | ||||
|             this.ta.ClearBeforeFill = true; | ||||
|             //  | ||||
|             // tbLocation | ||||
|             //  | ||||
|             this.tbLocation.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; | ||||
|             this.tbLocation.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; | ||||
|             this.tbLocation.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); | ||||
|             this.tbLocation.FormattingEnabled = true; | ||||
|             this.tbLocation.Location = new System.Drawing.Point(90, 104); | ||||
|             this.tbLocation.Name = "tbLocation"; | ||||
|             this.tbLocation.Size = new System.Drawing.Size(465, 36); | ||||
|             this.tbLocation.TabIndex = 4; | ||||
|             //  | ||||
|             // tbReason | ||||
|             //  | ||||
|             this.tbReason.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; | ||||
|             this.tbReason.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; | ||||
|             this.tbReason.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); | ||||
|             this.tbReason.FormattingEnabled = true; | ||||
|             this.tbReason.Location = new System.Drawing.Point(90, 155); | ||||
|             this.tbReason.Name = "tbReason"; | ||||
|             this.tbReason.Size = new System.Drawing.Size(465, 36); | ||||
|             this.tbReason.TabIndex = 5; | ||||
|             //  | ||||
|             // tbResult | ||||
|             //  | ||||
|             this.tbResult.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; | ||||
|             this.tbResult.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; | ||||
|             this.tbResult.BackColor = System.Drawing.Color.White; | ||||
|             this.tbResult.FormattingEnabled = true; | ||||
|             this.tbResult.Location = new System.Drawing.Point(90, 207); | ||||
|             this.tbResult.Name = "tbResult"; | ||||
|             this.tbResult.Size = new System.Drawing.Size(465, 36); | ||||
|             this.tbResult.TabIndex = 6; | ||||
|             //  | ||||
|             // textBox1 | ||||
|             //  | ||||
|             this.textBox1.ImeMode = System.Windows.Forms.ImeMode.Hangul; | ||||
|             this.textBox1.Location = new System.Drawing.Point(90, 60); | ||||
|             this.textBox1.Margin = new System.Windows.Forms.Padding(5, 6, 5, 6); | ||||
|             this.textBox1.MaxLength = 500; | ||||
|             this.textBox1.Name = "textBox1"; | ||||
|             this.textBox1.Size = new System.Drawing.Size(465, 34); | ||||
|             this.textBox1.TabIndex = 3; | ||||
|             this.textBox1.TabStop = false; | ||||
|             //  | ||||
|             // label2 | ||||
|             //  | ||||
|             label2.AutoSize = true; | ||||
|             label2.Location = new System.Drawing.Point(29, 64); | ||||
|             label2.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0); | ||||
|             label2.Name = "label2"; | ||||
|             label2.Size = new System.Drawing.Size(46, 28); | ||||
|             label2.TabIndex = 9; | ||||
|             label2.Text = "S/N"; | ||||
|             //  | ||||
|             // Add | ||||
|             //  | ||||
|             this.AutoScaleDimensions = new System.Drawing.SizeF(11F, 28F); | ||||
|             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; | ||||
|             this.ClientSize = new System.Drawing.Size(571, 389); | ||||
|             this.Controls.Add(this.textBox1); | ||||
|             this.Controls.Add(label2); | ||||
|             this.Controls.Add(this.tbResult); | ||||
|             this.Controls.Add(this.tbReason); | ||||
|             this.Controls.Add(this.tbLocation); | ||||
|             this.Controls.Add(this.linkLabel7); | ||||
|             this.Controls.Add(this.linkLabel6); | ||||
|             this.Controls.Add(this.btSave); | ||||
|             this.Controls.Add(this.linkLabel5); | ||||
|             this.Controls.Add(this.dtPdate); | ||||
|             this.Controls.Add(this.tbRemark); | ||||
|             this.Controls.Add(label1); | ||||
|             this.Controls.Add(deptLabel); | ||||
|             this.Font = new System.Drawing.Font("맑은 고딕", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); | ||||
|             this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; | ||||
|             this.Margin = new System.Windows.Forms.Padding(5, 7, 5, 7); | ||||
|             this.MaximizeBox = false; | ||||
|             this.MinimizeBox = false; | ||||
|             this.Name = "Add"; | ||||
|             this.Text = "로그 데이터 추가/변경"; | ||||
|             this.Load += new System.EventHandler(this.@__Load); | ||||
|             ((System.ComponentModel.ISupportInitialize)(this.dsLog)).EndInit(); | ||||
|             ((System.ComponentModel.ISupportInitialize)(this.bs)).EndInit(); | ||||
|             this.ResumeLayout(false); | ||||
|             this.PerformLayout(); | ||||
|  | ||||
|         } | ||||
|  | ||||
|         #endregion | ||||
|  | ||||
|         private System.Windows.Forms.TextBox tbRemark; | ||||
|         private System.Windows.Forms.DateTimePicker dtPdate; | ||||
|         private System.Windows.Forms.Button btSave; | ||||
|         private DSLog dsLog; | ||||
|         private System.Windows.Forms.BindingSource bs; | ||||
|         private DSLogTableAdapters.LogDataTableAdapter ta; | ||||
|         private System.Windows.Forms.ToolTip toolTip1; | ||||
|         private System.Windows.Forms.LinkLabel linkLabel5; | ||||
|         private System.Windows.Forms.LinkLabel linkLabel6; | ||||
|         private System.Windows.Forms.LinkLabel linkLabel7; | ||||
|         private System.Windows.Forms.ComboBox tbLocation; | ||||
|         private System.Windows.Forms.ComboBox tbReason; | ||||
|         private System.Windows.Forms.ComboBox tbResult; | ||||
|         private System.Windows.Forms.TextBox textBox1; | ||||
|     } | ||||
| } | ||||
							
								
								
									
										291
									
								
								SubProject/FLG0000/LogData/Add.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										291
									
								
								SubProject/FLG0000/LogData/Add.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,291 @@ | ||||
| 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; | ||||
|  | ||||
| namespace FLG0000.LogData | ||||
| { | ||||
|     public partial class Add : Form | ||||
|     { | ||||
|         BindingSource bsManu; | ||||
|         BindingSource bsModel; | ||||
|         DSLog.LogDataRow dr; | ||||
|         public Boolean repeatAdd = false; | ||||
|         public Add(DSLog.LogDataRow dr_) | ||||
|         { | ||||
|             InitializeComponent(); | ||||
|             bsManu = new BindingSource(); | ||||
|             bsModel = new BindingSource(); | ||||
|             this.dr = dr_; | ||||
|             this.KeyPreview = true; | ||||
|             this.StartPosition = FormStartPosition.CenterScreen; | ||||
|             this.KeyDown += (s1, e1) => | ||||
|             { | ||||
|                 if (e1.KeyCode == Keys.Escape) this.Close(); | ||||
|             }; | ||||
|  | ||||
|             foreach (Control ctl in this.Controls) | ||||
|             { | ||||
|                 if (ctl.GetType() == typeof(TextBox) || ctl.GetType() == typeof(ComboBox)) | ||||
|                 { | ||||
|                     ctl.KeyDown += ctl_KeyDown; | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
|  | ||||
|  | ||||
|  | ||||
|         private void __Load(object sender, EventArgs e) | ||||
|         { | ||||
|  | ||||
|             ////장비제조             | ||||
|             //var dt_dept = FCOMMON.DBM.getCodeTable("06"); | ||||
|             //bsManu.DataSource = dt_dept; | ||||
|             //this.cbEQManu.DisplayMember = "Value"; | ||||
|             //this.cbEQManu.ValueMember = "Value"; | ||||
|             //this.cbEQManu.DataSource = bsManu; | ||||
|  | ||||
|             dtPdate.Value = DateTime.Parse(dr.pdate); | ||||
|             tbLocation.Text = dr.location; | ||||
|             tbReason.Text = dr.reason; | ||||
|             tbResult.Text = dr.result; | ||||
|             tbRemark.Text = dr.remark; | ||||
|  | ||||
|             this.Show(); | ||||
|             Application.DoEvents(); | ||||
|             textBox1.Focus(); | ||||
|  | ||||
|         } | ||||
|  | ||||
|         void ctl_KeyDown(object sender, KeyEventArgs e) | ||||
|         { | ||||
|             if (e.KeyCode == Keys.Enter) | ||||
|             { | ||||
|                 Control ctl = sender as Control; | ||||
|                 string nm = ctl.Name.ToLower(); | ||||
|                 string search = ctl.Text.Trim(); | ||||
|  | ||||
|                 Console.WriteLine("inner keydown " + nm + ":" + search); | ||||
|  | ||||
|                 switch (nm) | ||||
|                 { | ||||
|                     case "tblocation": | ||||
|                         if (search == "") | ||||
|                             Lov_Location(search, false); | ||||
|                         else if (search.Contains("L")) //바코드입력 | ||||
|                         { | ||||
|                             var grpdata = FCOMMON.DBM.getCodeBySvalue("19", search); | ||||
|                             if(grpdata.title != null) | ||||
|                             { | ||||
|                                 ctl.Text = grpdata.title; | ||||
|                                 SendKeys.Send("{TAB}"); | ||||
|                             }    | ||||
|                             else Lov_Location(search, false); | ||||
|                         } | ||||
|                         break; | ||||
|                     case "tbreason": | ||||
|                         if (search == "") | ||||
|                             Lov_Reason(search, false); | ||||
|                         else if (search.StartsWith("L")) //바코드입력 | ||||
|                         { | ||||
|                             var grpdata = FCOMMON.DBM.getCodeBySvalue("19", search); | ||||
|                             if (grpdata.title != null) | ||||
|                             { | ||||
|                                 ctl.Text = grpdata.title; | ||||
|                                 SendKeys.Send("{TAB}"); | ||||
|                             } | ||||
|                             else Lov_Reason(search, false); | ||||
|                         } | ||||
|                         break; | ||||
|                     case "tbresult": | ||||
|                         if (search.StartsWith("L")) | ||||
|                         { | ||||
|                             var grpdata = FCOMMON.DBM.getCodeBySvalue("19", search); | ||||
|                             if (grpdata.title != null) | ||||
|                             { | ||||
|                                 ctl.Text = grpdata.title; | ||||
|                                 btSave.Focus(); | ||||
|                             } | ||||
|                             else Lov_Result(search, false); | ||||
|                         } | ||||
|                         else if (search != "") | ||||
|                             Lov_Result(search, false); | ||||
|                         break; | ||||
|                     default: | ||||
|                         SendKeys.Send("{TAB}"); | ||||
|                         break; | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
|         private void linkLabel5_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) | ||||
|         { | ||||
|             Lov_Location("", true); | ||||
|         } | ||||
|  | ||||
|         void Lov_Location(string search, Boolean allowAll) | ||||
|         { | ||||
|             var f = new Lov_LogItem("00", "00"); | ||||
|             if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK) | ||||
|             { | ||||
|                 this.tbLocation.Text = string.Format("{0}|{1}", f.tbGrp.Text, f.tbItem.Text); | ||||
|             } | ||||
|             //if (search == "" && allowAll == false) | ||||
|             //{ | ||||
|             //    FCOMMON.Util.MsgE("품명은 필수 값 입니다"); | ||||
|             //    tbLocation.Focus(); | ||||
|             //    return; | ||||
|             //} | ||||
|             //else if (search.ToLower() != tbLocation.Tag.ToString().ToLower() || tbPumIDX.Text == "-1" || tbPumIDX.Text == "") //값이 바뀌엇다면 검색을 해준다. | ||||
|             //{ | ||||
|             //    var f = new FCM0000.fLovItem(search); | ||||
|             //    if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK) | ||||
|             //    { | ||||
|             //        //인덱스값이 다르면 모델 및 가격을 업데이트 한다. | ||||
|             //        tbLocation.Text = f.itemName; | ||||
|             //        tbLocation.Tag = f.itemName; | ||||
|  | ||||
|             //        this.tbPumIDX.Text = f.item.ToString(); | ||||
|             //        this.tbPumModel.Text = f.itemmodel; | ||||
|             //        this.tbPumPrice.Text = f.itemprice.ToString(); | ||||
|             //        this.tbSID.Text = f.SID; | ||||
|             //        this.tbSID.Tag = f.SID; | ||||
|             //        this.tbPumUnit.Text = f.itemUnit; //181214 | ||||
|  | ||||
|             //        this.tbPumModel.Enabled = false; | ||||
|             //        this.tbPumUnit.Enabled = false; | ||||
|             //        if (tbSID.Text != "") tbSID.Enabled = false; | ||||
|             //        else tbSID.Enabled = true; | ||||
|  | ||||
|             //        //제품을 찾앗다면 suppy 등을 업데이트 해준다. | ||||
|             //        var pcInfo = FCOMMON.DBM.getLastPurchaseInfo(f.item); | ||||
|             //        if (pcInfo.idx != -1) | ||||
|             //        { | ||||
|             //            tbReason.Text = pcInfo.supply; | ||||
|             //            tbSupplyIndex.Text = pcInfo.supplyidx.ToString(); | ||||
|             //            if (pcInfo.project != "" && tbResult.Text == "") | ||||
|             //                tbResult.Text = pcInfo.project; | ||||
|             //        } | ||||
|             //        else | ||||
|             //        { | ||||
|             //            tbReason.Text = f.itemSupply; | ||||
|             //            tbSupplyIndex.Text = f.itemSupplyidx.ToString(); | ||||
|             //        } | ||||
|  | ||||
|             //        //display image | ||||
|             //        var image = FCOMMON.DBM.GetImageData("Items", "image", int.Parse(tbPumIDX.Text)); | ||||
|             //        var oimage = this.pictureBox1.Image; | ||||
|             //        this.pictureBox1.Image = image; | ||||
|             //        if (oimage != null) oimage.Dispose(); | ||||
|             //    } | ||||
|             //} | ||||
|             //this.tbPumQty.Focus(); | ||||
|         } | ||||
|         void Lov_Reason(string search, Boolean allowAll) | ||||
|         { | ||||
|             var f = new Lov_LogItem("00", "01"); | ||||
|             if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK) | ||||
|             { | ||||
|                 this.tbReason.Text = string.Format("{0}|{1}", f.tbGrp.Text, f.tbItem.Text); | ||||
|             } | ||||
|             //if (search != "" || allowAll == true) | ||||
|             //{ | ||||
|             //    var f = new FCM0000.fLovProject(search); | ||||
|             //    if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK) | ||||
|             //    { | ||||
|             //        this.tbResult.Text = f.Title; | ||||
|             //        this.tbResult.Tag = f.Title; | ||||
|             //        this.tbProjectIndex.Text = f.Index.ToString(); | ||||
|             //        btSave.Focus(); | ||||
|             //    } | ||||
|             //    else | ||||
|             //    { | ||||
|             //        tbResult.SelectAll(); | ||||
|             //        tbResult.Focus(); | ||||
|             //    } | ||||
|             //} | ||||
|             //else this.btSave.Focus(); | ||||
|         } | ||||
|         void Lov_Result(string search, Boolean allowAll) | ||||
|         { | ||||
|             var f = new Lov_LogItem("00", "02"); | ||||
|             if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK) | ||||
|             { | ||||
|                 this.tbResult.Text = string.Format("{0}|{1}", f.tbGrp.Text, f.tbItem.Text); | ||||
|             } | ||||
|             //if (search != "" || allowAll == true) | ||||
|             //{ | ||||
|             //    FCM0000.fLovSupply f = new FCM0000.fLovSupply(search); | ||||
|             //    if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK) | ||||
|             //    { | ||||
|             //        tbReason.Text = f.Title; | ||||
|             //        tbReason.Tag = f.Title; | ||||
|             //        tbSupplyIndex.Text = f.Index.ToString(); | ||||
|             //        this.tbResult.Focus(); | ||||
|             //    } | ||||
|             //    else | ||||
|             //    { | ||||
|             //        tbReason.Focus(); | ||||
|             //        tbReason.SelectAll(); | ||||
|             //    } | ||||
|             //} | ||||
|             //else tbResult.Focus(); | ||||
|         } | ||||
|         private bool saveData() | ||||
|         { | ||||
|             this.Validate(); | ||||
|  | ||||
|             if (tbLocation.Text.isEmpty()) | ||||
|             { | ||||
|                 FCOMMON.Util.MsgE("위치정보가 없습니다."); | ||||
|                 tbLocation.Focus(); | ||||
|                 return false; | ||||
|             } | ||||
|  | ||||
|             if (tbReason.Text == "") | ||||
|             { | ||||
|                 FCOMMON.Util.MsgE("원인을 입력하세요."); | ||||
|                 tbReason.Focus(); | ||||
|                 return false; | ||||
|             } | ||||
|             //if (tbResult.Text == "") | ||||
|             //{ | ||||
|             //    FCOMMON.Util.MsgE("결과를 입력하세요."); | ||||
|             //    tbResult.Focus(); | ||||
|             //    return false; | ||||
|             //} | ||||
|  | ||||
|             dr.gcode = FCOMMON.info.Login.gcode; | ||||
|             dr.pdate = this.dtPdate.Value.ToShortDateString(); | ||||
|             dr.location = tbLocation.Text.Trim(); | ||||
|             dr.reason = tbReason.Text.Trim(); | ||||
|             dr.result = tbResult.Text.Trim(); | ||||
|             dr.remark = tbRemark.Text.Trim(); | ||||
|             dr.EndEdit(); | ||||
|             return true; | ||||
|         } | ||||
|  | ||||
|         private void button1_Click(object sender, EventArgs e) | ||||
|         { | ||||
|             if (!saveData()) return; | ||||
|             DialogResult = System.Windows.Forms.DialogResult.OK; | ||||
|         } | ||||
|  | ||||
|  | ||||
|         private void linkLabel6_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) | ||||
|         { | ||||
|             //lov 공급처 | ||||
|             Lov_Reason("", true); | ||||
|         } | ||||
|  | ||||
|         private void linkLabel7_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) | ||||
|         { | ||||
|             //lov 프로젝트 | ||||
|             Lov_Result("", true); | ||||
|         } | ||||
|  | ||||
|     } | ||||
| } | ||||
							
								
								
									
										144
									
								
								SubProject/FLG0000/LogData/Add.resx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										144
									
								
								SubProject/FLG0000/LogData/Add.resx
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,144 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <root> | ||||
|   <!--  | ||||
|     Microsoft ResX Schema  | ||||
|      | ||||
|     Version 2.0 | ||||
|      | ||||
|     The primary goals of this format is to allow a simple XML format  | ||||
|     that is mostly human readable. The generation and parsing of the  | ||||
|     various data types are done through the TypeConverter classes  | ||||
|     associated with the data types. | ||||
|      | ||||
|     Example: | ||||
|      | ||||
|     ... ado.net/XML headers & schema ... | ||||
|     <resheader name="resmimetype">text/microsoft-resx</resheader> | ||||
|     <resheader name="version">2.0</resheader> | ||||
|     <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> | ||||
|     <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> | ||||
|     <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> | ||||
|     <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> | ||||
|     <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> | ||||
|         <value>[base64 mime encoded serialized .NET Framework object]</value> | ||||
|     </data> | ||||
|     <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | ||||
|         <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> | ||||
|         <comment>This is a comment</comment> | ||||
|     </data> | ||||
|                  | ||||
|     There are any number of "resheader" rows that contain simple  | ||||
|     name/value pairs. | ||||
|      | ||||
|     Each data row contains a name, and value. The row also contains a  | ||||
|     type or mimetype. Type corresponds to a .NET class that support  | ||||
|     text/value conversion through the TypeConverter architecture.  | ||||
|     Classes that don't support this are serialized and stored with the  | ||||
|     mimetype set. | ||||
|      | ||||
|     The mimetype is used for serialized objects, and tells the  | ||||
|     ResXResourceReader how to depersist the object. This is currently not  | ||||
|     extensible. For a given mimetype the value must be set accordingly: | ||||
|      | ||||
|     Note - application/x-microsoft.net.object.binary.base64 is the format  | ||||
|     that the ResXResourceWriter will generate, however the reader can  | ||||
|     read any of the formats listed below. | ||||
|      | ||||
|     mimetype: application/x-microsoft.net.object.binary.base64 | ||||
|     value   : The object must be serialized with  | ||||
|             : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter | ||||
|             : and then encoded with base64 encoding. | ||||
|      | ||||
|     mimetype: application/x-microsoft.net.object.soap.base64 | ||||
|     value   : The object must be serialized with  | ||||
|             : System.Runtime.Serialization.Formatters.Soap.SoapFormatter | ||||
|             : and then encoded with base64 encoding. | ||||
|  | ||||
|     mimetype: application/x-microsoft.net.object.bytearray.base64 | ||||
|     value   : The object must be serialized into a byte array  | ||||
|             : using a System.ComponentModel.TypeConverter | ||||
|             : and then encoded with base64 encoding. | ||||
|     --> | ||||
|   <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> | ||||
|     <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> | ||||
|     <xsd:element name="root" msdata:IsDataSet="true"> | ||||
|       <xsd:complexType> | ||||
|         <xsd:choice maxOccurs="unbounded"> | ||||
|           <xsd:element name="metadata"> | ||||
|             <xsd:complexType> | ||||
|               <xsd:sequence> | ||||
|                 <xsd:element name="value" type="xsd:string" minOccurs="0" /> | ||||
|               </xsd:sequence> | ||||
|               <xsd:attribute name="name" use="required" type="xsd:string" /> | ||||
|               <xsd:attribute name="type" type="xsd:string" /> | ||||
|               <xsd:attribute name="mimetype" type="xsd:string" /> | ||||
|               <xsd:attribute ref="xml:space" /> | ||||
|             </xsd:complexType> | ||||
|           </xsd:element> | ||||
|           <xsd:element name="assembly"> | ||||
|             <xsd:complexType> | ||||
|               <xsd:attribute name="alias" type="xsd:string" /> | ||||
|               <xsd:attribute name="name" type="xsd:string" /> | ||||
|             </xsd:complexType> | ||||
|           </xsd:element> | ||||
|           <xsd:element name="data"> | ||||
|             <xsd:complexType> | ||||
|               <xsd:sequence> | ||||
|                 <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | ||||
|                 <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> | ||||
|               </xsd:sequence> | ||||
|               <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> | ||||
|               <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> | ||||
|               <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> | ||||
|               <xsd:attribute ref="xml:space" /> | ||||
|             </xsd:complexType> | ||||
|           </xsd:element> | ||||
|           <xsd:element name="resheader"> | ||||
|             <xsd:complexType> | ||||
|               <xsd:sequence> | ||||
|                 <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | ||||
|               </xsd:sequence> | ||||
|               <xsd:attribute name="name" type="xsd:string" use="required" /> | ||||
|             </xsd:complexType> | ||||
|           </xsd:element> | ||||
|         </xsd:choice> | ||||
|       </xsd:complexType> | ||||
|     </xsd:element> | ||||
|   </xsd:schema> | ||||
|   <resheader name="resmimetype"> | ||||
|     <value>text/microsoft-resx</value> | ||||
|   </resheader> | ||||
|   <resheader name="version"> | ||||
|     <value>2.0</value> | ||||
|   </resheader> | ||||
|   <resheader name="reader"> | ||||
|     <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | ||||
|   </resheader> | ||||
|   <resheader name="writer"> | ||||
|     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | ||||
|   </resheader> | ||||
|   <metadata name="deptLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | ||||
|     <value>False</value> | ||||
|   </metadata> | ||||
|   <metadata name="label1.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | ||||
|     <value>False</value> | ||||
|   </metadata> | ||||
|   <metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> | ||||
|     <value>257, 17</value> | ||||
|   </metadata> | ||||
|   <metadata name="dsLog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> | ||||
|     <value>17, 17</value> | ||||
|   </metadata> | ||||
|   <metadata name="bs.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> | ||||
|     <value>131, 17</value> | ||||
|   </metadata> | ||||
|   <metadata name="ta.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> | ||||
|     <value>195, 17</value> | ||||
|   </metadata> | ||||
|   <metadata name="label2.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | ||||
|     <value>False</value> | ||||
|   </metadata> | ||||
|   <metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | ||||
|     <value>58</value> | ||||
|   </metadata> | ||||
| </root> | ||||
							
								
								
									
										684
									
								
								SubProject/FLG0000/LogData/List.Designer.cs
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										684
									
								
								SubProject/FLG0000/LogData/List.Designer.cs
									
									
									
										generated
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,684 @@ | ||||
| namespace FLG0000.LogData | ||||
| { | ||||
|     partial class List | ||||
|     { | ||||
|         /// <summary>  | ||||
|         /// 필수 디자이너 변수입니다. | ||||
|         /// </summary> | ||||
|         private System.ComponentModel.IContainer components = null; | ||||
|  | ||||
|         /// <summary>  | ||||
|         /// 사용 중인 모든 리소스를 정리합니다. | ||||
|         /// </summary> | ||||
|         /// <param name="disposing">관리되는 리소스를 삭제해야 하면 true이고, 그렇지 않으면 false입니다.</param> | ||||
|         protected override void Dispose(bool disposing) | ||||
|         { | ||||
|             if (disposing && (components != null)) | ||||
|             { | ||||
|                 components.Dispose(); | ||||
|             } | ||||
|             base.Dispose(disposing); | ||||
|         } | ||||
|  | ||||
|         #region 구성 요소 디자이너에서 생성한 코드 | ||||
|  | ||||
|         /// <summary>  | ||||
|         /// 디자이너 지원에 필요한 메서드입니다.  | ||||
|         /// 이 메서드의 내용을 코드 편집기로 수정하지 마십시오. | ||||
|         /// </summary> | ||||
|         private void InitializeComponent() | ||||
|         { | ||||
|             this.components = new System.ComponentModel.Container(); | ||||
|             System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(List)); | ||||
|             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.TextCellType textCellType12 = new FarPoint.Win.Spread.CellType.TextCellType(); | ||||
|             FarPoint.Win.Spread.CellType.TextCellType textCellType13 = new FarPoint.Win.Spread.CellType.TextCellType(); | ||||
|             FarPoint.Win.Spread.CellType.TextCellType textCellType14 = new FarPoint.Win.Spread.CellType.TextCellType(); | ||||
|             this.dsPurchase = new FLG0000.DSLog(); | ||||
|             this.bs = new System.Windows.Forms.BindingSource(this.components); | ||||
|             this.ta = new FLG0000.DSLogTableAdapters.LogDataTableAdapter(); | ||||
|             this.tam = new FLG0000.DSLogTableAdapters.TableAdapterManager(); | ||||
|             this.bn = new System.Windows.Forms.BindingNavigator(this.components); | ||||
|             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.btAdd = new System.Windows.Forms.ToolStripButton(); | ||||
|             this.btCopy = new System.Windows.Forms.ToolStripButton(); | ||||
|             this.btEdit = new System.Windows.Forms.ToolStripButton(); | ||||
|             this.btDel = new System.Windows.Forms.ToolStripButton(); | ||||
|             this.btSave = new System.Windows.Forms.ToolStripButton(); | ||||
|             this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); | ||||
|             this.toolStripLabel1 = new System.Windows.Forms.ToolStripLabel(); | ||||
|             this.lbSum = new System.Windows.Forms.ToolStripLabel(); | ||||
|             this.toolStripLabel5 = new System.Windows.Forms.ToolStripLabel(); | ||||
|             this.toolStripLabel2 = new System.Windows.Forms.ToolStripLabel(); | ||||
|             this.tbFind = new System.Windows.Forms.ToolStripTextBox(); | ||||
|             this.btFind = new System.Windows.Forms.ToolStripButton(); | ||||
|             this.toolStripSeparator6 = new System.Windows.Forms.ToolStripSeparator(); | ||||
|             this.cm1 = new System.Windows.Forms.ContextMenuStrip(this.components); | ||||
|             this.columnSizeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); | ||||
|             this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); | ||||
|             this.loadToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); | ||||
|             this.resetToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); | ||||
|             this.exportDataToolStripMenuItem = 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.편집ToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); | ||||
|             this.삭제ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); | ||||
|             this.toolStrip1 = new System.Windows.Forms.ToolStrip(); | ||||
|             this.toolStripLabel4 = new System.Windows.Forms.ToolStripLabel(); | ||||
|             this.dtSD = new System.Windows.Forms.ToolStripTextBox(); | ||||
|             this.lbEnd = new System.Windows.Forms.ToolStripLabel(); | ||||
|             this.dtED = new System.Windows.Forms.ToolStripTextBox(); | ||||
|             this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); | ||||
|             this.toolStripLabel3 = new System.Windows.Forms.ToolStripLabel(); | ||||
|             this.tbSearch = new System.Windows.Forms.ToolStripTextBox(); | ||||
|             this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator(); | ||||
|             this.btSearch = new System.Windows.Forms.ToolStripButton(); | ||||
|             this.toolStripButton2 = new System.Windows.Forms.ToolStripButton(); | ||||
|             this.fpSpread1 = new FarPoint.Win.Spread.FpSpread(); | ||||
|             this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView(); | ||||
|             this.toolStripLabel6 = new System.Windows.Forms.ToolStripLabel(); | ||||
|             this.toolStripLabel7 = new System.Windows.Forms.ToolStripLabel(); | ||||
|             this.cmbLogType = new System.Windows.Forms.ToolStripComboBox(); | ||||
|             ((System.ComponentModel.ISupportInitialize)(this.dsPurchase)).BeginInit(); | ||||
|             ((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit(); | ||||
|             ((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit(); | ||||
|             this.bn.SuspendLayout(); | ||||
|             this.cm1.SuspendLayout(); | ||||
|             this.toolStrip1.SuspendLayout(); | ||||
|             ((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).BeginInit(); | ||||
|             ((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).BeginInit(); | ||||
|             this.SuspendLayout(); | ||||
|             //  | ||||
|             // dsPurchase | ||||
|             //  | ||||
|             this.dsPurchase.DataSetName = "dsPurchase"; | ||||
|             this.dsPurchase.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; | ||||
|             //  | ||||
|             // bs | ||||
|             //  | ||||
|             this.bs.DataMember = "LogData"; | ||||
|             this.bs.DataSource = this.dsPurchase; | ||||
|             //  | ||||
|             // ta | ||||
|             //  | ||||
|             this.ta.ClearBeforeFill = true; | ||||
|             //  | ||||
|             // tam | ||||
|             //  | ||||
|             this.tam.BackupDataSetBeforeUpdate = true; | ||||
|             this.tam.LogDataTableAdapter = this.ta; | ||||
|             this.tam.LogItemTableAdapter = null; | ||||
|             this.tam.UpdateOrder = FLG0000.DSLogTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete; | ||||
|             //  | ||||
|             // 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.toolStripLabel6, | ||||
|             this.bindingNavigatorMoveFirstItem, | ||||
|             this.bindingNavigatorMovePreviousItem, | ||||
|             this.bindingNavigatorSeparator, | ||||
|             this.bindingNavigatorPositionItem, | ||||
|             this.bindingNavigatorCountItem, | ||||
|             this.bindingNavigatorSeparator1, | ||||
|             this.bindingNavigatorMoveNextItem, | ||||
|             this.bindingNavigatorMoveLastItem, | ||||
|             this.bindingNavigatorSeparator2, | ||||
|             this.btAdd, | ||||
|             this.btCopy, | ||||
|             this.btEdit, | ||||
|             this.btDel, | ||||
|             this.btSave, | ||||
|             this.toolStripSeparator1, | ||||
|             this.toolStripLabel1, | ||||
|             this.lbSum, | ||||
|             this.toolStripLabel5, | ||||
|             this.toolStripLabel2, | ||||
|             this.tbFind, | ||||
|             this.btFind, | ||||
|             this.toolStripSeparator6}); | ||||
|             this.bn.Location = new System.Drawing.Point(0, 639); | ||||
|             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(1074, 26); | ||||
|             this.bn.TabIndex = 0; | ||||
|             this.bn.Text = "bindingNavigator1"; | ||||
|             //  | ||||
|             // bindingNavigatorCountItem | ||||
|             //  | ||||
|             this.bindingNavigatorCountItem.Name = "bindingNavigatorCountItem"; | ||||
|             this.bindingNavigatorCountItem.Size = new System.Drawing.Size(27, 23); | ||||
|             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, 23); | ||||
|             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, 23); | ||||
|             this.bindingNavigatorMovePreviousItem.Text = "이전으로 이동"; | ||||
|             //  | ||||
|             // bindingNavigatorSeparator | ||||
|             //  | ||||
|             this.bindingNavigatorSeparator.Name = "bindingNavigatorSeparator"; | ||||
|             this.bindingNavigatorSeparator.Size = new System.Drawing.Size(6, 26); | ||||
|             //  | ||||
|             // bindingNavigatorPositionItem | ||||
|             //  | ||||
|             this.bindingNavigatorPositionItem.AccessibleName = "위치"; | ||||
|             this.bindingNavigatorPositionItem.AutoSize = false; | ||||
|             this.bindingNavigatorPositionItem.Name = "bindingNavigatorPositionItem"; | ||||
|             this.bindingNavigatorPositionItem.Size = new System.Drawing.Size(50, 23); | ||||
|             this.bindingNavigatorPositionItem.Text = "0"; | ||||
|             this.bindingNavigatorPositionItem.ToolTipText = "현재 위치"; | ||||
|             //  | ||||
|             // bindingNavigatorSeparator1 | ||||
|             //  | ||||
|             this.bindingNavigatorSeparator1.Name = "bindingNavigatorSeparator1"; | ||||
|             this.bindingNavigatorSeparator1.Size = new System.Drawing.Size(6, 26); | ||||
|             //  | ||||
|             // 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, 23); | ||||
|             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, 23); | ||||
|             this.bindingNavigatorMoveLastItem.Text = "마지막으로 이동"; | ||||
|             //  | ||||
|             // bindingNavigatorSeparator2 | ||||
|             //  | ||||
|             this.bindingNavigatorSeparator2.Name = "bindingNavigatorSeparator2"; | ||||
|             this.bindingNavigatorSeparator2.Size = new System.Drawing.Size(6, 26); | ||||
|             //  | ||||
|             // btAdd | ||||
|             //  | ||||
|             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(67, 23); | ||||
|             this.btAdd.Text = "추가(&A)"; | ||||
|             this.btAdd.Click += new System.EventHandler(this.bindingNavigatorAddNewItem_Click); | ||||
|             //  | ||||
|             // btCopy | ||||
|             //  | ||||
|             this.btCopy.Image = ((System.Drawing.Image)(resources.GetObject("btCopy.Image"))); | ||||
|             this.btCopy.ImageTransparentColor = System.Drawing.Color.Magenta; | ||||
|             this.btCopy.Name = "btCopy"; | ||||
|             this.btCopy.Size = new System.Drawing.Size(67, 23); | ||||
|             this.btCopy.Text = "복사(&C)"; | ||||
|             this.btCopy.Click += new System.EventHandler(this.toolStripButton1_Click_2); | ||||
|             //  | ||||
|             // btEdit | ||||
|             //  | ||||
|             this.btEdit.Image = ((System.Drawing.Image)(resources.GetObject("btEdit.Image"))); | ||||
|             this.btEdit.ImageTransparentColor = System.Drawing.Color.Magenta; | ||||
|             this.btEdit.Name = "btEdit"; | ||||
|             this.btEdit.Size = new System.Drawing.Size(65, 23); | ||||
|             this.btEdit.Text = "편집(&E)"; | ||||
|             this.btEdit.Click += new System.EventHandler(this.toolStripButton2_Click); | ||||
|             //  | ||||
|             // btDel | ||||
|             //  | ||||
|             this.btDel.Image = ((System.Drawing.Image)(resources.GetObject("btDel.Image"))); | ||||
|             this.btDel.Name = "btDel"; | ||||
|             this.btDel.RightToLeftAutoMirrorImage = true; | ||||
|             this.btDel.Size = new System.Drawing.Size(68, 23); | ||||
|             this.btDel.Text = "삭제(&D)"; | ||||
|             this.btDel.Click += new System.EventHandler(this.bindingNavigatorDeleteItem_Click); | ||||
|             //  | ||||
|             // btSave | ||||
|             //  | ||||
|             this.btSave.Image = global::FLG0000.Properties.Resources.action_save; | ||||
|             this.btSave.ImageTransparentColor = System.Drawing.Color.Magenta; | ||||
|             this.btSave.Name = "btSave"; | ||||
|             this.btSave.Size = new System.Drawing.Size(66, 23); | ||||
|             this.btSave.Text = "저장(&S)"; | ||||
|             this.btSave.Click += new System.EventHandler(this.btSave_Click); | ||||
|             //  | ||||
|             // toolStripSeparator1 | ||||
|             //  | ||||
|             this.toolStripSeparator1.Name = "toolStripSeparator1"; | ||||
|             this.toolStripSeparator1.Size = new System.Drawing.Size(6, 26); | ||||
|             //  | ||||
|             // toolStripLabel1 | ||||
|             //  | ||||
|             this.toolStripLabel1.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; | ||||
|             this.toolStripLabel1.Name = "toolStripLabel1"; | ||||
|             this.toolStripLabel1.Size = new System.Drawing.Size(19, 23); | ||||
|             this.toolStripLabel1.Text = "건"; | ||||
|             //  | ||||
|             // lbSum | ||||
|             //  | ||||
|             this.lbSum.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; | ||||
|             this.lbSum.Font = new System.Drawing.Font("Tahoma", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); | ||||
|             this.lbSum.Name = "lbSum"; | ||||
|             this.lbSum.Size = new System.Drawing.Size(22, 23); | ||||
|             this.lbSum.Text = "0"; | ||||
|             //  | ||||
|             // toolStripLabel5 | ||||
|             //  | ||||
|             this.toolStripLabel5.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; | ||||
|             this.toolStripLabel5.Name = "toolStripLabel5"; | ||||
|             this.toolStripLabel5.Size = new System.Drawing.Size(31, 23); | ||||
|             this.toolStripLabel5.Text = "합계"; | ||||
|             //  | ||||
|             // toolStripLabel2 | ||||
|             //  | ||||
|             this.toolStripLabel2.Name = "toolStripLabel2"; | ||||
|             this.toolStripLabel2.Size = new System.Drawing.Size(31, 23); | ||||
|             this.toolStripLabel2.Text = "검색"; | ||||
|             //  | ||||
|             // tbFind | ||||
|             //  | ||||
|             this.tbFind.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; | ||||
|             this.tbFind.Name = "tbFind"; | ||||
|             this.tbFind.Size = new System.Drawing.Size(100, 26); | ||||
|             this.tbFind.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tbFind_KeyDown); | ||||
|             //  | ||||
|             // btFind | ||||
|             //  | ||||
|             this.btFind.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; | ||||
|             this.btFind.Image = ((System.Drawing.Image)(resources.GetObject("btFind.Image"))); | ||||
|             this.btFind.ImageTransparentColor = System.Drawing.Color.Magenta; | ||||
|             this.btFind.Name = "btFind"; | ||||
|             this.btFind.Size = new System.Drawing.Size(23, 23); | ||||
|             this.btFind.Text = "toolStripButton2"; | ||||
|             this.btFind.Click += new System.EventHandler(this.btFind_Click); | ||||
|             //  | ||||
|             // toolStripSeparator6 | ||||
|             //  | ||||
|             this.toolStripSeparator6.Name = "toolStripSeparator6"; | ||||
|             this.toolStripSeparator6.Size = new System.Drawing.Size(6, 26); | ||||
|             //  | ||||
|             // cm1 | ||||
|             //  | ||||
|             this.cm1.Font = new System.Drawing.Font("맑은 고딕", 20F); | ||||
|             this.cm1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { | ||||
|             this.columnSizeToolStripMenuItem, | ||||
|             this.exportDataToolStripMenuItem, | ||||
|             this.toolStripMenuItem3, | ||||
|             this.추가ToolStripMenuItem, | ||||
|             this.makeRepeatToolStripMenuItem, | ||||
|             this.편집ToolStripMenuItem1, | ||||
|             this.삭제ToolStripMenuItem}); | ||||
|             this.cm1.Name = "contextMenuStrip1"; | ||||
|             this.cm1.Size = new System.Drawing.Size(203, 262); | ||||
|             //  | ||||
|             // columnSizeToolStripMenuItem | ||||
|             //  | ||||
|             this.columnSizeToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { | ||||
|             this.saveToolStripMenuItem, | ||||
|             this.loadToolStripMenuItem, | ||||
|             this.resetToolStripMenuItem}); | ||||
|             this.columnSizeToolStripMenuItem.Name = "columnSizeToolStripMenuItem"; | ||||
|             this.columnSizeToolStripMenuItem.Size = new System.Drawing.Size(202, 42); | ||||
|             this.columnSizeToolStripMenuItem.Text = "열 너비"; | ||||
|             //  | ||||
|             // saveToolStripMenuItem | ||||
|             //  | ||||
|             this.saveToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("saveToolStripMenuItem.Image"))); | ||||
|             this.saveToolStripMenuItem.Name = "saveToolStripMenuItem"; | ||||
|             this.saveToolStripMenuItem.Size = new System.Drawing.Size(202, 42); | ||||
|             this.saveToolStripMenuItem.Text = "저장"; | ||||
|             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(202, 42); | ||||
|             this.loadToolStripMenuItem.Text = "불러오기"; | ||||
|             this.loadToolStripMenuItem.Click += new System.EventHandler(this.loadToolStripMenuItem_Click); | ||||
|             //  | ||||
|             // resetToolStripMenuItem | ||||
|             //  | ||||
|             this.resetToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("resetToolStripMenuItem.Image"))); | ||||
|             this.resetToolStripMenuItem.Name = "resetToolStripMenuItem"; | ||||
|             this.resetToolStripMenuItem.Size = new System.Drawing.Size(202, 42); | ||||
|             this.resetToolStripMenuItem.Text = "초기화"; | ||||
|             this.resetToolStripMenuItem.Click += new System.EventHandler(this.resetToolStripMenuItem_Click); | ||||
|             //  | ||||
|             // exportDataToolStripMenuItem | ||||
|             //  | ||||
|             this.exportDataToolStripMenuItem.Name = "exportDataToolStripMenuItem"; | ||||
|             this.exportDataToolStripMenuItem.Size = new System.Drawing.Size(202, 42); | ||||
|             this.exportDataToolStripMenuItem.Text = "내보내기"; | ||||
|             this.exportDataToolStripMenuItem.Click += new System.EventHandler(this.exportDataToolStripMenuItem_Click); | ||||
|             //  | ||||
|             // toolStripMenuItem3 | ||||
|             //  | ||||
|             this.toolStripMenuItem3.Name = "toolStripMenuItem3"; | ||||
|             this.toolStripMenuItem3.Size = new System.Drawing.Size(199, 6); | ||||
|             //  | ||||
|             // 추가ToolStripMenuItem | ||||
|             //  | ||||
|             this.추가ToolStripMenuItem.Name = "추가ToolStripMenuItem"; | ||||
|             this.추가ToolStripMenuItem.Size = new System.Drawing.Size(202, 42); | ||||
|             this.추가ToolStripMenuItem.Text = "추가"; | ||||
|             this.추가ToolStripMenuItem.Click += new System.EventHandler(this.추가ToolStripMenuItem_Click); | ||||
|             //  | ||||
|             // makeRepeatToolStripMenuItem | ||||
|             //  | ||||
|             this.makeRepeatToolStripMenuItem.Name = "makeRepeatToolStripMenuItem"; | ||||
|             this.makeRepeatToolStripMenuItem.Size = new System.Drawing.Size(202, 42); | ||||
|             this.makeRepeatToolStripMenuItem.Text = "복사"; | ||||
|             this.makeRepeatToolStripMenuItem.Click += new System.EventHandler(this.makeRepeatToolStripMenuItem_Click); | ||||
|             //  | ||||
|             // 편집ToolStripMenuItem1 | ||||
|             //  | ||||
|             this.편집ToolStripMenuItem1.Name = "편집ToolStripMenuItem1"; | ||||
|             this.편집ToolStripMenuItem1.Size = new System.Drawing.Size(202, 42); | ||||
|             this.편집ToolStripMenuItem1.Text = "편집"; | ||||
|             this.편집ToolStripMenuItem1.Click += new System.EventHandler(this.편집ToolStripMenuItem1_Click); | ||||
|             //  | ||||
|             // 삭제ToolStripMenuItem | ||||
|             //  | ||||
|             this.삭제ToolStripMenuItem.Name = "삭제ToolStripMenuItem"; | ||||
|             this.삭제ToolStripMenuItem.Size = new System.Drawing.Size(202, 42); | ||||
|             this.삭제ToolStripMenuItem.Text = "삭제"; | ||||
|             this.삭제ToolStripMenuItem.Click += new System.EventHandler(this.삭제ToolStripMenuItem_Click); | ||||
|             //  | ||||
|             // toolStrip1 | ||||
|             //  | ||||
|             this.toolStrip1.ImageScalingSize = new System.Drawing.Size(30, 30); | ||||
|             this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { | ||||
|             this.toolStripLabel7, | ||||
|             this.cmbLogType, | ||||
|             this.toolStripLabel4, | ||||
|             this.dtSD, | ||||
|             this.lbEnd, | ||||
|             this.dtED, | ||||
|             this.toolStripSeparator2, | ||||
|             this.toolStripLabel3, | ||||
|             this.tbSearch, | ||||
|             this.toolStripSeparator4, | ||||
|             this.btSearch, | ||||
|             this.toolStripButton2}); | ||||
|             this.toolStrip1.Location = new System.Drawing.Point(0, 0); | ||||
|             this.toolStrip1.Name = "toolStrip1"; | ||||
|             this.toolStrip1.Size = new System.Drawing.Size(1074, 37); | ||||
|             this.toolStrip1.TabIndex = 3; | ||||
|             this.toolStrip1.Text = "toolStrip1"; | ||||
|             //  | ||||
|             // toolStripLabel4 | ||||
|             //  | ||||
|             this.toolStripLabel4.Name = "toolStripLabel4"; | ||||
|             this.toolStripLabel4.Size = new System.Drawing.Size(31, 34); | ||||
|             this.toolStripLabel4.Text = "기간"; | ||||
|             //  | ||||
|             // dtSD | ||||
|             //  | ||||
|             this.dtSD.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; | ||||
|             this.dtSD.Name = "dtSD"; | ||||
|             this.dtSD.Size = new System.Drawing.Size(90, 37); | ||||
|             this.dtSD.Text = "1982-11-23"; | ||||
|             this.dtSD.TextBoxTextAlign = System.Windows.Forms.HorizontalAlignment.Center; | ||||
|             //  | ||||
|             // lbEnd | ||||
|             //  | ||||
|             this.lbEnd.Name = "lbEnd"; | ||||
|             this.lbEnd.Size = new System.Drawing.Size(15, 34); | ||||
|             this.lbEnd.Text = "~"; | ||||
|             this.lbEnd.Click += new System.EventHandler(this.lbEnd_Click); | ||||
|             //  | ||||
|             // dtED | ||||
|             //  | ||||
|             this.dtED.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; | ||||
|             this.dtED.Name = "dtED"; | ||||
|             this.dtED.Size = new System.Drawing.Size(90, 37); | ||||
|             this.dtED.Text = "1982-11-23"; | ||||
|             this.dtED.TextBoxTextAlign = System.Windows.Forms.HorizontalAlignment.Center; | ||||
|             //  | ||||
|             // toolStripSeparator2 | ||||
|             //  | ||||
|             this.toolStripSeparator2.Name = "toolStripSeparator2"; | ||||
|             this.toolStripSeparator2.Size = new System.Drawing.Size(6, 37); | ||||
|             //  | ||||
|             // toolStripLabel3 | ||||
|             //  | ||||
|             this.toolStripLabel3.Name = "toolStripLabel3"; | ||||
|             this.toolStripLabel3.Size = new System.Drawing.Size(31, 34); | ||||
|             this.toolStripLabel3.Text = "검색"; | ||||
|             this.toolStripLabel3.Click += new System.EventHandler(this.toolStripLabel3_Click); | ||||
|             //  | ||||
|             // tbSearch | ||||
|             //  | ||||
|             this.tbSearch.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; | ||||
|             this.tbSearch.Name = "tbSearch"; | ||||
|             this.tbSearch.Size = new System.Drawing.Size(150, 37); | ||||
|             this.tbSearch.TextBoxTextAlign = System.Windows.Forms.HorizontalAlignment.Center; | ||||
|             this.tbSearch.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tbRequest_KeyDown); | ||||
|             //  | ||||
|             // toolStripSeparator4 | ||||
|             //  | ||||
|             this.toolStripSeparator4.Name = "toolStripSeparator4"; | ||||
|             this.toolStripSeparator4.Size = new System.Drawing.Size(6, 37); | ||||
|             //  | ||||
|             // btSearch | ||||
|             //  | ||||
|             this.btSearch.Image = ((System.Drawing.Image)(resources.GetObject("btSearch.Image"))); | ||||
|             this.btSearch.ImageTransparentColor = System.Drawing.Color.Magenta; | ||||
|             this.btSearch.Name = "btSearch"; | ||||
|             this.btSearch.Size = new System.Drawing.Size(80, 34); | ||||
|             this.btSearch.Text = "조회(&R)"; | ||||
|             this.btSearch.Click += new System.EventHandler(this.btSearch_Click); | ||||
|             //  | ||||
|             // toolStripButton2 | ||||
|             //  | ||||
|             this.toolStripButton2.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; | ||||
|             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(65, 34); | ||||
|             this.toolStripButton2.Text = "닫기"; | ||||
|             this.toolStripButton2.Click += new System.EventHandler(this.toolStripButton2_Click_1); | ||||
|             //  | ||||
|             // fpSpread1 | ||||
|             //  | ||||
|             this.fpSpread1.AccessibleDescription = ""; | ||||
|             this.fpSpread1.Dock = System.Windows.Forms.DockStyle.Fill; | ||||
|             this.fpSpread1.Location = new System.Drawing.Point(0, 37); | ||||
|             this.fpSpread1.Name = "fpSpread1"; | ||||
|             this.fpSpread1.Sheets.AddRange(new FarPoint.Win.Spread.SheetView[] { | ||||
|             this.fpSpread1_Sheet1}); | ||||
|             this.fpSpread1.Size = new System.Drawing.Size(1074, 602); | ||||
|             this.fpSpread1.TabIndex = 4; | ||||
|             //  | ||||
|             // fpSpread1_Sheet1 | ||||
|             //  | ||||
|             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 = 7; | ||||
|             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 = "S/N"; | ||||
|             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.Rows.Get(0).Height = 40F; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(0).CellType = textCellType8; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(0).DataField = "pdate"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(0).Label = "등록일"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(0).Width = 151F; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(1).CellType = textCellType9; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(1).DataField = "serial"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(1).Label = "S/N"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(1).Width = 151F; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType10; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(2).DataField = "location"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(2).Label = "위치"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(2).Width = 151F; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(3).CellType = textCellType11; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(3).DataField = "reason"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(3).Label = "원인"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(3).Width = 151F; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(4).CellType = textCellType12; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(4).DataField = "result"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(4).Label = "결과"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(4).Width = 151F; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(5).CellType = textCellType13; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(5).DataField = "remark"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(5).Label = "비고"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(5).Width = 151F; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(6).CellType = textCellType14; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(6).DataField = "userName"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(6).Label = "등록자"; | ||||
|             this.fpSpread1_Sheet1.Columns.Get(6).Width = 151F; | ||||
|             this.fpSpread1_Sheet1.DataAutoCellTypes = false; | ||||
|             this.fpSpread1_Sheet1.DataAutoHeadings = false; | ||||
|             this.fpSpread1_Sheet1.DataAutoSizeColumns = false; | ||||
|             this.fpSpread1_Sheet1.DataSource = this.bs; | ||||
|             this.fpSpread1_Sheet1.RowHeader.Columns.Default.Resizable = false; | ||||
|             this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1; | ||||
|             //  | ||||
|             // toolStripLabel6 | ||||
|             //  | ||||
|             this.toolStripLabel6.ForeColor = System.Drawing.Color.Gray; | ||||
|             this.toolStripLabel6.Name = "toolStripLabel6"; | ||||
|             this.toolStripLabel6.Size = new System.Drawing.Size(57, 23); | ||||
|             this.toolStripLabel6.Text = "[LG0000]"; | ||||
|             //  | ||||
|             // toolStripLabel7 | ||||
|             //  | ||||
|             this.toolStripLabel7.Name = "toolStripLabel7"; | ||||
|             this.toolStripLabel7.Size = new System.Drawing.Size(31, 34); | ||||
|             this.toolStripLabel7.Text = "종류"; | ||||
|             //  | ||||
|             // cmbLogType | ||||
|             //  | ||||
|             this.cmbLogType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; | ||||
|             this.cmbLogType.Name = "cmbLogType"; | ||||
|             this.cmbLogType.Size = new System.Drawing.Size(121, 37); | ||||
|             //  | ||||
|             // List | ||||
|             //  | ||||
|             this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); | ||||
|             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; | ||||
|             this.ClientSize = new System.Drawing.Size(1074, 665); | ||||
|             this.Controls.Add(this.fpSpread1); | ||||
|             this.Controls.Add(this.toolStrip1); | ||||
|             this.Controls.Add(this.bn); | ||||
|             this.DoubleBuffered = true; | ||||
|             this.Name = "List"; | ||||
|             this.Text = "로그 목록"; | ||||
|             this.Load += new System.EventHandler(this.@__Load); | ||||
|             ((System.ComponentModel.ISupportInitialize)(this.dsPurchase)).EndInit(); | ||||
|             ((System.ComponentModel.ISupportInitialize)(this.bs)).EndInit(); | ||||
|             ((System.ComponentModel.ISupportInitialize)(this.bn)).EndInit(); | ||||
|             this.bn.ResumeLayout(false); | ||||
|             this.bn.PerformLayout(); | ||||
|             this.cm1.ResumeLayout(false); | ||||
|             this.toolStrip1.ResumeLayout(false); | ||||
|             this.toolStrip1.PerformLayout(); | ||||
|             ((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).EndInit(); | ||||
|             ((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).EndInit(); | ||||
|             this.ResumeLayout(false); | ||||
|             this.PerformLayout(); | ||||
|  | ||||
|         } | ||||
|  | ||||
|         #endregion | ||||
|  | ||||
|         private DSLog dsPurchase; | ||||
|         private System.Windows.Forms.BindingSource bs; | ||||
|         private DSLogTableAdapters.LogDataTableAdapter ta; | ||||
|         private DSLogTableAdapters.TableAdapterManager tam; | ||||
|         private System.Windows.Forms.BindingNavigator bn; | ||||
|         private System.Windows.Forms.ToolStripButton btAdd; | ||||
|         private System.Windows.Forms.ToolStripLabel bindingNavigatorCountItem; | ||||
|         private System.Windows.Forms.ToolStripButton btDel; | ||||
|         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.ToolStrip toolStrip1; | ||||
|         private System.Windows.Forms.ToolStripTextBox dtSD; | ||||
|         private System.Windows.Forms.ToolStripLabel lbEnd; | ||||
|         private System.Windows.Forms.ToolStripTextBox dtED; | ||||
|         private System.Windows.Forms.ToolStripButton btSearch; | ||||
|         private System.Windows.Forms.ContextMenuStrip cm1; | ||||
|         private System.Windows.Forms.ToolStripLabel toolStripLabel3; | ||||
|         private System.Windows.Forms.ToolStripTextBox tbSearch; | ||||
|         private System.Windows.Forms.ToolStripSeparator toolStripSeparator1; | ||||
|         private System.Windows.Forms.ToolStripLabel toolStripLabel5; | ||||
|         private System.Windows.Forms.ToolStripLabel lbSum; | ||||
|         private System.Windows.Forms.ToolStripButton btSave; | ||||
|         private System.Windows.Forms.ToolStripSeparator toolStripSeparator2; | ||||
|         private System.Windows.Forms.ToolStripLabel toolStripLabel2; | ||||
|         private System.Windows.Forms.ToolStripTextBox tbFind; | ||||
|         private System.Windows.Forms.ToolStripButton btFind; | ||||
|         private FarPoint.Win.Spread.FpSpread fpSpread1; | ||||
|         private System.Windows.Forms.ToolStripMenuItem columnSizeToolStripMenuItem; | ||||
|         private System.Windows.Forms.ToolStripMenuItem resetToolStripMenuItem; | ||||
|         private System.Windows.Forms.ToolStripMenuItem saveToolStripMenuItem; | ||||
|         private System.Windows.Forms.ToolStripMenuItem loadToolStripMenuItem; | ||||
|         private System.Windows.Forms.ToolStripButton btEdit; | ||||
|         private System.Windows.Forms.ToolStripMenuItem exportDataToolStripMenuItem; | ||||
|         private System.Windows.Forms.ToolStripSeparator toolStripSeparator4; | ||||
|         private System.Windows.Forms.ToolStripSeparator toolStripMenuItem3; | ||||
|         private System.Windows.Forms.ToolStripButton btCopy; | ||||
|         private System.Windows.Forms.ToolStripSeparator toolStripSeparator6; | ||||
|         private System.Windows.Forms.ToolStripMenuItem makeRepeatToolStripMenuItem; | ||||
|         private System.Windows.Forms.ToolStripMenuItem 편집ToolStripMenuItem1; | ||||
|         private System.Windows.Forms.ToolStripMenuItem 삭제ToolStripMenuItem; | ||||
|         private System.Windows.Forms.ToolStripMenuItem 추가ToolStripMenuItem; | ||||
|         private System.Windows.Forms.ToolStripButton toolStripButton2; | ||||
|         private System.Windows.Forms.ToolStripLabel toolStripLabel4; | ||||
|         private System.Windows.Forms.ToolStripLabel toolStripLabel1; | ||||
|         private FarPoint.Win.Spread.SheetView fpSpread1_Sheet1; | ||||
|         private System.Windows.Forms.ToolStripLabel toolStripLabel6; | ||||
|         private System.Windows.Forms.ToolStripLabel toolStripLabel7; | ||||
|         private System.Windows.Forms.ToolStripComboBox cmbLogType; | ||||
|     } | ||||
| } | ||||
							
								
								
									
										429
									
								
								SubProject/FLG0000/LogData/List.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										429
									
								
								SubProject/FLG0000/LogData/List.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,429 @@ | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
| using System.ComponentModel; | ||||
| using System.Drawing; | ||||
| using System.Data; | ||||
| using System.Linq; | ||||
| using System.Text; | ||||
| using System.Windows.Forms; | ||||
| using util = FCOMMON.Util; | ||||
|  | ||||
| namespace FLG0000.LogData | ||||
| { | ||||
|     public partial class List : FCOMMON.fBase | ||||
|     { | ||||
|         string fn_fpcolsize = ""; | ||||
|         UserSetting userset = null; | ||||
|         public List() | ||||
|         { | ||||
|             InitializeComponent(); | ||||
|  | ||||
|             //화면전용 설정파일 | ||||
|             var usersetfile = new System.IO.FileInfo(System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, | ||||
|                 "Setting", "LG0000.xml")); | ||||
|             if (usersetfile.Directory.Exists == false) usersetfile.Directory.Create(); | ||||
|             userset = new UserSetting(usersetfile.FullName); | ||||
|             userset.Load(); | ||||
|             if (userset.Xml.Exist() == false) userset.Xml.CreateFile(); | ||||
|  | ||||
|  | ||||
|             fn_fpcolsize = util.MakeFilePath(util.CurrentPath, "formSetting", "fp_" + this.Name + ".ini"); | ||||
|             this.dsPurchase.LogData.TableNewRow += Purchase_TableNewRow; | ||||
|             this.FormClosed += __Closed; | ||||
|             dtSD.KeyDown += dtSD_KeyDown; | ||||
|             dtED.KeyDown += dtSD_KeyDown; | ||||
|             //this.dv1.CellFormatting += dv1_CellFormatting; | ||||
|         } | ||||
|  | ||||
|         void dtSD_KeyDown(object sender, KeyEventArgs e) | ||||
|         { | ||||
|             if (e.KeyCode != Keys.Enter) return; | ||||
|             var tb = sender as ToolStripTextBox; | ||||
|             var input = tb.Text.Trim(); | ||||
|             if (input == "") tb.Text = DateTime.Now.ToShortDateString(); | ||||
|             else | ||||
|             { | ||||
|                 string dt = string.Empty; | ||||
|                 if (!util.MakeDateString(input, out dt)) | ||||
|                 { | ||||
|                     FCOMMON.Util.MsgE("입력값이 올바르지 않습니다."); | ||||
|                     tb.SelectAll(); | ||||
|                     tb.Focus(); | ||||
|                     return; | ||||
|                 } | ||||
|                 else | ||||
|                 { | ||||
|                     tb.Text = dt; | ||||
|                 } | ||||
|             } | ||||
|             if (tb == dtSD) | ||||
|             { | ||||
|                 dtED.Focus(); | ||||
|                 dtED.SelectAll(); | ||||
|             } | ||||
|             else | ||||
|             { | ||||
|                 btSearch.PerformClick(); | ||||
|                 tb.SelectAll(); | ||||
|             } | ||||
|         } | ||||
|  | ||||
|         void __Closed(object sender, FormClosedEventArgs e) | ||||
|         { | ||||
|  | ||||
|         } | ||||
|  | ||||
|         void Purchase_TableNewRow(object sender, DataTableNewRowEventArgs e) | ||||
|         { | ||||
|             e.Row["gcode"] = FCOMMON.info.Login.gcode; | ||||
|             e.Row["pdate"] = DateTime.Now.ToShortDateString(); | ||||
|             e.Row["wuid"] = FCOMMON.info.Login.no; | ||||
|             e.Row["wdate"] = DateTime.Now; | ||||
|             e.Row["lcode"] = "00"; | ||||
|         } | ||||
|  | ||||
|         private void __Load(object sender, EventArgs e) | ||||
|         { | ||||
|  | ||||
|             //로그타입(18) 가져오기 | ||||
|             var logtypelist = FCOMMON.DBM.getCodeList("18"); | ||||
|             this.cmbLogType.Items.Clear(); | ||||
|             foreach (var item in logtypelist) | ||||
|             { | ||||
|                 this.cmbLogType.Items.Add(string.Format("[{0}] {1}", item.Key, item.Value)); | ||||
|             } | ||||
|             //마지막에 사용한 값으로 자동 선택해준다. | ||||
|             var preSelectedType = "[" + userset.lastType + "]"; | ||||
|             for (int i = 0; i < cmbLogType.Items.Count; i++) | ||||
|             { | ||||
|                 if (cmbLogType.Items[i].ToString().StartsWith(preSelectedType)) | ||||
|                 { | ||||
|                     cmbLogType.SelectedIndex = i; | ||||
|                     break; | ||||
|                 } | ||||
|             } | ||||
|             //선택된 자료가 없고 아이템이 잇다면 1번 항목으로 설정한다. | ||||
|             if (cmbLogType.SelectedIndex < 0 && cmbLogType.Items.Count > 0) cmbLogType.SelectedIndex = 0; | ||||
|  | ||||
|             this.tbSearch.Text = string.Empty; | ||||
|             this.dtSD.Text = DateTime.Now.AddDays(-30).ToShortDateString(); | ||||
|             this.dtED.Text = DateTime.Now.ToShortDateString(); | ||||
|  | ||||
|             refreshData(); | ||||
|         } | ||||
|  | ||||
|         private void refreshData() | ||||
|         { | ||||
|  | ||||
|             try | ||||
|             { | ||||
|                 var search = tbSearch.Text.Trim(); | ||||
|                 this.dsPurchase.LogData.Clear(); | ||||
|                 this.ta.Fill(this.dsPurchase.LogData, | ||||
|                     FCOMMON.info.Login.gcode, | ||||
|                     dtSD.Text, dtED.Text, "%" + search + "%"); | ||||
|                 this.dsPurchase.LogData.AcceptChanges(); | ||||
|                 showSummary(); | ||||
|                 FCOMMON.Util.FPColSizeLoad(ref this.fpSpread1, fn_fpcolsize); | ||||
|             } | ||||
|             catch (System.Exception ex) | ||||
|             { | ||||
|                 System.Windows.Forms.MessageBox.Show(ex.Message); | ||||
|             } | ||||
|  | ||||
|             FormattingData(); | ||||
|         } | ||||
|         void FormattingData() | ||||
|         { | ||||
|             //삭제컬럼인덱스 | ||||
|             this.fpSpread1.SuspendLayout(); | ||||
|             //var delindex = this.fpSpread1.ActiveSheet.Columns["isdel"].Index; | ||||
|             //var statindex = this.fpSpread1.ActiveSheet.Columns["state"].Index; | ||||
|             for (int i = 0; i < this.fpSpread1.ActiveSheet.Rows.Count; i++) | ||||
|             { | ||||
|  | ||||
|             } | ||||
|             this.fpSpread1.ResumeLayout(); | ||||
|         } | ||||
|  | ||||
|         private void saveData(Boolean prompt) | ||||
|         { | ||||
|             this.Validate(); | ||||
|             this.bs.EndEdit(); | ||||
|             try | ||||
|             { | ||||
|                 var cnt = this.ta.Update(this.dsPurchase.LogData); | ||||
|                 if (prompt) FCOMMON.Util.MsgI(string.Format("{0}건의 자료가 저장 되었습니다.", cnt)); | ||||
|             } | ||||
|             catch (Exception ex) | ||||
|             { | ||||
|                 FCOMMON.Util.MsgE("저장 실패\n" + ex.Message); | ||||
|             } | ||||
|         } | ||||
|         void showSummary() | ||||
|         { | ||||
|             decimal sum = 0; | ||||
|             var list = this.dsPurchase.LogData.Select(this.bs.Filter, "") as DSLog.LogDataRow[]; | ||||
|             // sum = list.Sum(t => t.pumamt); | ||||
|             //foreach (dsPurchase.PurchaseRow dr in this.dsPurchase.Purchase.Rows) | ||||
|             //if (!dr.IspumamtNull()) sum += dr.pumamt; | ||||
|             lbSum.Text = list.Count().ToString("N0"); | ||||
|         } | ||||
|  | ||||
|         private void btSearch_Click(object sender, EventArgs e) | ||||
|         { | ||||
|             refreshData(); | ||||
|         } | ||||
|  | ||||
|         private void bindingNavigatorAddNewItem_Click(object sender, EventArgs e) | ||||
|         { | ||||
|             func_add(); | ||||
|         } | ||||
|  | ||||
|         private void tbRequest_KeyDown(object sender, KeyEventArgs e) | ||||
|         { | ||||
|             if (e.KeyCode == Keys.Enter) | ||||
|                 btSearch.PerformClick(); | ||||
|         } | ||||
|  | ||||
|         private void btSave_Click(object sender, EventArgs e) | ||||
|         { | ||||
|             saveData(true); | ||||
|         } | ||||
|  | ||||
|  | ||||
|         private void lbEnd_Click(object sender, EventArgs e) | ||||
|         { | ||||
|             //end date | ||||
|             var list = FCOMMON.DBM.getGroupList("pdate", "purchase", "pdate >= '" + dtSD.Text + "'", true); | ||||
|             FCM0000.fLovOneItem f = new FCM0000.fLovOneItem(list); | ||||
|             if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK) | ||||
|             { | ||||
|                 dtED.Text = f.Title; | ||||
|                 btSearch.PerformClick(); | ||||
|             } | ||||
|         } | ||||
|  | ||||
|         private void toolStripLabel3_Click(object sender, EventArgs e) | ||||
|         { | ||||
|             //사용자목록처리 | ||||
|             if (tbSearch.Text.Trim() == "") | ||||
|             { | ||||
|                 tbSearch.Text = FCOMMON.info.Login.nameK; | ||||
|             } | ||||
|             else | ||||
|             { | ||||
|                 tbSearch.Text = string.Empty; | ||||
|             } | ||||
|  | ||||
|             refreshData(); | ||||
|         } | ||||
|  | ||||
|  | ||||
|         private void bindingNavigatorDeleteItem_Click(object sender, EventArgs e) | ||||
|         { | ||||
|             func_delete(); | ||||
|         } | ||||
|         void func_add() | ||||
|         { | ||||
|             var newdr = this.dsPurchase.LogData.NewLogDataRow();//.NewPurchaseRow(); | ||||
|             var f = new LogData.Add(newdr); | ||||
|             if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK) | ||||
|             { | ||||
|                 this.dsPurchase.LogData.AddLogDataRow(newdr); | ||||
|                 int cnt = this.ta.Update(newdr); | ||||
|                 if (cnt == 0) FCOMMON.Util.MsgE("저장 실패\n\n다시 시도하시고 증상이 반복되면 chikyun.kim@amkor.co.kr 로 문의 주십시요"); | ||||
|                 newdr.AcceptChanges(); | ||||
|                 refreshData(); //181210 | ||||
|             } | ||||
|             else newdr.Delete(); | ||||
|         } | ||||
|         void func_delete() | ||||
|         { | ||||
|             var drv = bs.Current as DataRowView; | ||||
|             if (drv == null) return; | ||||
|  | ||||
|             var dlg = FCOMMON.Util.MsgQ("현재 선택된 자료를 삭제하시겠습니까?"); | ||||
|             if (dlg != System.Windows.Forms.DialogResult.Yes) return; | ||||
|             bs.RemoveCurrent(); | ||||
|  | ||||
|             try | ||||
|             { | ||||
|                 int cnt = ta.Update(this.dsPurchase); | ||||
|                 if (cnt != 1) | ||||
|                     FCOMMON.Util.MsgE(cnt.ToString() + "건의 자료가 삭제되었습니다."); | ||||
|             } | ||||
|             catch (Exception ex) | ||||
|             { | ||||
|                 FCOMMON.Util.MsgE("delete error\n" + ex.Message); | ||||
|             } | ||||
|         } | ||||
|  | ||||
|  | ||||
|  | ||||
|         private void btFind_Click(object sender, EventArgs e) | ||||
|         { | ||||
|             var search = tbFind.Text.Trim(); | ||||
|             search = search.Replace("*", "x"); | ||||
|             if (tbFind.Text != search) tbFind.Text = search; | ||||
|             try | ||||
|             { | ||||
|                 if (search.isEmpty()) | ||||
|                 { | ||||
|                     this.bs.Filter = ""; | ||||
|                     tbFind.BackColor = Color.White; | ||||
|                 } | ||||
|                 else | ||||
|                 { | ||||
|                     search = search.Replace("'", "''"); | ||||
|                     string filter = "serial like ? or location like ? or reason like ? or result like ? or remark like ?"; | ||||
|                     filter = filter.Replace("?", "'%" + search + "%'"); | ||||
|                     this.bs.Filter = filter; | ||||
|                     tbFind.BackColor = Color.Lime; | ||||
|                 } | ||||
|                 tbFind.SelectAll(); | ||||
|                 tbFind.Focus(); | ||||
|                 showSummary(); | ||||
|             } | ||||
|             catch (Exception ex) | ||||
|             { | ||||
|                 this.tbFind.BackColor = Color.Tomato; | ||||
|                 FCOMMON.Util.MsgE(ex.Message); | ||||
|             } | ||||
|         } | ||||
|  | ||||
|         private void tbFind_KeyDown(object sender, KeyEventArgs e) | ||||
|         { | ||||
|             if (e.KeyCode == Keys.Enter) btFind.PerformClick(); | ||||
|         } | ||||
|  | ||||
|         private void editDataToolStripMenuItem_Click(object sender, EventArgs e) | ||||
|         { | ||||
|             Func_Edit(); | ||||
|         } | ||||
|         void Func_Edit() | ||||
|         { | ||||
|             var drv = this.bs.Current as DataRowView; | ||||
|             if (drv == null) return; | ||||
|             var dr = drv.Row as DSLog.LogDataRow; | ||||
|  | ||||
|             var f = new LogData.Add(dr); | ||||
|             if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK) | ||||
|             { | ||||
|                 //존재하지 않는 sid 는 추가를 해준다. | ||||
|                 if (dr.RowState != DataRowState.Unchanged) | ||||
|                 { | ||||
|                     this.ta.Update(dr); | ||||
|                     dr.AcceptChanges(); | ||||
|                 } | ||||
|             } | ||||
|             else dr.RejectChanges(); | ||||
|         } | ||||
|  | ||||
|         private void autoToolStripMenuItem_Click(object sender, EventArgs e) | ||||
|         { | ||||
|             FCOMMON.Util.FPColSizeAuto(this.fpSpread1); | ||||
|         } | ||||
|  | ||||
|         private void resetToolStripMenuItem_Click(object sender, EventArgs e) | ||||
|         { | ||||
|             foreach (FarPoint.Win.Spread.Column col in this.fpSpread1.ActiveSheet.Columns) | ||||
|             { | ||||
|                 col.Width = 100; | ||||
|             } | ||||
|         } | ||||
|  | ||||
|         private void saveToolStripMenuItem_Click(object sender, EventArgs e) | ||||
|         { | ||||
|             FCOMMON.Util.FPColsizeSave(this.fpSpread1, fn_fpcolsize); | ||||
|         } | ||||
|  | ||||
|         private void loadToolStripMenuItem_Click(object sender, EventArgs e) | ||||
|         { | ||||
|             FCOMMON.Util.FPColSizeLoad(ref this.fpSpread1, fn_fpcolsize); | ||||
|         } | ||||
|  | ||||
|         private void toolStripButton2_Click(object sender, EventArgs e) | ||||
|         { | ||||
|             Func_Edit(); | ||||
|         } | ||||
|  | ||||
|  | ||||
|         private void exportDataToolStripMenuItem_Click(object sender, EventArgs e) | ||||
|         { | ||||
|             SaveFileDialog sd = new SaveFileDialog(); | ||||
|             sd.Filter = "excel|*.xls"; | ||||
|             sd.FileName = "logdata.xls"; | ||||
|             if (sd.ShowDialog() == System.Windows.Forms.DialogResult.OK) | ||||
|             { | ||||
|                 fpSpread1.SaveExcel(sd.FileName, | ||||
|                     FarPoint.Excel.ExcelSaveFlags.SaveAsViewed | ||||
|                     | FarPoint.Excel.ExcelSaveFlags.SaveAsFiltered | ||||
|                     | FarPoint.Excel.ExcelSaveFlags.NoFormulas | ||||
|                     | FarPoint.Excel.ExcelSaveFlags.SaveCustomColumnHeaders); | ||||
|                 FCOMMON.Util.MsgI("다음 파일이 생성 되었습니다.\n\n" + sd.FileName); | ||||
|             } | ||||
|  | ||||
|         } | ||||
|  | ||||
|  | ||||
|  | ||||
|         void func_copy() | ||||
|         { | ||||
|             var drv = this.bs.Current as DataRowView; | ||||
|             if (drv == null) return; | ||||
|             var dr = drv.Row as DSLog.LogItemRow; | ||||
|  | ||||
|             //현재 데이터를 입력하여 신규 추가를 한다. | ||||
|             var newdr = this.dsPurchase.LogData.NewLogDataRow(); | ||||
|             FCOMMON.Util.CopyData((System.Data.DataRow)dr, (System.Data.DataRow)newdr); | ||||
|             newdr.gcode = FCOMMON.info.Login.gcode; | ||||
|             newdr.pdate = DateTime.Now.ToShortDateString(); | ||||
|             newdr.wdate = DateTime.Now; | ||||
|             newdr.wuid = FCOMMON.info.Login.no; | ||||
|             newdr.EndEdit(); | ||||
|  | ||||
|             var f = new LogData.Add(newdr); | ||||
|             if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK) | ||||
|             { | ||||
|  | ||||
|                 this.dsPurchase.LogData.AddLogDataRow(newdr);//.Purchase.AddPurchaseRow(newdr); | ||||
|                 this.ta.Update(newdr); | ||||
|                 newdr.AcceptChanges(); | ||||
|             } | ||||
|             else newdr.Delete(); | ||||
|         } | ||||
|  | ||||
|  | ||||
|         private void toolStripButton1_Click_2(object sender, EventArgs e) | ||||
|         { | ||||
|             func_copy(); | ||||
|         } | ||||
|  | ||||
|         private void makeRepeatToolStripMenuItem_Click(object sender, EventArgs e) | ||||
|         { | ||||
|             func_copy(); | ||||
|         } | ||||
|  | ||||
|         private void 편집ToolStripMenuItem1_Click(object sender, EventArgs e) | ||||
|         { | ||||
|             Func_Edit(); | ||||
|         } | ||||
|  | ||||
|         private void 삭제ToolStripMenuItem_Click(object sender, EventArgs e) | ||||
|         { | ||||
|             func_delete(); | ||||
|         } | ||||
|  | ||||
|         private void 추가ToolStripMenuItem_Click(object sender, EventArgs e) | ||||
|         { | ||||
|             func_add(); | ||||
|         } | ||||
|  | ||||
|         private void toolStripButton2_Click_1(object sender, EventArgs e) | ||||
|         { | ||||
|             this.Close(); | ||||
|         } | ||||
|  | ||||
|     } | ||||
| } | ||||
							
								
								
									
										309
									
								
								SubProject/FLG0000/LogData/List.resx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										309
									
								
								SubProject/FLG0000/LogData/List.resx
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,309 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <root> | ||||
|   <!--  | ||||
|     Microsoft ResX Schema  | ||||
|      | ||||
|     Version 2.0 | ||||
|      | ||||
|     The primary goals of this format is to allow a simple XML format  | ||||
|     that is mostly human readable. The generation and parsing of the  | ||||
|     various data types are done through the TypeConverter classes  | ||||
|     associated with the data types. | ||||
|      | ||||
|     Example: | ||||
|      | ||||
|     ... ado.net/XML headers & schema ... | ||||
|     <resheader name="resmimetype">text/microsoft-resx</resheader> | ||||
|     <resheader name="version">2.0</resheader> | ||||
|     <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> | ||||
|     <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> | ||||
|     <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> | ||||
|     <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> | ||||
|     <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> | ||||
|         <value>[base64 mime encoded serialized .NET Framework object]</value> | ||||
|     </data> | ||||
|     <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | ||||
|         <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> | ||||
|         <comment>This is a comment</comment> | ||||
|     </data> | ||||
|                  | ||||
|     There are any number of "resheader" rows that contain simple  | ||||
|     name/value pairs. | ||||
|      | ||||
|     Each data row contains a name, and value. The row also contains a  | ||||
|     type or mimetype. Type corresponds to a .NET class that support  | ||||
|     text/value conversion through the TypeConverter architecture.  | ||||
|     Classes that don't support this are serialized and stored with the  | ||||
|     mimetype set. | ||||
|      | ||||
|     The mimetype is used for serialized objects, and tells the  | ||||
|     ResXResourceReader how to depersist the object. This is currently not  | ||||
|     extensible. For a given mimetype the value must be set accordingly: | ||||
|      | ||||
|     Note - application/x-microsoft.net.object.binary.base64 is the format  | ||||
|     that the ResXResourceWriter will generate, however the reader can  | ||||
|     read any of the formats listed below. | ||||
|      | ||||
|     mimetype: application/x-microsoft.net.object.binary.base64 | ||||
|     value   : The object must be serialized with  | ||||
|             : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter | ||||
|             : and then encoded with base64 encoding. | ||||
|      | ||||
|     mimetype: application/x-microsoft.net.object.soap.base64 | ||||
|     value   : The object must be serialized with  | ||||
|             : System.Runtime.Serialization.Formatters.Soap.SoapFormatter | ||||
|             : and then encoded with base64 encoding. | ||||
|  | ||||
|     mimetype: application/x-microsoft.net.object.bytearray.base64 | ||||
|     value   : The object must be serialized into a byte array  | ||||
|             : using a System.ComponentModel.TypeConverter | ||||
|             : and then encoded with base64 encoding. | ||||
|     --> | ||||
|   <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> | ||||
|     <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> | ||||
|     <xsd:element name="root" msdata:IsDataSet="true"> | ||||
|       <xsd:complexType> | ||||
|         <xsd:choice maxOccurs="unbounded"> | ||||
|           <xsd:element name="metadata"> | ||||
|             <xsd:complexType> | ||||
|               <xsd:sequence> | ||||
|                 <xsd:element name="value" type="xsd:string" minOccurs="0" /> | ||||
|               </xsd:sequence> | ||||
|               <xsd:attribute name="name" use="required" type="xsd:string" /> | ||||
|               <xsd:attribute name="type" type="xsd:string" /> | ||||
|               <xsd:attribute name="mimetype" type="xsd:string" /> | ||||
|               <xsd:attribute ref="xml:space" /> | ||||
|             </xsd:complexType> | ||||
|           </xsd:element> | ||||
|           <xsd:element name="assembly"> | ||||
|             <xsd:complexType> | ||||
|               <xsd:attribute name="alias" type="xsd:string" /> | ||||
|               <xsd:attribute name="name" type="xsd:string" /> | ||||
|             </xsd:complexType> | ||||
|           </xsd:element> | ||||
|           <xsd:element name="data"> | ||||
|             <xsd:complexType> | ||||
|               <xsd:sequence> | ||||
|                 <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | ||||
|                 <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> | ||||
|               </xsd:sequence> | ||||
|               <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> | ||||
|               <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> | ||||
|               <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> | ||||
|               <xsd:attribute ref="xml:space" /> | ||||
|             </xsd:complexType> | ||||
|           </xsd:element> | ||||
|           <xsd:element name="resheader"> | ||||
|             <xsd:complexType> | ||||
|               <xsd:sequence> | ||||
|                 <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | ||||
|               </xsd:sequence> | ||||
|               <xsd:attribute name="name" type="xsd:string" use="required" /> | ||||
|             </xsd:complexType> | ||||
|           </xsd:element> | ||||
|         </xsd:choice> | ||||
|       </xsd:complexType> | ||||
|     </xsd:element> | ||||
|   </xsd:schema> | ||||
|   <resheader name="resmimetype"> | ||||
|     <value>text/microsoft-resx</value> | ||||
|   </resheader> | ||||
|   <resheader name="version"> | ||||
|     <value>2.0</value> | ||||
|   </resheader> | ||||
|   <resheader name="reader"> | ||||
|     <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | ||||
|   </resheader> | ||||
|   <resheader name="writer"> | ||||
|     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | ||||
|   </resheader> | ||||
|   <metadata name="dsPurchase.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> | ||||
|     <value>17, 17</value> | ||||
|   </metadata> | ||||
|   <metadata name="bs.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> | ||||
|     <value>131, 17</value> | ||||
|   </metadata> | ||||
|   <metadata name="ta.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> | ||||
|     <value>195, 17</value> | ||||
|   </metadata> | ||||
|   <metadata name="tam.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> | ||||
|     <value>257, 17</value> | ||||
|   </metadata> | ||||
|   <metadata name="bn.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> | ||||
|     <value>330, 17</value> | ||||
|   </metadata> | ||||
|   <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||||
|   <data name="bindingNavigatorMoveFirstItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | ||||
|     <value> | ||||
|         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= | ||||
| </value> | ||||
|   </data> | ||||
|   <data name="bindingNavigatorMovePreviousItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | ||||
|     <value> | ||||
|         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 | ||||
| </value> | ||||
|   </data> | ||||
|   <data name="bindingNavigatorMoveNextItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | ||||
|     <value> | ||||
|         iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO | ||||
|         wwAADsMBx2+oZAAAAKNJREFUOE9jGHygcNbz/1AmeSB35rP/Cd33yDckY8rT//P2//6f0HWHPEMSep78 | ||||
|         n73v1//OrX//u5VeJt2QyK5H/6ds+/W/ZOnf/wnT//63yT1LmiGBzQ//t659D9ZsXPLlv3T0tf/GkcuI | ||||
|         N8Sj6v7/krnv4JoVXXpIc4F96d3/gS3PyNMMAhZ5d/7bFFwhTzMIGGbdJl8zCOik3SBf81AEDAwAoH5f | ||||
|         oAc0QjgAAAAASUVORK5CYII= | ||||
| </value> | ||||
|   </data> | ||||
|   <data name="bindingNavigatorMoveLastItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | ||||
|     <value> | ||||
|         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+zuQxOnAAAAABJRU5ErkJggg== | ||||
| </value> | ||||
|   </data> | ||||
|   <data name="btAdd.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | ||||
|     <value> | ||||
|         iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO | ||||
|         wwAADsMBx2+oZAAAAUpJREFUOE9jGLzg7gL2/7fmcf6/Oofr/8UZvP+hwsSD60CNfx41/v/zsOH/yckC | ||||
|         pBtwfjov3ICDPSKkG3B8kiBQc93/Pw+q/u9oFydswKWZPP/PTuX7fxKo8Ui/0P993SJAzeX//94r+r++ | ||||
|         Qeb/qhq5/0srFf/PL1X+P6tIFdPAU0B//nlYD9RUC8SV///cKwHivP9/72b+/3sn+f/f23H//92MAOKQ | ||||
|         /5NyNDENONQrDHbu3/ulQI0FQI3ZQI2pQI0J///digZqDPv/70bQ/3/X/f53peliGrCzXeL/lmap/+vA | ||||
|         zpX/v6RC8f/fWzFAjeH/p+Zp/J+QpfW/O0P3f3uq/v/mREPCYTIb6E+Qc//dCPjfk6FDWAM6APnz3w1/ | ||||
|         IPb735qsT7oB3em6YP+CcH2cEekGtCQZ/G+IN/xfE2v8vzLahHQD6AQYGAAkI9iedfyIaQAAAABJRU5E | ||||
|         rkJggg== | ||||
| </value> | ||||
|   </data> | ||||
|   <data name="btCopy.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | ||||
|     <value> | ||||
|         iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 | ||||
|         YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAFDSURBVDhPlZK9SgNREIXzOpY+gEXQIg+QkMLOTuwsLNRU | ||||
|         ViKIja0SbMRCBQsLUxgQArERf1ARCaLBCErUIoWJjnyzTna4Ccs6cLLkzpzvnr17M5KiMknFQPXyQfbO | ||||
|         m6rNkxtZ3q9LqVyR2bVdVSKEJsbr53dpvnVUrx/RE61W2zI5v6EQqz9rVCwAYLj2+KP6VyL+bJ825LPz | ||||
|         pWYzpknUB7CLARgIE6HK/bfO0F86aklhZiWC8ENEA9D0iUKAKRHgE5kZHdz2VPTyUwsxYHHrWN+TIQAe | ||||
|         6M07F10VvVx+OgZwsgaYO3wZAHhz+ayr5zMAwGAAn8gDMA8F8Fmu7p4Uwh3wibx5vd5TNVptyeaKMQAD | ||||
|         p4o4HJ9oGAD42EQhBoTlE9kFYleEmZQjo+M6q5fJF4thIt4XEZudMfc/Y1i6mrpEfgGL0hchHI3KDgAA | ||||
|         AABJRU5ErkJggg== | ||||
| </value> | ||||
|   </data> | ||||
|   <data name="btEdit.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | ||||
|     <value> | ||||
|         iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 | ||||
|         YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEvSURBVDhPpZI/S0JRGIed+i6Nbk0t0iCuSkuDi1MfIKfm | ||||
|         +gAOQktTQkMggYtRkwgidKmgyQwMCgqz0CivvvK8cK7neG4KdeHhHs45v+c9/xLyz08Ft713OQ+6SqXV | ||||
|         kfLlnXJw1lSK5VrERqGkMB4JCCLpvQ7lZfDlQJ+B4EnwI9nTkbYdAZMbjxOPq4eJPH1MvXC2sD8XsOzP | ||||
|         0bcX/C3MXEfAfmzBsnCnP10uWBWu3IS+gJOm0w5fHCZiw0aQzu3GC0xYgm2R+poTRnh8HeqNOALu920w | ||||
|         9MK0F8NGkMrs+ALewqrwUXss3ed+vKB6H+rh2OT3SjpO0IBgcyvnCjgDBGCq8mcMiQ3FHAGdLB/J4vMF | ||||
|         KhoI83LXk6m5gCpmufbyOWlgv0BVIMx4JPj7JzIDGHRUPz2nxiQAAAAASUVORK5CYII= | ||||
| </value> | ||||
|   </data> | ||||
|   <data name="btDel.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | ||||
|     <value> | ||||
|         iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO | ||||
|         wwAADsMBx2+oZAAAAW9JREFUOE+1kE0ow2Ecx3dV3krt4oJaOSCTvIRkMqSxyITIzCQHDouEdnFwIOVC | ||||
|         DrhIDiQl5UTiNG/z2ppafy1S2gX/uDwfY6i1v7Hie3nqeb7fz+/7/FR/Ilwn0G0Exw4fV5GJlXlEZxXC | ||||
|         rIet9bAQvB5Ymgn2sLYAvSZEux7RUQFzE4qQt4bCXAYjPaHvnDoCkLpsRGMB2JqCTGLIijDlwqQ9bEMV | ||||
|         i9OIytR3EMNWcJ/BWH8A6j8/bOGFxwXNxYEvGbMQ9XnQ1/K78KfY3/VXzkMY0qFGG2H4RoLGQshJQNbG | ||||
|         86CNhdrsX9a/uQZTPhQl4rMY4OLofbl3aX7I8uwPC7y/g1YdjyVJuEvT8e1tfwUYteHUxCCfHChDeHmG | ||||
|         QQvokjlOU+PbWA0x3pZnILVVI3uvQyHsbiLnqnGmRCF1NYD8pDhpRxOH7HQoAKZGkFKjceszQbpSrumX | ||||
|         bO+G80MFwKUTxgfgcO/b8D9IpXoFiiMDHIQm0skAAAAASUVORK5CYII= | ||||
| </value> | ||||
|   </data> | ||||
|   <data name="btFind.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | ||||
|     <value> | ||||
|         iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 | ||||
|         YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAE3SURBVDhPnZIxS8NQFEb7W/wLjh0Fl9a1SxBHBekkWFd1 | ||||
|         qYg4Ci5dndSCg2AHl4LQSaRSKDqoFUE7VAjUmvTKueWmL2mw2gunL7zmO+/mJhmZoTJusdF868vpXUfO | ||||
|         b5/lpPEox9f3SvnsRtk8uojxHQ7HEgSEkXS6vrz3xqtdu+xdfUiheEBsJOGCk/mz/hROUHsIIrp+qIKY | ||||
|         hB/a9r+CVAG4Auj5g7iA5/1NACaptgIVLHkb0wWVw13ZL60p2+uerqkCJs1mMgwUU6d1k/xJwI10RZj1 | ||||
|         9TPUN7Wam9dgTMC75QR7TjCBkRQs5Jd1jQS8c1ewtZLTPcQW/peADpC44cudgnjZOQ1OCGjTwkwaGBon | ||||
|         GoSrpcVIQqmAj6LZftFBup9vWiUlUQdIDCbsQrsGZRJKBbOXyA++SlEsu6QjvQAAAABJRU5ErkJggg== | ||||
| </value> | ||||
|   </data> | ||||
|   <metadata name="cm1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> | ||||
|     <value>504, 23</value> | ||||
|   </metadata> | ||||
|   <data name="saveToolStripMenuItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | ||||
|     <value> | ||||
|         R0lGODlhEAAQAIQAAJXD9Iasxm6MqnSn2lZtjVaRyEpXbYu767TX/2KZztvr/4Gy5KrT/3ut32+gzlFh | ||||
|         e+r0/0RNX9/u/9Ln+8Xg//n8/4e36CkxQz9GVkSCvKjL35/N/Je91K7T5bDS4////yH/C05FVFNDQVBF | ||||
|         Mi4wAwEBAAAh+QQAAAAAACwAAAAAEAAQAAAIuQA/CBxIsKDACRwScggQwIGAhwIICBDYQcEEgwg+bNjw | ||||
|         QKCHCQgkQBgpQcKBCg0AEBCoAaRIkhIsVBigUiAHCgwkKNjJU8GAAx0/3NwIAMABCwsaDHCwIGgAChuK | ||||
|         HjiQdMDSAQYEPpWKtKqDBA6yfgiAwGhXpUsTJIgg0AGCo0nRfi1QgO0HAQyQNpCrtkAGDAIFbKi69GsC | ||||
|         un8FEohqdEFavxkyXAhMoPKDBwYMRIiAAcOFoAZDCwwIADs= | ||||
| </value> | ||||
|   </data> | ||||
|   <data name="loadToolStripMenuItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | ||||
|     <value> | ||||
|         R0lGODlhEAAQAIQfAJfL/OTs9HWVsW6aUqnT+6bnZldwkYiux7TZ/O3z+UlVa/P2+ZfTW36wWJDLV4m7 | ||||
|         69nn78bi/qjL3qDP+VJhe4rAVa7S40NLXJ3bYJrA1ikxQz5FVdDU22OPRf///////yH/C05FVFNDQVBF | ||||
|         Mi4wAwEBAAAh+QQBAAAfACwAAAAAEAAQAAAIwQA9CBxIcOCHgx4gWLAgIUOGAwcESBTgAaEFCAEGaBwQ | ||||
|         IGOABwYqerCQsYBJBho7JHgAUqCEDjAxYGBQgYHKBAsoCMzQIUIEmA6CdkCAIOfOBT5/MnBQYSgBozCj | ||||
|         SoVJ4KkCDx1MFhhKFEFVAhMCXM1aAANMoh2qTgh7AWvZmQ6igp0AIEDbDg0aLA06YC4AABA2eBjgYcHG | ||||
|         vmv/Akgg2IMBDgsSdJwcAEICDhoECjDAmQIFBQouXNiwQYPOgqgLBgQAOw== | ||||
| </value> | ||||
|   </data> | ||||
|   <data name="resetToolStripMenuItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | ||||
|     <value> | ||||
|         R0lGODlhEAAQAIQfALnik2aXQv7+/dPut73llbfala3LmW6gSWqdQ2eYRGqaSLfck568iYrUQN7yzF6R | ||||
|         PLTXlYjUP8XwmYfQQLbYl4jRQGiaQsPumNbyu7nglNPzsLXYlf7+/lCHK////////yH/C05FVFNDQVBF | ||||
|         Mi4wAwEBAAAh+QQBAAAfACwAAAAAEAAQAAAIlgA/CBzooaAHgQUHEvSgIEAABQUfHFTIwQECDAMwYDhg | ||||
|         oENCgRw8dBgAAECFBgsweJxYsAODDjApTIhAwCMHkCItGOxwgUCGlQQTeAgJsyhQg0iTGvzQ0qhND0IX | ||||
|         dtBwQcJKDxZsIhQpIcIECkVffmwpYUGDCiUheBQg1cCBAgU2QFDg4KZCDxIZOoQ48S7LpQoDCx4cEAA7 | ||||
| </value> | ||||
|   </data> | ||||
|   <metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> | ||||
|     <value>396, 17</value> | ||||
|   </metadata> | ||||
|   <data name="btSearch.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | ||||
|     <value> | ||||
|         iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 | ||||
|         YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAQnSURBVEhLtVfvT1NXGL6ZM/NP8EeWuKCo+z5nsg/7ujAj | ||||
|         opjKhLLSKhWHiBQrILlYFWgv0KpFREQRWAsOtgWRQrEBpC0tVYEtGSoqpWzglo0Cm37T2udyDr1CdVSu | ||||
|         T3LSm7zPfZ+e8573x2UixZ4911fsyP557e78js935Xd8EZvX/vGXbNeHxCwuJGxntKzUyaVVDNkyq4fH | ||||
|         VDUjU2yj7+XJ5onAsSv3nydobDGEKg4kbNd6+VmP+XjtyD+6Nn+As0wvWqd/+jPwjaZzO3ll+ZDqHCrV | ||||
|         tYe/c5bwgnQtFJZqe20ZF4e8C1disd23O98SS2iLgRim6JyVBQ0Tz4QC2LHaPDaTXvmr86BxwKww9Fcp | ||||
|         DO7q/QZXSzx7ayt5nTlUMdQhfA8ru9b7NIlzJBFKeEC0sGXyBX1J1zYdUF979EdKqbtSUtgZTWhvxGJh | ||||
|         f0Ba0tdCzOGB4xXuVHtzKpB6ztOTyPV8Qij/i3A7zmsYe5Zc7DhMKK8DF2kupiFRub7/x6/S2z4ilCWB | ||||
|         CqvNXn9x69S8uKpm2Bd2AwqDq4FeJBxv6vk73ZGKAhBGTBOLe+VK44CTCsOnosxTR2hz2KexbULKUBJi | ||||
|         GsnxCrGvyN6dyDn24nmnpnsLfFG/2TVPniZorBt5IiDjnBzNU/zKytwXiSlixKot68kjD4XefSWUkkHf | ||||
|         wUJETAyDikT/VZ5pdHaX8F8tE8gEtWl0hvo/WD5o5Q3IW5RBajhcMejgDSLiuwu/uKh/aPG1/evcG+ty | ||||
|         ap9MU4PSeK+B8EWD8ty9Ruo/p3Z0Gk2GiWOt2042j88XjBS9p5LwRQN8Uv9oLnG51m0M2ltBs++9Cu83 | ||||
|         9F+i/guafC/i8ts+449aGPxUo0f8oy4f+IH6V9U8nIpRta5mDhy4s1J4uXARCF80CC/X0ar7o7jQvEF5 | ||||
|         YeAWNahN3hkx0ymB7dqcZxqbpf7TKgY7iSkY/BJXiTDJkfTExGNhUYgE8jL3ZWFxknIOLTExTPwJ2yZV | ||||
|         3eO/6L9CmYs/c/tT2FD+UAZ5YoTAyKSuezBJ/WbVP/47vrB9AzHPQa53m1HIKSnYJBwJRd3S7PqRCRR+ | ||||
|         QlsygkViFXyEfPrR7eqJOQSJzhaVefW3cSqMlhaMtx/PkQpDVKZ3taC1Un9ZV4d9kuBESiivI1lrVxY0 | ||||
|         j/9LyXRFIozjVRrv2oWibJPvP2lJbwahhEdyad+N0EVburBEY90iL3VXI6bCkGGMSubsb+92SdoeCWIq | ||||
|         FMUSCmOww4CHQQ8Dn7J8sBF5esLknaW3ly7sFKLzeRsOGD0xgoYbTTGyEhqDURYjrVBg8fIHVMGYJul6 | ||||
|         j5DXlo+3CWPHSBmZvv/7N16kdwU+V/DZgs8XdBrU3ozqYS+q37dcn1ZyyhZFqOICTRwfavhgQ2eLy7Ws | ||||
|         YVn2A2JeIhjmFdpO9IbYugJ4AAAAAElFTkSuQmCC | ||||
| </value> | ||||
|   </data> | ||||
|   <data name="toolStripButton2.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | ||||
|     <value> | ||||
|         iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 | ||||
|         YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADlSURBVEhL7dQxCsIwFMbxnMrZWatzUXRUCo5ewSs4ewZR | ||||
|         DyDeQfEETsUbRL7YYNSXNC/UOiQP/kvzyE9KUcQ7y/VJtlHFvQYPjzf50xKsJsFmq81WHq538swMO9il | ||||
|         zhALxkWd7kAOJwsnjjPsYNeGs2B14fR5YTYq5O5c1u7sL987iAUjF+6LIjaMKJyDoiAYmVAvn8lsXHij | ||||
|         KBhGwDWof4APihqHqQ+OKhg2X3U/n7+9ah88CKY+pM9ndTgbplDbmQtnwS7UtmPDWfDf/jIRLnKhOuzY | ||||
|         UMSGmyrBauKE26jiohshHicE2B3dbRrmAAAAAElFTkSuQmCC | ||||
| </value> | ||||
|   </data> | ||||
|   <metadata name="fpSpread1_Sheet1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> | ||||
|     <value>579, 23</value> | ||||
|   </metadata> | ||||
|   <metadata name="fpSpread1_Sheet1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> | ||||
|     <value>579, 23</value> | ||||
|   </metadata> | ||||
| </root> | ||||
							
								
								
									
										126
									
								
								SubProject/FLG0000/LogData/Lov_LogItem.Designer.cs
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										126
									
								
								SubProject/FLG0000/LogData/Lov_LogItem.Designer.cs
									
									
									
										generated
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,126 @@ | ||||
| namespace FLG0000.LogData | ||||
| { | ||||
|     partial class Lov_LogItem | ||||
|     { | ||||
|         /// <summary> | ||||
|         /// Required designer variable. | ||||
|         /// </summary> | ||||
|         private System.ComponentModel.IContainer components = null; | ||||
|  | ||||
|         /// <summary> | ||||
|         /// Clean up any resources being used. | ||||
|         /// </summary> | ||||
|         /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> | ||||
|         protected override void Dispose(bool disposing) | ||||
|         { | ||||
|             if (disposing && (components != null)) | ||||
|             { | ||||
|                 components.Dispose(); | ||||
|             } | ||||
|             base.Dispose(disposing); | ||||
|         } | ||||
|  | ||||
|         #region Windows Form Designer generated code | ||||
|  | ||||
|         /// <summary> | ||||
|         /// Required method for Designer support - do not modify | ||||
|         /// the contents of this method with the code editor. | ||||
|         /// </summary> | ||||
|         private void InitializeComponent() | ||||
|         { | ||||
|             this.tbGrp = new System.Windows.Forms.TextBox(); | ||||
|             this.tbItem = new System.Windows.Forms.TextBox(); | ||||
|             this.btOK = new System.Windows.Forms.Button(); | ||||
|             this.listBox1 = new System.Windows.Forms.ListView(); | ||||
|             this.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); | ||||
|             this.listBox2 = new System.Windows.Forms.ListView(); | ||||
|             this.columnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); | ||||
|             this.SuspendLayout(); | ||||
|             //  | ||||
|             // tbGrp | ||||
|             //  | ||||
|             this.tbGrp.Location = new System.Drawing.Point(14, 192); | ||||
|             this.tbGrp.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); | ||||
|             this.tbGrp.Name = "tbGrp"; | ||||
|             this.tbGrp.Size = new System.Drawing.Size(561, 46); | ||||
|             this.tbGrp.TabIndex = 1; | ||||
|             //  | ||||
|             // tbItem | ||||
|             //  | ||||
|             this.tbItem.Location = new System.Drawing.Point(14, 426); | ||||
|             this.tbItem.Margin = new System.Windows.Forms.Padding(2); | ||||
|             this.tbItem.Name = "tbItem"; | ||||
|             this.tbItem.Size = new System.Drawing.Size(561, 46); | ||||
|             this.tbItem.TabIndex = 2; | ||||
|             //  | ||||
|             // btOK | ||||
|             //  | ||||
|             this.btOK.Location = new System.Drawing.Point(12, 482); | ||||
|             this.btOK.Name = "btOK"; | ||||
|             this.btOK.Size = new System.Drawing.Size(563, 52); | ||||
|             this.btOK.TabIndex = 3; | ||||
|             this.btOK.Text = "button1"; | ||||
|             this.btOK.UseVisualStyleBackColor = true; | ||||
|             this.btOK.Click += new System.EventHandler(this.btOK_Click); | ||||
|             //  | ||||
|             // listBox1 | ||||
|             //  | ||||
|             this.listBox1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { | ||||
|             this.columnHeader1}); | ||||
|             this.listBox1.Location = new System.Drawing.Point(14, 12); | ||||
|             this.listBox1.Name = "listBox1"; | ||||
|             this.listBox1.Size = new System.Drawing.Size(561, 175); | ||||
|             this.listBox1.TabIndex = 4; | ||||
|             this.listBox1.UseCompatibleStateImageBehavior = false; | ||||
|             this.listBox1.View = System.Windows.Forms.View.Details; | ||||
|             //  | ||||
|             // columnHeader1 | ||||
|             //  | ||||
|             this.columnHeader1.Width = 544; | ||||
|             //  | ||||
|             // listBox2 | ||||
|             //  | ||||
|             this.listBox2.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { | ||||
|             this.columnHeader2}); | ||||
|             this.listBox2.Location = new System.Drawing.Point(14, 246); | ||||
|             this.listBox2.Name = "listBox2"; | ||||
|             this.listBox2.Size = new System.Drawing.Size(561, 175); | ||||
|             this.listBox2.TabIndex = 5; | ||||
|             this.listBox2.UseCompatibleStateImageBehavior = false; | ||||
|             this.listBox2.View = System.Windows.Forms.View.Details; | ||||
|             //  | ||||
|             // columnHeader2 | ||||
|             //  | ||||
|             this.columnHeader2.Width = 544; | ||||
|             //  | ||||
|             // Lov_LogItem | ||||
|             //  | ||||
|             this.AutoScaleDimensions = new System.Drawing.SizeF(16F, 40F); | ||||
|             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; | ||||
|             this.ClientSize = new System.Drawing.Size(592, 550); | ||||
|             this.Controls.Add(this.listBox2); | ||||
|             this.Controls.Add(this.listBox1); | ||||
|             this.Controls.Add(this.btOK); | ||||
|             this.Controls.Add(this.tbItem); | ||||
|             this.Controls.Add(this.tbGrp); | ||||
|             this.Font = new System.Drawing.Font("맑은 고딕", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); | ||||
|             this.Margin = new System.Windows.Forms.Padding(7, 10, 7, 10); | ||||
|             this.Name = "Lov_LogItem"; | ||||
|             this.Text = "Lov_LogItem"; | ||||
|             this.Load += new System.EventHandler(this.Lov_LogItem_Load); | ||||
|             this.ResumeLayout(false); | ||||
|             this.PerformLayout(); | ||||
|  | ||||
|         } | ||||
|  | ||||
|         #endregion | ||||
|  | ||||
|         private System.Windows.Forms.Button btOK; | ||||
|         private System.Windows.Forms.ListView listBox1; | ||||
|         private System.Windows.Forms.ColumnHeader columnHeader1; | ||||
|         private System.Windows.Forms.ListView listBox2; | ||||
|         private System.Windows.Forms.ColumnHeader columnHeader2; | ||||
|         public System.Windows.Forms.TextBox tbGrp; | ||||
|         public System.Windows.Forms.TextBox tbItem; | ||||
|     } | ||||
| } | ||||
							
								
								
									
										95
									
								
								SubProject/FLG0000/LogData/Lov_LogItem.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										95
									
								
								SubProject/FLG0000/LogData/Lov_LogItem.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,95 @@ | ||||
| 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 FLG0000.LogData | ||||
| { | ||||
|     public partial class Lov_LogItem : Form | ||||
|     { | ||||
|         bool binit = false; | ||||
|         string logType = ""; | ||||
|         string logDiv = ""; | ||||
|  | ||||
|         DataTable dtList = null; | ||||
|         public Lov_LogItem(string logType_, string logDiv_) | ||||
|         { | ||||
|             InitializeComponent(); | ||||
|             this.logType = logType_; | ||||
|             this.logDiv = logDiv_; | ||||
|             this.listBox1.MultiSelect = false; | ||||
|             this.listBox1.FullRowSelect = true;             | ||||
|             this.listBox1.GridLines = true; | ||||
|             this.listBox1.SelectedIndexChanged += listBox1_SelectedIndexChanged; | ||||
|             | ||||
|  | ||||
|             this.listBox2.MultiSelect = false; | ||||
|             this.listBox2.FullRowSelect = true; | ||||
|             this.listBox2.GridLines = true;  | ||||
|             this.listBox2.SelectedIndexChanged += listBox2_SelectedIndexChanged; | ||||
|         } | ||||
|  | ||||
|         void listBox2_SelectedIndexChanged(object sender, EventArgs e) | ||||
|         { | ||||
|             if (binit == false) return; | ||||
|             var listview = sender as ListView; | ||||
|             if (listview.SelectedItems.Count > 0) | ||||
|             { | ||||
|                 this.tbItem.Text = listview.SelectedItems[0].Text; | ||||
|             } | ||||
|         } | ||||
|  | ||||
|         void listBox1_SelectedIndexChanged(object sender, EventArgs e) | ||||
|         { | ||||
|             if (binit == false) return; | ||||
|             var listview = sender as ListView; | ||||
|             this.listBox2.Items.Clear(); | ||||
|             if (listview.SelectedItems.Count > 0) | ||||
|             { | ||||
|                 this.tbGrp.Text = listview.SelectedItems[0].Text; | ||||
|                 var typestr = listBox1.SelectedItems[0].Tag.ToString();// listBox1.Items[listBox1.SelectedIndex].ToString(); | ||||
|                 var grplist = dtList.AsEnumerable().Where(t => t.Field<String>(0).StartsWith(typestr) && t.Field<string>(0).Length == 8); | ||||
|                 foreach (var item in grplist) | ||||
|                 { | ||||
|                     //string data = string.Format("[{0}] {1}", item[0], item[1]); | ||||
|                     var lv = this.listBox2.Items.Add(item[1].ToString()); | ||||
|                     lv.Tag = item[0]; | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
|  | ||||
|         private void Lov_LogItem_Load(object sender, EventArgs e) | ||||
|         { | ||||
|             //해다 자료를 불러와서 표시해준다. | ||||
|             var typestr = logType + logDiv; | ||||
|             this.Text = typestr; | ||||
|  | ||||
|             this.Show(); | ||||
|             Application.DoEvents(); | ||||
|  | ||||
|  | ||||
|             dtList = FCOMMON.DBM.getCodeTable("19"); | ||||
|  | ||||
|             var grplist = dtList.AsEnumerable().Where(t => t.Field<String>(0).StartsWith(typestr) && t.Field<string>(0).Length == 6); | ||||
|             this.listBox1.Items.Clear(); | ||||
|             foreach (var item in grplist) | ||||
|             { | ||||
|                 var lv = this.listBox1.Items.Add(item[1].ToString()); | ||||
|                 lv.Tag = item[0].ToString(); | ||||
|             } | ||||
|             binit = true; | ||||
|  | ||||
|             this.tbGrp.Focus(); | ||||
|         } | ||||
|  | ||||
|         private void btOK_Click(object sender, EventArgs e) | ||||
|         { | ||||
|             DialogResult = System.Windows.Forms.DialogResult.OK; | ||||
|         } | ||||
|     } | ||||
| } | ||||
							
								
								
									
										120
									
								
								SubProject/FLG0000/LogData/Lov_LogItem.resx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										120
									
								
								SubProject/FLG0000/LogData/Lov_LogItem.resx
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,120 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <root> | ||||
|   <!--  | ||||
|     Microsoft ResX Schema  | ||||
|      | ||||
|     Version 2.0 | ||||
|      | ||||
|     The primary goals of this format is to allow a simple XML format  | ||||
|     that is mostly human readable. The generation and parsing of the  | ||||
|     various data types are done through the TypeConverter classes  | ||||
|     associated with the data types. | ||||
|      | ||||
|     Example: | ||||
|      | ||||
|     ... ado.net/XML headers & schema ... | ||||
|     <resheader name="resmimetype">text/microsoft-resx</resheader> | ||||
|     <resheader name="version">2.0</resheader> | ||||
|     <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> | ||||
|     <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> | ||||
|     <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> | ||||
|     <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> | ||||
|     <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> | ||||
|         <value>[base64 mime encoded serialized .NET Framework object]</value> | ||||
|     </data> | ||||
|     <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | ||||
|         <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> | ||||
|         <comment>This is a comment</comment> | ||||
|     </data> | ||||
|                  | ||||
|     There are any number of "resheader" rows that contain simple  | ||||
|     name/value pairs. | ||||
|      | ||||
|     Each data row contains a name, and value. The row also contains a  | ||||
|     type or mimetype. Type corresponds to a .NET class that support  | ||||
|     text/value conversion through the TypeConverter architecture.  | ||||
|     Classes that don't support this are serialized and stored with the  | ||||
|     mimetype set. | ||||
|      | ||||
|     The mimetype is used for serialized objects, and tells the  | ||||
|     ResXResourceReader how to depersist the object. This is currently not  | ||||
|     extensible. For a given mimetype the value must be set accordingly: | ||||
|      | ||||
|     Note - application/x-microsoft.net.object.binary.base64 is the format  | ||||
|     that the ResXResourceWriter will generate, however the reader can  | ||||
|     read any of the formats listed below. | ||||
|      | ||||
|     mimetype: application/x-microsoft.net.object.binary.base64 | ||||
|     value   : The object must be serialized with  | ||||
|             : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter | ||||
|             : and then encoded with base64 encoding. | ||||
|      | ||||
|     mimetype: application/x-microsoft.net.object.soap.base64 | ||||
|     value   : The object must be serialized with  | ||||
|             : System.Runtime.Serialization.Formatters.Soap.SoapFormatter | ||||
|             : and then encoded with base64 encoding. | ||||
|  | ||||
|     mimetype: application/x-microsoft.net.object.bytearray.base64 | ||||
|     value   : The object must be serialized into a byte array  | ||||
|             : using a System.ComponentModel.TypeConverter | ||||
|             : and then encoded with base64 encoding. | ||||
|     --> | ||||
|   <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> | ||||
|     <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> | ||||
|     <xsd:element name="root" msdata:IsDataSet="true"> | ||||
|       <xsd:complexType> | ||||
|         <xsd:choice maxOccurs="unbounded"> | ||||
|           <xsd:element name="metadata"> | ||||
|             <xsd:complexType> | ||||
|               <xsd:sequence> | ||||
|                 <xsd:element name="value" type="xsd:string" minOccurs="0" /> | ||||
|               </xsd:sequence> | ||||
|               <xsd:attribute name="name" use="required" type="xsd:string" /> | ||||
|               <xsd:attribute name="type" type="xsd:string" /> | ||||
|               <xsd:attribute name="mimetype" type="xsd:string" /> | ||||
|               <xsd:attribute ref="xml:space" /> | ||||
|             </xsd:complexType> | ||||
|           </xsd:element> | ||||
|           <xsd:element name="assembly"> | ||||
|             <xsd:complexType> | ||||
|               <xsd:attribute name="alias" type="xsd:string" /> | ||||
|               <xsd:attribute name="name" type="xsd:string" /> | ||||
|             </xsd:complexType> | ||||
|           </xsd:element> | ||||
|           <xsd:element name="data"> | ||||
|             <xsd:complexType> | ||||
|               <xsd:sequence> | ||||
|                 <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | ||||
|                 <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> | ||||
|               </xsd:sequence> | ||||
|               <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> | ||||
|               <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> | ||||
|               <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> | ||||
|               <xsd:attribute ref="xml:space" /> | ||||
|             </xsd:complexType> | ||||
|           </xsd:element> | ||||
|           <xsd:element name="resheader"> | ||||
|             <xsd:complexType> | ||||
|               <xsd:sequence> | ||||
|                 <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | ||||
|               </xsd:sequence> | ||||
|               <xsd:attribute name="name" type="xsd:string" use="required" /> | ||||
|             </xsd:complexType> | ||||
|           </xsd:element> | ||||
|         </xsd:choice> | ||||
|       </xsd:complexType> | ||||
|     </xsd:element> | ||||
|   </xsd:schema> | ||||
|   <resheader name="resmimetype"> | ||||
|     <value>text/microsoft-resx</value> | ||||
|   </resheader> | ||||
|   <resheader name="version"> | ||||
|     <value>2.0</value> | ||||
|   </resheader> | ||||
|   <resheader name="reader"> | ||||
|     <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | ||||
|   </resheader> | ||||
|   <resheader name="writer"> | ||||
|     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | ||||
|   </resheader> | ||||
| </root> | ||||
		Reference in New Issue
	
	Block a user
	 chikyun.kim
					chikyun.kim