This commit is contained in:
ChiKyun Kim
2025-09-09 08:25:50 +09:00
parent 9a7d1d27c7
commit adb66451ca
79 changed files with 4195 additions and 2213 deletions

View File

@@ -399,7 +399,8 @@ namespace Project.Dialog
foreach (var item in Enum.GetValues(typeof(eDOName)))
{
var em = (eDOName)item;
var dr = PUB.mdm.dataSet.InputDescription.Where(t => t.Idx == (int)item).FirstOrDefault();
var itemidx = (int)em;
var dr = PUB.mdm.dataSet.OutputDescription.Where(t => t.Idx == itemidx).FirstOrDefault();
var pinNo = $"Y{(int)em:X2}";
var pinTitle = item.ToString();
var Desc = dr == null ? "" : dr.Description;

View File

@@ -40,7 +40,7 @@ namespace Project
//모터설정값을 보고 해당 모터의 목록을 표시한다.
//사용하지 않는 축은 표시하지 않는다
for (int i = 0; i < PUB.system.MotaxisCount; i++)
for (int i = 0; i < SETTING.System.MotaxisCount; i++)
{
var axis = (eAxis)i;
var axisname = (eAxisName)i;

View File

@@ -54,7 +54,7 @@ namespace Project.Dialog
//모터설정값을 보고 해당 모터의 목록을 표시한다.
//사용하지 않는 축은 표시하지 않는다
for (int i = 0; i < PUB.system.MotaxisCount; i++)
for (int i = 0; i < SETTING.System.MotaxisCount; i++)
{
var axis = (eAxis)i;
var axisname = (eAxisName)i;

View File

@@ -309,8 +309,8 @@ namespace Project
var dr = drv.Row as DataSet1.OPModelRow;
if (dr.Title == "") return;
this.Value = dr.Title;
PUB.uSetting.useConv = VAR.BOOL[eVarBool.Use_Conveyor];
PUB.uSetting.Save();
SETTING.User.useConv = VAR.BOOL[eVarBool.Use_Conveyor];
SETTING.User.Save();
DialogResult = System.Windows.Forms.DialogResult.OK;
}

View File

@@ -50,30 +50,38 @@
this.bindingNavigatorSeparator2 = new System.Windows.Forms.ToolStripSeparator();
this.component_Reel_RegExRuleBindingNavigatorSaveItem = new System.Windows.Forms.ToolStripButton();
this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
this.btCopy = new System.Windows.Forms.ToolStripButton();
this.toolStripButton2 = new System.Windows.Forms.ToolStripButton();
this.dv1 = new System.Windows.Forms.DataGridView();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.tbPattern = new System.Windows.Forms.TextBox();
this.tbGroups = new System.Windows.Forms.TextBox();
this.cmbBCDTestBox = new System.Windows.Forms.ComboBox();
this.btBcdTest = new System.Windows.Forms.Button();
this.ta = new Project.DataSet1TableAdapters.K4EE_Component_Reel_RegExRuleTableAdapter();
this.tam = new Project.DataSet1TableAdapters.TableAdapterManager();
this.label3 = new System.Windows.Forms.Label();
this.panel1 = new System.Windows.Forms.Panel();
this.cmbModelList = new System.Windows.Forms.ComboBox();
this.label4 = new System.Windows.Forms.Label();
this.dvcModelName = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewCheckBoxColumn1 = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.IsIgnore = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewCheckBoxColumn2 = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.dataGridViewCheckBoxColumn3 = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.textBox1 = new System.Windows.Forms.TextBox();
this.textBox2 = new System.Windows.Forms.TextBox();
this.ta = new Project.DataSet1TableAdapters.K4EE_Component_Reel_RegExRuleTableAdapter();
this.tam = new Project.DataSet1TableAdapters.TableAdapterManager();
this.toolStripButton2 = new System.Windows.Forms.ToolStripButton();
((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit();
this.bn.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dataSet1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dv1)).BeginInit();
this.tableLayoutPanel1.SuspendLayout();
this.panel1.SuspendLayout();
this.SuspendLayout();
//
// bn
@@ -97,8 +105,9 @@
this.bindingNavigatorDeleteItem,
this.component_Reel_RegExRuleBindingNavigatorSaveItem,
this.toolStripButton1,
this.btCopy,
this.toolStripButton2});
this.bn.Location = new System.Drawing.Point(0, 736);
this.bn.Location = new System.Drawing.Point(0, 609);
this.bn.MoveFirstItem = this.bindingNavigatorMoveFirstItem;
this.bn.MoveLastItem = this.bindingNavigatorMoveLastItem;
this.bn.MoveNextItem = this.bindingNavigatorMoveNextItem;
@@ -114,8 +123,8 @@
this.bindingNavigatorAddNewItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorAddNewItem.Image")));
this.bindingNavigatorAddNewItem.Name = "bindingNavigatorAddNewItem";
this.bindingNavigatorAddNewItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorAddNewItem.Size = new System.Drawing.Size(79, 22);
this.bindingNavigatorAddNewItem.Text = "새로 추가";
this.bindingNavigatorAddNewItem.Size = new System.Drawing.Size(49, 22);
this.bindingNavigatorAddNewItem.Text = "Add";
//
// bs
//
@@ -141,8 +150,8 @@
this.bindingNavigatorDeleteItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorDeleteItem.Image")));
this.bindingNavigatorDeleteItem.Name = "bindingNavigatorDeleteItem";
this.bindingNavigatorDeleteItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorDeleteItem.Size = new System.Drawing.Size(51, 22);
this.bindingNavigatorDeleteItem.Text = "삭제";
this.bindingNavigatorDeleteItem.Size = new System.Drawing.Size(61, 22);
this.bindingNavigatorDeleteItem.Text = "Delete";
//
// bindingNavigatorMoveFirstItem
//
@@ -209,32 +218,51 @@
//
this.component_Reel_RegExRuleBindingNavigatorSaveItem.Image = ((System.Drawing.Image)(resources.GetObject("component_Reel_RegExRuleBindingNavigatorSaveItem.Image")));
this.component_Reel_RegExRuleBindingNavigatorSaveItem.Name = "component_Reel_RegExRuleBindingNavigatorSaveItem";
this.component_Reel_RegExRuleBindingNavigatorSaveItem.Size = new System.Drawing.Size(91, 22);
this.component_Reel_RegExRuleBindingNavigatorSaveItem.Text = "데이터 저장";
this.component_Reel_RegExRuleBindingNavigatorSaveItem.Size = new System.Drawing.Size(52, 22);
this.component_Reel_RegExRuleBindingNavigatorSaveItem.Text = "Save";
this.component_Reel_RegExRuleBindingNavigatorSaveItem.Click += new System.EventHandler(this.component_Reel_RegExRuleBindingNavigatorSaveItem_Click);
//
// toolStripButton1
//
this.toolStripButton1.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
this.toolStripButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton1.Image")));
this.toolStripButton1.Image = global::Project.Properties.Resources.arrow_refresh_small;
this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton1.Name = "toolStripButton1";
this.toolStripButton1.Size = new System.Drawing.Size(66, 22);
this.toolStripButton1.Text = "Refresh";
this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click);
//
// btCopy
//
this.btCopy.Image = global::Project.Properties.Resources.copy;
this.btCopy.ImageTransparentColor = System.Drawing.Color.Magenta;
this.btCopy.Name = "btCopy";
this.btCopy.Size = new System.Drawing.Size(55, 22);
this.btCopy.Text = "Copy";
this.btCopy.Click += new System.EventHandler(this.btCopy_Click);
//
// toolStripButton2
//
this.toolStripButton2.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton2.Image")));
this.toolStripButton2.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton2.Name = "toolStripButton2";
this.toolStripButton2.Size = new System.Drawing.Size(83, 22);
this.toolStripButton2.Text = "Export List";
this.toolStripButton2.Click += new System.EventHandler(this.toolStripButton2_Click);
//
// dv1
//
this.dv1.AllowUserToAddRows = false;
this.dv1.AutoGenerateColumns = false;
this.dv1.AutoSizeRowsMode = System.Windows.Forms.DataGridViewAutoSizeRowsMode.AllCells;
this.dv1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dv1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.dvcModelName,
this.dataGridViewCheckBoxColumn1,
this.IsIgnore,
this.dataGridViewTextBoxColumn1,
this.dataGridViewTextBoxColumn2,
this.dataGridViewTextBoxColumn5,
this.dataGridViewTextBoxColumn3,
this.dataGridViewTextBoxColumn4,
this.dataGridViewCheckBoxColumn2,
this.dataGridViewCheckBoxColumn3});
@@ -249,73 +277,12 @@
dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dv1.DefaultCellStyle = dataGridViewCellStyle4;
this.dv1.Dock = System.Windows.Forms.DockStyle.Fill;
this.dv1.Location = new System.Drawing.Point(0, 0);
this.dv1.Location = new System.Drawing.Point(0, 27);
this.dv1.Name = "dv1";
this.dv1.RowTemplate.Height = 23;
this.dv1.Size = new System.Drawing.Size(967, 557);
this.dv1.Size = new System.Drawing.Size(967, 380);
this.dv1.TabIndex = 2;
//
// dataGridViewCheckBoxColumn1
//
this.dataGridViewCheckBoxColumn1.DataPropertyName = "IsEnable";
this.dataGridViewCheckBoxColumn1.HeaderText = "사용";
this.dataGridViewCheckBoxColumn1.Name = "dataGridViewCheckBoxColumn1";
//
// IsIgnore
//
this.IsIgnore.DataPropertyName = "IsIgnore";
this.IsIgnore.HeaderText = "제외";
this.IsIgnore.Name = "IsIgnore";
//
// dataGridViewTextBoxColumn1
//
this.dataGridViewTextBoxColumn1.DataPropertyName = "Id";
dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.dataGridViewTextBoxColumn1.DefaultCellStyle = dataGridViewCellStyle1;
this.dataGridViewTextBoxColumn1.HeaderText = "Id";
this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
this.dataGridViewTextBoxColumn1.ReadOnly = true;
//
// dataGridViewTextBoxColumn2
//
this.dataGridViewTextBoxColumn2.DataPropertyName = "Seq";
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.dataGridViewTextBoxColumn2.DefaultCellStyle = dataGridViewCellStyle2;
this.dataGridViewTextBoxColumn2.HeaderText = "Seq";
this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
//
// dataGridViewTextBoxColumn5
//
this.dataGridViewTextBoxColumn5.DataPropertyName = "Symbol";
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.dataGridViewTextBoxColumn5.DefaultCellStyle = dataGridViewCellStyle3;
this.dataGridViewTextBoxColumn5.HeaderText = "Symbol";
this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5";
//
// dataGridViewTextBoxColumn3
//
this.dataGridViewTextBoxColumn3.DataPropertyName = "CustCode";
this.dataGridViewTextBoxColumn3.HeaderText = "CustCode";
this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
//
// dataGridViewTextBoxColumn4
//
this.dataGridViewTextBoxColumn4.DataPropertyName = "Description";
this.dataGridViewTextBoxColumn4.HeaderText = "Description";
this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4";
//
// dataGridViewCheckBoxColumn2
//
this.dataGridViewCheckBoxColumn2.DataPropertyName = "IsTrust";
this.dataGridViewCheckBoxColumn2.HeaderText = "Trust";
this.dataGridViewCheckBoxColumn2.Name = "dataGridViewCheckBoxColumn2";
//
// dataGridViewCheckBoxColumn3
//
this.dataGridViewCheckBoxColumn3.DataPropertyName = "IsAmkStd";
this.dataGridViewCheckBoxColumn3.HeaderText = "AmkStd";
this.dataGridViewCheckBoxColumn3.Name = "dataGridViewCheckBoxColumn3";
//
// tableLayoutPanel1
//
this.tableLayoutPanel1.ColumnCount = 2;
@@ -323,14 +290,17 @@
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tableLayoutPanel1.Controls.Add(this.label1, 0, 0);
this.tableLayoutPanel1.Controls.Add(this.label2, 0, 1);
this.tableLayoutPanel1.Controls.Add(this.textBox1, 1, 0);
this.tableLayoutPanel1.Controls.Add(this.textBox2, 1, 1);
this.tableLayoutPanel1.Controls.Add(this.tbPattern, 1, 0);
this.tableLayoutPanel1.Controls.Add(this.tbGroups, 1, 1);
this.tableLayoutPanel1.Controls.Add(this.cmbBCDTestBox, 1, 2);
this.tableLayoutPanel1.Controls.Add(this.btBcdTest, 0, 2);
this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 557);
this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 430);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
this.tableLayoutPanel1.RowCount = 2;
this.tableLayoutPanel1.RowCount = 3;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 27F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(967, 179);
this.tableLayoutPanel1.TabIndex = 4;
//
@@ -339,7 +309,7 @@
this.label1.Dock = System.Windows.Forms.DockStyle.Fill;
this.label1.Location = new System.Drawing.Point(3, 0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(116, 89);
this.label1.Size = new System.Drawing.Size(116, 76);
this.label1.TabIndex = 0;
this.label1.Text = "Pattern";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -347,36 +317,54 @@
// label2
//
this.label2.Dock = System.Windows.Forms.DockStyle.Fill;
this.label2.Location = new System.Drawing.Point(3, 89);
this.label2.Location = new System.Drawing.Point(3, 76);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(116, 90);
this.label2.Size = new System.Drawing.Size(116, 76);
this.label2.TabIndex = 0;
this.label2.Text = "Groups";
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// textBox1
// tbPattern
//
this.textBox1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "Pattern", true));
this.textBox1.Dock = System.Windows.Forms.DockStyle.Fill;
this.textBox1.Font = new System.Drawing.Font("Consolas", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.textBox1.ForeColor = System.Drawing.Color.Black;
this.textBox1.Location = new System.Drawing.Point(125, 3);
this.textBox1.Multiline = true;
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(839, 83);
this.textBox1.TabIndex = 1;
this.tbPattern.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "Pattern", true));
this.tbPattern.Dock = System.Windows.Forms.DockStyle.Fill;
this.tbPattern.Font = new System.Drawing.Font("Consolas", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.tbPattern.ForeColor = System.Drawing.Color.Black;
this.tbPattern.Location = new System.Drawing.Point(125, 3);
this.tbPattern.Multiline = true;
this.tbPattern.Name = "tbPattern";
this.tbPattern.Size = new System.Drawing.Size(839, 70);
this.tbPattern.TabIndex = 1;
//
// textBox2
// tbGroups
//
this.textBox2.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "Groups", true));
this.textBox2.Dock = System.Windows.Forms.DockStyle.Fill;
this.textBox2.Font = new System.Drawing.Font("Consolas", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.textBox2.ForeColor = System.Drawing.Color.Black;
this.textBox2.Location = new System.Drawing.Point(125, 92);
this.textBox2.Multiline = true;
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(839, 84);
this.textBox2.TabIndex = 1;
this.tbGroups.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "Groups", true));
this.tbGroups.Dock = System.Windows.Forms.DockStyle.Fill;
this.tbGroups.Font = new System.Drawing.Font("Consolas", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.tbGroups.ForeColor = System.Drawing.Color.Black;
this.tbGroups.Location = new System.Drawing.Point(125, 79);
this.tbGroups.Multiline = true;
this.tbGroups.Name = "tbGroups";
this.tbGroups.Size = new System.Drawing.Size(839, 70);
this.tbGroups.TabIndex = 1;
//
// cmbBCDTestBox
//
this.cmbBCDTestBox.Dock = System.Windows.Forms.DockStyle.Fill;
this.cmbBCDTestBox.Location = new System.Drawing.Point(125, 155);
this.cmbBCDTestBox.Name = "cmbBCDTestBox";
this.cmbBCDTestBox.Size = new System.Drawing.Size(839, 20);
this.cmbBCDTestBox.TabIndex = 2;
//
// btBcdTest
//
this.btBcdTest.Dock = System.Windows.Forms.DockStyle.Fill;
this.btBcdTest.Location = new System.Drawing.Point(3, 155);
this.btBcdTest.Name = "btBcdTest";
this.btBcdTest.Size = new System.Drawing.Size(116, 21);
this.btBcdTest.TabIndex = 3;
this.btBcdTest.Text = "Test";
this.btBcdTest.Click += new System.EventHandler(this.btBcdTest_Click);
//
// ta
//
@@ -395,21 +383,119 @@
this.tam.K4EE_Component_Reel_SID_InformationTableAdapter = null;
this.tam.UpdateOrder = Project.DataSet1TableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete;
//
// toolStripButton2
// label3
//
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(83, 22);
this.toolStripButton2.Text = "Export List";
this.toolStripButton2.Click += new System.EventHandler(this.toolStripButton2_Click);
this.label3.Dock = System.Windows.Forms.DockStyle.Bottom;
this.label3.Location = new System.Drawing.Point(0, 407);
this.label3.Name = "label3";
this.label3.Padding = new System.Windows.Forms.Padding(3, 3, 0, 0);
this.label3.Size = new System.Drawing.Size(967, 23);
this.label3.TabIndex = 5;
this.label3.Text = "Barcode Type 1: QR, 2:DataMatrix, 11: Code 39 || GROPS Item : SID,VLOT,VNAME,RID," +
"MFG,QTY";
//
// panel1
//
this.panel1.Controls.Add(this.cmbModelList);
this.panel1.Controls.Add(this.label4);
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(967, 27);
this.panel1.TabIndex = 6;
//
// cmbModelList
//
this.cmbModelList.Dock = System.Windows.Forms.DockStyle.Fill;
this.cmbModelList.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cmbModelList.Font = new System.Drawing.Font("굴림", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.cmbModelList.Location = new System.Drawing.Point(116, 0);
this.cmbModelList.Name = "cmbModelList";
this.cmbModelList.Size = new System.Drawing.Size(851, 27);
this.cmbModelList.TabIndex = 3;
this.cmbModelList.SelectedIndexChanged += new System.EventHandler(this.cmbModelList_SelectedIndexChanged);
//
// label4
//
this.label4.Dock = System.Windows.Forms.DockStyle.Left;
this.label4.Location = new System.Drawing.Point(0, 0);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(116, 27);
this.label4.TabIndex = 1;
this.label4.Text = "Model";
this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// dvcModelName
//
this.dvcModelName.DataPropertyName = "CustCode";
this.dvcModelName.HeaderText = "Model Name";
this.dvcModelName.Name = "dvcModelName";
this.dvcModelName.Visible = false;
//
// dataGridViewCheckBoxColumn1
//
this.dataGridViewCheckBoxColumn1.DataPropertyName = "IsEnable";
this.dataGridViewCheckBoxColumn1.HeaderText = "Enable";
this.dataGridViewCheckBoxColumn1.Name = "dataGridViewCheckBoxColumn1";
//
// IsIgnore
//
this.IsIgnore.DataPropertyName = "IsIgnore";
this.IsIgnore.HeaderText = "Except";
this.IsIgnore.Name = "IsIgnore";
//
// dataGridViewTextBoxColumn1
//
this.dataGridViewTextBoxColumn1.DataPropertyName = "Id";
dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.dataGridViewTextBoxColumn1.DefaultCellStyle = dataGridViewCellStyle1;
this.dataGridViewTextBoxColumn1.HeaderText = "ID";
this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
this.dataGridViewTextBoxColumn1.ReadOnly = true;
//
// dataGridViewTextBoxColumn2
//
this.dataGridViewTextBoxColumn2.DataPropertyName = "Seq";
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.dataGridViewTextBoxColumn2.DefaultCellStyle = dataGridViewCellStyle2;
this.dataGridViewTextBoxColumn2.HeaderText = "Order";
this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
//
// dataGridViewTextBoxColumn5
//
this.dataGridViewTextBoxColumn5.DataPropertyName = "Symbol";
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.dataGridViewTextBoxColumn5.DefaultCellStyle = dataGridViewCellStyle3;
this.dataGridViewTextBoxColumn5.HeaderText = "Type";
this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5";
//
// dataGridViewTextBoxColumn4
//
this.dataGridViewTextBoxColumn4.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.dataGridViewTextBoxColumn4.DataPropertyName = "Description";
this.dataGridViewTextBoxColumn4.HeaderText = "Description";
this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4";
//
// dataGridViewCheckBoxColumn2
//
this.dataGridViewCheckBoxColumn2.DataPropertyName = "IsTrust";
this.dataGridViewCheckBoxColumn2.HeaderText = "Trust";
this.dataGridViewCheckBoxColumn2.Name = "dataGridViewCheckBoxColumn2";
//
// dataGridViewCheckBoxColumn3
//
this.dataGridViewCheckBoxColumn3.DataPropertyName = "IsAmkStd";
this.dataGridViewCheckBoxColumn3.HeaderText = "AmkStd";
this.dataGridViewCheckBoxColumn3.Name = "dataGridViewCheckBoxColumn3";
//
// RegExRule
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(967, 761);
this.ClientSize = new System.Drawing.Size(967, 634);
this.Controls.Add(this.dv1);
this.Controls.Add(this.panel1);
this.Controls.Add(this.label3);
this.Controls.Add(this.tableLayoutPanel1);
this.Controls.Add(this.bn);
this.Name = "RegExRule";
@@ -424,6 +510,7 @@
((System.ComponentModel.ISupportInitialize)(this.dv1)).EndInit();
this.tableLayoutPanel1.ResumeLayout(false);
this.tableLayoutPanel1.PerformLayout();
this.panel1.ResumeLayout(false);
this.ResumeLayout(false);
this.PerformLayout();
@@ -453,17 +540,24 @@
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.TextBox tbPattern;
private System.Windows.Forms.TextBox tbGroups;
private System.Windows.Forms.ToolStripButton toolStripButton2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.ComboBox cmbBCDTestBox;
private System.Windows.Forms.Button btBcdTest;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.ComboBox cmbModelList;
private System.Windows.Forms.ToolStripButton btCopy;
private System.Windows.Forms.DataGridViewTextBoxColumn dvcModelName;
private System.Windows.Forms.DataGridViewCheckBoxColumn dataGridViewCheckBoxColumn1;
private System.Windows.Forms.DataGridViewCheckBoxColumn IsIgnore;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn5;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn4;
private System.Windows.Forms.DataGridViewCheckBoxColumn dataGridViewCheckBoxColumn2;
private System.Windows.Forms.DataGridViewCheckBoxColumn dataGridViewCheckBoxColumn3;
private System.Windows.Forms.ToolStripButton toolStripButton2;
}
}

