diff --git a/Analysis/CenterControl.cs b/Analysis/CenterControl.cs index a09b012..149e9f4 100644 --- a/Analysis/CenterControl.cs +++ b/Analysis/CenterControl.cs @@ -1425,12 +1425,12 @@ namespace NSAnalysis if (strCarID.ToLower().Contains("nofind")) { MyBase.TraceWriteLine("数据库中没有查找到VIN码,NoFind, +L 使用CSV码"); - labVIN.Text = "L" + aryLineContent[1]; strCarID = "L" + aryLineContent[1]; + Invoke((MethodInvoker)(() => { labVIN.Text = strCarID; })); } else { - labVIN.Text = strCarID; + Invoke((MethodInvoker)(() => { labVIN.Text = strCarID; })); tmdal.DeleteOneTTempVIN(strCarID); MyBase.TraceWriteLine("在数据库表TTempSaveVIN中删除该VIN:" + strCarID); } @@ -1682,6 +1682,12 @@ namespace NSAnalysis #endregion 界面显示功能 })); + //// 将EHV VIN写入station7,触发大屏刷新(在Invoke块外执行,避免嵌套死锁) + //string strEHVCarID = strCarID + "_EHV"; + //tmdal.updateMaintenceInfo(strEHVCarID, 7); + //MyBase.TraceWriteLine("EHV解析完成,已将VIN=" + strEHVCarID + " 写入MaintenceInfo station7,触发大屏刷新。"); + //ShowCarMeasureDataByCarType(3); + if (ConfigDfn.iCreateReportFlag == 1) { GenUserReportCSV(strCarID, listCSVTitleInfo, dtAllRangeDate, FPYPercent); @@ -3451,15 +3457,21 @@ namespace NSAnalysis fLEH3.Show(); fLEHY.Hide(); fLEHV.Hide(); MyBase.TraceWriteLine("显示左侧EH3车身数据界面。"); } - else if (iCarType == 3) - { - fLEHV.Show(); fLEH3.Hide(); fLEHY.Hide(); - MyBase.TraceWriteLine("显示左侧EHV车身数据界面。"); - } - else + else if (iCarType == 2) { fLEHY.Show(); fLEH3.Hide(); fLEHV.Hide(); MyBase.TraceWriteLine("显示左侧EHY车身数据界面。"); + + } + else if(iCarType == 3) + { + + fLEHV.Show(); fLEH3.Hide(); fLEHY.Hide(); + MyBase.TraceWriteLine("显示左侧EHV车身数据界面。"); + } + else + { + MyBase.TraceWriteLine("未知车型,不显示"); } } else @@ -3469,17 +3481,23 @@ namespace NSAnalysis fREH3.Show(); fREHY.Hide(); fREHV.Hide(); MyBase.TraceWriteLine("显示右侧EH3车身数据界面。"); } + else if (iCarType == 2) + { + fREHY.Show(); fREH3.Hide(); fREHV.Hide(); + MyBase.TraceWriteLine("显示右侧EHY车身数据界面。"); + } else if (iCarType == 3) { fREHV.Show(); fREH3.Hide(); fREHY.Hide(); MyBase.TraceWriteLine("显示右侧EHV车身数据界面。"); } + else { - fREHY.Show(); fREH3.Hide(); fREHV.Hide(); - MyBase.TraceWriteLine("显示右侧EHY车身数据界面。"); + MyBase.TraceWriteLine("未知车型,不显示"); } } + })); } diff --git a/Analysis/Tolerance/FToleranceSetup.cs b/Analysis/Tolerance/FToleranceSetup.cs index 7eaf37f..406fb0e 100644 --- a/Analysis/Tolerance/FToleranceSetup.cs +++ b/Analysis/Tolerance/FToleranceSetup.cs @@ -91,6 +91,59 @@ namespace NSAnalysis fat.ShowDialog(this); } + private void rbtnDownloadTemplate_Click(object sender, EventArgs e) + { + SaveFileDialog sfd = new SaveFileDialog + { + Filter = "CSV文件|*.csv", + FileName = "公差导入模板.csv", + Title = "保存CSV模板" + }; + if (sfd.ShowDialog() != DialogResult.OK) return; + + string header = "CarType,MeasurePointName,DimensionName,TolLower,TolUpper,Remark"; + string example = "EHV,L-01,F,-1.5,0.5,示例备注"; + System.IO.File.WriteAllText(sfd.FileName, header + "\r\n" + example + "\r\n", System.Text.Encoding.UTF8); + MessageBox.Show("模板已保存:" + sfd.FileName, "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); + } + + private void rbtnImportTol_Click(object sender, EventArgs e) + { + OpenFileDialog ofd = new OpenFileDialog + { + Filter = "CSV文件|*.csv", + Title = "选择公差导入文件" + }; + if (ofd.ShowDialog() != DialogResult.OK) return; + + int successCount = 0, failCount = 0; + string[] lines = System.IO.File.ReadAllLines(ofd.FileName, System.Text.Encoding.UTF8); + for (int i = 1; i < lines.Length; i++) // 跳过表头 + { + string line = lines[i].Trim(); + if (string.IsNullOrEmpty(line)) continue; + string[] cols = line.Split(','); + if (cols.Length < 5) { failCount++; continue; } + try + { + string carType = cols[0].Trim(); + string measPointName = cols[1].Trim(); + string dimensionName = cols[2].Trim(); + double tolLower = double.Parse(cols[3].Trim()); + double tolUpper = double.Parse(cols[4].Trim()); + string remark = cols.Length > 5 ? cols[5].Trim() : ""; + tmdal.UpsertTolerance(carType, measPointName, dimensionName, tolLower, tolUpper, remark); + successCount++; + } + catch + { + failCount++; + } + } + MessageBox.Show($"导入完成:成功 {successCount} 条,失败 {failCount} 条。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); + rtbnSearch_Click(null, null); + } + private void dgvTolList_CellContentClick(object sender, DataGridViewCellEventArgs e) { string buttonText = ""; diff --git a/Analysis/Tolerance/FToleranceSetup.designer.cs b/Analysis/Tolerance/FToleranceSetup.designer.cs index d820983..403924f 100644 --- a/Analysis/Tolerance/FToleranceSetup.designer.cs +++ b/Analysis/Tolerance/FToleranceSetup.designer.cs @@ -28,129 +28,132 @@ /// private void InitializeComponent() { - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FToleranceSetup)); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); - this.radTitleBar1 = new Telerik.WinControls.UI.RadTitleBar(); - this.label2 = new System.Windows.Forms.Label(); - this.labTitle = new System.Windows.Forms.Label(); - this.dgvTolList = new System.Windows.Forms.DataGridView(); - this.radGroupBox7 = new Telerik.WinControls.UI.RadGroupBox(); - this.rtbnSearch = new Telerik.WinControls.UI.RadButton(); - this.rtbDimensionName = new Telerik.WinControls.UI.RadTextBox(); - this.label3 = new System.Windows.Forms.Label(); - this.rtbMesPointName = new Telerik.WinControls.UI.RadTextBox(); - this.label1 = new System.Windows.Forms.Label(); - this.rtbCarModel = new Telerik.WinControls.UI.RadTextBox(); - this.label15 = new System.Windows.Forms.Label(); - this.dataGridViewImageColumn1 = new System.Windows.Forms.DataGridViewImageColumn(); - this.dataGridViewImageColumn2 = new System.Windows.Forms.DataGridViewImageColumn(); - this.lpcAddTol = new UserControlClass.LabPictureControl(); - this.labSearchResult = new System.Windows.Forms.Label(); - this.Id = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.CarType = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.MeasurePointName = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.DimensionName = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.TolLower = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.TolUpper = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.Remark = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.CreateTime = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.CNCEdit = new System.Windows.Forms.DataGridViewImageColumn(); - this.CNCDelete = new System.Windows.Forms.DataGridViewImageColumn(); - ((System.ComponentModel.ISupportInitialize)(this.radTitleBar1)).BeginInit(); - this.radTitleBar1.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.dgvTolList)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.radGroupBox7)).BeginInit(); - this.radGroupBox7.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.rtbnSearch)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.rtbDimensionName)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.rtbMesPointName)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.rtbCarModel)).BeginInit(); - this.SuspendLayout(); - // - // radTitleBar1 - // - this.radTitleBar1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FToleranceSetup)); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); + this.radTitleBar1 = new Telerik.WinControls.UI.RadTitleBar(); + this.label2 = new System.Windows.Forms.Label(); + this.labTitle = new System.Windows.Forms.Label(); + this.dgvTolList = new System.Windows.Forms.DataGridView(); + this.Id = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.CarType = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.MeasurePointName = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.DimensionName = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.TolLower = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.TolUpper = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.Remark = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.CreateTime = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.CNCEdit = new System.Windows.Forms.DataGridViewImageColumn(); + this.CNCDelete = new System.Windows.Forms.DataGridViewImageColumn(); + this.radGroupBox7 = new Telerik.WinControls.UI.RadGroupBox(); + this.rtbnSearch = new Telerik.WinControls.UI.RadButton(); + this.rtbDimensionName = new Telerik.WinControls.UI.RadTextBox(); + this.label3 = new System.Windows.Forms.Label(); + this.rtbMesPointName = new Telerik.WinControls.UI.RadTextBox(); + this.label1 = new System.Windows.Forms.Label(); + this.rtbCarModel = new Telerik.WinControls.UI.RadTextBox(); + this.label15 = new System.Windows.Forms.Label(); + this.dataGridViewImageColumn1 = new System.Windows.Forms.DataGridViewImageColumn(); + this.dataGridViewImageColumn2 = new System.Windows.Forms.DataGridViewImageColumn(); + this.lpcAddTol = new UserControlClass.LabPictureControl(); + this.labSearchResult = new System.Windows.Forms.Label(); + this.rbtnImportTol = new Telerik.WinControls.UI.RadButton(); + this.rbtnDownloadTemplate = new Telerik.WinControls.UI.RadButton(); + ((System.ComponentModel.ISupportInitialize)(this.radTitleBar1)).BeginInit(); + this.radTitleBar1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.dgvTolList)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.radGroupBox7)).BeginInit(); + this.radGroupBox7.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.rtbnSearch)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.rtbDimensionName)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.rtbMesPointName)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.rtbCarModel)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.rbtnImportTol)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.rbtnDownloadTemplate)).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(930, 40); - 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(367, -5); - this.label2.Name = "label2"; - this.label2.Padding = new System.Windows.Forms.Padding(23, 15, 23, 15); - this.label2.Size = new System.Drawing.Size(46, 52); - 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(409, 8); - this.labTitle.Name = "labTitle"; - this.labTitle.Size = new System.Drawing.Size(107, 25); - this.labTitle.TabIndex = 0; - this.labTitle.Text = "公差带设置"; - // - // dgvTolList - // - this.dgvTolList.AllowUserToAddRows = false; - this.dgvTolList.AllowUserToDeleteRows = false; - this.dgvTolList.AllowUserToOrderColumns = true; - this.dgvTolList.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + 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(1151, 40); + 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(477, -5); + this.label2.Name = "label2"; + this.label2.Padding = new System.Windows.Forms.Padding(23, 15, 23, 15); + this.label2.Size = new System.Drawing.Size(46, 52); + 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(519, 8); + this.labTitle.Name = "labTitle"; + this.labTitle.Size = new System.Drawing.Size(107, 25); + this.labTitle.TabIndex = 0; + this.labTitle.Text = "公差带设置"; + // + // dgvTolList + // + this.dgvTolList.AllowUserToAddRows = false; + this.dgvTolList.AllowUserToDeleteRows = false; + this.dgvTolList.AllowUserToOrderColumns = true; + this.dgvTolList.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.dgvTolList.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells; - this.dgvTolList.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(60)))), ((int)(((byte)(68))))); - this.dgvTolList.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.dgvTolList.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single; - dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(60)))), ((int)(((byte)(68))))); - dataGridViewCellStyle1.Font = new System.Drawing.Font("Segoe UI", 11F); - dataGridViewCellStyle1.ForeColor = System.Drawing.Color.White; - dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dgvTolList.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1; - this.dgvTolList.ColumnHeadersHeight = 40; - this.dgvTolList.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.dgvTolList.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells; + this.dgvTolList.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(60)))), ((int)(((byte)(68))))); + this.dgvTolList.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.dgvTolList.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single; + dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(60)))), ((int)(((byte)(68))))); + dataGridViewCellStyle1.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle1.ForeColor = System.Drawing.Color.White; + dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dgvTolList.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1; + this.dgvTolList.ColumnHeadersHeight = 40; + this.dgvTolList.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.Id, this.CarType, this.MeasurePointName, @@ -161,349 +164,373 @@ this.CreateTime, this.CNCEdit, this.CNCDelete}); - dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Window; - dataGridViewCellStyle2.Font = new System.Drawing.Font("Segoe UI", 11F); - dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White; - dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.dgvTolList.DefaultCellStyle = dataGridViewCellStyle2; - this.dgvTolList.EnableHeadersVisualStyles = false; - this.dgvTolList.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(181)))), ((int)(((byte)(200))))); - this.dgvTolList.Location = new System.Drawing.Point(22, 153); - this.dgvTolList.Name = "dgvTolList"; - this.dgvTolList.ReadOnly = true; - this.dgvTolList.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single; - dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(60)))), ((int)(((byte)(68))))); - dataGridViewCellStyle3.Font = new System.Drawing.Font("Segoe UI", 11F); - dataGridViewCellStyle3.ForeColor = System.Drawing.Color.White; - dataGridViewCellStyle3.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(151)))), ((int)(((byte)(186))))); - dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dgvTolList.RowHeadersDefaultCellStyle = dataGridViewCellStyle3; - this.dgvTolList.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.AutoSizeToAllHeaders; - dataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(60)))), ((int)(((byte)(68))))); - dataGridViewCellStyle4.Font = new System.Drawing.Font("Segoe UI", 11F); - dataGridViewCellStyle4.ForeColor = System.Drawing.Color.White; - dataGridViewCellStyle4.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(151)))), ((int)(((byte)(186))))); - this.dgvTolList.RowsDefaultCellStyle = dataGridViewCellStyle4; - this.dgvTolList.RowTemplate.DefaultCellStyle.Font = new System.Drawing.Font("Segoe UI", 11F); - this.dgvTolList.RowTemplate.Height = 40; - this.dgvTolList.Size = new System.Drawing.Size(887, 775); - this.dgvTolList.TabIndex = 17; - this.dgvTolList.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvTolList_CellContentClick); - this.dgvTolList.RowStateChanged += new System.Windows.Forms.DataGridViewRowStateChangedEventHandler(this.dgvTolList_RowStateChanged); - // - // radGroupBox7 - // - this.radGroupBox7.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping; - this.radGroupBox7.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + this.dgvTolList.EnableHeadersVisualStyles = false; + this.dgvTolList.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(181)))), ((int)(((byte)(200))))); + this.dgvTolList.Location = new System.Drawing.Point(22, 153); + this.dgvTolList.Name = "dgvTolList"; + this.dgvTolList.ReadOnly = true; + this.dgvTolList.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single; + dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(60)))), ((int)(((byte)(68))))); + dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White; + dataGridViewCellStyle2.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(151)))), ((int)(((byte)(186))))); + dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dgvTolList.RowHeadersDefaultCellStyle = dataGridViewCellStyle2; + this.dgvTolList.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.AutoSizeToAllHeaders; + dataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(60)))), ((int)(((byte)(68))))); + dataGridViewCellStyle3.Font = new System.Drawing.Font("Segoe UI", 11F); + dataGridViewCellStyle3.ForeColor = System.Drawing.Color.White; + dataGridViewCellStyle3.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(151)))), ((int)(((byte)(186))))); + this.dgvTolList.RowsDefaultCellStyle = dataGridViewCellStyle3; + this.dgvTolList.RowTemplate.DefaultCellStyle.Font = new System.Drawing.Font("Segoe UI", 11F); + this.dgvTolList.RowTemplate.Height = 40; + this.dgvTolList.Size = new System.Drawing.Size(1108, 775); + this.dgvTolList.TabIndex = 17; + this.dgvTolList.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvTolList_CellContentClick); + this.dgvTolList.RowStateChanged += new System.Windows.Forms.DataGridViewRowStateChangedEventHandler(this.dgvTolList_RowStateChanged); + // + // Id + // + this.Id.DataPropertyName = "Id"; + this.Id.HeaderText = "Id"; + this.Id.Name = "Id"; + this.Id.ReadOnly = true; + this.Id.Visible = false; + this.Id.Width = 47; + // + // CarType + // + this.CarType.DataPropertyName = "CarType"; + this.CarType.HeaderText = "车身类型"; + this.CarType.Name = "CarType"; + this.CarType.ReadOnly = true; + this.CarType.Width = 65; + // + // MeasurePointName + // + this.MeasurePointName.DataPropertyName = "MeasurePointName"; + this.MeasurePointName.HeaderText = "测量点位名称"; + this.MeasurePointName.Name = "MeasurePointName"; + this.MeasurePointName.ReadOnly = true; + this.MeasurePointName.Width = 77; + // + // DimensionName + // + this.DimensionName.DataPropertyName = "DimensionName"; + this.DimensionName.HeaderText = "尺寸名称"; + this.DimensionName.Name = "DimensionName"; + this.DimensionName.ReadOnly = true; + this.DimensionName.Width = 65; + // + // TolLower + // + this.TolLower.DataPropertyName = "TolLower"; + this.TolLower.HeaderText = "下限值"; + this.TolLower.Name = "TolLower"; + this.TolLower.ReadOnly = true; + this.TolLower.Width = 65; + // + // TolUpper + // + this.TolUpper.DataPropertyName = "TolUpper"; + this.TolUpper.HeaderText = "上限值"; + this.TolUpper.Name = "TolUpper"; + this.TolUpper.ReadOnly = true; + this.TolUpper.Width = 65; + // + // Remark + // + this.Remark.DataPropertyName = "Remark"; + this.Remark.HeaderText = "备注"; + this.Remark.Name = "Remark"; + this.Remark.ReadOnly = true; + this.Remark.Width = 53; + // + // CreateTime + // + this.CreateTime.DataPropertyName = "CreateTime"; + this.CreateTime.HeaderText = "创建时间"; + this.CreateTime.Name = "CreateTime"; + this.CreateTime.ReadOnly = true; + this.CreateTime.Visible = false; + this.CreateTime.Width = 98; + // + // CNCEdit + // + this.CNCEdit.HeaderText = "修改"; + this.CNCEdit.Image = ((System.Drawing.Image)(resources.GetObject("CNCEdit.Image"))); + this.CNCEdit.Name = "CNCEdit"; + this.CNCEdit.ReadOnly = true; + this.CNCEdit.ToolTipText = "点击修改公差信息"; + this.CNCEdit.Width = 34; + // + // CNCDelete + // + this.CNCDelete.HeaderText = "删除"; + this.CNCDelete.Image = ((System.Drawing.Image)(resources.GetObject("CNCDelete.Image"))); + this.CNCDelete.Name = "CNCDelete"; + this.CNCDelete.ReadOnly = true; + this.CNCDelete.ToolTipText = "点击删除公差信息"; + this.CNCDelete.Width = 34; + // + // radGroupBox7 + // + this.radGroupBox7.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping; + this.radGroupBox7.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.radGroupBox7.Controls.Add(this.rtbnSearch); - this.radGroupBox7.Controls.Add(this.rtbDimensionName); - this.radGroupBox7.Controls.Add(this.label3); - this.radGroupBox7.Controls.Add(this.rtbMesPointName); - this.radGroupBox7.Controls.Add(this.label1); - this.radGroupBox7.Controls.Add(this.rtbCarModel); - this.radGroupBox7.Controls.Add(this.label15); - this.radGroupBox7.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.radGroupBox7.HeaderAlignment = Telerik.WinControls.UI.HeaderAlignment.Center; - this.radGroupBox7.HeaderText = "查询条件"; - this.radGroupBox7.Location = new System.Drawing.Point(160, 51); - this.radGroupBox7.Name = "radGroupBox7"; - // - // - // - this.radGroupBox7.RootElement.ShadowDepth = 2; - this.radGroupBox7.Size = new System.Drawing.Size(749, 94); - this.radGroupBox7.TabIndex = 456; - this.radGroupBox7.Text = "查询条件"; - ((Telerik.WinControls.UI.RadGroupBoxElement)(this.radGroupBox7.GetChildAt(0))).HeaderAlignment = Telerik.WinControls.UI.HeaderAlignment.Center; - ((Telerik.WinControls.UI.GroupBoxContent)(this.radGroupBox7.GetChildAt(0).GetChildAt(0))).Opacity = 1D; - ((Telerik.WinControls.Primitives.FillPrimitive)(this.radGroupBox7.GetChildAt(0).GetChildAt(0).GetChildAt(0))).BackColor2 = System.Drawing.Color.Transparent; - ((Telerik.WinControls.Primitives.BorderPrimitive)(this.radGroupBox7.GetChildAt(0).GetChildAt(0).GetChildAt(1))).Width = 1F; - ((Telerik.WinControls.Primitives.BorderPrimitive)(this.radGroupBox7.GetChildAt(0).GetChildAt(0).GetChildAt(1))).BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Solid; - ((Telerik.WinControls.Primitives.BorderPrimitive)(this.radGroupBox7.GetChildAt(0).GetChildAt(0).GetChildAt(1))).GradientStyle = Telerik.WinControls.GradientStyles.Solid; - ((Telerik.WinControls.Primitives.BorderPrimitive)(this.radGroupBox7.GetChildAt(0).GetChildAt(0).GetChildAt(1))).InnerColor = System.Drawing.Color.FromArgb(((int)(((byte)(44)))), ((int)(((byte)(109)))), ((int)(((byte)(124))))); - ((Telerik.WinControls.Primitives.BorderPrimitive)(this.radGroupBox7.GetChildAt(0).GetChildAt(0).GetChildAt(1))).ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(44)))), ((int)(((byte)(109)))), ((int)(((byte)(124))))); - ((Telerik.WinControls.UI.GroupBoxHeader)(this.radGroupBox7.GetChildAt(0).GetChildAt(1))).GroupBoxStyle = Telerik.WinControls.UI.RadGroupBoxStyle.Standard; - ((Telerik.WinControls.Primitives.FillPrimitive)(this.radGroupBox7.GetChildAt(0).GetChildAt(1).GetChildAt(0))).ForeColor = System.Drawing.Color.White; - ((Telerik.WinControls.Primitives.FillPrimitive)(this.radGroupBox7.GetChildAt(0).GetChildAt(1).GetChildAt(0))).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(19)))), ((int)(((byte)(46)))), ((int)(((byte)(53))))); - ((Telerik.WinControls.Primitives.FillPrimitive)(this.radGroupBox7.GetChildAt(0).GetChildAt(1).GetChildAt(0))).SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.None; - ((Telerik.WinControls.Primitives.TextPrimitive)(this.radGroupBox7.GetChildAt(0).GetChildAt(1).GetChildAt(2).GetChildAt(1))).Text = "查询条件"; - ((Telerik.WinControls.Primitives.TextPrimitive)(this.radGroupBox7.GetChildAt(0).GetChildAt(1).GetChildAt(2).GetChildAt(1))).LineLimit = false; - ((Telerik.WinControls.Primitives.TextPrimitive)(this.radGroupBox7.GetChildAt(0).GetChildAt(1).GetChildAt(2).GetChildAt(1))).ForeColor = System.Drawing.Color.White; - ((Telerik.WinControls.Primitives.TextPrimitive)(this.radGroupBox7.GetChildAt(0).GetChildAt(1).GetChildAt(2).GetChildAt(1))).Alignment = System.Drawing.ContentAlignment.MiddleLeft; - ((Telerik.WinControls.Primitives.BorderPrimitive)(this.radGroupBox7.GetChildAt(0).GetChildAt(2).GetChildAt(1))).BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Solid; - // - // rtbnSearch - // - this.rtbnSearch.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(19)))), ((int)(((byte)(46)))), ((int)(((byte)(53))))); - this.rtbnSearch.Font = new System.Drawing.Font("Segoe UI", 12F); - this.rtbnSearch.ForeColor = System.Drawing.Color.White; - this.rtbnSearch.Location = new System.Drawing.Point(626, 28); - this.rtbnSearch.Name = "rtbnSearch"; - this.rtbnSearch.Size = new System.Drawing.Size(88, 51); - this.rtbnSearch.TabIndex = 461; - this.rtbnSearch.Text = "查询"; - this.rtbnSearch.Click += new System.EventHandler(this.rtbnSearch_Click); - this.rtbnSearch.MouseLeave += new System.EventHandler(this.btn_MouseLeave); - this.rtbnSearch.MouseHover += new System.EventHandler(this.btn_MouseHover); - ((Telerik.WinControls.UI.RadButtonElement)(this.rtbnSearch.GetChildAt(0))).Text = "查询"; - ((Telerik.WinControls.UI.RadButtonElement)(this.rtbnSearch.GetChildAt(0))).FocusBorderWidth = 5; - ((Telerik.WinControls.UI.RadButtonElement)(this.rtbnSearch.GetChildAt(0))).EnableHighlight = true; - ((Telerik.WinControls.UI.RadButtonElement)(this.rtbnSearch.GetChildAt(0))).EnableBorderHighlight = true; - ((Telerik.WinControls.UI.RadButtonElement)(this.rtbnSearch.GetChildAt(0))).BorderHighlightThickness = 3; - ((Telerik.WinControls.Primitives.BorderPrimitive)(this.rtbnSearch.GetChildAt(0).GetChildAt(2))).Width = 2F; - ((Telerik.WinControls.Primitives.BorderPrimitive)(this.rtbnSearch.GetChildAt(0).GetChildAt(2))).LeftWidth = 3F; - ((Telerik.WinControls.Primitives.BorderPrimitive)(this.rtbnSearch.GetChildAt(0).GetChildAt(2))).TopWidth = 3F; - ((Telerik.WinControls.Primitives.BorderPrimitive)(this.rtbnSearch.GetChildAt(0).GetChildAt(2))).RightWidth = 3F; - ((Telerik.WinControls.Primitives.BorderPrimitive)(this.rtbnSearch.GetChildAt(0).GetChildAt(2))).BottomWidth = 3F; - ((Telerik.WinControls.Primitives.BorderPrimitive)(this.rtbnSearch.GetChildAt(0).GetChildAt(2))).BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Solid; - ((Telerik.WinControls.Primitives.BorderPrimitive)(this.rtbnSearch.GetChildAt(0).GetChildAt(2))).GradientStyle = Telerik.WinControls.GradientStyles.Solid; - ((Telerik.WinControls.Primitives.BorderPrimitive)(this.rtbnSearch.GetChildAt(0).GetChildAt(2))).ForeColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(151)))), ((int)(((byte)(186))))); - ((Telerik.WinControls.Primitives.BorderPrimitive)(this.rtbnSearch.GetChildAt(0).GetChildAt(2))).InnerColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(151)))), ((int)(((byte)(186))))); - ((Telerik.WinControls.Primitives.BorderPrimitive)(this.rtbnSearch.GetChildAt(0).GetChildAt(2))).InnerColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(60)))), ((int)(((byte)(48))))); - ((Telerik.WinControls.Primitives.BorderPrimitive)(this.rtbnSearch.GetChildAt(0).GetChildAt(2))).InnerColor3 = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(60)))), ((int)(((byte)(48))))); - ((Telerik.WinControls.Primitives.BorderPrimitive)(this.rtbnSearch.GetChildAt(0).GetChildAt(2))).InnerColor4 = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(60)))), ((int)(((byte)(48))))); - ((Telerik.WinControls.Primitives.BorderPrimitive)(this.rtbnSearch.GetChildAt(0).GetChildAt(2))).ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(151)))), ((int)(((byte)(186))))); - // - // rtbDimensionName - // - this.rtbDimensionName.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(60)))), ((int)(((byte)(68))))); - this.rtbDimensionName.Font = new System.Drawing.Font("Segoe UI", 12F); - this.rtbDimensionName.ForeColor = System.Drawing.Color.White; - this.rtbDimensionName.Location = new System.Drawing.Point(443, 51); - this.rtbDimensionName.Name = "rtbDimensionName"; - this.rtbDimensionName.Size = new System.Drawing.Size(140, 27); - this.rtbDimensionName.TabIndex = 460; - ((Telerik.WinControls.UI.RadTextBoxElement)(this.rtbDimensionName.GetChildAt(0))).Text = ""; - ((Telerik.WinControls.Primitives.BorderPrimitive)(this.rtbDimensionName.GetChildAt(0).GetChildAt(2))).ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(60)))), ((int)(((byte)(68))))); - // - // label3 - // - this.label3.AutoSize = true; - this.label3.Font = new System.Drawing.Font("Segoe UI", 12F); - this.label3.ForeColor = System.Drawing.Color.White; - this.label3.Location = new System.Drawing.Point(443, 27); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(95, 21); - this.label3.TabIndex = 459; - this.label3.Text = "尺寸名称:"; - // - // rtbMesPointName - // - this.rtbMesPointName.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(60)))), ((int)(((byte)(68))))); - this.rtbMesPointName.Font = new System.Drawing.Font("Segoe UI", 12F); - this.rtbMesPointName.ForeColor = System.Drawing.Color.White; - this.rtbMesPointName.Location = new System.Drawing.Point(237, 52); - this.rtbMesPointName.Name = "rtbMesPointName"; - this.rtbMesPointName.Size = new System.Drawing.Size(140, 27); - this.rtbMesPointName.TabIndex = 458; - ((Telerik.WinControls.UI.RadTextBoxElement)(this.rtbMesPointName.GetChildAt(0))).Text = ""; - ((Telerik.WinControls.Primitives.BorderPrimitive)(this.rtbMesPointName.GetChildAt(0).GetChildAt(2))).ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(60)))), ((int)(((byte)(68))))); - // - // label1 - // - this.label1.AutoSize = true; - this.label1.Font = new System.Drawing.Font("Segoe UI", 12F); - this.label1.ForeColor = System.Drawing.Color.White; - this.label1.Location = new System.Drawing.Point(233, 28); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(129, 21); - this.label1.TabIndex = 457; - this.label1.Text = "测量点位名称:"; - // - // rtbCarModel - // - this.rtbCarModel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(60)))), ((int)(((byte)(68))))); - this.rtbCarModel.Font = new System.Drawing.Font("Segoe UI", 12F); - this.rtbCarModel.ForeColor = System.Drawing.Color.White; - this.rtbCarModel.Location = new System.Drawing.Point(42, 52); - this.rtbCarModel.Name = "rtbCarModel"; - this.rtbCarModel.Size = new System.Drawing.Size(140, 27); - this.rtbCarModel.TabIndex = 456; - ((Telerik.WinControls.UI.RadTextBoxElement)(this.rtbCarModel.GetChildAt(0))).Text = ""; - ((Telerik.WinControls.Primitives.BorderPrimitive)(this.rtbCarModel.GetChildAt(0).GetChildAt(2))).ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(60)))), ((int)(((byte)(68))))); - // - // label15 - // - this.label15.AutoSize = true; - this.label15.Font = new System.Drawing.Font("Segoe UI", 12F); - this.label15.ForeColor = System.Drawing.Color.White; - this.label15.Location = new System.Drawing.Point(42, 28); - this.label15.Name = "label15"; - this.label15.Size = new System.Drawing.Size(95, 21); - this.label15.TabIndex = 455; - this.label15.Text = "车身类型:"; - // - // dataGridViewImageColumn1 - // - this.dataGridViewImageColumn1.HeaderText = "修改"; - this.dataGridViewImageColumn1.Image = ((System.Drawing.Image)(resources.GetObject("dataGridViewImageColumn1.Image"))); - this.dataGridViewImageColumn1.Name = "dataGridViewImageColumn1"; - this.dataGridViewImageColumn1.ReadOnly = true; - this.dataGridViewImageColumn1.ToolTipText = "点击修改机床信息"; - this.dataGridViewImageColumn1.Width = 45; - // - // dataGridViewImageColumn2 - // - this.dataGridViewImageColumn2.HeaderText = "删除"; - this.dataGridViewImageColumn2.Image = ((System.Drawing.Image)(resources.GetObject("dataGridViewImageColumn2.Image"))); - this.dataGridViewImageColumn2.Name = "dataGridViewImageColumn2"; - this.dataGridViewImageColumn2.ReadOnly = true; - this.dataGridViewImageColumn2.ToolTipText = "点击删除机床信息"; - this.dataGridViewImageColumn2.Width = 45; - // - // lpcAddTol - // - this.lpcAddTol.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(19)))), ((int)(((byte)(46)))), ((int)(((byte)(53))))); - this.lpcAddTol.Font = new System.Drawing.Font("Segoe UI", 9.75F); - this.lpcAddTol.ForeColor = System.Drawing.Color.White; - this.lpcAddTol.LabelPoint = new System.Drawing.Point(2, 59); - this.lpcAddTol.LabelText = "添加公差带"; - this.lpcAddTol.LabelTopImage = global::NSAnalysis.Properties.Resources.add_32; - this.lpcAddTol.Location = new System.Drawing.Point(22, 60); - this.lpcAddTol.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); - this.lpcAddTol.Name = "lpcAddTol"; - this.lpcAddTol.Size = new System.Drawing.Size(115, 85); - this.lpcAddTol.TabIndex = 18; - this.lpcAddTol.Click += new System.EventHandler(this.lpcAddTol_Click); - // - // labSearchResult - // - this.labSearchResult.Anchor = System.Windows.Forms.AnchorStyles.None; - this.labSearchResult.AutoSize = true; - this.labSearchResult.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(60)))), ((int)(((byte)(68))))); - this.labSearchResult.Font = new System.Drawing.Font("Segoe UI", 12F); - this.labSearchResult.ForeColor = System.Drawing.Color.Red; - this.labSearchResult.Location = new System.Drawing.Point(240, 465); - this.labSearchResult.Name = "labSearchResult"; - this.labSearchResult.Size = new System.Drawing.Size(452, 21); - this.labSearchResult.TabIndex = 457; - this.labSearchResult.Text = "查询完毕,未查询到任何结果,请检查查询条件是否正确!"; - this.labSearchResult.Visible = false; - // - // Id - // - this.Id.DataPropertyName = "Id"; - this.Id.HeaderText = "Id"; - this.Id.Name = "Id"; - this.Id.ReadOnly = true; - this.Id.Visible = false; - this.Id.Width = 46; - // - // CarType - // - this.CarType.DataPropertyName = "CarType"; - this.CarType.HeaderText = "车身类型"; - this.CarType.Name = "CarType"; - this.CarType.ReadOnly = true; - this.CarType.Width = 97; - // - // MeasurePointName - // - this.MeasurePointName.DataPropertyName = "MeasurePointName"; - this.MeasurePointName.HeaderText = "测量点位名称"; - this.MeasurePointName.Name = "MeasurePointName"; - this.MeasurePointName.ReadOnly = true; - this.MeasurePointName.Width = 129; - // - // DimensionName - // - this.DimensionName.DataPropertyName = "DimensionName"; - this.DimensionName.HeaderText = "尺寸名称"; - this.DimensionName.Name = "DimensionName"; - this.DimensionName.ReadOnly = true; - this.DimensionName.Width = 97; - // - // TolLower - // - this.TolLower.DataPropertyName = "TolLower"; - this.TolLower.HeaderText = "下限值"; - this.TolLower.Name = "TolLower"; - this.TolLower.ReadOnly = true; - this.TolLower.Width = 81; - // - // TolUpper - // - this.TolUpper.DataPropertyName = "TolUpper"; - this.TolUpper.HeaderText = "上限值"; - this.TolUpper.Name = "TolUpper"; - this.TolUpper.ReadOnly = true; - this.TolUpper.Width = 81; - // - // Remark - // - this.Remark.DataPropertyName = "Remark"; - this.Remark.HeaderText = "备注"; - this.Remark.Name = "Remark"; - this.Remark.ReadOnly = true; - this.Remark.Width = 65; - // - // CreateTime - // - this.CreateTime.DataPropertyName = "CreateTime"; - this.CreateTime.HeaderText = "创建时间"; - this.CreateTime.Name = "CreateTime"; - this.CreateTime.ReadOnly = true; - this.CreateTime.Visible = false; - this.CreateTime.Width = 97; - // - // CNCEdit - // - this.CNCEdit.HeaderText = "修改"; - this.CNCEdit.Image = ((System.Drawing.Image)(resources.GetObject("CNCEdit.Image"))); - this.CNCEdit.Name = "CNCEdit"; - this.CNCEdit.ReadOnly = true; - this.CNCEdit.ToolTipText = "点击修改公差信息"; - this.CNCEdit.Width = 46; - // - // CNCDelete - // - this.CNCDelete.HeaderText = "删除"; - this.CNCDelete.Image = ((System.Drawing.Image)(resources.GetObject("CNCDelete.Image"))); - this.CNCDelete.Name = "CNCDelete"; - this.CNCDelete.ReadOnly = true; - this.CNCDelete.ToolTipText = "点击删除公差信息"; - this.CNCDelete.Width = 46; - // - // FToleranceSetup - // - this.AcceptButton = this.rtbnSearch; - this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 13F); - 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(932, 950); - this.Controls.Add(this.labSearchResult); - this.Controls.Add(this.radGroupBox7); - this.Controls.Add(this.lpcAddTol); - this.Controls.Add(this.dgvTolList); - this.Controls.Add(this.radTitleBar1); - this.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.ForeColor = System.Drawing.Color.White; - this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); - this.Name = "FToleranceSetup"; - this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; - this.Text = "公差带设置"; - this.Load += new System.EventHandler(this.FToleranceSetup_Load); - ((System.ComponentModel.ISupportInitialize)(this.radTitleBar1)).EndInit(); - this.radTitleBar1.ResumeLayout(false); - this.radTitleBar1.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.dgvTolList)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.radGroupBox7)).EndInit(); - this.radGroupBox7.ResumeLayout(false); - this.radGroupBox7.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.rtbnSearch)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.rtbDimensionName)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.rtbMesPointName)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.rtbCarModel)).EndInit(); - this.ResumeLayout(false); - this.PerformLayout(); + this.radGroupBox7.Controls.Add(this.rtbnSearch); + this.radGroupBox7.Controls.Add(this.rtbDimensionName); + this.radGroupBox7.Controls.Add(this.label3); + this.radGroupBox7.Controls.Add(this.rtbMesPointName); + this.radGroupBox7.Controls.Add(this.label1); + this.radGroupBox7.Controls.Add(this.rtbCarModel); + this.radGroupBox7.Controls.Add(this.label15); + this.radGroupBox7.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.radGroupBox7.HeaderAlignment = Telerik.WinControls.UI.HeaderAlignment.Center; + this.radGroupBox7.HeaderText = "查询条件"; + this.radGroupBox7.Location = new System.Drawing.Point(283, 51); + this.radGroupBox7.Name = "radGroupBox7"; + // + // + // + this.radGroupBox7.RootElement.ShadowDepth = 2; + this.radGroupBox7.Size = new System.Drawing.Size(847, 94); + this.radGroupBox7.TabIndex = 456; + this.radGroupBox7.Text = "查询条件"; + ((Telerik.WinControls.UI.RadGroupBoxElement)(this.radGroupBox7.GetChildAt(0))).HeaderAlignment = Telerik.WinControls.UI.HeaderAlignment.Center; + ((Telerik.WinControls.UI.GroupBoxContent)(this.radGroupBox7.GetChildAt(0).GetChildAt(0))).Opacity = 1D; + ((Telerik.WinControls.Primitives.FillPrimitive)(this.radGroupBox7.GetChildAt(0).GetChildAt(0).GetChildAt(0))).BackColor2 = System.Drawing.Color.Transparent; + ((Telerik.WinControls.Primitives.BorderPrimitive)(this.radGroupBox7.GetChildAt(0).GetChildAt(0).GetChildAt(1))).Width = 1F; + ((Telerik.WinControls.Primitives.BorderPrimitive)(this.radGroupBox7.GetChildAt(0).GetChildAt(0).GetChildAt(1))).BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Solid; + ((Telerik.WinControls.Primitives.BorderPrimitive)(this.radGroupBox7.GetChildAt(0).GetChildAt(0).GetChildAt(1))).GradientStyle = Telerik.WinControls.GradientStyles.Solid; + ((Telerik.WinControls.Primitives.BorderPrimitive)(this.radGroupBox7.GetChildAt(0).GetChildAt(0).GetChildAt(1))).InnerColor = System.Drawing.Color.FromArgb(((int)(((byte)(44)))), ((int)(((byte)(109)))), ((int)(((byte)(124))))); + ((Telerik.WinControls.Primitives.BorderPrimitive)(this.radGroupBox7.GetChildAt(0).GetChildAt(0).GetChildAt(1))).ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(44)))), ((int)(((byte)(109)))), ((int)(((byte)(124))))); + ((Telerik.WinControls.UI.GroupBoxHeader)(this.radGroupBox7.GetChildAt(0).GetChildAt(1))).GroupBoxStyle = Telerik.WinControls.UI.RadGroupBoxStyle.Standard; + ((Telerik.WinControls.Primitives.FillPrimitive)(this.radGroupBox7.GetChildAt(0).GetChildAt(1).GetChildAt(0))).ForeColor = System.Drawing.Color.White; + ((Telerik.WinControls.Primitives.FillPrimitive)(this.radGroupBox7.GetChildAt(0).GetChildAt(1).GetChildAt(0))).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(19)))), ((int)(((byte)(46)))), ((int)(((byte)(53))))); + ((Telerik.WinControls.Primitives.FillPrimitive)(this.radGroupBox7.GetChildAt(0).GetChildAt(1).GetChildAt(0))).SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.None; + ((Telerik.WinControls.Primitives.TextPrimitive)(this.radGroupBox7.GetChildAt(0).GetChildAt(1).GetChildAt(2).GetChildAt(1))).Text = "查询条件"; + ((Telerik.WinControls.Primitives.TextPrimitive)(this.radGroupBox7.GetChildAt(0).GetChildAt(1).GetChildAt(2).GetChildAt(1))).LineLimit = false; + ((Telerik.WinControls.Primitives.TextPrimitive)(this.radGroupBox7.GetChildAt(0).GetChildAt(1).GetChildAt(2).GetChildAt(1))).ForeColor = System.Drawing.Color.White; + ((Telerik.WinControls.Primitives.TextPrimitive)(this.radGroupBox7.GetChildAt(0).GetChildAt(1).GetChildAt(2).GetChildAt(1))).Alignment = System.Drawing.ContentAlignment.MiddleLeft; + ((Telerik.WinControls.Primitives.BorderPrimitive)(this.radGroupBox7.GetChildAt(0).GetChildAt(2).GetChildAt(1))).BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Solid; + // + // rtbnSearch + // + this.rtbnSearch.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(19)))), ((int)(((byte)(46)))), ((int)(((byte)(53))))); + this.rtbnSearch.Font = new System.Drawing.Font("Segoe UI", 12F); + this.rtbnSearch.ForeColor = System.Drawing.Color.White; + this.rtbnSearch.Location = new System.Drawing.Point(626, 28); + this.rtbnSearch.Name = "rtbnSearch"; + this.rtbnSearch.Size = new System.Drawing.Size(88, 51); + this.rtbnSearch.TabIndex = 461; + this.rtbnSearch.Text = "查询"; + this.rtbnSearch.Click += new System.EventHandler(this.rtbnSearch_Click); + this.rtbnSearch.MouseLeave += new System.EventHandler(this.btn_MouseLeave); + this.rtbnSearch.MouseHover += new System.EventHandler(this.btn_MouseHover); + ((Telerik.WinControls.UI.RadButtonElement)(this.rtbnSearch.GetChildAt(0))).Text = "查询"; + ((Telerik.WinControls.UI.RadButtonElement)(this.rtbnSearch.GetChildAt(0))).FocusBorderWidth = 5; + ((Telerik.WinControls.UI.RadButtonElement)(this.rtbnSearch.GetChildAt(0))).EnableHighlight = true; + ((Telerik.WinControls.UI.RadButtonElement)(this.rtbnSearch.GetChildAt(0))).EnableBorderHighlight = true; + ((Telerik.WinControls.UI.RadButtonElement)(this.rtbnSearch.GetChildAt(0))).BorderHighlightThickness = 3; + ((Telerik.WinControls.Primitives.BorderPrimitive)(this.rtbnSearch.GetChildAt(0).GetChildAt(2))).Width = 2F; + ((Telerik.WinControls.Primitives.BorderPrimitive)(this.rtbnSearch.GetChildAt(0).GetChildAt(2))).LeftWidth = 3F; + ((Telerik.WinControls.Primitives.BorderPrimitive)(this.rtbnSearch.GetChildAt(0).GetChildAt(2))).TopWidth = 3F; + ((Telerik.WinControls.Primitives.BorderPrimitive)(this.rtbnSearch.GetChildAt(0).GetChildAt(2))).RightWidth = 3F; + ((Telerik.WinControls.Primitives.BorderPrimitive)(this.rtbnSearch.GetChildAt(0).GetChildAt(2))).BottomWidth = 3F; + ((Telerik.WinControls.Primitives.BorderPrimitive)(this.rtbnSearch.GetChildAt(0).GetChildAt(2))).BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Solid; + ((Telerik.WinControls.Primitives.BorderPrimitive)(this.rtbnSearch.GetChildAt(0).GetChildAt(2))).GradientStyle = Telerik.WinControls.GradientStyles.Solid; + ((Telerik.WinControls.Primitives.BorderPrimitive)(this.rtbnSearch.GetChildAt(0).GetChildAt(2))).ForeColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(151)))), ((int)(((byte)(186))))); + ((Telerik.WinControls.Primitives.BorderPrimitive)(this.rtbnSearch.GetChildAt(0).GetChildAt(2))).InnerColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(151)))), ((int)(((byte)(186))))); + ((Telerik.WinControls.Primitives.BorderPrimitive)(this.rtbnSearch.GetChildAt(0).GetChildAt(2))).InnerColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(60)))), ((int)(((byte)(48))))); + ((Telerik.WinControls.Primitives.BorderPrimitive)(this.rtbnSearch.GetChildAt(0).GetChildAt(2))).InnerColor3 = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(60)))), ((int)(((byte)(48))))); + ((Telerik.WinControls.Primitives.BorderPrimitive)(this.rtbnSearch.GetChildAt(0).GetChildAt(2))).InnerColor4 = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(60)))), ((int)(((byte)(48))))); + ((Telerik.WinControls.Primitives.BorderPrimitive)(this.rtbnSearch.GetChildAt(0).GetChildAt(2))).ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(151)))), ((int)(((byte)(186))))); + // + // rtbDimensionName + // + this.rtbDimensionName.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(60)))), ((int)(((byte)(68))))); + this.rtbDimensionName.Font = new System.Drawing.Font("Segoe UI", 12F); + this.rtbDimensionName.ForeColor = System.Drawing.Color.White; + this.rtbDimensionName.Location = new System.Drawing.Point(443, 51); + this.rtbDimensionName.Name = "rtbDimensionName"; + this.rtbDimensionName.Size = new System.Drawing.Size(140, 27); + this.rtbDimensionName.TabIndex = 460; + ((Telerik.WinControls.UI.RadTextBoxElement)(this.rtbDimensionName.GetChildAt(0))).Text = ""; + ((Telerik.WinControls.Primitives.BorderPrimitive)(this.rtbDimensionName.GetChildAt(0).GetChildAt(2))).ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(60)))), ((int)(((byte)(68))))); + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Font = new System.Drawing.Font("Segoe UI", 12F); + this.label3.ForeColor = System.Drawing.Color.White; + this.label3.Location = new System.Drawing.Point(443, 27); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(95, 21); + this.label3.TabIndex = 459; + this.label3.Text = "尺寸名称:"; + // + // rtbMesPointName + // + this.rtbMesPointName.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(60)))), ((int)(((byte)(68))))); + this.rtbMesPointName.Font = new System.Drawing.Font("Segoe UI", 12F); + this.rtbMesPointName.ForeColor = System.Drawing.Color.White; + this.rtbMesPointName.Location = new System.Drawing.Point(237, 52); + this.rtbMesPointName.Name = "rtbMesPointName"; + this.rtbMesPointName.Size = new System.Drawing.Size(140, 27); + this.rtbMesPointName.TabIndex = 458; + ((Telerik.WinControls.UI.RadTextBoxElement)(this.rtbMesPointName.GetChildAt(0))).Text = ""; + ((Telerik.WinControls.Primitives.BorderPrimitive)(this.rtbMesPointName.GetChildAt(0).GetChildAt(2))).ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(60)))), ((int)(((byte)(68))))); + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Font = new System.Drawing.Font("Segoe UI", 12F); + this.label1.ForeColor = System.Drawing.Color.White; + this.label1.Location = new System.Drawing.Point(233, 28); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(129, 21); + this.label1.TabIndex = 457; + this.label1.Text = "测量点位名称:"; + // + // rtbCarModel + // + this.rtbCarModel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(60)))), ((int)(((byte)(68))))); + this.rtbCarModel.Font = new System.Drawing.Font("Segoe UI", 12F); + this.rtbCarModel.ForeColor = System.Drawing.Color.White; + this.rtbCarModel.Location = new System.Drawing.Point(42, 52); + this.rtbCarModel.Name = "rtbCarModel"; + this.rtbCarModel.Size = new System.Drawing.Size(140, 27); + this.rtbCarModel.TabIndex = 456; + ((Telerik.WinControls.UI.RadTextBoxElement)(this.rtbCarModel.GetChildAt(0))).Text = ""; + ((Telerik.WinControls.Primitives.BorderPrimitive)(this.rtbCarModel.GetChildAt(0).GetChildAt(2))).ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(60)))), ((int)(((byte)(68))))); + // + // label15 + // + this.label15.AutoSize = true; + this.label15.Font = new System.Drawing.Font("Segoe UI", 12F); + this.label15.ForeColor = System.Drawing.Color.White; + this.label15.Location = new System.Drawing.Point(42, 28); + this.label15.Name = "label15"; + this.label15.Size = new System.Drawing.Size(95, 21); + this.label15.TabIndex = 455; + this.label15.Text = "车身类型:"; + // + // dataGridViewImageColumn1 + // + this.dataGridViewImageColumn1.HeaderText = "修改"; + this.dataGridViewImageColumn1.Image = ((System.Drawing.Image)(resources.GetObject("dataGridViewImageColumn1.Image"))); + this.dataGridViewImageColumn1.Name = "dataGridViewImageColumn1"; + this.dataGridViewImageColumn1.ReadOnly = true; + this.dataGridViewImageColumn1.ToolTipText = "点击修改机床信息"; + this.dataGridViewImageColumn1.Width = 45; + // + // dataGridViewImageColumn2 + // + this.dataGridViewImageColumn2.HeaderText = "删除"; + this.dataGridViewImageColumn2.Image = ((System.Drawing.Image)(resources.GetObject("dataGridViewImageColumn2.Image"))); + this.dataGridViewImageColumn2.Name = "dataGridViewImageColumn2"; + this.dataGridViewImageColumn2.ReadOnly = true; + this.dataGridViewImageColumn2.ToolTipText = "点击删除机床信息"; + this.dataGridViewImageColumn2.Width = 45; + // + // lpcAddTol + // + this.lpcAddTol.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(19)))), ((int)(((byte)(46)))), ((int)(((byte)(53))))); + this.lpcAddTol.Font = new System.Drawing.Font("Segoe UI", 9.75F); + this.lpcAddTol.ForeColor = System.Drawing.Color.White; + this.lpcAddTol.LabelPoint = new System.Drawing.Point(2, 59); + this.lpcAddTol.LabelText = "添加公差带"; + this.lpcAddTol.LabelTopImage = global::NSAnalysis.Properties.Resources.add_32; + this.lpcAddTol.Location = new System.Drawing.Point(22, 60); + this.lpcAddTol.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + this.lpcAddTol.Name = "lpcAddTol"; + this.lpcAddTol.Size = new System.Drawing.Size(115, 85); + this.lpcAddTol.TabIndex = 18; + this.lpcAddTol.Click += new System.EventHandler(this.lpcAddTol_Click); + // + // labSearchResult + // + this.labSearchResult.Anchor = System.Windows.Forms.AnchorStyles.None; + this.labSearchResult.AutoSize = true; + this.labSearchResult.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(60)))), ((int)(((byte)(68))))); + this.labSearchResult.Font = new System.Drawing.Font("Segoe UI", 12F); + this.labSearchResult.ForeColor = System.Drawing.Color.Red; + this.labSearchResult.Location = new System.Drawing.Point(350, 465); + this.labSearchResult.Name = "labSearchResult"; + this.labSearchResult.Size = new System.Drawing.Size(452, 21); + this.labSearchResult.TabIndex = 457; + this.labSearchResult.Text = "查询完毕,未查询到任何结果,请检查查询条件是否正确!"; + this.labSearchResult.Visible = false; + // + // rbtnImportTol + // + this.rbtnImportTol.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(19)))), ((int)(((byte)(46)))), ((int)(((byte)(53))))); + this.rbtnImportTol.Font = new System.Drawing.Font("Segoe UI", 11F); + this.rbtnImportTol.ForeColor = System.Drawing.Color.White; + this.rbtnImportTol.Location = new System.Drawing.Point(145, 60); + this.rbtnImportTol.Name = "rbtnImportTol"; + this.rbtnImportTol.Size = new System.Drawing.Size(115, 38); + this.rbtnImportTol.TabIndex = 19; + this.rbtnImportTol.Text = "批量导入"; + this.rbtnImportTol.Click += new System.EventHandler(this.rbtnImportTol_Click); + this.rbtnImportTol.MouseLeave += new System.EventHandler(this.btn_MouseLeave); + this.rbtnImportTol.MouseHover += new System.EventHandler(this.btn_MouseHover); + // + // rbtnDownloadTemplate + // + this.rbtnDownloadTemplate.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(19)))), ((int)(((byte)(46)))), ((int)(((byte)(53))))); + this.rbtnDownloadTemplate.Font = new System.Drawing.Font("Segoe UI", 11F); + this.rbtnDownloadTemplate.ForeColor = System.Drawing.Color.White; + this.rbtnDownloadTemplate.Location = new System.Drawing.Point(145, 107); + this.rbtnDownloadTemplate.Name = "rbtnDownloadTemplate"; + this.rbtnDownloadTemplate.Size = new System.Drawing.Size(115, 38); + this.rbtnDownloadTemplate.TabIndex = 20; + this.rbtnDownloadTemplate.Text = "下载模板"; + this.rbtnDownloadTemplate.Click += new System.EventHandler(this.rbtnDownloadTemplate_Click); + this.rbtnDownloadTemplate.MouseLeave += new System.EventHandler(this.btn_MouseLeave); + this.rbtnDownloadTemplate.MouseHover += new System.EventHandler(this.btn_MouseHover); + // + // FToleranceSetup + // + this.AcceptButton = this.rtbnSearch; + this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 13F); + 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(1153, 950); + this.Controls.Add(this.labSearchResult); + this.Controls.Add(this.radGroupBox7); + this.Controls.Add(this.lpcAddTol); + this.Controls.Add(this.rbtnImportTol); + this.Controls.Add(this.rbtnDownloadTemplate); + this.Controls.Add(this.dgvTolList); + this.Controls.Add(this.radTitleBar1); + this.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.ForeColor = System.Drawing.Color.White; + this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); + this.Name = "FToleranceSetup"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "公差带设置"; + this.Load += new System.EventHandler(this.FToleranceSetup_Load); + ((System.ComponentModel.ISupportInitialize)(this.radTitleBar1)).EndInit(); + this.radTitleBar1.ResumeLayout(false); + this.radTitleBar1.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.dgvTolList)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.radGroupBox7)).EndInit(); + this.radGroupBox7.ResumeLayout(false); + this.radGroupBox7.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.rtbnSearch)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.rtbDimensionName)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.rtbMesPointName)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.rtbCarModel)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.rbtnImportTol)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.rbtnDownloadTemplate)).EndInit(); + this.ResumeLayout(false); + this.PerformLayout(); } @@ -535,5 +562,7 @@ private System.Windows.Forms.DataGridViewTextBoxColumn CreateTime; private System.Windows.Forms.DataGridViewImageColumn CNCEdit; private System.Windows.Forms.DataGridViewImageColumn CNCDelete; + private Telerik.WinControls.UI.RadButton rbtnImportTol; + private Telerik.WinControls.UI.RadButton rbtnDownloadTemplate; } } diff --git a/Analysis/bin/x64/Debug/DAL.dll b/Analysis/bin/x64/Debug/DAL.dll index 975925c..56794e6 100644 Binary files a/Analysis/bin/x64/Debug/DAL.dll and b/Analysis/bin/x64/Debug/DAL.dll differ diff --git a/Analysis/bin/x64/Debug/DAL.pdb b/Analysis/bin/x64/Debug/DAL.pdb index c432e56..971dacf 100644 Binary files a/Analysis/bin/x64/Debug/DAL.pdb and b/Analysis/bin/x64/Debug/DAL.pdb differ diff --git a/Analysis/bin/x64/Debug/Debug.txt b/Analysis/bin/x64/Debug/Debug.txt index e8d4129..5661d9d 100644 --- a/Analysis/bin/x64/Debug/Debug.txt +++ b/Analysis/bin/x64/Debug/Debug.txt @@ -1,22 +1,83 @@ -2026-03-16 11:24:17.665----软件Program Main函数开始执行-- -2026-03-16 11:24:17.666--加载配置文件——>开始 -2026-03-16 11:24:17.719--数据库连接 SqlServerName:127.0.0.1 -2026-03-16 11:24:17.720--数据库连接 SqlUserName:sa -2026-03-16 11:24:17.720--数据库连接 SqlPassword:Hexagon123 -2026-03-16 11:24:17.721--数据库连接 SqlDbName:NextSenseStandardDB -2026-03-16 11:24:17.721--加载配置文件——>完成 -2026-03-16 11:24:17.722--Log in using the original authorization mode. -2026-03-16 11:24:19.152--数据库连接 SqlServerName:127.0.0.1 -2026-03-16 11:24:19.153--数据库连接 SqlUserName:sa -2026-03-16 11:24:19.153--数据库连接 SqlPassword:Hexagon123 -2026-03-16 11:24:19.154--数据库连接 SqlDbName:NextSenseStandardDB -2026-03-16 11:24:19.155--数据库连接字符串:Data Source=127.0.0.1;initial Catalog=NextSenseStandardDB;User ID=sa;password=Hexagon123; -2026-03-16 11:24:19.471-- 进入显示车身模式!显示车身界面。 -2026-03-16 11:24:19.538--[FEHYRightCarData] 窗体开始加载 -2026-03-16 11:24:19.609--[FEHYRightCarData] 窗体加载完成,后台刷新线程已启动 -2026-03-16 11:24:19.881--启动PLC写线程! -2026-03-16 11:24:19.883-- 进入解析CSV文件模式,开始解析扫码CSV文件! -2026-03-16 11:24:19.885--软件首次启动, Nextsense EH3 CSV读取路径存在;不清空,读取NextSense生成 CSV报告路径下的所有文件,路径为:D:\cherytestEH3 -2026-03-16 11:24:19.885--连接PLC.... -2026-03-16 11:24:19.886--软件首次启动, Nextsense EHY CSV读取路径存在;不清空,读取NextSense生成 CSV报告路径下的所有文件,路径为:D:\cherytestEHY -2026-03-16 11:24:19.911--错误:软件首次启动,读取NextSense生成EHV CSV报告的路径: 不存在!请检查并进行修改!点击是按钮,软件将自动创建该路径! +2026-03-16 13:34:19.546----软件Program Main函数开始执行-- +2026-03-16 13:34:19.550--加载配置文件——>开始 +2026-03-16 13:34:19.562--数据库连接 SqlServerName:127.0.0.1 +2026-03-16 13:34:19.562--数据库连接 SqlUserName:sa +2026-03-16 13:34:19.563--数据库连接 SqlPassword:Hexagon123 +2026-03-16 13:34:19.564--数据库连接 SqlDbName:NextSenseStandardDB +2026-03-16 13:34:19.565--加载配置文件——>完成 +2026-03-16 13:34:19.566--Log in using the original authorization mode. +2026-03-16 13:34:20.779--数据库连接 SqlServerName:127.0.0.1 +2026-03-16 13:34:20.781--数据库连接 SqlUserName:sa +2026-03-16 13:34:20.782--数据库连接 SqlPassword:Hexagon123 +2026-03-16 13:34:20.782--数据库连接 SqlDbName:NextSenseStandardDB +2026-03-16 13:34:20.783--数据库连接字符串:Data Source=127.0.0.1;initial Catalog=NextSenseStandardDB;User ID=sa;password=Hexagon123; +2026-03-16 13:34:21.137-- 进入显示车身模式!显示车身界面。 +2026-03-16 13:34:21.196--[FEHYRightCarData] 窗体开始加载 +2026-03-16 13:34:21.253--[FEHYRightCarData] 窗体加载完成,后台刷新线程已启动 +2026-03-16 13:34:21.505--启动PLC写线程! +2026-03-16 13:34:21.508-- 进入解析CSV文件模式,开始解析扫码CSV文件! +2026-03-16 13:34:21.537--软件首次启动, Nextsense EH3 CSV读取路径存在;不清空,读取NextSense生成 CSV报告路径下的所有文件,路径为:D:\cherytestEH3 +2026-03-16 13:34:21.568--连接PLC.... +2026-03-16 13:34:21.569--软件首次启动, Nextsense EHY CSV读取路径存在;不清空,读取NextSense生成 CSV报告路径下的所有文件,路径为:D:\cherytestEHY +2026-03-16 13:34:21.600--软件首次启动, Nextsense EHV CSV读取路径存在;不清空,读取NextSense生成 CSV报告路径下的所有文件,路径为:D:\cherytestEHV +2026-03-16 13:34:21.610--[RefreshMonitor] FEHYRightCarData - VIN变更: -> ERROR, 刷新次数: 1, 错误次数: 1 +2026-03-16 13:34:21.611--Right EHY UI Refresh m_bgwRefreshCar_DoWork Error:在位置 0 处没有任何行。 +2026-03-16 13:34:23.692--PLC S7连接失败。 +2026-03-16 13:34:24.006--连接PLC失败 +2026-03-16 13:34:27.819--Right EHY UI Refresh m_bgwRefreshCar_DoWork Error:在位置 0 处没有任何行。 +2026-03-16 13:34:32.723--存在EHV CSV文件,开始解析: +2026-03-16 13:34:32.741--AnalysisNextSenseEHVCSV 函数分析异常:System.IO.IOException: 文件“D:\cherytestEHV\CheryEHV_20260315_001900.csv”正由另一进程使用,因此该进程无法访问此文件。 + 在 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) + 在 System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost) + 在 NSAnalysis.CenterControl.AnalysisNextSenseEHVCSV() 位置 D:\HexagonProjects\2024-20-奇瑞间隙面差\奇瑞间隙面差总装代码资料\Code\Analysis\CenterControl.cs:行号 1382 +2026-03-16 13:34:32.742--存在EHV CSV文件,开始解析: +2026-03-16 13:34:32.750--Copy D:\cherytestEHV\CheryEHV_20260315_001900.csv TO D:\HexagonProjects\2024-20-奇瑞间隙面差\奇瑞间隙面差总装代码资料\Code\Analysis\bin\x64\Debug\File\NextSenseCSVBackup\CheryEHV_20260315_001900.csv Done. 备份完成 +2026-03-16 13:34:32.751--开始解析NextSense EHV CSV 报告:D:\cherytestEHV\CheryEHV_20260315_001900.csv +2026-03-16 13:34:32.754--解析出NextSense CSV中的VIN为: +2026-03-16 13:34:32.771--通过CSV VIN从数据库中获取的完整VIN为:LNNBBDEC7RDA24260 +2026-03-16 13:34:32.777--在数据库表TTempSaveVIN中删除该VIN:LNNBBDEC7RDA24260 +2026-03-16 13:34:33.173--EHV L-07 F 查询数据获取公差带失败!数据库中数量不唯一或不存在,请检查公差带配置! +2026-03-16 13:34:33.280--EHV L-07 G 查询数据获取公差带失败!数据库中数量不唯一或不存在,请检查公差带配置! +2026-03-16 13:34:33.815--EHV L-17 F 查询数据获取公差带失败!数据库中数量不唯一或不存在,请检查公差带配置! +2026-03-16 13:34:33.899--EHV L-17 G 查询数据获取公差带失败!数据库中数量不唯一或不存在,请检查公差带配置! +2026-03-16 13:34:34.029--Right EHY UI Refresh m_bgwRefreshCar_DoWork Error:在位置 0 处没有任何行。 +2026-03-16 13:34:34.124--EHV L-11 F 查询数据获取公差带失败!数据库中数量不唯一或不存在,请检查公差带配置! +2026-03-16 13:34:34.128--EHV L-11 G 查询数据获取公差带失败!数据库中数量不唯一或不存在,请检查公差带配置! +2026-03-16 13:34:34.131--EHV L-19 F 查询数据获取公差带失败!数据库中数量不唯一或不存在,请检查公差带配置! +2026-03-16 13:34:34.167--EHV L-19 G 查询数据获取公差带失败!数据库中数量不唯一或不存在,请检查公差带配置! +2026-03-16 13:34:34.203--EHV R-07 F 查询数据获取公差带失败!数据库中数量不唯一或不存在,请检查公差带配置! +2026-03-16 13:34:34.208--EHV R-07 G 查询数据获取公差带失败!数据库中数量不唯一或不存在,请检查公差带配置! +2026-03-16 13:34:34.242--EHV R-17 F 查询数据获取公差带失败!数据库中数量不唯一或不存在,请检查公差带配置! +2026-03-16 13:34:34.247--EHV R-17 G 查询数据获取公差带失败!数据库中数量不唯一或不存在,请检查公差带配置! +2026-03-16 13:34:34.261--EHV R-11 F 查询数据获取公差带失败!数据库中数量不唯一或不存在,请检查公差带配置! +2026-03-16 13:34:34.266--EHV R-11 G 查询数据获取公差带失败!数据库中数量不唯一或不存在,请检查公差带配置! +2026-03-16 13:34:34.271--EHV R-19 F 查询数据获取公差带失败!数据库中数量不唯一或不存在,请检查公差带配置! +2026-03-16 13:34:34.277--EHV R-19 G 查询数据获取公差带失败!数据库中数量不唯一或不存在,请检查公差带配置! +2026-03-16 13:34:34.311--解析EHV数据完成,并将所有测量数据插入到数据库完毕。 +2026-03-16 13:34:34.312--解析NextSense EHV CSV 报告完毕!检测项数=52 +2026-03-16 13:34:34.313--LNNBBDEC7RDA24260 EHV开始计算极差:============ +2026-03-16 13:34:34.488--计算合格率的时:包含极差计算项! +2026-03-16 13:34:34.510--将EHV总结果插入数据库完毕。 +2026-03-16 13:34:34.512--全部插入解析完毕,删除文件:CheryEHV_20260315_001900.csv +2026-03-16 13:34:34.517--客户自检报告备份路径为:D:\HexagonProjects\2024-20-奇瑞间隙面差\奇瑞间隙面差总装代码资料\Code\Analysis\bin\x64\Debug\ReportBackup\20260316133434_LNNBBDEC7RDA24260.csv +2026-03-16 13:34:34.518--客户 csv报告备份完毕,路径为:D:\HexagonProjects\2024-20-奇瑞间隙面差\奇瑞间隙面差总装代码资料\Code\Analysis\bin\x64\Debug\ReportBackup\20260316133434_LNNBBDEC7RDA24260.csv +2026-03-16 13:34:34.530--客户csv报告复制异常:未能找到路径“D:\QMLTest\20260316133434_LNNBBDEC7RDA24260.csv”的一部分。 +2026-03-16 13:34:34.530--车号: LNNBBDEC7RDA24260 | 目标路径: D:\QMLTest\20260316133434_LNNBBDEC7RDA24260.csv | 备份路径: D:\HexagonProjects\2024-20-奇瑞间隙面差\奇瑞间隙面差总装代码资料\Code\Analysis\bin\x64\Debug\ReportBackup\20260316133434_LNNBBDEC7RDA24260.csv | 上传成功: False +2026-03-16 13:34:34.589--Update To IOT Data Content: {"serno":"20260316133434588","requestData":[{"vin":"LNNBBDEC7RDA24260","model":"EHV","equipmentNo":"NS002","equipmentName":"Hexagon","calibrationResult":"NG","detectionTime":"2026-03-16 13:34:34","targetRate":"60.00%","rate":"50.00%","GapList":[{"vin":"LNNBBDEC7RDA24260","gfNo":"F","pointNumber":"L-01","actualValue":"-1.1","controlLine":"-2.5/2.5","measurementResult":"OK"},{"vin":"LNNBBDEC7RDA24260","gfNo":"G","pointNumber":"L-01","actualValue":"2.2","controlLine":"2.2/4.2","measurementResult":"OK"},{"vin":"LNNBBDEC7RDA24260","gfNo":"F","pointNumber":"L-02","actualValue":"-1.4","controlLine":"-1.5/0.5","measurementResult":"OK"},{"vin":"LNNBBDEC7RDA24260","gfNo":"G","pointNumber":"L-02","actualValue":"2.4","controlLine":"2.2/4.2","measurementResult":"OK"},{"vin":"LNNBBDEC7RDA24260","gfNo":"F","pointNumber":"L-03","actualValue":"-1.2","controlLine":"-1.5/0.5","measurementResult":"OK"},{"vin":"LNNBBDEC7RDA24260","gfNo":"G","pointNumber":"L-03","actualValue":"2.7","controlLine":"2.2/4.2","measurementResult":"OK"},{"vin":"LNNBBDEC7RDA24260","gfNo":"F","pointNumber":"L-06","actualValue":"","controlLine":"-1.5/0.5","measurementResult":"NG"},{"vin":"LNNBBDEC7RDA24260","gfNo":"G","pointNumber":"L-06","actualValue":"","controlLine":"2.2/4.2","measurementResult":"NG"},{"vin":"LNNBBDEC7RDA24260","gfNo":"F","pointNumber":"L-07","actualValue":"","controlLine":"0.0/0.0","measurementResult":"NG"},{"vin":"LNNBBDEC7RDA24260","gfNo":"G","pointNumber":"L-07","actualValue":"","controlLine":"0.0/0.0","measurementResult":"NG"},{"vin":"LNNBBDEC7RDA24260","gfNo":"F","pointNumber":"L-14","actualValue":"-1.3","controlLine":"-1.5/0.5","measurementResult":"OK"},{"vin":"LNNBBDEC7RDA24260","gfNo":"G","pointNumber":"L-14","actualValue":"0.0","controlLine":"2.2/4.2","measurementResult":"NG"},{"vin":"LNNBBDEC7RDA24260","gfNo":"F","pointNumber":"L-13","actualValue":"","controlLine":"-1.5/0.5","measurementResult":"NG"},{"vin":"LNNBBDEC7RDA24260","gfNo":"G","pointNumber":"L-13","actualValue":"","controlLine":"2.2/4.2","measurementResult":"NG"},{"vin":"LNNBBDEC7RDA24260","gfNo":"F","pointNumber":"L-16","actualValue":"","controlLine":"-1.5/0.5","measurementResult":"NG"},{"vin":"LNNBBDEC7RDA24260","gfNo":"G","pointNumber":"L-16","actualValue":"","controlLine":"2.2/4.2","measurementResult":"NG"},{"vin":"LNNBBDEC7RDA24260","gfNo":"F","pointNumber":"L-15","actualValue":"0.4","controlLine":"-1.5/0.5","measurementResult":"OK"},{"vin":"LNNBBDEC7RDA24260","gfNo":"G","pointNumber":"L-15","actualValue":"4.8","controlLine":"2.2/4.2","measurementResult":"NG"},{"vin":"LNNBBDEC7RDA24260","gfNo":"F","pointNumber":"L-17","actualValue":"-1.0","controlLine":"0.0/0.0","measurementResult":"NG"},{"vin":"LNNBBDEC7RDA24260","gfNo":"G","pointNumber":"L-17","actualValue":"1.6","controlLine":"0.0/0.0","measurementResult":"NG"},{"vin":"LNNBBDEC7RDA24260","gfNo":"F","pointNumber":"L-18","actualValue":"0.3","controlLine":"-1.5/0.5","measurementResult":"OK"},{"vin":"LNNBBDEC7RDA24260","gfNo":"G","pointNumber":"L-18","actualValue":"2.4","controlLine":"2.2/4.2","measurementResult":"OK"},{"vin":"LNNBBDEC7RDA24260","gfNo":"F","pointNumber":"L-11","actualValue":"-0.3","controlLine":"0.0/0.0","measurementResult":"NG"},{"vin":"LNNBBDEC7RDA24260","gfNo":"G","pointNumber":"L-11","actualValue":"3.0","controlLine":"0.0/0.0","measurementResult":"NG"},{"vin":"LNNBBDEC7RDA24260","gfNo":"F","pointNumber":"L-19","actualValue":"0.8","controlLine":"0.0/0.0","measurementResult":"NG"},{"vin":"LNNBBDEC7RDA24260","gfNo":"G","pointNumber":"L-19","actualValue":"3.7","controlLine":"0.0/0.0","measurementResult":"NG"},{"vin":"LNNBBDEC7RDA24260","gfNo":"F","pointNumber":"R-01","actualValue":"-1.3","controlLine":"-1.5/0.5","measurementResult":"OK"},{"vin":"LNNBBDEC7RDA24260","gfNo":"G","pointNumber":"R-01","actualValue":"2.5","controlLine":"2.2/4.2","measurementResult":"OK"},{"vin":"LNNBBDEC7RDA24260","gfNo":"F","pointNumber":"R-02","actualValue":"-1.9","controlLine":"-1.5/0.5","measurementResult":"OK"},{"vin":"LNNBBDEC7RDA24260","gfNo":"G","pointNumber":"R-02","actualValue":"2.5","controlLine":"2.2/4.2","measurementResult":"OK"},{"vin":"LNNBBDEC7RDA24260","gfNo":"F","pointNumber":"R-03","actualValue":"-2.2","controlLine":"-1.5/0.5","measurementResult":"NG"},{"vin":"LNNBBDEC7RDA24260","gfNo":"G","pointNumber":"R-03","actualValue":"2.1","controlLine":"2.2/4.2","measurementResult":"OK"},{"vin":"LNNBBDEC7RDA24260","gfNo":"F","pointNumber":"R-06","actualValue":"0.4","controlLine":"-1.5/0.5","measurementResult":"OK"},{"vin":"LNNBBDEC7RDA24260","gfNo":"G","pointNumber":"R-06","actualValue":"3.7","controlLine":"2.2/4.2","measurementResult":"OK"},{"vin":"LNNBBDEC7RDA24260","gfNo":"F","pointNumber":"R-07","actualValue":"","controlLine":"0.0/0.0","measurementResult":"NG"},{"vin":"LNNBBDEC7RDA24260","gfNo":"G","pointNumber":"R-07","actualValue":"","controlLine":"0.0/0.0","measurementResult":"NG"},{"vin":"LNNBBDEC7RDA24260","gfNo":"F","pointNumber":"R-14","actualValue":"-0.8","controlLine":"-1.5/0.5","measurementResult":"OK"},{"vin":"LNNBBDEC7RDA24260","gfNo":"G","pointNumber":"R-14","actualValue":"6.3","controlLine":"2.2/4.2","measurementResult":"NG"},{"vin":"LNNBBDEC7RDA24260","gfNo":"F","pointNumber":"R-13","actualValue":"0.3","controlLine":"-1.5/0.5","measurementResult":"OK"},{"vin":"LNNBBDEC7RDA24260","gfNo":"G","pointNumber":"R-13","actualValue":"4.4","controlLine":"2.2/4.2","measurementResult":"OK"},{"vin":"LNNBBDEC7RDA24260","gfNo":"F","pointNumber":"R-16","actualValue":"-0.6","controlLine":"-1.5/0.5","measurementResult":"OK"},{"vin":"LNNBBDEC7RDA24260","gfNo":"G","pointNumber":"R-16","actualValue":"2.7","controlLine":"2.2/4.2","measurementResult":"OK"},{"vin":"LNNBBDEC7RDA24260","gfNo":"F","pointNumber":"R-15","actualValue":"-0.3","controlLine":"-1.5/0.5","measurementResult":"OK"},{"vin":"LNNBBDEC7RDA24260","gfNo":"G","pointNumber":"R-15","actualValue":"2.6","controlLine":"2.2/4.2","measurementResult":"OK"},{"vin":"LNNBBDEC7RDA24260","gfNo":"F","pointNumber":"R-17","actualValue":"-1.3","controlLine":"0.0/0.0","measurementResult":"NG"},{"vin":"LNNBBDEC7RDA24260","gfNo":"G","pointNumber":"R-17","actualValue":"3.3","controlLine":"0.0/0.0","measurementResult":"NG"},{"vin":"LNNBBDEC7RDA24260","gfNo":"F","pointNumber":"R-18","actualValue":"-0.4","controlLine":"-1.5/0.5","measurementResult":"OK"},{"vin":"LNNBBDEC7RDA24260","gfNo":"G","pointNumber":"R-18","actualValue":"3.3","controlLine":"2.2/4.2","measurementResult":"OK"},{"vin":"LNNBBDEC7RDA24260","gfNo":"F","pointNumber":"R-11","actualValue":"0.2","controlLine":"0.0/0.0","measurementResult":"NG"},{"vin":"LNNBBDEC7RDA24260","gfNo":"G","pointNumber":"R-11","actualValue":"4.3","controlLine":"0.0/0.0","measurementResult":"NG"},{"vin":"LNNBBDEC7RDA24260","gfNo":"F","pointNumber":"R-19","actualValue":"","controlLine":"0.0/0.0","measurementResult":"NG"},{"vin":"LNNBBDEC7RDA24260","gfNo":"G","pointNumber":"R-19","actualValue":"","controlLine":"0.0/0.0","measurementResult":"NG"}]}]} +2026-03-16 13:34:40.259--Right EHY UI Refresh m_bgwRefreshCar_DoWork Error:在位置 0 处没有任何行。 +2026-03-16 13:34:44.669--EHV数据上传IOT完成,结果返回为:Error: System.Net.WebException: 操作超时 + 在 System.Net.HttpWebRequest.GetRequestStream(TransportContext& context) + 在 System.Net.HttpWebRequest.GetRequestStream() + 在 NSAnalysis.CenterControl.PostJsonToIOT(String url, String jsonData, Nullable`1 timeout) 位置 D:\HexagonProjects\2024-20-奇瑞间隙面差\奇瑞间隙面差总装代码资料\Code\Analysis\CenterControl.cs:行号 2249 +2026-03-16 13:34:44.671--EHV数据上传IOT失败! +2026-03-16 13:34:46.486--Right EHY UI Refresh m_bgwRefreshCar_DoWork Error:在位置 0 处没有任何行。 +2026-03-16 13:34:52.705--Right EHY UI Refresh m_bgwRefreshCar_DoWork Error:在位置 0 处没有任何行。 +2026-03-16 13:34:58.916--Right EHY UI Refresh m_bgwRefreshCar_DoWork Error:在位置 0 处没有任何行。 +2026-03-16 13:35:05.140--Right EHY UI Refresh m_bgwRefreshCar_DoWork Error:在位置 0 处没有任何行。 +2026-03-16 13:35:11.381--Right EHY UI Refresh m_bgwRefreshCar_DoWork Error:在位置 0 处没有任何行。 +2026-03-16 13:35:17.617--Right EHY UI Refresh m_bgwRefreshCar_DoWork Error:在位置 0 处没有任何行。 +2026-03-16 13:35:23.830--Right EHY UI Refresh m_bgwRefreshCar_DoWork Error:在位置 0 处没有任何行。 +2026-03-16 13:35:30.042--Right EHY UI Refresh m_bgwRefreshCar_DoWork Error:在位置 0 处没有任何行。 +2026-03-16 13:35:36.254--Right EHY UI Refresh m_bgwRefreshCar_DoWork Error:在位置 0 处没有任何行。 +2026-03-16 13:35:42.507--Right EHY UI Refresh m_bgwRefreshCar_DoWork Error:在位置 0 处没有任何行。 +2026-03-16 13:35:43.232---------------海克斯康面隙分析软件程序关闭--------------------- diff --git a/Analysis/bin/x64/Debug/File/AnalysisConfig.ini b/Analysis/bin/x64/Debug/File/AnalysisConfig.ini index 24669cf..b16fea1 100644 --- a/Analysis/bin/x64/Debug/File/AnalysisConfig.ini +++ b/Analysis/bin/x64/Debug/File/AnalysisConfig.ini @@ -61,6 +61,7 @@ blacklabelUploadPath=VW316_8CM_BLZP6_FG Level2Times=1.5 Level3Times=2 ReportCSVPath2=D:\QMLTest +NextsenseCSVEHVPath=D:\cherytestEHV [Timer] ;单位s diff --git a/Analysis/bin/x64/Debug/NSAnalysis.exe b/Analysis/bin/x64/Debug/NSAnalysis.exe index f096689..682b453 100644 Binary files a/Analysis/bin/x64/Debug/NSAnalysis.exe and b/Analysis/bin/x64/Debug/NSAnalysis.exe differ diff --git a/Analysis/bin/x64/Debug/NSAnalysis.pdb b/Analysis/bin/x64/Debug/NSAnalysis.pdb index b557556..6397326 100644 Binary files a/Analysis/bin/x64/Debug/NSAnalysis.pdb and b/Analysis/bin/x64/Debug/NSAnalysis.pdb differ diff --git a/DAL/TMeasureMSSQLDAL.cs b/DAL/TMeasureMSSQLDAL.cs index 8f2a914..c28871d 100644 --- a/DAL/TMeasureMSSQLDAL.cs +++ b/DAL/TMeasureMSSQLDAL.cs @@ -295,6 +295,45 @@ namespace DAL return SQLHelper.ExecuteNonQuery(strSql, CommandType.Text); } + public int UpsertTolerance(string carType, string measPointName, string dimensionName, double tolLower, double tolUpper, string remark) + { + DataTable dt = new DataTable(); + string strCheckSql = "select Id from TTolerance where CarType=@CarType and MeasurePointName=@MeasurePointName and DimensionName=@DimensionName"; + SqlParameter[] checkParas = new SqlParameter[] + { + new SqlParameter("@CarType", carType), + new SqlParameter("@MeasurePointName", measPointName), + new SqlParameter("@DimensionName", dimensionName), + }; + dt = SQLHelper.ExecuteQuery(strCheckSql, checkParas, CommandType.Text); + if (dt.Rows.Count > 0) + { + string id = dt.Rows[0]["Id"].ToString(); + string strSql = "update TTolerance set TolLower=@TolLower,TolUpper=@TolUpper,Remark=@Remark where Id=" + id; + SqlParameter[] paras = new SqlParameter[] + { + new SqlParameter("@TolLower", tolLower), + new SqlParameter("@TolUpper", tolUpper), + new SqlParameter("@Remark", remark ?? ""), + }; + return SQLHelper.ExecuteNonQuery(strSql, paras, CommandType.Text); + } + else + { + TToleranceModel ttm = new TToleranceModel + { + CarType = carType, + MeasurePointName = measPointName, + DimensionName = dimensionName, + TolLower = tolLower, + TolUpper = tolUpper, + Remark = remark ?? "", + CreateTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"), + }; + return InsertTTolerance(ttm); + } + } + public int InsertTTolerance(TToleranceModel ttm) { string strSql = "insert into TTolerance (CarType,MeasurePointName,DimensionName,TolLower,TolUpper,CreateTime,Remark) values " + diff --git a/DAL/bin/Debug/DAL.dll b/DAL/bin/Debug/DAL.dll index 975925c..56794e6 100644 Binary files a/DAL/bin/Debug/DAL.dll and b/DAL/bin/Debug/DAL.dll differ diff --git a/DAL/bin/Debug/DAL.pdb b/DAL/bin/Debug/DAL.pdb index c432e56..971dacf 100644 Binary files a/DAL/bin/Debug/DAL.pdb and b/DAL/bin/Debug/DAL.pdb differ