feat:增加焊前管理,材料管理条码扫码接口,材料信息导入支持无炉批号/有炉批号 多种导入方式
This commit is contained in:
@@ -0,0 +1,77 @@
|
||||
using BLL;
|
||||
using System;
|
||||
using System.Web.Http;
|
||||
|
||||
namespace WebAPI.Controllers.HJGL.WeldingManage
|
||||
{
|
||||
/// <summary>
|
||||
/// 焊前抽检接口
|
||||
/// </summary>
|
||||
public class PreWeldInspectionController : ApiController
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据焊口ID获取焊前抽检基础信息
|
||||
/// </summary>
|
||||
/// <param name="WeldJointId">焊口ID</param>
|
||||
/// <returns></returns>
|
||||
public Model.ResponeData getPreWeldJointByWeldJointId(string WeldJointId)
|
||||
{
|
||||
var responeData = new Model.ResponeData();
|
||||
try
|
||||
{
|
||||
responeData.data = APIPreWeldInspectionService.GetPreWeldJointByWeldJointId(WeldJointId);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
responeData.code = 0;
|
||||
responeData.message = ex.Message;
|
||||
}
|
||||
|
||||
return responeData;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 保存下料抽检记录
|
||||
/// </summary>
|
||||
/// <param name="item">下料抽检参数</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public Model.ResponeData SaveCuttingCheck([FromBody] Model.PreWeldCuttingCheckItem item)
|
||||
{
|
||||
var responeData = new Model.ResponeData();
|
||||
try
|
||||
{
|
||||
APIPreWeldInspectionService.SaveCuttingCheck(item);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
responeData.code = 0;
|
||||
responeData.message = ex.Message;
|
||||
}
|
||||
|
||||
return responeData;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 保存组对抽检记录
|
||||
/// </summary>
|
||||
/// <param name="item">组对抽检参数</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public Model.ResponeData SaveFitupCheck([FromBody] Model.PreWeldFitupCheckItem item)
|
||||
{
|
||||
var responeData = new Model.ResponeData();
|
||||
try
|
||||
{
|
||||
APIPreWeldInspectionService.SaveFitupCheck(item);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
responeData.code = 0;
|
||||
responeData.message = ex.Message;
|
||||
}
|
||||
|
||||
return responeData;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user