feat: 完善材料条码与焊接业务功能
This commit is contained in:
@@ -190,7 +190,7 @@ namespace WebAPI.Controllers
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据材料主编码获取材料信息
|
||||
/// 根据入库条码获取材料信息
|
||||
/// </summary>
|
||||
/// <param name="materialCode"></param>
|
||||
/// <returns></returns>
|
||||
@@ -210,6 +210,65 @@ namespace WebAPI.Controllers
|
||||
return responeData;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据入库条码保存数量
|
||||
/// </summary>
|
||||
[HttpPost]
|
||||
public Model.ResponeData SaveMaterialInfoByBarCode(string barCode, decimal quantity)
|
||||
{
|
||||
var responeData = new Model.ResponeData();
|
||||
try
|
||||
{
|
||||
responeData.data = BLL.MaterialCodeLibService.SaveBarCodeQuantity(barCode, quantity);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
responeData.code = 0;
|
||||
responeData.message = ex.Message;
|
||||
}
|
||||
return responeData;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取焊接方法
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public Model.ResponeData GetWeldingMethod()
|
||||
{
|
||||
var responeData = new Model.ResponeData();
|
||||
try
|
||||
{
|
||||
responeData.data = BLL.APIBaseInfoService.GetWeldingMethod();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
responeData.code = 0;
|
||||
responeData.message = ex.Message;
|
||||
}
|
||||
|
||||
return responeData;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取焊缝类型
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public Model.ResponeData GetWeldType()
|
||||
{
|
||||
var responeData = new Model.ResponeData();
|
||||
try
|
||||
{
|
||||
responeData.data = BLL.APIBaseInfoService.GetWeldType();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
responeData.code = 0;
|
||||
responeData.message = ex.Message;
|
||||
}
|
||||
|
||||
return responeData;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取探伤类型
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user