获取产线的所有工站
This commit is contained in:
parent
8ca8da9870
commit
a19de4668b
@ -136,6 +136,14 @@ namespace MDM.Controllers.Plant
|
||||
return SUCCESS(response);
|
||||
}
|
||||
|
||||
//TODO 获取产线的所有工站
|
||||
[HttpGet("get_workstation_list")]
|
||||
public IActionResult GetWorkstationList(int id)
|
||||
{
|
||||
var response = _PlantProductlinebodyService.GetWorkstationList(id);
|
||||
|
||||
return SUCCESS(response);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -110,6 +110,32 @@ namespace MDM.Controllers.Process
|
||||
|
||||
return ToResponse(response);
|
||||
}
|
||||
|
||||
//TODO 下拉工艺路线
|
||||
[HttpGet("SelectRouting")]
|
||||
public IActionResult SelectRouting(string routingcode)
|
||||
{
|
||||
var response = _ProcessOperationWorkstationMappingService.SelectRouting(routingcode);
|
||||
|
||||
return SUCCESS(response);
|
||||
}
|
||||
|
||||
|
||||
//TODO 下拉工序
|
||||
|
||||
|
||||
|
||||
//TODO 下拉工厂
|
||||
|
||||
|
||||
//TODO 下拉产线
|
||||
|
||||
|
||||
//TODO 下拉工站
|
||||
|
||||
|
||||
|
||||
|
||||
//TODO 分页查询配方参数
|
||||
[HttpPost("operation_search_recipe")]
|
||||
public IActionResult QueryProcessOperationRecipe([FromBody] ProcessOperationQuery2Dto query)
|
||||
|
||||
@ -19,6 +19,7 @@ namespace MDM.Services.IPlantService
|
||||
|
||||
int UpdatePlantProductlinebody(PlantProductlinebody parm);
|
||||
|
||||
List<PlantWorkstation> GetWorkstationList(int id);
|
||||
List<PlantFactorySite> GetFactorySite(string site_code);
|
||||
|
||||
List<PlantWorkshop> GetWorkShop(string site_code,string workshop_code);
|
||||
|
||||
@ -87,6 +87,13 @@ namespace MDM.Services.Plant
|
||||
return Update(model, true);
|
||||
}
|
||||
|
||||
|
||||
public List<PlantWorkstation> GetWorkstationList(int id)
|
||||
{
|
||||
PlantProductlinebody productlinebody= Context.Queryable<PlantProductlinebody>().Where(it => it.LineId == id).First();
|
||||
|
||||
return Context.Queryable<PlantWorkstation>().Where(it => it.FkFactorySiteCode == productlinebody.FkFactorySiteCode && it.FkWorkshopCode == productlinebody.FkWorkshopCode && it.FkProductlinebody == productlinebody.LineCode).ToList();
|
||||
}
|
||||
public List<PlantFactorySite> GetFactorySite(string site_code)
|
||||
{
|
||||
return Context.Queryable<PlantFactorySite>().WhereIF(!string.IsNullOrEmpty(site_code), it => it.SiteCode.Contains(site_code)).ToList();
|
||||
|
||||
@ -18,6 +18,7 @@ namespace MDM.Services.IProcessService
|
||||
|
||||
ProcessOperationWorkstationMapping AddProcessOperationWorkstationMapping(ProcessOperationWorkstationMapping parm);
|
||||
|
||||
List<ProcessRouting> SelectRouting(string routing);
|
||||
int UpdateProcessOperationWorkstationMapping(ProcessOperationWorkstationMapping parm);
|
||||
|
||||
|
||||
|
||||
@ -115,6 +115,15 @@ namespace MDM.Services.Process
|
||||
return Context.Insertable(model).ExecuteReturnEntity();
|
||||
}
|
||||
|
||||
|
||||
public List<ProcessRouting> SelectRouting(string routing)
|
||||
{
|
||||
var response = Context.Queryable<ProcessRouting>().WhereIF(!string.IsNullOrEmpty(routing), it => it.RoutingCode.Contains(routing)).ToList();
|
||||
return response;
|
||||
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 修改
|
||||
/// </summary>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user