InitBasfTcc11
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web.Http;
|
||||
using BLL;
|
||||
|
||||
namespace WebApi.Controllers
|
||||
{
|
||||
public class WelderController : ApiController
|
||||
{
|
||||
#region 获取焊工登录信息
|
||||
/// <summary>
|
||||
/// 获取焊工登录信息
|
||||
/// </summary>
|
||||
/// <param name="userInfo">焊工登录信息</param>
|
||||
/// <returns></returns>
|
||||
public Model.ResponeData WelderLogOn(Model.UserItem userInfo)
|
||||
{
|
||||
var responeData = new Model.ResponeData();
|
||||
try
|
||||
{
|
||||
responeData.data = APIWelderService.WelderLogOn(userInfo);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
responeData.code = 0;
|
||||
responeData.message = ex.Message;
|
||||
}
|
||||
|
||||
return responeData;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 根据项目ID和施工单位获取项目焊工列表信息
|
||||
/// <summary>
|
||||
/// 根据项目ID和施工单位获取项目焊工列表信息
|
||||
/// </summary>
|
||||
/// <param name="projectId">项目ID</param>
|
||||
/// <param name="unitId">施工单位ID</param>
|
||||
/// <returns></returns>
|
||||
public Model.ResponeData getWelderList(string projectId, string unitId)
|
||||
{
|
||||
var responeData = new Model.ResponeData();
|
||||
try
|
||||
{
|
||||
responeData.data = APIWelderService.getWelderList(projectId, unitId);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
responeData.code = 0;
|
||||
responeData.message = ex.Message;
|
||||
}
|
||||
|
||||
return responeData;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user