|
|
@ -202,16 +202,13 @@ namespace Mesnac.Action.ChemicalWeighing.FinishBatch.SaveHelper
|
|
|
|
{
|
|
|
|
{
|
|
|
|
throw new Exception(Mesnac.Basic.LanguageHelper.DataBaseConnectError);
|
|
|
|
throw new Exception(Mesnac.Basic.LanguageHelper.DataBaseConnectError);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
string sqlStr = @"insert into Report_WetMixer
|
|
|
|
string sqlStr = @"insert into Report_WetMixer (reportId, eqNo) values (@reportId, @eqNo)";
|
|
|
|
(reportId, eqName)
|
|
|
|
|
|
|
|
values
|
|
|
|
|
|
|
|
(@reportId, @eqName)";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dbHelper.ClearParameter();
|
|
|
|
dbHelper.ClearParameter();
|
|
|
|
dbHelper.CommandType = CommandType.Text;
|
|
|
|
dbHelper.CommandType = CommandType.Text;
|
|
|
|
dbHelper.CommandText = sqlStr;
|
|
|
|
dbHelper.CommandText = sqlStr;
|
|
|
|
dbHelper.AddParameter("@eqName", wetMixer.eqNo);
|
|
|
|
dbHelper.AddParameter("@eqNo", wetMixer.eqNo);
|
|
|
|
dbHelper.AddParameter("@reportId", reportId);
|
|
|
|
dbHelper.AddParameter("@reportId", reportId);
|
|
|
|
dbHelper.ExecuteNonQuery();
|
|
|
|
dbHelper.ExecuteNonQuery();
|
|
|
|
|
|
|
|
|
|
|
|