组装包装任务单下发加完成数量
This commit is contained in:
@@ -57,6 +57,10 @@ namespace Tnb.ProductionMgr.Entities.Dto.PrdManage
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public int? plan_qty { get; set; }
|
public int? plan_qty { get; set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
/// 已完成数量
|
||||||
|
/// </summary>
|
||||||
|
public int? complete_qty { get; set; }
|
||||||
|
/// <summary>
|
||||||
/// 工序任务量
|
/// 工序任务量
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int? process_task_qty { get; set; }
|
public int? process_task_qty { get; set; }
|
||||||
|
|||||||
@@ -389,6 +389,7 @@ namespace Tnb.ProductionMgr
|
|||||||
// scheduled_qty = SqlFunc.Subqueryable<PrdMoTask>().Where(it => it.mo_id == a.mo_id).Sum(it => it.scheduled_qty),
|
// scheduled_qty = SqlFunc.Subqueryable<PrdMoTask>().Where(it => it.mo_id == a.mo_id).Sum(it => it.scheduled_qty),
|
||||||
scheduled_qty = a.scheduled_qty,
|
scheduled_qty = a.scheduled_qty,
|
||||||
plan_qty = SqlFunc.Subqueryable<PrdMo>().Where(it => it.id == a.mo_id).Select(it => it.plan_qty),
|
plan_qty = SqlFunc.Subqueryable<PrdMo>().Where(it => it.id == a.mo_id).Select(it => it.plan_qty),
|
||||||
|
complete_qty = a.last_process_complete_qty,
|
||||||
estimated_start_date = a.estimated_start_date==null ? null : a.estimated_start_date.Value.ToString("yyyy-MM-dd HH:mm"),
|
estimated_start_date = a.estimated_start_date==null ? null : a.estimated_start_date.Value.ToString("yyyy-MM-dd HH:mm"),
|
||||||
estimated_end_date = a.estimated_end_date==null ? null : a.estimated_end_date.Value.ToString("yyyy-MM-dd HH:mm"),
|
estimated_end_date = a.estimated_end_date==null ? null : a.estimated_end_date.Value.ToString("yyyy-MM-dd HH:mm"),
|
||||||
bom_id = d.id,
|
bom_id = d.id,
|
||||||
@@ -425,6 +426,7 @@ namespace Tnb.ProductionMgr
|
|||||||
scheduled_qty = a.scheduled_qty,
|
scheduled_qty = a.scheduled_qty,
|
||||||
plan_qty = d.plan_qty,
|
plan_qty = d.plan_qty,
|
||||||
process_task_qty = a.process_task_qty,
|
process_task_qty = a.process_task_qty,
|
||||||
|
complete_qty = SqlFunc.IsNull(a.reported_work_qty,0)+SqlFunc.IsNull(a.scrap_qty,0),
|
||||||
estimated_start_date = a.estimated_start_date==null ? null : a.estimated_start_date.Value.ToString("yyyy-MM-dd HH:mm"),
|
estimated_start_date = a.estimated_start_date==null ? null : a.estimated_start_date.Value.ToString("yyyy-MM-dd HH:mm"),
|
||||||
estimated_end_date = a.estimated_end_date==null ? null : a.estimated_end_date.Value.ToString("yyyy-MM-dd HH:mm"),
|
estimated_end_date = a.estimated_end_date==null ? null : a.estimated_end_date.Value.ToString("yyyy-MM-dd HH:mm"),
|
||||||
process_name = e.process_name,
|
process_name = e.process_name,
|
||||||
|
|||||||
Reference in New Issue
Block a user