修改注塑生产提报
This commit is contained in:
@@ -2025,6 +2025,15 @@ namespace Tnb.ProductionMgr
|
|||||||
|
|
||||||
PrdMo mo = await _db.Queryable<PrdMo>().SingleAsync(x => x.id == prdMoTask.mo_id);
|
PrdMo mo = await _db.Queryable<PrdMo>().SingleAsync(x => x.id == prdMoTask.mo_id);
|
||||||
|
|
||||||
|
#region 注塑生产任务提报时,如果起始库位( 当前设备的下料点)已经存在业务类型为配送申请,并且实际开始配送时间为空的任务执行,则不能提报,并提示
|
||||||
|
if (mo.mo_type == DictConst.PrdMoTypeZS)
|
||||||
|
{
|
||||||
|
var wmsDistaskHs = _db.Queryable<WmsDistaskH>().Where(r => r.startlocation_id == equip.downmat_location_id && r.biz_type == WmsWareHouseConst.BIZTYPE_WMSDELIVERY_ID && !r.act_start_date.HasValue);
|
||||||
|
if (wmsDistaskHs != null && wmsDistaskHs.Count() > 0)
|
||||||
|
throw Oops.Bah("请等待AGV配送完成后提报");
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
bool changeBatchFlag = false;
|
bool changeBatchFlag = false;
|
||||||
int changeCountNumByDay = 0;
|
int changeCountNumByDay = 0;
|
||||||
int changeCountNumByQty = 0;
|
int changeCountNumByQty = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user