#260316 新增EHV车型的界面设计

This commit is contained in:
zhengxuan.zhang
2026-03-16 10:12:40 +08:00
parent ae7348c629
commit ea00a90056
6 changed files with 10588 additions and 0 deletions
@@ -0,0 +1,487 @@
using BaseFunction;
using DAL;
using System;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Windows.Forms;
using UserControlClass;
namespace NSAnalysis
{
public partial class FEH3LeftCarData : Telerik.WinControls.UI.ShapedForm
{
#region
private TMeasureMSSQLDAL tmdal = new TMeasureMSSQLDAL();
private DataTable dtVINData = new DataTable();
private string strLastVIN = "";
private BackgroundWorker m_bgwRefreshCar = new BackgroundWorker();
private CenterControl gCC = null;
#endregion
public FEH3LeftCarData(CenterControl cc)
{
InitializeComponent();
gCC = cc;
}
/// <summary>
/// 指定屏幕显示
/// </summary>
public void SpecifyScreenDisplay1()
{
try
{
Screen[] screens = Screen.AllScreens;
// 指定显示在第二个显示器
Screen secondScreen = screens[1]; //1
// 设置窗体位置和大小
this.StartPosition = FormStartPosition.Manual;
this.Left = secondScreen.WorkingArea.Left;
this.Top = secondScreen.WorkingArea.Top;
this.Width = secondScreen.WorkingArea.Width;
this.Height = secondScreen.WorkingArea.Height;
this.Show();
}
catch { }
}
#region
private void InitNextSenseControl()
{
string strNSName = "";
UCVWNextSense ucns = null;
for (int i = 1; i <= 30; i++)
{
strNSName = "";//L0" + i.ToString();
if (i <= 9)
strNSName = "L0" + i.ToString();
else
{
strNSName = "L" + i.ToString();
}
ucns = ((UCVWNextSense)MyBase.GetChildControl(this, strNSName));
if (ucns != null)
{
ucns.tlpBackColor = Color.White;
ucns.tlpFBackColor = Color.White;
ucns.tlpGBackColor = Color.White;
ucns.labFVal = "";
ucns.labFLowerUpper = "";
ucns.labGVal = "";
ucns.labGLowerUpper = "";
}
}
}
#endregion
private void FEH3LeftCarData_Load(object sender, EventArgs e)
{
MyBase.TraceWriteLine("[FEH3LeftCarData] 窗体开始加载");
//InitNextSenseOneItemControl();
InitNextSenseControl();
labVIN.Text = "";
tmrRefreshData.Interval = 1000;
//tmrRefreshData.Start();
m_bgwRefreshCar.WorkerSupportsCancellation = true;
m_bgwRefreshCar.DoWork += new DoWorkEventHandler(m_bgwRefreshCar_DoWork);
m_bgwRefreshCar.RunWorkerAsync();
SpecifyScreenDisplay1();
MyBase.TraceWriteLine("[FEH3LeftCarData] 窗体加载完成,后台刷新线程已启动");
}
private void m_bgwRefreshCar_DoWork(object sender, DoWorkEventArgs e)
{
MyBase.TraceWriteLine("[FEH3LeftCarData] 后台刷新线程开始运行");
while (!m_bgwRefreshCar.CancellationPending)
{
try
{
string strVIN = tmdal.SelectMaintenanceStation7VIN();
RefreshMonitor.LogRefreshActivity("FEH3LeftCarData", strVIN, true);
RefreshMonitor.LogDatabaseQuery("FEH3LeftCarData", "SelectMaintenanceStation7VIN", strVIN);
if (strLastVIN != strVIN)
{
MyBase.TraceWriteLine($"[FEH3LeftCarData] VIN码变更: {strLastVIN} -> {strVIN}");
if (strVIN.ToLower().Contains("empty"))
{
Invoke((MethodInvoker)(() =>
{
labVIN.Text = "VIN码为空";
}));
//InitNextSenseOneItemControl();
InitNextSenseControl();
RefreshMonitor.LogUIUpdate("FEH3LeftCarData", "初始化控件(VIN为空)", 30);
MyBase.TraceWriteLine("[FEH3LeftCarData] VIN码为空,初始化控件");
}
else
{
if (strVIN.Length == 17)
{
string strSubVIN = strVIN;
dtVINData.Clear();
Invoke((MethodInvoker)(() =>
{
labVIN.Text = strSubVIN;
}));
string strCarType = tmdal.SelectCarTypeByVIN(strSubVIN);
RefreshMonitor.LogDatabaseQuery("FEH3LeftCarData", "SelectCarTypeByVIN", strCarType);
MyBase.TraceWriteLine($"[FEH3LeftCarData] 查询到车型: {strCarType} (VIN长度17)");
if (strCarType.ToUpper().Contains("EH3"))
{
MyBase.TraceWriteLine("Left EH3 UI Refresh m_bgwRefreshCar_DoWork (strVIN.Length==17)strLastVIN" + strLastVIN + " ;VIN: " + strSubVIN);
SpecifyScreenDisplay1();
dtVINData = tmdal.SelectTMeasureDataByCarIDAndMPN(strSubVIN, "L");
RefreshMonitor.LogDatabaseQuery("FEH3LeftCarData", "SelectTMeasureDataByCarIDAndMPN", "查询测量数据", dtVINData.Rows.Count);
MyBase.TraceWriteLine($"[FEH3LeftCarData] 获取测量数据: {dtVINData.Rows.Count} 行");
if (dtVINData.Rows.Count > 0)
{
refreshCarUIData(dtVINData);
analysisTitleColor();
RefreshMonitor.LogUIUpdate("FEH3LeftCarData", "刷新测量数据", dtVINData.Rows.Count);
MyBase.TraceWriteLine($"[FEH3LeftCarData] UI数据刷新完成,更新了 {dtVINData.Rows.Count} 个测量点");
}
else
{
InitNextSenseControl();
RefreshMonitor.LogUIUpdate("FEH3LeftCarData", "初始化控件(无测量数据)", 30);
MyBase.TraceWriteLine("[FEH3LeftCarData] 无测量数据,初始化控件");
}
gCC.ShowCarMeasureDataByCarType(1);
}
else
{
MyBase.TraceWriteLine($"[FEH3LeftCarData] 车型不匹配EH3: {strCarType}");
}
}
if (strVIN.Length == 21)
{
string strSubVIN = strVIN.Substring(0, 17);
dtVINData.Clear();
Invoke((MethodInvoker)(() =>
{
labVIN.Text = strSubVIN;
}));
string strCarType = strVIN.Substring(18, 3);
RefreshMonitor.LogDatabaseQuery("FEH3LeftCarData", "ExtractCarTypeFromVIN", strCarType);
MyBase.TraceWriteLine($"[FEH3LeftCarData] 从VIN提取车型: {strCarType} (VIN长度21)");
if (strCarType.ToUpper().Contains("EH3"))
{
MyBase.TraceWriteLine("Left EH3 UI Refresh m_bgwRefreshCar_DoWork (strVIN.Length==21)strLastVIN" + strLastVIN + " ;VIN: " + strSubVIN);
SpecifyScreenDisplay1();
dtVINData = tmdal.SelectTMeasureDataByCarIDAndMPN(strSubVIN, "L");
RefreshMonitor.LogDatabaseQuery("FEH3LeftCarData", "SelectTMeasureDataByCarIDAndMPN", "查询测量数据", dtVINData.Rows.Count);
MyBase.TraceWriteLine($"[FEH3LeftCarData] 获取测量数据: {dtVINData.Rows.Count} 行");
if (dtVINData.Rows.Count > 0)
{
refreshCarUIData(dtVINData);
analysisTitleColor();
RefreshMonitor.LogUIUpdate("FEH3LeftCarData", "刷新测量数据", dtVINData.Rows.Count);
MyBase.TraceWriteLine($"[FEH3LeftCarData] UI数据刷新完成,更新了 {dtVINData.Rows.Count} 个测量点");
}
else
{
InitNextSenseControl();
RefreshMonitor.LogUIUpdate("FEH3LeftCarData", "初始化控件(无测量数据)", 30);
MyBase.TraceWriteLine("[FEH3LeftCarData] 无测量数据,初始化控件");
}
gCC.ShowCarMeasureDataByCarType(1);
}
else
{
MyBase.TraceWriteLine($"[FEH3LeftCarData] 车型不匹配EH3: {strCarType}");
}
}
}
}
strLastVIN = strVIN;
}
catch (Exception ex)
{
RefreshMonitor.LogRefreshActivity("FEH3LeftCarData", "ERROR", false);
MyBase.TraceWriteLine("[FEH3LeftCarData] 后台刷新线程异常: " + ex.Message);
MyBase.TraceWriteLine("[FEH3LeftCarData] 异常堆栈: " + ex.StackTrace);
// 异常后等待更长时间再重试
System.Threading.Thread.Sleep(5000);
}
// 添加延时,避免CPU占用过高,同时检查取消请求
for (int i = 0; i < 11; i++) // 总共1100ms延时,分成11次检查
{
if (m_bgwRefreshCar.CancellationPending)
break;
System.Threading.Thread.Sleep(100);
}
}
MyBase.TraceWriteLine("[FEH3LeftCarData] 后台刷新线程已停止");
}
private void btnRefresh_Click(object sender, EventArgs e)
{
SpecifyScreenDisplay1();
string strVIN = tmdal.SelectMaintenanceStation7VIN();
if (strVIN.ToLower().Contains("empty"))
{
labVIN.Text = "VIN码为空";
InitNextSenseControl();
}
else
{
if (strVIN.Length == 17)
{
string strSubVIN = strVIN;// strVIN.Substring(0, strVIN.Length - 2);
dtVINData.Clear();
labVIN.Text = strSubVIN;
string strCarType = tmdal.SelectCarTypeByVIN(strSubVIN);
MyBase.TraceWriteLine("Left EH3 UI Refresh Button (strVIN.Length==17)CarType" + strCarType + " ;VIN: " + strSubVIN);
if (strCarType.ToUpper().Contains("EH3"))
{
dtVINData = tmdal.SelectTMeasureDataByCarIDAndMPN(strSubVIN, "L");
if (dtVINData.Rows.Count > 0)
{
refreshCarUIData(dtVINData);
analysisTitleColor();
}
else
{
InitNextSenseControl();
}
}
}
if (strVIN.Length == 21)
{
string strSubVIN = strVIN.Substring(0, 17);
dtVINData.Clear();
labVIN.Text = strSubVIN;
string strCarType = strVIN.Substring(18, 3);
MyBase.TraceWriteLine("Left EH3 UI Refresh Button (strVIN.Length==21)CarType" + strCarType + " ;VIN: " + strSubVIN);
if (strCarType.ToUpper().Contains("EH3"))
{
dtVINData = tmdal.SelectTMeasureDataByCarIDAndMPN(strSubVIN, "L");
if (dtVINData.Rows.Count > 0)
{
refreshCarUIData(dtVINData);
analysisTitleColor();
}
else
{
InitNextSenseControl();
}
}
}
}
}
private void tmrRefreshData_Tick(object sender, EventArgs e)
{
try
{
tmrRefreshData.Stop();
string strVIN = tmdal.SelectMaintenanceStation7VIN();
if (strLastVIN != strVIN)
{
if (strVIN.ToLower().Contains("empty"))
{
labVIN.Text = "VIN码为空";
//InitNextSenseOneItemControl();
InitNextSenseControl();
}
else
{
if (strVIN.Length == 17)
{
string strSubVIN = strVIN;
dtVINData.Clear();
labVIN.Text = strSubVIN;
string strCarType = tmdal.SelectCarTypeByVIN(strSubVIN);
if (strCarType.ToUpper().Contains("EH3"))
{
MyBase.TraceWriteLine("Left EH3 UI Refresh tmrRefreshData (strVIN.Length==17)strLastVIN" + strLastVIN + " ;VIN: " + strSubVIN);
SpecifyScreenDisplay1();
dtVINData = tmdal.SelectTMeasureDataByCarIDAndMPN(strSubVIN, "L");
if (dtVINData.Rows.Count > 0)
{
refreshCarUIData(dtVINData);
analysisTitleColor();
}
else
{
InitNextSenseControl();
}
gCC.ShowCarMeasureDataByCarType(1);
}
}
if (strVIN.Length == 21)
{
string strSubVIN = strVIN.Substring(0, 17);
dtVINData.Clear();
labVIN.Text = strSubVIN;
string strCarType = strVIN.Substring(18, 3);
if (strCarType.ToUpper().Contains("EH3"))
{
MyBase.TraceWriteLine("Left EH3 UI Refresh tmrRefreshData (strVIN.Length==21)strLastVIN" + strLastVIN + " ;VIN: " + strSubVIN);
SpecifyScreenDisplay1();
dtVINData = tmdal.SelectTMeasureDataByCarIDAndMPN(strSubVIN, "L");
if (dtVINData.Rows.Count > 0)
{
refreshCarUIData(dtVINData);
analysisTitleColor();
}
else
{
InitNextSenseControl();
}
gCC.ShowCarMeasureDataByCarType(1);
}
}
}
}
strLastVIN = strVIN;
tmrRefreshData.Start();
}
catch (Exception ex)
{
MyBase.TraceWriteLine("Left EHY UI Refresh tmrRefreshData Error:" + ex.Message);
}
}
private Color analysisColorbyStatus(string strStatus)
{
Color colStatus = new Color();
switch (strStatus.ToLower())
{
case "best":
colStatus = Color.Lime;
break;
case "good":
colStatus = Color.Lime;
break;
case "ng1":
colStatus = Color.Yellow;
break;
case "ng2":
colStatus = Color.Red;
break;
default:
colStatus = Color.LightGray;
break;
}
return colStatus;
}
private void analysisTitleColor()
{
string strNSName = "";
UCVWNextSense ucns = null;
for (int i = 1; i <= 25; i++)
{
if (i <= 9)
strNSName = "L0" + i.ToString();
else
{
strNSName = "L" + i.ToString();
}
ucns = ((UCVWNextSense)MyBase.GetChildControl(this, strNSName));
Invoke((MethodInvoker)(() =>
{
if (ucns != null)
{
if (ucns.tlpFBackColor == Color.Red || ucns.tlpGBackColor == Color.Red)
{
ucns.tlpBackColor = Color.Red;
}
else if (ucns.tlpFBackColor == Color.LightGray && ucns.tlpGBackColor == Color.LightGray)
{
ucns.tlpBackColor = Color.LightGray;
}
else if (ucns.tlpFBackColor == Color.Yellow && ucns.tlpGBackColor == Color.Yellow)
{
ucns.tlpBackColor = Color.Yellow;
}
else
{
ucns.tlpBackColor = Color.Lime;
}
}
}));
}
}
private void refreshCarUIData(DataTable dtData)
{
string strNSName = "";
string strFGName = "";
UCVWNextSense ucns = null;
for (int i = 0; i < dtData.Rows.Count; i++)
{
strNSName = dtData.Rows[i]["MeasPointName"].ToString().Replace("-", "");
strFGName = dtData.Rows[i]["DimensionName"].ToString();
ucns = ((UCVWNextSense)MyBase.GetChildControl(this, strNSName));
Invoke((MethodInvoker)(() =>
{
if (ucns != null)
{
if (strFGName == "F")
{
ucns.labFVal = dtData.Rows[i]["MeasureValue"].ToString();
ucns.labFLowerUpper = dtData.Rows[i]["LowerTolVal"].ToString() + "/" + dtData.Rows[i]["UpperTolVal"].ToString();
ucns.tlpFBackColor = analysisColorbyStatus(dtData.Rows[i]["MeasureItemResult"].ToString());
}
else
{
ucns.labGVal = dtData.Rows[i]["MeasureValue"].ToString();
ucns.labGLowerUpper = dtData.Rows[i]["LowerTolVal"].ToString() + "/" + dtData.Rows[i]["UpperTolVal"].ToString();
ucns.tlpGBackColor = analysisColorbyStatus(dtData.Rows[i]["MeasureItemResult"].ToString());
}
}
}));
}
}
private void FEH3LeftCarData_FormClosing(object sender, FormClosingEventArgs e)
{
MyBase.TraceWriteLine("[FEH3LeftCarData] 窗体开始关闭");
// 停止后台工作线程
if (m_bgwRefreshCar.IsBusy)
{
MyBase.TraceWriteLine("[FEH3LeftCarData] 正在停止后台刷新线程...");
m_bgwRefreshCar.CancelAsync();
// 等待线程结束,最多等待3秒
int waitCount = 0;
while (m_bgwRefreshCar.IsBusy && waitCount < 30)
{
System.Threading.Thread.Sleep(100);
waitCount++;
}
MyBase.TraceWriteLine($"[FEH3LeftCarData] 后台线程停止完成,等待了 {waitCount * 100}ms");
}
// 输出最终统计信息
MyBase.TraceWriteLine("[FEH3LeftCarData] 最终统计: " + RefreshMonitor.GetStatistics("FEH3LeftCarData"));
e.Cancel = true;
this.Hide();
MyBase.TraceWriteLine("[FEH3LeftCarData] 窗体已隐藏");
}
}
}
+562
View File
@@ -0,0 +1,562 @@
namespace NSAnalysis
{
partial class FEH3LeftCarData
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FEH3LeftCarData));
this.radTitleBar1 = new Telerik.WinControls.UI.RadTitleBar();
this.label2 = new System.Windows.Forms.Label();
this.labTitle = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.labVIN = new System.Windows.Forms.Label();
this.tmrRefreshData = new System.Windows.Forms.Timer(this.components);
this.L10 = new UserControlClass.UCVWNextSense();
this.L03 = new UserControlClass.UCVWNextSense();
this.L06 = new UserControlClass.UCVWNextSense();
this.L04 = new UserControlClass.UCVWNextSense();
this.L02 = new UserControlClass.UCVWNextSense();
this.L13 = new UserControlClass.UCVWNextSense();
this.L01 = new UserControlClass.UCVWNextSense();
this.L08 = new UserControlClass.UCVWNextSense();
this.L12 = new UserControlClass.UCVWNextSense();
this.L21 = new UserControlClass.UCVWNextSense();
this.L15 = new UserControlClass.UCVWNextSense();
this.L18 = new UserControlClass.UCVWNextSense();
this.L16 = new UserControlClass.UCVWNextSense();
this.L22 = new UserControlClass.UCVWNextSense();
this.L14 = new UserControlClass.UCVWNextSense();
this.btnRefresh = new System.Windows.Forms.Button();
this.pictureBox2 = new System.Windows.Forms.PictureBox();
this.pbLeftCar = new System.Windows.Forms.PictureBox();
((System.ComponentModel.ISupportInitialize)(this.radTitleBar1)).BeginInit();
this.radTitleBar1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pbLeftCar)).BeginInit();
this.SuspendLayout();
//
// radTitleBar1
//
this.radTitleBar1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.radTitleBar1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(44)))), ((int)(((byte)(109)))), ((int)(((byte)(124)))));
this.radTitleBar1.Controls.Add(this.label2);
this.radTitleBar1.Controls.Add(this.labTitle);
this.radTitleBar1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.radTitleBar1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(44)))), ((int)(((byte)(109)))), ((int)(((byte)(124)))));
this.radTitleBar1.Location = new System.Drawing.Point(1, 1);
this.radTitleBar1.Name = "radTitleBar1";
//
//
//
this.radTitleBar1.RootElement.ApplyShapeToControl = true;
this.radTitleBar1.RootElement.BorderHighlightColor = System.Drawing.Color.FromArgb(((int)(((byte)(44)))), ((int)(((byte)(109)))), ((int)(((byte)(124)))));
this.radTitleBar1.Size = new System.Drawing.Size(1918, 37);
this.radTitleBar1.TabIndex = 0;
this.radTitleBar1.TabStop = false;
this.radTitleBar1.Text = "左侧车身测量数据";
((Telerik.WinControls.UI.RadTitleBarElement)(this.radTitleBar1.GetChildAt(0))).Text = "左侧车身测量数据";
((Telerik.WinControls.Primitives.FillPrimitive)(this.radTitleBar1.GetChildAt(0).GetChildAt(0))).BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(44)))), ((int)(((byte)(109)))), ((int)(((byte)(124)))));
((Telerik.WinControls.Primitives.FillPrimitive)(this.radTitleBar1.GetChildAt(0).GetChildAt(0))).BackColor3 = System.Drawing.Color.FromArgb(((int)(((byte)(44)))), ((int)(((byte)(109)))), ((int)(((byte)(124)))));
((Telerik.WinControls.Primitives.FillPrimitive)(this.radTitleBar1.GetChildAt(0).GetChildAt(0))).BackColor4 = System.Drawing.Color.FromArgb(((int)(((byte)(44)))), ((int)(((byte)(109)))), ((int)(((byte)(124)))));
((Telerik.WinControls.Primitives.FillPrimitive)(this.radTitleBar1.GetChildAt(0).GetChildAt(0))).SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.None;
((Telerik.WinControls.Primitives.BorderPrimitive)(this.radTitleBar1.GetChildAt(0).GetChildAt(1))).LeftColor = System.Drawing.Color.FromArgb(((int)(((byte)(44)))), ((int)(((byte)(109)))), ((int)(((byte)(124)))));
((Telerik.WinControls.Primitives.BorderPrimitive)(this.radTitleBar1.GetChildAt(0).GetChildAt(1))).TopColor = System.Drawing.Color.FromArgb(((int)(((byte)(44)))), ((int)(((byte)(109)))), ((int)(((byte)(124)))));
((Telerik.WinControls.Primitives.BorderPrimitive)(this.radTitleBar1.GetChildAt(0).GetChildAt(1))).RightColor = System.Drawing.Color.FromArgb(((int)(((byte)(44)))), ((int)(((byte)(109)))), ((int)(((byte)(124)))));
((Telerik.WinControls.Primitives.BorderPrimitive)(this.radTitleBar1.GetChildAt(0).GetChildAt(1))).BottomColor = System.Drawing.Color.FromArgb(((int)(((byte)(44)))), ((int)(((byte)(109)))), ((int)(((byte)(124)))));
((Telerik.WinControls.Primitives.BorderPrimitive)(this.radTitleBar1.GetChildAt(0).GetChildAt(1))).BottomShadowColor = System.Drawing.Color.FromArgb(((int)(((byte)(44)))), ((int)(((byte)(109)))), ((int)(((byte)(124)))));
((Telerik.WinControls.Primitives.BorderPrimitive)(this.radTitleBar1.GetChildAt(0).GetChildAt(1))).InnerColor = System.Drawing.Color.FromArgb(((int)(((byte)(44)))), ((int)(((byte)(109)))), ((int)(((byte)(124)))));
((Telerik.WinControls.Primitives.BorderPrimitive)(this.radTitleBar1.GetChildAt(0).GetChildAt(1))).InnerColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(44)))), ((int)(((byte)(109)))), ((int)(((byte)(124)))));
((Telerik.WinControls.Primitives.BorderPrimitive)(this.radTitleBar1.GetChildAt(0).GetChildAt(1))).InnerColor3 = System.Drawing.Color.FromArgb(((int)(((byte)(44)))), ((int)(((byte)(109)))), ((int)(((byte)(124)))));
((Telerik.WinControls.Primitives.BorderPrimitive)(this.radTitleBar1.GetChildAt(0).GetChildAt(1))).InnerColor4 = System.Drawing.Color.FromArgb(((int)(((byte)(44)))), ((int)(((byte)(109)))), ((int)(((byte)(124)))));
((Telerik.WinControls.Primitives.BorderPrimitive)(this.radTitleBar1.GetChildAt(0).GetChildAt(1))).SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.Default;
//
// label2
//
this.label2.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.label2.AutoSize = true;
this.label2.Image = ((System.Drawing.Image)(resources.GetObject("label2.Image")));
this.label2.Location = new System.Drawing.Point(875, -5);
this.label2.Name = "label2";
this.label2.Padding = new System.Windows.Forms.Padding(20, 14, 20, 14);
this.label2.Size = new System.Drawing.Size(40, 50);
this.label2.TabIndex = 1;
//
// labTitle
//
this.labTitle.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.labTitle.AutoSize = true;
this.labTitle.Font = new System.Drawing.Font("微软雅黑", 14F);
this.labTitle.ForeColor = System.Drawing.Color.White;
this.labTitle.Location = new System.Drawing.Point(911, 7);
this.labTitle.Name = "labTitle";
this.labTitle.Size = new System.Drawing.Size(164, 25);
this.labTitle.TabIndex = 0;
this.labTitle.Text = "左侧车身测量数据";
//
// label3
//
this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.label3.AutoSize = true;
this.label3.Font = new System.Drawing.Font("Segoe UI", 58F);
this.label3.Location = new System.Drawing.Point(476, 970);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(253, 104);
this.label3.TabIndex = 37;
this.label3.Text = "VIN";
//
// labVIN
//
this.labVIN.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.labVIN.AutoSize = true;
this.labVIN.Font = new System.Drawing.Font("Segoe UI", 58F);
this.labVIN.Location = new System.Drawing.Point(735, 970);
this.labVIN.Name = "labVIN";
this.labVIN.Size = new System.Drawing.Size(838, 104);
this.labVIN.TabIndex = 36;
this.labVIN.Text = "LNNACDEBXRDA20251";
//
// tmrRefreshData
//
this.tmrRefreshData.Interval = 1000;
this.tmrRefreshData.Tick += new System.EventHandler(this.tmrRefreshData_Tick);
//
// L10
//
this.L10.BackColor = System.Drawing.Color.White;
this.L10.ForeColor = System.Drawing.Color.Black;
this.L10.labFLowerUpper = "-2.0/2.0";
this.L10.labFText = "F";
this.L10.labFVal = "0.3";
this.L10.labGLowerUpper = "1.0/6.0";
this.L10.labGText = "G";
this.L10.labGVal = "3.7";
this.L10.labTitleText = "L-10";
this.L10.Location = new System.Drawing.Point(794, 787);
this.L10.Name = "L10";
this.L10.Size = new System.Drawing.Size(220, 145);
this.L10.TabIndex = 38;
this.L10.tlpBackColor = System.Drawing.Color.Lime;
this.L10.tlpFBackColor = System.Drawing.Color.Lime;
this.L10.tlpGBackColor = System.Drawing.Color.Lime;
this.L10.tlpTitleBackSize = new System.Drawing.Size(216, 49);
//
// L03
//
this.L03.BackColor = System.Drawing.Color.White;
this.L03.ForeColor = System.Drawing.Color.Black;
this.L03.labFLowerUpper = "-3.0/2.0";
this.L03.labFText = "F";
this.L03.labFVal = "-0.6";
this.L03.labGLowerUpper = "1.0/6.0";
this.L03.labGText = "G";
this.L03.labGVal = "3.9";
this.L03.labTitleText = "L-03";
this.L03.Location = new System.Drawing.Point(303, 91);
this.L03.Name = "L03";
this.L03.Size = new System.Drawing.Size(220, 145);
this.L03.TabIndex = 40;
this.L03.tlpBackColor = System.Drawing.Color.Lime;
this.L03.tlpFBackColor = System.Drawing.Color.Yellow;
this.L03.tlpGBackColor = System.Drawing.Color.Lime;
this.L03.tlpTitleBackSize = new System.Drawing.Size(216, 49);
//
// L06
//
this.L06.BackColor = System.Drawing.Color.White;
this.L06.ForeColor = System.Drawing.Color.Black;
this.L06.labFLowerUpper = "-2.0/2.0";
this.L06.labFText = "F";
this.L06.labFVal = "-0.1";
this.L06.labGLowerUpper = "1.0/6.0";
this.L06.labGText = "G";
this.L06.labGVal = "3.4";
this.L06.labTitleText = "L-06";
this.L06.Location = new System.Drawing.Point(519, 787);
this.L06.Name = "L06";
this.L06.Size = new System.Drawing.Size(220, 145);
this.L06.TabIndex = 42;
this.L06.tlpBackColor = System.Drawing.Color.Lime;
this.L06.tlpFBackColor = System.Drawing.Color.Lime;
this.L06.tlpGBackColor = System.Drawing.Color.Lime;
this.L06.tlpTitleBackSize = new System.Drawing.Size(216, 49);
//
// L04
//
this.L04.BackColor = System.Drawing.Color.White;
this.L04.ForeColor = System.Drawing.Color.Black;
this.L04.labFLowerUpper = "-1.0/2.0";
this.L04.labFText = "F";
this.L04.labFVal = "-0.1mm";
this.L04.labGLowerUpper = "1.0/6.0";
this.L04.labGText = "G";
this.L04.labGVal = "3.1mm";
this.L04.labTitleText = "L-04";
this.L04.Location = new System.Drawing.Point(551, 91);
this.L04.Name = "L04";
this.L04.Size = new System.Drawing.Size(220, 145);
this.L04.TabIndex = 43;
this.L04.tlpBackColor = System.Drawing.Color.Lime;
this.L04.tlpFBackColor = System.Drawing.Color.Lime;
this.L04.tlpGBackColor = System.Drawing.Color.Lime;
this.L04.tlpTitleBackSize = new System.Drawing.Size(216, 49);
//
// L02
//
this.L02.BackColor = System.Drawing.Color.White;
this.L02.ForeColor = System.Drawing.Color.Black;
this.L02.labFLowerUpper = "-3.0/2.0";
this.L02.labFText = "F";
this.L02.labFVal = "-0.2";
this.L02.labGLowerUpper = "1.0/6.0";
this.L02.labGText = "G";
this.L02.labGVal = "4.4";
this.L02.labTitleText = "L-02";
this.L02.Location = new System.Drawing.Point(29, 91);
this.L02.Name = "L02";
this.L02.Size = new System.Drawing.Size(220, 145);
this.L02.TabIndex = 44;
this.L02.tlpBackColor = System.Drawing.Color.Lime;
this.L02.tlpFBackColor = System.Drawing.Color.Lime;
this.L02.tlpGBackColor = System.Drawing.Color.Lime;
this.L02.tlpTitleBackSize = new System.Drawing.Size(216, 49);
//
// L13
//
this.L13.BackColor = System.Drawing.Color.White;
this.L13.ForeColor = System.Drawing.Color.Black;
this.L13.labFLowerUpper = "-1.5/1.5";
this.L13.labFText = "F";
this.L13.labFVal = "0.6";
this.L13.labGLowerUpper = "2.2/4.2";
this.L13.labGText = "G";
this.L13.labGVal = "4.3";
this.L13.labTitleText = "L-13";
this.L13.Location = new System.Drawing.Point(1068, 787);
this.L13.Name = "L13";
this.L13.Size = new System.Drawing.Size(220, 145);
this.L13.TabIndex = 45;
this.L13.tlpBackColor = System.Drawing.Color.Red;
this.L13.tlpFBackColor = System.Drawing.Color.Lime;
this.L13.tlpGBackColor = System.Drawing.Color.Red;
this.L13.tlpTitleBackSize = new System.Drawing.Size(216, 49);
//
// L01
//
this.L01.BackColor = System.Drawing.Color.White;
this.L01.ForeColor = System.Drawing.Color.Black;
this.L01.labFLowerUpper = "-3.0/2.0";
this.L01.labFText = "F";
this.L01.labFVal = "0.7";
this.L01.labGLowerUpper = "1.0/5.0";
this.L01.labGText = "G";
this.L01.labGVal = "4.1";
this.L01.labTitleText = "L-01";
this.L01.Location = new System.Drawing.Point(219, 787);
this.L01.Name = "L01";
this.L01.Size = new System.Drawing.Size(220, 145);
this.L01.TabIndex = 46;
this.L01.tlpBackColor = System.Drawing.Color.Lime;
this.L01.tlpFBackColor = System.Drawing.Color.Lime;
this.L01.tlpGBackColor = System.Drawing.Color.Lime;
this.L01.tlpTitleBackSize = new System.Drawing.Size(216, 49);
//
// L08
//
this.L08.BackColor = System.Drawing.Color.White;
this.L08.ForeColor = System.Drawing.Color.Black;
this.L08.labFLowerUpper = "-2.0/2.0";
this.L08.labFText = "F";
this.L08.labFVal = "0.3mm";
this.L08.labGLowerUpper = "1.0/6.0";
this.L08.labGText = "G";
this.L08.labGVal = "3.1mm";
this.L08.labTitleText = "L-08";
this.L08.Location = new System.Drawing.Point(793, 86);
this.L08.Name = "L08";
this.L08.Size = new System.Drawing.Size(220, 145);
this.L08.TabIndex = 48;
this.L08.tlpBackColor = System.Drawing.Color.Lime;
this.L08.tlpFBackColor = System.Drawing.Color.Lime;
this.L08.tlpGBackColor = System.Drawing.Color.Lime;
this.L08.tlpTitleBackSize = new System.Drawing.Size(216, 49);
//
// L12
//
this.L12.BackColor = System.Drawing.Color.White;
this.L12.ForeColor = System.Drawing.Color.Black;
this.L12.labFLowerUpper = "-2.0/2.0";
this.L12.labFText = "F";
this.L12.labFVal = "-0.2mm";
this.L12.labGLowerUpper = "1.0/6.0";
this.L12.labGText = "G";
this.L12.labGVal = "3.0mm";
this.L12.labTitleText = "L-12";
this.L12.Location = new System.Drawing.Point(1066, 85);
this.L12.Name = "L12";
this.L12.Size = new System.Drawing.Size(220, 145);
this.L12.TabIndex = 49;
this.L12.tlpBackColor = System.Drawing.Color.Lime;
this.L12.tlpFBackColor = System.Drawing.Color.Lime;
this.L12.tlpGBackColor = System.Drawing.Color.Lime;
this.L12.tlpTitleBackSize = new System.Drawing.Size(216, 49);
//
// L21
//
this.L21.BackColor = System.Drawing.Color.White;
this.L21.ForeColor = System.Drawing.Color.Black;
this.L21.labFLowerUpper = "-2.0/2.0";
this.L21.labFText = "F";
this.L21.labFVal = "-0.2";
this.L21.labGLowerUpper = "1.0/6.0";
this.L21.labGText = "G";
this.L21.labGVal = "6.1";
this.L21.labTitleText = "L-21";
this.L21.Location = new System.Drawing.Point(1328, 787);
this.L21.Name = "L21";
this.L21.Size = new System.Drawing.Size(220, 145);
this.L21.TabIndex = 50;
this.L21.tlpBackColor = System.Drawing.Color.Lime;
this.L21.tlpFBackColor = System.Drawing.Color.Lime;
this.L21.tlpGBackColor = System.Drawing.Color.Lime;
this.L21.tlpTitleBackSize = new System.Drawing.Size(216, 49);
//
// L15
//
this.L15.BackColor = System.Drawing.Color.White;
this.L15.ForeColor = System.Drawing.Color.Black;
this.L15.labFLowerUpper = "-2.0/2.0";
this.L15.labFText = "F";
this.L15.labFVal = "-1.9mm";
this.L15.labGLowerUpper = "1.0/6.0";
this.L15.labGText = "G";
this.L15.labGVal = "2.8mm";
this.L15.labTitleText = "L-15";
this.L15.Location = new System.Drawing.Point(1590, 91);
this.L15.Name = "L15";
this.L15.Size = new System.Drawing.Size(220, 145);
this.L15.TabIndex = 56;
this.L15.tlpBackColor = System.Drawing.Color.Lime;
this.L15.tlpFBackColor = System.Drawing.Color.Lime;
this.L15.tlpGBackColor = System.Drawing.Color.Lime;
this.L15.tlpTitleBackSize = new System.Drawing.Size(216, 49);
//
// L18
//
this.L18.BackColor = System.Drawing.Color.White;
this.L18.ForeColor = System.Drawing.Color.Black;
this.L18.labFLowerUpper = "0.0/4.0";
this.L18.labFText = "F";
this.L18.labFVal = "-2.7";
this.L18.labGLowerUpper = "1.0/6.0";
this.L18.labGText = "G";
this.L18.labGVal = "2.7";
this.L18.labTitleText = "L-18";
this.L18.Location = new System.Drawing.Point(1696, 518);
this.L18.Name = "L18";
this.L18.Size = new System.Drawing.Size(220, 145);
this.L18.TabIndex = 58;
this.L18.tlpBackColor = System.Drawing.Color.Red;
this.L18.tlpFBackColor = System.Drawing.Color.Red;
this.L18.tlpGBackColor = System.Drawing.Color.Lime;
this.L18.tlpTitleBackSize = new System.Drawing.Size(216, 49);
//
// L16
//
this.L16.BackColor = System.Drawing.Color.White;
this.L16.ForeColor = System.Drawing.Color.Black;
this.L16.labFLowerUpper = "-2.0/2.0";
this.L16.labFText = "F";
this.L16.labFVal = "-2.0mm";
this.L16.labGLowerUpper = "1.0/6.0";
this.L16.labGText = "G";
this.L16.labGVal = "2.7mm";
this.L16.labTitleText = "L-16";
this.L16.Location = new System.Drawing.Point(1697, 277);
this.L16.Name = "L16";
this.L16.Size = new System.Drawing.Size(220, 145);
this.L16.TabIndex = 59;
this.L16.tlpBackColor = System.Drawing.Color.Lime;
this.L16.tlpFBackColor = System.Drawing.Color.Lime;
this.L16.tlpGBackColor = System.Drawing.Color.Lime;
this.L16.tlpTitleBackSize = new System.Drawing.Size(216, 49);
//
// L22
//
this.L22.BackColor = System.Drawing.Color.White;
this.L22.ForeColor = System.Drawing.Color.Black;
this.L22.labFLowerUpper = "-12.0/12.0";
this.L22.labFText = "F";
this.L22.labFVal = "-10.0";
this.L22.labGLowerUpper = "1.0/6.0";
this.L22.labGText = "G";
this.L22.labGVal = "6.0";
this.L22.labTitleText = "L-22";
this.L22.Location = new System.Drawing.Point(1596, 787);
this.L22.Name = "L22";
this.L22.Size = new System.Drawing.Size(220, 145);
this.L22.TabIndex = 60;
this.L22.tlpBackColor = System.Drawing.Color.Lime;
this.L22.tlpFBackColor = System.Drawing.Color.Lime;
this.L22.tlpGBackColor = System.Drawing.Color.Lime;
this.L22.tlpTitleBackSize = new System.Drawing.Size(216, 49);
//
// L14
//
this.L14.BackColor = System.Drawing.Color.White;
this.L14.ForeColor = System.Drawing.Color.Black;
this.L14.labFLowerUpper = "-2.0/2.0";
this.L14.labFText = "F";
this.L14.labFVal = "-1.5mm";
this.L14.labGLowerUpper = "1.0/6.0";
this.L14.labGText = "G";
this.L14.labGVal = "3.2mm";
this.L14.labTitleText = "L-14";
this.L14.Location = new System.Drawing.Point(1327, 91);
this.L14.Name = "L14";
this.L14.Size = new System.Drawing.Size(220, 145);
this.L14.TabIndex = 61;
this.L14.tlpBackColor = System.Drawing.Color.Lime;
this.L14.tlpFBackColor = System.Drawing.Color.Lime;
this.L14.tlpGBackColor = System.Drawing.Color.Lime;
this.L14.tlpTitleBackSize = new System.Drawing.Size(216, 49);
//
// btnRefresh
//
this.btnRefresh.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnRefresh.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(19)))), ((int)(((byte)(46)))), ((int)(((byte)(53)))));
this.btnRefresh.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnRefresh.Font = new System.Drawing.Font("宋体", 3F);
this.btnRefresh.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(19)))), ((int)(((byte)(46)))), ((int)(((byte)(53)))));
this.btnRefresh.Image = global::NSAnalysis.Properties.Resources.Refresh64;
this.btnRefresh.Location = new System.Drawing.Point(1695, 978);
this.btnRefresh.Name = "btnRefresh";
this.btnRefresh.Size = new System.Drawing.Size(86, 92);
this.btnRefresh.TabIndex = 35;
this.btnRefresh.UseVisualStyleBackColor = false;
this.btnRefresh.Click += new System.EventHandler(this.btnRefresh_Click);
//
// pictureBox2
//
this.pictureBox2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.pictureBox2.Image = global::NSAnalysis.Properties.Resources.hexagonlogotransparent;
this.pictureBox2.Location = new System.Drawing.Point(89, 981);
this.pictureBox2.Name = "pictureBox2";
this.pictureBox2.Size = new System.Drawing.Size(316, 83);
this.pictureBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pictureBox2.TabIndex = 34;
this.pictureBox2.TabStop = false;
//
// pbLeftCar
//
this.pbLeftCar.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.pbLeftCar.Image = ((System.Drawing.Image)(resources.GetObject("pbLeftCar.Image")));
this.pbLeftCar.Location = new System.Drawing.Point(3, 40);
this.pbLeftCar.Name = "pbLeftCar";
this.pbLeftCar.Size = new System.Drawing.Size(1916, 925);
this.pbLeftCar.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pbLeftCar.TabIndex = 1;
this.pbLeftCar.TabStop = false;
//
// FEH3LeftCarData
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(19)))), ((int)(((byte)(46)))), ((int)(((byte)(53)))));
this.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(44)))), ((int)(((byte)(109)))), ((int)(((byte)(124)))));
this.BorderWidth = 0;
this.ClientSize = new System.Drawing.Size(1920, 1080);
this.Controls.Add(this.L14);
this.Controls.Add(this.L22);
this.Controls.Add(this.L16);
this.Controls.Add(this.L18);
this.Controls.Add(this.L15);
this.Controls.Add(this.L21);
this.Controls.Add(this.L12);
this.Controls.Add(this.L08);
this.Controls.Add(this.L01);
this.Controls.Add(this.L13);
this.Controls.Add(this.L03);
this.Controls.Add(this.L02);
this.Controls.Add(this.L04);
this.Controls.Add(this.L06);
this.Controls.Add(this.labVIN);
this.Controls.Add(this.L10);
this.Controls.Add(this.label3);
this.Controls.Add(this.btnRefresh);
this.Controls.Add(this.pictureBox2);
this.Controls.Add(this.pbLeftCar);
this.Controls.Add(this.radTitleBar1);
this.Font = new System.Drawing.Font("宋体", 9F);
this.ForeColor = System.Drawing.Color.White;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximumSize = new System.Drawing.Size(1920, 1080);
this.Name = "FEH3LeftCarData";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "左侧车身测量数据";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FEH3LeftCarData_FormClosing);
this.Load += new System.EventHandler(this.FEH3LeftCarData_Load);
((System.ComponentModel.ISupportInitialize)(this.radTitleBar1)).EndInit();
this.radTitleBar1.ResumeLayout(false);
this.radTitleBar1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pbLeftCar)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private Telerik.WinControls.UI.RadTitleBar radTitleBar1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label labTitle;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label labVIN;
private System.Windows.Forms.Button btnRefresh;
private System.Windows.Forms.PictureBox pictureBox2;
private System.Windows.Forms.Timer tmrRefreshData;
private System.Windows.Forms.PictureBox pbLeftCar;
private UserControlClass.UCVWNextSense L10;
private UserControlClass.UCVWNextSense L03;
private UserControlClass.UCVWNextSense L06;
private UserControlClass.UCVWNextSense L04;
private UserControlClass.UCVWNextSense L02;
private UserControlClass.UCVWNextSense L13;
private UserControlClass.UCVWNextSense L01;
private UserControlClass.UCVWNextSense L08;
private UserControlClass.UCVWNextSense L12;
private UserControlClass.UCVWNextSense L21;
private UserControlClass.UCVWNextSense L15;
private UserControlClass.UCVWNextSense L18;
private UserControlClass.UCVWNextSense L16;
private UserControlClass.UCVWNextSense L22;
private UserControlClass.UCVWNextSense L14;
}
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,485 @@
using BaseFunction;
using DAL;
using System;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Windows.Forms;
using UserControlClass;
namespace NSAnalysis
{
public partial class FEHYLeftCarData : Telerik.WinControls.UI.ShapedForm
{
#region
private TMeasureMSSQLDAL tmdal = new TMeasureMSSQLDAL();
private DataTable dtVINData = new DataTable();
private string strLastVIN = "";
private CenterControl gCC = null;
private BackgroundWorker m_bgwRefreshCar = new BackgroundWorker();
#endregion
public FEHYLeftCarData(CenterControl cc)
{
InitializeComponent();
gCC = cc;
}
/// <summary>
/// 指定屏幕显示
/// </summary>
public void SpecifyScreenDisplay1()
{
try
{
Screen[] screens = Screen.AllScreens;
// 指定显示在第二个显示器
Screen secondScreen = screens[1]; //1
// 设置窗体位置和大小
this.StartPosition = FormStartPosition.Manual;
this.Left = secondScreen.WorkingArea.Left;
this.Top = secondScreen.WorkingArea.Top;
this.Width = secondScreen.WorkingArea.Width;
this.Height = secondScreen.WorkingArea.Height;
this.Show();
}
catch { }
}
#region
private void InitNextSenseControl()
{
string strNSName = "";
UCVWNextSense ucns = null;
for (int i = 1; i <= 25; i++)
{
strNSName = "";//L0" + i.ToString();
if (i <= 9)
strNSName = "L0" + i.ToString();
else
{
strNSName = "L" + i.ToString();
}
ucns = ((UCVWNextSense)MyBase.GetChildControl(this, strNSName));
if (ucns != null)
{
ucns.tlpBackColor = Color.White;
ucns.tlpFBackColor = Color.White;
ucns.tlpGBackColor = Color.White;
ucns.labFVal = "";
ucns.labFLowerUpper = "";
ucns.labGVal = "";
ucns.labGLowerUpper = "";
}
}
}
#endregion
private void FEHYLeftCarData_Load(object sender, EventArgs e)
{
MyBase.TraceWriteLine("[FEHYLeftCarData] 窗体开始加载");
//InitNextSenseOneItemControl();
InitNextSenseControl();
labVIN.Text = "";
tmrRefreshData.Interval = 1000;
//tmrRefreshData.Start();
m_bgwRefreshCar.WorkerSupportsCancellation = true;
m_bgwRefreshCar.DoWork += new DoWorkEventHandler(m_bgwRefreshCar_DoWork);
m_bgwRefreshCar.RunWorkerAsync();
SpecifyScreenDisplay1();
MyBase.TraceWriteLine("[FEHYLeftCarData] 窗体加载完成,后台刷新线程已启动");
}
private void btnRefresh_Click(object sender, EventArgs e)
{
SpecifyScreenDisplay1();
string strVIN = tmdal.SelectMaintenanceStation7VIN();
if (strVIN.ToLower().Contains("empty"))
{
labVIN.Text = "VIN码为空";
InitNextSenseControl();
}
else
{
if (strVIN.Length == 17)
{
string strSubVIN = strVIN;// strVIN.Substring(0, strVIN.Length - 2);
dtVINData.Clear();
labVIN.Text = strSubVIN;
string strCarType = tmdal.SelectCarTypeByVIN(strSubVIN);
MyBase.TraceWriteLine("Left EHY UI Refresh Button (strVIN.Length==17)CarType" + strCarType + " ;VIN: " + strSubVIN);
if (strCarType.ToUpper().Contains("EHY"))
{
dtVINData = tmdal.SelectTMeasureDataByCarIDAndMPN(strSubVIN, "L");
if (dtVINData.Rows.Count > 0)
{
refreshCarUIData(dtVINData);
analysisTitleColor();
}
else
{
InitNextSenseControl();
}
}
}
if (strVIN.Length == 21)
{
string strSubVIN = strVIN.Substring(0, 17);
dtVINData.Clear();
labVIN.Text = strSubVIN;
string strCarType = strVIN.Substring(18, 3);
MyBase.TraceWriteLine("Left EHY UI Refresh Button (strVIN.Length==21)CarType" + strCarType + " ;VIN: " + strSubVIN);
if (strCarType.ToUpper().Contains("EHY"))
{
dtVINData = tmdal.SelectTMeasureDataByCarIDAndMPN(strSubVIN, "L");
if (dtVINData.Rows.Count > 0)
{
refreshCarUIData(dtVINData);
analysisTitleColor();
}
else
{
InitNextSenseControl();
}
}
}
}
}
private void m_bgwRefreshCar_DoWork(object sender, DoWorkEventArgs e)
{
MyBase.TraceWriteLine("[FEHYLeftCarData] 后台刷新线程开始运行");
while (!m_bgwRefreshCar.CancellationPending)
{
try
{
string strVIN = tmdal.SelectMaintenanceStation7VIN();
RefreshMonitor.LogRefreshActivity("FEHYLeftCarData", strVIN, true);
RefreshMonitor.LogDatabaseQuery("FEHYLeftCarData", "SelectMaintenanceStation7VIN", strVIN);
if (strLastVIN != strVIN)
{
MyBase.TraceWriteLine($"[FEHYLeftCarData] VIN码变更: {strLastVIN} -> {strVIN}");
if (strVIN.ToLower().Contains("empty"))
{
Invoke((MethodInvoker)(() =>
{
labVIN.Text = "VIN码为空";
}));
InitNextSenseControl();
RefreshMonitor.LogUIUpdate("FEHYLeftCarData", "初始化控件(VIN为空)", 25);
MyBase.TraceWriteLine("[FEHYLeftCarData] VIN码为空,初始化控件");
}
else
{
if (strVIN.Length == 17)
{
string strSubVIN = strVIN;//.Substring(0, strVIN.Length - 2);
dtVINData.Clear();
Invoke((MethodInvoker)(() => { labVIN.Text = strSubVIN; }));
string strCarType = tmdal.SelectCarTypeByVIN(strSubVIN);
RefreshMonitor.LogDatabaseQuery("FEHYLeftCarData", "SelectCarTypeByVIN", strCarType);
MyBase.TraceWriteLine($"[FEHYLeftCarData] 查询到车型: {strCarType} (VIN长度17)");
if (strCarType.ToUpper().Contains("EHY"))
{
MyBase.TraceWriteLine("Left EHY UI Refresh m_bgwRefreshCar_DoWork (strVIN.Length==17)strLastVIN" + strLastVIN + " ;VIN: " + strSubVIN);
SpecifyScreenDisplay1();
dtVINData = tmdal.SelectTMeasureDataByCarIDAndMPN(strSubVIN, "L");
RefreshMonitor.LogDatabaseQuery("FEHYLeftCarData", "SelectTMeasureDataByCarIDAndMPN", "查询测量数据", dtVINData.Rows.Count);
MyBase.TraceWriteLine($"[FEHYLeftCarData] 获取测量数据: {dtVINData.Rows.Count} 行");
if (dtVINData.Rows.Count > 0)
{
refreshCarUIData(dtVINData);
analysisTitleColor();
RefreshMonitor.LogUIUpdate("FEHYLeftCarData", "刷新测量数据", dtVINData.Rows.Count);
MyBase.TraceWriteLine($"[FEHYLeftCarData] UI数据刷新完成,更新了 {dtVINData.Rows.Count} 个测量点");
}
else
{
InitNextSenseControl();
RefreshMonitor.LogUIUpdate("FEHYLeftCarData", "初始化控件(无测量数据)", 25);
MyBase.TraceWriteLine("[FEHYLeftCarData] 无测量数据,初始化控件");
}
gCC.ShowCarMeasureDataByCarType(2);
}
else
{
MyBase.TraceWriteLine($"[FEHYLeftCarData] 车型不匹配EHY: {strCarType}");
}
}
if (strVIN.Length == 21)
{
string strSubVIN = strVIN.Substring(0, 17);
dtVINData.Clear();
Invoke((MethodInvoker)(() => { labVIN.Text = strSubVIN; }));
string strCarType = strVIN.Substring(18, 3);
RefreshMonitor.LogDatabaseQuery("FEHYLeftCarData", "ExtractCarTypeFromVIN", strCarType);
MyBase.TraceWriteLine($"[FEHYLeftCarData] 从VIN提取车型: {strCarType} (VIN长度21)");
if (strCarType.ToUpper().Contains("EHY"))
{
MyBase.TraceWriteLine("Left EHY UI Refresh m_bgwRefreshCar_DoWork (strVIN.Length==21)strLastVIN" + strLastVIN + " ;VIN: " + strSubVIN);
SpecifyScreenDisplay1();
dtVINData = tmdal.SelectTMeasureDataByCarIDAndMPN(strSubVIN, "L");
RefreshMonitor.LogDatabaseQuery("FEHYLeftCarData", "SelectTMeasureDataByCarIDAndMPN", "查询测量数据", dtVINData.Rows.Count);
MyBase.TraceWriteLine($"[FEHYLeftCarData] 获取测量数据: {dtVINData.Rows.Count} 行");
if (dtVINData.Rows.Count > 0)
{
refreshCarUIData(dtVINData);
analysisTitleColor();
RefreshMonitor.LogUIUpdate("FEHYLeftCarData", "刷新测量数据", dtVINData.Rows.Count);
MyBase.TraceWriteLine($"[FEHYLeftCarData] UI数据刷新完成,更新了 {dtVINData.Rows.Count} 个测量点");
}
else
{
InitNextSenseControl();
RefreshMonitor.LogUIUpdate("FEHYLeftCarData", "初始化控件(无测量数据)", 25);
MyBase.TraceWriteLine("[FEHYLeftCarData] 无测量数据,初始化控件");
}
gCC.ShowCarMeasureDataByCarType(2);
}
else
{
MyBase.TraceWriteLine($"[FEHYLeftCarData] 车型不匹配EHY: {strCarType}");
}
}
}
}
strLastVIN = strVIN;
}
catch (Exception ex)
{
RefreshMonitor.LogRefreshActivity("FEHYLeftCarData", "ERROR", false);
MyBase.TraceWriteLine("[FEHYLeftCarData] 后台刷新线程异常: " + ex.Message);
MyBase.TraceWriteLine("[FEHYLeftCarData] 异常堆栈: " + ex.StackTrace);
// 异常后等待更长时间再重试
System.Threading.Thread.Sleep(5000);
}
// 添加延时,避免CPU占用过高,同时检查取消请求
for (int i = 0; i < 11; i++) // 总共1100ms延时,分成11次检查
{
if (m_bgwRefreshCar.CancellationPending)
break;
System.Threading.Thread.Sleep(100);
}
}
MyBase.TraceWriteLine("[FEHYLeftCarData] 后台刷新线程已停止");
}
private void tmrRefreshData_Tick(object sender, EventArgs e)
{
tmrRefreshData.Stop();
try
{
string strVIN = tmdal.SelectMaintenanceStation7VIN();
if (strLastVIN != strVIN)
{
if (strVIN.ToLower().Contains("empty"))
{
labVIN.Text = "VIN码为空";
InitNextSenseControl();
}
else
{
if (strVIN.Length == 17)
{
string strSubVIN = strVIN;//.Substring(0, strVIN.Length - 2);
dtVINData.Clear();
labVIN.Text = strSubVIN;
string strCarType = tmdal.SelectCarTypeByVIN(strSubVIN);
if (strCarType.ToUpper().Contains("EHY"))
{
MyBase.TraceWriteLine("Left EHY UI Refresh tmrRefreshData (strVIN.Length==17)strLastVIN" + strLastVIN + " ;VIN: " + strSubVIN);
SpecifyScreenDisplay1();
dtVINData = tmdal.SelectTMeasureDataByCarIDAndMPN(strSubVIN, "L");
if (dtVINData.Rows.Count > 0)
{
refreshCarUIData(dtVINData);
analysisTitleColor();
}
else
{
InitNextSenseControl();
}
gCC.ShowCarMeasureDataByCarType(2);
}
}
if (strVIN.Length == 21)
{
string strSubVIN = strVIN.Substring(0, 17);
dtVINData.Clear();
labVIN.Text = strSubVIN;
string strCarType = strVIN.Substring(18, 3);
if (strCarType.ToUpper().Contains("EHY"))
{
MyBase.TraceWriteLine("Left EHY UI Refresh tmrRefreshData (strVIN.Length==21)strLastVIN" + strLastVIN + " ;VIN: " + strSubVIN);
SpecifyScreenDisplay1();
dtVINData = tmdal.SelectTMeasureDataByCarIDAndMPN(strSubVIN, "L");
if (dtVINData.Rows.Count > 0)
{
refreshCarUIData(dtVINData);
analysisTitleColor();
}
else
{
InitNextSenseControl();
}
gCC.ShowCarMeasureDataByCarType(2);
}
}
}
}
strLastVIN = strVIN;
tmrRefreshData.Start();
}
catch (Exception ex)
{
MyBase.TraceWriteLine("Left EHY UI Refresh tmrRefreshData Error:" + ex.Message);
}
// finally
//{
// tmrRefreshData.Start();
//}
}
private Color analysisColorbyStatus(string strStatus)
{
Color colStatus = new Color();
switch (strStatus.ToLower())
{
case "best":
colStatus = Color.Lime;
break;
case "good":
colStatus = Color.Lime;
break;
case "ng1":
colStatus = Color.Yellow;
break;
case "ng2":
colStatus = Color.Red;
break;
default:
colStatus = Color.LightGray;
break;
}
return colStatus;
}
private void analysisTitleColor()
{
string strNSName = "";
UCVWNextSense ucns = null;
for (int i = 1; i <= 25; i++)
{
if (i <= 9)
strNSName = "L0" + i.ToString();
else
{
strNSName = "L" + i.ToString();
}
ucns = ((UCVWNextSense)MyBase.GetChildControl(this, strNSName));
Invoke((MethodInvoker)(() =>
{
if (ucns != null)
{
if (ucns.tlpFBackColor == Color.Red || ucns.tlpGBackColor == Color.Red)
{
ucns.tlpBackColor = Color.Red;
}
else if (ucns.tlpFBackColor == Color.LightGray && ucns.tlpGBackColor == Color.LightGray)
{
ucns.tlpBackColor = Color.LightGray;
}
else if (ucns.tlpFBackColor == Color.Yellow && ucns.tlpGBackColor == Color.Yellow)
{
ucns.tlpBackColor = Color.Yellow;
}
else
{
ucns.tlpBackColor = Color.Lime;
}
}
}));
}
}
private void refreshCarUIData(DataTable dtData)
{
string strNSName = "";
string strFGName = "";
UCVWNextSense ucns = null;
for (int i = 0; i < dtData.Rows.Count; i++)
{
strNSName = dtData.Rows[i]["MeasPointName"].ToString().Replace("-", "");
strFGName = dtData.Rows[i]["DimensionName"].ToString();
ucns = ((UCVWNextSense)MyBase.GetChildControl(this, strNSName));
Invoke((MethodInvoker)(() =>
{
if (ucns != null)
{
if (strFGName == "F")
{
ucns.labFVal = dtData.Rows[i]["MeasureValue"].ToString();
ucns.labFLowerUpper = dtData.Rows[i]["LowerTolVal"].ToString() + "/" + dtData.Rows[i]["UpperTolVal"].ToString();
ucns.tlpFBackColor = analysisColorbyStatus(dtData.Rows[i]["MeasureItemResult"].ToString());
}
else
{
ucns.labGVal = dtData.Rows[i]["MeasureValue"].ToString();
ucns.labGLowerUpper = dtData.Rows[i]["LowerTolVal"].ToString() + "/" + dtData.Rows[i]["UpperTolVal"].ToString();
ucns.tlpGBackColor = analysisColorbyStatus(dtData.Rows[i]["MeasureItemResult"].ToString());
}
}
}));
}
}
private void FEHYLeftCarData_FormClosing(object sender, FormClosingEventArgs e)
{
MyBase.TraceWriteLine("[FEHYLeftCarData] 窗体开始关闭");
// 停止后台工作线程
if (m_bgwRefreshCar.IsBusy)
{
MyBase.TraceWriteLine("[FEHYLeftCarData] 正在停止后台刷新线程...");
m_bgwRefreshCar.CancelAsync();
// 等待线程结束,最多等待3秒
int waitCount = 0;
while (m_bgwRefreshCar.IsBusy && waitCount < 30)
{
System.Threading.Thread.Sleep(100);
waitCount++;
}
MyBase.TraceWriteLine($"[FEHYLeftCarData] 后台线程停止完成,等待了 {waitCount * 100}ms");
}
// 输出最终统计信息
MyBase.TraceWriteLine("[FEHYLeftCarData] 最终统计: " + RefreshMonitor.GetStatistics("FEHYLeftCarData"));
e.Cancel = true;
this.Hide();
MyBase.TraceWriteLine("[FEHYLeftCarData] 窗体已隐藏");
}
}
}
+562
View File
@@ -0,0 +1,562 @@
namespace NSAnalysis
{
partial class FEHYLeftCarData
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FEHYLeftCarData));
this.radTitleBar1 = new Telerik.WinControls.UI.RadTitleBar();
this.label2 = new System.Windows.Forms.Label();
this.labTitle = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.labVIN = new System.Windows.Forms.Label();
this.tmrRefreshData = new System.Windows.Forms.Timer(this.components);
this.btnRefresh = new System.Windows.Forms.Button();
this.pictureBox2 = new System.Windows.Forms.PictureBox();
this.pbLeftCar = new System.Windows.Forms.PictureBox();
this.L13 = new UserControlClass.UCVWNextSense();
this.L14 = new UserControlClass.UCVWNextSense();
this.L22 = new UserControlClass.UCVWNextSense();
this.L16 = new UserControlClass.UCVWNextSense();
this.L18 = new UserControlClass.UCVWNextSense();
this.L15 = new UserControlClass.UCVWNextSense();
this.L21 = new UserControlClass.UCVWNextSense();
this.L12 = new UserControlClass.UCVWNextSense();
this.L08 = new UserControlClass.UCVWNextSense();
this.L01 = new UserControlClass.UCVWNextSense();
this.L03 = new UserControlClass.UCVWNextSense();
this.L02 = new UserControlClass.UCVWNextSense();
this.L04 = new UserControlClass.UCVWNextSense();
this.L06 = new UserControlClass.UCVWNextSense();
this.L10 = new UserControlClass.UCVWNextSense();
((System.ComponentModel.ISupportInitialize)(this.radTitleBar1)).BeginInit();
this.radTitleBar1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pbLeftCar)).BeginInit();
this.SuspendLayout();
//
// radTitleBar1
//
this.radTitleBar1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.radTitleBar1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(44)))), ((int)(((byte)(109)))), ((int)(((byte)(124)))));
this.radTitleBar1.Controls.Add(this.label2);
this.radTitleBar1.Controls.Add(this.labTitle);
this.radTitleBar1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.radTitleBar1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(44)))), ((int)(((byte)(109)))), ((int)(((byte)(124)))));
this.radTitleBar1.Location = new System.Drawing.Point(1, 1);
this.radTitleBar1.Name = "radTitleBar1";
//
//
//
this.radTitleBar1.RootElement.ApplyShapeToControl = true;
this.radTitleBar1.RootElement.BorderHighlightColor = System.Drawing.Color.FromArgb(((int)(((byte)(44)))), ((int)(((byte)(109)))), ((int)(((byte)(124)))));
this.radTitleBar1.Size = new System.Drawing.Size(1918, 37);
this.radTitleBar1.TabIndex = 0;
this.radTitleBar1.TabStop = false;
this.radTitleBar1.Text = "左侧车身测量数据";
((Telerik.WinControls.UI.RadTitleBarElement)(this.radTitleBar1.GetChildAt(0))).Text = "左侧车身测量数据";
((Telerik.WinControls.Primitives.FillPrimitive)(this.radTitleBar1.GetChildAt(0).GetChildAt(0))).BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(44)))), ((int)(((byte)(109)))), ((int)(((byte)(124)))));
((Telerik.WinControls.Primitives.FillPrimitive)(this.radTitleBar1.GetChildAt(0).GetChildAt(0))).BackColor3 = System.Drawing.Color.FromArgb(((int)(((byte)(44)))), ((int)(((byte)(109)))), ((int)(((byte)(124)))));
((Telerik.WinControls.Primitives.FillPrimitive)(this.radTitleBar1.GetChildAt(0).GetChildAt(0))).BackColor4 = System.Drawing.Color.FromArgb(((int)(((byte)(44)))), ((int)(((byte)(109)))), ((int)(((byte)(124)))));
((Telerik.WinControls.Primitives.FillPrimitive)(this.radTitleBar1.GetChildAt(0).GetChildAt(0))).SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.None;
((Telerik.WinControls.Primitives.BorderPrimitive)(this.radTitleBar1.GetChildAt(0).GetChildAt(1))).LeftColor = System.Drawing.Color.FromArgb(((int)(((byte)(44)))), ((int)(((byte)(109)))), ((int)(((byte)(124)))));
((Telerik.WinControls.Primitives.BorderPrimitive)(this.radTitleBar1.GetChildAt(0).GetChildAt(1))).TopColor = System.Drawing.Color.FromArgb(((int)(((byte)(44)))), ((int)(((byte)(109)))), ((int)(((byte)(124)))));
((Telerik.WinControls.Primitives.BorderPrimitive)(this.radTitleBar1.GetChildAt(0).GetChildAt(1))).RightColor = System.Drawing.Color.FromArgb(((int)(((byte)(44)))), ((int)(((byte)(109)))), ((int)(((byte)(124)))));
((Telerik.WinControls.Primitives.BorderPrimitive)(this.radTitleBar1.GetChildAt(0).GetChildAt(1))).BottomColor = System.Drawing.Color.FromArgb(((int)(((byte)(44)))), ((int)(((byte)(109)))), ((int)(((byte)(124)))));
((Telerik.WinControls.Primitives.BorderPrimitive)(this.radTitleBar1.GetChildAt(0).GetChildAt(1))).BottomShadowColor = System.Drawing.Color.FromArgb(((int)(((byte)(44)))), ((int)(((byte)(109)))), ((int)(((byte)(124)))));
((Telerik.WinControls.Primitives.BorderPrimitive)(this.radTitleBar1.GetChildAt(0).GetChildAt(1))).InnerColor = System.Drawing.Color.FromArgb(((int)(((byte)(44)))), ((int)(((byte)(109)))), ((int)(((byte)(124)))));
((Telerik.WinControls.Primitives.BorderPrimitive)(this.radTitleBar1.GetChildAt(0).GetChildAt(1))).InnerColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(44)))), ((int)(((byte)(109)))), ((int)(((byte)(124)))));
((Telerik.WinControls.Primitives.BorderPrimitive)(this.radTitleBar1.GetChildAt(0).GetChildAt(1))).InnerColor3 = System.Drawing.Color.FromArgb(((int)(((byte)(44)))), ((int)(((byte)(109)))), ((int)(((byte)(124)))));
((Telerik.WinControls.Primitives.BorderPrimitive)(this.radTitleBar1.GetChildAt(0).GetChildAt(1))).InnerColor4 = System.Drawing.Color.FromArgb(((int)(((byte)(44)))), ((int)(((byte)(109)))), ((int)(((byte)(124)))));
((Telerik.WinControls.Primitives.BorderPrimitive)(this.radTitleBar1.GetChildAt(0).GetChildAt(1))).SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.Default;
//
// label2
//
this.label2.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.label2.AutoSize = true;
this.label2.Image = ((System.Drawing.Image)(resources.GetObject("label2.Image")));
this.label2.Location = new System.Drawing.Point(875, -5);
this.label2.Name = "label2";
this.label2.Padding = new System.Windows.Forms.Padding(20, 14, 20, 14);
this.label2.Size = new System.Drawing.Size(40, 50);
this.label2.TabIndex = 1;
//
// labTitle
//
this.labTitle.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.labTitle.AutoSize = true;
this.labTitle.Font = new System.Drawing.Font("微软雅黑", 14F);
this.labTitle.ForeColor = System.Drawing.Color.White;
this.labTitle.Location = new System.Drawing.Point(911, 7);
this.labTitle.Name = "labTitle";
this.labTitle.Size = new System.Drawing.Size(164, 25);
this.labTitle.TabIndex = 0;
this.labTitle.Text = "左侧车身测量数据";
//
// label3
//
this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.label3.AutoSize = true;
this.label3.Font = new System.Drawing.Font("Segoe UI", 58F);
this.label3.Location = new System.Drawing.Point(502, 970);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(253, 104);
this.label3.TabIndex = 37;
this.label3.Text = "VIN";
//
// labVIN
//
this.labVIN.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.labVIN.AutoSize = true;
this.labVIN.Font = new System.Drawing.Font("Segoe UI", 58F);
this.labVIN.Location = new System.Drawing.Point(761, 970);
this.labVIN.Name = "labVIN";
this.labVIN.Size = new System.Drawing.Size(838, 104);
this.labVIN.TabIndex = 36;
this.labVIN.Text = "LNNACDEBXRDA20251";
//
// tmrRefreshData
//
this.tmrRefreshData.Interval = 1000;
this.tmrRefreshData.Tick += new System.EventHandler(this.tmrRefreshData_Tick);
//
// btnRefresh
//
this.btnRefresh.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnRefresh.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(19)))), ((int)(((byte)(46)))), ((int)(((byte)(53)))));
this.btnRefresh.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnRefresh.Font = new System.Drawing.Font("宋体", 3F);
this.btnRefresh.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(19)))), ((int)(((byte)(46)))), ((int)(((byte)(53)))));
this.btnRefresh.Image = global::NSAnalysis.Properties.Resources.Refresh64;
this.btnRefresh.Location = new System.Drawing.Point(1695, 978);
this.btnRefresh.Name = "btnRefresh";
this.btnRefresh.Size = new System.Drawing.Size(86, 92);
this.btnRefresh.TabIndex = 35;
this.btnRefresh.UseVisualStyleBackColor = false;
this.btnRefresh.Click += new System.EventHandler(this.btnRefresh_Click);
//
// pictureBox2
//
this.pictureBox2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.pictureBox2.Image = global::NSAnalysis.Properties.Resources.hexagonlogotransparent;
this.pictureBox2.Location = new System.Drawing.Point(100, 981);
this.pictureBox2.Name = "pictureBox2";
this.pictureBox2.Size = new System.Drawing.Size(316, 83);
this.pictureBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pictureBox2.TabIndex = 34;
this.pictureBox2.TabStop = false;
//
// pbLeftCar
//
this.pbLeftCar.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.pbLeftCar.Image = ((System.Drawing.Image)(resources.GetObject("pbLeftCar.Image")));
this.pbLeftCar.Location = new System.Drawing.Point(3, 40);
this.pbLeftCar.Name = "pbLeftCar";
this.pbLeftCar.Size = new System.Drawing.Size(1916, 925);
this.pbLeftCar.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pbLeftCar.TabIndex = 1;
this.pbLeftCar.TabStop = false;
//
// L13
//
this.L13.BackColor = System.Drawing.Color.White;
this.L13.ForeColor = System.Drawing.Color.Black;
this.L13.labFLowerUpper = "-2.0/2.0";
this.L13.labFText = "F";
this.L13.labFVal = "0.3";
this.L13.labGLowerUpper = "1.0/6.0";
this.L13.labGText = "G";
this.L13.labGVal = "3.7";
this.L13.labTitleText = "L-13";
this.L13.Location = new System.Drawing.Point(1023, 801);
this.L13.Name = "L13";
this.L13.Size = new System.Drawing.Size(220, 145);
this.L13.TabIndex = 62;
this.L13.tlpBackColor = System.Drawing.Color.Lime;
this.L13.tlpFBackColor = System.Drawing.Color.Lime;
this.L13.tlpGBackColor = System.Drawing.Color.Lime;
this.L13.tlpTitleBackSize = new System.Drawing.Size(216, 49);
//
// L14
//
this.L14.BackColor = System.Drawing.Color.White;
this.L14.ForeColor = System.Drawing.Color.Black;
this.L14.labFLowerUpper = "-2.0/2.0";
this.L14.labFText = "F";
this.L14.labFVal = "-1.5mm";
this.L14.labGLowerUpper = "1.0/6.0";
this.L14.labGText = "G";
this.L14.labGVal = "3.2mm";
this.L14.labTitleText = "L-14";
this.L14.Location = new System.Drawing.Point(1508, 100);
this.L14.Name = "L14";
this.L14.Size = new System.Drawing.Size(220, 145);
this.L14.TabIndex = 61;
this.L14.tlpBackColor = System.Drawing.Color.Lime;
this.L14.tlpFBackColor = System.Drawing.Color.Lime;
this.L14.tlpGBackColor = System.Drawing.Color.Lime;
this.L14.tlpTitleBackSize = new System.Drawing.Size(216, 49);
//
// L22
//
this.L22.BackColor = System.Drawing.Color.White;
this.L22.ForeColor = System.Drawing.Color.Black;
this.L22.labFLowerUpper = "-2.0/2.0";
this.L22.labFText = "F";
this.L22.labFVal = "0.0";
this.L22.labGLowerUpper = "1.0/6.0";
this.L22.labGText = "G";
this.L22.labGVal = "6.0";
this.L22.labTitleText = "L-22";
this.L22.Location = new System.Drawing.Point(1641, 801);
this.L22.Name = "L22";
this.L22.Size = new System.Drawing.Size(220, 145);
this.L22.TabIndex = 60;
this.L22.tlpBackColor = System.Drawing.Color.Lime;
this.L22.tlpFBackColor = System.Drawing.Color.Lime;
this.L22.tlpGBackColor = System.Drawing.Color.Lime;
this.L22.tlpTitleBackSize = new System.Drawing.Size(216, 49);
//
// L16
//
this.L16.BackColor = System.Drawing.Color.White;
this.L16.ForeColor = System.Drawing.Color.Black;
this.L16.labFLowerUpper = "-2.0/2.0";
this.L16.labFText = "F";
this.L16.labFVal = "-2.0mm";
this.L16.labGLowerUpper = "1.0/6.0";
this.L16.labGText = "G";
this.L16.labGVal = "2.7mm";
this.L16.labTitleText = "L-16";
this.L16.Location = new System.Drawing.Point(1696, 413);
this.L16.Name = "L16";
this.L16.Size = new System.Drawing.Size(220, 145);
this.L16.TabIndex = 59;
this.L16.tlpBackColor = System.Drawing.Color.Lime;
this.L16.tlpFBackColor = System.Drawing.Color.Lime;
this.L16.tlpGBackColor = System.Drawing.Color.Lime;
this.L16.tlpTitleBackSize = new System.Drawing.Size(216, 49);
//
// L18
//
this.L18.BackColor = System.Drawing.Color.White;
this.L18.ForeColor = System.Drawing.Color.Black;
this.L18.labFLowerUpper = "0.0/4.0";
this.L18.labFText = "F";
this.L18.labFVal = "-2.7";
this.L18.labGLowerUpper = "1.0/6.0";
this.L18.labGText = "G";
this.L18.labGVal = "2.7";
this.L18.labTitleText = "L-18";
this.L18.Location = new System.Drawing.Point(1694, 596);
this.L18.Name = "L18";
this.L18.Size = new System.Drawing.Size(220, 145);
this.L18.TabIndex = 58;
this.L18.tlpBackColor = System.Drawing.Color.Red;
this.L18.tlpFBackColor = System.Drawing.Color.Red;
this.L18.tlpGBackColor = System.Drawing.Color.Lime;
this.L18.tlpTitleBackSize = new System.Drawing.Size(216, 49);
//
// L15
//
this.L15.BackColor = System.Drawing.Color.White;
this.L15.ForeColor = System.Drawing.Color.Black;
this.L15.labFLowerUpper = "-2.0/2.0";
this.L15.labFText = "F";
this.L15.labFVal = "-1.9mm";
this.L15.labGLowerUpper = "1.0/6.0";
this.L15.labGText = "G";
this.L15.labGVal = "2.8mm";
this.L15.labTitleText = "L-15";
this.L15.Location = new System.Drawing.Point(1692, 255);
this.L15.Name = "L15";
this.L15.Size = new System.Drawing.Size(220, 145);
this.L15.TabIndex = 56;
this.L15.tlpBackColor = System.Drawing.Color.Lime;
this.L15.tlpFBackColor = System.Drawing.Color.Lime;
this.L15.tlpGBackColor = System.Drawing.Color.Lime;
this.L15.tlpTitleBackSize = new System.Drawing.Size(216, 49);
//
// L21
//
this.L21.BackColor = System.Drawing.Color.White;
this.L21.ForeColor = System.Drawing.Color.Black;
this.L21.labFLowerUpper = "-2.0/2.0";
this.L21.labFText = "F";
this.L21.labFVal = "-0.2mm";
this.L21.labGLowerUpper = "1.0/6.0";
this.L21.labGText = "G";
this.L21.labGVal = "6.1mm";
this.L21.labTitleText = "L-21";
this.L21.Location = new System.Drawing.Point(1354, 801);
this.L21.Name = "L21";
this.L21.Size = new System.Drawing.Size(220, 145);
this.L21.TabIndex = 50;
this.L21.tlpBackColor = System.Drawing.Color.Lime;
this.L21.tlpFBackColor = System.Drawing.Color.Lime;
this.L21.tlpGBackColor = System.Drawing.Color.Lime;
this.L21.tlpTitleBackSize = new System.Drawing.Size(216, 49);
//
// L12
//
this.L12.BackColor = System.Drawing.Color.White;
this.L12.ForeColor = System.Drawing.Color.Black;
this.L12.labFLowerUpper = "-2.0/2.0";
this.L12.labFText = "F";
this.L12.labFVal = "-0.2mm";
this.L12.labGLowerUpper = "1.0/6.0";
this.L12.labGText = "G";
this.L12.labGVal = "3.0mm";
this.L12.labTitleText = "L-12";
this.L12.Location = new System.Drawing.Point(1195, 105);
this.L12.Name = "L12";
this.L12.Size = new System.Drawing.Size(220, 145);
this.L12.TabIndex = 49;
this.L12.tlpBackColor = System.Drawing.Color.Lime;
this.L12.tlpFBackColor = System.Drawing.Color.Lime;
this.L12.tlpGBackColor = System.Drawing.Color.Lime;
this.L12.tlpTitleBackSize = new System.Drawing.Size(216, 49);
//
// L08
//
this.L08.BackColor = System.Drawing.Color.White;
this.L08.ForeColor = System.Drawing.Color.Black;
this.L08.labFLowerUpper = "-2.0/2.0";
this.L08.labFText = "F";
this.L08.labFVal = "0.3mm";
this.L08.labGLowerUpper = "1.0/6.0";
this.L08.labGText = "G";
this.L08.labGVal = "3.1mm";
this.L08.labTitleText = "L-08";
this.L08.Location = new System.Drawing.Point(879, 103);
this.L08.Name = "L08";
this.L08.Size = new System.Drawing.Size(220, 145);
this.L08.TabIndex = 48;
this.L08.tlpBackColor = System.Drawing.Color.Lime;
this.L08.tlpFBackColor = System.Drawing.Color.Lime;
this.L08.tlpGBackColor = System.Drawing.Color.Lime;
this.L08.tlpTitleBackSize = new System.Drawing.Size(216, 49);
//
// L01
//
this.L01.BackColor = System.Drawing.Color.White;
this.L01.ForeColor = System.Drawing.Color.Black;
this.L01.labFLowerUpper = "-3.0/2.0";
this.L01.labFText = "F";
this.L01.labFVal = "0.7mm";
this.L01.labGLowerUpper = "1.0/5.0";
this.L01.labGText = "G";
this.L01.labGVal = "4.1mm";
this.L01.labTitleText = "L-01";
this.L01.Location = new System.Drawing.Point(7, 581);
this.L01.Name = "L01";
this.L01.Size = new System.Drawing.Size(220, 145);
this.L01.TabIndex = 46;
this.L01.tlpBackColor = System.Drawing.Color.Lime;
this.L01.tlpFBackColor = System.Drawing.Color.Lime;
this.L01.tlpGBackColor = System.Drawing.Color.Lime;
this.L01.tlpTitleBackSize = new System.Drawing.Size(216, 49);
//
// L03
//
this.L03.BackColor = System.Drawing.Color.White;
this.L03.ForeColor = System.Drawing.Color.Black;
this.L03.labFLowerUpper = "-3.0/2.0";
this.L03.labFText = "F";
this.L03.labFVal = "-0.6";
this.L03.labGLowerUpper = "1.0/6.0";
this.L03.labGText = "G";
this.L03.labGVal = "3.9";
this.L03.labTitleText = "L-03";
this.L03.Location = new System.Drawing.Point(323, 109);
this.L03.Name = "L03";
this.L03.Size = new System.Drawing.Size(220, 145);
this.L03.TabIndex = 40;
this.L03.tlpBackColor = System.Drawing.Color.Lime;
this.L03.tlpFBackColor = System.Drawing.Color.Lime;
this.L03.tlpGBackColor = System.Drawing.Color.Lime;
this.L03.tlpTitleBackSize = new System.Drawing.Size(216, 49);
//
// L02
//
this.L02.BackColor = System.Drawing.Color.White;
this.L02.ForeColor = System.Drawing.Color.Black;
this.L02.labFLowerUpper = "-3.0/2.0";
this.L02.labFText = "F";
this.L02.labFVal = "-0.2";
this.L02.labGLowerUpper = "1.0/6.0";
this.L02.labGText = "G";
this.L02.labGVal = "4.4";
this.L02.labTitleText = "L-02";
this.L02.Location = new System.Drawing.Point(46, 109);
this.L02.Name = "L02";
this.L02.Size = new System.Drawing.Size(220, 145);
this.L02.TabIndex = 44;
this.L02.tlpBackColor = System.Drawing.Color.Lime;
this.L02.tlpFBackColor = System.Drawing.Color.Lime;
this.L02.tlpGBackColor = System.Drawing.Color.Lime;
this.L02.tlpTitleBackSize = new System.Drawing.Size(216, 49);
//
// L04
//
this.L04.BackColor = System.Drawing.Color.White;
this.L04.ForeColor = System.Drawing.Color.Black;
this.L04.labFLowerUpper = "-1.0/2.0";
this.L04.labFText = "F";
this.L04.labFVal = "-0.1";
this.L04.labGLowerUpper = "1.0/6.0";
this.L04.labGText = "G";
this.L04.labGVal = "3.1";
this.L04.labTitleText = "L-04";
this.L04.Location = new System.Drawing.Point(604, 109);
this.L04.Name = "L04";
this.L04.Size = new System.Drawing.Size(220, 145);
this.L04.TabIndex = 43;
this.L04.tlpBackColor = System.Drawing.Color.Lime;
this.L04.tlpFBackColor = System.Drawing.Color.Lime;
this.L04.tlpGBackColor = System.Drawing.Color.Lime;
this.L04.tlpTitleBackSize = new System.Drawing.Size(216, 49);
//
// L06
//
this.L06.BackColor = System.Drawing.Color.White;
this.L06.ForeColor = System.Drawing.Color.Black;
this.L06.labFLowerUpper = "-2.0/2.0";
this.L06.labFText = "F";
this.L06.labFVal = "-0.1";
this.L06.labGLowerUpper = "1.0/6.0";
this.L06.labGText = "G";
this.L06.labGVal = "3.4";
this.L06.labTitleText = "L-06";
this.L06.Location = new System.Drawing.Point(423, 801);
this.L06.Name = "L06";
this.L06.Size = new System.Drawing.Size(220, 145);
this.L06.TabIndex = 42;
this.L06.tlpBackColor = System.Drawing.Color.Lime;
this.L06.tlpFBackColor = System.Drawing.Color.Lime;
this.L06.tlpGBackColor = System.Drawing.Color.Lime;
this.L06.tlpTitleBackSize = new System.Drawing.Size(216, 49);
//
// L10
//
this.L10.BackColor = System.Drawing.Color.White;
this.L10.ForeColor = System.Drawing.Color.Black;
this.L10.labFLowerUpper = "-2.0/2.0";
this.L10.labFText = "F";
this.L10.labFVal = "0.3";
this.L10.labGLowerUpper = "1.0/6.0";
this.L10.labGText = "G";
this.L10.labGVal = "3.7";
this.L10.labTitleText = "L-10";
this.L10.Location = new System.Drawing.Point(715, 801);
this.L10.Name = "L10";
this.L10.Size = new System.Drawing.Size(220, 145);
this.L10.TabIndex = 38;
this.L10.tlpBackColor = System.Drawing.Color.Lime;
this.L10.tlpFBackColor = System.Drawing.Color.Lime;
this.L10.tlpGBackColor = System.Drawing.Color.Lime;
this.L10.tlpTitleBackSize = new System.Drawing.Size(216, 49);
//
// FEHYLeftCarData
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(19)))), ((int)(((byte)(46)))), ((int)(((byte)(53)))));
this.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(44)))), ((int)(((byte)(109)))), ((int)(((byte)(124)))));
this.BorderWidth = 0;
this.ClientSize = new System.Drawing.Size(1920, 1080);
this.Controls.Add(this.L13);
this.Controls.Add(this.L14);
this.Controls.Add(this.L22);
this.Controls.Add(this.L16);
this.Controls.Add(this.L18);
this.Controls.Add(this.L15);
this.Controls.Add(this.L21);
this.Controls.Add(this.L12);
this.Controls.Add(this.L08);
this.Controls.Add(this.L01);
this.Controls.Add(this.L03);
this.Controls.Add(this.L02);
this.Controls.Add(this.L04);
this.Controls.Add(this.L06);
this.Controls.Add(this.labVIN);
this.Controls.Add(this.L10);
this.Controls.Add(this.label3);
this.Controls.Add(this.btnRefresh);
this.Controls.Add(this.pictureBox2);
this.Controls.Add(this.pbLeftCar);
this.Controls.Add(this.radTitleBar1);
this.Font = new System.Drawing.Font("宋体", 9F);
this.ForeColor = System.Drawing.Color.White;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximumSize = new System.Drawing.Size(1920, 1080);
this.Name = "FEHYLeftCarData";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "左侧车身测量数据";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FEHYLeftCarData_FormClosing);
this.Load += new System.EventHandler(this.FEHYLeftCarData_Load);
((System.ComponentModel.ISupportInitialize)(this.radTitleBar1)).EndInit();
this.radTitleBar1.ResumeLayout(false);
this.radTitleBar1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pbLeftCar)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private Telerik.WinControls.UI.RadTitleBar radTitleBar1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label labTitle;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label labVIN;
private System.Windows.Forms.Button btnRefresh;
private System.Windows.Forms.PictureBox pictureBox2;
private System.Windows.Forms.Timer tmrRefreshData;
private System.Windows.Forms.PictureBox pbLeftCar;
private UserControlClass.UCVWNextSense L10;
private UserControlClass.UCVWNextSense L03;
private UserControlClass.UCVWNextSense L06;
private UserControlClass.UCVWNextSense L04;
private UserControlClass.UCVWNextSense L02;
private UserControlClass.UCVWNextSense L01;
private UserControlClass.UCVWNextSense L08;
private UserControlClass.UCVWNextSense L12;
private UserControlClass.UCVWNextSense L21;
private UserControlClass.UCVWNextSense L15;
private UserControlClass.UCVWNextSense L18;
private UserControlClass.UCVWNextSense L16;
private UserControlClass.UCVWNextSense L22;
private UserControlClass.UCVWNextSense L14;
private UserControlClass.UCVWNextSense L13;
}
}
File diff suppressed because it is too large Load Diff