增加料盘状态记录表

master
lhiven 2 years ago
parent a178daf1f9
commit 71acf9f98b

@ -220,11 +220,11 @@ namespace Rs.MotionPlat.Commom
if(searchRegions.IsInitialized()&& searchRegions.CountObj()==1) if(searchRegions.IsInitialized()&& searchRegions.CountObj()==1)
{ {
//找到了二维码区域 //找到了二维码区域
HOperatorSet.DilationRectangle1(searchRegions, out HObject regionDilation, new HTuple(20), new HTuple(20)); HOperatorSet.DilationRectangle1(searchRegions, out HObject regionDilation, new HTuple(40), new HTuple(40));
HOperatorSet.ReduceDomain(imagePart, regionDilation, out HObject imageReduacedQrcode); HOperatorSet.ReduceDomain(imagePart, regionDilation, out HObject imageReduacedQrcode);
HOperatorSet.InvertImage(imageReduacedQrcode, out HObject imageInvert); HOperatorSet.InvertImage(imageReduacedQrcode, out HObject imageInvert);
HOperatorSet.ScaleImage(imageInvert, out HObject imageScaled, 2, 0); HOperatorSet.ScaleImage(imageInvert, out HObject imageScaled, 2, 0);
//HOperatorSet.WriteImage(imageScaled, "bmp", 0, "d://images/22"); HOperatorSet.WriteImage(imageScaled, "bmp", 0, "d://images/22");
//HOperatorSet.ZoomImageFactor(imageScaled, out HObject imageZoomed, new HTuple(10), new HTuple(10), "constant"); //HOperatorSet.ZoomImageFactor(imageScaled, out HObject imageZoomed, new HTuple(10), new HTuple(10), "constant");
HTuple decodedDataStrings = ""; HTuple decodedDataStrings = "";
HObject xlds = new HObject(); HObject xlds = new HObject();

@ -353,7 +353,7 @@ namespace Rs.MotionPlat.Flow
if (curTask.FromType == TurnoverType.Turnover) if (curTask.FromType == TurnoverType.Turnover)
{ {
curNozzle.SN = curTask.SN; curNozzle.SN = curTask.SN;
curNozzle.FromIndex = curTask.FromIndex; curNozzle.FromIndex = curTask.FromIndex+1;
GlobalTray.TurnoverTray.ChangeStatus(curTask.FromIndex+1, ESlotStatus.NotHave); GlobalTray.TurnoverTray.ChangeStatus(curTask.FromIndex+1, ESlotStatus.NotHave);
} }
else if (curTask.FromType == TurnoverType.ToBeTested) else if (curTask.FromType == TurnoverType.ToBeTested)

@ -93,6 +93,7 @@
this.label5 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label();
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components); this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
this.goToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.goToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.moveToolStripMenuItem9 = new System.Windows.Forms.ToolStripMenuItem();
this.nozzle1GOToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.nozzle1GOToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.takeProductToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.takeProductToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.dumpProductToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.dumpProductToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
@ -129,7 +130,7 @@
this.takeProductToolStripMenuItem8 = new System.Windows.Forms.ToolStripMenuItem(); this.takeProductToolStripMenuItem8 = new System.Windows.Forms.ToolStripMenuItem();
this.dumpProductToolStripMenuItem8 = new System.Windows.Forms.ToolStripMenuItem(); this.dumpProductToolStripMenuItem8 = new System.Windows.Forms.ToolStripMenuItem();
this.moveToolStripMenuItem8 = new System.Windows.Forms.ToolStripMenuItem(); this.moveToolStripMenuItem8 = new System.Windows.Forms.ToolStripMenuItem();
this.moveToolStripMenuItem9 = new System.Windows.Forms.ToolStripMenuItem(); this.btnCreateTrayStatus = new System.Windows.Forms.Button();
this.panelEx1.SuspendLayout(); this.panelEx1.SuspendLayout();
this.panelEx2.SuspendLayout(); this.panelEx2.SuspendLayout();
this.panelEx5.SuspendLayout(); this.panelEx5.SuspendLayout();
@ -452,10 +453,12 @@
this.rsTray1.RowNum = 9; this.rsTray1.RowNum = 9;
this.rsTray1.RowSpace = 5; this.rsTray1.RowSpace = 5;
this.rsTray1.SelectSlot = null; this.rsTray1.SelectSlot = null;
this.rsTray1.ShowStatus = true;
this.rsTray1.ShowText = false; this.rsTray1.ShowText = false;
this.rsTray1.SinglePoint = false; this.rsTray1.SinglePoint = false;
this.rsTray1.Size = new System.Drawing.Size(361, 242); this.rsTray1.Size = new System.Drawing.Size(361, 242);
this.rsTray1.SortDir = Rs.Controls.ESortDir.Horizontal; this.rsTray1.SortDir = Rs.Controls.ESortDir.Horizontal;
this.rsTray1.Status = null;
this.rsTray1.TabIndex = 0; this.rsTray1.TabIndex = 0;
this.rsTray1.TopSpaceHeight = 20; this.rsTray1.TopSpaceHeight = 20;
this.rsTray1.SlotClickEvent += new System.Action<Rs.Controls.TraySlot, System.Windows.Forms.MouseEventArgs>(this.rsTray1_SlotClickEvent); this.rsTray1.SlotClickEvent += new System.Action<Rs.Controls.TraySlot, System.Windows.Forms.MouseEventArgs>(this.rsTray1_SlotClickEvent);
@ -471,6 +474,7 @@
// //
// groupBox1 // groupBox1
// //
this.groupBox1.Controls.Add(this.btnCreateTrayStatus);
this.groupBox1.Controls.Add(this.btnSaveSlotOffsetDistY); this.groupBox1.Controls.Add(this.btnSaveSlotOffsetDistY);
this.groupBox1.Controls.Add(this.btnSaveMark2CenterDistY); this.groupBox1.Controls.Add(this.btnSaveMark2CenterDistY);
this.groupBox1.Controls.Add(this.txtTeachMarkY2); this.groupBox1.Controls.Add(this.txtTeachMarkY2);
@ -917,6 +921,13 @@
this.goToolStripMenuItem.Size = new System.Drawing.Size(142, 22); this.goToolStripMenuItem.Size = new System.Drawing.Size(142, 22);
this.goToolStripMenuItem.Text = "CameraGo"; this.goToolStripMenuItem.Text = "CameraGo";
// //
// moveToolStripMenuItem9
//
this.moveToolStripMenuItem9.Name = "moveToolStripMenuItem9";
this.moveToolStripMenuItem9.Size = new System.Drawing.Size(109, 22);
this.moveToolStripMenuItem9.Text = "Move";
this.moveToolStripMenuItem9.Click += new System.EventHandler(this.goToolStripMenuItem_Click);
//
// nozzle1GOToolStripMenuItem // nozzle1GOToolStripMenuItem
// //
this.nozzle1GOToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.nozzle1GOToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
@ -930,21 +941,21 @@
// takeProductToolStripMenuItem // takeProductToolStripMenuItem
// //
this.takeProductToolStripMenuItem.Name = "takeProductToolStripMenuItem"; this.takeProductToolStripMenuItem.Name = "takeProductToolStripMenuItem";
this.takeProductToolStripMenuItem.Size = new System.Drawing.Size(180, 22); this.takeProductToolStripMenuItem.Size = new System.Drawing.Size(156, 22);
this.takeProductToolStripMenuItem.Text = "TakeProduct"; this.takeProductToolStripMenuItem.Text = "TakeProduct";
this.takeProductToolStripMenuItem.Click += new System.EventHandler(this.goToolStripMenuItem_Click); this.takeProductToolStripMenuItem.Click += new System.EventHandler(this.goToolStripMenuItem_Click);
// //
// dumpProductToolStripMenuItem // dumpProductToolStripMenuItem
// //
this.dumpProductToolStripMenuItem.Name = "dumpProductToolStripMenuItem"; this.dumpProductToolStripMenuItem.Name = "dumpProductToolStripMenuItem";
this.dumpProductToolStripMenuItem.Size = new System.Drawing.Size(180, 22); this.dumpProductToolStripMenuItem.Size = new System.Drawing.Size(156, 22);
this.dumpProductToolStripMenuItem.Text = "DumpProduct"; this.dumpProductToolStripMenuItem.Text = "DumpProduct";
this.dumpProductToolStripMenuItem.Click += new System.EventHandler(this.goToolStripMenuItem_Click); this.dumpProductToolStripMenuItem.Click += new System.EventHandler(this.goToolStripMenuItem_Click);
// //
// moveToolStripMenuItem // moveToolStripMenuItem
// //
this.moveToolStripMenuItem.Name = "moveToolStripMenuItem"; this.moveToolStripMenuItem.Name = "moveToolStripMenuItem";
this.moveToolStripMenuItem.Size = new System.Drawing.Size(180, 22); this.moveToolStripMenuItem.Size = new System.Drawing.Size(156, 22);
this.moveToolStripMenuItem.Text = "Move"; this.moveToolStripMenuItem.Text = "Move";
this.moveToolStripMenuItem.Click += new System.EventHandler(this.goToolStripMenuItem_Click); this.moveToolStripMenuItem.Click += new System.EventHandler(this.goToolStripMenuItem_Click);
// //
@ -961,21 +972,21 @@
// takeProductToolStripMenuItem1 // takeProductToolStripMenuItem1
// //
this.takeProductToolStripMenuItem1.Name = "takeProductToolStripMenuItem1"; this.takeProductToolStripMenuItem1.Name = "takeProductToolStripMenuItem1";
this.takeProductToolStripMenuItem1.Size = new System.Drawing.Size(180, 22); this.takeProductToolStripMenuItem1.Size = new System.Drawing.Size(156, 22);
this.takeProductToolStripMenuItem1.Text = "TakeProduct"; this.takeProductToolStripMenuItem1.Text = "TakeProduct";
this.takeProductToolStripMenuItem1.Click += new System.EventHandler(this.goToolStripMenuItem_Click); this.takeProductToolStripMenuItem1.Click += new System.EventHandler(this.goToolStripMenuItem_Click);
// //
// dumpProductToolStripMenuItem1 // dumpProductToolStripMenuItem1
// //
this.dumpProductToolStripMenuItem1.Name = "dumpProductToolStripMenuItem1"; this.dumpProductToolStripMenuItem1.Name = "dumpProductToolStripMenuItem1";
this.dumpProductToolStripMenuItem1.Size = new System.Drawing.Size(180, 22); this.dumpProductToolStripMenuItem1.Size = new System.Drawing.Size(156, 22);
this.dumpProductToolStripMenuItem1.Text = "DumpProduct"; this.dumpProductToolStripMenuItem1.Text = "DumpProduct";
this.dumpProductToolStripMenuItem1.Click += new System.EventHandler(this.goToolStripMenuItem_Click); this.dumpProductToolStripMenuItem1.Click += new System.EventHandler(this.goToolStripMenuItem_Click);
// //
// moveToolStripMenuItem1 // moveToolStripMenuItem1
// //
this.moveToolStripMenuItem1.Name = "moveToolStripMenuItem1"; this.moveToolStripMenuItem1.Name = "moveToolStripMenuItem1";
this.moveToolStripMenuItem1.Size = new System.Drawing.Size(180, 22); this.moveToolStripMenuItem1.Size = new System.Drawing.Size(156, 22);
this.moveToolStripMenuItem1.Text = "Move"; this.moveToolStripMenuItem1.Text = "Move";
this.moveToolStripMenuItem1.Click += new System.EventHandler(this.goToolStripMenuItem_Click); this.moveToolStripMenuItem1.Click += new System.EventHandler(this.goToolStripMenuItem_Click);
// //
@ -992,21 +1003,21 @@
// takeProductToolStripMenuItem2 // takeProductToolStripMenuItem2
// //
this.takeProductToolStripMenuItem2.Name = "takeProductToolStripMenuItem2"; this.takeProductToolStripMenuItem2.Name = "takeProductToolStripMenuItem2";
this.takeProductToolStripMenuItem2.Size = new System.Drawing.Size(180, 22); this.takeProductToolStripMenuItem2.Size = new System.Drawing.Size(156, 22);
this.takeProductToolStripMenuItem2.Text = "TakeProduct"; this.takeProductToolStripMenuItem2.Text = "TakeProduct";
this.takeProductToolStripMenuItem2.Click += new System.EventHandler(this.goToolStripMenuItem_Click); this.takeProductToolStripMenuItem2.Click += new System.EventHandler(this.goToolStripMenuItem_Click);
// //
// dumpProductToolStripMenuItem2 // dumpProductToolStripMenuItem2
// //
this.dumpProductToolStripMenuItem2.Name = "dumpProductToolStripMenuItem2"; this.dumpProductToolStripMenuItem2.Name = "dumpProductToolStripMenuItem2";
this.dumpProductToolStripMenuItem2.Size = new System.Drawing.Size(180, 22); this.dumpProductToolStripMenuItem2.Size = new System.Drawing.Size(156, 22);
this.dumpProductToolStripMenuItem2.Text = "DumpProduct"; this.dumpProductToolStripMenuItem2.Text = "DumpProduct";
this.dumpProductToolStripMenuItem2.Click += new System.EventHandler(this.goToolStripMenuItem_Click); this.dumpProductToolStripMenuItem2.Click += new System.EventHandler(this.goToolStripMenuItem_Click);
// //
// moveToolStripMenuItem2 // moveToolStripMenuItem2
// //
this.moveToolStripMenuItem2.Name = "moveToolStripMenuItem2"; this.moveToolStripMenuItem2.Name = "moveToolStripMenuItem2";
this.moveToolStripMenuItem2.Size = new System.Drawing.Size(180, 22); this.moveToolStripMenuItem2.Size = new System.Drawing.Size(156, 22);
this.moveToolStripMenuItem2.Text = "Move"; this.moveToolStripMenuItem2.Text = "Move";
this.moveToolStripMenuItem2.Click += new System.EventHandler(this.goToolStripMenuItem_Click); this.moveToolStripMenuItem2.Click += new System.EventHandler(this.goToolStripMenuItem_Click);
// //
@ -1023,21 +1034,21 @@
// takeProductToolStripMenuItem3 // takeProductToolStripMenuItem3
// //
this.takeProductToolStripMenuItem3.Name = "takeProductToolStripMenuItem3"; this.takeProductToolStripMenuItem3.Name = "takeProductToolStripMenuItem3";
this.takeProductToolStripMenuItem3.Size = new System.Drawing.Size(180, 22); this.takeProductToolStripMenuItem3.Size = new System.Drawing.Size(156, 22);
this.takeProductToolStripMenuItem3.Text = "TakeProduct"; this.takeProductToolStripMenuItem3.Text = "TakeProduct";
this.takeProductToolStripMenuItem3.Click += new System.EventHandler(this.goToolStripMenuItem_Click); this.takeProductToolStripMenuItem3.Click += new System.EventHandler(this.goToolStripMenuItem_Click);
// //
// dumpProductToolStripMenuItem3 // dumpProductToolStripMenuItem3
// //
this.dumpProductToolStripMenuItem3.Name = "dumpProductToolStripMenuItem3"; this.dumpProductToolStripMenuItem3.Name = "dumpProductToolStripMenuItem3";
this.dumpProductToolStripMenuItem3.Size = new System.Drawing.Size(180, 22); this.dumpProductToolStripMenuItem3.Size = new System.Drawing.Size(156, 22);
this.dumpProductToolStripMenuItem3.Text = "DumpProduct"; this.dumpProductToolStripMenuItem3.Text = "DumpProduct";
this.dumpProductToolStripMenuItem3.Click += new System.EventHandler(this.goToolStripMenuItem_Click); this.dumpProductToolStripMenuItem3.Click += new System.EventHandler(this.goToolStripMenuItem_Click);
// //
// moveToolStripMenuItem3 // moveToolStripMenuItem3
// //
this.moveToolStripMenuItem3.Name = "moveToolStripMenuItem3"; this.moveToolStripMenuItem3.Name = "moveToolStripMenuItem3";
this.moveToolStripMenuItem3.Size = new System.Drawing.Size(180, 22); this.moveToolStripMenuItem3.Size = new System.Drawing.Size(156, 22);
this.moveToolStripMenuItem3.Text = "Move"; this.moveToolStripMenuItem3.Text = "Move";
this.moveToolStripMenuItem3.Click += new System.EventHandler(this.goToolStripMenuItem_Click); this.moveToolStripMenuItem3.Click += new System.EventHandler(this.goToolStripMenuItem_Click);
// //
@ -1054,21 +1065,21 @@
// takeProductToolStripMenuItem4 // takeProductToolStripMenuItem4
// //
this.takeProductToolStripMenuItem4.Name = "takeProductToolStripMenuItem4"; this.takeProductToolStripMenuItem4.Name = "takeProductToolStripMenuItem4";
this.takeProductToolStripMenuItem4.Size = new System.Drawing.Size(180, 22); this.takeProductToolStripMenuItem4.Size = new System.Drawing.Size(156, 22);
this.takeProductToolStripMenuItem4.Text = "TakeProduct"; this.takeProductToolStripMenuItem4.Text = "TakeProduct";
this.takeProductToolStripMenuItem4.Click += new System.EventHandler(this.goToolStripMenuItem_Click); this.takeProductToolStripMenuItem4.Click += new System.EventHandler(this.goToolStripMenuItem_Click);
// //
// dumpProductToolStripMenuItem4 // dumpProductToolStripMenuItem4
// //
this.dumpProductToolStripMenuItem4.Name = "dumpProductToolStripMenuItem4"; this.dumpProductToolStripMenuItem4.Name = "dumpProductToolStripMenuItem4";
this.dumpProductToolStripMenuItem4.Size = new System.Drawing.Size(180, 22); this.dumpProductToolStripMenuItem4.Size = new System.Drawing.Size(156, 22);
this.dumpProductToolStripMenuItem4.Text = "DumpProduct"; this.dumpProductToolStripMenuItem4.Text = "DumpProduct";
this.dumpProductToolStripMenuItem4.Click += new System.EventHandler(this.goToolStripMenuItem_Click); this.dumpProductToolStripMenuItem4.Click += new System.EventHandler(this.goToolStripMenuItem_Click);
// //
// moveToolStripMenuItem4 // moveToolStripMenuItem4
// //
this.moveToolStripMenuItem4.Name = "moveToolStripMenuItem4"; this.moveToolStripMenuItem4.Name = "moveToolStripMenuItem4";
this.moveToolStripMenuItem4.Size = new System.Drawing.Size(180, 22); this.moveToolStripMenuItem4.Size = new System.Drawing.Size(156, 22);
this.moveToolStripMenuItem4.Text = "Move"; this.moveToolStripMenuItem4.Text = "Move";
this.moveToolStripMenuItem4.Click += new System.EventHandler(this.goToolStripMenuItem_Click); this.moveToolStripMenuItem4.Click += new System.EventHandler(this.goToolStripMenuItem_Click);
// //
@ -1085,21 +1096,21 @@
// takeProductToolStripMenuItem5 // takeProductToolStripMenuItem5
// //
this.takeProductToolStripMenuItem5.Name = "takeProductToolStripMenuItem5"; this.takeProductToolStripMenuItem5.Name = "takeProductToolStripMenuItem5";
this.takeProductToolStripMenuItem5.Size = new System.Drawing.Size(180, 22); this.takeProductToolStripMenuItem5.Size = new System.Drawing.Size(156, 22);
this.takeProductToolStripMenuItem5.Text = "TakeProduct"; this.takeProductToolStripMenuItem5.Text = "TakeProduct";
this.takeProductToolStripMenuItem5.Click += new System.EventHandler(this.goToolStripMenuItem_Click); this.takeProductToolStripMenuItem5.Click += new System.EventHandler(this.goToolStripMenuItem_Click);
// //
// dumpProductToolStripMenuItem5 // dumpProductToolStripMenuItem5
// //
this.dumpProductToolStripMenuItem5.Name = "dumpProductToolStripMenuItem5"; this.dumpProductToolStripMenuItem5.Name = "dumpProductToolStripMenuItem5";
this.dumpProductToolStripMenuItem5.Size = new System.Drawing.Size(180, 22); this.dumpProductToolStripMenuItem5.Size = new System.Drawing.Size(156, 22);
this.dumpProductToolStripMenuItem5.Text = "DumpProduct"; this.dumpProductToolStripMenuItem5.Text = "DumpProduct";
this.dumpProductToolStripMenuItem5.Click += new System.EventHandler(this.goToolStripMenuItem_Click); this.dumpProductToolStripMenuItem5.Click += new System.EventHandler(this.goToolStripMenuItem_Click);
// //
// moveToolStripMenuItem5 // moveToolStripMenuItem5
// //
this.moveToolStripMenuItem5.Name = "moveToolStripMenuItem5"; this.moveToolStripMenuItem5.Name = "moveToolStripMenuItem5";
this.moveToolStripMenuItem5.Size = new System.Drawing.Size(180, 22); this.moveToolStripMenuItem5.Size = new System.Drawing.Size(156, 22);
this.moveToolStripMenuItem5.Text = "Move"; this.moveToolStripMenuItem5.Text = "Move";
this.moveToolStripMenuItem5.Click += new System.EventHandler(this.goToolStripMenuItem_Click); this.moveToolStripMenuItem5.Click += new System.EventHandler(this.goToolStripMenuItem_Click);
// //
@ -1116,21 +1127,21 @@
// takeProductToolStripMenuItem6 // takeProductToolStripMenuItem6
// //
this.takeProductToolStripMenuItem6.Name = "takeProductToolStripMenuItem6"; this.takeProductToolStripMenuItem6.Name = "takeProductToolStripMenuItem6";
this.takeProductToolStripMenuItem6.Size = new System.Drawing.Size(180, 22); this.takeProductToolStripMenuItem6.Size = new System.Drawing.Size(156, 22);
this.takeProductToolStripMenuItem6.Text = "TakeProduct"; this.takeProductToolStripMenuItem6.Text = "TakeProduct";
this.takeProductToolStripMenuItem6.Click += new System.EventHandler(this.goToolStripMenuItem_Click); this.takeProductToolStripMenuItem6.Click += new System.EventHandler(this.goToolStripMenuItem_Click);
// //
// dumpProductToolStripMenuItem6 // dumpProductToolStripMenuItem6
// //
this.dumpProductToolStripMenuItem6.Name = "dumpProductToolStripMenuItem6"; this.dumpProductToolStripMenuItem6.Name = "dumpProductToolStripMenuItem6";
this.dumpProductToolStripMenuItem6.Size = new System.Drawing.Size(180, 22); this.dumpProductToolStripMenuItem6.Size = new System.Drawing.Size(156, 22);
this.dumpProductToolStripMenuItem6.Text = "DumpProduct"; this.dumpProductToolStripMenuItem6.Text = "DumpProduct";
this.dumpProductToolStripMenuItem6.Click += new System.EventHandler(this.goToolStripMenuItem_Click); this.dumpProductToolStripMenuItem6.Click += new System.EventHandler(this.goToolStripMenuItem_Click);
// //
// moveToolStripMenuItem6 // moveToolStripMenuItem6
// //
this.moveToolStripMenuItem6.Name = "moveToolStripMenuItem6"; this.moveToolStripMenuItem6.Name = "moveToolStripMenuItem6";
this.moveToolStripMenuItem6.Size = new System.Drawing.Size(180, 22); this.moveToolStripMenuItem6.Size = new System.Drawing.Size(156, 22);
this.moveToolStripMenuItem6.Text = "Move"; this.moveToolStripMenuItem6.Text = "Move";
this.moveToolStripMenuItem6.Click += new System.EventHandler(this.goToolStripMenuItem_Click); this.moveToolStripMenuItem6.Click += new System.EventHandler(this.goToolStripMenuItem_Click);
// //
@ -1147,21 +1158,21 @@
// takeProductToolStripMenuItem7 // takeProductToolStripMenuItem7
// //
this.takeProductToolStripMenuItem7.Name = "takeProductToolStripMenuItem7"; this.takeProductToolStripMenuItem7.Name = "takeProductToolStripMenuItem7";
this.takeProductToolStripMenuItem7.Size = new System.Drawing.Size(180, 22); this.takeProductToolStripMenuItem7.Size = new System.Drawing.Size(156, 22);
this.takeProductToolStripMenuItem7.Text = "TakeProduct"; this.takeProductToolStripMenuItem7.Text = "TakeProduct";
this.takeProductToolStripMenuItem7.Click += new System.EventHandler(this.goToolStripMenuItem_Click); this.takeProductToolStripMenuItem7.Click += new System.EventHandler(this.goToolStripMenuItem_Click);
// //
// dumpProductToolStripMenuItem7 // dumpProductToolStripMenuItem7
// //
this.dumpProductToolStripMenuItem7.Name = "dumpProductToolStripMenuItem7"; this.dumpProductToolStripMenuItem7.Name = "dumpProductToolStripMenuItem7";
this.dumpProductToolStripMenuItem7.Size = new System.Drawing.Size(180, 22); this.dumpProductToolStripMenuItem7.Size = new System.Drawing.Size(156, 22);
this.dumpProductToolStripMenuItem7.Text = "DumpProduct"; this.dumpProductToolStripMenuItem7.Text = "DumpProduct";
this.dumpProductToolStripMenuItem7.Click += new System.EventHandler(this.goToolStripMenuItem_Click); this.dumpProductToolStripMenuItem7.Click += new System.EventHandler(this.goToolStripMenuItem_Click);
// //
// moveToolStripMenuItem7 // moveToolStripMenuItem7
// //
this.moveToolStripMenuItem7.Name = "moveToolStripMenuItem7"; this.moveToolStripMenuItem7.Name = "moveToolStripMenuItem7";
this.moveToolStripMenuItem7.Size = new System.Drawing.Size(180, 22); this.moveToolStripMenuItem7.Size = new System.Drawing.Size(156, 22);
this.moveToolStripMenuItem7.Text = "Move"; this.moveToolStripMenuItem7.Text = "Move";
this.moveToolStripMenuItem7.Click += new System.EventHandler(this.goToolStripMenuItem_Click); this.moveToolStripMenuItem7.Click += new System.EventHandler(this.goToolStripMenuItem_Click);
// //
@ -1178,30 +1189,38 @@
// takeProductToolStripMenuItem8 // takeProductToolStripMenuItem8
// //
this.takeProductToolStripMenuItem8.Name = "takeProductToolStripMenuItem8"; this.takeProductToolStripMenuItem8.Name = "takeProductToolStripMenuItem8";
this.takeProductToolStripMenuItem8.Size = new System.Drawing.Size(180, 22); this.takeProductToolStripMenuItem8.Size = new System.Drawing.Size(156, 22);
this.takeProductToolStripMenuItem8.Text = "TakeProduct"; this.takeProductToolStripMenuItem8.Text = "TakeProduct";
this.takeProductToolStripMenuItem8.Click += new System.EventHandler(this.goToolStripMenuItem_Click); this.takeProductToolStripMenuItem8.Click += new System.EventHandler(this.goToolStripMenuItem_Click);
// //
// dumpProductToolStripMenuItem8 // dumpProductToolStripMenuItem8
// //
this.dumpProductToolStripMenuItem8.Name = "dumpProductToolStripMenuItem8"; this.dumpProductToolStripMenuItem8.Name = "dumpProductToolStripMenuItem8";
this.dumpProductToolStripMenuItem8.Size = new System.Drawing.Size(180, 22); this.dumpProductToolStripMenuItem8.Size = new System.Drawing.Size(156, 22);
this.dumpProductToolStripMenuItem8.Text = "DumpProduct"; this.dumpProductToolStripMenuItem8.Text = "DumpProduct";
this.dumpProductToolStripMenuItem8.Click += new System.EventHandler(this.goToolStripMenuItem_Click); this.dumpProductToolStripMenuItem8.Click += new System.EventHandler(this.goToolStripMenuItem_Click);
// //
// moveToolStripMenuItem8 // moveToolStripMenuItem8
// //
this.moveToolStripMenuItem8.Name = "moveToolStripMenuItem8"; this.moveToolStripMenuItem8.Name = "moveToolStripMenuItem8";
this.moveToolStripMenuItem8.Size = new System.Drawing.Size(180, 22); this.moveToolStripMenuItem8.Size = new System.Drawing.Size(156, 22);
this.moveToolStripMenuItem8.Text = "Move"; this.moveToolStripMenuItem8.Text = "Move";
this.moveToolStripMenuItem8.Click += new System.EventHandler(this.goToolStripMenuItem_Click); this.moveToolStripMenuItem8.Click += new System.EventHandler(this.goToolStripMenuItem_Click);
// //
// moveToolStripMenuItem9 // btnCreateTrayStatus
// //
this.moveToolStripMenuItem9.Name = "moveToolStripMenuItem9"; this.btnCreateTrayStatus.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(56)))), ((int)(((byte)(56)))));
this.moveToolStripMenuItem9.Size = new System.Drawing.Size(180, 22); this.btnCreateTrayStatus.FlatAppearance.BorderColor = System.Drawing.Color.White;
this.moveToolStripMenuItem9.Text = "Move"; this.btnCreateTrayStatus.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.moveToolStripMenuItem9.Click += new System.EventHandler(this.goToolStripMenuItem_Click); this.btnCreateTrayStatus.ForeColor = System.Drawing.Color.White;
this.btnCreateTrayStatus.Location = new System.Drawing.Point(9, 172);
this.btnCreateTrayStatus.Name = "btnCreateTrayStatus";
this.btnCreateTrayStatus.Size = new System.Drawing.Size(133, 51);
this.btnCreateTrayStatus.TabIndex = 55;
this.btnCreateTrayStatus.Tag = "LoadY";
this.btnCreateTrayStatus.Text = "CreateTrayStatus";
this.btnCreateTrayStatus.UseVisualStyleBackColor = false;
this.btnCreateTrayStatus.Click += new System.EventHandler(this.btnCreateTrayStatus_Click);
// //
// StockTrayLocationRecipe // StockTrayLocationRecipe
// //
@ -1325,5 +1344,6 @@
private System.Windows.Forms.ToolStripMenuItem dumpProductToolStripMenuItem8; private System.Windows.Forms.ToolStripMenuItem dumpProductToolStripMenuItem8;
private System.Windows.Forms.ToolStripMenuItem moveToolStripMenuItem8; private System.Windows.Forms.ToolStripMenuItem moveToolStripMenuItem8;
private System.Windows.Forms.ToolStripMenuItem moveToolStripMenuItem9; private System.Windows.Forms.ToolStripMenuItem moveToolStripMenuItem9;
private System.Windows.Forms.Button btnCreateTrayStatus;
} }
} }