View File

@@ -1,12 +1,16 @@
using AR;
using Emgu.CV.Structure;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.Entity.Infrastructure.MappingViews;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.ServiceModel;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Windows.Forms;
@@ -14,38 +18,102 @@ namespace Project.Dialog
{
public partial class RegExRule : Form
{
string bcdteststring = "";
public RegExRule()
{
InitializeComponent();
this.dataSet1.K4EE_Component_Reel_RegExRule.TableNewRow += (s1, e1) => {
if(PUB.Result.isSetvModel)
this.dv1.BorderStyle = BorderStyle.None;
this.dataSet1.K4EE_Component_Reel_RegExRule.TableNewRow += (s1, e1) =>
{
if (PUB.Result.isSetvModel)
e1.Row["CustCode"] = PUB.Result.vModel.Title;
};
//모델목록을 업데이트한다.
cmbModelList.Items.Clear();
foreach (var dr in PUB.mdm.dataSet.OPModel.OrderBy(t => t.Title))
cmbModelList.Items.Add(dr.Title);
cmbModelList.Items.Add("ALL");
//현재 선택된 모델을 자동선택한다.
cmbModelList.Text = PUB.Result.vModel.Title;
LoadSaveBCDtestData();
}
void LoadSaveBCDtestData(bool load = true)
{
var fn = "bcdtestlist.txt";
if (load)
{
this.cmbBCDTestBox.Items.Clear();
if (System.IO.File.Exists(fn))
{
bcdteststring = System.IO.File.ReadAllText(fn, System.Text.Encoding.Default).Replace("\r", "");
var lines = bcdteststring.Split(new char[] { '\n' }, StringSplitOptions.RemoveEmptyEntries);
foreach (var lin in lines)
{
this.cmbBCDTestBox.Items.Add(lin);
}
}
else
{
this.cmbBCDTestBox.Items.Add($"101415540;LC15848629;TAIYOYUDEN;20000;RC18091A2526JMN;20250215");
}
}
else
{
//save
var sb = new System.Text.StringBuilder();
foreach (string item in this.cmbBCDTestBox.Items)
sb.AppendLine(item);
System.IO.File.WriteAllText(fn, sb.ToString(), System.Text.Encoding.Default);
}
}
private void RegExRule_Load(object sender, EventArgs e)
{
RefreshList(PUB.Result.vModel.Title);
if (cmbModelList.SelectedIndex == -1 && cmbModelList.Items.Count > 0)
cmbModelList.SelectedIndex = 0;
}
private void component_Reel_RegExRuleBindingNavigatorSaveItem_Click(object sender, EventArgs e)
{
this.Validate();
this.bs.EndEdit();
this.tam.UpdateAll(this.dataSet1);
var cnt = this.tam.UpdateAll(this.dataSet1);
if (cnt == 0)
{
UTIL.MsgE("저장된 내용이 없습니다");
}
else UTIL.MsgI($"{cnt}건의 자료가 저장 되었습니다");
var modelName = PUB.Result.vModel.Title;
PUB.Result.BCDPattern = PUB.GetPatterns(modelName, false);
PUB.Result.BCDIgnorePattern = PUB.GetPatterns(modelName, true);
PUB.log.Add($"모델패턴로딩:{PUB.Result.BCDPattern.Count}/{PUB.Result.BCDIgnorePattern.Count}");
dv1.AutoResizeColumns();
}
private void RefreshList(string cust)
{
try
{
this.ta.FillByWithSample(this.dataSet1.K4EE_Component_Reel_RegExRule, cust);
foreach(DataGridViewRow drow in this.dv1.Rows)
if(cust == "ALL")
{
dvcModelName.Visible = true;
this.ta.FillAll(this.dataSet1.K4EE_Component_Reel_RegExRule);
}
else
{
dvcModelName.Visible = false;
this.ta.FillByWithSample(this.dataSet1.K4EE_Component_Reel_RegExRule, cust);
}
foreach (DataGridViewRow drow in this.dv1.Rows)
{
var drv = drow.DataBoundItem as DataRowView;
if (drv == null) continue;
@@ -93,10 +161,131 @@ namespace Project.Dialog
{
System.Windows.Forms.MessageBox.Show(ex.Message);
}
}
private void btBcdTest_Click(object sender, EventArgs e)
{
var bcd = cmbBCDTestBox.Text.Trim();
//없는 문자라면 신규로 테스트한다.
if (cmbBCDTestBox.Items.Contains(bcd) == false)
cmbBCDTestBox.Items.Add(bcd);
//test
LoadSaveBCDtestData(false);
var sb = new System.Text.StringBuilder();
var idx = 0;
foreach (DataSet1.K4EE_Component_Reel_RegExRuleRow dr in this.dataSet1.K4EE_Component_Reel_RegExRule)
{
var pattern = dr.Pattern;// tbPattern.Text.Trim();
var grps = dr.Groups;// tbGroups.Text.Trim();
if (dr.IsEnable == false)
{
sb.AppendLine($"####{++idx} {dr.Description} - disble");
continue;
}
var regx = new Regex(pattern, RegexOptions.IgnoreCase, new TimeSpan(0, 0, 10));
if (regx.IsMatch(bcd))
{
sb.AppendLine($"####{++idx} {dr.Description}");
var matchs = regx.Matches(bcd);
foreach (System.Text.RegularExpressions.Match mat in matchs)
{
var grpstr = this.tbGroups.Text.Trim().Split(',');
foreach (var matchdata in grpstr)
{
var grpname = matchdata.Split('=')[0];
var grpno = matchdata.Split('=')[1].toInt();
if (grpno <= mat.Groups.Count)
{
var data = mat.Groups[grpno];
sb.AppendLine($"{grpname}={data.Value}");
}
}
}
}
else
{
sb.AppendLine($"####{++idx} {dr.Description} - No Pattern\n{pattern}");
}
}
UTIL.MsgI(sb.ToString());
}
private void cmbModelList_SelectedIndexChanged(object sender, EventArgs e)
{
var title = cmbModelList.Text;
if (title.isEmpty()) title = PUB.Result.vModel.Title;
RefreshList(title);
}
private void btCopy_Click(object sender, EventArgs e)
{
try
{
var drv = this.bs.Current as DataRowView;
if (drv == null)
{
UTIL.MsgE("Please select an item to copy.");
return;
}
var sourceRow = drv.Row as DataSet1.K4EE_Component_Reel_RegExRuleRow;
if (sourceRow == null) return;
var inputDialog = AR.UTIL.InputBox("Input ModelName", sourceRow.IsCustCodeNull() ? "" : sourceRow.CustCode);
if (inputDialog.Item1 == false) return;
var newModelName = inputDialog.Item2;
var inputDialog2 = AR.UTIL.InputBox("Input Description", sourceRow.IsDescriptionNull() ? "" : sourceRow.Description);
if (inputDialog2.Item1 == false) return;
var newDescription = inputDialog2.Item2;
var tacheck = new DataSet1TableAdapters.K4EE_Component_Reel_RegExRuleTableAdapter();
if (tacheck.CheckExsist(newModelName, newDescription) > 0)
{
UTIL.MsgE("이미 존재하는 이름입니다");
return;
}
if (this.dataSet1.K4EE_Component_Reel_RegExRule.Where(t => t.CustCode.Equals(newModelName) && t.Description.Equals(newDescription)).Count() > 0)
{
UTIL.MsgE("이미 존재하는 이름입니다");
return;
}
var newRow = this.dataSet1.K4EE_Component_Reel_RegExRule.NewK4EE_Component_Reel_RegExRuleRow();
newRow.CustCode = newModelName;
newRow.Pattern = sourceRow.IsPatternNull() ? "" : sourceRow.Pattern;
newRow.Groups = sourceRow.IsGroupsNull() ? "" : sourceRow.Groups;
newRow.Description = newDescription;
newRow.IsEnable = sourceRow.IsEnable;
newRow.IsIgnore = sourceRow.IsIgnore;
newRow.Seq = sourceRow.Seq;
newRow.Symbol = sourceRow.Symbol;
newRow.IsTrust = sourceRow.IsTrust;
newRow.IsAmkStd = sourceRow.IsAmkStd;
this.dataSet1.K4EE_Component_Reel_RegExRule.AddK4EE_Component_Reel_RegExRuleRow(newRow);
this.bs.MoveLast();
UTIL.MsgI($"[{newModelName}-{newDescription}] Rule has been copied successfully.");
}
catch (System.Exception ex)
{
UTIL.MsgE($"Error occurred during copying: {ex.Message}");
}
}
}
}

View File

@@ -124,7 +124,7 @@
<data name="bindingNavigatorAddNewItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wAAADsABataJCQAAAUpJREFUOE9jGLzg7gL2/7fmcf6/Oofr/8UZvP+hwsSD60CNfx41/v/zsOH/yckC
vAAADrwBlbxySQAAAUpJREFUOE9jGLzg7gL2/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
@@ -142,7 +142,7 @@
<data name="bindingNavigatorDeleteItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wAAADsABataJCQAAAW9JREFUOE+1kE0ow2Ecx3dV3krt4oJaOSCTvIRkMqSxyITIzCQHDouEdnFwIOVC
vAAADrwBlbxySQAAAW9JREFUOE+1kE0ow2Ecx3dV3krt4oJaOSCTvIRkMqSxyITIzCQHDouEdnFwIOVC
DrhIDiQl5UTiNG/z2ppafy1S2gX/uDwfY6i1v7Hie3nqeb7fz+/7/FR/Ilwn0G0Exw4fV5GJlXlEZxXC
rIet9bAQvB5Ymgn2sLYAvSZEux7RUQFzE4qQt4bCXAYjPaHvnDoCkLpsRGMB2JqCTGLIijDlwqQ9bEMV
i9OIytR3EMNWcJ/BWH8A6j8/bOGFxwXNxYEvGbMQ9XnQ1/K78KfY3/VXzkMY0qFGG2H4RoLGQshJQNbG
@@ -154,7 +154,7 @@
<data name="bindingNavigatorMoveFirstItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wAAADsABataJCQAAASpJREFUOE9jGDygcNbz/00Lnv/PnPj4P1QIA4S3P8Apx5A789n/VUfe/8elKL77
vAAADrwBlbxySQAAASpJREFUOE9jGDygcNbz/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
@@ -165,7 +165,7 @@
<data name="bindingNavigatorMovePreviousItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wAAADsABataJCQAAALZJREFUOE9jGDogvP3BfyiTdBDf/eB/cMM18gyI73n4f+n+///9qy+QbkBE+32w
vAAADrwBlbxySQAAALZJREFUOE9jGDogvP3BfyiTdBDf/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
@@ -174,7 +174,7 @@
<data name="bindingNavigatorMoveNextItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wAAADsABataJCQAAAKNJREFUOE9jGHygcNbz/1AmeSB35rP/Cd33yDckY8rT//P2//6f0HWHPEMSep78
vAAADrwBlbxySQAAAKNJREFUOE9jGHygcNbz/1AmeSB35rP/Cd33yDckY8rT//P2//6f0HWHPEMSep78
n73v1//OrX//u5VeJt2QyK5H/6ds+/W/ZOnf/wnT//63yT1LmiGBzQ//t659D9ZsXPLlv3T0tf/GkcuI
N8Sj6v7/krnv4JoVXXpIc4F96d3/gS3PyNMMAhZ5d/7bFFwhTzMIGGbdJl8zCOik3SBf81AEDAwAoH5f
oAc0QjgAAAAASUVORK5CYII=
@@ -183,7 +183,7 @@
<data name="bindingNavigatorMoveLastItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wAAADsABataJCQAAASxJREFUOE9jGFygcNbz/1AmBgDJNS14/j9z4mOcahhyZz77n9B9D6sCkNyqI+//
vAAADrwBlbxySQAAASxJREFUOE9jGFygcNbz/1AmBgDJNS14/j9z4mOcahhyZz77n9B9D6sCkNyqI+//
h7c/wG1AxpSn/+ft//0/oesOhiKQ3MJ9H/4HN1zDbUBCz5P/s/f9+t+59e9/t9LLKApBctO2vP/vX30B
twGRXY/+T9n263/J0r//E6b//W+TexauGCTXu/rDf6/SE7gNCGx++L917XuwZuOSL/+lo6/9N45cBtYA
kqub/+6/S/4B3AZ4VN3/XzL3HVyzoksPXDFILn/am//2GdtxG2Bfevd/YMszDM0gAJLLnvz6v0XCetwG
@@ -194,38 +194,27 @@
<data name="component_Reel_RegExRuleBindingNavigatorSaveItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wAAADsABataJCQAAAExJREFUOE9joAr49u3bf1IxVCsEgAWC58Dxh/cf4RhZDETHTNiHaQgpBoAwzBCo
vAAADrwBlbxySQAAAExJREFUOE9joAr49u3bf1IxVCsEgAWC58Dxh/cf4RhZDETHTNiHaQgpBoAwzBCo
dtINAGGiDUDGyGpoawAxeNSAQWkAORiqnRLAwAAA9EMMU8Daa3MAAAAASUVORK5CYII=
</value>
</data>
<data name="toolStripButton1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIDSURBVDhPpZLrS5NhGMb3j4SWh0oRQVExD4gonkDpg4hG
YKxG6WBogkMZKgPNCEVJFBGdGETEvgwyO9DJE5syZw3PIlPEE9pgBCLZ5XvdMB8Ew8gXbl54nuf63dd9
0OGSnwCahxbPRNPAPMw9Xpg6ZmF46kZZ0xSKzJPIrhpDWsVnpBhGkKx3nAX8Pv7z1zg8OoY/cITdn4fw
bf/C0kYAN3Ma/w3gWfZL5kzTKBxjWyK2DftwI9tyMYCZKXbNHaD91bLYJrDXsYbrWfUKwJrPE9M2M1Oc
VzOOpHI7Jr376Hi9ogHqFIANO0/MmmmbmSmm9a8ze+I4MrNWAdjtoJgWcx+PSzg166yZZ8xM8XvXDix9
c4jIqFYAjoriBV9AhEPv1mH/sonogha0afbZMMZz+yreTGyhpusHwtNNCsA5U1zS4BLxzJIfg299qO32
Ir7UJtZfftyATqeT+8o2D8JSjQrAJblrncYL7ZJ2+bfaFnC/1S1NjL3diRat7qrO7wLRP3HjWsojBeCo
mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+
kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D
TgDQASA1MVpwzwAAAABJRU5ErkJggg==
</value>
</data>
<data name="toolStripButton2.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIDSURBVDhPpZLrS5NhGMb3j4SWh0oRQVExD4gonkDpg4hG
YKxG6WBogkMZKgPNCEVJFBGdGETEvgwyO9DJE5syZw3PIlPEE9pgBCLZ5XvdMB8Ew8gXbl54nuf63dd9
0OGSnwCahxbPRNPAPMw9Xpg6ZmF46kZZ0xSKzJPIrhpDWsVnpBhGkKx3nAX8Pv7z1zg8OoY/cITdn4fw
bf/C0kYAN3Ma/w3gWfZL5kzTKBxjWyK2DftwI9tyMYCZKXbNHaD91bLYJrDXsYbrWfUKwJrPE9M2M1Oc
VzOOpHI7Jr376Hi9ogHqFIANO0/MmmmbmSmm9a8ze+I4MrNWAdjtoJgWcx+PSzg166yZZ8xM8XvXDix9
c4jIqFYAjoriBV9AhEPv1mH/sonogha0afbZMMZz+yreTGyhpusHwtNNCsA5U1zS4BLxzJIfg299qO32
Ir7UJtZfftyATqeT+8o2D8JSjQrAJblrncYL7ZJ2+bfaFnC/1S1NjL3diRat7qrO7wLRP3HjWsojBeCo
mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+
kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D
TgDQASA1MVpwzwAAAABJRU5ErkJggg==
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAL2SURBVDhPhZLrS1NxGMf3qv6EsF70MpBS0sjIF+XSmhnY
zVTMcjqnVGqWC4vMmEqmGZq4QYUoRS8qpIub1szc5nKjLTLN+/1Wrpa7H3fOmd9+52yogdADH54Xv9/z
4Tzf8xNwFXdTm3Gs2qhJvGf8k1Bp9JJO8dRw3UQlVvdQR+8a+qNl+rrQpOeb+KH1FV/Rrbc6qd9Wu5u1
uZdhc63x28lBYXDBiZI3MxDXDnlEeerNwdFAJVQarH+cXrZnioZpmoFphoFxioFh0gft6DLaB9xYZoDW
IS9KXk0j68Gg9x+JqELndXh8sMyy+DLLkM7gMy/xQTe2jPcDHiLww7LAwjRPo1w9A+H1zmf8cEpNzMSZ
yqQVqeIUshpOo+FdM8paaiAsDUMMQVS+H3HyvahtreVXcVEMFpc8iLuhY3hBcrXwZWefCqqRx2gwFvGS
8/VHUfQ0HfnNqZAojyNTmYnW3kWo+l14+80BO8npsLyb4gWiOtHmxDsFrHG4C0/65KjS5vGSDEUCGT6B
3Ic50I+5+VU+jHihITksuWkcLvsUEHAVX6mjChvFMI8ZoDRdw52Oq0ipOYSM+iSYpzwwk2C5gPXjgUxs
RBAnXyc4cKuUjirejvQ6ESzjPSjvugC5uhCp92PRrH2Nr3MMzCTYnkkanwhWJw3h7aAgQhYijZRtQ35T
Gs4q4pFWe4SXFKrTIWvJIV8SC+7cMsPiM/eLCU4SZHSxISCIlG2Zi5RtJZdCEFkUgpNVsbj4SAz9gAbl
mmJceCGGRJEMMxGYyNswEgFF+xF1Rbu2wsHibmrBTqF3juXRDc/jcmMussmgVJmKq02XVs84PD4WEQWa
NcG+Ii01a1sT/A83WSE8p22doPCjZ/SHY2Wjyxvhpnz+XRkqV3CcBJnbMbHg8DhHf7r8E7+8mLB6MRbk
l4vm4ZJ3USz3iPw+mrbvONf2PTguEOzJfXcxXNLesVuqsYVL1dQq2QHCslUBJCoqVNK2tDOz7UOYWJ0l
EAgEfwHCoaJtQ43MrwAAAABJRU5ErkJggg==
</value>
</data>
<metadata name="IsIgnore.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">

View File

@@ -88,13 +88,13 @@ namespace Project.Dialog
zpl = Printer.makeZPL_210908(new Class.Reel
{
sid = sid,
lot = lot,
manu = spy,
SID = sid,
venderLot = lot,
venderName = spy,
qty = vqty,
id = rid,
mfg = mfg,
partnum = pan,
PartNo = pan,
}, SETTING.Data.DrawOutbox, out qrdata);
var cnt = (int)nudCnt.Value;

View File

@@ -33,13 +33,13 @@
this.lbSID = new System.Windows.Forms.Label();
this.tbQty = new System.Windows.Forms.TextBox();
this.lbQty = new System.Windows.Forms.Label();
this.tbPart = new System.Windows.Forms.TextBox();
this.tbPartNo = new System.Windows.Forms.TextBox();
this.lbPart = new System.Windows.Forms.Label();
this.tbMfg = new System.Windows.Forms.TextBox();
this.tbMFGDate = new System.Windows.Forms.TextBox();
this.lbMFG = new System.Windows.Forms.Label();
this.tbManu = new System.Windows.Forms.TextBox();
this.tbVName = new System.Windows.Forms.TextBox();
this.lbManu = new System.Windows.Forms.Label();
this.tbLot = new System.Windows.Forms.TextBox();
this.tbVLot = new System.Windows.Forms.TextBox();
this.lbLot = new System.Windows.Forms.Label();
this.tbRid = new System.Windows.Forms.TextBox();
this.lbRID = new System.Windows.Forms.Label();
@@ -48,10 +48,10 @@
// btOK
//
this.btOK.Dock = System.Windows.Forms.DockStyle.Bottom;
this.btOK.Location = new System.Drawing.Point(0, 452);
this.btOK.Location = new System.Drawing.Point(0, 423);
this.btOK.Margin = new System.Windows.Forms.Padding(8, 13, 8, 13);
this.btOK.Name = "btOK";
this.btOK.Size = new System.Drawing.Size(618, 50);
this.btOK.Size = new System.Drawing.Size(565, 50);
this.btOK.TabIndex = 18;
this.btOK.Text = "확인";
this.btOK.UseVisualStyleBackColor = true;
@@ -59,164 +59,193 @@
//
// tbSid
//
this.tbSid.Location = new System.Drawing.Point(132, 380);
this.tbSid.BackColor = System.Drawing.Color.Gold;
this.tbSid.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.tbSid.Location = new System.Drawing.Point(181, 371);
this.tbSid.Margin = new System.Windows.Forms.Padding(7);
this.tbSid.Name = "tbSid";
this.tbSid.Size = new System.Drawing.Size(452, 39);
this.tbSid.Size = new System.Drawing.Size(376, 39);
this.tbSid.TabIndex = 32;
this.tbSid.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// lbSID
//
this.lbSID.Font = new System.Drawing.Font("굴림", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.lbSID.Location = new System.Drawing.Point(17, 380);
this.lbSID.BackColor = System.Drawing.Color.WhiteSmoke;
this.lbSID.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.lbSID.Font = new System.Drawing.Font("Tahoma", 13F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.lbSID.Location = new System.Drawing.Point(9, 371);
this.lbSID.Margin = new System.Windows.Forms.Padding(7, 0, 7, 0);
this.lbSID.Name = "lbSID";
this.lbSID.Size = new System.Drawing.Size(101, 72);
this.lbSID.Size = new System.Drawing.Size(165, 39);
this.lbSID.TabIndex = 31;
this.lbSID.Text = "sid";
this.lbSID.TextAlign = System.Drawing.ContentAlignment.TopRight;
this.lbSID.Text = "SID";
this.lbSID.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// tbQty
//
this.tbQty.Location = new System.Drawing.Point(132, 320);
this.tbQty.BackColor = System.Drawing.Color.Gold;
this.tbQty.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.tbQty.Location = new System.Drawing.Point(181, 311);
this.tbQty.Margin = new System.Windows.Forms.Padding(7);
this.tbQty.Name = "tbQty";
this.tbQty.Size = new System.Drawing.Size(452, 39);
this.tbQty.Size = new System.Drawing.Size(376, 39);
this.tbQty.TabIndex = 30;
this.tbQty.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// lbQty
//
this.lbQty.Font = new System.Drawing.Font("굴림", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.lbQty.BackColor = System.Drawing.Color.WhiteSmoke;
this.lbQty.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.lbQty.Font = new System.Drawing.Font("Tahoma", 13F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.lbQty.ForeColor = System.Drawing.Color.Blue;
this.lbQty.Location = new System.Drawing.Point(17, 320);
this.lbQty.Location = new System.Drawing.Point(9, 311);
this.lbQty.Margin = new System.Windows.Forms.Padding(7, 0, 7, 0);
this.lbQty.Name = "lbQty";
this.lbQty.Size = new System.Drawing.Size(101, 72);
this.lbQty.Size = new System.Drawing.Size(165, 39);
this.lbQty.TabIndex = 29;
this.lbQty.Text = "qty";
this.lbQty.TextAlign = System.Drawing.ContentAlignment.TopRight;
this.lbQty.Text = "QTY";
this.lbQty.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// tbPart
// tbPartNo
//
this.tbPart.Location = new System.Drawing.Point(132, 259);
this.tbPart.Margin = new System.Windows.Forms.Padding(7);
this.tbPart.Name = "tbPart";
this.tbPart.Size = new System.Drawing.Size(452, 39);
this.tbPart.TabIndex = 28;
this.tbPart.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.tbPartNo.BackColor = System.Drawing.Color.Gold;
this.tbPartNo.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.tbPartNo.Location = new System.Drawing.Point(181, 250);
this.tbPartNo.Margin = new System.Windows.Forms.Padding(7);
this.tbPartNo.Name = "tbPartNo";
this.tbPartNo.Size = new System.Drawing.Size(376, 39);
this.tbPartNo.TabIndex = 28;
this.tbPartNo.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// lbPart
//
this.lbPart.Font = new System.Drawing.Font("굴림", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.lbPart.Location = new System.Drawing.Point(17, 259);
this.lbPart.BackColor = System.Drawing.Color.WhiteSmoke;
this.lbPart.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.lbPart.Font = new System.Drawing.Font("Tahoma", 13F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.lbPart.Location = new System.Drawing.Point(9, 250);
this.lbPart.Margin = new System.Windows.Forms.Padding(7, 0, 7, 0);
this.lbPart.Name = "lbPart";
this.lbPart.Size = new System.Drawing.Size(101, 72);
this.lbPart.Size = new System.Drawing.Size(165, 39);
this.lbPart.TabIndex = 27;
this.lbPart.Text = "part";
this.lbPart.TextAlign = System.Drawing.ContentAlignment.TopRight;
this.lbPart.Text = "PART NO";
this.lbPart.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// tbMfg
// tbMFGDate
//
this.tbMfg.Location = new System.Drawing.Point(132, 198);
this.tbMfg.Margin = new System.Windows.Forms.Padding(7);
this.tbMfg.Name = "tbMfg";
this.tbMfg.Size = new System.Drawing.Size(452, 39);
this.tbMfg.TabIndex = 26;
this.tbMfg.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.tbMFGDate.BackColor = System.Drawing.Color.Gold;
this.tbMFGDate.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.tbMFGDate.Location = new System.Drawing.Point(181, 189);
this.tbMFGDate.Margin = new System.Windows.Forms.Padding(7);
this.tbMFGDate.Name = "tbMFGDate";
this.tbMFGDate.Size = new System.Drawing.Size(376, 39);
this.tbMFGDate.TabIndex = 26;
this.tbMFGDate.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// lbMFG
//
this.lbMFG.Font = new System.Drawing.Font("굴림", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.lbMFG.BackColor = System.Drawing.Color.WhiteSmoke;
this.lbMFG.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.lbMFG.Font = new System.Drawing.Font("Tahoma", 13F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.lbMFG.ForeColor = System.Drawing.Color.Blue;
this.lbMFG.Location = new System.Drawing.Point(17, 198);
this.lbMFG.Location = new System.Drawing.Point(9, 189);
this.lbMFG.Margin = new System.Windows.Forms.Padding(7, 0, 7, 0);
this.lbMFG.Name = "lbMFG";
this.lbMFG.Size = new System.Drawing.Size(101, 72);
this.lbMFG.Size = new System.Drawing.Size(165, 39);
this.lbMFG.TabIndex = 25;
this.lbMFG.Text = "mfg";
this.lbMFG.TextAlign = System.Drawing.ContentAlignment.TopRight;
this.lbMFG.Text = "MFG DATE";
this.lbMFG.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// tbManu
// tbVName
//
this.tbManu.Location = new System.Drawing.Point(132, 138);
this.tbManu.Margin = new System.Windows.Forms.Padding(7);
this.tbManu.Name = "tbManu";
this.tbManu.Size = new System.Drawing.Size(452, 39);
this.tbManu.TabIndex = 24;
this.tbManu.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.tbVName.AcceptsReturn = true;
this.tbVName.BackColor = System.Drawing.Color.Gold;
this.tbVName.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.tbVName.Location = new System.Drawing.Point(181, 129);
this.tbVName.Margin = new System.Windows.Forms.Padding(7);
this.tbVName.Name = "tbVName";
this.tbVName.Size = new System.Drawing.Size(376, 39);
this.tbVName.TabIndex = 24;
this.tbVName.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// lbManu
//
this.lbManu.Font = new System.Drawing.Font("굴림", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.lbManu.Location = new System.Drawing.Point(17, 138);
this.lbManu.BackColor = System.Drawing.Color.WhiteSmoke;
this.lbManu.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.lbManu.Font = new System.Drawing.Font("Tahoma", 13F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.lbManu.Location = new System.Drawing.Point(9, 129);
this.lbManu.Margin = new System.Windows.Forms.Padding(7, 0, 7, 0);
this.lbManu.Name = "lbManu";
this.lbManu.Size = new System.Drawing.Size(101, 72);
this.lbManu.Size = new System.Drawing.Size(165, 39);
this.lbManu.TabIndex = 23;
this.lbManu.Text = "manu";
this.lbManu.TextAlign = System.Drawing.ContentAlignment.TopRight;
this.lbManu.Text = "VENDER NAME";
this.lbManu.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// tbLot
// tbVLot
//
this.tbLot.Location = new System.Drawing.Point(132, 77);
this.tbLot.Margin = new System.Windows.Forms.Padding(7);
this.tbLot.Name = "tbLot";
this.tbLot.Size = new System.Drawing.Size(452, 39);
this.tbLot.TabIndex = 22;
this.tbLot.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.tbVLot.BackColor = System.Drawing.Color.Gold;
this.tbVLot.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.tbVLot.Location = new System.Drawing.Point(181, 68);
this.tbVLot.Margin = new System.Windows.Forms.Padding(7);
this.tbVLot.Name = "tbVLot";
this.tbVLot.Size = new System.Drawing.Size(376, 39);
this.tbVLot.TabIndex = 22;
this.tbVLot.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// lbLot
//
this.lbLot.Font = new System.Drawing.Font("굴림", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.lbLot.BackColor = System.Drawing.Color.WhiteSmoke;
this.lbLot.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.lbLot.Font = new System.Drawing.Font("Tahoma", 13F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.lbLot.ForeColor = System.Drawing.Color.Blue;
this.lbLot.Location = new System.Drawing.Point(17, 77);
this.lbLot.Location = new System.Drawing.Point(9, 68);
this.lbLot.Margin = new System.Windows.Forms.Padding(7, 0, 7, 0);
this.lbLot.Name = "lbLot";
this.lbLot.Size = new System.Drawing.Size(101, 72);
this.lbLot.Size = new System.Drawing.Size(165, 39);
this.lbLot.TabIndex = 21;
this.lbLot.Text = "lot";
this.lbLot.TextAlign = System.Drawing.ContentAlignment.TopRight;
this.lbLot.Text = "VENDER LOT";
this.lbLot.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// tbRid
//
this.tbRid.Location = new System.Drawing.Point(132, 16);
this.tbRid.BackColor = System.Drawing.Color.Gold;
this.tbRid.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.tbRid.Location = new System.Drawing.Point(181, 11);
this.tbRid.Margin = new System.Windows.Forms.Padding(7);
this.tbRid.Name = "tbRid";
this.tbRid.Size = new System.Drawing.Size(452, 39);
this.tbRid.Size = new System.Drawing.Size(376, 39);
this.tbRid.TabIndex = 20;
this.tbRid.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// lbRID
//
this.lbRID.Font = new System.Drawing.Font("굴림", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.lbRID.BackColor = System.Drawing.Color.WhiteSmoke;
this.lbRID.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.lbRID.Font = new System.Drawing.Font("Tahoma", 13F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.lbRID.ForeColor = System.Drawing.Color.Blue;
this.lbRID.Location = new System.Drawing.Point(17, 20);
this.lbRID.Location = new System.Drawing.Point(9, 11);
this.lbRID.Margin = new System.Windows.Forms.Padding(7, 0, 7, 0);
this.lbRID.Name = "lbRID";
this.lbRID.Size = new System.Drawing.Size(101, 72);
this.lbRID.Size = new System.Drawing.Size(165, 39);
this.lbRID.TabIndex = 19;
this.lbRID.Text = "rid";
this.lbRID.TextAlign = System.Drawing.ContentAlignment.TopRight;
this.lbRID.Text = "RID";
this.lbRID.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// fManualPrint
// fManualPrint0
//
this.AutoScaleDimensions = new System.Drawing.SizeF(14F, 32F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(618, 502);
this.ClientSize = new System.Drawing.Size(565, 473);
this.Controls.Add(this.tbSid);
this.Controls.Add(this.lbSID);
this.Controls.Add(this.tbQty);
this.Controls.Add(this.lbQty);
this.Controls.Add(this.tbPart);
this.Controls.Add(this.tbPartNo);
this.Controls.Add(this.lbPart);
this.Controls.Add(this.tbMfg);
this.Controls.Add(this.tbMFGDate);
this.Controls.Add(this.lbMFG);
this.Controls.Add(this.tbManu);
this.Controls.Add(this.tbVName);
this.Controls.Add(this.lbManu);
this.Controls.Add(this.tbLot);
this.Controls.Add(this.tbVLot);
this.Controls.Add(this.lbLot);
this.Controls.Add(this.tbRid);
this.Controls.Add(this.lbRID);
@@ -225,7 +254,7 @@
this.Margin = new System.Windows.Forms.Padding(6, 8, 6, 8);
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "fManualPrint";
this.Name = "fManualPrint0";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Make New Reel ID";
this.Load += new System.EventHandler(this.fNewReelID_Load);
@@ -240,13 +269,13 @@
private System.Windows.Forms.Label lbSID;
private System.Windows.Forms.TextBox tbQty;
private System.Windows.Forms.Label lbQty;
private System.Windows.Forms.TextBox tbPart;
private System.Windows.Forms.TextBox tbPartNo;
private System.Windows.Forms.Label lbPart;
private System.Windows.Forms.TextBox tbMfg;
private System.Windows.Forms.TextBox tbMFGDate;
private System.Windows.Forms.Label lbMFG;
private System.Windows.Forms.TextBox tbManu;
private System.Windows.Forms.TextBox tbVName;
private System.Windows.Forms.Label lbManu;
private System.Windows.Forms.TextBox tbLot;
private System.Windows.Forms.TextBox tbVLot;
private System.Windows.Forms.Label lbLot;
private System.Windows.Forms.TextBox tbRid;
private System.Windows.Forms.Label lbRID;

View File

@@ -13,14 +13,75 @@ namespace Project.Dialog
{
public partial class fManualPrint0 : Form
{
public Class.Reel reelinfo = null;
public string NewID { get; set; }
[Flags]
public enum eOpt : byte
{
reelid = 1,
sid = 2,
vlot = 4,
vname = 8,
partno = 16,
qty = 32,
mfg = 64,
}
public fManualPrint0()
{
InitializeComponent();
SetControlStates(eOpt.reelid | eOpt.sid | eOpt.vlot | eOpt.vname | eOpt.partno | eOpt.qty | eOpt.mfg);
}
/// <summary>
/// 사용하고자하는 컨트롤을 or 값으로 전달해주세요
/// </summary>
/// <param name="enabledOptions"></param>
public fManualPrint0(eOpt enabledOptions)
{
InitializeComponent();
SetControlStates(enabledOptions);
}
private void SetControlStates(eOpt enabledOptions)
{
tbRid.Enabled = enabledOptions.HasFlag(eOpt.reelid);
tbRid.BackColor = tbRid.Enabled ? Color.White : Color.LightGray;
tbSid.Enabled = enabledOptions.HasFlag(eOpt.sid);
tbSid.BackColor = tbSid.Enabled ? Color.White : Color.LightGray;
tbVLot.Enabled = enabledOptions.HasFlag(eOpt.vlot);
tbVLot.BackColor = tbVLot.Enabled ? Color.White : Color.LightGray;
tbVName.Enabled = enabledOptions.HasFlag(eOpt.vname);
tbVName.BackColor = tbVName.Enabled ? Color.White : Color.LightGray;
tbPartNo.Enabled = enabledOptions.HasFlag(eOpt.partno);
tbPartNo.BackColor = tbPartNo.Enabled ? Color.White : Color.LightGray;
tbQty.Enabled = enabledOptions.HasFlag(eOpt.qty);
tbQty.BackColor = tbQty.Enabled ? Color.White : Color.LightGray;
tbMFGDate.Enabled = enabledOptions.HasFlag(eOpt.mfg);
tbMFGDate.BackColor = tbMFGDate.Enabled ? Color.White : Color.LightGray;
}
private void fNewReelID_Load(object sender, EventArgs e)
{
if (PUB.Result != null && PUB.Result.ItemDataC != null)
{
var vdata = PUB.Result.ItemDataC.VisionData;
this.tbRid.Text = vdata.RID;
this.tbVLot.Text = vdata.VLOT;
this.tbVName.Text = vdata.VNAME;
this.tbPartNo.Text = vdata.PARTNO;
this.tbQty.Text = vdata.QTY;
this.tbSid.Text = vdata.SID;
this.tbMFGDate.Text = vdata.MFGDATE;
}
}
private void btOK_Click(object sender, EventArgs e)
@@ -28,27 +89,27 @@ namespace Project.Dialog
int qty = 0;
int.TryParse(tbQty.Text, out qty);
string rid, lot, manu, mfg, partnum,sid;
rid = lot = manu = mfg =sid= partnum = "";
if (tbRid.Text.isEmpty() == false) rid = tbRid.Text.Trim();
if (tbSid.Text.isEmpty() == false) sid = tbSid.Text.Trim();
if (tbMfg.Text.isEmpty() == false) mfg = tbMfg.Text.Trim();
if (tbPart.Text.isEmpty() == false) partnum = tbPart.Text.Trim();
if (tbLot.Text.isEmpty() == false) lot = tbLot.Text.Trim();
if (tbManu.Text.isEmpty() == false) manu = tbManu.Text.Trim();
var rlt = PUB.PrinterR.Print(new Class.Reel
string rid, lot, manu, mfg, partnum, sid;
rid = lot = manu = mfg = sid = partnum = "";
rid = tbRid.Text.Trim();
sid = tbSid.Text.Trim();
mfg = tbMFGDate.Text.Trim();
partnum = tbPartNo.Text.Trim();
lot = tbVLot.Text.Trim();
manu = tbVName.Text.Trim();
reelinfo = new Class.Reel
{
id = rid,
lot = lot,
manu = manu,
venderLot = lot,
venderName = manu,
mfg = mfg,
partnum =partnum,
PartNo = partnum,
qty = qty,
sid = sid,
}, true, false);
SID = sid,
};
DialogResult = DialogResult.OK;
PUB.log.Add($"manual print:{PUB.PrinterR.qrData}");
}
}
}

View File

@@ -433,7 +433,7 @@ namespace Project.Dialog
private void btOK_MouseClick(object sender, MouseEventArgs e)
{
Confirm();
}
@@ -541,7 +541,7 @@ namespace Project.Dialog
private void btOK_Click(object sender, EventArgs e)
{
Confirm();
}
}
}

View File

@@ -0,0 +1,632 @@
namespace Project.Dialog
{
partial class fSelectSIDInformation
{
/// <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.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fSelectSIDInformation));
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
this.tbSID = new System.Windows.Forms.TextBox();
this.tbLot = new System.Windows.Forms.TextBox();
this.tbMFG = new System.Windows.Forms.TextBox();
this.lnkBatch = new System.Windows.Forms.LinkLabel();
this.tbBatch = new System.Windows.Forms.TextBox();
this.button4 = new System.Windows.Forms.Button();
this.linkLabel7 = new System.Windows.Forms.LinkLabel();
this.linkLabel5 = new System.Windows.Forms.LinkLabel();
this.linkLabel3 = new System.Windows.Forms.LinkLabel();
this.linkLabel2 = new System.Windows.Forms.LinkLabel();
this.tbPart = new System.Windows.Forms.TextBox();
this.linkLabel8 = new System.Windows.Forms.LinkLabel();
this.TbCustCode = new System.Windows.Forms.TextBox();
this.linkLabel6 = new System.Windows.Forms.LinkLabel();
this.tbVName = new System.Windows.Forms.TextBox();
this.button5 = new System.Windows.Forms.Button();
this.statusStrip1 = new System.Windows.Forms.StatusStrip();
this.lbExecuteSQL = new System.Windows.Forms.ToolStripStatusLabel();
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.dv1 = new System.Windows.Forms.DataGridView();
this.panDv = new System.Windows.Forms.Panel();
this.btOK = new System.Windows.Forms.Button();
this.panel3 = new System.Windows.Forms.Panel();
this.bs = new System.Windows.Forms.BindingSource(this.components);
this.dsWMS = new Project.dsWMS();
this.ta = new Project.dsWMSTableAdapters.VW_GET_MAX_QTY_VENDOR_LOTTableAdapter();
this.tam = new Project.dsWMSTableAdapters.TableAdapterManager();
this.idxDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.sIDDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewButtonColumn();
this.pARTNODataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.vENDORNMDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.bATCHNODataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.cUSTCODEDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.vENDORLOTDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.mFGDATEDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.qTYDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.statusStrip1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit();
this.bn.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dv1)).BeginInit();
this.panDv.SuspendLayout();
this.panel3.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dsWMS)).BeginInit();
this.SuspendLayout();
//
// tbSID
//
this.tbSID.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
this.tbSID.Font = new System.Drawing.Font("맑은 고딕", 13F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.tbSID.Location = new System.Drawing.Point(113, 8);
this.tbSID.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8);
this.tbSID.Name = "tbSID";
this.tbSID.Size = new System.Drawing.Size(288, 31);
this.tbSID.TabIndex = 1;
this.tbSID.Tag = "";
this.tbSID.Click += new System.EventHandler(this.tbDate_Click);
//
// tbLot
//
this.tbLot.Font = new System.Drawing.Font("맑은 고딕", 13F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.tbLot.Location = new System.Drawing.Point(113, 44);
this.tbLot.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8);
this.tbLot.Name = "tbLot";
this.tbLot.Size = new System.Drawing.Size(288, 31);
this.tbLot.TabIndex = 1;
this.tbLot.Tag = "";
this.tbLot.Click += new System.EventHandler(this.tbDate_Click);
//
// tbMFG
//
this.tbMFG.Font = new System.Drawing.Font("맑은 고딕", 13F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.tbMFG.Location = new System.Drawing.Point(502, 80);
this.tbMFG.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8);
this.tbMFG.Name = "tbMFG";
this.tbMFG.Size = new System.Drawing.Size(239, 31);
this.tbMFG.TabIndex = 3;
this.tbMFG.Tag = "";
this.tbMFG.Click += new System.EventHandler(this.tbDate_Click);
//
// lnkBatch
//
this.lnkBatch.AutoSize = true;
this.lnkBatch.Font = new System.Drawing.Font("맑은 고딕", 10F);
this.lnkBatch.Location = new System.Drawing.Point(448, 122);
this.lnkBatch.Name = "lnkBatch";
this.lnkBatch.Size = new System.Drawing.Size(52, 19);
this.lnkBatch.TabIndex = 34;
this.lnkBatch.TabStop = true;
this.lnkBatch.Text = "BATCH";
this.lnkBatch.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lnkBatch_LinkClicked);
//
// tbBatch
//
this.tbBatch.Font = new System.Drawing.Font("맑은 고딕", 13F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.tbBatch.Location = new System.Drawing.Point(502, 116);
this.tbBatch.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8);
this.tbBatch.Name = "tbBatch";
this.tbBatch.Size = new System.Drawing.Size(239, 31);
this.tbBatch.TabIndex = 33;
this.tbBatch.Tag = "";
//
// button4
//
this.button4.Font = new System.Drawing.Font("맑은 고딕", 12F);
this.button4.Location = new System.Drawing.Point(349, 79);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(52, 32);
this.button4.TabIndex = 31;
this.button4.Text = "N/A";
this.button4.UseVisualStyleBackColor = true;
this.button4.Click += new System.EventHandler(this.button4_Click_1);
//
// linkLabel7
//
this.linkLabel7.AutoSize = true;
this.linkLabel7.Font = new System.Drawing.Font("맑은 고딕", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.linkLabel7.Location = new System.Drawing.Point(41, 86);
this.linkLabel7.Name = "linkLabel7";
this.linkLabel7.Size = new System.Drawing.Size(69, 19);
this.linkLabel7.TabIndex = 23;
this.linkLabel7.TabStop = true;
this.linkLabel7.Text = "PART NO";
this.linkLabel7.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel7_LinkClicked);
//
// linkLabel5
//
this.linkLabel5.AutoSize = true;
this.linkLabel5.Font = new System.Drawing.Font("맑은 고딕", 10F);
this.linkLabel5.Location = new System.Drawing.Point(423, 86);
this.linkLabel5.Name = "linkLabel5";
this.linkLabel5.Size = new System.Drawing.Size(77, 19);
this.linkLabel5.TabIndex = 23;
this.linkLabel5.TabStop = true;
this.linkLabel5.Text = "MFG DATE";
this.linkLabel5.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel5_LinkClicked);
//
// linkLabel3
//
this.linkLabel3.AutoSize = true;
this.linkLabel3.Font = new System.Drawing.Font("맑은 고딕", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.linkLabel3.Location = new System.Drawing.Point(27, 50);
this.linkLabel3.Name = "linkLabel3";
this.linkLabel3.Size = new System.Drawing.Size(83, 19);
this.linkLabel3.TabIndex = 23;
this.linkLabel3.TabStop = true;
this.linkLabel3.Text = "Vender LOT";
this.linkLabel3.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel3_LinkClicked);
//
// linkLabel2
//
this.linkLabel2.AutoSize = true;
this.linkLabel2.Font = new System.Drawing.Font("맑은 고딕", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.linkLabel2.Location = new System.Drawing.Point(79, 14);
this.linkLabel2.Name = "linkLabel2";
this.linkLabel2.Size = new System.Drawing.Size(31, 19);
this.linkLabel2.TabIndex = 23;
this.linkLabel2.TabStop = true;
this.linkLabel2.Text = "SID";
this.linkLabel2.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel2_LinkClicked);
//
// tbPart
//
this.tbPart.Font = new System.Drawing.Font("맑은 고딕", 13F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.tbPart.Location = new System.Drawing.Point(113, 80);
this.tbPart.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8);
this.tbPart.Name = "tbPart";
this.tbPart.Size = new System.Drawing.Size(239, 31);
this.tbPart.TabIndex = 15;
this.tbPart.Tag = "";
this.tbPart.Click += new System.EventHandler(this.tbDate_Click);
//
// linkLabel8
//
this.linkLabel8.AutoSize = true;
this.linkLabel8.Font = new System.Drawing.Font("맑은 고딕", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.linkLabel8.Location = new System.Drawing.Point(4, 122);
this.linkLabel8.Name = "linkLabel8";
this.linkLabel8.Size = new System.Drawing.Size(106, 19);
this.linkLabel8.TabIndex = 28;
this.linkLabel8.TabStop = true;
this.linkLabel8.Text = "Customer Code";
this.linkLabel8.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel8_LinkClicked);
//
// TbCustCode
//
this.TbCustCode.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.TbCustCode.Font = new System.Drawing.Font("맑은 고딕", 11F);
this.TbCustCode.Location = new System.Drawing.Point(113, 118);
this.TbCustCode.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8);
this.TbCustCode.Name = "TbCustCode";
this.TbCustCode.Size = new System.Drawing.Size(288, 27);
this.TbCustCode.TabIndex = 27;
this.TbCustCode.Tag = "";
//
// linkLabel6
//
this.linkLabel6.AutoSize = true;
this.linkLabel6.Font = new System.Drawing.Font("맑은 고딕", 10F);
this.linkLabel6.Location = new System.Drawing.Point(405, 50);
this.linkLabel6.Name = "linkLabel6";
this.linkLabel6.Size = new System.Drawing.Size(95, 19);
this.linkLabel6.TabIndex = 23;
this.linkLabel6.TabStop = true;
this.linkLabel6.Text = "Vender Name";
this.linkLabel6.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel6_LinkClicked);
//
// tbVName
//
this.tbVName.Font = new System.Drawing.Font("맑은 고딕", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.tbVName.Location = new System.Drawing.Point(502, 46);
this.tbVName.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8);
this.tbVName.Name = "tbVName";
this.tbVName.Size = new System.Drawing.Size(185, 27);
this.tbVName.TabIndex = 13;
this.tbVName.Tag = "";
this.tbVName.Click += new System.EventHandler(this.tbDate_Click);
//
// button5
//
this.button5.Font = new System.Drawing.Font("맑은 고딕", 12F);
this.button5.Location = new System.Drawing.Point(689, 43);
this.button5.Name = "button5";
this.button5.Size = new System.Drawing.Size(52, 32);
this.button5.TabIndex = 34;
this.button5.Text = "N/A";
this.button5.UseVisualStyleBackColor = true;
this.button5.Click += new System.EventHandler(this.button5_Click_2);
//
// statusStrip1
//
this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.lbExecuteSQL});
this.statusStrip1.Location = new System.Drawing.Point(0, 562);
this.statusStrip1.Name = "statusStrip1";
this.statusStrip1.Padding = new System.Windows.Forms.Padding(1, 0, 13, 0);
this.statusStrip1.Size = new System.Drawing.Size(1031, 22);
this.statusStrip1.TabIndex = 11;
this.statusStrip1.Text = "statusStrip1";
//
// lbExecuteSQL
//
this.lbExecuteSQL.Name = "lbExecuteSQL";
this.lbExecuteSQL.Size = new System.Drawing.Size(39, 17);
this.lbExecuteSQL.Text = "Query";
//
// bn
//
this.bn.AddNewItem = null;
this.bn.BindingSource = this.bs;
this.bn.CountItem = this.bindingNavigatorCountItem;
this.bn.DeleteItem = null;
this.bn.Dock = System.Windows.Forms.DockStyle.Bottom;
this.bn.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.bindingNavigatorMoveFirstItem,
this.bindingNavigatorMovePreviousItem,
this.bindingNavigatorSeparator,
this.bindingNavigatorPositionItem,
this.bindingNavigatorCountItem,
this.bindingNavigatorSeparator1,
this.bindingNavigatorMoveNextItem,
this.bindingNavigatorMoveLastItem,
this.bindingNavigatorSeparator2});
this.bn.Location = new System.Drawing.Point(0, 380);
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(1031, 25);
this.bn.TabIndex = 12;
this.bn.Text = "bindingNavigator1";
//
// bindingNavigatorCountItem
//
this.bindingNavigatorCountItem.Name = "bindingNavigatorCountItem";
this.bindingNavigatorCountItem.Size = new System.Drawing.Size(27, 22);
this.bindingNavigatorCountItem.Text = "/{0}";
this.bindingNavigatorCountItem.ToolTipText = "전체 항목 수";
//
// bindingNavigatorMoveFirstItem
//
this.bindingNavigatorMoveFirstItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMoveFirstItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveFirstItem.Image")));
this.bindingNavigatorMoveFirstItem.Name = "bindingNavigatorMoveFirstItem";
this.bindingNavigatorMoveFirstItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMoveFirstItem.Size = new System.Drawing.Size(23, 22);
this.bindingNavigatorMoveFirstItem.Text = "처음으로 이동";
//
// bindingNavigatorMovePreviousItem
//
this.bindingNavigatorMovePreviousItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMovePreviousItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMovePreviousItem.Image")));
this.bindingNavigatorMovePreviousItem.Name = "bindingNavigatorMovePreviousItem";
this.bindingNavigatorMovePreviousItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMovePreviousItem.Size = new System.Drawing.Size(23, 22);
this.bindingNavigatorMovePreviousItem.Text = "이전으로 이동";
//
// bindingNavigatorSeparator
//
this.bindingNavigatorSeparator.Name = "bindingNavigatorSeparator";
this.bindingNavigatorSeparator.Size = new System.Drawing.Size(6, 25);
//
// bindingNavigatorPositionItem
//
this.bindingNavigatorPositionItem.AccessibleName = "위치";
this.bindingNavigatorPositionItem.AutoSize = false;
this.bindingNavigatorPositionItem.Font = new System.Drawing.Font("맑은 고딕", 9F);
this.bindingNavigatorPositionItem.Name = "bindingNavigatorPositionItem";
this.bindingNavigatorPositionItem.Size = new System.Drawing.Size(49, 23);
this.bindingNavigatorPositionItem.Text = "0";
this.bindingNavigatorPositionItem.ToolTipText = "현재 위치";
//
// bindingNavigatorSeparator1
//
this.bindingNavigatorSeparator1.Name = "bindingNavigatorSeparator1";
this.bindingNavigatorSeparator1.Size = new System.Drawing.Size(6, 25);
//
// bindingNavigatorMoveNextItem
//
this.bindingNavigatorMoveNextItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMoveNextItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveNextItem.Image")));
this.bindingNavigatorMoveNextItem.Name = "bindingNavigatorMoveNextItem";
this.bindingNavigatorMoveNextItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMoveNextItem.Size = new System.Drawing.Size(23, 22);
this.bindingNavigatorMoveNextItem.Text = "다음으로 이동";
//
// bindingNavigatorMoveLastItem
//
this.bindingNavigatorMoveLastItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMoveLastItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveLastItem.Image")));
this.bindingNavigatorMoveLastItem.Name = "bindingNavigatorMoveLastItem";
this.bindingNavigatorMoveLastItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMoveLastItem.Size = new System.Drawing.Size(23, 22);
this.bindingNavigatorMoveLastItem.Text = "마지막으로 이동";
//
// bindingNavigatorSeparator2
//
this.bindingNavigatorSeparator2.Name = "bindingNavigatorSeparator2";
this.bindingNavigatorSeparator2.Size = new System.Drawing.Size(6, 25);
//
// dv1
//
this.dv1.AllowUserToAddRows = false;
this.dv1.AllowUserToDeleteRows = false;
this.dv1.AutoGenerateColumns = false;
this.dv1.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.dv1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dv1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.idxDataGridViewTextBoxColumn,
this.sIDDataGridViewTextBoxColumn,
this.pARTNODataGridViewTextBoxColumn,
this.vENDORNMDataGridViewTextBoxColumn,
this.bATCHNODataGridViewTextBoxColumn,
this.cUSTCODEDataGridViewTextBoxColumn,
this.vENDORLOTDataGridViewTextBoxColumn,
this.mFGDATEDataGridViewTextBoxColumn,
this.qTYDataGridViewTextBoxColumn});
this.dv1.DataSource = this.bs;
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle1.Font = new System.Drawing.Font("맑은 고딕", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dv1.DefaultCellStyle = dataGridViewCellStyle1;
this.dv1.Dock = System.Windows.Forms.DockStyle.Fill;
this.dv1.Location = new System.Drawing.Point(0, 0);
this.dv1.Name = "dv1";
this.dv1.ReadOnly = true;
this.dv1.RowTemplate.Height = 23;
this.dv1.Size = new System.Drawing.Size(1031, 380);
this.dv1.TabIndex = 35;
this.dv1.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.vW_GET_MAX_QTY_VENDOR_LOTDataGridView_CellClick);
//
// panDv
//
this.panDv.Controls.Add(this.dv1);
this.panDv.Controls.Add(this.bn);
this.panDv.Dock = System.Windows.Forms.DockStyle.Fill;
this.panDv.Location = new System.Drawing.Point(0, 157);
this.panDv.Name = "panDv";
this.panDv.Size = new System.Drawing.Size(1031, 405);
this.panDv.TabIndex = 36;
//
// btOK
//
this.btOK.BackColor = System.Drawing.Color.DarkSeaGreen;
this.btOK.Dock = System.Windows.Forms.DockStyle.Right;
this.btOK.Font = new System.Drawing.Font("맑은 고딕", 26.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.btOK.Location = new System.Drawing.Point(791, 10);
this.btOK.Name = "btOK";
this.btOK.Size = new System.Drawing.Size(230, 137);
this.btOK.TabIndex = 4;
this.btOK.Text = "SAVE";
this.btOK.UseVisualStyleBackColor = false;
this.btOK.Click += new System.EventHandler(this.btOK_Click);
//
// panel3
//
this.panel3.Controls.Add(this.btOK);
this.panel3.Controls.Add(this.button5);
this.panel3.Controls.Add(this.button4);
this.panel3.Controls.Add(this.linkLabel7);
this.panel3.Controls.Add(this.tbVName);
this.panel3.Controls.Add(this.linkLabel5);
this.panel3.Controls.Add(this.linkLabel6);
this.panel3.Controls.Add(this.tbSID);
this.panel3.Controls.Add(this.linkLabel8);
this.panel3.Controls.Add(this.TbCustCode);
this.panel3.Controls.Add(this.tbBatch);
this.panel3.Controls.Add(this.linkLabel3);
this.panel3.Controls.Add(this.tbLot);
this.panel3.Controls.Add(this.lnkBatch);
this.panel3.Controls.Add(this.tbPart);
this.panel3.Controls.Add(this.tbMFG);
this.panel3.Controls.Add(this.linkLabel2);
this.panel3.Dock = System.Windows.Forms.DockStyle.Top;
this.panel3.Location = new System.Drawing.Point(0, 0);
this.panel3.Name = "panel3";
this.panel3.Padding = new System.Windows.Forms.Padding(0, 10, 10, 10);
this.panel3.Size = new System.Drawing.Size(1031, 157);
this.panel3.TabIndex = 37;
//
// bs
//
this.bs.DataMember = "VW_GET_MAX_QTY_VENDOR_LOT";
this.bs.DataSource = this.dsWMS;
//
// dsWMS
//
this.dsWMS.DataSetName = "dsWMS";
this.dsWMS.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
//
// ta
//
this.ta.ClearBeforeFill = true;
//
// tam
//
this.tam.BackupDataSetBeforeUpdate = false;
this.tam.Connection = null;
this.tam.UpdateOrder = Project.dsWMSTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete;
//
// idxDataGridViewTextBoxColumn
//
this.idxDataGridViewTextBoxColumn.DataPropertyName = "idx";
this.idxDataGridViewTextBoxColumn.HeaderText = "No";
this.idxDataGridViewTextBoxColumn.Name = "idxDataGridViewTextBoxColumn";
this.idxDataGridViewTextBoxColumn.ReadOnly = true;
//
// sIDDataGridViewTextBoxColumn
//
this.sIDDataGridViewTextBoxColumn.DataPropertyName = "SID";
this.sIDDataGridViewTextBoxColumn.HeaderText = "SID";
this.sIDDataGridViewTextBoxColumn.Name = "sIDDataGridViewTextBoxColumn";
this.sIDDataGridViewTextBoxColumn.ReadOnly = true;
this.sIDDataGridViewTextBoxColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.sIDDataGridViewTextBoxColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
//
// pARTNODataGridViewTextBoxColumn
//
this.pARTNODataGridViewTextBoxColumn.DataPropertyName = "PART_NO";
this.pARTNODataGridViewTextBoxColumn.HeaderText = "PART_NO";
this.pARTNODataGridViewTextBoxColumn.Name = "pARTNODataGridViewTextBoxColumn";
this.pARTNODataGridViewTextBoxColumn.ReadOnly = true;
//
// vENDORNMDataGridViewTextBoxColumn
//
this.vENDORNMDataGridViewTextBoxColumn.DataPropertyName = "VENDOR_NM";
this.vENDORNMDataGridViewTextBoxColumn.HeaderText = "VENDOR_NM";
this.vENDORNMDataGridViewTextBoxColumn.Name = "vENDORNMDataGridViewTextBoxColumn";
this.vENDORNMDataGridViewTextBoxColumn.ReadOnly = true;
//
// bATCHNODataGridViewTextBoxColumn
//
this.bATCHNODataGridViewTextBoxColumn.DataPropertyName = "BATCH_NO";
this.bATCHNODataGridViewTextBoxColumn.HeaderText = "BATCH_NO";
this.bATCHNODataGridViewTextBoxColumn.Name = "bATCHNODataGridViewTextBoxColumn";
this.bATCHNODataGridViewTextBoxColumn.ReadOnly = true;
//
// cUSTCODEDataGridViewTextBoxColumn
//
this.cUSTCODEDataGridViewTextBoxColumn.DataPropertyName = "CUST_CODE";
this.cUSTCODEDataGridViewTextBoxColumn.HeaderText = "CUST_CODE";
this.cUSTCODEDataGridViewTextBoxColumn.Name = "cUSTCODEDataGridViewTextBoxColumn";
this.cUSTCODEDataGridViewTextBoxColumn.ReadOnly = true;
//
// vENDORLOTDataGridViewTextBoxColumn
//
this.vENDORLOTDataGridViewTextBoxColumn.DataPropertyName = "VENDOR_LOT";
this.vENDORLOTDataGridViewTextBoxColumn.HeaderText = "VENDOR_LOT";
this.vENDORLOTDataGridViewTextBoxColumn.Name = "vENDORLOTDataGridViewTextBoxColumn";
this.vENDORLOTDataGridViewTextBoxColumn.ReadOnly = true;
//
// mFGDATEDataGridViewTextBoxColumn
//
this.mFGDATEDataGridViewTextBoxColumn.DataPropertyName = "MFG_DATE";
this.mFGDATEDataGridViewTextBoxColumn.HeaderText = "MFG_DATE";
this.mFGDATEDataGridViewTextBoxColumn.Name = "mFGDATEDataGridViewTextBoxColumn";
this.mFGDATEDataGridViewTextBoxColumn.ReadOnly = true;
//
// qTYDataGridViewTextBoxColumn
//
this.qTYDataGridViewTextBoxColumn.DataPropertyName = "QTY";
this.qTYDataGridViewTextBoxColumn.HeaderText = "QTY";
this.qTYDataGridViewTextBoxColumn.Name = "qTYDataGridViewTextBoxColumn";
this.qTYDataGridViewTextBoxColumn.ReadOnly = true;
//
// fSelectSIDInformation
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.ClientSize = new System.Drawing.Size(1031, 584);
this.Controls.Add(this.panDv);
this.Controls.Add(this.panel3);
this.Controls.Add(this.statusStrip1);
this.DoubleBuffered = true;
this.Font = new System.Drawing.Font("맑은 고딕", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8);
this.Name = "fSelectSIDInformation";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Multi SID Information";
this.Load += new System.EventHandler(this.fLoaderInfo_Load);
this.statusStrip1.ResumeLayout(false);
this.statusStrip1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.bn)).EndInit();
this.bn.ResumeLayout(false);
this.bn.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.dv1)).EndInit();
this.panDv.ResumeLayout(false);
this.panDv.PerformLayout();
this.panel3.ResumeLayout(false);
this.panel3.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.bs)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dsWMS)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.TextBox tbSID;
private System.Windows.Forms.TextBox tbLot;
private System.Windows.Forms.TextBox tbMFG;
private System.Windows.Forms.TextBox tbVName;
private System.Windows.Forms.TextBox tbPart;
private System.Windows.Forms.LinkLabel linkLabel7;
private System.Windows.Forms.LinkLabel linkLabel6;
private System.Windows.Forms.LinkLabel linkLabel5;
private System.Windows.Forms.LinkLabel linkLabel3;
private System.Windows.Forms.LinkLabel linkLabel2;
private System.Windows.Forms.LinkLabel linkLabel8;
private System.Windows.Forms.TextBox TbCustCode;
private System.Windows.Forms.Button button4;
private System.Windows.Forms.StatusStrip statusStrip1;
private System.Windows.Forms.Button button5;
private System.Windows.Forms.LinkLabel lnkBatch;
private System.Windows.Forms.TextBox tbBatch;
private dsWMS dsWMS;
private System.Windows.Forms.BindingSource bs;
private dsWMSTableAdapters.VW_GET_MAX_QTY_VENDOR_LOTTableAdapter ta;
private dsWMSTableAdapters.TableAdapterManager tam;
private System.Windows.Forms.BindingNavigator bn;
private System.Windows.Forms.ToolStripLabel bindingNavigatorCountItem;
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveFirstItem;
private System.Windows.Forms.ToolStripButton bindingNavigatorMovePreviousItem;
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator;
private System.Windows.Forms.ToolStripTextBox bindingNavigatorPositionItem;
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator1;
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveNextItem;
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveLastItem;
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator2;
private System.Windows.Forms.DataGridView dv1;
private System.Windows.Forms.Panel panDv;
private System.Windows.Forms.Button btOK;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.ToolStripStatusLabel lbExecuteSQL;
private System.Windows.Forms.DataGridViewTextBoxColumn idxDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewButtonColumn sIDDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn pARTNODataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn vENDORNMDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn bATCHNODataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn cUSTCODEDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn vENDORLOTDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn mFGDATEDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn qTYDataGridViewTextBoxColumn;
}
}

