|
|
@@ -9759,6 +9759,13 @@ namespace Dongke.IBOSS.PRD.Service.PMModuleLogic
|
|
|
remarks = "【试水不合格:" + productionData.LeakFlag5Position + "】";
|
|
|
}
|
|
|
}
|
|
|
+ else if (productionData.ProcedureName.Contains("补裂"))
|
|
|
+ {
|
|
|
+ if (!string.IsNullOrWhiteSpace(productionData.LeakFlag6Position))
|
|
|
+ {
|
|
|
+ remarks = "【补裂位置:" + productionData.LeakFlag6Position + "】";
|
|
|
+ }
|
|
|
+ }
|
|
|
productionData.Remarks = remarks;
|
|
|
//errMsg = AddProductionData(oracleTrConn, accountDate, productionData, sUserInfo, out OutSpecialRepairflag);
|
|
|
errMsg = AddFinishCheckProductionData(oracleTrConn, accountDate, productionData, sUserInfo, out OutSpecialRepairflag);
|
|
|
@@ -10273,6 +10280,74 @@ namespace Dongke.IBOSS.PRD.Service.PMModuleLogic
|
|
|
});
|
|
|
|
|
|
}
|
|
|
+ else if (productionData.ProcedureName.Contains("补裂"))
|
|
|
+ {
|
|
|
+ if (!string.IsNullOrWhiteSpace(productionData.LeakFlag6Position))
|
|
|
+ {
|
|
|
+ oracleTrConn.ExecuteNonQuery(@"UPDATE TP_PM_GROUTINGDAILYDETAIL SET LEAKFLAG6 = :LEAKFLAG6
|
|
|
+ WHERE groutingdailydetailid = :groutingdailydetailid ",
|
|
|
+ new OracleParameter[] {
|
|
|
+ new OracleParameter(":LEAKFLAG6", "0"),
|
|
|
+ new OracleParameter(":groutingdailydetailid", groutingdailydetailid)
|
|
|
+ });
|
|
|
+
|
|
|
+ //判断是否存在,保存最新的一条
|
|
|
+ string position6 = @" SELECT t.RELATIONID FROM TP_PM_BARCODELEAKPOSITION t
|
|
|
+ WHERE t.BARCODE = :BARCODE and t.LEAKTYPE = 6";
|
|
|
+
|
|
|
+ OracleParameter[] position6par = new OracleParameter[]
|
|
|
+ {
|
|
|
+ new OracleParameter(":BARCODE", OracleDbType.NVarchar2, productionData.Barcode, ParameterDirection.Input),
|
|
|
+ };
|
|
|
+ DataTable position6Table = oracleTrConn.GetSqlResultToDt(position6, position6par);
|
|
|
+
|
|
|
+ if (position6Table != null && position6Table.Rows.Count > 0)
|
|
|
+ {
|
|
|
+ for (int i = 0; i < position6Table.Rows.Count; i++)
|
|
|
+ {
|
|
|
+ oracleTrConn.ExecuteNonQuery(@"DELETE FROM TP_PM_BARCODELEAKPOSITION
|
|
|
+ WHERE RELATIONID = :RELATIONID ",
|
|
|
+ new OracleParameter[] {
|
|
|
+ new OracleParameter(":RELATIONID", position6Table.Rows[i]["RELATIONID"]),
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ //拆开多选的补裂位置
|
|
|
+ string leakFlag6Position = productionData.LeakFlag6Position;
|
|
|
+ string[] position6s = leakFlag6Position.Split(',');
|
|
|
+
|
|
|
+ for (int j = 0; j < position6s.Length; j++)
|
|
|
+ {
|
|
|
+ string sqlString = @"
|
|
|
+ INSERT INTO TP_PM_BARCODELEAKPOSITION
|
|
|
+ (BARCODE,
|
|
|
+ LEAKTYPE,
|
|
|
+ POSITION,
|
|
|
+ ACCOUNTID,
|
|
|
+ CREATEUSERID,
|
|
|
+ UPDATEUSERID)
|
|
|
+ VALUES
|
|
|
+ (:BARCODE,
|
|
|
+ :LEAKTYPE,
|
|
|
+ :POSITION,
|
|
|
+ :ACCOUNTID,
|
|
|
+ :USERID,
|
|
|
+ :USERID)";
|
|
|
+
|
|
|
+ oracleTrConn.ExecuteNonQuery(sqlString,
|
|
|
+ new OracleParameter[]
|
|
|
+ {
|
|
|
+ new OracleParameter(":BARCODE", productionData.Barcode),
|
|
|
+ new OracleParameter(":LEAKTYPE", 6),
|
|
|
+ new OracleParameter(":POSITION", position6s[j]),
|
|
|
+ new OracleParameter(":ACCOUNTID", sUserInfo.AccountID),
|
|
|
+ new OracleParameter(":USERID", sUserInfo.UserID)
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
#endregion
|