杨威 4 months ago
parent 68cfadd7fa
commit 9d552e8112

@ -37,6 +37,24 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
DataTable table = DataTable table =
DBHelp.GetTable(@"select Id, Name, HighSpeed, LowSpeed, WeightSlow, Precut, JogTime from MetageSetting"); DBHelp.GetTable(@"select Id, Name, HighSpeed, LowSpeed, WeightSlow, Precut, JogTime from MetageSetting");
foreach (DataRow row in table.Rows)
{
string name=row["name"].ToString();
if(name == "大仓G")
{
row["name"] = "大仓J";
}
else
{
if (name == "大仓J")
{
row["name"] = "大仓G";
}
}
}
if (this._materialGridControl != null && this._materialGridControl.BaseControl != null) if (this._materialGridControl != null && this._materialGridControl.BaseControl != null)
{ {
this._materialGridControl.BaseControl.BindDataSource = null; this._materialGridControl.BaseControl.BindDataSource = null;

@ -24,9 +24,6 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
int jobTime = start + 16; int jobTime = start + 16;
PlcConnect.Instance.Write($"DB2107.{highSpeed}.0", view.HighSpeed); PlcConnect.Instance.Write($"DB2107.{highSpeed}.0", view.HighSpeed);
PlcConnect.Instance.Write($"DB2107.{lowSpeed}.0", view.LowSpeed); PlcConnect.Instance.Write($"DB2107.{lowSpeed}.0", view.LowSpeed);
PlcConnect.Instance.Write($"DB2107.{weightSlow}.0", view.WeightSlow); PlcConnect.Instance.Write($"DB2107.{weightSlow}.0", view.WeightSlow);
PlcConnect.Instance.Write($"DB2107.{precut}.0", view.Precut); PlcConnect.Instance.Write($"DB2107.{precut}.0", view.Precut);

@ -292,7 +292,23 @@ namespace Mesnac.Action.ChemicalWeighing.OliveEQSetting
} }
DataTable table = DataTable table =
DBHelp.GetTable(@"select Id, Name, HighSpeed, LowSpeed, WeightSlow, Precut, JogTime from MetageSetting"); DBHelp.GetTable(@"select Id, Name, HighSpeed, LowSpeed, WeightSlow, Precut, JogTime from MetageSetting order by Soc");
foreach (DataRow row in table.Rows)
{
string name = row["name"].ToString();
if (name == "大仓G")
{
row["name"] = "大仓J";
}
else
{
if (name == "大仓J")
{
row["name"] = "大仓G";
}
}
}
if (materialGridControl != null && materialGridControl.BaseControl != null) if (materialGridControl != null && materialGridControl.BaseControl != null)
{ {

Loading…
Cancel
Save