This commit is contained in:
atvstdla
2025-09-26 18:15:59 +09:00
parent 54c64a06bd
commit 16da4a5ffa
65 changed files with 5700 additions and 3514 deletions

View File

@@ -57,7 +57,7 @@ namespace Project
string.Empty
});
}
dvMot.Columns[10].DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleLeft;
//링크레이블과 버튼 연결
AttachEvents();
}
@@ -402,7 +402,7 @@ namespace Project
//if (groupBox3.Enabled == false) groupBox3.Enabled = true;
//각축별 기본 상태를 표시해준다.
dvMot.SuspendLayout();
//dvMot.SuspendLayout();
for (int r = 0; r < dvMot.RowCount; r++) // 오류수정 2111221
{
var row = this.dvMot.Rows[r];
@@ -411,13 +411,20 @@ namespace Project
row.Cells[2].Value = $"{PUB.mot.GetCmdPos(axis)}";
row.Cells[3].Value = $"{PUB.mot.GetActPos(axis)}";
row.Cells[4].Style.BackColor = PUB.mot.IsOrg(axis) ? Color.SkyBlue : Color.Gray;
row.Cells[5].Style.BackColor = PUB.mot.IsLimitN(axis) ? Color.Red : Color.Gray;
row.Cells[6].Style.BackColor = PUB.mot.IsLimitP(axis) ? Color.Red : Color.Gray;
row.Cells[7].Style.BackColor = PUB.mot.IsInp(axis) ? Color.SkyBlue : Color.Gray;
row.Cells[8].Style.BackColor = PUB.mot.IsServAlarm(axis) ? Color.Red : Color.Gray;
row.Cells[9].Style.BackColor = PUB.mot.IsHomeSet(axis) ? Color.Green : Color.Gray;
}
dvMot.ResumeLayout();
row.Cells[4].Value = PUB.mot.IsOrg(axis) ? "O" : "";
row.Cells[5].Style.BackColor = PUB.mot.IsLimitN(axis) ? Color.Red : Color.Gray;
row.Cells[5].Value = PUB.mot.IsLimitN(axis) ? "O" : "";
row.Cells[6].Style.BackColor = PUB.mot.IsLimitP(axis) ? Color.Red : Color.Gray;
row.Cells[6].Value = PUB.mot.IsLimitP(axis) ? "O" : "";
row.Cells[7].Style.BackColor = PUB.mot.IsInp(axis) ? Color.SkyBlue : Color.Gray;
row.Cells[7].Value = PUB.mot.IsInp(axis) ? "O" : "";
row.Cells[8].Style.BackColor = PUB.mot.IsServAlarm(axis) ? Color.Red : Color.Gray;
row.Cells[8].Value = PUB.mot.IsServAlarm(axis) ? "O" : "";
row.Cells[9].Style.BackColor = PUB.mot.IsHomeSet(axis) ? Color.Green : Color.Gray;
row.Cells[9].Value = PUB.mot.IsHomeSet(axis) ? "O" : "";
row.Cells[10].Value = PUB.mot.IsServOn(axis) ? "Servo On" : "Servo Off";
}
//dvMot.ResumeLayout();
}
// this.tblFG.Invalidate();
}
@@ -732,7 +739,7 @@ namespace Project
cntE += 1;
pDr.PosTitle = arrTitle;
}
//pDr.Description = targetem.DescriptionAttr();
pDr.Description = targetem.DescriptionAttr();
//pDr.Category = targetem.CategoryAttr();
pDr.Check = true;
pDr.EndEdit();

View File

