预备signalr
This commit is contained in:
@@ -84,7 +84,7 @@ namespace ZR.Service.mes.pro
|
||||
.Where(it => it.Id.Equals(id))
|
||||
.ExecuteCommand();
|
||||
}
|
||||
|
||||
|
||||
public int ReleaseProduction(string id, HttpContext context)
|
||||
{
|
||||
int result = Context.Updateable<ProWorkorder>()
|
||||
@@ -180,7 +180,7 @@ namespace ZR.Service.mes.pro
|
||||
.AndIF(year > 0, it => it.Year == year)
|
||||
.AndIF(week > 0, it => it.Week == week)
|
||||
.AndIF(date > 0, it => it.Date == date)
|
||||
.And(it=>it.Wrokerorder_status==1)
|
||||
.And(it=>it.Wrokerorder_status==2) // 已经排产
|
||||
.ToExpression();
|
||||
|
||||
|
||||
|
||||
33
ZR.Service/mes/qc/FirstFQCService.cs
Normal file
33
ZR.Service/mes/qc/FirstFQCService.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
using Infrastructure.Attribute;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using ZR.Model.MES.qc.DTO;
|
||||
using ZR.Model.MES.qu;
|
||||
using ZR.Service.mes.qc.IService;
|
||||
using ZR.Service.mes.qu.IService;
|
||||
|
||||
namespace ZR.Service.mes.qc
|
||||
{
|
||||
|
||||
[AppService(ServiceType = typeof(IFirstFQCService), ServiceLifetime = LifeTime.Transient)]
|
||||
public class FirstFQCService : BaseService<QcInspectionitem>, IFirstFQCService
|
||||
{
|
||||
public CheckItemTableDTO GetCheckItemTable()
|
||||
{
|
||||
CheckItemTableDTO checkItem=new CheckItemTableDTO();
|
||||
checkItem.Paint = Queryable().Where(it => it.InspectionModule == "油漆").OrderBy(it=>it.Id).ToList();
|
||||
checkItem.device = Queryable().Where(it => it.InspectionModule == "设备").OrderBy(it => it.Id).ToList();
|
||||
checkItem.Blank = Queryable().Where(it => it.InspectionModule == "毛坯").OrderBy(it => it.Id).ToList();
|
||||
checkItem.program = Queryable().Where(it => it.InspectionModule == "程序").OrderBy(it => it.Id).ToList();
|
||||
checkItem.Team = Queryable().Where(it => it.InspectionModule == "班组操作").OrderBy(it => it.Id).ToList();
|
||||
|
||||
return checkItem;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
14
ZR.Service/mes/qc/IService/IFirstFQCService.cs
Normal file
14
ZR.Service/mes/qc/IService/IFirstFQCService.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using ZR.Model.MES.qc.DTO;
|
||||
|
||||
namespace ZR.Service.mes.qc.IService
|
||||
{
|
||||
public interface IFirstFQCService
|
||||
{
|
||||
public CheckItemTableDTO GetCheckItemTable();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user