@ -297,5 +297,21 @@ namespace Rs.MotionPlat.Recipe
} }
}); });
} }
private void btnCreateTrayStatus_Click(object sender, EventArgs e)
{
string deleteSql = $"delete from traystatus where trayname='{m_trayName}'";
db.ExecuteNonQuery(deleteSql);
string insertSql = "insert into traystatus(trayname,slotindex,status) values('{0}',{1},{2})";
for (int i = 1; i <= rsTray1.RowNum; i++)
{
for (int j = 1; j <= rsTray1.ColumnNum; j++)
{
int index = j + (i - 1) * rsTray1.ColumnNum;
string executeSql = string.Format(insertSql, m_trayName, index, 0);
db.ExecuteNonQuery(executeSql);
}
}
}
} }
} }

@ -29,21 +29,21 @@
private void InitializeComponent() private void InitializeComponent()
{ {
this.components = new System.ComponentModel.Container(); this.components = new System.ComponentModel.Container();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle20 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle17 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle18 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle19 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle21 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle25 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle22 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle23 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle24 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle26 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle30 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle27 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle28 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle29 = new System.Windows.Forms.DataGridViewCellStyle();
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components); this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
this.goToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.goToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.moveToolStripMenuItem9 = new System.Windows.Forms.ToolStripMenuItem(); this.moveToolStripMenuItem9 = new System.Windows.Forms.ToolStripMenuItem();
@ -133,6 +133,7 @@
this.label5 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label();
this.panelEx1 = new Rs.Controls.PanelEx(); this.panelEx1 = new Rs.Controls.PanelEx();
this.cameraTemplate1 = new Rs.MotionPlat.CameraTemplate(); this.cameraTemplate1 = new Rs.MotionPlat.CameraTemplate();
this.btnCreateTrayStatus = new System.Windows.Forms.Button();
this.contextMenuStrip1.SuspendLayout(); this.contextMenuStrip1.SuspendLayout();
this.panelEx2.SuspendLayout(); this.panelEx2.SuspendLayout();
this.panelEx5.SuspendLayout(); this.panelEx5.SuspendLayout();
@ -178,7 +179,7 @@
// moveToolStripMenuItem9 // moveToolStripMenuItem9
// //
this.moveToolStripMenuItem9.Name = "moveToolStripMenuItem9"; this.moveToolStripMenuItem9.Name = "moveToolStripMenuItem9";
this.moveToolStripMenuItem9.Size = new System.Drawing.Size(180, 22); this.moveToolStripMenuItem9.Size = new System.Drawing.Size(109, 22);
this.moveToolStripMenuItem9.Text = "Move"; this.moveToolStripMenuItem9.Text = "Move";
this.moveToolStripMenuItem9.Click += new System.EventHandler(this.goToolStripMenuItem_Click); this.moveToolStripMenuItem9.Click += new System.EventHandler(this.goToolStripMenuItem_Click);
// //
@ -195,21 +196,21 @@
// takeProductToolStripMenuItem // takeProductToolStripMenuItem
// //
this.takeProductToolStripMenuItem.Name = "takeProductToolStripMenuItem"; this.takeProductToolStripMenuItem.Name = "takeProductToolStripMenuItem";
this.takeProductToolStripMenuItem.Size = new System.Drawing.Size(180, 22); this.takeProductToolStripMenuItem.Size = new System.Drawing.Size(156, 22);
this.takeProductToolStripMenuItem.Text = "TakeProduct"; this.takeProductToolStripMenuItem.Text = "TakeProduct";
this.takeProductToolStripMenuItem.Click += new System.EventHandler(this.goToolStripMenuItem_Click); this.takeProductToolStripMenuItem.Click += new System.EventHandler(this.goToolStripMenuItem_Click);
// //
// dumpProductToolStripMenuItem // dumpProductToolStripMenuItem
// //
this.dumpProductToolStripMenuItem.Name = "dumpProductToolStripMenuItem"; this.dumpProductToolStripMenuItem.Name = "dumpProductToolStripMenuItem";
this.dumpProductToolStripMenuItem.Size = new System.Drawing.Size(180, 22); this.dumpProductToolStripMenuItem.Size = new System.Drawing.Size(156, 22);
this.dumpProductToolStripMenuItem.Text = "DumpProduct"; this.dumpProductToolStripMenuItem.Text = "DumpProduct";
this.dumpProductToolStripMenuItem.Click += new System.EventHandler(this.goToolStripMenuItem_Click); this.dumpProductToolStripMenuItem.Click += new System.EventHandler(this.goToolStripMenuItem_Click);
// //
// moveToolStripMenuItem // moveToolStripMenuItem
// //
this.moveToolStripMenuItem.Name = "moveToolStripMenuItem"; this.moveToolStripMenuItem.Name = "moveToolStripMenuItem";
this.moveToolStripMenuItem.Size = new System.Drawing.Size(180, 22); this.moveToolStripMenuItem.Size = new System.Drawing.Size(156, 22);
this.moveToolStripMenuItem.Text = "Move"; this.moveToolStripMenuItem.Text = "Move";
this.moveToolStripMenuItem.Click += new System.EventHandler(this.goToolStripMenuItem_Click); this.moveToolStripMenuItem.Click += new System.EventHandler(this.goToolStripMenuItem_Click);
// //
@ -227,21 +228,21 @@
// takeProductToolStripMenuItem1 // takeProductToolStripMenuItem1
// //
this.takeProductToolStripMenuItem1.Name = "takeProductToolStripMenuItem1"; this.takeProductToolStripMenuItem1.Name = "takeProductToolStripMenuItem1";
this.takeProductToolStripMenuItem1.Size = new System.Drawing.Size(180, 22); this.takeProductToolStripMenuItem1.Size = new System.Drawing.Size(156, 22);
this.takeProductToolStripMenuItem1.Text = "TakeProduct"; this.takeProductToolStripMenuItem1.Text = "TakeProduct";
this.takeProductToolStripMenuItem1.Click += new System.EventHandler(this.goToolStripMenuItem_Click); this.takeProductToolStripMenuItem1.Click += new System.EventHandler(this.goToolStripMenuItem_Click);
// //
// dumpProductToolStripMenuItem1 // dumpProductToolStripMenuItem1
// //
this.dumpProductToolStripMenuItem1.Name = "dumpProductToolStripMenuItem1"; this.dumpProductToolStripMenuItem1.Name = "dumpProductToolStripMenuItem1";
this.dumpProductToolStripMenuItem1.Size = new System.Drawing.Size(180, 22); this.dumpProductToolStripMenuItem1.Size = new System.Drawing.Size(156, 22);
this.dumpProductToolStripMenuItem1.Text = "DumpProduct"; this.dumpProductToolStripMenuItem1.Text = "DumpProduct";
this.dumpProductToolStripMenuItem1.Click += new System.EventHandler(this.goToolStripMenuItem_Click); this.dumpProductToolStripMenuItem1.Click += new System.EventHandler(this.goToolStripMenuItem_Click);
// //
// moveToolStripMenuItem1 // moveToolStripMenuItem1
// //
this.moveToolStripMenuItem1.Name = "moveToolStripMenuItem1"; this.moveToolStripMenuItem1.Name = "moveToolStripMenuItem1";
this.moveToolStripMenuItem1.Size = new System.Drawing.Size(180, 22); this.moveToolStripMenuItem1.Size = new System.Drawing.Size(156, 22);
this.moveToolStripMenuItem1.Text = "Move"; this.moveToolStripMenuItem1.Text = "Move";
this.moveToolStripMenuItem1.Click += new System.EventHandler(this.goToolStripMenuItem_Click); this.moveToolStripMenuItem1.Click += new System.EventHandler(this.goToolStripMenuItem_Click);
// //
@ -259,21 +260,21 @@
// takeProductToolStripMenuItem2 // takeProductToolStripMenuItem2
// //
this.takeProductToolStripMenuItem2.Name = "takeProductToolStripMenuItem2"; this.takeProductToolStripMenuItem2.Name = "takeProductToolStripMenuItem2";
this.takeProductToolStripMenuItem2.Size = new System.Drawing.Size(180, 22); this.takeProductToolStripMenuItem2.Size = new System.Drawing.Size(156, 22);
this.takeProductToolStripMenuItem2.Text = "TakeProduct"; this.takeProductToolStripMenuItem2.Text = "TakeProduct";
this.takeProductToolStripMenuItem2.Click += new System.EventHandler(this.goToolStripMenuItem_Click); this.takeProductToolStripMenuItem2.Click += new System.EventHandler(this.goToolStripMenuItem_Click);
// //
// dumpProductToolStripMenuItem2 // dumpProductToolStripMenuItem2
// //
this.dumpProductToolStripMenuItem2.Name = "dumpProductToolStripMenuItem2"; this.dumpProductToolStripMenuItem2.Name = "dumpProductToolStripMenuItem2";
this.dumpProductToolStripMenuItem2.Size = new System.Drawing.Size(180, 22); this.dumpProductToolStripMenuItem2.Size = new System.Drawing.Size(156, 22);
this.dumpProductToolStripMenuItem2.Text = "DumpProduct"; this.dumpProductToolStripMenuItem2.Text = "DumpProduct";
this.dumpProductToolStripMenuItem2.Click += new System.EventHandler(this.goToolStripMenuItem_Click); this.dumpProductToolStripMenuItem2.Click += new System.EventHandler(this.goToolStripMenuItem_Click);
// //
// moveToolStripMenuItem2 // moveToolStripMenuItem2
// //
this.moveToolStripMenuItem2.Name = "moveToolStripMenuItem2"; this.moveToolStripMenuItem2.Name = "moveToolStripMenuItem2";
this.moveToolStripMenuItem2.Size = new System.Drawing.Size(180, 22); this.moveToolStripMenuItem2.Size = new System.Drawing.Size(156, 22);
this.moveToolStripMenuItem2.Text = "Move"; this.moveToolStripMenuItem2.Text = "Move";
this.moveToolStripMenuItem2.Click += new System.EventHandler(this.goToolStripMenuItem_Click); this.moveToolStripMenuItem2.Click += new System.EventHandler(this.goToolStripMenuItem_Click);
// //
@ -291,21 +292,21 @@
// takeProductToolStripMenuItem3 // takeProductToolStripMenuItem3
// //
this.takeProductToolStripMenuItem3.Name = "takeProductToolStripMenuItem3"; this.takeProductToolStripMenuItem3.Name = "takeProductToolStripMenuItem3";
this.takeProductToolStripMenuItem3.Size = new System.Drawing.Size(180, 22); this.takeProductToolStripMenuItem3.Size = new System.Drawing.Size(156, 22);
this.takeProductToolStripMenuItem3.Text = "TakeProduct"; this.takeProductToolStripMenuItem3.Text = "TakeProduct";
this.takeProductToolStripMenuItem3.Click += new System.EventHandler(this.goToolStripMenuItem_Click); this.takeProductToolStripMenuItem3.Click += new System.EventHandler(this.goToolStripMenuItem_Click);
// //
// dumpProductToolStripMenuItem3 // dumpProductToolStripMenuItem3
// //
this.dumpProductToolStripMenuItem3.Name = "dumpProductToolStripMenuItem3"; this.dumpProductToolStripMenuItem3.Name = "dumpProductToolStripMenuItem3";
this.dumpProductToolStripMenuItem3.Size = new System.Drawing.Size(180, 22); this.dumpProductToolStripMenuItem3.Size = new System.Drawing.Size(156, 22);
this.dumpProductToolStripMenuItem3.Text = "DumpProduct"; this.dumpProductToolStripMenuItem3.Text = "DumpProduct";
this.dumpProductToolStripMenuItem3.Click += new System.EventHandler(this.goToolStripMenuItem_Click); this.dumpProductToolStripMenuItem3.Click += new System.EventHandler(this.goToolStripMenuItem_Click);
// //
// moveToolStripMenuItem3 // moveToolStripMenuItem3
// //
this.moveToolStripMenuItem3.Name = "moveToolStripMenuItem3"; this.moveToolStripMenuItem3.Name = "moveToolStripMenuItem3";
this.moveToolStripMenuItem3.Size = new System.Drawing.Size(180, 22); this.moveToolStripMenuItem3.Size = new System.Drawing.Size(156, 22);
this.moveToolStripMenuItem3.Text = "Move"; this.moveToolStripMenuItem3.Text = "Move";
this.moveToolStripMenuItem3.Click += new System.EventHandler(this.goToolStripMenuItem_Click); this.moveToolStripMenuItem3.Click += new System.EventHandler(this.goToolStripMenuItem_Click);
// //
@ -323,21 +324,21 @@
// takeProductToolStripMenuItem4 // takeProductToolStripMenuItem4
// //
this.takeProductToolStripMenuItem4.Name = "takeProductToolStripMenuItem4"; this.takeProductToolStripMenuItem4.Name = "takeProductToolStripMenuItem4";
this.takeProductToolStripMenuItem4.Size = new System.Drawing.Size(180, 22); this.takeProductToolStripMenuItem4.Size = new System.Drawing.Size(156, 22);
this.takeProductToolStripMenuItem4.Text = "TakeProduct"; this.takeProductToolStripMenuItem4.Text = "TakeProduct";
this.takeProductToolStripMenuItem4.Click += new System.EventHandler(this.goToolStripMenuItem_Click); this.takeProductToolStripMenuItem4.Click += new System.EventHandler(this.goToolStripMenuItem_Click);
// //
// dumpProductToolStripMenuItem4 // dumpProductToolStripMenuItem4
// //
this.dumpProductToolStripMenuItem4.Name = "dumpProductToolStripMenuItem4"; this.dumpProductToolStripMenuItem4.Name = "dumpProductToolStripMenuItem4";
this.dumpProductToolStripMenuItem4.Size = new System.Drawing.Size(180, 22); this.dumpProductToolStripMenuItem4.Size = new System.Drawing.Size(156, 22);
this.dumpProductToolStripMenuItem4.Text = "DumpProduct"; this.dumpProductToolStripMenuItem4.Text = "DumpProduct";
this.dumpProductToolStripMenuItem4.Click += new System.EventHandler(this.goToolStripMenuItem_Click); this.dumpProductToolStripMenuItem4.Click += new System.EventHandler(this.goToolStripMenuItem_Click);
// //
// moveToolStripMenuItem4 // moveToolStripMenuItem4
// //
this.moveToolStripMenuItem4.Name = "moveToolStripMenuItem4"; this.moveToolStripMenuItem4.Name = "moveToolStripMenuItem4";
this.moveToolStripMenuItem4.Size = new System.Drawing.Size(180, 22); this.moveToolStripMenuItem4.Size = new System.Drawing.Size(156, 22);
this.moveToolStripMenuItem4.Text = "Move"; this.moveToolStripMenuItem4.Text = "Move";
this.moveToolStripMenuItem4.Click += new System.EventHandler(this.goToolStripMenuItem_Click); this.moveToolStripMenuItem4.Click += new System.EventHandler(this.goToolStripMenuItem_Click);
// //
@ -355,21 +356,21 @@
// takeProductToolStripMenuItem5 // takeProductToolStripMenuItem5
// //
this.takeProductToolStripMenuItem5.Name = "takeProductToolStripMenuItem5"; this.takeProductToolStripMenuItem5.Name = "takeProductToolStripMenuItem5";
this.takeProductToolStripMenuItem5.Size = new System.Drawing.Size(180, 22); this.takeProductToolStripMenuItem5.Size = new System.Drawing.Size(156, 22);
this.takeProductToolStripMenuItem5.Text = "TakeProduct"; this.takeProductToolStripMenuItem5.Text = "TakeProduct";
this.takeProductToolStripMenuItem5.Click += new System.EventHandler(this.goToolStripMenuItem_Click); this.takeProductToolStripMenuItem5.Click += new System.EventHandler(this.goToolStripMenuItem_Click);
// //
// dumpProductToolStripMenuItem5 // dumpProductToolStripMenuItem5
// //
this.dumpProductToolStripMenuItem5.Name = "dumpProductToolStripMenuItem5"; this.dumpProductToolStripMenuItem5.Name = "dumpProductToolStripMenuItem5";
this.dumpProductToolStripMenuItem5.Size = new System.Drawing.Size(180, 22); this.dumpProductToolStripMenuItem5.Size = new System.Drawing.Size(156, 22);
this.dumpProductToolStripMenuItem5.Text = "DumpProduct"; this.dumpProductToolStripMenuItem5.Text = "DumpProduct";
this.dumpProductToolStripMenuItem5.Click += new System.EventHandler(this.goToolStripMenuItem_Click); this.dumpProductToolStripMenuItem5.Click += new System.EventHandler(this.goToolStripMenuItem_Click);
// //
// moveToolStripMenuItem5 // moveToolStripMenuItem5
// //
this.moveToolStripMenuItem5.Name = "moveToolStripMenuItem5"; this.moveToolStripMenuItem5.Name = "moveToolStripMenuItem5";
this.moveToolStripMenuItem5.Size = new System.Drawing.Size(180, 22); this.moveToolStripMenuItem5.Size = new System.Drawing.Size(156, 22);
this.moveToolStripMenuItem5.Text = "Move"; this.moveToolStripMenuItem5.Text = "Move";
this.moveToolStripMenuItem5.Click += new System.EventHandler(this.goToolStripMenuItem_Click); this.moveToolStripMenuItem5.Click += new System.EventHandler(this.goToolStripMenuItem_Click);
// //
@ -387,21 +388,21 @@
// takeProductToolStripMenuItem6 // takeProductToolStripMenuItem6
// //
this.takeProductToolStripMenuItem6.Name = "takeProductToolStripMenuItem6"; this.takeProductToolStripMenuItem6.Name = "takeProductToolStripMenuItem6";
this.takeProductToolStripMenuItem6.Size = new System.Drawing.Size(180, 22); this.takeProductToolStripMenuItem6.Size = new System.Drawing.Size(156, 22);
this.takeProductToolStripMenuItem6.Text = "TakeProduct"; this.takeProductToolStripMenuItem6.Text = "TakeProduct";
this.takeProductToolStripMenuItem6.Click += new System.EventHandler(this.goToolStripMenuItem_Click); this.takeProductToolStripMenuItem6.Click += new System.EventHandler(this.goToolStripMenuItem_Click);
// //
// dumpProductToolStripMenuItem6 // dumpProductToolStripMenuItem6
// //
this.dumpProductToolStripMenuItem6.Name = "dumpProductToolStripMenuItem6"; this.dumpProductToolStripMenuItem6.Name = "dumpProductToolStripMenuItem6";
this.dumpProductToolStripMenuItem6.Size = new System.Drawing.Size(180, 22); this.dumpProductToolStripMenuItem6.Size = new System.Drawing.Size(156, 22);
this.dumpProductToolStripMenuItem6.Text = "DumpProduct"; this.dumpProductToolStripMenuItem6.Text = "DumpProduct";
this.dumpProductToolStripMenuItem6.Click += new System.EventHandler(this.goToolStripMenuItem_Click); this.dumpProductToolStripMenuItem6.Click += new System.EventHandler(this.goToolStripMenuItem_Click);
// //
// moveToolStripMenuItem6 // moveToolStripMenuItem6
// //
this.moveToolStripMenuItem6.Name = "moveToolStripMenuItem6"; this.moveToolStripMenuItem6.Name = "moveToolStripMenuItem6";
this.moveToolStripMenuItem6.Size = new System.Drawing.Size(180, 22); this.moveToolStripMenuItem6.Size = new System.Drawing.Size(156, 22);
this.moveToolStripMenuItem6.Text = "Move"; this.moveToolStripMenuItem6.Text = "Move";
this.moveToolStripMenuItem6.Click += new System.EventHandler(this.goToolStripMenuItem_Click); this.moveToolStripMenuItem6.Click += new System.EventHandler(this.goToolStripMenuItem_Click);
// //
@ -419,21 +420,21 @@
// takeProductToolStripMenuItem7 // takeProductToolStripMenuItem7
// //
this.takeProductToolStripMenuItem7.Name = "takeProductToolStripMenuItem7"; this.takeProductToolStripMenuItem7.Name = "takeProductToolStripMenuItem7";
this.takeProductToolStripMenuItem7.Size = new System.Drawing.Size(180, 22); this.takeProductToolStripMenuItem7.Size = new System.Drawing.Size(156, 22);
this.takeProductToolStripMenuItem7.Text = "TakeProduct"; this.takeProductToolStripMenuItem7.Text = "TakeProduct";
this.takeProductToolStripMenuItem7.Click += new System.EventHandler(this.goToolStripMenuItem_Click); this.takeProductToolStripMenuItem7.Click += new System.EventHandler(this.goToolStripMenuItem_Click);
// //
// dumpProductToolStripMenuItem7 // dumpProductToolStripMenuItem7
// //
this.dumpProductToolStripMenuItem7.Name = "dumpProductToolStripMenuItem7"; this.dumpProductToolStripMenuItem7.Name = "dumpProductToolStripMenuItem7";
this.dumpProductToolStripMenuItem7.Size = new System.Drawing.Size(180, 22); this.dumpProductToolStripMenuItem7.Size = new System.Drawing.Size(156, 22);
this.dumpProductToolStripMenuItem7.Text = "DumpProduct"; this.dumpProductToolStripMenuItem7.Text = "DumpProduct";
this.dumpProductToolStripMenuItem7.Click += new System.EventHandler(this.goToolStripMenuItem_Click); this.dumpProductToolStripMenuItem7.Click += new System.EventHandler(this.goToolStripMenuItem_Click);
// //
// moveToolStripMenuItem7 // moveToolStripMenuItem7
// //
this.moveToolStripMenuItem7.Name = "moveToolStripMenuItem7"; this.moveToolStripMenuItem7.Name = "moveToolStripMenuItem7";
this.moveToolStripMenuItem7.Size = new System.Drawing.Size(180, 22); this.moveToolStripMenuItem7.Size = new System.Drawing.Size(156, 22);
this.moveToolStripMenuItem7.Text = "Move"; this.moveToolStripMenuItem7.Text = "Move";
this.moveToolStripMenuItem7.Click += new System.EventHandler(this.goToolStripMenuItem_Click); this.moveToolStripMenuItem7.Click += new System.EventHandler(this.goToolStripMenuItem_Click);
// //
@ -451,21 +452,21 @@
// takeProductToolStripMenuItem8 // takeProductToolStripMenuItem8
// //
this.takeProductToolStripMenuItem8.Name = "takeProductToolStripMenuItem8"; this.takeProductToolStripMenuItem8.Name = "takeProductToolStripMenuItem8";
this.takeProductToolStripMenuItem8.Size = new System.Drawing.Size(180, 22); this.takeProductToolStripMenuItem8.Size = new System.Drawing.Size(156, 22);
this.takeProductToolStripMenuItem8.Text = "TakeProduct"; this.takeProductToolStripMenuItem8.Text = "TakeProduct";
this.takeProductToolStripMenuItem8.Click += new System.EventHandler(this.goToolStripMenuItem_Click); this.takeProductToolStripMenuItem8.Click += new System.EventHandler(this.goToolStripMenuItem_Click);
// //
// dumpProductToolStripMenuItem8 // dumpProductToolStripMenuItem8
// //
this.dumpProductToolStripMenuItem8.Name = "dumpProductToolStripMenuItem8"; this.dumpProductToolStripMenuItem8.Name = "dumpProductToolStripMenuItem8";
this.dumpProductToolStripMenuItem8.Size = new System.Drawing.Size(180, 22); this.dumpProductToolStripMenuItem8.Size = new System.Drawing.Size(156, 22);
this.dumpProductToolStripMenuItem8.Text = "DumpProduct"; this.dumpProductToolStripMenuItem8.Text = "DumpProduct";
this.dumpProductToolStripMenuItem8.Click += new System.EventHandler(this.goToolStripMenuItem_Click); this.dumpProductToolStripMenuItem8.Click += new System.EventHandler(this.goToolStripMenuItem_Click);
// //
// moveToolStripMenuItem8 // moveToolStripMenuItem8
// //
this.moveToolStripMenuItem8.Name = "moveToolStripMenuItem8"; this.moveToolStripMenuItem8.Name = "moveToolStripMenuItem8";
this.moveToolStripMenuItem8.Size = new System.Drawing.Size(180, 22); this.moveToolStripMenuItem8.Size = new System.Drawing.Size(156, 22);
this.moveToolStripMenuItem8.Text = "Move"; this.moveToolStripMenuItem8.Text = "Move";
this.moveToolStripMenuItem8.Click += new System.EventHandler(this.goToolStripMenuItem_Click); this.moveToolStripMenuItem8.Click += new System.EventHandler(this.goToolStripMenuItem_Click);
// //
@ -534,9 +535,9 @@
this.dgvBasePoints.AllowUserToDeleteRows = false; this.dgvBasePoints.AllowUserToDeleteRows = false;
this.dgvBasePoints.AllowUserToResizeColumns = false; this.dgvBasePoints.AllowUserToResizeColumns = false;
this.dgvBasePoints.AllowUserToResizeRows = false; this.dgvBasePoints.AllowUserToResizeRows = false;
dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(56)))), ((int)(((byte)(56))))); dataGridViewCellStyle16.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(56)))), ((int)(((byte)(56)))));
dataGridViewCellStyle1.ForeColor = System.Drawing.Color.White; dataGridViewCellStyle16.ForeColor = System.Drawing.Color.White;
this.dgvBasePoints.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; this.dgvBasePoints.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle16;
this.dgvBasePoints.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; this.dgvBasePoints.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
this.dgvBasePoints.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(11)))), ((int)(((byte)(16)))), ((int)(((byte)(36))))); this.dgvBasePoints.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(11)))), ((int)(((byte)(16)))), ((int)(((byte)(36)))));
this.dgvBasePoints.ColumnHeadersHeight = 30; this.dgvBasePoints.ColumnHeadersHeight = 30;
@ -552,14 +553,14 @@
this.dgvBasePoints.MultiSelect = false; this.dgvBasePoints.MultiSelect = false;
this.dgvBasePoints.Name = "dgvBasePoints"; this.dgvBasePoints.Name = "dgvBasePoints";
this.dgvBasePoints.ReadOnly = true; this.dgvBasePoints.ReadOnly = true;
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle20.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(11)))), ((int)(((byte)(16)))), ((int)(((byte)(36))))); dataGridViewCellStyle20.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(11)))), ((int)(((byte)(16)))), ((int)(((byte)(36)))));
dataGridViewCellStyle5.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); dataGridViewCellStyle20.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle5.ForeColor = System.Drawing.Color.White; dataGridViewCellStyle20.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle5.SelectionBackColor = System.Drawing.Color.White; dataGridViewCellStyle20.SelectionBackColor = System.Drawing.Color.White;
dataGridViewCellStyle5.SelectionForeColor = System.Drawing.Color.White; dataGridViewCellStyle20.SelectionForeColor = System.Drawing.Color.White;
dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.True; dataGridViewCellStyle20.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dgvBasePoints.RowHeadersDefaultCellStyle = dataGridViewCellStyle5; this.dgvBasePoints.RowHeadersDefaultCellStyle = dataGridViewCellStyle20;
this.dgvBasePoints.RowHeadersVisible = false; this.dgvBasePoints.RowHeadersVisible = false;
this.dgvBasePoints.RowHeadersWidth = 30; this.dgvBasePoints.RowHeadersWidth = 30;
this.dgvBasePoints.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing; this.dgvBasePoints.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
@ -581,8 +582,8 @@
// X // X
// //
this.X.DataPropertyName = "X"; this.X.DataPropertyName = "X";
dataGridViewCellStyle2.Format = "0.000"; dataGridViewCellStyle17.Format = "0.000";
this.X.DefaultCellStyle = dataGridViewCellStyle2; this.X.DefaultCellStyle = dataGridViewCellStyle17;
this.X.FillWeight = 35F; this.X.FillWeight = 35F;
this.X.HeaderText = "X"; this.X.HeaderText = "X";
this.X.Name = "X"; this.X.Name = "X";
@ -591,8 +592,8 @@
// Y // Y
// //
this.Y.DataPropertyName = "Y"; this.Y.DataPropertyName = "Y";
dataGridViewCellStyle3.Format = "0.000"; dataGridViewCellStyle18.Format = "0.000";
this.Y.DefaultCellStyle = dataGridViewCellStyle3; this.Y.DefaultCellStyle = dataGridViewCellStyle18;
this.Y.FillWeight = 35F; this.Y.FillWeight = 35F;
this.Y.HeaderText = "Y"; this.Y.HeaderText = "Y";
this.Y.Name = "Y"; this.Y.Name = "Y";
@ -601,10 +602,10 @@
// Move // Move
// //
this.Move.ActiveLinkColor = System.Drawing.Color.White; this.Move.ActiveLinkColor = System.Drawing.Color.White;
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle19.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle4.BackColor = System.Drawing.Color.Silver; dataGridViewCellStyle19.BackColor = System.Drawing.Color.Silver;
dataGridViewCellStyle4.ForeColor = System.Drawing.Color.White; dataGridViewCellStyle19.ForeColor = System.Drawing.Color.White;
this.Move.DefaultCellStyle = dataGridViewCellStyle4; this.Move.DefaultCellStyle = dataGridViewCellStyle19;
this.Move.FillWeight = 20F; this.Move.FillWeight = 20F;
this.Move.HeaderText = "Move"; this.Move.HeaderText = "Move";
this.Move.LinkBehavior = System.Windows.Forms.LinkBehavior.NeverUnderline; this.Move.LinkBehavior = System.Windows.Forms.LinkBehavior.NeverUnderline;
@ -634,9 +635,9 @@
this.dgvRunPoints.AllowUserToDeleteRows = false; this.dgvRunPoints.AllowUserToDeleteRows = false;
this.dgvRunPoints.AllowUserToResizeColumns = false; this.dgvRunPoints.AllowUserToResizeColumns = false;
this.dgvRunPoints.AllowUserToResizeRows = false; this.dgvRunPoints.AllowUserToResizeRows = false;
dataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(56)))), ((int)(((byte)(56))))); dataGridViewCellStyle21.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(56)))), ((int)(((byte)(56)))));
dataGridViewCellStyle6.ForeColor = System.Drawing.Color.White; dataGridViewCellStyle21.ForeColor = System.Drawing.Color.White;
this.dgvRunPoints.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle6; this.dgvRunPoints.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle21;
this.dgvRunPoints.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; this.dgvRunPoints.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
this.dgvRunPoints.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(11)))), ((int)(((byte)(16)))), ((int)(((byte)(36))))); this.dgvRunPoints.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(11)))), ((int)(((byte)(16)))), ((int)(((byte)(36)))));
this.dgvRunPoints.ColumnHeadersHeight = 30; this.dgvRunPoints.ColumnHeadersHeight = 30;
@ -652,14 +653,14 @@
this.dgvRunPoints.MultiSelect = false; this.dgvRunPoints.MultiSelect = false;
this.dgvRunPoints.Name = "dgvRunPoints"; this.dgvRunPoints.Name = "dgvRunPoints";
this.dgvRunPoints.ReadOnly = true; this.dgvRunPoints.ReadOnly = true;
dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle25.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle10.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(11)))), ((int)(((byte)(16)))), ((int)(((byte)(36))))); dataGridViewCellStyle25.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(11)))), ((int)(((byte)(16)))), ((int)(((byte)(36)))));
dataGridViewCellStyle10.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); dataGridViewCellStyle25.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle10.ForeColor = System.Drawing.Color.White; dataGridViewCellStyle25.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle10.SelectionBackColor = System.Drawing.Color.White; dataGridViewCellStyle25.SelectionBackColor = System.Drawing.Color.White;
dataGridViewCellStyle10.SelectionForeColor = System.Drawing.Color.White; dataGridViewCellStyle25.SelectionForeColor = System.Drawing.Color.White;
dataGridViewCellStyle10.WrapMode = System.Windows.Forms.DataGridViewTriState.True; dataGridViewCellStyle25.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dgvRunPoints.RowHeadersDefaultCellStyle = dataGridViewCellStyle10; this.dgvRunPoints.RowHeadersDefaultCellStyle = dataGridViewCellStyle25;
this.dgvRunPoints.RowHeadersVisible = false; this.dgvRunPoints.RowHeadersVisible = false;
this.dgvRunPoints.RowHeadersWidth = 30; this.dgvRunPoints.RowHeadersWidth = 30;
this.dgvRunPoints.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing; this.dgvRunPoints.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
@ -681,8 +682,8 @@
// dataGridViewTextBoxColumn2 // dataGridViewTextBoxColumn2
// //
this.dataGridViewTextBoxColumn2.DataPropertyName = "X"; this.dataGridViewTextBoxColumn2.DataPropertyName = "X";
dataGridViewCellStyle7.Format = "0.000"; dataGridViewCellStyle22.Format = "0.000";
this.dataGridViewTextBoxColumn2.DefaultCellStyle = dataGridViewCellStyle7; this.dataGridViewTextBoxColumn2.DefaultCellStyle = dataGridViewCellStyle22;
this.dataGridViewTextBoxColumn2.FillWeight = 35F; this.dataGridViewTextBoxColumn2.FillWeight = 35F;
this.dataGridViewTextBoxColumn2.HeaderText = "X"; this.dataGridViewTextBoxColumn2.HeaderText = "X";
this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2"; this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
@ -691,8 +692,8 @@
// dataGridViewTextBoxColumn3 // dataGridViewTextBoxColumn3
// //
this.dataGridViewTextBoxColumn3.DataPropertyName = "Y"; this.dataGridViewTextBoxColumn3.DataPropertyName = "Y";
dataGridViewCellStyle8.Format = "0.000"; dataGridViewCellStyle23.Format = "0.000";
this.dataGridViewTextBoxColumn3.DefaultCellStyle = dataGridViewCellStyle8; this.dataGridViewTextBoxColumn3.DefaultCellStyle = dataGridViewCellStyle23;
this.dataGridViewTextBoxColumn3.FillWeight = 35F; this.dataGridViewTextBoxColumn3.FillWeight = 35F;
this.dataGridViewTextBoxColumn3.HeaderText = "Y"; this.dataGridViewTextBoxColumn3.HeaderText = "Y";
this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3"; this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
@ -701,10 +702,10 @@
// dataGridViewLinkColumn1 // dataGridViewLinkColumn1
// //
this.dataGridViewLinkColumn1.ActiveLinkColor = System.Drawing.Color.White; this.dataGridViewLinkColumn1.ActiveLinkColor = System.Drawing.Color.White;
dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle24.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle9.BackColor = System.Drawing.Color.Silver; dataGridViewCellStyle24.BackColor = System.Drawing.Color.Silver;
dataGridViewCellStyle9.ForeColor = System.Drawing.Color.White; dataGridViewCellStyle24.ForeColor = System.Drawing.Color.White;
this.dataGridViewLinkColumn1.DefaultCellStyle = dataGridViewCellStyle9; this.dataGridViewLinkColumn1.DefaultCellStyle = dataGridViewCellStyle24;
this.dataGridViewLinkColumn1.FillWeight = 20F; this.dataGridViewLinkColumn1.FillWeight = 20F;
this.dataGridViewLinkColumn1.HeaderText = "Move"; this.dataGridViewLinkColumn1.HeaderText = "Move";
this.dataGridViewLinkColumn1.LinkBehavior = System.Windows.Forms.LinkBehavior.NeverUnderline; this.dataGridViewLinkColumn1.LinkBehavior = System.Windows.Forms.LinkBehavior.NeverUnderline;
@ -756,9 +757,9 @@
this.dgvSlotOffset.AllowUserToDeleteRows = false; this.dgvSlotOffset.AllowUserToDeleteRows = false;
this.dgvSlotOffset.AllowUserToResizeColumns = false; this.dgvSlotOffset.AllowUserToResizeColumns = false;
this.dgvSlotOffset.AllowUserToResizeRows = false; this.dgvSlotOffset.AllowUserToResizeRows = false;
dataGridViewCellStyle11.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(56)))), ((int)(((byte)(56))))); dataGridViewCellStyle26.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(56)))), ((int)(((byte)(56)))));
dataGridViewCellStyle11.ForeColor = System.Drawing.Color.White; dataGridViewCellStyle26.ForeColor = System.Drawing.Color.White;
this.dgvSlotOffset.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle11; this.dgvSlotOffset.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle26;
this.dgvSlotOffset.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; this.dgvSlotOffset.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
this.dgvSlotOffset.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.dgvSlotOffset.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.dgvSlotOffset.ColumnHeadersHeight = 30; this.dgvSlotOffset.ColumnHeadersHeight = 30;
@ -773,14 +774,14 @@
this.dgvSlotOffset.Location = new System.Drawing.Point(3, 17); this.dgvSlotOffset.Location = new System.Drawing.Point(3, 17);
this.dgvSlotOffset.MultiSelect = false; this.dgvSlotOffset.MultiSelect = false;
this.dgvSlotOffset.Name = "dgvSlotOffset"; this.dgvSlotOffset.Name = "dgvSlotOffset";
dataGridViewCellStyle15.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle30.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle15.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(11)))), ((int)(((byte)(16)))), ((int)(((byte)(36))))); dataGridViewCellStyle30.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(11)))), ((int)(((byte)(16)))), ((int)(((byte)(36)))));
dataGridViewCellStyle15.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); dataGridViewCellStyle30.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle15.ForeColor = System.Drawing.Color.White; dataGridViewCellStyle30.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle15.SelectionBackColor = System.Drawing.Color.White; dataGridViewCellStyle30.SelectionBackColor = System.Drawing.Color.White;
dataGridViewCellStyle15.SelectionForeColor = System.Drawing.Color.White; dataGridViewCellStyle30.SelectionForeColor = System.Drawing.Color.White;
dataGridViewCellStyle15.WrapMode = System.Windows.Forms.DataGridViewTriState.True; dataGridViewCellStyle30.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dgvSlotOffset.RowHeadersDefaultCellStyle = dataGridViewCellStyle15; this.dgvSlotOffset.RowHeadersDefaultCellStyle = dataGridViewCellStyle30;
this.dgvSlotOffset.RowHeadersVisible = false; this.dgvSlotOffset.RowHeadersVisible = false;
this.dgvSlotOffset.RowHeadersWidth = 30; this.dgvSlotOffset.RowHeadersWidth = 30;
this.dgvSlotOffset.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing; this.dgvSlotOffset.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
@ -802,8 +803,8 @@
// dataGridViewTextBoxColumn5 // dataGridViewTextBoxColumn5
// //
this.dataGridViewTextBoxColumn5.DataPropertyName = "OffsetX"; this.dataGridViewTextBoxColumn5.DataPropertyName = "OffsetX";
dataGridViewCellStyle12.Format = "0.000"; dataGridViewCellStyle27.Format = "0.000";
this.dataGridViewTextBoxColumn5.DefaultCellStyle = dataGridViewCellStyle12; this.dataGridViewTextBoxColumn5.DefaultCellStyle = dataGridViewCellStyle27;
this.dataGridViewTextBoxColumn5.FillWeight = 30F; this.dataGridViewTextBoxColumn5.FillWeight = 30F;
this.dataGridViewTextBoxColumn5.HeaderText = "X偏移"; this.dataGridViewTextBoxColumn5.HeaderText = "X偏移";
this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5"; this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5";
@ -811,8 +812,8 @@
// dataGridViewTextBoxColumn6 // dataGridViewTextBoxColumn6
// //
this.dataGridViewTextBoxColumn6.DataPropertyName = "OffsetY"; this.dataGridViewTextBoxColumn6.DataPropertyName = "OffsetY";
dataGridViewCellStyle13.Format = "0.000"; dataGridViewCellStyle28.Format = "0.000";
this.dataGridViewTextBoxColumn6.DefaultCellStyle = dataGridViewCellStyle13; this.dataGridViewTextBoxColumn6.DefaultCellStyle = dataGridViewCellStyle28;
this.dataGridViewTextBoxColumn6.FillWeight = 30F; this.dataGridViewTextBoxColumn6.FillWeight = 30F;
this.dataGridViewTextBoxColumn6.HeaderText = "Y偏移"; this.dataGridViewTextBoxColumn6.HeaderText = "Y偏移";
this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6"; this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6";
@ -820,10 +821,10 @@
// dataGridViewLinkColumn2 // dataGridViewLinkColumn2
// //
this.dataGridViewLinkColumn2.DataPropertyName = "OffsetA"; this.dataGridViewLinkColumn2.DataPropertyName = "OffsetA";
dataGridViewCellStyle14.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle29.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle14.BackColor = System.Drawing.Color.Silver; dataGridViewCellStyle29.BackColor = System.Drawing.Color.Silver;
dataGridViewCellStyle14.ForeColor = System.Drawing.Color.White; dataGridViewCellStyle29.ForeColor = System.Drawing.Color.White;
this.dataGridViewLinkColumn2.DefaultCellStyle = dataGridViewCellStyle14; this.dataGridViewLinkColumn2.DefaultCellStyle = dataGridViewCellStyle29;
this.dataGridViewLinkColumn2.FillWeight = 30F; this.dataGridViewLinkColumn2.FillWeight = 30F;
this.dataGridViewLinkColumn2.HeaderText = "旋转偏移"; this.dataGridViewLinkColumn2.HeaderText = "旋转偏移";
this.dataGridViewLinkColumn2.Name = "dataGridViewLinkColumn2"; this.dataGridViewLinkColumn2.Name = "dataGridViewLinkColumn2";
@ -849,10 +850,12 @@
this.rsTray1.RowNum = 4; this.rsTray1.RowNum = 4;
this.rsTray1.RowSpace = 3; this.rsTray1.RowSpace = 3;
this.rsTray1.SelectSlot = null; this.rsTray1.SelectSlot = null;
this.rsTray1.ShowStatus = true;
this.rsTray1.ShowText = false; this.rsTray1.ShowText = false;
this.rsTray1.SinglePoint = false; this.rsTray1.SinglePoint = false;
this.rsTray1.Size = new System.Drawing.Size(237, 265); this.rsTray1.Size = new System.Drawing.Size(237, 265);
this.rsTray1.SortDir = Rs.Controls.ESortDir.Horizontal; this.rsTray1.SortDir = Rs.Controls.ESortDir.Horizontal;
this.rsTray1.Status = null;
this.rsTray1.TabIndex = 0; this.rsTray1.TabIndex = 0;
this.rsTray1.TopSpaceHeight = 20; this.rsTray1.TopSpaceHeight = 20;
this.rsTray1.SlotClickEvent += new System.Action<Rs.Controls.TraySlot, System.Windows.Forms.MouseEventArgs>(this.rsTray1_SlotClickEvent); this.rsTray1.SlotClickEvent += new System.Action<Rs.Controls.TraySlot, System.Windows.Forms.MouseEventArgs>(this.rsTray1_SlotClickEvent);
@ -874,6 +877,7 @@
this.groupBox1.Controls.Add(this.btnSaveTurnoverTraySlotOffsetDistX); this.groupBox1.Controls.Add(this.btnSaveTurnoverTraySlotOffsetDistX);
this.groupBox1.Controls.Add(this.btnSaveTurnoverTrayMark2CenterDistX); this.groupBox1.Controls.Add(this.btnSaveTurnoverTrayMark2CenterDistX);
this.groupBox1.Controls.Add(this.btnTeachTurnoverTrayMarkX1); this.groupBox1.Controls.Add(this.btnTeachTurnoverTrayMarkX1);
this.groupBox1.Controls.Add(this.btnCreateTrayStatus);
this.groupBox1.Controls.Add(this.btnCreateMatrix); this.groupBox1.Controls.Add(this.btnCreateMatrix);
this.groupBox1.Controls.Add(this.btnMoveTurnoverTrayMarkY1); this.groupBox1.Controls.Add(this.btnMoveTurnoverTrayMarkY1);
this.groupBox1.Controls.Add(this.btnMoveTurnoverTrayMarkX1); this.groupBox1.Controls.Add(this.btnMoveTurnoverTrayMarkX1);
@ -1192,6 +1196,21 @@
this.cameraTemplate1.Size = new System.Drawing.Size(1030, 829); this.cameraTemplate1.Size = new System.Drawing.Size(1030, 829);
this.cameraTemplate1.TabIndex = 2; this.cameraTemplate1.TabIndex = 2;
// //
// btnCreateTrayStatus
//
this.btnCreateTrayStatus.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(56)))), ((int)(((byte)(56)))));
this.btnCreateTrayStatus.FlatAppearance.BorderColor = System.Drawing.Color.White;
this.btnCreateTrayStatus.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnCreateTrayStatus.ForeColor = System.Drawing.Color.White;
this.btnCreateTrayStatus.Location = new System.Drawing.Point(12, 151);
this.btnCreateTrayStatus.Name = "btnCreateTrayStatus";
this.btnCreateTrayStatus.Size = new System.Drawing.Size(133, 51);
this.btnCreateTrayStatus.TabIndex = 49;
this.btnCreateTrayStatus.Tag = "LoadY";
this.btnCreateTrayStatus.Text = "CreateTrayStatus";
this.btnCreateTrayStatus.UseVisualStyleBackColor = false;
this.btnCreateTrayStatus.Click += new System.EventHandler(this.btnCreateTrayStatus_Click);
//
// TurnoverLocationRecipe // TurnoverLocationRecipe
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
@ -1314,5 +1333,6 @@
private System.Windows.Forms.ToolStripMenuItem dumpProductToolStripMenuItem8; private System.Windows.Forms.ToolStripMenuItem dumpProductToolStripMenuItem8;
private System.Windows.Forms.ToolStripMenuItem moveToolStripMenuItem8; private System.Windows.Forms.ToolStripMenuItem moveToolStripMenuItem8;
private System.Windows.Forms.ToolStripMenuItem moveToolStripMenuItem9; private System.Windows.Forms.ToolStripMenuItem moveToolStripMenuItem9;
private System.Windows.Forms.Button btnCreateTrayStatus;
} }
} }

@ -388,5 +388,21 @@ namespace Rs.MotionPlat.Recipe
TurnoverSlotOffset.Reload(); TurnoverSlotOffset.Reload();
} }
} }
private void btnCreateTrayStatus_Click(object sender, EventArgs e)
{
string deleteSql = "delete from traystatus where trayname='turnover'";
db.ExecuteNonQuery(deleteSql);
string insertSql = "insert into traystatus(trayname,slotindex,status) values('{0}',{1},{2})";
for(int i=1;i<=rsTray1.RowNum;i++)
{
for(int j=1;j<=rsTray1.ColumnNum;j++)
{
int index = j + (i - 1) * rsTray1.ColumnNum;
string executeSql = string.Format(insertSql, "turnover", index, 0);
db.ExecuteNonQuery(executeSql);
}
}
}
} }
} }

Loading…
Cancel
Save