提交代码

This commit is contained in:
高飞 2025-03-10 11:08:30 +08:00
commit f5ec85ec82
13 changed files with 2993 additions and 6 deletions

View File

@ -79,7 +79,9 @@ namespace BLL
IsWx = "Y", IsWx = "Y",
CCManIds = hazardRegister.CCManIds, CCManIds = hazardRegister.CCManIds,
Requirements = hazardRegister.Requirements, Requirements = hazardRegister.Requirements,
Risk_Level = hazardRegister.Risk_Level Risk_Level = hazardRegister.Risk_Level,
RectifyId = hazardRegister.RectifyId,
RectifyName = hazardRegister.RectifyName,
}; };
var isUpdate = db.HSSE_Hazard_HazardRegister.FirstOrDefault(x => x.HazardRegisterId == newHazardRegister.HazardRegisterId); var isUpdate = db.HSSE_Hazard_HazardRegister.FirstOrDefault(x => x.HazardRegisterId == newHazardRegister.HazardRegisterId);
if (isUpdate == null) if (isUpdate == null)

View File

@ -750,6 +750,7 @@
<Compile Include="OfficeCheck\Check\ProjectSupervision_Check1Service.cs" /> <Compile Include="OfficeCheck\Check\ProjectSupervision_Check1Service.cs" />
<Compile Include="OfficeCheck\Check\ProjectSupervision_RectifyItemService.cs" /> <Compile Include="OfficeCheck\Check\ProjectSupervision_RectifyItemService.cs" />
<Compile Include="OfficeCheck\Check\ProjectSupervision_RectifyService.cs" /> <Compile Include="OfficeCheck\Check\ProjectSupervision_RectifyService.cs" />
<Compile Include="OfficeCheck\Inspect\Inspect_InspectionService.cs" />
<Compile Include="OfficeCheck\ProjectEvaluation\ProjectEvaluationService.cs" /> <Compile Include="OfficeCheck\ProjectEvaluation\ProjectEvaluationService.cs" />
<Compile Include="OpenService\FileInsertService.cs" /> <Compile Include="OpenService\FileInsertService.cs" />
<Compile Include="OpenService\FileStructService.cs" /> <Compile Include="OpenService\FileStructService.cs" />
@ -1150,7 +1151,6 @@
<ItemGroup> <ItemGroup>
<WCFMetadataStorage Include="Service References\CNCECHSSEService\" /> <WCFMetadataStorage Include="Service References\CNCECHSSEService\" />
</ItemGroup> </ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets. Other similar extension points exist, see Microsoft.Common.targets.

View File

