46 lines
1.4 KiB
C#
46 lines
1.4 KiB
C#
using DOAN.Model.MES.base_;
|
|
using DOAN.Model.MES.mm;
|
|
using DOAN.Model.MES.mm.Dto;
|
|
using DOAN.Model.MES.product;
|
|
using DOAN.Service.group.IService;
|
|
using DOAN.Service.MES.mm.IService;
|
|
using Infrastructure.Attribute;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace DOAN.Service.MES.mm
|
|
{
|
|
[AppService(ServiceType = typeof(IMmPreparantTaskService), ServiceLifetime = LifeTime.Transient)]
|
|
public class MmPreparantTaskService : BaseService<MmPreparationTask>, IMmPreparantTaskService
|
|
{
|
|
public List<BaseWorkRoute> GetProcessRouteList()
|
|
{
|
|
return Context.Queryable<BaseWorkRoute>().Where(it => it.Status == 1).ToList();
|
|
}
|
|
|
|
|
|
public List<ProWorkorder> GetWorkOrder(DateTime searchDate, string route_code)
|
|
{
|
|
searchDate = searchDate.ToLocalTime().Date;
|
|
return Context.Queryable<ProWorkorder>().Where(it => it.WorkorderDate == searchDate)
|
|
.WhereIF(string.IsNullOrEmpty(route_code),it => it.FkRouteCode == route_code)
|
|
.ToList();
|
|
}
|
|
|
|
/// <summary>
|
|
/// 获取任务详情
|
|
/// </summary>
|
|
/// <param name="workorder"></param>
|
|
/// <returns></returns>
|
|
public List<MmPreparationTaskAndInfoDto> GetTaskInfo(string workorder)
|
|
{
|
|
|
|
|
|
|
|
}
|
|
}
|
|
}
|