View File

@@ -0,0 +1,888 @@
using AR;
using SATOPrinterAPI;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.UI.WebControls.WebParts;
using System.Windows.Forms;
using System.Windows.Forms.VisualStyles;
namespace Project.Dialog
{
public partial class fSelectSIDInformation : Form
{
Boolean autoconf = false;
Boolean warn = false;
Boolean samesidwarn = false;
bool NewReelId = false;
public fSelectSIDInformation()
{
InitializeComponent();
VAR.BOOL[eVarBool.FG_WAIT_INFOSELECT] = true;
this.WindowState = FormWindowState.Normal;
var sql = VAR.STR[eVarString.MULTISID_QUERY];
var fields = VAR.STR[eVarString.MULTISID_FIELDS];
this.lbExecuteSQL.Text = sql;
this.FormClosed += FLoaderInfo_FormClosed;
}
private void FLoaderInfo_FormClosed(object sender, FormClosedEventArgs e)
{
VAR.BOOL[eVarBool.FG_WAIT_INFOSELECT] = false;
PUB.Result.ItemDataC.VisionData.PropertyChanged -= VisionData_PropertyChanged;
////사용자가 정보를 정확히 입력하지 않고 닫았다
//if (PUB.Result.ItemDataC.VisionData.Confirm == false)
//{
// if (PUB.sm.Step == eSMStep.RUN)
// PUB.Result.SetResultMessage(eResult.OPERATION, eECode.INCOMPLETE_INFOSELECT, eNextStep.PAUSE, 1);
//}
}
private void fLoaderInfo_Load(object sender, EventArgs e)
{
var sql = VAR.STR[eVarString.MULTISID_QUERY];
var fields = VAR.STR[eVarString.MULTISID_FIELDS];
try
{
var cn = DBHelper.GetConnection();
var cmd = new SqlCommand(sql, cn);
var da = new SqlDataAdapter(cmd);
var dt = new DataTable();
da.Fill(dt);
int i = 0;
this.dsWMS.VW_GET_MAX_QTY_VENDOR_LOT.Clear();
foreach (DataRow dr in dt.Rows)
{
var newdr = this.dsWMS.VW_GET_MAX_QTY_VENDOR_LOT.NewVW_GET_MAX_QTY_VENDOR_LOTRow();
newdr.idx = dsWMS.VW_GET_MAX_QTY_VENDOR_LOT.Count + 1;
if (dt.Columns.Contains("SID")) newdr.SID = dr["SID"]?.ToString() ?? string.Empty;
else newdr.SID = string.Empty;
if (dt.Columns.Contains("PART_NO")) newdr.PART_NO = dr["PART_NO"]?.ToString() ?? string.Empty;
else newdr.PART_NO = string.Empty;
if (dt.Columns.Contains("VENDOR_LOT")) newdr.VENDOR_LOT = dr["VENDOR_LOT"]?.ToString() ?? string.Empty;
else newdr.VENDOR_LOT = string.Empty;
if (dt.Columns.Contains("VENDOR_NM")) newdr.VENDOR_NM = dr["VENDOR_NM"]?.ToString() ?? string.Empty;
else newdr.VENDOR_NM = string.Empty;
if (dt.Columns.Contains("BATCH_NO")) newdr.BATCH_NO = dr["BATCH_NO"]?.ToString() ?? string.Empty;
else newdr.BATCH_NO = string.Empty;
if (dt.Columns.Contains("CUST_CODE")) newdr.CUST_CODE = dr["CUST_CODE"]?.ToString() ?? string.Empty;
else newdr.CUST_CODE = string.Empty;
if (dt.Columns.Contains("MFG_DATE")) newdr.MFG_DATE = dr["MFG_DATE"]?.ToString() ?? string.Empty;
else newdr.MFG_DATE = string.Empty;
if (dt.Columns.Contains("QTY")) newdr.QTY = (dr["QTY"]?.ToString() ?? "0").toInt();
else newdr.QTY = 0;
this.dsWMS.VW_GET_MAX_QTY_VENDOR_LOT.AddVW_GET_MAX_QTY_VENDOR_LOTRow(newdr);//?.ToString() ??
//string.Empty;
}
dsWMS.VW_GET_MAX_QTY_VENDOR_LOT.AcceptChanges();
//this.dv1.DataSource = null;
//this.dv1.Rows.Clear();
//this.dv1.Columns.Clear();
//var cols = new String[] { "No", "SID", "PartNo", "VendorLot", "VendorName", "MFGDate", "Qty" };
//foreach (var colname in cols)
// this.dv1.Columns.Add($"col_{colname}", colname);
//foreach (dsWMS.VW_GET_MAX_QTY_VENDOR_LOTRow row in dsWMS.VW_GET_MAX_QTY_VENDOR_LOT)
//{
// this.dv1.Rows.Add(new string[] { });
//}
}
catch (Exception ex)
{
UTIL.MsgE($"Data Query Error\n{ex.Message}");
}
//현재 바코드가 읽었단 자료를 모두 표시한다.
var item = PUB.Result.ItemDataC;
NewReelId = item.VisionData.RIDNew;
tbSID.Text = item.VisionData.SID;
tbLot.Text = item.VisionData.VLOT;
tbMFG.Text = item.VisionData.MFGDATE;
tbVName.Text = item.VisionData.VNAME;
tbPart.Text = item.VisionData.PARTNO;
TbCustCode.Text = item.VisionData.CUSTCODE;
tbBatch.Text = item.VisionData.BATCH;
selectInput(this.tbSID);
if (tbVName.Text.isEmpty())
if (PUB.Result.vModel.Def_Vname.isEmpty() == false)
tbVName.Text = PUB.Result.vModel.Def_Vname;
if (tbMFG.Text.isEmpty())
if (PUB.Result.vModel.Def_MFG.isEmpty() == false)
tbMFG.Text = PUB.Result.vModel.Def_MFG;
item.VisionData.PropertyChanged += VisionData_PropertyChanged;
this.Show();
this.dv1.AutoResizeColumns();
}
delegate void UpdateTextHandler(Control ctrl, string value);
public void UpdateText(Control ctrl, string value)
{
if (ctrl is Label || ctrl is TextBox)
{
if (ctrl.InvokeRequired)
{
ctrl.BeginInvoke(new UpdateTextHandler(UpdateText), new object[] { ctrl, value });
}
else if (ctrl is Label)
((Label)ctrl).Text = value;
else if (ctrl is TextBox)
((TextBox)ctrl).Text = value;
}
}
private void VisionData_PropertyChanged(object sender, PropertyChangedEventArgs e)
{
//값이 바뀌었으나 현재 값이 입력되지 않았따면 처리해준다. 220712
var item = PUB.Result.ItemDataC;
if (e.PropertyName.Equals("MFGDATE") && tbMFG.Text.isEmpty())
UpdateText(tbMFG, item.VisionData.MFGDATE);
if (e.PropertyName.Equals("VNAME") && tbVName.Text.isEmpty())
UpdateText(tbVName, item.VisionData.VNAME);
if (e.PropertyName.Equals("PARTNO") && tbPart.Text.isEmpty())
UpdateText(tbPart, item.VisionData.PARTNO);
if (e.PropertyName.Equals("CUSTCODE") && TbCustCode.Text.isEmpty())
UpdateText(TbCustCode, item.VisionData.CUSTCODE); //210317
if (e.PropertyName.Equals("SID") && tbSID.Text.isEmpty())
UpdateText(tbSID, item.VisionData.SID);
if (e.PropertyName.Equals("VLOT") && tbLot.Text.isEmpty())
UpdateText(tbLot, item.VisionData.VLOT);
}
string TagStr = string.Empty;
void selectInput(Control c)
{
TagStr = string.Empty;
if (c is TextBox)
{
var tb = c as TextBox;
TagStr = tb.Tag.ToString();
}
else if (c is Label)
{
var lb = c as Label;
TagStr = lb.Tag.ToString();
}
//동일태그를 가진 textbox 의 배경색을 업데이트한다
foreach (Control tb in panel3.Controls)
{
if (tb is TextBox)
{
if (tb.Tag.ToString() == TagStr)
{
tb.BackColor = Color.SkyBlue;
}
else tb.BackColor = SystemColors.Control;
}
}
}
private void tbDate_Click(object sender, EventArgs e)
{
selectInput(sender as TextBox);
}
private void button4_Click(object sender, EventArgs e)
{
DateTime dt = DateTime.Now;
var dtstr = this.tbMFG.Text.Trim().Replace("-", "").Replace("/", "");
if (dtstr.Length == 8)
{
dt = new DateTime(
int.Parse(dtstr.Substring(0, 4)),
int.Parse(dtstr.Substring(4, 2)),
int.Parse(dtstr.Substring(6, 2)));
}
var f = new Dialog.fSelectDay(dt);
if (f.ShowDialog() == DialogResult.OK)
{
this.tbMFG.Text = f.dt.ToShortDateString();
}
}
private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
UTIL.TouchKeyShow(tbSID, "INPUT SID");
}
private void linkLabel3_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
UTIL.TouchKeyShow(tbLot, "INPUT VENDER LOT");
}
private void linkLabel5_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
UTIL.TouchKeyShow(tbMFG, "INPUT MFG DATE");
}
private void linkLabel6_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
UTIL.TouchKeyShow(tbVName, "INPUT SUPPLY NAME");
}
private void linkLabel7_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
//tbpartno
UTIL.TouchKeyShow(tbPart, "INPUT CUSTOMER PART NO.");
}
private void linkLabel8_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
UTIL.TouchKeyShow(TbCustCode, "INPUT SUPPLY CODE");
}
private void btOK_Click(object sender, EventArgs e)
{
bool topmost = this.TopMost;
//var IsBypas = VAR.STR[eVarString.JOB_TYPE] == "BP";
if (System.Diagnostics.Debugger.IsAttached)
this.TopMost = false;
var itemC = PUB.Result.ItemDataC;
//manu 목록에 없다면 추가 해준다.
var manuName = tbVName.Text.Trim().ToLower();
if (manuName.isEmpty() == false)
{
lock (PUB.Result.dsList)
{
if (PUB.Result.dsList.Supply.Where(t => t.TITLE.ToLower() == manuName).Any() == false)
{
//기존 manu 목록에 없으니 추가한다.
var newdr = PUB.Result.dsList.Supply.NewSupplyRow();
newdr.TITLE = tbVName.Text.Trim();
PUB.Result.dsList.Supply.AddSupplyRow(newdr);
PUB.Result.SaveListDB();
}
}
}
//필수값 입력 확인
#region "Check iNput Data"
if (tbSID.Text.isEmpty())
{
UTIL.MsgE("SID 가 입력되지 않았습니다");
tbSID.Focus();
return;
}
//if (tbLot.Text.isEmpty())
//{
// UTIL.MsgE("VLOT 가 입력되지 않았습니다");
// tbLot.Focus();
// return;
//}
//if (tbMFG.Text.isEmpty())
//{
// UTIL.MsgE("MFG-DATE 가 입력되지 않았습니다");
// tbMFG.Focus();
// return;
//}
//if (this.tbPart.Text.isEmpty())
//{
// UTIL.MsgE("PART No 가 입력되지 않았습니다");
// tbPart.Focus();
// return;
//}
#endregion
//현재 작업모드와 SID가 일치하는지 확인한다.
var sidNew = this.tbSID.Text.Trim();
var partNo = this.tbPart.Text.Trim();
var custCode = this.TbCustCode.Text.Trim();
//모든자료는 존재한다 저장가능하다
if (AR.SETTING.Data.OnlineMode)
{
//시드정보테이블의 데이터를 역으로 저장한 경우
if (VAR.BOOL[eVarBool.Opt_ApplySIDInfo] && VAR.BOOL[eVarBool.Opt_SID_WriteServer])
{
Dictionary<string, string> wheres = new Dictionary<string, string>();
Dictionary<string, string> columns = new Dictionary<string, string>();
//조건절생성
if (VAR.BOOL[eVarBool.Opt_SID_Where_CustCode]) wheres.Add("CustCode", TbCustCode.Text);
if (VAR.BOOL[eVarBool.Opt_SID_Where_PartNo]) wheres.Add("PartNo", tbPart.Text);
if (VAR.BOOL[eVarBool.Opt_SID_Where_SID]) wheres.Add("SID", tbSID.Text);
if (VAR.BOOL[eVarBool.Opt_SID_Where_VLOT]) wheres.Add("VenderLot", tbLot.Text);
//Make Target COlumns
if (VAR.BOOL[eVarBool.Opt_SID_Apply_CustCode]) columns.Add("CustCode", TbCustCode.Text);
if (VAR.BOOL[eVarBool.Opt_SID_Apply_PartNo]) columns.Add("PartNo", tbPart.Text);
//if (VAR.BOOL[eVarBool.Opt_SID_Apply_PrintPos]) columns.Add("PrintPosition", this.PrintPos);
if (VAR.BOOL[eVarBool.Opt_SID_Apply_SID])
{
//SID변환기능이 동작한상태에서는 변환된 SID정보를 저장하지 않는다 230510
if (VAR.BOOL[eVarBool.Opt_SIDConvert])
{
PUB.log.AddAT($"SID변환기능사용으로인해 SID정보는 업데이트하지 않습니다");
}
else columns.Add("SID", tbSID.Text);
}
if (VAR.BOOL[eVarBool.Opt_SID_Apply_VenderName]) columns.Add("VenderName", tbVName.Text);
//EE-SID정보에 데이터를 저장한다
ServerWriteINF_EED(columns, wheres);
//ServerWriteINF_WMS(columns, wheres);
}
}
//값을 설정해주고 빠져나간다
if (tbSID.Text.isEmpty() &&
itemC.VisionData.SID.isEmpty() == false &&
itemC.VisionData.SID.Equals(tbSID.Text.Trim()) == false)
itemC.VisionData.SID0 = itemC.VisionData.SID;
//값이있는것들만 기록해준다.
if (tbSID.Text.isEmpty() == false) itemC.VisionData.SID = tbSID.Text.Trim();
if (tbBatch.Text.isEmpty() == false) itemC.VisionData.BATCH = tbBatch.Text.Trim();
if (tbLot.Text.isEmpty() == false) itemC.VisionData.VLOT = tbLot.Text.Trim();
if (tbMFG.Text.isEmpty() == false) itemC.VisionData.MFGDATE = tbMFG.Text.Trim();
if (tbVName.Text.isEmpty() == false) itemC.VisionData.VNAME = tbVName.Text.Trim();
if (tbPart.Text.isEmpty() == false) itemC.VisionData.PARTNO = tbPart.Text.Trim();
this.TopMost = topmost;
this.Close();
}
/// <summary>
/// 지정한 자료를 서버에 기록합니다. 조건절과 대상 열을 제공해야합니다
/// </summary>
void ServerWriteINF_WMS(Dictionary<string, string> columns, Dictionary<string, string> wheres)
{
//변경된 값만 저장여부를 확인할 것이므로 기존 값을 모두 가져온다
var SQL = "select top 1 " + string.Join(",", columns.Select(t => "isnull([" + t.Key + "],'') as " + t.Key + "")) +
" from K4EE_Component_Reel_SID_Information WITH(NOLOCK)";
var WSQL = $" where MC='{PUB.MCCode}'";
for (int i = 0; i < wheres.Count; i++)
{
var col = wheres.ElementAt(i);
var colname = col.Key;
var colvalue = col.Value;
WSQL += " AND ";
WSQL += $" {colname}='{colvalue.Replace("'", "''")}'";
}
SQL += WSQL;
Dictionary<String, string> UpdateTarget = new Dictionary<string, string>();
var CN = new System.Data.SqlClient.SqlConnection();
CN.ConnectionString = Properties.Settings.Default.CS;
var CMD = new System.Data.SqlClient.SqlCommand(SQL, CN);
CN.Open();
var DAR = CMD.ExecuteReader();
var NoData = true;
Dictionary<String, string> InsertTarget = new Dictionary<string, string>();
while (DAR.Read())
{
NoData = false;
foreach (var col in columns)
{
var vStr = DAR[col.Key].ToString();
var cStr = col.Value;
if (vStr.Equals(cStr) == false)
{
//differenct value
UpdateTarget.Add(col.Key, cStr);
}
}
}
DAR.Close();
//자료가 없다면 데이터를 추가한다.
if (NoData)
{
foreach (var col in columns)
{
InsertTarget.Add(col.Key, col.Value);
}
foreach (var item in wheres)
{
if (InsertTarget.ContainsKey(item.Key) == false)
InsertTarget.Add(item.Key, item.Value);
}
}
if (UpdateTarget.Count > 0) //if update target
{
var dlgMsg = $"다음 값을 서버(SID정보)에 저장 하시겠습니까?\n";
foreach (var item in UpdateTarget)
dlgMsg += $"항목:{item.Key} => {item.Value}\n";
var dlg = UTIL.MsgQ(dlgMsg);
if (dlg == DialogResult.Yes)
{
//check double data 220706
var CSQL = "select count(*) from Component_Reel_SID_Information WITH(NOLOCK) ";
CSQL += WSQL;
CMD.CommandText = CSQL;
var cnt = int.Parse(CMD.ExecuteScalar().ToString());
var whke = string.Join(",", wheres.Select(t => t.Key).ToList());
if (cnt < 1)
{
PUB.log.AddAT("SQL=" + CSQL);
UTIL.MsgE($"대상 릴 정보가 없어 정보를 업데이트 할 수 없습니다\n" + whke);
}
else if (cnt > 1)
{
PUB.log.AddAT("SQL=" + CSQL);
UTIL.MsgE($"대상 릴 정보가 복수로({cnt}건) 존재하여 정보를 업데이트 할 수 없습니다\n" + whke);
}
else
{
var USQL = $"update Component_Reel_SID_Information set [MC]='{PUB.MCCode}'," +
string.Join(",", UpdateTarget.Select(t => "[" + t.Key + "]='" + t.Value + "'"));
USQL += WSQL;
try
{
CMD.CommandText = USQL;
var UpdateOK = CMD.ExecuteNonQuery() == 1;
if (UpdateOK == false)
{
UTIL.MsgE("Save Error");
}
}
catch (Exception ex)
{
UTIL.MsgE("Save Error\n" + ex.Message);
}
}
}
}
if (InsertTarget.Count > 0)
{
var dlgMsg = $"다음 값을 서버에 저장 하시겠습니까?\n";
foreach (var item in InsertTarget)
dlgMsg += $"항목:{item.Key} => {item.Value}\n";
var dlg = UTIL.MsgQ(dlgMsg);
if (dlg == DialogResult.Yes)
{
var ISQL = $"insert into Component_Reel_SID_Information ([MC],wdate," +
string.Join(",", InsertTarget.Select(t => "[" + t.Key + "]")) + ") values(" +
$"'{PUB.MCCode}',getdate()," +
string.Join(",", InsertTarget.Select(t => "'" + t.Value.Replace("'", "''") + "'")) + ")";
//ISQL += WSQL;
try
{
CMD.CommandText = ISQL;
var UpdateOK = CMD.ExecuteNonQuery() == 1;
if (UpdateOK == false)
{
UTIL.MsgE("Save Error");
}
}
catch (Exception ex)
{
UTIL.MsgE("Save Error\n" + ex.Message);
}
}
}
CN.Close();
CN.Dispose();
}
/// <summary>
/// 지정한 자료를 서버에 기록합니다. 조건절과 대상 열을 제공해야합니다
/// </summary>
void ServerWriteINF_EED(Dictionary<string, string> columns, Dictionary<string, string> wheres)
{
//변경된 값만 저장여부를 확인할 것이므로 기존 값을 모두 가져온다
var SQL = "select top 1 " + string.Join(",", columns.Select(t => "isnull([" + t.Key + "],'') as " + t.Key + "")) +
" from K4EE_Component_Reel_SID_Information WITH(NOLOCK)";
var WSQL = $" where MC='{PUB.MCCode}'";
for (int i = 0; i < wheres.Count; i++)
{
var col = wheres.ElementAt(i);
var colname = col.Key;
var colvalue = col.Value;
WSQL += " AND ";
WSQL += $" {colname}='{colvalue.Replace("'", "''")}'";
}
SQL += WSQL;
Dictionary<String, string> UpdateTarget = new Dictionary<string, string>();
var CN = new System.Data.SqlClient.SqlConnection();
CN.ConnectionString = Properties.Settings.Default.CS;
var CMD = new System.Data.SqlClient.SqlCommand(SQL, CN);
CN.Open();
var DAR = CMD.ExecuteReader();
var NoData = true;
Dictionary<String, string> InsertTarget = new Dictionary<string, string>();
while (DAR.Read())
{
NoData = false;
foreach (var col in columns)
{
var vStr = DAR[col.Key].ToString();
var cStr = col.Value;
if (vStr.Equals(cStr) == false)
{
//differenct value
UpdateTarget.Add(col.Key, cStr);
}
}
}
DAR.Close();
//자료가 없다면 데이터를 추가한다.
if (NoData)
{
foreach (var col in columns)
{
InsertTarget.Add(col.Key, col.Value);
}
foreach (var item in wheres)
{
if (InsertTarget.ContainsKey(item.Key) == false)
InsertTarget.Add(item.Key, item.Value);
}
}
if (UpdateTarget.Count > 0) //if update target
{
var dlgMsg = $"다음 값을 EED서버(SID정보)에 저장 하시겠습니까?\n";
foreach (var item in UpdateTarget)
dlgMsg += $"항목:{item.Key} => {item.Value}\n";
var dlg = UTIL.MsgQ(dlgMsg);
if (dlg == DialogResult.Yes)
{
//check double data 220706
var CSQL = "select count(*) from K4EE_Component_Reel_SID_Information WITH(NOLOCK) ";
CSQL += WSQL;
CMD.CommandText = CSQL;
var cnt = int.Parse(CMD.ExecuteScalar().ToString());
var whke = string.Join(",", wheres.Select(t => t.Key).ToList());
if (cnt < 1)
{
PUB.log.AddAT("SQL=" + CSQL);
UTIL.MsgE($"대상 릴 정보가 없어 정보를 업데이트 할 수 없습니다\n" + whke);
}
else if (cnt > 1)
{
PUB.log.AddAT("SQL=" + CSQL);
UTIL.MsgE($"대상 릴 정보가 복수로({cnt}건) 존재하여 정보를 업데이트 할 수 없습니다\n" + whke);
}
else
{
var USQL = $"update K4EE_Component_Reel_SID_Information set [MC]='{PUB.MCCode}'," +
string.Join(",", UpdateTarget.Select(t => "[" + t.Key + "]='" + t.Value + "'"));
USQL += WSQL;
try
{
CMD.CommandText = USQL;
var UpdateOK = CMD.ExecuteNonQuery() == 1;
if (UpdateOK == false)
{
UTIL.MsgE("Save Error");
}
}
catch (Exception ex)
{
UTIL.MsgE("Save Error\n" + ex.Message);
}
}
}
}
if (InsertTarget.Count > 0)
{
var dlgMsg = $"다음 값을 EED서버에 저장 하시겠습니까?\n";
foreach (var item in InsertTarget)
dlgMsg += $"항목:{item.Key} => {item.Value}\n";
var dlg = UTIL.MsgQ(dlgMsg);
if (dlg == DialogResult.Yes)
{
var ISQL = $"insert into K4EE_Component_Reel_SID_Information ([MC],wdate," +
string.Join(",", InsertTarget.Select(t => "[" + t.Key + "]")) + ") values(" +
$"'{PUB.MCCode}',getdate()," +
string.Join(",", InsertTarget.Select(t => "'" + t.Value.Replace("'", "''") + "'")) + ")";
//ISQL += WSQL;
try
{
CMD.CommandText = ISQL;
var UpdateOK = CMD.ExecuteNonQuery() == 1;
if (UpdateOK == false)
{
UTIL.MsgE("Save(EED) Error");
}
}
catch (Exception ex)
{
UTIL.MsgE("Save(EED) Error\n" + ex.Message);
}
}
}
CN.Close();
CN.Dispose();
}
/// <summary>
/// 지정한 자료를 서버에 기록합니다. 조건절과 대상 열을 제공해야합니다
/// </summary>
void ServerWriteCNV(Dictionary<string, string> columns, Dictionary<string, string> wheres)
{
//변경된 값만 저장여부를 확인할 것이므로 기존 값을 모두 가져온다
var tableName = "Component_Reel_SID_Convert";
var SQL = "select top 1 " + string.Join(",", columns.Select(t => "isnull([" + t.Key + "],'') as " + t.Key + "")) +
$" from {tableName} WITH(NOLOCK) ";
var WSQL = $" where isnull(MC,'{PUB.MCCode}')='{PUB.MCCode}'";
for (int i = 0; i < wheres.Count; i++)
{
var col = wheres.ElementAt(i);
var colname = col.Key;
var colvalue = col.Value;
WSQL += " AND ";
WSQL += $" {colname}='{colvalue.Replace("'", "''")}'";
}
SQL += WSQL;
Dictionary<String, string> UpdateTarget = new Dictionary<string, string>();
var CN = new System.Data.SqlClient.SqlConnection();
CN.ConnectionString = Properties.Settings.Default.CS;
var CMD = new System.Data.SqlClient.SqlCommand(SQL, CN);
CN.Open();
var DAR = CMD.ExecuteReader();
var NoData = true;
Dictionary<String, string> InsertTarget = new Dictionary<string, string>();
while (DAR.Read())
{
NoData = false;
foreach (var col in columns)
{
var vStr = DAR[col.Key].ToString();
var cStr = col.Value;
if (vStr.Equals(cStr) == false)
{
//differenct value
UpdateTarget.Add(col.Key, cStr);
}
}
}
DAR.Close();
//자료가 없다면 데이터를 추가한다.
if (NoData)
{
foreach (var col in columns)
{
InsertTarget.Add(col.Key, col.Value);
}
foreach (var item in wheres)
{
if (InsertTarget.ContainsKey(item.Key) == false)
InsertTarget.Add(item.Key, item.Value);
}
}
if (UpdateTarget.Count > 0) //if update target
{
var dlgMsg = $"다음 SID변환값을 서버에 업데이트 하시겠습니까?\n";
foreach (var item in UpdateTarget)
dlgMsg += $"항목:{item.Key} => {item.Value}\n";
var dlg = UTIL.MsgQ(dlgMsg);
if (dlg == DialogResult.Yes)
{
//check double data 220706
var CSQL = $"select count(*) from {tableName}";
CSQL += WSQL;
CMD.CommandText = CSQL;
var cnt = int.Parse(CMD.ExecuteScalar().ToString());
var whke = string.Join(",", wheres.Select(t => t.Key).ToList());
if (cnt < 1)
{
PUB.log.AddAT("SQL=" + CSQL);
UTIL.MsgE($"대상 릴 정보가 없어 변환정보를 업데이트 할 수 없습니다\n" + whke);
}
else if (cnt > 1)
{
PUB.log.AddAT("SQL=" + CSQL);
UTIL.MsgE($"대상 릴 변환정보가 복수로({cnt}건) 존재하여 정보를 업데이트 할 수 없습니다\n" + whke);
}
else
{
var USQL = $"update {tableName} set isnull([MC],'{PUB.MCCode}')='{PUB.MCCode}'," +
string.Join(",", UpdateTarget.Select(t => "[" + t.Key + "]='" + t.Value + "'"));
USQL += WSQL;
try
{
CMD.CommandText = USQL;
var UpdateOK = CMD.ExecuteNonQuery() == 1;
if (UpdateOK == false)
{
UTIL.MsgE("(CNV)Save Error");
}
}
catch (Exception ex)
{
UTIL.MsgE("(CNV)Save Error\n" + ex.Message);
}
}
}
}
if (InsertTarget.Count > 0)
{
var dlgMsg = $"다음 변환값을 서버에 추가 하시겠습니까?\n";
foreach (var item in InsertTarget)
dlgMsg += $"항목:{item.Key} => {item.Value}\n";
var dlg = UTIL.MsgQ(dlgMsg);
if (dlg == DialogResult.Yes)
{
var ISQL = $"insert into {tableName} ([MC]," +
string.Join(",", InsertTarget.Select(t => "[" + t.Key + "]")) + ") values(" +
$"'{PUB.MCCode}'," +
string.Join(",", InsertTarget.Select(t => "'" + t.Value.Replace("'", "''") + "'")) + ")";
//ISQL += WSQL;
try
{
CMD.CommandText = ISQL;
var UpdateOK = CMD.ExecuteNonQuery() == 1;
if (UpdateOK == false)
{
UTIL.MsgE("Save(CNV) Error");
}
}
catch (Exception ex)
{
UTIL.MsgE("Save(CNV) Error\n" + ex.Message);
}
}
}
CN.Close();
CN.Dispose();
if (UpdateTarget.Any() || InsertTarget.Any())
{
PUB.GetSIDConverDB();
}
}
private void button4_Click_1(object sender, EventArgs e)
{
if (tbPart.Text.isEmpty()) tbPart.Text = "N/A";
else
{
var dlg = UTIL.MsgQ("현재 Part No 값을 N/A로 변경 할까요?");
if (dlg == DialogResult.Yes) tbPart.Text = "N/A";
}
}
private void button5_Click_2(object sender, EventArgs e)
{
if (tbVName.Text.isEmpty()) tbVName.Text = "N/A";
else
{
var dlg = UTIL.MsgQ("현재 VenderName 값을 N/A로 변경 할까요?");
if (dlg == DialogResult.Yes) tbVName.Text = "N/A";
}
}
private void lnkBatch_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
UTIL.TouchKeyShow(tbBatch, "INPUT BATCH");
}
void ValueUpdate(TextBox tb, string value, string colname)
{
var tagstring = tb.Tag?.ToString() ?? string.Empty;
if (value.isEmpty() == false)
{
tb.Tag = tb.Text;
tb.Text = value;
}
//else if (tagstring.isEmpty() == false && value.isEmpty() == false && tb.Text != value)
//{
// //한번설정된 값인데 다른 값을 선택했다
// if (UTIL.MsgQ($"{colname} 값을 변경할까요?\n{tb.Text} -> {value}") == DialogResult.Yes)
// {
// tb.Text = value;
// }
//}
}
private void vW_GET_MAX_QTY_VENDOR_LOTDataGridView_CellClick(object sender, DataGridViewCellEventArgs e)
{
if (e.RowIndex < 0 || e.ColumnIndex < 0) return;
var col = this.dv1.Columns[e.ColumnIndex];
if (col.DataPropertyName.Equals("SID") == false) return;
var drv = this.bs.Current as DataRowView;
if (drv == null) return;
var dr = drv.Row as dsWMS.VW_GET_MAX_QTY_VENDOR_LOTRow;
if (dr == null) return;
var dlg = UTIL.MsgQ("선택항 항목의 값을 입력할까요?\n비어있는 값은 자동으로 입력하고 이미 존재하는 경우에는 사용자 확인을 합니다");
if (dlg != DialogResult.Yes) return;
//SID값은 반드시 있다
ValueUpdate(tbSID, dr.SID, "SID");
ValueUpdate(tbLot, dr.VENDOR_LOT, "LOT");
ValueUpdate(tbPart, dr.PART_NO, "PARTNO");
ValueUpdate(TbCustCode, dr.CUST_CODE, "CUST_CODE");
ValueUpdate(tbVName, dr.VENDOR_NM, "VENDER_NM");
ValueUpdate(tbMFG, dr.MFG_DATE, "MFG_DATE");
ValueUpdate(tbBatch, dr.BATCH_NO, "BATCH_NO");
}
}
}

View File

@@ -0,0 +1,179 @@
<?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="statusStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>247, 17</value>
</metadata>
<metadata name="bn.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>664, 17</value>
</metadata>
<metadata name="bs.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>459, 17</value>
</metadata>
<metadata name="dsWMS.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>364, 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
vAAADrwBlbxySQAAASpJREFUOE9jGDygcNbz/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
vAAADrwBlbxySQAAALZJREFUOE9jGDogvP3BfyiTdBDf/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
vAAADrwBlbxySQAAAKNJREFUOE9jGHygcNbz/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
vAAADrwBlbxySQAAASxJREFUOE9jGFygcNbz/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>
<metadata name="ta.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>525, 17</value>
</metadata>
<metadata name="tam.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>589, 17</value>
</metadata>
</root>