@ -0,0 +1,494 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using Model;
using static BLL.SafetyResponsibilitiesService;
namespace BLL.OfficeCheck.Inspect;
public class Inspect_InspectionService
{
/// <summary>
/// 添加安全专项检查
/// </summary>
/// <param name="Inspection"></param>
public static void AddInspection(Model.Inspect_Inspection Inspection)
{
Model.SGGLDB db = Funs.DB;
Model.Inspect_Inspection newInspection = new Model.Inspect_Inspection
{
InspectionId = Inspection.InspectionId,
InspectionCode = Inspection.InspectionCode,
ProjectId = Inspection.ProjectId,
PersonResponsible = Inspection.PersonResponsible,
InspectTime = Inspection.InspectTime,
Description = Inspection.Description,
States = Inspection.States,
InspectMan = Inspection.InspectMan,
InspectType = Inspection.InspectType,
InspectItemSetId = Inspection.InspectItemSetId,
ProjectStates = Inspection.ProjectStates,
CreateMan = Inspection.CreateMan,
CreateTime = Inspection.CreateTime,
};
db.Inspect_Inspection.InsertOnSubmit(newInspection);
db.SubmitChanges();
// ////增加一条编码记录
// BLL.CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(BLL.Const.SafetyInspectionMenuId,
// Inspection.ProjectId, null, Inspection.InspectionId, new DateTime());
}
/// <summary>
/// 添加安全专项明细检查
/// </summary>
/// <param name="Inspection"></param>
public static void AddInspectionItem(Model.Inspect_InspectionItem InspectionItem)
{
Model.SGGLDB db = Funs.DB;
Model.Inspect_InspectionItem newInspectionItem = new Model.Inspect_InspectionItem
{
InspectionItemId = InspectionItem.InspectionItemId,
InspectionId = InspectionItem.InspectionId,
InspectionItemCode = InspectionItem.InspectionItemCode,
ProjectId = InspectionItem.ProjectId,
InspectionDescribe = InspectionItem.InspectionDescribe,
PhotoUrl = InspectionItem.PhotoUrl,
VideoUrl = InspectionItem.VideoUrl,
EvaluateResults = InspectionItem.EvaluateResults,
TimeLimited = InspectionItem.TimeLimited,
RectificationDescription = InspectionItem.RectificationDescription,
RectificationResults = InspectionItem.RectificationResults,
States = InspectionItem.States,
CompileMan = InspectionItem.CompileMan,
CompileTime = InspectionItem.CompileTime,
};
db.Inspect_InspectionItem.InsertOnSubmit(newInspectionItem);
db.SubmitChanges();
// ////增加一条编码记录
// BLL.CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(BLL.Const.ProjectSafetyInspectionMenuId,
// InspectionItem.ProjectId, null, InspectionItem.InspectionItemId, new DateTime());
}
/// <summary>
/// 根据专项检查ID获取专项明细信息
/// </summary>
/// <param name="CheckSpecialName"></param>
/// <returns></returns>
public static Model.Inspect_InspectionItem GetInspectItemsById(string InspectionItemId)
{
return Funs.DB.Inspect_InspectionItem.FirstOrDefault(e => e.InspectionItemId == InspectionItemId);
}
/// <summary>
/// 根据专项检查ID获取专项信息
/// </summary>
/// <param name="CheckSpecialName"></param>
/// <returns></returns>
public static Model.Inspect_Inspection GetInspectionByInspectionId(string InspectionId)
{
return Funs.DB.Inspect_Inspection.FirstOrDefault(e => e.InspectionId == InspectionId);
}
/// <summary>
/// 修改安全专项检查
/// </summary>
/// <param name="Inspection"></param>
public static void UpdateInspection(Model.Inspect_Inspection Inspection)
{
Model.SGGLDB db = Funs.DB;
Model.Inspect_Inspection newInspection =
db.Inspect_Inspection.FirstOrDefault(e => e.InspectionId == Inspection.InspectionId);
if (newInspection != null)
{
newInspection.InspectionCode = Inspection.InspectionCode;
//newInspection.ProjectId = Inspection.ProjectId;
newInspection.PersonResponsible = Inspection.PersonResponsible;
newInspection.InspectTime = Inspection.InspectTime;
newInspection.Description = Inspection.Description;
newInspection.States = Inspection.States;
newInspection.InspectMan = Inspection.InspectMan;
newInspection.InspectType = Inspection.InspectType;
newInspection.InspectItemSetId = Inspection.InspectItemSetId;
db.SubmitChanges();
}
}
/// <summary>
/// 修改安全专项检查明细
/// </summary>
/// <param name="Inspection"></param>
public static void UpdateInspectionItem(Model.Inspect_InspectionItem InspectionItem)
{
Model.SGGLDB db = Funs.DB;
Model.Inspect_InspectionItem newInspectionItem =
db.Inspect_InspectionItem.FirstOrDefault(e => e.InspectionItemId == InspectionItem.InspectionItemId);
if (newInspectionItem != null)
{
newInspectionItem.InspectionItemCode = InspectionItem.InspectionItemCode;
//newInspection.ProjectId = Inspection.ProjectId;
newInspectionItem.InspectionDescribe = InspectionItem.InspectionDescribe;
newInspectionItem.PhotoUrl = InspectionItem.PhotoUrl;
newInspectionItem.VideoUrl = InspectionItem.VideoUrl;
newInspectionItem.EvaluateResults = InspectionItem.EvaluateResults;
newInspectionItem.TimeLimited = InspectionItem.TimeLimited;
newInspectionItem.RectificationDescription = InspectionItem.RectificationDescription;
newInspectionItem.RectificationResults = InspectionItem.RectificationResults;
newInspectionItem.States = InspectionItem.States;
newInspectionItem.CompileMan = InspectionItem.CompileMan;
newInspectionItem.CompileTime = InspectionItem.CompileTime;
db.SubmitChanges();
}
}
/// <summary>
/// 根据专项检查ID删除对应专项检查记录信息
/// </summary>
/// <param name="superviseCheckReportId"></param>
public static void DeleteInspectionById(string InspectionId)
{
Model.SGGLDB db = Funs.DB;
var q = (from x in db.Inspect_Inspection where x.InspectionId == InspectionId select x).FirstOrDefault();
if (q != null)
{
///删除编码表记录
BLL.CodeRecordsService.DeleteCodeRecordsByDataId(q.InspectionId);
////删除附件表
BLL.CommonService.DeleteAttachFileById(q.InspectionId);
////删除审核流程表
BLL.CommonService.DeleteFlowOperateByID(q.InspectionId);
//删除明细
var list = (from x in db.Inspect_InspectionItem where x.InspectionId == InspectionId select x).ToList();
list.ForEach(e => { db.Inspect_InspectionItem.DeleteOnSubmit(e); });
db.Inspect_Inspection.DeleteOnSubmit(q);
}
db.SubmitChanges();
}
/// <summary>
/// 根据专项明细ID删除对应信息
/// </summary>
/// <param name="superviseCheckReportId"></param>
public static void DeleteInspectItemsById(string InspectionItemId)
{
Model.SGGLDB db = Funs.DB;
var q = (from x in db.Inspect_InspectionItem where x.InspectionItemId == InspectionItemId select x).FirstOrDefault();
if (q != null)
{
db.Inspect_InspectionItem.DeleteOnSubmit(q);
}
db.SubmitChanges();
}
/// <summary>
/// 根据专项检查ID删除对应专项检查明细记录信息
/// </summary>
/// <param name="superviseCheckReportId"></param>
public static void DeleteInspectionItemsByInspectionId(string InspectionId)
{
Model.SGGLDB db = Funs.DB;
var list = (from x in db.Inspect_InspectionItem where x.InspectionId == InspectionId select x).ToList();
list.ForEach(e => { db.Inspect_InspectionItem.DeleteOnSubmit(e); });
db.SubmitChanges();
}
/// <summary>
/// 获取专检集合
/// </summary>
/// <param name="SafetyResponsibilitiesId"></param>
/// <returns></returns>
public static List<InspectionDto> GetInspectionList(string? ProjectId,string States,string? PersonResponsible,int PageNumber, int PageSize)
{
var getDataLists = (from x in Funs.DB.Inspect_Inspection
join user in Funs.DB.Sys_User on x.InspectMan equals user.UserId into userJoin1
from subUser1 in userJoin1.DefaultIfEmpty()
join user in Funs.DB.Sys_User on x.CreateMan equals user.UserId into userJoin2
from subUser2 in userJoin2.DefaultIfEmpty()
join user in Funs.DB.Sys_User on x.PersonResponsible equals user.UserId into userJoin3
from subUser3 in userJoin3.DefaultIfEmpty()
join p in Funs.DB.Base_Project on x.ProjectId equals p.ProjectId into project
from pro in project.DefaultIfEmpty()
select new InspectionDto
{
InspectionId = x.InspectionId,
InspectionCode = x.InspectionCode,
ProjectId = x.ProjectId,
ProjectName = pro.ProjectName,
PersonResponsible = x.PersonResponsible,
PersonResponsibleName = subUser3.UserName,
InspectTime = x.InspectTime,
Description = x.Description,
States = x.States,
InspectMan = subUser1.UserName,
InspectManId = x.InspectMan,
InspectType = x.InspectType,
InspectItemSetId = x.InspectItemSetId,
CreateMan = subUser2.UserName,
CreateTime = x.CreateTime,
});
if (!string.IsNullOrEmpty(ProjectId))
{
getDataLists = getDataLists.Where(q => q.ProjectId == ProjectId);
}
if (!string.IsNullOrEmpty(States))
{
getDataLists = getDataLists.Where(q => q.States == States);
}
if (!string.IsNullOrEmpty(PersonResponsible))
{
getDataLists = getDataLists.Where(q => q.PersonResponsible == PersonResponsible);
}
if (PageNumber > 0 && PageSize > 0)
{
getDataLists = getDataLists.Skip((PageNumber - 1) * PageSize).Take(PageSize);
}
return getDataLists.ToList();
}
/// <summary>
/// 获取专检明细集合
/// </summary>
/// <param name="SafetyResponsibilitiesId"></param>
/// <returns></returns>
public static List<InspectionItemDto> GetInspectionItemList(string InspectionId, int PageNumber, int PageSize)
{
List<InspectionItemDto> getDataLists = (from x in Funs.DB.Inspect_InspectionItem
join user in Funs.DB.Sys_User on x.CompileMan equals user.UserId into userJoin1
from subUser1 in userJoin1.DefaultIfEmpty()
join p in Funs.DB.Base_Project on x.ProjectId equals p.ProjectId into project
from pro in project.DefaultIfEmpty()
where x.InspectionId == InspectionId
select new InspectionItemDto
{
InspectionItemId = x.InspectionItemId,
InspectionId = x.InspectionId,
InspectionItemCode = x.InspectionItemCode,
ProjectId = x.ProjectId,
ProjectName = pro.ProjectName,
InspectionDescribe = x.InspectionDescribe,
PhotoUrl = x.PhotoUrl,
VideoUrl = x.VideoUrl,
EvaluateResults = x.EvaluateResults,
TimeLimited = x.TimeLimited,
RectificationDescription = x.RectificationDescription,
RectificationResults = x.RectificationResults,
States = x.States,
CompileMan = subUser1.UserName,
CompileTime = x.CompileTime,
}).ToList();
if (PageNumber > 0 && PageSize > 0)
{
getDataLists = getDataLists.Skip((PageNumber - 1) * PageSize).Take(PageSize).ToList();
}
return getDataLists;
}
/// <summary>
/// 根据专项检查ID获取专项明细检查信息
/// </summary>
/// <param name="CheckSpecialName"></param>
/// <returns></returns>
public static List<Model.Inspect_InspectionItem> GetInspectItemsByInspectionId(string InspectionId)
{
var list = (from x in Funs.DB.Inspect_InspectionItem
where x.InspectionId == InspectionId
select x).ToList();
return list;
}
public class InspectionDto
{
public string InspectionId
{
get;
set;
}
public string InspectionCode
{
get;
set;
}
public string ProjectId
{
get;
set;
}
public string ProjectName
{
get;
set;
}
public string PersonResponsible
{
get;
set;
}
public string PersonResponsibleName
{
get;
set;
}
public System.Nullable<System.DateTime> InspectTime
{
get;
set;
}
public string Description
{
get;
set;
}
public string States
{
get;
set;
}
public string InspectMan
{
get;
set;
}
public string InspectManId
{
get;
set;
}
public string InspectType
{
get;
set;
}
public string InspectItemSetId
{
get;
set;
}
public string CreateMan
{
get;
set;
}
public System.Nullable<System.DateTime> CreateTime
{
get;
set;
}
}
public class InspectionItemDto
{
public string InspectionItemId
{
get;
set;
}
public string InspectionId
{
get;
set;
}
public string InspectionItemCode
{
get;
set;
}
public string ProjectId
{
get;
set;
}
public string ProjectName
{
get;
set;
}
public string InspectionDescribe
{
get;
set;
}
public string PhotoUrl
{
get;
set;
}
public string VideoUrl
{
get;
set;
}
public string EvaluateResults
{
get;
set;
}
public System.Nullable<System.DateTime> TimeLimited
{
get;
set;
}
public string RectificationDescription
{
get;
set;
}
public string RectificationResults
{
get;
set;
}
public string States
{
get;
set;
}
public string CompileMan
{
get;
set;
}
public System.Nullable<System.DateTime> CompileTime
{
get;
set;
}
}
}

