IDP对接试车
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
using BLL;
|
||||
using System;
|
||||
using System.Web.Http;
|
||||
|
||||
namespace WebAPI.Controllers
|
||||
{
|
||||
/// <summary>
|
||||
/// 五环IDP平台
|
||||
/// </summary>
|
||||
public class IDPController : ApiController
|
||||
{
|
||||
/// <summary>
|
||||
/// 每天夜间同步获取IDP系统项目开车数据
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public Model.ResponeData SynIDPPreRunData()
|
||||
{
|
||||
var responeData = new Model.ResponeData();
|
||||
try
|
||||
{
|
||||
IDPDataService.GetIDPProjectMasterData();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
responeData.code = 0;
|
||||
responeData.message = ex.ToString();
|
||||
}
|
||||
return responeData;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -86,8 +86,10 @@ namespace WebAPI.Filter
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public static List<string> lists = new List<string> { "TowerCrane*saveTowerCraneRecord","PMP*SynPMPProjectData", "GJSX*OverdueWarningSendEmail", "User*postLoginOn", "get*token", "HazardRegister*getHazardRegisterTotalCount",
|
||||
public static List<string> lists = new List<string> { "TowerCrane*saveTowerCraneRecord", "GJSX*OverdueWarningSendEmail", "User*postLoginOn", "get*token", "HazardRegister*getHazardRegisterTotalCount",
|
||||
"HazardRegister*getHazardRegisterByProjectIdStates",
|
||||
"PMP*SynPMPProjectData",
|
||||
"IDP*SynIDPPreRunData",
|
||||
"JGZL*getUserList",
|
||||
"JGZL*getProjedtList",
|
||||
"JGZL*getUnitWorkListByProjectId",
|
||||
|
||||
@@ -166,6 +166,7 @@
|
||||
<Compile Include="Controllers\HSSE\HSSELogController.cs" />
|
||||
<Compile Include="Controllers\HSSE\TestingController.cs" />
|
||||
<Compile Include="Controllers\HSSE\TowerCraneController.cs" />
|
||||
<Compile Include="Controllers\IDP\IDPController.cs" />
|
||||
<Compile Include="Controllers\JGZL\JGZLController.cs" />
|
||||
<Compile Include="Controllers\Person\PersonCheckController.cs" />
|
||||
<Compile Include="Controllers\CQMS\CheckEquipmentController.cs" />
|
||||
|
||||
Reference in New Issue
Block a user