提交 dfbf973d authored 作者: yangbinjay's avatar yangbinjay

热板

上级 076b7d16
...@@ -64,6 +64,7 @@ ...@@ -64,6 +64,7 @@
<Compile Include="Dev_Thorou.cs" /> <Compile Include="Dev_Thorou.cs" />
<Compile Include="Dev_ThorouVgs.cs" /> <Compile Include="Dev_ThorouVgs.cs" />
<Compile Include="Dev_Type.cs" /> <Compile Include="Dev_Type.cs" />
<Compile Include="HeatBoard.cs" />
<Compile Include="HtrbStation.cs" /> <Compile Include="HtrbStation.cs" />
<Compile Include="InterResult.cs" /> <Compile Include="InterResult.cs" />
<Compile Include="Light_Control.cs" /> <Compile Include="Light_Control.cs" />
......
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GKHTRBC16P.Model
{
public class HeatBoard
{
public int Id { get; set; }
public string Td { get; set; }
public int Station { get; set; }
public decimal HeatingplateTemp { get; set; }
public decimal DeviceTemp { get; set; }
public decimal SettingTemp { get; set; }
public decimal PatternReadingTemp { get; set; }
public decimal SetTempValue { get; set; }
//public int Platform { get; set; }
//public int HeatDiss { get; set; }
}
}
d69445c4b8a573fb6ac3607dea237051a000efe6905a987a4e5a42a1cb194762 671740a3ce1dc61a3469dbf8b33f7f0a7c1e6dfa4059ba4c2827e11982f51c08
using GKHTRBC16P.Toolbox;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace GKHTRBC16P.Protocol.Boven
{
public class HotPlatSun
{
private static readonly HotPlatSun instance = new HotPlatSun();
private readonly int MaxWatingTime = 300;
private HotPlatSun() { }
public static HotPlatSun Instance
{
get
{
return instance;
}
}
public ushort ReadOven(Form from, int Com, int addr)
{
ushort result = 1;
ushort cnum = 3;
while (result > 0 && cnum > 0)
{
result = FboarddataTestxwe(from, Com, addr);
if (result == 0)
{
return result;
}
cnum--;
}
return result;
}
public ushort FboarddataTestxwe(Form from, int Com, int Adr1)
{
try
{
Monitor.Enter(SerialCom.ComWriteLock3[Com]);
SerialCom.OpenSerial_HighTem1_Parm(Com, 115200, "无", 8, "1");
byte[] num = new byte[65];
byte[] senchr = new byte[512];
num[1] = (byte)0x14;
num[2] = (byte)ConvertDataOpear.HexToInt(Adr1.ToString("x2"));
num[3] = (byte)0x00;
num[4] = (byte)0x91;
num[5] = (byte)0x00;
num[6] = (byte)0x00;
num[7] = (byte)0x00;
num[8] = (byte)0x2A;
num[9] = (byte)0x15;
byte calcrc = ConvertDataOpear.CalculateXOR8(num, 1, 7);
num[8] = (byte)calcrc;
uPublic.WriteOLog("-->" + ConvertDataOpear.GetBytesString(num, 1, 9, " "));
SerialCom.SerialPort_HighTem1[Com].Write(num, 1, 9);
DateTime dt = DateTime.Now;
while (SerialCom.SerialPort_HighTem1[Com].BytesToRead < 100)
{
Thread.Sleep(10);
if (DateTime.Now.Subtract(dt).TotalMilliseconds > MaxWatingTime) //如果2秒后仍然无数据返回,则视为超时
{
uPublic.WriteOLog("设备未响应" + SerialCom.SerialPort_HighTem1[Com].PortName);
SerialCom.OpenSerial_HighTem1_Close(Com, false);//关闭
return 4;
}
}
senchr = new byte[100];
SerialCom.SerialPort_HighTem1[Com].Read(senchr, 0, 100);
uPublic.WriteOLog("<--" + ConvertDataOpear.GetBytesString(senchr, 0, senchr.Length - 1, " "));
if (senchr[0] != 204 || senchr[1] != Adr1 || senchr[98] != 221)
{
LogisTrac.WriteLog(from.GetType(), "接收数据异常" + SerialCom.SerialPort_Drive[Com].PortName);
//SerialCom.OpenSerial_Drive_Close(Com, false);//关闭
return 2;
}
int tm = 3;
for (int t = 0; t < 7; t++)
{
string temp = senchr[tm].ToString() + senchr[tm +1].ToString();
int tem = Convert.ToInt32(temp);
CalculationAo.OvenRead[t] = (double)tem / 100;
tm = tm + 2;
}
CalculationAo.ComtData[Adr1] = senchr.Select(x => (int)x).ToArray();
SerialCom.OpenSerial_HighTem1_Close(Com, true);//关闭
return 0;
}
catch (Exception ex)
{
SerialCom.OpenSerial_HighTem1_Close(Com, false);//关闭
//from.ShowErrorTip(ex.Message);
uPublic.WriteOLog(ex.StackTrace);
return 1;
}
finally
{
Monitor.Exit(SerialCom.ComWriteLock3[Com]);
}
}
}
}
...@@ -56,6 +56,7 @@ ...@@ -56,6 +56,7 @@
<Compile Include="Boven\Ewgzks.cs" /> <Compile Include="Boven\Ewgzks.cs" />
<Compile Include="Boven\Gws.cs" /> <Compile Include="Boven\Gws.cs" />
<Compile Include="Boven\Hirayama.cs" /> <Compile Include="Boven\Hirayama.cs" />
<Compile Include="Boven\HotPlatSun.cs" />
<Compile Include="Driboard\BoardHtolmod.cs" /> <Compile Include="Driboard\BoardHtolmod.cs" />
<Compile Include="Driboard\HighVol.cs" /> <Compile Include="Driboard\HighVol.cs" />
<Compile Include="Driboard\Htgb.cs" /> <Compile Include="Driboard\Htgb.cs" />
......
f5651d80a149cb43c5f5969c7d3457d028f3cec465e26b4fbe16d068f992e0c7 4a8b0b5519924bd1cfa76ebb0837c2d307ed526aad32cef8680bd1f9e2e78707
...@@ -25,13 +25,12 @@ namespace GKHTRBC16P.Toolbox ...@@ -25,13 +25,12 @@ namespace GKHTRBC16P.Toolbox
/// </summary> /// </summary>
public static double[,] HTRBPWR = new double[36, 15]; public static double[,] HTRBPWR = new double[36, 15];
public static int[] ComRxdData = new int[256]; public static int[] ComRxdData = new int[256];
public static int[] ComRxdDataA = new int[511];
public static double LYPowerResult { get; set; } =0; public static double LYPowerResult { get; set; } =0;
public static double[] TemData = new double[21]; public static double[] TemData = new double[33];
/// 检测电源电压及电流 /// 检测电源电压及电流
public static double[] PowerVol = new double[32]; public static double[] PowerVol = new double[32];
/// 0:温度 1:设定值;2:温度上限;3:温度下限 /// 0:温度 1:设定值;2:温度上限;3:温度下限
public static double[] OvenRead = new double[4]; public static double[] OvenRead = new double[8];
/// 0:温度 1:设定值;2:温度上限;3:温度下限 /// 0:温度 1:设定值;2:温度上限;3:温度下限
public static double[] HumiRead = new double[4]; public static double[] HumiRead = new double[4];
/// 器件的其它参数,分别是[试验类型-0、老化时间-1、器件IR超限工位数-2、老化板识别码-3、器件Tj超限工位数-4、工位检测循环模式(标记位,起始位,终止位)-5、Tj检测间隔时间-6、NC、输出电流容限-8、温度检测开关-9、采样间隔时长-10、试验时长-11、运行状态-12(0:停止运行;11:正在运行;01:暂停运行;10;继续运行)] /// 器件的其它参数,分别是[试验类型-0、老化时间-1、器件IR超限工位数-2、老化板识别码-3、器件Tj超限工位数-4、工位检测循环模式(标记位,起始位,终止位)-5、Tj检测间隔时间-6、NC、输出电流容限-8、温度检测开关-9、采样间隔时长-10、试验时长-11、运行状态-12(0:停止运行;11:正在运行;01:暂停运行;10;继续运行)]
...@@ -44,6 +43,7 @@ namespace GKHTRBC16P.Toolbox ...@@ -44,6 +43,7 @@ namespace GKHTRBC16P.Toolbox
public static double[,] PowerSetRead = new double[36, 10]; public static double[,] PowerSetRead = new double[36, 10];
public static Dictionary<int, int[]> BridageData = new Dictionary<int, int[]>(); public static Dictionary<int, int[]> BridageData = new Dictionary<int, int[]>();
public static Dictionary<int, int[]> ComdData = new Dictionary<int, int[]>(); public static Dictionary<int, int[]> ComdData = new Dictionary<int, int[]>();
public static Dictionary<int, int[]> ComtData = new Dictionary<int, int[]>();
public static Dictionary<int, int[]> VgsData = new Dictionary<int, int[]>(); public static Dictionary<int, int[]> VgsData = new Dictionary<int, int[]>();
public static Dictionary<int, Oven_Data> OvenList = new Dictionary<int, Oven_Data>(); public static Dictionary<int, Oven_Data> OvenList = new Dictionary<int, Oven_Data>();
public static Dictionary<int, Power_Data> PowerList = new Dictionary<int, Power_Data>(); public static Dictionary<int, Power_Data> PowerList = new Dictionary<int, Power_Data>();
......
...@@ -172,6 +172,15 @@ namespace GKHTRBC16P.Toolbox ...@@ -172,6 +172,15 @@ namespace GKHTRBC16P.Toolbox
//Res = CalCRC16 //Res = CalCRC16
return null; return null;
} }
public static byte CalculateXOR8(byte[] data,int start,int end)
{
byte xorResult = 0; // 初始化结果为0
for (int j = start; j <= end; j++)
{
xorResult ^= data[j]; // 对每个字节执行XOR操作
}
return xorResult; // 返回最终的XOR结果
}
//private ushort CalCRC16(byte[] AData, int AStart, int AEnd) //private ushort CalCRC16(byte[] AData, int AStart, int AEnd)
//{ //{
// var GENP = 0XA001; // var GENP = 0XA001;
......
...@@ -74,6 +74,7 @@ namespace GKHTRBC16P ...@@ -74,6 +74,7 @@ namespace GKHTRBC16P
this.Icon = new Icon(ImageProce.IcoApp); this.Icon = new Icon(ImageProce.IcoApp);
//ShowSuccessTip(ImageProce.IcoApp); //ShowSuccessTip(ImageProce.IcoApp);
CalculationAo.ComdData = new Dictionary<int, int[]>(); CalculationAo.ComdData = new Dictionary<int, int[]>();
CalculationAo.ComtData = new Dictionary<int, int[]>();
CalculationAo.OvenList = new Dictionary<int, Oven_Data>(); CalculationAo.OvenList = new Dictionary<int, Oven_Data>();
CalculationAo.PowerList = new Dictionary<int, Power_Data>(); CalculationAo.PowerList = new Dictionary<int, Power_Data>();
CalculationAo.Stage_Heats = new Dictionary<int,Stage_Heating>(); CalculationAo.Stage_Heats = new Dictionary<int,Stage_Heating>();
......
...@@ -263,6 +263,10 @@ namespace GKHTRBC16P ...@@ -263,6 +263,10 @@ namespace GKHTRBC16P
if (menuinfo != null) if (menuinfo != null)
{ {
string className = System.Reflection.Assembly.GetExecutingAssembly().GetName().Name + menuinfo.ClassObj; string className = System.Reflection.Assembly.GetExecutingAssembly().GetName().Name + menuinfo.ClassObj;
if (new int[] { 8 }.Contains(CalculationAo.ThisDevConfig.TestBoxId))
{
className = System.Reflection.Assembly.GetExecutingAssembly().GetName().Name + menuinfo.ClassObjTo;
}
System.Type t = System.Type.GetType(className); System.Type t = System.Type.GetType(className);
UIPage b1 = Activator.CreateInstance(t) as UIPage; UIPage b1 = Activator.CreateInstance(t) as UIPage;
AddPage(b1); AddPage(b1);
......
...@@ -136,6 +136,7 @@ namespace GKHTRBC16P.FunMov ...@@ -136,6 +136,7 @@ namespace GKHTRBC16P.FunMov
this.uiButton17 = new Sunny.UI.UIButton(); this.uiButton17 = new Sunny.UI.UIButton();
this.uiPanel2 = new Sunny.UI.UIPanel(); this.uiPanel2 = new Sunny.UI.UIPanel();
this.uiPanel4 = new Sunny.UI.UIPanel(); this.uiPanel4 = new Sunny.UI.UIPanel();
this.uiTextBox1 = new Sunny.UI.UITextBox();
this.uiLabel7 = new Sunny.UI.UILabel(); this.uiLabel7 = new Sunny.UI.UILabel();
this.Txt_VgsN = new Sunny.UI.UITextBox(); this.Txt_VgsN = new Sunny.UI.UITextBox();
this.uiLabel6 = new Sunny.UI.UILabel(); this.uiLabel6 = new Sunny.UI.UILabel();
...@@ -176,6 +177,8 @@ namespace GKHTRBC16P.FunMov ...@@ -176,6 +177,8 @@ namespace GKHTRBC16P.FunMov
this.dataGridViewTextBoxColumn18 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn18 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn19 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn19 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.wDataGridViewColumn_Progress1 = new GKHTRBC16P.Drowing.WDataGridViewColumn_Progress(); this.wDataGridViewColumn_Progress1 = new GKHTRBC16P.Drowing.WDataGridViewColumn_Progress();
this.uiTextBox2 = new Sunny.UI.UITextBox();
this.uiTextBox3 = new Sunny.UI.UITextBox();
((System.ComponentModel.ISupportInitialize)(this.uiSplitContainer1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.uiSplitContainer1)).BeginInit();
this.uiSplitContainer1.Panel1.SuspendLayout(); this.uiSplitContainer1.Panel1.SuspendLayout();
this.uiSplitContainer1.Panel2.SuspendLayout(); this.uiSplitContainer1.Panel2.SuspendLayout();
...@@ -213,8 +216,8 @@ namespace GKHTRBC16P.FunMov ...@@ -213,8 +216,8 @@ namespace GKHTRBC16P.FunMov
// //
this.uiSplitContainer1.Panel2.Controls.Add(this.uiTabControl1); this.uiSplitContainer1.Panel2.Controls.Add(this.uiTabControl1);
this.uiSplitContainer1.Panel2.Controls.Add(this.uiPanel2); this.uiSplitContainer1.Panel2.Controls.Add(this.uiPanel2);
this.uiSplitContainer1.Size = new System.Drawing.Size(1460, 885); this.uiSplitContainer1.Size = new System.Drawing.Size(1733, 885);
this.uiSplitContainer1.SplitterDistance = 610; this.uiSplitContainer1.SplitterDistance = 723;
this.uiSplitContainer1.SplitterWidth = 11; this.uiSplitContainer1.SplitterWidth = 11;
this.uiSplitContainer1.TabIndex = 0; this.uiSplitContainer1.TabIndex = 0;
this.uiSplitContainer1.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0); this.uiSplitContainer1.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
...@@ -227,7 +230,7 @@ namespace GKHTRBC16P.FunMov ...@@ -227,7 +230,7 @@ namespace GKHTRBC16P.FunMov
this.uiPanel1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.uiPanel1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.uiPanel1.MinimumSize = new System.Drawing.Size(1, 1); this.uiPanel1.MinimumSize = new System.Drawing.Size(1, 1);
this.uiPanel1.Name = "uiPanel1"; this.uiPanel1.Name = "uiPanel1";
this.uiPanel1.Size = new System.Drawing.Size(610, 30); this.uiPanel1.Size = new System.Drawing.Size(723, 30);
this.uiPanel1.TabIndex = 1; this.uiPanel1.TabIndex = 1;
this.uiPanel1.Text = null; this.uiPanel1.Text = null;
this.uiPanel1.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter; this.uiPanel1.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
...@@ -297,7 +300,7 @@ namespace GKHTRBC16P.FunMov ...@@ -297,7 +300,7 @@ namespace GKHTRBC16P.FunMov
this.uiDataGridView1.SelectedIndex = -1; this.uiDataGridView1.SelectedIndex = -1;
this.uiDataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; this.uiDataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.uiDataGridView1.ShowCellToolTips = false; this.uiDataGridView1.ShowCellToolTips = false;
this.uiDataGridView1.Size = new System.Drawing.Size(610, 564); this.uiDataGridView1.Size = new System.Drawing.Size(723, 564);
this.uiDataGridView1.Style = Sunny.UI.UIStyle.Custom; this.uiDataGridView1.Style = Sunny.UI.UIStyle.Custom;
this.uiDataGridView1.TabIndex = 0; this.uiDataGridView1.TabIndex = 0;
this.uiDataGridView1.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0); this.uiDataGridView1.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
...@@ -429,7 +432,7 @@ namespace GKHTRBC16P.FunMov ...@@ -429,7 +432,7 @@ namespace GKHTRBC16P.FunMov
this.uiTabControl1.Name = "uiTabControl1"; this.uiTabControl1.Name = "uiTabControl1";
this.uiTabControl1.RightToLeft = System.Windows.Forms.RightToLeft.No; this.uiTabControl1.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.uiTabControl1.SelectedIndex = 0; this.uiTabControl1.SelectedIndex = 0;
this.uiTabControl1.Size = new System.Drawing.Size(839, 798); this.uiTabControl1.Size = new System.Drawing.Size(999, 798);
this.uiTabControl1.SizeMode = System.Windows.Forms.TabSizeMode.Fixed; this.uiTabControl1.SizeMode = System.Windows.Forms.TabSizeMode.Fixed;
this.uiTabControl1.TabIndex = 1; this.uiTabControl1.TabIndex = 1;
this.uiTabControl1.TabSelectedHighColorSize = 0; this.uiTabControl1.TabSelectedHighColorSize = 0;
...@@ -442,7 +445,7 @@ namespace GKHTRBC16P.FunMov ...@@ -442,7 +445,7 @@ namespace GKHTRBC16P.FunMov
this.tabPage1.Controls.Add(this.uiDataGridView2); this.tabPage1.Controls.Add(this.uiDataGridView2);
this.tabPage1.Location = new System.Drawing.Point(0, 30); this.tabPage1.Location = new System.Drawing.Point(0, 30);
this.tabPage1.Name = "tabPage1"; this.tabPage1.Name = "tabPage1";
this.tabPage1.Size = new System.Drawing.Size(839, 768); this.tabPage1.Size = new System.Drawing.Size(999, 768);
this.tabPage1.TabIndex = 0; this.tabPage1.TabIndex = 0;
this.tabPage1.Text = "即时数据"; this.tabPage1.Text = "即时数据";
this.tabPage1.UseVisualStyleBackColor = true; this.tabPage1.UseVisualStyleBackColor = true;
...@@ -503,7 +506,7 @@ namespace GKHTRBC16P.FunMov ...@@ -503,7 +506,7 @@ namespace GKHTRBC16P.FunMov
this.uiDataGridView3.SelectedIndex = -1; this.uiDataGridView3.SelectedIndex = -1;
this.uiDataGridView3.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect; this.uiDataGridView3.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
this.uiDataGridView3.ShowCellToolTips = false; this.uiDataGridView3.ShowCellToolTips = false;
this.uiDataGridView3.Size = new System.Drawing.Size(839, 768); this.uiDataGridView3.Size = new System.Drawing.Size(999, 768);
this.uiDataGridView3.StripeOddColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255))))); this.uiDataGridView3.StripeOddColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255)))));
this.uiDataGridView3.Style = Sunny.UI.UIStyle.Custom; this.uiDataGridView3.Style = Sunny.UI.UIStyle.Custom;
this.uiDataGridView3.TabIndex = 1; this.uiDataGridView3.TabIndex = 1;
...@@ -636,7 +639,7 @@ namespace GKHTRBC16P.FunMov ...@@ -636,7 +639,7 @@ namespace GKHTRBC16P.FunMov
this.uiDataGridView2.SelectedIndex = -1; this.uiDataGridView2.SelectedIndex = -1;
this.uiDataGridView2.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect; this.uiDataGridView2.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
this.uiDataGridView2.ShowCellToolTips = false; this.uiDataGridView2.ShowCellToolTips = false;
this.uiDataGridView2.Size = new System.Drawing.Size(839, 768); this.uiDataGridView2.Size = new System.Drawing.Size(999, 768);
this.uiDataGridView2.StripeOddColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255))))); this.uiDataGridView2.StripeOddColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255)))));
this.uiDataGridView2.Style = Sunny.UI.UIStyle.Custom; this.uiDataGridView2.Style = Sunny.UI.UIStyle.Custom;
this.uiDataGridView2.TabIndex = 0; this.uiDataGridView2.TabIndex = 0;
...@@ -1012,9 +1015,9 @@ namespace GKHTRBC16P.FunMov ...@@ -1012,9 +1015,9 @@ namespace GKHTRBC16P.FunMov
this.tabPage2.CausesValidation = false; this.tabPage2.CausesValidation = false;
this.tabPage2.Controls.Add(this.plotView1); this.tabPage2.Controls.Add(this.plotView1);
this.tabPage2.Controls.Add(this.uiPanel5); this.tabPage2.Controls.Add(this.uiPanel5);
this.tabPage2.Location = new System.Drawing.Point(0, 30); this.tabPage2.Location = new System.Drawing.Point(0, 40);
this.tabPage2.Name = "tabPage2"; this.tabPage2.Name = "tabPage2";
this.tabPage2.Size = new System.Drawing.Size(839, 768); this.tabPage2.Size = new System.Drawing.Size(200, 60);
this.tabPage2.TabIndex = 1; this.tabPage2.TabIndex = 1;
this.tabPage2.Text = "历史曲线"; this.tabPage2.Text = "历史曲线";
this.tabPage2.UseVisualStyleBackColor = true; this.tabPage2.UseVisualStyleBackColor = true;
...@@ -1025,7 +1028,7 @@ namespace GKHTRBC16P.FunMov ...@@ -1025,7 +1028,7 @@ namespace GKHTRBC16P.FunMov
this.plotView1.Location = new System.Drawing.Point(0, 41); this.plotView1.Location = new System.Drawing.Point(0, 41);
this.plotView1.Name = "plotView1"; this.plotView1.Name = "plotView1";
this.plotView1.PanCursor = System.Windows.Forms.Cursors.Hand; this.plotView1.PanCursor = System.Windows.Forms.Cursors.Hand;
this.plotView1.Size = new System.Drawing.Size(839, 727); this.plotView1.Size = new System.Drawing.Size(200, 19);
this.plotView1.TabIndex = 1; this.plotView1.TabIndex = 1;
this.plotView1.Text = "plotView1"; this.plotView1.Text = "plotView1";
this.plotView1.ZoomHorizontalCursor = System.Windows.Forms.Cursors.SizeWE; this.plotView1.ZoomHorizontalCursor = System.Windows.Forms.Cursors.SizeWE;
...@@ -1047,7 +1050,7 @@ namespace GKHTRBC16P.FunMov ...@@ -1047,7 +1050,7 @@ namespace GKHTRBC16P.FunMov
this.uiPanel5.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.uiPanel5.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.uiPanel5.MinimumSize = new System.Drawing.Size(1, 1); this.uiPanel5.MinimumSize = new System.Drawing.Size(1, 1);
this.uiPanel5.Name = "uiPanel5"; this.uiPanel5.Name = "uiPanel5";
this.uiPanel5.Size = new System.Drawing.Size(839, 41); this.uiPanel5.Size = new System.Drawing.Size(200, 41);
this.uiPanel5.TabIndex = 0; this.uiPanel5.TabIndex = 0;
this.uiPanel5.Text = null; this.uiPanel5.Text = null;
this.uiPanel5.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter; this.uiPanel5.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
...@@ -1167,7 +1170,7 @@ namespace GKHTRBC16P.FunMov ...@@ -1167,7 +1170,7 @@ namespace GKHTRBC16P.FunMov
this.uiPanel2.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.uiPanel2.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.uiPanel2.MinimumSize = new System.Drawing.Size(1, 1); this.uiPanel2.MinimumSize = new System.Drawing.Size(1, 1);
this.uiPanel2.Name = "uiPanel2"; this.uiPanel2.Name = "uiPanel2";
this.uiPanel2.Size = new System.Drawing.Size(839, 87); this.uiPanel2.Size = new System.Drawing.Size(999, 87);
this.uiPanel2.TabIndex = 0; this.uiPanel2.TabIndex = 0;
this.uiPanel2.Text = null; this.uiPanel2.Text = null;
this.uiPanel2.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft; this.uiPanel2.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
...@@ -1175,6 +1178,9 @@ namespace GKHTRBC16P.FunMov ...@@ -1175,6 +1178,9 @@ namespace GKHTRBC16P.FunMov
// //
// uiPanel4 // uiPanel4
// //
this.uiPanel4.Controls.Add(this.uiTextBox3);
this.uiPanel4.Controls.Add(this.uiTextBox2);
this.uiPanel4.Controls.Add(this.uiTextBox1);
this.uiPanel4.Controls.Add(this.uiLabel7); this.uiPanel4.Controls.Add(this.uiLabel7);
this.uiPanel4.Controls.Add(this.Txt_VgsN); this.uiPanel4.Controls.Add(this.Txt_VgsN);
this.uiPanel4.Controls.Add(this.uiLabel6); this.uiPanel4.Controls.Add(this.uiLabel6);
...@@ -1192,12 +1198,28 @@ namespace GKHTRBC16P.FunMov ...@@ -1192,12 +1198,28 @@ namespace GKHTRBC16P.FunMov
this.uiPanel4.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.uiPanel4.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.uiPanel4.MinimumSize = new System.Drawing.Size(1, 1); this.uiPanel4.MinimumSize = new System.Drawing.Size(1, 1);
this.uiPanel4.Name = "uiPanel4"; this.uiPanel4.Name = "uiPanel4";
this.uiPanel4.Size = new System.Drawing.Size(436, 79); this.uiPanel4.Size = new System.Drawing.Size(777, 79);
this.uiPanel4.TabIndex = 3; this.uiPanel4.TabIndex = 3;
this.uiPanel4.Text = null; this.uiPanel4.Text = null;
this.uiPanel4.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter; this.uiPanel4.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
this.uiPanel4.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0); this.uiPanel4.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
// //
// uiTextBox1
//
this.uiTextBox1.Cursor = System.Windows.Forms.Cursors.IBeam;
this.uiTextBox1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.uiTextBox1.Location = new System.Drawing.Point(462, 45);
this.uiTextBox1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.uiTextBox1.MinimumSize = new System.Drawing.Size(1, 16);
this.uiTextBox1.Name = "uiTextBox1";
this.uiTextBox1.ReadOnly = true;
this.uiTextBox1.ShowText = false;
this.uiTextBox1.Size = new System.Drawing.Size(69, 29);
this.uiTextBox1.TabIndex = 14;
this.uiTextBox1.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
this.uiTextBox1.Watermark = "";
this.uiTextBox1.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
//
// uiLabel7 // uiLabel7
// //
this.uiLabel7.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.uiLabel7.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
...@@ -1219,7 +1241,7 @@ namespace GKHTRBC16P.FunMov ...@@ -1219,7 +1241,7 @@ namespace GKHTRBC16P.FunMov
this.Txt_VgsN.Name = "Txt_VgsN"; this.Txt_VgsN.Name = "Txt_VgsN";
this.Txt_VgsN.ReadOnly = true; this.Txt_VgsN.ReadOnly = true;
this.Txt_VgsN.ShowText = false; this.Txt_VgsN.ShowText = false;
this.Txt_VgsN.Size = new System.Drawing.Size(67, 29); this.Txt_VgsN.Size = new System.Drawing.Size(66, 29);
this.Txt_VgsN.TabIndex = 12; this.Txt_VgsN.TabIndex = 12;
this.Txt_VgsN.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft; this.Txt_VgsN.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
this.Txt_VgsN.Watermark = ""; this.Txt_VgsN.Watermark = "";
...@@ -1646,11 +1668,43 @@ namespace GKHTRBC16P.FunMov ...@@ -1646,11 +1668,43 @@ namespace GKHTRBC16P.FunMov
this.wDataGridViewColumn_Progress1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; this.wDataGridViewColumn_Progress1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
this.wDataGridViewColumn_Progress1.Width = 125; this.wDataGridViewColumn_Progress1.Width = 125;
// //
// uiTextBox2
//
this.uiTextBox2.Cursor = System.Windows.Forms.Cursors.IBeam;
this.uiTextBox2.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.uiTextBox2.Location = new System.Drawing.Point(558, 45);
this.uiTextBox2.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.uiTextBox2.MinimumSize = new System.Drawing.Size(1, 16);
this.uiTextBox2.Name = "uiTextBox2";
this.uiTextBox2.ReadOnly = true;
this.uiTextBox2.ShowText = false;
this.uiTextBox2.Size = new System.Drawing.Size(69, 29);
this.uiTextBox2.TabIndex = 15;
this.uiTextBox2.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
this.uiTextBox2.Watermark = "";
this.uiTextBox2.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
//
// uiTextBox3
//
this.uiTextBox3.Cursor = System.Windows.Forms.Cursors.IBeam;
this.uiTextBox3.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.uiTextBox3.Location = new System.Drawing.Point(657, 45);
this.uiTextBox3.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.uiTextBox3.MinimumSize = new System.Drawing.Size(1, 16);
this.uiTextBox3.Name = "uiTextBox3";
this.uiTextBox3.ReadOnly = true;
this.uiTextBox3.ShowText = false;
this.uiTextBox3.Size = new System.Drawing.Size(69, 29);
this.uiTextBox3.TabIndex = 15;
this.uiTextBox3.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
this.uiTextBox3.Watermark = "";
this.uiTextBox3.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
//
// Home_Status // Home_Status
// //
this.AllowShowTitle = true; this.AllowShowTitle = true;
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.ClientSize = new System.Drawing.Size(1460, 920); this.ClientSize = new System.Drawing.Size(1733, 920);
this.Controls.Add(this.uiSplitContainer1); this.Controls.Add(this.uiSplitContainer1);
this.Name = "Home_Status"; this.Name = "Home_Status";
this.Padding = new System.Windows.Forms.Padding(0, 35, 0, 0); this.Padding = new System.Windows.Forms.Padding(0, 35, 0, 0);
...@@ -1784,5 +1838,8 @@ namespace GKHTRBC16P.FunMov ...@@ -1784,5 +1838,8 @@ namespace GKHTRBC16P.FunMov
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn31; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn31;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn32; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn32;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn33; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn33;
public Sunny.UI.UITextBox uiTextBox1;
public Sunny.UI.UITextBox uiTextBox3;
public Sunny.UI.UITextBox uiTextBox2;
} }
} }
\ No newline at end of file
...@@ -313,6 +313,12 @@ namespace GKHTRBC16P.FunMov ...@@ -313,6 +313,12 @@ namespace GKHTRBC16P.FunMov
int full = element1.Full; int full = element1.Full;
int pointx = element1.Pointx, pointy = element1.Pointy, ii = 1; int pointx = element1.Pointx, pointy = element1.Pointy, ii = 1;
uiPanel4.Width = uiSplitContainer1.Width - Convert.ToInt16(CalculationAo.ThisDevConfig.FWidth * 0.48);
//if (element1.rightUpperwidth != 0)
//{
// uiPanel2.Size = new System.Drawing.Size(element1.rightUpperwidth, element1.rightUpperheight);
// uiTabControl1.Size = new System.Drawing.Size(element1.rightBelowwidth, element1.rightBelowheight);
//}
for (int i = 1; i <= CalculationAo.ThisDevConfig.ComPowerNum; i++) for (int i = 1; i <= CalculationAo.ThisDevConfig.ComPowerNum; i++)
{ {
if (!CalculationAo.PowerTime.ContainsKey(i)) if (!CalculationAo.PowerTime.ContainsKey(i))
...@@ -464,7 +470,12 @@ namespace GKHTRBC16P.FunMov ...@@ -464,7 +470,12 @@ namespace GKHTRBC16P.FunMov
uiDataGridView4.Columns[j + 1].CellTemplate.Style.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold); uiDataGridView4.Columns[j + 1].CellTemplate.Style.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold);
j++; j++;
} }
if (CalculationAo.ThisDevConfig.TestBoxId == 8)
HeadShowPlant();
else if (!CalculationAo.ThorouVgs.ContainsKey(board))
HeadShowLocal(); HeadShowLocal();
else
HeadShowLocalVg();
uiDataGridView2.RowTemplate.Height = element1.uiDataGridView2Height; uiDataGridView2.RowTemplate.Height = element1.uiDataGridView2Height;
uiDataGridView2.DataSource = dev_Device_Grids; uiDataGridView2.DataSource = dev_Device_Grids;
uiDataGridView2.AllowUserToResizeColumns = false; uiDataGridView2.AllowUserToResizeColumns = false;
...@@ -497,7 +508,9 @@ namespace GKHTRBC16P.FunMov ...@@ -497,7 +508,9 @@ namespace GKHTRBC16P.FunMov
uiDataGridView5.Visible = true; uiDataGridView5.Visible = true;
EdZFConfig.Visible = true; EdZFConfig.Visible = true;
Txt_direction.Visible = true; Txt_direction.Visible = true;
if (!CalculationAo.ThorouVgs.ContainsKey(board)) if (CalculationAo.ThisDevConfig.TestBoxId == 8)
HeadShowPlant();
else if (!CalculationAo.ThorouVgs.ContainsKey(board))
HeadShowLocal(); HeadShowLocal();
else else
HeadShowLocalVg(); HeadShowLocalVg();
...@@ -565,6 +578,54 @@ namespace GKHTRBC16P.FunMov ...@@ -565,6 +578,54 @@ namespace GKHTRBC16P.FunMov
} }
} }
private void HeadShowPlant()
{
uiLabel6.Visible = true;
uiLabel7.Visible = true;
Txt_VgsP.Visible = true;
Txt_VgsN.Visible = true;
uiPanel3.Location = new Point(1, 4);
uiPanel3.Size = new Size(150, 79);
Lastatus.Size = new Size(47, 23);
Lastatus.Location = new Point(98, 10);
LBBoard.Size = new Size(58, 23);
LBBoard.Location = new Point(42, 11);
LBRecCount.Size = new Size(68, 23);
LBRecCount.Location = new Point(80, 50);
uiLabel1.Size = new Size(76, 23);
//uiPanel4.Location = new Point(152, 4);
//uiPanel4.Size = new Size(360, 79);
uiLabel4.Size = new Size(72, 23);
uiLabel4.Location = new Point(1, 8);
uiLabel3.Size = new Size(72, 23);
uiLabel3.Location = new Point(1, 47);
Txt_direction.Size = new Size(64, 23);
Txt_direction.Location = new Point(134, 8);
uiLabel5.Size = new Size(98, 23);
uiLabel5.Location = new Point(140, 47);
EB_INVol.Size = new Size(67, 29);
EB_INVol.Location = new Point(66, 5);
EB_Chamber.Size = new Size(67, 29);
EB_Chamber.Location = new Point(66, 44);
EdZFConfig.Size = new Size(60, 29);
EdZFConfig.Location = new Point(198, 5);
EB_ChamberB.Size = new Size(60, 29);
EB_ChamberB.Location = new Point(198, 44);
uiLabel6.Size = new Size(50, 20);
uiLabel7.Size = new Size(50, 20);
uiLabel6.Location = new Point(258, 8);
uiLabel7.Location = new Point(258, 47);
Txt_VgsP.Size = new Size(50, 29);
Txt_VgsN.Size = new Size(50, 29);
Txt_VgsP.Location = new Point(308, 5);
Txt_VgsN.Location = new Point(308, 44);
uiLabel3.Text = "Temp1";
uiLabel5.Text = "Temp2";
}
private void HeadShowLocal() private void HeadShowLocal()
{ {
uiLabel6.Visible = false; uiLabel6.Visible = false;
...@@ -582,8 +643,8 @@ namespace GKHTRBC16P.FunMov ...@@ -582,8 +643,8 @@ namespace GKHTRBC16P.FunMov
LBRecCount.Location = new Point(115, 50); LBRecCount.Location = new Point(115, 50);
uiLabel1.Size = new Size(112, 23); uiLabel1.Size = new Size(112, 23);
uiPanel4.Location = new Point(205, 4); //uiPanel4.Location = new Point(205, 4);
uiPanel4.Size = new Size(311,79); //uiPanel4.Size = new Size(311,79);
uiLabel4.Size = new Size(74, 23); uiLabel4.Size = new Size(74, 23);
uiLabel4.Location = new Point(1, 8); uiLabel4.Location = new Point(1, 8);
uiLabel3.Size = new Size(74, 23); uiLabel3.Size = new Size(74, 23);
......
...@@ -421,6 +421,12 @@ ...@@ -421,6 +421,12 @@
<Compile Include="ToolLibrary\AlarmProcess.Designer.cs"> <Compile Include="ToolLibrary\AlarmProcess.Designer.cs">
<DependentUpon>AlarmProcess.cs</DependentUpon> <DependentUpon>AlarmProcess.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="ToolLibrary\AutoHeatBoard.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="ToolLibrary\AutoHeatBoard.Designer.cs">
<DependentUpon>AutoHeatBoard.cs</DependentUpon>
</Compile>
<Compile Include="ToolLibrary\AutoTemper.cs"> <Compile Include="ToolLibrary\AutoTemper.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
...@@ -649,6 +655,9 @@ ...@@ -649,6 +655,9 @@
<EmbeddedResource Include="ToolLibrary\AlarmProcess.resx"> <EmbeddedResource Include="ToolLibrary\AlarmProcess.resx">
<DependentUpon>AlarmProcess.cs</DependentUpon> <DependentUpon>AlarmProcess.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="ToolLibrary\AutoHeatBoard.resx">
<DependentUpon>AutoHeatBoard.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="ToolLibrary\AutoTemper.resx"> <EmbeddedResource Include="ToolLibrary\AutoTemper.resx">
<DependentUpon>AutoTemper.cs</DependentUpon> <DependentUpon>AutoTemper.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
......
...@@ -35,14 +35,15 @@ ...@@ -35,14 +35,15 @@
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Frm_Correspondence)); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Frm_Correspondence));
this.uiDataGridView1 = new Sunny.UI.UIDataGridView(); this.uiDataGridView1 = new Sunny.UI.UIDataGridView();
this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column3 = new System.Windows.Forms.DataGridViewComboBoxColumn();
this.uiSymbolButton1 = new Sunny.UI.UISymbolButton(); this.uiSymbolButton1 = new Sunny.UI.UISymbolButton();
this.uiSymbolButton2 = new Sunny.UI.UISymbolButton(); this.uiSymbolButton2 = new Sunny.UI.UISymbolButton();
this.uiLabel1 = new Sunny.UI.UILabel(); this.uiLabel1 = new Sunny.UI.UILabel();
this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
((System.ComponentModel.ISupportInitialize)(this.uiDataGridView1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.uiDataGridView1)).BeginInit();
this.SuspendLayout(); this.SuspendLayout();
// //
...@@ -98,33 +99,11 @@ ...@@ -98,33 +99,11 @@
this.uiDataGridView1.RowTemplate.Height = 23; this.uiDataGridView1.RowTemplate.Height = 23;
this.uiDataGridView1.ScrollBarRectColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); this.uiDataGridView1.ScrollBarRectColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
this.uiDataGridView1.SelectedIndex = -1; this.uiDataGridView1.SelectedIndex = -1;
this.uiDataGridView1.Size = new System.Drawing.Size(391, 404); this.uiDataGridView1.Size = new System.Drawing.Size(437, 404);
this.uiDataGridView1.TabIndex = 0; this.uiDataGridView1.TabIndex = 0;
this.uiDataGridView1.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0); this.uiDataGridView1.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
this.uiDataGridView1.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.uiDataGridView1_DataError); this.uiDataGridView1.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.uiDataGridView1_DataError);
// //
// Column1
//
this.Column1.DataPropertyName = "PassagewayId";
this.Column1.HeaderText = "通道";
this.Column1.Name = "Column1";
//
// Column2
//
this.Column2.DataPropertyName = "PowerId";
this.Column2.HeaderText = "电源";
this.Column2.Name = "Column2";
this.Column2.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.Column2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.Column2.Width = 150;
//
// Column3
//
this.Column3.DataPropertyName = "OvenId";
this.Column3.HeaderText = "烘箱";
this.Column3.Name = "Column3";
this.Column3.Width = 130;
//
// uiSymbolButton1 // uiSymbolButton1
// //
this.uiSymbolButton1.Cursor = System.Windows.Forms.Cursors.Hand; this.uiSymbolButton1.Cursor = System.Windows.Forms.Cursors.Hand;
...@@ -181,10 +160,43 @@ ...@@ -181,10 +160,43 @@
this.dataGridViewTextBoxColumn2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; this.dataGridViewTextBoxColumn2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.dataGridViewTextBoxColumn2.Width = 130; this.dataGridViewTextBoxColumn2.Width = 130;
// //
// dataGridViewTextBoxColumn3
//
this.dataGridViewTextBoxColumn3.DataPropertyName = "OvenId";
this.dataGridViewTextBoxColumn3.HeaderText = "烘箱";
this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
this.dataGridViewTextBoxColumn3.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridViewTextBoxColumn3.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.dataGridViewTextBoxColumn3.Width = 130;
//
// Column1
//
this.Column1.DataPropertyName = "PassagewayId";
this.Column1.HeaderText = "通道";
this.Column1.Name = "Column1";
//
// Column2
//
this.Column2.DataPropertyName = "PowerId";
this.Column2.HeaderText = "电源";
this.Column2.Name = "Column2";
this.Column2.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.Column2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.Column2.Width = 120;
//
// Column3
//
this.Column3.DataPropertyName = "OvenId";
this.Column3.HeaderText = "烘箱";
this.Column3.Name = "Column3";
this.Column3.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.Column3.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.Column3.Width = 200;
//
// Frm_Correspondence // Frm_Correspondence
// //
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.ClientSize = new System.Drawing.Size(391, 524); this.ClientSize = new System.Drawing.Size(437, 524);
this.Controls.Add(this.uiLabel1); this.Controls.Add(this.uiLabel1);
this.Controls.Add(this.uiDataGridView1); this.Controls.Add(this.uiDataGridView1);
this.Controls.Add(this.uiSymbolButton2); this.Controls.Add(this.uiSymbolButton2);
...@@ -209,9 +221,10 @@ ...@@ -209,9 +221,10 @@
private Sunny.UI.UISymbolButton uiSymbolButton2; private Sunny.UI.UISymbolButton uiSymbolButton2;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1;
private Sunny.UI.UILabel uiLabel1; private Sunny.UI.UILabel uiLabel1;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2;
private System.Windows.Forms.DataGridViewTextBoxColumn Column1; private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
private System.Windows.Forms.DataGridViewTextBoxColumn Column2; private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
private System.Windows.Forms.DataGridViewComboBoxColumn Column3; private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3;
} }
} }
\ No newline at end of file
...@@ -54,14 +54,14 @@ namespace GKHTRBC16P.Jurisdiction ...@@ -54,14 +54,14 @@ namespace GKHTRBC16P.Jurisdiction
//DataGridViewComboBoxColumn column1 = uiDataGridView1.Columns[1] as DataGridViewComboBoxColumn; //DataGridViewComboBoxColumn column1 = uiDataGridView1.Columns[1] as DataGridViewComboBoxColumn;
//column1.DataPropertyName = "PowerId";//对应数据源的字段 //column1.DataPropertyName = "PowerId";//对应数据源的字段
//column1.DataSource = _Boboxes1; ; //column1.DataSource = _Boboxes1; ;
List<string> _Boboxes2 = new List<string>(); //List<string> _Boboxes2 = new List<string>();
for (int i = 1; i <= CalculationAo.ThisDevConfig.BoxNum; i++) //for (int i = 1; i <= CalculationAo.ThisDevConfig.BoxNum; i++)
{ //{
_Boboxes2.Add(i.ToString() + "#"); // _Boboxes2.Add(i.ToString() + "#");
} //}
DataGridViewComboBoxColumn column2 = uiDataGridView1.Columns[2] as DataGridViewComboBoxColumn; //DataGridViewComboBoxColumn column2 = uiDataGridView1.Columns[2] as DataGridViewComboBoxColumn;
column2.DataPropertyName = "OvenId";//对应数据源的字段 //column2.DataPropertyName = "OvenId";//对应数据源的字段
column2.DataSource = _Boboxes2; //column2.DataSource = _Boboxes2;
correspondenceList = correspondenceBll.GetList(); correspondenceList = correspondenceBll.GetList();
...@@ -75,6 +75,36 @@ namespace GKHTRBC16P.Jurisdiction ...@@ -75,6 +75,36 @@ namespace GKHTRBC16P.Jurisdiction
int pwt = CalculationAo.ThisDevConfig.Passageway / CalculationAo.ThisDevConfig.ComPowerNum; int pwt = CalculationAo.ThisDevConfig.Passageway / CalculationAo.ThisDevConfig.ComPowerNum;
int ovt = CalculationAo.ThisDevConfig.Passageway / CalculationAo.ThisDevConfig.BoxNum; int ovt = CalculationAo.ThisDevConfig.Passageway / CalculationAo.ThisDevConfig.BoxNum;
int potop = 1; int potow = 1; int potop = 1; int potow = 1;
if (new int[] { 8 }.Contains(CalculationAo.ThisDevConfig.TestBoxId))
{
ovt = CalculationAo.ThisDevConfig.BoxNum / CalculationAo.ThisDevConfig.Passageway;
for (int j = 1; j <= CalculationAo.ThisDevConfig.Passageway; j++)
{
Dev_Correspondence dev_Correspondence = new Dev_Correspondence();
dev_Correspondence.PassagewayId = j;
if (closees)
{
dev_Correspondence.PowerId = "PS" + pw;
string ovts = "";
for (int oj = 0; oj < ovt; oj++)
{
ovts = ovts + potow + "#" + ",";
potow++;
}
ovts = ovts.Substring(0, ovts.Length - 1);
dev_Correspondence.OvenId = ovts;
}
correspondenceList.Add(dev_Correspondence);
if (potop >= pwt)
{
pw++;
potop = 0;
}
potop++;
}
}
else
{
for (int j = 1; j <= CalculationAo.ThisDevConfig.Passageway; j++) for (int j = 1; j <= CalculationAo.ThisDevConfig.Passageway; j++)
{ {
Dev_Correspondence dev_Correspondence = new Dev_Correspondence(); Dev_Correspondence dev_Correspondence = new Dev_Correspondence();
...@@ -99,6 +129,7 @@ namespace GKHTRBC16P.Jurisdiction ...@@ -99,6 +129,7 @@ namespace GKHTRBC16P.Jurisdiction
potow++; potow++;
} }
} }
}
uiDataGridView1.DataSource = correspondenceList; uiDataGridView1.DataSource = correspondenceList;
} }
catch (Exception ex) catch (Exception ex)
......
...@@ -70,6 +70,10 @@ ...@@ -70,6 +70,10 @@
this.dataGridViewTextBoxColumn26 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn26 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn27 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn27 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn28 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn28 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn29 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn30 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn31 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn32 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Id = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Id = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
...@@ -508,6 +512,38 @@ ...@@ -508,6 +512,38 @@
this.dataGridViewTextBoxColumn28.Name = "dataGridViewTextBoxColumn28"; this.dataGridViewTextBoxColumn28.Name = "dataGridViewTextBoxColumn28";
this.dataGridViewTextBoxColumn28.Width = 76; this.dataGridViewTextBoxColumn28.Width = 76;
// //
// dataGridViewTextBoxColumn29
//
this.dataGridViewTextBoxColumn29.DataPropertyName = "Yexcessive";
this.dataGridViewTextBoxColumn29.HeaderText = "Y++";
this.dataGridViewTextBoxColumn29.MinimumWidth = 6;
this.dataGridViewTextBoxColumn29.Name = "dataGridViewTextBoxColumn29";
this.dataGridViewTextBoxColumn29.Width = 68;
//
// dataGridViewTextBoxColumn30
//
this.dataGridViewTextBoxColumn30.DataPropertyName = "Xexcessive";
this.dataGridViewTextBoxColumn30.HeaderText = "X++";
this.dataGridViewTextBoxColumn30.MinimumWidth = 6;
this.dataGridViewTextBoxColumn30.Name = "dataGridViewTextBoxColumn30";
this.dataGridViewTextBoxColumn30.Width = 68;
//
// dataGridViewTextBoxColumn31
//
this.dataGridViewTextBoxColumn31.DataPropertyName = "Pointx";
this.dataGridViewTextBoxColumn31.HeaderText = "X坐标";
this.dataGridViewTextBoxColumn31.MinimumWidth = 6;
this.dataGridViewTextBoxColumn31.Name = "dataGridViewTextBoxColumn31";
this.dataGridViewTextBoxColumn31.Width = 76;
//
// dataGridViewTextBoxColumn32
//
this.dataGridViewTextBoxColumn32.DataPropertyName = "Pointy";
this.dataGridViewTextBoxColumn32.HeaderText = "Y坐标";
this.dataGridViewTextBoxColumn32.MinimumWidth = 6;
this.dataGridViewTextBoxColumn32.Name = "dataGridViewTextBoxColumn32";
this.dataGridViewTextBoxColumn32.Width = 76;
//
// Id // Id
// //
this.Id.DataPropertyName = "Id"; this.Id.DataPropertyName = "Id";
...@@ -790,6 +826,11 @@ ...@@ -790,6 +826,11 @@
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn24; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn24;
private Sunny.UI.UISymbolButton uiSymbolButton3; private Sunny.UI.UISymbolButton uiSymbolButton3;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn25; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn25;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn26;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn27;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn28;
private Sunny.UI.UILabel uiLabel2;
private Sunny.UI.UIComboBox uiComboBox2;
private System.Windows.Forms.DataGridViewTextBoxColumn Id; private System.Windows.Forms.DataGridViewTextBoxColumn Id;
private System.Windows.Forms.DataGridViewTextBoxColumn Column1; private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
private System.Windows.Forms.DataGridViewTextBoxColumn Column2; private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
...@@ -818,10 +859,9 @@ ...@@ -818,10 +859,9 @@
private System.Windows.Forms.DataGridViewTextBoxColumn Column22; private System.Windows.Forms.DataGridViewTextBoxColumn Column22;
private System.Windows.Forms.DataGridViewTextBoxColumn Column23; private System.Windows.Forms.DataGridViewTextBoxColumn Column23;
private System.Windows.Forms.DataGridViewTextBoxColumn Column24; private System.Windows.Forms.DataGridViewTextBoxColumn Column24;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn26; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn29;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn27; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn30;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn28; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn31;
private Sunny.UI.UILabel uiLabel2; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn32;
private Sunny.UI.UIComboBox uiComboBox2;
} }
} }
\ No newline at end of file
...@@ -177,6 +177,18 @@ namespace GKHTRBC16P.RunLibrary ...@@ -177,6 +177,18 @@ namespace GKHTRBC16P.RunLibrary
CalculationAo.TemData[i + 1] = 0; CalculationAo.TemData[i + 1] = 0;
} }
} }
else if (CalculationAo.ThisDevConfig.TestBoxId == 8)
{
if (HotPlatSun.Instance.ReadOven(FrmMain.mainForm, 0, i+1) == 0)
{
CalculationAo.TemData[i + 1] = Math.Round(CalculationAo.OvenRead[0] * 10, 1);//读取的温度
OisovenCutoff[i] = DateTime.Now;
}
else
{
CalculationAo.TemData[i + 1] = 0;
}
}
else else
{ {
if (Gws.Instance.ReadOven(FrmMain.mainForm, i, CalculationAo.ThisDevConfig.TestBoxNo) == 0) if (Gws.Instance.ReadOven(FrmMain.mainForm, i, CalculationAo.ThisDevConfig.TestBoxNo) == 0)
...@@ -372,6 +384,11 @@ namespace GKHTRBC16P.RunLibrary ...@@ -372,6 +384,11 @@ namespace GKHTRBC16P.RunLibrary
FunOven(4, oven_Data); FunOven(4, oven_Data);
break; break;
} }
if (CalculationAo.ThisDevConfig.TestBoxId == 8)
{
int fitst = CalculationAo.ThisDevConfig.BoxNum / CalculationAo.ThisDevConfig.BoxNum;
Home_Status.home_Status.inVokeTextOven(Home_Status.home_Status.EB_Chamber, S1);
}
} }
for (int i = 1; i <= CalculationAo.ThisDevConfig.BoxNum; i++) for (int i = 1; i <= CalculationAo.ThisDevConfig.BoxNum; i++)
{ {
......
namespace GKHTRBC16P.ToolLibrary
{
partial class AutoHeatBoard
{
/// <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()
{
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();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
this.uiDataGridView1 = new Sunny.UI.UIDataGridView();
this.uiSymbolButton1 = new Sunny.UI.UISymbolButton();
this.uiSymbolButton2 = new Sunny.UI.UISymbolButton();
this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
((System.ComponentModel.ISupportInitialize)(this.uiDataGridView1)).BeginInit();
this.SuspendLayout();
//
// uiDataGridView1
//
this.uiDataGridView1.AllowUserToAddRows = false;
dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(249)))), ((int)(((byte)(255)))));
this.uiDataGridView1.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
this.uiDataGridView1.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(249)))), ((int)(((byte)(255)))));
this.uiDataGridView1.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
dataGridViewCellStyle2.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.uiDataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
this.uiDataGridView1.ColumnHeadersHeight = 32;
this.uiDataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.Column7,
this.Column1,
this.Column2,
this.Column3,
this.Column4,
this.Column5,
this.Column6});
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle3.BackColor = System.Drawing.Color.White;
dataGridViewCellStyle3.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
dataGridViewCellStyle3.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(236)))), ((int)(((byte)(255)))));
dataGridViewCellStyle3.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.uiDataGridView1.DefaultCellStyle = dataGridViewCellStyle3;
this.uiDataGridView1.EnableHeadersVisualStyles = false;
this.uiDataGridView1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.uiDataGridView1.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(104)))), ((int)(((byte)(173)))), ((int)(((byte)(255)))));
this.uiDataGridView1.Location = new System.Drawing.Point(0, 35);
this.uiDataGridView1.Name = "uiDataGridView1";
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(249)))), ((int)(((byte)(255)))));
dataGridViewCellStyle4.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
dataGridViewCellStyle4.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
dataGridViewCellStyle4.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.uiDataGridView1.RowHeadersDefaultCellStyle = dataGridViewCellStyle4;
this.uiDataGridView1.RowHeadersVisible = false;
dataGridViewCellStyle5.BackColor = System.Drawing.Color.White;
dataGridViewCellStyle5.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle5.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
dataGridViewCellStyle5.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(236)))), ((int)(((byte)(255)))));
dataGridViewCellStyle5.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
this.uiDataGridView1.RowsDefaultCellStyle = dataGridViewCellStyle5;
this.uiDataGridView1.RowTemplate.Height = 28;
this.uiDataGridView1.ScrollBarRectColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
this.uiDataGridView1.SelectedIndex = -1;
this.uiDataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.uiDataGridView1.Size = new System.Drawing.Size(946, 505);
this.uiDataGridView1.TabIndex = 1;
this.uiDataGridView1.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
this.uiDataGridView1.CellFormatting += new System.Windows.Forms.DataGridViewCellFormattingEventHandler(this.uiDataGridView1_CellFormatting);
//
// uiSymbolButton1
//
this.uiSymbolButton1.Cursor = System.Windows.Forms.Cursors.Hand;
this.uiSymbolButton1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.uiSymbolButton1.Location = new System.Drawing.Point(952, 505);
this.uiSymbolButton1.MinimumSize = new System.Drawing.Size(1, 1);
this.uiSymbolButton1.Name = "uiSymbolButton1";
this.uiSymbolButton1.Size = new System.Drawing.Size(100, 35);
this.uiSymbolButton1.Symbol = 362938;
this.uiSymbolButton1.TabIndex = 2;
this.uiSymbolButton1.Text = "读取";
this.uiSymbolButton1.TipsFont = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.uiSymbolButton1.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
this.uiSymbolButton1.Click += new System.EventHandler(this.uiSymbolButton1_Click);
//
// uiSymbolButton2
//
this.uiSymbolButton2.Cursor = System.Windows.Forms.Cursors.Hand;
this.uiSymbolButton2.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.uiSymbolButton2.Location = new System.Drawing.Point(952, 450);
this.uiSymbolButton2.MinimumSize = new System.Drawing.Size(1, 1);
this.uiSymbolButton2.Name = "uiSymbolButton2";
this.uiSymbolButton2.Size = new System.Drawing.Size(100, 35);
this.uiSymbolButton2.Symbol = 362030;
this.uiSymbolButton2.TabIndex = 3;
this.uiSymbolButton2.Text = "校准";
this.uiSymbolButton2.TipsFont = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.uiSymbolButton2.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
//
// dataGridViewTextBoxColumn1
//
this.dataGridViewTextBoxColumn1.DataPropertyName = "Td";
this.dataGridViewTextBoxColumn1.HeaderText = "工位号";
this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
this.dataGridViewTextBoxColumn1.Width = 65;
//
// dataGridViewTextBoxColumn2
//
this.dataGridViewTextBoxColumn2.DataPropertyName = "Station";
this.dataGridViewTextBoxColumn2.HeaderText = "加热盘[℃]";
this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
this.dataGridViewTextBoxColumn2.Width = 65;
//
// dataGridViewTextBoxColumn3
//
this.dataGridViewTextBoxColumn3.DataPropertyName = "HeatingplateTemp";
this.dataGridViewTextBoxColumn3.HeaderText = "器件[℃]";
this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
//
// dataGridViewTextBoxColumn4
//
this.dataGridViewTextBoxColumn4.DataPropertyName = "SettingTemp";
this.dataGridViewTextBoxColumn4.HeaderText = "设定温度(读)";
this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4";
this.dataGridViewTextBoxColumn4.Width = 120;
//
// dataGridViewTextBoxColumn5
//
this.dataGridViewTextBoxColumn5.DataPropertyName = "PatternReadingTemp";
this.dataGridViewTextBoxColumn5.HeaderText = "模式(读)";
this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5";
this.dataGridViewTextBoxColumn5.Width = 120;
//
// dataGridViewTextBoxColumn6
//
this.dataGridViewTextBoxColumn6.DataPropertyName = "PatternReadingTemp";
this.dataGridViewTextBoxColumn6.HeaderText = "设定温度";
this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6";
//
// dataGridViewTextBoxColumn7
//
this.dataGridViewTextBoxColumn7.DataPropertyName = "SetTempValue";
this.dataGridViewTextBoxColumn7.HeaderText = "设定温度";
this.dataGridViewTextBoxColumn7.Name = "dataGridViewTextBoxColumn7";
//
// Column7
//
this.Column7.DataPropertyName = "Td";
this.Column7.HeaderText = "Slot";
this.Column7.Name = "Column7";
this.Column7.Width = 60;
//
// Column1
//
this.Column1.DataPropertyName = "Station";
this.Column1.HeaderText = "工位号";
this.Column1.Name = "Column1";
this.Column1.Width = 80;
//
// Column2
//
this.Column2.DataPropertyName = "HeatingplateTemp";
this.Column2.HeaderText = "加热盘[℃]";
this.Column2.Name = "Column2";
//
// Column3
//
this.Column3.DataPropertyName = "DeviceTemp";
this.Column3.HeaderText = "器件[℃]";
this.Column3.Name = "Column3";
this.Column3.Width = 80;
//
// Column4
//
this.Column4.DataPropertyName = "SettingTemp";
this.Column4.HeaderText = "设定温度(读)";
this.Column4.Name = "Column4";
this.Column4.Width = 120;
//
// Column5
//
this.Column5.DataPropertyName = "PatternReadingTemp";
this.Column5.HeaderText = "模式(读)";
this.Column5.Name = "Column5";
//
// Column6
//
this.Column6.DataPropertyName = "SetTempValue";
this.Column6.HeaderText = "设定温度";
this.Column6.Name = "Column6";
//
// AutoHeatBoard
//
this.AllowShowTitle = true;
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.ClientSize = new System.Drawing.Size(1074, 566);
this.Controls.Add(this.uiSymbolButton2);
this.Controls.Add(this.uiSymbolButton1);
this.Controls.Add(this.uiDataGridView1);
this.Name = "AutoHeatBoard";
this.Padding = new System.Windows.Forms.Padding(0, 35, 0, 0);
this.PageIndex = 2003;
this.ShowTitle = true;
this.Symbol = 363339;
this.Text = "自动控温";
this.Initialize += new System.EventHandler(this.AutoHeatBoard_Initialize);
((System.ComponentModel.ISupportInitialize)(this.uiDataGridView1)).EndInit();
this.ResumeLayout(false);
}
#endregion
private Sunny.UI.UIDataGridView uiDataGridView1;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn4;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn5;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn6;
private Sunny.UI.UISymbolButton uiSymbolButton1;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn7;
private System.Windows.Forms.DataGridViewTextBoxColumn Column7;
private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
private System.Windows.Forms.DataGridViewTextBoxColumn Column6;
private Sunny.UI.UISymbolButton uiSymbolButton2;
}
}
\ No newline at end of file
using GKHTRBC16P.FunMov;
using GKHTRBC16P.Model;
using GKHTRBC16P.RunLibrary;
using GKHTRBC16P.Toolbox;
using Sunny.UI;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace GKHTRBC16P.ToolLibrary
{
public partial class AutoHeatBoard : UIPage
{
public AutoHeatBoard()
{
InitializeComponent();
}
public int HeatRow;
public int HeatMode = 0;
public List<HeatBoard> heatBoards;
private void AutoHeatBoard_Initialize(object sender, EventArgs e)
{
uPublic.WriteLog("进入:" + this.Text);
uiDataGridView1.AutoGenerateColumns = false;
uiDataGridView1.AllowUserToResizeRows = false;
HeatRow = CalculationAo.ThisDevConfig.BoxNum / CalculationAo.ThisDevConfig.Passageway;
heatBoards = new List<HeatBoard>();
DataGridViewIni();
uiDataGridView1.Width = 850;
MultiLanguage.LoadLanguage(this, CalculationAo.ThisDevConfig.Language);
}
private void DataGridViewIni()
{
DataGridViewCheckBoxColumn checkColum = new DataGridViewCheckBoxColumn();
checkColum.HeaderText = "平台";
checkColum.Name = "Chk1";
checkColum.DataPropertyName = "Column1";
checkColum.Width = 60;
checkColum.ReadOnly = false;
checkColum.TrueValue = true;
checkColum.FalseValue = false;
if (HeatMode == 0)
{
uiDataGridView1.Width = 1000;
checkColum.Visible = false;
uiDataGridView1.Columns[3].Visible = false;
}
uiDataGridView1.Columns.Add(checkColum);
DataGridViewCheckBoxColumn checkColum1 = new DataGridViewCheckBoxColumn();
checkColum1.HeaderText = "壳温";
checkColum1.Name = "Chk2";
checkColum1.DataPropertyName = "Column1";
checkColum1.Width = 60;
checkColum1.ReadOnly = false;
checkColum1.TrueValue = true;
checkColum1.FalseValue = false;
if (HeatMode == 1)
{
checkColum1.Visible = false;
uiDataGridView1.Columns[2].Visible = false;
}
uiDataGridView1.Columns.Add(checkColum1);
DataGridViewCheckBoxColumn checkColum2 = new DataGridViewCheckBoxColumn();
checkColum2.HeaderText = "散热";
checkColum2.Name = "Chk3";
checkColum2.DataPropertyName = "Column1";
checkColum2.Width = 65;
checkColum2.ReadOnly = false;
checkColum2.TrueValue = true;
checkColum2.FalseValue = false;
uiDataGridView1.Columns.Add(checkColum2);
//DataGridViewCheckBoxColumn checkColum3 = new DataGridViewCheckBoxColumn();
//checkColum3.HeaderText = "有散热";
//checkColum3.Name = "Chk4";
//checkColum3.DataPropertyName = "Column1";
//checkColum3.Width = 65;
//checkColum3.ReadOnly = false;
//checkColum3.TrueValue = true;
//checkColum3.FalseValue = false;
//uiDataGridView1.Columns.Add(checkColum3);
DataGridViewButtonColumn btn = new DataGridViewButtonColumn();
string btntext = "运行";
btn.Name = "btnCt";
btn.HeaderText = btntext;
btn.Width = 70;
uiDataGridView1.Columns.Add(btn);
DataGridViewButtonColumn btn2 = new DataGridViewButtonColumn();
btntext = "停止";
btn2.Name = "btnC";
btn2.HeaderText = btntext;
btn2.DefaultCellStyle.NullValue = "停止";
btn2.Width = 70;
uiDataGridView1.Columns.Add(btn2);
int jj = 0;
for (int i = 1; i <= CalculationAo.ThisDevConfig.Passageway; i++)
{
for (int j = 1; j <= HeatRow; j++)
{
HeatBoard heatBoard = new HeatBoard();
heatBoard.Id = i;
heatBoard.Td = "Z" + i;
jj++;
heatBoard.Station = jj;
heatBoard.SetTempValue = 175;
heatBoards.Add(heatBoard);
}
//uiDataGridView1.Rows[i].Cells[5].Value = 0;
//uiDataGridView1.Rows[i].Cells[0].Value = "Z" + (i / HeatRow + 1).ToString() + "-" + (i % HeatRow + 1).ToString();
//uiDataGridView1.Rows[i].Cells[10].Value = (i + 1).ToString();
}
uiDataGridView1.DataSource = heatBoards;
}
private void uiDataGridView1_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e)
{
if (e.ColumnIndex == 10 && e.RowIndex >= 0)
{
DataGridViewButtonCell buttonCell = (DataGridViewButtonCell)uiDataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex];
HeatBoard mm = uiDataGridView1.Rows[e.RowIndex].DataBoundItem as HeatBoard;
if (buttonCell != null && mm != null)
{
e.Value = mm.Station;
}
}
}
public override void Final()
{
uPublic.WriteLog("Exit:" + this.Text);
}
private void uiSymbolButton1_Click(object sender, EventArgs e)
{
}
}
}
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="Column7.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column4.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column5.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column6.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>
\ No newline at end of file
643ac0afc784de3c5fddf0cf7af9563f87d358bfbd2f016c40aa4c7c3883cc7e 80041bb3bc2011e6f1861df701911385a883ad8f21f7f088672b9b670d88fe8c
...@@ -373,3 +373,4 @@ E:\CustomerRbGb\GK-HTRB-C16P-gaokun\GK-HTRB-GB\GKHTRBC16P\obj\Debug\GKHTRBC16P.e ...@@ -373,3 +373,4 @@ E:\CustomerRbGb\GK-HTRB-C16P-gaokun\GK-HTRB-GB\GKHTRBC16P\obj\Debug\GKHTRBC16P.e
E:\CustomerRbGb\GK-HTRB-C16P-gaokun\GK-HTRB-GB\GKHTRBC16P\obj\Debug\GKHTRBC16P.pdb E:\CustomerRbGb\GK-HTRB-C16P-gaokun\GK-HTRB-GB\GKHTRBC16P\obj\Debug\GKHTRBC16P.pdb
E:\CustomerRbGb\GK-HTRB-C16P-gaokun\GK-HTRB-GB\GKHTRBC16P\obj\Debug\GKHTRBC16P.Jurisdiction.FrmSysData.resources E:\CustomerRbGb\GK-HTRB-C16P-gaokun\GK-HTRB-GB\GKHTRBC16P\obj\Debug\GKHTRBC16P.Jurisdiction.FrmSysData.resources
E:\CustomerRbGb\GK-HTRB-C16P-gaokun\GK-HTRB-GB\GKHTRBC16P\obj\Debug\GKHTRBC16P.Helpm.FrmComTreeSelect.resources E:\CustomerRbGb\GK-HTRB-C16P-gaokun\GK-HTRB-GB\GKHTRBC16P\obj\Debug\GKHTRBC16P.Helpm.FrmComTreeSelect.resources
E:\CustomerRbGb\GK-HTRB-C16P-gaokun\GK-HTRB-GB\GKHTRBC16P\obj\Debug\GKHTRBC16P.ToolLibrary.AutoHeatBoard.resources
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论