生产工单 任务单 提报表 相关数量的类型 int 改成 decimal
This commit is contained in:
@@ -35,15 +35,15 @@ namespace Tnb.QcMgr.Entities
|
||||
/// <summary>
|
||||
/// 原先生产数量
|
||||
/// </summary>
|
||||
public int? oldpronum { get; set; }
|
||||
public decimal? oldpronum { get; set; }
|
||||
/// <summary>
|
||||
/// 新生产数量
|
||||
/// </summary>
|
||||
public int? newpronum { get; set; }
|
||||
public decimal? newpronum { get; set; }
|
||||
/// <summary>
|
||||
/// 生产次数
|
||||
/// </summary>
|
||||
public int? pronum { get; set; }
|
||||
public decimal? pronum { get; set; }
|
||||
|
||||
public string mo_task_code { get; set; }
|
||||
|
||||
|
||||
@@ -384,7 +384,7 @@ namespace Tnb.QcMgr
|
||||
}else if (QcCheckExecH.checktype == WmsWareHouseConst.LINGBUJIANZUIZHONGJIANYAN_ID)
|
||||
{
|
||||
PrdReport prdReport = await db.Queryable<PrdReport>().SingleAsync(x=>x.id==QcCheckExecH.report_id);
|
||||
int pqty = prdReport.reported_qty.Value - rqty;
|
||||
decimal pqty = prdReport.reported_qty.Value - rqty;
|
||||
if (rqty > Decimal.Parse(QcCheckExecH.checknum))
|
||||
{
|
||||
throw Oops.Bah("不合格数不能大于抽样数");
|
||||
|
||||
Reference in New Issue
Block a user