调拨出库
This commit is contained in:
@@ -136,10 +136,10 @@ namespace Tnb.QcMgr
|
||||
throw Oops.Bah($"未找到任务单{QcCheckExecH.mo_task_code}");
|
||||
}
|
||||
|
||||
if (string.IsNullOrEmpty(QcCheckExecH.report_id))
|
||||
{
|
||||
throw Oops.Bah($"未找到提报记录{QcCheckExecH.report_id}");
|
||||
}
|
||||
// if (string.IsNullOrEmpty(QcCheckExecH.report_id))
|
||||
// {
|
||||
// throw Oops.Bah($"未找到提报记录{QcCheckExecH.report_id}");
|
||||
// }
|
||||
BasMaterial basMaterial = await db.Queryable<BasMaterial>().Where(x=>x.id==moTask.material_id).FirstAsync();
|
||||
PrdReport prdReport = await db.Queryable<PrdReport>().SingleAsync(x => x.id == QcCheckExecH.report_id);
|
||||
UserEntity userEntity = await db.Queryable<UserEntity>().SingleAsync(x => x.Id == prdReport.create_id);
|
||||
@@ -156,7 +156,7 @@ namespace Tnb.QcMgr
|
||||
checknum = !string.IsNullOrEmpty(QcCheckExecH.checknum) ? int.Parse(QcCheckExecH.checknum) : 0,
|
||||
worker_name = userEntity?.RealName ?? "",
|
||||
bill_code = QcCheckExecH.bill_code,
|
||||
carry_code = prdReport.material_box_code,
|
||||
carry_code = prdReport?.material_box_code,
|
||||
};
|
||||
if (!string.IsNullOrEmpty(CheckTaskOut.workid))
|
||||
{
|
||||
@@ -262,6 +262,7 @@ namespace Tnb.QcMgr
|
||||
QcCheckExecH.exectime = DateTime.Now.ToString();
|
||||
QcCheckExecH.check_type = CheckTaskInput.check_type;
|
||||
QcCheckExecH.remark = CheckTaskInput.remark;
|
||||
QcCheckExecH.attachment = CheckTaskInput.attachment;
|
||||
List<QcCheckExecD> QcCheckExecDs = await db.Queryable<QcCheckExecD>().Where(p => p.mainid == CheckTaskInput.mainid).ToListAsync();
|
||||
|
||||
int rqty = 0;
|
||||
|
||||
Reference in New Issue
Block a user