1
This commit is contained in:
@@ -504,5 +504,41 @@ namespace BLL.API
|
|||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region 根据项目id获取焊工信息列表
|
||||||
|
/// <summary>
|
||||||
|
/// 根据项目id获取焊工信息列表
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="personId">人员ID</param>
|
||||||
|
/// <param name="type">交换类型</param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public static Model.ResponeData getProjectWelderList(string projectId, int page, int pageSize)
|
||||||
|
{
|
||||||
|
var responeData = new Model.ResponeData();
|
||||||
|
try
|
||||||
|
{
|
||||||
|
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||||
|
{
|
||||||
|
var res = from x in db.Project_Welder
|
||||||
|
join y in db.HJGL_BS_Welder on x.WED_ID equals y.WED_ID
|
||||||
|
where x.ProjectId == projectId
|
||||||
|
select new
|
||||||
|
{
|
||||||
|
WED_Code = y.WED_Code,
|
||||||
|
WED_Name = y.WED_Name,
|
||||||
|
|
||||||
|
};
|
||||||
|
responeData.data = res.Skip(page * pageSize).Take(pageSize);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
responeData.code = 0;
|
||||||
|
responeData.message = ex.Message;
|
||||||
|
ErrLogInfo.WriteLog(ex, "根据项目id获取焊工信息列表", "WeldController.getProjectWelderList");
|
||||||
|
}
|
||||||
|
return responeData;
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -212,5 +212,22 @@ namespace WebAPI.Controllers
|
|||||||
}
|
}
|
||||||
return respone;
|
return respone;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[HttpGet]
|
||||||
|
public Model.ResponeData getProjectWelderList(string projectId, int page, int pageSize)
|
||||||
|
{
|
||||||
|
Model.ResponeData respone = new ResponeData();
|
||||||
|
try
|
||||||
|
{
|
||||||
|
|
||||||
|
return APIWeldServices.getProjectWelderList(projectId, page, pageSize);
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
respone.code = 0;
|
||||||
|
respone.message = e.Message;
|
||||||
|
}
|
||||||
|
return respone;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -48,7 +48,7 @@
|
|||||||
<Reference Include="Microsoft.CSharp" />
|
<Reference Include="Microsoft.CSharp" />
|
||||||
<Reference Include="Newtonsoft.Json, Version=13.0.1.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
<Reference Include="Newtonsoft.Json, Version=13.0.1.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||||
<SpecificVersion>False</SpecificVersion>
|
<SpecificVersion>False</SpecificVersion>
|
||||||
<HintPath>..\..\..\..\五环\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\bin\Newtonsoft.Json.dll</HintPath>
|
<HintPath>..\..\..\..\赛鼎\SGGL_SeDin_New\SGGL\WebAPI\bin\Newtonsoft.Json.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="System.Data" />
|
<Reference Include="System.Data" />
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig>
|
<LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig>
|
||||||
|
|||||||
Reference in New Issue
Block a user