@@ -39,7 +39,7 @@
this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dvc_title = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Code = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.BSave = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dvc_bsave = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.bs = new System.Windows.Forms.BindingSource(this.components);
this.ds1 = new Project.DataSet1();
this.tmDisplay = new System.Windows.Forms.Timer(this.components);
@@ -49,6 +49,13 @@
this.panel5 = new System.Windows.Forms.Panel();
this.panel4 = new System.Windows.Forms.Panel();
this.panel1 = new System.Windows.Forms.Panel();
this.panel8 = new System.Windows.Forms.Panel();
this.label20 = new System.Windows.Forms.Label();
this.tbAutoOutSec = new System.Windows.Forms.TextBox();
this.label21 = new System.Windows.Forms.Label();
this.chkDisablePartNoValue = new System.Windows.Forms.CheckBox();
this.chkDisableBatchValue = new System.Windows.Forms.CheckBox();
this.label19 = new System.Windows.Forms.Label();
this.panel7 = new System.Windows.Forms.Panel();
this.chkSIDCHK = new System.Windows.Forms.CheckBox();
this.checkBox32 = new System.Windows.Forms.CheckBox();
@@ -146,6 +153,7 @@
this.panel5.SuspendLayout();
this.panel4.SuspendLayout();
this.panel1.SuspendLayout();
this.panel8.SuspendLayout();
this.panel7.SuspendLayout();
this.tabControl1.SuspendLayout();
this.tabPage1.SuspendLayout();
@@ -178,7 +186,7 @@
this.Column1,
this.dvc_title,
this.Code,
this.BSave});
this.dvc_bsave});
this.dv.DataSource = this.bs;
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Window;
@@ -195,7 +203,7 @@
this.dv.Name = "dv";
this.dv.RowHeadersVisible = false;
this.dv.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
this.dv.Size = new System.Drawing.Size(639, 425);
this.dv.Size = new System.Drawing.Size(639, 473);
this.dv.TabIndex = 1;
this.dv.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.dv_DataError);
//
@@ -227,14 +235,14 @@
this.Code.HeaderText = "Customer Code";
this.Code.Name = "Code";
//
// BSave
// dvc_bsave
//
this.BSave.DataPropertyName = "BSave";
this.dvc_bsave.DataPropertyName = "BSave";
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.BSave.DefaultCellStyle = dataGridViewCellStyle4;
this.BSave.HeaderText = "Mem";
this.BSave.Name = "BSave";
this.BSave.Width = 79;
this.dvc_bsave.DefaultCellStyle = dataGridViewCellStyle4;
this.dvc_bsave.HeaderText = "BLoad";
this.dvc_bsave.Name = "dvc_bsave";
this.dvc_bsave.Width = 86;
//
// bs
//
@@ -273,7 +281,7 @@
this.chkOwnZPL.Font = new System.Drawing.Font("맑은 고딕", 10.5F);
this.chkOwnZPL.Location = new System.Drawing.Point(494, 0);
this.chkOwnZPL.Name = "chkOwnZPL";
this.chkOwnZPL.Size = new System.Drawing.Size(158, 34);
this.chkOwnZPL.Size = new System.Drawing.Size(158, 38);
this.chkOwnZPL.TabIndex = 17;
this.chkOwnZPL.Text = "Individual Print Code";
this.toolTip1.SetToolTip(this.chkOwnZPL, "Excludes data not in barcode rules..");
@@ -286,7 +294,7 @@
this.panel5.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel5.Location = new System.Drawing.Point(1, 1);
this.panel5.Name = "panel5";
this.panel5.Size = new System.Drawing.Size(1368, 689);
this.panel5.Size = new System.Drawing.Size(1368, 737);
this.panel5.TabIndex = 3;
//
// panel4
@@ -300,12 +308,13 @@
this.panel4.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel4.Location = new System.Drawing.Point(0, 53);
this.panel4.Name = "panel4";
this.panel4.Size = new System.Drawing.Size(1368, 636);
this.panel4.Size = new System.Drawing.Size(1368, 684);
this.panel4.TabIndex = 3;
//
// panel1
//
this.panel1.BackColor = System.Drawing.Color.LightGray;
this.panel1.Controls.Add(this.panel8);
this.panel1.Controls.Add(this.panel7);
this.panel1.Controls.Add(this.tabControl1);
this.panel1.Controls.Add(this.panel6);
@@ -314,9 +323,103 @@
this.panel1.Location = new System.Drawing.Point(639, 136);
this.panel1.Name = "panel1";
this.panel1.Padding = new System.Windows.Forms.Padding(10);
this.panel1.Size = new System.Drawing.Size(729, 425);
this.panel1.Size = new System.Drawing.Size(729, 473);
this.panel1.TabIndex = 28;
//
// panel8
//
this.panel8.BackColor = System.Drawing.Color.Gainsboro;
this.panel8.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel8.Controls.Add(this.label20);
this.panel8.Controls.Add(this.tbAutoOutSec);
this.panel8.Controls.Add(this.label21);
this.panel8.Controls.Add(this.chkDisablePartNoValue);
this.panel8.Controls.Add(this.chkDisableBatchValue);
this.panel8.Controls.Add(this.label19);
this.panel8.Dock = System.Windows.Forms.DockStyle.Top;
this.panel8.Location = new System.Drawing.Point(10, 122);
this.panel8.Name = "panel8";
this.panel8.Size = new System.Drawing.Size(709, 36);
this.panel8.TabIndex = 30;
//
// label20
//
this.label20.Dock = System.Windows.Forms.DockStyle.Left;
this.label20.Font = new System.Drawing.Font("맑은 고딕", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label20.Location = new System.Drawing.Point(401, 0);
this.label20.Name = "label20";
this.label20.Size = new System.Drawing.Size(39, 34);
this.label20.TabIndex = 20;
this.label20.Text = "Sec";
this.label20.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// tbAutoOutSec
//
this.tbAutoOutSec.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.tbAutoOutSec.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "AutoOutConveyor", true));
this.tbAutoOutSec.Dock = System.Windows.Forms.DockStyle.Left;
this.tbAutoOutSec.Font = new System.Drawing.Font("맑은 고딕", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.tbAutoOutSec.Location = new System.Drawing.Point(323, 0);
this.tbAutoOutSec.Name = "tbAutoOutSec";
this.tbAutoOutSec.Size = new System.Drawing.Size(78, 34);
this.tbAutoOutSec.TabIndex = 19;
this.tbAutoOutSec.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// label21
//
this.label21.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(180)))), ((int)(((byte)(180)))));
this.label21.Dock = System.Windows.Forms.DockStyle.Left;
this.label21.Font = new System.Drawing.Font("Tahoma", 8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label21.Location = new System.Drawing.Point(229, 0);
this.label21.Name = "label21";
this.label21.Size = new System.Drawing.Size(94, 34);
this.label21.TabIndex = 18;
this.label21.Text = "Auto Out\r\nConveyor";
this.label21.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// chkDisablePartNoValue
//
this.chkDisablePartNoValue.AutoSize = true;
this.chkDisablePartNoValue.DataBindings.Add(new System.Windows.Forms.Binding("CheckState", this.bs, "IgnorePartNo", true));
this.chkDisablePartNoValue.Dock = System.Windows.Forms.DockStyle.Left;
this.chkDisablePartNoValue.Font = new System.Drawing.Font("맑은 고딕", 10.5F);
this.chkDisablePartNoValue.ForeColor = System.Drawing.Color.Red;
this.chkDisablePartNoValue.Location = new System.Drawing.Point(157, 0);
this.chkDisablePartNoValue.Name = "chkDisablePartNoValue";
this.chkDisablePartNoValue.Size = new System.Drawing.Size(72, 34);
this.chkDisablePartNoValue.TabIndex = 15;
this.chkDisablePartNoValue.Tag = "0";
this.chkDisablePartNoValue.Text = "PartNo";
this.chkDisablePartNoValue.UseVisualStyleBackColor = true;
//
// chkDisableBatchValue
//
this.chkDisableBatchValue.AutoSize = true;
this.chkDisableBatchValue.DataBindings.Add(new System.Windows.Forms.Binding("CheckState", this.bs, "IgnoreBatch", true));
this.chkDisableBatchValue.Dock = System.Windows.Forms.DockStyle.Left;
this.chkDisableBatchValue.Font = new System.Drawing.Font("맑은 고딕", 10.5F);
this.chkDisableBatchValue.ForeColor = System.Drawing.Color.Red;
this.chkDisableBatchValue.Location = new System.Drawing.Point(94, 0);
this.chkDisableBatchValue.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.chkDisableBatchValue.Name = "chkDisableBatchValue";
this.chkDisableBatchValue.Size = new System.Drawing.Size(63, 34);
this.chkDisableBatchValue.TabIndex = 14;
this.chkDisableBatchValue.Tag = "0";
this.chkDisableBatchValue.Text = "Batch";
this.chkDisableBatchValue.UseVisualStyleBackColor = true;
//
// label19
//
this.label19.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(180)))), ((int)(((byte)(180)))));
this.label19.Dock = System.Windows.Forms.DockStyle.Left;
this.label19.Font = new System.Drawing.Font("맑은 고딕", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label19.Location = new System.Drawing.Point(0, 0);
this.label19.Name = "label19";
this.label19.Size = new System.Drawing.Size(94, 34);
this.label19.TabIndex = 16;
this.label19.Text = "Disable Value";
this.label19.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// panel7
//
this.panel7.BackColor = System.Drawing.Color.Gainsboro;
@@ -330,7 +433,7 @@
this.panel7.Location = new System.Drawing.Point(10, 82);
this.panel7.Name = "panel7";
this.panel7.Padding = new System.Windows.Forms.Padding(10, 0, 0, 0);
this.panel7.Size = new System.Drawing.Size(709, 36);
this.panel7.Size = new System.Drawing.Size(709, 40);
this.panel7.TabIndex = 29;
//
// chkSIDCHK
@@ -342,7 +445,7 @@
this.chkSIDCHK.ForeColor = System.Drawing.Color.Red;
this.chkSIDCHK.Location = new System.Drawing.Point(292, 0);
this.chkSIDCHK.Name = "chkSIDCHK";
this.chkSIDCHK.Size = new System.Drawing.Size(155, 34);
this.chkSIDCHK.Size = new System.Drawing.Size(155, 38);
this.chkSIDCHK.TabIndex = 16;
this.chkSIDCHK.Tag = "0";
this.chkSIDCHK.Text = "SID Existence Check";
@@ -357,7 +460,7 @@
this.checkBox32.ForeColor = System.Drawing.Color.Red;
this.checkBox32.Location = new System.Drawing.Point(148, 0);
this.checkBox32.Name = "checkBox32";
this.checkBox32.Size = new System.Drawing.Size(144, 34);
this.checkBox32.Size = new System.Drawing.Size(144, 38);
this.checkBox32.TabIndex = 15;
this.checkBox32.Tag = "0";
this.checkBox32.Text = "Do not use printer";
@@ -373,7 +476,7 @@
this.chkEnbCamera.ForeColor = System.Drawing.Color.Red;
this.chkEnbCamera.Location = new System.Drawing.Point(10, 0);
this.chkEnbCamera.Name = "chkEnbCamera";
this.chkEnbCamera.Size = new System.Drawing.Size(138, 34);
this.chkEnbCamera.Size = new System.Drawing.Size(138, 38);
this.chkEnbCamera.TabIndex = 14;
this.chkEnbCamera.Tag = "0";
this.chkEnbCamera.Text = "Do not use vision";
@@ -384,7 +487,7 @@
this.button1.Dock = System.Windows.Forms.DockStyle.Right;
this.button1.Location = new System.Drawing.Point(652, 0);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(55, 34);
this.button1.Size = new System.Drawing.Size(55, 38);
this.button1.TabIndex = 18;
this.button1.Text = "Edit";
this.button1.UseVisualStyleBackColor = true;
@@ -394,11 +497,12 @@
//
this.tabControl1.Controls.Add(this.tabPage1);
this.tabControl1.Controls.Add(this.tabPage2);
this.tabControl1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.tabControl1.Font = new System.Drawing.Font("맑은 고딕", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.tabControl1.Location = new System.Drawing.Point(10, 125);
this.tabControl1.Location = new System.Drawing.Point(10, 169);
this.tabControl1.Name = "tabControl1";
this.tabControl1.SelectedIndex = 0;
this.tabControl1.Size = new System.Drawing.Size(729, 294);
this.tabControl1.Size = new System.Drawing.Size(709, 294);
this.tabControl1.TabIndex = 27;
//
// tabPage1
@@ -414,7 +518,7 @@
this.tabPage1.Location = new System.Drawing.Point(4, 26);
this.tabPage1.Name = "tabPage1";
this.tabPage1.Padding = new System.Windows.Forms.Padding(10);
this.tabPage1.Size = new System.Drawing.Size(721, 264);
this.tabPage1.Size = new System.Drawing.Size(701, 264);
this.tabPage1.TabIndex = 0;
this.tabPage1.Text = "Options";
this.tabPage1.UseVisualStyleBackColor = true;
@@ -539,7 +643,7 @@
this.tabPage2.Location = new System.Drawing.Point(4, 26);
this.tabPage2.Name = "tabPage2";
this.tabPage2.Padding = new System.Windows.Forms.Padding(10);
this.tabPage2.Size = new System.Drawing.Size(721, 264);
this.tabPage2.Size = new System.Drawing.Size(701, 264);
this.tabPage2.TabIndex = 1;
this.tabPage2.Text = "Option Data";
this.tabPage2.UseVisualStyleBackColor = true;
@@ -564,7 +668,7 @@
this.GrpSidConvData.Font = new System.Drawing.Font("맑은 고딕", 10F);
this.GrpSidConvData.Location = new System.Drawing.Point(10, 174);
this.GrpSidConvData.Name = "GrpSidConvData";
this.GrpSidConvData.Size = new System.Drawing.Size(701, 82);
this.GrpSidConvData.Size = new System.Drawing.Size(681, 82);
this.GrpSidConvData.TabIndex = 34;
this.GrpSidConvData.TabStop = false;
this.GrpSidConvData.Text = "SID Conversion Table Server Application";
@@ -576,10 +680,10 @@
this.chkSave2.ForeColor = System.Drawing.Color.Tomato;
this.chkSave2.Location = new System.Drawing.Point(431, 51);
this.chkSave2.Name = "chkSave2";
this.chkSave2.Size = new System.Drawing.Size(282, 23);
this.chkSave2.Size = new System.Drawing.Size(216, 23);
this.chkSave2.TabIndex = 39;
this.chkSave2.Tag = "11";
this.chkSave2.Text = "Record change information to server";
this.chkSave2.Text = "Record change information";
this.chkSave2.UseVisualStyleBackColor = true;
//
// checkBox34
@@ -636,9 +740,9 @@
this.label6.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(50)))), ((int)(((byte)(50)))));
this.label6.Location = new System.Drawing.Point(6, 54);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(84, 15);
this.label6.Size = new System.Drawing.Size(41, 15);
this.label6.TabIndex = 29;
this.label6.Text = "Query Target";
this.label6.Text = "Query";
//
// label7
//
@@ -647,9 +751,9 @@
this.label7.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(50)))), ((int)(((byte)(50)))));
this.label7.Location = new System.Drawing.Point(7, 28);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(83, 15);
this.label7.Size = new System.Drawing.Size(40, 15);
this.label7.TabIndex = 29;
this.label7.Text = "Apply Target";
this.label7.Text = "Apply";
//
// checkBox3
//
@@ -749,7 +853,7 @@
this.grpapplyjob.Font = new System.Drawing.Font("맑은 고딕", 10F);
this.grpapplyjob.Location = new System.Drawing.Point(10, 92);
this.grpapplyjob.Name = "grpapplyjob";
this.grpapplyjob.Size = new System.Drawing.Size(701, 82);
this.grpapplyjob.Size = new System.Drawing.Size(681, 82);
this.grpapplyjob.TabIndex = 33;
this.grpapplyjob.TabStop = false;
this.grpapplyjob.Text = "Daily Work Application";
@@ -784,9 +888,9 @@
this.label3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(50)))), ((int)(((byte)(50)))));
this.label3.Location = new System.Drawing.Point(6, 54);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(84, 15);
this.label3.Size = new System.Drawing.Size(41, 15);
this.label3.TabIndex = 29;
this.label3.Text = "Query Target";
this.label3.Text = "Query";
//
// label2
//
@@ -795,9 +899,9 @@
this.label2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(50)))), ((int)(((byte)(50)))));
this.label2.Location = new System.Drawing.Point(7, 28);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(83, 15);
this.label2.Size = new System.Drawing.Size(40, 15);
this.label2.TabIndex = 29;
this.label2.Text = "Apply Target";
this.label2.Text = "Apply";
//
// checkBox10
//
@@ -901,7 +1005,7 @@
this.grpApplySidinfo.Font = new System.Drawing.Font("맑은 고딕", 10F);
this.grpApplySidinfo.Location = new System.Drawing.Point(10, 10);
this.grpApplySidinfo.Name = "grpApplySidinfo";
this.grpApplySidinfo.Size = new System.Drawing.Size(701, 82);
this.grpApplySidinfo.Size = new System.Drawing.Size(681, 82);
this.grpApplySidinfo.TabIndex = 33;
this.grpApplySidinfo.TabStop = false;
this.grpApplySidinfo.Text = "SID Information Application";
@@ -961,10 +1065,10 @@
this.chkSave1.ForeColor = System.Drawing.Color.Tomato;
this.chkSave1.Location = new System.Drawing.Point(431, 50);
this.chkSave1.Name = "chkSave1";
this.chkSave1.Size = new System.Drawing.Size(282, 23);
this.chkSave1.Size = new System.Drawing.Size(216, 23);
this.chkSave1.TabIndex = 33;
this.chkSave1.Tag = "8";
this.chkSave1.Text = "Record change information to server";
this.chkSave1.Text = "Record change information";
this.chkSave1.UseVisualStyleBackColor = true;
//
// checkBox19
@@ -985,9 +1089,9 @@
this.label4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(50)))), ((int)(((byte)(50)))));
this.label4.Location = new System.Drawing.Point(6, 54);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(84, 15);
this.label4.Size = new System.Drawing.Size(41, 15);
this.label4.TabIndex = 29;
this.label4.Text = "Query Target";
this.label4.Text = "Query";
//
// label5
//
@@ -996,9 +1100,9 @@
this.label5.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(50)))), ((int)(((byte)(50)))));
this.label5.Location = new System.Drawing.Point(7, 28);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(83, 15);
this.label5.Size = new System.Drawing.Size(40, 15);
this.label5.TabIndex = 29;
this.label5.Text = "Apply Target";
this.label5.Text = "Apply";
//
// checkBox11
//
@@ -1145,6 +1249,7 @@
//
this.label16.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(180)))), ((int)(((byte)(180)))));
this.label16.Dock = System.Windows.Forms.DockStyle.Left;
this.label16.Font = new System.Drawing.Font("맑은 고딕", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label16.Location = new System.Drawing.Point(0, 0);
this.label16.Name = "label16";
this.label16.Size = new System.Drawing.Size(94, 34);
@@ -1208,6 +1313,7 @@
//
this.label1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(180)))), ((int)(((byte)(180)))));
this.label1.Dock = System.Windows.Forms.DockStyle.Left;
this.label1.Font = new System.Drawing.Font("맑은 고딕", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.Location = new System.Drawing.Point(0, 0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(94, 34);
@@ -1266,7 +1372,7 @@
this.panel3.Controls.Add(this.label8);
this.panel3.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panel3.Font = new System.Drawing.Font("Consolas", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.panel3.Location = new System.Drawing.Point(0, 561);
this.panel3.Location = new System.Drawing.Point(0, 609);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(1368, 20);
this.panel3.TabIndex = 29;
@@ -1375,7 +1481,7 @@
this.btCopy,
this.toolStripButton10,
this.toolStripSeparator1});
this.toolStrip1.Location = new System.Drawing.Point(0, 581);
this.toolStrip1.Location = new System.Drawing.Point(0, 629);
this.toolStrip1.Name = "toolStrip1";
this.toolStrip1.Size = new System.Drawing.Size(1368, 55);
this.toolStrip1.TabIndex = 8;
@@ -1395,7 +1501,7 @@
this.btDel.Image = global::Project.Properties.Resources.icons8_delete_40;
this.btDel.ImageTransparentColor = System.Drawing.Color.Magenta;
this.btDel.Name = "btDel";
this.btDel.Size = new System.Drawing.Size(110, 52);
this.btDel.Size = new System.Drawing.Size(108, 52);
this.btDel.Text = "Delete(&D)";
this.btDel.Click += new System.EventHandler(this.toolStripButton5_Click);
//
@@ -1403,7 +1509,7 @@
//
this.btSave.Image = ((System.Drawing.Image)(resources.GetObject("btSave.Image")));
this.btSave.Name = "btSave";
this.btSave.Size = new System.Drawing.Size(99, 52);
this.btSave.Size = new System.Drawing.Size(97, 52);
this.btSave.Text = "Save(&S)";
this.btSave.Click += new System.EventHandler(this.toolStripButton9_Click);
//
@@ -1528,7 +1634,7 @@
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.BackColor = System.Drawing.SystemColors.Control;
this.ClientSize = new System.Drawing.Size(1370, 691);
this.ClientSize = new System.Drawing.Size(1370, 739);
this.Controls.Add(this.panel5);
this.Font = new System.Drawing.Font("맑은 고딕", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
@@ -1544,6 +1650,8 @@
this.panel4.ResumeLayout(false);
this.panel4.PerformLayout();
this.panel1.ResumeLayout(false);
this.panel8.ResumeLayout(false);
this.panel8.PerformLayout();
this.panel7.ResumeLayout(false);
this.panel7.PerformLayout();
this.tabControl1.ResumeLayout(false);
@@ -1674,6 +1782,13 @@
private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
private System.Windows.Forms.DataGridViewTextBoxColumn dvc_title;
private System.Windows.Forms.DataGridViewTextBoxColumn Code;
private System.Windows.Forms.DataGridViewTextBoxColumn BSave;
private System.Windows.Forms.DataGridViewTextBoxColumn dvc_bsave;
private System.Windows.Forms.Panel panel8;
private System.Windows.Forms.CheckBox chkDisablePartNoValue;
private System.Windows.Forms.CheckBox chkDisableBatchValue;
private System.Windows.Forms.Label label19;
private System.Windows.Forms.Label label21;
private System.Windows.Forms.TextBox tbAutoOutSec;
private System.Windows.Forms.Label label20;
}
}

