|
|
@@ -15195,28 +15195,30 @@ namespace Dongke.IBOSS.PRD.Service.PMModuleLogic
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- // 如果不合格,查询报损表里是否回收
|
|
|
- sql = "select recyclingflag from TP_PM_ScrapProduct "
|
|
|
- + " where BarCode=:BarCode and CreateTime=(select max(CreateTime) "
|
|
|
- + " from TP_PM_ScrapProduct "
|
|
|
- + " where BarCode=:BarCode and ValueFlag=1)"
|
|
|
- + " and ValueFlag=1";
|
|
|
- Paras = new OracleParameter[]{
|
|
|
- new OracleParameter(":BarCode",OracleDbType.NVarchar2,barcode,ParameterDirection.Input),
|
|
|
- };
|
|
|
- DataSet dsResult2 = oracleTrConn.GetSqlResultToDs(sql, Paras);
|
|
|
- if (dsResult2 != null && dsResult2.Tables[0].Rows.Count > 0)
|
|
|
- {
|
|
|
- if (Convert.ToInt32(dsResult2.Tables[0].Rows[0]["recyclingflag"]) > 0)
|
|
|
- {
|
|
|
- returnRows = -200;
|
|
|
- oracleTrConn.Rollback();
|
|
|
- oracleTrConn.Disconnect();
|
|
|
- entity.Result = returnRows;
|
|
|
- entity.Message = "此产品已经回收,不能撤销";
|
|
|
- return entity;
|
|
|
- }
|
|
|
- }
|
|
|
+ // 计件撤销 应该不用验证是否回收了 by chenxiaoye 2020-02-28
|
|
|
+ //// 如果不合格,查询报损表里是否回收
|
|
|
+ //sql = "select recyclingflag from TP_PM_ScrapProduct "
|
|
|
+ // + " where BarCode=:BarCode and CreateTime=(select max(CreateTime) "
|
|
|
+ // + " from TP_PM_ScrapProduct "
|
|
|
+ // + " where BarCode=:BarCode and ValueFlag=1)"
|
|
|
+ // + " and ValueFlag=1";
|
|
|
+ //Paras = new OracleParameter[]{
|
|
|
+ // new OracleParameter(":BarCode",OracleDbType.NVarchar2,barcode,ParameterDirection.Input),
|
|
|
+ // };
|
|
|
+ //DataSet dsResult2 = oracleTrConn.GetSqlResultToDs(sql, Paras);
|
|
|
+ //if (dsResult2 != null && dsResult2.Tables[0].Rows.Count > 0)
|
|
|
+ //{
|
|
|
+ // if (Convert.ToInt32(dsResult2.Tables[0].Rows[0]["recyclingflag"]) > 0)
|
|
|
+ // {
|
|
|
+ // returnRows = -200;
|
|
|
+ // oracleTrConn.Rollback();
|
|
|
+ // oracleTrConn.Disconnect();
|
|
|
+ // entity.Result = returnRows;
|
|
|
+ // entity.Message = "此产品已经回收,不能撤销";
|
|
|
+ // return entity;
|
|
|
+ // }
|
|
|
+ //}
|
|
|
+ // 计件撤销 应该不用验证是否回收了 by chenxiaoye 2020-02-28
|
|
|
|
|
|
// 判断是否有撤销范围权限
|
|
|
|
|
|
@@ -15240,7 +15242,7 @@ namespace Dongke.IBOSS.PRD.Service.PMModuleLogic
|
|
|
}
|
|
|
//
|
|
|
|
|
|
- #region 是否启用交坯撤销限制天数
|
|
|
+ #region 是否启用撤销限制天数
|
|
|
if (flowProcedureTime != null)
|
|
|
{
|
|
|
sql = "select settingvalue from TP_MST_SystemSetting where settingcode=:settingcode and accountid=:accountid";
|