fix:接口
This commit is contained in:
parent
0a70ab9af7
commit
edda376377
|
@ -19,7 +19,28 @@ public class AwardStandardsService
|
|||
e.AwardStandardsId == AwardStandardsId);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 获取集合
|
||||
/// </summary>
|
||||
/// <param name="AwardStandardsId"></param>
|
||||
/// <returns></returns>
|
||||
public static List<AwardStandardsItem> GetAwardStandardsList()
|
||||
{
|
||||
List<AwardStandardsItem> getDataLists = (from x in Funs.DB.Technique_AwardStandards
|
||||
select new AwardStandardsItem
|
||||
{
|
||||
AwardStandardsId = x.AwardStandardsId,
|
||||
AwardStandardsCode = x.AwardStandardsCode,
|
||||
AwardStandardsName = x.AwardStandardsName,
|
||||
AttachUrl = x.AttachUrl,
|
||||
CompileMan = x.CompileMan,
|
||||
CompileDate = x.CompileDate,
|
||||
IsPass = x.IsPass,
|
||||
UpState = x.UpState,
|
||||
Remark = x.Remark
|
||||
}).ToList();
|
||||
return getDataLists;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加
|
||||
|
@ -93,4 +114,64 @@ public class AwardStandardsService
|
|||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
public class AwardStandardsItem
|
||||
{
|
||||
|
||||
public string AwardStandardsId
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public string AwardStandardsCode
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public string AwardStandardsName
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public string AttachUrl
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public string CompileMan
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public System.Nullable<System.DateTime> CompileDate
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public System.Nullable<bool> IsPass
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public string UpState
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public string Remark
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -19,6 +19,28 @@ public class ConstructionStandardsService
|
|||
e.ConstructionStandardsId == ConstructionStandardsId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取集合
|
||||
/// </summary>
|
||||
/// <param name="ConstructionStandardsId"></param>
|
||||
/// <returns></returns>
|
||||
public static List<ConstructionStandardsItem> GetConstructionStandardsList()
|
||||
{
|
||||
List<ConstructionStandardsItem> getDataLists = (from x in Funs.DB.Technique_ConstructionStandards
|
||||
select new ConstructionStandardsItem
|
||||
{
|
||||
ConstructionStandardsId = x.ConstructionStandardsId,
|
||||
ConstructionStandardsCode = x.ConstructionStandardsCode,
|
||||
ConstructionStandardsName = x.ConstructionStandardsName,
|
||||
AttachUrl = x.AttachUrl,
|
||||
CompileMan = x.CompileMan,
|
||||
CompileDate = x.CompileDate,
|
||||
IsPass = x.IsPass,
|
||||
UpState = x.UpState,
|
||||
Remark = x.Remark
|
||||
}).ToList();
|
||||
return getDataLists;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加
|
||||
|
@ -93,4 +115,63 @@ public class ConstructionStandardsService
|
|||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
public class ConstructionStandardsItem
|
||||
{
|
||||
|
||||
public string ConstructionStandardsId
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public string ConstructionStandardsCode
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public string ConstructionStandardsName
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public string AttachUrl
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public string CompileMan
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public System.Nullable<System.DateTime> CompileDate
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public System.Nullable<bool> IsPass
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public string UpState
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public string Remark
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -2,6 +2,7 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using Model;
|
||||
|
||||
namespace BLL;
|
||||
|
||||
|
@ -19,6 +20,29 @@ public class ProtectionStandardsService
|
|||
return Funs.DB.Technique_ProtectionStandards.FirstOrDefault(e =>
|
||||
e.ProtectionStandardsId == ProtectionStandardsId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取集合
|
||||
/// </summary>
|
||||
/// <param name="ProtectionStandardsId"></param>
|
||||
/// <returns></returns>
|
||||
public static List<ProtectionStandardsItem> GetProtectionStandardsList()
|
||||
{
|
||||
List<ProtectionStandardsItem> getDataLists = (from x in Funs.DB.Technique_ProtectionStandards
|
||||
select new ProtectionStandardsItem
|
||||
{
|
||||
ProtectionStandardsId = x.ProtectionStandardsId,
|
||||
ProtectionStandardsCode = x.ProtectionStandardsCode,
|
||||
ProtectionStandardsName = x.ProtectionStandardsName,
|
||||
AttachUrl = x.AttachUrl,
|
||||
CompileMan = x.CompileMan,
|
||||
CompileDate = x.CompileDate,
|
||||
IsPass = x.IsPass,
|
||||
UpState = x.UpState,
|
||||
Remark = x.Remark
|
||||
}).ToList();
|
||||
return getDataLists;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加
|
||||
|
@ -92,4 +116,65 @@ public class ProtectionStandardsService
|
|||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public class ProtectionStandardsItem
|
||||
{
|
||||
|
||||
public string ProtectionStandardsId
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public string ProtectionStandardsCode
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public string ProtectionStandardsName
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public string AttachUrl
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public string CompileMan
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public System.Nullable<System.DateTime> CompileDate
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public System.Nullable<bool> IsPass
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public string UpState
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public string Remark
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -19,7 +19,28 @@ public class SafetyResponsibilitiesService
|
|||
e.SafetyResponsibilitiesId == SafetyResponsibilitiesId);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 获取集合
|
||||
/// </summary>
|
||||
/// <param name="SafetyResponsibilitiesId"></param>
|
||||
/// <returns></returns>
|
||||
public static List<SafetyResponsibilitiesItem> GetSafetyResponsibilitiesList()
|
||||
{
|
||||
List<SafetyResponsibilitiesItem> getDataLists = (from x in Funs.DB.Technique_SafetyResponsibilities
|
||||
select new SafetyResponsibilitiesItem
|
||||
{
|
||||
SafetyResponsibilitiesId = x.SafetyResponsibilitiesId,
|
||||
SafetyResponsibilitiesCode = x.SafetyResponsibilitiesCode,
|
||||
SafetyResponsibilitiesName = x.SafetyResponsibilitiesName,
|
||||
AttachUrl = x.AttachUrl,
|
||||
CompileMan = x.CompileMan,
|
||||
CompileDate = x.CompileDate,
|
||||
IsPass = x.IsPass,
|
||||
UpState = x.UpState,
|
||||
Remark = x.Remark
|
||||
}).ToList();
|
||||
return getDataLists;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加专项方案
|
||||
|
@ -94,4 +115,64 @@ public class SafetyResponsibilitiesService
|
|||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
public class SafetyResponsibilitiesItem
|
||||
{
|
||||
|
||||
public string SafetyResponsibilitiesId
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public string SafetyResponsibilitiesCode
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public string SafetyResponsibilitiesName
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public string AttachUrl
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public string CompileMan
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public System.Nullable<System.DateTime> CompileDate
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public System.Nullable<bool> IsPass
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public string UpState
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public string Remark
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,55 @@
|
|||
using BLL;
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Web.Http;
|
||||
|
||||
namespace WebAPI.Controllers.HSSE
|
||||
{
|
||||
public class AwardStandardsController : ApiController
|
||||
{
|
||||
#region 获取集合
|
||||
/// <summary>
|
||||
/// 获取集合
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public Model.ResponeData getAwardStandardsList()
|
||||
{
|
||||
var responeData = new Model.ResponeData();
|
||||
try
|
||||
{
|
||||
responeData.data = AwardStandardsService.GetAwardStandardsList();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
responeData.code = 0;
|
||||
responeData.message = ex.Message;
|
||||
}
|
||||
|
||||
return responeData;
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
#region 根据id获取
|
||||
/// <summary>
|
||||
/// 根据id获取
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public Model.ResponeData getAwardStandardsListById(string AwardStandardsId)
|
||||
{
|
||||
var responeData = new Model.ResponeData();
|
||||
try
|
||||
{
|
||||
responeData.data = AwardStandardsService.GetAwardStandardsListById(AwardStandardsId);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
responeData.code = 0;
|
||||
responeData.message = ex.Message;
|
||||
}
|
||||
|
||||
return responeData;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -0,0 +1,55 @@
|
|||
using BLL;
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Web.Http;
|
||||
|
||||
namespace WebAPI.Controllers.HSSE
|
||||
{
|
||||
public class ConstructionStandardsController : ApiController
|
||||
{
|
||||
#region 获取集合
|
||||
/// <summary>
|
||||
/// 获取集合
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public Model.ResponeData getConstructionStandardsList()
|
||||
{
|
||||
var responeData = new Model.ResponeData();
|
||||
try
|
||||
{
|
||||
responeData.data = ConstructionStandardsService.GetConstructionStandardsList();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
responeData.code = 0;
|
||||
responeData.message = ex.Message;
|
||||
}
|
||||
|
||||
return responeData;
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
#region 根据id获取
|
||||
/// <summary>
|
||||
/// 根据id获取
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public Model.ResponeData getConstructionStandardsListById(string ConstructionStandardsId)
|
||||
{
|
||||
var responeData = new Model.ResponeData();
|
||||
try
|
||||
{
|
||||
responeData.data = ConstructionStandardsService.GetConstructionStandardsListById(ConstructionStandardsId);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
responeData.code = 0;
|
||||
responeData.message = ex.Message;
|
||||
}
|
||||
|
||||
return responeData;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -0,0 +1,135 @@
|
|||
using System;
|
||||
using System.IO;
|
||||
using RestSharp; //依赖版本106.15.0 https://www.nuget.org/packages/RestSharp/106.15.0
|
||||
using Newtonsoft.Json; //https://www.nuget.org/packages/Newtonsoft.Json
|
||||
using System.Web.Http;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace WebAPI.Controllers.HSSE
|
||||
{
|
||||
public class ImageRecognitionController : ApiController
|
||||
{
|
||||
const string API_KEY = "2pHOZ7ff76vYgYoIwQnTIB31";
|
||||
const string SECRET_KEY = "8q4Oa8wLi6xorfYQgUlEBqM4OOHqFXL7";
|
||||
|
||||
|
||||
[HttpPost]
|
||||
public Model.ResponeData getImageContent([FromBody] ImageRequest imageRequest)
|
||||
{
|
||||
var responeData = new Model.ResponeData();
|
||||
|
||||
try
|
||||
{
|
||||
var client = new RestClient($"https://aip.baidubce.com/rest/2.0/face/v3/detect?access_token={GetAccessToken()}");
|
||||
client.Timeout = -1;
|
||||
var request = new RestRequest(Method.POST);
|
||||
request.AddHeader("Content-Type", "application/json");
|
||||
string image = imageRequest.Image;
|
||||
var body = $@"{{""image"":""{image}"",""image_type"":""BASE64"",""max_face_num"":30}}";
|
||||
request.AddParameter("application/json", body, ParameterType.RequestBody);
|
||||
IRestResponse response = client.Execute(request);
|
||||
Console.WriteLine(response.Content);
|
||||
string json = response.Content;
|
||||
var responseData = JsonConvert.DeserializeObject<ResponseData>(json);
|
||||
int errorCode = responseData.error_code;
|
||||
if (errorCode != 0)
|
||||
{
|
||||
responeData.message = responseData.error_msg;
|
||||
}
|
||||
else
|
||||
{
|
||||
int faceNum = responseData.result.face_num;
|
||||
responeData.data = faceNum;
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
responeData.code = 0;
|
||||
}
|
||||
|
||||
return responeData;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取文件base64编码
|
||||
* @param path 文件路径
|
||||
* @return base64编码信息,不带文件头
|
||||
*/
|
||||
public string GetFileContentAsBase64(string path)
|
||||
{
|
||||
using (FileStream filestream = new FileStream(path, FileMode.Open))
|
||||
{
|
||||
byte[] arr = new byte[filestream.Length];
|
||||
filestream.Read(arr, 0, (int)filestream.Length);
|
||||
string base64 = Convert.ToBase64String(arr);
|
||||
return base64;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 使用 AK,SK 生成鉴权签名(Access Token)
|
||||
* @return 鉴权签名信息(Access Token)
|
||||
*/
|
||||
public string GetAccessToken()
|
||||
{
|
||||
var client = new RestClient($"https://aip.baidubce.com/oauth/2.0/token");
|
||||
client.Timeout = -1;
|
||||
var request = new RestRequest(Method.POST);
|
||||
request.AddParameter("grant_type", "client_credentials");
|
||||
request.AddParameter("client_id", API_KEY);
|
||||
request.AddParameter("client_secret", SECRET_KEY);
|
||||
IRestResponse response = client.Execute(request);
|
||||
Console.WriteLine(response.Content);
|
||||
var result = JsonConvert.DeserializeObject<dynamic>(response.Content);
|
||||
return result.access_token.ToString();
|
||||
}
|
||||
|
||||
public class ImageRequest
|
||||
{
|
||||
public string Image { get; set; }
|
||||
}
|
||||
|
||||
public class Location
|
||||
{
|
||||
public double left { get; set; }
|
||||
public double top { get; set; }
|
||||
public double width { get; set; }
|
||||
public double height { get; set; }
|
||||
public double rotation { get; set; }
|
||||
}
|
||||
|
||||
public class Angle
|
||||
{
|
||||
public double yaw { get; set; }
|
||||
public double pitch { get; set; }
|
||||
public double roll { get; set; }
|
||||
}
|
||||
|
||||
public class Face
|
||||
{
|
||||
public string face_token { get; set; }
|
||||
public Location location { get; set; }
|
||||
public double face_probability { get; set; }
|
||||
public Angle angle { get; set; }
|
||||
}
|
||||
|
||||
public class Result
|
||||
{
|
||||
public int face_num { get; set; }
|
||||
public List<Face> face_list { get; set; }
|
||||
}
|
||||
|
||||
public class ResponseData
|
||||
{
|
||||
public int error_code { get; set; }
|
||||
public string error_msg { get; set; }
|
||||
public long log_id { get; set; }
|
||||
public long timestamp { get; set; }
|
||||
public int cached { get; set; }
|
||||
public Result result { get; set; }
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,54 @@
|
|||
using BLL;
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Web.Http;
|
||||
namespace WebAPI.Controllers.HSSE
|
||||
{
|
||||
public class ProtectionStandardsController : ApiController
|
||||
{
|
||||
#region 获取集合
|
||||
/// <summary>
|
||||
/// 获取集合
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public Model.ResponeData getProtectionStandardsList()
|
||||
{
|
||||
var responeData = new Model.ResponeData();
|
||||
try
|
||||
{
|
||||
responeData.data = ProtectionStandardsService.GetProtectionStandardsList();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
responeData.code = 0;
|
||||
responeData.message = ex.Message;
|
||||
}
|
||||
|
||||
return responeData;
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
#region 根据id获取
|
||||
/// <summary>
|
||||
/// 根据id获取
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public Model.ResponeData getProtectionStandardsListById(string ProtectionStandardsId)
|
||||
{
|
||||
var responeData = new Model.ResponeData();
|
||||
try
|
||||
{
|
||||
responeData.data = ProtectionStandardsService.GetProtectionStandardsListById(ProtectionStandardsId);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
responeData.code = 0;
|
||||
responeData.message = ex.Message;
|
||||
}
|
||||
|
||||
return responeData;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -0,0 +1,53 @@
|
|||
using BLL;
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Web.Http;
|
||||
|
||||
namespace WebAPI.Controllers.HSSE
|
||||
{
|
||||
public class RectifyController : ApiController
|
||||
{
|
||||
#region 获取集合
|
||||
/// <summary>
|
||||
/// 获取集合
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public Model.ResponeData getRectifyList(string RectifyName, int PageNumber, int PageSize)
|
||||
{
|
||||
var responeData = new Model.ResponeData();
|
||||
try
|
||||
{
|
||||
var query = (from x in Funs.DB.Technique_RectifyItem
|
||||
join y in Funs.DB.Technique_Rectify
|
||||
on x.RectifyId equals y.RectifyId
|
||||
select new
|
||||
{
|
||||
y.RectifyId,
|
||||
y.RectifyName,
|
||||
x.HazardSourcePoint,
|
||||
x.RiskAnalysis,
|
||||
x.RiskPrevention
|
||||
}).ToList();
|
||||
if (!string.IsNullOrEmpty(RectifyName))
|
||||
{
|
||||
query = query.Where(x => x.RectifyName.Contains(RectifyName)).ToList();
|
||||
}
|
||||
|
||||
var paginatedQuery = query
|
||||
.Skip((PageNumber - 1) * PageSize)
|
||||
.Take(PageSize)
|
||||
.ToList();
|
||||
|
||||
responeData.data = paginatedQuery;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
responeData.code = 0;
|
||||
responeData.message = ex.Message;
|
||||
}
|
||||
|
||||
return responeData;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -0,0 +1,55 @@
|
|||
using BLL;
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Web.Http;
|
||||
|
||||
namespace WebAPI.Controllers.HSSE
|
||||
{
|
||||
public class SafetyResponsibilitiesController : ApiController
|
||||
{
|
||||
#region 获取集合
|
||||
/// <summary>
|
||||
/// 获取集合
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public Model.ResponeData getSafetyResponsibilitiesList()
|
||||
{
|
||||
var responeData = new Model.ResponeData();
|
||||
try
|
||||
{
|
||||
responeData.data = SafetyResponsibilitiesService.GetSafetyResponsibilitiesList();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
responeData.code = 0;
|
||||
responeData.message = ex.Message;
|
||||
}
|
||||
|
||||
return responeData;
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
#region 根据id获取
|
||||
/// <summary>
|
||||
/// 根据id获取
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public Model.ResponeData getSafetyResponsibilitiesListById(string SafetyResponsibilitiesId)
|
||||
{
|
||||
var responeData = new Model.ResponeData();
|
||||
try
|
||||
{
|
||||
responeData.data = SafetyResponsibilitiesService.GetSafetyResponsibilitiesListById(SafetyResponsibilitiesId);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
responeData.code = 0;
|
||||
responeData.message = ex.Message;
|
||||
}
|
||||
|
||||
return responeData;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -168,6 +168,16 @@ namespace WebAPI.Filter
|
|||
"Environmental*SaveEnvironmentData",
|
||||
"Environmental*PushEnvironmentalCheckData",
|
||||
"Project*pushProject",
|
||||
"ProtectionStandards*getProtectionStandardsList",
|
||||
"ProtectionStandards*getProtectionStandardsListById",
|
||||
"SafetyResponsibilities*getSafetyResponsibilitiesList",
|
||||
"SafetyResponsibilities*getSafetyResponsibilitiesListById",
|
||||
"ConstructionStandards*getConstructionStandardsList",
|
||||
"ConstructionStandards*getConstructionStandardsListById",
|
||||
"AwardStandards*getAwardStandardsList",
|
||||
"AwardStandards*getAwardStandardsListById",
|
||||
"Rectify*getRectifyList",
|
||||
"ImageRecognition*getImageContent",
|
||||
|
||||
};
|
||||
|
||||
|
|
|
@ -62,6 +62,9 @@
|
|||
<Reference Include="FineUIPro, Version=6.3.0.0, Culture=neutral, PublicKeyToken=9cbe753c029f291a">
|
||||
<HintPath>..\FineUIPro\FineUIPro.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0\lib\net45\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="Microsoft.Office.Interop.Excel, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.Office.Interop.Excel.15.0.4795.1001\lib\net20\Microsoft.Office.Interop.Excel.dll</HintPath>
|
||||
|
@ -71,8 +74,14 @@
|
|||
<HintPath>..\packages\Microsoft.Office.Interop.Word.15.0.4797.1004\lib\net20\Microsoft.Office.Interop.Word.dll</HintPath>
|
||||
<EmbedInteropTypes>True</EmbedInteropTypes>
|
||||
</Reference>
|
||||
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Newtonsoft.Json.13.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
|
||||
<Reference Include="Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Newtonsoft.Json.6.0.4\lib\net45\Newtonsoft.Json.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="RestSharp, Version=106.15.0.0, Culture=neutral, PublicKeyToken=598062e77f915f75, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\RestSharp.106.15.0\lib\net452\RestSharp.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
|
@ -92,67 +101,47 @@
|
|||
<Reference Include="System.Web" />
|
||||
<Reference Include="System.Web.Abstractions" />
|
||||
<Reference Include="System.Web.Extensions" />
|
||||
<Reference Include="System.Web.Helpers, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.AspNet.WebPages.3.2.4\lib\net45\System.Web.Helpers.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Web.Http, Version=5.2.7.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.AspNet.WebApi.Core.5.2.7\lib\net45\System.Web.Http.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Web.Http.Cors, Version=5.2.7.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.AspNet.WebApi.Cors.5.2.7\lib\net45\System.Web.Http.Cors.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Web.Routing" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="System.Configuration" />
|
||||
<Reference Include="System.Runtime.Serialization" />
|
||||
<Reference Include="Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<Private>True</Private>
|
||||
<HintPath>..\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Net.Http">
|
||||
</Reference>
|
||||
<Reference Include="System.Net.Http.WebRequest">
|
||||
</Reference>
|
||||
<Reference Include="System.Web.Helpers, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<Private>True</Private>
|
||||
<HintPath>..\packages\Microsoft.AspNet.WebPages.3.2.4\lib\net45\System.Web.Helpers.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Web.Http.WebHost, Version=5.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.AspNet.WebApi.WebHost.5.2.4\lib\net45\System.Web.Http.WebHost.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Web.Mvc, Version=5.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<Private>True</Private>
|
||||
<HintPath>..\packages\Microsoft.AspNet.Mvc.5.2.4\lib\net45\System.Web.Mvc.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Web.Optimization">
|
||||
<Reference Include="System.Web.Optimization, Version=1.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.AspNet.Web.Optimization.1.1.3\lib\net40\System.Web.Optimization.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Web.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<Private>True</Private>
|
||||
<HintPath>..\packages\Microsoft.AspNet.Razor.3.2.4\lib\net45\System.Web.Razor.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Web.Routing" />
|
||||
<Reference Include="System.Web.WebPages, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<Private>True</Private>
|
||||
<HintPath>..\packages\Microsoft.AspNet.WebPages.3.2.4\lib\net45\System.Web.WebPages.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Web.WebPages.Deployment, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<Private>True</Private>
|
||||
<HintPath>..\packages\Microsoft.AspNet.WebPages.3.2.4\lib\net45\System.Web.WebPages.Deployment.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<Private>True</Private>
|
||||
<HintPath>..\packages\Microsoft.AspNet.WebPages.3.2.4\lib\net45\System.Web.WebPages.Razor.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="System.Configuration" />
|
||||
<Reference Include="System.Runtime.Serialization" />
|
||||
<Reference Include="System.Net.Http">
|
||||
</Reference>
|
||||
<Reference Include="System.Net.Http.WebRequest">
|
||||
</Reference>
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="WebGrease">
|
||||
<Private>True</Private>
|
||||
<HintPath>..\packages\WebGrease.1.6.0\lib\WebGrease.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Antlr3.Runtime">
|
||||
<Private>True</Private>
|
||||
<HintPath>..\packages\Antlr.3.5.0.2\lib\Antlr3.Runtime.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Microsoft.CodeDom.Providers.DotNetCompilerPlatform">
|
||||
<HintPath>..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0\lib\net45\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll</HintPath>
|
||||
<Reference Include="WebGrease, Version=1.5.2.14234, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\WebGrease.1.5.2\lib\WebGrease.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
@ -172,10 +161,16 @@
|
|||
<Compile Include="Controllers\DoorProject\getController.cs" />
|
||||
<Compile Include="Controllers\HJGL\ElectrodeRecoveryController.cs" />
|
||||
<Compile Include="Controllers\HJGL\PersonEntranceController.cs" />
|
||||
<Compile Include="Controllers\HSSE\AwardStandardsController.cs" />
|
||||
<Compile Include="Controllers\HSSE\ConstructionStandardsController.cs" />
|
||||
<Compile Include="Controllers\HSSE\GeneralEquipmentQualityController.cs" />
|
||||
<Compile Include="Controllers\HSSE\GoodsManageController.cs" />
|
||||
<Compile Include="Controllers\HSSE\HazardRealTimeController.cs" />
|
||||
<Compile Include="Controllers\HSSE\ImageRecognitionController.cs" />
|
||||
<Compile Include="Controllers\HSSE\MaterialController.cs" />
|
||||
<Compile Include="Controllers\HSSE\ProtectionStandardsController.cs" />
|
||||
<Compile Include="Controllers\HSSE\RectifyController.cs" />
|
||||
<Compile Include="Controllers\HSSE\SafetyResponsibilitiesController.cs" />
|
||||
<Compile Include="Controllers\HSSE\TrainTestRecordController.cs" />
|
||||
<Compile Include="Controllers\Person\PersonCheckController.cs" />
|
||||
<Compile Include="Controllers\CQMS\CheckEquipmentController.cs" />
|
||||
|
|
Loading…
Reference in New Issue