View File

@@ -27,6 +27,7 @@ namespace Project
this.dv.CellContentClick += dv_CellContentClick;
//if (COMM.SETTING.Data.FullScreen) this.WindowState = FormWindowState.Maximized;
//this.WindowState = FormWindowState.Normal;
dvc_bsave.HeaderText = $"BLoad\n(1~8)";
}
private void FModelV_FormClosing(object sender, FormClosingEventArgs e)

View File

@@ -123,7 +123,7 @@
<metadata name="Code.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="BSave.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="dvc_bsave.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="bs.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">

View File

@@ -222,9 +222,9 @@ namespace Project.Dialog
var butindex = int.Parse(but.Tag.ToString());
Boolean current = false;
if (butindex == 0) current = DIO.GetIOOutput(eDOName.CART_MAG0);
else if (butindex == 1) current = DIO.GetIOOutput(eDOName.CART_MAG1);
else current = DIO.GetIOOutput(eDOName.CART_MAG2);
if (butindex == 0) current = DIO.GetIOOutput(eDOName.PORTL_MAGNET);
else if (butindex == 1) current = DIO.GetIOOutput(eDOName.PORTC_MAGNET);
else current = DIO.GetIOOutput(eDOName.PORTR_MAGNET);
DIO.SetPortMagnet(butindex, !current);
}

View File

@@ -141,7 +141,7 @@
// bindingNavigatorCountItem
//
this.bindingNavigatorCountItem.Name = "bindingNavigatorCountItem";
this.bindingNavigatorCountItem.Size = new System.Drawing.Size(27, 22);
this.bindingNavigatorCountItem.Size = new System.Drawing.Size(26, 22);
this.bindingNavigatorCountItem.Text = "/{0}";
this.bindingNavigatorCountItem.ToolTipText = "Total item count";
//
@@ -150,7 +150,7 @@
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(61, 22);
this.bindingNavigatorDeleteItem.Size = new System.Drawing.Size(60, 22);
this.bindingNavigatorDeleteItem.Text = "Delete";
//
// bindingNavigatorMoveFirstItem
@@ -217,7 +217,7 @@
//
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(52, 22);
this.component_Reel_RegExRuleBindingNavigatorSaveItem.Size = new System.Drawing.Size(51, 22);
this.component_Reel_RegExRuleBindingNavigatorSaveItem.Text = "Save";
this.component_Reel_RegExRuleBindingNavigatorSaveItem.Click += new System.EventHandler(this.component_Reel_RegExRuleBindingNavigatorSaveItem_Click);
//
@@ -245,7 +245,7 @@
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.Size = new System.Drawing.Size(81, 22);
this.toolStripButton2.Text = "Export List";
this.toolStripButton2.Click += new System.EventHandler(this.toolStripButton2_Click);
//

View File

