增加 兜底时记录订货号 增加常量 app.config配置文件
This commit is contained in:
@@ -363,12 +363,22 @@ namespace MesWork
|
||||
/// <summary>
|
||||
/// 更新过站记录为完成(case 19 请求保存时调用)
|
||||
/// </summary>
|
||||
public static bool UpdateStationComplete(string engineNo, string stationNo, decimal weight)
|
||||
public static bool UpdateStationComplete(string engineNo, string stationNo, decimal weight,
|
||||
string modelNo = "", string orderNo = "", string palletNo = "", string stationName = "",
|
||||
decimal addOilQty = 0, decimal extractOilQty = 0, decimal density = 0, string worker = "")
|
||||
{
|
||||
var sqlParameter = new SqlParameter[] {
|
||||
new SqlParameter("@发动机号", engineNo),
|
||||
new SqlParameter("@工位号", stationNo),
|
||||
new SqlParameter("@称重重量", weight)
|
||||
new SqlParameter("@称重重量", weight),
|
||||
new SqlParameter("@机型号", modelNo),
|
||||
new SqlParameter("@工单号", orderNo),
|
||||
new SqlParameter("@托盘号", palletNo),
|
||||
new SqlParameter("@工位名称", stationName),
|
||||
new SqlParameter("@加油量", addOilQty),
|
||||
new SqlParameter("@抽油量", extractOilQty),
|
||||
new SqlParameter("@油密度", density),
|
||||
new SqlParameter("@操作者", worker)
|
||||
};
|
||||
SqlOperation.ExecuteStoredProcedure("过站记录_完成", sqlParameter, out DataTable dt, out string err);
|
||||
return dt != null && dt.Rows.Count > 0 && dt.Rows[0]["result"].ToString() == "1";
|
||||
|
||||
Reference in New Issue
Block a user