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

gengxin€

上级 e3365aab
......@@ -356,6 +356,7 @@ namespace GK_HTRB_C16P.Upgradation
var isqbnt = newParmdata.Rows[jp]["BatchFileName"].ToString();
var pid = Convert.ToInt32(newParmdata.Rows[jp]["ParmId"]);
var EleUpper = Convert.ToInt32(newParmdata.Rows[jp]["EleUpper"]);
//var Ishtrb = Convert.ToInt32(newParmdata.Rows[jp]["Ishtrb"]);
var devid = Convert.ToInt32(newParmdata.Rows[jp]["DeviceId"]);
var LotInfo = newParmdata.Rows[jp]["LotInfo"].ToString();
var BoardInfo = newParmdata.Rows[jp]["BoardInfo"].ToString();
......
......@@ -364,10 +364,10 @@
<Control name="uiLabel3" text="创建时间:"/>
<Control name="uiLabel4" text="器件库:"/>
<Control name="uiLabel2" text="器件名称:"/>
<Control name="uiLabel7" text="漏电流下限(uA):"/>
<Control name="uiLabel7" text="漏电流下限(mA):"/>
<Control name="uiLabel9" text="反偏电压值(V):"/>
<Control name="uiLabel6" text="老化时间(h):"/>
<Control name="uiLabel8" text="漏电流上限(uA):"/>
<Control name="uiLabel8" text="漏电流上限(mA):"/>
<Control name="Com_Text_Type" text="0"/>
<Control name="uiLabel10" text="上电电压(上桥):"/>
<Control name="uiLabel11" text="下电电压(上桥):"/>
......
......@@ -359,10 +359,10 @@
<Control name="uiLabel3" text="Create Time:"/>
<Control name="uiLabel4" text="Device Library:"/>
<Control name="uiLabel2" text="Device Name:"/>
<Control name="uiLabel7" text="IR-min(uA):"/>
<Control name="uiLabel7" text="IR-min(mA):"/>
<Control name="uiLabel9" text="VR(V):"/>
<Control name="uiLabel6" text="Burn-in Time(h):"/>
<Control name="uiLabel8" text="IR-max(uA):"/>
<Control name="uiLabel8" text="IR-max(mA):"/>
<Control name="Com_Text_Type" text="0"/>
<Control name="uiLabel10" text="Power on voltage:"/>
<Control name="uiLabel11" text="Power down voltage:"/>
......
......@@ -1080,4 +1080,34 @@
<Pointx>2</Pointx>
<Pointy>4</Pointy>
</Sys_Element>
<Sys_Element>
<Id>38</Id>
<Passageway>16</Passageway>
<ClassName>Home_Status</ClassName>
<ClassWhere>17</ClassWhere>
<ThisWidth>1024</ThisWidth>
<ThisHeight>768</ThisHeight>
<uiPanelHeight>70</uiPanelHeight>
<uiDataGridViewHeight>550</uiDataGridViewHeight>
<uiDataGridViewRowHeight>22</uiDataGridViewRowHeight>
<uiDataGridView2Width1>50</uiDataGridView2Width1>
<uiDataGridView2Width2>68</uiDataGridView2Width2>
<uiDataGridView2Height>20</uiDataGridView2Height>
<uiDataGridView3Width1>0</uiDataGridView3Width1>
<uiDataGridView3Width2>0</uiDataGridView3Width2>
<uiDataGridView3Height>0</uiDataGridView3Height>
<Full>0</Full>
<uILabelWidth>42</uILabelWidth>
<uILabelHeight>28</uILabelHeight>
<uILabelFontSize>10</uILabelFontSize>
<uITextBoxWidth>80</uITextBoxWidth>
<uITextBoxHeight>28</uITextBoxHeight>
<uIButtonWidth>24</uIButtonWidth>
<ExAbout>2</ExAbout>
<ExColumn>4</ExColumn>
<Yexcessive>30</Yexcessive>
<Xexcessive>120</Xexcessive>
<Pointx>2</Pointx>
<Pointy>4</Pointy>
</Sys_Element>
</ArrayOfSys_Element>
\ No newline at end of file
......@@ -42,6 +42,38 @@ namespace GKHTRBC16P.Bll
return Csql1+ Csql2 + Csql3;
}
public string CreateTable9(string tablename, string indexname, int StaionNum)
{
// 'IR1' float(10,3),
string Csql1 = string.Format(@"CREATE TABLE '{0}' (
'Id' integer PRIMARY KEY AUTOINCREMENT,
'ParmId' integer,
'CreateTime' varchar(30) NOT NULL,
'RunTime' float(10,2),
'TemA' float(10,3),
'TemB' float(10,3),
'TemC' Float(10,3),
'TemD' Float(10,3),
'TemE' float(10,3),
'HumidityA' float(10,3),
'HV' float(10,3),
'VIN' float(10,3),
'VCC' float(10,3),
'VEN' float(10,3),", tablename);
string Csql2 = "";
for (int i = 1; i <= StaionNum/2; i++)
{
Csql2 = Csql2 + string.Format("'Io{0}' float(10,3),", i.ToString());
Csql2 = Csql2 + string.Format("'Vo{0}' float(10,3),", i.ToString());
}
if (Csql2.Length > 0)
Csql2 = Csql2.Substring(0, Csql2.Length - 1);
string Csql3 = string.Format(@");CREATE TABLE 'Summary'( 'Id' integer PRIMARY KEY AUTOINCREMENT,'Invalid' int,'RecordNum' integer,'MaxStatin'varchar,'Transfinite'varchar,'AgvStatin'varchar);
Insert into 'Summary' select 1,0,0,'','','';");
//CREATE INDEX '{1}' ON '{0}' ('ParmId');", tablename, indexname);
return Csql1 + Csql2 + Csql3;
}
public string CreateTableTbrido(string tablename, string indexname, int StaionNum)
{
// 'IR1_2' float(10,3), 'IR1_2_' float(10, 3),
......
......@@ -41,8 +41,8 @@ namespace GKHTRBC16P.Bll
int result = 0;
using (IDbConnection cnn = new SQLiteConnection(DapperConntionData.Conectionvoidstring()))
{
result = cnn.Execute("insert into Dev_Device(MainId,DevName,TestId,AgingNo,AgingTime,EleLower,EleUpper,BackVol,TjUpper,Rqaw,AgeingImage,Devimage,VgsP,VgsN,Vg,PowerIf,OvenIf,Stage,OnVoltage1,OnVoltage2,OffVoltage1,OffVoltage2,WhereTemp,OnTemp,OnHimi,OffTemp,OffHimi,ReachTime,HimiReachTime,Status,UserId,Createtime) " +
"values(@MainId,@DevName,@TestId,@AgingNo,@AgingTime,@EleLower,@EleUpper,@BackVol,@TjUpper,@Rqaw,@AgeingImage,@Devimage,@VgsP,@VgsN,@Vg,@PowerIf,@OvenIf,@Stage,@OnVoltage1,@OnVoltage2,@OffVoltage1,@OffVoltage2,@WhereTemp,@OnTemp,@OnHimi,@OffTemp,@OffHimi,@ReachTime,@HimiReachTime,@Status,@UserId,@Createtime)", dev_Device);
result = cnn.Execute("insert into Dev_Device(MainId,DevName,TestId,AgingNo,hv,vin,vcc,ven,cdata,AgingTime,EleLower,EleUpper,BackVol,TjUpper,Rqaw,AgeingImage,Devimage,VgsP,VgsN,Vg,PowerIf,OvenIf,Stage,OnVoltage1,OnVoltage2,OffVoltage1,OffVoltage2,WhereTemp,OnTemp,OnHimi,OffTemp,OffHimi,ReachTime,HimiReachTime,Status,UserId,Createtime) " +
"values(@MainId,@DevName,@TestId,@AgingNo,@hv,@vin,@vcc,@ven,@cdata,@AgingTime,@EleLower,@EleUpper,@BackVol,@TjUpper,@Rqaw,@AgeingImage,@Devimage,@VgsP,@VgsN,@Vg,@PowerIf,@OvenIf,@Stage,@OnVoltage1,@OnVoltage2,@OffVoltage1,@OffVoltage2,@WhereTemp,@OnTemp,@OnHimi,@OffTemp,@OffHimi,@ReachTime,@HimiReachTime,@Status,@UserId,@Createtime)", dev_Device);
}
return result;
}
......@@ -51,7 +51,7 @@ namespace GKHTRBC16P.Bll
int result = 0;
using (IDbConnection cnn = new SQLiteConnection(DapperConntionData.Conectionvoidstring()))
{
result = cnn.Execute("update Dev_Device set MainId = @MainId,DevName=@DevName,TestId =@TestId,AgingNo = @AgingNo,AgingTime = @AgingTime,EleLower=@EleLower,EleUpper=@EleUpper,BackVol=@BackVol,VgsP=@VgsP,VgsN=@VgsN,Vg=@Vg," +
result = cnn.Execute("update Dev_Device set MainId = @MainId,DevName=@DevName,TestId =@TestId,AgingNo = @AgingNo,hv=@hv,vin=@vin,vcc=@vcc,ven=@ven,cdata=@cdata,AgingTime = @AgingTime,EleLower=@EleLower,EleUpper=@EleUpper,BackVol=@BackVol,VgsP=@VgsP,VgsN=@VgsN,Vg=@Vg," +
"PowerIf=@PowerIf,OvenIf=@OvenIf,Stage=@Stage,OnVoltage1=@OnVoltage1,OnVoltage2=@OnVoltage2,OffVoltage1=@OffVoltage1,OffVoltage2=@OffVoltage2,WhereTemp=@WhereTemp,OnTemp=@OnTemp,OnHimi=@OnHimi,OffTemp=@OffTemp,OffHimi=@OffHimi,ReachTime=@ReachTime,HimiReachTime=@HimiReachTime," +
"TjUpper=@TjUpper,Rqaw=@Rqaw,AgeingImage=@AgeingImage,Devimage=@Devimage,Status=@Status,UserId=@UserId,Createtime=@Createtime " +
"where Id=" + dev_Device.Id, dev_Device);
......
......@@ -52,15 +52,15 @@ E:\CustomerRbGb\GK-HTRB-C16P-fushun\GK-HTRB-GB\GKHTRBC16P.Bll\bin\Debug\Dapper.d
E:\CustomerRbGb\GK-HTRB-C16P-fushun\GK-HTRB-GB\GKHTRBC16P.Bll\bin\Debug\GKHTRBC16P.Model.dll
E:\CustomerRbGb\GK-HTRB-C16P-fushun\GK-HTRB-GB\GKHTRBC16P.Bll\bin\Debug\GKHTRBC16P.Toolbox.dll
E:\CustomerRbGb\GK-HTRB-C16P-fushun\GK-HTRB-GB\GKHTRBC16P.Bll\bin\Debug\System.Data.SQLite.dll
E:\CustomerRbGb\GK-HTRB-C16P-fushun\GK-HTRB-GB\GKHTRBC16P.Bll\bin\Debug\log4net.dll
E:\CustomerRbGb\GK-HTRB-C16P-fushun\GK-HTRB-GB\GKHTRBC16P.Bll\bin\Debug\HTICOLClient.dll
E:\CustomerRbGb\GK-HTRB-C16P-fushun\GK-HTRB-GB\GKHTRBC16P.Bll\bin\Debug\MQTTnet.dll
E:\CustomerRbGb\GK-HTRB-C16P-fushun\GK-HTRB-GB\GKHTRBC16P.Bll\bin\Debug\Newtonsoft.Json.dll
E:\CustomerRbGb\GK-HTRB-C16P-fushun\GK-HTRB-GB\GKHTRBC16P.Bll\bin\Debug\GKHTRBC16P.Model.pdb
E:\CustomerRbGb\GK-HTRB-C16P-fushun\GK-HTRB-GB\GKHTRBC16P.Bll\bin\Debug\GKHTRBC16P.Toolbox.pdb
E:\CustomerRbGb\GK-HTRB-C16P-fushun\GK-HTRB-GB\GKHTRBC16P.Bll\bin\Debug\log4net.xml
E:\CustomerRbGb\GK-HTRB-C16P-fushun\GK-HTRB-GB\GKHTRBC16P.Bll\obj\Debug\GKHTRBC16P.Bll.csproj.AssemblyReference.cache
E:\CustomerRbGb\GK-HTRB-C16P-fushun\GK-HTRB-GB\GKHTRBC16P.Bll\obj\Debug\GKHTRBC16P.Bll.csproj.CoreCompileInputs.cache
E:\CustomerRbGb\GK-HTRB-C16P-fushun\GK-HTRB-GB\GKHTRBC16P.Bll\obj\Debug\GKHTRBC1.DFBB4EF2.Up2Date
E:\CustomerRbGb\GK-HTRB-C16P-fushun\GK-HTRB-GB\GKHTRBC16P.Bll\obj\Debug\GKHTRBC16P.Bll.dll
E:\CustomerRbGb\GK-HTRB-C16P-fushun\GK-HTRB-GB\GKHTRBC16P.Bll\obj\Debug\GKHTRBC16P.Bll.pdb
E:\CustomerRbGb\GK-HTRB-C16P-fushun\GK-HTRB-GB\GKHTRBC16P.Bll\bin\Debug\log4net.dll
E:\CustomerRbGb\GK-HTRB-C16P-fushun\GK-HTRB-GB\GKHTRBC16P.Bll\bin\Debug\HTICOLClient.dll
E:\CustomerRbGb\GK-HTRB-C16P-fushun\GK-HTRB-GB\GKHTRBC16P.Bll\bin\Debug\MQTTnet.dll
E:\CustomerRbGb\GK-HTRB-C16P-fushun\GK-HTRB-GB\GKHTRBC16P.Bll\bin\Debug\Newtonsoft.Json.dll
E:\CustomerRbGb\GK-HTRB-C16P-fushun\GK-HTRB-GB\GKHTRBC16P.Bll\bin\Debug\log4net.xml
......@@ -17,6 +17,11 @@ namespace GKHTRBC16P.Model
public decimal EleLower { get; set; }
public decimal EleUpper { get; set; }
public decimal BackVol { get; set; }
public decimal hv { get; set; }
public decimal vin { get; set; }
public decimal vcc { get; set; }
public decimal ven { get; set; }
public string cdata { get; set; }
public decimal TjUpper { get; set; }
public decimal Rqaw { get; set; }
public byte[] AgeingImage { get; set; }
......
......@@ -105,6 +105,208 @@ namespace GKHTRBC16P.Model
public double IR79 { get; set; }
public double IR80 { get; set; }
}
public class Station_Data9
{
public int Id { get; set; }
public int ParmId { get; set; }
public string CreateTime { get; set; }
public double RunTime { get; set; }
public double TemA { get; set; }
public double TemB { get; set; }
public double TemC { get; set; }
public double TemD { get; set; }
public double TemE { get; set; }
public double HumidityA { get; set; }
public double HV { get; set; }
public double VIN { get; set; }
public double VCC { get; set; }
public double VEN { get; set; }
//public double OvenTem { get; set; }
/// <summary>
/// 工位数据
/// </summary>
public double Io1 { get; set; }
public double Io2 { get; set; }
public double Io3 { get; set; }
public double Io4 { get; set; }
public double Io5 { get; set; }
public double Io6 { get; set; }
public double Io7 { get; set; }
public double Io8 { get; set; }
public double Io9 { get; set; }
public double Io10 { get; set; }
public double Io11 { get; set; }
public double Io12 { get; set; }
public double Io13 { get; set; }
public double Io14 { get; set; }
public double Io15 { get; set; }
public double Io16 { get; set; }
public double Io17 { get; set; }
public double Io18 { get; set; }
public double Io19 { get; set; }
public double Io20 { get; set; }
public double Io21 { get; set; }
public double Io22 { get; set; }
public double Io23 { get; set; }
public double Io24 { get; set; }
public double Io25 { get; set; }
public double Io26 { get; set; }
public double Io27 { get; set; }
public double Io28 { get; set; }
public double Io29 { get; set; }
public double Io30 { get; set; }
public double Io31 { get; set; }
public double Io32 { get; set; }
public double Io33 { get; set; }
public double Io34 { get; set; }
public double Io35 { get; set; }
public double Io36 { get; set; }
public double Io37 { get; set; }
public double Io38 { get; set; }
public double Io39 { get; set; }
public double Io40 { get; set; }
public double Vo1 { get; set; }
public double Vo2 { get; set; }
public double Vo3 { get; set; }
public double Vo4 { get; set; }
public double Vo5 { get; set; }
public double Vo6 { get; set; }
public double Vo7 { get; set; }
public double Vo8 { get; set; }
public double Vo9 { get; set; }
public double Vo10 { get; set; }
public double Vo11 { get; set; }
public double Vo12 { get; set; }
public double Vo13 { get; set; }
public double Vo14 { get; set; }
public double Vo15 { get; set; }
public double Vo16 { get; set; }
public double Vo17 { get; set; }
public double Vo18 { get; set; }
public double Vo19 { get; set; }
public double Vo20 { get; set; }
public double Vo21 { get; set; }
public double Vo22 { get; set; }
public double Vo23 { get; set; }
public double Vo24 { get; set; }
public double Vo25 { get; set; }
public double Vo26 { get; set; }
public double Vo27 { get; set; }
public double Vo28 { get; set; }
public double Vo29 { get; set; }
public double Vo30 { get; set; }
public double Vo31 { get; set; }
public double Vo32 { get; set; }
public double Vo33 { get; set; }
public double Vo34 { get; set; }
public double Vo35 { get; set; }
public double Vo36 { get; set; }
public double Vo37 { get; set; }
public double Vo38 { get; set; }
public double Vo39 { get; set; }
public double Vo40 { get; set; }
}
public class Station_Data_Ext9
{
public int Id { get; set; }
public int ParmId { get; set; }
public string CreateTime { get; set; }
public double RunTime { get; set; }
public double TemA { get; set; }
public double TemB { get; set; }
public double TemC { get; set; }
public double TemD { get; set; }
public double TemE { get; set; }
public double HumidityA { get; set; }
public double HV { get; set; }
public double VIN { get; set; }
public double VCC { get; set; }
public double VEN { get; set; }
//public double OvenTem { get; set; }
/// <summary>
/// 工位数据
/// </summary>
public double Io1 { get; set; }
public double Io2 { get; set; }
public double Io3 { get; set; }
public double Io4 { get; set; }
public double Io5 { get; set; }
public double Io6 { get; set; }
public double Io7 { get; set; }
public double Io8 { get; set; }
public double Io9 { get; set; }
public double Io10 { get; set; }
public double Io11 { get; set; }
public double Io12 { get; set; }
public double Io13 { get; set; }
public double Io14 { get; set; }
public double Io15 { get; set; }
public double Io16 { get; set; }
public double Io17 { get; set; }
public double Io18 { get; set; }
public double Io19 { get; set; }
public double Io20 { get; set; }
public double Io21 { get; set; }
public double Io22 { get; set; }
public double Io23 { get; set; }
public double Io24 { get; set; }
public double Io25 { get; set; }
public double Io26 { get; set; }
public double Io27 { get; set; }
public double Io28 { get; set; }
public double Io29 { get; set; }
public double Io30 { get; set; }
public double Io31 { get; set; }
public double Io32 { get; set; }
public double Io33 { get; set; }
public double Io34 { get; set; }
public double Io35 { get; set; }
public double Io36 { get; set; }
public double Io37 { get; set; }
public double Io38 { get; set; }
public double Io39 { get; set; }
public double Io40 { get; set; }
public double Vo1 { get; set; }
public double Vo2 { get; set; }
public double Vo3 { get; set; }
public double Vo4 { get; set; }
public double Vo5 { get; set; }
public double Vo6 { get; set; }
public double Vo7 { get; set; }
public double Vo8 { get; set; }
public double Vo9 { get; set; }
public double Vo10 { get; set; }
public double Vo11 { get; set; }
public double Vo12 { get; set; }
public double Vo13 { get; set; }
public double Vo14 { get; set; }
public double Vo15 { get; set; }
public double Vo16 { get; set; }
public double Vo17 { get; set; }
public double Vo18 { get; set; }
public double Vo19 { get; set; }
public double Vo20 { get; set; }
public double Vo21 { get; set; }
public double Vo22 { get; set; }
public double Vo23 { get; set; }
public double Vo24 { get; set; }
public double Vo25 { get; set; }
public double Vo26 { get; set; }
public double Vo27 { get; set; }
public double Vo28 { get; set; }
public double Vo29 { get; set; }
public double Vo30 { get; set; }
public double Vo31 { get; set; }
public double Vo32 { get; set; }
public double Vo33 { get; set; }
public double Vo34 { get; set; }
public double Vo35 { get; set; }
public double Vo36 { get; set; }
public double Vo37 { get; set; }
public double Vo38 { get; set; }
public double Vo39 { get; set; }
public double Vo40 { get; set; }
}
public class Station_Data_Ext
{
public string CreateTime { get; set; }
......
......@@ -459,12 +459,12 @@ namespace GKHTRBC16P.FunMov
FrmMain.mainForm.Prompt("opeartorno");
return;
}
if (!ConvertDataOpear.IsDecimal(EditVSet.Text.Trim()))
{
FrmMain.mainForm.Prompt("potion");
LogisTrac.WriteLog(this.GetType(), "电压超过设置的反偏电压值!");
return;
}
//if (!ConvertDataOpear.IsDecimal(EditVSet.Text.Trim()))
//{
// FrmMain.mainForm.Prompt("potion");
// LogisTrac.WriteLog(this.GetType(), "电压超过设置的反偏电压值!");
// return;
//}
if (CalculationAo.ThisDevConfig.IsVgs == 0)
{
Dev_Correspondence corr = Corrlist.FirstOrDefault(x => x.PowerId.Contains("PS" + powernum));
......
......@@ -87,9 +87,14 @@ namespace GKHTRBC16P.FunMov
{
//CalculationAo.DicBoardInfo[i] =
if (!Vtype.Contains(CalculationAo.Thorous[i].Waytype))
CalculationAo.DicBoardInfo[i] = stationDataBll.DicHeaderStationFun(CalculationAo.ThisDevConfig.ReportDisTemp, CalculationAo.Thorous[i].Snum, i);
{
if(CalculationAo.Thorous[i].Waytype == 9)
CalculationAo.DicBoardInfo[i] = stationDataBll.DicHeaderStationFun9(CalculationAo.ThisDevConfig.ReportDisTemp, CalculationAo.Thorous[i].Snum, i);
else
CalculationAo.DicBoardInfo[i] = stationDataBll.DicHeaderStationFun(CalculationAo.ThisDevConfig.ReportDisTemp, CalculationAo.Thorous[i].Snum, i);
}
else
CalculationAo.DicBoardInfo[i] = stationTbridoDataBll.DicHeaderStationFun(CalculationAo.ThisDevConfig.ReportDisTemp, CalculationAo.Thorous[i ].Snum, i);
CalculationAo.DicBoardInfo[i] = stationTbridoDataBll.DicHeaderStationFun(CalculationAo.ThisDevConfig.ReportDisTemp, CalculationAo.Thorous[i].Snum, i);
Test_Parameter model = test_ParametersList.Where(x => x.Id == i).FirstOrDefault();
if (model != null)
{
......@@ -177,7 +182,12 @@ namespace GKHTRBC16P.FunMov
int[] Vtype = { 2, 3, 5, 8 };
Test_Parameter model = list.FirstOrDefault(x => x.Id == slot);
if (!Vtype.Contains(CalculationAo.Thorous[slot].Waytype))
CalculationAo.DicBoardInfo[slot] = stationDataBll.DicHeaderStationFun(CalculationAo.ThisDevConfig.ReportDisTemp, CalculationAo.Thorous[slot].Snum, slot);
{
if (CalculationAo.Thorous[slot].Waytype == 9)
CalculationAo.DicBoardInfo[slot] = stationDataBll.DicHeaderStationFun9(CalculationAo.ThisDevConfig.ReportDisTemp, CalculationAo.Thorous[slot].Snum, slot);
else
CalculationAo.DicBoardInfo[slot] = stationDataBll.DicHeaderStationFun(CalculationAo.ThisDevConfig.ReportDisTemp, CalculationAo.Thorous[slot].Snum, slot);
}
else
CalculationAo.DicBoardInfo[slot] = stationTbridoDataBll.DicHeaderStationFun(CalculationAo.ThisDevConfig.ReportDisTemp, CalculationAo.Thorous[slot].Snum, slot);
if (model != null)
......@@ -296,9 +306,11 @@ namespace GKHTRBC16P.FunMov
//element2 = sysElementBll.FirstOrDefault(x => x.Passageway == CalculationAo.ThisDevConfig.Passageway && x.ClassName == "Home_Status_Tbrido" && x.ClassWhere == CalculationAo.ThisDevConfig.ComPowerNum.ToString() && x.ThisWidth == CalculationAo.ThisDevConfig.FWidth && x.ThisHeight == CalculationAo.ThisDevConfig.FHeight);
if (element1 == null)
{
element1 = sysElementBll.LastOrDefault();
element1.Id = element1.Id + 1;
UIMessageTip.ShowOk("分辨率的元素设置需要维护!");
LogisTrac.WriteLog(this.GetType(), "分辨率的元素设置需要维护!");
return;
//return;
}
uiPanel1.Height = element1.uiPanelHeight;
uiDataGridView1.Height = element1.uiDataGridViewHeight;
......@@ -324,7 +336,7 @@ namespace GKHTRBC16P.FunMov
//uITextBox.ButtonSymbol = 362893;
//uITextBox.ButtonWidth = element1.uIButtonWidth;
//uITextBox.ButtonClick += new System.EventHandler(this.uiTextBox_ButtonClick);
uITextBox.DoubleClick += new System.EventHandler(this.uiTextBox_DoubleClick);
//uITextBox.DoubleClick += new System.EventHandler(this.uiTextBox_DoubleClick);
uITextBox.ReadOnly = true;
uILabel.Location = new Point(pointx, pointy);
uITextBox.Location = new Point(pointx + element1.uILabelWidth, pointy);
......@@ -422,23 +434,23 @@ namespace GKHTRBC16P.FunMov
}
for (int i = 0; i < CalculationAo.Thorous[board].Snum / 4; i++)
{
dev_Device_Grids[i].Id2 = Rcount + 1 + i;
dev_Device_Grids[i].Id2 = i+1;
dev_Device_Grids[i].IR2 = 0;
dev_Device_Grids4[i].Id2 = Rcount + 1 + i;
dev_Device_Grids4[i].Id2 = i + 1;
dev_Device_Grids4[i].IR2 = 0;
}
for (int i = 0; i < CalculationAo.Thorous[board].Snum / 4; i++)
{
dev_Device_Grids[i].Id3 = Rcount * 2 + 1 + i;
dev_Device_Grids[i].Id3 = Rcount * 1 + 1 + i;
dev_Device_Grids[i].IR3 = 0;
dev_Device_Grids4[i].Id3 = Rcount * 2 + 1 + i;
dev_Device_Grids4[i].Id3 = Rcount * 1 + 1 + i;
dev_Device_Grids4[i].IR3 = 0;
}
for (int i = 0; i < CalculationAo.Thorous[board].Snum / 4; i++)
{
dev_Device_Grids[i].Id4 = Rcount * 3 + 1 + i;
dev_Device_Grids[i].Id4 = Rcount * 1 + 1 + i;
dev_Device_Grids[i].IR4 = 0;
dev_Device_Grids4[i].Id4 = Rcount * 3 + 1 + i;
dev_Device_Grids4[i].Id4 = Rcount * 1 + 1 + i;
dev_Device_Grids4[i].IR4 = 0;
}
for (int j = 0; j < 8; j++)
......@@ -457,8 +469,8 @@ namespace GKHTRBC16P.FunMov
uiDataGridView4.Columns[j + 1].CellTemplate.Style.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold);
j++;
}
uiDataGridView2.Columns[1].HeaderText = "Io(mV)";
uiDataGridView2.Columns[5].HeaderText = "Io(mV)";
uiDataGridView2.Columns[1].HeaderText = "Io(mA)";
uiDataGridView2.Columns[5].HeaderText = "Io(mA)";
uiDataGridView2.Columns[3].HeaderText = "Vo(mV)";
uiDataGridView2.Columns[7].HeaderText = "Vo(mV)";
HeadShowLocal();
......@@ -755,6 +767,11 @@ namespace GKHTRBC16P.FunMov
if (CalculationAo.ComdData.TryGetValue(CalculationAo.BoardSS, out cdata))
DriverBoardRefresh.DCERDataShowRb40d(FrmMain.mainForm, param, CalculationAo.BoardSS, cdata);//数据处理
break;
case 9:
DriverBoardCom.BoardNowTestLs(FrmMain.mainForm, CalculationAo.BoardSS);//通道
if (CalculationAo.ComdData.TryGetValue(CalculationAo.BoardSS, out cdata))
DriverBoardRefresh.DCERDataShowSaveLs(FrmMain.mainForm, param, CalculationAo.BoardSS, cdata);//数据处理
break;
default:
break;
}
......@@ -1532,7 +1549,8 @@ namespace GKHTRBC16P.FunMov
public void inGridviewFontNo(UIDataGridView uIDataGridView, int r, int c)
{
this.BeginInvoke((EventHandler)(delegate {
uIDataGridView.Rows[r].DefaultCellStyle.Font = new System.Drawing.Font(Home_Status.home_Status.uiDataGridView1.Font, System.Drawing.FontStyle.Regular);
//if(uIDataGridView.Rows.Count>1)
uIDataGridView.Rows[r].DefaultCellStyle.Font = new System.Drawing.Font(Home_Status.home_Status.uiDataGridView1.Font, System.Drawing.FontStyle.Regular);
//uIDataGridView.Rows[r].DefaultCellStyle.BackColor = FrmMain.mainForm.BackColor;
}));
}
......
......@@ -364,10 +364,10 @@
<Control name="uiLabel3" text="创建时间:"/>
<Control name="uiLabel4" text="器件库:"/>
<Control name="uiLabel2" text="器件名称:"/>
<Control name="uiLabel7" text="漏电流下限(uA):"/>
<Control name="uiLabel7" text="漏电流下限(mA):"/>
<Control name="uiLabel9" text="反偏电压值(V):"/>
<Control name="uiLabel6" text="老化时间(h):"/>
<Control name="uiLabel8" text="漏电流上限(uA):"/>
<Control name="uiLabel8" text="漏电流上限(mA):"/>
<Control name="Com_Text_Type" text="0"/>
<Control name="uiLabel10" text="上电电压(上桥):"/>
<Control name="uiLabel11" text="下电电压(上桥):"/>
......
......@@ -359,10 +359,10 @@
<Control name="uiLabel3" text="Create Time:"/>
<Control name="uiLabel4" text="Device Library:"/>
<Control name="uiLabel2" text="Device Name:"/>
<Control name="uiLabel7" text="IR-min(uA):"/>
<Control name="uiLabel7" text="IR-min(mA):"/>
<Control name="uiLabel9" text="VR(V):"/>
<Control name="uiLabel6" text="Burn-in Time(h):"/>
<Control name="uiLabel8" text="IR-max(uA):"/>
<Control name="uiLabel8" text="IR-max(mA):"/>
<Control name="Com_Text_Type" text="0"/>
<Control name="uiLabel10" text="Power on voltage:"/>
<Control name="uiLabel11" text="Power down voltage:"/>
......
......@@ -1080,4 +1080,34 @@
<Pointx>2</Pointx>
<Pointy>4</Pointy>
</Sys_Element>
<Sys_Element>
<Id>38</Id>
<Passageway>16</Passageway>
<ClassName>Home_Status</ClassName>
<ClassWhere>17</ClassWhere>
<ThisWidth>1024</ThisWidth>
<ThisHeight>768</ThisHeight>
<uiPanelHeight>70</uiPanelHeight>
<uiDataGridViewHeight>550</uiDataGridViewHeight>
<uiDataGridViewRowHeight>22</uiDataGridViewRowHeight>
<uiDataGridView2Width1>50</uiDataGridView2Width1>
<uiDataGridView2Width2>68</uiDataGridView2Width2>
<uiDataGridView2Height>20</uiDataGridView2Height>
<uiDataGridView3Width1>0</uiDataGridView3Width1>
<uiDataGridView3Width2>0</uiDataGridView3Width2>
<uiDataGridView3Height>0</uiDataGridView3Height>
<Full>0</Full>
<uILabelWidth>42</uILabelWidth>
<uILabelHeight>28</uILabelHeight>
<uILabelFontSize>10</uILabelFontSize>
<uITextBoxWidth>80</uITextBoxWidth>
<uITextBoxHeight>28</uITextBoxHeight>
<uIButtonWidth>24</uIButtonWidth>
<ExAbout>2</ExAbout>
<ExColumn>4</ExColumn>
<Yexcessive>30</Yexcessive>
<Xexcessive>120</Xexcessive>
<Pointx>2</Pointx>
<Pointy>4</Pointy>
</Sys_Element>
</ArrayOfSys_Element>
\ No newline at end of file
......@@ -1740,24 +1740,24 @@ namespace GKHTRBC16P.RunLibrary
SaveStation[c * rows + r] = Math.Round(SI, CalculationAo.ThisDevConfig.DataLength.Length - 2);
SaveStation[c * rows + 40] = Math.Round(SV, CalculationAo.ThisDevConfig.DataLength.Length - 2);
Home_Status.home_Status.uiDataGridView2.Rows[r].Cells[c * 4 + 1].Value = ConvertDataOpear.GetShowDouble(SI, CalculationAo.ThisDevConfig.DataLength);
Home_Status.home_Status.uiDataGridView2.Rows[r].Cells[c * 4 + 3].Value = ConvertDataOpear.GetShowDouble(SI, CalculationAo.ThisDevConfig.DataLength);
if ((tes.Summary.MaxStation[c * rows + r] > (double)tes.EleUpper || SI > (double)tes.EleUpper) && tes.Id != 0)
Home_Status.home_Status.uiDataGridView2.Rows[r].Cells[c * 2 + 1].Style.ForeColor = Color.Red;
else if (SI < (double)tes.EleLower && tes.Id != 0)
Home_Status.home_Status.uiDataGridView2.Rows[r].Cells[c * 2 + 1].Style.ForeColor = Color.Yellow;
else
Home_Status.home_Status.uiDataGridView2.Rows[r].Cells[c * 2 + 1].Style.ForeColor = Color.Black;
if ((tes.Summary.MaxStation[c * rows + r] > (double)tes.EleUpper || SV > (double)tes.EleUpper) && tes.Id != 0)
Home_Status.home_Status.uiDataGridView2.Rows[r].Cells[c * 2 + 1].Style.ForeColor = Color.Red;
else if (SV < (double)tes.EleLower && tes.Id != 0)
Home_Status.home_Status.uiDataGridView2.Rows[r].Cells[c * 2 + 1].Style.ForeColor = Color.Yellow;
else
Home_Status.home_Status.uiDataGridView2.Rows[r].Cells[c * 2 + 1].Style.ForeColor = Color.Black;
Home_Status.home_Status.uiDataGridView2.Rows[r].Cells[c * 4 + 3].Value = ConvertDataOpear.GetShowDouble(SV, CalculationAo.ThisDevConfig.DataLength);
//if ((tes.Summary.MaxStation[c * rows + r] > (double)tes.EleUpper || SI > (double)tes.EleUpper) && tes.Id != 0)
// Home_Status.home_Status.uiDataGridView2.Rows[r].Cells[c * 2 + 1].Style.ForeColor = Color.Red;
//else if (SI < (double)tes.EleLower && tes.Id != 0)
// Home_Status.home_Status.uiDataGridView2.Rows[r].Cells[c * 2 + 1].Style.ForeColor = Color.Yellow;
//else
// Home_Status.home_Status.uiDataGridView2.Rows[r].Cells[c * 2 + 1].Style.ForeColor = Color.Black;
//if ((tes.Summary.MaxStation[c * rows + r] > (double)tes.EleUpper || SV > (double)tes.EleUpper) && tes.Id != 0)
// Home_Status.home_Status.uiDataGridView2.Rows[r].Cells[c * 2 + 1].Style.ForeColor = Color.Red;
//else if (SV < (double)tes.EleLower && tes.Id != 0)
// Home_Status.home_Status.uiDataGridView2.Rows[r].Cells[c * 2 + 1].Style.ForeColor = Color.Yellow;
//else
// Home_Status.home_Status.uiDataGridView2.Rows[r].Cells[c * 2 + 1].Style.ForeColor = Color.Black;
}
}
}));
double Dvol = (double)Convert.ToUInt32(ComRxdData[361].ToString("X2") + ComRxdData[360].ToString("X2"), 16) / 100;
JunIsTempVarz(WayId, tes, SaveStation, Dvol, cols, rows);
//JunIsTempVarz(WayId, tes, SaveStation, Dvol, cols, rows);
}
else
{
......@@ -1770,34 +1770,34 @@ namespace GKHTRBC16P.RunLibrary
}
}
} //将数据显示在datagridview
var SupplyRGPW = "";
if (tes.Id != 0)
{
if (tes.SupplyRGPW == 0)
SupplyRGPW = "+";
else
SupplyRGPW = "-";
}
if (CalculationAo.ThisDevConfig.SaveVoltage == 0 || CalculationAo.ThisDevConfig.SaveVoltage == 1)
{
double Dvol = (double)Convert.ToUInt32(ComRxdData[361].ToString("X2") + ComRxdData[360].ToString("X2"), 16) / 100;
Home_Status.home_Status.inVokeText(Home_Status.home_Status.EB_INVol, Dvol + SupplyRGPW);
}
else
{
Power_Data power_Data = ConvertDataOpear.GetPower(tes.PowerNo, CalculationAo.PowerList);
Home_Status.home_Status.inVokeText(Home_Status.home_Status.EB_INVol, power_Data.Voltage.ToString("0.0") + SupplyRGPW);
}
//var SupplyRGPW = "";
//if (tes.Id != 0)
//{
// if (tes.SupplyRGPW == 0)
// SupplyRGPW = "+";
// else
// SupplyRGPW = "-";
//}
//if (CalculationAo.ThisDevConfig.SaveVoltage == 0 || CalculationAo.ThisDevConfig.SaveVoltage == 1)
//{
// double Dvol = (double)Convert.ToUInt32(ComRxdData[361].ToString("X2") + ComRxdData[360].ToString("X2"), 16) / 100;
// Home_Status.home_Status.inVokeText(Home_Status.home_Status.EB_INVol, Dvol + SupplyRGPW);
//}
//else
//{
// Power_Data power_Data = ConvertDataOpear.GetPower(tes.PowerNo, CalculationAo.PowerList);
// Home_Status.home_Status.inVokeText(Home_Status.home_Status.EB_INVol, power_Data.Voltage.ToString("0.0") + SupplyRGPW);
//}
double v1 = ((double)Convert.ToUInt32(ComRxdData[20].ToString("X2") + ComRxdData[19].ToString("X2"), 16));
double v2 = ((double)Convert.ToUInt32(ComRxdData[22].ToString("X2") + ComRxdData[21].ToString("X2"), 16));
double v3 = ((double)Convert.ToUInt32(ComRxdData[24].ToString("X2") + ComRxdData[23].ToString("X2"), 16));
double v4 = ((double)Convert.ToUInt32(ComRxdData[26].ToString("X2") + ComRxdData[25].ToString("X2"), 16));
Home_Status.home_Status.inVokeText(Home_Status.home_Status.EB_INVol, v1 + "V");
Home_Status.home_Status.inVokeText(Home_Status.home_Status.EdZFConfig, v2 + "mV");
Home_Status.home_Status.inVokeText(Home_Status.home_Status.uiTextBox2, v3 + "mV");
Home_Status.home_Status.inVokeText(Home_Status.home_Status.uiTextBox3, v4 + "mV");
double v2 = ((double)Convert.ToUInt32(ComRxdData[22].ToString("X2") + ComRxdData[21].ToString("X2"), 16)) / 1000;
double v3 = ((double)Convert.ToUInt32(ComRxdData[24].ToString("X2") + ComRxdData[23].ToString("X2"), 16)) / 1000;
double v4 = ((double)Convert.ToUInt32(ComRxdData[26].ToString("X2") + ComRxdData[25].ToString("X2"), 16)) / 1000;
Home_Status.home_Status.inVokeText(Home_Status.home_Status.EB_INVol, ConvertDataOpear.GetShowDouble(v1, CalculationAo.ThisDevConfig.DataLength) + "V");
Home_Status.home_Status.inVokeText(Home_Status.home_Status.EdZFConfig, ConvertDataOpear.GetShowDouble(v2, CalculationAo.ThisDevConfig.DataLength) + "V");
Home_Status.home_Status.inVokeText(Home_Status.home_Status.uiTextBox2, ConvertDataOpear.GetShowDouble(v3, CalculationAo.ThisDevConfig.DataLength) + "V");
Home_Status.home_Status.inVokeText(Home_Status.home_Status.uiTextBox3, ConvertDataOpear.GetShowDouble(v4, CalculationAo.ThisDevConfig.DataLength) + "V");
CalculationAo.ZFConfig[WayId] = ComRxdData[6];
Home_Status.home_Status.inVokeText(Home_Status.home_Status.Txt_direction, "");
//Home_Status.home_Status.inVokeText(Home_Status.home_Status.Txt_direction, "");
Home_Status.home_Status.inVokeText(Home_Status.home_Status.Lastatus, ConvertDataOpear.StringRunState(CalculationAo.ThisDevConfig.Language, CalculationAo.HTRBOT[WayId, 12], tes)); //运行状态
Home_Status.home_Status.inVokeText(Home_Status.home_Status.LBRecCount, tes.Summary.RecordNum.ToString());
}
......
......@@ -703,7 +703,7 @@ namespace GKHTRBC16P.RunLibrary
}
public static void DCERDataShowSaveLs(UIForm uIForm, Test_Parameter tes, int WayId, int[] ComRxdData)
{
double[] SaveStation = new double[80];//CalculationAo.ThisDevConfig.Station
double[] SaveStation = new double[84];//CalculationAo.ThisDevConfig.Station
try
{
double SI, SV, twsin = 0;
......@@ -721,6 +721,14 @@ namespace GKHTRBC16P.RunLibrary
SaveStation[m] = Math.Round(SI, CalculationAo.ThisDevConfig.DataLength.Length - 2);
SaveStation[m + 40] = Math.Round(SV, CalculationAo.ThisDevConfig.DataLength.Length - 2);
}
double v1 = ((double)Convert.ToUInt32(ComRxdData[20].ToString("X2") + ComRxdData[19].ToString("X2"), 16));
double v2 = ((double)Convert.ToUInt32(ComRxdData[22].ToString("X2") + ComRxdData[21].ToString("X2"), 16)) / 1000;
double v3 = ((double)Convert.ToUInt32(ComRxdData[24].ToString("X2") + ComRxdData[23].ToString("X2"), 16)) / 1000;
double v4 = ((double)Convert.ToUInt32(ComRxdData[26].ToString("X2") + ComRxdData[25].ToString("X2"), 16)) / 1000;
SaveStation[80] = v1;
SaveStation[81] = v2;
SaveStation[82] = v3;
SaveStation[83] = v4;
CalculationAo.DateTimeBoard[tes.Id] = DateTime.Now;
//间隔时间保存数据
//tes.TotalTime = Math.Round(((DateTime.Now - begintime).TotalMinutes - CalculationAo.ThisDevConfig.TimeInterVal) / 60, 2);
......@@ -728,21 +736,10 @@ namespace GKHTRBC16P.RunLibrary
Oven_Data oven_Data = ConvertDataOpear.GetOven(tes.OvenNo, CalculationAo.OvenList);
Power_Data power_Data = new Power_Data();//ConvertDataOpear.GetPower(tes.PowerNo, CalculationAo.PowerList);
//stationDataBl.Addto(SaveStation, tes.ParmId, tes.BatchName, tes.TotalTime, CurrTime, oven_Data, power_Data);
if (CalculationAo.ThisDevConfig.SaveVoltage == 0 || CalculationAo.ThisDevConfig.SaveVoltage == 2)
{
double Dvol = (double)Convert.ToUInt32(ComRxdData[339].ToString("X2") + ComRxdData[338].ToString("X2") + ComRxdData[337].ToString("X2") + ComRxdData[336].ToString("X2"), 16) / 100;
power_Data.Voltage = Dvol;
}
else
{
power_Data = ConvertDataOpear.GetPower(tes.PowerNo, CalculationAo.PowerList);
}
double Vg = (double)Convert.ToUInt32(ComRxdData[345].ToString("X2") + ComRxdData[344].ToString("X2") + ComRxdData[343].ToString("X2") + ComRxdData[342].ToString("X2"), 16) / 100;
int[] cureeint = tes.Summary.TransfiniteSum;
int Sinvalid = 0;
double[] additional = new double[10];
List<int> alarm = new List<int>();
additional[0] = Vg;
tes.Summary.MaxStation = FrmMain.mainForm.stationDataBl.ContrastStation(tes.Summary.MaxStation, (double)tes.EleUpper, SaveStation, ref cureeint, ref Sinvalid, ref alarm);//最大为80
tes.Summary.MaxStatin = String.Join(",", tes.Summary.MaxStation);
tes.Summary.AgvStatin = String.Join(",", tes.Summary.AgvStation);
......@@ -752,7 +749,7 @@ namespace GKHTRBC16P.RunLibrary
tes.Summary.Invalids = Sinvalid.ToString();
//testParmBl.UpdateSum(tes);
//var stationlist = stationDataBl.GetobjecValue(tes.ParmId, tes.BatchName, CalculationAo.Dic_Station);
var stationlist = FrmMain.mainForm.stationDataBl.Addto(SaveStation, FrmMain.mainForm.CurrTime, oven_Data, power_Data, tes, CalculationAo.DicBoardInfo[WayId + 1], additional);
var stationlist = FrmMain.mainForm.stationDataBl.Addto9(SaveStation, FrmMain.mainForm.CurrTime, oven_Data, power_Data, tes, CalculationAo.DicBoardInfo[WayId + 1], additional);
FrmMain.mainForm.alarmLogBll.Batch_Alarm(alarm, SaveStation, tes, FrmMain.mainForm.CurrTime);
CsvFileUtility.SaveArrayToCSVFiledt<DataTable>(stationlist, CalculationAo.ThisDevConfig.AutoSavePath + tes.BatchFileName + ".csv", CalculationAo.Thorous[WayId + 1].Snum + CalculationAo.DicBoardInfo[WayId + 1].Dlen);
//CalculationAo.ComSendData[WayId] = stationlist;
......
......@@ -384,7 +384,10 @@ namespace GKHTRBC16P.ToolLibrary
if (!Vtype.Contains(thiscum.Ishtrb))
{
StationDataBll stationDataBll = new StationDataBll();
int ret = stationDataBll.Create(thiscum.BatchName, thiscum.BatchName + "_Index", CalculationAo.Thorous[mparid].Snum);
if(thiscum.Ishtrb == 9)
stationDataBll.Create9(thiscum.BatchName, thiscum.BatchName + "_Index", CalculationAo.Thorous[mparid].Snum);
else
stationDataBll.Create(thiscum.BatchName, thiscum.BatchName + "_Index", CalculationAo.Thorous[mparid].Snum);
int newheard = CalculationAo.Thorous[mparid].Snum + CalculationAo.DicBoardInfo[mparid].Dlen;
string[] strheader = CalculationAo.DicBoardInfo[mparid].HeaderStation;
string[] newHead = new string[newheard];
......
......@@ -89,6 +89,11 @@ namespace GKHTRBC16P.ToolLibrary
Txt_ReachTime.IntValue = 0;
Txt_HimiReachTime.IntValue = 0;
uiTextBox1.DoubleValue = 10;
uiTextBox2.DoubleValue = 10;
uiTextBox3.DoubleValue = 10;
uiTextBox4.DoubleValue = 10;
uiTextBox5.DoubleValue = 10;
if (CalculationAo.ThisDevConfig.IsVgs == 0)
{
Txt_BackVol.Size = new Size(79, 29);
......@@ -176,6 +181,16 @@ namespace GKHTRBC16P.ToolLibrary
sdev_device.VgsP = Txt_Vgsp.Text.ToDecimal();
sdev_device.VgsN = Txt_Vgsn.Text.ToDecimal();
sdev_device.Vg = Txt_Vg.Text.ToDecimal();
sdev_device.hv = uiTextBox1.Text.ToDecimal();
sdev_device.vin = uiTextBox2.Text.ToDecimal();
sdev_device.vcc = uiTextBox3.Text.ToDecimal();
sdev_device.ven = uiTextBox4.Text.ToDecimal();
var cddata = "";
for (int i = 0; i < 40; i++)
{
cddata = cddata + uiTextBox5.IntValue.ToString() + ",";
}
sdev_device.cdata = cddata.Substring(0, cddata.Length - 1);
sdev_device.PowerIf = Check_PowerIf.Checked ? 0 : 1;
......@@ -340,6 +355,17 @@ namespace GKHTRBC16P.ToolLibrary
sdev_device.VgsN = Txt_Vgsn.Text.ToDecimal();
sdev_device.Vg = Txt_Vg.Text.ToDecimal();
sdev_device.hv = uiTextBox1.Text.ToDecimal();
sdev_device.vin = uiTextBox2.Text.ToDecimal();
sdev_device.vcc = uiTextBox3.Text.ToDecimal();
sdev_device.ven = uiTextBox4.Text.ToDecimal();
var cddata = "";
for (int i = 0; i < 40; i++)
{
cddata = cddata + uiTextBox5.IntValue.ToString() + ",";
}
sdev_device.cdata = cddata.Substring(0, cddata.Length - 1);
sdev_device.PowerIf = Check_PowerIf.Checked ? 0 : 1;
sdev_device.OvenIf = Check_OvenIf.Checked ? 0 : 1;
......@@ -402,6 +428,17 @@ namespace GKHTRBC16P.ToolLibrary
sdev_device.VgsN = Txt_Vgsn.Text.ToDecimal();
sdev_device.Vg = Txt_Vg.Text.ToDecimal();
sdev_device.hv = uiTextBox1.Text.ToDecimal();
sdev_device.vin = uiTextBox2.Text.ToDecimal();
sdev_device.vcc = uiTextBox3.Text.ToDecimal();
sdev_device.ven = uiTextBox4.Text.ToDecimal();
var cddata = "";
for (int i = 0; i < 40; i++)
{
cddata = cddata + uiTextBox5.IntValue.ToString() + ",";
}
sdev_device.cdata = cddata.Substring(0, cddata.Length - 1);
sdev_device.PowerIf = Check_PowerIf.Checked ? 0 : 1;
sdev_device.OvenIf = Check_OvenIf.Checked ? 0 : 1;
......@@ -496,6 +533,16 @@ namespace GKHTRBC16P.ToolLibrary
Txt_Vgsn.Text = curenode.VgsN.ToString();
Txt_Vg.Text = curenode.Vg.ToString();
uiTextBox1.Text = curenode.hv.ToString();
uiTextBox2.Text = curenode.vin.ToString();
uiTextBox3.Text = curenode.vcc.ToString();
uiTextBox4.Text = curenode.ven.ToString();
if (!string.IsNullOrEmpty(curenode.cdata))
{
string[] cddata = curenode.cdata.Split(",");
uiTextBox5.Text = cddata[0];
}
Check_PowerIf.Checked = curenode.PowerIf == 0;
Check_OvenIf.Checked = curenode.OvenIf == 0;
......
......@@ -202,17 +202,30 @@ namespace GKHTRBC16P.ToolLibrary
ShowVgsAndBroad();
}
}
var pts = prmDtsList.FirstOrDefault(x => x.Id == tparm.Id);
if (pts != null)
//var pts = prmDtsList.FirstOrDefault(x => x.Id == tparm.Id);
//if (pts != null)
//{
// uiTextBox1.IntValue = (int)pts.hv;
// uiTextBox2.IntValue = (int)pts.vin;
// uiTextBox3.IntValue = (int)pts.vcc;
// uiTextBox4.IntValue = (int)pts.ven;
// if (pts.cdata != null)
// {
// string[] strdata = pts.cdata.Split(',');
// uiTextBox5.IntValue = Convert.ToInt32(strdata[0]);
// }
//}
var dev = devicelist.FirstOrDefault(x => x.Id == tparm.DeviceId);
if (dev != null)
{
uiTextBox1.IntValue = (int)pts.hv;
uiTextBox2.IntValue = (int)pts.vin;
uiTextBox3.IntValue = (int)pts.vcc;
uiTextBox4.IntValue = (int)pts.ven;
if (pts.cdata != null)
uiTextBox1.Text = dev.hv.ToString();
uiTextBox2.Text = dev.vin.ToString();
uiTextBox3.Text = dev.vcc.ToString();
uiTextBox4.Text = dev.ven.ToString();
if (!string.IsNullOrEmpty(dev.cdata))
{
string[] strdata = pts.cdata.Split(',');
uiTextBox5.IntValue = Convert.ToInt32(strdata[0]);
string[] cddata = dev.cdata.Split(",");
uiTextBox5.Text = cddata[0];
}
}
PolarityRGBoo = true;
......@@ -227,7 +240,7 @@ namespace GKHTRBC16P.ToolLibrary
private void ShowBroadCtr()
{
uiGroupBox2.Visible = true;
uiGroupBox2.Location = new Point(333, 126);
uiGroupBox2.Location = new Point(333,226);
uiGroupBox3.Visible = false;
}
private void ShowVgsAndBroad()
......@@ -345,9 +358,9 @@ namespace GKHTRBC16P.ToolLibrary
else if (tparm.Ishtrb == 9)
{
int hv = uiTextBox1.IntValue;
int vin = uiTextBox2.IntValue * 1000;
int vcc = uiTextBox3.IntValue * 1000;
int ven = uiTextBox4.IntValue * 1000;
int vin = uiTextBox2.IntValue * 1000;//* 1000
int vcc = uiTextBox3.IntValue * 1000;//* 1000
int ven = uiTextBox4.IntValue * 1000;//* 1000
int cdata = uiTextBox5.IntValue;
var result = CcbsIv.Instance.FboarddataTestParm(this, thor.ComId - 1, ChangeID + 1, 0x03, 0X0A, hv, vin, vcc, ven, cdata, 107);
if (result == 0)
......@@ -644,7 +657,13 @@ namespace GKHTRBC16P.ToolLibrary
{
if (bDialog)
{
CcbsIv.Instance.FboarddataTestInPow(this, thor.ComId - 1, iChangeID + 1, 0x05, 0x0A, 0x0F, 0x00, 0x00, 26);//0x05//oxbb8//0X0D0A0B0C
//VIN > VCC > VEN-------------->0X0D0A0B0C
//VIN > VEN > VCC-------------->0X0D0A0C0B
//VCC > VEN > VIN-------------->0X0D0C0A0B
//VCC > VIN > VEN-------------->0X0D0B0A0C
//VEN > VIN > VCC-------------->0X0D0B0C0A
//VEN > VCC > VIN-------------->0X0D0C0B0A
CcbsIv.Instance.FboarddataTestInPow(this, thor.ComId - 1, iChangeID + 1, 0x05, 0x0A, 0x0F, 0x00, 0X0D0A0B0C, 26);//0x05//oxbb8//0X0D0A0B0C
Thread.Sleep(300);
CcbsIv.Instance.FboarddataTestStatus(this, thor.ComId - 1, iChangeID + 1, 0x04, 0x0A, 0xFF, 24);
bResult = true;
......
......@@ -184,7 +184,7 @@ namespace GKHTRBC16P.ToolLibrary
uiPagination1.TotalCount = total;
int[] Vtype = { 2, 3, 5, 8 };
if (!Vtype.Contains(CalculationAo.Thorous[tId].Waytype))
uiDataGridViewStationDt.DataSource = stationDataBll.GetPageList(parmid, tablen, "", 1, uiPagination1.PageSize, out total);
uiDataGridViewStationDt.DataSource = stationDataBll.GetPageList9(parmid, tablen, "", 1, uiPagination1.PageSize, out total);
else
uiDataGridViewStationDt.DataSource = StationTbridoDataBll.GetPageList(parmid, tablen, "", 1, uiPagination1.PageSize, out total);
}
......@@ -226,7 +226,7 @@ namespace GKHTRBC16P.ToolLibrary
uiPagination1.TotalCount = total;
int[] Vtype = { 2, 3, 5, 8 };
if (!Vtype.Contains(CalculationAo.Thorous[tId].Waytype))
uiDataGridViewStationDt.DataSource = stationDataBll.GetPageList(parmid, tablen, "", pageIndex, count, out total);
uiDataGridViewStationDt.DataSource = stationDataBll.GetPageList9(parmid, tablen, "", pageIndex, count, out total);
else
uiDataGridViewStationDt.DataSource = StationTbridoDataBll.GetPageList(parmid, tablen, "", pageIndex, count, out total);
uiDataGridViewStationDt.Columns[0].Width = 180;
......@@ -260,7 +260,7 @@ namespace GKHTRBC16P.ToolLibrary
//设置分页控件总数
uiPagination1.TotalCount = total;
if (CalculationAo.ThisDevConfig.Isbridge == 0)
uiDataGridViewStationDt.DataSource = stationDataBll.GetPageList(parmid, tablen, "", 1, uiPagination1.PageSize, out total);
uiDataGridViewStationDt.DataSource = stationDataBll.GetPageList9(parmid, tablen, "", 1, uiPagination1.PageSize, out total);
else
uiDataGridViewStationDt.DataSource = StationTbridoDataBll.GetPageList(parmid, tablen, "", 1, uiPagination1.PageSize, out total);
if (CalculationAo.ThisDevConfig.FWidth == 1024)
......
......@@ -364,10 +364,10 @@
<Control name="uiLabel3" text="创建时间:"/>
<Control name="uiLabel4" text="器件库:"/>
<Control name="uiLabel2" text="器件名称:"/>
<Control name="uiLabel7" text="漏电流下限(uA):"/>
<Control name="uiLabel7" text="漏电流下限(mA):"/>
<Control name="uiLabel9" text="反偏电压值(V):"/>
<Control name="uiLabel6" text="老化时间(h):"/>
<Control name="uiLabel8" text="漏电流上限(uA):"/>
<Control name="uiLabel8" text="漏电流上限(mA):"/>
<Control name="Com_Text_Type" text="0"/>
<Control name="uiLabel10" text="上电电压(上桥):"/>
<Control name="uiLabel11" text="下电电压(上桥):"/>
......
......@@ -359,10 +359,10 @@
<Control name="uiLabel3" text="Create Time:"/>
<Control name="uiLabel4" text="Device Library:"/>
<Control name="uiLabel2" text="Device Name:"/>
<Control name="uiLabel7" text="IR-min(uA):"/>
<Control name="uiLabel7" text="IR-min(mA):"/>
<Control name="uiLabel9" text="VR(V):"/>
<Control name="uiLabel6" text="Burn-in Time(h):"/>
<Control name="uiLabel8" text="IR-max(uA):"/>
<Control name="uiLabel8" text="IR-max(mA):"/>
<Control name="Com_Text_Type" text="0"/>
<Control name="uiLabel10" text="Power on voltage:"/>
<Control name="uiLabel11" text="Power down voltage:"/>
......
......@@ -1080,4 +1080,34 @@
<Pointx>2</Pointx>
<Pointy>4</Pointy>
</Sys_Element>
<Sys_Element>
<Id>38</Id>
<Passageway>16</Passageway>
<ClassName>Home_Status</ClassName>
<ClassWhere>17</ClassWhere>
<ThisWidth>1024</ThisWidth>
<ThisHeight>768</ThisHeight>
<uiPanelHeight>70</uiPanelHeight>
<uiDataGridViewHeight>550</uiDataGridViewHeight>
<uiDataGridViewRowHeight>22</uiDataGridViewRowHeight>
<uiDataGridView2Width1>50</uiDataGridView2Width1>
<uiDataGridView2Width2>68</uiDataGridView2Width2>
<uiDataGridView2Height>20</uiDataGridView2Height>
<uiDataGridView3Width1>0</uiDataGridView3Width1>
<uiDataGridView3Width2>0</uiDataGridView3Width2>
<uiDataGridView3Height>0</uiDataGridView3Height>
<Full>0</Full>
<uILabelWidth>42</uILabelWidth>
<uILabelHeight>28</uILabelHeight>
<uILabelFontSize>10</uILabelFontSize>
<uITextBoxWidth>80</uITextBoxWidth>
<uITextBoxHeight>28</uITextBoxHeight>
<uIButtonWidth>24</uIButtonWidth>
<ExAbout>2</ExAbout>
<ExColumn>4</ExColumn>
<Yexcessive>30</Yexcessive>
<Xexcessive>120</Xexcessive>
<Pointx>2</Pointx>
<Pointy>4</Pointy>
</Sys_Element>
</ArrayOfSys_Element>
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论