@@ -85,12 +85,13 @@ namespace Project.Dialog
{
this.Validate();
this.bs.EndEdit();
var cnt = this.tam.UpdateAll(this.dataSet1);
if (cnt == 0)
var cnt1 = this.ta.Update(this.dataSet1.K4EE_Component_Reel_RegExRule);
//var cnt = this.tam.UpdateAll(this.dataSet1);
if (cnt1 == 0)
{
UTIL.MsgE("No content has been saved");
}
else UTIL.MsgI($"{cnt} records have been saved");
else UTIL.MsgI($"{cnt1} records have been saved");
var modelName = PUB.Result.vModel.Title;
PUB.Result.BCDPattern = PUB.GetPatterns(modelName, false);
@@ -103,7 +104,7 @@ namespace Project.Dialog
{
try
{
if (cust == "ALL")
{
dvcModelName.Visible = true;
@@ -125,12 +126,13 @@ namespace Project.Dialog
else
drow.DefaultCellStyle.BackColor = Color.WhiteSmoke;
}
dv1.AutoResizeColumns();
}
catch (System.Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message);
}
dv1.AutoResizeColumns();
}
@@ -264,10 +266,12 @@ namespace Project.Dialog
Width = 160,
Dock = DockStyle.Right,
};
butok.Click += (s1, e1) => {
butok.Click += (s1, e1) =>
{
f.DialogResult = DialogResult.OK;
};
butng.Click += (s1, e1) => {
butng.Click += (s1, e1) =>
{
f.DialogResult = DialogResult.Cancel;
};
@@ -286,7 +290,7 @@ namespace Project.Dialog
f.Controls.Add(pan);
f.Controls.Add(cmb);
f.Controls.Add(lb);
if (f.ShowDialog() == DialogResult.OK)
{
return cmb.Text;

View File

@@ -201,20 +201,20 @@
<data name="toolStripButton2.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAL4SURBVDhPhZLrS1NhHMf3qv6EsF70UohSSiupF5WpTQ3s
ZipleZlTLLWhK4PMmJNMW2iiQkUkRS8qonRObV6ac7nRjEwzM++38DJ1l3Me3Tnz23PORisI+sGH58Vz
vh/O73uORJjIG4aU4xVmfdxd87K01MzSk4hohNNC4ip6SMwd08BBpbFqR/yLTWLoz4ku7TYuOMjST5ud
t7nWYHP6WXIIEHybc6CoYQoXNEOMNEe32Rf1TmyZaWFxxcn3TLhhmeRgmeJgnuBgGl+H4ccaWgZdWOMA
7RCLojeTSL8/wP4liVJ1snZmHb3TPD5Nc/Tk8FGUrKNrZA3vBhkq8KB3jodl1g21bgrh1zuei+FEzZGx
s6XxG/La00ivOYOa1nqUvNYgvDgIRyhS9QFEqvahUlspruIkHOZXGERe6+JEQUJF+KuO/iY0DT9CjblA
lFysjkHBs2Tk1idBVncCaXVp0PbNo2nAicYvdqzSnqJU3UQUSKukm4+r83jz9/d42q9CuSFHlKTUxtLw
SWQ9yIRxxCWu0j7MQk97WHG5EVXywSsQJrqsiygep8I6YkKd5Sput+UjUXMUKdXxsE4wsNJihYKNo95O
bFQQqfpDcOhmsXt/4XYkV0nRO9oD9ftsqHQKJN2LQL3hLT7PcLDSYnvG3fhAWXC4EX7LJ9ijDJCHKLch
98k5nK+NxrnKY6JEoUuG8nUmfZMICPe9Uzw+Cp+Y4qBFhilNXkGIcstMiHIrfSgAIQUBOFUegUsPU2Ec
1EOtL0T2y1TIahNgpQIL/TfMVEDcHoTmGfwrHFZ2k7lVgr4ZXqTr+yyuPM5CBg3K65KQ/+Ty7zsBZp1H
cF6LX7BXYSDTNr/gf7joCsGZWr8gTNHJDM0sb/zr4X9hd7GeXRe1Tl+cFpnVNjZtZxxDs6uesUUWYwss
RnwsOt0iQvNOwsNmZzwsIauBF5q/+uISSWhW66VgWUvbbrneFixvJL/J8BKU0eBF1kACZc0rO9Oa24NS
dekSiUTyC9B/oc2h827VAAAAAElFTkSuQmCC
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAL4SURBVDhPhZLrS1NhHMf3qv6EsF70UohSalFRLyrzMjWw
m6mUeZtTKm+4iUFmzUXmJbRQoSKSohcVkbdZzcxtTjeckWne8tamA6fTue2coztnfnvO2XAFQT/48Lx4
zvfD+X3PEfETdVObfrraqEmoMa7EqIw0ORmBWv40MQnV/UzcfcPIMYW+fk/i621C6M+Jvdurt7uYZduy
k3N41uFwB1l28TAYs7lQ1mpBas04JclTbw9E/RNfabDbV1xc/5wXpl8sTBYWxjkWhtkNaH+u48OoB+ss
0D5Oo+z9L2Q9HKH/kkTf6abXqA0MWjl8tbLkZDEgSDagm1rHp1GKCHwYtHEwLXihUlsQcaP7lRBOrj05
c1GVuClrPI+shgto+NiMine1iCgPw0mCRHUUUcpDqGuvE1ZxMywWVylElehYQZBUHfG2e7gDHZNP0WCU
C5K0R3GQv0xFfnMKpE1nkNmUifahRXSMuNH2fQ1O0lO0spcRBJJ6yfb4igLOONGDF8NKVGnzBEl6YzwJ
n0Xu4xzopzzCKp8naWhID6seL6Ir+vwCfmIrdUzRswyYpwxoMpXgXlcxkmtPIf1RIsxzFMykWL5g/bS/
EwcRRCn/EBy/Ve49XLobqfUSDE73Q9VzFUp1EVIeRKJZ24Jv8yzMpNj+WS/6CHaXFxG3A4IDihCZWLEL
+c8v4XJjLC7VxQiSInUqFO9yyJtEgr8ftHAY4D8xwUWKPCw3+AVixY55sWIneSgEYnkIzlVF4tqTDOhH
NVBpSnH1TQakjUkwE4GJ/BtGImC8PogLtMEVTsh7GZuTwdA8J6CbWEDhs1xkk6CsKQXFz69v3fFQGxzC
CzqDgoOFWsbqCAr+h4esEJ7TFhQcKfpCjVkdm/96+F843ZRvX1q7OxAnReZ2zVjWKNfY/KpvZonGjJ3G
VIAlt1eAb97NcFh2enw0TTtDr3T+CMTJCrkfr4VLP3Ttl2kc4bJWZotsP2HZLX6kLUyotHN1b2bn57AM
dZZIJBL9BohloZ6S1+tQAAAAAElFTkSuQmCC
</value>
</data>
<metadata name="IsIgnore.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">

View File

@@ -615,7 +615,7 @@ namespace Project.Dialog
{
var sid = this.tbSID.Text.Trim();
var dr = taSID.GetBySID(PUB.MCCode, sid).FirstOrDefault();// db.Component_Reel_SID_Information.Where(t => t.SID == sid).FirstOrDefault();
var dr = taSID.GetBySID(PUB.MCCode, sid).FirstOrDefault();
var drP = taPRN.GetBySID(PUB.MCCode, sid).FirstOrDefault();
if (dr == null) return;
@@ -701,11 +701,7 @@ namespace Project.Dialog
var preDatas = DBHelper.Get(sql, ps);
if (preDatas.Rows.Count > 0) preData = preDatas.Rows[0] as DataSet1.K4EE_Component_Reel_ResultRow;
//var preData = db2.Component_Reel_Result.AsNoTracking().Where(t =>
//t.JTYPE == PUB.Result.JobType2 &&
//t.SID == sid &&
//string.IsNullOrEmpty(t.QR) == false &&
//t.STIME >= sd).OrderByDescending(t => t.wdate).FirstOrDefault();
//기존자료가 없다면 취소
if (preData == null) return false;
@@ -1625,7 +1621,7 @@ namespace Project.Dialog
{
//변경된 값만 저장여부를 확인할 것이므로 기존 값을 모두 가져온다
var SQL = "select top 1 " + string.Join(",", columns.Select(t => "isnull([" + t.Key + "],'') as " + t.Key + "")) +
" from Component_Reel_SID_Information WITH(NOLOCK)";
" from K4EE_Component_Reel_SID_Information WITH(NOLOCK)";
var WSQL = $" where MC='{PUB.MCCode}'";
for (int i = 0; i < wheres.Count; i++)
@@ -1687,7 +1683,7 @@ namespace Project.Dialog
{
//check double data 220706
var CSQL = "select count(*) from Component_Reel_SID_Information WITH(NOLOCK) ";
var CSQL = "select count(*) from K4EE_Component_Reel_SID_Information WITH(NOLOCK) ";
CSQL += WSQL;
CMD.CommandText = CSQL;
var cnt = int.Parse(CMD.ExecuteScalar().ToString());
@@ -1705,7 +1701,7 @@ namespace Project.Dialog
}
else
{
var USQL = $"update Component_Reel_SID_Information set [MC]='{PUB.MCCode}'," +
var USQL = $"update K4EE_Component_Reel_SID_Information set [MC]='{PUB.MCCode}'," +
string.Join(",", UpdateTarget.Select(t => "[" + t.Key + "]='" + t.Value + "'"));
USQL += WSQL;
@@ -1735,7 +1731,7 @@ namespace Project.Dialog
var dlg = UTIL.MsgQ(dlgMsg);
if (dlg == DialogResult.Yes)
{
var ISQL = $"insert into Component_Reel_SID_Information ([MC],wdate," +
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("'", "''") + "'")) + ")";
@@ -1766,7 +1762,7 @@ namespace Project.Dialog
void ServerWriteCNV(Dictionary<string, string> columns, Dictionary<string, string> wheres)
{
//변경된 값만 저장여부를 확인할 것이므로 기존 값을 모두 가져온다
var tableName = "Component_Reel_SID_Convert";
var tableName = "K4EE_Component_Reel_SID_Convert";
var SQL = "select top 1 " + string.Join(",", columns.Select(t => "isnull([" + t.Key + "],'') as " + t.Key + "")) +
$" from {tableName} WITH(NOLOCK) ";
@@ -1916,7 +1912,7 @@ namespace Project.Dialog
{
//변경된 값만 저장여부를 확인할 것이므로 기존 값을 모두 가져온다
var SQL = "select top 1 " + string.Join(",", columns.Select(t => "isnull([" + t.Key + "],'') as " + t.Key + "")) +
" from Component_Reel_SID_Convert WITH(NOLOCK) ";
" from K4EE_Component_Reel_SID_Convert WITH(NOLOCK) ";
var WSQL = $" where (MC is null or MC='{PUB.MCCode}')";
for (int i = 0; i < wheres.Count; i++)
@@ -1980,7 +1976,7 @@ namespace Project.Dialog
{
//check double data 220706
var CSQL = "select count(*) from Component_Reel_SID_Convert WITH(NOLOCK) ";
var CSQL = "select count(*) from K4EE_Component_Reel_SID_Convert WITH(NOLOCK) ";
CSQL += WSQL;
CMD.CommandText = CSQL;
var cnt = int.Parse(CMD.ExecuteScalar().ToString());
@@ -1998,7 +1994,7 @@ namespace Project.Dialog
}
else
{
var USQL = $"update Component_Reel_SID_Convert set " +
var USQL = $"update K4EE_Component_Reel_SID_Convert set " +
string.Join(",", UpdateTarget.Select(t => "[" + t.Key + "]='" + t.Value + "'"));
USQL += WSQL;
@@ -2029,7 +2025,7 @@ namespace Project.Dialog
var dlg = UTIL.MsgQ(dlgMsg);
if (dlg == DialogResult.Yes)
{
var ISQL = $"insert into Component_Reel_SID_Convert ([MC],wdate," +
var ISQL = $"insert into K4EE_Component_Reel_SID_Convert ([MC],wdate," +
string.Join(",", InsertTarget.Select(t => "[" + t.Key + "]")) + ") values(" +
$"null,getdate()," +
string.Join(",", InsertTarget.Select(t => "'" + t.Value.Replace("'", "''") + "'")) + ")";
@@ -2080,7 +2076,7 @@ namespace Project.Dialog
private void button1_Click_1(object sender, EventArgs e)
{
//데이터베이스 결과에서 자료를 추가한다.
var result = new DataSet1.K4EE_Component_Reel_ResultDataTable();// new List<Component_Reel_Result>();
var result = new DataSet1.K4EE_Component_Reel_ResultDataTable();
var tabName = "K4EE_Component_Reel_Result with (nolock)";
@@ -2105,10 +2101,6 @@ namespace Project.Dialog
var sql = $"select top 5 * from {tabName} where QR like @search order by wdate desc";
var list = DBHelper.Get(sql, new SqlParameter("search", $"%;{tbVLOT.Text}%"));
if (list.Rows.Count > 0) result.Merge(list);
//var list = db.Component_Reel_Result.AsNoTracking().
// OrderByDescending(t => t.wdate).
// Where(t => t.QR.Contains(";" + tbVLOT.Text + ";")).Take(5).ToList();
///if (list != null && list.Count > 0) result.AddRange(list);
}
//4.벤더이름
@@ -2117,11 +2109,6 @@ namespace Project.Dialog
var sql = $"select top 5 * from {tabName} where QR like @search order by wdate desc";
var list = DBHelper.Get(sql, new SqlParameter("search", $"%;{tbVName.Text}%"));
if (list.Rows.Count > 0) result.Merge(list);
//var list = db.Component_Reel_Result.AsNoTracking().
// OrderByDescending(t => t.wdate).
// Where(t => t.QR.Contains(";" + tbVName.Text + ";")).Take(5).ToList();
//if (list != null && list.Count > 0) result.AddRange(list);
}
//customer code

View File

@@ -99,9 +99,10 @@
// chkDelinfo
//
this.chkDelinfo.AutoSize = true;
this.chkDelinfo.Location = new System.Drawing.Point(384, 28);
this.chkDelinfo.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.chkDelinfo.Location = new System.Drawing.Point(345, 31);
this.chkDelinfo.Name = "chkDelinfo";
this.chkDelinfo.Size = new System.Drawing.Size(126, 29);
this.chkDelinfo.Size = new System.Drawing.Size(169, 23);
this.chkDelinfo.TabIndex = 4;
this.chkDelinfo.Text = "Delete after printing";
this.chkDelinfo.UseVisualStyleBackColor = true;
@@ -109,14 +110,14 @@
// nudCnt
//
this.nudCnt.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.nudCnt.Location = new System.Drawing.Point(263, 26);
this.nudCnt.Location = new System.Drawing.Point(236, 27);
this.nudCnt.Maximum = new decimal(new int[] {
99999,
0,
0,
0});
this.nudCnt.Name = "nudCnt";
this.nudCnt.Size = new System.Drawing.Size(100, 33);
this.nudCnt.Size = new System.Drawing.Size(100, 30);
this.nudCnt.TabIndex = 3;
this.nudCnt.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.nudCnt.Value = new decimal(new int[] {
@@ -129,9 +130,9 @@
//
this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(183, 30);
this.label1.Location = new System.Drawing.Point(157, 31);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(64, 25);
this.label1.Size = new System.Drawing.Size(59, 23);
this.label1.TabIndex = 2;
this.label1.Text = "Count";
//
@@ -139,9 +140,9 @@
//
this.radRight.AutoSize = true;
this.radRight.Checked = true;
this.radRight.Location = new System.Drawing.Point(78, 28);
this.radRight.Location = new System.Drawing.Point(78, 29);
this.radRight.Name = "radRight";
this.radRight.Size = new System.Drawing.Size(76, 29);
this.radRight.Size = new System.Drawing.Size(72, 27);
this.radRight.TabIndex = 1;
this.radRight.TabStop = true;
this.radRight.Text = "Right";
@@ -150,9 +151,9 @@
// radLeft
//
this.radLeft.AutoSize = true;
this.radLeft.Location = new System.Drawing.Point(10, 28);
this.radLeft.Location = new System.Drawing.Point(10, 29);
this.radLeft.Name = "radLeft";
this.radLeft.Size = new System.Drawing.Size(62, 29);
this.radLeft.Size = new System.Drawing.Size(59, 27);
this.radLeft.TabIndex = 0;
this.radLeft.Text = "Left";
this.radLeft.UseVisualStyleBackColor = true;
@@ -203,7 +204,7 @@
this.tbPN.Dock = System.Windows.Forms.DockStyle.Fill;
this.tbPN.Location = new System.Drawing.Point(137, 5);
this.tbPN.Name = "tbPN";
this.tbPN.Size = new System.Drawing.Size(235, 33);
this.tbPN.Size = new System.Drawing.Size(235, 30);
this.tbPN.TabIndex = 1;
this.tbPN.Click += new System.EventHandler(this.tbSID_Click);
//
@@ -257,7 +258,7 @@
this.tbSPY.Dock = System.Windows.Forms.DockStyle.Fill;
this.tbSPY.Location = new System.Drawing.Point(137, 5);
this.tbSPY.Name = "tbSPY";
this.tbSPY.Size = new System.Drawing.Size(235, 33);
this.tbSPY.Size = new System.Drawing.Size(235, 30);
this.tbSPY.TabIndex = 1;
this.tbSPY.Click += new System.EventHandler(this.tbSID_Click);
//
@@ -310,7 +311,7 @@
this.tbRID.Dock = System.Windows.Forms.DockStyle.Fill;
this.tbRID.Location = new System.Drawing.Point(137, 5);
this.tbRID.Name = "tbRID";
this.tbRID.Size = new System.Drawing.Size(310, 33);
this.tbRID.Size = new System.Drawing.Size(310, 30);
this.tbRID.TabIndex = 1;
this.tbRID.Click += new System.EventHandler(this.tbSID_Click);
//
@@ -352,7 +353,7 @@
this.tbDate.Dock = System.Windows.Forms.DockStyle.Fill;
this.tbDate.Location = new System.Drawing.Point(137, 5);
this.tbDate.Name = "tbDate";
this.tbDate.Size = new System.Drawing.Size(310, 33);
this.tbDate.Size = new System.Drawing.Size(310, 30);
this.tbDate.TabIndex = 1;
this.tbDate.Click += new System.EventHandler(this.tbSID_Click);
//
@@ -394,7 +395,7 @@
this.tbQty.Dock = System.Windows.Forms.DockStyle.Fill;
this.tbQty.Location = new System.Drawing.Point(137, 5);
this.tbQty.Name = "tbQty";
this.tbQty.Size = new System.Drawing.Size(310, 33);
this.tbQty.Size = new System.Drawing.Size(310, 30);
this.tbQty.TabIndex = 1;
this.tbQty.Click += new System.EventHandler(this.tbSID_Click);
//
@@ -436,7 +437,7 @@
this.tbVLot.Dock = System.Windows.Forms.DockStyle.Fill;
this.tbVLot.Location = new System.Drawing.Point(137, 5);
this.tbVLot.Name = "tbVLot";
this.tbVLot.Size = new System.Drawing.Size(310, 33);
this.tbVLot.Size = new System.Drawing.Size(310, 30);
this.tbVLot.TabIndex = 1;
this.tbVLot.Click += new System.EventHandler(this.tbSID_Click);
//
@@ -478,7 +479,7 @@
this.tbSID.Dock = System.Windows.Forms.DockStyle.Fill;
this.tbSID.Location = new System.Drawing.Point(137, 5);
this.tbSID.Name = "tbSID";
this.tbSID.Size = new System.Drawing.Size(310, 33);
this.tbSID.Size = new System.Drawing.Size(310, 30);
this.tbSID.TabIndex = 1;
this.tbSID.Click += new System.EventHandler(this.tbSID_Click);
//
@@ -518,9 +519,9 @@
// tbBarcodeInput
//
this.tbBarcodeInput.Dock = System.Windows.Forms.DockStyle.Fill;
this.tbBarcodeInput.Location = new System.Drawing.Point(10, 36);
this.tbBarcodeInput.Location = new System.Drawing.Point(10, 33);
this.tbBarcodeInput.Name = "tbBarcodeInput";
this.tbBarcodeInput.Size = new System.Drawing.Size(502, 33);
this.tbBarcodeInput.Size = new System.Drawing.Size(502, 30);
this.tbBarcodeInput.TabIndex = 0;
this.tbBarcodeInput.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tbBarcodeInput_KeyDown);
//
@@ -532,7 +533,7 @@
this.Controls.Add(this.panel1);
this.Controls.Add(this.btPrint);
this.Controls.Add(this.groupBox1);
this.Font = new System.Drawing.Font("맑은 고딕", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.Font = new System.Drawing.Font("Tahoma", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.MaximizeBox = false;
this.MinimizeBox = false;

View File

@@ -347,41 +347,99 @@ namespace Project.Dialog
return;
}
Task.Run(new Action(() =>
{
//Z축을 Ready 위치로 이동한다.
DateTime dt;
if (vidx == 0)
{
var zPos = MOT.GetLZPos(eLZLoc.READY);
MOT.Move(zPos);
while (MOT.getPositionMatch(zPos) == false)
System.Threading.Thread.Sleep(10);
{
//printer picker cylinder check
while(DIO.GetIOInput(eDIName.L_CYLUP)==false)
{
var dorlt = DIO.checkDigitalO(eDOName.L_CYLDN, new TimeSpan(1), false);
if (dorlt == eNormalResult.False)
{
System.Threading.Thread.Sleep(100);
}
else if( dorlt == eNormalResult.Error)
{
PUB.log.AddE("l_cylup check error");
return;
}
}
var mPos = MOT.GetLMPos(eLMLoc.PRINTL07);
MOT.Move(mPos);
while (MOT.getPositionMatch(mPos) == false)
var zPos = MOT.GetLZPos(eLZLoc.READY).Clone();
zPos.Speed = 100;
MOT.Move(zPos);
dt = DateTime.Now;
while (MOT.getPositionMatch(zPos) == false)
{
var ts = DateTime.Now - dt;
if (ts.TotalSeconds > 30) break;
System.Threading.Thread.Sleep(10);
}
var mPos = MOT.GetLMPos(eLMLoc.PRINTL07).Clone();
mPos.Speed = 100;
MOT.Move(mPos);
dt = DateTime.Now;
while (MOT.getPositionMatch(mPos) == false)
{
var ts = DateTime.Now - dt;
if (ts.TotalSeconds > 30) break;
System.Threading.Thread.Sleep(10);
}
var zPos2 = MOT.GetLZPos(eLZLoc.PICKOFF);
var tPos = (zPos2.Position / 2f);
MOT.Move(eAxis.PL_UPDN, tPos, zPos.Speed, zPos.Acc);
MOT.Move(eAxis.PL_UPDN, tPos, 100, zPos.Acc);
ManPosL = true;
}
else
{
var zPos = MOT.GetRZPos(eRZLoc.READY);
MOT.Move(zPos);
while (MOT.getPositionMatch(zPos) == false)
System.Threading.Thread.Sleep(10);
while (DIO.GetIOInput(eDIName.R_CYLUP) == false)
{
var dorlt = DIO.checkDigitalO(eDOName.R_CYLDN, new TimeSpan(1), false);
if (dorlt == eNormalResult.False)
{
System.Threading.Thread.Sleep(100);
}
else if (dorlt == eNormalResult.Error)
{
PUB.log.AddE("r_cylup check error");
return;
}
}
var mPos = MOT.GetRMPos(eRMLoc.PRINTL07);
MOT.Move(mPos);
while (MOT.getPositionMatch(mPos) == false)
var zPos = MOT.GetRZPos(eRZLoc.READY).Clone();
zPos.Speed = 100;
MOT.Move(zPos);
dt = DateTime.Now;
while (MOT.getPositionMatch(zPos) == false)
{
var ts = DateTime.Now - dt;
if (ts.TotalSeconds > 30) break;
System.Threading.Thread.Sleep(10);
}
var mPos = MOT.GetRMPos(eRMLoc.PRINTL07).Clone();
mPos.Speed = 100;
MOT.Move(mPos);
dt = DateTime.Now;
while (MOT.getPositionMatch(mPos) == false)
{
var ts = DateTime.Now - dt;
if (ts.TotalSeconds > 30) break;
System.Threading.Thread.Sleep(10);
}
var zPos2 = MOT.GetRZPos(eRZLoc.PICKOFF);
var tPos = (zPos2.Position / 2f);
MOT.Move(eAxis.PR_UPDN, tPos, zPos.Speed, zPos.Acc);
MOT.Move(eAxis.PR_UPDN, tPos, 100, zPos.Acc);
ManPosR = true;
}
@@ -407,30 +465,83 @@ namespace Project.Dialog
Task.Run(new Action(() =>
{
//Z축을 Ready 위치로 이동한다.
DateTime dt;
if (vidx == 0)
{
var zPos = MOT.GetLZPos(eLZLoc.READY);
MOT.Move(zPos);
while (MOT.getPositionMatch(zPos) == false)
System.Threading.Thread.Sleep(100);
while (DIO.GetIOInput(eDIName.L_CYLUP) == false)
{
var dorlt = DIO.checkDigitalO(eDOName.L_CYLDN, new TimeSpan(1), false);
if (dorlt == eNormalResult.False)
{
System.Threading.Thread.Sleep(100);
}
else if (dorlt == eNormalResult.Error)
{
PUB.log.AddE("l_cylup check error");
return;
}
}
var mPos = MOT.GetLMPos(eLMLoc.READY);
var zPos = MOT.GetLZPos(eLZLoc.READY).Clone();
zPos.Speed = 100;
MOT.Move(zPos);
dt = DateTime.Now;
while (MOT.getPositionMatch(zPos) == false)
{
var ts = DateTime.Now - dt;
if (ts.TotalSeconds > 30) break;
System.Threading.Thread.Sleep(10);
}
var mPos = MOT.GetLMPos(eLMLoc.READY).Clone();
mPos.Speed = 100;
MOT.Move(mPos);
dt = DateTime.Now;
while (MOT.getPositionMatch(mPos) == false)
System.Threading.Thread.Sleep(100);
{
var ts = DateTime.Now - dt;
if (ts.TotalSeconds > 30) break;
System.Threading.Thread.Sleep(10);
}
ManPosL = false;
}
else
{
var zPos = MOT.GetRZPos(eRZLoc.READY);
MOT.Move(zPos);
while (MOT.getPositionMatch(zPos) == false)
System.Threading.Thread.Sleep(100);
while (DIO.GetIOInput(eDIName.R_CYLUP) == false)
{
var dorlt = DIO.checkDigitalO(eDOName.R_CYLDN, new TimeSpan(1), false);
if (dorlt == eNormalResult.False)
{
System.Threading.Thread.Sleep(100);
}
else if (dorlt == eNormalResult.Error)
{
PUB.log.AddE("R_cylup check error");
return;
}
}
var mPos = MOT.GetRMPos(eRMLoc.READY);
MOT.Move(mPos);
var zPos = MOT.GetRZPos(eRZLoc.READY).Clone();
zPos.Speed = 100;
MOT.Move(zPos);
dt = DateTime.Now;
while (MOT.getPositionMatch(zPos) == false)
System.Threading.Thread.Sleep(100);
{
var ts = DateTime.Now - dt;
if (ts.TotalSeconds > 30) break;
System.Threading.Thread.Sleep(10);
}
var mPos = MOT.GetRMPos(eRMLoc.READY).Clone();
mPos.Speed = 100;
MOT.Move(mPos);
dt = DateTime.Now;
while (MOT.getPositionMatch(zPos) == false)
{
var ts = DateTime.Now - dt;
if (ts.TotalSeconds > 30) break;
System.Threading.Thread.Sleep(10);
}
ManPosR = false;
}

View File

@@ -7,6 +7,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using AR;
namespace Project.Dialog
{

View File

@@ -450,7 +450,7 @@ namespace Project.Dialog
{
//check double data 220706
var CSQL = "select count(*) from Component_Reel_SID_Information WITH(NOLOCK) ";
var CSQL = "select count(*) from K4EE_Component_Reel_SID_Information WITH(NOLOCK) ";
CSQL += WSQL;
CMD.CommandText = CSQL;
var cnt = int.Parse(CMD.ExecuteScalar().ToString());
@@ -468,7 +468,7 @@ namespace Project.Dialog
}
else
{
var USQL = $"update Component_Reel_SID_Information set [MC]='{PUB.MCCode}'," +
var USQL = $"update K4EE_Component_Reel_SID_Information set [MC]='{PUB.MCCode}'," +
string.Join(",", UpdateTarget.Select(t => "[" + t.Key + "]='" + t.Value + "'"));
USQL += WSQL;
@@ -498,7 +498,7 @@ namespace Project.Dialog
var dlg = UTIL.MsgQ(dlgMsg);
if (dlg == DialogResult.Yes)
{
var ISQL = $"insert into Component_Reel_SID_Information ([MC],wdate," +
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("'", "''") + "'")) + ")";
@@ -669,7 +669,7 @@ namespace Project.Dialog
void ServerWriteCNV(Dictionary<string, string> columns, Dictionary<string, string> wheres)
{
//변경된 값만 저장여부를 확인할 것이므로 기존 값을 모두 가져온다
var tableName = "Component_Reel_SID_Convert";
var tableName = "K4EE_Component_Reel_SID_Convert";
var SQL = "select top 1 " + string.Join(",", columns.Select(t => "isnull([" + t.Key + "],'') as " + t.Key + "")) +
$" from {tableName} WITH(NOLOCK) ";

View File

@@ -1,351 +0,0 @@
namespace Project.Dialog
{
partial class fswPLC
{
/// <summary>
/// 필수 디자이너 변수입니다.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 사용 중인 모든 리소스를 정리합니다.
/// </summary>
/// <param name="disposing">관리되는 리소스를 삭제해야 하면 true이고, 그렇지 않으면 false입니다.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form
/// <summary>
/// 디자이너 지원에 필요한 메서드입니다.
/// 이 메서드의 내용을 코드 편집기로 수정하지 마세요.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.timer1 = new System.Windows.Forms.Timer(this.components);
this.statusStrip1 = new System.Windows.Forms.StatusStrip();
this.toolStripStatusLabel2 = new System.Windows.Forms.ToolStripStatusLabel();
this.toolStripStatusLabel3 = new System.Windows.Forms.ToolStripStatusLabel();
this.ioPanel1 = new arDev.AjinEXTEK.UI.IOPanel();
this.logTextBox1 = new arCtl.LogTextBox();
this.gridView1 = new arCtl.GridView.GridView();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.button1 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.button3 = new System.Windows.Forms.Button();
this.button4 = new System.Windows.Forms.Button();
this.button5 = new System.Windows.Forms.Button();
this.button6 = new System.Windows.Forms.Button();
this.button7 = new System.Windows.Forms.Button();
this.button8 = new System.Windows.Forms.Button();
this.button9 = new System.Windows.Forms.Button();
this.button10 = new System.Windows.Forms.Button();
this.button11 = new System.Windows.Forms.Button();
this.button12 = new System.Windows.Forms.Button();
this.statusStrip1.SuspendLayout();
this.tableLayoutPanel1.SuspendLayout();
this.SuspendLayout();
//
// timer1
//
this.timer1.Interval = 250;
this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
//
// statusStrip1
//
this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.toolStripStatusLabel2,
this.toolStripStatusLabel3});
this.statusStrip1.Location = new System.Drawing.Point(0, 570);
this.statusStrip1.Name = "statusStrip1";
this.statusStrip1.Size = new System.Drawing.Size(627, 22);
this.statusStrip1.TabIndex = 2;
this.statusStrip1.Text = "statusStrip1";
//
// toolStripStatusLabel2
//
this.toolStripStatusLabel2.Name = "toolStripStatusLabel2";
this.toolStripStatusLabel2.Size = new System.Drawing.Size(121, 17);
this.toolStripStatusLabel2.Text = "toolStripStatusLabel2";
//
// toolStripStatusLabel3
//
this.toolStripStatusLabel3.Name = "toolStripStatusLabel3";
this.toolStripStatusLabel3.Size = new System.Drawing.Size(121, 17);
this.toolStripStatusLabel3.Text = "toolStripStatusLabel3";
//
// ioPanel1
//
this.ioPanel1.BorderColor = System.Drawing.Color.Empty;
this.ioPanel1.BorderSize = 0;
this.ioPanel1.ColorList = null;
this.ioPanel1.Dock = System.Windows.Forms.DockStyle.Top;
this.ioPanel1.FontPin = new System.Drawing.Font("Consolas", 8F, System.Drawing.FontStyle.Bold);
this.ioPanel1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(200)))), ((int)(((byte)(200)))), ((int)(((byte)(200)))));
this.ioPanel1.ForeColorPin = System.Drawing.Color.WhiteSmoke;
this.ioPanel1.Location = new System.Drawing.Point(0, 0);
this.ioPanel1.MatrixSize = new System.Drawing.Point(3, 6);
this.ioPanel1.MenuBorderSize = 1;
this.ioPanel1.MenuGap = 5;
this.ioPanel1.MinimumSize = new System.Drawing.Size(100, 50);
this.ioPanel1.Name = "ioPanel1";
this.ioPanel1.ShadowColor = System.Drawing.Color.Transparent;
this.ioPanel1.showDebugInfo = false;
this.ioPanel1.ShowPinName = true;
this.ioPanel1.Size = new System.Drawing.Size(627, 116);
this.ioPanel1.TabIndex = 0;
this.ioPanel1.TextAttachToImage = true;
//
// logTextBox1
//
this.logTextBox1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(24)))), ((int)(((byte)(24)))));
this.logTextBox1.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.logTextBox1.ColorList = new arCtl.sLogMessageColor[0];
this.logTextBox1.DateFormat = "mm:ss.fff";
this.logTextBox1.DefaultColor = System.Drawing.Color.LightGray;
this.logTextBox1.Dock = System.Windows.Forms.DockStyle.Fill;
this.logTextBox1.EnableDisplayTimer = true;
this.logTextBox1.EnableGubunColor = true;
this.logTextBox1.Font = new System.Drawing.Font("Consolas", 9F);
this.logTextBox1.ListFormat = "[{0}] {1}";
this.logTextBox1.Location = new System.Drawing.Point(0, 116);
this.logTextBox1.MaxListCount = ((ushort)(200));
this.logTextBox1.MaxTextLength = ((uint)(4000u));
this.logTextBox1.MessageInterval = 50;
this.logTextBox1.Name = "logTextBox1";
this.logTextBox1.Size = new System.Drawing.Size(627, 208);
this.logTextBox1.TabIndex = 0;
this.logTextBox1.Text = "";
//
// gridView1
//
this.gridView1.arVeriticalDraw = false;
this.gridView1.BorderColor = System.Drawing.Color.Black;
this.gridView1.BorderSize = 0;
this.gridView1.ColorList = null;
this.gridView1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.gridView1.FontPin = new System.Drawing.Font("Consolas", 8F, System.Drawing.FontStyle.Bold);
this.gridView1.ForeColorPin = System.Drawing.Color.WhiteSmoke;
this.gridView1.Location = new System.Drawing.Point(0, 470);
this.gridView1.MatrixSize = new System.Drawing.Point(3, 4);
this.gridView1.MenuBorderSize = 1;
this.gridView1.MenuGap = 5;
this.gridView1.MinimumSize = new System.Drawing.Size(100, 50);
this.gridView1.Name = "gridView1";
this.gridView1.Names = null;
this.gridView1.ShadowColor = System.Drawing.Color.Transparent;
this.gridView1.showDebugInfo = false;
this.gridView1.ShowIndexString = true;
this.gridView1.ShowNameString = true;
this.gridView1.ShowValueString = true;
this.gridView1.Size = new System.Drawing.Size(627, 100);
this.gridView1.TabIndex = 3;
this.gridView1.Tags = null;
this.gridView1.Text = "gridView1";
this.gridView1.TextAttachToImage = true;
this.gridView1.Titles = null;
this.gridView1.Values = null;
//
// tableLayoutPanel1
//
this.tableLayoutPanel1.ColumnCount = 3;
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33333F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33334F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33334F));
this.tableLayoutPanel1.Controls.Add(this.button1, 0, 0);
this.tableLayoutPanel1.Controls.Add(this.button2, 1, 0);
this.tableLayoutPanel1.Controls.Add(this.button3, 2, 0);
this.tableLayoutPanel1.Controls.Add(this.button4, 2, 1);
this.tableLayoutPanel1.Controls.Add(this.button5, 1, 1);
this.tableLayoutPanel1.Controls.Add(this.button6, 0, 1);
this.tableLayoutPanel1.Controls.Add(this.button7, 0, 2);
this.tableLayoutPanel1.Controls.Add(this.button8, 1, 2);
this.tableLayoutPanel1.Controls.Add(this.button9, 2, 2);
this.tableLayoutPanel1.Controls.Add(this.button10, 2, 3);
this.tableLayoutPanel1.Controls.Add(this.button11, 1, 3);
this.tableLayoutPanel1.Controls.Add(this.button12, 0, 3);
this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 324);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
this.tableLayoutPanel1.RowCount = 4;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 25F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 25F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 25F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 25F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(627, 146);
this.tableLayoutPanel1.TabIndex = 4;
//
// button1
//
this.button1.Dock = System.Windows.Forms.DockStyle.Fill;
this.button1.Location = new System.Drawing.Point(3, 3);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(202, 30);
this.button1.TabIndex = 0;
this.button1.Text = "UP";
this.button1.UseVisualStyleBackColor = true;
//
// button2
//
this.button2.Dock = System.Windows.Forms.DockStyle.Fill;
this.button2.Location = new System.Drawing.Point(211, 3);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(203, 30);
this.button2.TabIndex = 0;
this.button2.Text = "UP";
this.button2.UseVisualStyleBackColor = true;
//
// button3
//
this.button3.Dock = System.Windows.Forms.DockStyle.Fill;
this.button3.Location = new System.Drawing.Point(420, 3);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(204, 30);
this.button3.TabIndex = 0;
this.button3.Text = "UP";
this.button3.UseVisualStyleBackColor = true;
//
// button4
//
this.button4.Dock = System.Windows.Forms.DockStyle.Fill;
this.button4.Location = new System.Drawing.Point(420, 39);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(204, 30);
this.button4.TabIndex = 0;
this.button4.Text = "STOP";
this.button4.UseVisualStyleBackColor = true;
//
// button5
//
this.button5.Dock = System.Windows.Forms.DockStyle.Fill;
this.button5.Location = new System.Drawing.Point(211, 39);
this.button5.Name = "button5";
this.button5.Size = new System.Drawing.Size(203, 30);
this.button5.TabIndex = 0;
this.button5.Text = "STOP";
this.button5.UseVisualStyleBackColor = true;
//
// button6
//
this.button6.Dock = System.Windows.Forms.DockStyle.Fill;
this.button6.Location = new System.Drawing.Point(3, 39);
this.button6.Name = "button6";
this.button6.Size = new System.Drawing.Size(202, 30);
this.button6.TabIndex = 0;
this.button6.Text = "STOP";
this.button6.UseVisualStyleBackColor = true;
//
// button7
//
this.button7.Dock = System.Windows.Forms.DockStyle.Fill;
this.button7.Location = new System.Drawing.Point(3, 75);
this.button7.Name = "button7";
this.button7.Size = new System.Drawing.Size(202, 30);
this.button7.TabIndex = 0;
this.button7.Text = "DOWN";
this.button7.UseVisualStyleBackColor = true;
//
// button8
//
this.button8.Dock = System.Windows.Forms.DockStyle.Fill;
this.button8.Location = new System.Drawing.Point(211, 75);
this.button8.Name = "button8";
this.button8.Size = new System.Drawing.Size(203, 30);
this.button8.TabIndex = 0;
this.button8.Text = "DOWN";
this.button8.UseVisualStyleBackColor = true;
//
// button9
//
this.button9.Dock = System.Windows.Forms.DockStyle.Fill;
this.button9.Location = new System.Drawing.Point(420, 75);
this.button9.Name = "button9";
this.button9.Size = new System.Drawing.Size(204, 30);
this.button9.TabIndex = 0;
this.button9.Text = "DOWN";
this.button9.UseVisualStyleBackColor = true;
//
// button10
//
this.button10.Dock = System.Windows.Forms.DockStyle.Fill;
this.button10.Location = new System.Drawing.Point(420, 111);
this.button10.Name = "button10";
this.button10.Size = new System.Drawing.Size(204, 32);
this.button10.TabIndex = 0;
this.button10.Text = "REFRESH";
this.button10.UseVisualStyleBackColor = true;
//
// button11
//
this.button11.Dock = System.Windows.Forms.DockStyle.Fill;
this.button11.Location = new System.Drawing.Point(211, 111);
this.button11.Name = "button11";
this.button11.Size = new System.Drawing.Size(203, 32);
this.button11.TabIndex = 0;
this.button11.Text = "REFRESH";
this.button11.UseVisualStyleBackColor = true;
//
// button12
//
this.button12.Dock = System.Windows.Forms.DockStyle.Fill;
this.button12.Location = new System.Drawing.Point(3, 111);
this.button12.Name = "button12";
this.button12.Size = new System.Drawing.Size(202, 32);
this.button12.TabIndex = 0;
this.button12.Text = "REFRESH";
this.button12.UseVisualStyleBackColor = true;
//
// fswPLC
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(627, 592);
this.Controls.Add(this.logTextBox1);
this.Controls.Add(this.tableLayoutPanel1);
this.Controls.Add(this.gridView1);
this.Controls.Add(this.statusStrip1);
this.Controls.Add(this.ioPanel1);
this.Name = "fswPLC";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Form1";
this.Load += new System.EventHandler(this.Form1_Load);
this.statusStrip1.ResumeLayout(false);
this.statusStrip1.PerformLayout();
this.tableLayoutPanel1.ResumeLayout(false);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private arCtl.LogTextBox logTextBox1;
private System.Windows.Forms.Timer timer1;
private arDev.AjinEXTEK.UI.IOPanel ioPanel1;
private System.Windows.Forms.StatusStrip statusStrip1;
private System.Windows.Forms.ToolStripStatusLabel toolStripStatusLabel2;
private arCtl.GridView.GridView gridView1;
private System.Windows.Forms.ToolStripStatusLabel toolStripStatusLabel3;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.Button button4;
private System.Windows.Forms.Button button5;
private System.Windows.Forms.Button button6;
private System.Windows.Forms.Button button7;
private System.Windows.Forms.Button button8;
private System.Windows.Forms.Button button9;
private System.Windows.Forms.Button button10;
private System.Windows.Forms.Button button11;
private System.Windows.Forms.Button button12;
}
}

View File

@@ -1,349 +0,0 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Windows.Forms;
using AR;
namespace Project.Dialog
{
public partial class fswPLC : Form
{
// byte[] buffer = new byte[16];
public fswPLC()
{
InitializeComponent();
this.Text = $"{Application.ProductName} ver {Application.ProductVersion}";
PUB.log.RaiseMsg += (p1, p2, p3) => { this.logTextBox1.AddMsg(p1, p2, p3); };
this.FormClosing += (s1, e2) =>
{
timer1.Stop();
};
this.logTextBox1.ColorList = new arCtl.sLogMessageColor[] {
new arCtl.sLogMessageColor("NORM",Color.Yellow),
new arCtl.sLogMessageColor("ERR",Color.Red),
new arCtl.sLogMessageColor("WARN",Color.Tomato),
new arCtl.sLogMessageColor("INFO",Color.LightSkyBlue)
};
List<string> piname = new List<String>();
List<string> titles = new List<String>();
List<bool> values = new List<bool>();
titles.AddRange(new string[] {
"Upper Limit","Reel Detect","Lower Limit",
"Motor Direction(1=DN,0=UP)","Motor Run","Emergency",
});
piname.AddRange(new string[] {
"X"+((int)eDIName.PORTL_LIM_UP).ToString("X2"),
"X"+((int)eDIName.PORTL_DET_UP).ToString("X2"),
"X"+((int)eDIName.PORTL_LIM_DN).ToString("X2"),
"Y"+((int)eDOName.PORTL_MOT_DIR).ToString("X2"),
"Y"+((int)eDOName.PORTL_MOT_RUN).ToString("X2"),"--"
});
titles.AddRange(new string[] {
"Upper Limit","Reel Detect","Lower Limit",
"Motor Direction(1=DN,0=UP)","Motor Run","--",
});
piname.AddRange(new string[] {
"X"+((int)eDIName.PORTC_LIM_UP).ToString("X2"),
"X"+((int)eDIName.PORTC_DET_UP).ToString("X2"),
"X"+((int)eDIName.PORTC_LIM_DN).ToString("X2"),
"Y"+((int)eDOName.PORTC_MOT_DIR).ToString("X2"),
"Y"+((int)eDOName.PORTC_MOT_RUN).ToString("X2"),"--"
});
titles.AddRange(new string[] {
"Upper Limit","Reel Detect","Lower Limit",
"Motor Direction(1=DN,0=UP)","Motor Run","--"
});
piname.AddRange(new string[] {
"X"+((int)eDIName.PORTR_LIM_UP).ToString("X2"),
"X"+((int)eDIName.PORTR_DET_UP).ToString("X2"),
"X"+((int)eDIName.PORTR_LIM_DN).ToString("X2"),
"Y"+((int)eDOName.PORTR_MOT_DIR).ToString("X2"),
"Y"+((int)eDOName.PORTR_MOT_RUN).ToString("X2"),"--"
});
for (int i = 0; i < titles.Count; i++)
values.Add(false);
ioPanel1.ColorList = new arDev.AjinEXTEK.UI.ColorListItem[] {
new arDev.AjinEXTEK.UI.ColorListItem{ BackColor1 = Color.DimGray, BackColor2 = Color.FromArgb(30,30,30), Remark="False" },
new arDev.AjinEXTEK.UI.ColorListItem{ BackColor1 = Color.Lime, BackColor2 = Color.Green, Remark="True" },
};
this.ioPanel1.setTitle(titles.ToArray());
this.ioPanel1.setNames(piname.ToArray());
this.ioPanel1.setValue(values.ToArray());
this.ioPanel1.Invalidate();
//내부버퍼확인
titles.Clear();
piname.Clear();
var valueb = new List<ushort>();
for (int i = 0; i < 16; i++)
{
var addr = (eswPLCAddr)i;
piname.Add(i.ToString("X2"));
titles.Add(addr.ToString());
valueb.Add(0);
}
gridView1.ColorList = new arCtl.GridView.ColorListItem[] {
new arCtl.GridView.ColorListItem{ BackColor1 = Color.DimGray, BackColor2 = Color.FromArgb(30,30,30), Remark="False" },
new arCtl.GridView.ColorListItem{ BackColor1 = Color.Lime, BackColor2 = Color.Green, Remark="True" },
};
this.gridView1.setTitle(titles.ToArray());
this.gridView1.setNames(piname.ToArray());
this.gridView1.setValue(valueb.ToArray());
this.gridView1.ShowValueString = true;
this.gridView1.ShowNameString = true;
this.gridView1.ShowIndexString = false;
this.gridView1.Invalidate();
}
private void Form1_Load(object sender, EventArgs e)
{
PUB.log.AddI("Program started");
PUB.plc.ValueChanged += Plc_ValueChanged;
ioPanel1.ItemClick += IoPanel1_ItemClick;
timer1.Start();
}
private void Plc_ValueChanged(object sender, AR.MemoryMap.Core.monitorvalueargs e)
{
}
private void Dio_IOValueChanged(object sender, arDev.DIO.IOValueEventArgs e)
{
if (e.Direction == arDev.DIO.eIOPINDIR.INPUT)
{
var pin = (eDIName)e.ArrIDX;
//센서가 활성화될때는 이값을 설정해준다
//나머지조건은 autocontrol 에서 처리된다.
if (e.NewValue)
{
if (pin == eDIName.PORTL_LIM_DN) WriteBuffer(eswPLCAddr.LPort, 1);
else if (pin == eDIName.PORTL_DET_UP) WriteBuffer(eswPLCAddr.LPort, 2);
else if (pin == eDIName.PORTL_LIM_UP) WriteBuffer(eswPLCAddr.LPort, 3);
else if (pin == eDIName.PORTC_LIM_DN) WriteBuffer(eswPLCAddr.CPort, 1);
else if (pin == eDIName.PORTC_DET_UP) WriteBuffer(eswPLCAddr.CPort, 2);
else if (pin == eDIName.PORTC_LIM_UP) WriteBuffer(eswPLCAddr.CPort, 3);
else if (pin == eDIName.PORTR_LIM_DN) WriteBuffer(eswPLCAddr.RPort, 1);
else if (pin == eDIName.PORTR_DET_UP) WriteBuffer(eswPLCAddr.RPort, 2);
else if (pin == eDIName.PORTR_LIM_UP) WriteBuffer(eswPLCAddr.RPort, 3);
}
}
else
{
var pin = (eDOName)e.ArrIDX;
if (pin == eDOName.PORTL_MOT_RUN)
{
if (e.NewValue == false) WriteBuffer(eswPLCAddr.LMotor, 3);
else
{
//방향을 확인해야한다
var value = GetDOValue(eDOName.PORTL_MOT_DIR) ? 2 : 1;
WriteBuffer(eswPLCAddr.LMotor, (byte)value);
}
}
else if (pin == eDOName.PORTC_MOT_RUN)
{
if (e.NewValue == false) WriteBuffer(eswPLCAddr.CMotor, 3);
else
{
//방향을 확인해야한다
var value = GetDOValue(eDOName.PORTC_MOT_DIR) ? 2 : 1;
WriteBuffer(eswPLCAddr.CMotor, (byte)value);
}
}
else if (pin == eDOName.PORTR_MOT_RUN)
{
if (e.NewValue == false) WriteBuffer(eswPLCAddr.RMotor, 3);
else
{
//방향을 확인해야한다
var value = GetDOValue(eDOName.PORTR_MOT_DIR) ? 2 : 1;
WriteBuffer(eswPLCAddr.RMotor, (byte)value);
}
}
}
}
private void IoPanel1_ItemClick(object sender, arDev.AjinEXTEK.UI.IOPanel.ItemClickEventArgs e)
{
var name = this.ioPanel1.Names[e.idx];
if (name.StartsWith("Y"))
{
var pinno = Convert.ToInt32(name.Substring(1), 16);
var pin = (eDOName)pinno;
var cur = GetDOValue(pin);
DIO.SetOutput(pin, !cur);
PUB.log.Add($"value change [X{pinno:X2}] {pin} to {!cur}");
}
}
bool GetDOValue(eDOName pin)
{
return PUB.dio.GetDOValue((int)pin);
}
bool GetDIValue(eDIName pin)
{
if (pin == eDIName.PORTL_LIM_DN || pin == eDIName.PORTC_LIM_DN || pin == eDIName.PORTR_LIM_DN)
{
return !PUB.dio.GetDIValue((int)pin);
}
else if (pin == eDIName.PORTL_LIM_UP || pin == eDIName.PORTC_LIM_UP || pin == eDIName.PORTR_LIM_UP)
{
return !PUB.dio.GetDIValue((int)pin);
}
else if (pin == eDIName.PORTL_DET_UP || pin == eDIName.PORTC_DET_UP || pin == eDIName.PORTR_DET_UP)
{
return !PUB.dio.GetDIValue((int)pin);
}
else if (pin == eDIName.BUT_EMGF)
{
return !PUB.dio.GetDIValue((int)pin);
}
else return PUB.dio.GetDIValue((int)pin);
}
public enum eMotList
{
Left = 0,
Center,
Right,
}
public enum eMotControl
{
Stop,
Down,
Up,
}
void MotorControl(eMotList mot, eMotControl cmd)
{
if (cmd == eMotControl.Stop)
{
eDOName pin = eDOName.PORTL_MOT_RUN;
if (mot == eMotList.Center) pin = eDOName.PORTC_MOT_RUN;
else if (mot == eMotList.Right) pin = eDOName.PORTR_MOT_RUN;
//출력이켜져있다면 끈다
if (GetDOValue(pin)) SetOutput(pin, false);
}
else if (cmd == eMotControl.Down || cmd == eMotControl.Up)
{
var dir = cmd == eMotControl.Down ? false : true;
eDOName pinDir = eDOName.PORTL_MOT_DIR;
if (mot == eMotList.Center) pinDir = eDOName.PORTC_MOT_DIR;
else if (mot == eMotList.Right) pinDir = eDOName.PORTR_MOT_DIR;
eDOName pinRun = eDOName.PORTL_MOT_RUN;
if (mot == eMotList.Center) pinRun = eDOName.PORTC_MOT_RUN;
else if (mot == eMotList.Right) pinRun = eDOName.PORTR_MOT_RUN;
if (GetDOValue(pinDir) != dir) SetOutput(pinDir, dir);
if (GetDOValue(pinRun) == false) SetOutput(pinRun, true);
}
}
bool SetOutput(eDOName pin, bool value)
{
return PUB.dio.SetOutput((int)pin, value);
}
/// <summary>
/// 내부임시버퍼의 값을 확인합니다
/// </summary>
/// <param name="addr"></param>
/// <returns></returns>
byte ReadBuffer(eswPLCAddr addr)
{
return PUB.swPLCBuffer[(int)addr];
}
void WriteBuffer(eswPLCAddr addr, byte value)
{
PUB.swPLCBuffer[(int)addr] = value;
}
private void timer1_Tick(object sender, EventArgs e)
{
//io상태 ㅍ시
var idx = 0;
if (PUB.dio != null && PUB.dio.IsInit)
{
ioPanel1.setValue(idx++, GetDIValue(eDIName.PORTL_LIM_UP));
ioPanel1.setValue(idx++, GetDIValue(eDIName.PORTL_DET_UP));
ioPanel1.setValue(idx++, GetDIValue(eDIName.PORTL_LIM_DN));
ioPanel1.setValue(idx++, PUB.dio.GetDOValue((int)eDOName.PORTL_MOT_DIR));
ioPanel1.setValue(idx++, PUB.dio.GetDOValue((int)eDOName.PORTL_MOT_RUN));
ioPanel1.setValue(idx++, GetDIValue(eDIName.BUT_EMGF));
ioPanel1.setValue(idx++, GetDIValue(eDIName.PORTC_LIM_UP));
ioPanel1.setValue(idx++, GetDIValue(eDIName.PORTC_DET_UP));
ioPanel1.setValue(idx++, GetDIValue(eDIName.PORTC_LIM_DN));
ioPanel1.setValue(idx++, PUB.dio.GetDOValue((int)eDOName.PORTC_MOT_DIR));
ioPanel1.setValue(idx++, PUB.dio.GetDOValue((int)eDOName.PORTC_MOT_RUN));
ioPanel1.setValue(idx++, false);
ioPanel1.setValue(idx++, GetDIValue(eDIName.PORTR_LIM_UP));
ioPanel1.setValue(idx++, GetDIValue(eDIName.PORTR_DET_UP));
ioPanel1.setValue(idx++, GetDIValue(eDIName.PORTR_LIM_DN));
ioPanel1.setValue(idx++, PUB.dio.GetDOValue((int)eDOName.PORTR_MOT_DIR));
ioPanel1.setValue(idx++, PUB.dio.GetDOValue((int)eDOName.PORTR_MOT_RUN));
ioPanel1.setValue(idx++, false);
}
else
{
ioPanel1.setValue(idx++, false);
ioPanel1.setValue(idx++, false);
ioPanel1.setValue(idx++, false);
ioPanel1.setValue(idx++, false);
ioPanel1.setValue(idx++, false);
ioPanel1.setValue(idx++, false);
ioPanel1.setValue(idx++, false);
ioPanel1.setValue(idx++, false);
ioPanel1.setValue(idx++, false);
ioPanel1.setValue(idx++, false);
ioPanel1.setValue(idx++, false);
ioPanel1.setValue(idx++, false);
ioPanel1.setValue(idx++, false);
ioPanel1.setValue(idx++, false);
ioPanel1.setValue(idx++, false);
ioPanel1.setValue(idx++, false);
ioPanel1.setValue(idx++, false);
ioPanel1.setValue(idx++, false);
}
ioPanel1.Invalidate();
//내부버퍼표시
for (int i = 0; i < 16; i++)
{
gridView1.setValue(i, ReadBuffer((eswPLCAddr)i));
}
gridView1.Invalidate();
toolStripStatusLabel2.Text = PUB.plc.Init ? "Connected" : "Disconnected";
toolStripStatusLabel2.ForeColor = PUB.plc.Init ? Color.Black : Color.Red;
toolStripStatusLabel3.Text = $"Loop({PUB.sm.Loop_ms:N0}ms)";
}
}
}

View File

@@ -1,126 +0,0 @@
<?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="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="statusStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>104, 17</value>
</metadata>
</root>