|
|
|
|
@ -878,7 +878,18 @@ where workorder.workorder_id = '{workOrderNo}'";
|
|
|
|
|
}
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
public DataTable GetHFPlcValueList(string deviceCode)
|
|
|
|
|
{
|
|
|
|
|
//根据工单获取成型机
|
|
|
|
|
string sql = $@"SELECT * FROM mes_plc_log WHERE device_code ='{deviceCode}' and address='DB1.DBW6034' ORDER BY create_time DESC";
|
|
|
|
|
|
|
|
|
|
DataSet dtset = Utils.netClientDBHelper.getDataSet(sql);
|
|
|
|
|
if (dtset != null && dtset.Tables.Count > 0 && dtset.Tables[0].Rows.Count > 0)
|
|
|
|
|
{
|
|
|
|
|
return dtset.Tables[0];
|
|
|
|
|
}
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取订单信息
|
|
|
|
|
|