View File

@ -367,5 +367,16 @@ namespace Model
get; get;
set; set;
} }
public string RectifyId
{
get;
set;
}
public string RectifyName
{
get;
set;
}
} }
} }

View File

@ -228815,6 +228815,881 @@ namespace Model
private EntitySet<Inspect_InspectionItem> _Inspect_InspectionItem; private EntitySet<Inspect_InspectionItem> _Inspect_InspectionItem;
#region
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnInspectionIdChanging(string value);
partial void OnInspectionIdChanged();
partial void OnInspectionCodeChanging(string value);
partial void OnInspectionCodeChanged();
partial void OnProjectIdChanging(string value);
partial void OnProjectIdChanged();
partial void OnPersonResponsibleChanging(string value);
partial void OnPersonResponsibleChanged();
partial void OnInspectTimeChanging(System.Nullable<System.DateTime> value);
partial void OnInspectTimeChanged();
partial void OnDescriptionChanging(string value);
partial void OnDescriptionChanged();
partial void OnStatesChanging(string value);
partial void OnStatesChanged();
partial void OnInspectManChanging(string value);
partial void OnInspectManChanged();
partial void OnInspectTypeChanging(string value);
partial void OnInspectTypeChanged();
partial void OnInspectItemSetIdChanging(string value);
partial void OnInspectItemSetIdChanged();
partial void OnProjectStatesChanging(string value);
partial void OnProjectStatesChanged();
partial void OnCreateManChanging(string value);
partial void OnCreateManChanged();
partial void OnCreateTimeChanging(System.Nullable<System.DateTime> value);
partial void OnCreateTimeChanged();
#endregion
public Inspect_Inspection()
{
this._Base_Project = default(EntityRef<Base_Project>);
this._Inspect_InspectionItem = new EntitySet<Inspect_InspectionItem>(new Action<Inspect_InspectionItem>(this.attach_Inspect_InspectionItem), new Action<Inspect_InspectionItem>(this.detach_Inspect_InspectionItem));
OnCreated();
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InspectionId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
public string InspectionId
{
get
{
return this._InspectionId;
}
set
{
if ((this._InspectionId != value))
{
this.OnInspectionIdChanging(value);
this.SendPropertyChanging();
this._InspectionId = value;
this.SendPropertyChanged("InspectionId");
this.OnInspectionIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InspectionCode", DbType="NVarChar(50)")]
public string InspectionCode
{
get
{
return this._InspectionCode;
}
set
{
if ((this._InspectionCode != value))
{
this.OnInspectionCodeChanging(value);
this.SendPropertyChanging();
this._InspectionCode = value;
this.SendPropertyChanged("InspectionCode");
this.OnInspectionCodeChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")]
public string ProjectId
{
get
{
return this._ProjectId;
}
set
{
if ((this._ProjectId != value))
{
if (this._Base_Project.HasLoadedOrAssignedValue)
{
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
}
this.OnProjectIdChanging(value);
this.SendPropertyChanging();
this._ProjectId = value;
this.SendPropertyChanged("ProjectId");
this.OnProjectIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PersonResponsible", DbType="NVarChar(50)")]
public string PersonResponsible
{
get
{
return this._PersonResponsible;
}
set
{
if ((this._PersonResponsible != value))
{
this.OnPersonResponsibleChanging(value);
this.SendPropertyChanging();
this._PersonResponsible = value;
this.SendPropertyChanged("PersonResponsible");
this.OnPersonResponsibleChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InspectTime", DbType="DateTime")]
public System.Nullable<System.DateTime> InspectTime
{
get
{
return this._InspectTime;
}
set
{
if ((this._InspectTime != value))
{
this.OnInspectTimeChanging(value);
this.SendPropertyChanging();
this._InspectTime = value;
this.SendPropertyChanged("InspectTime");
this.OnInspectTimeChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Description", DbType="NVarChar(2000)")]
public string Description
{
get
{
return this._Description;
}
set
{
if ((this._Description != value))
{
this.OnDescriptionChanging(value);
this.SendPropertyChanging();
this._Description = value;
this.SendPropertyChanged("Description");
this.OnDescriptionChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_States", DbType="Char(1)")]
public string States
{
get
{
return this._States;
}
set
{
if ((this._States != value))
{
this.OnStatesChanging(value);
this.SendPropertyChanging();
this._States = value;
this.SendPropertyChanged("States");
this.OnStatesChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InspectMan", DbType="NVarChar(50)")]
public string InspectMan
{
get
{
return this._InspectMan;
}
set
{
if ((this._InspectMan != value))
{
this.OnInspectManChanging(value);
this.SendPropertyChanging();
this._InspectMan = value;
this.SendPropertyChanged("InspectMan");
this.OnInspectManChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InspectType", DbType="Char(1)")]
public string InspectType
{
get
{
return this._InspectType;
}
set
{
if ((this._InspectType != value))
{
this.OnInspectTypeChanging(value);
this.SendPropertyChanging();
this._InspectType = value;
this.SendPropertyChanged("InspectType");
this.OnInspectTypeChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InspectItemSetId", DbType="NVarChar(50)")]
public string InspectItemSetId
{
get
{
return this._InspectItemSetId;
}
set
{
if ((this._InspectItemSetId != value))
{
this.OnInspectItemSetIdChanging(value);
this.SendPropertyChanging();
this._InspectItemSetId = value;
this.SendPropertyChanged("InspectItemSetId");
this.OnInspectItemSetIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectStates", DbType="Char(1)")]
public string ProjectStates
{
get
{
return this._ProjectStates;
}
set
{
if ((this._ProjectStates != value))
{
this.OnProjectStatesChanging(value);
this.SendPropertyChanging();
this._ProjectStates = value;
this.SendPropertyChanged("ProjectStates");
this.OnProjectStatesChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreateMan", DbType="NVarChar(50)")]
public string CreateMan
{
get
{
return this._CreateMan;
}
set
{
if ((this._CreateMan != value))
{
this.OnCreateManChanging(value);
this.SendPropertyChanging();
this._CreateMan = value;
this.SendPropertyChanged("CreateMan");
this.OnCreateManChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreateTime", DbType="DateTime")]
public System.Nullable<System.DateTime> CreateTime
{
get
{
return this._CreateTime;
}
set
{
if ((this._CreateTime != value))
{
this.OnCreateTimeChanging(value);
this.SendPropertyChanging();
this._CreateTime = value;
this.SendPropertyChanged("CreateTime");
this.OnCreateTimeChanged();
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Inspect_Inspection_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)]
public Base_Project Base_Project
{
get
{
return this._Base_Project.Entity;
}
set
{
Base_Project previousValue = this._Base_Project.Entity;
if (((previousValue != value)
|| (this._Base_Project.HasLoadedOrAssignedValue == false)))
{
this.SendPropertyChanging();
if ((previousValue != null))
{
this._Base_Project.Entity = null;
previousValue.Inspect_Inspection.Remove(this);
}
this._Base_Project.Entity = value;
if ((value != null))
{
value.Inspect_Inspection.Add(this);
this._ProjectId = value.ProjectId;
}
else
{
this._ProjectId = default(string);
}
this.SendPropertyChanged("Base_Project");
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Inspect_InspectionItem_Inspect_Inspection", Storage="_Inspect_InspectionItem", ThisKey="InspectionId", OtherKey="InspectionId", DeleteRule="NO ACTION")]
public EntitySet<Inspect_InspectionItem> Inspect_InspectionItem
{
get
{
return this._Inspect_InspectionItem;
}
set
{
this._Inspect_InspectionItem.Assign(value);
}
}
public event PropertyChangingEventHandler PropertyChanging;
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void SendPropertyChanging()
{
if ((this.PropertyChanging != null))
{
this.PropertyChanging(this, emptyChangingEventArgs);
}
}
protected virtual void SendPropertyChanged(String propertyName)
{
if ((this.PropertyChanged != null))
{
this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}
private void attach_Inspect_InspectionItem(Inspect_InspectionItem entity)
{
this.SendPropertyChanging();
entity.Inspect_Inspection = this;
}
private void detach_Inspect_InspectionItem(Inspect_InspectionItem entity)
{
this.SendPropertyChanging();
entity.Inspect_Inspection = null;
}
}
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Inspect_InspectionItem")]
public partial class Inspect_InspectionItem : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private string _InspectionItemId;
private string _InspectionId;
private string _InspectionItemCode;
private string _ProjectId;
private string _InspectionDescribe;
private string _PhotoUrl;
private string _VideoUrl;
private string _EvaluateResults;
private System.Nullable<System.DateTime> _TimeLimited;
private string _RectificationDescription;
private string _RectificationResults;
private string _States;
private string _CompileMan;
private System.Nullable<System.DateTime> _CompileTime;
private EntityRef<Base_Project> _Base_Project;
private EntityRef<Inspect_Inspection> _Inspect_Inspection;
#region
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnInspectionItemIdChanging(string value);
partial void OnInspectionItemIdChanged();
partial void OnInspectionIdChanging(string value);
partial void OnInspectionIdChanged();
partial void OnInspectionItemCodeChanging(string value);
partial void OnInspectionItemCodeChanged();
partial void OnProjectIdChanging(string value);
partial void OnProjectIdChanged();
partial void OnInspectionDescribeChanging(string value);
partial void OnInspectionDescribeChanged();
partial void OnPhotoUrlChanging(string value);
partial void OnPhotoUrlChanged();
partial void OnVideoUrlChanging(string value);
partial void OnVideoUrlChanged();
partial void OnEvaluateResultsChanging(string value);
partial void OnEvaluateResultsChanged();
partial void OnTimeLimitedChanging(System.Nullable<System.DateTime> value);
partial void OnTimeLimitedChanged();
partial void OnRectificationDescriptionChanging(string value);
partial void OnRectificationDescriptionChanged();
partial void OnRectificationResultsChanging(string value);
partial void OnRectificationResultsChanged();
partial void OnStatesChanging(string value);
partial void OnStatesChanged();
partial void OnCompileManChanging(string value);
partial void OnCompileManChanged();
partial void OnCompileTimeChanging(System.Nullable<System.DateTime> value);
partial void OnCompileTimeChanged();
#endregion
public Inspect_InspectionItem()
{
this._Base_Project = default(EntityRef<Base_Project>);
this._Inspect_Inspection = default(EntityRef<Inspect_Inspection>);
OnCreated();
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InspectionItemId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
public string InspectionItemId
{
get
{
return this._InspectionItemId;
}
set
{
if ((this._InspectionItemId != value))
{
this.OnInspectionItemIdChanging(value);
this.SendPropertyChanging();
this._InspectionItemId = value;
this.SendPropertyChanged("InspectionItemId");
this.OnInspectionItemIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InspectionId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
public string InspectionId
{
get
{
return this._InspectionId;
}
set
{
if ((this._InspectionId != value))
{
if (this._Inspect_Inspection.HasLoadedOrAssignedValue)
{
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
}
this.OnInspectionIdChanging(value);
this.SendPropertyChanging();
this._InspectionId = value;
this.SendPropertyChanged("InspectionId");
this.OnInspectionIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InspectionItemCode", DbType="NVarChar(50)")]
public string InspectionItemCode
{
get
{
return this._InspectionItemCode;
}
set
{
if ((this._InspectionItemCode != value))
{
this.OnInspectionItemCodeChanging(value);
this.SendPropertyChanging();
this._InspectionItemCode = value;
this.SendPropertyChanged("InspectionItemCode");
this.OnInspectionItemCodeChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")]
public string ProjectId
{
get
{
return this._ProjectId;
}
set
{
if ((this._ProjectId != value))
{
if (this._Base_Project.HasLoadedOrAssignedValue)
{
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
}
this.OnProjectIdChanging(value);
this.SendPropertyChanging();
this._ProjectId = value;
this.SendPropertyChanged("ProjectId");
this.OnProjectIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InspectionDescribe", DbType="NVarChar(1000)")]
public string InspectionDescribe
{
get
{
return this._InspectionDescribe;
}
set
{
if ((this._InspectionDescribe != value))
{
this.OnInspectionDescribeChanging(value);
this.SendPropertyChanging();
this._InspectionDescribe = value;
this.SendPropertyChanged("InspectionDescribe");
this.OnInspectionDescribeChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PhotoUrl", DbType="NVarChar(1000)")]
public string PhotoUrl
{
get
{
return this._PhotoUrl;
}
set
{
if ((this._PhotoUrl != value))
{
this.OnPhotoUrlChanging(value);
this.SendPropertyChanging();
this._PhotoUrl = value;
this.SendPropertyChanged("PhotoUrl");
this.OnPhotoUrlChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_VideoUrl", DbType="NVarChar(1000)")]
public string VideoUrl
{
get
{
return this._VideoUrl;
}
set
{
if ((this._VideoUrl != value))
{
this.OnVideoUrlChanging(value);
this.SendPropertyChanging();
this._VideoUrl = value;
this.SendPropertyChanged("VideoUrl");
this.OnVideoUrlChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EvaluateResults", DbType="NVarChar(20)")]
public string EvaluateResults
{
get
{
return this._EvaluateResults;
}
set
{
if ((this._EvaluateResults != value))
{
this.OnEvaluateResultsChanging(value);
this.SendPropertyChanging();
this._EvaluateResults = value;
this.SendPropertyChanged("EvaluateResults");
this.OnEvaluateResultsChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TimeLimited", DbType="DateTime")]
public System.Nullable<System.DateTime> TimeLimited
{
get
{
return this._TimeLimited;
}
set
{
if ((this._TimeLimited != value))
{
this.OnTimeLimitedChanging(value);
this.SendPropertyChanging();
this._TimeLimited = value;
this.SendPropertyChanged("TimeLimited");
this.OnTimeLimitedChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RectificationDescription", DbType="NVarChar(1000)")]
public string RectificationDescription
{
get
{
return this._RectificationDescription;
}
set
{
if ((this._RectificationDescription != value))
{
this.OnRectificationDescriptionChanging(value);
this.SendPropertyChanging();
this._RectificationDescription = value;
this.SendPropertyChanged("RectificationDescription");
this.OnRectificationDescriptionChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RectificationResults", DbType="NVarChar(20)")]
public string RectificationResults
{
get
{
return this._RectificationResults;
}
set
{
if ((this._RectificationResults != value))
{
this.OnRectificationResultsChanging(value);
this.SendPropertyChanging();
this._RectificationResults = value;
this.SendPropertyChanged("RectificationResults");
this.OnRectificationResultsChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_States", DbType="NVarChar(100)")]
public string States
{
get
{
return this._States;
}
set
{
if ((this._States != value))
{
this.OnStatesChanging(value);
this.SendPropertyChanging();
this._States = value;
this.SendPropertyChanged("States");
this.OnStatesChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileMan", DbType="NVarChar(50)")]
public string CompileMan
{
get
{
return this._CompileMan;
}
set
{
if ((this._CompileMan != value))
{
this.OnCompileManChanging(value);
this.SendPropertyChanging();
this._CompileMan = value;
this.SendPropertyChanged("CompileMan");
this.OnCompileManChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileTime", DbType="DateTime")]
public System.Nullable<System.DateTime> CompileTime
{
get
{
return this._CompileTime;
}
set
{
if ((this._CompileTime != value))
{
this.OnCompileTimeChanging(value);
this.SendPropertyChanging();
this._CompileTime = value;
this.SendPropertyChanged("CompileTime");
this.OnCompileTimeChanged();
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Inspect_InspectionItem_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)]
public Base_Project Base_Project
{
get
{
return this._Base_Project.Entity;
}
set
{
Base_Project previousValue = this._Base_Project.Entity;
if (((previousValue != value)
|| (this._Base_Project.HasLoadedOrAssignedValue == false)))
{
this.SendPropertyChanging();
if ((previousValue != null))
{
this._Base_Project.Entity = null;
previousValue.Inspect_InspectionItem.Remove(this);
}
this._Base_Project.Entity = value;
if ((value != null))
{
value.Inspect_InspectionItem.Add(this);
this._ProjectId = value.ProjectId;
}
else
{
this._ProjectId = default(string);
}
this.SendPropertyChanged("Base_Project");
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Inspect_InspectionItem_Inspect_Inspection", Storage="_Inspect_Inspection", ThisKey="InspectionId", OtherKey="InspectionId", IsForeignKey=true)]
public Inspect_Inspection Inspect_Inspection
{
get
{
return this._Inspect_Inspection.Entity;
}
set
{
Inspect_Inspection previousValue = this._Inspect_Inspection.Entity;
if (((previousValue != value)
|| (this._Inspect_Inspection.HasLoadedOrAssignedValue == false)))
{
this.SendPropertyChanging();
if ((previousValue != null))
{
this._Inspect_Inspection.Entity = null;
previousValue.Inspect_InspectionItem.Remove(this);
}
this._Inspect_Inspection.Entity = value;
if ((value != null))
{
value.Inspect_InspectionItem.Add(this);
this._InspectionId = value.InspectionId;
}
else
{
this._InspectionId = default(string);
}
this.SendPropertyChanged("Inspect_Inspection");
}
}
}
public event PropertyChangingEventHandler PropertyChanging;
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void SendPropertyChanging()
{
if ((this.PropertyChanging != null))
{
this.PropertyChanging(this, emptyChangingEventArgs);
}
}
protected virtual void SendPropertyChanged(String propertyName)
{
if ((this.PropertyChanged != null))
{
this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}
}
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Inspect_Inspection")]
public partial class Inspect_Inspection : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private string _InspectionId;
private string _InspectionCode;
private string _ProjectId;
private string _PersonResponsible;
private System.Nullable<System.DateTime> _InspectTime;
private string _Description;
private string _States;
private string _InspectMan;
private string _InspectType;
private string _InspectItemSetId;
private string _ProjectStates;
private string _CreateMan;
private System.Nullable<System.DateTime> _CreateTime;
private EntityRef<Base_Project> _Base_Project;
private EntitySet<Inspect_InspectionItem> _Inspect_InspectionItem;
#region #region
partial void OnLoaded(); partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action); partial void OnValidate(System.Data.Linq.ChangeAction action);

View File

@ -0,0 +1,47 @@
using System;
using System.Data.SqlClient;
namespace WebAPI.Helpers
{
public class DatabaseHelper : IDisposable
{
private SqlConnection _sqlConnection;
private bool _disposed = false;
public DatabaseHelper(string connectionString)
{
_sqlConnection = new SqlConnection(connectionString);
_sqlConnection.Open();
}
public SqlConnection GetConnection()
{
return _sqlConnection;
}
public void Dispose()
{
Dispose(true);
GC.SuppressFinalize(this);
}
protected virtual void Dispose(bool disposing)
{
if (!_disposed)
{
if (disposing)
{
// 释放托管资源
if (_sqlConnection != null)
{
_sqlConnection.Close();
_sqlConnection.Dispose();
_sqlConnection = null;
}
}
// 释放非托管资源
_disposed = true;
}
}
}
}

View File

@ -40,7 +40,9 @@ namespace WebAPI.Controllers.HSSE
var responeData = new Model.ResponeData(); var responeData = new Model.ResponeData();
try try
{ {
responeData.data = AwardStandardsService.GetAwardStandardsListById(AwardStandardsId); var data = AwardStandardsService.GetAwardStandardsListById(AwardStandardsId);
data.AttachUrl = BLL.AttachFileService.getFileUrl(data.AwardStandardsId);
responeData.data = data;
} }
catch (Exception ex) catch (Exception ex)
{ {

View File

@ -40,7 +40,9 @@ namespace WebAPI.Controllers.HSSE
var responeData = new Model.ResponeData(); var responeData = new Model.ResponeData();
try try
{ {
responeData.data = ConstructionStandardsService.GetConstructionStandardsListById(ConstructionStandardsId); var data = ConstructionStandardsService.GetConstructionStandardsListById(ConstructionStandardsId);
data.AttachUrl = BLL.AttachFileService.getFileUrl(data.ConstructionStandardsId);
responeData.data = data;
} }
catch (Exception ex) catch (Exception ex)
{ {

View File

@ -39,7 +39,9 @@ namespace WebAPI.Controllers.HSSE
var responeData = new Model.ResponeData(); var responeData = new Model.ResponeData();
try try
{ {
responeData.data = ProtectionStandardsService.GetProtectionStandardsListById(ProtectionStandardsId); var data = ProtectionStandardsService.GetProtectionStandardsListById(ProtectionStandardsId);
data.AttachUrl = BLL.AttachFileService.getFileUrl(data.ProtectionStandardsId);
responeData.data = data;
} }
catch (Exception ex) catch (Exception ex)
{ {

View File

@ -0,0 +1,264 @@
using BLL;
using System;
using System.Linq;
using System.Web.Http;
using BLL.OfficeCheck.Inspect;
using Model;
using static BLL.OfficeCheck.Inspect.Inspect_InspectionService;
using System.Collections.Generic;
namespace WebAPI.Controllers.HSSE
{
public class SafetyInspectionController : ApiController
{
//新增
/// <summary>
/// 编辑 保存
/// </summary>
/// <param name="trainingPlan">安全专检</param>
[HttpPost]
public Model.ResponeData Save([FromBody] Model.Inspect_Inspection Inspection)
{
var responeData = new Model.ResponeData();
try
{
if (string.IsNullOrEmpty(Inspection.InspectionId))
{
Inspection.InspectionId = Guid.NewGuid().ToString();
Inspection.CreateTime = DateTime.Now;
Inspect_InspectionService.AddInspection(Inspection);
}
else
{
Inspect_InspectionService.UpdateInspection(Inspection);
}
}
catch (Exception ex)
{
responeData.code = 0;
responeData.message = ex.Message;
}
return responeData;
}
//查询
public Model.ResponeData getList(string ProjectId,string States,string PersonResponsible, int PageNumber, int PageSize)
{
var responeData = new Model.ResponeData();
try
{
responeData.data = Inspect_InspectionService.GetInspectionList(ProjectId,States,PersonResponsible,PageNumber,PageSize);
}
catch (Exception ex)
{
responeData.code = 0;
responeData.message = ex.Message;
}
return responeData;
}
//专检明细
public Model.ResponeData getInspectionById(string InspectionId)
{
var responeData = new Model.ResponeData();
try
{
var getDataLists = (from x in Funs.DB.Inspect_Inspection
join user in Funs.DB.Sys_User on x.InspectMan equals user.UserId into userJoin1
from subUser1 in userJoin1.DefaultIfEmpty()
join user in Funs.DB.Sys_User on x.CreateMan equals user.UserId into userJoin2
from subUser2 in userJoin2.DefaultIfEmpty()
join user in Funs.DB.Sys_User on x.PersonResponsible equals user.UserId into userJoin3
from subUser3 in userJoin3.DefaultIfEmpty()
join p in Funs.DB.Base_Project on x.ProjectId equals p.ProjectId into project
from pro in project.DefaultIfEmpty()
where x.InspectionId == InspectionId
select new InspectionDto
{
InspectionId = x.InspectionId,
InspectionCode = x.InspectionCode,
ProjectId = x.ProjectId,
ProjectName = pro.ProjectName,
PersonResponsible = x.PersonResponsible,
PersonResponsibleName = subUser3.UserName,
InspectTime = x.InspectTime,
Description = x.Description,
States = x.States,
InspectMan = subUser1.UserName,
InspectManId = x.InspectMan,
InspectType = x.InspectType,
InspectItemSetId = x.InspectItemSetId,
CreateMan = subUser2.UserName,
CreateTime = x.CreateTime,
}).FirstOrDefault();
responeData.data = getDataLists;
}
catch (Exception ex)
{
responeData.code = 0;
responeData.message = ex.Message;
}
return responeData;
}
//项目负责人下拉
public Model.ResponeData getPersonResponsibleList(string ProjectId)
{
var responeData = new Model.ResponeData();
try
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
var users = (from x in db.Sys_User
where x.IsPost == true && x.UserId != Const.hfnbdId && x.UserId != Const.sedinId
orderby x.UserName
select new UserDto
{
UserId = x.UserId,
UserName = x.UserName,
}).ToList();
if (!string.IsNullOrEmpty(ProjectId))
{
users = (from x in users
join y in db.Project_ProjectUser on x.UserId equals y.UserId
where y.ProjectId == ProjectId
orderby x.UserName
select new UserDto
{
UserId = x.UserId,
UserName = x.UserName,
}).ToList();
}
responeData.data = users;
}
}
catch (Exception ex)
{
responeData.code = 0;
responeData.message = ex.Message;
}
return responeData;
}
public class UserDto
{
public string UserId
{
get;
set;
}
public string UserName
{
get;
set;
}
}
//专检明细
public Model.ResponeData getInspectItemsByInspectionId(string InspectionId, int PageNumber, int PageSize)
{
var responeData = new Model.ResponeData();
try
{
responeData.data = Inspect_InspectionService.GetInspectionItemList(InspectionId,PageNumber,PageSize);
}
catch (Exception ex)
{
responeData.code = 0;
responeData.message = ex.Message;
}
return responeData;
}
//编辑 新增明细
[HttpPost]
public Model.ResponeData SaveInspectionItem([FromBody] List<Model.Inspect_InspectionItem> InspectionItems)
{
var responeData = new Model.ResponeData();
try
{
foreach (var InspectionItem in InspectionItems)
{
if (string.IsNullOrEmpty(InspectionItem.InspectionItemId))
{
InspectionItem.InspectionItemId = Guid.NewGuid().ToString();
InspectionItem.CompileTime = DateTime.Now;
Inspect_InspectionService.AddInspectionItem(InspectionItem);
}
else
{
Inspect_InspectionService.UpdateInspectionItem(InspectionItem);
}
}
}
catch (Exception ex)
{
responeData.code = 0;
responeData.message = ex.Message;
}
return responeData;
}
//专检子表明细
public Model.ResponeData getInspectItemsById(string InspectionItemId)
{
var responeData = new Model.ResponeData();
try
{
var getDataLists = (from x in Funs.DB.Inspect_InspectionItem
join user in Funs.DB.Sys_User on x.CompileMan equals user.UserId into userJoin1
from subUser1 in userJoin1.DefaultIfEmpty()
join p in Funs.DB.Base_Project on x.ProjectId equals p.ProjectId into project
from pro in project.DefaultIfEmpty()
where x.InspectionItemId == InspectionItemId
select new InspectionItemDto
{
InspectionItemId = x.InspectionItemId,
InspectionId = x.InspectionId,
InspectionItemCode = x.InspectionItemCode,
ProjectId = x.ProjectId,
ProjectName = pro.ProjectName,
InspectionDescribe = x.InspectionDescribe,
PhotoUrl = x.PhotoUrl,
VideoUrl = x.VideoUrl,
EvaluateResults = x.EvaluateResults,
TimeLimited = x.TimeLimited,
RectificationDescription = x.RectificationDescription,
RectificationResults = x.RectificationResults,
States = x.States,
CompileMan = subUser1.UserName,
CompileTime = x.CompileTime,
}).FirstOrDefault();
responeData.data = getDataLists;
}
catch (Exception ex)
{
responeData.code = 0;
responeData.message = ex.Message;
}
return responeData;
}
}
}

View File

@ -40,7 +40,9 @@ namespace WebAPI.Controllers.HSSE
var responeData = new Model.ResponeData(); var responeData = new Model.ResponeData();
try try
{ {
responeData.data = SafetyResponsibilitiesService.GetSafetyResponsibilitiesListById(SafetyResponsibilitiesId); var data = SafetyResponsibilitiesService.GetSafetyResponsibilitiesListById(SafetyResponsibilitiesId);
data.AttachUrl = BLL.AttachFileService.getFileUrl(data.SafetyResponsibilitiesId);
responeData.data = data;
} }
catch (Exception ex) catch (Exception ex)
{ {

File diff suppressed because it is too large Load Diff

View File

@ -154,6 +154,7 @@
<Compile Include="Controllers\CQMS\InspectionManagementController.cs" /> <Compile Include="Controllers\CQMS\InspectionManagementController.cs" />
<Compile Include="Controllers\CQMS\WBSController.cs" /> <Compile Include="Controllers\CQMS\WBSController.cs" />
<Compile Include="Controllers\CQMS\QuantityManagementController.cs" /> <Compile Include="Controllers\CQMS\QuantityManagementController.cs" />
<Compile Include="Controllers\DatabaseHelper.cs" />
<Compile Include="Controllers\DataSync\CNCECServerController.cs" /> <Compile Include="Controllers\DataSync\CNCECServerController.cs" />
<Compile Include="Controllers\DataSync\EnvironmentalController.cs" /> <Compile Include="Controllers\DataSync\EnvironmentalController.cs" />
<Compile Include="Controllers\DoorProject\DoorServiceController.cs" /> <Compile Include="Controllers\DoorProject\DoorServiceController.cs" />
@ -171,8 +172,10 @@
<Compile Include="Controllers\HSSE\MaterialController.cs" /> <Compile Include="Controllers\HSSE\MaterialController.cs" />
<Compile Include="Controllers\HSSE\ProtectionStandardsController.cs" /> <Compile Include="Controllers\HSSE\ProtectionStandardsController.cs" />
<Compile Include="Controllers\HSSE\RectifyController.cs" /> <Compile Include="Controllers\HSSE\RectifyController.cs" />
<Compile Include="Controllers\HSSE\SafetyInspectionController.cs" />
<Compile Include="Controllers\HSSE\SafetyResponsibilitiesController.cs" /> <Compile Include="Controllers\HSSE\SafetyResponsibilitiesController.cs" />
<Compile Include="Controllers\HSSE\TrainTestRecordController.cs" /> <Compile Include="Controllers\HSSE\TrainTestRecordController.cs" />
<Compile Include="Controllers\MaterialEntranceAndExitController.cs" />
<Compile Include="Controllers\Person\PersonCheckController.cs" /> <Compile Include="Controllers\Person\PersonCheckController.cs" />
<Compile Include="Controllers\CQMS\CheckEquipmentController.cs" /> <Compile Include="Controllers\CQMS\CheckEquipmentController.cs" />
<Compile Include="Controllers\CQMS\CheckListController.cs" /> <Compile Include="Controllers\CQMS\CheckListController.cs" />