|
|
|
@ -244,11 +244,12 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl
|
|
|
|
|
|
|
|
|
|
DB2104Helper dB2104Helper = new DB2104Helper();
|
|
|
|
|
|
|
|
|
|
var data = GetTable();
|
|
|
|
|
ComboE.CALeftOrRight.DataSource = data.Copy();
|
|
|
|
|
ComboE.HALeftOrRight.DataSource = data.Copy();
|
|
|
|
|
ComboE.CBLeftOrRight.DataSource = data.Copy();
|
|
|
|
|
ComboE.HBLeftOrRight.DataSource = data.Copy();
|
|
|
|
|
var dataA = GetTableA();
|
|
|
|
|
var dataB = GetTableB();
|
|
|
|
|
ComboE.CALeftOrRight.DataSource = dataA.Copy();
|
|
|
|
|
ComboE.HALeftOrRight.DataSource = dataA.Copy();
|
|
|
|
|
ComboE.CBLeftOrRight.DataSource = dataB.Copy();
|
|
|
|
|
ComboE.HBLeftOrRight.DataSource = dataB.Copy();
|
|
|
|
|
|
|
|
|
|
var ha = dB2104Helper.GetAHotWater;
|
|
|
|
|
TextE.HADeviation.MCValue = ha.differ;
|
|
|
|
@ -269,23 +270,41 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private DataTable GetTable()
|
|
|
|
|
private DataTable GetTableA()
|
|
|
|
|
{
|
|
|
|
|
DataTable dataTable = new System.Data.DataTable();
|
|
|
|
|
var dataTable = GetDefaultTable();
|
|
|
|
|
DataRow dr = dataTable.NewRow();
|
|
|
|
|
|
|
|
|
|
dr[0] = "2";
|
|
|
|
|
dr[1] = "1,2";
|
|
|
|
|
dataTable.Rows.Add(dr);
|
|
|
|
|
dr = dataTable.NewRow();
|
|
|
|
|
dr[0] = "1";
|
|
|
|
|
dr[1] = "3,4";
|
|
|
|
|
dataTable.Rows.Add(dr);
|
|
|
|
|
|
|
|
|
|
return dataTable;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private DataTable GetDefaultTable()
|
|
|
|
|
{
|
|
|
|
|
DataTable dataTable = new DataTable();
|
|
|
|
|
dataTable.Columns.Add("CmbValue", typeof(string));
|
|
|
|
|
dataTable.Columns.Add("CmbDisplay", typeof(string));
|
|
|
|
|
return dataTable;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private DataTable GetTableB()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
var dataTable = GetDefaultTable();
|
|
|
|
|
DataRow dr = dataTable.NewRow();
|
|
|
|
|
dr[0] = "0";
|
|
|
|
|
dr[1] = "无";
|
|
|
|
|
dr[0] = "2";
|
|
|
|
|
dr[1] = "5,6";
|
|
|
|
|
dataTable.Rows.Add(dr);
|
|
|
|
|
dr = dataTable.NewRow();
|
|
|
|
|
dr[0] = "1";
|
|
|
|
|
dr[1] = "左";
|
|
|
|
|
dataTable.Rows.Add(dr);
|
|
|
|
|
dr = dataTable.NewRow();
|
|
|
|
|
dr[0] = "2";
|
|
|
|
|
dr[1] = "右";
|
|
|
|
|
dr[1] = "7,8";
|
|
|
|
|
dataTable.Rows.Add(dr);
|
|
|
|
|
|
|
|
|
|
return dataTable;
|
|
|
|
|