Commit 9f35dc4d LN

程序增加:线体宽度字段。选择程序后自动调宽

1 个父辈 31d33c0b
...@@ -90,13 +90,13 @@ namespace TSA_V.Common ...@@ -90,13 +90,13 @@ namespace TSA_V.Common
public static string AuToSoldering_FilePath = "AuToSoldering_FilePath"; public static string AuToSoldering_FilePath = "AuToSoldering_FilePath";
public static string IsDebug = "IsDebug"; public static string IsDebug = "IsDebug";
public static string XAxis_Change = "XAxis_Change"; // public static string XAxis_Change = "XAxis_Change";
public static string XAxis_MaxValue = "XAxis_MaxValue"; //public static string XAxis_MaxValue = "XAxis_MaxValue";
public static string XAxis_MinValue = "XAxis_MinValue"; //public static string XAxis_MinValue = "XAxis_MinValue";
public static string YAxis_Change = "YAxis_Change"; //public static string YAxis_Change = "YAxis_Change";
public static string YAxis_MaxValue = "YAxis_MaxValue"; //public static string YAxis_MaxValue = "YAxis_MaxValue";
public static string YAxis_MinValue = "YAxis_MinValue"; //public static string YAxis_MinValue = "YAxis_MinValue";
public static string SolderingLedIP = "SolderingLedIP"; public static string SolderingLedIP = "SolderingLedIP";
......
...@@ -60,6 +60,10 @@ namespace TSA_V.DeviceLibrary ...@@ -60,6 +60,10 @@ namespace TSA_V.DeviceLibrary
/// </summary> /// </summary>
public int orgType { get; set; } public int orgType { get; set; }
/// <summary>
/// 线体宽度
/// </summary>
public int LineWidth { get; set; }
public double BaseX = 0; public double BaseX = 0;
public double BaseY = 0; public double BaseY = 0;
...@@ -97,9 +101,13 @@ namespace TSA_V.DeviceLibrary ...@@ -97,9 +101,13 @@ namespace TSA_V.DeviceLibrary
} }
} }
public string GetDes( ) public string GetDes()
{ {
return " "+ResourceControl.GetString(ResourceControl.Length,"长度")+":" + boardLength + ","+ ResourceControl.GetString(ResourceControl.Width, "宽度")+":" + boardWidth + ","+ ResourceControl.GetString(ResourceControl.InfoCount, "组件数量") + ":" + smtList.Count; return " " + ResourceControl.GetString(ResourceControl.Length, "长度") + ":" + boardLength +
"," + ResourceControl.GetString(ResourceControl.Width, "宽度") + ":" + boardWidth +
"," + ResourceControl.GetString(ResourceControl.LineWidth, "线体宽度") + ":" + LineWidth +
"," + ResourceControl.GetString(ResourceControl.InfoCount, "组件数量") +
":" + smtList.Count;
//return "电路板名称:" + boardName + ",长度:" + boardLength + ",宽度:" + boardWidth + ",组装信息数量:" + pointList.Count; //return "电路板名称:" + boardName + ",长度:" + boardLength + ",宽度:" + boardWidth + ",组装信息数量:" + pointList.Count;
} }
......
...@@ -100,6 +100,10 @@ namespace TSA_V.DeviceLibrary ...@@ -100,6 +100,10 @@ namespace TSA_V.DeviceLibrary
{ {
board.orgType = 1; board.orgType = 1;
} }
if (board.LineWidth <= 0)
{
board.LineWidth = board.boardWidth;
}
boardList.Add(board); boardList.Add(board);
} }
} }
......
...@@ -83,6 +83,13 @@ namespace TSA_V.DeviceLibrary ...@@ -83,6 +83,13 @@ namespace TSA_V.DeviceLibrary
// PUSICANLibrary.PUSICANControl.AbsMove(Line_NodeAddr, targetPosition); // PUSICANLibrary.PUSICANControl.AbsMove(Line_NodeAddr, targetPosition);
Stopwatch stopwatch = new Stopwatch(); Stopwatch stopwatch = new Stopwatch();
stopwatch.Start(); stopwatch.Start();
if (PUSICANControl.IsBusy(Line_NodeAddr))
{
LogUtil.info(logName + " Node[" + Line_NodeAddr + "]开始原点返回前发现在忙碌中,先停止运动");
PUSICANControl.StopMove(Line_NodeAddr);
}
LogUtil.info(logName + " Node[" + Line_NodeAddr + "]开始原点返回"); LogUtil.info(logName + " Node[" + Line_NodeAddr + "]开始原点返回");
PUSICANControl.HomeMove(LWidthManager.Line_NodeAddr,true); PUSICANControl.HomeMove(LWidthManager.Line_NodeAddr,true);
while (true) while (true)
......
...@@ -122,5 +122,9 @@ namespace TSA_V ...@@ -122,5 +122,9 @@ namespace TSA_V
/// 已工作{0},{1}块电路板 /// 已工作{0},{1}块电路板
/// </summary> /// </summary>
public static string WorkInfoMsg = "WorkInfoMsg"; public static string WorkInfoMsg = "WorkInfoMsg";
/// <summary>
/// 线体宽度
/// </summary>
public static string LineWidth = "LineWidth";
} }
} }
...@@ -617,11 +617,16 @@ namespace TSA_V.DeviceLibrary ...@@ -617,11 +617,16 @@ namespace TSA_V.DeviceLibrary
public static double X_Min = (double)ConfigAppSettings.GetNumValue(Setting_Init.XAxis_MinValue); //public static double X_Min = (double)ConfigAppSettings.GetNumValue(Setting_Init.XAxis_MinValue);
public static double X_Max = (double)ConfigAppSettings.GetNumValue(Setting_Init.XAxis_MaxValue); //public static double X_Max = (double)ConfigAppSettings.GetNumValue(Setting_Init.XAxis_MaxValue);
public static double Y_Min = (double)ConfigAppSettings.GetNumValue(Setting_Init.YAxis_MinValue); //public static double Y_Min = (double)ConfigAppSettings.GetNumValue(Setting_Init.YAxis_MinValue);
public static double Y_Max = (double)ConfigAppSettings.GetNumValue(Setting_Init.YAxis_MaxValue); //public static double Y_Max = (double)ConfigAppSettings.GetNumValue(Setting_Init.YAxis_MaxValue);
public static double X_Min = 1;
public static double X_Max = 1920;
public static double Y_Min = 1;
public static double Y_Max = 1080;
public static double X_ChangeValue = 1;
public static double Y_ChangeValue = 1;
/// <summary> /// <summary>
/// 判断是否是有效的地址 /// 判断是否是有效的地址
/// </summary> /// </summary>
......
...@@ -628,26 +628,7 @@ namespace PUSICANLibrary ...@@ -628,26 +628,7 @@ namespace PUSICANLibrary
result = PUSICANControl.WriteSDO(nodeid, CAN_Address.RelativeMove, (speed)); result = PUSICANControl.WriteSDO(nodeid, CAN_Address.RelativeMove, (speed));
return CheckWriteResult(result, " node [" + nodeid + "] CAN_Address.RelativeMove"); return CheckWriteResult(result, " node [" + nodeid + "] CAN_Address.RelativeMove");
} }
///// <summary>
///// 原点返回
///// </summary>
//public static bool HomeMove(uint nodeid, int speed)
//{
// //写模式
// PUSIResult result;
// PUSICANControl.WriteSDO(nodeid, CAN_Address.MoveType, 1);
// if (speed < 0)
// {
// PUSICANControl.WriteSDO(nodeid, CAN_Address.MoveDirection, 1);
// }
// else
// {
// PUSICANControl.WriteSDO(nodeid, CAN_Address.MoveDirection, 0);
// }
// SetMaxSpeed(nodeid, speed);
// result = PUSICANControl.WriteSDO(nodeid, CAN_Address.RelativeMove, Math.Abs(speed));
// return CheckWriteResult(result, " node [" + nodeid + "] CAN_Address.RelativeMove");
//}
/// <summary> /// <summary>
/// 原点返回 ,旋转轴原点返回使用的方法 /// 原点返回 ,旋转轴原点返回使用的方法
/// </summary> /// </summary>
...@@ -1052,3 +1033,17 @@ namespace PUSICANLibrary ...@@ -1052,3 +1033,17 @@ namespace PUSICANLibrary
} }
} }
public class NodeConfig
{
public uint NodeId { get; set; }
public int AddSpeed { get; set; }
public int DelSpeed { get; set; }
public int MaxPhaseCurrent { get; set; }
public int HomeStartSpeed { get; set; }
public int HomeStopSpeed { get; set; }
public int MaxSpeed { get; set; }
public int MicroStepping { get; set; }
public int DelPhaseCurrent { get; set; }
}
...@@ -62,15 +62,7 @@ ...@@ -62,15 +62,7 @@
<add key="RNode_Addr_2_4" value="9" /> <add key="RNode_Addr_2_4" value="9" />
<add key="RNode_Addr_2_5" value="10" /> <add key="RNode_Addr_2_5" value="10" />
<add key="app.title" value="智能组装工作站" /> <add key="app.title" value="智能组装工作站" />
<!--表示X1毫米对应的脉冲数-->
<add key="XAxis_Change" value="1" />
<add key="XAxis_MaxValue" value="1920" />
<add key="XAxis_MinValue" value="1" />
<!--<add key="XAxis_HomeValue" value="2000" />-->
<!--表示Y1毫米对应的脉冲数-->
<add key="YAxis_Change" value="1" />
<add key="YAxis_MaxValue" value="1920" />
<add key="YAxis_MinValue" value="1" />
<!--0=脚踏模式,1=自动模式,间隔指定的时间自动下一步--> <!--0=脚踏模式,1=自动模式,间隔指定的时间自动下一步-->
<add key="WorkMode" value="1" /> <add key="WorkMode" value="1" />
<!-- 自动模式间隔时间/秒--> <!-- 自动模式间隔时间/秒-->
......
...@@ -53,6 +53,9 @@ ...@@ -53,6 +53,9 @@
this.cmbOrgType = new System.Windows.Forms.ComboBox(); this.cmbOrgType = new System.Windows.Forms.ComboBox();
this.xyMoveControl1 = new UserFromControl.ProjectorControl(); this.xyMoveControl1 = new UserFromControl.ProjectorControl();
this.chbSort = new System.Windows.Forms.CheckBox(); this.chbSort = new System.Windows.Forms.CheckBox();
this.lblLineWidth = new System.Windows.Forms.Label();
this.txtLineWidth = new System.Windows.Forms.TextBox();
this.label9 = new System.Windows.Forms.Label();
this.SuspendLayout(); this.SuspendLayout();
// //
// timer1 // timer1
...@@ -121,7 +124,7 @@ ...@@ -121,7 +124,7 @@
// label5 // label5
// //
this.label5.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label5.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label5.Location = new System.Drawing.Point(386, 62); this.label5.Location = new System.Drawing.Point(390, 23);
this.label5.Name = "label5"; this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(97, 20); this.label5.Size = new System.Drawing.Size(97, 20);
this.label5.TabIndex = 282; this.label5.TabIndex = 282;
...@@ -131,7 +134,7 @@ ...@@ -131,7 +134,7 @@
// label4 // label4
// //
this.label4.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label4.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label4.Location = new System.Drawing.Point(403, 102); this.label4.Location = new System.Drawing.Point(407, 63);
this.label4.Name = "label4"; this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(80, 20); this.label4.Size = new System.Drawing.Size(80, 20);
this.label4.TabIndex = 281; this.label4.TabIndex = 281;
...@@ -141,7 +144,7 @@ ...@@ -141,7 +144,7 @@
// txtBoardL // txtBoardL
// //
this.txtBoardL.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.txtBoardL.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtBoardL.Location = new System.Drawing.Point(489, 99); this.txtBoardL.Location = new System.Drawing.Point(493, 60);
this.txtBoardL.MaxLength = 8; this.txtBoardL.MaxLength = 8;
this.txtBoardL.Name = "txtBoardL"; this.txtBoardL.Name = "txtBoardL";
this.txtBoardL.Size = new System.Drawing.Size(70, 29); this.txtBoardL.Size = new System.Drawing.Size(70, 29);
...@@ -150,7 +153,7 @@ ...@@ -150,7 +153,7 @@
// txtBoardW // txtBoardW
// //
this.txtBoardW.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.txtBoardW.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtBoardW.Location = new System.Drawing.Point(489, 60); this.txtBoardW.Location = new System.Drawing.Point(493, 21);
this.txtBoardW.MaxLength = 8; this.txtBoardW.MaxLength = 8;
this.txtBoardW.Name = "txtBoardW"; this.txtBoardW.Name = "txtBoardW";
this.txtBoardW.Size = new System.Drawing.Size(70, 29); this.txtBoardW.Size = new System.Drawing.Size(70, 29);
...@@ -160,7 +163,7 @@ ...@@ -160,7 +163,7 @@
// //
this.label25.AutoSize = true; this.label25.AutoSize = true;
this.label25.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label25.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label25.Location = new System.Drawing.Point(566, 102); this.label25.Location = new System.Drawing.Point(570, 63);
this.label25.Name = "label25"; this.label25.Name = "label25";
this.label25.Size = new System.Drawing.Size(30, 17); this.label25.Size = new System.Drawing.Size(30, 17);
this.label25.TabIndex = 280; this.label25.TabIndex = 280;
...@@ -170,7 +173,7 @@ ...@@ -170,7 +173,7 @@
// //
this.label24.AutoSize = true; this.label24.AutoSize = true;
this.label24.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label24.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label24.Location = new System.Drawing.Point(565, 66); this.label24.Location = new System.Drawing.Point(569, 27);
this.label24.Name = "label24"; this.label24.Name = "label24";
this.label24.Size = new System.Drawing.Size(30, 17); this.label24.Size = new System.Drawing.Size(30, 17);
this.label24.TabIndex = 279; this.label24.TabIndex = 279;
...@@ -282,7 +285,7 @@ ...@@ -282,7 +285,7 @@
this.xyMoveControl1.PenWidth = 2; this.xyMoveControl1.PenWidth = 2;
this.xyMoveControl1.PointSizeX = 1; this.xyMoveControl1.PointSizeX = 1;
this.xyMoveControl1.PointSizeY = 1; this.xyMoveControl1.PointSizeY = 1;
this.xyMoveControl1.PointType = 0; this.xyMoveControl1.PointType = 1;
this.xyMoveControl1.ShowText = ""; this.xyMoveControl1.ShowText = "";
this.xyMoveControl1.Size = new System.Drawing.Size(526, 315); this.xyMoveControl1.Size = new System.Drawing.Size(526, 315);
this.xyMoveControl1.TabIndex = 287; this.xyMoveControl1.TabIndex = 287;
...@@ -302,10 +305,42 @@ ...@@ -302,10 +305,42 @@
this.chbSort.Text = "自动排序"; this.chbSort.Text = "自动排序";
this.chbSort.UseVisualStyleBackColor = true; this.chbSort.UseVisualStyleBackColor = true;
// //
// lblLineWidth
//
this.lblLineWidth.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblLineWidth.Location = new System.Drawing.Point(407, 104);
this.lblLineWidth.Name = "lblLineWidth";
this.lblLineWidth.Size = new System.Drawing.Size(80, 20);
this.lblLineWidth.TabIndex = 294;
this.lblLineWidth.Text = "线体宽度:";
this.lblLineWidth.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// txtLineWidth
//
this.txtLineWidth.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtLineWidth.Location = new System.Drawing.Point(493, 100);
this.txtLineWidth.MaxLength = 8;
this.txtLineWidth.Name = "txtLineWidth";
this.txtLineWidth.Size = new System.Drawing.Size(70, 29);
this.txtLineWidth.TabIndex = 292;
//
// label9
//
this.label9.AutoSize = true;
this.label9.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label9.Location = new System.Drawing.Point(570, 106);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(30, 17);
this.label9.TabIndex = 293;
this.label9.Text = "mm";
//
// FrmAddBoard // FrmAddBoard
// //
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;
this.ClientSize = new System.Drawing.Size(632, 707); this.ClientSize = new System.Drawing.Size(632, 707);
this.Controls.Add(this.lblLineWidth);
this.Controls.Add(this.txtLineWidth);
this.Controls.Add(this.label9);
this.Controls.Add(this.chbSort); this.Controls.Add(this.chbSort);
this.Controls.Add(this.label8); this.Controls.Add(this.label8);
this.Controls.Add(this.cmbOrgType); this.Controls.Add(this.cmbOrgType);
...@@ -362,5 +397,8 @@ ...@@ -362,5 +397,8 @@
private System.Windows.Forms.Label label8; private System.Windows.Forms.Label label8;
private System.Windows.Forms.ComboBox cmbOrgType; private System.Windows.Forms.ComboBox cmbOrgType;
private System.Windows.Forms.CheckBox chbSort; private System.Windows.Forms.CheckBox chbSort;
private System.Windows.Forms.Label lblLineWidth;
private System.Windows.Forms.TextBox txtLineWidth;
private System.Windows.Forms.Label label9;
} }
} }
\ No newline at end of file \ No newline at end of file
...@@ -72,6 +72,7 @@ namespace TSA_V ...@@ -72,6 +72,7 @@ namespace TSA_V
} }
board.boardLength = FormUtil.GetIntValue(txtBoardW); board.boardLength = FormUtil.GetIntValue(txtBoardW);
board.boardWidth = FormUtil.GetIntValue(txtBoardL); board.boardWidth = FormUtil.GetIntValue(txtBoardL);
if (board.boardLength <= 0) if (board.boardLength <= 0)
{ {
MessageBox.Show(ResourceCulture.GetString(ResourceCulture.WriteLength, "请输入宽度!")); MessageBox.Show(ResourceCulture.GetString(ResourceCulture.WriteLength, "请输入宽度!"));
...@@ -84,6 +85,13 @@ namespace TSA_V ...@@ -84,6 +85,13 @@ namespace TSA_V
this.txtBoardL.Focus(); this.txtBoardL.Focus();
return false ; return false ;
} }
board.LineWidth = FormUtil.GetIntValue(txtLineWidth);
if (board.LineWidth <= 0)
{
MessageBox.Show(ResourceCulture.GetString(ResourceCulture.WriteLineWidth, "请输入线体宽度!"));
this.txtLineWidth.Focus();
return false;
}
if (!TSAVBean.IsValidPosition(board.originX, board.originY)) if (!TSAVBean.IsValidPosition(board.originX, board.originY))
{ {
MessageBox.Show(ResourceCulture.GetString(ResourceCulture.WPointP, "请输入有效的右下角坐标!")); MessageBox.Show(ResourceCulture.GetString(ResourceCulture.WPointP, "请输入有效的右下角坐标!"));
...@@ -113,8 +121,8 @@ namespace TSA_V ...@@ -113,8 +121,8 @@ namespace TSA_V
} }
List<SMTPointInfo> smtList = new List<SMTPointInfo>(); List<SMTPointInfo> smtList = new List<SMTPointInfo>();
int i = 1; int i = 1;
double xNodeChange =(double) ConfigAppSettings.GetNumValue(Setting_Init.XAxis_Change); double xNodeChange = TSAVBean.X_ChangeValue;
double yNodeChange = (double)ConfigAppSettings.GetNumValue(Setting_Init.YAxis_Change); double yNodeChange = TSAVBean.Y_ChangeValue;
LogUtil.info("新增【"+board.boardName+"】,根据换算参数计算红外坐标(转换系数:x["+xNodeChange + "]y["+yNodeChange+"])"); LogUtil.info("新增【"+board.boardName+"】,根据换算参数计算红外坐标(转换系数:x["+xNodeChange + "]y["+yNodeChange+"])");
double pianYiX = 0, pianYiY = 0; double pianYiX = 0, pianYiY = 0;
......
...@@ -47,8 +47,6 @@ ...@@ -47,8 +47,6 @@
this.dataGridViewImageColumn2 = new System.Windows.Forms.DataGridViewImageColumn(); this.dataGridViewImageColumn2 = new System.Windows.Forms.DataGridViewImageColumn();
this.panel1 = new System.Windows.Forms.Panel(); this.panel1 = new System.Windows.Forms.Panel();
this.btnCheck = new System.Windows.Forms.Button(); this.btnCheck = new System.Windows.Forms.Button();
this.chbNormal = new System.Windows.Forms.CheckBox();
this.chbShowName = new System.Windows.Forms.CheckBox();
this.groupBox2 = new System.Windows.Forms.GroupBox(); this.groupBox2 = new System.Windows.Forms.GroupBox();
this.label8 = new System.Windows.Forms.Label(); this.label8 = new System.Windows.Forms.Label();
this.label122 = new System.Windows.Forms.Label(); this.label122 = new System.Windows.Forms.Label();
...@@ -57,11 +55,14 @@ ...@@ -57,11 +55,14 @@
this.txtXUpdate = new System.Windows.Forms.TextBox(); this.txtXUpdate = new System.Windows.Forms.TextBox();
this.txtYUpdate = new System.Windows.Forms.TextBox(); this.txtYUpdate = new System.Windows.Forms.TextBox();
this.label10 = new System.Windows.Forms.Label(); this.label10 = new System.Windows.Forms.Label();
this.btnSort = new System.Windows.Forms.Button(); this.chbNormal = new System.Windows.Forms.CheckBox();
this.label7 = new System.Windows.Forms.Label();
this.lblMousePosition = new System.Windows.Forms.Label(); this.lblMousePosition = new System.Windows.Forms.Label();
this.chbShowName = new System.Windows.Forms.CheckBox();
this.btnSort = new System.Windows.Forms.Button();
this.btnGoHome = new System.Windows.Forms.Button(); this.btnGoHome = new System.Windows.Forms.Button();
this.焊点列表 = new System.Windows.Forms.GroupBox(); this.焊点列表 = new System.Windows.Forms.GroupBox();
this.btnOpenFile = new System.Windows.Forms.Button();
this.label7 = new System.Windows.Forms.Label();
this.dgvList = new System.Windows.Forms.DataGridView(); this.dgvList = new System.Windows.Forms.DataGridView();
this.Column_pointNum = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Column_pointNum = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column_PartNum = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Column_PartNum = new System.Windows.Forms.DataGridViewTextBoxColumn();
...@@ -87,15 +88,15 @@ ...@@ -87,15 +88,15 @@
this.Column_Del = new System.Windows.Forms.DataGridViewLinkColumn(); this.Column_Del = new System.Windows.Forms.DataGridViewLinkColumn();
this.Column_Up = new System.Windows.Forms.DataGridViewImageColumn(); this.Column_Up = new System.Windows.Forms.DataGridViewImageColumn();
this.Column_Down = new System.Windows.Forms.DataGridViewImageColumn(); this.Column_Down = new System.Windows.Forms.DataGridViewImageColumn();
this.button1 = new System.Windows.Forms.Button();
this.btnOpenFile = new System.Windows.Forms.Button();
this.btnSave = new System.Windows.Forms.Button();
this.lblMsg = new System.Windows.Forms.Label(); this.lblMsg = new System.Windows.Forms.Label();
this.btnSetOrigin = new System.Windows.Forms.Button(); this.btnSetOrigin = new System.Windows.Forms.Button();
this.panel3 = new System.Windows.Forms.Panel(); this.panel3 = new System.Windows.Forms.Panel();
this.panBoard = new System.Windows.Forms.Panel(); this.panBoard = new System.Windows.Forms.Panel();
this.picBoard = new System.Windows.Forms.PictureBox(); this.picBoard = new System.Windows.Forms.PictureBox();
this.groupBox1 = new System.Windows.Forms.GroupBox(); this.groupBox1 = new System.Windows.Forms.GroupBox();
this.lblLineW = new System.Windows.Forms.Label();
this.txtLineWidth = new System.Windows.Forms.TextBox();
this.lbllinews = new System.Windows.Forms.Label();
this.btnConfigAOI = new System.Windows.Forms.Button(); this.btnConfigAOI = new System.Windows.Forms.Button();
this.lblAoi = new System.Windows.Forms.Label(); this.lblAoi = new System.Windows.Forms.Label();
this.cmbAOIFile = new System.Windows.Forms.ComboBox(); this.cmbAOIFile = new System.Windows.Forms.ComboBox();
...@@ -109,6 +110,8 @@ ...@@ -109,6 +110,8 @@
this.txtBoardW = new System.Windows.Forms.TextBox(); this.txtBoardW = new System.Windows.Forms.TextBox();
this.label25 = new System.Windows.Forms.Label(); this.label25 = new System.Windows.Forms.Label();
this.label24 = new System.Windows.Forms.Label(); this.label24 = new System.Windows.Forms.Label();
this.button1 = new System.Windows.Forms.Button();
this.btnSave = new System.Windows.Forms.Button();
this.contextMenuStrip1.SuspendLayout(); this.contextMenuStrip1.SuspendLayout();
this.contextMenuStrip2.SuspendLayout(); this.contextMenuStrip2.SuspendLayout();
this.panel1.SuspendLayout(); this.panel1.SuspendLayout();
...@@ -213,26 +216,25 @@ ...@@ -213,26 +216,25 @@
// panel1 // panel1
// //
this.panel1.AutoScroll = true; this.panel1.AutoScroll = true;
this.panel1.Controls.Add(this.btnOpenFile);
this.panel1.Controls.Add(this.btnCheck); this.panel1.Controls.Add(this.btnCheck);
this.panel1.Controls.Add(this.groupBox2);
this.panel1.Controls.Add(this.chbNormal); this.panel1.Controls.Add(this.chbNormal);
this.panel1.Controls.Add(this.lblMousePosition);
this.panel1.Controls.Add(this.chbShowName); this.panel1.Controls.Add(this.chbShowName);
this.panel1.Controls.Add(this.groupBox2);
this.panel1.Controls.Add(this.btnSort); this.panel1.Controls.Add(this.btnSort);
this.panel1.Controls.Add(this.label7);
this.panel1.Controls.Add(this.lblMousePosition);
this.panel1.Controls.Add(this.btnGoHome); this.panel1.Controls.Add(this.btnGoHome);
this.panel1.Controls.Add(this.焊点列表); this.panel1.Controls.Add(this.焊点列表);
this.panel1.Controls.Add(this.button1);
this.panel1.Controls.Add(this.btnOpenFile);
this.panel1.Controls.Add(this.btnSave);
this.panel1.Controls.Add(this.lblMsg); this.panel1.Controls.Add(this.lblMsg);
this.panel1.Controls.Add(this.btnSetOrigin); this.panel1.Controls.Add(this.btnSetOrigin);
this.panel1.Controls.Add(this.panel3); this.panel1.Controls.Add(this.panel3);
this.panel1.Controls.Add(this.groupBox1); this.panel1.Controls.Add(this.groupBox1);
this.panel1.Controls.Add(this.button1);
this.panel1.Controls.Add(this.btnSave);
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel1.Location = new System.Drawing.Point(0, 0); this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1"; this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(1344, 634); this.panel1.Size = new System.Drawing.Size(1549, 701);
this.panel1.TabIndex = 0; this.panel1.TabIndex = 0;
// //
// btnCheck // btnCheck
...@@ -240,7 +242,7 @@ ...@@ -240,7 +242,7 @@
this.btnCheck.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.btnCheck.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.btnCheck.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnCheck.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnCheck.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnCheck.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnCheck.Location = new System.Drawing.Point(457, 566); this.btnCheck.Location = new System.Drawing.Point(470, 644);
this.btnCheck.Name = "btnCheck"; this.btnCheck.Name = "btnCheck";
this.btnCheck.Size = new System.Drawing.Size(120, 45); this.btnCheck.Size = new System.Drawing.Size(120, 45);
this.btnCheck.TabIndex = 291; this.btnCheck.TabIndex = 291;
...@@ -248,34 +250,6 @@ ...@@ -248,34 +250,6 @@
this.btnCheck.UseVisualStyleBackColor = true; this.btnCheck.UseVisualStyleBackColor = true;
this.btnCheck.Click += new System.EventHandler(this.btnCheck_Click); this.btnCheck.Click += new System.EventHandler(this.btnCheck_Click);
// //
// chbNormal
//
this.chbNormal.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.chbNormal.AutoSize = true;
this.chbNormal.Checked = true;
this.chbNormal.CheckState = System.Windows.Forms.CheckState.Checked;
this.chbNormal.Location = new System.Drawing.Point(1205, 598);
this.chbNormal.Name = "chbNormal";
this.chbNormal.Size = new System.Drawing.Size(84, 16);
this.chbNormal.TabIndex = 281;
this.chbNormal.Text = "图片自适应";
this.chbNormal.UseVisualStyleBackColor = true;
this.chbNormal.CheckedChanged += new System.EventHandler(this.chbNormal_CheckedChanged);
//
// chbShowName
//
this.chbShowName.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.chbShowName.AutoSize = true;
this.chbShowName.Checked = true;
this.chbShowName.CheckState = System.Windows.Forms.CheckState.Checked;
this.chbShowName.Location = new System.Drawing.Point(1205, 564);
this.chbShowName.Name = "chbShowName";
this.chbShowName.Size = new System.Drawing.Size(72, 16);
this.chbShowName.TabIndex = 280;
this.chbShowName.Text = "显示名称";
this.chbShowName.UseVisualStyleBackColor = true;
this.chbShowName.CheckedChanged += new System.EventHandler(this.chbShowName_CheckedChanged);
//
// groupBox2 // groupBox2
// //
this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
...@@ -287,12 +261,12 @@ ...@@ -287,12 +261,12 @@
this.groupBox2.Controls.Add(this.txtXUpdate); this.groupBox2.Controls.Add(this.txtXUpdate);
this.groupBox2.Controls.Add(this.txtYUpdate); this.groupBox2.Controls.Add(this.txtYUpdate);
this.groupBox2.Controls.Add(this.label10); this.groupBox2.Controls.Add(this.label10);
this.groupBox2.Location = new System.Drawing.Point(858, 76); this.groupBox2.Location = new System.Drawing.Point(851, 80);
this.groupBox2.Name = "groupBox2"; this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(480, 103); this.groupBox2.Size = new System.Drawing.Size(690, 103);
this.groupBox2.TabIndex = 290; this.groupBox2.TabIndex = 290;
this.groupBox2.TabStop = false; this.groupBox2.TabStop = false;
this.groupBox2.Text = "图片坐标偏移"; this.groupBox2.Text = "图片信息";
// //
// label8 // label8
// //
...@@ -366,12 +340,50 @@ ...@@ -366,12 +340,50 @@
this.label10.Text = "Y轴偏移量↓:"; this.label10.Text = "Y轴偏移量↓:";
this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
// //
// chbNormal
//
this.chbNormal.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.chbNormal.AutoSize = true;
this.chbNormal.Checked = true;
this.chbNormal.CheckState = System.Windows.Forms.CheckState.Checked;
this.chbNormal.Location = new System.Drawing.Point(864, 666);
this.chbNormal.Name = "chbNormal";
this.chbNormal.Size = new System.Drawing.Size(84, 16);
this.chbNormal.TabIndex = 281;
this.chbNormal.Text = "图片自适应";
this.chbNormal.UseVisualStyleBackColor = true;
this.chbNormal.CheckedChanged += new System.EventHandler(this.chbNormal_CheckedChanged);
//
// lblMousePosition
//
this.lblMousePosition.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.lblMousePosition.AutoSize = true;
this.lblMousePosition.Location = new System.Drawing.Point(1191, 668);
this.lblMousePosition.Name = "lblMousePosition";
this.lblMousePosition.Size = new System.Drawing.Size(35, 12);
this.lblMousePosition.TabIndex = 287;
this.lblMousePosition.Text = "X坐标";
//
// chbShowName
//
this.chbShowName.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.chbShowName.AutoSize = true;
this.chbShowName.Checked = true;
this.chbShowName.CheckState = System.Windows.Forms.CheckState.Checked;
this.chbShowName.Location = new System.Drawing.Point(1005, 666);
this.chbShowName.Name = "chbShowName";
this.chbShowName.Size = new System.Drawing.Size(72, 16);
this.chbShowName.TabIndex = 280;
this.chbShowName.Text = "显示名称";
this.chbShowName.UseVisualStyleBackColor = true;
this.chbShowName.CheckedChanged += new System.EventHandler(this.chbShowName_CheckedChanged);
//
// btnSort // btnSort
// //
this.btnSort.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.btnSort.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.btnSort.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnSort.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnSort.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnSort.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnSort.Location = new System.Drawing.Point(213, 566); this.btnSort.Location = new System.Drawing.Point(348, 644);
this.btnSort.Name = "btnSort"; this.btnSort.Name = "btnSort";
this.btnSort.Size = new System.Drawing.Size(120, 45); this.btnSort.Size = new System.Drawing.Size(120, 45);
this.btnSort.TabIndex = 289; this.btnSort.TabIndex = 289;
...@@ -379,52 +391,57 @@ ...@@ -379,52 +391,57 @@
this.btnSort.UseVisualStyleBackColor = true; this.btnSort.UseVisualStyleBackColor = true;
this.btnSort.Click += new System.EventHandler(this.btnSort_Click); this.btnSort.Click += new System.EventHandler(this.btnSort_Click);
// //
// label7
//
this.label7.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point(963, 565);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(209, 12);
this.label7.TabIndex = 288;
this.label7.Text = "使用键盘上的左右键可放大或缩小图片";
this.label7.Visible = false;
//
// lblMousePosition
//
this.lblMousePosition.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.lblMousePosition.AutoSize = true;
this.lblMousePosition.Location = new System.Drawing.Point(963, 585);
this.lblMousePosition.Name = "lblMousePosition";
this.lblMousePosition.Size = new System.Drawing.Size(35, 12);
this.lblMousePosition.TabIndex = 287;
this.lblMousePosition.Text = "X坐标";
//
// btnGoHome // btnGoHome
// //
this.btnGoHome.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.btnGoHome.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.btnGoHome.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnGoHome.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnGoHome.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnGoHome.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnGoHome.Location = new System.Drawing.Point(335, 566); this.btnGoHome.Location = new System.Drawing.Point(38, 619);
this.btnGoHome.Name = "btnGoHome"; this.btnGoHome.Name = "btnGoHome";
this.btnGoHome.Size = new System.Drawing.Size(120, 45); this.btnGoHome.Size = new System.Drawing.Size(120, 31);
this.btnGoHome.TabIndex = 277; this.btnGoHome.TabIndex = 277;
this.btnGoHome.Text = "设备复位"; this.btnGoHome.Text = "设备复位";
this.btnGoHome.UseVisualStyleBackColor = true; this.btnGoHome.UseVisualStyleBackColor = true;
this.btnGoHome.Visible = false;
this.btnGoHome.Click += new System.EventHandler(this.btnGoHome_Click_1); this.btnGoHome.Click += new System.EventHandler(this.btnGoHome_Click_1);
// //
// 焊点列表 // 焊点列表
// //
this.焊点列表.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.焊点列表.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left))); | System.Windows.Forms.AnchorStyles.Left)));
this.焊点列表.Controls.Add(this.label7);
this.焊点列表.Controls.Add(this.dgvList); this.焊点列表.Controls.Add(this.dgvList);
this.焊点列表.Location = new System.Drawing.Point(6, 76); this.焊点列表.Location = new System.Drawing.Point(6, 79);
this.焊点列表.Name = "焊点列表"; this.焊点列表.Name = "焊点列表";
this.焊点列表.Size = new System.Drawing.Size(838, 470); this.焊点列表.Size = new System.Drawing.Size(838, 554);
this.焊点列表.TabIndex = 286; this.焊点列表.TabIndex = 286;
this.焊点列表.TabStop = false; this.焊点列表.TabStop = false;
this.焊点列表.Text = "组装信息(使用键盘上的上下键可更改选中行)"; this.焊点列表.Text = "组装信息(使用键盘上的上下键可更改选中行)";
// //
// btnOpenFile
//
this.btnOpenFile.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.btnOpenFile.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnOpenFile.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnOpenFile.Location = new System.Drawing.Point(1410, 663);
this.btnOpenFile.Name = "btnOpenFile";
this.btnOpenFile.Size = new System.Drawing.Size(120, 31);
this.btnOpenFile.TabIndex = 260;
this.btnOpenFile.Text = "更改图片";
this.btnOpenFile.UseVisualStyleBackColor = true;
this.btnOpenFile.Click += new System.EventHandler(this.btnOpenFile_Click);
//
// label7
//
this.label7.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point(285, 501);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(209, 12);
this.label7.TabIndex = 288;
this.label7.Text = "使用键盘上的左右键可放大或缩小图片";
this.label7.Visible = false;
//
// dgvList // dgvList
// //
this.dgvList.AllowDrop = true; this.dgvList.AllowDrop = true;
...@@ -467,7 +484,7 @@ ...@@ -467,7 +484,7 @@
this.dgvList.RowHeadersWidth = 10; this.dgvList.RowHeadersWidth = 10;
this.dgvList.RowTemplate.Height = 23; this.dgvList.RowTemplate.Height = 23;
this.dgvList.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; this.dgvList.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.dgvList.Size = new System.Drawing.Size(825, 444); this.dgvList.Size = new System.Drawing.Size(825, 528);
this.dgvList.TabIndex = 31; this.dgvList.TabIndex = 31;
this.dgvList.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellContentClick); this.dgvList.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellContentClick);
this.dgvList.CellMouseDown += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.dgvList_CellMouseDown); this.dgvList.CellMouseDown += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.dgvList_CellMouseDown);
...@@ -687,67 +704,30 @@ ...@@ -687,67 +704,30 @@
this.Column_Down.Visible = false; this.Column_Down.Visible = false;
this.Column_Down.Width = 50; this.Column_Down.Width = 50;
// //
// button1
//
this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button1.Location = new System.Drawing.Point(701, 566);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(120, 45);
this.button1.TabIndex = 41;
this.button1.Text = "返回";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// btnOpenFile
//
this.btnOpenFile.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.btnOpenFile.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnOpenFile.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnOpenFile.Location = new System.Drawing.Point(823, 566);
this.btnOpenFile.Name = "btnOpenFile";
this.btnOpenFile.Size = new System.Drawing.Size(120, 45);
this.btnOpenFile.TabIndex = 260;
this.btnOpenFile.Text = "打开图片";
this.btnOpenFile.UseVisualStyleBackColor = true;
this.btnOpenFile.Click += new System.EventHandler(this.btnOpenFile_Click);
//
// btnSave
//
this.btnSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.btnSave.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnSave.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnSave.Location = new System.Drawing.Point(579, 566);
this.btnSave.Name = "btnSave";
this.btnSave.Size = new System.Drawing.Size(120, 45);
this.btnSave.TabIndex = 40;
this.btnSave.Text = "保存";
this.btnSave.UseVisualStyleBackColor = true;
this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
//
// lblMsg // lblMsg
// //
this.lblMsg.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.lblMsg.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.lblMsg.AutoSize = true; this.lblMsg.AutoSize = true;
this.lblMsg.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.lblMsg.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblMsg.ForeColor = System.Drawing.Color.Black; this.lblMsg.ForeColor = System.Drawing.Color.Black;
this.lblMsg.Location = new System.Drawing.Point(8, 580); this.lblMsg.Location = new System.Drawing.Point(102, 636);
this.lblMsg.Name = "lblMsg"; this.lblMsg.Name = "lblMsg";
this.lblMsg.Size = new System.Drawing.Size(56, 17); this.lblMsg.Size = new System.Drawing.Size(56, 17);
this.lblMsg.TabIndex = 260; this.lblMsg.TabIndex = 260;
this.lblMsg.Text = "急停未开"; this.lblMsg.Text = "急停未开";
this.lblMsg.Visible = false;
// //
// btnSetOrigin // btnSetOrigin
// //
this.btnSetOrigin.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnSetOrigin.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnSetOrigin.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnSetOrigin.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnSetOrigin.Location = new System.Drawing.Point(12, 546); this.btnSetOrigin.Location = new System.Drawing.Point(8, 546);
this.btnSetOrigin.Name = "btnSetOrigin"; this.btnSetOrigin.Name = "btnSetOrigin";
this.btnSetOrigin.Size = new System.Drawing.Size(120, 31); this.btnSetOrigin.Size = new System.Drawing.Size(120, 31);
this.btnSetOrigin.TabIndex = 278; this.btnSetOrigin.TabIndex = 278;
this.btnSetOrigin.Text = "重置基准点"; this.btnSetOrigin.Text = "重置基准点";
this.btnSetOrigin.UseVisualStyleBackColor = true; this.btnSetOrigin.UseVisualStyleBackColor = true;
this.btnSetOrigin.Visible = false;
this.btnSetOrigin.Click += new System.EventHandler(this.btnSetBasePoint_Click); this.btnSetOrigin.Click += new System.EventHandler(this.btnSetBasePoint_Click);
// //
// panel3 // panel3
...@@ -756,9 +736,9 @@ ...@@ -756,9 +736,9 @@
| System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.panel3.Controls.Add(this.panBoard); this.panel3.Controls.Add(this.panBoard);
this.panel3.Location = new System.Drawing.Point(858, 185); this.panel3.Location = new System.Drawing.Point(851, 187);
this.panel3.Name = "panel3"; this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(479, 361); this.panel3.Size = new System.Drawing.Size(689, 473);
this.panel3.TabIndex = 277; this.panel3.TabIndex = 277;
// //
// panBoard // panBoard
...@@ -770,7 +750,7 @@ ...@@ -770,7 +750,7 @@
this.panBoard.Controls.Add(this.picBoard); this.panBoard.Controls.Add(this.picBoard);
this.panBoard.Location = new System.Drawing.Point(3, 3); this.panBoard.Location = new System.Drawing.Point(3, 3);
this.panBoard.Name = "panBoard"; this.panBoard.Name = "panBoard";
this.panBoard.Size = new System.Drawing.Size(466, 355); this.panBoard.Size = new System.Drawing.Size(676, 467);
this.panBoard.TabIndex = 261; this.panBoard.TabIndex = 261;
// //
// picBoard // picBoard
...@@ -790,6 +770,9 @@ ...@@ -790,6 +770,9 @@
// //
this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.groupBox1.Controls.Add(this.lblLineW);
this.groupBox1.Controls.Add(this.txtLineWidth);
this.groupBox1.Controls.Add(this.lbllinews);
this.groupBox1.Controls.Add(this.btnConfigAOI); this.groupBox1.Controls.Add(this.btnConfigAOI);
this.groupBox1.Controls.Add(this.lblAoi); this.groupBox1.Controls.Add(this.lblAoi);
this.groupBox1.Controls.Add(this.cmbAOIFile); this.groupBox1.Controls.Add(this.cmbAOIFile);
...@@ -804,18 +787,47 @@ ...@@ -804,18 +787,47 @@
this.groupBox1.Controls.Add(this.label25); this.groupBox1.Controls.Add(this.label25);
this.groupBox1.Controls.Add(this.label24); this.groupBox1.Controls.Add(this.label24);
this.groupBox1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.groupBox1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.groupBox1.Location = new System.Drawing.Point(6, 3); this.groupBox1.Location = new System.Drawing.Point(3, 3);
this.groupBox1.Name = "groupBox1"; this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(1332, 64); this.groupBox1.Size = new System.Drawing.Size(1541, 70);
this.groupBox1.TabIndex = 20; this.groupBox1.TabIndex = 20;
this.groupBox1.TabStop = false; this.groupBox1.TabStop = false;
this.groupBox1.Text = "程序基本信息"; this.groupBox1.Text = "程序基本信息";
// //
// lblLineW
//
this.lblLineW.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblLineW.Location = new System.Drawing.Point(882, 27);
this.lblLineW.Name = "lblLineW";
this.lblLineW.Size = new System.Drawing.Size(80, 20);
this.lblLineW.TabIndex = 297;
this.lblLineW.Text = "线体宽度:";
this.lblLineW.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// txtLineWidth
//
this.txtLineWidth.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtLineWidth.Location = new System.Drawing.Point(966, 23);
this.txtLineWidth.MaxLength = 8;
this.txtLineWidth.Name = "txtLineWidth";
this.txtLineWidth.Size = new System.Drawing.Size(70, 29);
this.txtLineWidth.TabIndex = 295;
//
// lbllinews
//
this.lbllinews.AutoSize = true;
this.lbllinews.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lbllinews.Location = new System.Drawing.Point(1040, 29);
this.lbllinews.Name = "lbllinews";
this.lbllinews.Size = new System.Drawing.Size(30, 17);
this.lbllinews.TabIndex = 296;
this.lbllinews.Text = "mm";
//
// btnConfigAOI // btnConfigAOI
// //
this.btnConfigAOI.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnConfigAOI.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnConfigAOI.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnConfigAOI.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnConfigAOI.Location = new System.Drawing.Point(1220, 13); this.btnConfigAOI.Location = new System.Drawing.Point(1424, 15);
this.btnConfigAOI.Name = "btnConfigAOI"; this.btnConfigAOI.Name = "btnConfigAOI";
this.btnConfigAOI.Size = new System.Drawing.Size(100, 45); this.btnConfigAOI.Size = new System.Drawing.Size(100, 45);
this.btnConfigAOI.TabIndex = 284; this.btnConfigAOI.TabIndex = 284;
...@@ -825,7 +837,7 @@ ...@@ -825,7 +837,7 @@
// //
// lblAoi // lblAoi
// //
this.lblAoi.Location = new System.Drawing.Point(872, 23); this.lblAoi.Location = new System.Drawing.Point(1074, 26);
this.lblAoi.Name = "lblAoi"; this.lblAoi.Name = "lblAoi";
this.lblAoi.Size = new System.Drawing.Size(112, 22); this.lblAoi.Size = new System.Drawing.Size(112, 22);
this.lblAoi.TabIndex = 283; this.lblAoi.TabIndex = 283;
...@@ -837,14 +849,14 @@ ...@@ -837,14 +849,14 @@
this.cmbAOIFile.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cmbAOIFile.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cmbAOIFile.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.cmbAOIFile.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.cmbAOIFile.FormattingEnabled = true; this.cmbAOIFile.FormattingEnabled = true;
this.cmbAOIFile.Location = new System.Drawing.Point(987, 20); this.cmbAOIFile.Location = new System.Drawing.Point(1190, 23);
this.cmbAOIFile.Name = "cmbAOIFile"; this.cmbAOIFile.Name = "cmbAOIFile";
this.cmbAOIFile.Size = new System.Drawing.Size(230, 28); this.cmbAOIFile.Size = new System.Drawing.Size(230, 28);
this.cmbAOIFile.TabIndex = 282; this.cmbAOIFile.TabIndex = 282;
// //
// label5 // label5
// //
this.label5.Location = new System.Drawing.Point(514, 26); this.label5.Location = new System.Drawing.Point(518, 29);
this.label5.Name = "label5"; this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(80, 17); this.label5.Size = new System.Drawing.Size(80, 17);
this.label5.TabIndex = 276; this.label5.TabIndex = 276;
...@@ -854,7 +866,7 @@ ...@@ -854,7 +866,7 @@
// txtCode // txtCode
// //
this.txtCode.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.txtCode.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtCode.Location = new System.Drawing.Point(371, 20); this.txtCode.Location = new System.Drawing.Point(374, 23);
this.txtCode.MaxLength = 40; this.txtCode.MaxLength = 40;
this.txtCode.Name = "txtCode"; this.txtCode.Name = "txtCode";
this.txtCode.Size = new System.Drawing.Size(140, 29); this.txtCode.Size = new System.Drawing.Size(140, 29);
...@@ -863,7 +875,7 @@ ...@@ -863,7 +875,7 @@
// txtBoardName // txtBoardName
// //
this.txtBoardName.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.txtBoardName.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtBoardName.Location = new System.Drawing.Point(88, 20); this.txtBoardName.Location = new System.Drawing.Point(89, 23);
this.txtBoardName.MaxLength = 20; this.txtBoardName.MaxLength = 20;
this.txtBoardName.Name = "txtBoardName"; this.txtBoardName.Name = "txtBoardName";
this.txtBoardName.Size = new System.Drawing.Size(180, 29); this.txtBoardName.Size = new System.Drawing.Size(180, 29);
...@@ -871,7 +883,7 @@ ...@@ -871,7 +883,7 @@
// //
// label14 // label14
// //
this.label14.Location = new System.Drawing.Point(271, 23); this.label14.Location = new System.Drawing.Point(273, 26);
this.label14.Name = "label14"; this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(97, 22); this.label14.Size = new System.Drawing.Size(97, 22);
this.label14.TabIndex = 9; this.label14.TabIndex = 9;
...@@ -880,8 +892,7 @@ ...@@ -880,8 +892,7 @@
// //
// label3 // label3
// //
this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.label3.Location = new System.Drawing.Point(700, 29);
this.label3.Location = new System.Drawing.Point(693, 26);
this.label3.Name = "label3"; this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(80, 17); this.label3.Size = new System.Drawing.Size(80, 17);
this.label3.TabIndex = 275; this.label3.TabIndex = 275;
...@@ -890,7 +901,7 @@ ...@@ -890,7 +901,7 @@
// //
// label2 // label2
// //
this.label2.Location = new System.Drawing.Point(5, 26); this.label2.Location = new System.Drawing.Point(5, 29);
this.label2.Name = "label2"; this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(80, 17); this.label2.Size = new System.Drawing.Size(80, 17);
this.label2.TabIndex = 1; this.label2.TabIndex = 1;
...@@ -899,9 +910,8 @@ ...@@ -899,9 +910,8 @@
// //
// txtBoardL // txtBoardL
// //
this.txtBoardL.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.txtBoardL.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.txtBoardL.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtBoardL.Location = new System.Drawing.Point(776, 20); this.txtBoardL.Location = new System.Drawing.Point(784, 23);
this.txtBoardL.MaxLength = 8; this.txtBoardL.MaxLength = 8;
this.txtBoardL.Name = "txtBoardL"; this.txtBoardL.Name = "txtBoardL";
this.txtBoardL.Size = new System.Drawing.Size(60, 29); this.txtBoardL.Size = new System.Drawing.Size(60, 29);
...@@ -910,9 +920,8 @@ ...@@ -910,9 +920,8 @@
// //
// txtBoardW // txtBoardW
// //
this.txtBoardW.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.txtBoardW.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.txtBoardW.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtBoardW.Location = new System.Drawing.Point(597, 20); this.txtBoardW.Location = new System.Drawing.Point(602, 23);
this.txtBoardW.MaxLength = 8; this.txtBoardW.MaxLength = 8;
this.txtBoardW.Name = "txtBoardW"; this.txtBoardW.Name = "txtBoardW";
this.txtBoardW.Size = new System.Drawing.Size(60, 29); this.txtBoardW.Size = new System.Drawing.Size(60, 29);
...@@ -921,9 +930,8 @@ ...@@ -921,9 +930,8 @@
// //
// label25 // label25
// //
this.label25.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.label25.AutoSize = true; this.label25.AutoSize = true;
this.label25.Location = new System.Drawing.Point(839, 26); this.label25.Location = new System.Drawing.Point(848, 29);
this.label25.Name = "label25"; this.label25.Name = "label25";
this.label25.Size = new System.Drawing.Size(30, 17); this.label25.Size = new System.Drawing.Size(30, 17);
this.label25.TabIndex = 37; this.label25.TabIndex = 37;
...@@ -931,19 +939,44 @@ ...@@ -931,19 +939,44 @@
// //
// label24 // label24
// //
this.label24.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.label24.AutoSize = true; this.label24.AutoSize = true;
this.label24.Location = new System.Drawing.Point(660, 26); this.label24.Location = new System.Drawing.Point(666, 29);
this.label24.Name = "label24"; this.label24.Name = "label24";
this.label24.Size = new System.Drawing.Size(30, 17); this.label24.Size = new System.Drawing.Size(30, 17);
this.label24.TabIndex = 36; this.label24.TabIndex = 36;
this.label24.Text = "mm"; this.label24.Text = "mm";
// //
// button1
//
this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button1.Location = new System.Drawing.Point(714, 644);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(120, 45);
this.button1.TabIndex = 41;
this.button1.Text = "返回";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// btnSave
//
this.btnSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.btnSave.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnSave.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnSave.Location = new System.Drawing.Point(592, 644);
this.btnSave.Name = "btnSave";
this.btnSave.Size = new System.Drawing.Size(120, 45);
this.btnSave.TabIndex = 40;
this.btnSave.Text = "保存";
this.btnSave.UseVisualStyleBackColor = true;
this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
//
// FrmBoardInfo // FrmBoardInfo
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1344, 634); this.ClientSize = new System.Drawing.Size(1549, 701);
this.Controls.Add(this.panel1); this.Controls.Add(this.panel1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "FrmBoardInfo"; this.Name = "FrmBoardInfo";
...@@ -960,6 +993,7 @@ ...@@ -960,6 +993,7 @@
this.groupBox2.ResumeLayout(false); this.groupBox2.ResumeLayout(false);
this.groupBox2.PerformLayout(); this.groupBox2.PerformLayout();
this.焊点列表.ResumeLayout(false); this.焊点列表.ResumeLayout(false);
this.焊点列表.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.dgvList)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dgvList)).EndInit();
this.panel3.ResumeLayout(false); this.panel3.ResumeLayout(false);
this.panBoard.ResumeLayout(false); this.panBoard.ResumeLayout(false);
...@@ -1051,5 +1085,8 @@ ...@@ -1051,5 +1085,8 @@
private System.Windows.Forms.DataGridViewLinkColumn Column_Del; private System.Windows.Forms.DataGridViewLinkColumn Column_Del;
private System.Windows.Forms.DataGridViewImageColumn Column_Up; private System.Windows.Forms.DataGridViewImageColumn Column_Up;
private System.Windows.Forms.DataGridViewImageColumn Column_Down; private System.Windows.Forms.DataGridViewImageColumn Column_Down;
private System.Windows.Forms.Label lblLineW;
private System.Windows.Forms.TextBox txtLineWidth;
private System.Windows.Forms.Label lbllinews;
} }
} }
\ No newline at end of file \ No newline at end of file
...@@ -228,6 +228,7 @@ namespace TSA_V ...@@ -228,6 +228,7 @@ namespace TSA_V
txtBoardL.Text = updateBoardInfo.boardWidth.ToString(); txtBoardL.Text = updateBoardInfo.boardWidth.ToString();
txtCode.Text = updateBoardInfo.boardCode.ToString(); txtCode.Text = updateBoardInfo.boardCode.ToString();
picBoard.Image = updateBoardInfo.GetImage(); picBoard.Image = updateBoardInfo.GetImage();
txtLineWidth.Text = updateBoardInfo.LineWidth.ToString();
//txtOriginX.Text = updateBoardInfo.originX.ToString(); //txtOriginX.Text = updateBoardInfo.originX.ToString();
//txtOriginY.Text = updateBoardInfo.originY.ToString(); //txtOriginY.Text = updateBoardInfo.originY.ToString();
picBoard.SizeMode = PictureBoxSizeMode.StretchImage; picBoard.SizeMode = PictureBoxSizeMode.StretchImage;
...@@ -485,6 +486,7 @@ namespace TSA_V ...@@ -485,6 +486,7 @@ namespace TSA_V
board.boardName = FormUtil.getValue(txtBoardName); board.boardName = FormUtil.getValue(txtBoardName);
board.boardLength = FormUtil.GetIntValue(txtBoardW); board.boardLength = FormUtil.GetIntValue(txtBoardW);
board.boardWidth = FormUtil.GetIntValue(txtBoardL); board.boardWidth = FormUtil.GetIntValue(txtBoardL);
board.LineWidth = FormUtil.GetIntValue(txtLineWidth);
//board.originX = orgXValue; //board.originX = orgXValue;
//board.originY = orgYValue; //board.originY = orgYValue;
board.boardCode = FormUtil.getValue(txtCode); board.boardCode = FormUtil.getValue(txtCode);
...@@ -527,6 +529,13 @@ namespace TSA_V ...@@ -527,6 +529,13 @@ namespace TSA_V
txtBoardL.Focus(); txtBoardL.Focus();
return; return;
} }
if (board.LineWidth <= 0)
{
MessageBox.Show(ResourceCulture.GetString(ResourceCulture.WriteLineWidth, "请输入线体宽度"));
txtLineWidth.Focus();
return;
}
if (picBoard.Image == null) if (picBoard.Image == null)
{ {
//MessageBox.Show("请添加程序图片"); //MessageBox.Show("请添加程序图片");
...@@ -1298,5 +1307,10 @@ namespace TSA_V ...@@ -1298,5 +1307,10 @@ namespace TSA_V
LogUtil.error("加载AOI配置界面出错:" + ex.ToString()); LogUtil.error("加载AOI配置界面出错:" + ex.ToString());
} }
} }
private void btnOpenFile_Click(object sender, LinkLabelLinkClickedEventArgs e)
{
btnOpenFile_Click(null, null);
}
} }
} }
...@@ -155,6 +155,7 @@ ...@@ -155,6 +155,7 @@
| System.Windows.Forms.AnchorStyles.Left))); | System.Windows.Forms.AnchorStyles.Left)));
this.listPoint.FullRowSelect = true; this.listPoint.FullRowSelect = true;
this.listPoint.GridLines = true; this.listPoint.GridLines = true;
this.listPoint.HideSelection = false;
this.listPoint.Location = new System.Drawing.Point(10, 140); this.listPoint.Location = new System.Drawing.Point(10, 140);
this.listPoint.MultiSelect = false; this.listPoint.MultiSelect = false;
this.listPoint.Name = "listPoint"; this.listPoint.Name = "listPoint";
...@@ -230,7 +231,7 @@ ...@@ -230,7 +231,7 @@
this.label4.Name = "label4"; this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(92, 17); this.label4.Size = new System.Drawing.Size(92, 17);
this.label4.TabIndex = 5; this.label4.TabIndex = 5;
this.label4.Text = "长度:"; this.label4.Text = "长度:";
this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
// //
// txtLength // txtLength
...@@ -247,7 +248,7 @@ ...@@ -247,7 +248,7 @@
this.label3.Name = "label3"; this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(75, 17); this.label3.Size = new System.Drawing.Size(75, 17);
this.label3.TabIndex = 3; this.label3.TabIndex = 3;
this.label3.Text = "宽度:"; this.label3.Text = "宽度:";
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
// //
// txtBomName // txtBomName
......
...@@ -52,6 +52,7 @@ ...@@ -52,6 +52,7 @@
this.btnDSave = new System.Windows.Forms.Button(); this.btnDSave = new System.Windows.Forms.Button();
this.txtWP = new System.Windows.Forms.TextBox(); this.txtWP = new System.Windows.Forms.TextBox();
this.lbWidthMap = new System.Windows.Forms.ListBox(); this.lbWidthMap = new System.Windows.Forms.ListBox();
this.btnHomeM = new System.Windows.Forms.Button();
this.groupBox1.SuspendLayout(); this.groupBox1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.numTarget)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.numTarget)).BeginInit();
this.groupBox2.SuspendLayout(); this.groupBox2.SuspendLayout();
...@@ -70,7 +71,7 @@ ...@@ -70,7 +71,7 @@
// //
this.btnSave.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnSave.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnSave.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnSave.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnSave.Location = new System.Drawing.Point(106, 174); this.btnSave.Location = new System.Drawing.Point(215, 172);
this.btnSave.Name = "btnSave"; this.btnSave.Name = "btnSave";
this.btnSave.Size = new System.Drawing.Size(128, 40); this.btnSave.Size = new System.Drawing.Size(128, 40);
this.btnSave.TabIndex = 288; this.btnSave.TabIndex = 288;
...@@ -82,7 +83,7 @@ ...@@ -82,7 +83,7 @@
// //
this.btnClose.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnClose.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnClose.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnClose.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnClose.Location = new System.Drawing.Point(199, 119); this.btnClose.Location = new System.Drawing.Point(215, 119);
this.btnClose.Name = "btnClose"; this.btnClose.Name = "btnClose";
this.btnClose.Size = new System.Drawing.Size(128, 40); this.btnClose.Size = new System.Drawing.Size(128, 40);
this.btnClose.TabIndex = 287; this.btnClose.TabIndex = 287;
...@@ -173,6 +174,7 @@ ...@@ -173,6 +174,7 @@
// //
// groupBox2 // groupBox2
// //
this.groupBox2.Controls.Add(this.btnHomeM);
this.groupBox2.Controls.Add(this.numChangeValue); this.groupBox2.Controls.Add(this.numChangeValue);
this.groupBox2.Controls.Add(this.numHomeWidth); this.groupBox2.Controls.Add(this.numHomeWidth);
this.groupBox2.Controls.Add(this.numSlv); this.groupBox2.Controls.Add(this.numSlv);
...@@ -362,11 +364,23 @@ ...@@ -362,11 +364,23 @@
this.lbWidthMap.TabIndex = 319; this.lbWidthMap.TabIndex = 319;
this.lbWidthMap.SelectedIndexChanged += new System.EventHandler(this.listDetitalP2_SelectedIndexChanged); this.lbWidthMap.SelectedIndexChanged += new System.EventHandler(this.listDetitalP2_SelectedIndexChanged);
// //
// btnHomeM
//
this.btnHomeM.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnHomeM.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnHomeM.Location = new System.Drawing.Point(32, 172);
this.btnHomeM.Name = "btnHomeM";
this.btnHomeM.Size = new System.Drawing.Size(128, 40);
this.btnHomeM.TabIndex = 296;
this.btnHomeM.Text = "原点返回";
this.btnHomeM.UseVisualStyleBackColor = true;
this.btnHomeM.Click += new System.EventHandler(this.btnHomeM_Click);
//
// FrmChangeWidth // FrmChangeWidth
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
this.ClientSize = new System.Drawing.Size(672, 489); this.ClientSize = new System.Drawing.Size(671, 489);
this.Controls.Add(this.groupDetial); this.Controls.Add(this.groupDetial);
this.Controls.Add(this.groupBox2); this.Controls.Add(this.groupBox2);
this.Controls.Add(this.groupBox1); this.Controls.Add(this.groupBox1);
...@@ -413,5 +427,6 @@ ...@@ -413,5 +427,6 @@
internal System.Windows.Forms.TextBox txtWP; internal System.Windows.Forms.TextBox txtWP;
private System.Windows.Forms.ListBox lbWidthMap; private System.Windows.Forms.ListBox lbWidthMap;
internal System.Windows.Forms.TextBox txtW; internal System.Windows.Forms.TextBox txtW;
private System.Windows.Forms.Button btnHomeM;
} }
} }
\ No newline at end of file \ No newline at end of file
...@@ -158,5 +158,11 @@ namespace TSA_V ...@@ -158,5 +158,11 @@ namespace TSA_V
txtTargetPosition.Text = p.ToString(); txtTargetPosition.Text = p.ToString();
} }
private void btnHomeM_Click(object sender, EventArgs e)
{
LogUtil.info(Name+ "点击 原点返回");
PUSICANControl.HomeMove(LWidthManager.Line_NodeAddr, true);
}
} }
} }
...@@ -385,10 +385,10 @@ ...@@ -385,10 +385,10 @@
<value>ASSEMBLY QUANTITY</value> <value>ASSEMBLY QUANTITY</value>
</data> </data>
<data name="FrmBoardList_label4_Text" xml:space="preserve"> <data name="FrmBoardList_label4_Text" xml:space="preserve">
<value>LENGTH</value> <value>LENGTH</value>
</data> </data>
<data name="FrmBoardList_label3_Text" xml:space="preserve"> <data name="FrmBoardList_label3_Text" xml:space="preserve">
<value>WIDTH</value> <value>WIDTH</value>
</data> </data>
<data name="FrmBoardList_label2_Text" xml:space="preserve"> <data name="FrmBoardList_label2_Text" xml:space="preserve">
<value>STOCK NAME</value> <value>STOCK NAME</value>
...@@ -424,10 +424,10 @@ ...@@ -424,10 +424,10 @@
<value>SAVE PROGRAM</value> <value>SAVE PROGRAM</value>
</data> </data>
<data name="FrmAddBoard_label5_Text" xml:space="preserve"> <data name="FrmAddBoard_label5_Text" xml:space="preserve">
<value>WIDTH</value> <value>WIDTH</value>
</data> </data>
<data name="FrmAddBoard_label4_Text" xml:space="preserve"> <data name="FrmAddBoard_label4_Text" xml:space="preserve">
<value>LENGTH</value> <value>LENGTH</value>
</data> </data>
<data name="FrmAddBoard_label25_Text" xml:space="preserve"> <data name="FrmAddBoard_label25_Text" xml:space="preserve">
<value>mm</value> <value>mm</value>
...@@ -514,13 +514,13 @@ ...@@ -514,13 +514,13 @@
<value> BASIC INFO.</value> <value> BASIC INFO.</value>
</data> </data>
<data name="FrmBoardInfo_label5_Text" xml:space="preserve"> <data name="FrmBoardInfo_label5_Text" xml:space="preserve">
<value>WIDTH</value> <value>WIDTH</value>
</data> </data>
<data name="FrmBoardInfo_label14_Text" xml:space="preserve"> <data name="FrmBoardInfo_label14_Text" xml:space="preserve">
<value>TYPE</value> <value>TYPE</value>
</data> </data>
<data name="FrmBoardInfo_label3_Text" xml:space="preserve"> <data name="FrmBoardInfo_label3_Text" xml:space="preserve">
<value>LENGTH</value> <value>LENGTH</value>
</data> </data>
<data name="FrmBoardInfo_label2_Text" xml:space="preserve"> <data name="FrmBoardInfo_label2_Text" xml:space="preserve">
<value>NAME</value> <value>NAME</value>
...@@ -1388,7 +1388,7 @@ ...@@ -1388,7 +1388,7 @@
<value>In assembly, waiting for [{0}] timeout has waited for [{1}] seconds</value> <value>In assembly, waiting for [{0}] timeout has waited for [{1}] seconds</value>
</data> </data>
<data name="Width" xml:space="preserve"> <data name="Width" xml:space="preserve">
<value>Width</value> <value>Width</value>
</data> </data>
<data name="XTGoHome" xml:space="preserve"> <data name="XTGoHome" xml:space="preserve">
<value>Axis XY Reset</value> <value>Axis XY Reset</value>
...@@ -2290,4 +2290,16 @@ ...@@ -2290,4 +2290,16 @@
<data name = "添加用户成功" xml:space = "preserve"> <value> Added user successfully </value> </data> <data name = "添加用户成功" xml:space = "preserve"> <value> Added user successfully </value> </data>
<data name = "FrmDeviceConfig_lblCode_Text" xml:space = "preserve"> <value> Barcode: </value> </data> <data name = "FrmDeviceConfig_lblCode_Text" xml:space = "preserve"> <value> Barcode: </value> </data>
<data name = "FrmPusicanTest_llblClearp_Text" xml:space = "preserve"> <value> Zero position </value> </data> <data name = "FrmPusicanTest_llblClearp_Text" xml:space = "preserve"> <value> Zero position </value> </data>
<data name="LineWidth" xml:space="preserve">
<value>Line body width</value>
</data>
<data name="WriteLineWidth" xml:space="preserve">
<value>Please enter the line width</value>
</data>
<data name = "FrmBoardSelect_btnChangeW_Text" xml:space = "preserve"> <value> Adjust the line width </value> </data>
<data name = "FrmAddBoard_label9_Text" xml:space = "preserve"> <value> mm </value> </data>
<data name = "FrmAddBoard_lblName_Text" xml:space = "preserve"> <value> Projection words: </value> </data>
<data name = "FrmBoardInfo_lblLineW_Text" xml:space = "preserve"> <value> Line body width: </value> </data>
<data name = "FrmBoardInfo_lbllinews_Text" xml:space = "preserve"> <value> mm </value> </data>
<data name = "FrmChangeWidth_btnHomeM_Text" xml:space = "preserve"> <value> The origin back </value> </data>
</root> </root>
\ No newline at end of file \ No newline at end of file
...@@ -385,10 +385,10 @@ ...@@ -385,10 +385,10 @@
<value>组装数量:</value> <value>组装数量:</value>
</data> </data>
<data name="FrmBoardList_label4_Text" xml:space="preserve"> <data name="FrmBoardList_label4_Text" xml:space="preserve">
<value>长度:</value> <value>长度:</value>
</data> </data>
<data name="FrmBoardList_label3_Text" xml:space="preserve"> <data name="FrmBoardList_label3_Text" xml:space="preserve">
<value>宽度:</value> <value>宽度:</value>
</data> </data>
<data name="FrmBoardList_label2_Text" xml:space="preserve"> <data name="FrmBoardList_label2_Text" xml:space="preserve">
<value>元器件库名称:</value> <value>元器件库名称:</value>
...@@ -424,10 +424,10 @@ ...@@ -424,10 +424,10 @@
<value>保存程序</value> <value>保存程序</value>
</data> </data>
<data name="FrmAddBoard_label5_Text" xml:space="preserve"> <data name="FrmAddBoard_label5_Text" xml:space="preserve">
<value>宽度:</value> <value>宽度:</value>
</data> </data>
<data name="FrmAddBoard_label4_Text" xml:space="preserve"> <data name="FrmAddBoard_label4_Text" xml:space="preserve">
<value>长度:</value> <value>长度:</value>
</data> </data>
<data name="FrmAddBoard_label25_Text" xml:space="preserve"> <data name="FrmAddBoard_label25_Text" xml:space="preserve">
<value>mm</value> <value>mm</value>
...@@ -436,7 +436,7 @@ ...@@ -436,7 +436,7 @@
<value>mm</value> <value>mm</value>
</data> </data>
<data name="FrmAddBoard_btnOpenFile_Text" xml:space="preserve"> <data name="FrmAddBoard_btnOpenFile_Text" xml:space="preserve">
<value>选择图片</value> <value>更改图片</value>
</data> </data>
<data name="FrmAddBoard_label1_Text" xml:space="preserve"> <data name="FrmAddBoard_label1_Text" xml:space="preserve">
<value>导入图片:</value> <value>导入图片:</value>
...@@ -514,13 +514,13 @@ ...@@ -514,13 +514,13 @@
<value>程序基本信息</value> <value>程序基本信息</value>
</data> </data>
<data name="FrmBoardInfo_label5_Text" xml:space="preserve"> <data name="FrmBoardInfo_label5_Text" xml:space="preserve">
<value>宽度</value> <value>宽度</value>
</data> </data>
<data name="FrmBoardInfo_label14_Text" xml:space="preserve"> <data name="FrmBoardInfo_label14_Text" xml:space="preserve">
<value>类型</value> <value>类型</value>
</data> </data>
<data name="FrmBoardInfo_label3_Text" xml:space="preserve"> <data name="FrmBoardInfo_label3_Text" xml:space="preserve">
<value>长度</value> <value>长度</value>
</data> </data>
<data name="FrmBoardInfo_label2_Text" xml:space="preserve"> <data name="FrmBoardInfo_label2_Text" xml:space="preserve">
<value>名称</value> <value>名称</value>
...@@ -1348,7 +1348,7 @@ ...@@ -1348,7 +1348,7 @@
<value>红外Y轴初始化失败</value> <value>红外Y轴初始化失败</value>
</data> </data>
<data name="Length" xml:space="preserve"> <data name="Length" xml:space="preserve">
<value>长度</value> <value>长度</value>
</data> </data>
<data name="LineTimeOutMsg" xml:space="preserve"> <data name="LineTimeOutMsg" xml:space="preserve">
<value>流水线转动中,等待【{0}】超时 已等待[{1}]秒</value> <value>流水线转动中,等待【{0}】超时 已等待[{1}]秒</value>
...@@ -1372,7 +1372,7 @@ ...@@ -1372,7 +1372,7 @@
<value>组装中,等待【{0}】超时 已等待[{1}]秒</value> <value>组装中,等待【{0}】超时 已等待[{1}]秒</value>
</data> </data>
<data name="Width" xml:space="preserve"> <data name="Width" xml:space="preserve">
<value>长度</value> <value>宽度 ↑</value>
</data> </data>
<data name="XTGoHome" xml:space="preserve"> <data name="XTGoHome" xml:space="preserve">
<value>XY轴回待机点</value> <value>XY轴回待机点</value>
...@@ -2286,22 +2286,70 @@ ...@@ -2286,22 +2286,70 @@
<data name="用户名或密码错误" xml:space="preserve"> <data name="用户名或密码错误" xml:space="preserve">
<value>用户名或密码错误</value> <value>用户名或密码错误</value>
</data> </data>
<data name = "添加用户失败" xml:space = "preserve"> <value> 添加用户失败 </value> </data> <data name="添加用户失败" xml:space="preserve">
<data name = "退出" xml:space = "preserve"> <value> 退出 </value> </data> <value> 添加用户失败 </value>
<data name = "增加" xml:space = "preserve"> <value> 增加 </value> </data> </data>
<data name = "修改" xml:space = "preserve"> <value> 修改 </value> </data> <data name="退出" xml:space="preserve">
<data name = "删除" xml:space = "preserve"> <value> 删除 </value> </data> <value> 退出 </value>
<data name = "用户名" xml:space = "preserve"> <value> 用户名 </value> </data> </data>
<data name = "密码" xml:space = "preserve"> <value> 密码 </value> </data> <data name="增加" xml:space="preserve">
<data name = "权限" xml:space = "preserve"> <value> 权限 </value> </data> <value> 增加 </value>
<data name = "用户管理" xml:space = "preserve"> <value> 用户管理 </value> </data> </data>
<data name = "确认删除用户" xml:space = "preserve"> <value> 确认删除用户 </value> </data> <data name="修改" xml:space="preserve">
<data name = "删除用户成功" xml:space = "preserve"> <value> 删除用户成功 </value> </data> <value> 修改 </value>
<data name = "删除用户失败" xml:space = "preserve"> <value> 删除用户失败 </value> </data> </data>
<data name = "确定修改用户信息" xml:space = "preserve"> <value> 确定修改用户信息 </value> </data> <data name="删除" xml:space="preserve">
<data name = "修改用户成功" xml:space = "preserve"> <value> 修改用户成功 </value> </data> <value> 删除 </value>
<data name = "修改用户失败" xml:space = "preserve"> <value> 修改用户失败 </value> </data> </data>
<data name = "添加用户成功" xml:space = "preserve"> <value> 添加用户成功 </value> </data> <data name="用户名" xml:space="preserve">
<data name = "FrmDeviceConfig_lblCode_Text" xml:space = "preserve"> <value> 条码: </value> </data> <value> 用户名 </value>
<data name = "FrmPusicanTest_llblClearp_Text" xml:space = "preserve"> <value> 清零位置 </value> </data> </data>
<data name="密码" xml:space="preserve">
<value> 密码 </value>
</data>
<data name="权限" xml:space="preserve">
<value> 权限 </value>
</data>
<data name="用户管理" xml:space="preserve">
<value> 用户管理 </value>
</data>
<data name="确认删除用户" xml:space="preserve">
<value> 确认删除用户 </value>
</data>
<data name="删除用户成功" xml:space="preserve">
<value> 删除用户成功 </value>
</data>
<data name="删除用户失败" xml:space="preserve">
<value> 删除用户失败 </value>
</data>
<data name="确定修改用户信息" xml:space="preserve">
<value> 确定修改用户信息 </value>
</data>
<data name="修改用户成功" xml:space="preserve">
<value> 修改用户成功 </value>
</data>
<data name="修改用户失败" xml:space="preserve">
<value> 修改用户失败 </value>
</data>
<data name="添加用户成功" xml:space="preserve">
<value> 添加用户成功 </value>
</data>
<data name="FrmDeviceConfig_lblCode_Text" xml:space="preserve">
<value> 条码: </value>
</data>
<data name="FrmPusicanTest_llblClearp_Text" xml:space="preserve">
<value> 清零位置 </value>
</data>
<data name="LineWidth" xml:space="preserve">
<value>线体宽度</value>
</data>
<data name="WriteLineWidth" xml:space="preserve">
<value>请输入线体宽度</value>
</data>
<data name = "FrmBoardSelect_btnChangeW_Text" xml:space = "preserve"> <value> 调宽 </value> </data>
<data name = "FrmAddBoard_label9_Text" xml:space = "preserve"> <value> mm </value> </data>
<data name = "FrmAddBoard_lblName_Text" xml:space = "preserve"> <value> 投影文字: </value> </data>
<data name = "FrmBoardInfo_lblLineW_Text" xml:space = "preserve"> <value> 线体宽度: </value> </data>
<data name = "FrmBoardInfo_lbllinews_Text" xml:space = "preserve"> <value> mm </value> </data>
<data name = "FrmChangeWidth_btnHomeM_Text" xml:space = "preserve"> <value> 原点返回 </value> </data>
</root> </root>
\ No newline at end of file \ No newline at end of file
...@@ -678,6 +678,12 @@ namespace TSA_V ...@@ -678,6 +678,12 @@ namespace TSA_V
/// 中心点确认之后不可更改 /// 中心点确认之后不可更改
/// </summary> /// </summary>
public static string CenterConotEdit = "CenterConotEdit"; public static string CenterConotEdit = "CenterConotEdit";
/// <summary>
/// 请输入线体宽度
/// </summary>
public static string WriteLineWidth = "WriteLineWidth";
} }
} }
...@@ -28,6 +28,8 @@ ...@@ -28,6 +28,8 @@
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmBoardSelect));
this.label1 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label();
this.txtCode = new System.Windows.Forms.TextBox(); this.txtCode = new System.Windows.Forms.TextBox();
this.btnNext = new System.Windows.Forms.Button(); this.btnNext = new System.Windows.Forms.Button();
...@@ -35,12 +37,15 @@ ...@@ -35,12 +37,15 @@
this.lblBoardMsg = new System.Windows.Forms.Label(); this.lblBoardMsg = new System.Windows.Forms.Label();
this.cmbBoardList = new System.Windows.Forms.ComboBox(); this.cmbBoardList = new System.Windows.Forms.ComboBox();
this.chbGuoban = new System.Windows.Forms.CheckBox(); this.chbGuoban = new System.Windows.Forms.CheckBox();
this.btnChangeW = new System.Windows.Forms.Button();
this.timer1 = new System.Windows.Forms.Timer(this.components);
this.lblWait = new System.Windows.Forms.Label();
this.SuspendLayout(); this.SuspendLayout();
// //
// label1 // label1
// //
this.label1.AutoSize = true; this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(115, 44); this.label1.Location = new System.Drawing.Point(149, 44);
this.label1.Name = "label1"; this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(137, 12); this.label1.Size = new System.Drawing.Size(137, 12);
this.label1.TabIndex = 275; this.label1.TabIndex = 275;
...@@ -49,7 +54,7 @@ ...@@ -49,7 +54,7 @@
// txtCode // txtCode
// //
this.txtCode.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.txtCode.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtCode.Location = new System.Drawing.Point(117, 70); this.txtCode.Location = new System.Drawing.Point(151, 59);
this.txtCode.MaxLength = 40; this.txtCode.MaxLength = 40;
this.txtCode.Name = "txtCode"; this.txtCode.Name = "txtCode";
this.txtCode.Size = new System.Drawing.Size(246, 29); this.txtCode.Size = new System.Drawing.Size(246, 29);
...@@ -60,7 +65,7 @@ ...@@ -60,7 +65,7 @@
// //
this.btnNext.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnNext.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnNext.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnNext.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnNext.Location = new System.Drawing.Point(243, 249); this.btnNext.Location = new System.Drawing.Point(340, 249);
this.btnNext.Name = "btnNext"; this.btnNext.Name = "btnNext";
this.btnNext.Size = new System.Drawing.Size(120, 45); this.btnNext.Size = new System.Drawing.Size(120, 45);
this.btnNext.TabIndex = 273; this.btnNext.TabIndex = 273;
...@@ -72,7 +77,7 @@ ...@@ -72,7 +77,7 @@
// //
this.btnBack.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnBack.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnBack.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnBack.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnBack.Location = new System.Drawing.Point(117, 249); this.btnBack.Location = new System.Drawing.Point(88, 249);
this.btnBack.Name = "btnBack"; this.btnBack.Name = "btnBack";
this.btnBack.Size = new System.Drawing.Size(120, 45); this.btnBack.Size = new System.Drawing.Size(120, 45);
this.btnBack.TabIndex = 272; this.btnBack.TabIndex = 272;
...@@ -84,9 +89,9 @@ ...@@ -84,9 +89,9 @@
// //
this.lblBoardMsg.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.lblBoardMsg.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblBoardMsg.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); this.lblBoardMsg.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
this.lblBoardMsg.Location = new System.Drawing.Point(4, 161); this.lblBoardMsg.Location = new System.Drawing.Point(12, 177);
this.lblBoardMsg.Name = "lblBoardMsg"; this.lblBoardMsg.Name = "lblBoardMsg";
this.lblBoardMsg.Size = new System.Drawing.Size(480, 19); this.lblBoardMsg.Size = new System.Drawing.Size(510, 69);
this.lblBoardMsg.TabIndex = 5; this.lblBoardMsg.TabIndex = 5;
this.lblBoardMsg.Text = "程序信息"; this.lblBoardMsg.Text = "程序信息";
this.lblBoardMsg.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.lblBoardMsg.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
...@@ -96,7 +101,7 @@ ...@@ -96,7 +101,7 @@
this.cmbBoardList.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cmbBoardList.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cmbBoardList.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.cmbBoardList.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.cmbBoardList.FormattingEnabled = true; this.cmbBoardList.FormattingEnabled = true;
this.cmbBoardList.Location = new System.Drawing.Point(117, 116); this.cmbBoardList.Location = new System.Drawing.Point(151, 109);
this.cmbBoardList.Name = "cmbBoardList"; this.cmbBoardList.Name = "cmbBoardList";
this.cmbBoardList.Size = new System.Drawing.Size(246, 29); this.cmbBoardList.Size = new System.Drawing.Size(246, 29);
this.cmbBoardList.TabIndex = 6; this.cmbBoardList.TabIndex = 6;
...@@ -106,18 +111,42 @@ ...@@ -106,18 +111,42 @@
// //
this.chbGuoban.AutoSize = true; this.chbGuoban.AutoSize = true;
this.chbGuoban.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.chbGuoban.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.chbGuoban.Location = new System.Drawing.Point(176, 203); this.chbGuoban.Location = new System.Drawing.Point(214, 159);
this.chbGuoban.Name = "chbGuoban"; this.chbGuoban.Name = "chbGuoban";
this.chbGuoban.Size = new System.Drawing.Size(126, 24); this.chbGuoban.Size = new System.Drawing.Size(126, 24);
this.chbGuoban.TabIndex = 276; this.chbGuoban.TabIndex = 276;
this.chbGuoban.Text = "流水线过板模式"; this.chbGuoban.Text = "流水线过板模式";
this.chbGuoban.UseVisualStyleBackColor = true; this.chbGuoban.UseVisualStyleBackColor = true;
// //
// btnChangeW
//
this.btnChangeW.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnChangeW.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnChangeW.Location = new System.Drawing.Point(214, 249);
this.btnChangeW.Name = "btnChangeW";
this.btnChangeW.Size = new System.Drawing.Size(120, 45);
this.btnChangeW.TabIndex = 277;
this.btnChangeW.Text = "调宽";
this.btnChangeW.UseVisualStyleBackColor = false;
this.btnChangeW.Click += new System.EventHandler(this.btnChangeW_Click);
//
// lblWait
//
this.lblWait.BackColor = System.Drawing.Color.Transparent;
this.lblWait.Image = ((System.Drawing.Image)(resources.GetObject("lblWait.Image")));
this.lblWait.Location = new System.Drawing.Point(101, 32);
this.lblWait.Name = "lblWait";
this.lblWait.Size = new System.Drawing.Size(331, 151);
this.lblWait.TabIndex = 278;
this.lblWait.TextAlign = System.Drawing.ContentAlignment.TopCenter;
//
// FrmBoardSelect // FrmBoardSelect
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(496, 320); this.ClientSize = new System.Drawing.Size(534, 320);
this.Controls.Add(this.lblWait);
this.Controls.Add(this.btnChangeW);
this.Controls.Add(this.chbGuoban); this.Controls.Add(this.chbGuoban);
this.Controls.Add(this.label1); this.Controls.Add(this.label1);
this.Controls.Add(this.txtCode); this.Controls.Add(this.txtCode);
...@@ -143,5 +172,8 @@ ...@@ -143,5 +172,8 @@
private System.Windows.Forms.Label label1; private System.Windows.Forms.Label label1;
private System.Windows.Forms.TextBox txtCode; private System.Windows.Forms.TextBox txtCode;
private System.Windows.Forms.CheckBox chbGuoban; private System.Windows.Forms.CheckBox chbGuoban;
private System.Windows.Forms.Button btnChangeW;
private System.Windows.Forms.Timer timer1;
private System.Windows.Forms.Label lblWait;
} }
} }
\ No newline at end of file \ No newline at end of file
...@@ -5,6 +5,7 @@ using System.Data; ...@@ -5,6 +5,7 @@ using System.Data;
using System.Drawing; using System.Drawing;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
using TSA_V.Common; using TSA_V.Common;
...@@ -28,6 +29,7 @@ namespace TSA_V ...@@ -28,6 +29,7 @@ namespace TSA_V
} }
private void FrmBoardSelect_Load(object sender, EventArgs e) private void FrmBoardSelect_Load(object sender, EventArgs e)
{ {
FormEn(true);
SetSkin(this); SetSkin(this);
LanguageProcess(); LanguageProcess();
LoadCom(); LoadCom();
...@@ -73,59 +75,23 @@ namespace TSA_V ...@@ -73,59 +75,23 @@ namespace TSA_V
private void btnBack_Click(object sender, EventArgs e) private void btnBack_Click(object sender, EventArgs e)
{ {
if (ChangeWidthTask != null&&ChangeWidthTask.IsCompleted.Equals(false))
{
LWidthManager.StopChangeWidth();
LogUtil.info(Name + "返回之前,停止调宽");
}
FormEn(true);
this.Close(); this.Close();
} }
private void BtnNext_Click(object sender, EventArgs e) private void BtnNext_Click(object sender, EventArgs e)
{ {
if (CanStart())
if (this.cmbBoardList.SelectedIndex < 0)
{
MessageBox.Show(ResourceCulture.GetString(ResourceCulture.ConfigProduct, "请先配置程序"));
this.Close();
}
else if (this.cmbBoardList.SelectedIndex.Equals(0))
{ {
MessageBox.Show(ResourceCulture.GetString(ResourceCulture.ConfigProduct, "请先选择程序"));
}
else
{
TSAVBean.OnlyGuoBan = chbGuoban.Checked;
LogUtil.info("选择程序,是否流水线过板=" + TSAVBean.OnlyGuoBan);
if (WorkType.Equals(1))
{
if (BoardManager.CurrBoard.smtList.Count <= 0)
{
MessageBox.Show(ResourceCulture.GetString(ResourceCulture.CanotFindInfo, "电路板【{0}】没有组装信息,请选择其他程序!", BoardManager.CurrBoard.boardName));
return;
}
WorkInfo.LastDBId = 0; WorkInfo.LastDBId = 0;
FrmWork fw = new FrmWork(); FrmWork fw = new FrmWork();
this.Hide(); this.Hide();
fw.ShowDialog(); fw.ShowDialog();
}
else if (WorkType.Equals(2))
{
if (BoardManager.CurrBoard.GetSolderingSMTList().Count <= 0)
{
MessageBox.Show("电路板【" + BoardManager.CurrBoard.boardName + "】没有配置焊接信息,请选择其他程序!");
return;
}
//FrmTSAVSoldering fw = new FrmTSAVSoldering();
//this.Hide();
//fw.ShowDialog();
}
else if (WorkType.Equals(3))
{
if (BoardManager.CurrBoard.GetCheckSMTList().Count <= 0)
{
MessageBox.Show("电路板【" + BoardManager.CurrBoard.boardName + "】没有配置检测信息,请选择其他程序!");
return;
}
//FrmCheck fw = new FrmCheck();
//this.Hide();
//fw.ShowDialog();
}
this.Close(); this.Close();
} }
} }
...@@ -178,5 +144,104 @@ namespace TSA_V ...@@ -178,5 +144,104 @@ namespace TSA_V
{ {
txtCode.Focus(); txtCode.Focus();
} }
private bool CanStart()
{
if (this.cmbBoardList.SelectedIndex < 0)
{
MessageBox.Show(ResourceCulture.GetString(ResourceCulture.ConfigProduct, "请先配置程序"));
this.Close();
}
else if (this.cmbBoardList.SelectedIndex.Equals(0))
{
MessageBox.Show(ResourceCulture.GetString(ResourceCulture.ConfigProduct, "请先选择程序"));
}
else
{
TSAVBean.OnlyGuoBan = chbGuoban.Checked;
LogUtil.info("选择程序,是否流水线过板=" + TSAVBean.OnlyGuoBan);
if (WorkType.Equals(1))
{
if (BoardManager.CurrBoard.smtList.Count <= 0)
{
MessageBox.Show(ResourceCulture.GetString(ResourceCulture.CanotFindInfo, "电路板【{0}】没有组装信息,请选择其他程序!", BoardManager.CurrBoard.boardName));
return false;
}
return true;
}
else if (WorkType.Equals(2))
{
if (BoardManager.CurrBoard.GetSolderingSMTList().Count <= 0)
{
MessageBox.Show("电路板【" + BoardManager.CurrBoard.boardName + "】没有配置焊接信息,请选择其他程序!");
return false;
}
return true;
}
else if (WorkType.Equals(3))
{
if (BoardManager.CurrBoard.GetCheckSMTList().Count <= 0)
{
MessageBox.Show("电路板【" + BoardManager.CurrBoard.boardName + "】没有配置检测信息,请选择其他程序!");
return false;
}
return true;
}
}
return false;
}
Task ChangeWidthTask = null;
private void btnChangeW_Click(object sender, EventArgs e)
{
if (CanStart())
{
int w = BoardManager.CurrBoard.LineWidth;
int p = LWidthManager.GetWidthPosition(w);
LogUtil.info(" 选择程序[" + BoardManager.CurrBoard.boardName + "]后,开始轨道调宽:【" + w + "】【" + p + "】");
DialogResult result= MessageBox.Show("当前宽度[],目标宽度[],是否开始调宽","提示",MessageBoxButtons.OKCancel,MessageBoxIcon.Question);
if (!result.Equals(DialogResult.OK))
{
return;
}
if (!LWidthManager.CanStartChWidth())
{
MessageBox.Show("启动调宽失败");
return;
}
FormEn(false); Task.Factory.StartNew(delegate
{
ChangeWidthTask = Task.Factory.StartNew(delegate
{
//string result = LWidthManager.StartChangeWidth(w, p);
//LogUtil.info("调宽" + w + "=" + p + "结束:" + result);
//if (String.IsNullOrEmpty(result))
//{
// MessageBox.Show("调宽" + w + "=" + p + "完成");
//}
//else
//{
// MessageBox.Show("调宽" + w + "=" + p + "结束:" + result);
//}
Thread.Sleep(5000);
});
ChangeWidthTask.Wait();
FormEn(true);
});
}
}
private void FormEn(bool en)
{
lblWait.Visible = !en;
txtCode.Enabled = en;
cmbBoardList.Enabled = en;
btnChangeW.Enabled = en;
btnNext.Enabled = en;
chbGuoban.Enabled = en;
btnBack.Enabled = true;
}
} }
} }
...@@ -117,4 +117,66 @@ ...@@ -117,4 +117,66 @@
<resheader name="writer"> <resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </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>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="lblWait.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
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
5B8TgRwSRKIHQtaLCwg1RAAAOw==
</value>
</data>
</root> </root>
\ No newline at end of file \ No newline at end of file
...@@ -98,7 +98,7 @@ namespace UserFromControl ...@@ -98,7 +98,7 @@ namespace UserFromControl
private void btnUp_Click(object sender, EventArgs e) private void btnUp_Click(object sender, EventArgs e)
{ {
int stepValue = (int)(GetStepValue() * ConfigAppSettings.GetDoubleValue(Setting_Init.YAxis_Change)); int stepValue = (int)(GetStepValue() * TSAVBean.Y_ChangeValue);
int targetValue = FormUtil.GetIntValue(numY) - stepValue; int targetValue = FormUtil.GetIntValue(numY) - stepValue;
if (targetValue >= 0 ) if (targetValue >= 0 )
{ {
...@@ -109,7 +109,7 @@ namespace UserFromControl ...@@ -109,7 +109,7 @@ namespace UserFromControl
private void btnLeft_Click(object sender, EventArgs e) private void btnLeft_Click(object sender, EventArgs e)
{ {
int stepValue = (int)(GetStepValue() * ConfigAppSettings.GetDoubleValue(Setting_Init.XAxis_Change)); int stepValue = (int)(GetStepValue() * TSAVBean.X_ChangeValue);
int targetValue = FormUtil.GetIntValue(numX) - stepValue; int targetValue = FormUtil.GetIntValue(numX) - stepValue;
if (targetValue >= 0 ) if (targetValue >= 0 )
{ {
...@@ -120,7 +120,7 @@ namespace UserFromControl ...@@ -120,7 +120,7 @@ namespace UserFromControl
private void btnRight_Click(object sender, EventArgs e) private void btnRight_Click(object sender, EventArgs e)
{ {
int stepValue = (int)(GetStepValue() * ConfigAppSettings.GetDoubleValue(Setting_Init.XAxis_Change)); int stepValue = (int)(GetStepValue() * TSAVBean.X_ChangeValue);
int targetValue = FormUtil.GetIntValue(numX) + stepValue; int targetValue = FormUtil.GetIntValue(numX) + stepValue;
if ( targetValue <= MaxX) if ( targetValue <= MaxX)
...@@ -132,7 +132,7 @@ namespace UserFromControl ...@@ -132,7 +132,7 @@ namespace UserFromControl
private void btnDown_Click(object sender, EventArgs e) private void btnDown_Click(object sender, EventArgs e)
{ {
int stepValue = (int)(GetStepValue() * ConfigAppSettings.GetDoubleValue(Setting_Init.YAxis_Change)); int stepValue = (int)(GetStepValue() * TSAVBean.Y_ChangeValue);
int targetValue = FormUtil.GetIntValue(numY) + stepValue; int targetValue = FormUtil.GetIntValue(numY) + stepValue;
if ( targetValue <= MaxY) if ( targetValue <= MaxY)
{ {
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!