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

热板

上级 076b7d16
......@@ -64,6 +64,7 @@
<Compile Include="Dev_Thorou.cs" />
<Compile Include="Dev_ThorouVgs.cs" />
<Compile Include="Dev_Type.cs" />
<Compile Include="HeatBoard.cs" />
<Compile Include="HtrbStation.cs" />
<Compile Include="InterResult.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 @@
<Compile Include="Boven\Ewgzks.cs" />
<Compile Include="Boven\Gws.cs" />
<Compile Include="Boven\Hirayama.cs" />
<Compile Include="Boven\HotPlatSun.cs" />
<Compile Include="Driboard\BoardHtolmod.cs" />
<Compile Include="Driboard\HighVol.cs" />
<Compile Include="Driboard\Htgb.cs" />
......
f5651d80a149cb43c5f5969c7d3457d028f3cec465e26b4fbe16d068f992e0c7
4a8b0b5519924bd1cfa76ebb0837c2d307ed526aad32cef8680bd1f9e2e78707
......@@ -25,13 +25,12 @@ namespace GKHTRBC16P.Toolbox
/// </summary>
public static double[,] HTRBPWR = new double[36, 15];
public static int[] ComRxdData = new int[256];
public static int[] ComRxdDataA = new int[511];
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];
/// 0:温度 1:设定值;2:温度上限;3:温度下限
public static double[] OvenRead = new double[4];
public static double[] OvenRead = new double[8];
/// 0:温度 1:设定值;2:温度上限;3:温度下限
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;继续运行)]
......@@ -44,6 +43,7 @@ namespace GKHTRBC16P.Toolbox
public static double[,] PowerSetRead = new double[36, 10];
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[]> ComtData = 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, Power_Data> PowerList = new Dictionary<int, Power_Data>();
......
......@@ -172,6 +172,15 @@ namespace GKHTRBC16P.Toolbox
//Res = CalCRC16
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)
//{
// var GENP = 0XA001;
......
......@@ -74,6 +74,7 @@ namespace GKHTRBC16P
this.Icon = new Icon(ImageProce.IcoApp);
//ShowSuccessTip(ImageProce.IcoApp);
CalculationAo.ComdData = new Dictionary<int, int[]>();
CalculationAo.ComtData = new Dictionary<int, int[]>();
CalculationAo.OvenList = new Dictionary<int, Oven_Data>();
CalculationAo.PowerList = new Dictionary<int, Power_Data>();
CalculationAo.Stage_Heats = new Dictionary<int,Stage_Heating>();
......
......@@ -263,6 +263,10 @@ namespace GKHTRBC16P
if (menuinfo != null)
{
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);
UIPage b1 = Activator.CreateInstance(t) as UIPage;
AddPage(b1);
......
......@@ -313,6 +313,12 @@ namespace GKHTRBC16P.FunMov
int full = element1.Full;
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++)
{
if (!CalculationAo.PowerTime.ContainsKey(i))
......@@ -464,7 +470,12 @@ namespace GKHTRBC16P.FunMov
uiDataGridView4.Columns[j + 1].CellTemplate.Style.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold);
j++;
}
HeadShowLocal();
if (CalculationAo.ThisDevConfig.TestBoxId == 8)
HeadShowPlant();
else if (!CalculationAo.ThorouVgs.ContainsKey(board))
HeadShowLocal();
else
HeadShowLocalVg();
uiDataGridView2.RowTemplate.Height = element1.uiDataGridView2Height;
uiDataGridView2.DataSource = dev_Device_Grids;
uiDataGridView2.AllowUserToResizeColumns = false;
......@@ -497,7 +508,9 @@ namespace GKHTRBC16P.FunMov
uiDataGridView5.Visible = true;
EdZFConfig.Visible = true;
Txt_direction.Visible = true;
if (!CalculationAo.ThorouVgs.ContainsKey(board))
if (CalculationAo.ThisDevConfig.TestBoxId == 8)
HeadShowPlant();
else if (!CalculationAo.ThorouVgs.ContainsKey(board))
HeadShowLocal();
else
HeadShowLocalVg();
......@@ -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()
{
uiLabel6.Visible = false;
......@@ -582,8 +643,8 @@ namespace GKHTRBC16P.FunMov
LBRecCount.Location = new Point(115, 50);
uiLabel1.Size = new Size(112, 23);
uiPanel4.Location = new Point(205, 4);
uiPanel4.Size = new Size(311,79);
//uiPanel4.Location = new Point(205, 4);
//uiPanel4.Size = new Size(311,79);
uiLabel4.Size = new Size(74, 23);
uiLabel4.Location = new Point(1, 8);
uiLabel3.Size = new Size(74, 23);
......
......@@ -421,6 +421,12 @@
<Compile Include="ToolLibrary\AlarmProcess.Designer.cs">
<DependentUpon>AlarmProcess.cs</DependentUpon>
</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">
<SubType>Form</SubType>
</Compile>
......@@ -649,6 +655,9 @@
<EmbeddedResource Include="ToolLibrary\AlarmProcess.resx">
<DependentUpon>AlarmProcess.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="ToolLibrary\AutoHeatBoard.resx">
<DependentUpon>AutoHeatBoard.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="ToolLibrary\AutoTemper.resx">
<DependentUpon>AutoTemper.cs</DependentUpon>
</EmbeddedResource>
......
......@@ -35,14 +35,15 @@
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Frm_Correspondence));
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.uiSymbolButton2 = new Sunny.UI.UISymbolButton();
this.uiLabel1 = new Sunny.UI.UILabel();
this.dataGridViewTextBoxColumn1 = 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();
this.SuspendLayout();
//
......@@ -98,33 +99,11 @@
this.uiDataGridView1.RowTemplate.Height = 23;
this.uiDataGridView1.ScrollBarRectColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
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.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
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
//
this.uiSymbolButton1.Cursor = System.Windows.Forms.Cursors.Hand;
......@@ -181,10 +160,43 @@
this.dataGridViewTextBoxColumn2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
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
//
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.uiDataGridView1);
this.Controls.Add(this.uiSymbolButton2);
......@@ -209,9 +221,10 @@
private Sunny.UI.UISymbolButton uiSymbolButton2;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1;
private Sunny.UI.UILabel uiLabel1;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2;
private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
private System.Windows.Forms.DataGridViewComboBoxColumn Column3;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2;
private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3;
}
}
\ No newline at end of file
......@@ -54,14 +54,14 @@ namespace GKHTRBC16P.Jurisdiction
//DataGridViewComboBoxColumn column1 = uiDataGridView1.Columns[1] as DataGridViewComboBoxColumn;
//column1.DataPropertyName = "PowerId";//对应数据源的字段
//column1.DataSource = _Boboxes1; ;
List<string> _Boboxes2 = new List<string>();
for (int i = 1; i <= CalculationAo.ThisDevConfig.BoxNum; i++)
{
_Boboxes2.Add(i.ToString() + "#");
}
DataGridViewComboBoxColumn column2 = uiDataGridView1.Columns[2] as DataGridViewComboBoxColumn;
column2.DataPropertyName = "OvenId";//对应数据源的字段
column2.DataSource = _Boboxes2;
//List<string> _Boboxes2 = new List<string>();
//for (int i = 1; i <= CalculationAo.ThisDevConfig.BoxNum; i++)
//{
// _Boboxes2.Add(i.ToString() + "#");
//}
//DataGridViewComboBoxColumn column2 = uiDataGridView1.Columns[2] as DataGridViewComboBoxColumn;
//column2.DataPropertyName = "OvenId";//对应数据源的字段
//column2.DataSource = _Boboxes2;
correspondenceList = correspondenceBll.GetList();
......@@ -75,28 +75,59 @@ namespace GKHTRBC16P.Jurisdiction
int pwt = CalculationAo.ThisDevConfig.Passageway / CalculationAo.ThisDevConfig.ComPowerNum;
int ovt = CalculationAo.ThisDevConfig.Passageway / CalculationAo.ThisDevConfig.BoxNum;
int potop = 1; int potow = 1;
for (int j = 1; j <= CalculationAo.ThisDevConfig.Passageway; j++)
if (new int[] { 8 }.Contains(CalculationAo.ThisDevConfig.TestBoxId))
{
Dev_Correspondence dev_Correspondence = new Dev_Correspondence();
dev_Correspondence.PassagewayId = j;
if (closees)
ovt = CalculationAo.ThisDevConfig.BoxNum / CalculationAo.ThisDevConfig.Passageway;
for (int j = 1; j <= CalculationAo.ThisDevConfig.Passageway; j++)
{
dev_Correspondence.PowerId = "PS" + pw;
dev_Correspondence.OvenId = ov + "#";
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++;
}
correspondenceList.Add(dev_Correspondence);
if (potop >= pwt)
{
pw++;
potop = 0;
}
if (potow >= ovt)
}
else
{
for (int j = 1; j <= CalculationAo.ThisDevConfig.Passageway; j++)
{
ov++;
potow = 0;
Dev_Correspondence dev_Correspondence = new Dev_Correspondence();
dev_Correspondence.PassagewayId = j;
if (closees)
{
dev_Correspondence.PowerId = "PS" + pw;
dev_Correspondence.OvenId = ov + "#";
}
correspondenceList.Add(dev_Correspondence);
if (potop >= pwt)
{
pw++;
potop = 0;
}
if (potow >= ovt)
{
ov++;
potow = 0;
}
potop++;
potow++;
}
potop++;
potow++;
}
}
uiDataGridView1.DataSource = correspondenceList;
......
......@@ -70,6 +70,10 @@
this.dataGridViewTextBoxColumn26 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn27 = 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.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
......@@ -508,6 +512,38 @@
this.dataGridViewTextBoxColumn28.Name = "dataGridViewTextBoxColumn28";
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
//
this.Id.DataPropertyName = "Id";
......@@ -790,6 +826,11 @@
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn24;
private Sunny.UI.UISymbolButton uiSymbolButton3;
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 Column1;
private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
......@@ -818,10 +859,9 @@
private System.Windows.Forms.DataGridViewTextBoxColumn Column22;
private System.Windows.Forms.DataGridViewTextBoxColumn Column23;
private System.Windows.Forms.DataGridViewTextBoxColumn Column24;
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 dataGridViewTextBoxColumn29;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn30;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn31;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn32;
}
}
\ No newline at end of file
......@@ -177,6 +177,18 @@ namespace GKHTRBC16P.RunLibrary
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
{
if (Gws.Instance.ReadOven(FrmMain.mainForm, i, CalculationAo.ThisDevConfig.TestBoxNo) == 0)
......@@ -372,6 +384,11 @@ namespace GKHTRBC16P.RunLibrary
FunOven(4, oven_Data);
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++)
{
......
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
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.Helpm.FrmComTreeSelect.resources
E:\CustomerRbGb\GK-HTRB-C16P-gaokun\GK-HTRB-GB\GKHTRBC16P\obj\Debug\GKHTRBC16P.ToolLibrary.AutoHeatBoard.resources
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论