diff --git a/APT.BaseData.Domain/Enums/Platform/PFFormEnum.cs b/APT.BaseData.Domain/Enums/Platform/PFFormEnum.cs index 829b8b3..1812529 100644 --- a/APT.BaseData.Domain/Enums/Platform/PFFormEnum.cs +++ b/APT.BaseData.Domain/Enums/Platform/PFFormEnum.cs @@ -94,20 +94,20 @@ namespace APT.BaseData.Domain.Enums 移动管理 = 20, [Description("MT")] 会议管理 = 21, - [Description("TI")] - 安全投入 = 22, - [Description("AE")] - 事故事件 = 22, - [Description("OH")] - 职业卫生 = 25, + //[Description("TI")] + //安全投入 = 22, + //[Description("AE")] + //事故事件 = 22, + //[Description("OH")] + //职业卫生 = 25, [Description("CM")] 应急管理 = 25, [Description("DM")] 机电管理 = 27, [Description("BI")] BI展示 = 28, - [Description("TL")] - 尾矿库 = 29, + //[Description("TL")] + //尾矿库 = 29, } /// diff --git a/APT.BaseData.Domain/IServices/Platform/IPFApproveCallBackMTService.cs b/APT.BaseData.Domain/IServices/Platform/IPFApproveCallBackMTService.cs index 7e4d32a..2c27f1d 100644 --- a/APT.BaseData.Domain/IServices/Platform/IPFApproveCallBackMTService.cs +++ b/APT.BaseData.Domain/IServices/Platform/IPFApproveCallBackMTService.cs @@ -22,42 +22,7 @@ namespace APT.BaseData.Domain.IServices /// /// bool MeetingMinutesBack(string id); - - /// - /// 会议通知发布审批回调 - /// - /// - /// - bool RecordBack(string id); - - /// - /// 事故事件上报审批 - /// - /// - /// - bool EventBack(string id); - - /// - /// 勘察记录组长审批完成后回调 - /// - /// - /// - bool LeaderCheck(string id); - - /// - /// 事故事件调查结果审批 - /// - /// - /// - bool EventResultBack(string id); - - /// - /// 职业卫生 体检计划 人事部经理审批 - /// - /// - /// - bool PlanMasterBack(string id); - + /// /// 年度应急演练计划表 审批结束 /// diff --git a/APT.BaseData.Services/Services/AE/AEAccidentEventReportService.cs b/APT.BaseData.Services/Services/AE/AEAccidentEventReportService.cs deleted file mode 100644 index 20cc96b..0000000 --- a/APT.BaseData.Services/Services/AE/AEAccidentEventReportService.cs +++ /dev/null @@ -1,57 +0,0 @@ -using APT.Infrastructure.Core; -using System; -using APT.Infrastructure.Api; -using APT.MS.Domain.Entities.AE; -using APT.MS.Domain.Enums; -using APT.BaseData.Domain.IServices.AE; - -namespace APT.BaseData.Services.Services.AE -{ - public partial class AEAccidentEventReportService : CommonService, IAEAccidentEventReportService - { - public AEAccidentEventReportService(IRepository repository) - : base(repository) - { - } - - /// - /// 获取审批流参数 - /// - /// - /// - public string GetApproveParm(T_AE_ACCIDENT_EVENT_REPORT entity) - { - string param = string.Empty; - switch (entity.ACCIDENT_LEVEL) - { - case AEAccidentLevel.Jumbo: - case AEAccidentLevel.Major: - case AEAccidentLevel.Larger: - case AEAccidentLevel.General: - case AEAccidentLevel.SeriouslyInjured: - param = "1_2_3_4_5"; - break; - - case AEAccidentLevel.MinorJuries: - param = "6"; - break; - case AEAccidentLevel.Aminor: - param = "7"; - break; - case AEAccidentLevel.Risk: - if (entity.ECONOMIC_LOSSES.HasValue && entity.ECONOMIC_LOSSES.Value >= 5000) - { - param = "8>=5000"; - } - else - { - param = "8<5000"; - } - break; - default: - break; - } - return param; - } - } -} diff --git a/APT.BaseData.Services/Services/PF/PFApproveCallBackMTService.cs b/APT.BaseData.Services/Services/PF/PFApproveCallBackMTService.cs index b6cc655..ce15333 100644 --- a/APT.BaseData.Services/Services/PF/PFApproveCallBackMTService.cs +++ b/APT.BaseData.Services/Services/PF/PFApproveCallBackMTService.cs @@ -15,9 +15,6 @@ using APT.MS.Domain.Entities.HM; using APT.BaseData.Domain.Enums.PF; using APT.MS.Domain.Entities.PF; using APT.MS.Domain.Entities.SC; -using APT.MS.Domain.Entities.TI; -using APT.MS.Domain.Entities.AE; -using APT.MS.Domain.Entities.OH; using APT.MS.Domain.Entities.CM; using log4net.Filter; using Autofac.Features.Metadata; @@ -163,557 +160,6 @@ namespace APT.BaseData.Services.DomainServices #endregion - #region 安全科技 保险单 - //TI/TISafePdtCostRecordType/RecordBack - - /// - /// 安全生产费用使用记录审批 - /// - /// - /// - public bool RecordBack(string id) - { - Guid MeetingMinutesId = new Guid(id); - T_TI_SAFE_PDT_COST_RECORD entity = GetEntity(MeetingMinutesId); - entity.STATUS = PFStandardStatus.Archived;//变成已归档 - this.UnifiedCommit(() => - { - if (entity != null) - UpdateEntityNoCommit(entity); - }); - return true; - } - - #endregion - - #region 事故事件上报 - - //AE/AEAccidentEventReport/EventBack - - /// - /// 事故事件上报审批 - /// - /// - /// - public bool EventBack(string id) - { - Guid GUID = new Guid(id); - - T_AE_ACCIDENT_EVENT_REPORT entity = GetEntity(GUID); - entity.STATUS = PFStandardStatus.Archived;//变成已归档 - - //重伤及以上:安环部负责人 - //轻伤:部门级部门负责人 - //微伤:部门级部门负责人 - //险肇:部门级部门负责人 - T_FM_USER user = new T_FM_USER(); - T_PF_APPROVAL_ROLE approveRole = null; - - #region 获取负责人 - - switch (entity.ACCIDENT_LEVEL) - { - case AEAccidentLevel.Jumbo: - case AEAccidentLevel.Major: - case AEAccidentLevel.Larger: - case AEAccidentLevel.General: - case AEAccidentLevel.SeriouslyInjured: - var ToUser = GetEntity(e => e.EVENTTYPE == EventType.AE006ToAE008);//触发设置 - if (ToUser == null) - { - //安环部负责人 - approveRole = GetEntity(e => e.NAME.Contains("安环部负责人")); - if (approveRole != null) - { - user = GetEntity(e => e.APPROVE_ROLE_ID == approveRole.ID); - if (user == null) - { - SysLogService.AddAddLog(APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value, "AE006", entity.ID.ToString(), "", "未找到安环部负责人【" + approveRole.ID + "】!"); - } - } - else - { - SysLogService.AddAddLog(APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value, "AE006", entity.ID.ToString(), "", "未找到审批角色安环部负责人"); - } - } - else - { - //部门岗位人员 - string Msg = string.Empty; - var listUser = UserService.GetDepPostUser(ref Msg, ToUser.DEPARTMENT_ID, ToUser.POST_ID, true); - if (listUser != null && listUser.Any()) - { - user = listUser[0]; - } - else - { - SysLogService.AddAddLog(APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value, "AE006", entity.ID.ToString(), "", "未找到配置的部门岗位人员!"); - } - } - break; - case AEAccidentLevel.MinorJuries: - case AEAccidentLevel.Aminor: - case AEAccidentLevel.Risk: - //部门级部门负责人 - if (entity.DEPARTMENT_ID.HasValue) - { - var dep = DepartmentService.GetDEPARTMENTLevel(entity.DEPARTMENT_ID.Value); - if (dep != null) - { - approveRole = GetEntity(e => e.NAME.Contains("部门负责人")); - if (approveRole != null) - { - user = GetEntity(e => e.DEPARTMENT_ID == dep.ID && e.APPROVE_ROLE_ID == approveRole.ID); - if (user == null) - { - SysLogService.AddAddLog(APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value, "AE006", entity.ID.ToString(), "", "未找到部门【" + entity.DEPARTMENT_ID.Value + "】(审批角色)负责人【" + approveRole.ID + "】!"); - } - } - else - { - SysLogService.AddAddLog(APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value, "AE006", entity.ID.ToString(), "", "未找到审批角色部门负责人"); - } - } - else - { - SysLogService.AddAddLog(APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value, "AE006", entity.ID.ToString(), "", "未找到部门【" + entity.DEPARTMENT_ID.Value + "】的部门级"); - } - } - else - { - SysLogService.AddAddLog(APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value, "AE006", entity.ID.ToString(), "", "部门ID为空"); - } - break; - default: - break; - } - #endregion - T_AE_ACCIDENT_SURVEY_TEAM_MEMBER member = null; - T_FM_NOTIFICATION_TASK task = null; - - if (user != null) - { - //找到了负责人 - member = new T_AE_ACCIDENT_SURVEY_TEAM_MEMBER(); - member.ID = Guid.NewGuid(); - member.REPORT_ID = entity.ID; - member.STATUS = PFStandardStatus.Draft; - member.IS_DELETED = false; - member.ORG_ID = entity.ORG_ID; - member.CREATE_TIME = DateTime.Now; - member.CREATER_ID = user.ID; - //member.LEADER_USER_ID = ; - //member.SURVEY_USER_ID = ; - //member.ENTITY_ORG_TPYE = ; - //member.FORM_ID = ; - //member.FLOW_STATUS = ; - //member.FLOW_SEND_STATUS = ; - //member.FLOW_ID = ; - //member.MODIFY_TIME = ; - member.MODIFIER_ID = user.ID; - task = NotificationTaskService.InsertUserNoticeTaskModel("事故调查小组成员", member.ID, entity.ORG_ID, user.ID, user.NAME, DateTime.Now, DateTime.Now.AddDays(1), (int)FMNoticeTypeEnum.消息, "AE008"); - } - - this.UnifiedCommit(() => - { - if (entity != null) - UpdateEntityNoCommit(entity); - if (task != null) - AddEntityNoCommit(task); - if (member != null) - AddEntityNoCommit(member); - }); - return true; - } - - - - //AE/AEInvestigationRecord/LeaderCheck - - /// - /// 勘察记录组长审批完成后回调 - /// - /// - /// - public bool LeaderCheck(string id) - { - Guid GUID = new Guid(id); - T_AE_INVESTIGATION_RECORD entity = GetEntity(GUID); - entity.STATUS = PFStandardStatus.Archived;//变成已归档 - - var appDet = GetEntity(e => e.APPROVE_ID == entity.APPROVE_ID); - entity.REVIEW_OK = appDet.NODE_APPROVE_STATUS == 10 ? true : false;// 组长审阅状态 - entity.REVIEW_COMMENT = appDet.CONTEXT;// 审阅意见 - - //事故调查小组成员表 填写 给记录人 触发勘察记录表 审批通过后 再给记录人 发送 事故事件调查结果报送表 - T_AE_ACCIDENT_SURVEY_TEAM_MEMBER member = GetEntity(e => e.REPORT_ID == entity.ACCIDENT_ID, new string[] { "Nav_SurveyUser" }); - - T_AE_ACCIDENT_EVENT_SURVEY_RESULT modelResult = new T_AE_ACCIDENT_EVENT_SURVEY_RESULT(); - modelResult.ID = Guid.NewGuid(); - modelResult.REPORT_ID = entity.ACCIDENT_ID; - modelResult.STATUS = PFStandardStatus.Draft; - modelResult.IS_DELETED = false; - modelResult.ORG_ID = entity.ORG_ID; - - //modelResult.CASUALTY_COUNT = ""; - //modelResult.ECONOMIC_LOSSES = ""; - //modelResult.ACCIDENT_COURSE = ""; - //modelResult.TIME = ""; - //modelResult.RISK_SUBMIT_ID = ""; - //modelResult.ENTITY_ORG_TPYE = ""; - //modelResult.FORM_ID = ""; - //modelResult.FLOW_STATUS = ""; - //modelResult.FLOW_SEND_STATUS = ""; - //modelResult.FLOW_ID = ""; - //modelResult.CREATE_TIME = ""; - //modelResult.MODIFY_TIME = ""; - //modelResult.CREATER_ID = ""; - //modelResult.MODIFIER_ID = ""; - - - T_FM_NOTIFICATION_TASK taskAdd = NotificationTaskService.InsertUserNoticeTaskModel("事故事件调查结果填报", modelResult.ID, entity.ORG_ID, member.SURVEY_USER_ID.Value, member.Nav_SurveyUser.NAME, DateTime.Now, DateTime.Now.AddDays(1), (int)FMNoticeTypeEnum.消息, "AE010"); - - - this.UnifiedCommit(() => - { - if (entity != null) - UpdateEntityNoCommit(entity); - if (modelResult != null)//添加 事故事件调查结果填报 - AddEntityNoCommit(modelResult); - if (taskAdd != null)//添加 事故事件调查结果填报 待办 - AddEntityNoCommit(taskAdd); - - }); - return true; - } - - - /// - /// 事故事件调查结果审批 - /// - /// - /// - public bool EventResultBack(string id) - { - Guid GUID = new Guid(id); - - T_AE_ACCIDENT_EVENT_SURVEY_RESULT entity = GetEntity(GUID); - entity.STATUS = PFStandardStatus.Archived;//变成已归档 - - ////重伤及以上:安环部负责人 - ////轻伤:部门级部门负责人 - ////微伤:部门级部门负责人 - ////险肇:部门级部门负责人 - //T_FM_USER user = new T_FM_USER(); - //T_PF_APPROVAL_ROLE approveRole = null; - - //#region 获取负责人 - - //switch (entity.ACCIDENT_LEVEL) - //{ - // case AEAccidentLevel.Jumbo: - // case AEAccidentLevel.Major: - // case AEAccidentLevel.Larger: - // case AEAccidentLevel.General: - // case AEAccidentLevel.SeriouslyInjured: - // //安环部负责人 - // approveRole = GetEntity(e => e.NAME.Contains("安环部负责人")); - // if (approveRole != null) - // { - // user = GetEntity(e => e.APPROVE_ROLE_ID == approveRole.ID); - // if (user == null) - // { - // SysLogService.AddAddLog(APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value, "AE006", entity.ID.ToString(), "", "未找到安环部负责人【" + approveRole.ID + "】!"); - // } - // } - // else - // { - // SysLogService.AddAddLog(APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value, "AE006", entity.ID.ToString(), "", "未找到审批角色安环部负责人"); - // } - // break; - // case AEAccidentLevel.MinorJuries: - // case AEAccidentLevel.Aminor: - // case AEAccidentLevel.Risk: - // //部门级部门负责人 - // if (entity.DEPARTMENT_ID.HasValue) - // { - // var dep = DepartmentService.GetDEPARTMENTLevel(entity.DEPARTMENT_ID.Value); - // if (dep != null) - // { - // approveRole = GetEntity(e => e.NAME.Contains("部门负责人")); - // if (approveRole != null) - // { - // user = GetEntity(e => e.DEPARTMENT_ID == dep.ID && e.APPROVE_ROLE_ID == approveRole.ID); - // if (user == null) - // { - // SysLogService.AddAddLog(APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value, "AE006", entity.ID.ToString(), "", "未找到部门【" + entity.DEPARTMENT_ID.Value + "】(审批角色)负责人【" + approveRole.ID + "】!"); - // } - // } - // else - // { - // SysLogService.AddAddLog(APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value, "AE006", entity.ID.ToString(), "", "未找到审批角色部门负责人"); - // } - // } - // else - // { - // SysLogService.AddAddLog(APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value, "AE006", entity.ID.ToString(), "", "未找到部门【" + entity.DEPARTMENT_ID.Value + "】的部门级"); - // } - // } - // else - // { - // SysLogService.AddAddLog(APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value, "AE006", entity.ID.ToString(), "", "部门ID为空"); - // } - // break; - // default: - // break; - //} - //#endregion - //T_AE_ACCIDENT_SURVEY_TEAM_MEMBER member = null; - //T_FM_NOTIFICATION_TASK task = null; - - //if (user != null) - //{ - // //找到了负责人 - // member = new T_AE_ACCIDENT_SURVEY_TEAM_MEMBER(); - // member.ID = Guid.NewGuid(); - // member.REPORT_ID = entity.ID; - // member.STATUS = PFStandardStatus.Draft; - // member.IS_DELETED = false; - // member.ORG_ID = entity.ORG_ID; - // member.CREATE_TIME = DateTime.Now; - // member.CREATER_ID = user.ID; - // //member.LEADER_USER_ID = ; - // //member.SURVEY_USER_ID = ; - // //member.ENTITY_ORG_TPYE = ; - // //member.FORM_ID = ; - // //member.FLOW_STATUS = ; - // //member.FLOW_SEND_STATUS = ; - // //member.FLOW_ID = ; - // //member.MODIFY_TIME = ; - // member.MODIFIER_ID = user.ID; - // task = NotificationTaskService.InsertUserNoticeTaskModel("事故调查小组成员", member.ID, entity.ORG_ID, user.ID, user.NAME, DateTime.Now, DateTime.Now.AddDays(1), (int)FMNoticeTypeEnum.消息, "AE008"); - //} - - - #region 给人事专员触发工伤保险理赔信息记录 - //TI021 发起部门 姓名 事故事件 受伤日期 发起部门:受伤人 所在部门 - - - List listClaim = null; - List listTask = null; - - if (entity.REPORT_ID.HasValue) - { - - var listUsers = GetEntities(e => e.RESULT_ID == entity.ID && !e.IS_DELETED, "Nav_User"); - if (listUsers != null && listUsers.Any()) - { - var doSet = GetEntity(e => e.EVENTTYPE == EventType.ClaimRecord && !e.IS_DELETED); - if (doSet != null) - { - //给对应部门人员 发送待办 - var user = GetEntity(e => e.DEPARTMENT_ID.HasValue && e.ENABLE_STATUS == 0 && !e.IS_DELETED && e.DEPARTMENT_ID.Value == doSet.DEPARTMENT_ID && e.PERSON_ID.HasValue && e.Nav_Person.POST_ID.HasValue && e.Nav_Person.POST_ID.Value == doSet.POST_ID, "Nav_Person"); - if (user != null) - { - listClaim = new List(); - listTask = new List(); - - foreach (var item in listUsers) - { - T_TI_INSURANCE_CLAIM_RECORD claim = new T_TI_INSURANCE_CLAIM_RECORD(); - claim.ID = Guid.NewGuid(); - claim.ORG_ID = doSet.ORG_ID; - claim.ACCIDENT_ID = entity.REPORT_ID; - claim.DEPARTMENT_ID = item.Nav_User.DEPARTMENT_ID; - claim.INJURE_TIME = item.INJURED_TIME; - claim.USER_ID = item.USER_ID; - claim.STATUS = PFStandardStatus.Draft; - listTask.Add(NotificationTaskService.InsertUserNoticeTaskModel("工伤保险理赔 事故事件:" + item.Nav_User.NAME, claim.ID, claim.ORG_ID, user.ID, user.NAME, DateTime.Now, 0, "TI021", FMTASKTYPE.Default)); - listClaim.Add(claim); - } - } - } - } - } - - #endregion - - this.UnifiedCommit(() => - { - if (entity != null) - UpdateEntityNoCommit(entity); - //if (task != null) - // AddEntityNoCommit(task); - //if (member != null) - // AddEntityNoCommit(member); - if (listClaim != null && listClaim.Count > 0) - BantchSaveEntityNoCommit(listClaim); - if (listTask != null && listTask.Count > 0) - BantchSaveEntityNoCommit(listTask); - }); - return true; - } - - #endregion - - - - #region 职业卫生 - - /// - /// 职业卫生 体检计划 人事部经理审批 - /// - /// - /// - public bool PlanMasterBack(string id) - { - Guid GUID = new Guid(id); - - string Msg = string.Empty; - var member = UserService.GetPostUser(ref Msg, "人事专员"); - if (member == null) - { - if (!string.IsNullOrEmpty(Msg)) - { - throw new Exception(Msg); - } - else - { - throw new Exception("获取人事专员岗位信息失败!"); - } - } - - T_OH_HEALTH_EXAM_PLAN entity = GetEntity(GUID, new string[] { "Nav_ListPlanRegister.Nav_ListHazard" }); - - entity.STATUS = PFStandardStatus.Archived;//变成已归档 - - DateTime dtNow = DateTime.Now; - //给人事专员发送 体检填表 - T_OH_HEALTH_EXAM_NOTICE notice = new T_OH_HEALTH_EXAM_NOTICE(); - notice.ID = Guid.NewGuid(); - notice.CODE = "TJ" + dtNow.ToString("yyyyMMddHHmmss"); - //notice.NAME =""; - //notice.OTHER_STUFF =; - notice.STATUS = PFStandardStatus.Draft; - //notice.APPROVE_ID =; - notice.IS_DELETED = false; - notice.ORG_ID = entity.ORG_ID; - //notice.ENTITY_ORG_TPYE =; - //notice.FORM_ID =; - //notice.FLOW_STATUS =; - //notice.FLOW_SEND_STATUS =; - //notice.FLOW_ID =; - //notice.CREATE_TIME =; - //notice.MODIFY_TIME =; - //notice.CREATER_ID =; - //notice.MODIFIER_ID =; - - List listRegister = new List(); - IEnumerable listRegisterCheck = null; - T_OH_HEALTH_EXAM_NOTICE_REGISTER modelLast = null; - List listOccHazard = new List(); - - Guid LoginID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value; - - BaseFilter basFiliter = new BaseFilter(); - basFiliter.Order = DbOrder.DESC; - basFiliter.Orders.Add(new DataOrder() { Field = "THISDATE", Order = DbOrder.DESC }); - - foreach (var item in entity.Nav_ListPlanRegister) - { - T_OH_HEALTH_EXAM_NOTICE_REGISTER model = new T_OH_HEALTH_EXAM_NOTICE_REGISTER(); - model.ID = Guid.NewGuid(); - model.NOTICE_ID = notice.ID; - model.USER_ID = item.USER_ID; - model.DEPARTMENT_ID = item.DEPARTMENT_ID; - model.DEPARTMENT_ID_WORKSHOP = item.DEPARTMENT_ID_WORKSHOP; - model.CYCLE_ID = item.EXAM_CYCLE_ID; - //model.EXAM_BATCH_ID - model.TYPE = OHHealthExamType.Post; - model.STATUS = OHHealthExamNoticeRegisterStatus.WaitNotice; - model.IS_DELETED = false; - model.ORG_ID = item.ORG_ID; - //model.ENTITY_ORG_TPYE - //model.FORM_ID - //model.FLOW_STATUS - //model.FLOW_SEND_STATUS - //model.FLOW_ID - model.LASTDATE = dtNow;//上次体检时间 - - //新方法 - modelLast = GetEntity(e => !e.IS_DELETED && e.USER_ID == model.USER_ID && e.STATUS >= OHHealthExamNoticeRegisterStatus.NoticeResult, basFiliter, ""); - //modelLast = GetEntity(e => !e.IS_DELETED && e.USER_ID == model.USER_ID && e.STATUS >= OHHealthExamNoticeRegisterStatus.MasterRead, basFiliter, ""); - - if (modelLast != null && modelLast.THISDATE.HasValue) - { - model.LASTDATE = modelLast.THISDATE;//上次体检时间 就是上次通知的本次时间 - } - //旧方法 - //listRegisterCheck = GetEntities(e => !e.IS_DELETED && e.USER_ID == model.USER_ID && e.STATUS >= OHHealthExamNoticeRegisterStatus.NoticeResult).OrderByDescending(e => e.THISDATE); - //if (listRegisterCheck != null && listRegisterCheck.Any()) - //{ - // modelLast = listRegisterCheck.ToList()[0]; - // if (modelLast.EXAM_BATCH_ID.HasValue) - // { - // model.LASTDATE = modelLast.THISDATE;//上次体检时间 就是上次通知的本次时间 - // //if (!listBatchID.Contains(modelLast.EXAM_BATCH_ID.Value)) - // //{ - // // listBatchID.Add(modelLast.EXAM_BATCH_ID.Value); - // // modelBatch = GetEntity(modelLast.EXAM_BATCH_ID.Value); - // // listLastBatch.Add(modelBatch); - // //} - // //else - // //{ - // // modelBatch = listLastBatch.First(e => e.ID == modelLast.EXAM_BATCH_ID.Value); - // //} - // //model.LASTDATE = modelBatch.START_TIME;//上次体检时间 - // } - //} - - model.CREATE_TIME = dtNow; - model.MODIFY_TIME = dtNow; - model.CREATER_ID = LoginID; - //model.MODIFIER_ID - model.PLAN_ID_DEP = item.PLAN_ID_DEP; - model.PLAN_REGISTER_ID = item.ID; - listRegister.Add(model); - - foreach (var itemHaz in item.Nav_ListHazard) - { - listOccHazard.Add(new T_OH_EXAM_NOTICE_OCC_HAZARD() - { - ID = Guid.NewGuid(), - REGISTER_ID = model.ID, - HAZARD_ID = itemHaz.HAZARD_ID, - ORG_ID = notice.ORG_ID, - CREATE_TIME = dtNow, - MODIFY_TIME = dtNow - }); - } - } - - - //人事专员 发送 体检通知 安排 - T_FM_NOTIFICATION_TASK taskAdd = NotificationTaskService.InsertUserNoticeTaskModel("体检通知表", notice.ID, entity.ORG_ID, member.ID, member.NAME, DateTime.Now, DateTime.Now.AddDays(1), (int)FMNoticeTypeEnum.消息, "OH010"); - - this.UnifiedCommit(() => - { - if (entity != null) - UpdateEntityNoCommit(entity); - if (notice != null)//体检通知 - AddEntityNoCommit(notice); - if (listRegister != null && listRegister.Count > 0)//人员 - BantchAddEntityNoCommit(listRegister); - if (taskAdd != null)//添加 事故事件调查结果填报 待办 - AddEntityNoCommit(taskAdd); - if (listOccHazard != null && listOccHazard.Count > 0)//人员 - BantchAddEntityNoCommit(listOccHazard); - }); - return true; - } - - - #endregion #region CM diff --git a/APT.BaseData.Services/Services/PF/PFApproveCallBackService.cs b/APT.BaseData.Services/Services/PF/PFApproveCallBackService.cs index d094003..3f0ed35 100644 --- a/APT.BaseData.Services/Services/PF/PFApproveCallBackService.cs +++ b/APT.BaseData.Services/Services/PF/PFApproveCallBackService.cs @@ -19,7 +19,6 @@ using APT.MS.Domain.Entities.SC.PE; using APT.MS.Domain.Entities.SC.PR; using APT.MS.Domain.Entities.SC.PT; using APT.MS.Domain.Entities.SC.SC; -using APT.MS.Domain.Entities.TL; using APT.MS.Domain.Enums; using InfluxData.Net.InfluxDb.Models.Responses; using MySqlX.XDevAPI.Common; @@ -173,18 +172,6 @@ namespace APT.BaseData.Services.DomainServices case "PT/PTIndicatorFormulationDepartment/BackUpdateYL"://方针与目标管理 result = BackUpdate_PTIndicatorFormulationDepartmentYL(DATA_ID); break; - case "TI/TISafePdtCostRecord/RecordBack"://安全生产费用使用记录回调 - result = PFApproveCallBackMTService.RecordBack(DATA_ID); - break; - case "AE/AEAccidentEventReport/EventBack"://安全生产费用使用记录回调 - result = PFApproveCallBackMTService.EventBack(DATA_ID); - break; - case "AE/AEInvestigationRecord/LeaderCheck"://勘察记录组长审批完成后回调 - result = PFApproveCallBackMTService.LeaderCheck(DATA_ID); - break; - case "AE/AEAccidentEventSurveyResult/EventResultBack"://事故事件调查结果审批回调 - result = PFApproveCallBackMTService.EventResultBack(DATA_ID); - break; case "PT/PTAssessmentPlanAudit/BackUpdate"://方针与目标管理 result = BackUpdate_PTAssessmentPlanAudit(DATA_ID); break; @@ -250,9 +237,9 @@ namespace APT.BaseData.Services.DomainServices break; #region 职业卫生 - case "OH/OHHealthExamPlan/PlanMasterBack"://绩效测量与评估 - result = PFApproveCallBackMTService.PlanMasterBack(DATA_ID); - break; + //case "OH/OHHealthExamPlan/PlanMasterBack"://绩效测量与评估 + // result = PFApproveCallBackMTService.PlanMasterBack(DATA_ID); + // break; #endregion @@ -431,30 +418,30 @@ namespace APT.BaseData.Services.DomainServices PFApproveCallBackMTService.MeetingMinutesBack(listDATA_ID[i]); } break; - case "TI/TISafePdtCostRecord/RecordBack"://安全生产费用使用记录回调 - for (int i = 0; i < listDATA_ID.Count; i++) - { - PFApproveCallBackMTService.RecordBack(listDATA_ID[i]); - } - break; - case "AE/AEAccidentEventReport/EventBack"://安全生产费用使用记录回调 - for (int i = 0; i < listDATA_ID.Count; i++) - { - PFApproveCallBackMTService.EventBack(listDATA_ID[i]); - } - break; - case "AE/AEInvestigationRecord/LeaderCheck"://勘察记录组长审批完成后回调 - for (int i = 0; i < listDATA_ID.Count; i++) - { - PFApproveCallBackMTService.LeaderCheck(listDATA_ID[i]); - } - break; - case "AE/AEAccidentEventSurveyResult/EventResultBack"://事故事件调查结果审批回调回调 - for (int i = 0; i < listDATA_ID.Count; i++) - { - PFApproveCallBackMTService.EventResultBack(listDATA_ID[i]); - } - break; + //case "TI/TISafePdtCostRecord/RecordBack"://安全生产费用使用记录回调 + // for (int i = 0; i < listDATA_ID.Count; i++) + // { + // PFApproveCallBackMTService.RecordBack(listDATA_ID[i]); + // } + // break; + //case "AE/AEAccidentEventReport/EventBack"://安全生产费用使用记录回调 + // for (int i = 0; i < listDATA_ID.Count; i++) + // { + // PFApproveCallBackMTService.EventBack(listDATA_ID[i]); + // } + // break; + //case "AE/AEInvestigationRecord/LeaderCheck"://勘察记录组长审批完成后回调 + // for (int i = 0; i < listDATA_ID.Count; i++) + // { + // PFApproveCallBackMTService.LeaderCheck(listDATA_ID[i]); + // } + // break; + //case "AE/AEAccidentEventSurveyResult/EventResultBack"://事故事件调查结果审批回调回调 + // for (int i = 0; i < listDATA_ID.Count; i++) + // { + // PFApproveCallBackMTService.EventResultBack(listDATA_ID[i]); + // } + // break; case "PT/PTIndicatorFormulation/BackUpdate"://方针与目标管理 for (int i = 0; i < listDATA_ID.Count; i++) { @@ -601,12 +588,12 @@ namespace APT.BaseData.Services.DomainServices break; #region 职业卫生 - case "OH/OHHealthExamPlan/PlanMasterBack"://职业卫生 体检计划 人事部经理审批 - for (int i = 0; i < listDATA_ID.Count; i++) - { - PFApproveCallBackMTService.PlanMasterBack(listDATA_ID[i]); - } - break; + //case "OH/OHHealthExamPlan/PlanMasterBack"://职业卫生 体检计划 人事部经理审批 + // for (int i = 0; i < listDATA_ID.Count; i++) + // { + // PFApproveCallBackMTService.PlanMasterBack(listDATA_ID[i]); + // } + // break; #endregion @@ -6928,12 +6915,12 @@ namespace APT.BaseData.Services.DomainServices case "FO/FOCrucialLicenseJobOutsource/BackUpdateNew": result = BackUpdateNew_FOCrucialLicenseJobOutsource(entityInt, modelApp, listAppDetail, taskFinish, listTaskNext, isLast); break; - case "TL/TLBack/BackUpdate": - result = BackUpdate_TLBack(entityInt, modelApp, listAppDetail, taskFinish, listTaskNext, isLast); - break; - case "TL/TLBackRecord/BackUpdate": - result = BackUpdate_TLRecordBack(entityInt, modelApp, listAppDetail, taskFinish, listTaskNext, isLast); - break; + //case "TL/TLBack/BackUpdate": + // result = BackUpdate_TLBack(entityInt, modelApp, listAppDetail, taskFinish, listTaskNext, isLast); + // break; + //case "TL/TLBackRecord/BackUpdate": + // result = BackUpdate_TLRecordBack(entityInt, modelApp, listAppDetail, taskFinish, listTaskNext, isLast); + // break; default: //SysLogService.AddLog(APT.Infrastructure.Api.AppContext.CurrentSession.OrgId.Value, APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value, PFSysLogTypeEnum.CommonApproveCallBack, "PF119", "审批流回调方法未完善", "PFApproveCallBackService=>CallBack: " + CALLBACK_INTERFACE, DATA_ID); break; @@ -9231,159 +9218,159 @@ namespace APT.BaseData.Services.DomainServices #endregion - #region 尾矿库 + //#region 尾矿库 - /// - /// 回采计划 审批流 - /// - /// - /// - public bool BackUpdate_TLBack(T_PF_APPROVE entityInt, T_PF_APPROVE modelApp, List listAppDetail, T_FM_NOTIFICATION_TASK taskFinish, List listTaskNext, bool isLast = false) - { - #region 审批公用 + ///// + ///// 回采计划 审批流 + ///// + ///// + ///// + //public bool BackUpdate_TLBack(T_PF_APPROVE entityInt, T_PF_APPROVE modelApp, List listAppDetail, T_FM_NOTIFICATION_TASK taskFinish, List listTaskNext, bool isLast = false) + //{ + // #region 审批公用 - if (modelApp == null) - { - string taskCodeCheck = String.Empty; - bool result = GetApproject2(entityInt, ref modelApp, ref listAppDetail, ref taskFinish, ref taskCodeCheck, ref isLast, ref listTaskNext); - if (!result) - { - throw new Exception("审批失败!"); - } - } + // if (modelApp == null) + // { + // string taskCodeCheck = String.Empty; + // bool result = GetApproject2(entityInt, ref modelApp, ref listAppDetail, ref taskFinish, ref taskCodeCheck, ref isLast, ref listTaskNext); + // if (!result) + // { + // throw new Exception("审批失败!"); + // } + // } - #endregion + // #endregion - if (!isLast) - { - this.UnifiedCommit(() => - { - if (modelApp != null) - UpdateEntityNoCommit(modelApp); //保存主表 - if (listAppDetail.Count > 0)//添加组合数据 修改的安全库、隐患库 - BantchSaveEntityNoCommit(listAppDetail); - if (taskFinish != null) - UpdateEntityNoCommit(taskFinish); - if (listTaskNext != null && listTaskNext.Count > 0)//下个审批节点 - BantchSaveEntityNoCommit(listTaskNext); - }); - } - else - { - //修改完 给 值班人 确认 单 - var entity = GetEntity(modelApp.DATA_ID); - entity.STATUS = PFStandardStatus.Sign;//审批完后 值变小(注) - var listDetailUser = GetEntities(e => e.BACK_ID == entity.ID, "Nav_User"); + // if (!isLast) + // { + // this.UnifiedCommit(() => + // { + // if (modelApp != null) + // UpdateEntityNoCommit(modelApp); //保存主表 + // if (listAppDetail.Count > 0)//添加组合数据 修改的安全库、隐患库 + // BantchSaveEntityNoCommit(listAppDetail); + // if (taskFinish != null) + // UpdateEntityNoCommit(taskFinish); + // if (listTaskNext != null && listTaskNext.Count > 0)//下个审批节点 + // BantchSaveEntityNoCommit(listTaskNext); + // }); + // } + // else + // { + // //修改完 给 值班人 确认 单 + // var entity = GetEntity(modelApp.DATA_ID); + // entity.STATUS = PFStandardStatus.Sign;//审批完后 值变小(注) + // var listDetailUser = GetEntities(e => e.BACK_ID == entity.ID, "Nav_User"); - List listUserId = new List(); - List listUserName = new List(); - foreach (var item in listDetailUser) - { - if (!listUserId.Contains(item.USER_ID)) - { - listUserId.Add(item.USER_ID); - listUserName.Add(item.Nav_User.NAME); - } - } + // List listUserId = new List(); + // List listUserName = new List(); + // foreach (var item in listDetailUser) + // { + // if (!listUserId.Contains(item.USER_ID)) + // { + // listUserId.Add(item.USER_ID); + // listUserName.Add(item.Nav_User.NAME); + // } + // } - if (listUserId.Count < 1) - { - entity.STATUS = PFStandardStatus.Archived; - this.UnifiedCommit(() => - { - UpdateEntityNoCommit(entity); - if (modelApp != null) - UpdateEntityNoCommit(modelApp); //保存主表 - if (listAppDetail.Count > 0)//添加组合数据 修改的安全库、隐患库 - BantchSaveEntityNoCommit(listAppDetail); - if (taskFinish != null) - UpdateEntityNoCommit(taskFinish); - if (listTaskNext != null && listTaskNext.Count > 0)//下个审批节点 - BantchSaveEntityNoCommit(listTaskNext); - }); - } - else - { - List listTaskNotice = NotificationTaskService.InsertUserNoticeTaskModels("回采计划-确认", entity.ID, entity.ORG_ID, listUserId, listUserName, DateTime.Now, 0, "TL014_SHOWPRINT", FMTASKTYPE.Default, null, null, null, APT.Infrastructure.Api.AppContext.CurrentSession.UserID); + // if (listUserId.Count < 1) + // { + // entity.STATUS = PFStandardStatus.Archived; + // this.UnifiedCommit(() => + // { + // UpdateEntityNoCommit(entity); + // if (modelApp != null) + // UpdateEntityNoCommit(modelApp); //保存主表 + // if (listAppDetail.Count > 0)//添加组合数据 修改的安全库、隐患库 + // BantchSaveEntityNoCommit(listAppDetail); + // if (taskFinish != null) + // UpdateEntityNoCommit(taskFinish); + // if (listTaskNext != null && listTaskNext.Count > 0)//下个审批节点 + // BantchSaveEntityNoCommit(listTaskNext); + // }); + // } + // else + // { + // List listTaskNotice = NotificationTaskService.InsertUserNoticeTaskModels("回采计划-确认", entity.ID, entity.ORG_ID, listUserId, listUserName, DateTime.Now, 0, "TL014_SHOWPRINT", FMTASKTYPE.Default, null, null, null, APT.Infrastructure.Api.AppContext.CurrentSession.UserID); - this.UnifiedCommit(() => - { - UpdateEntityNoCommit(entity); - if (modelApp != null) - UpdateEntityNoCommit(modelApp); //保存主表 - if (listAppDetail.Count > 0)//添加组合数据 修改的安全库、隐患库 - BantchSaveEntityNoCommit(listAppDetail); - if (taskFinish != null) - UpdateEntityNoCommit(taskFinish); - if (listTaskNext != null && listTaskNext.Count > 0)//下个审批节点 - BantchSaveEntityNoCommit(listTaskNext); - if (listTaskNotice != null && listTaskNotice.Count > 0)//下个审批节点 - BantchSaveEntityNoCommit(listTaskNotice); - }); - } - } + // this.UnifiedCommit(() => + // { + // UpdateEntityNoCommit(entity); + // if (modelApp != null) + // UpdateEntityNoCommit(modelApp); //保存主表 + // if (listAppDetail.Count > 0)//添加组合数据 修改的安全库、隐患库 + // BantchSaveEntityNoCommit(listAppDetail); + // if (taskFinish != null) + // UpdateEntityNoCommit(taskFinish); + // if (listTaskNext != null && listTaskNext.Count > 0)//下个审批节点 + // BantchSaveEntityNoCommit(listTaskNext); + // if (listTaskNotice != null && listTaskNotice.Count > 0)//下个审批节点 + // BantchSaveEntityNoCommit(listTaskNotice); + // }); + // } + // } - return true; - } + // return true; + //} - /// - /// 回采计划 审批流 - /// - /// - /// - public bool BackUpdate_TLRecordBack(T_PF_APPROVE entityInt, T_PF_APPROVE modelApp, List listAppDetail, T_FM_NOTIFICATION_TASK taskFinish, List listTaskNext, bool isLast = false) - { - #region 审批公用 + ///// + ///// 回采计划 审批流 + ///// + ///// + ///// + //public bool BackUpdate_TLRecordBack(T_PF_APPROVE entityInt, T_PF_APPROVE modelApp, List listAppDetail, T_FM_NOTIFICATION_TASK taskFinish, List listTaskNext, bool isLast = false) + //{ + // #region 审批公用 - if (modelApp == null) - { - string taskCodeCheck = String.Empty; - bool result = GetApproject2(entityInt, ref modelApp, ref listAppDetail, ref taskFinish, ref taskCodeCheck, ref isLast, ref listTaskNext); - if (!result) - { - throw new Exception("审批失败!"); - } - } + // if (modelApp == null) + // { + // string taskCodeCheck = String.Empty; + // bool result = GetApproject2(entityInt, ref modelApp, ref listAppDetail, ref taskFinish, ref taskCodeCheck, ref isLast, ref listTaskNext); + // if (!result) + // { + // throw new Exception("审批失败!"); + // } + // } - #endregion + // #endregion - if (!isLast) - { - this.UnifiedCommit(() => - { - if (modelApp != null) - UpdateEntityNoCommit(modelApp); //保存主表 - if (listAppDetail.Count > 0)//添加组合数据 修改的安全库、隐患库 - BantchSaveEntityNoCommit(listAppDetail); - if (taskFinish != null) - UpdateEntityNoCommit(taskFinish); - if (listTaskNext != null && listTaskNext.Count > 0)//下个审批节点 - BantchSaveEntityNoCommit(listTaskNext); - }); - } - else - { - //修改完 给 值班人 确认 单 - var entity = GetEntity(modelApp.DATA_ID); - entity.STATUS = PFStandardStatus.Archived;//审批完后 值变小(注) + // if (!isLast) + // { + // this.UnifiedCommit(() => + // { + // if (modelApp != null) + // UpdateEntityNoCommit(modelApp); //保存主表 + // if (listAppDetail.Count > 0)//添加组合数据 修改的安全库、隐患库 + // BantchSaveEntityNoCommit(listAppDetail); + // if (taskFinish != null) + // UpdateEntityNoCommit(taskFinish); + // if (listTaskNext != null && listTaskNext.Count > 0)//下个审批节点 + // BantchSaveEntityNoCommit(listTaskNext); + // }); + // } + // else + // { + // //修改完 给 值班人 确认 单 + // var entity = GetEntity(modelApp.DATA_ID); + // entity.STATUS = PFStandardStatus.Archived;//审批完后 值变小(注) - this.UnifiedCommit(() => - { - UpdateEntityNoCommit(entity); - if (modelApp != null) - UpdateEntityNoCommit(modelApp); //保存主表 - if (listAppDetail.Count > 0)//添加组合数据 修改的安全库、隐患库 - BantchSaveEntityNoCommit(listAppDetail); - if (taskFinish != null) - UpdateEntityNoCommit(taskFinish); - if (listTaskNext != null && listTaskNext.Count > 0)//下个审批节点 - BantchSaveEntityNoCommit(listTaskNext); - }); - } + // this.UnifiedCommit(() => + // { + // UpdateEntityNoCommit(entity); + // if (modelApp != null) + // UpdateEntityNoCommit(modelApp); //保存主表 + // if (listAppDetail.Count > 0)//添加组合数据 修改的安全库、隐患库 + // BantchSaveEntityNoCommit(listAppDetail); + // if (taskFinish != null) + // UpdateEntityNoCommit(taskFinish); + // if (listTaskNext != null && listTaskNext.Count > 0)//下个审批节点 + // BantchSaveEntityNoCommit(listTaskNext); + // }); + // } - return true; - } + // return true; + //} - #endregion + //#endregion } } diff --git a/APT.MS.Data/Mapping/T4/T4Map.cs b/APT.MS.Data/Mapping/T4/T4Map.cs index ddc033b..4fe4504 100644 --- a/APT.MS.Data/Mapping/T4/T4Map.cs +++ b/APT.MS.Data/Mapping/T4/T4Map.cs @@ -15,7 +15,6 @@ using Microsoft.EntityFrameworkCore.Metadata.Builders; using APT.MS.Domain.Entities.BS; using APT.MS.Domain.Entities.FO; using APT.MS.Domain.Entities.HM; -using APT.MS.Domain.Entities.AE; using APT.MS.Domain.Entities.BI; using APT.MS.Domain.Entities.SC.BI; using APT.MS.Domain.Entities.CM; @@ -23,15 +22,12 @@ using APT.MS.Domain.Entities.DM; using APT.MS.Domain.Entities.SC.DM; using APT.MS.Domain.Entities.SC; using APT.MS.Domain.Entities.OG; -using APT.MS.Domain.Entities.OH; using APT.MS.Domain.Entities.SC.PM; using APT.MS.Domain.Entities.SC.PE; using APT.MS.Domain.Entities.SC.PR; using APT.MS.Domain.Entities.SC.PT; using APT.MS.Domain.Entities.SC.SC; using APT.MS.Domain.Entities.SE; -using APT.MS.Domain.Entities.TI; -using APT.MS.Domain.Entities.TL; using APT.BaseData.Domain.Entities.BD; using APT.BaseData.Domain.Entities.FM; using APT.BaseData.Domain.Entities; @@ -3245,357 +3241,6 @@ builder.Property(t => t.NAME).HasMaxLength(100); builder.Property(t => t.CODE).HasMaxLength(50); builder.Property(t => t.NAME).HasMaxLength(50); } - } - #endregion - #region AccidentEventDamageObject - public partial class AEAccidentEventDamageObjectMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.Property(t => t.CODE).HasMaxLength(50); -builder.Property(t => t.NAME).HasMaxLength(200); - } - } - #endregion - #region AccidentEventReasonType - public partial class AEAccidentEventReasonTypeMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.Property(t => t.CODE).HasMaxLength(50); -builder.Property(t => t.NAME).HasMaxLength(200); - } - } - #endregion - #region AccidentEventReport - public partial class AEAccidentEventReportMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.Property(t => t.CODE).HasMaxLength(50); -builder.Property(t => t.NAME).HasMaxLength(300); -builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict); -builder.Property(t => t.ACCIDENT_PLACE).HasMaxLength(500); -builder.HasOne(t => t.Nav_AccidentType).WithMany().HasForeignKey(t => t.ACCIDENT_TYPE_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict); -builder.Property(t => t.ACCIDENT_REASON).HasMaxLength(500); -builder.Property(t => t.IMPACT_SCOPE).HasMaxLength(500); -builder.Property(t => t.TAKE_MEASURES).HasMaxLength(500); -builder.Property(t => t.REMARK).HasMaxLength(1000); -builder.Property(t => t.WORK_SUGGEST).HasMaxLength(1000); -builder.HasOne(t => t.Nav_Approve).WithMany().HasForeignKey(t => t.APPROVE_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region AccidentEventReportFile - public partial class AEAccidentEventReportFileMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_Report).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.REPORT_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region AccidentEventReportListKind - public partial class AEAccidentEventReportListKindMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_EventReport).WithMany(t=>t.Nav_ListAccidentListKind).HasForeignKey(t => t.REPORT_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_AccidentKind).WithMany().HasForeignKey(t => t.KIND_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region AccidentEventSurveyAdmPunishment - public partial class AEAccidentEventSurveyAdmPunishmentMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_SurveyResult).WithMany(t=>t.Nav_ListAdmPunishment).HasForeignKey(t => t.RESULT_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict); -builder.Property(t => t.PUNISHMENT_RESULT).HasMaxLength(500); -builder.Property(t => t.PUNISHMENT_REASON).HasMaxLength(500); - } - } - #endregion - #region AccidentEventSurveyCasualties - public partial class AEAccidentEventSurveyCasualtiesMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_SurveyResult).WithMany(t=>t.Nav_ListCasualties).HasForeignKey(t => t.RESULT_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict); -builder.Property(t => t.INJURED_AREA).HasMaxLength(500); -builder.Ignore(t => t.Nav_ClaimRecord); - } - } - #endregion - #region AccidentEventSurveyDamageObject - public partial class AEAccidentEventSurveyDamageObjectMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_SurveyResult).WithMany(t=>t.Nav_ListSurveyDamageObject).HasForeignKey(t => t.RESULT_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_DamageObject).WithMany().HasForeignKey(t => t.DAMAGE_OBJECT_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region AccidentEventSurveyEquipmentLoss - public partial class AEAccidentEventSurveyEquipmentLossMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_SurveyResult).WithMany(t=>t.Nav_ListEquipmentLoss).HasForeignKey(t => t.RESULT_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_Equipment).WithMany().HasForeignKey(t => t.EQUIPMENT_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_Facilities).WithMany().HasForeignKey(t => t.FACILITIES_ID).OnDelete(DeleteBehavior.Restrict); -builder.Property(t => t.MACHINE_NAME).HasMaxLength(500); -builder.Property(t => t.SPEC).HasMaxLength(500); -builder.Property(t => t.USER_NAME).HasMaxLength(500); -builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict); -builder.Property(t => t.LOSS_CONDITION).HasMaxLength(500); - } - } - #endregion - #region AccidentEventSurveyFile - public partial class AEAccidentEventSurveyFileMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_SurveyResult).WithMany(t=>t.Nav_FilesSurvey).HasForeignKey(t => t.RESULT_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region AccidentEventSurveyForensics - public partial class AEAccidentEventSurveyForensicsMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_SurveyResult).WithMany(t=>t.Nav_ListForensics).HasForeignKey(t => t.RESULT_ID).OnDelete(DeleteBehavior.Restrict); -builder.Property(t => t.EVIDENCE_DESC).HasMaxLength(300); - } - } - #endregion - #region AccidentEventSurveyForensicsFile - public partial class AEAccidentEventSurveyForensicsFileMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_SurveyForensics).WithMany(t=>t.Nav_FilesSurvey).HasForeignKey(t => t.SURVEY_FORENSICS_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region AccidentEventSurveyPfile - public partial class AEAccidentEventSurveyPfileMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_SurveyResult).WithMany(t=>t.Nav_FilesP).HasForeignKey(t => t.RESULT_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region AccidentEventSurveyReason - public partial class AEAccidentEventSurveyReasonMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_SurveyResult).WithMany(t=>t.Nav_ListReason).HasForeignKey(t => t.RESULT_ID).OnDelete(DeleteBehavior.Restrict); -builder.Property(t => t.REASON_ANALYZE).HasMaxLength(500); - } - } - #endregion - #region AccidentEventSurveyReasonType - public partial class AEAccidentEventSurveyReasonTypeMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_SurveyReason).WithMany(t=>t.Nav_ListReasonType).HasForeignKey(t => t.REASON_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_ReasonType).WithMany().HasForeignKey(t => t.REASON_TYPE_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region AccidentEventSurveyResult - public partial class AEAccidentEventSurveyResultMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_AccidentEventReport).WithMany().HasForeignKey(t => t.REPORT_ID).OnDelete(DeleteBehavior.Restrict); -builder.Property(t => t.ACCIDENT_COURSE).HasMaxLength(1000); -builder.HasOne(t => t.Nav_RiskSubmit).WithMany().HasForeignKey(t => t.RISK_SUBMIT_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_Approve).WithMany().HasForeignKey(t => t.APPROVE_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region AccidentKind - public partial class AEAccidentKindMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.Property(t => t.CODE).HasMaxLength(50); -builder.Property(t => t.NAME).HasMaxLength(300); - } - } - #endregion - #region AccidentLevelDays - public partial class AEAccidentLevelDaysMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - } - } - #endregion - #region AccidentSurveyTeamDeputyLeader - public partial class AEAccidentSurveyTeamDeputyLeaderMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_TeamMember).WithMany(t=>t.Nav_DeputyLeaderUser).HasForeignKey(t => t.TEAM_MEMBER_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region AccidentSurveyTeamMember - public partial class AEAccidentSurveyTeamMemberMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_AccidentEventReport).WithMany().HasForeignKey(t => t.REPORT_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_LeaderUser).WithMany().HasForeignKey(t => t.LEADER_USER_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_SurveyUser).WithMany().HasForeignKey(t => t.SURVEY_USER_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region AccidentSurveyTeamMembers - public partial class AEAccidentSurveyTeamMembersMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_TeamMember).WithMany(t=>t.Nav_TeamMembers).HasForeignKey(t => t.TEAM_MEMBER_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region AccidentType - public partial class AEAccidentTypeMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.Property(t => t.CODE).HasMaxLength(50); -builder.Property(t => t.NAME).HasMaxLength(300); - } - } - #endregion - #region DosetDepartmentUser - public partial class AEDosetDepartmentUserMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_Post).WithMany().HasForeignKey(t => t.POST_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region InvestigationRecord - public partial class AEInvestigationRecordMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_Accident).WithMany().HasForeignKey(t => t.ACCIDENT_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_TeamMember).WithMany().HasForeignKey(t => t.TEAM_MEMBER_ID).OnDelete(DeleteBehavior.Restrict); -builder.Property(t => t.INVESTIGATION_LOCATION).HasMaxLength(500); -builder.Property(t => t.INVESTIGATION_REASON).HasMaxLength(500); -builder.Property(t => t.SCENE_ENV_DESC).HasMaxLength(1000); -builder.Property(t => t.SCENE_DESC).HasMaxLength(1000); -builder.Property(t => t.SCENE_EVIDENCE_DESC).HasMaxLength(1000); -builder.HasOne(t => t.Nav_Approve).WithMany().HasForeignKey(t => t.APPROVE_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_LeaderUser).WithMany().HasForeignKey(t => t.LEADER_USER_ID).OnDelete(DeleteBehavior.Restrict); -builder.Property(t => t.REVIEW_COMMENT).HasMaxLength(500); - } - } - #endregion - #region InvestigationRecordAccFiles - public partial class AEInvestigationRecordAccFilesMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_FilesAcc).HasForeignKey(t => t.RECORD_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region InvestigationRecordAskUsers - public partial class AEInvestigationRecordAskUsersMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_UsersAsk).HasForeignKey(t => t.RECORD_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region InvestigationRecordChartFiles - public partial class AEInvestigationRecordChartFilesMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_FilesChart).HasForeignKey(t => t.RECORD_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region InvestigationRecordInvestigationUsers - public partial class AEInvestigationRecordInvestigationUsersMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_UsersInvestigation).HasForeignKey(t => t.RECORD_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region InvestigationRecordNotesFiles - public partial class AEInvestigationRecordNotesFilesMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_NotesFilesNotes).HasForeignKey(t => t.RECORD_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict); - } } #endregion #region SafetaskFinish @@ -4299,11 +3944,9 @@ builder.Property(t => t.NAME).HasMaxLength(200); builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict); builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict); builder.Property(t => t.EVENT_NAME).HasMaxLength(200); -builder.HasOne(t => t.Nav_Event).WithMany().HasForeignKey(t => t.EVENT_ID).OnDelete(DeleteBehavior.Restrict); builder.Property(t => t.ACCIDENT_PLACE).HasMaxLength(200); builder.HasOne(t => t.Nav_UserReport).WithMany().HasForeignKey(t => t.USER_ID_REPORT).OnDelete(DeleteBehavior.Restrict); builder.HasOne(t => t.Nav_DepartmentReport).WithMany().HasForeignKey(t => t.DEPARTMENT_ID_REPORT).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_AccidentType).WithMany().HasForeignKey(t => t.ACCIDENT_TYPE_ID).OnDelete(DeleteBehavior.Restrict); builder.Property(t => t.DESC).HasMaxLength(1000); builder.HasOne(t => t.Nav_UserManage).WithMany().HasForeignKey(t => t.USER_ID_MANAGE).OnDelete(DeleteBehavior.Restrict); builder.Property(t => t.JoinDepartment).HasMaxLength(400); @@ -4355,7 +3998,6 @@ builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelet { base.Configure(builder); builder.HasOne(t => t.Nav_RspEstimate).WithMany(t=>t.Nav_ListEventKind).HasForeignKey(t => t.ESTIMATE_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_RspAccdentKind).WithMany().HasForeignKey(t => t.KIND_ID).OnDelete(DeleteBehavior.Restrict); } } #endregion @@ -5212,15 +4854,6 @@ builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelet builder.Property(t => t.NAME).HasMaxLength(50); builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict); } - } - #endregion - #region Ogconfig - public partial class OGOgconfigMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - } } #endregion #region Related @@ -5398,17 +5031,6 @@ builder.Property(t => t.NAME).HasMaxLength(500); { base.Configure(builder); builder.HasIndex("NAME").IsUnique(); -builder.Property(t => t.NAME).HasMaxLength(500); - } - } - #endregion - #region PersonnelTypeEnum - public partial class OGPersonnelTypeEnumMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasIndex("NAME").IsUnique(); builder.Property(t => t.NAME).HasMaxLength(500); } } @@ -5444,410 +5066,6 @@ builder.Property(t => t.NAME).HasMaxLength(50); builder.Property(t => t.NAME).HasMaxLength(50); builder.HasIndex("NAME").IsUnique(); } - } - #endregion - #region StandardizationReviewResultEnum - public partial class OGStandardizationReviewResultEnumMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.Property(t => t.NAME).HasMaxLength(50); -builder.HasIndex("NAME").IsUnique(); - } - } - #endregion - #region ExamNoticeOccHazard - public partial class OHExamNoticeOccHazardMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_Register).WithMany(t=>t.Nav_ListOccHazard).HasForeignKey(t => t.REGISTER_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_Hazard).WithMany().HasForeignKey(t => t.HAZARD_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region ExamResultOccHazard - public partial class OHExamResultOccHazardMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_Result).WithMany().HasForeignKey(t => t.RESULT_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_Hazard).WithMany().HasForeignKey(t => t.HAZARD_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region HazardMonitorJob - public partial class OHHazardMonitorJobMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_Type).WithMany().HasForeignKey(t => t.TYPE_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict); -builder.Property(t => t.DEVICE_NAME).HasMaxLength(200); -builder.Property(t => t.DEVICE_SPEC).HasMaxLength(200); -builder.Property(t => t.MONITOR_METHOD).HasMaxLength(300); -builder.Property(t => t.SAMPLE_PEOPLE).HasMaxLength(50); - } - } - #endregion - #region HazardMonitorJobDetail - public partial class OHHazardMonitorJobDetailMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_Job).WithMany(t=>t.Nav_Detail).HasForeignKey(t => t.JOB_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_Rule).WithMany().HasForeignKey(t => t.RULE_ID).OnDelete(DeleteBehavior.Restrict); -builder.Property(t => t.SAMPLE_SOURCE).HasMaxLength(300); -builder.Property(t => t.TEST_DEPARTMENT).HasMaxLength(500); -builder.Property(t => t.TESTER).HasMaxLength(500); - } - } - #endregion - #region HazardMonitorJobFile - public partial class OHHazardMonitorJobFileMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_MonitorJob).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.RECORD_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region HazardMonitorJobReport - public partial class OHHazardMonitorJobReportMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict); -builder.Property(t => t.NAME).HasMaxLength(500); -builder.Property(t => t.DEPARTMENTNAME_JOB).HasMaxLength(500); - } - } - #endregion - #region HazardMonitorJobReportFile - public partial class OHHazardMonitorJobReportFileMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_Report).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.REPORT_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region HazardMonitorResult - public partial class OHHazardMonitorResultMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_Rule).WithMany().HasForeignKey(t => t.RULE_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_Sum).WithMany(t=>t.Nav_ListMonitorResult).HasForeignKey(t => t.SUM_ID).OnDelete(DeleteBehavior.Restrict); -builder.Property(t => t.TREND).HasMaxLength(500); - } - } - #endregion - #region HazardMonitorResultSum - public partial class OHHazardMonitorResultSumMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.Ignore(t => t.STR_RATIO); -builder.Ignore(t => t.EDITTYPE); - } - } - #endregion - #region HazardMonitorRule - public partial class OHHazardMonitorRuleMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_Type).WithMany().HasForeignKey(t => t.TYPE_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_DepartmentWorkshop).WithMany().HasForeignKey(t => t.DEPARTMENT_ID_WORKSHOP).OnDelete(DeleteBehavior.Restrict); -builder.Property(t => t.LOCATION).HasMaxLength(200); -builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_RecordPost).WithMany().HasForeignKey(t => t.RECORD_POST_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_DepartmentWarn).WithMany().HasForeignKey(t => t.DEPARTMENT_ID_WARN).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_WarnPost).WithMany().HasForeignKey(t => t.WARN_POST_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region HazardMonitorType - public partial class OHHazardMonitorTypeMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.Property(t => t.NAME).HasMaxLength(200); -builder.Property(t => t.SMALL_TYPE).HasMaxLength(200); -builder.Property(t => t.MONITOR_TYPE).HasMaxLength(200); - } - } - #endregion - #region HealthEaxmCycleOccHazardMid - public partial class OHHealthEaxmCycleOccHazardMidMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_ListOccHazard).HasForeignKey(t => t.RECORD_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_Hazard).WithMany().HasForeignKey(t => t.HAZARD_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region HealthEaxmCyclePostMid - public partial class OHHealthEaxmCyclePostMidMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_Record).WithMany().HasForeignKey(t => t.RECORD_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_SCPost).WithMany().HasForeignKey(t => t.SC_POST_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region HealthEaxmPlanDepartment - public partial class OHHealthEaxmPlanDepartmentMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_Plan).WithMany(t=>t.Nav_ListDepartment).HasForeignKey(t => t.PLAN_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region HealthExamBatch - public partial class OHHealthExamBatchMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.Property(t => t.BATCH).HasMaxLength(200); -builder.Ignore(t => t.TIME); -builder.Property(t => t.LOCATION).HasMaxLength(200); -builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region HealthExamBatchDepartment - public partial class OHHealthExamBatchDepartmentMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.Property(t => t.BATCH_ID).HasMaxLength(200); -builder.HasOne(t => t.Nav_Batch).WithMany(t=>t.Nav_ListDepartment).HasForeignKey(t => t.BATCH_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region HealthExamCycle - public partial class OHHealthExamCycleMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.Property(t => t.NAME).HasMaxLength(200); -builder.Property(t => t.CODE).HasMaxLength(50); -builder.Ignore(t => t.OCCHAZARD); -builder.Property(t => t.HEALTH_EXAM_CONTENT).HasMaxLength(200); - } - } - #endregion - #region HealthExamCycleDepartmentinfo - public partial class OHHealthExamCycleDepartmentinfoMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_ExamCycle).WithMany(t=>t.Nav_ListDepartmentInfo).HasForeignKey(t => t.EXAM_CYCLE_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region HealthExamCycleDepartmentinfoPost - public partial class OHHealthExamCycleDepartmentinfoPostMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_DepartmentInfo).WithMany(t=>t.Nav_ListDepartmentInfoPost).HasForeignKey(t => t.DEPARTMENTINFO_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_Post).WithMany().HasForeignKey(t => t.POST_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region HealthExamNotice - public partial class OHHealthExamNoticeMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.Property(t => t.CODE).HasMaxLength(50); -builder.Property(t => t.NAME).HasMaxLength(200); -builder.Property(t => t.OTHER_STUFF).HasMaxLength(1000); -builder.HasOne(t => t.Nav_ExamBatch).WithMany().HasForeignKey(t => t.EXAM_BATCH_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_Approve).WithMany().HasForeignKey(t => t.APPROVE_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region HealthExamNoticeFile - public partial class OHHealthExamNoticeFileMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_Notice).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.NOTICE_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region HealthExamNoticeRegister - public partial class OHHealthExamNoticeRegisterMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_Notice).WithMany(t=>t.Nav_ListNoticeRegister).HasForeignKey(t => t.NOTICE_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_DepartmentWorkshop).WithMany().HasForeignKey(t => t.DEPARTMENT_ID_WORKSHOP).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_Cycle).WithMany().HasForeignKey(t => t.CYCLE_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_ExamBatch).WithMany().HasForeignKey(t => t.EXAM_BATCH_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region HealthExamOccDisease - public partial class OHHealthExamOccDiseaseMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.Property(t => t.NAME).HasMaxLength(200); - } - } - #endregion - #region HealthExamOccDiseaseSeverityLevel - public partial class OHHealthExamOccDiseaseSeverityLevelMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.Property(t => t.NAME).HasMaxLength(200); - } - } - #endregion - #region HealthExamPlan - public partial class OHHealthExamPlanMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.Property(t => t.NAME).HasMaxLength(200); -builder.Property(t => t.CONTENT).HasMaxLength(500); -builder.HasOne(t => t.Nav_Approve).WithMany().HasForeignKey(t => t.APPROVE_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region HealthExamPlanRegister - public partial class OHHealthExamPlanRegisterMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_Plan).WithMany(t=>t.Nav_ListPlanRegister).HasForeignKey(t => t.PLAN_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_PlanDEP).WithMany().HasForeignKey(t => t.PLAN_ID_DEP).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_DepartmentWorkshop).WithMany().HasForeignKey(t => t.DEPARTMENT_ID_WORKSHOP).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_ExamCycle).WithMany().HasForeignKey(t => t.EXAM_CYCLE_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_Post).WithMany().HasForeignKey(t => t.POST_ID).OnDelete(DeleteBehavior.Restrict); -builder.Property(t => t.HEALTH_EXAM_CONTENT).HasMaxLength(200); - } - } - #endregion - #region HealthExamPlanRegisterHazard - public partial class OHHealthExamPlanRegisterHazardMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_Register).WithMany(t=>t.Nav_ListHazard).HasForeignKey(t => t.REGISTER_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_Hazard).WithMany().HasForeignKey(t => t.HAZARD_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region HealthExamResult - public partial class OHHealthExamResultMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_NoticeRegister).WithMany().HasForeignKey(t => t.NOTICE_REGISTER_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict); -builder.Property(t => t.DESCRIPTION).HasMaxLength(500); -builder.Property(t => t.SUGGESTION).HasMaxLength(800); - } - } - #endregion - #region HealthExamResultImport - public partial class OHHealthExamResultImportMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_ExamNotice).WithMany().HasForeignKey(t => t.NOTICE_ID).OnDelete(DeleteBehavior.Restrict); -builder.Ignore(t => t.Nav_ListResult); - } - } - #endregion - #region HealthExamResultOccDisease - public partial class OHHealthExamResultOccDiseaseMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_Result).WithMany(t=>t.Nav_OccDiseaseList).HasForeignKey(t => t.RESULT_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_OccDisease).WithMany().HasForeignKey(t => t.OCC_DISEASE_ID).OnDelete(DeleteBehavior.Restrict); -builder.Property(t => t.DIAGNOSE_AGENCY).HasMaxLength(200); -builder.Property(t => t.DIAGNOSE_METHOD).HasMaxLength(200); -builder.HasOne(t => t.Nav_OccDiseaseSeverity).WithMany().HasForeignKey(t => t.OCC_DISEASE_SEVERITY_ID).OnDelete(DeleteBehavior.Restrict); -builder.Property(t => t.DESCRIPTION).HasMaxLength(600); -builder.Property(t => t.OCC_HISTORY).HasMaxLength(1000); - } - } - #endregion - #region HealthExamResultOccDiseaseFile - public partial class OHHealthExamResultOccDiseaseFileMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_Disease).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.DISEASE_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region Runconfig - public partial class OHRunconfigMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.Ignore(t => t.STRDATE); -builder.HasOne(t => t.Nav_Post).WithMany().HasForeignKey(t => t.POST_ID).OnDelete(DeleteBehavior.Restrict); - } } #endregion #region AssessmentItem @@ -8571,955 +7789,6 @@ builder.Property(t => t.TRAIN_MODEL).HasMaxLength(100); builder.Property(t => t.NAME).HasMaxLength(100); builder.HasIndex("NAME").IsUnique(); } - } - #endregion - #region CostType - public partial class TICostTypeMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.Property(t => t.CODE).HasMaxLength(500); -builder.Property(t => t.NAME).HasMaxLength(500); - } - } - #endregion - #region InsuranceClaimRecord - public partial class TIInsuranceClaimRecordMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_Accident).WithMany().HasForeignKey(t => t.ACCIDENT_ID).OnDelete(DeleteBehavior.Restrict); -builder.Property(t => t.INJURE_DETAIL).HasMaxLength(200); -builder.Property(t => t.HOSPITAL).HasMaxLength(200); -builder.Property(t => t.INJURE_AFFIRM_AGENCY).HasMaxLength(200); -builder.Property(t => t.DISABILITY_AFFIRM_AGENCY).HasMaxLength(200); -builder.Property(t => t.REMARK).HasMaxLength(1000); - } - } - #endregion - #region InsuranceClaimRecordFile - public partial class TIInsuranceClaimRecordFileMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.RECORD_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region InsuranceRecord - public partial class TIInsuranceRecordMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - } - } - #endregion - #region InsuranceRecordFile - public partial class TIInsuranceRecordFileMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.RECORD_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region InsuranceUserRecord - public partial class TIInsuranceUserRecordMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_UserList).HasForeignKey(t => t.RECORD_ID).OnDelete(DeleteBehavior.Restrict); -builder.Property(t => t.DEPARTMENTNAME).HasMaxLength(500); -builder.Property(t => t.USERPOSTNAME).HasMaxLength(500); -builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region Plan - public partial class TIPlanMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region PlanFile - public partial class TIPlanFileMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_Plan).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.PLAN_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region PlanRange - public partial class TIPlanRangeMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_Plan).WithMany(t=>t.Nav_Ranges).HasForeignKey(t => t.PLAN_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_Range).WithMany().HasForeignKey(t => t.RANGE_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region PlanRangeType - public partial class TIPlanRangeTypeMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.Property(t => t.CODE).HasMaxLength(500); -builder.Property(t => t.NAME).HasMaxLength(500); - } - } - #endregion - #region PlanSource - public partial class TIPlanSourceMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_Plan).WithMany(t=>t.Nav_Sources).HasForeignKey(t => t.PLAN_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_Source).WithMany().HasForeignKey(t => t.SOURCE_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region PlanSourceType - public partial class TIPlanSourceTypeMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.Property(t => t.CODE).HasMaxLength(500); -builder.Property(t => t.NAME).HasMaxLength(500); - } - } - #endregion - #region Project - public partial class TIProjectMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_Plan).WithMany(t=>t.Nav_ListProject).HasForeignKey(t => t.PLAN_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict); -builder.Property(t => t.CODE).HasMaxLength(50); -builder.Property(t => t.NAME).HasMaxLength(200); -builder.HasOne(t => t.Nav_Manger).WithMany().HasForeignKey(t => t.MANAGER_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region ProjectCheck - public partial class TIProjectCheckMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_Project).WithMany().HasForeignKey(t => t.PROJECT_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region ProjectCheckFile - public partial class TIProjectCheckFileMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_ProjectCheck).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.PROJECT_CHECK_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region ProjectCheckWffile - public partial class TIProjectCheckWffileMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_ProjectCheck).WithMany(t=>t.Nav_WFFiles).HasForeignKey(t => t.PROJECT_CHECK_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region ProjectFile - public partial class TIProjectFileMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_Project).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.PROJECT_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region ProjectMoney - public partial class TIProjectMoneyMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_Project).WithMany().HasForeignKey(t => t.PROJECT_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region ProjectMoneyDetail - public partial class TIProjectMoneyDetailMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_Money).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.MONEY_ID).OnDelete(DeleteBehavior.Restrict); -builder.Property(t => t.NAME).HasMaxLength(150); - } - } - #endregion - #region ProjectMoneyDetailFile - public partial class TIProjectMoneyDetailFileMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_Detail).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.DETAIL_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region ProjectRange - public partial class TIProjectRangeMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_Project).WithMany(t=>t.Nav_Ranges).HasForeignKey(t => t.PROJECT_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_Range).WithMany().HasForeignKey(t => t.RANGE_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region ProjectSource - public partial class TIProjectSourceMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_Project).WithMany(t=>t.Nav_Sources).HasForeignKey(t => t.PROJECT_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_Source).WithMany().HasForeignKey(t => t.SOURCE_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region ProjectWffile - public partial class TIProjectWffileMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_Project).WithMany(t=>t.Nav_WFFiles).HasForeignKey(t => t.PROJECT_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region SafePdtCostRecord - public partial class TISafePdtCostRecordMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict); -builder.Property(t => t.PROJECT).HasMaxLength(500); -builder.Property(t => t.PURPOSE).HasMaxLength(500); -builder.Property(t => t.UNIT).HasMaxLength(200); -builder.HasOne(t => t.Nav_Approve).WithMany().HasForeignKey(t => t.APPROVE_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region SafePdtCostRecordFile - public partial class TISafePdtCostRecordFileMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_SafePdtCostRecord).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.RECORD_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region SafePdtCostRecordType - public partial class TISafePdtCostRecordTypeMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_SafePdtCostRecord).WithMany(t=>t.Nav_SafePdtCostRecordType).HasForeignKey(t => t.RECORD_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_CostType).WithMany().HasForeignKey(t => t.COST_TYPE_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region Back - public partial class TLBackMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.Property(t => t.TAILING_NAME).HasMaxLength(200); -builder.HasOne(t => t.Nav_Tailing).WithMany().HasForeignKey(t => t.TAILING_ID).OnDelete(DeleteBehavior.Restrict); -builder.Property(t => t.NAME).HasMaxLength(200); -builder.Property(t => t.CODE).HasMaxLength(50); -builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_Approve).WithMany().HasForeignKey(t => t.APPROVE_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region BackDetail - public partial class TLBackDetailMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_Back).WithMany(t=>t.Nav_ListDetail).HasForeignKey(t => t.BACK_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region BackDetailUser - public partial class TLBackDetailUserMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_Back).WithMany().HasForeignKey(t => t.BACK_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_BackDetail).WithMany(t=>t.Nav_ListDetailUser).HasForeignKey(t => t.BACK_DETAIL_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region BackFile - public partial class TLBackFileMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_Back).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.BACK_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region BackRecord - public partial class TLBackRecordMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.Property(t => t.TAILING_NAME).HasMaxLength(200); -builder.HasOne(t => t.Nav_Tailing).WithMany().HasForeignKey(t => t.TAILING_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict); -builder.Property(t => t.BACK_DIREACT).HasMaxLength(200); -builder.Property(t => t.BACK_SCALE).HasMaxLength(100); -builder.HasOne(t => t.Nav_Approve).WithMany().HasForeignKey(t => t.APPROVE_ID).OnDelete(DeleteBehavior.Restrict); -builder.Property(t => t.NAME).HasMaxLength(200); - } - } - #endregion - #region BackRecordUser - public partial class TLBackRecordUserMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_BackRecord).WithMany(t=>t.Nav_ListUser).HasForeignKey(t => t.BACK_RECORD_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region BackRequire - public partial class TLBackRequireMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_Back).WithMany(t=>t.Nav_ListBackRequire).HasForeignKey(t => t.BACK_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_Require).WithMany().HasForeignKey(t => t.REQUIRE_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region Caculate - public partial class TLCaculateMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.Property(t => t.CODE).HasMaxLength(50); -builder.Property(t => t.NAME).HasMaxLength(200); -builder.Property(t => t.TAILING_NAME).HasMaxLength(200); -builder.HasOne(t => t.Nav_Tailing).WithMany().HasForeignKey(t => t.TAILING_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region CaculateFile - public partial class TLCaculateFileMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_Caculate).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.CACULATE_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region FileSum - public partial class TLFileSumMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.Property(t => t.NAME).HasMaxLength(200); -builder.HasOne(t => t.Nav_Tailing).WithMany().HasForeignKey(t => t.TAILING_ID).OnDelete(DeleteBehavior.Restrict); -builder.Property(t => t.CONTENT).HasMaxLength(300); -builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region FileSumFile - public partial class TLFileSumFileMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_Sum).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.SUM_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region HighCheck - public partial class TLHighCheckMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.Property(t => t.TAILING_NAME).HasMaxLength(200); -builder.HasOne(t => t.Nav_Tailing).WithMany().HasForeignKey(t => t.TAILING_ID).OnDelete(DeleteBehavior.Restrict); -builder.Property(t => t.CODE).HasMaxLength(50); -builder.Property(t => t.NAME).HasMaxLength(200); -builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region HighCheckFile - public partial class TLHighCheckFileMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_HighCheck).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.HIGH_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region Out - public partial class TLOutMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.Property(t => t.TAILING_NAME).HasMaxLength(200); -builder.HasOne(t => t.Nav_Tailing).WithMany().HasForeignKey(t => t.TAILING_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region OutFile - public partial class TLOutFileMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_Out).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.OUT_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region PlanSet - public partial class TLPlanSetMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.Property(t => t.CODE).HasMaxLength(50); -builder.Property(t => t.NAME).HasMaxLength(200); -builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_Post).WithMany().HasForeignKey(t => t.POST_ID).OnDelete(DeleteBehavior.Restrict); -builder.Ignore(t => t.Nav_User); -builder.Property(t => t.RUNDATA).HasMaxLength(500); - } - } - #endregion - #region ProjectFinish - public partial class TLProjectFinishMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.Property(t => t.TAILING_NAME).HasMaxLength(200); -builder.HasOne(t => t.Nav_Tailing).WithMany().HasForeignKey(t => t.TAILING_ID).OnDelete(DeleteBehavior.Restrict); -builder.Property(t => t.NAME).HasMaxLength(200); -builder.Property(t => t.CODE).HasMaxLength(50); -builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict); -builder.Property(t => t.RESULT_REASON).HasMaxLength(500); - } - } - #endregion - #region ProjectFinishFile - public partial class TLProjectFinishFileMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_Hight).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.HIGHT_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region ProjectHight - public partial class TLProjectHightMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.Property(t => t.TAILING_NAME).HasMaxLength(200); -builder.HasOne(t => t.Nav_Tailing).WithMany().HasForeignKey(t => t.TAILING_ID).OnDelete(DeleteBehavior.Restrict); -builder.Property(t => t.NAME).HasMaxLength(200); -builder.Property(t => t.CODE).HasMaxLength(50); -builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict); -builder.Property(t => t.RESULT_REASON).HasMaxLength(500); - } - } - #endregion - #region ProjectHightFile - public partial class TLProjectHightFileMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_Hight).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.HIGHT_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region ProjectIntroduce - public partial class TLProjectIntroduceMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.Property(t => t.CODE).HasMaxLength(50); -builder.Property(t => t.TAILING_NAME).HasMaxLength(200); -builder.HasOne(t => t.Nav_Tailing).WithMany().HasForeignKey(t => t.TAILING_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region ProjectIntroduceFile - public partial class TLProjectIntroduceFileMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_ProjectIntroduce).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.INTRODUCE_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region ProjectRecord - public partial class TLProjectRecordMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.Property(t => t.TAILING_NAME).HasMaxLength(200); -builder.HasOne(t => t.Nav_Tailing).WithMany().HasForeignKey(t => t.TAILING_ID).OnDelete(DeleteBehavior.Restrict); -builder.Property(t => t.NAME).HasMaxLength(200); -builder.Property(t => t.CODE).HasMaxLength(50); -builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict); -builder.Property(t => t.RESULT_REASON).HasMaxLength(500); -builder.Property(t => t.RESULT_CHECK_REASON).HasMaxLength(500); -builder.Property(t => t.RESULT_WATCH_REASON).HasMaxLength(500); - } - } - #endregion - #region ProjectRecordCheckFile - public partial class TLProjectRecordCheckFileMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_Project).WithMany(t=>t.Nav_FilesWatch).HasForeignKey(t => t.PROJECT_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region ProjectRecordFile - public partial class TLProjectRecordFileMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_Project).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.PROJECT_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region ProjectRecordWatchFile - public partial class TLProjectRecordWatchFileMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_Project).WithMany(t=>t.Nav_FilesCheck).HasForeignKey(t => t.PROJECT_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region ProjectSlopebank - public partial class TLProjectSlopebankMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.Property(t => t.TAILING_NAME).HasMaxLength(200); -builder.HasOne(t => t.Nav_Tailing).WithMany().HasForeignKey(t => t.TAILING_ID).OnDelete(DeleteBehavior.Restrict); -builder.Property(t => t.NAMESUB).HasMaxLength(200); -builder.Property(t => t.CODE).HasMaxLength(50); -builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region ProjectSlopebankFile - public partial class TLProjectSlopebankFileMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_SlopeBank).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.SLOPEBANK_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region ProjectSlopebankProjFile - public partial class TLProjectSlopebankProjFileMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_SlopeBank).WithMany(t=>t.Nav_Files_Proj).HasForeignKey(t => t.SLOPEBANK_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region ProjectSlopebankSubFile - public partial class TLProjectSlopebankSubFileMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_SlopeBank).WithMany(t=>t.Nav_Files_Sub).HasForeignKey(t => t.SLOPEBANK_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region QualityCheck - public partial class TLQualityCheckMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.Property(t => t.CODE).HasMaxLength(50); -builder.Property(t => t.NAME).HasMaxLength(200); -builder.Property(t => t.TAILING_NAME).HasMaxLength(200); -builder.HasOne(t => t.Nav_Tailing).WithMany().HasForeignKey(t => t.TAILING_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region QualityCheckFile - public partial class TLQualityCheckFileMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_QualityCheck).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.QUALITY_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region Require - public partial class TLRequireMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.Property(t => t.NAME).HasMaxLength(200); -builder.Property(t => t.CODE).HasMaxLength(50); - } - } - #endregion - #region Tailing - public partial class TLTailingMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.Property(t => t.NAME).HasMaxLength(200); -builder.Property(t => t.CODE).HasMaxLength(50); -builder.Property(t => t.LOCATION).HasMaxLength(100); - } - } - #endregion - #region WatchDayly - public partial class TLWatchDaylyMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.Property(t => t.TAILING_NAME).HasMaxLength(200); -builder.HasOne(t => t.Nav_Tailing).WithMany().HasForeignKey(t => t.TAILING_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_Sum).WithMany().HasForeignKey(t => t.SUM_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region WatchDaylyDetail - public partial class TLWatchDaylyDetailMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.Property(t => t.TAILING_NAME).HasMaxLength(200); -builder.HasOne(t => t.Nav_Tailing).WithMany().HasForeignKey(t => t.TAILING_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_Dayly).WithMany(t=>t.Nav_ListDetail).HasForeignKey(t => t.DAYLY_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_Sum).WithMany().HasForeignKey(t => t.SUM_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region WatchDaylyDetailUser - public partial class TLWatchDaylyDetailUserMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_DaylyDetail).WithMany(t=>t.Nav_ListUser).HasForeignKey(t => t.DAYLY_DETAIL_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region WatchLine - public partial class TLWatchLineMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.Property(t => t.TAILING_NAME).HasMaxLength(200); -builder.HasOne(t => t.Nav_Tailing).WithMany().HasForeignKey(t => t.TAILING_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_Sum).WithMany().HasForeignKey(t => t.SUM_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region WatchLineDetail - public partial class TLWatchLineDetailMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.Property(t => t.TAILING_NAME).HasMaxLength(200); -builder.HasOne(t => t.Nav_Tailing).WithMany().HasForeignKey(t => t.TAILING_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_Line).WithMany(t=>t.Nav_ListDetail).HasForeignKey(t => t.LINE_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_Sum).WithMany().HasForeignKey(t => t.SUM_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_WatchLinePoint).WithMany().HasForeignKey(t => t.WATCH_LINE_POINT_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region WatchLineDetailUser - public partial class TLWatchLineDetailUserMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_LineDetail).WithMany(t=>t.Nav_ListUser).HasForeignKey(t => t.LINE_DETAIL_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region WatchLinePoint - public partial class TLWatchLinePointMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.Property(t => t.TAILING_NAME).HasMaxLength(200); -builder.HasOne(t => t.Nav_Tailing).WithMany().HasForeignKey(t => t.TAILING_ID).OnDelete(DeleteBehavior.Restrict); -builder.Property(t => t.LOCATION).HasMaxLength(200); -builder.Property(t => t.POINT_NO).HasMaxLength(200); - } - } - #endregion - #region WatchMove - public partial class TLWatchMoveMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.Property(t => t.TAILING_NAME).HasMaxLength(200); -builder.HasOne(t => t.Nav_Tailing).WithMany().HasForeignKey(t => t.TAILING_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_Sum).WithMany().HasForeignKey(t => t.SUM_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region WatchMoveDetail - public partial class TLWatchMoveDetailMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.Property(t => t.TAILING_NAME).HasMaxLength(200); -builder.HasOne(t => t.Nav_Tailing).WithMany().HasForeignKey(t => t.TAILING_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_Move).WithMany(t=>t.Nav_ListDetail).HasForeignKey(t => t.MOVE_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_Sum).WithMany().HasForeignKey(t => t.SUM_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_WatchMovePoint).WithMany().HasForeignKey(t => t.WATCH_MOVE_POINT_ID).OnDelete(DeleteBehavior.Restrict); -builder.Property(t => t.LOOKPOINT).HasMaxLength(500); -builder.Property(t => t.CHANGELOOKPOINT).HasMaxLength(500); - } - } - #endregion - #region WatchMoveDetailUser - public partial class TLWatchMoveDetailUserMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_MoveDetail).WithMany(t=>t.Nav_ListUser).HasForeignKey(t => t.MOVE_DETAIL_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region WatchMovePoint - public partial class TLWatchMovePointMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.Property(t => t.TAILING_NAME).HasMaxLength(200); -builder.HasOne(t => t.Nav_Tailing).WithMany().HasForeignKey(t => t.TAILING_ID).OnDelete(DeleteBehavior.Restrict); -builder.Property(t => t.NAME_BASE).HasMaxLength(200); -builder.Property(t => t.POINT_BASE).HasMaxLength(200); -builder.Property(t => t.NAME_WATCH).HasMaxLength(200); - } - } - #endregion - #region WatchPercent - public partial class TLWatchPercentMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.Property(t => t.TAILING_NAME).HasMaxLength(200); -builder.HasOne(t => t.Nav_Tailing).WithMany().HasForeignKey(t => t.TAILING_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_Sum).WithMany().HasForeignKey(t => t.SUM_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region WatchPercentDetail - public partial class TLWatchPercentDetailMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.Property(t => t.TAILING_NAME).HasMaxLength(200); -builder.HasOne(t => t.Nav_Tailing).WithMany().HasForeignKey(t => t.TAILING_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_Percent).WithMany(t=>t.Nav_ListDetail).HasForeignKey(t => t.PERCENT_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_Sum).WithMany().HasForeignKey(t => t.SUM_ID).OnDelete(DeleteBehavior.Restrict); -builder.Property(t => t.INT_PERCENT).HasMaxLength(500); -builder.Property(t => t.OUT_PERCENT).HasMaxLength(500); - } - } - #endregion - #region WatchPercentDetailUser - public partial class TLWatchPercentDetailUserMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.HasOne(t => t.Nav_PercentDetail).WithMany(t=>t.Nav_ListUser).HasForeignKey(t => t.PERCENT_DETAIL_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict); - } - } - #endregion - #region WatchPlanSet - public partial class TLWatchPlanSetMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.Property(t => t.TAILING_NAME).HasMaxLength(200); -builder.HasOne(t => t.Nav_Tailing).WithMany().HasForeignKey(t => t.TAILING_ID).OnDelete(DeleteBehavior.Restrict); -builder.Property(t => t.CODE).HasMaxLength(50); -builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict); -builder.HasOne(t => t.Nav_Post).WithMany().HasForeignKey(t => t.POST_ID).OnDelete(DeleteBehavior.Restrict); -builder.Ignore(t => t.Nav_ListUser); -builder.Property(t => t.RUNDATA).HasMaxLength(500); - } - } - #endregion - #region WatchSum - public partial class TLWatchSumMap :APTEntityBaseMap - { - public override void Configure(EntityTypeBuilder builder) - { - base.Configure(builder); - builder.Property(t => t.TAILING_NAME).HasMaxLength(200); -builder.HasOne(t => t.Nav_Tailing).WithMany().HasForeignKey(t => t.TAILING_ID).OnDelete(DeleteBehavior.Restrict); -builder.Ignore(t => t.Nav_ListDetailDayly); -builder.Ignore(t => t.Nav_ListSignDayly); -builder.Ignore(t => t.Nav_ListDetailMovd); -builder.Ignore(t => t.Nav_ListSignMovd); -builder.Ignore(t => t.Nav_ListDetailLine); -builder.Ignore(t => t.Nav_ListSignLine); -builder.Ignore(t => t.Nav_ListDetailPercent); -builder.Ignore(t => t.Nav_ListSignPercent); - } } #endregion #region Hmi diff --git a/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_EVENT_DAMAGE_OBJECT.cs b/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_EVENT_DAMAGE_OBJECT.cs deleted file mode 100644 index d895ba4..0000000 --- a/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_EVENT_DAMAGE_OBJECT.cs +++ /dev/null @@ -1,39 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.AE -{ - /// - /// 致害物 - /// - [Description("致害物")] - public class T_AE_ACCIDENT_EVENT_DAMAGE_OBJECT : MesEntityBase - { - /// - /// 编号 - /// - [Description("编号")] - [CodeRule((int)PFCodeRuleType.事故事件)] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(50)] - public string CODE { get; set; } - - /// - /// 名称 - /// - [Description("名称")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(200)] - public string NAME { get; set; } - } -} diff --git a/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_EVENT_REASON_TYPE.cs b/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_EVENT_REASON_TYPE.cs deleted file mode 100644 index 9ef3fbc..0000000 --- a/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_EVENT_REASON_TYPE.cs +++ /dev/null @@ -1,48 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.AE -{ - /// - /// 事故事件原因类别 - /// - [Description("事故事件原因类别")] - public class T_AE_ACCIDENT_EVENT_REASON_TYPE : MesEntityBase - { - /// - /// 编号 - /// - [Description("编号")] - [CodeRule((int)PFCodeRuleType.事故事件)] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(50)] - public string CODE { get; set; } - - /// - /// 名称 - /// - [Description("名称")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(200)] - public string NAME { get; set; } - - /// - /// 分类 - /// - [Description("分类")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public AEReasonCategory CATEGORY { get; set; } - } -} diff --git a/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_EVENT_REPORT.cs b/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_EVENT_REPORT.cs deleted file mode 100644 index 6c0f23e..0000000 --- a/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_EVENT_REPORT.cs +++ /dev/null @@ -1,222 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.AE -{ - /// - /// 事故事件上报表 - /// - [Description("事故事件上报")] - [DataRuleField("DEPARTMENT_ID")] - public class T_AE_ACCIDENT_EVENT_REPORT : MesEntityBase - { - /// - /// 事故编号 - /// - [Description("事故编号")] - [CodeRule((int)PFCodeRuleType.事故事件)] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(50)] - public string CODE { get; set; } - - /// - /// 事故名称 - /// - [Description("事故名称")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(300)] - public string NAME { get; set; } - - /// - /// 上报时间 - /// - [Description("上报时间")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public DateTime? TIME { get; set; } - - /// - /// 上报人员ID - /// - [Description("上报人员")] - [FormFieldTable] - [FormFieldEdit] - [DataFieldForeignKey("Nav_User")] - public Guid? USER_ID { get; set; } - - /// - /// 导航属性:上报人员 - /// - [Description("上报人员")] - [FormFieldQuery] - public virtual T_FM_USER Nav_User { get; set; } - - /// - /// 事故时间 - /// - [Description("事故时间")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public DateTime? ACCIDENT_TIME { get; set; } - - /// - /// 事故地点 - /// - [Description("事故地点")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public string ACCIDENT_PLACE { get; set; } - - /// - /// 导航属性: 事故种类 - /// - [Description("导航属性: 事故种类")] - public virtual ICollection Nav_ListAccidentListKind { get; set; } - - /// - /// 事故类型ID - /// - [Description("事故类型")] - [FormFieldTable] - [FormFieldEdit] - [DataFieldForeignKey("Nav_AccidentType")] - public Guid? ACCIDENT_TYPE_ID { get; set; } - - /// - /// 导航属性:事故类型 - /// - [Description("事故类型")] - [FormFieldQuery] - public virtual T_AE_ACCIDENT_TYPE Nav_AccidentType { get; set; } - - /// - /// 事故部门ID - /// - [Description("事故部门")] - [FormFieldTable] - [FormFieldEdit] - [DataFieldForeignKey("Nav_Department")] - public Guid? DEPARTMENT_ID { get; set; } - - /// - /// 导航属性:事故部门 - /// - [Description("事故部门")] - [FormFieldQuery] - public virtual T_FM_DEPARTMENT Nav_Department { get; set; } - - /// - /// 事故等级 - /// - [Description("事故等级")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public AEAccidentLevel? ACCIDENT_LEVEL { get; set; } - - /// - /// 事故起因 - /// - [Description("事故起因")] - [FormFieldEdit] - [DataFieldLength(500)] - public string ACCIDENT_REASON { get; set; } - - /// - /// 预估伤亡人数 - /// - [Description("预估伤亡人数")] - [FormFieldEdit] - public int ESTIMATE_CASUALTY_COUNT { get; set; } - - /// - /// 直接经济损失(元) - /// - [Description("直接经济损失(元)")] - [FormFieldEdit] - public decimal? ECONOMIC_LOSSES { get; set; } - - /// - /// 波及范围 - /// - [Description("波及范围")] - [FormFieldEdit] - [DataFieldLength(500)] - public string IMPACT_SCOPE { get; set; } - - /// - /// 已采取措施 - /// - [Description("已采取措施")] - [FormFieldEdit] - [DataFieldLength(500)] - public string TAKE_MEASURES { get; set; } - - /// - /// 导航属性:事故现场 - /// - [Description("导航属性:事故现场")] - public ICollection Nav_Files { get; set; } - - /// - /// 其他现状备注 - /// - [Description("其他现状备注")] - [FormFieldEdit] - [DataFieldLength(1000)] - public string REMARK { get; set; } - - /// - /// - /// 响应级别 - /// - [Description("响应级别")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public AERspLevel? RSP_LEVEL { get; set; } - - /// - /// 下一步工作建议 - /// - [Description("下一步工作建议")] - [FormFieldEdit] - [DataFieldLength(1000)] - public string WORK_SUGGEST { get; set; } - - /// - /// 状态 - /// - [Description("状态")] - [FormFieldTable] - [FormFieldQuery] - public PFStandardStatus STATUS { get; set; } - - /// - /// 审批流 - /// - [Description("审批流")] - [DataFieldForeignKey("Nav_Approve")] - public Guid? APPROVE_ID { get; set; } - - /// - /// 审批流 - /// - [Description("会议发起审批流")] - public T_PF_APPROVE Nav_Approve { get; set; } - } -} diff --git a/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_EVENT_REPORT_FILE.cs b/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_EVENT_REPORT_FILE.cs deleted file mode 100644 index 9cd50a1..0000000 --- a/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_EVENT_REPORT_FILE.cs +++ /dev/null @@ -1,44 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.AE -{ - /// - /// 事故现场 - /// - [Description("事故现场")] - public class T_AE_ACCIDENT_EVENT_REPORT_FILE : MesEntityBase - { - /// - /// 事故事件上报表 - /// - [Description("事故事件上报表")] - [DataFieldForeignKey("Nav_Report", "Nav_Files")] - public Guid REPORT_ID { get; set; } - - /// - /// 导航: 事故事件上报表 - /// - [Description("导航: 事故事件上报表")] - public T_AE_ACCIDENT_EVENT_REPORT Nav_Report { get; set; } - - /// - /// 文件ID - /// - [Description("文件")] - [DataFieldForeignKey("Nav_ImgFile")] - public Guid IMG_FILE_ID { get; set; } - - /// - /// 导航属性:文件 - /// - [Description("导航属性:文件")] - public virtual T_PF_IMG_FILE Nav_ImgFile { get; set; } - } -} diff --git a/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_EVENT_REPORT_LIST_KIND.cs b/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_EVENT_REPORT_LIST_KIND.cs deleted file mode 100644 index da41921..0000000 --- a/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_EVENT_REPORT_LIST_KIND.cs +++ /dev/null @@ -1,43 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.AE -{ - /// - /// 导航属性:事故种类 - /// - [Description("导航属性: 事故种类")] - public class T_AE_ACCIDENT_EVENT_REPORT_LIST_KIND : MesEntityBase - { - /// - /// 事故事件上报表ID - /// - [Description("事故事件上报表ID")] - [DataFieldForeignKey("Nav_EventReport", "Nav_ListAccidentListKind")] - public Guid REPORT_ID { get; set; } - - /// - /// 导航属性:事故事件上报表 - /// - [Description("导航属性:事故事件上报表")] - public virtual T_AE_ACCIDENT_EVENT_REPORT Nav_EventReport { get; set; } - - /// - /// 事故种类ID - /// - [Description("事故种类ID")] - [DataFieldForeignKey("Nav_AccidentKind")] - public Guid KIND_ID { get; set; } - - /// - /// 导航属性:事故种类 - /// - [Description("导航属性:事故种类")] - public virtual T_AE_ACCIDENT_KIND Nav_AccidentKind { get; set; } - } -} diff --git a/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_EVENT_SURVEY_ADM_PUNISHMENT.cs b/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_EVENT_SURVEY_ADM_PUNISHMENT.cs deleted file mode 100644 index ab3cbb7..0000000 --- a/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_EVENT_SURVEY_ADM_PUNISHMENT.cs +++ /dev/null @@ -1,72 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.AE -{ - /// - /// 导航属性:行政处罚信息 - /// - [Description("导航属性: 行政处罚信息")] - public class T_AE_ACCIDENT_EVENT_SURVEY_ADM_PUNISHMENT : MesEntityBase - { - /// - /// 事故事件调查结果填报表ID - /// - [Description("事故事件调查结果填报表")] - [DataFieldForeignKey("Nav_SurveyResult", "Nav_ListAdmPunishment")] - public Guid RESULT_ID { get; set; } - - /// - /// 导航属性:事故事件调查结果填报表 - /// - [Description("导航属性:事故事件调查结果填报表")] - public virtual T_AE_ACCIDENT_EVENT_SURVEY_RESULT Nav_SurveyResult { get; set; } - - /// - /// 责任部门ID - /// - [Description("责任部门")] - [DataFieldForeignKey("Nav_Department")] - [FormFieldEdit] - public Guid? DEPARTMENT_ID { get; set; } - - /// - /// 导航属性:责任部门 - /// - [Description("导航属性:责任部门")] - public virtual T_FM_DEPARTMENT Nav_Department { get; set; } - - /// - /// 处理人员ID - /// - [Description("处理人员")] - [DataFieldForeignKey("Nav_User")] - [FormFieldEdit] - public Guid? USER_ID { get; set; } - - /// - /// 导航属性:处理人员 - /// - [Description("导航属性:处理人员")] - public virtual T_FM_USER Nav_User { get; set; } - - /// - /// 处罚结果 - /// - [Description("处罚结果")] - [FormFieldEdit] - public string PUNISHMENT_RESULT { get; set; } - - /// - /// 处罚原因 - /// - [Description("处罚原因")] - [FormFieldEdit] - public string PUNISHMENT_REASON { get; set; } - } -} diff --git a/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_EVENT_SURVEY_CASUALTIES.cs b/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_EVENT_SURVEY_CASUALTIES.cs deleted file mode 100644 index d57a645..0000000 --- a/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_EVENT_SURVEY_CASUALTIES.cs +++ /dev/null @@ -1,66 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.TI; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.AE -{ - /// - /// 导航属性:人员伤亡信息 - /// - [Description("导航属性: 人员伤亡信息")] - public class T_AE_ACCIDENT_EVENT_SURVEY_CASUALTIES : MesEntityBase - { - /// - /// 事故事件调查结果填报表ID - /// - [Description("事故事件调查结果填报表")] - [DataFieldForeignKey("Nav_SurveyResult", "Nav_ListCasualties")] - public Guid RESULT_ID { get; set; } - - /// - /// 导航属性:事故事件调查结果填报表 - /// - [Description("导航属性:事故事件调查结果填报表")] - public virtual T_AE_ACCIDENT_EVENT_SURVEY_RESULT Nav_SurveyResult { get; set; } - - /// - /// 姓名ID - /// - [Description("姓名")] - [DataFieldForeignKey("Nav_User")] - [FormFieldEdit] - public Guid? USER_ID { get; set; } - - /// - /// 导航属性:姓名 - /// - [Description("导航属性:姓名")] - public virtual T_FM_USER Nav_User { get; set; } - - /// - /// 受伤时间 - /// - [Description("受伤时间")] - [FormFieldEdit] - public DateTime? INJURED_TIME { get; set; } - - /// - /// 受伤部位 - /// - [Description("受伤部位")] - [FormFieldEdit] - public string INJURED_AREA { get; set; } - - /// - /// 工伤理赔信息 - /// - [Description("工伤理赔信息")] - [DataFieldIngore] - public virtual T_TI_INSURANCE_CLAIM_RECORD Nav_ClaimRecord { get; set; } - } -} diff --git a/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_EVENT_SURVEY_DAMAGE_OBJECT.cs b/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_EVENT_SURVEY_DAMAGE_OBJECT.cs deleted file mode 100644 index 93d8baf..0000000 --- a/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_EVENT_SURVEY_DAMAGE_OBJECT.cs +++ /dev/null @@ -1,44 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.AE -{ - /// - /// 致害物(表单属性) - /// - [Description("致害物")] - public class T_AE_ACCIDENT_EVENT_SURVEY_DAMAGE_OBJECT : MesEntityBase - { - /// - /// 事故事件调查结果填报表 - /// - [Description("事故事件调查结果填报表")] - [DataFieldForeignKey("Nav_SurveyResult", "Nav_ListSurveyDamageObject")] - public Guid RESULT_ID { get; set; } - - /// - /// 导航: 事故事件调查结果填报表 - /// - [Description("导航: 事故事件调查结果填报表")] - public T_AE_ACCIDENT_EVENT_SURVEY_RESULT Nav_SurveyResult { get; set; } - - /// - /// 致害物ID - /// - [Description("致害物")] - [DataFieldForeignKey("Nav_DamageObject")] - [FormFieldEdit] - public Guid? DAMAGE_OBJECT_ID { get; set; } - - /// - /// 导航属性:致害物 - /// - [Description("导航属性:致害物")] - public virtual T_AE_ACCIDENT_EVENT_DAMAGE_OBJECT Nav_DamageObject { get; set; } - } -} diff --git a/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_EVENT_SURVEY_EQUIPMENT_LOSS.cs b/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_EVENT_SURVEY_EQUIPMENT_LOSS.cs deleted file mode 100644 index 163e6ba..0000000 --- a/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_EVENT_SURVEY_EQUIPMENT_LOSS.cs +++ /dev/null @@ -1,101 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.HM; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.AE -{ - /// - /// 导航属性:设备设施损失信息 - /// - [Description("导航属性: 设备设施损失信息")] - public class T_AE_ACCIDENT_EVENT_SURVEY_EQUIPMENT_LOSS : MesEntityBase - { - /// - /// 事故事件调查结果填报表ID - /// - [Description("事故事件调查结果填报表")] - [DataFieldForeignKey("Nav_SurveyResult", "Nav_ListEquipmentLoss")] - public Guid RESULT_ID { get; set; } - - /// - /// 导航属性:事故事件调查结果填报表 - /// - [Description("导航属性:事故事件调查结果填报表")] - public virtual T_AE_ACCIDENT_EVENT_SURVEY_RESULT Nav_SurveyResult { get; set; } - - /// - /// 设备ID - /// - [Description("设备")] - [DataFieldForeignKey("Nav_Equipment")] - [FormFieldEdit] - public Guid? EQUIPMENT_ID { get; set; } - - /// - /// 设备库 - /// - [Description("设备库")] - public virtual T_HM_EQUIPMENT Nav_Equipment { get; set; } - - /// - /// 设备设施库ID - /// - [Description("设施")] - [DataFieldForeignKey("Nav_Facilities")] - [FormFieldEdit] - public Guid? FACILITIES_ID { get; set; } - - /// - /// 设施库 - /// - [Description("设施库")] - public virtual T_HM_FACILITIES Nav_Facilities { get; set; } - - - /// - /// 设备名称 - /// - [Description("设备名称")] - [FormFieldEdit] - public string MACHINE_NAME { get; set; } - - /// - ///规格型号 - /// - [Description("规格型号")] - [FormFieldEdit] - public string SPEC { get; set; } - - /// - ///责任人员 - /// - [Description("责任人员")] - public string USER_NAME { get; set; } - - /// - /// 责任人员ID - /// - [Description("责任人员")] - [DataFieldForeignKey("Nav_User")] - [FormFieldEdit] - public Guid? USER_ID { get; set; } - - /// - /// 导航属性:姓名 - /// - [Description("导航属性:姓名")] - public virtual T_FM_USER Nav_User { get; set; } - - /// - /// 损失情况 - /// - [Description("损失情况")] - [FormFieldEdit] - public string LOSS_CONDITION { get; set; } - } -} diff --git a/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_EVENT_SURVEY_FILE.cs b/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_EVENT_SURVEY_FILE.cs deleted file mode 100644 index 34f3bff..0000000 --- a/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_EVENT_SURVEY_FILE.cs +++ /dev/null @@ -1,44 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.AE -{ - /// - /// 调查报告附件(表单属性) - /// - [Description("调查报告附件")] - public class T_AE_ACCIDENT_EVENT_SURVEY_FILE : MesEntityBase - { - /// - /// 事故事件调查结果填报表 - /// - [Description("事故事件调查结果填报表")] - [DataFieldForeignKey("Nav_SurveyResult", "Nav_FilesSurvey")] - public Guid RESULT_ID { get; set; } - - /// - /// 导航: 事故事件调查结果填报表 - /// - [Description("导航: 事故事件调查结果填报表")] - public T_AE_ACCIDENT_EVENT_SURVEY_RESULT Nav_SurveyResult { get; set; } - - /// - /// 文件ID - /// - [Description("文件")] - [DataFieldForeignKey("Nav_ImgFile")] - public Guid IMG_FILE_ID { get; set; } - - /// - /// 导航属性:文件 - /// - [Description("导航属性:文件")] - public virtual T_PF_IMG_FILE Nav_ImgFile { get; set; } - } -} diff --git a/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_EVENT_SURVEY_FORENSICS.cs b/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_EVENT_SURVEY_FORENSICS.cs deleted file mode 100644 index b3eedbe..0000000 --- a/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_EVENT_SURVEY_FORENSICS.cs +++ /dev/null @@ -1,51 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.AE -{ - /// - /// 导航属性:调查取证资料 - /// - [Description("导航属性: 调查取证资料")] - public class T_AE_ACCIDENT_EVENT_SURVEY_FORENSICS : MesEntityBase - { - /// - /// 事故事件调查结果填报表ID - /// - [Description("事故事件调查结果填报表")] - [DataFieldForeignKey("Nav_SurveyResult", "Nav_ListForensics")] - public Guid RESULT_ID { get; set; } - - /// - /// 导航属性:事故事件调查结果填报表 - /// - [Description("导航属性:事故事件调查结果填报表")] - public virtual T_AE_ACCIDENT_EVENT_SURVEY_RESULT Nav_SurveyResult { get; set; } - - /// - /// 证据来源 - /// - [Description("证据来源")] - [FormFieldEdit] - public AEEvidenceSource EVIDENCE_SOURCE { get; set; } - - /// - /// 证据描述 - /// - [Description("证据描述")] - [FormFieldEdit] - [DataFieldLength(300)] - public string EVIDENCE_DESC { get; set; } - - /// - /// 导航属性:附件(证据) - /// - [Description("导航属性:附件(证据)")] - public ICollection Nav_FilesSurvey { get; set; } - } -} diff --git a/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_EVENT_SURVEY_FORENSICS_FILE.cs b/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_EVENT_SURVEY_FORENSICS_FILE.cs deleted file mode 100644 index 1a7bcfb..0000000 --- a/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_EVENT_SURVEY_FORENSICS_FILE.cs +++ /dev/null @@ -1,44 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.AE -{ - /// - /// 导航属性:调查取证资料附件 - /// - [Description("导航属性: 调查取证资料附件")] - public class T_AE_ACCIDENT_EVENT_SURVEY_FORENSICS_FILE : MesEntityBase - { - /// - /// 调查取证资料 - /// - [Description("调查取证资料")] - [DataFieldForeignKey("Nav_SurveyForensics", "Nav_FilesSurvey")] - public Guid SURVEY_FORENSICS_ID { get; set; } - - /// - /// 导航: 调查取证资料 - /// - [Description("导航: 调查取证资料")] - public T_AE_ACCIDENT_EVENT_SURVEY_FORENSICS Nav_SurveyForensics { get; set; } - - /// - /// 文件ID - /// - [Description("文件")] - [DataFieldForeignKey("Nav_ImgFile")] - public Guid IMG_FILE_ID { get; set; } - - /// - /// 导航属性:文件 - /// - [Description("导航属性:文件")] - public virtual T_PF_IMG_FILE Nav_ImgFile { get; set; } - } -} diff --git a/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_EVENT_SURVEY_PFILE.cs b/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_EVENT_SURVEY_PFILE.cs deleted file mode 100644 index 28f0fbd..0000000 --- a/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_EVENT_SURVEY_PFILE.cs +++ /dev/null @@ -1,44 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.AE -{ - /// - /// 公示文件附件 - /// - [Description("公示文件附件")] - public class T_AE_ACCIDENT_EVENT_SURVEY_PFILE : MesEntityBase - { - /// - /// 事故事件调查结果填报表 - /// - [Description("事故事件调查结果填报表")] - [DataFieldForeignKey("Nav_SurveyResult", "Nav_FilesP")] - public Guid RESULT_ID { get; set; } - - /// - /// 导航: 事故事件调查结果填报表 - /// - [Description("导航: 事故事件调查结果填报表")] - public T_AE_ACCIDENT_EVENT_SURVEY_RESULT Nav_SurveyResult { get; set; } - - /// - /// 文件ID - /// - [Description("文件")] - [DataFieldForeignKey("Nav_ImgFile")] - public Guid IMG_FILE_ID { get; set; } - - /// - /// 导航属性:文件 - /// - [Description("导航属性:文件")] - public virtual T_PF_IMG_FILE Nav_ImgFile { get; set; } - } -} diff --git a/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_EVENT_SURVEY_REASON.cs b/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_EVENT_SURVEY_REASON.cs deleted file mode 100644 index 00162b1..0000000 --- a/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_EVENT_SURVEY_REASON.cs +++ /dev/null @@ -1,51 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.AE -{ - /// - /// 导航属性:事故事件原因 - /// - [Description("导航属性: 事故事件原因")] - public class T_AE_ACCIDENT_EVENT_SURVEY_REASON : MesEntityBase - { - /// - /// 事故事件调查结果填报表ID - /// - [Description("事故事件调查结果填报表")] - [DataFieldForeignKey("Nav_SurveyResult", "Nav_ListReason")] - public Guid RESULT_ID { get; set; } - - /// - /// 导航属性:事故事件调查结果填报表 - /// - [Description("导航属性:事故事件调查结果填报表")] - public virtual T_AE_ACCIDENT_EVENT_SURVEY_RESULT Nav_SurveyResult { get; set; } - - /// - /// 直接/间接原因 - /// - [Description("直接/间接原因")] - [FormFieldEdit] - public AEReasonModel REASON_MODEL { get; set; } - - /// - /// 导航属性:原因类别 - /// - [Description("导航属性:原因类别")] - public virtual ICollection Nav_ListReasonType { get; set; } - - /// - /// 原因分析 - /// - [Description("原因分析")] - [FormFieldEdit] - [DataFieldLength(500)] - public string REASON_ANALYZE { get; set; } - } -} diff --git a/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_EVENT_SURVEY_REASON_TYPE.cs b/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_EVENT_SURVEY_REASON_TYPE.cs deleted file mode 100644 index 4ca0283..0000000 --- a/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_EVENT_SURVEY_REASON_TYPE.cs +++ /dev/null @@ -1,43 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.AE -{ - /// - /// 事故事件原因类别 - /// - [Description("事故事件原因类别")] - public class T_AE_ACCIDENT_EVENT_SURVEY_REASON_TYPE : MesEntityBase - { - /// - /// 事故事件原因ID - /// - [Description("事故事件原因")] - [DataFieldForeignKey("Nav_SurveyReason", "Nav_ListReasonType")] - public Guid REASON_ID { get; set; } - - /// - /// 导航: 事故事件原因 - /// - [Description("导航: 事故事件原因")] - public T_AE_ACCIDENT_EVENT_SURVEY_REASON Nav_SurveyReason { get; set; } - - /// - /// 原因类别ID - /// - [Description("原因类别")] - [DataFieldForeignKey("Nav_ReasonType")] - public Guid? REASON_TYPE_ID { get; set; } - - /// - /// 导航属性:原因类别 - /// - [Description("导航属性:原因类别")] - public virtual T_AE_ACCIDENT_EVENT_REASON_TYPE Nav_ReasonType { get; set; } - } -} diff --git a/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_EVENT_SURVEY_RESULT.cs b/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_EVENT_SURVEY_RESULT.cs deleted file mode 100644 index 042cf5b..0000000 --- a/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_EVENT_SURVEY_RESULT.cs +++ /dev/null @@ -1,157 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.BS; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.AE -{ - /// - /// 事故事件调查结果填报表 - /// - [Description("事故事件调查结果填报表")] - [DataRuleField("Nav_AccidentEventReport.DEPARTMENT_ID")] - public class T_AE_ACCIDENT_EVENT_SURVEY_RESULT : MesEntityBase - { - /// - /// 事故事件上报表ID - /// - [Description("事故事件上报表")] - [DataFieldForeignKey("Nav_AccidentEventReport")] - [FormFieldTable] - [FormFieldEdit] - public Guid? REPORT_ID { get; set; } - - /// - /// 事故事件上报表 - /// - [Description("事故事件上报表")] - [FormFieldQuery] - public virtual T_AE_ACCIDENT_EVENT_REPORT Nav_AccidentEventReport { get; set; } - - /// - /// 导航属性: 致害物 - /// - [Description("导航属性: 致害物")] - public virtual ICollection Nav_ListSurveyDamageObject { get; set; } - - /// - /// 事故伤亡人数 - /// - [Description("事故伤亡人数")] - [FormFieldEdit] - public int? CASUALTY_COUNT { get; set; } - - /// - /// 直接经济损失(元) - /// - [Description("直接经济损失(元)")] - [FormFieldEdit] - public decimal? ECONOMIC_LOSSES { get; set; } - - /// - /// 事故事件经过 - /// - [Description("事故事件经过")] - [FormFieldEdit] - [DataFieldLength(1000)] - public string ACCIDENT_COURSE { get; set; } - - /// - /// 限制结案时间 - /// - [Description("限制结案时间")] - [FormFieldEdit] - public DateTime? SYSTEMMAXTIME { get; set; } - - /// - /// 实际结案时间 - /// - [Description("实际结案时间")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public DateTime? TIME { get; set; } - - - /// - /// 导航属性:调查报告附件 - /// - [Description("导航属性:调查报告附件")] - public virtual ICollection Nav_FilesSurvey { get; set; } - - /// - /// 导航属性:公示文件附件 - /// - [Description("导航属性:公示文件附件")] - public virtual ICollection Nav_FilesP { get; set; } - - /// - /// 隐患上报表单ID - /// - [Description("隐患上报表单")] - [DataFieldForeignKey("Nav_RiskSubmit")] - public Guid? RISK_SUBMIT_ID { get; set; } - - /// - /// 导航属性:隐患上报表单 - /// - [Description("导航属性:隐患上报表单")] - public virtual T_BS_RISK_SUBMIT Nav_RiskSubmit { get; set; } - - /// - /// 导航属性:事故事件原因 - /// - [Description("导航属性:事故事件原因")] - public virtual ICollection Nav_ListReason { get; set; } - - /// - /// 导航属性:调查取证资料 - /// - [Description("导航属性:调查取证资料")] - public virtual ICollection Nav_ListForensics { get; set; } - - /// - /// 导航属性:设备设施损失信息 - /// - [Description("导航属性:设备设施损失信息")] - public virtual ICollection Nav_ListEquipmentLoss { get; set; } - - /// - /// 导航属性:人员伤亡信息 - /// - [Description("导航属性:人员伤亡信息")] - public ICollection Nav_ListCasualties { get; set; } - - /// - /// 导航属性:行政处罚信息 - /// - [Description("导航属性:行政处罚信息")] - public virtual ICollection Nav_ListAdmPunishment { get; set; } - - /// - /// 状态 - /// - [Description("状态")] - [FormFieldTable] - [FormFieldQuery] - public PFStandardStatus STATUS { get; set; } - - /// - /// 审批流 - /// - [Description("审批流")] - [DataFieldForeignKey("Nav_Approve")] - public Guid? APPROVE_ID { get; set; } - - /// - /// 审批流 - /// - [Description("会议发起审批流")] - public T_PF_APPROVE Nav_Approve { get; set; } - } -} diff --git a/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_KIND.cs b/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_KIND.cs deleted file mode 100644 index a01e0e3..0000000 --- a/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_KIND.cs +++ /dev/null @@ -1,39 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.AE -{ - /// - /// 事故种类 - /// - [Description("事故种类")] - public class T_AE_ACCIDENT_KIND : MesEntityBase - { - /// - /// 编号 - /// - [Description("编号")] - [CodeRule((int)PFCodeRuleType.事故事件)] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(50)] - public string CODE { get; set; } - - /// - /// 名称 - /// - [Description("名称")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(300)] - public string NAME { get; set; } - } -} diff --git a/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_LEVEL_DAYS.cs b/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_LEVEL_DAYS.cs deleted file mode 100644 index 66f1878..0000000 --- a/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_LEVEL_DAYS.cs +++ /dev/null @@ -1,37 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.AE -{ - /// - /// 事故等级结案限制 - /// - [Description("事故等级结案限制")] - public class T_AE_ACCIDENT_LEVEL_DAYS : MesEntityBase - { - /// - /// 事故等级 - /// - [Description("事故等级")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public AEAccidentLevel ACCIDENT_LEVEL { get; set; } - - /// - /// 天数 - /// - [Description("天数")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public int DAYS { get; set; } - - } -} diff --git a/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_SURVEY_TEAM_DEPUTY_LEADER.cs b/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_SURVEY_TEAM_DEPUTY_LEADER.cs deleted file mode 100644 index 2070cc8..0000000 --- a/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_SURVEY_TEAM_DEPUTY_LEADER.cs +++ /dev/null @@ -1,43 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.AE -{ - /// - /// 事故调查小组 副组长 - /// - [Description("事故调查小组副组长")] - public class T_AE_ACCIDENT_SURVEY_TEAM_DEPUTY_LEADER : MesEntityBase - { - /// - /// 事故调查小组成员表ID - /// - [Description("事故调查小组成员表ID")] - [DataFieldForeignKey("Nav_TeamMember", "Nav_DeputyLeaderUser")] - public Guid TEAM_MEMBER_ID { get; set; } - - /// - /// 导航属性:事故调查小组成员表 - /// - [Description("导航属性:事故调查小组成员表")] - public virtual T_AE_ACCIDENT_SURVEY_TEAM_MEMBER Nav_TeamMember { get; set; } - - /// - /// 人员ID - /// - [Description("人员")] - [DataFieldForeignKey("Nav_User")] - public Guid? USER_ID { get; set; } - - /// - /// 导航属性:人员 - /// - [Description("导航属性:人员")] - public virtual T_FM_USER Nav_User { get; set; } - } -} diff --git a/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_SURVEY_TEAM_MEMBER.cs b/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_SURVEY_TEAM_MEMBER.cs deleted file mode 100644 index 58cc6e4..0000000 --- a/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_SURVEY_TEAM_MEMBER.cs +++ /dev/null @@ -1,84 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.AE -{ - /// - /// 事故调查小组成员表 - /// - [Description("事故调查小组成员")] - [DataRuleField("Nav_AccidentEventReport.DEPARTMENT_ID")] - public class T_AE_ACCIDENT_SURVEY_TEAM_MEMBER : MesEntityBase - { - - /// - /// 事故事件上报表ID - /// - [Description("事故事件上报表")] - [DataFieldForeignKey("Nav_AccidentEventReport")] - public Guid? REPORT_ID { get; set; } - - /// - /// 导航属性:事故事件上报表 - /// - [Description("事故事件上报表")] - public virtual T_AE_ACCIDENT_EVENT_REPORT Nav_AccidentEventReport { get; set; } - - /// - /// 组长ID - /// - [Description("组长ID")] - [DataFieldForeignKey("Nav_LeaderUser")] - [FormFieldTable] - [FormFieldEdit] - public Guid? LEADER_USER_ID { get; set; } - - /// - /// 导航属性:组长 - /// - [Description("导航属性:组长")] - [FormFieldQuery] - public virtual T_FM_USER Nav_LeaderUser { get; set; } - - /// - /// 导航属性: 副组长 - /// - [Description("导航属性: 副组长")] - public virtual ICollection Nav_DeputyLeaderUser { get; set; } - - /// - /// 导航属性: 组员 - /// - [Description("导航属性: 组员")] - public virtual ICollection Nav_TeamMembers { get; set; } - - /// - /// 调查记录人ID - /// - [Description("调查记录人")] - [DataFieldForeignKey("Nav_SurveyUser")] - [FormFieldTable] - [FormFieldEdit] - public Guid? SURVEY_USER_ID { get; set; } - - /// - /// 调查记录人 - /// - [Description("调查记录人")] - [FormFieldQuery] - public virtual T_FM_USER Nav_SurveyUser { get; set; } - - /// - /// 状态 - /// - [Description("状态")] - [FormFieldTable] - [FormFieldQuery] - public PFStandardStatus STATUS { get; set; } - } -} diff --git a/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_SURVEY_TEAM_MEMBERS.cs b/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_SURVEY_TEAM_MEMBERS.cs deleted file mode 100644 index 0fd25e1..0000000 --- a/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_SURVEY_TEAM_MEMBERS.cs +++ /dev/null @@ -1,43 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.AE -{ - /// - /// 事故调查小组 组员 - /// - [Description("导航属性: 事故调查小组组员")] - public class T_AE_ACCIDENT_SURVEY_TEAM_MEMBERS : MesEntityBase - { - /// - /// 事故调查小组成员表ID - /// - [Description("事故调查小组成员表")] - [DataFieldForeignKey("Nav_TeamMember", "Nav_TeamMembers")] - public Guid TEAM_MEMBER_ID { get; set; } - - /// - /// 导航属性:事故调查小组成员表 - /// - [Description("导航属性:事故调查小组成员表")] - public virtual T_AE_ACCIDENT_SURVEY_TEAM_MEMBER Nav_TeamMember { get; set; } - - /// - /// 人员ID - /// - [Description("人员ID")] - [DataFieldForeignKey("Nav_User")] - public Guid? USER_ID { get; set; } - - /// - /// 导航属性:人员 - /// - [Description("导航属性:人员")] - public virtual T_FM_USER Nav_User { get; set; } - } -} diff --git a/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_TYPE.cs b/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_TYPE.cs deleted file mode 100644 index 05a39bd..0000000 --- a/APT.MS.Domain/Entities/SC/AE/T_AE_ACCIDENT_TYPE.cs +++ /dev/null @@ -1,39 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.AE -{ - /// - /// 事故类型 - /// - [Description("事故类型")] - public class T_AE_ACCIDENT_TYPE : MesEntityBase - { - /// - /// 编号 - /// - [Description("编号")] - [CodeRule((int)PFCodeRuleType.事故事件)] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(50)] - public string CODE { get; set; } - - /// - /// 名称 - /// - [Description("名称")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(300)] - public string NAME { get; set; } - } -} diff --git a/APT.MS.Domain/Entities/SC/AE/T_AE_DEPARTMENT_USER.cs b/APT.MS.Domain/Entities/SC/AE/T_AE_DEPARTMENT_USER.cs deleted file mode 100644 index a158179..0000000 --- a/APT.MS.Domain/Entities/SC/AE/T_AE_DEPARTMENT_USER.cs +++ /dev/null @@ -1,55 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.AE -{ - /// - /// 触发设置 - /// - [Description("触发设置")] - public class T_AE_DOSET_DEPARTMENT_USER : MesEntityBase - { - /// - /// 触发部门ID - /// - [Description("触发部门")] - [FormFieldTable] - [FormFieldEdit] - [DataFieldForeignKey("Nav_Department")] - public Guid DEPARTMENT_ID { get; set; } - - /// - /// 触发部门 - /// - [Description("触发部门")] - public virtual T_FM_DEPARTMENT Nav_Department { get; set; } - - /// - /// 岗位 - /// - [Description("岗位")] - [FormFieldTable] - [FormFieldEdit] - [DataFieldForeignKey("Nav_Post")] - public Guid POST_ID { get; set; } - - /// - /// 岗位 - /// - [Description("岗位")] - public virtual T_FM_USER_POST Nav_Post { get; set; } - - - /// - /// 操作类型 - /// - [Description("操作类型")] - [FormFieldTable] - [FormFieldEdit] - public EventType EVENTTYPE { get; set; } - - } -} diff --git a/APT.MS.Domain/Entities/SC/AE/T_AE_INVESTIGATION_RECORD.cs b/APT.MS.Domain/Entities/SC/AE/T_AE_INVESTIGATION_RECORD.cs deleted file mode 100644 index db7be9c..0000000 --- a/APT.MS.Domain/Entities/SC/AE/T_AE_INVESTIGATION_RECORD.cs +++ /dev/null @@ -1,229 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.AE -{ - /// - /// 勘察记录 - /// - [Description("勘察记录")] - [DataRuleField("DEPARTMENT_ID")] - public class T_AE_INVESTIGATION_RECORD : MesEntityBase - { - /// - /// 编制日期 - /// - [Description("编制日期")] - [FormFieldTable] - [FormFieldQuery] - [FormFieldEdit] - public DateTime? LAUNCH_TIME { get; set; } - - /// - /// 拟稿部门ID - /// - [Description("拟稿部门")] - [DataFieldForeignKey("Nav_Department")] - [FormFieldTable] - [FormFieldEdit] - public Guid? DEPARTMENT_ID { get; set; } - - /// - /// 导航: 拟稿部门 - /// - [Description("拟稿部门")] - [FormFieldQuery] - public virtual T_FM_DEPARTMENT Nav_Department { get; set; } - - /// - /// 拟稿人员ID - /// - [Description("拟稿人")] - [DataFieldForeignKey("Nav_User")] - [FormFieldTable] - [FormFieldEdit] - public Guid? USER_ID { get; set; } - - - /// - /// 导航: 拟稿人员 - /// - [Description("导航: 拟稿人员")] - [FormFieldQuery] - public virtual T_FM_USER Nav_User { get; set; } - - /// - /// 事故事件上报ID - /// - [Description("事故事件上报")] - [DataFieldForeignKey("Nav_Accident")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public Guid? ACCIDENT_ID { get; set; } - - /// - /// 导航: 事故事件上报 - /// - [Description("导航: 事故事件上报")] - public virtual T_AE_ACCIDENT_EVENT_REPORT Nav_Accident { get; set; } - - /// - /// 事故调查小组成员表ID - /// - [Description("事故调查小组")] - [DataFieldForeignKey("Nav_TeamMember")] - [FormFieldEdit] - public Guid? TEAM_MEMBER_ID { get; set; } - - /// - /// 导航属性:事故调查小组成员表 - /// - [Description("导航属性:事故调查小组成员表")] - public virtual T_AE_ACCIDENT_SURVEY_TEAM_MEMBER Nav_TeamMember { get; set; } - - /// - /// 勘察时间 - /// - [Description("勘察时间")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public DateTime? INVESTIGATION_TIME { get; set; } - - /// - /// 勘察地点 - /// - [Description("勘察地点")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public string INVESTIGATION_LOCATION { get; set; } - - /// - /// 勘察事由 - /// - [Description("勘察事由")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(500)] - public string INVESTIGATION_REASON { get; set; } - - /// - /// 导航属性: 勘察人员 - /// - [Description("导航属性: 勘察人员")] - public ICollection Nav_UsersInvestigation { get; set; } - - /// - /// 导航属性: 询问人员 - /// - [Description("导航属性: 询问人员")] - public ICollection Nav_UsersAsk { get; set; } - - /// - /// 事故现场外围和环境情况 - /// - [Description("事故现场外围和环境情况")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(1000)] - public string SCENE_ENV_DESC { get; set; } - - /// - /// 事故现场情况 - /// - [Description("事故现场情况")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(1000)] - public string SCENE_DESC { get; set; } - - /// - /// 现场物证情况 - /// - [Description("现场物证情况")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(1000)] - public string SCENE_EVIDENCE_DESC { get; set; } - - /// - /// 导航属性: 事故照片 - /// - [Description("导航属性: 事故照片")] - public ICollection Nav_FilesAcc { get; set; } - - /// - /// 导航属性: 绘制事故图 - /// - [Description("导航属性: 绘制事故图")] - public ICollection Nav_FilesChart { get; set; } - - /// - /// 导航属性: 附件 - /// - [Description("导航属性: 现场笔录")] - public ICollection Nav_NotesFilesNotes { get; set; } - - /// - /// 状态 - /// - [Description("状态")] - [FormFieldTable] - [FormFieldQuery] - public PFStandardStatus STATUS { get; set; } - - - /// - /// 审批流 - /// - [Description("审批流")] - [DataFieldForeignKey("Nav_Approve")] - public Guid? APPROVE_ID { get; set; } - - /// - /// 审批流 - /// - [Description("会议发起审批流")] - public T_PF_APPROVE Nav_Approve { get; set; } - - /// - /// 组长ID - /// - [Description("组长ID")] - [DataFieldForeignKey("Nav_LeaderUser")] - public Guid? LEADER_USER_ID { get; set; } - - /// - /// 导航属性:组长 - /// - [Description("导航属性:组长")] - public virtual T_FM_USER Nav_LeaderUser { get; set; } - - /// - /// 组长审阅状态 - /// - [Description("组长审阅状态")] - [FormFieldEdit] - public bool? REVIEW_OK { get; set; } - - /// - /// 审阅意见 - /// - [Description("审阅意见")] - [FormFieldEdit] - [DataFieldLength(500)] - public string REVIEW_COMMENT { get; set; } - } -} diff --git a/APT.MS.Domain/Entities/SC/AE/T_AE_INVESTIGATION_RECORD_ACC_FILES.cs b/APT.MS.Domain/Entities/SC/AE/T_AE_INVESTIGATION_RECORD_ACC_FILES.cs deleted file mode 100644 index 3cf438d..0000000 --- a/APT.MS.Domain/Entities/SC/AE/T_AE_INVESTIGATION_RECORD_ACC_FILES.cs +++ /dev/null @@ -1,44 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.AE -{ - /// - /// 勘察记录表事故照片 - /// - [Description("勘察记录表事故照片")] - public class T_AE_INVESTIGATION_RECORD_ACC_FILES : MesEntityBase - { - /// - /// 勘察记录表ID - /// - [Description("勘察记录表ID")] - [DataFieldForeignKey("Nav_Record", "Nav_FilesAcc")] - public Guid RECORD_ID { get; set; } - - /// - /// 导航: 勘察记录表 - /// - [Description("导航: 勘察记录表")] - public virtual T_AE_INVESTIGATION_RECORD Nav_Record { get; set; } - - /// - /// 文件ID - /// - [Description("文件")] - [DataFieldForeignKey("Nav_ImgFile")] - public Guid IMG_FILE_ID { get; set; } - - /// - /// 导航属性:文件 - /// - [Description("导航属性:文件")] - public virtual T_PF_IMG_FILE Nav_ImgFile { get; set; } - } -} diff --git a/APT.MS.Domain/Entities/SC/AE/T_AE_INVESTIGATION_RECORD_ASK_USERS.cs b/APT.MS.Domain/Entities/SC/AE/T_AE_INVESTIGATION_RECORD_ASK_USERS.cs deleted file mode 100644 index 5ae21d8..0000000 --- a/APT.MS.Domain/Entities/SC/AE/T_AE_INVESTIGATION_RECORD_ASK_USERS.cs +++ /dev/null @@ -1,43 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.AE -{ - /// - /// 询问人员中间表 - /// - [Description("询问人员中间表")] - public class T_AE_INVESTIGATION_RECORD_ASK_USERS : MesEntityBase - { - /// - /// 勘察记录表ID - /// - [Description("勘察记录表ID")] - [DataFieldForeignKey("Nav_Record", "Nav_UsersAsk")] - public Guid RECORD_ID { get; set; } - - /// - /// 导航: 勘察记录表 - /// - [Description("导航: 勘察记录表")] - public virtual T_AE_INVESTIGATION_RECORD Nav_Record { get; set; } - - /// - /// 询问人员 - /// - [Description("询问人员")] - [DataFieldForeignKey("Nav_User")] - public Guid USER_ID { get; set; } - - /// - /// 导航属性:用户 - /// - [Description("导航属性:用户")] - public virtual T_FM_USER Nav_User { get; set; } - } -} diff --git a/APT.MS.Domain/Entities/SC/AE/T_AE_INVESTIGATION_RECORD_CHART_FILES.cs b/APT.MS.Domain/Entities/SC/AE/T_AE_INVESTIGATION_RECORD_CHART_FILES.cs deleted file mode 100644 index 7400806..0000000 --- a/APT.MS.Domain/Entities/SC/AE/T_AE_INVESTIGATION_RECORD_CHART_FILES.cs +++ /dev/null @@ -1,45 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.AE -{ - /// - /// 勘察记录表绘制事故图 - /// - [Description("勘察记录表绘制事故图")] - public class T_AE_INVESTIGATION_RECORD_CHART_FILES : MesEntityBase - { - /// - /// 勘察记录表ID - /// - [Description("勘察记录表ID")] - [DataFieldForeignKey("Nav_Record", "Nav_FilesChart")] - public Guid RECORD_ID { get; set; } - - /// - /// 导航: 勘察记录表 - /// - [Description("导航: 勘察记录表")] - public virtual T_AE_INVESTIGATION_RECORD Nav_Record { get; set; } - - - /// - /// 文件ID - /// - [Description("文件")] - [DataFieldForeignKey("Nav_ImgFile")] - public Guid IMG_FILE_ID { get; set; } - - /// - /// 导航属性:文件 - /// - [Description("导航属性:文件")] - public virtual T_PF_IMG_FILE Nav_ImgFile { get; set; } - } -} diff --git a/APT.MS.Domain/Entities/SC/AE/T_AE_INVESTIGATION_RECORD_INVESTIGATION_USERS.cs b/APT.MS.Domain/Entities/SC/AE/T_AE_INVESTIGATION_RECORD_INVESTIGATION_USERS.cs deleted file mode 100644 index 9200ab5..0000000 --- a/APT.MS.Domain/Entities/SC/AE/T_AE_INVESTIGATION_RECORD_INVESTIGATION_USERS.cs +++ /dev/null @@ -1,49 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.AE -{ - /// - /// 勘察人员中间表 - /// - [Description("勘察人员中间表")] - public class T_AE_INVESTIGATION_RECORD_INVESTIGATION_USERS : MesEntityBase - { - /// - /// 勘察记录表ID - /// - [Description("勘察记录表ID")] - [DataFieldForeignKey("Nav_Record", "Nav_UsersInvestigation")] - public Guid RECORD_ID { get; set; } - - /// - /// 导航: 勘察记录表 - /// - [Description("导航: 勘察记录表")] - public virtual T_AE_INVESTIGATION_RECORD Nav_Record { get; set; } - - /// - /// 勘察人员ID - /// - [Description("勘察人员")] - [DataFieldForeignKey("Nav_User")] - public Guid USER_ID { get; set; } - - /// - /// 导航属性:用户 - /// - [Description("导航属性:用户")] - public virtual T_FM_USER Nav_User { get; set; } - - /// - /// 状态 - /// - [Description("状态")] - public AEInvestigationUserStatusEnum STATUS { get; set; } - } -} diff --git a/APT.MS.Domain/Entities/SC/AE/T_AE_INVESTIGATION_RECORD_NOTES_FILES.cs b/APT.MS.Domain/Entities/SC/AE/T_AE_INVESTIGATION_RECORD_NOTES_FILES.cs deleted file mode 100644 index b369f62..0000000 --- a/APT.MS.Domain/Entities/SC/AE/T_AE_INVESTIGATION_RECORD_NOTES_FILES.cs +++ /dev/null @@ -1,44 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.AE -{ - /// - /// 勘察记录表现场笔录 - /// - [Description("勘察记录表现场笔录")] - public class T_AE_INVESTIGATION_RECORD_NOTES_FILES : MesEntityBase - { - /// - /// 勘察记录表ID - /// - [Description("勘察记录表ID")] - [DataFieldForeignKey("Nav_Record", "Nav_NotesFilesNotes")] - public Guid RECORD_ID { get; set; } - - /// - /// 导航: 勘察记录表 - /// - [Description("导航: 勘察记录表")] - public virtual T_AE_INVESTIGATION_RECORD Nav_Record { get; set; } - - /// - /// 文件ID - /// - [Description("文件")] - [DataFieldForeignKey("Nav_ImgFile")] - public Guid IMG_FILE_ID { get; set; } - - /// - /// 导航属性:文件 - /// - [Description("导航属性:文件")] - public virtual T_PF_IMG_FILE Nav_ImgFile { get; set; } - } -} diff --git a/APT.MS.Domain/Entities/SC/CM/T_CM_RSP_ESTIMATE.cs b/APT.MS.Domain/Entities/SC/CM/T_CM_RSP_ESTIMATE.cs index ccfe0f8..6f35dd3 100644 --- a/APT.MS.Domain/Entities/SC/CM/T_CM_RSP_ESTIMATE.cs +++ b/APT.MS.Domain/Entities/SC/CM/T_CM_RSP_ESTIMATE.cs @@ -2,7 +2,6 @@ using APT.BaseData.Domain.Entities; using APT.BaseData.Domain.Entities.FM; using APT.BaseData.Domain.Enums.PF; using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.AE; using APT.MS.Domain.Enums; using System; using System.Collections.Generic; @@ -72,23 +71,6 @@ namespace APT.MS.Domain.Entities.CM [DataFieldLength(200)] public string EVENT_NAME { get; set; } - /// - /// 事故/事件 有就自动带别的数据 没有就手动输入 - /// - [Description("事故/事件")] - [FormFieldTable] - [FormFieldEdit] - [DataFieldForeignKey("Nav_Event")] - public Guid? EVENT_ID { get; set; } - - /// - /// 导航属性:事故/事件 - /// - [Description("导航属性:事故/事件")] - [FormFieldQuery] - [FormFieldEdit] - public virtual T_AE_ACCIDENT_EVENT_REPORT Nav_Event { get; set; } - /// /// 事故/事件时间 /// @@ -146,22 +128,6 @@ namespace APT.MS.Domain.Entities.CM [Description("导航属性: 事故/事件种类")] public virtual ICollection Nav_ListEventKind { get; set; } - /// - /// 事故类型ID - /// - [Description("事故类型")] - [FormFieldTable] - [FormFieldEdit] - [DataFieldForeignKey("Nav_AccidentType")] - public Guid? ACCIDENT_TYPE_ID { get; set; } - - /// - /// 导航属性:事故类型 - /// - [Description("事故类型")] - [FormFieldQuery] - public virtual T_AE_ACCIDENT_TYPE Nav_AccidentType { get; set; } - /// /// 事故等级 /// diff --git a/APT.MS.Domain/Entities/SC/CM/T_CM_RSP_ESTIMATE_EVENT_KIND.cs b/APT.MS.Domain/Entities/SC/CM/T_CM_RSP_ESTIMATE_EVENT_KIND.cs index 1ecf917..38b42e1 100644 --- a/APT.MS.Domain/Entities/SC/CM/T_CM_RSP_ESTIMATE_EVENT_KIND.cs +++ b/APT.MS.Domain/Entities/SC/CM/T_CM_RSP_ESTIMATE_EVENT_KIND.cs @@ -1,5 +1,4 @@ using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.AE; using System; using System.Collections.Generic; using System.ComponentModel; @@ -25,17 +24,5 @@ namespace APT.MS.Domain.Entities.CM [Description("导航属性:应急响应评估记录")] public virtual T_CM_RSP_ESTIMATE Nav_RspEstimate { get; set; } - /// - /// 事故/事件种类ID - /// - [Description("事故/事件种类")] - [DataFieldForeignKey("Nav_RspAccdentKind")] - public Guid KIND_ID { get; set; } - - /// - /// 导航属性:事故/事件种类 - /// - [Description("导航属性:事故/事件种类")] - public virtual T_AE_ACCIDENT_KIND Nav_RspAccdentKind { get; set; } } } diff --git a/APT.MS.Domain/Entities/SC/OH/T_OH_EXAM_NOTICE_OCC_HAZARD.cs b/APT.MS.Domain/Entities/SC/OH/T_OH_EXAM_NOTICE_OCC_HAZARD.cs deleted file mode 100644 index bb04350..0000000 --- a/APT.MS.Domain/Entities/SC/OH/T_OH_EXAM_NOTICE_OCC_HAZARD.cs +++ /dev/null @@ -1,46 +0,0 @@ -using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.HM; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace APT.MS.Domain.Entities.OH -{ - /// - /// 体检通知人员职业危害中间表 - /// - [Description("体检通知人员职业危害中间表")] - public class T_OH_EXAM_NOTICE_OCC_HAZARD : MesEntityBase - { - /// - /// 体检通知人员记录ID - /// - [Description("体检通知人员记录ID")] - [DataFieldForeignKey("Nav_Register", "Nav_ListOccHazard")] - public Guid REGISTER_ID { get; set; } - - - /// - /// 导航: 体检通知人员记录 - /// - [Description("导航: 体检通知人员记录")] - public T_OH_HEALTH_EXAM_NOTICE_REGISTER Nav_Register { get; set; } - - /// - /// 职业危害ID - /// - [Description("职业危害")] - [DataFieldForeignKey("Nav_Hazard")] - public Guid HAZARD_ID { get; set; } - - /// - /// 导航: 职业危害 - /// - [Description("导航: 职业危害")] - public T_HM_IDENTIFYING Nav_Hazard { get; set; } - - } -} diff --git a/APT.MS.Domain/Entities/SC/OH/T_OH_EXAM_RESULT_OCC_HAZARD.cs b/APT.MS.Domain/Entities/SC/OH/T_OH_EXAM_RESULT_OCC_HAZARD.cs deleted file mode 100644 index 8d2f890..0000000 --- a/APT.MS.Domain/Entities/SC/OH/T_OH_EXAM_RESULT_OCC_HAZARD.cs +++ /dev/null @@ -1,46 +0,0 @@ -using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.HM; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace APT.MS.Domain.Entities.OH -{ - /// - /// 体检结果职业危害中间表 - /// - [Description("体检结果职业危害中间表")] - public class T_OH_EXAM_RESULT_OCC_HAZARD : MesEntityBase - { - /// - /// 体检结果记录ID - /// - [Description("体检结果记录")] - [DataFieldForeignKey("Nav_Result")] - public Guid RESULT_ID { get; set; } - - - /// - /// 导航: 体检结果记录 - /// - [Description("导航: 体检结果记录")] - public T_OH_HEALTH_EXAM_RESULT Nav_Result { get; set; } - - /// - /// 职业危害ID - /// - [Description("职业危害")] - [DataFieldForeignKey("Nav_Hazard")] - public Guid HAZARD_ID { get; set; } - - /// - /// 导航: 职业危害 - /// - [Description("导航: 职业危害")] - public T_HM_IDENTIFYING Nav_Hazard { get; set; } - - } -} diff --git a/APT.MS.Domain/Entities/SC/OH/T_OH_HAZARD_MONITOR_JOB.cs b/APT.MS.Domain/Entities/SC/OH/T_OH_HAZARD_MONITOR_JOB.cs deleted file mode 100644 index fbe8a81..0000000 --- a/APT.MS.Domain/Entities/SC/OH/T_OH_HAZARD_MONITOR_JOB.cs +++ /dev/null @@ -1,134 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.OH -{ - /// - /// 职业危害监测 - /// - [Description("职业危害监测")] - public class T_OH_HAZARD_MONITOR_JOB : MesEntityBase - { - /// - /// 触发表单(职业危害监测表单类型) - /// - [Description("触发表单")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public OHHazardMonitorFormTypeEnum MONITOR_TYPE { get; set; } - - /// - /// 监测类型ID - /// - [Description("监测类型")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldForeignKey("Nav_Type")] - public Guid? TYPE_ID { get; set; } - - /// - /// 导航: 监测类型 - /// - [Description("导航: 监测类型")] - public virtual T_OH_HAZARD_MONITOR_TYPE Nav_Type { get; set; } - - /// - /// 监测时间 - /// - [Description("监测时间")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public DateTime? MONITOR_TIME { get; set; } - - /// - /// 监测人ID - /// - [Description("监测人")] - [DataFieldForeignKey("Nav_User")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public Guid? USER_ID { get; set; } - - /// - /// 导航: 监测人 - /// - [Description("导航: 监测人")] - public T_FM_USER Nav_User { get; set; } - - /// - /// 仪器名称 - /// - [Description("仪器名称")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(200)] - public string DEVICE_NAME { get; set; } - - /// - /// 仪器规格/型号 - /// - [Description("仪器规格/型号")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(200)] - public string DEVICE_SPEC { get; set; } - - /// - /// 监测方法 - /// - [Description("监测方法")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(300)] - public string MONITOR_METHOD { get; set; } - - /// - /// 取样人 - /// - [Description("取样人")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(50)] - public string SAMPLE_PEOPLE { get; set; } - - /// - /// 导航属性:监测明细 - /// - [Description("导航属性:监测明细")] - [FormFieldEdit] - public ICollection Nav_Detail { get; set; } - - /// - /// 导航属性:附件 - /// - [Description("导航属性:附件")] - [FormFieldEdit] - public ICollection Nav_Files { get; set; } - - /// - /// 状态 - /// - [Description("状态")] - public OHHazardMonitorJobStatusEnum STATUS { get; set; } - - /// - /// 收到记录表的人(自动触发) - /// 登记部门 登记岗位 可能有多个人 - /// 谁填单 登记谁的名字 - /// - [Description("收到记录表的人")] - public Guid? USER_ID_GET { get; set; } - } -} \ No newline at end of file diff --git a/APT.MS.Domain/Entities/SC/OH/T_OH_HAZARD_MONITOR_JOB_DETAIL.cs b/APT.MS.Domain/Entities/SC/OH/T_OH_HAZARD_MONITOR_JOB_DETAIL.cs deleted file mode 100644 index 69d230e..0000000 --- a/APT.MS.Domain/Entities/SC/OH/T_OH_HAZARD_MONITOR_JOB_DETAIL.cs +++ /dev/null @@ -1,152 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.OH -{ - /// - /// 职业危害监测明细 - /// - [Description("职业危害监测明细")] - public class T_OH_HAZARD_MONITOR_JOB_DETAIL : MesEntityBase - { - /// - /// 职业危害监测 - /// - [Description("职业危害监测")] - [DataFieldForeignKey("Nav_Job", "Nav_Detail")] - public Guid? JOB_ID { get; set; } - - /// - /// 导航: 职业危害监测 - /// - [Description("导航: 职业危害监测")] - public virtual T_OH_HAZARD_MONITOR_JOB Nav_Job { get; set; } - - /// - /// 监测规则ID - /// - [Description("监测规则")] - [DataFieldForeignKey("Nav_Rule")] - public Guid? RULE_ID { get; set; } - - /// - /// 导航: 监测规则 - /// - [Description("导航: 监测规则")] - public virtual T_OH_HAZARD_MONITOR_RULE Nav_Rule { get; set; } - - - /// - /// 采样来源(扬尘来源 噪声来源 水来源) - /// - [Description("采样来源")] - [FormFieldEdit] - [DataFieldLength(300)] - public string SAMPLE_SOURCE { get; set; } - - /// - /// 作业状态 - /// - [Description("作业状态")] - [FormFieldEdit] - public OHHazardMonitorJobStageEnum? JOB_STATUS { get; set; } - - /// - /// 个体防护情况 - /// - [Description("个体防护情况")] - [FormFieldEdit] - public OHHazardMonitorJobProtectEnum? PROTECT_STATUS { get; set; } - - /// - /// 测定结果最低(扬尘、噪声) - /// - [Description("测定结果最低")] - [FormFieldEdit] - public decimal? MONITOR_RESULT_LOW { get; set; } - - /// - /// 测定结果最高(扬尘、噪声) - /// - [Description("测定结果最高")] - [FormFieldEdit] - public decimal? MONITOR_RESULT_HIGH { get; set; } - - /// - /// 是否超限 - /// - [Description("是否超限")] - [FormFieldEdit] - public YesNoEnum? OVER_LIMIT { get; set; } - - - /// - /// 0.5m处监测值 - /// - [Description("0.5m处监测值")] - [FormFieldEdit] - public decimal? MONITOR_RESULT_05 { get; set; } - - /// - /// 1m处监测值 - /// - [Description("1m处监测值")] - [FormFieldEdit] - public decimal? MONITOR_RESULT_10 { get; set; } - - /// - /// 周围环境值 - /// - [Description("周围环境值")] - [FormFieldEdit] - public decimal? MONITOR_RESULT_AROUND { get; set; } - - - /// - /// 取样时间 - /// - [Description("取样时间")] - [FormFieldEdit] - public DateTime? SAMPLE_TIME { get; set; } - - /// - /// 化验时间 - /// - [Description("化验时间")] - [FormFieldEdit] - public DateTime? TEST_TIME { get; set; } - - /// - /// 监测数据(水质) - /// - [Description("监测数据")] - [FormFieldEdit] - public decimal? MONITOR_RESULT { get; set; } - - /// - /// 化验部门 - /// - [Description("化验部门")] - [FormFieldEdit] - public string TEST_DEPARTMENT { get; set; } - - /// - /// 化验人 - /// - [Description("化验人")] - [FormFieldEdit] - public string TESTER { get; set; } - - - /// - /// 收到记录表的人(自动触发) - /// - [Description("收到记录表的人")] - public Guid? USER_ID_GET { get; set; } - } -} \ No newline at end of file diff --git a/APT.MS.Domain/Entities/SC/OH/T_OH_HAZARD_MONITOR_JOB_FILE.cs b/APT.MS.Domain/Entities/SC/OH/T_OH_HAZARD_MONITOR_JOB_FILE.cs deleted file mode 100644 index ac82feb..0000000 --- a/APT.MS.Domain/Entities/SC/OH/T_OH_HAZARD_MONITOR_JOB_FILE.cs +++ /dev/null @@ -1,45 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.Infrastructure.Core; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace APT.MS.Domain.Entities.OH -{ - /// - /// 导航属性:监测作业附件 - /// - [Description("监测作业附件")] - public class T_OH_HAZARD_MONITOR_JOB_FILE : MesEntityBase - { - - /// - /// 监测作业ID - /// - [Description("监测作业ID")] - [DataFieldForeignKey("Nav_MonitorJob", "Nav_Files")] - public Guid RECORD_ID { get; set; } - - /// - /// 监测作业 - /// - [Description("监测作业")] - public virtual T_OH_HAZARD_MONITOR_JOB Nav_MonitorJob { get; set; } - - /// - /// 文件ID - /// - [Description("文件")] - [DataFieldForeignKey("Nav_ImgFile")] - public Guid IMG_FILE_ID { get; set; } - - /// - /// 导航属性:文件 - /// - [Description("导航属性:文件")] - public virtual T_PF_IMG_FILE Nav_ImgFile { get; set; } - } -} diff --git a/APT.MS.Domain/Entities/SC/OH/T_OH_HAZARD_MONITOR_JOB_REPORT.cs b/APT.MS.Domain/Entities/SC/OH/T_OH_HAZARD_MONITOR_JOB_REPORT.cs deleted file mode 100644 index 38efacb..0000000 --- a/APT.MS.Domain/Entities/SC/OH/T_OH_HAZARD_MONITOR_JOB_REPORT.cs +++ /dev/null @@ -1,104 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.OH -{ - /// - /// 职业危害监测报告 - /// - [Description("职业危害监测报告")] - public class T_OH_HAZARD_MONITOR_JOB_REPORT : MesEntityBase - { - /// - /// 发起部门 - /// - [Description("发起部门")] - [DataFieldForeignKey("Nav_Department")] - [FormFieldEdit] - public Guid? DEPARTMENT_ID { get; set; } - - /// - /// 导航: 发起部门 - /// - [Description("导航: 发起部门")] - public T_FM_DEPARTMENT Nav_Department { get; set; } - - /// - /// 发起人 - /// - [Description("发起人")] - [DataFieldForeignKey("Nav_User")] - public Guid? USER_ID { get; set; } - - /// - /// 导航: 发起人 - /// - [Description("导航: 发起人")] - public virtual T_FM_USER Nav_User { get; set; } - - /// - /// 年度 - /// - [Description("年度")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public int YEAR { get; set; } - - /// - /// 文件名称 - /// - [Description("文件名称")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public string NAME { get; set; } - - /// - /// 监测单位 - /// - [Description("监测单位")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public string DEPARTMENTNAME_JOB { get; set; } - - /// - /// 监测开始时间 - /// - [Description("监测开始时间")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public DateTime? BEGINTIME_MONITOR { get; set; } - - /// - /// 监测结束时间 - /// - [Description("监测结束时间")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public DateTime? ENDTIME_MONITOR { get; set; } - - /// - /// 状态 - /// - [Description("状态")] - [FormFieldTable] - [FormFieldQuery] - public PFStandardStatus STATUS { get; set; } - - /// - /// 导航属性:附件 - /// - [Description("导航属性:附件")] - [FormFieldEdit] - public ICollection Nav_Files { get; set; } - } -} \ No newline at end of file diff --git a/APT.MS.Domain/Entities/SC/OH/T_OH_HAZARD_MONITOR_JOB_REPORT_FILE.cs b/APT.MS.Domain/Entities/SC/OH/T_OH_HAZARD_MONITOR_JOB_REPORT_FILE.cs deleted file mode 100644 index 67e25b2..0000000 --- a/APT.MS.Domain/Entities/SC/OH/T_OH_HAZARD_MONITOR_JOB_REPORT_FILE.cs +++ /dev/null @@ -1,43 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Entities.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.OH -{ - /// - /// 职业危害监测报告附件 - /// - [Description("职业危害监测报告附件")] - public class T_OH_HAZARD_MONITOR_JOB_REPORT_FILE : MesEntityBase - { - /// - /// 职业危害监测报告 - /// - [Description("职业危害监测报告")] - [DataFieldForeignKey("Nav_Report", "Nav_Files")] - public Guid REPORT_ID { get; set; } - - /// - /// 职业危害监测报告 - /// - [Description("职业危害监测报告")] - public virtual T_OH_HAZARD_MONITOR_JOB_REPORT Nav_Report { get; set; } - - /// - /// 文件ID - /// - [Description("文件")] - [DataFieldForeignKey("Nav_ImgFile")] - public Guid IMG_FILE_ID { get; set; } - - /// - /// 导航属性:文件 - /// - [Description("导航属性:文件")] - public virtual T_PF_IMG_FILE Nav_ImgFile { get; set; } - } -} \ No newline at end of file diff --git a/APT.MS.Domain/Entities/SC/OH/T_OH_HAZARD_MONITOR_RESULT.cs b/APT.MS.Domain/Entities/SC/OH/T_OH_HAZARD_MONITOR_RESULT.cs deleted file mode 100644 index d938911..0000000 --- a/APT.MS.Domain/Entities/SC/OH/T_OH_HAZARD_MONITOR_RESULT.cs +++ /dev/null @@ -1,83 +0,0 @@ -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.OH -{ - /// - /// 监测结果统计与分析 - /// - [Description("监测结果统计与分析")] - public class T_OH_HAZARD_MONITOR_RESULT : MesEntityBase - { - /// - /// 监测规则ID - /// - [Description("监测规则")] - [DataFieldForeignKey("Nav_Rule")] - public Guid? RULE_ID { get; set; } - - /// - /// 导航: 监测规则 - /// - [Description("导航: 监测规则")] - [FormFieldEdit] - public virtual T_OH_HAZARD_MONITOR_RULE Nav_Rule { get; set; } - - /// - /// 统计分析ID - /// - [Description("统计分析ID")] - [DataFieldForeignKey("Nav_Sum", "Nav_ListMonitorResult")] - public Guid? SUM_ID { get; set; } - - /// - /// 导航: 统计分析 - /// - [Description("导航: 统计分析")] - public virtual T_OH_HAZARD_MONITOR_RESULT_SUM Nav_Sum { get; set; } - - /// - /// 监测数 - /// - [Description("监测数")] - [FormFieldEdit] - public int MONITOR_COUNT { get; set; } - - /// - /// 合格数 - /// - [Description("合格数")] - [FormFieldEdit] - public int OK_COUNT { get; set; } - - /// - /// 合格率 - /// - [Description("合格率")] - [FormFieldEdit] - public decimal OK_PERCENT { get; set; } - - /// - /// 趋势分析 - /// - [Description("趋势分析")] - [FormFieldEdit] - public string TREND { get; set; } - - /// - /// 填单人 - /// - [Description("填单人")] - public Guid? User_ID { get; set; } - - /// - /// 状态 未填写 = 0, 完成 = 1, - /// - [Description("状态")] - public PFStandardStatus STATUS { get; set; } - } -} \ No newline at end of file diff --git a/APT.MS.Domain/Entities/SC/OH/T_OH_HAZARD_MONITOR_RESULT_SUM.cs b/APT.MS.Domain/Entities/SC/OH/T_OH_HAZARD_MONITOR_RESULT_SUM.cs deleted file mode 100644 index 718178b..0000000 --- a/APT.MS.Domain/Entities/SC/OH/T_OH_HAZARD_MONITOR_RESULT_SUM.cs +++ /dev/null @@ -1,73 +0,0 @@ -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.OH -{ - /// - /// 监测结果统计与分析汇总 - /// - [Description("监测结果统计与分析汇总")] - public class T_OH_HAZARD_MONITOR_RESULT_SUM : MesEntityBase - { - /// - /// 分析年度 - /// - [Description("分析年度")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public int YEAR { get; set; } - - /// - /// 汇总日期 - /// - [Description("汇总日期")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public DateTime? TIME { get; set; } - - /// - /// 分析比率 - /// - [Description("分析比率")] - public decimal? RATIO { get; set; } - - /// - /// 分析比率 - /// - [Description("分析比率")] - [DataFieldIngore] - public string STR_RATIO { get; set; } - - /// - /// 状态 - /// OHHazardMonitorSumStatusEnum - /// - [Description("状态")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public PFStandardStatus STATUS { get; set; } - - /// - /// 导航: 监测结果 - /// - [Description("导航: 监测结果")] - public virtual ICollection Nav_ListMonitorResult { get; set; } - - - /// - /// 操作状态 0 各个记录人 操作 1 安环部操作 - /// OHHazardMonitorSumStatusEnum - /// - [Description("操作类型")] - [DataFieldIngore] - public int EDITTYPE { get; set; } - - } -} \ No newline at end of file diff --git a/APT.MS.Domain/Entities/SC/OH/T_OH_HAZARD_MONITOR_RULE.cs b/APT.MS.Domain/Entities/SC/OH/T_OH_HAZARD_MONITOR_RULE.cs deleted file mode 100644 index 3379c3b..0000000 --- a/APT.MS.Domain/Entities/SC/OH/T_OH_HAZARD_MONITOR_RULE.cs +++ /dev/null @@ -1,249 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.OH -{ - /// - /// 职业危害因素监测规则 - /// - [Description("职业危害因素监测规则")] - public class T_OH_HAZARD_MONITOR_RULE : MesEntityBase - { - /// - /// 监测类型ID - /// - [Description("监测类型")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldForeignKey("Nav_Type")] - public Guid? TYPE_ID { get; set; } - - /// - /// 导航: 监测类型 - /// - [Description("导航: 监测类型")] - public virtual T_OH_HAZARD_MONITOR_TYPE Nav_Type { get; set; } - - /// - /// 监测车间ID - /// - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [Description("监测车间")] - [DataFieldForeignKey("Nav_DepartmentWorkshop")] - public Guid? DEPARTMENT_ID_WORKSHOP { get; set; } - - /// - /// 导航: 监测车间 - /// - [Description("导航: 监测车间")] - public T_FM_DEPARTMENT Nav_DepartmentWorkshop { get; set; } - - /// - /// 监测地点 - /// - [Description("监测地点")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(200)] - public string LOCATION { get; set; } - - /// - /// 粉尘浓度阈值 - /// - [Description("粉尘浓度阈值")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public decimal THRESHOLD_DUST { get; set; } - - /// - /// 噪声阈值 - /// - [Description("噪声阈值")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public decimal THRESHOLD_NOISE { get; set; } - - /// - /// 放射性0.5m处监测阈值 - /// - [Description("放射性0.5m处监测阈值")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public decimal THRESHOLD_RADIATION_05 { get; set; } - - /// - /// 放射性1m处监测阈值 - /// - [Description("放射性1m处监测阈值")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public decimal THRESHOLD_RADIATION_10 { get; set; } - - /// - /// 放射性周围环境监测阈值 - /// - [Description("放射性周围环境监测阈值")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public decimal THRESHOLD_RADIATION_AROUND { get; set; } - - /// - /// 水质阈值下限 - /// - [Description("水质阈值下限")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public decimal THRESHOLD_WARTER_LOW { get; set; } - - /// - /// 水质阈值上限 - /// - [Description("水质阈值上限")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public decimal THRESHOLD_WARTER_HIGH { get; set; } - - /// - /// 监测频率 OHHazardMonitorIntervalEnum BSPLANCHECKFREQUENCYEnum - /// - [Description("监测频率")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public BSPLANCHECKFREQUENCYEnum MONITOR_INTERVAL { get; set; } - - /// - /// 记录部门 - /// - [Description("记录部门")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldForeignKey("Nav_Department")] - public Guid? DEPARTMENT_ID { get; set; } - - /// - /// 导航: 责任部门 - /// - [Description("导航: 记录部门")] - public T_FM_DEPARTMENT Nav_Department { get; set; } - - /// - /// 记录人岗位ID - /// - [Description("记录人岗位")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldForeignKey("Nav_RecordPost")] - public Guid? RECORD_POST_ID { get; set; } - - /// - /// 导航: 记录人岗位T_FM_DEPARTMENT - /// - [Description("导航: 记录人岗位")] - public T_FM_USER_POST Nav_RecordPost { get; set; } - - /// - /// 责任部门ID - /// - [Description("警示部门")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldForeignKey("Nav_DepartmentWarn")] - public Guid? DEPARTMENT_ID_WARN { get; set; } - - /// - /// 导航: 责任部门 - /// - [Description("导航: 警示部门")] - public T_FM_DEPARTMENT Nav_DepartmentWarn { get; set; } - - /// - /// 警示推送岗位ID T_FM_DEPARTMENT - /// - [Description("警示推送岗位")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldForeignKey("Nav_WarnPost")] - public Guid? WARN_POST_ID { get; set; } - - /// - /// 导航: 警示推送岗位 - /// - [Description("导航: 警示推送岗位")] - public T_FM_USER_POST Nav_WarnPost { get; set; } - - /// - /// 最后推送日期 - /// - [Description("最后推送日期")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public DateTime? LAST_NOTIFY { get; set; } - - /// - /// 状态 - /// - [Description("状态")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public PFStandardStatus STATUS { get; set; } - - /// - /// 检查频率(星期 针对每周 有效) - /// - [Description("星期")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public WEEKDATAEnum? WEEKDATA { get; set; } - - /// - /// 月份 - /// - [Description("月份")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public int MONTH { get; set; } - - /// - /// 日 - /// - [Description("日")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public int DAY { get; set; } - - /// - /// 时间 - /// - [Description("时间")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public DateTime TIME { get; set; } - } -} \ No newline at end of file diff --git a/APT.MS.Domain/Entities/SC/OH/T_OH_HAZARD_MONITOR_TYPE.cs b/APT.MS.Domain/Entities/SC/OH/T_OH_HAZARD_MONITOR_TYPE.cs deleted file mode 100644 index b68f456..0000000 --- a/APT.MS.Domain/Entities/SC/OH/T_OH_HAZARD_MONITOR_TYPE.cs +++ /dev/null @@ -1,45 +0,0 @@ -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.OH -{ - /// - /// 危害监测类型 - /// - [Description("危害监测类型")] - public class T_OH_HAZARD_MONITOR_TYPE : MesEntityBase - { - /// - /// 监测类型 - /// - [Description("监测类型")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(200)] - public string NAME { get; set; } - - /// - /// 监测类型细分 - /// - [Description("监测类型细分")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(200)] - public string SMALL_TYPE { get; set; } - - /// - /// 触发表单(职业危害监测表单类型) - /// - [Description("触发表单")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(200)] - public OHHazardMonitorFormTypeEnum MONITOR_TYPE { get; set; } - } -} \ No newline at end of file diff --git a/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EAXM_CYCLE_OCC_HAZARD_MID.cs b/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EAXM_CYCLE_OCC_HAZARD_MID.cs deleted file mode 100644 index 516f601..0000000 --- a/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EAXM_CYCLE_OCC_HAZARD_MID.cs +++ /dev/null @@ -1,48 +0,0 @@ -using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.HM; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace APT.MS.Domain.Entities.OH -{ - /// - /// 体检周期职业危害中间表 - /// - [Description("体检周期职业危害中间表")] - public class T_OH_HEALTH_EAXM_CYCLE_OCC_HAZARD_MID : MesEntityBase - { - - /// - /// 体检周期记录ID - /// - [Description("体检周期记录ID")] - [DataFieldForeignKey("Nav_Record", "Nav_ListOccHazard")] - public Guid RECORD_ID { get; set; } - - - /// - /// 导航: 体检周期记录 - /// - [Description("导航: 体检周期记录")] - public virtual T_OH_HEALTH_EXAM_CYCLE Nav_Record { get; set; } - - /// - /// 职业危害ID - /// - [Description("职业危害ID")] - [DataFieldForeignKey("Nav_Hazard")] - [FormFieldEdit] - public Guid HAZARD_ID { get; set; } - - /// - /// 导航: 职业危害 - /// - [Description("导航: 职业危害")] - public virtual T_HM_IDENTIFYING Nav_Hazard { get; set; } - - } -} diff --git a/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EAXM_CYCLE_POST_MID.cs b/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EAXM_CYCLE_POST_MID.cs deleted file mode 100644 index 979045f..0000000 --- a/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EAXM_CYCLE_POST_MID.cs +++ /dev/null @@ -1,46 +0,0 @@ -using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.SC; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace APT.MS.Domain.Entities.OH -{ - /// - /// 体检周期岗位中间表 - /// - [Description("体检周期岗位中间表")] - public class T_OH_HEALTH_EAXM_CYCLE_POST_MID : MesEntityBase - { - /// - /// 体检周期记录ID - /// - [Description("体检周期记录ID")] - [DataFieldForeignKey("Nav_Record")] - public Guid RECORD_ID { get; set; } - - /// - /// 导航: 体检周期记录 - /// - [Description("导航: 体检周期记录")] - public virtual T_OH_HEALTH_EXAM_CYCLE Nav_Record { get; set; } - - /// - /// 责任制岗位ID - /// - [Description("责任制岗位ID")] - [DataFieldForeignKey("Nav_SCPost")] - [FormFieldEdit] - public Guid SC_POST_ID { get; set; } - - /// - /// 导航: 责任制岗位 - /// - [Description("导航: 责任制岗位")] - public virtual T_SC_POST Nav_SCPost { get; set; } - - } -} diff --git a/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EAXM_PLAN_DEPARTMENT.cs b/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EAXM_PLAN_DEPARTMENT.cs deleted file mode 100644 index a5e1b94..0000000 --- a/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EAXM_PLAN_DEPARTMENT.cs +++ /dev/null @@ -1,74 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace APT.MS.Domain.Entities.OH -{ - /// - /// 体检计划上报部门中间表 - /// - [Description("体检计划上报部门中间表")] - public class T_OH_HEALTH_EAXM_PLAN_DEPARTMENT : MesEntityBase - { - /// - /// 体检计划记录ID - /// - [Description("体检计划表")] - [DataFieldForeignKey("Nav_Plan", "Nav_ListDepartment")] - public Guid PLAN_ID { get; set; } - - /// - /// 导航: 体检计划记录 - /// - [Description("导航: 体检计划表")] - public virtual T_OH_HEALTH_EXAM_PLAN Nav_Plan { get; set; } - - /// - /// 部门ID - /// - [Description("部门")] - [DataFieldForeignKey("Nav_Department")] - public Guid DEPARTMENT_ID { get; set; } - - /// - /// 导航: 部门 - /// - [Description("导航: 部门")] - public virtual T_FM_DEPARTMENT Nav_Department { get; set; } - - - /// - /// 接收人ID - /// - [Description("接收人")] - [DataFieldForeignKey("Nav_User")] - public Guid? USER_ID { get; set; } - - /// - /// 导航: 部门 - /// - [Description("导航: 接收人")] - public virtual T_FM_USER Nav_User { get; set; } - - - /// - /// 是否包含公司领导 - /// - [Description("是否包含公司领导")] - public bool ISCONTENTMASTER { get; set; } = false; - - /// - /// 状态 - /// - [Description("状态")] - public PFStandardStatus STATUS { get; set; } - - } -} diff --git a/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EXAM_BATCH.cs b/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EXAM_BATCH.cs deleted file mode 100644 index 75014e0..0000000 --- a/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EXAM_BATCH.cs +++ /dev/null @@ -1,85 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.Infrastructure.Core; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.OH -{ - /// - /// 体检批次 - /// - [Description("体检批次")] - public class T_OH_HEALTH_EXAM_BATCH : MesEntityBase - { - /// - /// 体检批次 - /// - [Description("体检批次")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(200)] - public string BATCH { get; set; } - - /// - /// 体检开始时间 - /// - [Description("体检开始时间")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public DateTime START_TIME { get; set; } - - /// - /// 体检截止时间 - /// - [Description("体检截止时间")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public DateTime END_TIME { get; set; } - - - /// - /// 体检起止日期 - /// - [Description("体检起止日期")] - [DataFieldIngore] - public string TIME { get; set; } - - /// - /// 体检地点 - /// - [Description("体检地点")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(200)] - public string LOCATION { get; set; } - - /// - /// 带队人员ID - /// - [Description("带队人员")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldForeignKey("Nav_User")] - public Guid? USER_ID { get; set; } - - /// - /// 导航: 带队人员 - /// - [Description("导航: 带队人员")] - public T_FM_USER Nav_User { get; set; } - - /// - /// 体检批次部门 - /// - [Description("体检批次部门")] - [FormFieldEdit] - public virtual ICollection Nav_ListDepartment { get; set; } - - } -} \ No newline at end of file diff --git a/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EXAM_BATCH_DEPARTMENT.cs b/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EXAM_BATCH_DEPARTMENT.cs deleted file mode 100644 index f23931c..0000000 --- a/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EXAM_BATCH_DEPARTMENT.cs +++ /dev/null @@ -1,48 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.Infrastructure.Core; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.OH -{ - /// - /// 体检批次部门 - /// - [Description("体检批次部门")] - public class T_OH_HEALTH_EXAM_BATCH_DEPARTMENT : MesEntityBase - { - /// - /// 体检批次 - /// - [Description("体检批次")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(200)] - [DataFieldForeignKey("Nav_Batch", "Nav_ListDepartment")] - public Guid BATCH_ID { get; set; } - - /// - /// 体检批次 - /// - [Description("导航: 体检批次")] - public virtual T_OH_HEALTH_EXAM_BATCH Nav_Batch { get; set; } - - /// - /// 体检人所在部门ID - /// - [Description("体检人所在部门")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldForeignKey("Nav_Department")] - public Guid DEPARTMENT_ID { get; set; } - - /// - /// 导航: 体检人所在部门 - /// - [Description("导航: 体检人所在部门")] - public T_FM_DEPARTMENT Nav_Department { get; set; } - } -} \ No newline at end of file diff --git a/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EXAM_CYCLE.cs b/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EXAM_CYCLE.cs deleted file mode 100644 index d113ff6..0000000 --- a/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EXAM_CYCLE.cs +++ /dev/null @@ -1,76 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.Infrastructure.Core; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.OH -{ - /// - /// 体检周期表 - /// - [Description("体检周期表")] - public class T_OH_HEALTH_EXAM_CYCLE : MesEntityBase - { - /// - /// 名称 - /// - [Description("名称")] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(200)] - public string NAME { get; set; } - - /// - /// 编号 - /// - [Description("编号")] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(50)] - public string CODE { get; set; } - - - /// - /// 导航: 体检周期职业危害中间表 - /// - [Description("导航: 体检周期职业危害中间表")] - [FormFieldEdit] - public virtual ICollection Nav_ListOccHazard { get; set; } - - /// - /// 职业危害 - /// - [Description("职业危害")] - [DataFieldIngore] - /// - public string OCCHAZARD { get; set; } - - /// - /// 体检项目 - /// - [Description("体检项目")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(200)] - public string HEALTH_EXAM_CONTENT { get; set; } - - /// - /// 体检周期(月) - /// - [Description("体检周期(月)")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public int HEALTH_EXAM_CYCLE { get; set; } - - - /// - /// 部门岗位 - /// - [Description("部门岗位")] - [FormFieldEdit] - public virtual ICollection Nav_ListDepartmentInfo { get; set; } - } -} \ No newline at end of file diff --git a/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EXAM_CYCLE_DEPARTMENTINFO.cs b/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EXAM_CYCLE_DEPARTMENTINFO.cs deleted file mode 100644 index ee4ad84..0000000 --- a/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EXAM_CYCLE_DEPARTMENTINFO.cs +++ /dev/null @@ -1,57 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.Infrastructure.Core; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.OH -{ - /// - /// 体检周期部门信息 - /// - [Description("体检周期部门信息")] - public class T_OH_HEALTH_EXAM_CYCLE_DEPARTMENTINFO : MesEntityBase - { - /// - /// 体检周期 - /// - [Description("体检周期")] - [FormFieldTable] - [FormFieldEdit] - [DataFieldForeignKey("Nav_ExamCycle", "Nav_ListDepartmentInfo")] - public Guid EXAM_CYCLE_ID { get; set; } - - /// - /// 体检周期 - /// - [Description("体检周期")] - [FormFieldEdit] - public virtual T_OH_HEALTH_EXAM_CYCLE Nav_ExamCycle { get; set; } - - /// - /// 部门ID - /// - [Description("部门")] - [FormFieldTable] - [FormFieldEdit] - [DataFieldForeignKey("Nav_Department")] - public Guid? DEPARTMENT_ID { get; set; } - - /// - /// 导航: 部门 - /// - [Description("部门")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public virtual T_FM_DEPARTMENT Nav_Department { get; set; } - - - /// - /// 部门岗位 - /// - [Description("部门岗位")] - [FormFieldEdit] - public virtual ICollection Nav_ListDepartmentInfoPost { get; set; } - } -} \ No newline at end of file diff --git a/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EXAM_CYCLE_DEPARTMENTINFO_POST.cs b/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EXAM_CYCLE_DEPARTMENTINFO_POST.cs deleted file mode 100644 index a1ab7ad..0000000 --- a/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EXAM_CYCLE_DEPARTMENTINFO_POST.cs +++ /dev/null @@ -1,42 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.Infrastructure.Core; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.OH -{ - /// - /// 体检周期岗位 - /// - [Description("体检周期岗位")] - public class T_OH_HEALTH_EXAM_CYCLE_DEPARTMENTINFO_POST : MesEntityBase - { - [Description("体检周期部门信息")] - [FormFieldTable] - [FormFieldEdit] - [DataFieldForeignKey("Nav_DepartmentInfo", "Nav_ListDepartmentInfoPost")] - public Guid DEPARTMENTINFO_ID { get; set; } - - /// - /// 体检周期部门信息 - /// - [Description("体检周期部门信息")] - [FormFieldEdit] - public virtual T_OH_HEALTH_EXAM_CYCLE_DEPARTMENTINFO Nav_DepartmentInfo { get; set; } - - - /// - /// 人员岗位 - /// - [FormFieldEdit] - [DataFieldForeignKey("Nav_Post")] - public Guid POST_ID { get; set; } - - /// - /// 人员岗位 - /// - [FormFieldEdit] - public virtual T_FM_USER_POST Nav_Post { get; set; } - } -} \ No newline at end of file diff --git a/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EXAM_NOTICE.cs b/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EXAM_NOTICE.cs deleted file mode 100644 index b5f53f3..0000000 --- a/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EXAM_NOTICE.cs +++ /dev/null @@ -1,122 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Enums; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.OH -{ - /// - /// 体检通知 - /// - [Description("体检通知")] - public class T_OH_HEALTH_EXAM_NOTICE : MesEntityBase - { - /// - /// 拆分前ID 体检通知 先触发给 人事专员 待选择体检批次后 再拆成多个 出去给体检带队人 - /// - [Description("拆分前ID")] - public Guid? PARENTID { get; set; } - - /// - /// 体检通知批次 - /// - [Description("体检通知编号")] - [CodeRule((int)PFCodeRuleType.体检通知)] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(50)] - public string CODE { get; set; } - - /// - /// 体检通知名称 - /// - [Description("体检通知名称")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(200)] - public string NAME { get; set; } - - /// - /// 其他安排事项 - /// - [Description("其他安排事项")] - [FormFieldEdit] - [DataFieldLength(1000)] - public string OTHER_STUFF { get; set; } - - /// - /// 导航属性:附件 - /// - [Description("导航属性:附件")] - public ICollection Nav_Files { get; set; } - - /// - /// 导航: 体检通知人员登记 - /// - [Description("导航: 体检通知人员登记")] - [FormFieldEdit] - public virtual ICollection Nav_ListNoticeRegister { get; set; } - - - /// - /// 体检批次ID - /// - [Description("体检批次")] - [FormFieldEdit] - [DataFieldForeignKey("Nav_ExamBatch")] - public Guid? EXAM_BATCH_ID { get; set; } - - /// - /// 导航: 体检批次 - /// - [Description("导航: 体检批次")] - public T_OH_HEALTH_EXAM_BATCH Nav_ExamBatch { get; set; } - - /// - /// 取同批次最后截止的时间 - /// - [Description("体检通知截止时间")] - public DateTime END_TIME { get; set; } - - /// - /// 体检结果导入情况 - /// - [Description("体检结果导入情况")] - [FormFieldTable] - public NoticeImportState NOTICEIMPORTSTATE { get; set; } - - /// - /// 审批状态 //企业管理部填写 = 0, 带队人审阅 = 1, 完成 = 2, - /// - [Description("状态")] - [FormFieldTable] - [FormFieldQuery] - public PFStandardStatus STATUS { get; set; } - - /// - /// 系统推送给人事专员 OH026 - /// 如果是 得系统自动加载 体检人员(15天内到期) - /// - [Description("是否系统推送")] - public bool ISSYSTEM { get; set; } = false; - - /// - /// 审批流 - /// - [Description("审批流")] - [DataFieldForeignKey("Nav_Approve")] - public Guid? APPROVE_ID { get; set; } - - /// - /// 审批流 - /// - [Description("会议发起审批流")] - public T_PF_APPROVE Nav_Approve { get; set; } - } -} \ No newline at end of file diff --git a/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EXAM_NOTICE_FILE.cs b/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EXAM_NOTICE_FILE.cs deleted file mode 100644 index 1436d00..0000000 --- a/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EXAM_NOTICE_FILE.cs +++ /dev/null @@ -1,45 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.Infrastructure.Core; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace APT.MS.Domain.Entities.OH -{ - /// - /// 导航属性:体检通知附件 - /// - [Description("体检通知附件")] - public class T_OH_HEALTH_EXAM_NOTICE_FILE : MesEntityBase - { - /// - /// 体检通知ID - /// - [Description("体检通知")] - [DataFieldForeignKey("Nav_Notice", "Nav_Files")] - public Guid NOTICE_ID { get; set; } - - /// - /// 体检通知 - /// - [Description("体检通知")] - public virtual T_OH_HEALTH_EXAM_NOTICE Nav_Notice { get; set; } - - /// - /// 文件ID - /// - [Description("文件")] - [DataFieldForeignKey("Nav_ImgFile")] - public Guid IMG_FILE_ID { get; set; } - - /// - /// 导航属性:文件 - /// - [Description("导航属性:文件")] - public virtual T_PF_IMG_FILE Nav_ImgFile { get; set; } - - } -} diff --git a/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EXAM_NOTICE_REGISTER.cs b/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EXAM_NOTICE_REGISTER.cs deleted file mode 100644 index 02730ba..0000000 --- a/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EXAM_NOTICE_REGISTER.cs +++ /dev/null @@ -1,150 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.OH -{ - /// - /// 体检人员安排 - /// - [Description("体检人员安排")] - public class T_OH_HEALTH_EXAM_NOTICE_REGISTER : MesEntityBase - { - /// - /// 体检通知ID - /// - [Description("体检通知")] - [DataFieldForeignKey("Nav_Notice", "Nav_ListNoticeRegister")] - public Guid? NOTICE_ID { get; set; } - - /// - /// 导航: 体检通知 - /// - [Description("导航: 体检通知")] - public T_OH_HEALTH_EXAM_NOTICE Nav_Notice { get; set; } - - /// - /// 用户ID - /// - [Description("用户")] - [DataFieldForeignKey("Nav_User")] - [FormFieldEdit] - public Guid? USER_ID { get; set; } - - /// - /// 导航: 用户 - /// - [Description("导航: 用户")] - public T_FM_USER Nav_User { get; set; } - - /// - /// 部门ID - /// - [Description("部门")] - [DataFieldForeignKey("Nav_Department")] - [FormFieldEdit] - public Guid? DEPARTMENT_ID { get; set; } - - /// - /// 导航: 部门 - /// - [Description("导航: 部门")] - public T_FM_DEPARTMENT Nav_Department { get; set; } - - /// - /// 车间ID - /// - [Description("车间")] - [DataFieldForeignKey("Nav_DepartmentWorkshop")] - [FormFieldEdit] - public Guid? DEPARTMENT_ID_WORKSHOP { get; set; } - - /// - /// 导航: 车间级部门 - /// - [Description("导航: 车间级部门")] - public T_FM_DEPARTMENT Nav_DepartmentWorkshop { get; set; } - - /// - /// 体检周期ID - /// - [Description("体检周期")] - [DataFieldForeignKey("Nav_Cycle")] - [FormFieldEdit] - public Guid? CYCLE_ID { get; set; } - - /// - /// 导航: 体检周期 - /// - [Description("导航: 体检周期")] - public T_OH_HEALTH_EXAM_CYCLE Nav_Cycle { get; set; } - - /// - /// 导航: 体检通知人员职业危害中间表 - /// - [Description("导航: 体检通知人员职业危害中间表")] - public virtual ICollection Nav_ListOccHazard { get; set; } - - /// - /// 体检批次ID - /// - [Description("体检批次")] - [DataFieldForeignKey("Nav_ExamBatch")] - [FormFieldEdit] - public Guid? EXAM_BATCH_ID { get; set; } - - /// - /// 导航: 体检批次 - /// - [Description("导航: 体检批次")] - public T_OH_HEALTH_EXAM_BATCH Nav_ExamBatch { get; set; } - - /// - /// 体检类型 - /// - [Description("体检类型")] - [FormFieldEdit] - public OHHealthExamType? TYPE { get; set; } - - /// - /// 状态 - /// - [Description("状态")] - public OHHealthExamNoticeRegisterStatus STATUS { get; set; } - - - /// - /// 体检计划部门ID - /// - [Description("体检计划部门")] - public Guid? PLAN_ID_DEP { get; set; } - - /// - /// 体检计划人员ID T_OH_HEALTH_EXAM_PLAN_REGISTER - /// - [Description("体检计划人员")] - public Guid? PLAN_REGISTER_ID { get; set; } - - /// - /// 下次体检最迟日期 根据体检周期来 - /// 人事部 选择 带队人发送通知时 存入该字段 体检跑批时 触发周期 - /// - [Description("下次体检最迟日期")] - public DateTime? NEXTDATE { get; set; } - - /// - /// 本批次体检开始日期(本次体检日期) - /// - [Description("本次体检日期")] - public DateTime? THISDATE { get; set; } - - /// - /// 上次体检批次开始日期(上次体检日期) - /// - [Description("上次体检批次开始日期")] - public DateTime? LASTDATE { get; set; } - } -} \ No newline at end of file diff --git a/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EXAM_OCC_DISEASE.cs b/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EXAM_OCC_DISEASE.cs deleted file mode 100644 index 4383224..0000000 --- a/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EXAM_OCC_DISEASE.cs +++ /dev/null @@ -1,24 +0,0 @@ -using APT.Infrastructure.Core; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.OH -{ - /// - /// 职业病名称 - /// - [Description("职业病名称")] - public class T_OH_HEALTH_EXAM_OCC_DISEASE : MesEntityBase - { - /// - /// 职业病名称 - /// - [Description("职业病名称")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(200)] - public string NAME { get; set; } - } -} \ No newline at end of file diff --git a/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EXAM_OCC_DISEASE_SEVERITY_LEVEL.cs b/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EXAM_OCC_DISEASE_SEVERITY_LEVEL.cs deleted file mode 100644 index ca226c1..0000000 --- a/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EXAM_OCC_DISEASE_SEVERITY_LEVEL.cs +++ /dev/null @@ -1,24 +0,0 @@ -using APT.Infrastructure.Core; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.OH -{ - /// - /// 职业病严重等级 - /// - [Description("职业病严重等级")] - public class T_OH_HEALTH_EXAM_OCC_DISEASE_SEVERITY_LEVEL : MesEntityBase - { - /// - /// 严重等级 - /// - [Description("严重等级")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(200)] - public string NAME { get; set; } - } -} \ No newline at end of file diff --git a/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EXAM_PLAN.cs b/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EXAM_PLAN.cs deleted file mode 100644 index 290886b..0000000 --- a/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EXAM_PLAN.cs +++ /dev/null @@ -1,99 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.OH -{ - /// - /// 体检计划表 - /// - [Description("体检计划表")] - public class T_OH_HEALTH_EXAM_PLAN : MesEntityBase - { - /// - /// 体检计划名称 - /// - [Description("体检计划名称")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(200)] - public string NAME { get; set; } - - /// - /// 年度 - /// - [Description("年度")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public int YEAR { get; set; } - - /// - /// 上报截止时间 - /// - [Description("上报截止时间")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public DateTime? DUE_TIME { get; set; } - - /// - /// 导航: 体检计划上报部门中间表 - /// - [Description("导航: 体检计划上报部门中间表")] - public virtual ICollection Nav_ListDepartment { get; set; } - - /// - /// 导航: 体检计划人员登记 - /// - [Description("导航: 体检计划人员登记")] - public virtual ICollection Nav_ListPlanRegister { get; set; } - - /// - /// 计划内容 - /// - [Description("计划内容")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public string CONTENT { get; set; } - - /// - /// 汇总状态 - /// 草稿 0 确认中(每个部门中间表有状态) 10 => (汇总状态) - /// - /// 审核中 20 已归档 30 已驳回 40 - /// - [Description("汇总状态")] - [FormFieldTable] - [FormFieldQuery] - public OHHealthExamPlanStatus STATAUSORDER { get; set; } - - /// - /// 审批状态 - /// - [Description("审批状态")] - [FormFieldTable] - [FormFieldQuery] - public PFStandardStatus STATUS { get; set; } - - - /// - /// 审批流 - /// - [Description("审批流")] - [DataFieldForeignKey("Nav_Approve")] - public Guid? APPROVE_ID { get; set; } - - /// - /// 审批流 - /// - [Description("会议发起审批流")] - public T_PF_APPROVE Nav_Approve { get; set; } - } -} \ No newline at end of file diff --git a/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EXAM_PLAN_REGISTER.cs b/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EXAM_PLAN_REGISTER.cs deleted file mode 100644 index 540b464..0000000 --- a/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EXAM_PLAN_REGISTER.cs +++ /dev/null @@ -1,140 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.SC; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.OH -{ - /// - /// 体检员工登记表 - /// - [Description("体检员工登记表")] - public class T_OH_HEALTH_EXAM_PLAN_REGISTER : MesEntityBase - { - /// - /// 体检计划ID - /// - [Description("体检计划")] - [DataFieldForeignKey("Nav_Plan", "Nav_ListPlanRegister")] - public Guid? PLAN_ID { get; set; } - - /// - /// 导航: 体检计划 - /// - [Description("导航: 体检计划")] - public virtual T_OH_HEALTH_EXAM_PLAN Nav_Plan { get; set; } - - /// - /// 体检计划ID - /// - [Description("体检计划部门")] - [DataFieldForeignKey("Nav_PlanDEP")] - public Guid? PLAN_ID_DEP { get; set; } - - /// - /// 导航: 体检计划部门 - /// - [Description("导航: 体检计划部门")] - public virtual T_OH_HEALTH_EAXM_PLAN_DEPARTMENT Nav_PlanDEP { get; set; } - /// - /// 用户ID - /// - [Description("用户ID")] - [DataFieldForeignKey("Nav_User")] - public Guid? USER_ID { get; set; } - - /// - /// 导航: 用户 - /// - [Description("导航: 用户")] - public virtual T_FM_USER Nav_User { get; set; } - - /// - /// 部门ID - /// - [Description("部门")] - [DataFieldForeignKey("Nav_Department")] - public Guid? DEPARTMENT_ID { get; set; } - - /// - /// 导航: 部门 - /// - [Description("导航: 部门")] - public virtual T_FM_DEPARTMENT Nav_Department { get; set; } - - /// - /// 车间ID - /// - [Description("车间")] - [DataFieldForeignKey("Nav_DepartmentWorkshop")] - public Guid? DEPARTMENT_ID_WORKSHOP { get; set; } - - /// - /// 导航: 车间级部门 - /// - [Description("导航: 车间级部门")] - public virtual T_FM_DEPARTMENT Nav_DepartmentWorkshop { get; set; } - - /// - /// 体检周期ID - /// - [Description("体检周期")] - [DataFieldForeignKey("Nav_ExamCycle")] - public Guid? EXAM_CYCLE_ID { get; set; } - - /// - /// 导航: 体检周期 - /// - [Description("导航: 体检周期")] - public virtual T_OH_HEALTH_EXAM_CYCLE Nav_ExamCycle { get; set; } - - /// - /// 体检类型(岗中 新入住 。。。) - /// - [Description("体检类型")] - public OHHealthExamType TYPE { get; set; } - - /// - /// 岗位ID 责任制岗位ID SC_POST_ID Nav_SCPost - /// - [Description("岗位ID")] - [DataFieldForeignKey("Nav_Post")] - public Guid? POST_ID { get; set; } - - /// - /// 导航: 岗位 责任制岗位 T_SC_POST Nav_SCPost - /// - [Description("导航: 岗位")] - public virtual T_FM_USER_POST Nav_Post { get; set; } - - - /// - /// 工龄 - /// - [Description("工龄")] - public int WORKYEAR { get; set; } - - - - /// - /// 导航: 体检周期职业危害中间表 - /// - [Description("导航: 体检周期职业危害中间表")] - [FormFieldEdit] - public virtual ICollection Nav_ListHazard { get; set; } - - /// - /// 体检项目 可 手动录入 - /// - [Description("体检项目")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(200)] - public string HEALTH_EXAM_CONTENT { get; set; } - - } -} \ No newline at end of file diff --git a/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EXAM_PLAN_REGISTER_HAZARD.cs b/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EXAM_PLAN_REGISTER_HAZARD.cs deleted file mode 100644 index d645481..0000000 --- a/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EXAM_PLAN_REGISTER_HAZARD.cs +++ /dev/null @@ -1,48 +0,0 @@ -using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.HM; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace APT.MS.Domain.Entities.OH -{ - /// - /// 体检周期职业危害中间表 - /// - [Description("体检周期职业危害中间表")] - public class T_OH_HEALTH_EXAM_PLAN_REGISTER_HAZARD : MesEntityBase - { - - /// - /// 体检员工登记表ID - /// - [Description("体检员工登记表")] - [DataFieldForeignKey("Nav_Register", "Nav_ListHazard")] - public Guid REGISTER_ID { get; set; } - - - /// - /// 导航: 体检员工登记表 - /// - [Description("导航: 体检员工登记表")] - public virtual T_OH_HEALTH_EXAM_PLAN_REGISTER Nav_Register { get; set; } - - /// - /// 职业危害ID - /// - [Description("职业危害ID")] - [DataFieldForeignKey("Nav_Hazard")] - [FormFieldEdit] - public Guid HAZARD_ID { get; set; } - - /// - /// 导航: 职业危害 - /// - [Description("导航: 职业危害")] - public virtual T_HM_IDENTIFYING Nav_Hazard { get; set; } - - } -} diff --git a/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EXAM_RESULT.cs b/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EXAM_RESULT.cs deleted file mode 100644 index d0d5d4f..0000000 --- a/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EXAM_RESULT.cs +++ /dev/null @@ -1,92 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.OH -{ - /// - /// 体检结果 - /// - [Description("体检结果")] - public class T_OH_HEALTH_EXAM_RESULT : MesEntityBase - { - /// - /// 体检人员安排ID - /// - [Description("体检人员安排")] - [DataFieldForeignKey("Nav_NoticeRegister")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public Guid? NOTICE_REGISTER_ID { get; set; } - - /// - /// 导航: 体检人员安排 - /// - [Description("导航: 体检人员安排")] - public T_OH_HEALTH_EXAM_NOTICE_REGISTER Nav_NoticeRegister { get; set; } - - /// - /// 用户ID - /// - [Description("用户")] - [DataFieldForeignKey("Nav_User")] - public Guid? USER_ID { get; set; } - - /// - /// 导航: 用户 - /// - [Description("导航: 用户")] - public T_FM_USER Nav_User { get; set; } - - /// - /// 体检结论 - /// - [Description("体检结论")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public OHHealthExamResult RESULT_ENUM { get; set; } - - /// - /// 结果描述 - /// - [Description("结果描述")] - [FormFieldEdit] - [DataFieldLength(500)] - public string DESCRIPTION { get; set; } - - /// - /// 处理意见 - /// - [Description("处理意见")] - [FormFieldEdit] - [DataFieldLength(800)] - public string SUGGESTION { get; set; } - - /// - /// 导航: 职业病信息(字表) - /// - [Description("导航: 职业病信息")] - [FormFieldEdit] - public virtual ICollection Nav_OccDiseaseList { get; set; } - - /// - /// 导航: 体检结果职业危害类型中间表 - /// - [Description("导航: 体检结果职业危害中间表")] - [FormFieldEdit] - public virtual ICollection Nav_OccHazardList { get; set; } - - /// - /// 状态 - /// - [Description("状态")] - [FormFieldTable] - [FormFieldQuery] - public OHHealthExamResultStatus STATUS { get; set; } - } -} \ No newline at end of file diff --git a/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EXAM_RESULT_IMPORT.cs b/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EXAM_RESULT_IMPORT.cs deleted file mode 100644 index 16f6292..0000000 --- a/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EXAM_RESULT_IMPORT.cs +++ /dev/null @@ -1,37 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.OH -{ - /// - /// 体检结果 批量导入 中间使用表 不存数据 - /// - [Description("体检结果导入")] - public class T_OH_HEALTH_EXAM_RESULT_IMPORT : MesEntityBase - { - /// - /// 体检批次ID - /// - [Description("体检通知")] - [DataFieldForeignKey("Nav_ExamNotice")] - public Guid? NOTICE_ID { get; set; } - - /// - /// 导航: 体检批次 - /// - [Description("导航: 体检通知")] - public T_OH_HEALTH_EXAM_NOTICE Nav_ExamNotice { get; set; } - - /// - /// 导航: 体检结果 - /// - [Description("导航: 体检结果")] - [FormFieldEdit] - [DataFieldIngore] - public virtual ICollection Nav_ListResult { get; set; } - } -} \ No newline at end of file diff --git a/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EXAM_RESULT_OCC_DISEASE.cs b/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EXAM_RESULT_OCC_DISEASE.cs deleted file mode 100644 index c1c37fe..0000000 --- a/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EXAM_RESULT_OCC_DISEASE.cs +++ /dev/null @@ -1,109 +0,0 @@ -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.OH -{ - /// - /// 职业病信息 - /// - [Description("职业病信息")] - public class T_OH_HEALTH_EXAM_RESULT_OCC_DISEASE : MesEntityBase - { - /// - /// 体检结果ID - /// - [Description("体检结果")] - [DataFieldForeignKey("Nav_Result", "Nav_OccDiseaseList")] - public Guid? RESULT_ID { get; set; } - - /// - /// 导航: 体检结果 - /// - [Description("导航: 体检结果")] - public T_OH_HEALTH_EXAM_RESULT Nav_Result { get; set; } - - /// - /// 是否启动医疗救助 - /// - [Description("是否启动医疗救助")] - public YesNoEnum MEDICAL_AID { get; set; } - - /// - /// 职业病名称ID - /// - [Description("职业病名称")] - [DataFieldForeignKey("Nav_OccDisease")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public Guid? OCC_DISEASE_ID { get; set; } - - /// - /// 导航: 职业病名称 - /// - [Description("导航: 职业病名称")] - public T_OH_HEALTH_EXAM_OCC_DISEASE Nav_OccDisease { get; set; } - - /// - /// 诊断机构 - /// - [Description("诊断机构")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(200)] - public string DIAGNOSE_AGENCY { get; set; } - - /// - /// 诊断方式 - /// - [Description("诊断方式")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(200)] - public string DIAGNOSE_METHOD { get; set; } - - /// - /// 职业病严重程度ID - /// - [Description("职业病严重程度")] - [DataFieldForeignKey("Nav_OccDiseaseSeverity")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public Guid? OCC_DISEASE_SEVERITY_ID { get; set; } - - /// - /// 导航: 职业病严重程度 - /// - [Description("导航: 职业病严重程度")] - public T_OH_HEALTH_EXAM_OCC_DISEASE_SEVERITY_LEVEL Nav_OccDiseaseSeverity { get; set; } - - /// - /// 病状描述 - /// - [Description("病状描述")] - [FormFieldEdit] - [DataFieldLength(600)] - public string DESCRIPTION { get; set; } - - /// - /// 入厂前工作史 - /// - [Description("入厂前工作史")] - [FormFieldEdit] - [DataFieldLength(1000)] - public string OCC_HISTORY { get; set; } - - /// - /// 导航属性:附件 - /// - [Description("导航属性:附件")] - public ICollection Nav_Files { get; set; } - } -} \ No newline at end of file diff --git a/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EXAM_RESULT_OCC_DISEASE_FILE.cs b/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EXAM_RESULT_OCC_DISEASE_FILE.cs deleted file mode 100644 index d57c0b8..0000000 --- a/APT.MS.Domain/Entities/SC/OH/T_OH_HEALTH_EXAM_RESULT_OCC_DISEASE_FILE.cs +++ /dev/null @@ -1,44 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.Infrastructure.Core; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace APT.MS.Domain.Entities.OH -{ - /// - /// 导航属性:职业病信息附件 - /// - [Description("职业病信息附件")] - public class T_OH_HEALTH_EXAM_RESULT_OCC_DISEASE_FILE : MesEntityBase - { - /// - /// 记录ID - /// - [Description("记录ID")] - [DataFieldForeignKey("Nav_Disease", "Nav_Files")] - public Guid DISEASE_ID { get; set; } - - /// - /// 记录 - /// - [Description("记录")] - public virtual T_OH_HEALTH_EXAM_RESULT_OCC_DISEASE Nav_Disease { get; set; } - - /// - /// 文件ID - /// - [Description("文件")] - [DataFieldForeignKey("Nav_ImgFile")] - public Guid IMG_FILE_ID { get; set; } - - /// - /// 导航属性:文件 - /// - [Description("导航属性:文件")] - public virtual T_PF_IMG_FILE Nav_ImgFile { get; set; } - } -} diff --git a/APT.MS.Domain/Entities/SC/OH/T_OH_RUNCONFIG.cs b/APT.MS.Domain/Entities/SC/OH/T_OH_RUNCONFIG.cs deleted file mode 100644 index 513f616..0000000 --- a/APT.MS.Domain/Entities/SC/OH/T_OH_RUNCONFIG.cs +++ /dev/null @@ -1,79 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.HM; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace APT.MS.Domain.Entities.OH -{ - /// - /// 职业卫生基础配置 - /// - [Description("职业卫生基础配置")] - public class T_OH_RUNCONFIG : MesEntityBase - { - /// - /// 配置类型 - /// - [Description("配置类型")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public ConfigType CONFIGTYPE { get; set; } - - /// - /// 待办日期 - /// - [Description("待办日期")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public DateTime DATE { get; set; } - - - /// - /// 待办日期 - /// - [Description("待办日期")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldIngore] - public string STRDATE { get; set; } - /// - /// 任务接收岗位 - /// - [Description("体检计划接收岗位")] - [FormFieldTable] - [FormFieldEdit] - [DataFieldForeignKey("Nav_Post")] - public Guid? POST_ID { get; set; } - - /// - /// 导航:岗位 - /// - [Description("导航:岗位")] - public virtual T_FM_USER_POST Nav_Post { get; set; } - - /// - /// 是否单人接收 - /// - [FormFieldTable] - [FormFieldEdit] - [Description("是否单人接收")] - public bool ISONLY { get; set; } = true; - - /// - /// 最后跑批日期 - /// - [Description("最后跑批日期")] - [FormFieldTable] - public DateTime LASTRUNDATE { get; set; } - - } -} diff --git a/APT.MS.Domain/Entities/SC/TI/T_TI_COST_TYPE.cs b/APT.MS.Domain/Entities/SC/TI/T_TI_COST_TYPE.cs deleted file mode 100644 index d9900b5..0000000 --- a/APT.MS.Domain/Entities/SC/TI/T_TI_COST_TYPE.cs +++ /dev/null @@ -1,34 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TI -{ - /// - /// 费用类型 - /// - [Description("费用类型")] - public class T_TI_COST_TYPE : MesEntityBase - { - /// - /// 编号 - /// - [Description("编号")] - [CodeRule((int)PFCodeRuleType.安全投入科技)] - [FormFieldTable] - [FormFieldEdit] - public string CODE { get; set; } - - /// - /// 名称 - /// - [Description("名称")] - [FormFieldTable] - [FormFieldEdit] - public string NAME { get; set; } - } -} diff --git a/APT.MS.Domain/Entities/SC/TI/T_TI_INSURANCE_CLAIM_RECORD.cs b/APT.MS.Domain/Entities/SC/TI/T_TI_INSURANCE_CLAIM_RECORD.cs deleted file mode 100644 index c74b6d3..0000000 --- a/APT.MS.Domain/Entities/SC/TI/T_TI_INSURANCE_CLAIM_RECORD.cs +++ /dev/null @@ -1,192 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.AE; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TI -{ - /// - /// 工伤保险理赔信息记录 - /// - [Description("工伤保险理赔信息记录")] - [DataRuleField("DEPARTMENT_ID")] - public class T_TI_INSURANCE_CLAIM_RECORD : MesEntityBase - { - - /// - /// 发起部门ID - /// - [Description("发起部门")] - [FormFieldTable] - [FormFieldEdit] - [DataFieldForeignKey("Nav_Department")] - public Guid? DEPARTMENT_ID { get; set; } - - /// - /// 发起部门 - /// - [Description("发起部门")] - [FormFieldQuery] - public virtual T_FM_DEPARTMENT Nav_Department { get; set; } - - /// - /// 用户 - /// - [Description("用户")] - [DataFieldForeignKey("Nav_User")] - [FormFieldTable] - [FormFieldEdit] - public Guid? USER_ID { get; set; } - - /// - /// 用户 - /// - [Description("用户")] - [FormFieldQuery] - public T_FM_USER Nav_User { get; set; } - - /// - /// 事故事件上报ID - /// - [Description("事故事件上报")] - [DataFieldForeignKey("Nav_Accident")] - [FormFieldTable] - [FormFieldEdit] - public Guid? ACCIDENT_ID { get; set; } - - /// - /// 导航: 事故事件上报 - /// - [Description("导航: 事故事件上报")] - [FormFieldQuery] - public T_AE_ACCIDENT_EVENT_REPORT Nav_Accident { get; set; } - - /// - /// 受伤时间 - /// - [Description("受伤日期")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public DateTime? INJURE_TIME { get; set; } - - /// - /// 受伤部位/疾病名称 - /// - [Description("受伤部位/疾病名称")] - [FormFieldEdit] - [DataFieldLength(200)] - public string INJURE_DETAIL { get; set; } - - /// - /// 是否住院 - /// - [Description("是否住院")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public YesNoEnum? IN_HOSPITAL { get; set; } - - /// - /// 就诊医院 - /// - [Description("就诊医院")] - [FormFieldEdit] - [DataFieldLength(200)] - public string HOSPITAL { get; set; } - - - /// - /// 员工报销金额(元) - /// - [Description("员工报销金额(元)")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public decimal? USER_CLAIM_AMOUNT { get; set; } - - /// - /// 社保报销金额(元) - /// - [Description("社保报销金额(元)")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public decimal? INSURANCE_CLAIM_AMOUNT { get; set; } - - /// - /// 工伤认定时间 - /// - [Description("工伤认定时间")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public DateTime? INJURE_AFFIRM_TIME { get; set; } - - /// - /// 工伤认定机构 - /// - [Description("工伤认定机构")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(200)] - public string INJURE_AFFIRM_AGENCY { get; set; } - - /// - /// 伤残等级 - /// - [Description("伤残等级")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public TIDisabilityLevelEnum? DISABILITY_LEVEL { get; set; } - - /// - /// 伤残认定时间 - /// - [Description("伤残认定时间")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public DateTime? DISABILITY_AFFIRM_TIME { get; set; } - - /// - /// 伤残认定机构 - /// - [Description("伤残认定机构")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(200)] - public string DISABILITY_AFFIRM_AGENCY { get; set; } - - /// - /// 备注 - /// - [Description("备注")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(1000)] - public string REMARK { get; set; } - - /// - /// 导航属性:附件 - /// - [Description("导航属性:附件")] - public ICollection Nav_Files { get; set; } - - /// - /// 状态 - /// - [Description("状态")] - [FormFieldTable] - [FormFieldQuery] - public PFStandardStatus STATUS { get; set; } - } -} diff --git a/APT.MS.Domain/Entities/SC/TI/T_TI_INSURANCE_CLAIM_RECORD_FILE.cs b/APT.MS.Domain/Entities/SC/TI/T_TI_INSURANCE_CLAIM_RECORD_FILE.cs deleted file mode 100644 index e5f1a5e..0000000 --- a/APT.MS.Domain/Entities/SC/TI/T_TI_INSURANCE_CLAIM_RECORD_FILE.cs +++ /dev/null @@ -1,43 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Entities.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TI -{ - /// - /// 导航属性:工伤保险理赔信息记录附件 - /// - [Description("工伤保险理赔信息记录附件")] - public class T_TI_INSURANCE_CLAIM_RECORD_FILE : MesEntityBase - { - /// - /// 参保记录ID - /// - [Description("参保记录ID")] - [DataFieldForeignKey("Nav_Record", "Nav_Files")] - public Guid RECORD_ID { get; set; } - - /// - /// 导航: 工伤保险理赔信息记录 - /// - [Description("导航: 工伤保险理赔信息记录")] - public T_TI_INSURANCE_CLAIM_RECORD Nav_Record { get; set; } - - /// - /// 文件ID - /// - [Description("文件ID")] - [DataFieldForeignKey("Nav_ImgFile")] - public Guid IMG_FILE_ID { get; set; } - - /// - /// 导航属性:文件 - /// - [Description("导航属性:文件")] - public virtual T_PF_IMG_FILE Nav_ImgFile { get; set; } - } -} diff --git a/APT.MS.Domain/Entities/SC/TI/T_TI_INSURANCE_RECORD.cs b/APT.MS.Domain/Entities/SC/TI/T_TI_INSURANCE_RECORD.cs deleted file mode 100644 index 0fb5fdb..0000000 --- a/APT.MS.Domain/Entities/SC/TI/T_TI_INSURANCE_RECORD.cs +++ /dev/null @@ -1,47 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TI -{ - /// - /// 参保记录表 - /// - [Description("参保记录")] - public class T_TI_INSURANCE_RECORD : MesEntityBase - { - /// - /// 参保类型 - /// - [Description("参保类型")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public TIInsuranceTypeEnum TYPE { get; set; } - - /// - /// 导航属性:参保人员 - /// - [Description("导航属性:参保人员")] - public ICollection Nav_UserList { get; set; } - - /// - /// 导航属性:附件 - /// - [Description("导航属性:附件")] - public ICollection Nav_Files { get; set; } - - /// - /// 状态 - /// - [Description("状态")] - [FormFieldTable] - [FormFieldQuery] - public PFStandardStatus STATUS { get; set; } - - } -} diff --git a/APT.MS.Domain/Entities/SC/TI/T_TI_INSURANCE_RECORD_FILE.cs b/APT.MS.Domain/Entities/SC/TI/T_TI_INSURANCE_RECORD_FILE.cs deleted file mode 100644 index 61c3e89..0000000 --- a/APT.MS.Domain/Entities/SC/TI/T_TI_INSURANCE_RECORD_FILE.cs +++ /dev/null @@ -1,43 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Entities.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TI -{ - /// - /// 导航属性:参保记录表附件 - /// - [Description("参保记录表附件")] - public class T_TI_INSURANCE_RECORD_FILE : MesEntityBase - { - /// - /// 参保记录ID - /// - [Description("参保记录ID")] - [DataFieldForeignKey("Nav_Record", "Nav_Files")] - public Guid RECORD_ID { get; set; } - - /// - /// 导航: 参保记录 - /// - [Description("导航: 参保记录")] - public T_TI_INSURANCE_RECORD Nav_Record { get; set; } - - /// - /// 文件ID - /// - [Description("文件ID")] - [DataFieldForeignKey("Nav_ImgFile")] - public Guid IMG_FILE_ID { get; set; } - - /// - /// 导航属性:文件 - /// - [Description("导航属性:文件")] - public virtual T_PF_IMG_FILE Nav_ImgFile { get; set; } - } -} diff --git a/APT.MS.Domain/Entities/SC/TI/T_TI_INSURANCE_USER_RECORD.cs b/APT.MS.Domain/Entities/SC/TI/T_TI_INSURANCE_USER_RECORD.cs deleted file mode 100644 index bb8d0fb..0000000 --- a/APT.MS.Domain/Entities/SC/TI/T_TI_INSURANCE_USER_RECORD.cs +++ /dev/null @@ -1,120 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TI -{ - /// - /// 参保人员表 - /// - [Description("参保人员表")] - public class T_TI_INSURANCE_USER_RECORD : MesEntityBase - { - /// - /// 参保类型ID - /// - [Description("参保类型ID")] - [DataFieldForeignKey("Nav_Record", "Nav_UserList")] - public Guid? RECORD_ID { get; set; } - - /// - /// 导航: 用户 - /// - [Description("导航: 参保类型")] - public T_TI_INSURANCE_RECORD Nav_Record { get; set; } - - /// - /// 参保类型 - /// - [Description("参保类型")] - [FormFieldEdit] - [FormFieldTable] - [FormFieldQuery] - public TIInsuranceTypeEnum? TYPE { get; set; } - - /// - /// 部门名称 - /// - [Description("部门名称")] - [FormFieldEdit] - [FormFieldTable] - [FormFieldQuery] - public string DEPARTMENTNAME { get; set; } - - /// - /// 岗位名称 - /// - [Description("岗位名称")] - [FormFieldEdit] - [FormFieldTable] - [FormFieldQuery] - public string USERPOSTNAME { get; set; } - - /// - /// 用户ID - /// - [Description("用户")] - [DataFieldForeignKey("Nav_User")] - [FormFieldEdit] - [FormFieldTable] - [FormFieldQuery] - public Guid? USER_ID { get; set; } - - /// - /// 导航: 用户 - /// - [Description("导航: 用户")] - public T_FM_USER Nav_User { get; set; } - - /// - /// 参保时间 - /// - [Description("参保时间")] - [FormFieldEdit] - [FormFieldTable] - [FormFieldQuery] - public DateTime? INSURE_TIME { get; set; } - - /// - /// 参保状态 - /// - [Description("参保状态")] - [FormFieldEdit] - [FormFieldTable] - [FormFieldQuery] - public TIInsuranceStatusEnum? INSURE_STATUS { get; set; } - - /// - /// 停缴时间 - /// - [Description("停缴时间")] - [FormFieldEdit] - [FormFieldTable] - [FormFieldQuery] - public DateTime? STOP_TIME { get; set; } - - /// - /// 参保期限(月) - /// - [Description("参保期限(月)")] - [FormFieldEdit] - [FormFieldTable] - [FormFieldQuery] - public int? INSURE_DURATION { get; set; } - - /// - /// 计算参保期限的年月 yyyy-MM-01 00:00:00 - /// - [Description("计算参保时间的年月")] - public DateTime? OPERATEYEARMON { get; set; } - /// - /// 序号 - /// - [Description("序号")] - [FormFieldEdit] - public int ROW_NO { get; set; } - } -} diff --git a/APT.MS.Domain/Entities/SC/TI/T_TI_PLAN.cs b/APT.MS.Domain/Entities/SC/TI/T_TI_PLAN.cs deleted file mode 100644 index 4849a75..0000000 --- a/APT.MS.Domain/Entities/SC/TI/T_TI_PLAN.cs +++ /dev/null @@ -1,98 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TI -{ - /// - /// 安全科技计划 - /// - [Description("安全科技计划")] - [DataRuleField("DEPARTMENT_ID")] - public partial class T_TI_PLAN : MesEntityBase - { - - /// 发起时间 - /// - [Description("发起时间")] - public DateTime? BEGINTIME { get; set; } - - /// - /// 发起部门ID - /// - [Description("发起部门")] - [FormFieldTable] - [FormFieldEdit] - [DataFieldForeignKey("Nav_Department")] - public Guid? DEPARTMENT_ID { get; set; } - - /// - /// 导航:发起部门 - /// - [Description("导航:发起部门")] - [FormFieldQuery] - public virtual T_FM_DEPARTMENT Nav_Department { get; set; } - - /// - /// 发起人ID - /// - [Description("发起人")] - [FormFieldTable] - [FormFieldEdit] - [DataFieldForeignKey("Nav_User")] - public Guid? USER_ID { get; set; } - - /// - /// 导航:发起人 - /// - [Description("导航:发起人")] - [FormFieldQuery] - public virtual T_FM_USER Nav_User { get; set; } - - - /// - /// 计划年度 - /// - [Description("计划年度")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public int YEAR { get; set; } - - - /// - /// 状态 - /// - [Description("状态")] - public PFStandardStatus STATUS { get; set; } - - /// - /// 导航:项目来源 - /// - [Description("项目来源")] - public virtual ICollection Nav_Sources { get; set; } - - /// - /// 导航:设置范围 - /// - [Description("设置范围")] - public virtual ICollection Nav_Ranges { get; set; } - - /// - /// 导航:附件 - /// - [Description("附件")] - public virtual ICollection Nav_Files { get; set; } - - /// - /// 立项申请/任务书上报 - /// - [Description("立项申请/任务书上报")] - [FormFieldEdit] - public virtual ICollection Nav_ListProject { get; set; } - } -} diff --git a/APT.MS.Domain/Entities/SC/TI/T_TI_PLAN_FILE.cs b/APT.MS.Domain/Entities/SC/TI/T_TI_PLAN_FILE.cs deleted file mode 100644 index bc5ae65..0000000 --- a/APT.MS.Domain/Entities/SC/TI/T_TI_PLAN_FILE.cs +++ /dev/null @@ -1,44 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Entities.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TI -{ - /// - /// 安全科技计划附件 - /// - [Description("安全科技计划附件")] - public partial class T_TI_PLAN_FILE : MesEntityBase - { - /// - /// 计划ID - /// - [Description("计划")] - [DataFieldForeignKey("Nav_Plan", "Nav_Files")] - public Guid PLAN_ID { get; set; } - - /// - /// 导航:计划 - /// - [Description("导航:计划")] - public virtual T_TI_PLAN Nav_Plan { get; set; } - - /// - /// 文件ID - /// - [Description("文件")] - [DataFieldForeignKey("Nav_ImgFile")] - public Guid IMG_FILE_ID { get; set; } - - /// - /// 导航属性:文件 - /// - [Description("导航属性:文件")] - public virtual T_PF_IMG_FILE Nav_ImgFile { get; set; } - - } -} diff --git a/APT.MS.Domain/Entities/SC/TI/T_TI_PLAN_RANGE.cs b/APT.MS.Domain/Entities/SC/TI/T_TI_PLAN_RANGE.cs deleted file mode 100644 index 31bbf0d..0000000 --- a/APT.MS.Domain/Entities/SC/TI/T_TI_PLAN_RANGE.cs +++ /dev/null @@ -1,43 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TI -{ - /// - /// 安全科技计划范围 - /// - [Description("安全科技计划范围")] - public partial class T_TI_PLAN_RANGE : MesEntityBase - { - /// - /// 计划ID - /// - [Description("计划")] - [DataFieldForeignKey("Nav_Plan", "Nav_Ranges")] - public Guid PLAN_ID { get; set; } - - /// - /// 导航:计划 - /// - [Description("导航:计划")] - public virtual T_TI_PLAN Nav_Plan { get; set; } - - /// - /// 范围ID - /// - [Description("范围")] - [DataFieldForeignKey("Nav_Range")] - public Guid RANGE_ID { get; set; } - - /// - /// 导航属性:范围 - /// - [Description("导航属性:范围")] - public virtual T_TI_PLAN_RANGE_TYPE Nav_Range { get; set; } - - } -} diff --git a/APT.MS.Domain/Entities/SC/TI/T_TI_PLAN_RANGE_TYPE.cs b/APT.MS.Domain/Entities/SC/TI/T_TI_PLAN_RANGE_TYPE.cs deleted file mode 100644 index 56580b9..0000000 --- a/APT.MS.Domain/Entities/SC/TI/T_TI_PLAN_RANGE_TYPE.cs +++ /dev/null @@ -1,35 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TI -{ - /// - /// 所属范围 - /// - [Description("所属范围")] - public class T_TI_PLAN_RANGE_TYPE : MesEntityBase - { - /// - /// 编号 - /// - [Description("编号")] - [CodeRule((int)PFCodeRuleType.安全投入科技)] - [FormFieldTable] - [FormFieldEdit] - public string CODE { get; set; } - - /// - /// 名称 - /// - [Description("名称")] - [FormFieldTable] - [FormFieldEdit] - public string NAME { get; set; } - - } -} diff --git a/APT.MS.Domain/Entities/SC/TI/T_TI_PLAN_SOURCE.cs b/APT.MS.Domain/Entities/SC/TI/T_TI_PLAN_SOURCE.cs deleted file mode 100644 index 085d016..0000000 --- a/APT.MS.Domain/Entities/SC/TI/T_TI_PLAN_SOURCE.cs +++ /dev/null @@ -1,43 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TI -{ - /// - /// 安全科技计划来源 - /// - [Description("安全科技计划来源")] - public partial class T_TI_PLAN_SOURCE : MesEntityBase - { - /// - /// 计划ID - /// - [Description("计划")] - [DataFieldForeignKey("Nav_Plan", "Nav_Sources")] - public Guid PLAN_ID { get; set; } - - /// - /// 导航:计划 - /// - [Description("导航:计划")] - public virtual T_TI_PLAN Nav_Plan { get; set; } - - /// - /// 来源ID - /// - [Description("来源")] - [DataFieldForeignKey("Nav_Source")] - public Guid SOURCE_ID { get; set; } - - /// - /// 导航属性:来源 - /// - [Description("导航属性:来源")] - public virtual T_TI_PLAN_SOURCE_TYPE Nav_Source { get; set; } - - } -} diff --git a/APT.MS.Domain/Entities/SC/TI/T_TI_PLAN_SOURCE_TYPE.cs b/APT.MS.Domain/Entities/SC/TI/T_TI_PLAN_SOURCE_TYPE.cs deleted file mode 100644 index e4c5c65..0000000 --- a/APT.MS.Domain/Entities/SC/TI/T_TI_PLAN_SOURCE_TYPE.cs +++ /dev/null @@ -1,35 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TI -{ - /// - /// 项目来源 - /// - [Description("项目来源")] - public class T_TI_PLAN_SOURCE_TYPE : MesEntityBase - { - /// - /// 事项类别编号 - /// - [Description("编号")] - [CodeRule((int)PFCodeRuleType.安全投入科技)] - [FormFieldTable] - [FormFieldEdit] - public string CODE { get; set; } - - /// - /// 事项类别名称 - /// - [Description("名称")] - [FormFieldTable] - [FormFieldEdit] - public string NAME { get; set; } - - } -} diff --git a/APT.MS.Domain/Entities/SC/TI/T_TI_PROJECT.cs b/APT.MS.Domain/Entities/SC/TI/T_TI_PROJECT.cs deleted file mode 100644 index 2650350..0000000 --- a/APT.MS.Domain/Entities/SC/TI/T_TI_PROJECT.cs +++ /dev/null @@ -1,183 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TI -{ - /// - /// 立项申请/任务书上报 - /// - [Description("立项申请/任务书上报")] - [DataRuleField("DEPARTMENT_ID")] - public partial class T_TI_PROJECT : MesEntityBase - { - /// - /// 安全科技计划 - /// - [DataFieldForeignKey("Nav_Plan", "Nav_ListProject")] - public Guid? PLAN_ID { get; set; } - - /// - /// 安全科技计划 - /// - public virtual T_TI_PLAN Nav_Plan { get; set; } - - /// - /// 发起时间 - /// - [Description("发起时间")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public DateTime? BEGINTIME { get; set; } - - /// - /// 发起部门ID - /// - [Description("发起部门")] - [FormFieldTable] - [FormFieldEdit] - [DataFieldForeignKey("Nav_Department")] - public Guid? DEPARTMENT_ID { get; set; } - - /// - /// 导航:发起部门 - /// - [Description("导航:发起部门")] - [FormFieldQuery] - public virtual T_FM_DEPARTMENT Nav_Department { get; set; } - - /// - /// 发起人ID - /// - [Description("发起人")] - [FormFieldTable] - [FormFieldEdit] - [DataFieldForeignKey("Nav_User")] - public Guid? USER_ID { get; set; } - - /// - /// 导航:发起人 - /// - [Description("导航:发起人员")] - [FormFieldQuery] - public virtual T_FM_USER Nav_User { get; set; } - - - /// - /// 计划年度 - /// - [Description("计划年度")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public int? YEAR { get; set; } - - - /// - /// 导航:项目来源 - /// - [Description("项目来源")] - public virtual ICollection Nav_Sources { get; set; } - - /// - /// 导航:所属范围 - /// - [Description("所属范围")] - public virtual ICollection Nav_Ranges { get; set; } - - /// - /// 项目编号 - /// - [Description("项目编号")] - [CodeRule((int)PFCodeRuleType.安全投入科技)] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(50)] - public string CODE { get; set; } - - /// - /// 项目名称 - /// - [Description("项目名称")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(200)] - public string NAME { get; set; } - - - /// - /// 申报经费(万元) - /// - [Description("申报经费(万元)")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public decimal? MONEY { get; set; } - - /// - /// 是否涉外 - /// - [Description("是否涉外")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public bool? IS_FOREIGN { get; set; } - - /// - /// 项目负责人ID - /// - [Description("项目负责人")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldForeignKey("Nav_Manger")] - public Guid? MANAGER_ID { get; set; } - - /// - /// 导航:项目负责人 - /// - [Description("导航:项目负责人")] - public virtual T_FM_USER Nav_Manger { get; set; } - - /// - /// 导航:立项附件 - /// - [Description("立项附件")] - public virtual ICollection Nav_Files { get; set; } - - /// - /// 导航:审批附件 - /// - [Description("审批附件")] - public virtual ICollection Nav_WFFiles { get; set; } - - /// - /// 状态 - /// - [Description("状态")] - [FormFieldTable] - [FormFieldQuery] - public PFStandardStatus STATUS { get; set; } - - /// - /// 是否结题验收 - /// - [Description("是否结题验收")] - public bool ISCHECK { get; set; } - - /// - /// 是否项目经费管理记录 - /// - [Description("是否项目经费管理记录")] - public bool ISMONEY { get; set; } - - } -} diff --git a/APT.MS.Domain/Entities/SC/TI/T_TI_PROJECT_CHECK.cs b/APT.MS.Domain/Entities/SC/TI/T_TI_PROJECT_CHECK.cs deleted file mode 100644 index 94ab662..0000000 --- a/APT.MS.Domain/Entities/SC/TI/T_TI_PROJECT_CHECK.cs +++ /dev/null @@ -1,113 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TI -{ - /// - /// 项目验收 - /// - [Description("项目结题验收")] - [DataRuleField("DEPARTMENT_ID")] - public partial class T_TI_PROJECT_CHECK : MesEntityBase - { - - /// 发起时间 - /// - [Description("发起时间")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public DateTime? BEGINTIME { get; set; } - - /// - /// 发起部门ID - /// - [Description("发起部门")] - [FormFieldTable] - [FormFieldEdit] - [DataFieldForeignKey("Nav_Department")] - public Guid? DEPARTMENT_ID { get; set; } - - /// - /// 导航:发起部门 - /// - [Description("发起部门")] - [FormFieldQuery] - public virtual T_FM_DEPARTMENT Nav_Department { get; set; } - - /// - /// 发起人ID - /// - [Description("发起人")] - [FormFieldTable] - [FormFieldEdit] - [DataFieldForeignKey("Nav_User")] - public Guid? USER_ID { get; set; } - - /// - /// 导航:发起人 - /// - [Description("发起人员")] - [FormFieldQuery] - public virtual T_FM_USER Nav_User { get; set; } - - /// - /// 计划ID - /// - [Description("项目")] - [FormFieldTable] - [FormFieldEdit] - [DataFieldForeignKey("Nav_Project")] - public Guid PROJECT_ID { get; set; } - - /// - /// 导航:计划 - /// - [Description("导航:项目")] - [FormFieldQuery] - public virtual T_TI_PROJECT Nav_Project { get; set; } - - /// - /// 实际使用经费(万元) - /// - [Description("实际使用经费(万元)")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public decimal? MONEY { get; set; } - - /// - /// 导航:项目成果附件 - /// - [Description("导航:项目成果附件")] - public virtual ICollection Nav_Files { get; set; } - - /// - /// 验收结果 - /// - [Description("验收结果")] - [FormFieldTable] - [FormFieldQuery] - [FormFieldEdit] - public TIProjectResult? RESULT { get; set; } - - /// - /// 导航:审批附件 - /// - [Description("导航:审批附件")] - public virtual ICollection Nav_WFFiles { get; set; } - - /// - /// 状态 - /// - [Description("状态")] - [FormFieldTable] - [FormFieldQuery] - public PFStandardStatus STATUS { get; set; } - } -} diff --git a/APT.MS.Domain/Entities/SC/TI/T_TI_PROJECT_CHECK_FILE.cs b/APT.MS.Domain/Entities/SC/TI/T_TI_PROJECT_CHECK_FILE.cs deleted file mode 100644 index 4dbc241..0000000 --- a/APT.MS.Domain/Entities/SC/TI/T_TI_PROJECT_CHECK_FILE.cs +++ /dev/null @@ -1,43 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Entities.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TI -{ - /// - /// 项目附件 - /// - [Description("项目附件")] - public partial class T_TI_PROJECT_CHECK_FILE : MesEntityBase - { - /// - /// 项目验收ID - /// - [Description("项目验收ID")] - [DataFieldForeignKey("Nav_ProjectCheck", "Nav_Files")] - public Guid PROJECT_CHECK_ID { get; set; } - - /// - /// 导航:项目验收 - /// - [Description("导航:项目验收")] - public virtual T_TI_PROJECT_CHECK Nav_ProjectCheck { get; set; } - - /// - /// 文件ID - /// - [Description("文件ID")] - [DataFieldForeignKey("Nav_ImgFile")] - public Guid IMG_FILE_ID { get; set; } - - /// - /// 导航属性:文件 - /// - [Description("导航属性:文件")] - public virtual T_PF_IMG_FILE Nav_ImgFile { get; set; } - } -} diff --git a/APT.MS.Domain/Entities/SC/TI/T_TI_PROJECT_CHECK_WFFILE.cs b/APT.MS.Domain/Entities/SC/TI/T_TI_PROJECT_CHECK_WFFILE.cs deleted file mode 100644 index 03b6bbc..0000000 --- a/APT.MS.Domain/Entities/SC/TI/T_TI_PROJECT_CHECK_WFFILE.cs +++ /dev/null @@ -1,44 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Entities.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TI -{ - /// - /// 项目附件 - /// - [Description("项目附件")] - public partial class T_TI_PROJECT_CHECK_WFFILE : MesEntityBase - { - /// - /// 计划ID - /// - [Description("项目ID")] - [DataFieldForeignKey("Nav_ProjectCheck", "Nav_WFFiles")] - public Guid PROJECT_CHECK_ID { get; set; } - - /// - /// 导航:计划 - /// - [Description("导航:项目")] - public virtual T_TI_PROJECT_CHECK Nav_ProjectCheck { get; set; } - - /// - /// 文件ID - /// - [Description("文件ID")] - [DataFieldForeignKey("Nav_ImgFile")] - public Guid IMG_FILE_ID { get; set; } - - /// - /// 导航属性:文件 - /// - [Description("导航属性:文件")] - public virtual T_PF_IMG_FILE Nav_ImgFile { get; set; } - - } -} diff --git a/APT.MS.Domain/Entities/SC/TI/T_TI_PROJECT_FILE.cs b/APT.MS.Domain/Entities/SC/TI/T_TI_PROJECT_FILE.cs deleted file mode 100644 index 66465b2..0000000 --- a/APT.MS.Domain/Entities/SC/TI/T_TI_PROJECT_FILE.cs +++ /dev/null @@ -1,44 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Entities.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TI -{ - /// - /// 项目附件 - /// - [Description("项目附件")] - public partial class T_TI_PROJECT_FILE : MesEntityBase - { - /// - /// 计划ID - /// - [Description("项目ID")] - [DataFieldForeignKey("Nav_Project", "Nav_Files")] - public Guid PROJECT_ID { get; set; } - - /// - /// 导航:计划 - /// - [Description("导航:项目")] - public virtual T_TI_PROJECT Nav_Project { get; set; } - - /// - /// 文件ID - /// - [Description("文件ID")] - [DataFieldForeignKey("Nav_ImgFile")] - public Guid IMG_FILE_ID { get; set; } - - /// - /// 导航属性:文件 - /// - [Description("导航属性:文件")] - public virtual T_PF_IMG_FILE Nav_ImgFile { get; set; } - - } -} diff --git a/APT.MS.Domain/Entities/SC/TI/T_TI_PROJECT_MONEY.cs b/APT.MS.Domain/Entities/SC/TI/T_TI_PROJECT_MONEY.cs deleted file mode 100644 index 1b10dc0..0000000 --- a/APT.MS.Domain/Entities/SC/TI/T_TI_PROJECT_MONEY.cs +++ /dev/null @@ -1,90 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TI -{ - /// - /// 项目经费管理 - /// - [Description("项目经费管理")] - [DataRuleField("DEPARTMENT_ID")] - public partial class T_TI_PROJECT_MONEY : MesEntityBase - { - - /// - /// 发起时间 - /// - [Description("发起时间")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public DateTime? BEGINTIME { get; set; } - - /// - /// 发起部门ID - /// - [Description("发起部门")] - [FormFieldTable] - [FormFieldEdit] - [DataFieldForeignKey("Nav_Department")] - public Guid? DEPARTMENT_ID { get; set; } - - /// - /// 导航:发起部门 - /// - [Description("导航:发起部门")] - [FormFieldQuery] - public virtual T_FM_DEPARTMENT Nav_Department { get; set; } - - /// - /// 发起人ID - /// - [Description("发起人")] - [FormFieldTable] - [FormFieldEdit] - [DataFieldForeignKey("Nav_User")] - public Guid? USER_ID { get; set; } - - /// - /// 导航:发起人 - /// - [Description("导航:发起人员")] - [FormFieldQuery] - public virtual T_FM_USER Nav_User { get; set; } - - /// - /// 项目ID - /// - [Description("项目ID")] - [FormFieldTable] - [FormFieldEdit] - [DataFieldForeignKey("Nav_Project")] - public Guid PROJECT_ID { get; set; } - - /// - /// 项目 - /// - [Description("项目")] - [FormFieldQuery] - public T_TI_PROJECT Nav_Project { get; set; } - - /// - /// 项目经费子项 - /// - [Description("项目经费子项")] - public virtual ICollection Nav_Details { get; set; } - - /// - /// 状态 - /// - [Description("状态")] - [FormFieldTable] - [FormFieldQuery] - public PFStandardStatus STATUS { get; set; } - } -} diff --git a/APT.MS.Domain/Entities/SC/TI/T_TI_PROJECT_MONEY_DETAIL.cs b/APT.MS.Domain/Entities/SC/TI/T_TI_PROJECT_MONEY_DETAIL.cs deleted file mode 100644 index 51eb4ed..0000000 --- a/APT.MS.Domain/Entities/SC/TI/T_TI_PROJECT_MONEY_DETAIL.cs +++ /dev/null @@ -1,73 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TI -{ - /// - /// 项目经费子项 - /// - [Description("项目经费子项")] - public partial class T_TI_PROJECT_MONEY_DETAIL : MesEntityBase - { - /// - /// 计划ID - /// - [Description("项目ID")] - [DataFieldForeignKey("Nav_Money", "Nav_Details")] - public Guid MONEY_ID { get; set; } - - /// - /// 导航:计划 - /// - [Description("导航:项目")] - public virtual T_TI_PROJECT_MONEY Nav_Money { get; set; } - - - /// - /// 科目名称 - /// - [Description("科目名称")] - [FormFieldEdit] - [DataFieldLength(150)] - public string NAME { get; set; } - - /// - /// 专项经费(万元) - /// - [Description("专项经费(万元)")] - [FormFieldEdit] - public decimal? TOTAL { get; set; } - - /// - /// 支出经费(万元) - /// - [Description("支出经费(万元)")] - [FormFieldEdit] - public decimal? USE { get; set; } - - /// - /// 剩余经费(万元) - /// - [Description("剩余经费(万元)")] - [FormFieldEdit] - public decimal? LEFT { get; set; } - - /// - /// 导航:附件 - /// - [Description("导航:附件")] - public virtual ICollection Nav_Files { get; set; } - - /// - /// 序号 - /// - [Description("序号")] - [FormFieldEdit] - public int ROW_NO { get; set; } - - } -} diff --git a/APT.MS.Domain/Entities/SC/TI/T_TI_PROJECT_MONEY_DETAIL_FILE.cs b/APT.MS.Domain/Entities/SC/TI/T_TI_PROJECT_MONEY_DETAIL_FILE.cs deleted file mode 100644 index 4348eca..0000000 --- a/APT.MS.Domain/Entities/SC/TI/T_TI_PROJECT_MONEY_DETAIL_FILE.cs +++ /dev/null @@ -1,44 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Entities.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TI -{ - /// - /// 项目附件 - /// - [Description("项目附件")] - public partial class T_TI_PROJECT_MONEY_DETAIL_FILE : MesEntityBase - { - /// - /// 子项ID - /// - [Description("子项ID")] - [DataFieldForeignKey("Nav_Detail", "Nav_Files")] - public Guid DETAIL_ID { get; set; } - - /// - /// 导航:计划 - /// - [Description("导航:项目")] - public virtual T_TI_PROJECT_MONEY_DETAIL Nav_Detail { get; set; } - - /// - /// 文件ID - /// - [Description("文件ID")] - [DataFieldForeignKey("Nav_ImgFile")] - public Guid IMG_FILE_ID { get; set; } - - /// - /// 导航属性:文件 - /// - [Description("导航属性:文件")] - public virtual T_PF_IMG_FILE Nav_ImgFile { get; set; } - - } -} diff --git a/APT.MS.Domain/Entities/SC/TI/T_TI_PROJECT_RANGE.cs b/APT.MS.Domain/Entities/SC/TI/T_TI_PROJECT_RANGE.cs deleted file mode 100644 index 1ca8994..0000000 --- a/APT.MS.Domain/Entities/SC/TI/T_TI_PROJECT_RANGE.cs +++ /dev/null @@ -1,43 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TI -{ - /// - /// 项目范围 - /// - [Description("项目范围")] - public partial class T_TI_PROJECT_RANGE : MesEntityBase - { - /// - /// 计划ID - /// - [Description("项目ID")] - [DataFieldForeignKey("Nav_Project", "Nav_Ranges")] - public Guid PROJECT_ID { get; set; } - - /// - /// 导航:计划 - /// - [Description("导航:项目")] - public virtual T_TI_PROJECT Nav_Project { get; set; } - - /// - /// 来源ID - /// - [Description("所属范围")] - [DataFieldForeignKey("Nav_Range")] - public Guid RANGE_ID { get; set; } - - /// - /// 导航属性:所属范围 - /// - [Description("导航属性:所属范围")] - public virtual T_TI_PLAN_RANGE_TYPE Nav_Range { get; set; } - - } -} diff --git a/APT.MS.Domain/Entities/SC/TI/T_TI_PROJECT_SOURCE.cs b/APT.MS.Domain/Entities/SC/TI/T_TI_PROJECT_SOURCE.cs deleted file mode 100644 index de3b6cd..0000000 --- a/APT.MS.Domain/Entities/SC/TI/T_TI_PROJECT_SOURCE.cs +++ /dev/null @@ -1,43 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TI -{ - /// - /// 项目来源 - /// - [Description("项目来源")] - public partial class T_TI_PROJECT_SOURCE : MesEntityBase - { - /// - /// 计划ID - /// - [Description("项目ID")] - [DataFieldForeignKey("Nav_Project", "Nav_Sources")] - public Guid PROJECT_ID { get; set; } - - /// - /// 导航:计划 - /// - [Description("导航:项目")] - public virtual T_TI_PROJECT Nav_Project { get; set; } - - /// - /// 来源ID - /// - [Description("项目来源")] - [DataFieldForeignKey("Nav_Source")] - public Guid SOURCE_ID { get; set; } - - /// - /// 导航属性:项目来源 - /// - [Description("导航属性:项目来源")] - public virtual T_TI_PLAN_SOURCE_TYPE Nav_Source { get; set; } - - } -} diff --git a/APT.MS.Domain/Entities/SC/TI/T_TI_PROJECT_WFFILE.cs b/APT.MS.Domain/Entities/SC/TI/T_TI_PROJECT_WFFILE.cs deleted file mode 100644 index 881022f..0000000 --- a/APT.MS.Domain/Entities/SC/TI/T_TI_PROJECT_WFFILE.cs +++ /dev/null @@ -1,44 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Entities.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TI -{ - /// - /// 项目审批附件 - /// - [Description("项目审批附件")] - public partial class T_TI_PROJECT_WFFILE : MesEntityBase - { - /// - /// 计划ID - /// - [Description("项目ID")] - [DataFieldForeignKey("Nav_Project", "Nav_WFFiles")] - public Guid PROJECT_ID { get; set; } - - /// - /// 导航:计划 - /// - [Description("导航:项目")] - public virtual T_TI_PROJECT Nav_Project { get; set; } - - /// - /// 文件ID - /// - [Description("文件ID")] - [DataFieldForeignKey("Nav_ImgFile")] - public Guid IMG_FILE_ID { get; set; } - - /// - /// 导航属性:文件 - /// - [Description("导航属性:文件")] - public virtual T_PF_IMG_FILE Nav_ImgFile { get; set; } - - } -} diff --git a/APT.MS.Domain/Entities/SC/TI/T_TI_SAFE_PDT_COST_RECORD.cs b/APT.MS.Domain/Entities/SC/TI/T_TI_SAFE_PDT_COST_RECORD.cs deleted file mode 100644 index 63cde54..0000000 --- a/APT.MS.Domain/Entities/SC/TI/T_TI_SAFE_PDT_COST_RECORD.cs +++ /dev/null @@ -1,137 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TI -{ - /// - /// 安全生产费用使用记录表 - /// - [Description("安全生产费用使用记录表")] - [DataRuleField("DEPARTMENT_ID")] - public class T_TI_SAFE_PDT_COST_RECORD : MesEntityBase - { - /// - /// 使用日期 - /// - [Description("使用日期")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public DateTime? USETIME { get; set; } - - /// - /// 使用部门ID - /// - [Description("使用部门ID")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldForeignKey("Nav_Department")] - public Guid? DEPARTMENT_ID { get; set; } - - /// - /// 导航: 使用部门 - /// - [Description("导航: 使用部门")] - public T_FM_DEPARTMENT Nav_Department { get; set; } - - /// - /// 记录人 - /// - [Description("记录人")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldForeignKey("Nav_User")] - public Guid? USER_ID { get; set; } - - /// - /// 导航: 记录人 - /// - [Description("导航: 记录人")] - public T_FM_USER Nav_User { get; set; } - - /// - /// 使用项目 - /// - [Description("使用项目")] - [FormFieldTable] - [FormFieldEdit] - public string PROJECT { get; set; } - - /// - /// 导航: 费用类型 - /// - [Description("导航: 费用类型")] - [FormFieldEdit] - public ICollection Nav_SafePdtCostRecordType { get; set; } - - /// - /// 用途 - /// - [Description("用途")] - [FormFieldTable] - [DataFieldLength(500)] - [FormFieldEdit] - public string PURPOSE { get; set; } - - /// - /// 单位 - /// - [Description("单位")] - [FormFieldTable] - [DataFieldLength(200)] - [FormFieldEdit] - public string UNIT { get; set; } - - /// - /// 数量 - /// - [Description("数量")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public int? COUNT { get; set; } - - /// - /// 使用金额(万元) - /// - [Description("使用金额(万元)")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public decimal? USE_AMOUNT { get; set; } - - /// - /// 导航属性:附件 - /// - [Description("导航属性:附件")] - [FormFieldEdit] - public ICollection Nav_Files { get; set; } - - /// - /// 状态 - /// - [Description("状态")] - public PFStandardStatus STATUS { get; set; } - - /// - /// 审批流 - /// - [Description("审批流")] - [DataFieldForeignKey("Nav_Approve")] - public Guid? APPROVE_ID { get; set; } - - /// - /// 审批流 - /// - [Description("会议发起审批流")] - public T_PF_APPROVE Nav_Approve { get; set; } - } -} diff --git a/APT.MS.Domain/Entities/SC/TI/T_TI_SAFE_PDT_COST_RECORD_FILE.cs b/APT.MS.Domain/Entities/SC/TI/T_TI_SAFE_PDT_COST_RECORD_FILE.cs deleted file mode 100644 index bc29a5c..0000000 --- a/APT.MS.Domain/Entities/SC/TI/T_TI_SAFE_PDT_COST_RECORD_FILE.cs +++ /dev/null @@ -1,45 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Entities.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TI -{ - /// - /// 导航属性:安全生产费用使用记录附件 - /// - [Description("安全生产费用使用记录附件")] - public class T_TI_SAFE_PDT_COST_RECORD_FILE : MesEntityBase - { - - /// - /// 安全生产费用使用记录 - /// - [Description("安全生产费用使用记录")] - [DataFieldForeignKey("Nav_SafePdtCostRecord", "Nav_Files")] - public Guid RECORD_ID { get; set; } - - /// - /// 导航: 安全生产费用使用记录 - /// - [Description("导航: 安全生产费用使用记录")] - public virtual T_TI_SAFE_PDT_COST_RECORD Nav_SafePdtCostRecord { get; set; } - - /// - /// 文件ID - /// - [Description("文件ID")] - [DataFieldForeignKey("Nav_ImgFile")] - public Guid IMG_FILE_ID { get; set; } - - /// - /// 导航属性:文件 - /// - [Description("导航属性:文件")] - public virtual T_PF_IMG_FILE Nav_ImgFile { get; set; } - - } -} diff --git a/APT.MS.Domain/Entities/SC/TI/T_TI_SAFE_PDT_COST_RECORD_TYPE.cs b/APT.MS.Domain/Entities/SC/TI/T_TI_SAFE_PDT_COST_RECORD_TYPE.cs deleted file mode 100644 index 3804e33..0000000 --- a/APT.MS.Domain/Entities/SC/TI/T_TI_SAFE_PDT_COST_RECORD_TYPE.cs +++ /dev/null @@ -1,44 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.TI; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TI -{ - /// - /// 安全生产费用使用记录表与费用类型关联表 - /// - [Description("安全生产费用使用记录表")] - public class T_TI_SAFE_PDT_COST_RECORD_TYPE : MesEntityBase - { - /// - /// 安全生产费用使用记录表 - /// - [Description("安全生产费用使用记录表")] - [DataFieldForeignKey("Nav_SafePdtCostRecord", "Nav_SafePdtCostRecordType")] - public Guid? RECORD_ID { get; set; } - - /// - /// 导航: 安全生产费用使用记录表 - /// - [Description("导航: 安全生产费用使用记录表")] - public T_TI_SAFE_PDT_COST_RECORD Nav_SafePdtCostRecord { get; set; } - - /// - /// 费用类型ID - /// - [Description("费用类型ID")] - [DataFieldForeignKey("Nav_CostType")] - public Guid? COST_TYPE_ID { get; set; } - - /// - /// 导航: 费用类型 - /// - [Description("导航: 费用类型")] - public virtual T_TI_COST_TYPE Nav_CostType { get; set; } - - } -} diff --git a/APT.MS.Domain/Entities/SC/TL/T_TL_BACK.cs b/APT.MS.Domain/Entities/SC/TL/T_TL_BACK.cs deleted file mode 100644 index 60906b9..0000000 --- a/APT.MS.Domain/Entities/SC/TL/T_TL_BACK.cs +++ /dev/null @@ -1,140 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TL -{ - /// - /// 回采计划 - /// - [Description("回采计划")] - [DataRuleField("DEPARTMENT_ID")] - public class T_TL_BACK : MesEntityBase - { - /// - /// 尾矿库名称 冗余 - /// - [Description("尾矿库名称")] - [DataFieldLength(200)] - public string TAILING_NAME { get; set; } - - /// - /// 尾矿库名称 - /// - [Description("尾矿库名称")] - [DataFieldForeignKey("Nav_Tailing")] - public Guid? TAILING_ID { get; set; } - - /// - /// 尾矿库 - /// - [Description("尾矿库")] - [FormFieldEdit] - public T_TL_TAILING Nav_Tailing { get; set; } - - /// - /// 工程名称 - /// - [Description("工程名称")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(200)] - public string NAME { get; set; } - - /// - /// 项目编号 - /// - [Description("项目编号")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(50)] - public string CODE { get; set; } - - /// - /// 日期 - /// - [Description("日期")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public DateTime BACKDATE { get; set; } - - /// - /// 部门 - /// - [Description("部门")] - [DataFieldForeignKey("Nav_Department")] - public Guid? DEPARTMENT_ID { get; set; } - - /// - /// 部门 - /// - [Description("部门")] - public T_FM_DEPARTMENT Nav_Department { get; set; } - - /// - /// 提交人 - /// - [Description("提交人")] - [DataFieldForeignKey("Nav_User")] - public Guid USER_ID { get; set; } - - /// - /// 提交人 - /// - [Description("提交人")] - public T_FM_USER Nav_User { get; set; } - - /// - /// 制定要求 - /// - [Description("制定要求")] - public ICollection Nav_ListBackRequire { get; set; } - - /// - /// 回采计划 - /// - [Description("回采计划")] - public ICollection Nav_Files { get; set; } - - /// - /// 回采计划明细 - /// - [Description("回采计划明细")] - public ICollection Nav_ListDetail { get; set; } - - /// - /// 状态 - /// - [Description("状态")] - [FormFieldQuery] - [FormFieldTable] - public PFStandardStatus STATUS { get; set; } - - /// - /// 是否完结 (弃用 状态 审批(20) =》确认(10) =》归档(30) ) - /// - [Description("是否完结")] - public bool ISEND { get; set; } - - - /// - /// 审批流 - /// - [Description("审批流")] - [DataFieldForeignKey("Nav_Approve")] - public Guid? APPROVE_ID { get; set; } - - public T_PF_APPROVE Nav_Approve { get; set; } - - - } -} \ No newline at end of file diff --git a/APT.MS.Domain/Entities/SC/TL/T_TL_BACK_DETAIL.cs b/APT.MS.Domain/Entities/SC/TL/T_TL_BACK_DETAIL.cs deleted file mode 100644 index bf2a1cf..0000000 --- a/APT.MS.Domain/Entities/SC/TL/T_TL_BACK_DETAIL.cs +++ /dev/null @@ -1,66 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TL -{ - /// - /// 回采计划明细 - /// - [Description("回采计划明细")] - public class T_TL_BACK_DETAIL : MesEntityBase - { - /// - /// 回采计划 - /// - [Description("回采计划")] - [DataFieldForeignKey("Nav_Back", "Nav_ListDetail")] - public Guid BACK_ID { get; set; } - - /// - /// 回采计划 - /// - [Description("回采计划")] - [FormFieldEdit] - public T_TL_BACK Nav_Back { get; set; } - - /// - /// 排序 - /// - [Description("排序")] - [FormFieldEdit] - public int NUM { get; set; } - - /// - /// 回踩日期 - /// - [Description("回踩日期")] - [FormFieldEdit] - public DateTime? DATE { get; set; } - - /// - /// 回踩开始时间 - /// - [Description("回踩开始时间")] - [FormFieldEdit] - public DateTime? DATESTART { get; set; } - - /// - /// 回踩结束时间 - /// - [Description("回踩结束时间")] - [FormFieldEdit] - public DateTime? DATEEND { get; set; } - - /// - /// 值班人员 - /// - [Description("值班人员")] - public ICollection Nav_ListDetailUser { get; set; } - } -} \ No newline at end of file diff --git a/APT.MS.Domain/Entities/SC/TL/T_TL_BACK_DETAIL_USER.cs b/APT.MS.Domain/Entities/SC/TL/T_TL_BACK_DETAIL_USER.cs deleted file mode 100644 index 727d27d..0000000 --- a/APT.MS.Domain/Entities/SC/TL/T_TL_BACK_DETAIL_USER.cs +++ /dev/null @@ -1,74 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TL -{ - /// - /// 值班人员 - /// - [Description("值班人员")] - public class T_TL_BACK_DETAIL_USER : MesEntityBase - { - /// - /// 回采计划 - /// - [Description("回采计划")] - [DataFieldForeignKey("Nav_Back")] - public Guid BACK_ID { get; set; } - - /// - /// 回采计划 - /// - [Description("回采计划")] - [FormFieldEdit] - public T_TL_BACK Nav_Back { get; set; } - - /// - /// 回采计划明细 - /// - [Description("回采计划明细")] - [DataFieldForeignKey("Nav_BackDetail", "Nav_ListDetailUser")] - public Guid BACK_DETAIL_ID { get; set; } - - /// - /// 回采计划明细 - /// - [Description("回采计划明细")] - [FormFieldEdit] - public T_TL_BACK_DETAIL Nav_BackDetail { get; set; } - - /// - /// 值班人员 - /// - [Description("值班人员")] - [DataFieldForeignKey("Nav_User")] - [FormFieldEdit] - public Guid USER_ID { get; set; } - - /// - /// 值班人员 - /// - [Description("值班人员")] - public virtual T_FM_USER Nav_User { get; set; } - - /// - /// 是否登记人 - /// - [Description("是否登记人")] - public bool ISMAINCHECK { get; set; } = false; - - - /// - /// 是否确认 - /// - [Description("是否确认")] - public bool ISCHECK { get; set; } = false; - - } -} \ No newline at end of file diff --git a/APT.MS.Domain/Entities/SC/TL/T_TL_BACK_FILE.cs b/APT.MS.Domain/Entities/SC/TL/T_TL_BACK_FILE.cs deleted file mode 100644 index 121988e..0000000 --- a/APT.MS.Domain/Entities/SC/TL/T_TL_BACK_FILE.cs +++ /dev/null @@ -1,44 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.Infrastructure.Core; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace APT.MS.Domain.Entities.TL -{ - /// - /// 回采计划 附件 - /// - [Description("回采计划 附件")] - public class T_TL_BACK_FILE : MesEntityBase - { - /// - /// 回采计划 - /// - [Description("回采计划")] - [DataFieldForeignKey("Nav_Back", "Nav_Files")] - public Guid BACK_ID { get; set; } - - /// - /// 回采计划 - /// - [Description("回采计划")] - public virtual T_TL_BACK Nav_Back { get; set; } - - /// - /// 文件ID - /// - [Description("文件")] - [DataFieldForeignKey("Nav_ImgFile")] - public Guid IMG_FILE_ID { get; set; } - - /// - /// 导航属性:文件 - /// - [Description("导航属性:文件")] - public virtual T_PF_IMG_FILE Nav_ImgFile { get; set; } - } -} diff --git a/APT.MS.Domain/Entities/SC/TL/T_TL_BACK_RECORD.cs b/APT.MS.Domain/Entities/SC/TL/T_TL_BACK_RECORD.cs deleted file mode 100644 index 849f6ae..0000000 --- a/APT.MS.Domain/Entities/SC/TL/T_TL_BACK_RECORD.cs +++ /dev/null @@ -1,179 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TL -{ - /// - /// 回采记录 - /// - [Description("回采记录")] - [DataRuleField("DEPARTMENT_ID")] - public class T_TL_BACK_RECORD : MesEntityBase - { - /// - /// 尾矿库名称 冗余 - /// - [Description("尾矿库名称")] - [DataFieldLength(200)] - public string TAILING_NAME { get; set; } - - /// - /// 尾矿库名称 - /// - [Description("尾矿库名称")] - [DataFieldForeignKey("Nav_Tailing")] - public Guid? TAILING_ID { get; set; } - - /// - /// 尾矿库 - /// - [Description("尾矿库")] - [FormFieldEdit] - public T_TL_TAILING Nav_Tailing { get; set; } - - /// - /// 部门 - /// - [Description("部门")] - [DataFieldForeignKey("Nav_Department")] - public Guid? DEPARTMENT_ID { get; set; } - - /// - /// 部门 - /// - [Description("部门")] - public T_FM_DEPARTMENT Nav_Department { get; set; } - - /// - /// 值班人 - /// - [Description("值班人")] - [DataFieldForeignKey("Nav_User")] - public Guid USER_ID { get; set; } - - /// - /// 提交人 - /// - [Description("值班人")] - public T_FM_USER Nav_User { get; set; } - - - /// - /// 回采时间 - /// - [Description("回采时间")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public DateTime? BACKTIME { get; set; } - - - /// - /// 回采方向 - /// - [Description("回采方向")] - [DataFieldLength(200)] - [FormFieldEdit] - public string BACK_DIREACT { get; set; } - - /// - /// 回采顺序 - /// - [Description("回采顺序")] - [FormFieldEdit] - public BackOrder? BACK_ORDER { get; set; } - - - /// - /// 回采厚度(m) - /// - [Description("回采厚度(m)")] - [FormFieldEdit] - public decimal? BACK_THICKNESS { get; set; } - - /// - /// 回采量(m³) - /// - [Description("回采量(m³)")] - [FormFieldEdit] - public decimal? BACK_NUMBER { get; set; } - - /// - /// 回采边坡坡比 - /// - [Description("回采边坡坡比")] - [FormFieldEdit] - [DataFieldLength(100)] - public string BACK_SCALE { get; set; } - - /// - /// 安全超高(m) - /// - [Description("安全超高(m)")] - [FormFieldEdit] - public decimal? SAFE_HIGHT { get; set; } - - /// - /// 干滩长度(m) - /// - [Description("干滩长度(m)")] - [FormFieldEdit] - public decimal? DRIVE_LONG { get; set; } - - /// - /// 状态 - /// - [Description("状态")] - [FormFieldQuery] - [FormFieldTable] - public PFStandardStatus STATUS { get; set; } - - - /// - /// 审批流 - /// - [Description("审批流")] - [DataFieldForeignKey("Nav_Approve")] - public Guid? APPROVE_ID { get; set; } - - public T_PF_APPROVE Nav_Approve { get; set; } - - /// - /// 计划明细ID - /// - public Guid? BACK_DETAIL_ID { get; set; } - - /// - /// 回采结束时间 - /// - [Description("回采结束时间")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public DateTime? BACKTIMEEND { get; set; } - - - /// - /// 工程名称(回采计划) - /// - [Description("工程名称")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(200)] - public string NAME { get; set; } - /// - /// 值班人 - /// - [Description("值班人")] - - public ICollection Nav_ListUser { get; set; } - } -} \ No newline at end of file diff --git a/APT.MS.Domain/Entities/SC/TL/T_TL_BACK_RECORD_USER.cs b/APT.MS.Domain/Entities/SC/TL/T_TL_BACK_RECORD_USER.cs deleted file mode 100644 index a429d4d..0000000 --- a/APT.MS.Domain/Entities/SC/TL/T_TL_BACK_RECORD_USER.cs +++ /dev/null @@ -1,58 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TL -{ - /// - /// 值班人员 - /// - [Description("值班人员")] - public class T_TL_BACK_RECORD_USER : MesEntityBase - { - /// - /// 回采计划明细 - /// - [Description("回采记录")] - [DataFieldForeignKey("Nav_BackRecord", "Nav_ListUser")] - public Guid BACK_RECORD_ID { get; set; } - - /// - /// 回采记录 - /// - [Description("回采记录")] - [FormFieldEdit] - public T_TL_BACK_RECORD Nav_BackRecord { get; set; } - - /// - /// 值班人员 - /// - [Description("值班人员")] - [DataFieldForeignKey("Nav_User")] - [FormFieldEdit] - public Guid USER_ID { get; set; } - - /// - /// 值班人员 - /// - [Description("值班人员")] - public virtual T_FM_USER Nav_User { get; set; } - - /// - /// 是否登记人 - /// - [Description("是否登记人")] - public bool ISMAINCHECK { get; set; } - - /// - /// 是否确认 - /// - [Description("是否确认")] - public bool ISCHECK { get; set; } - } -} \ No newline at end of file diff --git a/APT.MS.Domain/Entities/SC/TL/T_TL_BACK_REQUIRE.cs b/APT.MS.Domain/Entities/SC/TL/T_TL_BACK_REQUIRE.cs deleted file mode 100644 index c5ace8c..0000000 --- a/APT.MS.Domain/Entities/SC/TL/T_TL_BACK_REQUIRE.cs +++ /dev/null @@ -1,44 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.Infrastructure.Core; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace APT.MS.Domain.Entities.TL -{ - /// - /// 制定要求 - /// - [Description("制定要求")] - public class T_TL_BACK_REQUIRE : MesEntityBase - { - /// - /// 回采计划 - /// - [Description("制定要求")] - [DataFieldForeignKey("Nav_Back", "Nav_ListBackRequire")] - public Guid BACK_ID { get; set; } - - /// - /// 回采计划 - /// - [Description("制定要求")] - public virtual T_TL_BACK Nav_Back { get; set; } - - /// - /// 制定要求 - /// - [Description("制定要求")] - [DataFieldForeignKey("Nav_Require")] - public Guid REQUIRE_ID { get; set; } - - /// - /// 制定要求 - /// - [Description("制定要求")] - public virtual T_TL_REQUIRE Nav_Require { get; set; } - } -} diff --git a/APT.MS.Domain/Entities/SC/TL/T_TL_CACULATE.cs b/APT.MS.Domain/Entities/SC/TL/T_TL_CACULATE.cs deleted file mode 100644 index 4ac92df..0000000 --- a/APT.MS.Domain/Entities/SC/TL/T_TL_CACULATE.cs +++ /dev/null @@ -1,109 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TL -{ - /// - /// 调洪演算报告 - /// - [Description("调洪演算报告")] - [DataRuleField("DEPARTMENT_ID")] - public class T_TL_CACULATE : MesEntityBase - { - /// - /// 项目编号 - /// - [CUnique] - [CodeRule((int)PFCodeRuleType.尾矿库)] - [Description("项目编号")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(50)] - public string CODE { get; set; } - - /// - /// 名称 - /// - [Description("名称")] - [DataFieldLength(200)] - public string NAME { get; set; } - - /// - /// 尾矿库名称 冗余 - /// - [Description("尾矿库名称")] - [DataFieldLength(200)] - [FormFieldTable] - public string TAILING_NAME { get; set; } - - /// - /// 尾矿库名称 - /// - [Description("尾矿库名称")] - [DataFieldForeignKey("Nav_Tailing")] - public Guid? TAILING_ID { get; set; } - - /// - /// 尾矿库 - /// - [Description("尾矿库")] - [FormFieldEdit] - public T_TL_TAILING Nav_Tailing { get; set; } - - /// - /// 部门 - /// - [Description("部门")] - [DataFieldForeignKey("Nav_Department")] - public Guid? DEPARTMENT_ID { get; set; } - - /// - /// 部门 - /// - [Description("部门")] - public T_FM_DEPARTMENT Nav_Department { get; set; } - - /// - /// 提交人 - /// - [Description("提交人")] - [DataFieldForeignKey("Nav_User")] - public Guid USER_ID { get; set; } - - /// - /// 提交人 - /// - [Description("提交人")] - public T_FM_USER Nav_User { get; set; } - - /// - /// 日期 - /// - [Description("日期")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public DateTime? DATE { get; set; } - - /// - /// 调洪演算报告 - /// - [Description("调洪演算报告")] - public ICollection Nav_Files { get; set; } - - /// - /// 状态 - /// - [Description("状态")] - [FormFieldQuery] - [FormFieldTable] - public PFStandardStatus STATUS { get; set; } - } -} \ No newline at end of file diff --git a/APT.MS.Domain/Entities/SC/TL/T_TL_CACULATE_FILE.cs b/APT.MS.Domain/Entities/SC/TL/T_TL_CACULATE_FILE.cs deleted file mode 100644 index b9e2420..0000000 --- a/APT.MS.Domain/Entities/SC/TL/T_TL_CACULATE_FILE.cs +++ /dev/null @@ -1,44 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.Infrastructure.Core; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace APT.MS.Domain.Entities.TL -{ - /// - /// 调洪演算报告 - /// - [Description("调洪演算报告")] - public class T_TL_CACULATE_FILE : MesEntityBase - { - /// - /// 调洪演算报告 - /// - [Description("调洪演算报告")] - [DataFieldForeignKey("Nav_Caculate", "Nav_Files")] - public Guid CACULATE_ID { get; set; } - - /// - /// 调洪演算报告 - /// - [Description("调洪演算报告")] - public virtual T_TL_CACULATE Nav_Caculate { get; set; } - - /// - /// 文件ID - /// - [Description("文件")] - [DataFieldForeignKey("Nav_ImgFile")] - public Guid IMG_FILE_ID { get; set; } - - /// - /// 导航属性:文件 - /// - [Description("导航属性:文件")] - public virtual T_PF_IMG_FILE Nav_ImgFile { get; set; } - } -} diff --git a/APT.MS.Domain/Entities/SC/TL/T_TL_FILE_SUM.cs b/APT.MS.Domain/Entities/SC/TL/T_TL_FILE_SUM.cs deleted file mode 100644 index ccf7338..0000000 --- a/APT.MS.Domain/Entities/SC/TL/T_TL_FILE_SUM.cs +++ /dev/null @@ -1,113 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TL -{ - /// - /// 待办文件 集合 - /// - [Description("文件集合")] - public class T_TL_FILE_SUM : MesEntityBase - { - /// - /// 尾矿库名称 冗余 - /// - [Description("尾矿库名称")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(200)] - public string NAME { get; set; } - - /// - /// 尾矿库名称 - /// - [Description("尾矿库名称")] - [DataFieldForeignKey("Nav_Tailing")] - public Guid? TAILING_ID { get; set; } - - /// - /// 尾矿库 - /// - [Description("尾矿库")] - [FormFieldEdit] - public T_TL_TAILING Nav_Tailing { get; set; } - - /// - /// 消息内容 - /// - [Description("消息内容")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(300)] - public string CONTENT { get; set; } - - /// - /// 部门 - /// - [Description("部门")] - [DataFieldForeignKey("Nav_Department")] - public Guid? DEPARTMENT_ID { get; set; } - - /// - /// 部门 - /// - [Description("部门")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public T_FM_DEPARTMENT Nav_Department { get; set; } - - /// - /// 提交人 - /// - [Description("提交人")] - [DataFieldForeignKey("Nav_User")] - public Guid USER_ID { get; set; } - - /// - /// 提交人 - /// - [Description("提交人")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public T_FM_USER Nav_User { get; set; } - - /// - /// 文件类型 - /// - [Description("文件类型")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public FILETYPE FILETYPE { get; set; } - - /// - /// 状态 - /// - [Description("状态")] - [FormFieldQuery] - public PFStandardStatus STATUS { get; set; } - - /// - /// 待办计划ID - /// - [Description("待办计划ID")] - public Guid? TASK_PLAN_ID { get; set; } - - /// - /// 导航属性:附件 - /// - [Description("导航属性:附件")] - [FormFieldEdit] - public ICollection Nav_Files { get; set; } - } -} \ No newline at end of file diff --git a/APT.MS.Domain/Entities/SC/TL/T_TL_FILE_SUM_FILE.cs b/APT.MS.Domain/Entities/SC/TL/T_TL_FILE_SUM_FILE.cs deleted file mode 100644 index 5692f50..0000000 --- a/APT.MS.Domain/Entities/SC/TL/T_TL_FILE_SUM_FILE.cs +++ /dev/null @@ -1,44 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.Infrastructure.Core; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace APT.MS.Domain.Entities.TL -{ - /// - /// 导航属性:监测作业附件 - /// - [Description("监测作业附件")] - public class T_TL_FILE_SUM_FILE : MesEntityBase - { - /// - /// 文件集合 - /// - [Description("文件集合")] - [DataFieldForeignKey("Nav_Sum", "Nav_Files")] - public Guid SUM_ID { get; set; } - - /// - /// 文件集合 - /// - [Description("文件集合")] - public virtual T_TL_FILE_SUM Nav_Sum { get; set; } - - /// - /// 文件ID - /// - [Description("文件")] - [DataFieldForeignKey("Nav_ImgFile")] - public Guid IMG_FILE_ID { get; set; } - - /// - /// 导航属性:文件 - /// - [Description("导航属性:文件")] - public virtual T_PF_IMG_FILE Nav_ImgFile { get; set; } - } -} diff --git a/APT.MS.Domain/Entities/SC/TL/T_TL_HIGH_CHECK.cs b/APT.MS.Domain/Entities/SC/TL/T_TL_HIGH_CHECK.cs deleted file mode 100644 index 88d42a4..0000000 --- a/APT.MS.Domain/Entities/SC/TL/T_TL_HIGH_CHECK.cs +++ /dev/null @@ -1,103 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TL -{ - /// - /// 隐蔽工程验收管理 - /// - [Description("隐蔽工程验收管理")] - [DataRuleField("DEPARTMENT_ID")] - public class T_TL_HIGH_CHECK : MesEntityBase - { - /// - /// 尾矿库名称 冗余 - /// - [Description("尾矿库名称")] - [DataFieldLength(200)] - [FormFieldTable] - public string TAILING_NAME { get; set; } - - /// - /// 尾矿库名称 - /// - [Description("尾矿库名称")] - [DataFieldForeignKey("Nav_Tailing")] - public Guid? TAILING_ID { get; set; } - - /// - /// 尾矿库 - /// - [Description("尾矿库")] - [FormFieldEdit] - public T_TL_TAILING Nav_Tailing { get; set; } - - /// - /// 项目编号 - /// - [CUnique] - [CodeRule((int)PFCodeRuleType.尾矿库)] - [Description("项目编号")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(50)] - public string CODE { get; set; } - - /// - /// 工程名称 - /// - [Description("工程名称")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(200)] - public string NAME { get; set; } - - /// - /// 部门 - /// - [Description("部门")] - [DataFieldForeignKey("Nav_Department")] - public Guid? DEPARTMENT_ID { get; set; } - - /// - /// 部门 - /// - [Description("部门")] - public T_FM_DEPARTMENT Nav_Department { get; set; } - - /// - /// 提交人 - /// - [Description("提交人")] - [DataFieldForeignKey("Nav_User")] - public Guid USER_ID { get; set; } - - /// - /// 提交人 - /// - [Description("提交人")] - public T_FM_USER Nav_User { get; set; } - - /// - /// 隐蔽工程验收记录 - /// - [Description("隐蔽工程验收记录")] - public ICollection Nav_Files { get; set; } - - /// - /// 状态 - /// - [Description("状态")] - [FormFieldQuery] - [FormFieldTable] - public PFStandardStatus STATUS { get; set; } - } -} \ No newline at end of file diff --git a/APT.MS.Domain/Entities/SC/TL/T_TL_HIGH_CHECK_FILE.cs b/APT.MS.Domain/Entities/SC/TL/T_TL_HIGH_CHECK_FILE.cs deleted file mode 100644 index 96059e2..0000000 --- a/APT.MS.Domain/Entities/SC/TL/T_TL_HIGH_CHECK_FILE.cs +++ /dev/null @@ -1,44 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.Infrastructure.Core; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace APT.MS.Domain.Entities.TL -{ - /// - /// 隐蔽工程验收记录 - /// - [Description("隐蔽工程验收记录")] - public class T_TL_HIGH_CHECK_FILE : MesEntityBase - { - /// - /// 隐蔽工程验收记录 - /// - [Description("隐蔽工程验收记录")] - [DataFieldForeignKey("Nav_HighCheck", "Nav_Files")] - public Guid HIGH_ID { get; set; } - - /// - /// 隐蔽工程验收记录 - /// - [Description("隐蔽工程验收记录")] - public virtual T_TL_HIGH_CHECK Nav_HighCheck { get; set; } - - /// - /// 文件ID - /// - [Description("文件")] - [DataFieldForeignKey("Nav_ImgFile")] - public Guid IMG_FILE_ID { get; set; } - - /// - /// 导航属性:文件 - /// - [Description("导航属性:文件")] - public virtual T_PF_IMG_FILE Nav_ImgFile { get; set; } - } -} diff --git a/APT.MS.Domain/Entities/SC/TL/T_TL_OUT.cs b/APT.MS.Domain/Entities/SC/TL/T_TL_OUT.cs deleted file mode 100644 index a2bd00a..0000000 --- a/APT.MS.Domain/Entities/SC/TL/T_TL_OUT.cs +++ /dev/null @@ -1,89 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TL -{ - /// - /// 回采计划 - /// - [Description("尾矿库注销")] - [DataRuleField("DEPARTMENT_ID")] - public class T_TL_OUT : MesEntityBase - { - /// - /// 尾矿库名称 冗余 - /// - [Description("尾矿库名称")] - [DataFieldLength(200)] - public string TAILING_NAME { get; set; } - - /// - /// 尾矿库名称 - /// - [Description("尾矿库名称")] - [DataFieldForeignKey("Nav_Tailing")] - public Guid? TAILING_ID { get; set; } - - /// - /// 尾矿库 - /// - [Description("尾矿库")] - [FormFieldEdit] - public T_TL_TAILING Nav_Tailing { get; set; } - - /// - /// 部门 - /// - [Description("部门")] - [DataFieldForeignKey("Nav_Department")] - public Guid? DEPARTMENT_ID { get; set; } - - /// - /// 部门 - /// - [Description("部门")] - public T_FM_DEPARTMENT Nav_Department { get; set; } - - /// - /// 提交人 - /// - [Description("提交人")] - [DataFieldForeignKey("Nav_User")] - public Guid USER_ID { get; set; } - - /// - /// 提交人 - /// - [Description("提交人")] - public T_FM_USER Nav_User { get; set; } - - /// - /// 注销日期 - /// - [Description("注销日期")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public DateTime? OUTDATE { get; set; } - - /// - /// 尾矿库注销文件 - /// - [Description("尾矿库注销文件")] - public ICollection Nav_Files { get; set; } - - /// - /// 状态 - /// - [Description("状态")] - [FormFieldQuery] - [FormFieldTable] - public PFStandardStatus STATUS { get; set; } - } -} \ No newline at end of file diff --git a/APT.MS.Domain/Entities/SC/TL/T_TL_OUT_FILE.cs b/APT.MS.Domain/Entities/SC/TL/T_TL_OUT_FILE.cs deleted file mode 100644 index d0f151d..0000000 --- a/APT.MS.Domain/Entities/SC/TL/T_TL_OUT_FILE.cs +++ /dev/null @@ -1,44 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.Infrastructure.Core; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace APT.MS.Domain.Entities.TL -{ - /// - /// 尾矿库注销文件 - /// - [Description("尾矿库注销文件")] - public class T_TL_OUT_FILE : MesEntityBase - { - /// - /// 回采计划 - /// - [Description("回采计划")] - [DataFieldForeignKey("Nav_Out", "Nav_Files")] - public Guid OUT_ID { get; set; } - - /// - /// 回采计划 - /// - [Description("回采计划")] - public virtual T_TL_OUT Nav_Out { get; set; } - - /// - /// 文件ID - /// - [Description("文件")] - [DataFieldForeignKey("Nav_ImgFile")] - public Guid IMG_FILE_ID { get; set; } - - /// - /// 导航属性:文件 - /// - [Description("导航属性:文件")] - public virtual T_PF_IMG_FILE Nav_ImgFile { get; set; } - } -} diff --git a/APT.MS.Domain/Entities/SC/TL/T_TL_PLAN_SET.cs b/APT.MS.Domain/Entities/SC/TL/T_TL_PLAN_SET.cs deleted file mode 100644 index 43dbc54..0000000 --- a/APT.MS.Domain/Entities/SC/TL/T_TL_PLAN_SET.cs +++ /dev/null @@ -1,123 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TL -{ - /// - /// 制定任务 什么部门 什么岗位 什么频率 触发待办 - /// - [Description("制定任务")] - public class T_TL_PLAN_SET : MesEntityBase - { - /// - /// 编号 - /// - [Description("编号")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(50)] - public string CODE { get; set; } - /// - /// 生产作业计划 - /// - [Description("生产作业计划")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(200)] - public string NAME { get; set; } - - /// - /// 部门 - /// - [Description("部门")] - [DataFieldForeignKey("Nav_Department")] - public Guid DEPARTMENT_ID { get; set; } - - /// - /// 部门(部门级 就保存部门ID 班组级就保存班组ID 应该是同一个表) - /// - [Description("部门")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public T_FM_DEPARTMENT Nav_Department { get; set; } - - /// - /// 岗位 - /// - [Description("岗位")] - [DataFieldForeignKey("Nav_Post")] - public Guid POST_ID { get; set; } - - /// - /// 岗位 - /// - [Description("岗位")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public T_FM_USER_POST Nav_Post { get; set; } - - /// - /// 部门岗位人员 - /// - [Description("部门岗位人员")] - [DataFieldIngore] - public T_FM_USER Nav_User { get; set; } - - /// - /// 检查频率 - /// - [Description("检查频率")] - [EnumName("BSPLANCHECKFREQUENCYEnum")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public BSPLANCHECKFREQUENCYEnum PLANCHECKFREQUENCY { get; set; } - - /// - /// 检查日期(日期 针对单次 有效) 例如:05-01,12-01 - /// - [Description("检查日期")] - [FormFieldEdit] - public string RUNDATA { get; set; } - - /// - /// 检查频率(日 针对每月/每季 有效) - /// - [Description("日")] - [FormFieldEdit] - public int? DATA { get; set; } - - /// - /// 检查频率(星期 针对每周 有效) - /// - [Description("星期")] - [EnumName("WEEKDATAEnum")] - [FormFieldEdit] - public WEEKDATAEnum? WEEKDATA { get; set; } - - /// - /// 跑批时间 - /// - [Description("跑批时间")] - [FormFieldEdit] - [FormFieldTable] - public DateTime RUNSETTIME { get; set; } - - /// - /// 启用标志 - /// - [Description("启用标志")] - [FormFieldTable] - [FormFieldEdit] - public FMEnableStatusEnum ENABLE_STATUS { get; set; } - } -} \ No newline at end of file diff --git a/APT.MS.Domain/Entities/SC/TL/T_TL_PROJECT_FINISH.cs b/APT.MS.Domain/Entities/SC/TL/T_TL_PROJECT_FINISH.cs deleted file mode 100644 index 58f33b5..0000000 --- a/APT.MS.Domain/Entities/SC/TL/T_TL_PROJECT_FINISH.cs +++ /dev/null @@ -1,116 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TL -{ - /// - /// 安全设施竣工验收 - /// - [Description("安全设施竣工验收")] - [DataRuleField("DEPARTMENT_ID")] - public class T_TL_PROJECT_FINISH : MesEntityBase - { - /// - /// 尾矿库名称 冗余 - /// - [Description("尾矿库名称")] - [DataFieldLength(200)] - public string TAILING_NAME { get; set; } - - /// - /// 尾矿库名称 - /// - [Description("尾矿库名称")] - [DataFieldForeignKey("Nav_Tailing")] - public Guid? TAILING_ID { get; set; } - - /// - /// 尾矿库 - /// - [Description("尾矿库")] - [FormFieldEdit] - public T_TL_TAILING Nav_Tailing { get; set; } - - /// - /// 工程名称 - /// - [Description("工程名称")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(200)] - public string NAME { get; set; } - - /// - /// 项目编号 - /// - [Description("项目编号")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(50)] - public string CODE { get; set; } - - /// - /// 部门 - /// - [Description("部门")] - [DataFieldForeignKey("Nav_Department")] - public Guid? DEPARTMENT_ID { get; set; } - - /// - /// 部门 - /// - [Description("部门")] - [FormFieldEdit] - public T_FM_DEPARTMENT Nav_Department { get; set; } - - /// - /// 提交人 - /// - [Description("提交人")] - [DataFieldForeignKey("Nav_User")] - public Guid USER_ID { get; set; } - - /// - /// 提交人 - /// - [Description("提交人")] - [FormFieldEdit] - public T_FM_USER Nav_User { get; set; } - - /// - /// 安全设施竣工验收 - /// - [Description("安全设施竣工验收")] - public ICollection Nav_Files { get; set; } - - /// - /// 隐蔽工程验收记录 - /// - [Description("是否妥善保存了所有勘察、设计、施工纪录和验收文件和图纸")] - [FormFieldEdit] - public FMTureOrFalse? RESULT { get; set; } - - /// - /// 不妥善说明 (是否妥善保存了所有勘察、设计、施工纪录和验收文件和图纸) - /// - [DataFieldLength(500)] - [Description("不妥善说明")] - public string RESULT_REASON { get; set; } - - /// - /// 状态 - /// - [Description("状态")] - [FormFieldQuery] - [FormFieldTable] - public PFStandardStatus STATUS { get; set; } - } -} \ No newline at end of file diff --git a/APT.MS.Domain/Entities/SC/TL/T_TL_PROJECT_FINISH_FILE.cs b/APT.MS.Domain/Entities/SC/TL/T_TL_PROJECT_FINISH_FILE.cs deleted file mode 100644 index 795b926..0000000 --- a/APT.MS.Domain/Entities/SC/TL/T_TL_PROJECT_FINISH_FILE.cs +++ /dev/null @@ -1,44 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.Infrastructure.Core; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace APT.MS.Domain.Entities.TL -{ - /// - /// 安全设施竣工验收 附件 - /// - [Description("隐蔽工程验收管理 附件")] - public class T_TL_PROJECT_FINISH_FILE : MesEntityBase - { - /// - /// 安全设施竣工验收 - /// - [Description("单项工程记录管理")] - [DataFieldForeignKey("Nav_Hight", "Nav_Files")] - public Guid HIGHT_ID { get; set; } - - /// - /// 安全设施竣工验收 - /// - [Description("单项工程记录管理")] - public virtual T_TL_PROJECT_FINISH Nav_Hight { get; set; } - - /// - /// 文件ID - /// - [Description("文件")] - [DataFieldForeignKey("Nav_ImgFile")] - public Guid IMG_FILE_ID { get; set; } - - /// - /// 导航属性:文件 - /// - [Description("导航属性:文件")] - public virtual T_PF_IMG_FILE Nav_ImgFile { get; set; } - } -} diff --git a/APT.MS.Domain/Entities/SC/TL/T_TL_PROJECT_HIGHT.cs b/APT.MS.Domain/Entities/SC/TL/T_TL_PROJECT_HIGHT.cs deleted file mode 100644 index 09aee4c..0000000 --- a/APT.MS.Domain/Entities/SC/TL/T_TL_PROJECT_HIGHT.cs +++ /dev/null @@ -1,121 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TL -{ - /// - /// 隐蔽工程验收管理 - /// - [Description("隐蔽工程验收管理")] - [DataRuleField("DEPARTMENT_ID")] - public class T_TL_PROJECT_HIGHT : MesEntityBase - { - /// - /// 尾矿库名称 冗余 - /// - [Description("尾矿库名称")] - [FormFieldTable] - [FormFieldQuery] - [DataFieldLength(200)] - public string TAILING_NAME { get; set; } - - /// - /// 尾矿库名称 - /// - [Description("尾矿库名称")] - [DataFieldForeignKey("Nav_Tailing")] - public Guid? TAILING_ID { get; set; } - - /// - /// 尾矿库 - /// - [Description("尾矿库")] - [FormFieldEdit] - public T_TL_TAILING Nav_Tailing { get; set; } - - /// - /// 工程名称 - /// - [Description("工程名称")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(200)] - public string NAME { get; set; } - - /// - /// 项目编号 - /// - [Description("项目编号")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(50)] - public string CODE { get; set; } - - /// - /// 部门 - /// - [Description("部门")] - [DataFieldForeignKey("Nav_Department")] - public Guid? DEPARTMENT_ID { get; set; } - - /// - /// 部门 - /// - [Description("部门")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public T_FM_DEPARTMENT Nav_Department { get; set; } - - /// - /// 提交人 - /// - [Description("提交人")] - [DataFieldForeignKey("Nav_User")] - public Guid USER_ID { get; set; } - - /// - /// 提交人 - /// - [Description("提交人")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public T_FM_USER Nav_User { get; set; } - - /// - /// 隐蔽工程验收记录 - /// - [Description("隐蔽工程验收记录")] - public ICollection Nav_Files { get; set; } - - /// - /// 隐蔽工程验收记录 - /// - [Description("是否验收合格后进行下一阶段施工")] - [FormFieldEdit] - public FMTureOrFalse? RESULT { get; set; } - - /// - /// 不合格描述 (是否验收合格后进行下一阶段施工) - /// - [DataFieldLength(500)] - [Description("不合格描述")] - public string RESULT_REASON { get; set; } - - /// - /// 状态 - /// - [Description("状态")] - [FormFieldQuery] - public PFStandardStatus STATUS { get; set; } - } -} \ No newline at end of file diff --git a/APT.MS.Domain/Entities/SC/TL/T_TL_PROJECT_HIGHT_FILE.cs b/APT.MS.Domain/Entities/SC/TL/T_TL_PROJECT_HIGHT_FILE.cs deleted file mode 100644 index 1ae18cb..0000000 --- a/APT.MS.Domain/Entities/SC/TL/T_TL_PROJECT_HIGHT_FILE.cs +++ /dev/null @@ -1,44 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.Infrastructure.Core; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace APT.MS.Domain.Entities.TL -{ - /// - /// 隐蔽工程验收管理 附件 - /// - [Description("隐蔽工程验收管理 附件")] - public class T_TL_PROJECT_HIGHT_FILE : MesEntityBase - { - /// - /// 单项工程记录管理 - /// - [Description("单项工程记录管理")] - [DataFieldForeignKey("Nav_Hight", "Nav_Files")] - public Guid HIGHT_ID { get; set; } - - /// - /// 单项工程记录管理 - /// - [Description("单项工程记录管理")] - public virtual T_TL_PROJECT_HIGHT Nav_Hight { get; set; } - - /// - /// 文件ID - /// - [Description("文件")] - [DataFieldForeignKey("Nav_ImgFile")] - public Guid IMG_FILE_ID { get; set; } - - /// - /// 导航属性:文件 - /// - [Description("导航属性:文件")] - public virtual T_PF_IMG_FILE Nav_ImgFile { get; set; } - } -} diff --git a/APT.MS.Domain/Entities/SC/TL/T_TL_PROJECT_INTRODUCE.cs b/APT.MS.Domain/Entities/SC/TL/T_TL_PROJECT_INTRODUCE.cs deleted file mode 100644 index 773d67f..0000000 --- a/APT.MS.Domain/Entities/SC/TL/T_TL_PROJECT_INTRODUCE.cs +++ /dev/null @@ -1,103 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TL -{ - /// - /// 上游工程情况说明 - /// - [Description("上游工程情况说明")] - [DataRuleField("DEPARTMENT_ID")] - public class T_TL_PROJECT_INTRODUCE : MesEntityBase - { - /// - /// 项目编号 - /// - [CUnique] - [CodeRule((int)PFCodeRuleType.尾矿库)] - [Description("项目编号")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(50)] - public string CODE { get; set; } - - /// - /// 日期 - /// - [Description("日期")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public DateTime? DATE { get; set; } - - /// - /// 尾矿库名称 冗余 - /// - [Description("尾矿库名称")] - [DataFieldLength(200)] - [FormFieldTable] - public string TAILING_NAME { get; set; } - - /// - /// 尾矿库名称 - /// - [Description("尾矿库名称")] - [DataFieldForeignKey("Nav_Tailing")] - public Guid? TAILING_ID { get; set; } - - /// - /// 尾矿库 - /// - [Description("尾矿库")] - [FormFieldEdit] - public T_TL_TAILING Nav_Tailing { get; set; } - - /// - /// 部门 - /// - [Description("部门")] - [DataFieldForeignKey("Nav_Department")] - public Guid? DEPARTMENT_ID { get; set; } - - /// - /// 部门 - /// - [Description("部门")] - public T_FM_DEPARTMENT Nav_Department { get; set; } - - /// - /// 提交人 - /// - [Description("提交人")] - [DataFieldForeignKey("Nav_User")] - public Guid USER_ID { get; set; } - - /// - /// 提交人 - /// - [Description("提交人")] - public T_FM_USER Nav_User { get; set; } - - - /// - /// 上游工程情况说明 - /// - [Description("上游工程情况说明")] - public ICollection Nav_Files { get; set; } - - /// - /// 状态 - /// - [Description("状态")] - [FormFieldQuery] - [FormFieldTable] - public PFStandardStatus STATUS { get; set; } - } -} \ No newline at end of file diff --git a/APT.MS.Domain/Entities/SC/TL/T_TL_PROJECT_INTRODUCE_FILE.cs b/APT.MS.Domain/Entities/SC/TL/T_TL_PROJECT_INTRODUCE_FILE.cs deleted file mode 100644 index 578de79..0000000 --- a/APT.MS.Domain/Entities/SC/TL/T_TL_PROJECT_INTRODUCE_FILE.cs +++ /dev/null @@ -1,44 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.Infrastructure.Core; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace APT.MS.Domain.Entities.TL -{ - /// - /// 上游工程情况说明 - /// - [Description("上游工程情况说明")] - public class T_TL_PROJECT_INTRODUCE_FILE : MesEntityBase - { - /// - /// 上游工程情况说明 - /// - [Description("上游工程情况说明")] - [DataFieldForeignKey("Nav_ProjectIntroduce", "Nav_Files")] - public Guid INTRODUCE_ID { get; set; } - - /// - /// 上游工程情况说明 - /// - [Description("上游工程情况说明")] - public virtual T_TL_PROJECT_INTRODUCE Nav_ProjectIntroduce { get; set; } - - /// - /// 文件ID - /// - [Description("文件")] - [DataFieldForeignKey("Nav_ImgFile")] - public Guid IMG_FILE_ID { get; set; } - - /// - /// 导航属性:文件 - /// - [Description("导航属性:文件")] - public virtual T_PF_IMG_FILE Nav_ImgFile { get; set; } - } -} diff --git a/APT.MS.Domain/Entities/SC/TL/T_TL_PROJECT_RECORD.cs b/APT.MS.Domain/Entities/SC/TL/T_TL_PROJECT_RECORD.cs deleted file mode 100644 index 42989e8..0000000 --- a/APT.MS.Domain/Entities/SC/TL/T_TL_PROJECT_RECORD.cs +++ /dev/null @@ -1,160 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TL -{ - /// - /// 单项工程记录管理 - /// - [Description("单项工程记录管理")] - [DataRuleField("DEPARTMENT_ID")] - public class T_TL_PROJECT_RECORD : MesEntityBase - { - /// - /// 尾矿库名称 冗余 - /// - [Description("尾矿库名称")] - [FormFieldTable] - [FormFieldQuery] - [DataFieldLength(200)] - public string TAILING_NAME { get; set; } - - /// - /// 尾矿库名称 - /// - [Description("尾矿库名称")] - [DataFieldForeignKey("Nav_Tailing")] - public Guid? TAILING_ID { get; set; } - - /// - /// 尾矿库 - /// - [Description("尾矿库")] - [FormFieldEdit] - public T_TL_TAILING Nav_Tailing { get; set; } - - /// - /// 项目名称 - /// - [Description("项目名称")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(200)] - public string NAME { get; set; } - - /// - /// 项目编号 - /// - [Description("项目编号")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(50)] - public string CODE { get; set; } - - /// - /// 部门 - /// - [Description("部门")] - [DataFieldForeignKey("Nav_Department")] - public Guid? DEPARTMENT_ID { get; set; } - - /// - /// 部门 - /// - [Description("部门")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public T_FM_DEPARTMENT Nav_Department { get; set; } - - /// - /// 提交人 - /// - [Description("提交人")] - [DataFieldForeignKey("Nav_User")] - public Guid USER_ID { get; set; } - - /// - /// 提交人 - /// - [Description("提交人")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public T_FM_USER Nav_User { get; set; } - - /// - /// 施工记录 - /// - [Description("施工记录")] - public ICollection Nav_Files { get; set; } - - /// - /// 监理记录 - /// - [Description("监理记录")] - public ICollection Nav_FilesWatch { get; set; } - - /// - /// 验收记录 - /// - [Description("验收记录")] - public ICollection Nav_FilesCheck { get; set; } - - /// - /// 施工结果 - /// - [Description("施工是否满足规程及安全、健康要求")] - [FormFieldEdit] - public Result? RESULT { get; set; } - - /// - /// 不满足描述 (施工是否满足规程及安全、健康要求) - /// - [DataFieldLength(500)] - [Description("不满足描述")] - public string RESULT_REASON { get; set; } - - /// - /// 验收结果 - /// - [Description("安全设施是否与主体工程同时设计、同时施工、同时投入生产和使用")] - [FormFieldEdit] - public Result? RESULT_CHECK { get; set; } - - /// - /// 不同时描述 (安全设施是否与主体工程同时设计、同时施工、同时投入生产和使用) - /// - [DataFieldLength(500)] - [Description("不同时描述")] - public string RESULT_CHECK_REASON { get; set; } - - /// - /// 监理结果 - /// - [Description("验收是否按照规程进行")] - [FormFieldEdit] - public Result? RESULT_WATCH { get; set; } - - /// - /// 未遵守描述 (验收是否按照规程进行) - /// - [DataFieldLength(500)] - [Description("未遵守描述")] - public string RESULT_WATCH_REASON { get; set; } - /// - /// 状态 - /// - [Description("状态")] - [FormFieldQuery] - public PFStandardStatus STATUS { get; set; } - } -} \ No newline at end of file diff --git a/APT.MS.Domain/Entities/SC/TL/T_TL_PROJECT_RECORD_CHECK_FILE.cs b/APT.MS.Domain/Entities/SC/TL/T_TL_PROJECT_RECORD_CHECK_FILE.cs deleted file mode 100644 index 7c2dde1..0000000 --- a/APT.MS.Domain/Entities/SC/TL/T_TL_PROJECT_RECORD_CHECK_FILE.cs +++ /dev/null @@ -1,44 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.Infrastructure.Core; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace APT.MS.Domain.Entities.TL -{ - /// - /// 导航属性:监测作业附件 - /// - [Description("监测作业附件")] - public class T_TL_PROJECT_RECORD_CHECK_FILE : MesEntityBase - { - /// - /// 单项工程记录管理 - /// - [Description("单项工程记录管理")] - [DataFieldForeignKey("Nav_Project", "Nav_FilesWatch")] - public Guid PROJECT_ID { get; set; } - - /// - /// 单项工程记录管理 - /// - [Description("单项工程记录管理")] - public virtual T_TL_PROJECT_RECORD Nav_Project { get; set; } - - /// - /// 文件ID - /// - [Description("文件")] - [DataFieldForeignKey("Nav_ImgFile")] - public Guid IMG_FILE_ID { get; set; } - - /// - /// 导航属性:文件 - /// - [Description("导航属性:文件")] - public virtual T_PF_IMG_FILE Nav_ImgFile { get; set; } - } -} diff --git a/APT.MS.Domain/Entities/SC/TL/T_TL_PROJECT_RECORD_FILE.cs b/APT.MS.Domain/Entities/SC/TL/T_TL_PROJECT_RECORD_FILE.cs deleted file mode 100644 index 6699ece..0000000 --- a/APT.MS.Domain/Entities/SC/TL/T_TL_PROJECT_RECORD_FILE.cs +++ /dev/null @@ -1,44 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.Infrastructure.Core; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace APT.MS.Domain.Entities.TL -{ - /// - /// 施工记录 - /// - [Description("施工记录")] - public class T_TL_PROJECT_RECORD_FILE : MesEntityBase - { - /// - /// 单项工程记录管理 - /// - [Description("单项工程记录管理")] - [DataFieldForeignKey("Nav_Project", "Nav_Files")] - public Guid PROJECT_ID { get; set; } - - /// - /// 单项工程记录管理 - /// - [Description("单项工程记录管理")] - public virtual T_TL_PROJECT_RECORD Nav_Project { get; set; } - - /// - /// 文件ID - /// - [Description("文件")] - [DataFieldForeignKey("Nav_ImgFile")] - public Guid IMG_FILE_ID { get; set; } - - /// - /// 导航属性:文件 - /// - [Description("导航属性:文件")] - public virtual T_PF_IMG_FILE Nav_ImgFile { get; set; } - } -} diff --git a/APT.MS.Domain/Entities/SC/TL/T_TL_PROJECT_RECORD_WATCH_FILE.cs b/APT.MS.Domain/Entities/SC/TL/T_TL_PROJECT_RECORD_WATCH_FILE.cs deleted file mode 100644 index 55fbae1..0000000 --- a/APT.MS.Domain/Entities/SC/TL/T_TL_PROJECT_RECORD_WATCH_FILE.cs +++ /dev/null @@ -1,44 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.Infrastructure.Core; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace APT.MS.Domain.Entities.TL -{ - /// - /// 导航属性:监测作业附件 - /// - [Description("监测作业附件")] - public class T_TL_PROJECT_RECORD_WATCH_FILE : MesEntityBase - { - /// - /// 单项工程记录管理 - /// - [Description("单项工程记录管理")] - [DataFieldForeignKey("Nav_Project", "Nav_FilesCheck")] - public Guid PROJECT_ID { get; set; } - - /// - /// 单项工程记录管理 - /// - [Description("单项工程记录管理")] - public virtual T_TL_PROJECT_RECORD Nav_Project { get; set; } - - /// - /// 文件ID - /// - [Description("文件")] - [DataFieldForeignKey("Nav_ImgFile")] - public Guid IMG_FILE_ID { get; set; } - - /// - /// 导航属性:文件 - /// - [Description("导航属性:文件")] - public virtual T_PF_IMG_FILE Nav_ImgFile { get; set; } - } -} diff --git a/APT.MS.Domain/Entities/SC/TL/T_TL_PROJECT_SLOPEBANK.cs b/APT.MS.Domain/Entities/SC/TL/T_TL_PROJECT_SLOPEBANK.cs deleted file mode 100644 index 40960d1..0000000 --- a/APT.MS.Domain/Entities/SC/TL/T_TL_PROJECT_SLOPEBANK.cs +++ /dev/null @@ -1,137 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TL -{ - /// - /// 子坝坡岸处理 - /// - [Description("子坝坡岸处理")] - [DataRuleField("DEPARTMENT_ID")] - public class T_TL_PROJECT_SLOPEBANK : MesEntityBase - { - /// - /// 尾矿库名称 冗余 - /// - [Description("尾矿库名称")] - [FormFieldTable] - [FormFieldQuery] - [DataFieldLength(200)] - public string TAILING_NAME { get; set; } - - /// - /// 尾矿库名称 - /// - [Description("尾矿库名称")] - [DataFieldForeignKey("Nav_Tailing")] - public Guid? TAILING_ID { get; set; } - - /// - /// 尾矿库 - /// - [Description("尾矿库")] - [FormFieldEdit] - public T_TL_TAILING Nav_Tailing { get; set; } - - /// - /// 子坝名称 - /// - [Description("子坝名称")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(200)] - public string NAMESUB { get; set; } - - /// - /// 项目编号 - /// - [Description("项目编号")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(50)] - public string CODE { get; set; } - - /// - /// 部门 - /// - [Description("部门")] - [DataFieldForeignKey("Nav_Department")] - public Guid? DEPARTMENT_ID { get; set; } - - /// - /// 部门 - /// - [Description("部门")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public T_FM_DEPARTMENT Nav_Department { get; set; } - - /// - /// 提交人 - /// - [Description("提交人")] - [DataFieldForeignKey("Nav_User")] - public Guid USER_ID { get; set; } - - /// - /// 提交人 - /// - [Description("提交人")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public T_FM_USER Nav_User { get; set; } - - /// - /// 期数 - /// - [Description("期数")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public int COUNTNUM { get; set; } - - /// - /// 坡岸处理 - /// - [Description("坡岸处理")] - public ICollection Nav_Files_Sub { get; set; } - - /// - /// 隐蔽工程 - /// - [Description("隐蔽工程")] - public ICollection Nav_Files_Proj { get; set; } - - /// - /// 附件 - /// - [Description("附件")] - public ICollection Nav_Files { get; set; } - - /// - /// 冲刷情况 - /// - [Description("冲刷情况")] - [FormFieldEdit] - [FormFieldTable] - [FormFieldQuery] - public WashSituaction? RESULT { get; set; } - - /// - /// 状态 - /// - [Description("状态")] - [FormFieldQuery] - public PFStandardStatus STATUS { get; set; } - } -} \ No newline at end of file diff --git a/APT.MS.Domain/Entities/SC/TL/T_TL_PROJECT_SLOPEBANK_FILE.cs b/APT.MS.Domain/Entities/SC/TL/T_TL_PROJECT_SLOPEBANK_FILE.cs deleted file mode 100644 index 2448703..0000000 --- a/APT.MS.Domain/Entities/SC/TL/T_TL_PROJECT_SLOPEBANK_FILE.cs +++ /dev/null @@ -1,44 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.Infrastructure.Core; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace APT.MS.Domain.Entities.TL -{ - /// - /// 子坝坡岸处理 附件 - /// - [Description("子坝坡岸处理 附件")] - public class T_TL_PROJECT_SLOPEBANK_FILE : MesEntityBase - { - /// - /// 子坝坡岸处理 - /// - [Description("子坝坡岸处理")] - [DataFieldForeignKey("Nav_SlopeBank", "Nav_Files")] - public Guid SLOPEBANK_ID { get; set; } - - /// - /// 子坝坡岸处理 - /// - [Description("子坝坡岸处理")] - public virtual T_TL_PROJECT_SLOPEBANK Nav_SlopeBank { get; set; } - - /// - /// 文件ID - /// - [Description("文件")] - [DataFieldForeignKey("Nav_ImgFile")] - public Guid IMG_FILE_ID { get; set; } - - /// - /// 导航属性:文件 - /// - [Description("导航属性:文件")] - public virtual T_PF_IMG_FILE Nav_ImgFile { get; set; } - } -} diff --git a/APT.MS.Domain/Entities/SC/TL/T_TL_PROJECT_SLOPEBANK_PROJ_FILE.cs b/APT.MS.Domain/Entities/SC/TL/T_TL_PROJECT_SLOPEBANK_PROJ_FILE.cs deleted file mode 100644 index d69114d..0000000 --- a/APT.MS.Domain/Entities/SC/TL/T_TL_PROJECT_SLOPEBANK_PROJ_FILE.cs +++ /dev/null @@ -1,44 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.Infrastructure.Core; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace APT.MS.Domain.Entities.TL -{ - /// - /// 隐蔽工程 附件 - /// - [Description("隐蔽工程 附件")] - public class T_TL_PROJECT_SLOPEBANK_PROJ_FILE : MesEntityBase - { - /// - /// 子坝坡岸处理 - /// - [Description("子坝坡岸处理")] - [DataFieldForeignKey("Nav_SlopeBank", "Nav_Files_Proj")] - public Guid SLOPEBANK_ID { get; set; } - - /// - /// 子坝坡岸处理 - /// - [Description("子坝坡岸处理")] - public virtual T_TL_PROJECT_SLOPEBANK Nav_SlopeBank { get; set; } - - /// - /// 文件ID - /// - [Description("文件")] - [DataFieldForeignKey("Nav_ImgFile")] - public Guid IMG_FILE_ID { get; set; } - - /// - /// 导航属性:文件 - /// - [Description("导航属性:文件")] - public virtual T_PF_IMG_FILE Nav_ImgFile { get; set; } - } -} diff --git a/APT.MS.Domain/Entities/SC/TL/T_TL_PROJECT_SLOPEBANK_SUB_FILE.cs b/APT.MS.Domain/Entities/SC/TL/T_TL_PROJECT_SLOPEBANK_SUB_FILE.cs deleted file mode 100644 index fb303ab..0000000 --- a/APT.MS.Domain/Entities/SC/TL/T_TL_PROJECT_SLOPEBANK_SUB_FILE.cs +++ /dev/null @@ -1,44 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.Infrastructure.Core; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace APT.MS.Domain.Entities.TL -{ - /// - /// 坡岸处理 附件 - /// - [Description("坡岸处理 附件")] - public class T_TL_PROJECT_SLOPEBANK_SUB_FILE : MesEntityBase - { - /// - /// 子坝坡岸处理 - /// - [Description("子坝坡岸处理")] - [DataFieldForeignKey("Nav_SlopeBank", "Nav_Files_Sub")] - public Guid SLOPEBANK_ID { get; set; } - - /// - /// 子坝坡岸处理 - /// - [Description("子坝坡岸处理")] - public virtual T_TL_PROJECT_SLOPEBANK Nav_SlopeBank { get; set; } - - /// - /// 文件ID - /// - [Description("文件")] - [DataFieldForeignKey("Nav_ImgFile")] - public Guid IMG_FILE_ID { get; set; } - - /// - /// 导航属性:文件 - /// - [Description("导航属性:文件")] - public virtual T_PF_IMG_FILE Nav_ImgFile { get; set; } - } -} diff --git a/APT.MS.Domain/Entities/SC/TL/T_TL_QUALITY_CHECK.cs b/APT.MS.Domain/Entities/SC/TL/T_TL_QUALITY_CHECK.cs deleted file mode 100644 index bcd0fef..0000000 --- a/APT.MS.Domain/Entities/SC/TL/T_TL_QUALITY_CHECK.cs +++ /dev/null @@ -1,103 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TL -{ - /// - /// 子坝质量验收 - /// - [Description("子坝质量验收")] - [DataRuleField("DEPARTMENT_ID")] - public class T_TL_QUALITY_CHECK : MesEntityBase - { - /// - /// 项目编号 - /// - [CUnique] - [CodeRule((int)PFCodeRuleType.尾矿库)] - [Description("项目编号")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(50)] - public string CODE { get; set; } - - /// - /// 工程名称 - /// - [Description("工程名称")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(200)] - public string NAME { get; set; } - - /// - /// 尾矿库名称 冗余 - /// - [Description("尾矿库名称")] - [DataFieldLength(200)] - [FormFieldTable] - public string TAILING_NAME { get; set; } - - /// - /// 尾矿库名称 - /// - [Description("尾矿库名称")] - [DataFieldForeignKey("Nav_Tailing")] - public Guid? TAILING_ID { get; set; } - - /// - /// 尾矿库 - /// - [Description("尾矿库")] - [FormFieldEdit] - public T_TL_TAILING Nav_Tailing { get; set; } - - /// - /// 部门 - /// - [Description("部门")] - [DataFieldForeignKey("Nav_Department")] - public Guid? DEPARTMENT_ID { get; set; } - - /// - /// 部门 - /// - [Description("部门")] - public T_FM_DEPARTMENT Nav_Department { get; set; } - - /// - /// 提交人 - /// - [Description("提交人")] - [DataFieldForeignKey("Nav_User")] - public Guid USER_ID { get; set; } - - /// - /// 提交人 - /// - [Description("提交人")] - public T_FM_USER Nav_User { get; set; } - - /// - /// 子坝质量验收记录 - /// - [Description("子坝质量验收记录")] - public ICollection Nav_Files { get; set; } - - /// - /// 状态 - /// - [Description("状态")] - [FormFieldQuery] - [FormFieldTable] - public PFStandardStatus STATUS { get; set; } - } -} \ No newline at end of file diff --git a/APT.MS.Domain/Entities/SC/TL/T_TL_QUALITY_CHECK_FILE.cs b/APT.MS.Domain/Entities/SC/TL/T_TL_QUALITY_CHECK_FILE.cs deleted file mode 100644 index a449644..0000000 --- a/APT.MS.Domain/Entities/SC/TL/T_TL_QUALITY_CHECK_FILE.cs +++ /dev/null @@ -1,44 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.Infrastructure.Core; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace APT.MS.Domain.Entities.TL -{ - /// - /// 子坝质量验收记录 - /// - [Description("子坝质量验收记录")] - public class T_TL_QUALITY_CHECK_FILE : MesEntityBase - { - /// - /// 子坝质量验收记录 - /// - [Description("子坝质量验收记录")] - [DataFieldForeignKey("Nav_QualityCheck", "Nav_Files")] - public Guid QUALITY_ID { get; set; } - - /// - /// 子坝质量验收 - /// - [Description("子坝质量验收")] - public virtual T_TL_QUALITY_CHECK Nav_QualityCheck { get; set; } - - /// - /// 文件ID - /// - [Description("文件")] - [DataFieldForeignKey("Nav_ImgFile")] - public Guid IMG_FILE_ID { get; set; } - - /// - /// 导航属性:文件 - /// - [Description("导航属性:文件")] - public virtual T_PF_IMG_FILE Nav_ImgFile { get; set; } - } -} diff --git a/APT.MS.Domain/Entities/SC/TL/T_TL_REQUIRE.cs b/APT.MS.Domain/Entities/SC/TL/T_TL_REQUIRE.cs deleted file mode 100644 index 0b0cf08..0000000 --- a/APT.MS.Domain/Entities/SC/TL/T_TL_REQUIRE.cs +++ /dev/null @@ -1,46 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TL -{ - /// - /// 制定要求 - /// - [Description("制定要求")] - public class T_TL_REQUIRE : MesEntityBase - { - /// - /// 工程名称 - /// - [Description("工程名称")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(200)] - public string NAME { get; set; } - - /// - /// 项目编号 - /// - [Description("项目编号")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(50)] - public string CODE { get; set; } - - /// - /// 启用标志 - /// - [Description("启用标志")] - [EnumName("FMEnableStatusEnum")] - public FMEnableStatusEnum ENABLE_STATUS { get; set; } - - } -} \ No newline at end of file diff --git a/APT.MS.Domain/Entities/SC/TL/T_TL_TAILING.cs b/APT.MS.Domain/Entities/SC/TL/T_TL_TAILING.cs deleted file mode 100644 index cf0e862..0000000 --- a/APT.MS.Domain/Entities/SC/TL/T_TL_TAILING.cs +++ /dev/null @@ -1,56 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TL -{ - /// - /// 尾矿库名称 - /// - [Description("尾矿库名称")] - public class T_TL_TAILING : MesEntityBase - { - /// - /// 名称 - /// - [Description("名称")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(200)] - public string NAME { get; set; } - - /// - /// 编码 - /// - [Description("编码")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(50)] - public string CODE { get; set; } - - /// - /// 位置 - /// - [Description("位置")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(100)] - public string LOCATION { get; set; } - - /// - /// 状态 - /// - [Description("状态")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public TailingState STATE { get; set; } - } -} \ No newline at end of file diff --git a/APT.MS.Domain/Entities/SC/TL/T_TL_WATCH_DAYLY.cs b/APT.MS.Domain/Entities/SC/TL/T_TL_WATCH_DAYLY.cs deleted file mode 100644 index 5ebbb18..0000000 --- a/APT.MS.Domain/Entities/SC/TL/T_TL_WATCH_DAYLY.cs +++ /dev/null @@ -1,105 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TL -{ - /// - /// 日常观测 - /// - [Description("日常观测")] - [DataRuleField("DEPARTMENT_ID")] - public class T_TL_WATCH_DAYLY : MesEntityBase - { - /// - /// 尾矿库名称 冗余 - /// - [Description("尾矿库名称")] - [DataFieldLength(200)] - [FormFieldTable] - public string TAILING_NAME { get; set; } - - /// - /// 尾矿库名称 - /// - [Description("尾矿库名称")] - [DataFieldForeignKey("Nav_Tailing")] - public Guid TAILING_ID { get; set; } - - /// - /// 尾矿库 - /// - [Description("尾矿库")] - [FormFieldEdit] - public T_TL_TAILING Nav_Tailing { get; set; } - - /// - /// 汇总表 - /// - [Description("汇总表")] - [DataFieldForeignKey("Nav_Sum")] - public Guid SUM_ID { get; set; } - - /// - /// 汇总表 - /// - [Description("汇总表")] - public T_TL_WATCH_SUM Nav_Sum { get; set; } - - /// - /// 日期 - /// - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [Description("日期")] - public DateTime DATE { get; set; } - - /// - /// 触发ID 用于判断重复粗发 - /// - [Description("触发ID")] - public Guid? PLAN_ID { get; set; } - - /// - /// 部门 - /// - [Description("部门")] - public Guid? DEPARTMENT_ID { get; set; } - - /// - /// 用户 触发接收人(登记人) - /// - [Description("用户")] - [DataFieldForeignKey("Nav_User")] - public Guid? USER_ID { get; set; } - - /// - /// 提交人 - /// - [Description("提交人")] - [FormFieldQuery] - [FormFieldTable] - public T_FM_USER Nav_User { get; set; } - - /// - /// 记录表 - /// - [Description("记录表")] - [FormFieldEdit] - public ICollection Nav_ListDetail { get; set; } - - /// - /// 状态 - /// - [Description("状态")] - [FormFieldQuery] - [FormFieldTable] - public PFStandardStatus STATUS { get; set; } - } -} \ No newline at end of file diff --git a/APT.MS.Domain/Entities/SC/TL/T_TL_WATCH_DAYLY_DETAIL.cs b/APT.MS.Domain/Entities/SC/TL/T_TL_WATCH_DAYLY_DETAIL.cs deleted file mode 100644 index a25011d..0000000 --- a/APT.MS.Domain/Entities/SC/TL/T_TL_WATCH_DAYLY_DETAIL.cs +++ /dev/null @@ -1,112 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TL -{ - /// - /// 日常观测明细 - /// - [Description("日常观测明细")] - public class T_TL_WATCH_DAYLY_DETAIL : MesEntityBase - { - /// - /// 观测时间(时) - /// - [FormFieldEdit] - [Description("观测时间(时)")] - public DateTime? DATE { get; set; } - - /// - /// 尾矿库名称 冗余 - /// - [Description("尾矿库名称")] - [DataFieldLength(200)] - [FormFieldTable] - public string TAILING_NAME { get; set; } - - /// - /// 尾矿库名称 - /// - [Description("尾矿库名称")] - [DataFieldForeignKey("Nav_Tailing")] - public Guid TAILING_ID { get; set; } - - /// - /// 尾矿库 - /// - [Description("尾矿库")] - public T_TL_TAILING Nav_Tailing { get; set; } - - /// - /// 日常观测记录表 - /// - [Description("日常观测记录表")] - [DataFieldForeignKey("Nav_Dayly", "Nav_ListDetail")] - public Guid DAYLY_ID { get; set; } - - /// - /// 日常观测记录表 - /// - [Description("日常观测记录表")] - public T_TL_WATCH_DAYLY Nav_Dayly { get; set; } - - /// - /// 汇总表 - /// - [Description("汇总表")] - [DataFieldForeignKey("Nav_Sum")] - public Guid SUM_ID { get; set; } - - /// - /// 汇总表 - /// - [Description("汇总表")] - public T_TL_WATCH_SUM Nav_Sum { get; set; } - - /// - /// 干滩长度/m - /// - [Description("干滩长度/m")] - [FormFieldEdit] - public decimal? LONG { get; set; } - - /// - /// 库水位/m - /// - [Description("库水位/m")] - [FormFieldEdit] - public decimal? WATERLINE { get; set; } - - /// - /// 降雨量/mm - /// - [Description("降雨量/mm")] - [FormFieldEdit] - public decimal? DREEP { get; set; } - - /// - /// 滩顶高程/m - /// - [Description("滩顶高程/m")] - [FormFieldEdit] - public decimal? HIGHTEST { get; set; } - - /// - /// 安全超高/m - /// - [Description("安全超高/m")] - [FormFieldEdit] - public decimal? HIGHT_MORE { get; set; } - - /// - /// 观测人 如果 不是登记人 要给他确认 - /// - [Description("观测人")] - public ICollection Nav_ListUser { get; set; } - } -} \ No newline at end of file diff --git a/APT.MS.Domain/Entities/SC/TL/T_TL_WATCH_DAYLY_DETAIL_USER.cs b/APT.MS.Domain/Entities/SC/TL/T_TL_WATCH_DAYLY_DETAIL_USER.cs deleted file mode 100644 index efa8a50..0000000 --- a/APT.MS.Domain/Entities/SC/TL/T_TL_WATCH_DAYLY_DETAIL_USER.cs +++ /dev/null @@ -1,51 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TL -{ - /// - /// 日常观测明细 - /// - [Description("日常观测明细")] - public class T_TL_WATCH_DAYLY_DETAIL_USER : MesEntityBase - { - /// - /// 日常观测明细 - /// - [Description("日常观测明细")] - [DataFieldForeignKey("Nav_DaylyDetail", "Nav_ListUser")] - public Guid DAYLY_DETAIL_ID { get; set; } - - /// - /// 日常观测明细 - /// - [Description("日常观测明细")] - [FormFieldEdit] - public T_TL_WATCH_DAYLY_DETAIL Nav_DaylyDetail { get; set; } - - /// - /// 用户 - /// - [Description("用户")] - [DataFieldForeignKey("Nav_User")] - public Guid USER_ID { get; set; } - - /// - /// 用户 - /// - [Description("用户")] - [FormFieldEdit] - public T_FM_USER Nav_User { get; set; } - - /// - /// 是否确认 默认是 如果观测人 不是 登记人 需要再次确认 - /// - [Description("是否确认")] - public bool ISCHECK { get; set; } - } -} \ No newline at end of file diff --git a/APT.MS.Domain/Entities/SC/TL/T_TL_WATCH_LINE.cs b/APT.MS.Domain/Entities/SC/TL/T_TL_WATCH_LINE.cs deleted file mode 100644 index a3a90fe..0000000 --- a/APT.MS.Domain/Entities/SC/TL/T_TL_WATCH_LINE.cs +++ /dev/null @@ -1,104 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TL -{ - /// - /// 浸润线观测 - /// - [Description("浸润线观测")] - public class T_TL_WATCH_LINE : MesEntityBase - { - /// - /// 尾矿库名称 冗余 - /// - [Description("尾矿库名称")] - [DataFieldLength(200)] - [FormFieldTable] - public string TAILING_NAME { get; set; } - - /// - /// 尾矿库名称 - /// - [Description("尾矿库名称")] - [DataFieldForeignKey("Nav_Tailing")] - [FormFieldEdit] - public Guid TAILING_ID { get; set; } - - /// - /// 尾矿库 - /// - [Description("尾矿库")] - public T_TL_TAILING Nav_Tailing { get; set; } - - /// - /// 汇总表 - /// - [Description("汇总表")] - [DataFieldForeignKey("Nav_Sum")] - public Guid SUM_ID { get; set; } - - /// - /// 汇总表 - /// - [Description("汇总表")] - public T_TL_WATCH_SUM Nav_Sum { get; set; } - - /// - /// 日期 - /// - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [Description("日期")] - public DateTime DATE { get; set; } - - /// - /// 触发ID 用于判断重复粗发 - /// - [Description("触发ID")] - public Guid? PLAN_ID { get; set; } - - /// - /// 部门 - /// - [Description("部门")] - public Guid? DEPARTMENT_ID { get; set; } - - /// - /// 用户 触发接收人(登记人) - /// - [Description("用户")] - [DataFieldForeignKey("Nav_User")] - public Guid? USER_ID { get; set; } - - /// - /// 提交人 - /// - [Description("提交人")] - [FormFieldQuery] - [FormFieldTable] - public T_FM_USER Nav_User { get; set; } - - /// - /// 记录表 - /// - [Description("记录表")] - [FormFieldEdit] - public ICollection Nav_ListDetail { get; set; } - - /// - /// 状态 - /// - [Description("状态")] - [FormFieldQuery] - [FormFieldTable] - public PFStandardStatus STATUS { get; set; } - } -} \ No newline at end of file diff --git a/APT.MS.Domain/Entities/SC/TL/T_TL_WATCH_LINE_DETAIL.cs b/APT.MS.Domain/Entities/SC/TL/T_TL_WATCH_LINE_DETAIL.cs deleted file mode 100644 index ad1e15b..0000000 --- a/APT.MS.Domain/Entities/SC/TL/T_TL_WATCH_LINE_DETAIL.cs +++ /dev/null @@ -1,99 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TL -{ - /// - /// 浸润线观测明细 - /// - [Description("浸润线观测明细")] - public class T_TL_WATCH_LINE_DETAIL : MesEntityBase - { - /// - /// 观测时间(时) - /// - [FormFieldEdit] - [Description("观测时间(时)")] - public DateTime? DATE { get; set; } - - /// - /// 尾矿库名称 冗余 - /// - [Description("尾矿库名称")] - [DataFieldLength(200)] - [FormFieldTable] - public string TAILING_NAME { get; set; } - - /// - /// 尾矿库名称 - /// - [Description("尾矿库名称")] - [DataFieldForeignKey("Nav_Tailing")] - public Guid TAILING_ID { get; set; } - - /// - /// 尾矿库 - /// - [Description("尾矿库")] - public T_TL_TAILING Nav_Tailing { get; set; } - - /// - /// 浸润线观测 - /// - [Description("浸润线观测")] - [DataFieldForeignKey("Nav_Line", "Nav_ListDetail")] - public Guid LINE_ID { get; set; } - - /// - /// 浸润线观测 - /// - [Description("浸润线观测")] - public T_TL_WATCH_LINE Nav_Line { get; set; } - - /// - /// 汇总表 - /// - [Description("汇总表")] - [DataFieldForeignKey("Nav_Sum")] - public Guid SUM_ID { get; set; } - - /// - /// 汇总表 - /// - [Description("汇总表")] - public T_TL_WATCH_SUM Nav_Sum { get; set; } - - /// - /// 浸润线观测配置 - /// - [FormFieldEdit] - [Description("浸润线观测配置")] - [DataFieldForeignKey("Nav_WatchLinePoint")] - public Guid WATCH_LINE_POINT_ID { get; set; } - - /// - /// 浸润线观测配置 - /// - [Description("浸润线观测配置")] - [FormFieldEdit] - public T_TL_WATCH_LINE_POINT Nav_WatchLinePoint { get; set; } - - /// - /// 浸润线观测配置 - /// - [Description("浸润线埋深/m")] - [FormFieldEdit] - public decimal? DEEP { get; set; } - - /// - /// 观测人 如果 不是登记人 要给他确认 - /// - [Description("观测人")] - public ICollection Nav_ListUser { get; set; } - } -} \ No newline at end of file diff --git a/APT.MS.Domain/Entities/SC/TL/T_TL_WATCH_LINE_DETAIL_USER.cs b/APT.MS.Domain/Entities/SC/TL/T_TL_WATCH_LINE_DETAIL_USER.cs deleted file mode 100644 index a28aa73..0000000 --- a/APT.MS.Domain/Entities/SC/TL/T_TL_WATCH_LINE_DETAIL_USER.cs +++ /dev/null @@ -1,51 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TL -{ - /// - /// 浸润线观测 - /// - [Description("浸润线观测")] - public class T_TL_WATCH_LINE_DETAIL_USER : MesEntityBase - { - /// - /// 浸润线观测明细 - /// - [Description("浸润线观测明细")] - [DataFieldForeignKey("Nav_LineDetail", "Nav_ListUser")] - public Guid LINE_DETAIL_ID { get; set; } - - /// - /// 浸润线观测明细 - /// - [Description("浸润线观测明细")] - [FormFieldEdit] - public T_TL_WATCH_LINE_DETAIL Nav_LineDetail { get; set; } - - /// - /// 用户 - /// - [Description("用户")] - [DataFieldForeignKey("Nav_User")] - public Guid USER_ID { get; set; } - - /// - /// 用户 - /// - [Description("用户")] - [FormFieldEdit] - public T_FM_USER Nav_User { get; set; } - - /// - /// 是否确认 默认是 如果观测人 不是 登记人 需要再次确认 - /// - [Description("是否确认")] - public bool ISCHECK { get; set; } - } -} \ No newline at end of file diff --git a/APT.MS.Domain/Entities/SC/TL/T_TL_WATCH_LINE_POINT.cs b/APT.MS.Domain/Entities/SC/TL/T_TL_WATCH_LINE_POINT.cs deleted file mode 100644 index 652fb0a..0000000 --- a/APT.MS.Domain/Entities/SC/TL/T_TL_WATCH_LINE_POINT.cs +++ /dev/null @@ -1,77 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TL -{ - /// - /// 浸润线观测配置 - /// - [Description("浸润线观测配置")] - public class T_TL_WATCH_LINE_POINT : MesEntityBase - { - /// - /// 尾矿库名称 冗余 - /// - [Description("尾矿库名称")] - [DataFieldLength(200)] - [FormFieldTable] - public string TAILING_NAME { get; set; } - - /// - /// 尾矿库名称 - /// - [Description("尾矿库名称")] - [DataFieldForeignKey("Nav_Tailing")] - public Guid TAILING_ID { get; set; } - - /// - /// 尾矿库 - /// - [Description("尾矿库")] - [FormFieldEdit] - public T_TL_TAILING Nav_Tailing { get; set; } - - /// - /// 位置 - /// - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(200)] - [Description("位置")] - public string LOCATION { get; set; } - - /// - /// 孔号 - /// - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(200)] - [Description("孔号")] - public string POINT_NO { get; set; } - - /// - /// 孔深/m - /// - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [Description("孔深/m")] - public decimal? POINT_DEEP { get; set; } - - /// - /// 启用标志 - /// - [Description("启用标志")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public FMEnableStatusEnum ENABLE_STATUS { get; set; } - } -} \ No newline at end of file diff --git a/APT.MS.Domain/Entities/SC/TL/T_TL_WATCH_MOVE.cs b/APT.MS.Domain/Entities/SC/TL/T_TL_WATCH_MOVE.cs deleted file mode 100644 index ccecce5..0000000 --- a/APT.MS.Domain/Entities/SC/TL/T_TL_WATCH_MOVE.cs +++ /dev/null @@ -1,105 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TL -{ - /// - /// 位移观测 - /// - [Description("位移观测")] - public class T_TL_WATCH_MOVE : MesEntityBase - { - /// - /// 尾矿库名称 冗余 - /// - [Description("尾矿库名称")] - [DataFieldLength(200)] - [FormFieldTable] - public string TAILING_NAME { get; set; } - - /// - /// 尾矿库名称 - /// - [Description("尾矿库名称")] - [DataFieldForeignKey("Nav_Tailing")] - public Guid TAILING_ID { get; set; } - - /// - /// 尾矿库 - /// - [Description("尾矿库")] - [FormFieldEdit] - public T_TL_TAILING Nav_Tailing { get; set; } - - /// - /// 汇总表 - /// - [Description("汇总表")] - [DataFieldForeignKey("Nav_Sum")] - public Guid SUM_ID { get; set; } - - /// - /// 汇总表 - /// - [Description("汇总表")] - public T_TL_WATCH_SUM Nav_Sum { get; set; } - - /// - /// 日期 - /// - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [Description("日期")] - public DateTime DATE { get; set; } - - - /// - /// 触发ID 用于判断重复粗发 - /// - [Description("触发ID")] - public Guid? PLAN_ID { get; set; } - - /// - /// 部门 - /// - [Description("部门")] - public Guid? DEPARTMENT_ID { get; set; } - - /// - /// 用户 触发接收人(登记人) - /// - [Description("用户")] - [DataFieldForeignKey("Nav_User")] - public Guid? USER_ID { get; set; } - - /// - /// 提交人 - /// - [Description("提交人")] - [FormFieldQuery] - [FormFieldTable] - public T_FM_USER Nav_User { get; set; } - - /// - /// 记录表 - /// - [Description("记录表")] - [FormFieldEdit] - public ICollection Nav_ListDetail { get; set; } - - /// - /// 状态 - /// - [Description("状态")] - [FormFieldQuery] - [FormFieldTable] - public PFStandardStatus STATUS { get; set; } - } -} \ No newline at end of file diff --git a/APT.MS.Domain/Entities/SC/TL/T_TL_WATCH_MOVE_DETAIL.cs b/APT.MS.Domain/Entities/SC/TL/T_TL_WATCH_MOVE_DETAIL.cs deleted file mode 100644 index 701ae95..0000000 --- a/APT.MS.Domain/Entities/SC/TL/T_TL_WATCH_MOVE_DETAIL.cs +++ /dev/null @@ -1,105 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TL -{ - /// - /// 位移观测明细 - /// - [Description("位移观测明细")] - public class T_TL_WATCH_MOVE_DETAIL : MesEntityBase - { - /// - /// 观测时间(时) - /// - [FormFieldEdit] - [Description("观测时间(时)")] - public DateTime? DATE { get; set; } - - /// - /// 尾矿库名称 冗余 - /// - [Description("尾矿库名称")] - [DataFieldLength(200)] - [FormFieldTable] - public string TAILING_NAME { get; set; } - - /// - /// 尾矿库名称 - /// - [Description("尾矿库名称")] - [DataFieldForeignKey("Nav_Tailing")] - public Guid TAILING_ID { get; set; } - - /// - /// 尾矿库 - /// - [Description("尾矿库")] - public T_TL_TAILING Nav_Tailing { get; set; } - - /// - /// 位移观测 - /// - [Description("位移观测")] - [DataFieldForeignKey("Nav_Move", "Nav_ListDetail")] - public Guid MOVE_ID { get; set; } - - /// - /// 位移观测 - /// - [Description("位移观测")] - public T_TL_WATCH_MOVE Nav_Move { get; set; } - - /// - /// 汇总表 - /// - [Description("汇总表")] - [DataFieldForeignKey("Nav_Sum")] - public Guid SUM_ID { get; set; } - - /// - /// 汇总表 - /// - [Description("汇总表")] - public T_TL_WATCH_SUM Nav_Sum { get; set; } - - /// - /// 位移观测配置 - /// - [Description("位移观测配置")] - [DataFieldForeignKey("Nav_WatchMovePoint")] - public Guid? WATCH_MOVE_POINT_ID { get; set; } - - /// - /// 位移观测配置 - /// - [Description("位移观测配置")] - [FormFieldEdit] - public T_TL_WATCH_MOVE_POINT Nav_WatchMovePoint { get; set; } - - /// - /// 观测值X/Y/Z - /// - [Description("观测值X/Y/Z")] - [FormFieldEdit] - public string LOOKPOINT { get; set; } - - /// - /// 变化量△X/△Y/△Z - /// - [Description("变化量△X/△Y/△Z")] - [FormFieldEdit] - public string CHANGELOOKPOINT { get; set; } - - /// - /// 观测人 如果 不是登记人 要给他确认 - /// - [Description("观测人")] - public ICollection Nav_ListUser { get; set; } - } -} \ No newline at end of file diff --git a/APT.MS.Domain/Entities/SC/TL/T_TL_WATCH_MOVE_DETAIL_USER.cs b/APT.MS.Domain/Entities/SC/TL/T_TL_WATCH_MOVE_DETAIL_USER.cs deleted file mode 100644 index fb0f411..0000000 --- a/APT.MS.Domain/Entities/SC/TL/T_TL_WATCH_MOVE_DETAIL_USER.cs +++ /dev/null @@ -1,51 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TL -{ - /// - /// 位移观测明细 - /// - [Description("位移观测明细")] - public class T_TL_WATCH_MOVE_DETAIL_USER : MesEntityBase - { - /// - /// 位移观测明细 - /// - [Description("位移观测明细")] - [DataFieldForeignKey("Nav_MoveDetail", "Nav_ListUser")] - public Guid MOVE_DETAIL_ID { get; set; } - - /// - /// 位移观测明细 - /// - [Description("位移观测明细")] - [FormFieldEdit] - public T_TL_WATCH_MOVE_DETAIL Nav_MoveDetail { get; set; } - - /// - /// 用户 - /// - [Description("用户")] - [DataFieldForeignKey("Nav_User")] - public Guid USER_ID { get; set; } - - /// - /// 用户 - /// - [Description("用户")] - [FormFieldEdit] - public T_FM_USER Nav_User { get; set; } - - /// - /// 是否确认 默认是 如果观测人 不是 登记人 需要再次确认 - /// - [Description("是否确认")] - public bool ISCHECK { get; set; } - } -} \ No newline at end of file diff --git a/APT.MS.Domain/Entities/SC/TL/T_TL_WATCH_MOVE_POINT.cs b/APT.MS.Domain/Entities/SC/TL/T_TL_WATCH_MOVE_POINT.cs deleted file mode 100644 index 4a85ce9..0000000 --- a/APT.MS.Domain/Entities/SC/TL/T_TL_WATCH_MOVE_POINT.cs +++ /dev/null @@ -1,78 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TL -{ - /// - /// 位移观测配置 - /// - [Description("位移观测配置")] - public class T_TL_WATCH_MOVE_POINT : MesEntityBase - { - /// - /// 尾矿库名称 冗余 - /// - [Description("尾矿库名称")] - [DataFieldLength(200)] - [FormFieldTable] - public string TAILING_NAME { get; set; } - - /// - /// 尾矿库名称 - /// - [Description("尾矿库名称")] - [DataFieldForeignKey("Nav_Tailing")] - public Guid TAILING_ID { get; set; } - - /// - /// 尾矿库 - /// - [Description("尾矿库")] - [FormFieldEdit] - public T_TL_TAILING Nav_Tailing { get; set; } - - /// - /// 基准点号 - /// - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(200)] - [Description("基准点号")] - public string NAME_BASE { get; set; } - - /// - /// 原坐标X/Y/Z - /// - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(200)] - [Description("原坐标X/Y/Z")] - public string POINT_BASE { get; set; } - - /// - /// 观测点号 - /// - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [DataFieldLength(200)] - [Description("观测点号")] - public string NAME_WATCH { get; set; } - - /// - /// 启用标志 - /// - [Description("启用标志")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public FMEnableStatusEnum ENABLE_STATUS { get; set; } - } -} \ No newline at end of file diff --git a/APT.MS.Domain/Entities/SC/TL/T_TL_WATCH_PERCENT.cs b/APT.MS.Domain/Entities/SC/TL/T_TL_WATCH_PERCENT.cs deleted file mode 100644 index 8b25684..0000000 --- a/APT.MS.Domain/Entities/SC/TL/T_TL_WATCH_PERCENT.cs +++ /dev/null @@ -1,104 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums; -using APT.BaseData.Domain.Enums.PF; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TL -{ - /// - /// 坡比观测 - /// - [Description("坡比观测")] - public class T_TL_WATCH_PERCENT : MesEntityBase - { - /// - /// 尾矿库名称 冗余 - /// - [Description("尾矿库名称")] - [DataFieldLength(200)] - [FormFieldTable] - public string TAILING_NAME { get; set; } - - /// - /// 尾矿库名称 - /// - [Description("尾矿库名称")] - [DataFieldForeignKey("Nav_Tailing")] - public Guid TAILING_ID { get; set; } - - /// - /// 尾矿库 - /// - [Description("尾矿库")] - [FormFieldEdit] - public T_TL_TAILING Nav_Tailing { get; set; } - - /// - /// 汇总表 - /// - [Description("汇总表")] - [DataFieldForeignKey("Nav_Sum")] - public Guid SUM_ID { get; set; } - - /// - /// 汇总表 - /// - [Description("汇总表")] - public T_TL_WATCH_SUM Nav_Sum { get; set; } - - /// - /// 日期 - /// - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [Description("日期")] - public DateTime DATE { get; set; } - - /// - /// 触发ID 用于判断重复粗发 - /// - [Description("触发ID")] - public Guid? PLAN_ID { get; set; } - - /// - /// 部门 - /// - [Description("部门")] - public Guid? DEPARTMENT_ID { get; set; } - - /// - /// 用户 触发接收人(登记人) - /// - [Description("用户")] - [DataFieldForeignKey("Nav_User")] - public Guid? USER_ID { get; set; } - - /// - /// 提交人 - /// - [Description("提交人")] - [FormFieldQuery] - [FormFieldTable] - public T_FM_USER Nav_User { get; set; } - - /// - /// 记录表 - /// - [Description("记录表")] - [FormFieldEdit] - public ICollection Nav_ListDetail { get; set; } - - /// - /// 状态 - /// - [Description("状态")] - [FormFieldQuery] - [FormFieldTable] - public PFStandardStatus STATUS { get; set; } - } -} \ No newline at end of file diff --git a/APT.MS.Domain/Entities/SC/TL/T_TL_WATCH_PERCENT_DETAIL.cs b/APT.MS.Domain/Entities/SC/TL/T_TL_WATCH_PERCENT_DETAIL.cs deleted file mode 100644 index 105295e..0000000 --- a/APT.MS.Domain/Entities/SC/TL/T_TL_WATCH_PERCENT_DETAIL.cs +++ /dev/null @@ -1,91 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TL -{ - /// - /// 坡比观测明细 - /// - [Description("坡比观测明细")] - public class T_TL_WATCH_PERCENT_DETAIL : MesEntityBase - { - /// - /// 观测时间(时) - /// - [FormFieldEdit] - [Description("观测时间(时)")] - public DateTime? DATE { get; set; } - - /// - /// 尾矿库名称 冗余 - /// - [Description("尾矿库名称")] - [DataFieldLength(200)] - [FormFieldTable] - public string TAILING_NAME { get; set; } - - /// - /// 尾矿库名称 - /// - [Description("尾矿库名称")] - [DataFieldForeignKey("Nav_Tailing")] - public Guid TAILING_ID { get; set; } - - /// - /// 尾矿库 - /// - [Description("尾矿库")] - public T_TL_TAILING Nav_Tailing { get; set; } - - /// - /// 坡比观测记录表 - /// - [Description("坡比观测记录表")] - [DataFieldForeignKey("Nav_Percent", "Nav_ListDetail")] - public Guid PERCENT_ID { get; set; } - - /// - /// 坡比观测记录表 - /// - [Description("坡比观测记录表")] - public T_TL_WATCH_PERCENT Nav_Percent { get; set; } - - /// - /// 汇总表 - /// - [Description("汇总表")] - [DataFieldForeignKey("Nav_Sum")] - public Guid SUM_ID { get; set; } - - /// - /// 汇总表 - /// - [Description("汇总表")] - public T_TL_WATCH_SUM Nav_Sum { get; set; } - - /// - /// 内坡比 - /// - [FormFieldEdit] - [Description("内坡比")] - public string INT_PERCENT { get; set; } - - /// - /// 外坡比 - /// - [FormFieldEdit] - [Description("外坡比")] - public string OUT_PERCENT { get; set; } - - /// - /// 观测人 如果 不是登记人 要给他确认 - /// - [Description("观测人")] - public ICollection Nav_ListUser { get; set; } - } -} \ No newline at end of file diff --git a/APT.MS.Domain/Entities/SC/TL/T_TL_WATCH_PERCENT_DETAIL_USER.cs b/APT.MS.Domain/Entities/SC/TL/T_TL_WATCH_PERCENT_DETAIL_USER.cs deleted file mode 100644 index ca4ba01..0000000 --- a/APT.MS.Domain/Entities/SC/TL/T_TL_WATCH_PERCENT_DETAIL_USER.cs +++ /dev/null @@ -1,51 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TL -{ - /// - /// 坡比观测明细 - /// - [Description("坡比观测明细")] - public class T_TL_WATCH_PERCENT_DETAIL_USER : MesEntityBase - { - /// - /// 坡比观测明细 - /// - [Description("坡比观测明细")] - [DataFieldForeignKey("Nav_PercentDetail", "Nav_ListUser")] - public Guid PERCENT_DETAIL_ID { get; set; } - - /// - /// 坡比观测明细 - /// - [Description("坡比观测明细")] - [FormFieldEdit] - public T_TL_WATCH_PERCENT_DETAIL Nav_PercentDetail { get; set; } - - /// - /// 用户 - /// - [Description("用户")] - [DataFieldForeignKey("Nav_User")] - public Guid USER_ID { get; set; } - - /// - /// 用户 - /// - [Description("用户")] - [FormFieldEdit] - public T_FM_USER Nav_User { get; set; } - - /// - /// 是否确认 默认是 如果观测人 不是 登记人 需要再次确认 - /// - [Description("是否确认")] - public bool ISCHECK { get; set; } - } -} \ No newline at end of file diff --git a/APT.MS.Domain/Entities/SC/TL/T_TL_WATCH_PLAN_SET.cs b/APT.MS.Domain/Entities/SC/TL/T_TL_WATCH_PLAN_SET.cs deleted file mode 100644 index 95a4943..0000000 --- a/APT.MS.Domain/Entities/SC/TL/T_TL_WATCH_PLAN_SET.cs +++ /dev/null @@ -1,147 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TL -{ - /// - /// 人工观测 触发规则设置表 - /// - [Description("人工观测 触发规则设置表")] - public class T_TL_WATCH_PLAN_SET : MesEntityBase - { - - /// - /// 尾矿库名称 冗余 - /// - [Description("尾矿库名称")] - [DataFieldLength(200)] - [FormFieldTable] - public string TAILING_NAME { get; set; } - - /// - /// 尾矿库名称 - /// - [Description("尾矿库名称")] - [DataFieldForeignKey("Nav_Tailing")] - public Guid TAILING_ID { get; set; } - - /// - /// 尾矿库 - /// - [Description("尾矿库")] - [FormFieldEdit] - public T_TL_TAILING Nav_Tailing { get; set; } - - /// - /// 编号 - /// - [CUnique] - [CodeRule((int)PFCodeRuleType.尾矿库)] - [Description("编号")] - [FormFieldTable] - [FormFieldEdit] - [DataFieldLength(50)] - public string CODE { get; set; } - - /// - /// 观测类型 - /// - [Description("观测类型")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public WatchType WATCHTYPE { get; set; } - - /// - /// 部门 - /// - [Description("部门")] - [DataFieldForeignKey("Nav_Department")] - public Guid DEPARTMENT_ID { get; set; } - - /// - /// 部门(部门级 就保存部门ID 班组级就保存班组ID 应该是同一个表) - /// - [Description("部门")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public T_FM_DEPARTMENT Nav_Department { get; set; } - - /// - /// 岗位 - /// - [Description("岗位")] - [DataFieldForeignKey("Nav_Post")] - public Guid POST_ID { get; set; } - - /// - /// 岗位 - /// - [Description("岗位")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public T_FM_USER_POST Nav_Post { get; set; } - - /// - /// 部门岗位人员 - /// - [Description("部门岗位人员")] - [DataFieldIngore] - public ICollection Nav_ListUser { get; set; } - - /// - /// 检查频率 - /// - [Description("检查频率")] - [EnumName("BSPLANCHECKFREQUENCYEnum")] - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - public BSPLANCHECKFREQUENCYEnum PLANCHECKFREQUENCY { get; set; } - - /// - /// 检查日期(日期 针对单次 有效) 例如:05-01,12-01 - /// - [Description("检查日期")] - [FormFieldEdit] - public string RUNDATA { get; set; } - - /// - /// 检查频率(日 针对每月/每季 有效) - /// - [Description("日")] - [FormFieldEdit] - public int? DATA { get; set; } - - /// - /// 检查频率(星期 针对每周 有效) - /// - [Description("星期")] - [EnumName("WEEKDATAEnum")] - [FormFieldEdit] - public WEEKDATAEnum? WEEKDATA { get; set; } - - /// - /// 跑批时间 - /// - [Description("跑批时间")] - [FormFieldEdit] - [FormFieldTable] - public DateTime RUNSETTIME { get; set; } - - /// - /// 启用标志 - /// - [Description("启用标志")] - [FormFieldTable] - [FormFieldEdit] - public FMEnableStatusEnum ENABLE_STATUS { get; set; } - } -} \ No newline at end of file diff --git a/APT.MS.Domain/Entities/SC/TL/T_TL_WATCH_SUM.cs b/APT.MS.Domain/Entities/SC/TL/T_TL_WATCH_SUM.cs deleted file mode 100644 index 0720621..0000000 --- a/APT.MS.Domain/Entities/SC/TL/T_TL_WATCH_SUM.cs +++ /dev/null @@ -1,104 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums; -using APT.Infrastructure.Core; -using APT.MS.Domain.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace APT.MS.Domain.Entities.TL -{ - /// - /// 人工观测汇总表 - /// - [Description("人工观测汇总表")] - public class T_TL_WATCH_SUM : MesEntityBase - { - /// - /// 尾矿库名称 冗余 - /// - [Description("尾矿库名称")] - [DataFieldLength(200)] - [FormFieldTable] - public string TAILING_NAME { get; set; } - - /// - /// 尾矿库名称 - /// - [Description("尾矿库名称")] - [DataFieldForeignKey("Nav_Tailing")] - public Guid TAILING_ID { get; set; } - - /// - /// 尾矿库 - /// - [Description("尾矿库")] - [FormFieldEdit] - public T_TL_TAILING Nav_Tailing { get; set; } - - /// - /// 日期 - /// - [FormFieldTable] - [FormFieldEdit] - [FormFieldQuery] - [Description("日期")] - public DateTime DATE { get; set; } - - /// - /// 日常观测 - /// - [Description("日常观测")] - [DataFieldIngore] - public ICollection Nav_ListDetailDayly { get; set; } - - /// - /// 日常观测 - /// - [Description("日常观测")] - [DataFieldIngore] - public ICollection Nav_ListSignDayly { get; set; } - - /// - /// 位移观测 - /// - [Description("位移观测")] - [DataFieldIngore] - public ICollection Nav_ListDetailMovd { get; set; } - - /// - /// 位移观测 - /// - [Description("位移观测")] - [DataFieldIngore] - public ICollection Nav_ListSignMovd { get; set; } - - /// - /// 浸润线观测 - /// - [Description("浸润线观测")] - [DataFieldIngore] - public ICollection Nav_ListDetailLine { get; set; } - - /// - /// 浸润线观测 - /// - [Description("浸润线观测")] - [DataFieldIngore] - public ICollection Nav_ListSignLine { get; set; } - - /// - /// 坡比观测 - /// - [Description("坡比观测")] - [DataFieldIngore] - public ICollection Nav_ListDetailPercent { get; set; } - - /// - /// 浸润线观测 - /// - [Description("坡比观测")] - [DataFieldIngore] - public ICollection Nav_ListSignPercent { get; set; } - } -} \ No newline at end of file diff --git a/APT.MS.Domain/IServices/AE/IAEAccidentEventReportService.cs b/APT.MS.Domain/IServices/AE/IAEAccidentEventReportService.cs deleted file mode 100644 index 72eac89..0000000 --- a/APT.MS.Domain/IServices/AE/IAEAccidentEventReportService.cs +++ /dev/null @@ -1,17 +0,0 @@ -using APT.MS.Domain.Entities.AE; -using APT.MS.Domain.Entities.BS; -using System; -using System.Collections.Generic; - -namespace APT.BaseData.Domain.IServices.AE -{ - public interface IAEAccidentEventReportService - { - /// - /// 获取审批流参数 - /// - /// - /// - string GetApproveParm(T_AE_ACCIDENT_EVENT_REPORT entity); - } -} diff --git a/APT.MicroApi/APT.PF.WebApi/Controllers/PFHealthExamResultController.cs b/APT.MicroApi/APT.PF.WebApi/Controllers/PFHealthExamResultController.cs deleted file mode 100644 index 4cf8b05..0000000 --- a/APT.MicroApi/APT.PF.WebApi/Controllers/PFHealthExamResultController.cs +++ /dev/null @@ -1,173 +0,0 @@ -using APT.BaseData.Domain.ApiModel; -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.BaseData.Domain.IServices; -using APT.BaseData.Domain.IServices.AE; -using APT.BaseData.Domain.IServices.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.HM; -using APT.MS.Domain.Entities.OH; -using APT.MS.Domain.Entities.PF; -using APT.MS.Domain.Entities.SC; -using APT.MS.Domain.Entities.TI; -using APT.MS.Domain.Enums; -using APT.Utility; -using Microsoft.AspNetCore.Http; -using Microsoft.AspNetCore.Mvc; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Linq.Expressions; - -//namespace APT.BS.WebApi.Controllers.Api -namespace APT.SC.WebApi.Controllers.Api.OH -{ - [Route("api/PF/OHHealthExamResult")] - public class PFHealthExamResultController : AuthorizeApiController - { - IFMFlowPermitService MFlowPermitService { get; set; } - IPFApproveCallBackService ApproveCallBackService { get; set; } - IAEAccidentEventReportService AccidentEventReportService { get; set; } - IFMNotificationTaskService NotificationTaskService { get; set; } - IFMUserService UserService { get; set; } - IFMDepartmentService DepartmentService { get; set; } - public PFHealthExamResultController(IFMFlowPermitService mFlowPermitService, IPFApproveCallBackService approveCallBackService, IAEAccidentEventReportService accidentEventReportService, IFMNotificationTaskService notificationTaskService, IFMUserService userService, IFMDepartmentService departmentService) - { - MFlowPermitService = mFlowPermitService; - ApproveCallBackService = approveCallBackService; - AccidentEventReportService = accidentEventReportService; - NotificationTaskService = notificationTaskService; - UserService = userService; - DepartmentService = departmentService; - } - - /// - /// 显示批量导入数据 - /// - /// - /// - [HttpPost, Route("ImportShow")] - public PagedActionResult ImportShow(IFormCollection filer) - { - //[FromBody] KeywordPageFilter pageFilter - //return WitOrderPaged(null, pageFilter); - return SafeGetPagedData(delegate (PagedActionResult result) - { - var httpRequest = this.HttpContext.Request; - string orgIdStr = httpRequest.Form["OrgId"];// 获取 组织 - Guid? orgId = null; - if (!string.IsNullOrEmpty(orgIdStr)) - orgId = new Guid(orgIdStr); - else - { - result.Data = null;//dataTables.Tables[0] - result.TotalCount = 0; - } - - var dic = Path.Combine(System.AppContext.BaseDirectory, "tempImportFiles"); - if (!Directory.Exists(dic)) - Directory.CreateDirectory(dic); - foreach (var key in httpRequest.Form.Files) // 文件键 - { - var postedFile = key; // 获取文件键对应的文件对象 - string filePath = Path.Combine(dic, DateTime.Now.ToString("yyyy_MM_dd_hh_mm_ss") + "_" + postedFile.FileName); - Byte[] fileData = new Byte[postedFile.Length]; - Stream sr = postedFile.OpenReadStream();//创建数据流对象 - sr.Read(fileData, 0, (int)postedFile.Length); - using (FileStream fs = new FileStream(filePath, FileMode.CreateNew)) - { - fs.Write(fileData, 0, fileData.Length); - fs.Flush(); - fs.Close(); - } - - //获取数据 - Dictionary startRowIndexs = new Dictionary(); - startRowIndexs.Add(0, 2);//根据Excel格式数据赋值 - var dataTables = FileUtils.ReadExcelByOledb(filePath, startRowIndexs); - - //bool isOK = InsertModel(dataTables.Tables[0], orgId.Value, ref Msg); - //try - //{ - // System.IO.File.Delete(filePath); - //} - //catch { } - - //result.Data = orderPageEntities.Data;//dataTables.Tables[0] - result.TotalCount = dataTables.Tables[0].Rows.Count; - - - } - - //return result; - - }); - } - - ///// - ///// 显示批量导入数据 - ///// - ///// - ///// - //[HttpPost, Route("ImportShow")] - //public PagedActionResult ImportShow([FromBody] KeywordPageFilter pageFilter) - //{ - // //return WitOrderPaged(null, pageFilter); - // return SafeGetPagedData(delegate (PagedActionResult result) - // { - // var httpRequest = this.HttpContext.Request; - // string orgIdStr = httpRequest.Form["OrgId"];// 获取 组织 - // Guid? orgId = null; - // if (!string.IsNullOrEmpty(orgIdStr)) - // orgId = new Guid(orgIdStr); - // else - // { - // result.Data = null;//dataTables.Tables[0] - // result.TotalCount = 0; - // } - - // var dic = Path.Combine(System.AppContext.BaseDirectory, "tempImportFiles"); - // if (!Directory.Exists(dic)) - // Directory.CreateDirectory(dic); - // foreach (var key in httpRequest.Form.Files) // 文件键 - // { - // var postedFile = key; // 获取文件键对应的文件对象 - // string filePath = Path.Combine(dic, DateTime.Now.ToString("yyyy_MM_dd_hh_mm_ss") + "_" + postedFile.FileName); - // Byte[] fileData = new Byte[postedFile.Length]; - // Stream sr = postedFile.OpenReadStream();//创建数据流对象 - // sr.Read(fileData, 0, (int)postedFile.Length); - // using (FileStream fs = new FileStream(filePath, FileMode.CreateNew)) - // { - // fs.Write(fileData, 0, fileData.Length); - // fs.Flush(); - // fs.Close(); - // } - - // //获取数据 - // Dictionary startRowIndexs = new Dictionary(); - // startRowIndexs.Add(0, 2);//根据Excel格式数据赋值 - // var dataTables = FileUtils.ReadExcelByOledb(filePath, startRowIndexs); - - // //bool isOK = InsertModel(dataTables.Tables[0], orgId.Value, ref Msg); - // //try - // //{ - // // System.IO.File.Delete(filePath); - // //} - // //catch { } - - // //result.Data = orderPageEntities.Data;//dataTables.Tables[0] - // result.TotalCount = dataTables.Tables[0].Rows.Count; - - - // } - - // //return result; - - // }); - //} - - - } -} \ No newline at end of file diff --git a/APT.MicroApi/APT.PP.WebApi/Controllers/Api/CMController.cs b/APT.MicroApi/APT.PP.WebApi/Controllers/Api/CMController.cs index 73c023b..50de35b 100644 --- a/APT.MicroApi/APT.PP.WebApi/Controllers/Api/CMController.cs +++ b/APT.MicroApi/APT.PP.WebApi/Controllers/Api/CMController.cs @@ -8,7 +8,6 @@ using APT.Infrastructure.Core; using APT.MS.Domain.Entities.BS; using APT.MS.Domain.Entities.CM; using APT.MS.Domain.Entities.HM; -using APT.MS.Domain.Entities.OH; using APT.MS.Domain.Entities.PF; using APT.MS.Domain.Entities.SC; using APT.MS.Domain.Enums; diff --git a/APT.MicroApi/APT.PP.WebApi/Controllers/Api/OHController.cs b/APT.MicroApi/APT.PP.WebApi/Controllers/Api/OHController.cs deleted file mode 100644 index 0b82f5c..0000000 --- a/APT.MicroApi/APT.PP.WebApi/Controllers/Api/OHController.cs +++ /dev/null @@ -1,1276 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums; -using APT.BaseData.Domain.Enums.PF; -using APT.BaseData.Domain.IServices; -using APT.BaseData.Domain.IServices.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.BS; -using APT.MS.Domain.Entities.HM; -using APT.MS.Domain.Entities.OH; -using APT.MS.Domain.Entities.PF; -using APT.MS.Domain.Entities.SC; -using APT.MS.Domain.Enums; -using APT.Utility; -using APT.WebApi.Models; -using Microsoft.AspNetCore.Mvc; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Linq.Expressions; -using System.Text; -using System.Text.RegularExpressions; - -namespace APT.PP.WebApi.Controllers.Api.PP -{ - [Route("api/PP/OH")] - [TypeFilter(typeof(CustomActionFilterAttribute))] - public partial class OHController : AuthorizeApiController - { - - IFMNotificationTaskService NotificationTaskService { get; set; } - IFMUserService UserService { get; set; } - //IBSSafeCheckService SafeCheckService { get; set; }, IBSSafeCheckService safeCheckService - IPFSysLogService SysLogService { get; set; } - IFMSyncLogDetailService SyncLogDetailService { get; set; } - public OHController(IFMNotificationTaskService notificationTaskService, IPFSysLogService sysLogService, IFMUserService userService, IFMSyncLogDetailService syncLogDetailService) - { - NotificationTaskService = notificationTaskService; - SysLogService = sysLogService; - UserService = userService; - SyncLogDetailService = syncLogDetailService; - } - - /// - /// 给人事专员推送 体检计划表单 每天推送一次 参数需要加 PlanAddDate="03-01" - /// 每年8月1日(时间可设置)触发今日提醒给安环部负责人上传第三方检测报告;消息类型:文件上传;消息内容:请上传职业危害检测报告 UpLoadDate='08-01' - /// - /// - /// - /// - [HttpPost, Route("ExamPlan")] - public JsonActionResult ExamPlan([FromBody] KeywordFilter filter) - { - //岗位 暂时没按配置的实现 - return SafeExecute(() => - { - DateTime dtNow = DateTime.Now; - //DateTime? dtPlanAddDate = null;//设置3月1号推送体检计划表单 - //DateTime? dtUpLoadDate = null;//设置 8月1号 给安环部推送今日待办 - //DateTime? dtMonitorDate = null;//设置 12月15日 将监测结果进行统计后推送待办任务给监测阈值表中的记录人 - List listConfig = null; - if (!string.IsNullOrEmpty(filter.Parameter1)) - { - try - { - DateTime deParm = Convert.ToDateTime(filter.Parameter1); - dtNow = deParm; - } - catch - { - dtNow = DateTime.Now; - } - } - - T_FM_SYNC_TASK task = GetEntity(filter.Keyword);//跑批待办 - int min = 10;//10分钟以内 - DateTime dtMax = dtNow; - if (task.SYNC_UNIT.HasValue) - { - switch (task.SYNC_UNIT.Value)//秒 = 0, 分 = 1, 时 = 2, 天 = 3, - { - case 1: - min = task.PERIODIC_TIME; - break; - case 2: - min = task.PERIODIC_TIME * 60; - break; - case 3: - min = task.PERIODIC_TIME * 60 * 24; - break; - case 0: - default: - break; - } - } - dtMax = dtMax.AddMinutes(min); - listConfig = GetEntities(e => !e.IS_DELETED, null, null).ToList(); - if (listConfig != null && listConfig.Any()) - { - //string dtMD = dtNow.ToString("MM-dd"); - //for (int i = listConfig.Count - 1; i > -1; i--) - //{ - // if (listConfig[i].DATE.ToString("MM-dd") != dtMD) - // { - // listConfig.RemoveAt(i); - // } - //} - - DateTime dtRun = DateTime.Now; - //按触发时间 - for (int i = listConfig.Count - 1; i > -1; i--) - { - try - { - dtRun = Convert.ToDateTime(dtNow.Year + listConfig[i].DATE.ToString("-MM-dd HH:mm:ss")); - if (dtNow <= dtRun && dtRun <= dtMax) - { - //时间段内 往下执行 - } - else - { - listConfig.RemoveAt(i); - } - } - catch - { - listConfig.RemoveAt(i); - } - } - } - - bool isPlanSend = false;//体检部门 到截止时间 汇总给人事专员 - - #region 判断是否有 待结束的体检计划 - - string Msg = string.Empty; - T_FM_USER UserRS = null; - List listPlanIDTask = null;//需要创建 部门体检计划汇总 的PlanID - DateTime dtPlanStart = dtNow.Date.AddSeconds(-1); - var listExamPlan = GetEntities(e => e.DUE_TIME.HasValue && dtPlanStart <= e.DUE_TIME.Value && e.DUE_TIME.Value <= dtNow && !e.IS_DELETED && e.STATUS == PFStandardStatus.Sign, null, null); - if (listExamPlan != null && listExamPlan.Any()) - { - UserRS = UserService.GetPostUser(ref Msg, "人事专员"); - if (UserRS == null) - { - if (string.IsNullOrEmpty(Msg)) - { - throw new Exception("未获取到人事专员!"); - } - else - { - throw new Exception(Msg); - } - } - var listPlanID = listExamPlan.Select(x => x.ID).ToList(); - //再判断人事专员没有收到待办 - var listPlanTask = GetEntities(e => !e.IS_DELETED && e.USER_ID == UserRS.ID && e.SOURCE_FORMCODE.StartsWith("OH006") && e.SOURCE_DATA_ID.HasValue && listPlanID.Contains(e.SOURCE_DATA_ID.Value), null, null); - if (listPlanTask == null || listPlanTask.Count() != listExamPlan.Count()) - { - isPlanSend = true; - listPlanIDTask = new List(); - if (listPlanTask == null || !listPlanTask.Any()) - { - listPlanIDTask = listPlanID; - } - else - { - foreach (var item in listPlanTask) - { - if (!listPlanID.Contains(item.SOURCE_DATA_ID.Value)) - { - listPlanIDTask.Add(item.SOURCE_DATA_ID.Value); - } - } - } - } - } - - #endregion - - bool isSendResultImport = false;//是否 体检结果录入 - #region 判断是否有体检结果录入 - - var listNotice = GetEntities(e => e.NOTICEIMPORTSTATE == NoticeImportState.Draft && !e.IS_DELETED && e.END_TIME <= dtNow, null, null); - if (listNotice != null && listNotice.Any()) - { - isSendResultImport = true; - } - #endregion - - if ((listConfig == null || !listConfig.Any()) && !isPlanSend && !isSendResultImport) - { - return true; - } - - bool isPlanAdd = false;//体检计划表 - bool isUpLoad = false;//职业危害检测报告 - bool isMonitorResult = false;//监测结果统计与分析汇总 - - foreach (var item in listConfig) - { - switch (item.CONFIGTYPE) - { - case ConfigType.EXAM_PLAN: - isPlanAdd = true; - break; - case ConfigType.CHECK_REPORT: - isUpLoad = true; - break; - case ConfigType.RESULT_SUM: - isMonitorResult = true; - break; - default: - break; - } - } - - - if (!isPlanAdd && !isUpLoad && !isMonitorResult && !isPlanSend && !isSendResultImport) - { - return true; - } - - //T_FM_SYNC_TASK task = null;//跑批待办 - T_FM_NOTIFICATION_TASK taskPlan = null;//人事专员创建体检计划(03-01) - T_OH_HEALTH_EXAM_PLAN examPlan = null;//体检计划 - T_FM_NOTIFICATION_TASK taskUpLoad = null;//安环部上传职业危害报告(08-01) - - T_OH_HAZARD_MONITOR_RESULT_SUM resultSum = null; - List resultList = null; - List listTaskMonitorResult = null; - - //OH004 - if (isPlanAdd) - { - T_OH_HEALTH_EXAM_PLAN examPlanCheck = GetEntity(e => !e.IS_DELETED && e.CREATE_TIME.Value.Date == dtNow.Date && e.YEAR == dtNow.Year); - if (examPlanCheck == null) - { - T_FM_USER userRS = null; - var config = listConfig.FirstOrDefault(e => e.CONFIGTYPE == ConfigType.EXAM_PLAN && e.POST_ID.HasValue); - if (config != null) - { - var person = GetEntity(e => e.POST_ID.HasValue && e.POST_ID.Value == config.POST_ID.Value, "Nav_User"); - if (person == null) - { - SysLogService.AddLog(filter.OrgId.Value, APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value, "系统缺少岗位ID【" + config.POST_ID.Value + "】的配置", Msg + " 体检计划接口【PP/OH/ExamPlan】"); - } - else - { - userRS = person.Nav_User; - } - } - if (userRS == null) - { - userRS = UserService.GetPostUser(ref Msg); - } - if (userRS == null) - { - SysLogService.AddLog(filter.OrgId.Value, APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value, "系统缺少【人事专员】岗位人员", Msg + " 体检计划接口【PP/OH/ExamPlan】"); - } - else - { - examPlan = new T_OH_HEALTH_EXAM_PLAN(); - examPlan.ID = Guid.NewGuid(); - //examPlan.NAME =; - examPlan.YEAR = DateTime.Now.Year; - //examPlan.DUE_TIME =; - //examPlan.[CONTENT] =; - examPlan.STATAUSORDER = OHHealthExamPlanStatus.Draft; - examPlan.STATUS = PFStandardStatus.Draft; - //examPlan.APPROVE_ID =; - examPlan.IS_DELETED = false; - examPlan.ORG_ID = filter.OrgId; - //examPlan.ENTITY_ORG_TPYE =; - //examPlan.FORM_ID =; - //examPlan.FLOW_STATUS =; - //examPlan.FLOW_SEND_STATUS =; - //examPlan.FLOW_ID =; - examPlan.CREATE_TIME = DateTime.Now; - //examPlan.MODIFY_TIME =; - //examPlan.CREATER_ID =; - //examPlan.MODIFIER_ID =; - taskPlan = NotificationTaskService.InsertUserNoticeTaskModel("体检计划", examPlan.ID, examPlan.ORG_ID, userRS.ID, userRS.NAME, DateTime.Now, 0, "OH004", FMTASKTYPE.OH_EXAM_PLAN); - //taskPlan = NotificationTaskService.InsertUserNoticeTaskModel("体检计划", examPlan.ID, examPlan.ORG_ID, userRS.ID, userRS.NAME, DateTime.Now, DateTime.Now.AddDays(1), 0, "OH004"); - } - } - } - - if (isUpLoad) - { - //每年8月1日(时间可设置)触发今日提醒给安环部负责人上传第三方检测报告;消息类型:文件上传;消息内容:请上传职业危害检测报告 - T_FM_USER userSafeMaster = null; - var config = listConfig.FirstOrDefault(e => e.CONFIGTYPE == ConfigType.CHECK_REPORT && e.POST_ID.HasValue); - if (config != null) - { - var person = GetEntity(e => e.POST_ID.HasValue && e.POST_ID.Value == config.POST_ID.Value, "Nav_User"); - if (person == null) - { - SysLogService.AddLog(filter.OrgId.Value, APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value, "系统缺少岗位ID【" + config.POST_ID.Value + "】的配置", "体检计划接口【PP/OH/ExamPlan】"); - } - else - { - userSafeMaster = person.Nav_User; - } - } - if (userSafeMaster == null) - { - userSafeMaster = UserService.GetRoleUser(ref Msg, "安环部负责人", null, null); - } - - if (userSafeMaster == null) - { - SysLogService.AddLog(filter.OrgId.Value, APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value, "系统缺少【安环部负责人】", Msg + " 体检计划接口【PP/OH/ExamPlan】"); - } - else - { - DateTime dtNowDate = dtNow.Date; - var taskCheck = GetEntity(e => e.SOURCE_DATA_ID == Guid.Empty && e.USER_ID == userSafeMaster.ID && e.NOTICE_TYPE == 0 && e.CREATE_TIME.Value.Date == dtNowDate && e.NOTICE_TITLE == "请上传职业危害检测报告"); - if (taskCheck == null || taskCheck.ID == Guid.Empty) - { - //taskUpLoad = NotificationTaskService.InsertUserNoticeTaskModel("请上传职业危害检测报告", Guid.Empty, userSafeMaster.ORG_ID, userSafeMaster.ID, userSafeMaster.NAME, DateTime.Now, DateTime.Now.AddDays(1), (int)FMNoticeTypeEnum.消息, "OH034"); - taskUpLoad = NotificationTaskService.InsertUserNoticeTaskModel("请上传职业危害检测报告", Guid.Empty, userSafeMaster.ORG_ID, userSafeMaster.ID, userSafeMaster.NAME, DateTime.Now, (int)FMNoticeTypeEnum.消息, "OH034", FMTASKTYPE.OH_MONITOR_JOB_Report); - } - } - } - if (isMonitorResult) - { - var sum = GetEntity(e => e.YEAR == dtNow.Year && !e.IS_DELETED); - if (sum == null) - { - //今年没有添加过 - var listMonitorDetail = GetEntities(e => !e.IS_DELETED && e.CREATE_TIME.HasValue && e.CREATE_TIME.Value.Year == dtNow.Year && e.OVER_LIMIT.HasValue && e.Nav_Job.STATUS == OHHazardMonitorJobStatusEnum.Finish, null, new string[] { "Nav_Job" }); - if (listMonitorDetail != null && listMonitorDetail.Any()) - { - //有监测记录明细 - //每种职业危害类型 每个人 添加一条监测结果 - Dictionary> dicListRuleUser = new Dictionary>(); - List listUserIDCheck = null; - List listUserID = new List(); - foreach (var item in listMonitorDetail) - { - if (!item.RULE_ID.HasValue || !item.USER_ID_GET.HasValue) - { - continue; - } - if (dicListRuleUser.ContainsKey(item.RULE_ID.Value)) - { - listUserIDCheck = dicListRuleUser[item.RULE_ID.Value]; - if (!listUserIDCheck.Contains(item.USER_ID_GET.Value)) - { - dicListRuleUser[item.RULE_ID.Value].Add(item.USER_ID_GET.Value); - listUserID.Add(item.USER_ID_GET.Value); - } - } - else - { - dicListRuleUser.Add(item.RULE_ID.Value, new List() { item.USER_ID_GET.Value }); - listUserID.Add(item.USER_ID_GET.Value); - } - } - - if (dicListRuleUser.Count > 0) - { - resultSum = new T_OH_HAZARD_MONITOR_RESULT_SUM(); - resultSum.ID = Guid.NewGuid(); - resultSum.YEAR = dtNow.Year; - resultSum.TIME = dtNow.Date; - //resultSum.RATIO =; - resultSum.STATUS = PFStandardStatus.Draft; - resultSum.IS_DELETED = false; - resultSum.ORG_ID = filter.OrgId; - //resultSum.ENTITY_ORG_TPYE =; - //resultSum.FORM_ID =; - //resultSum.FLOW_STATUS =; - //resultSum.FLOW_SEND_STATUS =; - //resultSum.FLOW_ID =; - //resultSum.CREATE_TIME =; - //resultSum.MODIFY_TIME =; - //resultSum.CREATER_ID =; - //resultSum.MODIFIER_ID =; - listTaskMonitorResult = new List(); - resultList = new List(); - foreach (var item in dicListRuleUser) - { - foreach (var itemV in item.Value) - { - resultList.Add(new T_OH_HAZARD_MONITOR_RESULT() - { - ID = Guid.NewGuid(), - RULE_ID = item.Key, - SUM_ID = resultSum.ID, - MONITOR_COUNT = listMonitorDetail.Where(e => e.RULE_ID == item.Key && e.USER_ID_GET == itemV).Count(), - OK_COUNT = listMonitorDetail.Where(e => e.RULE_ID == item.Key && e.USER_ID_GET == itemV && e.OVER_LIMIT.Value == YesNoEnum.No).Count(), - OK_PERCENT = 0,//默认最后计算 - //TREND =, - STATUS = PFStandardStatus.Draft, - IS_DELETED = false, - ORG_ID = filter.OrgId, - User_ID = itemV, - //ENTITY_ORG_TPYE - //FORM_ID - //FLOW_STATUS - //FLOW_SEND_STATUS - //FLOW_ID - //CREATE_TIME - //MODIFY_TIME - //CREATER_ID - //MODIFIER_ID - }); - } - } - - foreach (var item in resultList) - { - if (item.MONITOR_COUNT != 0) - { - item.OK_PERCENT = item.OK_COUNT / item.MONITOR_COUNT; - } - } - } - - List listUser = GetEntities(e => listUserID.Contains(e.ID), null, null).ToList(); - List listUserSendID = new List(); - List listUserSendName = new List(); - foreach (var item in listUser) - { - listUserSendID.Add(item.ID); - listUserSendName.Add(item.NAME); - } - //发送待办 - - listTaskMonitorResult = NotificationTaskService.InsertUserNoticeTaskModels("监测结果统计与分析表", resultSum.ID, resultSum.ORG_ID, listUserSendID, listUserSendName, DateTime.Now, 0, "OH028", FMTASKTYPE.OH_MONITOR_RESULT_SUM); - //listTaskMonitorResult = NotificationTaskService.InsertUserNoticeTaskModels("监测结果统计与分析表", resultSum.ID, resultSum.ORG_ID, listUserSendID, listUserSendName, DateTime.Now, DateTime.Now.AddDays(1), 0, "OH028"); - } - else - { - //没有信息 暂不处理 - } - } - } - - List listNoticeImport = null; //体检导入通知 - List listImportOrder = new List(); - - if (isSendResultImport) - { - //体检结果录入 合并 PP/OH/SendResultImport - T_FM_USER userRS = null; - //找体检计划的配置 - var config = GetEntity(e => !e.IS_DELETED && e.CONFIGTYPE == ConfigType.EXAM_PLAN); - if (config != null) - { - var person = GetEntity(e => e.POST_ID.HasValue && e.POST_ID.Value == config.POST_ID.Value, "Nav_User"); - if (person == null) - { - SysLogService.AddLog(filter.OrgId.Value, APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value, "系统缺少岗位ID【" + config.POST_ID.Value + "】的配置", Msg + " 体检计划接口【PP/OH/ExamPlan】"); - } - else - { - userRS = person.Nav_User; - } - } - - if (userRS == null) - { - UserService.GetPostUser(ref Msg); - } - if (userRS == null) - { - if (string.IsNullOrEmpty(Msg)) - { - SysLogService.AddLog(filter.OrgId.Value, APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value, "系统缺少【人事专员】岗位人员", "体检结果录入【PP/OH/ExamPlan】");//体检计划接口 - } - else - { - SysLogService.AddLog(filter.OrgId.Value, APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value, "系统缺少【人事专员】岗位人员", Msg + " 体检结果录入【PP/OH/ExamPlan】");//体检计划接口 - } - } - else - { - List listPARENTID = new List(); - List listDataID = new List(); - - List listUserId = new List(); - List listUserName = new List(); - //同一个 PARENTID 发送一个待办 - foreach (var item in listNotice) - { - item.NOTICEIMPORTSTATE = NoticeImportState.NoticeImport; - - if (item.PARENTID.HasValue && !listPARENTID.Contains(item.PARENTID.Value)) - { - listPARENTID.Add(item.PARENTID.Value); - T_OH_HEALTH_EXAM_RESULT_IMPORT modelImport = new T_OH_HEALTH_EXAM_RESULT_IMPORT(); - modelImport.ID = Guid.NewGuid(); - modelImport.ORG_ID = item.ORG_ID.Value; - modelImport.NOTICE_ID = item.PARENTID.Value; - listDataID.Add(modelImport.ID); - listImportOrder.Add(modelImport); - - //Name.Add("体检通知结果导入"); - listUserId.Add(userRS.ID); - listUserName.Add(userRS.NAME); - } - } - - listNoticeImport = NotificationTaskService.InsertUserNoticeTaskModels("体检结果导入", listDataID, filter.OrgId, listUserId, listUserName, DateTime.Now, 1, "OH017_IMPORT", FMTASKTYPE.OH_EXAM_RESULT_IMPORT); - } - } - - - //部门级 体检计划表 待变成未处理 无需处理 - List listPlanDepChange = null; - IEnumerable listTaskDepNeedEnd = null; - //给人事专员发送 【部门体检计划汇总】待办 - List listTaskDepSum = null; - - if (isPlanSend && listPlanIDTask != null && listPlanIDTask.Count > 0) - { - IEnumerable listPlanDep = null; - var listPlanDepAll = GetEntities(e => listPlanIDTask.Contains(e.PLAN_ID), null, null); - if (listPlanDepAll != null && listPlanDepAll.Any()) - { - listPlanDep = listPlanDepAll.Where(e => e.STATUS != PFStandardStatus.Draft); - } - - if (listPlanDep != null && listPlanDep.Any())//如果大家都没填写 不汇总 - { - List listPLANID = listPlanDep.Select(e => e.PLAN_ID).Distinct().ToList(); - List listPlanDepID = new List();// listPlanDep.Select(e => e.ID).Distinct().ToList(); - foreach (var item in listPlanDepAll) - { - if (listPLANID.Contains(item.PLAN_ID) && item.STATUS == PFStandardStatus.Draft) - { - item.MODIFY_TIME = DateTime.Now; - item.STATUS = PFStandardStatus.Archived; - if (listPlanDepChange == null) - { - listPlanDepChange = new List(); - } - listPlanDepChange.Add(item); - listPlanDepID.Add(item.ID); - } - } - - T_OH_HEALTH_EAXM_PLAN_DEPARTMENT planDepCheck = null; - listTaskDepNeedEnd = GetEntities(e => !e.IS_DELETED && e.SOURCE_FORMCODE == "OH005" && e.SOURCE_DATA_ID.HasValue && listPlanDepID.Contains(e.SOURCE_DATA_ID.Value), null, null); - listTaskDepSum = new List(); - foreach (var item in listTaskDepNeedEnd) - { - item.TASK_DT = dtNow; - item.NOTICE_STATUS = 4;// FMNoticeStatusEnum.超时无需办理; - item.SOURCE_FORMCODE = "OH005_SHOWPRINT"; - - #region 查找获取计划ID 给人事专员 发送待办 - - planDepCheck = listPlanDep.FirstOrDefault(e => e.ID == item.SOURCE_DATA_ID.Value); - if (planDepCheck != null && listTaskDepSum.FirstOrDefault(e => e.SOURCE_DATA_ID == planDepCheck.PLAN_ID) == null) - { - listTaskDepSum.Add(NotificationTaskService.InsertUserNoticeTaskModel("部门体检计划汇总", planDepCheck.PLAN_ID, planDepCheck.ORG_ID, UserRS.ID, UserRS.NAME, DateTime.Now, (int)FMNoticeTypeEnum.消息, "OH006", FMTASKTYPE.OH_EXAM_PLAN_SUM)); - //listTaskDepSum.Add(NotificationTaskService.InsertUserNoticeTaskModel("部门体检计划汇总", planDepCheck.PLAN_ID, planDepCheck.ORG_ID, UserRS.ID, UserRS.NAME, DateTime.Now, DateTime.Now.AddDays(1), (int)FMNoticeTypeEnum.消息, "OH006")); - } - - #endregion - - } - } - else - { - isPlanSend = false; - } - } - - if (taskPlan != null || taskUpLoad != null || resultSum != null || (listNotice != null && listNotice.Any()) || (listTaskDepSum != null && listTaskDepSum.Any())) - { - //task = GetEntity(filter.Keyword); - if (task != null) - { - task.UPDATE_SUCCES_TIME = DateTime.Now;//上次同步结束时间 - task.SYNC_PARAM = ""; - //task.SYNC_PARAM = "PlanAddDate=" + strPlanAddDate + "|UpLoadDate=" + strUpLoadDate + "|MonitorDate=" + strMonitorDate;//清空参数 - } - - this.UnifiedCommit(() => - { - if (task != null) - UpdateEntityNoCommit(task);//跑批信息 - if (examPlan != null) - UpdateEntityNoCommit(examPlan);//体检计划 - if (taskPlan != null) - UpdateEntityNoCommit(taskPlan);//体检计划待办 - if (taskUpLoad != null) - UpdateEntityNoCommit(taskUpLoad);//职业危害检测报告 - - if (resultSum != null) - UpdateEntityNoCommit(resultSum);//保存汇总信息 - if (resultList != null && resultList.Any()) - BantchAddEntityNoCommit(resultList);//保存汇总明细信息 - if (listTaskMonitorResult != null && listTaskMonitorResult.Any()) - BantchAddEntityNoCommit(listTaskMonitorResult);//给记录人发送待办 - - //体检截止日期已到 给人事专员 发送 部门体检计划汇总 - if (listPlanDepChange != null && listPlanDepChange.Any())//部门体检计划状态修改 - BantchSaveEntityNoCommit(listPlanDepChange); - if (listTaskDepNeedEnd != null && listTaskDepNeedEnd.Any())//待办归档 - BantchSaveEntityNoCommit(listTaskDepNeedEnd); - if (listTaskDepSum != null && listTaskDepSum.Any())//发送待办 - BantchAddEntityNoCommit(listTaskDepSum); - - //体检结果录入表单 - if (listNotice != null && listNotice.Any())//修改状态 - BantchSaveEntityNoCommit(listNotice); - if (listImportOrder != null && listImportOrder.Any())//添加导入Model - BantchSaveEntityNoCommit(listImportOrder); - if (listNoticeImport != null && listNoticeImport.Any())//添加待办 - BantchSaveEntityNoCommit(listNoticeImport); - }); - - int Count = ((resultList != null && resultList.Any()) ? resultList.Count : 0) + ((listTaskMonitorResult != null && listTaskMonitorResult.Any()) ? listTaskMonitorResult.Count : 0) + ((listPlanDepChange != null && listPlanDepChange.Any()) ? listPlanDepChange.Count : 0) + ((listTaskDepNeedEnd != null && listTaskDepNeedEnd.Any()) ? listTaskDepNeedEnd.Count() : 0) + ((listTaskDepSum != null && listTaskDepSum.Any()) ? listTaskDepSum.Count() : 0) + ((listNotice != null && listNotice.Any()) ? listNotice.Count() : 0) + ((listImportOrder != null && listImportOrder.Any()) ? listImportOrder.Count() : 0) + ((listNoticeImport != null && listNoticeImport.Any()) ? listNoticeImport.Count() : 0); - SyncLogDetailService.InsertSyncLogDetail(HttpContext.Items, HttpContext.TraceIdentifier, filter.OrgId, Count, filter.Parameter1, SyncLogType.BSCreateCheckPlanSet); - } - - return true; - }); - } - - - /// - /// 体检结果录入表单 - /// - /// - /// - [HttpPost, Route("SendResultImport")] - public JsonActionResult SendResultImport([FromBody] KeywordFilter filter) - { - return SafeExecute(() => - { - //DateTime dtNow = DateTime.Now; - //if (!string.IsNullOrEmpty(filter.Parameter1)) - //{ - // try - // { - // DateTime deParm = Convert.ToDateTime(filter.Parameter1); - // dtNow = deParm; - // } - // catch { } - //} - - //var listNotice = GetEntities(e => e.NOTICEIMPORTSTATE == NoticeImportState.Draft && e.END_TIME <= dtNow && !e.IS_DELETED, null, null); - //if (listNotice == null || !listNotice.Any()) - //{ - // return true; - //} - //string Msg = string.Empty; - //T_FM_USER userRS = UserService.GetPostUser(ref Msg); - //if (userRS == null) - //{ - // if (string.IsNullOrEmpty(Msg)) - // { - // SysLogService.AddLog(filter.OrgId.Value, APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value, "系统缺少【人事专员】岗位人员", "体检计划接口【PP/OH/SendResultImport】"); - // } - // else - // { - // SysLogService.AddLog(filter.OrgId.Value, APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value, "系统缺少【人事专员】岗位人员", Msg + " 体检计划接口【PP/OH/SendResultImport】"); - // } - //} - //else - //{ - - // T_FM_SYNC_TASK task = null;//跑批待办 - // List listNoticeImport = new List(); //体检导入通知 - // List listPARENTID = new List(); - // List listDataID = new List(); - // List listImportOrder = new List(); - - // List Name = new List(); - // List UserId = new List(); - // List userName = new List(); - // //同一个 PARENTID 发送一个待办 - // foreach (var item in listNotice) - // { - // item.NOTICEIMPORTSTATE = NoticeImportState.NoticeImport; - - // if (item.PARENTID.HasValue && !listPARENTID.Contains(item.PARENTID.Value)) - // { - // listPARENTID.Add(item.PARENTID.Value); - - // T_OH_HEALTH_EXAM_RESULT_IMPORT modelImport = new T_OH_HEALTH_EXAM_RESULT_IMPORT(); - // modelImport.ID = Guid.NewGuid(); - // modelImport.ORG_ID = item.ORG_ID.Value; - // modelImport.NOTICE_ID = item.PARENTID.Value; - // listDataID.Add(modelImport.ID); - // listImportOrder.Add(modelImport); - - // //Name.Add("体检通知结果导入"); - // Name.Add("体检结果导入"); - // UserId.Add(userRS.ID); - // userName.Add(userRS.NAME); - // } - // } - - // List listTaskImport = NotificationTaskService.InsertUserNoticeTaskModels(Name, listDataID, filter.OrgId, UserId, userName, DateTime.Now, DateTime.Now.AddDays(1), 1, "OH017_IMPORT"); - - // task = GetEntity(filter.Keyword); - // if (task != null) - // { - // task.UPDATE_SUCCES_TIME = DateTime.Now;//上次同步结束时间 - // task.SYNC_PARAM = "";//清空参数 - // } - // this.UnifiedCommit(() => - // { - // if (task != null) - // UpdateEntityNoCommit(task);//跑批信息 - // if (listNotice != null && listNotice.Any())//修改状态 - // BantchSaveEntityNoCommit(listNotice); - // if (listImportOrder != null && listImportOrder.Any())//添加导入Model - // BantchSaveEntityNoCommit(listImportOrder); - // if (listTaskImport != null && listTaskImport.Any())//添加待办 - // BantchSaveEntityNoCommit(listTaskImport); - // }); - //} - return true; - }); - } - - - /// - /// 判断跑批时间是否符合 - /// - /// - /// - /// - /// - /// - private bool ISTimeOK(DateTime? RUNSETTIME, DateTime dtNow, int minAdvance, int minLaster) - { - if (RUNSETTIME == null) - { - return false; - } - - if (RUNSETTIME != null) - { - if (minAdvance != 0 || minLaster != 0) - { - //DateTime dtSetTime = Convert.ToDateTime(dtNow.ToString("yyyy") + RUNSETTIME.Value.ToString("-MM-dd HH:mm:ss")); - DateTime dtSetTime = Convert.ToDateTime(dtNow.ToString("yyyy-MM-dd") + RUNSETTIME.Value.ToString(" HH:mm:ss")); - if (minAdvance > 0 && minLaster > 0) - { - if (dtNow.AddMinutes(-1 * minAdvance) <= dtSetTime && dtSetTime <= dtNow.AddMinutes(minLaster)) - { - return true; - } - } - else if (minAdvance > 0) - { - if (dtNow.AddMinutes(-1 * minAdvance) <= dtSetTime && dtSetTime <= dtNow) - { - //如果设置时间小于当前时间 并且 设置使劲按大于 当前时间大于当前时间往前偏移分钟数 - return true; - } - } - else - { - if (dtNow <= dtSetTime && dtSetTime <= dtNow.AddMinutes(minLaster)) - { - //如果 设置时间大于当前时间 并且设置时间小于当前时间往后偏移分钟数 - return true; - } - } - } - else - { - if (RUNSETTIME.Value.ToString("HH:mm") == dtNow.ToString("HH:mm")) - { - return true; - } - } - } - return false; - } - - /// - /// 按体检通知明细 最后日期 - /// 给人事专员发送体检通知待办 - /// 每天一次即可 - /// - /// - /// - [HttpPost, Route("NoticeCycle")] - public JsonActionResult NoticeCycle([FromBody] KeywordFilter filter) - { - return SafeExecute(() => - { - DateTime dtNow = DateTime.Now; - if (!string.IsNullOrEmpty(filter.Parameter1)) - { - try - { - //接收来自页面的参数 - DateTime deParm = Convert.ToDateTime(filter.Parameter1); - dtNow = deParm; - } - catch { } - } - int WarmDay = 15; - DateTime dtSearch = dtNow.AddDays(WarmDay); - - //体检周期都是几个月的 - //所以半个月内有人需要体检就发送待办 - - //如果有最近的未完成的待办 直接做今日提醒 - var listNotice = GetEntities(e => e.NEXTDATE.HasValue && e.NEXTDATE <= dtSearch, null, null); - if (listNotice == null || !listNotice.Any()) - { - return true; - } - string Msg = string.Empty; - T_FM_USER userRS = UserService.GetPostUser(ref Msg); - - if (userRS == null) - { - SysLogService.AddLog(filter.OrgId.Value, APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value, "系统缺少【人事专员】岗位人员", Msg + " 体检计划接口【PP/OH/ExamPlan】"); - return true; - } - - var taskNotice = GetEntity(e => e.USER_ID == userRS.ID && e.SOURCE_FORMCODE == "OH026" && e.NOTICE_STATUS == 0); - if (taskNotice != null) - { - //有没处理的待办 - //位置靠前 - taskNotice.MODIFY_TIME = DateTime.Now; - this.UnifiedCommit(() => - { - if (taskNotice != null) - UpdateEntityNoCommit(taskNotice); - }); - } - else - { - T_OH_HEALTH_EXAM_NOTICE modelWarm = new T_OH_HEALTH_EXAM_NOTICE(); - modelWarm.ID = Guid.NewGuid(); - modelWarm.CODE = "XTTJTZ" + dtNow.ToString("yyyyMMddHHmmss"); - //modelWarm.NAME =; - //modelWarm.OTHER_STUFF =; - modelWarm.STATUS = PFStandardStatus.Draft; - //modelWarm.APPROVE_ID =; - modelWarm.IS_DELETED = false; - modelWarm.ORG_ID = filter.OrgId; - //modelWarm.ENTITY_ORG_TPYE =; - //modelWarm.FORM_ID =; - //modelWarm.FLOW_STATUS =; - //modelWarm.FLOW_SEND_STATUS =; - //modelWarm.FLOW_ID =; - //modelWarm.CREATE_TIME =; - //modelWarm.MODIFY_TIME =; - //modelWarm.CREATER_ID =; - //modelWarm.MODIFIER_ID =; - //modelWarm.PARENTID =; - modelWarm.ISSYSTEM = true;//根据这个值前端要自动加载有审批周期待体检的人 - - T_FM_NOTIFICATION_TASK taskNoticeRs = NotificationTaskService.InsertUserNoticeTaskModel("体检通知", modelWarm.ID, modelWarm.ORG_ID, userRS.ID, userRS.NAME, - DateTime.Now, DateTime.Now.AddDays(1), 0, "OH026"); - - T_FM_SYNC_TASK task = GetEntity(filter.Keyword); - if (task != null) - { - task.UPDATE_SUCCES_TIME = DateTime.Now;//上次同步结束时间 - task.SYNC_PARAM = "";//清空参数 - } - - this.UnifiedCommit(() => - { - if (task != null) - UpdateEntityNoCommit(task); - if (taskNoticeRs != null) - UpdateEntityNoCommit(taskNoticeRs); - if (modelWarm != null) - UpdateEntityNoCommit(modelWarm); - }); - int Count = (taskNoticeRs != null ? 1 : 0) + (modelWarm != null ? 1 : 0); - SyncLogDetailService.InsertSyncLogDetail(HttpContext.Items, HttpContext.TraceIdentifier, filter.OrgId, Count, filter.Parameter1, SyncLogType.BSCreateCheckPlanSet); - } - return true; - }); - } - - - - - /// - /// 发送检测记录 - /// - /// - /// - [HttpPost, Route("SendMonitor")] - public JsonActionResult SendMonitor([FromBody] KeywordFilter filter) - { - return SafeExecute(() => - { - //根据 职业危害因素监测规则 T_OH_HAZARD_MONITOR_RULE - // 给 责任部门对应记录人 发送检测记录表 - DateTime dtNow = DateTime.Now; - if (!string.IsNullOrEmpty(filter.Parameter1)) - { - try - { - //接收来自页面的参数 - DateTime deParm = Convert.ToDateTime(filter.Parameter1); - dtNow = deParm; - } - catch { } - } - int minLaster = 20; - //30分钟 - DateTime dtEnd = dtNow.AddMinutes(minLaster);// - - var listRule = GetEntities(e => !e.IS_DELETED && e.MONITOR_INTERVAL != BSPLANCHECKFREQUENCYEnum.None && e.TIME != DateTime.MinValue && e.DEPARTMENT_ID.HasValue && e.RECORD_POST_ID.HasValue && e.DEPARTMENT_ID_WORKSHOP.HasValue && e.WARN_POST_ID.HasValue, null, new string[] { "Nav_Type" }).OrderBy(e => e.TYPE_ID);//"Nav_RecordPost.Nav_Users.Nav_User", //符合时间的 规则 .Nav_Type.MONITOR_TYPE - List listRun = new List(); - - if (listRule != null && listRule.Any()) - { - DateTime dtCombin = dtNow.Date; - foreach (var item in listRule) - { - if (!ISTimeOK(item.TIME, dtNow, 0, minLaster)) - { - //设置时间往前后各偏移 20 分钟 判断跑批 - continue; - } - switch (item.MONITOR_INTERVAL) - { - case BSPLANCHECKFREQUENCYEnum.Date://每天 - listRun.Add(item); - break; - case BSPLANCHECKFREQUENCYEnum.Week://每周 - if (item.WEEKDATA != null && (int)dtNow.DayOfWeek == (int)item.WEEKDATA.Value) - //星期匹配 DateTime.Now.DayOfWeek Thursday (int)DateTime.Now.DayOfWeek 4 - listRun.Add(item); - break; - case BSPLANCHECKFREQUENCYEnum.Month://每月 - if (item.DAY == dtNow.Day) - listRun.Add(item); - break; - case BSPLANCHECKFREQUENCYEnum.Quarter://每季度 - if (item.DAY == dtNow.Day && (item.MONTH == dtNow.Month || item.MONTH == dtNow.Month - 3 || item.MONTH == dtNow.Month - 6 || item.MONTH == dtNow.Month - 9))//日相等 月相等 或者 月= 当前月-3n - listRun.Add(item); - break; - case BSPLANCHECKFREQUENCYEnum.HalfYear://每半年 - if (item.DAY == dtNow.Day && (item.MONTH == dtNow.Month || item.MONTH == dtNow.Month - 6))//日相等 月相等 或者 月= 当前月-6 - listRun.Add(item); - break; - case BSPLANCHECKFREQUENCYEnum.Year://每年 - if (item.MONTH == dtNow.Month && item.DAY == dtNow.Day) - listRun.Add(item); - break; - default: - break; - } - } - } - - if (listRun.Count < 1) - { - return true; - } - - var listSendDetail = GetEntities(e => !e.IS_DELETED && e.RULE_ID.HasValue && e.CREATE_TIME.HasValue && e.CREATE_TIME.Value.Date == dtNow.Date, null, null); - - //OH024 - //监测记录 - List listMonitorJob = new List(); - List listMonitorJobDetail = new List(); - - //责任部门 对应记录人 发送检测记录 单据 - List listTask = new List(); - T_OH_HAZARD_MONITOR_JOB_DETAIL modelCheckDetail = null; - DateTime LAST_NOTIFY = DateTime.Now; - List listRuleUpdate = new List(); - //责任部门 对应 记录人 - IEnumerable IListUser = null; - - List listName = null; - List listID = null; - - #region 新版 同一个部门岗位都能收到待办 (后续,只要一个填写,另外的就不能填写了) - - T_OH_HAZARD_MONITOR_JOB Job = null; - foreach (var item in listRun) - { - //判断今天有没有 添加 e.USER_ID_GET == itemPost.USER_ID && - modelCheckDetail = listSendDetail.FirstOrDefault(e => e.RULE_ID == item.ID); - if (modelCheckDetail != null) - { - continue; //今天有添加 - } - - #region 检测单 - - Job = listMonitorJob.FirstOrDefault(e => e.MONITOR_TYPE == item.Nav_Type.MONITOR_TYPE);//itemPost.USER_ID - if (Job == null) - { - - #region 通知人员 - IListUser = GetEntities(e => e.DEPARTMENT_ID.HasValue && e.ENABLE_STATUS == 0 && !e.IS_DELETED && e.PERSON_ID.HasValue && e.Nav_Person.POST_ID.HasValue && e.DEPARTMENT_ID.Value == item.DEPARTMENT_ID && e.Nav_Person.POST_ID == item.RECORD_POST_ID, null, "Nav_Person"); - if (IListUser == null || !IListUser.Any()) - { - continue; - } - - listName = new List(); - listID = new List(); - foreach (var itemU in IListUser) - { - listName.Add(itemU.NAME); - listID.Add(itemU.ID); - } - #endregion - - Job = new T_OH_HAZARD_MONITOR_JOB(); - Job.ID = Guid.NewGuid(); - //Job.RULE_ID = item.ID; - //Job.MONITOR_TIME =; - //Job.USER_ID = itemPost.USER_ID; - //Job.DEVICE_NAME =; - //Job.DEVICE_SPEC =; - //Job.MONITOR_METHOD =; - //Job.SAMPLE_PEOPLE =; - Job.STATUS = OHHazardMonitorJobStatusEnum.WaitSign; - Job.IS_DELETED = false; - Job.ORG_ID = item.ORG_ID; - //Job.ENTITY_ORG_TPYE =; - //Job.FORM_ID =; - //Job.FLOW_STATUS =; - //Job.FLOW_SEND_STATUS =; - //Job.FLOW_ID =; - //Job.CREATE_TIME = dtNow; - //Job.MODIFY_TIME = dtNow; - //Job.CREATER_ID = itemPost.USER_ID; - //Job.MODIFIER_ID = itemPost.USER_ID; - //Job.USER_ID_GET = itemPost.ID;// itemPost.USER_ID; - if (listID.Count == 1) - { - Job.USER_ID_GET = listID[0]; - } - - Job.TYPE_ID = item.TYPE_ID; - Job.MONITOR_TYPE = item.Nav_Type.MONITOR_TYPE; - - //添加监测记录单 - listMonitorJob.Add(Job); - - DateTime dtTaskEnd = NotificationTaskService.GetTaskEndTime(FMTASKTYPE.OH_MonitorJob, item.ORG_ID.Value, DateTime.Now, (int)item.MONITOR_INTERVAL, null); - - //添加待办 - listTask.AddRange(NotificationTaskService.InsertUserNoticeTaskModels(item.Nav_Type.MONITOR_TYPE.GetDescription(), Job.ID, Job.ORG_ID, listID, listName, dtNow, dtTaskEnd, 0, "OH024")); - - //最后修改时间 - item.LAST_NOTIFY = DateTime.Now;//最后推送日期 - if (!listRuleUpdate.Contains(item)) - { - listRuleUpdate.Add(item); - } - } - - #endregion - - - #region 监测明细 - - T_OH_HAZARD_MONITOR_JOB_DETAIL JobDetail = new T_OH_HAZARD_MONITOR_JOB_DETAIL(); - JobDetail.ID = Guid.NewGuid(); - JobDetail.JOB_ID = Job.ID; - JobDetail.RULE_ID = item.ID; - //JobDetail.USER_ID_GET = itemPost.ID; // itemPost.USER_ID; - //JobDetail.SAMPLE_SOURCE =; - //JobDetail.JOB_STATUS =; - //JobDetail.PROTECT_STATUS =; - //JobDetail.MONITOR_RESULT_LOW =; - //JobDetail.MONITOR_RESULT_HIGH=; - //JobDetail.OVER_LIMIT =; - //JobDetail.MONITOR_RESULT_05 =; - //JobDetail.MONITOR_RESULT_10 =; - //JobDetail.MONITOR_RESULT_AROUND=; - //JobDetail.SAMPLE_TIME =; - //JobDetail.TEST_TIME =; - //JobDetail.MONITOR_RESULT =; - //JobDetail.TEST_DEPARTMENT=; - //JobDetail.TESTER =; - JobDetail.IS_DELETED = false; - JobDetail.ORG_ID = item.ORG_ID; - //JobDetail.ENTITY_ORG_TPYE =; - //JobDetail.FORM_ID =; - //JobDetail.FLOW_STATUS =; - //JobDetail.FLOW_SEND_STATUS=; - //JobDetail.FLOW_ID =; - //JobDetail.CREATE_TIME =; - //JobDetail.MODIFY_TIME =; - //JobDetail.CREATER_ID =; - //JobDetail.MODIFIER_ID =; - listMonitorJobDetail.Add(JobDetail); - - #endregion - - } - - T_FM_SYNC_TASK task = GetEntity(filter.Keyword); - if (task != null) - { - task.UPDATE_SUCCES_TIME = DateTime.Now;//上次同步结束时间 - task.SYNC_PARAM = "";//清空参数 - } - - this.UnifiedCommit(() => - { - if (task != null) - UpdateEntityNoCommit(task); - if (listMonitorJob != null && listMonitorJob.Any()) - BantchSaveEntityNoCommit(listMonitorJob); - if (listTask != null && listTask.Any()) - BantchSaveEntityNoCommit(listTask); - if (listMonitorJobDetail != null && listMonitorJobDetail.Any()) - BantchSaveEntityNoCommit(listMonitorJobDetail); - if (listRuleUpdate != null && listRuleUpdate.Any()) - BantchSaveEntityNoCommit(listRuleUpdate); - }); - - int Count = ((listMonitorJob != null && listMonitorJob.Any()) ? listMonitorJob.Count : 0) + ((listTask != null && listTask.Any()) ? listTask.Count : 0) + ((listMonitorJobDetail != null && listMonitorJobDetail.Any()) ? listMonitorJobDetail.Count : 0) + ((listRuleUpdate != null && listRuleUpdate.Any()) ? listRuleUpdate.Count : 0); - SyncLogDetailService.InsertSyncLogDetail(HttpContext.Items, HttpContext.TraceIdentifier, filter.OrgId, Count, filter.Parameter1, SyncLogType.BSCreateCheckPlanSet); - - #endregion - - #region 旧版 检测单只发给某个人 - - //foreach (var item in listRun) - //{ - // //判断今天有没有 添加 e.USER_ID_GET == itemPost.USER_ID && - // modelCheckDetail = listSendDetail.FirstOrDefault(e => e.RULE_ID == item.ID); - // if (modelCheckDetail != null) - // { - // //今天有添加 - // continue; - // } - - // IListUser = GetEntities(e => e.DEPARTMENT_ID.HasValue && e.DEPARTMENT_ID.Value == item.DEPARTMENT_ID && e.Nav_Person.POST_ID == item.RECORD_POST_ID, null, "Nav_Person"); - - // // item.Nav_RecordPost.Nav_Users - // foreach (var itemPost in IListUser) - // { - // if (item.DEPARTMENT_ID != itemPost.DEPARTMENT_ID) - // { - // continue; - // } - // modelCheckDetail = listMonitorJobDetail.FirstOrDefault(e => e.RULE_ID == item.ID); - // if (modelCheckDetail != null) - // { - // //有加过(虽然人不一样) - // continue; - // } - - // #region 检测单 - - // T_OH_HAZARD_MONITOR_JOB Job = listMonitorJob.FirstOrDefault(e => e.MONITOR_TYPE == item.Nav_Type.MONITOR_TYPE && e.USER_ID_GET == itemPost.ID);//itemPost.USER_ID - - // if (Job == null) - // { - // Job = new T_OH_HAZARD_MONITOR_JOB(); - // Job.ID = Guid.NewGuid(); - // //Job.RULE_ID = item.ID; - // //Job.MONITOR_TIME =; - // //Job.USER_ID = itemPost.USER_ID; - // //Job.DEVICE_NAME =; - // //Job.DEVICE_SPEC =; - // //Job.MONITOR_METHOD =; - // //Job.SAMPLE_PEOPLE =; - // Job.STATUS = OHHazardMonitorJobStatusEnum.WaitSign; - // Job.IS_DELETED = false; - // Job.ORG_ID = item.ORG_ID; - // //Job.ENTITY_ORG_TPYE =; - // //Job.FORM_ID =; - // //Job.FLOW_STATUS =; - // //Job.FLOW_SEND_STATUS =; - // //Job.FLOW_ID =; - // //Job.CREATE_TIME = dtNow; - // //Job.MODIFY_TIME = dtNow; - // //Job.CREATER_ID = itemPost.USER_ID; - // //Job.MODIFIER_ID = itemPost.USER_ID; - // Job.USER_ID_GET = itemPost.ID;// itemPost.USER_ID; - // Job.TYPE_ID = item.TYPE_ID; - // Job.MONITOR_TYPE = item.Nav_Type.MONITOR_TYPE; - - // //添加监测记录单 - // listMonitorJob.Add(Job); - - // //添加待办 - // T_FM_NOTIFICATION_TASK taskAdd = NotificationTaskService.InsertUserNoticeTaskModel(item.Nav_Type.MONITOR_TYPE.GetDescription(), Job.ID, Job.ORG_ID, itemPost.ID, itemPost.NAME, dtNow, dtNow.AddDays(1), 0, "OH024");//itemPost.USER_ID, itemPost.Nav_User.NAME - // listTask.Add(taskAdd); - - // //最后修改时间 - // item.LAST_NOTIFY = DateTime.Now;//最后推送日期 - // if (!listRuleUpdate.Contains(item)) - // { - // listRuleUpdate.Add(item); - // } - // } - - // #region 监测明细 - - // T_OH_HAZARD_MONITOR_JOB_DETAIL JobDetail = new T_OH_HAZARD_MONITOR_JOB_DETAIL(); - // JobDetail.ID = Guid.NewGuid(); - // JobDetail.JOB_ID = Job.ID; - // JobDetail.RULE_ID = item.ID; - // JobDetail.USER_ID_GET = itemPost.ID; // itemPost.USER_ID; - - // //JobDetail.SAMPLE_SOURCE =; - // //JobDetail.JOB_STATUS =; - // //JobDetail.PROTECT_STATUS =; - // //JobDetail.MONITOR_RESULT_LOW =; - // //JobDetail.MONITOR_RESULT_HIGH=; - // //JobDetail.OVER_LIMIT =; - // //JobDetail.MONITOR_RESULT_05 =; - // //JobDetail.MONITOR_RESULT_10 =; - // //JobDetail.MONITOR_RESULT_AROUND=; - // //JobDetail.SAMPLE_TIME =; - // //JobDetail.TEST_TIME =; - // //JobDetail.MONITOR_RESULT =; - // //JobDetail.TEST_DEPARTMENT=; - // //JobDetail.TESTER =; - // JobDetail.IS_DELETED = false; - // JobDetail.ORG_ID = item.ORG_ID; - // //JobDetail.ENTITY_ORG_TPYE =; - // //JobDetail.FORM_ID =; - // //JobDetail.FLOW_STATUS =; - // //JobDetail.FLOW_SEND_STATUS=; - // //JobDetail.FLOW_ID =; - // //JobDetail.CREATE_TIME =; - // //JobDetail.MODIFY_TIME =; - // //JobDetail.CREATER_ID =; - // //JobDetail.MODIFIER_ID =; - - // listMonitorJobDetail.Add(JobDetail); - - // #endregion - - // #endregion - // } - //} - - //T_FM_SYNC_TASK task = GetEntity(filter.Keyword); - //if (task != null) - //{ - // task.UPDATE_SUCCES_TIME = DateTime.Now;//上次同步结束时间 - // task.SYNC_PARAM = "";//清空参数 - //} - - //this.UnifiedCommit(() => - //{ - // if (task != null) - // UpdateEntityNoCommit(task); - // if (listMonitorJob != null && listMonitorJob.Any()) - // BantchSaveEntityNoCommit(listMonitorJob); - // if (listTask != null && listTask.Any()) - // BantchSaveEntityNoCommit(listTask); - // if (listMonitorJobDetail != null && listMonitorJobDetail.Any()) - // BantchSaveEntityNoCommit(listMonitorJobDetail); - // if (listRuleUpdate != null && listRuleUpdate.Any()) - // BantchSaveEntityNoCommit(listRuleUpdate); - //}); - #endregion - - return true; - }); - } - - } -} diff --git a/APT.MicroApi/APT.PP.WebApi/Controllers/Api/SCController.cs b/APT.MicroApi/APT.PP.WebApi/Controllers/Api/SCController.cs index 1ee37db..ac7a2ee 100644 --- a/APT.MicroApi/APT.PP.WebApi/Controllers/Api/SCController.cs +++ b/APT.MicroApi/APT.PP.WebApi/Controllers/Api/SCController.cs @@ -5,12 +5,10 @@ using APT.BaseData.Domain.Enums.PF; using APT.BaseData.Domain.IServices; using APT.BaseData.Domain.IServices.FM; using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.AE; using APT.MS.Domain.Entities.BS; using APT.MS.Domain.Entities.HM; using APT.MS.Domain.Entities.PF; using APT.MS.Domain.Entities.SC; -using APT.MS.Domain.Entities.TL; using APT.MS.Domain.Enums; using APT.Utility; using APT.WebApi.Models; @@ -791,119 +789,10 @@ namespace APT.PP.WebApi.Controllers.Api.PP }); - #region 1、尾矿库 TL - //会议类型:文件审核会 会议内容 同时包含 【尾矿】【设计文件审核】 会议结束 触发 待办 上传 附件 文件名称 给安环负责人 - T_TL_FILE_SUM modelFileSum = null; - var listMTFA = listMT.Where(e => e.MEETINGTYPE == SCMEETINGTYPE.FileAudit); - if (listMTFA != null && listMTFA.Any()) - { - var MeetID = listMTFA.Select(e => e.ID); - var listMeetContent = GetEntities(e => MeetID.Contains(e.MEETING_ID) && e.Nav_ContentName.NAME.Contains("尾矿") && e.Nav_ContentName.NAME.Contains("设计文件审核"), null, "Nav_ContentName"); - - string Msg = string.Empty; - if (listMeetContent != null && listMeetContent.Any()) - { - var listMeetID = listMeetContent.Select(e => e.MEETING_ID).Distinct(); - - //不管几条 符合 尾矿库 建设 【设计文件专家评审意见】 - //1、只添加 一个待办 - //2、对应会议结束 完善信息 - userSafeMaster = UserService.GetRoleUser(ref Msg, "安环部负责人", null, null); - if (userSafeMaster != null) - { - //TL004 - string FormCode = "TL004"; - modelFileSum = new T_TL_FILE_SUM(); - modelFileSum.ID = Guid.NewGuid(); - modelFileSum.ORG_ID = filter.OrgId; - modelFileSum.CONTENT = "请提交经安全生产监督管理部门审查批准的专家审查意见"; - modelFileSum.DEPARTMENT_ID = userSafeMaster.DEPARTMENT_ID; - modelFileSum.USER_ID = userSafeMaster.ID; - modelFileSum.FILETYPE = FILETYPE.SJWJZJPSYJ; - modelFileSum.STATUS = PFStandardStatus.Draft; - if (listTaskSend == null) - listTaskSend = new List(); - var task = NotificationTaskService.InsertUserNoticeTaskModel("请提交经安全生产监督管理部门审查批准的专家审查意见", modelFileSum.ID, modelFileSum.ORG_ID, modelFileSum.USER_ID, userSafeMaster.NAME, System.DateTime.Now, 0, FormCode, FMTASKTYPE.Default); - listTaskSend.Add(task); - - foreach (var item in listMtEnd) - { - if (listMeetID.Contains(item.MEETING_ID)) - { - if (!item.DATA_ID.HasValue) - { - item.DATA_ID = modelFileSum.ID; - item.USER_ID = modelFileSum.USER_ID; - item.CODE = FormCode; - } - else - { - item.CODE += ";TL004 DATA_ID:" + modelFileSum.ID + " USER_ID:" + modelFileSum.USER_ID; - } - } - } - } - } - } - - #endregion - - //后续扩展 - #region 2、事故事件 会议小组 - - List listSurveyResult = null; - listMTFA = listMT.Where(e => e.MEETINGTYPE == SCMEETINGTYPE.Ordinary && e.CREACTTYPE == CREACTTYPEEnum.AEToMTAfterTeamMember); - if (listMTFA != null && listMTFA.Any()) - { - var listMTIDAE = listMTFA.Select(e => e.ID); - var begins = GetEntities(e => e.MEETING_ID.HasValue && e.ISBEGIN && listMTIDAE.Contains(e.MEETING_ID.Value), null, null); - listSurveyResult = new List(); - if (listTaskSend == null) - listTaskSend = new List(); - - foreach (var item in listMTFA) - { - T_AE_ACCIDENT_EVENT_SURVEY_RESULT modelResult = new T_AE_ACCIDENT_EVENT_SURVEY_RESULT(); - var begin = begins.FirstOrDefault(e => e.MEETING_ID == item.ID); - if (begin == null) - { - continue; - } - modelResult.ID = Guid.NewGuid(); - modelResult.REPORT_ID = begin.DATA_ID; - modelResult.STATUS = PFStandardStatus.Draft; - modelResult.IS_DELETED = false; - modelResult.ORG_ID = item.ORG_ID; - - //modelResult.CASUALTY_COUNT = ""; - //modelResult.ECONOMIC_LOSSES = ""; - //modelResult.ACCIDENT_COURSE = ""; - //modelResult.TIME = ""; - //modelResult.RISK_SUBMIT_ID = ""; - //modelResult.ENTITY_ORG_TPYE = ""; - //modelResult.FORM_ID = ""; - //modelResult.FLOW_STATUS = ""; - //modelResult.FLOW_SEND_STATUS = ""; - //modelResult.FLOW_ID = ""; - //modelResult.CREATE_TIME = ""; - //modelResult.MODIFY_TIME = ""; - //modelResult.CREATER_ID = ""; - //modelResult.MODIFIER_ID = ""; - - string SURVEYNAME = GetEntity(item.USER_ID_ORIGINATOR).NAME; - T_FM_NOTIFICATION_TASK taskAdd = NotificationTaskService.InsertUserNoticeTaskModel("事故事件调查结果填报", modelResult.ID, item.ORG_ID, item.USER_ID_ORIGINATOR, SURVEYNAME, DateTime.Now, 0, "AE010", FMTASKTYPE.Default); - - listTaskSend.Add(taskAdd); - listSurveyResult.Add(modelResult); - } - } - - #endregion - #region 3、CM 潜在紧急事件讨论 - listMTFA = listMT.Where(e => e.MEETINGTYPE == SCMEETINGTYPE.Ordinary && e.CREACTTYPE == CREACTTYPEEnum.ToCM018); + var listMTFA = listMT.Where(e => e.MEETINGTYPE == SCMEETINGTYPE.Ordinary && e.CREACTTYPE == CREACTTYPEEnum.ToCM018); if (listMTFA != null && listMTFA.Any()) { var userIDs = listMTFA.Where(e => e.USER_ID_RECORDER.HasValue && !e.ISCANCEL && !e.IS_DELETED).Select(e => e.USER_ID_RECORDER.Value); @@ -922,27 +811,6 @@ namespace APT.PP.WebApi.Controllers.Api.PP #endregion - #region 4、OG 组织保障 - //标准化系统评审意见 会议内容为安全生产标准化评审会的会议纪要完成后触发待办任务 (此表单) 给会议记录人 - - listMTFA = listMT.Where(e => e.CREACTTYPE == CREACTTYPEEnum.ToOG034Edit); - if (listMTFA != null && listMTFA.Any()) - { - var userIDs = listMTFA.Where(e => e.USER_ID_RECORDER.HasValue && !e.ISCANCEL && !e.IS_DELETED).Select(e => e.USER_ID_RECORDER.Value); - if (userIDs != null && userIDs.Any()) - { - var listUser = GetEntities(e => userIDs.Contains(e.ID), null); - if (listTaskSend == null) - listTaskSend = new List(); - foreach (var item in listUser) - { - listTaskSend.Add(NotificationTaskService.InsertUserNoticeTaskModel("标准化系统评审意见", null, filter.OrgId, item.ID, item.NAME, DateTime.Now, 0, "OG034_EDIT", FMTASKTYPE.Default)); - } - } - } - - #endregion - #endregion taskSync = GetEntity(filter.Keyword);//跑批待办 @@ -961,15 +829,9 @@ namespace APT.PP.WebApi.Controllers.Api.PP if (listTaskSend != null && listTaskSend.Any()) //添加待办 公共 BantchSaveEntityNoCommit(listTaskSend); - - if (modelFileSum != null) //TL 尾矿库建设 设计文件专家评审意见 - UpdateEntityNoCommit(modelFileSum); - - if (listSurveyResult != null && listSurveyResult.Any()) //AE 添加调查结果填报 - BantchSaveEntityNoCommit(listSurveyResult); }); - int Count = ((listMtEnd != null && listMtEnd.Any()) ? listMtEnd.Count() : 0) + ((listTaskSend != null && listTaskSend.Any()) ? listTaskSend.Count : 0) + ((listSurveyResult != null && listSurveyResult.Any()) ? listSurveyResult.Count : 0); + int Count = ((listMtEnd != null && listMtEnd.Any()) ? listMtEnd.Count() : 0) + ((listTaskSend != null && listTaskSend.Any()) ? listTaskSend.Count : 0); SyncLogDetailService.InsertSyncLogDetail(HttpContext.Items, HttpContext.TraceIdentifier, filter.OrgId, Count, filter.Parameter1, SyncLogType.BSCreateCheckPlanSet); return true; }); @@ -1016,62 +878,6 @@ namespace APT.PP.WebApi.Controllers.Api.PP { case SOURCETYPE.EventReport: - #region 流程描述 事故调查小组 =>会议 => 勘察记录 - - var member = GetEntity(e => e.REPORT_ID.HasValue && e.REPORT_ID.Value == item.DATA_ID && e.STATUS == PFStandardStatus.Archived, "Nav_AccidentEventReport"); - - var listUserLeadre = GetEntities(e => !e.IS_DELETED && e.TEAM_MEMBER_ID == member.ID, null, null);//副组长 - var listMember = GetEntities(e => !e.IS_DELETED && e.TEAM_MEMBER_ID == member.ID, null, null);//组员 - - if (listMember == null) - { - continue; - } - - T_SC_MT_MEETING entityMT = null; - List listMTAllUser = null; - IEnumerable listUserID = new List(); - if (listUserLeadre != null && listUserLeadre.Any()) - { - listUserID = listUserLeadre.Where(e => e.USER_ID.HasValue).Select(e => e.USER_ID.Value); - } - if (listMember != null && listMember.Any()) - { - listUserID = listUserID.Concat(listMember.Where(e => e.USER_ID.HasValue).Select(e => e.USER_ID.Value)); - } - if (item.MEETING_ID == Guid.Empty) - { - item.MEETING_ID = Guid.NewGuid(); - } - item.RUN_COUNT++; - item.ISBEGIN = true; - item.MODIFY_TIME = DateTime.Now; - - var userLeader = GetEntity(member.LEADER_USER_ID.Value, "Nav_Department"); - - - SCMTMeetingService.GetEntityInfo(item.MEETING_ID.Value, "事故事件关联 " + DateTime.Now.ToString("yyMMdd"), "事故事件关联 " + member.Nav_AccidentEventReport.NAME, member.Nav_AccidentEventReport.CODE, item.ORG_ID, userLeader.DEPARTMENT_ID.Value, userLeader.Nav_Department.DEPARTMENT_TYPE, member.LEADER_USER_ID.Value, CREACTTYPEEnum.AEToMTAfterTeamMember, SCMEETINGTYPE.Ordinary, listUserID, out entityMT, out listMTAllUser); - - - //listTask = NotificationTaskService.InsertUserNoticeTaskModels(noticeTitles[0], noticeDataIds, filter.OrgId, noticeUserIds, noticeUserNames, DateTime.Now, 0, FormCode, FMTASKTYPE.MT_PLAN_Make, (int)listPlanSetRund[i].PLANCHECKFREQUENCY); - - T_FM_NOTIFICATION_TASK taskNotice = NotificationTaskService.InsertUserNoticeTaskModel("请召开" + entityMT.MEETINGTYPE.GetDescription(), entityMT.ID, entityMT.ORG_ID, entityMT.USER_ID_ORIGINATOR, userLeader.NAME, dtNow, 0, "SC032", FMTASKTYPE.MT_PLAN_Make); - - //信息修改 - this.UnifiedCommit(() => - { - UpdateEntityNoCommit(item); - UpdateEntityNoCommit(entityMT); - if (listMTAllUser != null && listMTAllUser.Any()) - BantchSaveEntityNoCommit(listMTAllUser); - UpdateEntityNoCommit(taskNotice); - }); - - - int Count = ((listMTAllUser != null && listMTAllUser.Any()) ? listMTAllUser.Count() : 0); - SyncLogDetailService.InsertSyncLogDetail(HttpContext.Items, HttpContext.TraceIdentifier, filter.OrgId, Count, filter.Parameter1, SyncLogType.BSCreateCheckPlanSet); - - #endregion if (!isChange) isChange = true; break; diff --git a/APT.MicroApi/APT.PP.WebApi/Controllers/Api/TLController.cs b/APT.MicroApi/APT.PP.WebApi/Controllers/Api/TLController.cs deleted file mode 100644 index de0904b..0000000 --- a/APT.MicroApi/APT.PP.WebApi/Controllers/Api/TLController.cs +++ /dev/null @@ -1,992 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums; -using APT.BaseData.Domain.Enums.PF; -using APT.BaseData.Domain.IServices.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.TL; -using APT.MS.Domain.Enums; -using APT.Utility; -using APT.WebApi.Models; -using Microsoft.AspNetCore.Mvc; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Linq.Expressions; - -namespace APT.PP.WebApi.Controllers.Api.PP -{ - [Route("api/PP/TL")] - [TypeFilter(typeof(CustomActionFilterAttribute))] - public partial class TLController : AuthorizeApiController - { - - IFMNotificationTaskService NotificationTaskService { get; set; } - IFMUserService UserService { get; set; } - IPFSysLogService SysLogService { get; set; } - - IFMSyncLogDetailService SyncLogDetailService { get; set; } - public TLController(IFMNotificationTaskService notificationTaskService, IPFSysLogService sysLogService, IFMUserService userService, IFMSyncLogDetailService syncLogDetailService) - { - NotificationTaskService = notificationTaskService; - SysLogService = sysLogService; - UserService = userService; - SyncLogDetailService = syncLogDetailService; - } - - - /// - /// 判断跑批时间是否符合 - /// - /// - /// - /// - /// - /// - private bool ISTimeOK(DateTime? RUNSETTIME, DateTime dtNow, int minAdvance, int minLaster) - { - if (RUNSETTIME == null) - { - return false; - } - - if (RUNSETTIME != null) - { - if (minAdvance != 0 || minLaster != 0) - { - //DateTime dtSetTime = Convert.ToDateTime(dtNow.ToString("yyyy") + RUNSETTIME.Value.ToString("-MM-dd HH:mm:ss")); - DateTime dtSetTime = Convert.ToDateTime(dtNow.ToString("yyyy-MM-dd") + RUNSETTIME.Value.ToString(" HH:mm:ss")); - if (minAdvance > 0 && minLaster > 0) - { - if (dtNow.AddMinutes(-1 * minAdvance) <= dtSetTime && dtSetTime <= dtNow.AddMinutes(minLaster)) - { - return true; - } - } - else if (minAdvance > 0) - { - if (dtNow.AddMinutes(-1 * minAdvance) <= dtSetTime && dtSetTime <= dtNow) - { - //如果设置时间小于当前时间 并且 设置使劲按大于 当前时间大于当前时间往前偏移分钟数 - return true; - } - } - else - { - if (dtNow <= dtSetTime && dtSetTime <= dtNow.AddMinutes(minLaster)) - { - //如果 设置时间大于当前时间 并且设置时间小于当前时间往后偏移分钟数 - return true; - } - } - } - else - { - if (RUNSETTIME.Value.ToString("HH:mm") == dtNow.ToString("HH:mm")) - { - return true; - } - } - } - return false; - } - - - /// - /// 给 某个 部门的 某个岗位 人员 按配置发布 生产作业计划(title + 附件) - /// - /// - /// - /// - [HttpPost, Route("PlanBegin")] - public JsonActionResult PlanBegin([FromBody] KeywordFilter filter) - { - return SafeExecute(() => - { - DateTime dtNow = DateTime.Now; - if (!string.IsNullOrEmpty(filter.Parameter1)) - { - try - { - DateTime deParm = Convert.ToDateTime(filter.Parameter1); - dtNow = deParm; - } - catch - { - dtNow = DateTime.Now; - } - } - - T_FM_SYNC_TASK task = GetEntity(filter.Keyword);//跑批待办 - int min = 10;//10分钟以内 - DateTime dtMax = dtNow; - if (task.SYNC_UNIT.HasValue) - { - switch (task.SYNC_UNIT.Value)//秒 = 0, 分 = 1, 时 = 2, 天 = 3, - { - case 1: - min = task.PERIODIC_TIME; - break; - case 2: - min = task.PERIODIC_TIME * 60; - break; - case 3: - min = task.PERIODIC_TIME * 60 * 24; - break; - case 0: - default: - break; - } - } - - dtMax = dtMax.AddMinutes(min); - - #region 过滤今天已经触发的 - - var fileSumCheck = GetEntities(e => !e.IS_DELETED && e.CREATE_TIME.HasValue && e.TASK_PLAN_ID.HasValue && e.CREATE_TIME.Value.Date == dtNow.Date, null, null); - List listPlanSetID = null; - if (fileSumCheck != null && fileSumCheck.Any()) - { - listPlanSetID = fileSumCheck.Select(e => e.TASK_PLAN_ID.Value).ToList(); - } - Expression> expressionPlan = e => !e.IS_DELETED && e.ENABLE_STATUS == FMEnableStatusEnum.启用; - if (listPlanSetID != null) - { - expressionPlan = expressionPlan.And(e => !listPlanSetID.Contains(e.ID)); - } - - #endregion - - var listPlanSet = GetEntities(expressionPlan, null, null); - - - List listRun = new List(); - List listRunWatch = new List(); - DateTime dtSetTime = DateTime.Now; - - //判断跑批时间是否符合 - foreach (var item in listPlanSet) - { - dtSetTime = Convert.ToDateTime(dtNow.ToString("yyyy-MM-dd") + item.RUNSETTIME.ToString(" HH:mm:ss")); - if (dtNow <= dtSetTime && dtSetTime <= dtMax) - { - switch (item.PLANCHECKFREQUENCY) - { - case BSPLANCHECKFREQUENCYEnum.None: - - #region 单次检查 时间对 月 日对才加入 - - if (!string.IsNullOrEmpty(item.RUNDATA))//05-01,10-01 - { - List listMMdd = item.RUNDATA.Split(",").ToList(); - if (item.RUNDATA.Contains("-")) - { - for (int j = 0; j < listMMdd.Count; j++) - { - try - { - if (!string.IsNullOrEmpty(listMMdd[j]) && (Convert.ToDateTime(dtNow.Year.ToString() + ("-") + listMMdd[j]) == Convert.ToDateTime(dtNow.ToString("yyyy-MM-dd")) || Convert.ToDateTime(dtNow.Year.ToString() + "-" + listMMdd[j]) == Convert.ToDateTime(dtNow.ToString("yyyy-M-d")))) - { - listRun.Add(item); - break; - } - } - catch { } - } - } - else if (item.RUNDATA.Contains("/")) - { - for (int j = 0; j < listMMdd.Count; j++) - { - try - { - if (!string.IsNullOrEmpty(listMMdd[j]) && (Convert.ToDateTime(dtNow.Year.ToString("yyyy/") + listMMdd[j]) == Convert.ToDateTime(dtNow.ToString("yyyy/MM/dd")) || Convert.ToDateTime(dtNow.Year.ToString("yyyy/") + listMMdd[j]) == Convert.ToDateTime(dtNow.ToString("yyyy/M/d")))) - { - listRun.Add(item); - break; - } - } - catch { } - } - } - } - #endregion - break; - case BSPLANCHECKFREQUENCYEnum.Date: - //每日天执行 时间匹配就添加 - listRun.Add(item); - break; - case BSPLANCHECKFREQUENCYEnum.Week: - if (item.WEEKDATA != null && (int)dtNow.DayOfWeek == (int)item.WEEKDATA.Value) - { - //星期匹配 DateTime.Now.DayOfWeek Thursday (int)DateTime.Now.DayOfWeek 4 - listRun.Add(item); - } - break; - case BSPLANCHECKFREQUENCYEnum.Month: - if (item.DATA != null && item.DATA.Value == dtNow.Day) - { - //日匹配 (季度是季度第一月的某日 刚好也符合) - listRun.Add(item); - } - break; - case BSPLANCHECKFREQUENCYEnum.Quarter: - if (item.DATA != null && item.DATA.Value == dtNow.Day && (dtNow.Month == 1 || dtNow.Month == 4 || dtNow.Month == 7 || dtNow.Month == 10)) - { - //日匹配 (季度是季度第一月的某日 刚好也符合) - listRun.Add(item); - } - break; - case BSPLANCHECKFREQUENCYEnum.HalfYear: - if (item.DATA != null && item.DATA.Value == dtNow.Day && (dtNow.Month == 1 || dtNow.Month == 7)) - { - //日匹配 (季度是季度第一月的某日 刚好也符合) - listRun.Add(item); - } - break; - case BSPLANCHECKFREQUENCYEnum.Year: - if (item.DATA != null && item.DATA.Value == dtNow.Day && dtNow.Month == 1) - { - //日匹配 (季度是季度第一月的某日 刚好也符合) - listRun.Add(item); - } - break; - default: - break; - } - } - } - - #region 观测规则 - - var listDayDayly = GetEntities(e => !e.IS_DELETED && e.DATE == dtNow.Date && e.PLAN_ID.HasValue, null, null); - var listDayLine = GetEntities(e => !e.IS_DELETED && e.DATE == dtNow.Date && e.PLAN_ID.HasValue, null, null); - var listDayMove = GetEntities(e => !e.IS_DELETED && e.DATE == dtNow.Date && e.PLAN_ID.HasValue, null, null); - var listDayPercent = GetEntities(e => !e.IS_DELETED && e.DATE == dtNow.Date && e.PLAN_ID.HasValue, null, null); - - List listPlanID = new List(); - if (listDayDayly != null && listDayDayly.Any()) - { - listPlanID.AddRange(listDayDayly.Select(e => e.PLAN_ID.Value)); - } - if (listDayLine != null && listDayLine.Any()) - { - listPlanID.AddRange(listDayLine.Select(e => e.PLAN_ID.Value)); - } - if (listDayMove != null && listDayMove.Any()) - { - listPlanID.AddRange(listDayMove.Select(e => e.PLAN_ID.Value)); - } - if (listDayPercent != null && listDayPercent.Any()) - { - listPlanID.AddRange(listDayPercent.Select(e => e.PLAN_ID.Value)); - } - - Expression> expressionWatchPlan = e => e.ENABLE_STATUS == FMEnableStatusEnum.启用; - if (listPlanID != null && listPlanID.Any()) - { - listPlanID = listPlanID.Distinct().ToList(); - expressionWatchPlan = expressionWatchPlan.And(e => !listPlanID.Contains(e.ID)); - } - var watchPlanSet = GetEntities(expressionWatchPlan, null, null); - - if (watchPlanSet != null && watchPlanSet.Any()) - { - foreach (var item in watchPlanSet) - { - dtSetTime = Convert.ToDateTime(dtNow.ToString("yyyy-MM-dd") + item.RUNSETTIME.ToString(" HH:mm:ss")); - if (dtNow <= dtSetTime && dtSetTime <= dtMax) - { - switch (item.PLANCHECKFREQUENCY) - { - case BSPLANCHECKFREQUENCYEnum.None: - - #region 单次检查 时间对 月 日对才加入 - - if (!string.IsNullOrEmpty(item.RUNDATA))//05-01,10-01 - { - List listMMdd = item.RUNDATA.Split(",").ToList(); - if (item.RUNDATA.Contains("-")) - { - for (int j = 0; j < listMMdd.Count; j++) - { - try - { - if (!string.IsNullOrEmpty(listMMdd[j]) && (Convert.ToDateTime(dtNow.Year.ToString() + ("-") + listMMdd[j]) == Convert.ToDateTime(dtNow.ToString("yyyy-MM-dd")) || Convert.ToDateTime(dtNow.Year.ToString() + "-" + listMMdd[j]) == Convert.ToDateTime(dtNow.ToString("yyyy-M-d")))) - { - listRunWatch.Add(item); - break; - } - } - catch { } - } - } - else if (item.RUNDATA.Contains("/")) - { - for (int j = 0; j < listMMdd.Count; j++) - { - try - { - if (!string.IsNullOrEmpty(listMMdd[j]) && (Convert.ToDateTime(dtNow.Year.ToString("yyyy/") + listMMdd[j]) == Convert.ToDateTime(dtNow.ToString("yyyy/MM/dd")) || Convert.ToDateTime(dtNow.Year.ToString("yyyy/") + listMMdd[j]) == Convert.ToDateTime(dtNow.ToString("yyyy/M/d")))) - { - listRunWatch.Add(item); - break; - } - } - catch { } - } - } - } - #endregion - break; - case BSPLANCHECKFREQUENCYEnum.Date: - //每日天执行 时间匹配就添加 - listRunWatch.Add(item); - break; - case BSPLANCHECKFREQUENCYEnum.Week: - if (item.WEEKDATA != null && (int)dtNow.DayOfWeek == (int)item.WEEKDATA.Value) - { - //星期匹配 DateTime.Now.DayOfWeek Thursday (int)DateTime.Now.DayOfWeek 4 - listRunWatch.Add(item); - } - break; - case BSPLANCHECKFREQUENCYEnum.Month: - if (item.DATA != null && item.DATA.Value == dtNow.Day) - { - //日匹配 (季度是季度第一月的某日 刚好也符合) - listRunWatch.Add(item); - } - break; - case BSPLANCHECKFREQUENCYEnum.Quarter: - if (item.DATA != null && item.DATA.Value == dtNow.Day && (dtNow.Month == 1 || dtNow.Month == 4 || dtNow.Month == 7 || dtNow.Month == 10)) - { - //日匹配 (季度是季度第一月的某日 刚好也符合) - listRunWatch.Add(item); - } - break; - case BSPLANCHECKFREQUENCYEnum.HalfYear: - if (item.DATA != null && item.DATA.Value == dtNow.Day && (dtNow.Month == 1 || dtNow.Month == 7)) - { - //日匹配 (季度是季度第一月的某日 刚好也符合) - listRunWatch.Add(item); - } - break; - case BSPLANCHECKFREQUENCYEnum.Year: - if (item.DATA != null && item.DATA.Value == dtNow.Day && dtNow.Month == 1) - { - //日匹配 (季度是季度第一月的某日 刚好也符合) - listRunWatch.Add(item); - } - break; - default: - break; - } - - } - } - } - - #endregion - - if (listRun.Count < 1 && listRunWatch.Count < 1) - { - return true; - } - - #region 人员信息获取 - - List listDepID = new List(); - List listPostID = new List(); - - - if (listRun != null && listRun.Any()) - { - listDepID = listRun.Select(e => e.DEPARTMENT_ID).ToList(); - listPostID = listRun.Select(e => e.POST_ID).ToList(); - } - - if (listRunWatch != null && listRunWatch.Any()) - { - listDepID.AddRange(listRunWatch.Select(e => e.DEPARTMENT_ID).ToList()); - listPostID.AddRange(listRunWatch.Select(e => e.POST_ID).ToList()); - } - - var listPerson = GetEntities(e => e.POST_ID.HasValue && listPostID.Contains(e.POST_ID.Value), null, null); - var listPersonID = listPerson.Select(e => e.ID); - - Expression> expression = e => !e.IS_DELETED && e.ENABLE_STATUS == 0 && e.DEPARTMENT_ID.HasValue && e.PERSON_ID.HasValue; - if (listDepID.Count() == 1) - { - var depID = listDepID.ToList()[0]; - expression = expression.And(e => e.DEPARTMENT_ID.Value == depID); - } - else - { - expression = expression.And(e => listDepID.Contains(e.DEPARTMENT_ID.Value)); - } - - if (listPersonID.Count() == 1) - { - var PersonID = listPersonID.ToList()[0]; - expression = expression.And(e => e.PERSON_ID.Value == PersonID); - } - else - { - expression = expression.And(e => listPersonID.Contains(e.PERSON_ID.Value)); - } - var listUser = GetEntities(expression, null, null); - - #endregion - - - List listTaskSend = null; - List listFileSum = null; - if (listRun.Count > 0) - { - - #region 制定计划 匹配 人员 Nav_User - - foreach (var item in listRun) - { - var usersTemp = listUser.Where(e => e.DEPARTMENT_ID.Value == item.DEPARTMENT_ID); - if (usersTemp != null && usersTemp.Any()) - { - var depPersonID = usersTemp.Select(e => e.PERSON_ID.Value); - if (depPersonID != null && depPersonID.Any()) - { - var person = listPerson.Where(e => depPersonID.Contains(e.ID) && e.POST_ID.HasValue && e.POST_ID.Value == item.POST_ID); - //var person = usersTemp.Where(e => depPersonID.Contains(e.ID)); - if (person != null) - { - var perPersonID = person.Select(e => e.ID); - var userResult = listUser.FirstOrDefault(e => perPersonID.Contains(e.PERSON_ID.Value)); - if (userResult != null) - { - item.Nav_User = userResult; - } - } - } - } - } - #endregion - - string FormCode = "TL004"; - T_TL_FILE_SUM modelFileSum = null; - List listSum = new List(); - string Quency = string.Empty; - string Title = string.Empty; - - listRun.ForEach(e => - { - if (e.Nav_User != null) - { - if (e.PLANCHECKFREQUENCY == BSPLANCHECKFREQUENCYEnum.None) - { - Quency = ""; - } - else - { - //请上传下月/季度/年度 生产作业计划及运行图表至文件库。 - Quency = e.PLANCHECKFREQUENCY.GetDescription().Substring(1); //每月 => 月 ======> 下月、下季 - } - Title = "请上传下" + Quency + "生产作业计划及运行图表至文件库"; - modelFileSum = new T_TL_FILE_SUM(); - modelFileSum.ID = Guid.NewGuid(); - modelFileSum.ORG_ID = filter.OrgId; - modelFileSum.CONTENT = Title; - modelFileSum.DEPARTMENT_ID = e.DEPARTMENT_ID; - modelFileSum.USER_ID = e.Nav_User.ID; - modelFileSum.FILETYPE = FILETYPE.ZYJHJL; - modelFileSum.STATUS = PFStandardStatus.Draft; - modelFileSum.TASK_PLAN_ID = e.ID; - - if (listFileSum == null) - { - listFileSum = new List(); - } - listFileSum.Add(modelFileSum); - - if (listTaskSend == null) - { - listTaskSend = new List(); - } - var taskSend = NotificationTaskService.InsertUserNoticeTaskModel(Title, modelFileSum.ID, modelFileSum.ORG_ID, modelFileSum.USER_ID, e.Nav_User.NAME, System.DateTime.Now, 0, FormCode, FMTASKTYPE.Default); - listTaskSend.Add(taskSend); - - } - }); - } - - - List listDayly = null; - List listPercent = null; - List listLine = null; - List listLineDetail = null; - List listMove = null; - List listMoveDetail = null; - List listWatchSum = null;//总的 (新增也会进去) - List listWatchSumAdd = null;//需要添加的Model - - if (listRunWatch.Count > 0) - { - listWatchSum = GetEntities(e => e.DATE == dtNow.Date, null, null).ToList(); - var listTalingID = listRunWatch.Select(e => e.TAILING_ID); - T_TL_WATCH_SUM sumT = null; - foreach (var item in listTalingID) - { - sumT = listWatchSum.FirstOrDefault(e => e.TAILING_ID == item); - if (sumT == null) - { - sumT = new T_TL_WATCH_SUM(); - sumT.ID = Guid.NewGuid(); - sumT.ORG_ID = filter.OrgId; - sumT.DATE = dtNow.Date; - sumT.TAILING_ID = item; - sumT.TAILING_NAME = listRunWatch.FirstOrDefault(e => e.TAILING_ID == item)?.TAILING_NAME; - if (listWatchSumAdd == null) - { - listWatchSumAdd = new List(); - } - listWatchSumAdd.Add(sumT); - listWatchSum.Add(sumT); - } - } - - - - #region 人员匹配 - - foreach (var item in listRunWatch) - { - var usersTemp = listUser.Where(e => e.DEPARTMENT_ID.Value == item.DEPARTMENT_ID); - if (usersTemp != null && usersTemp.Any()) - { - var depPersonID = usersTemp.Select(e => e.PERSON_ID.Value); - if (depPersonID != null && depPersonID.Any()) - { - var person = listPerson.Where(e => depPersonID.Contains(e.ID) && e.POST_ID.HasValue && e.POST_ID.Value == item.POST_ID); - if (person != null) - { - var perPersonID = person.Select(e => e.ID); - var userResult = listUser.Where(e => perPersonID.Contains(e.PERSON_ID.Value)); - if (userResult != null && userResult.Any()) - { - item.Nav_ListUser = userResult.ToList(); - } - } - } - } - } - - #endregion - - #region 数据生成 - string FormCode = string.Empty; - - List listUserID = new List(); - List listUserNAME = new List(); - - foreach (var item in listRunWatch) - { - if (item.Nav_ListUser == null || !item.Nav_ListUser.Any()) - { - continue; - } - - switch (item.WATCHTYPE) - { - case WatchType.Dayly: - listUserID.Clear(); - listUserNAME.Clear(); - T_TL_WATCH_DAYLY modelDay = new T_TL_WATCH_DAYLY(); - modelDay.ID = Guid.NewGuid(); - modelDay.ORG_ID = item.ORG_ID; - modelDay.TAILING_NAME = item.TAILING_NAME; - modelDay.TAILING_ID = item.TAILING_ID; - sumT = listWatchSum.FirstOrDefault(e => e.TAILING_ID == item.TAILING_ID); - modelDay.SUM_ID = sumT.ID; - modelDay.DATE = dtNow.Date; - modelDay.PLAN_ID = item.ID; - modelDay.DEPARTMENT_ID = item.DEPARTMENT_ID; - if (item.Nav_ListUser.Count == 1) - { - modelDay.USER_ID = item.Nav_ListUser.ToList()[0].ID; - } - //modelDay.USER_ID = itemU.ID; - modelDay.STATUS = PFStandardStatus.Draft; - if (listDayly == null) - { - listDayly = new List(); - } - listDayly.Add(modelDay); - - foreach (var itemU in item.Nav_ListUser) - { - listUserID.Add(itemU.ID); - listUserNAME.Add(itemU.NAME); - } - if (listTaskSend == null) - listTaskSend = new List(); - listTaskSend.AddRange(NotificationTaskService.InsertUserNoticeTaskModels("日常观测", modelDay.ID, item.ORG_ID, listUserID, listUserNAME, dtNow, 0, "TL037", FMTASKTYPE.Default)); - break; - case WatchType.Pecent: - listUserID.Clear(); - listUserNAME.Clear(); - T_TL_WATCH_PERCENT modelPercent = new T_TL_WATCH_PERCENT(); - modelPercent.ID = Guid.NewGuid(); - modelPercent.ORG_ID = item.ORG_ID; - modelPercent.TAILING_NAME = item.TAILING_NAME; - modelPercent.TAILING_ID = item.TAILING_ID; - sumT = listWatchSum.FirstOrDefault(e => e.TAILING_ID == item.TAILING_ID); - modelPercent.SUM_ID = sumT.ID; - modelPercent.DATE = dtNow.Date; - modelPercent.PLAN_ID = item.ID; - modelPercent.DEPARTMENT_ID = item.DEPARTMENT_ID; - if (item.Nav_ListUser.Count == 1) - { - modelPercent.USER_ID = item.Nav_ListUser.ToList()[0].ID; - } - modelPercent.STATUS = PFStandardStatus.Draft; - if (listPercent == null) - listPercent = new List(); - listPercent.Add(modelPercent); - - foreach (var itemU in item.Nav_ListUser) - { - listUserID.Add(itemU.ID); - listUserNAME.Add(itemU.NAME); - } - if (listTaskSend == null) - listTaskSend = new List(); - listTaskSend.AddRange(NotificationTaskService.InsertUserNoticeTaskModels("坡比观测", modelPercent.ID, item.ORG_ID, listUserID, listUserNAME, dtNow, 0, "TL039", FMTASKTYPE.Default)); - break; - case WatchType.Move: - listUserID.Clear(); - listUserNAME.Clear(); - T_TL_WATCH_MOVE modelMove = new T_TL_WATCH_MOVE(); - modelMove.ID = Guid.NewGuid(); - modelMove.ORG_ID = item.ORG_ID; - modelMove.TAILING_NAME = item.TAILING_NAME; - modelMove.TAILING_ID = item.TAILING_ID; - sumT = listWatchSum.FirstOrDefault(e => e.TAILING_ID == item.TAILING_ID); - modelMove.SUM_ID = sumT.ID; - modelMove.DATE = dtNow.Date; - modelMove.PLAN_ID = item.ID; - modelMove.DEPARTMENT_ID = item.DEPARTMENT_ID; - if (item.Nav_ListUser.Count == 1) - { - modelMove.USER_ID = item.Nav_ListUser.ToList()[0].ID; - } - modelMove.STATUS = PFStandardStatus.Draft; - - if (listMove == null) - listMove = new List(); - listMove.Add(modelMove); - - var listMovePoints = GetEntities(e => !e.IS_DELETED && e.TAILING_ID == item.TAILING_ID, null, null); - if (listMovePoints != null && listMovePoints.Any()) - { - foreach (var itemMP in listMovePoints) - { - T_TL_WATCH_MOVE_DETAIL modelMD = new T_TL_WATCH_MOVE_DETAIL(); - modelMD.ID = Guid.NewGuid(); - modelMD.ORG_ID = modelMove.ORG_ID; - modelMD.TAILING_NAME = modelMove.TAILING_NAME; - modelMD.TAILING_ID = modelMove.TAILING_ID; - modelMD.MOVE_ID = modelMove.ID; - modelMD.SUM_ID = modelMove.SUM_ID; - modelMD.WATCH_MOVE_POINT_ID = itemMP.ID; - if (listMoveDetail == null) - listMoveDetail = new List(); - listMoveDetail.Add(modelMD); - } - } - - foreach (var itemU in item.Nav_ListUser) - { - listUserID.Add(itemU.ID); - listUserNAME.Add(itemU.NAME); - } - if (listTaskSend == null) - listTaskSend = new List(); - listTaskSend.AddRange(NotificationTaskService.InsertUserNoticeTaskModels("位移观测", modelMove.ID, item.ORG_ID, listUserID, listUserNAME, dtNow, 0, "TL041", FMTASKTYPE.Default)); - break; - case WatchType.Line: - listUserID.Clear(); - listUserNAME.Clear(); - T_TL_WATCH_LINE modelLine = new T_TL_WATCH_LINE(); - modelLine.ID = Guid.NewGuid(); - modelLine.ORG_ID = item.ORG_ID; - modelLine.TAILING_NAME = item.TAILING_NAME; - modelLine.TAILING_ID = item.TAILING_ID; - - sumT = listWatchSum.FirstOrDefault(e => e.TAILING_ID == item.TAILING_ID); - modelLine.SUM_ID = sumT.ID; - - modelLine.DATE = dtNow.Date; - modelLine.PLAN_ID = item.ID; - modelLine.DEPARTMENT_ID = item.DEPARTMENT_ID; - if (item.Nav_ListUser.Count == 1) - { - modelLine.USER_ID = item.Nav_ListUser.ToList()[0].ID; - } - modelLine.STATUS = PFStandardStatus.Draft; - - if (listLine == null) - { - listLine = new List(); - } - listLine.Add(modelLine); - - var listLinePoints = GetEntities(e => !e.IS_DELETED && e.TAILING_ID == item.TAILING_ID, null, null); - if (listLinePoints != null && listLinePoints.Any()) - { - foreach (var itemMP in listLinePoints) - { - T_TL_WATCH_LINE_DETAIL modelMD = new T_TL_WATCH_LINE_DETAIL(); - modelMD.ID = Guid.NewGuid(); - modelMD.ORG_ID = modelLine.ORG_ID; - modelMD.TAILING_NAME = modelLine.TAILING_NAME; - modelMD.TAILING_ID = modelLine.TAILING_ID; - modelMD.LINE_ID = modelLine.ID; - modelMD.SUM_ID = modelLine.SUM_ID; - modelMD.WATCH_LINE_POINT_ID = itemMP.ID; - - if (listLineDetail == null) - listLineDetail = new List(); - listLineDetail.Add(modelMD); - } - } - - foreach (var itemU in item.Nav_ListUser) - { - listUserID.Add(itemU.ID); - listUserNAME.Add(itemU.NAME); - } - if (listTaskSend == null) - listTaskSend = new List(); - listTaskSend.AddRange(NotificationTaskService.InsertUserNoticeTaskModels("浸润线观测", modelLine.ID, item.ORG_ID, listUserID, listUserNAME, dtNow, 0, "TL043", FMTASKTYPE.Default)); - break; - default: - break; - } - } - - #endregion - } - - if (task != null) - { - task.UPDATE_SUCCES_TIME = DateTime.Now;//上次同步结束时间 - task.SYNC_PARAM = ""; - } - - this.UnifiedCommit(() => - { - if (task != null) - UpdateEntityNoCommit(task);//跑批信息 - if (listTaskSend != null && listTaskSend.Any())//添加待办 - BantchSaveEntityNoCommit(listTaskSend); - if (listFileSum != null && listFileSum.Any())//添加待办表单 - BantchSaveEntityNoCommit(listFileSum); - - - if (listWatchSumAdd != null && listWatchSumAdd.Any())//观测汇总 - BantchSaveEntityNoCommit(listWatchSumAdd); - if (listDayly != null && listDayly.Any())//日常观测 - BantchSaveEntityNoCommit(listDayly); - if (listPercent != null && listPercent.Any())//观测汇总 - BantchSaveEntityNoCommit(listPercent); - if (listLine != null && listLine.Any())//浸润线汇总 - BantchSaveEntityNoCommit(listLine); - if (listLineDetail != null && listLineDetail.Any())//浸润线汇总 - BantchSaveEntityNoCommit(listLineDetail); - if (listMove != null && listMove.Any())//位移观测 - BantchSaveEntityNoCommit(listMove); - if (listMoveDetail != null && listMoveDetail.Any())//位移观测 - BantchSaveEntityNoCommit(listMoveDetail); - }); - - int Count = ((listTaskSend != null && listTaskSend.Any()) ? listTaskSend.Count() : 0) + ((listFileSum != null && listFileSum.Any()) ? listFileSum.Count() : 0) + ((listWatchSumAdd != null && listWatchSumAdd.Any()) ? listWatchSumAdd.Count() : 0) + ((listDayly != null && listDayly.Any()) ? listDayly.Count() : 0) + ((listPercent != null && listPercent.Any()) ? listPercent.Count() : 0) + ((listLine != null && listLine.Any()) ? listLine.Count() : 0) + ((listLineDetail != null && listLineDetail.Any()) ? listLineDetail.Count() : 0) + ((listMove != null && listMove.Any()) ? listMove.Count() : 0) + ((listMoveDetail != null && listMoveDetail.Any()) ? listMoveDetail.Count() : 0); - SyncLogDetailService.InsertSyncLogDetail(HttpContext.Items, HttpContext.TraceIdentifier, filter.OrgId, Count, filter.Parameter1, SyncLogType.BSCreateCheckPlanSet); - - return true; - }); - } - - - - #region 按回采计划 给值班人员 发送回采记录单 - - /// - /// 按回采计划 给值班人员 发送回采记录单(TL016) - /// - /// - /// - /// - [HttpPost, Route("BackPlan")] - public JsonActionResult BackPlan([FromBody] KeywordFilter filter) - { - return SafeExecute(() => - { - DateTime dtNow = DateTime.Now; - if (!string.IsNullOrEmpty(filter.Parameter1)) - { - try - { - DateTime deParm = Convert.ToDateTime(filter.Parameter1); - dtNow = deParm; - } - catch - { - dtNow = DateTime.Now; - } - } - - T_FM_SYNC_TASK task = GetEntity(filter.Keyword);//跑批待办 - - int min = 10;//10分钟以内 - DateTime dtMin = dtNow; - DateTime dtMax = dtNow; - if (task.SYNC_UNIT.HasValue) - { - switch (task.SYNC_UNIT.Value)//秒 = 0, 分 = 1, 时 = 2, 天 = 3, - { - case 1: - min = task.PERIODIC_TIME; - break; - case 2: - min = task.PERIODIC_TIME * 60; - break; - case 3: - min = task.PERIODIC_TIME * 60 * 24; - break; - case 0: - default: - break; - } - } - - dtMin = dtMin.AddMinutes(-1 * min); - dtMax = dtMax.AddMinutes(min); - - //今天 因为回采计划生成的回采记录 - var listRecordCheck = GetEntities(e => e.BACK_DETAIL_ID.HasValue && e.BACKTIME.HasValue && e.BACKTIME.Value.Date == dtNow.Date && e.CREATE_TIME.HasValue && e.CREATE_TIME.Value > dtMin, null, null); - Expression> expression = e => e.Nav_Back.STATUS == PFStandardStatus.Archived && e.DATESTART.HasValue && e.DATESTART.Value > dtMin && e.DATESTART.Value < dtMax; - if (listRecordCheck != null && listRecordCheck.Any()) - { - var listBackDetailID = listRecordCheck.Select(e => e.BACK_DETAIL_ID); - expression = expression.And(e => !listBackDetailID.Contains(e.ID)); - } - - var listDetail = GetEntities(expression, null, "Nav_Back"); - if (listDetail == null || !listDetail.Any()) - { - //没有需要执行的信息 - return true; - } - - //发送回采记录 TL016 - var listDetailID = listDetail.Select(e => e.ID); - var listDetailUser = GetEntities(e => listDetailID.Contains(e.BACK_DETAIL_ID), null, null); - - List listRecord = new List(); - List listTask = new List();//给回采计划值班人(第一个人)添加代办 - List listRecordUser = new List(); - - T_TL_BACK_RECORD model = null; - IEnumerable iListDetailUser = null; - int IndexDetail = 0; - - T_TL_BACK modelBack = null; - var listBackID = listDetail.Select(e => e.BACK_ID); - var listBack = GetEntities(e => listBackID.Contains(e.ID), null, null); - - foreach (var item in listDetail) - { - iListDetailUser = listDetailUser.Where(e => e.BACK_DETAIL_ID == item.ID).OrderByDescending(e => e.ISMAINCHECK); - if (iListDetailUser == null || !iListDetailUser.Any()) - { - continue; - } - modelBack = listBack.FirstOrDefault(e => e.ID == item.BACK_ID); - if (modelBack == null) - { - continue; - } - - model = new T_TL_BACK_RECORD(); - model.ID = Guid.NewGuid(); - model.ORG_ID = item.ORG_ID; - model.TAILING_NAME = modelBack.TAILING_NAME; - model.TAILING_ID = modelBack.TAILING_ID; - model.BACKTIME = item.DATESTART; - //model.DEPARTMENT_ID = Guid.Empty; - model.BACK_DETAIL_ID = item.ID; - model.BACKTIMEEND = item.DATEEND; - model.NAME = modelBack.NAME; - - IndexDetail = 0; - foreach (var itemU in iListDetailUser) - { - if (IndexDetail == 0) - { - model.USER_ID = itemU.USER_ID; - } - - listRecordUser.Add(new T_TL_BACK_RECORD_USER() - { - ID = Guid.NewGuid(), - ORG_ID = item.ORG_ID, - BACK_RECORD_ID = model.ID, - USER_ID = itemU.USER_ID, - ISMAINCHECK = IndexDetail == 0 ? true : false, - ISCHECK = false - }); - - IndexDetail++; - } - listRecord.Add(model); - } - - var listUserID = listRecord.Select(e => e.USER_ID); - var listUser = GetEntities(e => listUserID.Contains(e.ID), null, null); - T_FM_USER modelUser = null; - - foreach (var item in listRecord) - { - modelUser = listUser.First(e => e.ID == item.USER_ID); - item.DEPARTMENT_ID = modelUser.DEPARTMENT_ID; - - listTask.Add(NotificationTaskService.InsertUserNoticeTaskModel("回采记录", item.ID, item.ORG_ID, item.USER_ID, modelUser.NAME, DateTime.Now, 0, "TL016", FMTASKTYPE.Default)); - } - - if (task != null) - { - task.UPDATE_SUCCES_TIME = DateTime.Now;//上次同步结束时间 - task.SYNC_PARAM = ""; - } - - this.UnifiedCommit(() => - { - if (task != null) - UpdateEntityNoCommit(task);//跑批信息 - if (listTask != null && listTask.Any())//添加待办 - BantchSaveEntityNoCommit(listTask); - if (listRecord != null && listRecord.Any())//添加回采记录 - BantchSaveEntityNoCommit(listRecord); - if (listRecordUser != null && listRecordUser.Any())//添加回采记录值班人 - BantchSaveEntityNoCommit(listRecordUser); - }); - - int Count = ((listTask != null && listTask.Any()) ? listTask.Count() : 0) + ((listRecord != null && listRecord.Any()) ? listRecord.Count() : 0) + ((listRecordUser != null && listRecordUser.Any()) ? listRecordUser.Count() : 0); - SyncLogDetailService.InsertSyncLogDetail(HttpContext.Items, HttpContext.TraceIdentifier, filter.OrgId, Count, filter.Parameter1, SyncLogType.BSCreateCheckPlanSet); - - return true; - }); - } - - #endregion - - } -} diff --git a/APT.MicroApi/APT.SC.WebApi/App_Start/DIConfig.cs b/APT.MicroApi/APT.SC.WebApi/App_Start/DIConfig.cs index 76f1458..b0869f9 100644 --- a/APT.MicroApi/APT.SC.WebApi/App_Start/DIConfig.cs +++ b/APT.MicroApi/APT.SC.WebApi/App_Start/DIConfig.cs @@ -1,5 +1,4 @@ using APT.BaseData.Domain.IServices; -using APT.BaseData.Domain.IServices.AE; using APT.BaseData.Domain.IServices.BD; using APT.BaseData.Domain.IServices.BI; using APT.BaseData.Domain.IServices.BS; @@ -7,7 +6,6 @@ using APT.BaseData.Domain.IServices.EX; using APT.BaseData.Domain.IServices.FM; using APT.BaseData.Domain.IServices.Platform; using APT.BaseData.Services.DomainServices; -using APT.BaseData.Services.Services.AE; using APT.BaseData.Services.Services.BD; using APT.BaseData.Services.Services.BI; using APT.BaseData.Services.Services.BS; @@ -60,7 +58,6 @@ namespace APT.HM.WebApi.App_Start builder.RegisterType().As().InstancePerLifetimeScope(); builder.RegisterType().As().InstancePerLifetimeScope(); builder.RegisterType().As().InstancePerLifetimeScope(); - builder.RegisterType().As().InstancePerLifetimeScope(); builder.RegisterType().As().InstancePerLifetimeScope(); builder.RegisterType().As().InstancePerLifetimeScope(); diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/AEController/AEAEInvestigationRecordController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/AEController/AEAEInvestigationRecordController.cs deleted file mode 100644 index d69529f..0000000 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/AEController/AEAEInvestigationRecordController.cs +++ /dev/null @@ -1,315 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.BaseData.Domain.IServices; -using APT.BaseData.Domain.IServices.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.AE; -using APT.MS.Domain.Entities.TI; -using APT.MS.Domain.Enums; -using APT.Utility; -using Microsoft.AspNetCore.Mvc; -using System; -using System.Collections.Generic; -using System.Linq; - -namespace APT.SC.WebApi.Controllers.Api.AE -{ - [Route("api/AE/AEInvestigationRecord")] - public class AEInvestigationRecordController : AuthorizeApiController - { - IFMFlowPermitService MFlowPermitService { get; set; } - IPFApproveCallBackService ApproveCallBackService { get; set; } - IFMNotificationTaskService NotificActionTaskService { get; set; } - public AEInvestigationRecordController(IFMFlowPermitService mFlowPermitService, IPFApproveCallBackService approveCallBackService, IFMNotificationTaskService notificActionTaskService) - { - MFlowPermitService = mFlowPermitService; - ApproveCallBackService = approveCallBackService; - NotificActionTaskService = notificActionTaskService; - } - - /// - /// 勘察记录 修改 - /// - /// - /// - [HttpPost, Route("FullUpdate")] - public JsonActionResult FullUpdate([FromBody] T_AE_INVESTIGATION_RECORD entity) - { - return SafeExecute(() => - { - if (entity.STATUS != PFStandardStatus.Draft && entity.STATUS != PFStandardStatus.Sign) - { - throw new Exception("获取操作方式有误!"); - } - var loginID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID; - if (entity.CREATE_TIME.HasValue && entity.CREATE_TIME < DateTime.Now && entity.USER_ID.Value != loginID.Value) - { - throw new Exception("此勘察记录单不是您添加的,操作失败!"); - } - - var UsersInvestigation = entity.Nav_UsersInvestigation;//勘察人员 - entity.Nav_UsersInvestigation = null; - var UsersAsk = entity.Nav_UsersAsk;//询问人员 - entity.Nav_UsersAsk = null; - - var FilesAcc = entity.Nav_FilesAcc;//事故照片 - entity.Nav_FilesAcc = null; - var FilesChart = entity.Nav_FilesChart;//绘制事故图 - entity.Nav_FilesChart = null; - var NotesFilesNotes = entity.Nav_NotesFilesNotes;//现场笔录 - entity.Nav_NotesFilesNotes = null; - - if (UsersAsk != null && UsersAsk.Count > 0) - { - foreach (var item in UsersAsk) - { - item.Nav_User = null; - } - } - - if (entity.STATUS == PFStandardStatus.Draft) - { - - if (UsersInvestigation != null && UsersInvestigation.Count > 0) - { - foreach (var item in UsersInvestigation) - { - item.Nav_User = null; - } - } - this.UnifiedCommit(() => - { - if (entity != null) - UpdateEntityNoCommit(entity); //勘察记录 - if (UsersInvestigation != null && UsersInvestigation.Any())//勘察人员 - BantchSaveEntityNoCommit(UsersInvestigation); - if (UsersAsk != null && UsersAsk.Any())//询问人员 - BantchSaveEntityNoCommit(UsersAsk); - if (FilesAcc != null && FilesAcc.Any())//事故照片 - BantchSaveEntityNoCommit(FilesAcc); - if (FilesChart != null && FilesChart.Any())//绘制事故图 - BantchSaveEntityNoCommit(FilesChart); - if (NotesFilesNotes != null && NotesFilesNotes.Any())//现场笔录 - BantchSaveEntityNoCommit(NotesFilesNotes); - }); - } - else - { - if (entity.ACCIDENT_ID == null) - { - throw new Exception("请选择事故事件!"); - } - if (entity.INVESTIGATION_TIME == null) - { - throw new Exception("请选择勘察时间!"); - } - //else if (entity.INVESTIGATION_TIME > DateTime.Now.Date.AddDays(1).AddSeconds(-1)) - //{ - // throw new Exception("勘察时间不能大于今天!"); - //} - if (string.IsNullOrEmpty(entity.INVESTIGATION_LOCATION)) - { - throw new Exception("请填写勘察地点!"); - } - if (string.IsNullOrEmpty(entity.INVESTIGATION_REASON)) - { - throw new Exception("请填写勘察事由!"); - } - if (string.IsNullOrEmpty(entity.SCENE_ENV_DESC)) - { - throw new Exception("请填写事故现场外围和环境情况!"); - } - if (entity.ACCIDENT_ID == null) - { - throw new Exception("请选择事故事件!"); - } - if (UsersInvestigation == null || !UsersInvestigation.Any()) - { - throw new Exception("请选择勘察人员!"); - } - - //事故 事件 调查小组 - var TeamMember = GetEntity(e => e.REPORT_ID == entity.ACCIDENT_ID && e.STATUS == PFStandardStatus.Archived); - if (TeamMember == null) - { - throw new Exception("获取该事故事件调查小组信息失败!"); - } - entity.TEAM_MEMBER_ID = TeamMember.ID; - if (TeamMember == null || TeamMember.LEADER_USER_ID == null) - { - throw new Exception("调查小组组长不能为空!"); - } - entity.LEADER_USER_ID = TeamMember.LEADER_USER_ID;//组长 - - List listUserID = new List(); - List listUserName = new List(); - var listUsersInvestigation = UsersInvestigation.ToList(); - for (int i = 0; i < listUsersInvestigation.Count; i++) - { - if (!listUserID.Contains(listUsersInvestigation[i].USER_ID) && !listUsersInvestigation[i].IS_DELETED) - { - listUserID.Add(listUsersInvestigation[i].USER_ID); - listUserName.Add(listUsersInvestigation[i].Nav_User.NAME); - } - } - - if (UsersInvestigation != null && UsersInvestigation.Count > 0) - { - foreach (var item in UsersInvestigation) - { - item.Nav_User = null; - } - } - - //给勘察人员发送待办 - List listTask = NotificActionTaskService.InsertUserNoticeTaskModels("勘察记录审阅", entity.ID, entity.ORG_ID, listUserID, listUserName, DateTime.Now, DateTime.Now.AddHours(12), (int)FMNoticeTypeEnum.消息, "AE018_SHOWPRINT"); - - - T_FM_NOTIFICATION_TASK taskEnd = null; - if (entity.TaskID != Guid.Empty) - { - taskEnd = NotificActionTaskService.GetTaskFinishModel(entity.TaskID, "AE018_SHOWPRINT"); - } - - this.UnifiedCommit(() => - { - if (entity != null) - UpdateEntityNoCommit(entity); //勘察记录 - if (UsersInvestigation != null && UsersInvestigation.Any())//勘察人员 - BantchSaveEntityNoCommit(UsersInvestigation); - if (UsersAsk != null && UsersAsk.Any())//询问人员 - BantchSaveEntityNoCommit(UsersAsk); - if (FilesAcc != null && FilesAcc.Any())//事故照片 - BantchSaveEntityNoCommit(FilesAcc); - if (FilesChart != null && FilesChart.Any())//绘制事故图 - BantchSaveEntityNoCommit(FilesChart); - if (NotesFilesNotes != null && NotesFilesNotes.Any())//现场笔录 - BantchSaveEntityNoCommit(NotesFilesNotes); - if (listTask != null && listTask.Any())//现场笔录 - BantchSaveEntityNoCommit(listTask); - if (taskEnd != null) - UpdateEntityNoCommit(taskEnd); - }); - - try - { - //如果 勘察人员 包含 登陆者 添加 审阅 - if (listUserID.Contains(loginID.Value)) - { - KeywordFilter filter = new KeywordFilter(); - filter.Keyword = entity.ID.ToString(); - filter.Parameter1 = listTask.FirstOrDefault(e => e.USER_ID == loginID.Value).ID.ToString(); - Read(filter); - } - } - catch { } - - } - return true; - }); - } - - /// - /// 勘察人员 审阅 - /// - /// - /// - /// - [HttpPost, Route("Read")] - public JsonActionResult Read([FromBody] KeywordFilter filter) - { - return SafeExecute(() => - { - if (string.IsNullOrEmpty(filter.Keyword) || string.IsNullOrEmpty(filter.Parameter1)) - { - throw new Exception("传参有误!"); - } - var guid = new Guid(filter.Keyword); - var taskID = new Guid(filter.Parameter1); - if (guid == Guid.Empty || taskID == Guid.Empty) - { - throw new Exception("传参有误!"); - } - var loginID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID; - var Check = GetEntity(e => e.USER_ID == loginID && e.RECORD_ID == guid); - var task = NotificActionTaskService.GetEntityTask(taskID); - - - if (Check == null) - { - this.UnifiedCommit(() => - { - if (task != null) - UpdateEntityNoCommit(task); - }); - throw new Exception("您无需确认!"); - } - else - { - - if (Check.STATUS == AEInvestigationUserStatusEnum.已审阅) - { - this.UnifiedCommit(() => - { - if (task != null) - UpdateEntityNoCommit(task); - }); - throw new Exception("您已审阅,无需再次操作!"); - } - else - { - Check.STATUS = AEInvestigationUserStatusEnum.已审阅; - var UnCheck = GetEntity(e => e.USER_ID != loginID && e.RECORD_ID == guid && e.STATUS == AEInvestigationUserStatusEnum.未审阅); - if (UnCheck == null) - { - T_AE_INVESTIGATION_RECORD model = GetEntity(Check.RECORD_ID, new string[] { "Nav_LeaderUser" }); - Dictionary dicApproveUser = new Dictionary(); - dicApproveUser.Add(1, model.Nav_LeaderUser); - model.APPROVE_ID = Guid.NewGuid(); - - //给调查组组长 发送待办 - MFlowPermitService.InsertApprove("", "AE018", null, model.ID, "AE018_SHOWPRINT", null, true, () => - { - if (model != null) - UpdateEntityNoCommit(model); - if (Check != null) - UpdateEntityNoCommit(Check); - if (task != null) - UpdateEntityNoCommit(task); - }, model.APPROVE_ID, null, dicApproveUser); - } - else - { - this.UnifiedCommit(() => - { - if (task != null) - UpdateEntityNoCommit(task); - if (Check != null) - UpdateEntityNoCommit(Check); - }); - } - } - } - return true; - }); - } - - - - /// - /// 勘察记录组长审批完成后回调 - /// - /// - /// - [HttpGet, Route("LeaderCheck")] - public JsonActionResult LeaderCheck(string id) - { - return SafeExecute(() => - { - return ApproveCallBackService.CallBack("AE/AEInvestigationRecord/LeaderCheck", id); - }); - } - - } -} \ No newline at end of file diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/AEController/AEAccidentEventReportController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/AEController/AEAccidentEventReportController.cs deleted file mode 100644 index bffc69a..0000000 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/AEController/AEAccidentEventReportController.cs +++ /dev/null @@ -1,303 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.BaseData.Domain.IServices; -using APT.BaseData.Domain.IServices.AE; -using APT.BaseData.Domain.IServices.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.AE; -using APT.MS.Domain.Entities.TI; -using APT.MS.Domain.Enums; -using APT.Utility; -using Microsoft.AspNetCore.Mvc; -using System; -using System.Collections.Generic; -using System.Linq; - -namespace APT.SC.WebApi.Controllers.Api.AE -{ - [Route("api/AE/AEAccidentEventReport")] - public class AEAccidentEventReportController : AuthorizeApiController - { - IFMFlowPermitService MFlowPermitService { get; set; } - IPFApproveCallBackService ApproveCallBackService { get; set; } - IAEAccidentEventReportService AccidentEventReportService { get; set; } - public AEAccidentEventReportController(IFMFlowPermitService mFlowPermitService, IPFApproveCallBackService approveCallBackService, IAEAccidentEventReportService accidentEventReportService) - { - MFlowPermitService = mFlowPermitService; - ApproveCallBackService = approveCallBackService; - AccidentEventReportService = accidentEventReportService; - } - - /// - /// 事故事件上报 修改 - /// - /// - /// - [HttpPost, Route("FullUpdate")] - public JsonActionResult FullUpdate([FromBody] T_AE_ACCIDENT_EVENT_REPORT entity) - { - return SafeExecute(() => - { - if (entity.STATUS != PFStandardStatus.Draft && entity.STATUS != PFStandardStatus.Approving) - { - throw new Exception("获取操作方式有误!"); - } - var loginID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID; - if (entity.CREATE_TIME.HasValue && entity.CREATE_TIME < DateTime.Now && entity.USER_ID.Value != loginID.Value) - { - throw new Exception("此上报单不是您添加的,操作失败!"); - } - - var files = entity.Nav_Files;//附件 - entity.Nav_Files = null; - - var ListAccidentListKind = entity.Nav_ListAccidentListKind; - entity.Nav_ListAccidentListKind = null; - - if (ListAccidentListKind != null && ListAccidentListKind.Count > 0) - { - foreach (var item in ListAccidentListKind) - { - item.Nav_AccidentKind = null; - } - } - - if (entity.STATUS == PFStandardStatus.Draft) - { - this.UnifiedCommit(() => - { - if (entity != null) - UpdateEntityNoCommit(entity); //事故事件上报 - if (ListAccidentListKind != null && ListAccidentListKind.Any())//事故种类 - BantchSaveEntityNoCommit(ListAccidentListKind); - if (files != null && files.Any())//事故现场 - BantchSaveEntityNoCommit(files); - }); - } - else - { - if (string.IsNullOrEmpty(entity.NAME)) - { - throw new Exception("请输入事故名称!"); - } - if (entity.TIME == null) - { - throw new Exception("请选择事故时间!"); - } - if (string.IsNullOrEmpty(entity.ACCIDENT_PLACE)) - { - throw new Exception("请输入事故地点!"); - } - if (ListAccidentListKind == null) - { - throw new Exception("请选择事故种类!"); - } - if (entity.ACCIDENT_TYPE_ID == null) - { - throw new Exception("请选择事故类型!"); - } - if (!entity.ACCIDENT_LEVEL.HasValue) - { - throw new Exception("请选择事故等级!"); - } - if (entity.DEPARTMENT_ID == null) - { - throw new Exception("请选择事故部门!"); - } - if (entity.USER_ID == null) - { - throw new Exception("请选择发起人!"); - } - if (string.IsNullOrEmpty(entity.ACCIDENT_REASON)) - { - throw new Exception("请输入事故起因!"); - } - if (!entity.ECONOMIC_LOSSES.HasValue) - { - throw new Exception("请输入直接经济损失(元)!"); - } - if (string.IsNullOrEmpty(entity.IMPACT_SCOPE)) - { - throw new Exception("请输入波及范围!"); - } - if (string.IsNullOrEmpty(entity.TAKE_MEASURES)) - { - throw new Exception("请输入已采取措施!"); - } - - //审批 - entity.APPROVE_ID = Guid.NewGuid(); - string param = AccidentEventReportService.GetApproveParm(entity); - //string.Empty; - //switch (entity.ACCIDENT_LEVEL) - //{ - // case AEAccidentLevel.Jumbo: - // case AEAccidentLevel.Major: - // case AEAccidentLevel.Larger: - // case AEAccidentLevel.General: - // case AEAccidentLevel.SeriouslyInjured: - // param = "1_2_3_4_5"; - // break; - - // case AEAccidentLevel.MinorJuries: - // param = "6"; - // break; - // case AEAccidentLevel.Aminor: - // param = "7"; - // break; - // case AEAccidentLevel.Risk: - // if (entity.ECONOMIC_LOSSES.HasValue && entity.ECONOMIC_LOSSES.Value >= 5000) - // { - // param = "8>=5000"; - // } - // else - // { - // param = "8<5000"; - // } - // break; - // default: - // break; - //} - Guid userID = Guid.Empty; - //事故部门 负责人 - var dep = GetEntity(entity.DEPARTMENT_ID.Value); - if (dep.USER_ID != null && dep.USER_ID != Guid.Empty) - { - userID = dep.USER_ID.Value; - } - else - { - var user = GetEntity(e => e.DEPARTMENT_ID == entity.DEPARTMENT_ID); - if (user == null) - { - throw new Exception("未找到该事故部门成员!"); - } - userID = user.ID; - } - MFlowPermitService.InsertApprove("", "AE006", param, entity.ID, "AE006_SHOWPRINT", entity.TaskID, true, () => - { - if (entity != null) - UpdateEntityNoCommit(entity); //事故事件上报 - if (ListAccidentListKind != null && ListAccidentListKind.Any())//事故种类 - BantchSaveEntityNoCommit(ListAccidentListKind); - if (files != null && files.Any())//事故现场 - BantchSaveEntityNoCommit(files); - }, entity.APPROVE_ID, userID, null, null, null, null, null); - } - - return true; - }); - } - - /// - /// 会议通知发布审批回调 - /// - /// - /// - [HttpGet, Route("EventBack")] - public JsonActionResult RecordBack(string id) - { - return SafeExecute(() => - { - return ApproveCallBackService.CallBack("AE/AEAccidentEventReport/EventBack", id); - }); - } - - - - /// - /// 获得单条实体数据(添加限制结束时间) - /// - /// 过滤实体 - /// - [HttpPost, Route("LibGet")] - public JsonActionResult LibGet([FromBody] KeywordFilter filter) - { - return SafeExecute(() => - { - Guid ID = Guid.Empty; - if (filter.FilterGroup.Rules.Count > 0) - { - foreach (var item in filter.FilterGroup.Rules) - { - if (item.Field == "ID") - { - ID = new Guid(item.Value.ToString()); - break; - } - } - } - if (ID == Guid.Empty) - { - return null; - } - - //事故事件上报 - var Report = GetEntity(e => e.ID == ID, new string[] { "Nav_AccidentType", "Nav_Department", "Nav_User", "Nav_ListAccidentListKind.Nav_AccidentKind" }); - - //事故事件调查结果 - T_AE_ACCIDENT_EVENT_SURVEY_RESULT SurveyResult = GetEntity(e => e.REPORT_ID == ID && e.STATUS == PFStandardStatus.Archived, new string[] { "Nav_ListSurveyDamageObject.Nav_DamageObject", "Nav_FilesSurvey.Nav_ImgFile.Nav_File", "Nav_FilesP.Nav_ImgFile.Nav_File" }); - if (SurveyResult != null) - { - //事故事件原因 - SurveyResult.Nav_ListReason = GetEntities(e => e.RESULT_ID == SurveyResult.ID, null, new string[] { "Nav_ListReasonType.Nav_ReasonType" }).ToList(); - - //调查取证资料 - SurveyResult.Nav_ListForensics = GetEntities(e => e.RESULT_ID == SurveyResult.ID, null, new string[] { "Nav_FilesSurvey.Nav_ImgFile.Nav_File" }).ToList(); - - //人员伤亡信息 - SurveyResult.Nav_ListCasualties = GetEntities(e => e.RESULT_ID == SurveyResult.ID, null, new string[] { "Nav_User" }).ToList(); - if (SurveyResult.Nav_ListCasualties != null && SurveyResult.Nav_ListCasualties.Any()) - { - //工伤理赔信息 - var listClaimRecord = GetEntities(e => e.ACCIDENT_ID == ID && e.STATUS == PFStandardStatus.Archived, null, new string[] { "Nav_Files.Nav_ImgFile.Nav_File" }); - if (listClaimRecord != null && listClaimRecord.Any()) - { - foreach (var item in SurveyResult.Nav_ListCasualties) - { - var claimRecord = listClaimRecord.FirstOrDefault(e => e.USER_ID == item.USER_ID); - if (claimRecord != null) - { - item.Nav_ClaimRecord = claimRecord; - } - } - } - } - - - //设备设施损失信息 - SurveyResult.Nav_ListEquipmentLoss = GetEntities(e => e.RESULT_ID == SurveyResult.ID, null, new string[] { "Nav_Equipment", "Nav_Facilities", "Nav_User" }).ToList(); - - //事故事件处罚 - SurveyResult.Nav_ListAdmPunishment = GetEntities(e => e.RESULT_ID == SurveyResult.ID, null, new string[] { "Nav_Department", "Nav_User" }).ToList(); - - } - LibView result = new LibView(); - result.Report = Report;//事故事件上报 - result.Result = SurveyResult;//事故事件调查结果 - return result; - }); - } - } - - /// - /// 事故事件库明细查看 - /// - public class LibView - { - /// - /// 事故事件上报 - /// - public T_AE_ACCIDENT_EVENT_REPORT Report { get; set; } - - /// - /// 事故事件调查结果 - /// - public T_AE_ACCIDENT_EVENT_SURVEY_RESULT Result { get; set; } - - ///// - ///// 工伤保险理赔信息记录 - ///// - //public ICollection ListClaimRecord { get; set; } - } -} \ No newline at end of file diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/AEController/AEAccidentEventSurveyResultController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/AEController/AEAccidentEventSurveyResultController.cs deleted file mode 100644 index d395087..0000000 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/AEController/AEAccidentEventSurveyResultController.cs +++ /dev/null @@ -1,432 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.BaseData.Domain.IServices; -using APT.BaseData.Domain.IServices.AE; -using APT.BaseData.Domain.IServices.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.AE; -using APT.MS.Domain.Entities.TI; -using APT.MS.Domain.Enums; -using APT.Utility; -using Microsoft.AspNetCore.Mvc; -using System; -using System.Collections.Generic; -using System.Linq; - -namespace APT.SC.WebApi.Controllers.Api.AE -{ - [Route("api/AE/AEAccidentEventSurveyResult")] - public class AEAccidentEventSurveyResultController : AuthorizeApiController - { - IFMFlowPermitService MFlowPermitService { get; set; } - IPFApproveCallBackService ApproveCallBackService { get; set; } - IFMNotificationTaskService NotificActionTaskService { get; set; } - IAEAccidentEventReportService AccidentEventReportService { get; set; } - public AEAccidentEventSurveyResultController(IFMFlowPermitService mFlowPermitService, IPFApproveCallBackService approveCallBackService, IFMNotificationTaskService notificActionTaskService, IAEAccidentEventReportService accidentEventReportService) - { - MFlowPermitService = mFlowPermitService; - ApproveCallBackService = approveCallBackService; - NotificActionTaskService = notificActionTaskService; - AccidentEventReportService = accidentEventReportService; - } - - /// - /// 获得单条实体数据(添加限制结束时间) - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return SafeExecute(() => - { - filter.IgnoreDataRule = true; - var result = GetEntity(null, filter, null); - if (result.Nav_AccidentEventReport != null && result.Nav_AccidentEventReport.ACCIDENT_LEVEL.HasValue && result.Nav_AccidentEventReport.ACCIDENT_LEVEL.HasValue) - { - var level = GetEntity(e => e.ACCIDENT_LEVEL == result.Nav_AccidentEventReport.ACCIDENT_LEVEL.Value); - if (level != null) - { - result.SYSTEMMAXTIME = result.Nav_AccidentEventReport.TIME.Value.AddDays(level.DAYS + 1).AddSeconds(-1); - } - } - return result; - }); - } - - /// - /// 获得单条实体数据(添加限制结束时间) - /// - /// 过滤实体 - /// - [HttpPost, Route("GetAE010")] - public JsonActionResult GetAE010([FromBody] KeywordFilter filter) - { - return SafeExecute(() => - { - var result = GetEntity(null, filter, null); - if (result.Nav_AccidentEventReport != null && result.Nav_AccidentEventReport.ACCIDENT_LEVEL.HasValue && result.Nav_AccidentEventReport.ACCIDENT_LEVEL.HasValue) - { - var level = GetEntity(e => e.ACCIDENT_LEVEL == result.Nav_AccidentEventReport.ACCIDENT_LEVEL.Value); - if (level != null) - { - result.SYSTEMMAXTIME = result.Nav_AccidentEventReport.TIME.Value.AddDays(level.DAYS + 1).AddSeconds(-1); - } - } - - result.Nav_ListReason = GetEntities(e => e.RESULT_ID == result.ID, null, new string[] { "Nav_ListReasonType.Nav_ReasonType" }).ToList(); - result.Nav_ListForensics = GetEntities(e => e.RESULT_ID == result.ID, null, null).ToList(); - result.Nav_ListEquipmentLoss = GetEntities(e => e.RESULT_ID == result.ID, null, null).ToList(); - result.Nav_ListCasualties = GetEntities(e => e.RESULT_ID == result.ID, null, new string[] { "Nav_User" }).ToList(); - result.Nav_ListAdmPunishment = GetEntities(e => e.RESULT_ID == result.ID, null, new string[] { "Nav_Department", "Nav_User" }).ToList(); - - return result; - }); - } - - /// - /// 事故事件调查结果 修改 - /// - /// - /// - [HttpPost, Route("FullUpdate")] - public JsonActionResult FullUpdate([FromBody] T_AE_ACCIDENT_EVENT_SURVEY_RESULT entity) - { - return SafeExecute(() => - { - if (entity.STATUS != PFStandardStatus.Draft && entity.STATUS != PFStandardStatus.Approving) //.Archived => Approving - { - throw new Exception("获取操作方式有误!"); - } - if (entity.TaskID == Guid.Empty) - { - var loginID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID; - if (entity.CREATER_ID.Value != loginID.Value) - { - throw new Exception("您不能操作此事故事件调查结果表,操作失败!"); - } - } - if (!entity.REPORT_ID.HasValue || entity.REPORT_ID == Guid.Empty) - { - throw new Exception("获取事故事件关联信息失败!"); - } - - //致害物 - var ListSurveyDamageObject = entity.Nav_ListSurveyDamageObject; - entity.Nav_ListSurveyDamageObject = null; - if (ListSurveyDamageObject != null && ListSurveyDamageObject.Any()) - { - foreach (var item in ListSurveyDamageObject) - { - item.Nav_SurveyResult = null; - item.Nav_DamageObject = null; - } - } - //调查报告附件 - var FilesSurvey = entity.Nav_FilesSurvey; - entity.Nav_FilesSurvey = null; - - //公示文件附件 - var FilesP = entity.Nav_FilesP; - entity.Nav_FilesP = null; - - //事故事件原因 - var ListReason = entity.Nav_ListReason; - entity.Nav_ListReason = null; - List listReasonType = new List(); - if (ListReason != null && ListReason.Any()) - { - ListReason = ListReason.Where(e => e.Nav_ListReasonType != null).ToList(); - } - if (ListReason != null && ListReason.Any()) - { - //ListReason = ListReason.Where(e=>e.); - foreach (var item in ListReason) - { - if (item.Nav_ListReasonType != null && item.Nav_ListReasonType.Any()) - { - foreach (var itemType in item.Nav_ListReasonType) - { - itemType.Nav_ReasonType = null; - } - listReasonType.AddRange(item.Nav_ListReasonType); - } - item.Nav_ListReasonType = null; - } - } - //调查取证资料 - var ListForensics = entity.Nav_ListForensics; - entity.Nav_ListForensics = null; - if (ListForensics != null && ListForensics.Any()) - { - ListForensics = ListForensics.Where(e => e.EVIDENCE_DESC != null || e.EVIDENCE_SOURCE > 0).ToList(); - } - List listFoFiles = new List(); - if (ListForensics != null && ListForensics.Any()) - { - foreach (var item in ListForensics) - { - item.RESULT_ID = entity.ID; - if (item.Nav_FilesSurvey != null && item.Nav_FilesSurvey.Any()) - { - foreach (var itemFile in item.Nav_FilesSurvey) - { - itemFile.SURVEY_FORENSICS_ID = item.ID; - itemFile.ORG_ID = entity.ORG_ID; - itemFile.Nav_SurveyForensics = null; - } - listFoFiles.AddRange(item.Nav_FilesSurvey); - item.Nav_FilesSurvey = null; - } - } - } - - - //设备设施损失信息 - var ListEquipmentLoss = entity.Nav_ListEquipmentLoss; - entity.Nav_ListEquipmentLoss = null; - if (ListEquipmentLoss != null && ListEquipmentLoss.Any()) - { - ListEquipmentLoss = ListEquipmentLoss.Where(e => e.EQUIPMENT_ID.HasValue || e.FACILITIES_ID.HasValue).ToList(); - } - //人员伤亡信息 - var ListCasualties = entity.Nav_ListCasualties; - entity.Nav_ListCasualties = null; - if (ListCasualties != null && ListCasualties.Any()) - { - ListCasualties = ListCasualties.Where(e => e.USER_ID.HasValue).ToList(); - } - if (ListCasualties != null && ListCasualties.Any()) - { - int rowNO = 0; - foreach (var item in ListCasualties) - { - rowNO++; - if (!item.INJURED_TIME.HasValue) - continue; - if (item.INJURED_TIME.Value > DateTime.Now) - { - throw new Exception("人员伤亡,第【" + rowNO + "】行受伤时间不能大于当前时间!"); - } - } - } - - //行政处罚信息 - var ListAdmPunishment = entity.Nav_ListAdmPunishment; - entity.Nav_ListAdmPunishment = null; - if (ListAdmPunishment != null && ListAdmPunishment.Any()) - { - ListAdmPunishment = ListAdmPunishment.Where(e => e.DEPARTMENT_ID.HasValue).ToList(); - } - - - if (entity.STATUS == PFStandardStatus.Draft) - { - //保存草稿 - this.UnifiedCommit(() => - { - if (entity != null) //事故事件调查结果 - UpdateEntityNoCommit(entity); - if (ListSurveyDamageObject != null && ListSurveyDamageObject.Any())//致害物 - BantchSaveEntityNoCommit(ListSurveyDamageObject); - if (FilesSurvey != null && FilesSurvey.Any())//调查报告附件 - BantchSaveEntityNoCommit(FilesSurvey); - if (FilesP != null && FilesP.Any())//公示文件附件 - BantchSaveEntityNoCommit(FilesP); - - if (ListReason != null && ListReason.Any())//事故事件原因 - BantchSaveEntityNoCommit(ListReason); - if (listReasonType != null && listReasonType.Any())//事故事件原因类别 - BantchSaveEntityNoCommit(listReasonType); - - if (ListForensics != null && ListForensics.Any())//调查取证资料 - BantchSaveEntityNoCommit(ListForensics); - if (listFoFiles != null && listFoFiles.Any())//调查取证资料 附件(证据) - BantchSaveEntityNoCommit(listFoFiles); - - if (ListEquipmentLoss != null && ListEquipmentLoss.Any())//设备设施损失信息 - BantchSaveEntityNoCommit(ListEquipmentLoss); - if (ListCasualties != null && ListCasualties.Any())//人员伤亡信息 - BantchSaveEntityNoCommit(ListCasualties); - if (ListAdmPunishment != null && ListAdmPunishment.Any())//行政处罚信息 - BantchSaveEntityNoCommit(ListAdmPunishment); - }); - - } - else - { - if (!entity.REPORT_ID.HasValue) - { - throw new Exception("获取事故事件参数有误!"); - } - if (!entity.TIME.HasValue) - { - throw new Exception("请填写实际结案时间!"); - } - if (!entity.CASUALTY_COUNT.HasValue) - { - throw new Exception("请填写事故伤亡人数!"); - } - else if (entity.CASUALTY_COUNT < 0) - { - throw new Exception("请填写正确的事故伤亡人数!"); - } - - if (!entity.ECONOMIC_LOSSES.HasValue) - { - throw new Exception("请填写直接经济损失(元)!"); - } - else if (entity.ECONOMIC_LOSSES < 0) - { - throw new Exception("请填写正确的直接经济损失(元)!"); - } - if (string.IsNullOrEmpty(entity.ACCIDENT_COURSE)) - { - throw new Exception("请填写事故事件经过"); - } - else if (entity.ACCIDENT_COURSE.Length > 1000) - { - throw new Exception("事故事件经过不能超过1000字"); - } - - if (ListReason == null || !ListReason.Any()) - { - throw new Exception("请填写事故事件原因!"); - } - if (ListForensics == null || !ListForensics.Any()) - { - throw new Exception("请填写调查取证资料!"); - } - // 设备设施 或者 人员伤亡 必须有一个 - if ((ListEquipmentLoss == null || !ListEquipmentLoss.Any()) && (ListCasualties == null || !ListCasualties.Any())) - { - throw new Exception("请填写设备设施损失信息或者写人员伤亡信息!"); - } - if (ListCasualties == null || !ListCasualties.Any()) - { - if (entity.CASUALTY_COUNT.HasValue && entity.CASUALTY_COUNT.Value > 0) - { - throw new Exception("请填写人员伤亡信息!"); - } - } - - //不一定都要有 - //if (ListAdmPunishment == null || !ListAdmPunishment.Any()) - //{ - // throw new Exception("请填写行政处罚信息!"); - //} - - T_FM_NOTIFICATION_TASK task = null; - if (entity.TaskID != Guid.Empty) - { - task = NotificActionTaskService.GetEntityTask(entity.TaskID, "AE010_SHOWPRINT"); - } - - var AccdentReport = GetEntity(e => e.ID == entity.REPORT_ID); - string param = AccidentEventReportService.GetApproveParm(AccdentReport); - - //走上报审批流 - //保存数据 - entity.APPROVE_ID = Guid.NewGuid(); - Guid userID = Guid.Empty; - //事故部门 负责人 - var dep = GetEntity(AccdentReport.DEPARTMENT_ID.Value); - if (dep.USER_ID != null && dep.USER_ID != Guid.Empty) - { - userID = dep.USER_ID.Value; - } - else - { - userID = GetEntity(e => e.DEPARTMENT_ID == AccdentReport.DEPARTMENT_ID).ID; - } - - //限制结案时间 =上报时间 +限制天数(事故事件等级) - if (AccdentReport.TIME.HasValue && AccdentReport.ACCIDENT_LEVEL.HasValue) - { - var levelDays = GetEntity(e => e.ACCIDENT_LEVEL == AccdentReport.ACCIDENT_LEVEL); - if (levelDays == null) - { - throw new Exception("请联系管理员配置【事故等级结案限制】,配置路径:系统管理 > 事故事件设置 > 事故等级结案限制"); - } - entity.SYSTEMMAXTIME = AccdentReport.TIME.Value.Date.AddDays(1 + levelDays.DAYS).AddSeconds(-1); - } - - MFlowPermitService.InsertApprove("", "AE010", param, entity.ID, "AE010_SHOWPRINT", entity.TaskID, true, () => - { - if (entity != null) //事故事件调查结果 - UpdateEntityNoCommit(entity); - if (ListSurveyDamageObject != null && ListSurveyDamageObject.Any())//致害物 - BantchSaveEntityNoCommit(ListSurveyDamageObject); - if (FilesSurvey != null && FilesSurvey.Any())//调查报告附件 - BantchSaveEntityNoCommit(FilesSurvey); - if (FilesP != null && FilesP.Any())//公示文件附件 - BantchSaveEntityNoCommit(FilesP); - - if (ListReason != null && ListReason.Any())//事故事件原因 - BantchSaveEntityNoCommit(ListReason); - if (listReasonType != null && listReasonType.Any())//事故事件原因类别 - BantchSaveEntityNoCommit(listReasonType); - - if (ListForensics != null && ListForensics.Any())//调查取证资料 - BantchSaveEntityNoCommit(ListForensics); - if (listFoFiles != null && listFoFiles.Any())//调查取证资料 附件(证据) - BantchSaveEntityNoCommit(listFoFiles); - - if (ListEquipmentLoss != null && ListEquipmentLoss.Any())//设备设施损失信息 - BantchSaveEntityNoCommit(ListEquipmentLoss); - if (ListCasualties != null && ListCasualties.Any())//人员伤亡信息 - BantchSaveEntityNoCommit(ListCasualties); - if (ListAdmPunishment != null && ListAdmPunishment.Any())//行政处罚信息 - BantchSaveEntityNoCommit(ListAdmPunishment); - }, entity.APPROVE_ID, userID, null, null, null, null, null); - - - //this.UnifiedCommit(() => - //{ - // if (entity != null) //事故事件调查结果 - // UpdateEntityNoCommit(entity); - // if (ListSurveyDamageObject != null && ListSurveyDamageObject.Any())//致害物 - // BantchSaveEntityNoCommit(ListSurveyDamageObject); - // if (FilesSurvey != null && FilesSurvey.Any())//调查报告附件 - // BantchSaveEntityNoCommit(FilesSurvey); - // if (FilesP != null && FilesP.Any())//公示文件附件 - // BantchSaveEntityNoCommit(FilesP); - - // if (ListReason != null && ListReason.Any())//事故事件原因 - // BantchSaveEntityNoCommit(ListReason); - // if (listReasonType != null && listReasonType.Any())//事故事件原因类别 - // BantchSaveEntityNoCommit(listReasonType); - - // if (ListForensics != null && ListForensics.Any())//调查取证资料 - // BantchSaveEntityNoCommit(ListForensics); - // if (listFoFiles != null && listFoFiles.Any())//调查取证资料 附件(证据) - // BantchSaveEntityNoCommit(listFoFiles); - - // if (ListEquipmentLoss != null && ListEquipmentLoss.Any())//设备设施损失信息 - // BantchSaveEntityNoCommit(ListEquipmentLoss); - // if (ListCasualties != null && ListCasualties.Any())//人员伤亡信息 - // BantchSaveEntityNoCommit(ListCasualties); - // if (ListAdmPunishment != null && ListAdmPunishment.Any())//行政处罚信息 - // BantchSaveEntityNoCommit(ListAdmPunishment); - //}); - } - return true; - }); - } - - /// - /// 事故事件调查结果审批回调 - /// - /// - /// - [HttpGet, Route("EventResultBack")] - public JsonActionResult EventResultBack(string id) - { - return SafeExecute(() => - { - return ApproveCallBackService.CallBack("AE/AEAccidentEventSurveyResult/EventResultBack", id); - }); - } - } -} \ No newline at end of file diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/AEController/AEAccidentSurveyTeamMemberController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/AEController/AEAccidentSurveyTeamMemberController.cs deleted file mode 100644 index 85370d9..0000000 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/AEController/AEAccidentSurveyTeamMemberController.cs +++ /dev/null @@ -1,368 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.BaseData.Domain.IServices; -using APT.BaseData.Domain.IServices.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.AE; -using APT.MS.Domain.Entities.SC; -using APT.MS.Domain.Entities.TI; -using APT.MS.Domain.Enums; -using APT.Utility; -using Microsoft.AspNetCore.Mvc; -using System; -using System.Collections.Generic; -using System.Linq; - -namespace APT.SC.WebApi.Controllers.Api.AE -{ - [Route("api/AE/AEAccidentSurveyTeamMember")] - public class AEAccidentSurveyTeamMemberController : AuthorizeApiController - { - IFMFlowPermitService MFlowPermitService { get; set; } - //ISCMTMeetingService SCMTMeetingService { get; set; } SCMTMeetingService = scMTMeetingService;, ISCMTMeetingService scMTMeetingService - IPFApproveCallBackService ApproveCallBackService { get; set; } - IFMNotificationTaskService NotificActionTaskService { get; set; } - public AEAccidentSurveyTeamMemberController(IFMFlowPermitService mFlowPermitService, IPFApproveCallBackService approveCallBackService, IFMNotificationTaskService notificActionTaskService) - { - MFlowPermitService = mFlowPermitService; - ApproveCallBackService = approveCallBackService; - NotificActionTaskService = notificActionTaskService; - - } - - /// - /// 事故调查小组成员 修改 - /// - /// - /// - [HttpPost, Route("FullUpdate")] - public JsonActionResult FullUpdate([FromBody] T_AE_ACCIDENT_SURVEY_TEAM_MEMBER entity) - { - return SafeExecute(() => - { - if (entity.STATUS != PFStandardStatus.Draft && entity.STATUS != PFStandardStatus.Archived) - { - throw new Exception("获取操作方式有误!"); - } - if (entity.TaskID == Guid.Empty) - { - var loginID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID; - if (entity.CREATER_ID.Value != loginID.Value) - { - throw new Exception("此事故调查小组成信息不是您添加的,操作失败!"); - } - } - - var DeputyLeaderUser = entity.Nav_DeputyLeaderUser; - entity.Nav_DeputyLeaderUser = null; - if (DeputyLeaderUser != null && DeputyLeaderUser.Any()) - { - foreach (var item in DeputyLeaderUser) - { - item.Nav_User = null; - } - } - var TeamMembers = entity.Nav_TeamMembers; - entity.Nav_TeamMembers = null; - if (TeamMembers != null && TeamMembers.Any()) - { - foreach (var item in TeamMembers) - { - item.Nav_User = null; - } - } - if (entity.STATUS == PFStandardStatus.Draft) - { - this.UnifiedCommit(() => - { - if (entity != null) - UpdateEntityNoCommit(entity); //事故调查小组成员 - if (DeputyLeaderUser != null && DeputyLeaderUser.Any()) - BantchSaveEntityNoCommit(DeputyLeaderUser); - if (TeamMembers != null && TeamMembers.Any()) - BantchSaveEntityNoCommit(TeamMembers); - }); - } - else - { - if (entity.LEADER_USER_ID == null) - { - throw new Exception("请选择调查小组组长!"); - } - if (DeputyLeaderUser == null || !DeputyLeaderUser.Any()) - { - throw new Exception("请选择调查小组副组长!"); - } - if (TeamMembers == null || !TeamMembers.Any()) - { - throw new Exception("请选择调查小组组员!"); - } - if (entity.SURVEY_USER_ID == null) - { - throw new Exception("请选择调查记录人!"); - } - - //需要处理别的逻辑 - //结束待办 - T_FM_NOTIFICATION_TASK task = null; - if (entity.TaskID != Guid.Empty) - { - task = NotificActionTaskService.GetEntityTask(entity.TaskID, "AE008_SHOWPRINT"); - } - - //提交后触发事故事件调查结果填报表给调查记录人,工作台截止时间为限制结案时间 - //提交后触发今日提醒给调查记录人:消息内容:请在OA申请事故调查报告文件发布并上传至事故事件调查结果报送,消息类型:文件上传 - - DateTime dtEnd = DateTime.Now; - #region 获取 限制结案时间 dtEnd - - AEAccidentLevel level = GetEntity(entity.REPORT_ID.Value).ACCIDENT_LEVEL.Value; - var days = GetEntity(e => e.ACCIDENT_LEVEL == level); - if (days == null) - { - switch (level) - { - case AEAccidentLevel.Jumbo: - case AEAccidentLevel.Major: - case AEAccidentLevel.Larger: - case AEAccidentLevel.General: - dtEnd = DateTime.Now.Date.AddDays(32).AddSeconds(-1); - break; - case AEAccidentLevel.SeriouslyInjured: - dtEnd = DateTime.Now.Date.AddDays(17).AddSeconds(-1); - break; - case AEAccidentLevel.MinorJuries: - case AEAccidentLevel.Aminor: - case AEAccidentLevel.Risk: - dtEnd = DateTime.Now.Date.AddDays(12).AddSeconds(-1); - break; - default: - break; - } - } - else - { - dtEnd = DateTime.Now.Date.AddDays(2 + days.DAYS).AddSeconds(-1); - } - #endregion - - - #region 1、事故事件调查结果填报表 2、给调查记录人 - - //T_AE_ACCIDENT_EVENT_SURVEY_RESULT modelResult = new T_AE_ACCIDENT_EVENT_SURVEY_RESULT(); - //modelResult.ID = Guid.NewGuid(); - //modelResult.REPORT_ID = entity.REPORT_ID; - //modelResult.STATUS = PFStandardStatus.Draft; - //modelResult.IS_DELETED = false; - //modelResult.ORG_ID = entity.ORG_ID; - - ////modelResult.CASUALTY_COUNT = ""; - ////modelResult.ECONOMIC_LOSSES = ""; - ////modelResult.ACCIDENT_COURSE = ""; - ////modelResult.TIME = ""; - ////modelResult.RISK_SUBMIT_ID = ""; - ////modelResult.ENTITY_ORG_TPYE = ""; - ////modelResult.FORM_ID = ""; - ////modelResult.FLOW_STATUS = ""; - ////modelResult.FLOW_SEND_STATUS = ""; - ////modelResult.FLOW_ID = ""; - ////modelResult.CREATE_TIME = ""; - ////modelResult.MODIFY_TIME = ""; - ////modelResult.CREATER_ID = ""; - ////modelResult.MODIFIER_ID = ""; - - - //string SURVEYNAME = string.Empty; - //if (entity.Nav_SurveyUser != null && !string.IsNullOrEmpty(entity.Nav_SurveyUser.NAME)) - //{ - // SURVEYNAME = entity.Nav_SurveyUser.NAME; - //} - //else - //{ - // SURVEYNAME = GetEntity(entity.SURVEY_USER_ID.Value).NAME; - //} - - //T_FM_NOTIFICATION_TASK taskAdd = NotificActionTaskService.InsertUserNoticeTaskModel("事故事件调查结果填报", modelResult.ID, entity.ORG_ID, entity.SURVEY_USER_ID.Value, SURVEYNAME, DateTime.Now, dtEnd, (int)FMNoticeTypeEnum.消息, "AE010"); - //事故调查小组成员表 填写 给记录人 触发勘察记录表 审批通过后 再给记录人 发送 事故事件调查结果报送表 - - #endregion - - - #region 流程修改 - - var Survery = GetEntity(e => e.ID == entity.SURVEY_USER_ID); - - - //wyw 流程修改 231016 调查小组后 给组长触发会议 会议纪要归档后 触发 勘察记录表 - - #region 1、勘察记录表 2、给调查记录人 - - //T_AE_INVESTIGATION_RECORD modelResult = new T_AE_INVESTIGATION_RECORD(); - //modelResult.ID = Guid.NewGuid(); - ////modelResult.LAUNCH_TIME =; - //modelResult.DEPARTMENT_ID = Survery.DEPARTMENT_ID; - //modelResult.USER_ID = entity.SURVEY_USER_ID; - //modelResult.ACCIDENT_ID = entity.REPORT_ID; ; - //modelResult.TEAM_MEMBER_ID = entity.ID; - ////modelResult.INVESTIGATION_TIME =; - ////modelResult.INVESTIGATION_LOCATION =; - ////modelResult.INVESTIGATION_REASON =; - ////modelResult.SCENE_ENV_DESC =; - ////modelResult.SCENE_DESC =; - ////modelResult.SCENE_EVIDENCE_DESC =; - //modelResult.STATUS = PFStandardStatus.Draft; - ////modelResult.REVIEW_OK =; - ////modelResult.REVIEW_COMMENT =; - //modelResult.IS_DELETED = false; - //modelResult.ORG_ID = entity.ORG_ID; - ////modelResult.ENTITY_ORG_TPYE =; - ////modelResult.FORM_ID =; - ////modelResult.FLOW_STATUS =; - ////modelResult.FLOW_SEND_STATUS =; - ////modelResult.FLOW_ID =; - ////modelResult.CREATE_TIME =; - ////modelResult.MODIFY_TIME =; - ////modelResult.CREATER_ID =; - ////modelResult.MODIFIER_ID =; - ////modelResult.LEADER_USER_ID =; - ////modelResult.APPROVE_ID =; - - //T_FM_NOTIFICATION_TASK taskAdd = NotificActionTaskService.InsertUserNoticeTaskModel("勘察记录表", modelResult.ID, entity.ORG_ID, entity.SURVEY_USER_ID.Value, Survery.NAME, DateTime.Now, dtEnd, (int)FMNoticeTypeEnum.消息, "AE018"); - - #endregion - - - //T_SC_MT_MEETING modelMT = new T_SC_MT_MEETING(); - //modelMT.ID = Guid.NewGuid(); - //modelMT.CODE = "AE" + DateTime.Now.ToString("yyyyMMddHHmmss"); - //modelMT.NAME = "事故事件触发会议" + DateTime.Now.ToString("yyMMdd"); - //modelMT.MEETINGTYPE = SCMEETINGTYPE.Ordinary; - //var eventReport = GetEntity(entity.REPORT_ID.Value, "Nav_Department"); - //modelMT.DEPARTMENT_ID = eventReport.DEPARTMENT_ID.Value;// - //modelMT.LEVELVALUE = eventReport.Nav_Department.DEPARTMENT_TYPE; - //modelMT.USER_ID_ORIGINATOR = entity.LEADER_USER_ID.Value;//组长 - //modelMT.BEGIN_TIME = DateTime.Now; - //modelMT.STATUS = PFStandardStatus.Draft; - //modelMT.PERSCORE = 0; - //modelMT.IS_DELETED = false; - //modelMT.ORG_ID = entity.ORG_ID; - //modelMT.ENTITY_ORG_TPYE = 0; - //modelMT.FLOW_STATUS = 0; - //modelMT.FLOW_SEND_STATUS = 0; - //modelMT.CREATE_TIME = DateTime.Now; - //modelMT.CREATER_ID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID; - //modelMT.CREACTTYPE = CREACTTYPEEnum.AEToMTAfterTeamMember; - //modelMT.ISBEGIN = false; - //modelMT.ISCANCEL = false; - ////modelMT.CheckLevel_ENUMS_ID = ; - ////modelMT.Nav_MinutesID = ; - ////modelMT.ADDRESS = ; - ////modelMT.THEME = ; - ////modelMT.PLANSET_ID = ; - ////modelMT.USER_ID_RECORDER = ; - ////modelMT.USER_ID_HOST = ; - ////modelMT.RECORD = ; - ////modelMT.APPROVE_ID = ; - ////modelMT.FORM_ID = ; - ////modelMT.FLOW_ID = ; - ////modelMT.MODIFY_TIME = ; - ////modelMT.MODIFIER_ID = ; - ////modelMT.CONTENT = ; - - //List listAllUser = new List(); - //foreach (var item in TeamMembers) - //{ - // if (!item.USER_ID.HasValue || item.IS_DELETED) - // { - // continue; - // } - // T_SC_MT_MEETING_PALL modelUser = new T_SC_MT_MEETING_PALL(); - // modelUser.ID = Guid.NewGuid(); - // modelUser.MEETING_ID = modelMT.ID; - // modelUser.PERSONTYPE = SCMEETINGPERSONTYPE.ALL; - // modelUser.USER_ID = item.USER_ID.Value; - // modelUser.IS_DELETED = false; - // modelUser.ORG_ID = modelMT.ORG_ID; - // //modelUser.ENTITY_ORG_TPYE = ""; - // //modelUser.FORM_ID = ""; - // //modelUser.FLOW_STATUS = ""; - // //modelUser.FLOW_SEND_STATUS = ""; - // //modelUser.FLOW_ID = ""; - // //modelUser.CREATE_TIME = ""; - // //modelUser.MODIFY_TIME = ""; - // //modelUser.CREATER_ID = ""; - // //modelUser.MODIFIER_ID = ""; - // //modelUser.JOINRESULT = ""; - // //modelUser.NOTJOINREASON = ""; - // modelUser.PERSONNATURE = PersonNature.JOIN; - // listAllUser.Add(modelUser); - //} - - - #endregion - - - #region 今日提醒给调查记录人 - - T_FM_NOTIFICATION_TASK WarmOA = NotificActionTaskService.InsertUserNoticeTaskModel("请于" + dtEnd.ToString("yyyy-MM-dd") + "前,在OA申请事故调查报告文件发布并上传至事故事件调查结果报送表!", entity.ID, entity.ORG_ID, entity.SURVEY_USER_ID.Value, Survery.NAME, DateTime.Now, dtEnd, (int)FMNoticeTypeEnum.今日提醒, "PF135"); - - #endregion - - T_SC_MT_MEETING_BEGIN modelBegin = null; - if (entity.REPORT_ID.HasValue && entity.LEADER_USER_ID.HasValue) - { - modelBegin = new T_SC_MT_MEETING_BEGIN(); - modelBegin.ID = Guid.NewGuid(); - modelBegin.ORG_ID = entity.ORG_ID; - modelBegin.SOURCETYPE = SOURCETYPE.EventReport; - modelBegin.TABLENAME = "T_AE_ACCIDENT_EVENT_REPORT"; - modelBegin.DATA_ID = entity.REPORT_ID.Value; - modelBegin.ISBEGIN = false; - modelBegin.USER_ID = entity.LEADER_USER_ID.Value; - modelBegin.CREATE_TIME = DateTime.Now; - modelBegin.CREATER_ID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID; - } - - this.UnifiedCommit(() => - { - if (entity != null) - UpdateEntityNoCommit(entity); //事故调查小组成员 - if (DeputyLeaderUser != null && DeputyLeaderUser.Any()) - BantchSaveEntityNoCommit(DeputyLeaderUser); - if (TeamMembers != null && TeamMembers.Any()) - BantchSaveEntityNoCommit(TeamMembers); - if (task != null) //消除待办 - UpdateEntityNoCommit(task); - - if (WarmOA != null)//添加 今日提醒给调查记录人 今日提醒 - AddEntityNoCommit(WarmOA); - - if (modelBegin != null) - UpdateEntityNoCommit(modelBegin); //对接会议模块 - - //if (modelResult != null)//添加 事故事件调查结果填报 - // AddEntityNoCommit(modelResult); - //if (taskAdd != null)//添加 事故事件调查结果填报 待办 - // AddEntityNoCommit(taskAdd); - }); - - //方法修改 对接模式修改 - //#region 对接会议模块 事务隔离 以免后续没对应模块 - //try - //{ - // var listUserID = TeamMembers.Where(e => !e.IS_DELETED && e.USER_ID.HasValue).Select(e => e.USER_ID.Value); - // var eventReport = GetEntity(entity.REPORT_ID.Value, "Nav_Department"); - // SCMTMeetingService.AddMeeting(Guid.NewGuid(), "事故事件触发会议" + DateTime.Now.ToString("yyMMdd"), eventReport.CODE, eventReport.ORG_ID, Survery.DEPARTMENT_ID.Value, eventReport.Nav_Department.DEPARTMENT_TYPE, entity.LEADER_USER_ID.Value, (int)CREACTTYPEEnum.AEToMTAfterTeamMember, listUserID); - //} - //catch { } - //#endregion - - } - - return true; - }); - } - - } -} \ No newline at end of file diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/CMController/CMAbilityEvaluateController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/CMController/CMAbilityEvaluateController.cs index 06eecdf..c4e9e6c 100644 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/CMController/CMAbilityEvaluateController.cs +++ b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/CMController/CMAbilityEvaluateController.cs @@ -2,11 +2,9 @@ using APT.BaseData.Domain.Entities.FM; using APT.BaseData.Domain.Enums.PF; using APT.BaseData.Domain.IServices; -using APT.BaseData.Domain.IServices.AE; using APT.BaseData.Domain.IServices.FM; using APT.Infrastructure.Core; using APT.MS.Domain.Entities.CM; -using APT.MS.Domain.Entities.TI; using APT.MS.Domain.Enums; using APT.Utility; using Microsoft.AspNetCore.Mvc; @@ -22,14 +20,12 @@ namespace APT.SC.WebApi.Controllers.Api.CM { IFMFlowPermitService MFlowPermitService { get; set; } IPFApproveCallBackService ApproveCallBackService { get; set; } - IAEAccidentEventReportService AccidentEventReportService { get; set; } IFMNotificationTaskService NotificationTaskService { get; set; } IFMUserService UserService { get; set; } - public CMAbilityEvaluateController(IFMFlowPermitService mFlowPermitService, IPFApproveCallBackService approveCallBackService, IAEAccidentEventReportService accidentEventReportService, IFMNotificationTaskService notificationTaskService, IFMUserService userService) + public CMAbilityEvaluateController(IFMFlowPermitService mFlowPermitService, IPFApproveCallBackService approveCallBackService, IFMNotificationTaskService notificationTaskService, IFMUserService userService) { MFlowPermitService = mFlowPermitService; ApproveCallBackService = approveCallBackService; - AccidentEventReportService = accidentEventReportService; NotificationTaskService = notificationTaskService; UserService = userService; } diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/CMController/CMConfigController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/CMController/CMConfigController.cs index 9fb0bd4..cf09580 100644 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/CMController/CMConfigController.cs +++ b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/CMController/CMConfigController.cs @@ -2,12 +2,9 @@ using APT.BaseData.Domain.Entities.FM; using APT.BaseData.Domain.Enums.PF; using APT.BaseData.Domain.IServices; -using APT.BaseData.Domain.IServices.AE; using APT.BaseData.Domain.IServices.FM; using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.AE; using APT.MS.Domain.Entities.CM; -using APT.MS.Domain.Entities.TI; using APT.MS.Domain.Enums; using APT.Utility; using Microsoft.AspNetCore.Mvc; diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/CMController/CMDrillEstimateController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/CMController/CMDrillEstimateController.cs index c367f22..5b4dd1c 100644 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/CMController/CMDrillEstimateController.cs +++ b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/CMController/CMDrillEstimateController.cs @@ -1,7 +1,6 @@ using APT.BaseData.Domain.Entities; using APT.BaseData.Domain.Enums.PF; using APT.BaseData.Domain.IServices; -using APT.BaseData.Domain.IServices.AE; using APT.BaseData.Domain.IServices.FM; using APT.Infrastructure.Core; using APT.MS.Domain.Entities.CM; @@ -19,14 +18,12 @@ namespace APT.SC.WebApi.Controllers.Api.CM { IFMFlowPermitService MFlowPermitService { get; set; } IPFApproveCallBackService ApproveCallBackService { get; set; } - IAEAccidentEventReportService AccidentEventReportService { get; set; } IFMNotificationTaskService NotificationTaskService { get; set; } IFMUserService UserService { get; set; } - public CMDrillEstimateController(IFMFlowPermitService mFlowPermitService, IPFApproveCallBackService approveCallBackService, IAEAccidentEventReportService accidentEventReportService, IFMNotificationTaskService notificationTaskService, IFMUserService userService) + public CMDrillEstimateController(IFMFlowPermitService mFlowPermitService, IPFApproveCallBackService approveCallBackService, IFMNotificationTaskService notificationTaskService, IFMUserService userService) { MFlowPermitService = mFlowPermitService; ApproveCallBackService = approveCallBackService; - AccidentEventReportService = accidentEventReportService; NotificationTaskService = notificationTaskService; UserService = userService; } diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/CMController/CMDrillPlanController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/CMController/CMDrillPlanController.cs index d84facc..ae226a8 100644 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/CMController/CMDrillPlanController.cs +++ b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/CMController/CMDrillPlanController.cs @@ -2,11 +2,9 @@ using APT.BaseData.Domain.Entities.FM; using APT.BaseData.Domain.Enums.PF; using APT.BaseData.Domain.IServices; -using APT.BaseData.Domain.IServices.AE; using APT.BaseData.Domain.IServices.FM; using APT.Infrastructure.Core; using APT.MS.Domain.Entities.CM; -using APT.MS.Domain.Entities.TI; using APT.MS.Domain.Enums; using APT.Utility; using Microsoft.AspNetCore.Mvc; @@ -22,14 +20,12 @@ namespace APT.SC.WebApi.Controllers.Api.CM { IFMFlowPermitService MFlowPermitService { get; set; } IPFApproveCallBackService ApproveCallBackService { get; set; } - IAEAccidentEventReportService AccidentEventReportService { get; set; } IFMNotificationTaskService NotificationTaskService { get; set; } IFMUserService UserService { get; set; } - public CMDrillPlanController(IFMFlowPermitService mFlowPermitService, IPFApproveCallBackService approveCallBackService, IAEAccidentEventReportService accidentEventReportService, IFMNotificationTaskService notificationTaskService, IFMUserService userService) + public CMDrillPlanController(IFMFlowPermitService mFlowPermitService, IPFApproveCallBackService approveCallBackService, IFMNotificationTaskService notificationTaskService, IFMUserService userService) { MFlowPermitService = mFlowPermitService; ApproveCallBackService = approveCallBackService; - AccidentEventReportService = accidentEventReportService; NotificationTaskService = notificationTaskService; UserService = userService; } diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/CMController/CMDrillRecordController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/CMController/CMDrillRecordController.cs index 326e080..362b538 100644 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/CMController/CMDrillRecordController.cs +++ b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/CMController/CMDrillRecordController.cs @@ -1,6 +1,5 @@ using APT.BaseData.Domain.Enums.PF; using APT.BaseData.Domain.IServices; -using APT.BaseData.Domain.IServices.AE; using APT.BaseData.Domain.IServices.FM; using APT.Infrastructure.Core; using APT.MS.Domain.Entities.CM; @@ -18,14 +17,12 @@ namespace APT.SC.WebApi.Controllers.Api.CM { IFMFlowPermitService MFlowPermitService { get; set; } IPFApproveCallBackService ApproveCallBackService { get; set; } - IAEAccidentEventReportService AccidentEventReportService { get; set; } IFMNotificationTaskService NotificationTaskService { get; set; } IFMUserService UserService { get; set; } - public CMDrillRecordController(IFMFlowPermitService mFlowPermitService, IPFApproveCallBackService approveCallBackService, IAEAccidentEventReportService accidentEventReportService, IFMNotificationTaskService notificationTaskService, IFMUserService userService) + public CMDrillRecordController(IFMFlowPermitService mFlowPermitService, IPFApproveCallBackService approveCallBackService, IFMNotificationTaskService notificationTaskService, IFMUserService userService) { MFlowPermitService = mFlowPermitService; ApproveCallBackService = approveCallBackService; - AccidentEventReportService = accidentEventReportService; NotificationTaskService = notificationTaskService; UserService = userService; } diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/CMController/CMEquipmentDemandSurveyController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/CMController/CMEquipmentDemandSurveyController.cs index a1e9eaa..3d95d9a 100644 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/CMController/CMEquipmentDemandSurveyController.cs +++ b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/CMController/CMEquipmentDemandSurveyController.cs @@ -3,11 +3,9 @@ using APT.BaseData.Domain.Entities.FM; using APT.BaseData.Domain.Enums; using APT.BaseData.Domain.Enums.PF; using APT.BaseData.Domain.IServices; -using APT.BaseData.Domain.IServices.AE; using APT.BaseData.Domain.IServices.FM; using APT.Infrastructure.Core; using APT.MS.Domain.Entities.CM; -using APT.MS.Domain.Entities.TI; using APT.MS.Domain.Enums; using APT.Utility; using Microsoft.AspNetCore.Mvc; @@ -23,14 +21,12 @@ namespace APT.SC.WebApi.Controllers.Api.CM { IFMFlowPermitService MFlowPermitService { get; set; } IPFApproveCallBackService ApproveCallBackService { get; set; } - IAEAccidentEventReportService AccidentEventReportService { get; set; } IFMNotificationTaskService NotificationTaskService { get; set; } IFMUserService UserService { get; set; } - public CMEquipmentDemandSurveyController(IFMFlowPermitService mFlowPermitService, IPFApproveCallBackService approveCallBackService, IAEAccidentEventReportService accidentEventReportService, IFMNotificationTaskService notificationTaskService, IFMUserService userService) + public CMEquipmentDemandSurveyController(IFMFlowPermitService mFlowPermitService, IPFApproveCallBackService approveCallBackService, IFMNotificationTaskService notificationTaskService, IFMUserService userService) { MFlowPermitService = mFlowPermitService; ApproveCallBackService = approveCallBackService; - AccidentEventReportService = accidentEventReportService; NotificationTaskService = notificationTaskService; UserService = userService; } diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/CMController/CMEquipmentDemandSurveyMasterController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/CMController/CMEquipmentDemandSurveyMasterController.cs index bb6b536..6b627e2 100644 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/CMController/CMEquipmentDemandSurveyMasterController.cs +++ b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/CMController/CMEquipmentDemandSurveyMasterController.cs @@ -3,11 +3,9 @@ using APT.BaseData.Domain.Entities.FM; using APT.BaseData.Domain.Enums; using APT.BaseData.Domain.Enums.PF; using APT.BaseData.Domain.IServices; -using APT.BaseData.Domain.IServices.AE; using APT.BaseData.Domain.IServices.FM; using APT.Infrastructure.Core; using APT.MS.Domain.Entities.CM; -using APT.MS.Domain.Entities.TI; using APT.MS.Domain.Enums; using APT.Utility; using Microsoft.AspNetCore.Mvc; @@ -23,14 +21,12 @@ namespace APT.SC.WebApi.Controllers.Api.CM { IFMFlowPermitService MFlowPermitService { get; set; } IPFApproveCallBackService ApproveCallBackService { get; set; } - IAEAccidentEventReportService AccidentEventReportService { get; set; } IFMNotificationTaskService NotificationTaskService { get; set; } IFMUserService UserService { get; set; } - public CMEquipmentDemandSurveyMasterController(IFMFlowPermitService mFlowPermitService, IPFApproveCallBackService approveCallBackService, IAEAccidentEventReportService accidentEventReportService, IFMNotificationTaskService notificationTaskService, IFMUserService userService) + public CMEquipmentDemandSurveyMasterController(IFMFlowPermitService mFlowPermitService, IPFApproveCallBackService approveCallBackService, IFMNotificationTaskService notificationTaskService, IFMUserService userService) { MFlowPermitService = mFlowPermitService; ApproveCallBackService = approveCallBackService; - AccidentEventReportService = accidentEventReportService; NotificationTaskService = notificationTaskService; UserService = userService; } diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/CMController/CMMaterialLibraryController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/CMController/CMMaterialLibraryController.cs index a7e8191..41052db 100644 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/CMController/CMMaterialLibraryController.cs +++ b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/CMController/CMMaterialLibraryController.cs @@ -3,11 +3,9 @@ using APT.BaseData.Domain.Entities.FM; using APT.BaseData.Domain.Enums; using APT.BaseData.Domain.Enums.PF; using APT.BaseData.Domain.IServices; -using APT.BaseData.Domain.IServices.AE; using APT.BaseData.Domain.IServices.FM; using APT.Infrastructure.Core; using APT.MS.Domain.Entities.CM; -using APT.MS.Domain.Entities.TI; using APT.MS.Domain.Enums; using APT.Utility; using Microsoft.AspNetCore.Mvc; diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/CMController/CMRspEstimateController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/CMController/CMRspEstimateController.cs index 7a8ce46..eb99577 100644 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/CMController/CMRspEstimateController.cs +++ b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/CMController/CMRspEstimateController.cs @@ -2,12 +2,9 @@ using APT.BaseData.Domain.Entities.FM; using APT.BaseData.Domain.Enums.PF; using APT.BaseData.Domain.IServices; -using APT.BaseData.Domain.IServices.AE; using APT.BaseData.Domain.IServices.FM; using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.AE; using APT.MS.Domain.Entities.CM; -using APT.MS.Domain.Entities.TI; using APT.MS.Domain.Enums; using APT.Utility; using Microsoft.AspNetCore.Mvc; @@ -23,14 +20,12 @@ namespace APT.SC.WebApi.Controllers.Api.CM { IFMFlowPermitService MFlowPermitService { get; set; } IPFApproveCallBackService ApproveCallBackService { get; set; } - IAEAccidentEventReportService AccidentEventReportService { get; set; } IFMNotificationTaskService NotificationTaskService { get; set; } IFMUserService UserService { get; set; } - public CMRspEstimateController(IFMFlowPermitService mFlowPermitService, IPFApproveCallBackService approveCallBackService, IAEAccidentEventReportService accidentEventReportService, IFMNotificationTaskService notificationTaskService, IFMUserService userService) + public CMRspEstimateController(IFMFlowPermitService mFlowPermitService, IPFApproveCallBackService approveCallBackService, IFMNotificationTaskService notificationTaskService, IFMUserService userService) { MFlowPermitService = mFlowPermitService; ApproveCallBackService = approveCallBackService; - AccidentEventReportService = accidentEventReportService; NotificationTaskService = notificationTaskService; UserService = userService; } @@ -88,13 +83,14 @@ namespace APT.SC.WebApi.Controllers.Api.CM //事故/事件种类 var ListEventKind = entity.Nav_ListEventKind; entity.Nav_ListEventKind = null; - if (ListEventKind != null && ListEventKind.Any()) - { - foreach (var item in ListEventKind) - { - item.Nav_RspAccdentKind = null; - } - } + //Todo 2401 + //if (ListEventKind != null && ListEventKind.Any()) + //{ + // foreach (var item in ListEventKind) + // { + // item.Nav_RspAccdentKind = null; + // } + //} //参与人员 var ListJoin = entity.Nav_ListJoin; @@ -197,33 +193,33 @@ namespace APT.SC.WebApi.Controllers.Api.CM { return listResult; } + //Todo 2401 + //var Kinds = GetEntities(e => e.REPORT_ID == EventID && !e.IS_DELETED, null, "Nav_AccidentKind"); + //if (Kinds != null && Kinds.Any()) + //{ + // foreach (var item in Kinds) + // { + // listResult.Add(new T_CM_RSP_ESTIMATE_EVENT_KIND() + // { + // ID = Guid.NewGuid(), + // ESTIMATE_ID = ESTIMATE_ID, + // KIND_ID = item.Nav_AccidentKind.ID, + // Nav_RspAccdentKind = item.Nav_AccidentKind, + // IS_DELETED = false, + // ORG_ID = filter.OrgId, + // //ENTITY_ORG_TPYE = , + // //FORM_ID = , + // //FLOW_STATUS = , + // //FLOW_SEND_STATUS = , + // //FLOW_ID = , + // //CREATE_TIME = , + // //MODIFY_TIME = , + // //CREATER_ID = , + // //MODIFIER_ID = - var Kinds = GetEntities(e => e.REPORT_ID == EventID && !e.IS_DELETED, null, "Nav_AccidentKind"); - if (Kinds != null && Kinds.Any()) - { - foreach (var item in Kinds) - { - listResult.Add(new T_CM_RSP_ESTIMATE_EVENT_KIND() - { - ID = Guid.NewGuid(), - ESTIMATE_ID = ESTIMATE_ID, - KIND_ID = item.Nav_AccidentKind.ID, - Nav_RspAccdentKind = item.Nav_AccidentKind, - IS_DELETED = false, - ORG_ID = filter.OrgId, - //ENTITY_ORG_TPYE = , - //FORM_ID = , - //FLOW_STATUS = , - //FLOW_SEND_STATUS = , - //FLOW_ID = , - //CREATE_TIME = , - //MODIFY_TIME = , - //CREATER_ID = , - //MODIFIER_ID = - - }); - } - } + // }); + // } + //} return listResult; }); } diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/CMController/CMUrgentEventController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/CMController/CMUrgentEventController.cs index d4f9622..7ed0910 100644 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/CMController/CMUrgentEventController.cs +++ b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/CMController/CMUrgentEventController.cs @@ -3,11 +3,9 @@ using APT.BaseData.Domain.Entities.FM; using APT.BaseData.Domain.Enums; using APT.BaseData.Domain.Enums.PF; using APT.BaseData.Domain.IServices; -using APT.BaseData.Domain.IServices.AE; using APT.BaseData.Domain.IServices.FM; using APT.Infrastructure.Core; using APT.MS.Domain.Entities.CM; -using APT.MS.Domain.Entities.TI; using APT.MS.Domain.Enums; using APT.Utility; using Microsoft.AspNetCore.Mvc; @@ -23,14 +21,12 @@ namespace APT.SC.WebApi.Controllers.Api.CM { IFMFlowPermitService MFlowPermitService { get; set; } IPFApproveCallBackService ApproveCallBackService { get; set; } - IAEAccidentEventReportService AccidentEventReportService { get; set; } IFMNotificationTaskService NotificationTaskService { get; set; } IFMUserService UserService { get; set; } - public CMUrgentEventController(IFMFlowPermitService mFlowPermitService, IPFApproveCallBackService approveCallBackService, IAEAccidentEventReportService accidentEventReportService, IFMNotificationTaskService notificationTaskService, IFMUserService userService) + public CMUrgentEventController(IFMFlowPermitService mFlowPermitService, IPFApproveCallBackService approveCallBackService, IFMNotificationTaskService notificationTaskService, IFMUserService userService) { MFlowPermitService = mFlowPermitService; ApproveCallBackService = approveCallBackService; - AccidentEventReportService = accidentEventReportService; NotificationTaskService = notificationTaskService; UserService = userService; } diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/DMController/DMDeviceBaseController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/DMController/DMDeviceBaseController.cs index 118e39d..cebc60f 100644 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/DMController/DMDeviceBaseController.cs +++ b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/DMController/DMDeviceBaseController.cs @@ -2,7 +2,6 @@ using APT.BaseData.Domain.Entities.FM; using APT.BaseData.Domain.Enums.PF; using APT.BaseData.Domain.IServices; -using APT.BaseData.Domain.IServices.AE; using APT.BaseData.Domain.IServices.FM; using APT.BaseData.Services.Services.FM; using APT.Infrastructure.Core; diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/DMController/DMDeviceCheckController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/DMController/DMDeviceCheckController.cs index cae09f2..d7bba01 100644 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/DMController/DMDeviceCheckController.cs +++ b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/DMController/DMDeviceCheckController.cs @@ -2,7 +2,6 @@ using APT.BaseData.Domain.Entities.FM; using APT.BaseData.Domain.Enums.PF; using APT.BaseData.Domain.IServices; -using APT.BaseData.Domain.IServices.AE; using APT.BaseData.Domain.IServices.FM; using APT.Infrastructure.Core; using APT.MS.Domain.Entities.DM; diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/DMController/DMDeviceCheckDetailController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/DMController/DMDeviceCheckDetailController.cs index 6ab0d4b..5513165 100644 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/DMController/DMDeviceCheckDetailController.cs +++ b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/DMController/DMDeviceCheckDetailController.cs @@ -2,7 +2,6 @@ using APT.BaseData.Domain.Entities.FM; using APT.BaseData.Domain.Enums.PF; using APT.BaseData.Domain.IServices; -using APT.BaseData.Domain.IServices.AE; using APT.BaseData.Domain.IServices.FM; using APT.Infrastructure.Core; using APT.MS.Domain.Entities.DM; diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/DMController/DMDeviceMaintenanceCheckController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/DMController/DMDeviceMaintenanceCheckController.cs index 5e0d8dd..b4185f3 100644 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/DMController/DMDeviceMaintenanceCheckController.cs +++ b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/DMController/DMDeviceMaintenanceCheckController.cs @@ -2,7 +2,6 @@ using APT.BaseData.Domain.Entities.FM; using APT.BaseData.Domain.Enums.PF; using APT.BaseData.Domain.IServices; -using APT.BaseData.Domain.IServices.AE; using APT.BaseData.Domain.IServices.FM; using APT.Infrastructure.Core; using APT.MS.Domain.Entities.DM; diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/DMController/DMDeviceMaintenancePlanController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/DMController/DMDeviceMaintenancePlanController.cs index 8301282..dc4eb0d 100644 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/DMController/DMDeviceMaintenancePlanController.cs +++ b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/DMController/DMDeviceMaintenancePlanController.cs @@ -2,7 +2,6 @@ using APT.BaseData.Domain.Entities.FM; using APT.BaseData.Domain.Enums.PF; using APT.BaseData.Domain.IServices; -using APT.BaseData.Domain.IServices.AE; using APT.BaseData.Domain.IServices.FM; using APT.Infrastructure.Core; using APT.MS.Domain.Entities.DM; diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/OGController/06OGConfigController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/OGController/06OGConfigController.cs index 48e1a28..0f16937 100644 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/OGController/06OGConfigController.cs +++ b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/OGController/06OGConfigController.cs @@ -9,28 +9,28 @@ using System.Linq; namespace APT.SC.WebApi.Controllers.Api.OG { - [Route("api/OG/OGConfig")] - public class OGConfigController : AuthorizeApiController - { - /// - /// 保存 - /// - /// - /// - [HttpPost, Route("FullUpdate")] - public JsonActionResult FullUpdate([FromBody]T_OG_OGCONFIG entity) - { - return SafeExecute(() => - { - BaseFilter baseFilter = new BaseFilter(entity.ORG_ID); - var config = GetEntities(t => t.ID != entity.ID, baseFilter).ToList(); - if (config != null && config.Count > 0) - { - throw new Exception("已存在一条数据,请勿重复新增!"); - } - UpdateEntity(entity); - return true; - }); - } - } + //[Route("api/OG/OGConfig")] + //public class OGConfigController : AuthorizeApiController + //{ + // /// + // /// 保存 + // /// + // /// + // /// + // [HttpPost, Route("FullUpdate")] + // public JsonActionResult FullUpdate([FromBody]T_OG_OGCONFIG entity) + // { + // return SafeExecute(() => + // { + // BaseFilter baseFilter = new BaseFilter(entity.ORG_ID); + // var config = GetEntities(t => t.ID != entity.ID, baseFilter).ToList(); + // if (config != null && config.Count > 0) + // { + // throw new Exception("已存在一条数据,请勿重复新增!"); + // } + // UpdateEntity(entity); + // return true; + // }); + // } + //} } diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/OHController/OHHazardMonitorJobController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/OHController/OHHazardMonitorJobController.cs deleted file mode 100644 index 693d870..0000000 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/OHController/OHHazardMonitorJobController.cs +++ /dev/null @@ -1,477 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.BaseData.Domain.IServices; -using APT.BaseData.Domain.IServices.AE; -using APT.BaseData.Domain.IServices.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.OH; -using APT.MS.Domain.Entities.TI; -using APT.MS.Domain.Enums; -using APT.Utility; -using Microsoft.AspNetCore.Mvc; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Linq.Expressions; - -namespace APT.SC.WebApi.Controllers.Api.OH -{ - [Route("api/OH/OHHazardMonitorJob")] - public class OHHazardMonitorJobController : AuthorizeApiController - { - IFMFlowPermitService MFlowPermitService { get; set; } - IPFApproveCallBackService ApproveCallBackService { get; set; } - IAEAccidentEventReportService AccidentEventReportService { get; set; } - IFMNotificationTaskService NotificationTaskService { get; set; } - IFMUserService UserService { get; set; } - public OHHazardMonitorJobController(IFMFlowPermitService mFlowPermitService, IPFApproveCallBackService approveCallBackService, IAEAccidentEventReportService accidentEventReportService, IFMNotificationTaskService notificationTaskService, IFMUserService userService) - { - MFlowPermitService = mFlowPermitService; - ApproveCallBackService = approveCallBackService; - AccidentEventReportService = accidentEventReportService; - NotificationTaskService = notificationTaskService; - UserService = userService; - } - - /// - /// 体检周期表 修改 - /// - /// - /// - [HttpPost, Route("FullUpdate")] - public JsonActionResult FullUpdate([FromBody] T_OH_HAZARD_MONITOR_JOB entity) - { - return SafeExecute(() => - { - #region 值判断 - - if (entity.TYPE_ID == null) - { - throw new Exception("请选择监测类型"); - } - var LoginID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID; - if (entity.USER_ID_GET.HasValue && LoginID.HasValue && entity.USER_ID_GET.Value != LoginID.Value) - { - throw new Exception("您同组织同岗人员已经操作过此单,操作失败!"); - } - entity.USER_ID_GET = LoginID.Value;//操作人赋值 - - var Detail = entity.Nav_Detail; - entity.Nav_Detail = null; - - if (Detail == null || !Detail.Any()) - { - throw new Exception("请输入检测记录明细!"); - } - //Dictionary dicOverLimit = new Dictionary(); - T_FM_NOTIFICATION_TASK task = null; - IEnumerable listTaskNoDo = null;//对应记录的部门岗位如果有多个人 其余不需要处理 - //超限 通知 - List listTask = new List(); - //穿戴提醒通知 (如果有多个缺少 一个人(部门安全员) 收到 1 条) - List listTaskWear = new List(); - T_FM_NOTIFICATION_TASK TaskWearCheck = null; - if (entity.STATUS == OHHazardMonitorJobStatusEnum.Finish) - { - if (entity.MONITOR_TYPE == OHHazardMonitorFormTypeEnum.WaterMonitoring) - { - if (string.IsNullOrEmpty(entity.SAMPLE_PEOPLE)) - { - throw new Exception("请输入取样人!"); - } - } - else - { - if (!entity.USER_ID.HasValue) - { - throw new Exception("请选择检测人!"); - } - //仪器名称 DEVICE_NAME 规格 / 型号 DEVICE_SPEC 监测方法 MONITOR_METHOD - } - - if (entity.TaskID != Guid.Empty) - { - task = NotificationTaskService.GetEntityTask(entity.TaskID, "OH024_SHOWPRINT"); - - //别人的 - listTaskNoDo = GetEntities(e => e.ID != task.ID && e.SOURCE_DATA_ID == task.SOURCE_DATA_ID && e.SOURCE_FORMCODE == "OH024", null, null); - if (listTaskNoDo != null && listTaskNoDo.Any()) - { - foreach (var item in listTaskNoDo) - { - item.SOURCE_FORMCODE = "OH024_SHOWPRINT"; - item.TASK_DT = DateTime.Now; - item.NOTICE_STATUS = (int)FMNoticeStatusEnum.超时无需办理; - } - } - } - - var listRule = GetEntities(e => e.TYPE_ID.HasValue && e.Nav_Type.MONITOR_TYPE == entity.MONITOR_TYPE, null, new string[] { "Nav_Type", "Nav_DepartmentWorkshop" });//"Nav_WarnPost.Nav_Users.Nav_User" - T_OH_HAZARD_MONITOR_RULE rule = null; - int i = 1; - string Warm = string.Empty; - DateTime dtWarmEnd = NotificationTaskService.GetTaskEndTime(BaseData.Domain.Enums.FMTASKTYPE.OH_MonitorJob_Warm, entity.ORG_ID.Value, DateTime.Now, null, null); - - IEnumerable IListUser = null;//警示人员 - switch (entity.MONITOR_TYPE) - { - case OHHazardMonitorFormTypeEnum.DustMonitoring: - #region 粉尘 - - foreach (var item in Detail) - { - if (string.IsNullOrEmpty(item.SAMPLE_SOURCE)) - { - throw new Exception("请填写,行" + i + "扬尘来源!"); - } - if (!item.JOB_STATUS.HasValue) - { - throw new Exception("请填写,行" + i + "作业状态!"); - } - if (!item.PROTECT_STATUS.HasValue) - { - throw new Exception("请填写,行" + i + "个体防护情况!"); - } - if (!item.MONITOR_RESULT_LOW.HasValue) - { - throw new Exception("请填写,行" + i + "最低测定结果!"); - } - if (!item.MONITOR_RESULT_HIGH.HasValue) - { - throw new Exception("请填写,行" + i + "最高测定结果!"); - } - if (item.MONITOR_RESULT_LOW.HasValue && item.MONITOR_RESULT_HIGH.HasValue && item.MONITOR_RESULT_LOW.Value > item.MONITOR_RESULT_HIGH.Value) - { - throw new Exception("行" + i + "最低测定结果不能大于最高测定结果!"); - } - - rule = listRule.FirstOrDefault(e => e.ID == item.RULE_ID); - - //最高值 大于 粉尘浓度阈值 超限 - item.OVER_LIMIT = (item.MONITOR_RESULT_HIGH.Value > rule.THRESHOLD_DUST || item.MONITOR_RESULT_LOW.Value > rule.THRESHOLD_DUST) ? YesNoEnum.Yes : YesNoEnum.No; - if (item.OVER_LIMIT.Value == YesNoEnum.Yes) - { - //3、是否超限为是时,推送今日提醒给警示推送人;消息类型:其他;消息内容:“监测车间”+“监测地点”+“扬尘类别”超限 - //dicOverLimit.Add(item, item.Nav_Rule.Nav_DepartmentWorkshop.NAME + item.Nav_Rule.LOCATION + entity.Nav_Type.NAME + entity.Nav_Type.SMALL_TYPE + "超限"); - - IListUser = GetEntities(e => e.DEPARTMENT_ID.HasValue && e.DEPARTMENT_ID.Value == rule.DEPARTMENT_ID_WARN && e.Nav_Person.POST_ID == rule.WARN_POST_ID, null, "Nav_Person"); - - //if (rule.Nav_WarnPost.Nav_Users == null || !rule.Nav_WarnPost.Nav_Users.Any()) - if (IListUser == null || !IListUser.Any()) - { - throw new Exception("未找到警示推送人"); - } - else - { - - Warm = rule.Nav_DepartmentWorkshop.NAME + rule.LOCATION + rule.Nav_Type.NAME + "(" + rule.Nav_Type.SMALL_TYPE + ")" + "超限"; - foreach (var itemU in IListUser)//rule.Nav_WarnPost.Nav_Users - { - T_FM_NOTIFICATION_TASK taskWarm = NotificationTaskService.InsertUserNoticeTaskModel(Warm, Guid.Empty, itemU.ORG_ID, itemU.ID, itemU.NAME, DateTime.Now, dtWarmEnd, (int)FMNoticeTypeEnum.今日提醒, "");//, itemU.USER_ID, itemU.Nav_User.NAME - listTask.Add(taskWarm); - } - } - - //int j = 0; - //foreach (var itemU in rule.Nav_WarnPost.Nav_Users) - //{ - // j++; - // if (rule.DEPARTMENT_ID == itemU.Nav_User.DEPARTMENT_ID) - // { - // T_FM_NOTIFICATION_TASK taskWarm = NotificationTaskService.InsertUserNoticeTaskModel(rule.Nav_DepartmentWorkshop.NAME + rule.LOCATION + rule.Nav_Type.NAME + "(" + rule.Nav_Type.SMALL_TYPE + ")" + "超限", Guid.Empty, itemU.ORG_ID, itemU.USER_ID, itemU.Nav_User.NAME, DateTime.Now, DateTime.Now.AddDays(1), (int)FMNoticeTypeEnum.今日提醒, ""); - // listTask.Add(taskWarm); - // break; - // } - // else if (j == rule.Nav_WarnPost.Nav_Users.Count) - // { - // throw new Exception("未找到警示推送人"); - // } - //} - - } - //穿戴 缺少 时 给 安全员 发送待办 - SafeWarm(item, rule, listTaskWear, TaskWearCheck); - } - i++; - - #endregion - break; - case OHHazardMonitorFormTypeEnum.WorkPlaceMonitoring: - - #region 噪音 - - foreach (var item in Detail) - { - if (string.IsNullOrEmpty(item.SAMPLE_SOURCE)) - { - throw new Exception("请填写,行" + i + "噪声来源!"); - } - if (!item.JOB_STATUS.HasValue) - { - throw new Exception("请填写,行" + i + "作业状态!"); - } - if (!item.PROTECT_STATUS.HasValue) - { - throw new Exception("请填写,行" + i + "个体防护情况!"); - } - if (!item.MONITOR_RESULT_LOW.HasValue) - { - throw new Exception("请填写,行" + i + "最低测定结果!"); - } - if (!item.MONITOR_RESULT_HIGH.HasValue) - { - throw new Exception("请填写,行" + i + "最高测定结果!"); - } - if (item.MONITOR_RESULT_LOW.HasValue && item.MONITOR_RESULT_HIGH.HasValue && item.MONITOR_RESULT_LOW.Value > item.MONITOR_RESULT_HIGH.Value) - { - throw new Exception("行" + i + "最低测定结果不能大于最高测定结果!"); - } - - rule = listRule.FirstOrDefault(e => e.ID == item.RULE_ID); - //最高值 大于 噪声阈值 超限 - item.OVER_LIMIT = (item.MONITOR_RESULT_HIGH.Value > rule.THRESHOLD_NOISE || item.MONITOR_RESULT_LOW.Value > rule.THRESHOLD_NOISE) ? YesNoEnum.Yes : YesNoEnum.No; - - if (item.OVER_LIMIT.Value == YesNoEnum.Yes) - { - IListUser = GetEntities(e => e.DEPARTMENT_ID.HasValue && e.DEPARTMENT_ID.Value == rule.DEPARTMENT_ID_WARN && e.Nav_Person.POST_ID == rule.WARN_POST_ID, null, "Nav_Person"); - //if (rule.Nav_WarnPost.Nav_Users == null || !rule.Nav_WarnPost.Nav_Users.Any()) - if (IListUser == null || !IListUser.Any()) - { - throw new Exception("未找到警示推送人"); - } - else - { - Warm = rule.Nav_DepartmentWorkshop.NAME + rule.LOCATION + rule.Nav_Type.NAME + "(" + rule.Nav_Type.SMALL_TYPE + ")" + "超限"; - foreach (var itemU in IListUser) - { - T_FM_NOTIFICATION_TASK taskWarm = NotificationTaskService.InsertUserNoticeTaskModel(Warm, Guid.Empty, itemU.ORG_ID, itemU.ID, itemU.NAME, DateTime.Now, dtWarmEnd, (int)FMNoticeTypeEnum.今日提醒, ""); - listTask.Add(taskWarm); - } - } - - //3、是否超限为是时,推送今日提醒给警示推送人;消息类型:其他;消息内容:“监测车间”+“监测地点”噪声超限。 - //int j = 0; - //foreach (var itemU in rule.Nav_WarnPost.Nav_Users) - //{ - // j++; - // if (rule.DEPARTMENT_ID == itemU.Nav_User.DEPARTMENT_ID) - // { - // T_FM_NOTIFICATION_TASK taskWarm = NotificationTaskService.InsertUserNoticeTaskModel(rule.Nav_DepartmentWorkshop.NAME + rule.LOCATION + rule.Nav_Type.NAME + "(" + rule.Nav_Type.SMALL_TYPE + ")" + "超限", Guid.Empty, itemU.ORG_ID, itemU.USER_ID, itemU.Nav_User.NAME, DateTime.Now, DateTime.Now.AddDays(1), (int)FMNoticeTypeEnum.今日提醒, ""); - // listTask.Add(taskWarm); - // break; - // } - // else if (j == rule.Nav_WarnPost.Nav_Users.Count) - // { - // throw new Exception("未找到警示推送人"); - // } - //} - } - //if (item.PROTECT_STATUS.Value == OHHazardMonitorJobProtectEnum.WearPart) - // //2、个体防护情况填写结果为缺少,触发今日提醒给部门安全员;消息类型:其他;消息内容:请进行劳动防护用品需求评估。 - //穿戴 缺少 时 给 安全员 发送待办 - SafeWarm(item, rule, listTaskWear, TaskWearCheck); - } - i++; - - #endregion - break; - case OHHazardMonitorFormTypeEnum.RadiationMonitoring: - #region 放射性 - foreach (var item in Detail) - { - if (!item.MONITOR_RESULT_05.HasValue) - { - throw new Exception("请填写,行" + i + "0.5m处监测值!"); - } - if (!item.MONITOR_RESULT_10.HasValue) - { - throw new Exception("请填写,行" + i + "1m处监测值!"); - } - if (!item.MONITOR_RESULT_AROUND.HasValue) - { - throw new Exception("请填写,行" + i + "周围环境值!"); - } - - rule = listRule.FirstOrDefault(e => e.ID == item.RULE_ID); - //最高值 大于 噪声阈值 超限 - item.OVER_LIMIT = (item.MONITOR_RESULT_05.Value > rule.THRESHOLD_RADIATION_05 || item.MONITOR_RESULT_10.Value > rule.THRESHOLD_RADIATION_10 || item.MONITOR_RESULT_AROUND.Value > rule.THRESHOLD_RADIATION_AROUND) ? YesNoEnum.Yes : YesNoEnum.No; - if (item.OVER_LIMIT.Value == YesNoEnum.Yes) - { - IListUser = GetEntities(e => e.DEPARTMENT_ID.HasValue && e.DEPARTMENT_ID.Value == rule.DEPARTMENT_ID_WARN && e.Nav_Person.POST_ID == rule.WARN_POST_ID, null, "Nav_Person"); - if (IListUser == null || !IListUser.Any()) - { - throw new Exception("未找到警示推送人"); - } - else - { - Warm = rule.Nav_DepartmentWorkshop.NAME + rule.LOCATION + rule.Nav_Type.NAME + "(" + rule.Nav_Type.SMALL_TYPE + ")" + "超限"; - foreach (var itemU in IListUser) - { - T_FM_NOTIFICATION_TASK taskWarm = NotificationTaskService.InsertUserNoticeTaskModel(Warm, Guid.Empty, itemU.ORG_ID, itemU.ID, itemU.NAME, DateTime.Now, dtWarmEnd, (int)FMNoticeTypeEnum.今日提醒, ""); - listTask.Add(taskWarm); - } - } - - ////3、是否超限为是时,推送今日提醒给警示推送人;消息类型:其他;消息内容:“监测车间”+“监测地点”+“类别”超限 - //int j = 0; - //foreach (var itemU in rule.Nav_WarnPost.Nav_Users) - //{ - // j++; - // if (rule.DEPARTMENT_ID == itemU.Nav_User.DEPARTMENT_ID) - // { - // T_FM_NOTIFICATION_TASK taskWarm = NotificationTaskService.InsertUserNoticeTaskModel(rule.Nav_DepartmentWorkshop.NAME + rule.LOCATION + rule.Nav_Type.NAME + "(" + rule.Nav_Type.SMALL_TYPE + ")" + "超限", Guid.Empty, itemU.ORG_ID, itemU.USER_ID, itemU.Nav_User.NAME, DateTime.Now, DateTime.Now.AddDays(1), (int)FMNoticeTypeEnum.今日提醒, ""); - // listTask.Add(taskWarm); - // break; - // } - // else if (j == rule.Nav_WarnPost.Nav_Users.Count) - // { - // throw new Exception("未找到警示推送人"); - // } - //} - } - } - i++; - - #endregion - break; - case OHHazardMonitorFormTypeEnum.WaterMonitoring: - - #region 水质监测 - - foreach (var item in Detail) - { - if (string.IsNullOrEmpty(item.SAMPLE_SOURCE)) - { - throw new Exception("请填写,行" + i + "水来源!"); - } - if (!item.SAMPLE_TIME.HasValue) - { - throw new Exception("请填写,行" + i + "取样时间!"); - } - if (!item.TEST_TIME.HasValue) - { - throw new Exception("请填写,行" + i + "化验时间!"); - } - if (!item.MONITOR_RESULT.HasValue) - { - throw new Exception("请填写,行" + i + "监测数据!"); - } - if (string.IsNullOrEmpty(item.TEST_DEPARTMENT)) - { - throw new Exception("请填写,行" + i + "化验部门!"); - } - if (string.IsNullOrEmpty(item.TESTER)) - { - throw new Exception("请填写,行" + i + "化验人!"); - } - - rule = listRule.FirstOrDefault(e => e.ID == item.RULE_ID); - //监测数据 小于最低值 或者 大于最高值 超限 - item.OVER_LIMIT = (item.MONITOR_RESULT.Value < rule.THRESHOLD_WARTER_LOW || item.MONITOR_RESULT.Value > rule.THRESHOLD_WARTER_HIGH) ? YesNoEnum.Yes : YesNoEnum.No; - if (item.OVER_LIMIT.Value == YesNoEnum.Yes) - { - IListUser = GetEntities(e => e.DEPARTMENT_ID.HasValue && e.DEPARTMENT_ID.Value == rule.DEPARTMENT_ID_WARN && e.Nav_Person.POST_ID == rule.WARN_POST_ID, null, "Nav_Person"); - if (IListUser == null || !IListUser.Any()) - { - throw new Exception("未找到警示推送人"); - } - else - { - Warm = rule.Nav_DepartmentWorkshop.NAME + rule.LOCATION + rule.Nav_Type.NAME + "(" + rule.Nav_Type.SMALL_TYPE + ")" + "超限"; - foreach (var itemU in IListUser) - { - T_FM_NOTIFICATION_TASK taskWarm = NotificationTaskService.InsertUserNoticeTaskModel(Warm, Guid.Empty, itemU.ORG_ID, itemU.ID, itemU.NAME, DateTime.Now, dtWarmEnd, (int)FMNoticeTypeEnum.今日提醒, ""); - listTask.Add(taskWarm); - } - } - - //2、是否超限为是时,推送今日提醒给警示推送人;消息类型:其他;消息内容:“取样车间”+“取样地点”+水质超限 - //int j = 0; - //foreach (var itemU in rule.Nav_WarnPost.Nav_Users) - //{ - // j++; - // if (rule.DEPARTMENT_ID == itemU.Nav_User.DEPARTMENT_ID) - // { - // T_FM_NOTIFICATION_TASK taskWarm = NotificationTaskService.InsertUserNoticeTaskModel(rule.Nav_DepartmentWorkshop.NAME + rule.LOCATION + rule.Nav_Type.NAME + "(" + rule.Nav_Type.SMALL_TYPE + ")" + "超限", Guid.Empty, itemU.ORG_ID, itemU.USER_ID, itemU.Nav_User.NAME, DateTime.Now, DateTime.Now.AddDays(1), (int)FMNoticeTypeEnum.今日提醒, ""); - // listTask.Add(taskWarm); - // break; - // } - // else if (j == rule.Nav_WarnPost.Nav_Users.Count) - // { - // throw new Exception("未找到警示推送人"); - // } - //} - } - } - i++; - #endregion - break; - default: - break; - } - } - - #endregion - - - this.UnifiedCommit(() => - { - if (entity != null) - UpdateEntityNoCommit(entity); - if (Detail != null && Detail.Any()) - BantchSaveEntityNoCommit(Detail); - if (listTask != null && listTask.Any())//超标 提醒 - BantchSaveEntityNoCommit(listTask); - if (listTaskWear != null && listTaskWear.Any())//缺少穿戴 提醒安全员 - BantchSaveEntityNoCommit(listTaskWear); - if (task != null)//待办 - UpdateEntityNoCommit(task); - if (listTaskNoDo != null && listTaskNoDo.Any())//待办 - BantchSaveEntityNoCommit(listTaskNoDo); - - }); - - return true; - }); - } - - - /// - /// 给责任部门 安全员 发送 - /// - /// - /// - /// - /// - public void SafeWarm(T_OH_HAZARD_MONITOR_JOB_DETAIL item, T_OH_HAZARD_MONITOR_RULE rule, List listTaskWear, T_FM_NOTIFICATION_TASK TaskWearCheck) - { - if (item.PROTECT_STATUS.Value == OHHazardMonitorJobProtectEnum.WearPart) - { - //2、个体防护情况填写结果为缺少,触发今日提醒给部门安全员;消息类型:其他;消息内容:请进行劳动防护用品需求评估。 - string Msg = string.Empty; - T_FM_USER userSafe = UserService.GetRoleUser(ref Msg, "安全员", rule.DEPARTMENT_ID, 0); - if (userSafe == null) - { - if (!string.IsNullOrEmpty(Msg)) - { - throw new Exception(Msg); - } - else - { - throw new Exception("未找到责任部门的安全员"); - } - } - //listTaskWear - TaskWearCheck = listTaskWear.FirstOrDefault(e => e.USER_ID == userSafe.ID); - if (TaskWearCheck == null) - { - //添加安全员 今日提醒 - //2、个体防护情况填写结果为缺少,触发今日提醒给部门安全员;消息类型:其他;消息内容:请进行劳动防护用品需求评估。 - TaskWearCheck = NotificationTaskService.InsertUserNoticeTaskModel("请进行劳动防护用品需求评估", Guid.Empty, item.ORG_ID, userSafe.ID, userSafe.NAME, DateTime.Now , (int)FMNoticeTypeEnum.今日提醒, "", BaseData.Domain.Enums.FMTASKTYPE.OH_MonitorJob_NotWear); - listTaskWear.Add(TaskWearCheck); - } - } - } - } -} \ No newline at end of file diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/OHController/OHHazardMonitorJobReportController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/OHController/OHHazardMonitorJobReportController.cs deleted file mode 100644 index d3185f1..0000000 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/OHController/OHHazardMonitorJobReportController.cs +++ /dev/null @@ -1,105 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.BaseData.Domain.IServices; -using APT.BaseData.Domain.IServices.AE; -using APT.BaseData.Domain.IServices.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.OH; -using APT.MS.Domain.Entities.TI; -using APT.MS.Domain.Enums; -using APT.Utility; -using Microsoft.AspNetCore.Mvc; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Linq.Expressions; - -namespace APT.SC.WebApi.Controllers.Api.OH -{ - [Route("api/OH/OHHazardMonitorJobReport")] - public class OHHazardMonitorJobReportController : AuthorizeApiController - { - IFMNotificationTaskService NotificationTaskService { get; set; } - public OHHazardMonitorJobReportController(IFMNotificationTaskService notificationTaskService) - { - NotificationTaskService = notificationTaskService; - } - - /// - /// 体检周期表 修改 - /// - /// - /// - [HttpPost, Route("FullUpdate")] - public JsonActionResult FullUpdate([FromBody] T_OH_HAZARD_MONITOR_JOB_REPORT entity) - { - return SafeExecute(() => - { - var files = entity.Nav_Files; - entity.Nav_Files = null; - T_FM_NOTIFICATION_TASK task = null; - if (entity.TaskID != Guid.Empty) - { - task = GetEntity(entity.TaskID); - task.SOURCE_DATA_ID = entity.ID; - } - if (entity.STATUS == PFStandardStatus.Archived) - { - if (entity.YEAR == 0) - { - throw new Exception("请选择年度!"); - } - if (string.IsNullOrEmpty(entity.NAME)) - { - throw new Exception("请填写文件名称!"); - } - if (string.IsNullOrEmpty(entity.DEPARTMENTNAME_JOB)) - { - throw new Exception("请填写监测单位!"); - } - if (entity.BEGINTIME_MONITOR.HasValue && entity.ENDTIME_MONITOR.HasValue && entity.BEGINTIME_MONITOR.Value > entity.ENDTIME_MONITOR.Value) - { - throw new Exception("监测开始时间不能大于监测结束时间!"); - } - if (files == null || !files.Any()) - { - throw new Exception("请上传附件!"); - } - - entity.DEPARTMENT_ID = APT.Infrastructure.Api.AppContext.DepartmentID; - entity.USER_ID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID; - if (task != null) - { - task.TASK_DT = DateTime.Now; - task.SOURCE_FORMCODE = "OH034_SHOWPRINT"; - if (task.TASK_ENDDT >= task.TASK_DT) - task.NOTICE_STATUS = (int)FMNoticeStatusEnum.正常已办; - else - task.NOTICE_STATUS = (int)FMNoticeStatusEnum.超期办理; - } - else if (entity.TaskID != Guid.Empty) - { - task = NotificationTaskService.GetEntityTask(entity.TaskID, "OH034_SHOWPRINT"); - task.SOURCE_DATA_ID = entity.ID; - } - } - foreach (var item in files) - { - item.REPORT_ID = entity.ID; - } - - this.UnifiedCommit(() => - { - if (entity != null) - UpdateEntityNoCommit(entity); - if (files != null && files.Any()) - BantchSaveEntityNoCommit(files); - if (task != null)//待办 - UpdateEntityNoCommit(task); - }); - return true; - }); - } - } -} \ No newline at end of file diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/OHController/OHHazardMonitorResultSumController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/OHController/OHHazardMonitorResultSumController.cs deleted file mode 100644 index c677258..0000000 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/OHController/OHHazardMonitorResultSumController.cs +++ /dev/null @@ -1,162 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.BaseData.Domain.IServices; -using APT.BaseData.Domain.IServices.AE; -using APT.BaseData.Domain.IServices.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.OH; -using APT.MS.Domain.Entities.TI; -using APT.MS.Domain.Enums; -using APT.Utility; -using Microsoft.AspNetCore.Mvc; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Linq.Expressions; - -namespace APT.SC.WebApi.Controllers.Api.OH -{ - [Route("api/OH/OHHazardMonitorResultSum")] - public class OHHazardMonitorResultSumController : AuthorizeApiController - { - IFMFlowPermitService MFlowPermitService { get; set; } - IPFApproveCallBackService ApproveCallBackService { get; set; } - IAEAccidentEventReportService AccidentEventReportService { get; set; } - IFMNotificationTaskService NotificationTaskService { get; set; } - IFMUserService UserService { get; set; } - public OHHazardMonitorResultSumController(IFMFlowPermitService mFlowPermitService, IPFApproveCallBackService approveCallBackService, IAEAccidentEventReportService accidentEventReportService, IFMNotificationTaskService notificationTaskService, IFMUserService userService) - { - MFlowPermitService = mFlowPermitService; - ApproveCallBackService = approveCallBackService; - AccidentEventReportService = accidentEventReportService; - NotificationTaskService = notificationTaskService; - UserService = userService; - } - - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("GetSumEdit")] - public JsonActionResult GetSumEdit([FromBody] KeywordFilter filter) - { - return SafeExecute(() => - { - var sum = GetEntity(null, filter, null); - Guid LoginID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value; - bool isLimit = false; - if (sum != null && sum.Nav_ListMonitorResult != null && sum.Nav_ListMonitorResult.Any()) - { - if (sum.STATUS != PFStandardStatus.Archived) - { - foreach (var item in sum.Nav_ListMonitorResult) - { - if (LoginID == item.User_ID) - { - isLimit = true; - break; - } - } - } - if (isLimit) - { - sum.EDITTYPE = 0; - //填单人 只能看到自己的 - sum.Nav_ListMonitorResult = sum.Nav_ListMonitorResult.Where(e => e.User_ID == LoginID).ToList(); - } - else - { - sum.EDITTYPE = 1; - sum.Nav_ListMonitorResult = sum.Nav_ListMonitorResult.OrderBy(e => e.User_ID).ToList(); - } - } - - return sum; - }); - } - - /// - /// 体检周期表 修改 - /// - /// - /// - [HttpPost, Route("FullUpdate")] - public JsonActionResult FullUpdate([FromBody] T_OH_HAZARD_MONITOR_RESULT_SUM entity) - { - return SafeExecute(() => - { - //判断 是不是 安环部负责人 如果不是 状态修改到 子表 子表 中 如果除了登陆者大家都提交了 发送待办给 安环部负责人 - Guid LoginID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value; - var UserLogin = GetEntity(e => e.ID == LoginID, "Nav_ApproveRole"); - - var ListMonitorResult = entity.Nav_ListMonitorResult; - entity.Nav_ListMonitorResult = null; - if (ListMonitorResult == null || !ListMonitorResult.Any()) - { - throw new Exception("获取检测结果统计详情失败!"); - } - //记录人、安环部负责人 结束操作 - T_FM_NOTIFICATION_TASK taskEnd = null; - //给安环部负责人发送待办 - T_FM_NOTIFICATION_TASK taskSendToSafe = null; - if (UserLogin.APPROVE_ROLE_ID.HasValue && UserLogin.Nav_ApproveRole.NAME.Contains("安环部负责人")) - { - //安环部负责人 保存并发送 后 直接 结束待办 - if (entity.STATUS == PFStandardStatus.Sign) - { - taskEnd = NotificationTaskService.GetEntityTask(entity.TaskID, "OH028_SHOWPRINT"); - entity.STATUS = PFStandardStatus.Archived;//安环负责人 归档 - } - } - else - { - bool isSend = false; - if (entity.STATUS == PFStandardStatus.Sign) - { - var listDetailID = ListMonitorResult.Select(e => e.ID); - var listCheck = GetEntities(e => e.SUM_ID == entity.ID && !listDetailID.Contains(e.ID) && e.STATUS == PFStandardStatus.Draft, null, null); - if (listCheck == null || !listCheck.Any()) - isSend = true; //最后一个填写 给安环部负责人发送 信息 - - //状态修改 - entity.STATUS = PFStandardStatus.Draft; - foreach (var item in ListMonitorResult) - { - item.STATUS = PFStandardStatus.Sign; - } - if (entity.TaskID != Guid.Empty) - taskEnd = NotificationTaskService.GetEntityTask(entity.TaskID, "OH028_SHOWPRINT"); - } - - if (isSend) - { - //给安环部负责人发送信息 - var listUserT = GetEntities(e => !e.IS_DELETED && e.Nav_ApproveRole.NAME.Contains("安环部负责人"), null, new string[] { "Nav_ApproveRole" }); - if (listUserT == null || !listUserT.Any()) - { - throw new Exception("获取安环部负责人失败!"); - } - var listUser = listUserT.ToList(); - taskSendToSafe = NotificationTaskService.InsertUserNoticeTaskModel("监测结果统计与分析汇总", entity.ID, entity.ORG_ID, listUser[0].ID, listUser[0].NAME, DateTime.Now, DateTime.Now.AddDays(1), 0, "OH028"); - } - } - - this.UnifiedCommit(() => - { - if (entity != null) - UpdateEntityNoCommit(entity); - if (ListMonitorResult != null && ListMonitorResult.Any()) - BantchSaveEntityNoCommit(ListMonitorResult); - if (taskEnd != null) - UpdateEntityNoCommit(taskEnd); - if (taskSendToSafe != null) - UpdateEntityNoCommit(taskSendToSafe); - }); - return true; - }); - } - } -} \ No newline at end of file diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/OHController/OHHazardMonitorRuleController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/OHController/OHHazardMonitorRuleController.cs deleted file mode 100644 index fdf9866..0000000 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/OHController/OHHazardMonitorRuleController.cs +++ /dev/null @@ -1,134 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.BaseData.Domain.IServices; -using APT.BaseData.Domain.IServices.AE; -using APT.BaseData.Domain.IServices.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.OH; -using APT.MS.Domain.Entities.TI; -using APT.MS.Domain.Enums; -using APT.Utility; -using Microsoft.AspNetCore.Mvc; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Linq.Expressions; - -namespace APT.SC.WebApi.Controllers.Api.OH -{ - [Route("api/OH/OHHazardMonitorRule")] - public class OHHazardMonitorRuleController : AuthorizeApiController - { - IFMFlowPermitService MFlowPermitService { get; set; } - IPFApproveCallBackService ApproveCallBackService { get; set; } - IAEAccidentEventReportService AccidentEventReportService { get; set; } - public OHHazardMonitorRuleController(IFMFlowPermitService mFlowPermitService, IPFApproveCallBackService approveCallBackService, IAEAccidentEventReportService accidentEventReportService) - { - MFlowPermitService = mFlowPermitService; - ApproveCallBackService = approveCallBackService; - AccidentEventReportService = accidentEventReportService; - } - - /// - /// 体检周期表 修改 - /// - /// - /// - [HttpPost, Route("FullUpdate")] - public JsonActionResult FullUpdate([FromBody] T_OH_HAZARD_MONITOR_RULE entity) - { - return SafeExecute(() => - { - #region 值判断 - - if (entity.TYPE_ID == null) - { - throw new Exception("请选择监测类型"); - } - if (entity.DEPARTMENT_ID_WORKSHOP == null) - { - throw new Exception("请选择监测车间"); - } - string Msg = string.Empty; - T_OH_HAZARD_MONITOR_TYPE modelType = GetEntity(entity.TYPE_ID.Value); - switch (modelType.MONITOR_TYPE) - { - case OHHazardMonitorFormTypeEnum.DustMonitoring: - if (entity.THRESHOLD_DUST == 0) - { - Msg = "请输入粉尘浓度阈值"; - } - break; - case OHHazardMonitorFormTypeEnum.WorkPlaceMonitoring: - if (entity.THRESHOLD_NOISE == 0) - { - Msg = "请输入噪声阈值"; - } - break; - case OHHazardMonitorFormTypeEnum.RadiationMonitoring: - if (entity.THRESHOLD_RADIATION_05 == 0) - { - Msg = "请输入放射性0.5m处监测阈值"; - } - if (entity.THRESHOLD_RADIATION_10 == 0) - { - Msg += (Msg.Length > 0 ? "、" : "请输入") + "放射性1m处监测阈值"; - } - if (entity.THRESHOLD_RADIATION_AROUND == 0) - { - Msg += (Msg.Length > 0 ? "、" : "请输入") + "放射性周围环境监测阈值"; - } - break; - case OHHazardMonitorFormTypeEnum.WaterMonitoring: - if (entity.THRESHOLD_WARTER_LOW == 0) - { - Msg = "请输入水质阈值下限"; - } - if (entity.THRESHOLD_WARTER_HIGH == 0) - { - Msg += (Msg.Length > 0 ? "、" : "请输入") + "水质阈值上限"; - } - if (entity.THRESHOLD_WARTER_LOW != 0 && entity.THRESHOLD_WARTER_HIGH != 0 && entity.THRESHOLD_WARTER_LOW > entity.THRESHOLD_WARTER_HIGH) - { - Msg += "水质阈值下限不能大于上限"; - } - break; - default: - break; - } - - if (!string.IsNullOrEmpty(Msg)) - { - throw new Exception(Msg); - } - - if (!entity.DEPARTMENT_ID.HasValue) - { - throw new Exception("请选择责任部门!"); - } - if (!entity.RECORD_POST_ID.HasValue) - { - throw new Exception("请选择记录人岗位!"); - } - if (!entity.WARN_POST_ID.HasValue) - { - throw new Exception("请选择警示推送岗位!"); - } - if (entity.TIME == DateTime.MinValue) - { - throw new Exception("请选择触发时间!"); - } - - #endregion - - this.UnifiedCommit(() => - { - if (entity != null) - UpdateEntityNoCommit(entity); //事故事件上报 - }); - - return true; - }); - } - } -} \ No newline at end of file diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/OHController/OHHealthExamBatchController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/OHController/OHHealthExamBatchController.cs deleted file mode 100644 index 1a241e4..0000000 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/OHController/OHHealthExamBatchController.cs +++ /dev/null @@ -1,101 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.BaseData.Domain.IServices; -using APT.BaseData.Domain.IServices.AE; -using APT.BaseData.Domain.IServices.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.OH; -using APT.MS.Domain.Entities.TI; -using APT.MS.Domain.Enums; -using APT.Utility; -using Microsoft.AspNetCore.Mvc; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Linq.Expressions; - -namespace APT.SC.WebApi.Controllers.Api.OH -{ - [Route("api/OH/OHHealthExamBatch")] - public class OHHealthExamBatchController : AuthorizeApiController - { - IFMFlowPermitService MFlowPermitService { get; set; } - IPFApproveCallBackService ApproveCallBackService { get; set; } - IAEAccidentEventReportService AccidentEventReportService { get; set; } - public OHHealthExamBatchController(IFMFlowPermitService mFlowPermitService, IPFApproveCallBackService approveCallBackService, IAEAccidentEventReportService accidentEventReportService) - { - MFlowPermitService = mFlowPermitService; - ApproveCallBackService = approveCallBackService; - AccidentEventReportService = accidentEventReportService; - } - - /// - /// 体检周期表 修改 - /// - /// - /// - [HttpPost, Route("FullUpdate")] - public JsonActionResult FullUpdate([FromBody] T_OH_HEALTH_EXAM_BATCH entity) - { - return SafeExecute(() => - { - var ListDepartment = entity.Nav_ListDepartment; - entity.Nav_ListDepartment = null; - - #region 值判断 - - if (string.IsNullOrEmpty(entity.BATCH)) - { - throw new Exception("请填写体检批次"); - } - if (entity.START_TIME == DateTime.MinValue) - { - throw new Exception("请选择体检开始时间"); - } - if (entity.END_TIME == DateTime.MinValue) - { - throw new Exception("请选择体检截止时间"); - } - if (entity.START_TIME > entity.END_TIME) - { - throw new Exception("体检开始时间不能大于截止时间"); - } - if (string.IsNullOrEmpty(entity.LOCATION)) - { - throw new Exception("请填写体检地点"); - } - if (!entity.USER_ID.HasValue) - { - throw new Exception("请填写带队人员"); - } - - if (ListDepartment == null || !ListDepartment.Any()) - { - throw new Exception("请选择体检人所在部门!"); - } - else - { - foreach (var item in ListDepartment) - { - item.Nav_Department = null; - } - } - - #endregion - - //entity.START_TIME = entity.START_TIME.Date; - //entity.END_TIME = entity.END_TIME.Date.AddDays(1).AddSeconds(-1); - - this.UnifiedCommit(() => - { - if (entity != null) - UpdateEntityNoCommit(entity); //事故事件上报 - if (ListDepartment != null && ListDepartment.Any()) - BantchSaveEntityNoCommit(ListDepartment); - }); - - return true; - }); - } - } -} \ No newline at end of file diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/OHController/OHHealthExamCycleController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/OHController/OHHealthExamCycleController.cs deleted file mode 100644 index b423ef9..0000000 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/OHController/OHHealthExamCycleController.cs +++ /dev/null @@ -1,335 +0,0 @@ -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.BaseData.Domain.IServices; -using APT.BaseData.Domain.IServices.AE; -using APT.BaseData.Domain.IServices.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.OH; -using APT.MS.Domain.Entities.TI; -using APT.MS.Domain.Enums; -using APT.Utility; -using Microsoft.AspNetCore.Mvc; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Linq.Expressions; - -namespace APT.SC.WebApi.Controllers.Api.OH -{ - [Route("api/OH/OHHealthExamCycle")] - public class OHHealthExamCycleController : AuthorizeApiController - { - IFMFlowPermitService MFlowPermitService { get; set; } - IPFApproveCallBackService ApproveCallBackService { get; set; } - IAEAccidentEventReportService AccidentEventReportService { get; set; } - public OHHealthExamCycleController(IFMFlowPermitService mFlowPermitService, IPFApproveCallBackService approveCallBackService, IAEAccidentEventReportService accidentEventReportService) - { - MFlowPermitService = mFlowPermitService; - ApproveCallBackService = approveCallBackService; - AccidentEventReportService = accidentEventReportService; - } - - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPagedDepWorkshop")] - public PagedActionResult OrderPagedDepWorkshop([FromBody] KeywordPageFilter pageFilter) - { - return SafeGetPagedData(delegate (PagedActionResult result) - { - bool isSentDepID = false; - if (pageFilter.FilterGroup.Rules.Count == 2) - { - foreach (var item in pageFilter.FilterGroup.Rules) - { - if (item.Field == "PARENT_ID" && item.Value != null) - { - isSentDepID = true; - } - } - } - if (isSentDepID) - { - //如果没有部门 返回空 - PagedActionResult orderPageEntities = GetOrderPageEntities(null, pageFilter, null); - result.Data = orderPageEntities.Data; - result.TotalCount = orderPageEntities.TotalCount; - } - else - { - result.Data = new List(); - result.TotalCount = 0; - } - }); - } - - /// - /// 体检周期表 修改 - /// - /// - /// - [HttpPost, Route("FullUpdate")] - public JsonActionResult FullUpdate([FromBody] T_OH_HEALTH_EXAM_CYCLE entity) - { - #region 新版 - - return SafeExecute(() => - { - var listOcc = entity.Nav_ListOccHazard; - entity.Nav_ListOccHazard = null; - var listDepartmentInfo = entity.Nav_ListDepartmentInfo; - entity.Nav_ListDepartmentInfo = null; - - List listDepartmentInfoPost = new List(); - - //var listPost = entity.Nav_ListSCPost; - //entity.Nav_ListSCPost = null; - //if (listPost == null || !listPost.Any() || listPost.Where(e => e.IS_DELETED) == null) - //{ - // throw new Exception("请选择岗位"); - //} - if (listOcc == null || !listOcc.Any()) - { - throw new Exception("请选择职业危害类型"); - } - if (string.IsNullOrEmpty(entity.HEALTH_EXAM_CONTENT)) - { - throw new Exception("请填写体检项目"); - } - else if (entity.HEALTH_EXAM_CONTENT.Length > 200) - { - throw new Exception("体检项目不能超过200个字符"); - } - if (entity.HEALTH_EXAM_CYCLE < 1) - { - throw new Exception("体检周期不能小于1"); - } - else if (entity.HEALTH_EXAM_CYCLE > 12) - { - throw new Exception("体检周期不能大于12"); - } - - if (listDepartmentInfo == null || !listDepartmentInfo.Any()) - { - throw new Exception("请选择部门岗位信息!"); - } - var listDepartmentInfoS = listDepartmentInfo.ToList(); - for (int i = 0; i < listDepartmentInfoS.Count(); i++) - { - if (!listDepartmentInfoS[i].DEPARTMENT_ID.HasValue) - { - throw new Exception("请选择行【" + (i + 1) + "】的部门!"); - } - if (listDepartmentInfoS[i].Nav_ListDepartmentInfoPost == null || !listDepartmentInfoS[i].Nav_ListDepartmentInfoPost.Any()) - { - throw new Exception("请选择行【" + (i + 1) + "】的岗位!"); - } - else - { - foreach (var item in listDepartmentInfoS[i].Nav_ListDepartmentInfoPost) - { - listDepartmentInfoPost.Add(item); - item.Nav_Post = null; - } - listDepartmentInfoS[i].Nav_ListDepartmentInfoPost = null; - } - } - - if (listOcc != null && listOcc.Any()) - { - foreach (var item in listOcc) - { - item.Nav_Hazard = null; - } - } - if (listDepartmentInfoPost == null || !listDepartmentInfoPost.Any()) - { - throw new Exception("岗位"); - } - - this.UnifiedCommit(() => - { - if (entity != null) - UpdateEntityNoCommit(entity); //事故事件上报 - if (listOcc != null && listOcc.Any())//职业危害类型 - BantchSaveEntityNoCommit(listOcc); - if (listDepartmentInfo != null && listDepartmentInfo.Any())//职业危害类型 - BantchSaveEntityNoCommit(listDepartmentInfo); - if (listDepartmentInfoPost != null && listDepartmentInfoPost.Any())//职业危害类型 - BantchSaveEntityNoCommit(listDepartmentInfoPost); - //if (listPost != null && listPost.Any())//岗位 - // BantchSaveEntityNoCommit(listPost); - }); - - return true; - }); - - #endregion - - #region 旧版 - //return SafeExecute(() => - //{ - // if (entity.DEPARTMENT_ID == null) - // { - // throw new Exception("请选择部门"); - // } - - // var listOcc = entity.Nav_ListOccHazard; - // var listPost = entity.Nav_ListSCPost; - // entity.Nav_ListOccHazard = null; - // entity.Nav_ListSCPost = null; - // if (listPost == null || !listPost.Any() || listPost.Where(e => e.IS_DELETED) == null) - // { - // throw new Exception("请选择岗位"); - // } - // //if (listOcc == null || !listOcc.Any()) - // //{ - // // throw new Exception("请选择职业危害类型"); - // //} - // if (string.IsNullOrEmpty(entity.HEALTH_EXAM_CONTENT)) - // { - // throw new Exception("请填写体检项目"); - // } - // else if (entity.HEALTH_EXAM_CONTENT.Length > 200) - // { - // throw new Exception("体检项目不能超过200个字符"); - // } - // if (entity.HEALTH_EXAM_CYCLE < 1) - // { - // throw new Exception("体检周期不能小于1"); - // } - // var listPostID = listPost.Where(e => !e.IS_DELETED).Select(e => e.SC_POST_ID); - - - // //车间 岗位 职业危害类型 不能重复 - // Expression> expression = e => e.ID != entity.ID && e.DEPARTMENT_ID == entity.DEPARTMENT_ID; - // if (entity.DEPARTMENT_ID_WORKSHOP.HasValue) - // { - // expression.And(e => e.DEPARTMENT_ID_WORKSHOP == entity.DEPARTMENT_ID_WORKSHOP); - // } - - // var listCycle = GetEntities(expression, null, new string[] { "Nav_ListSCPost.Nav_SCPost", "Nav_ListOccHazard.Nav_Hazard" }); - // if (listCycle != null && listCycle.Any()) - // { - // //岗位 - // //职业危害 - // //不允许 同时 重复 - // foreach (var item in listCycle) - // { - // var checkPost = item.Nav_ListSCPost.Where(e => !e.IS_DELETED && listPostID.Contains(e.SC_POST_ID)); - // if (checkPost != null && checkPost.Any()) - // { - // //有重复的岗位 - // if (listOcc != null && listOcc.Any()) - // { - // //主表 判断查询的 都有职业危害类型 - // var listHAZARD_ID = item.Nav_ListOccHazard.Where(e => !e.IS_DELETED).Select(e => e.HAZARD_ID); - // var repHazard = listOcc.Where(e => !e.IS_DELETED && listHAZARD_ID.Contains(e.HAZARD_ID)); - // if (repHazard != null && repHazard.Any()) - // { - // var strRepHazard = string.Join(",", repHazard.ToList().Select(e => e.Nav_Hazard.NAME).ToList()); - // var strRepPost = string.Join(",", checkPost.ToList().Select(e => e.Nav_SCPost.NAME).ToList()); - // throw new Exception("此信息与系统中的【部门、车间、岗位(" + strRepPost + ")、职业危害类型(" + strRepHazard + ")】重复!"); - // } - // } - // else - // { - // var strRepPost = string.Join(",", checkPost.ToList().Select(e => e.Nav_SCPost.NAME).ToList()); - // //没有职业危害类型 - // if (item.Nav_ListOccHazard == null || !item.Nav_ListOccHazard.Any()) - // { - // //添加的 体检周期表 在这个岗位 没有 添加职业危害重复 - // throw new Exception("此信息与系统中的【部门、车间、岗位(" + strRepPost + ")】重复!"); - // } - // } - // } - // } - // } - - // if (listOcc != null && listOcc.Any()) - // { - // foreach (var item in listOcc) - // { - // item.Nav_Hazard = null; - // } - // } - // foreach (var item in listPost) - // { - // item.Nav_SCPost = null; - // } - // this.UnifiedCommit(() => - // { - // if (entity != null) - // UpdateEntityNoCommit(entity); //事故事件上报 - // if (listOcc != null && listOcc.Any())//职业危害类型 - // BantchSaveEntityNoCommit(listOcc); - // if (listPost != null && listPost.Any())//岗位 - // BantchSaveEntityNoCommit(listPost); - // }); - - // return true; - //}); - #endregion - - } - - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPagedSub")] - public PagedActionResult OrderPagedSub([FromBody] KeywordPageFilter pageFilter) - { - return SafeGetPagedData(delegate (PagedActionResult result) - { - //pageFilter.Include.Add("Nav_ListSCPost.Nav_SCPost"); - //pageFilter.Include.Add("Nav_ListOccHazard.Nav_Hazard"); - - PagedActionResult orderPageEntities = GetOrderPageEntities(null, pageFilter, null); - result.Data = orderPageEntities.Data; - if (orderPageEntities.TotalCount > 0) - { - var listID = result.Data.Select(e => e.ID); - var listPost = GetEntities(e => listID.Contains(e.RECORD_ID), null, new string[] { "Nav_SCPost" }); - var listOccHazard = GetEntities(e => listID.Contains(e.RECORD_ID), null, new string[] { "Nav_Hazard" }); - - int count = result.Data.Count(); - foreach (var item in result.Data) - { - var listTOccHazard = listOccHazard.Where(e => e.RECORD_ID == item.ID); - if (listTOccHazard != null && listTOccHazard.Any()) - { - if (item.OCCHAZARD == null) - { - item.OCCHAZARD = ""; - } - foreach (var itemOCC in listTOccHazard) - { - item.OCCHAZARD += (item.OCCHAZARD.Length > 0 ? "," : "") + itemOCC.Nav_Hazard.NAME; - } - } - - var listTPost = listPost.Where(e => e.RECORD_ID == item.ID); - if (listTPost != null && listTPost.Any()) - { - //TODO - //责任制岗位修改 0511 - //if (item.SCPost == null) - //{ - // item.SCPost = ""; - //} - //foreach (var itemPost in listTPost) - //{ - // item.SCPost += (item.SCPost.Length > 0 ? "," : "") + itemPost.Nav_SCPost.NAME; - //} - } - } - } - result.TotalCount = orderPageEntities.TotalCount; - }); - } - } -} \ No newline at end of file diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/OHController/OHHealthExamNoticeController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/OHController/OHHealthExamNoticeController.cs deleted file mode 100644 index f497db7..0000000 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/OHController/OHHealthExamNoticeController.cs +++ /dev/null @@ -1,869 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.BaseData.Domain.IServices; -using APT.BaseData.Domain.IServices.AE; -using APT.BaseData.Domain.IServices.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.HM; -using APT.MS.Domain.Entities.OH; -using APT.MS.Domain.Entities.PF; -using APT.MS.Domain.Entities.SC; -using APT.MS.Domain.Entities.TI; -using APT.MS.Domain.Enums; -using APT.Utility; -using Microsoft.AspNetCore.Mvc; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Linq.Expressions; - -namespace APT.SC.WebApi.Controllers.Api.OH -{ - [Route("api/OH/OHHealthExamNotice")] - public class OHHealthExamNoticeController : AuthorizeApiController - { - IFMFlowPermitService MFlowPermitService { get; set; } - IPFApproveCallBackService ApproveCallBackService { get; set; } - IAEAccidentEventReportService AccidentEventReportService { get; set; } - IFMNotificationTaskService NotificationTaskService { get; set; } - IFMUserService UserService { get; set; } - IFMDepartmentService DepartmentService { get; set; } - public OHHealthExamNoticeController(IFMFlowPermitService mFlowPermitService, IPFApproveCallBackService approveCallBackService, IAEAccidentEventReportService accidentEventReportService, IFMNotificationTaskService notificationTaskService, IFMUserService userService, IFMDepartmentService departmentService) - { - MFlowPermitService = mFlowPermitService; - ApproveCallBackService = approveCallBackService; - AccidentEventReportService = accidentEventReportService; - NotificationTaskService = notificationTaskService; - UserService = userService; - DepartmentService = departmentService; - } - - - /// - /// 排序分页查询数据 体检批次(Time) - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPagedBanch")] - public PagedActionResult OrderPagedBanch([FromBody] KeywordPageFilter pageFilter) - { - return SafeGetPagedData(delegate (PagedActionResult result) - { - DateTime dtNow = DateTime.Now.Date; - pageFilter.Sort = "BATCH"; - //Guid? PLAN_ID_DEP = null; - if (pageFilter.FilterGroup.Rules.Count > 0) - { - foreach (var item in pageFilter.FilterGroup.Rules) - { - //体检通知表 选择 体检批次 - if (item.Field == "DateAdd") - { - dtNow = dtNow.AddDays(int.Parse(item.Value.ToString())); - } - } - pageFilter.FilterGroup.Rules.Clear(); - } - - //不做组织筛选 - PagedActionResult orderPageEntities = GetOrderPageEntities(e => e.END_TIME > dtNow, pageFilter, null);//e.START_TIME >= dtNow - //var dateDep = orderPageEntities.Data.Where(e=>e.DEPARTMENT_ID); - result.Data = orderPageEntities.Data; - foreach (var item in result.Data) - { - if (item.START_TIME != DateTime.MinValue && item.END_TIME != DateTime.MinValue) - { - //item.TIME = item.START_TIME.ToString("yyyy-MM-dd") + " ~ " + item.END_TIME.ToString("MM-dd"); //HH: mm - item.TIME = GetTimeShow(item.START_TIME, item.END_TIME); - } - } - result.TotalCount = orderPageEntities.TotalCount; - }); - } - - /// - /// 显示时间 - /// - /// - /// - /// - private string GetTimeShow(DateTime? START_TIME, DateTime? END_TIME) - { - if (!START_TIME.HasValue || !END_TIME.HasValue || START_TIME == DateTime.MinValue) - { - return ""; - } - else if (START_TIME.Value.Date == END_TIME.Value.Date) - { - return START_TIME.Value.ToString("MM-dd HH:mm") + " ~ " + END_TIME.Value.ToString("HH:mm"); - } - else - { - return START_TIME.Value.ToString("MM-dd") + " ~ " + END_TIME.Value.ToString("MM-dd"); - } - } - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("GetNotice")] - public JsonActionResult GetNotice([FromBody] KeywordFilter filter) - { - //return WitEntity(null, filter); - return SafeExecute(() => - { - T_OH_HEALTH_EXAM_NOTICE Notice = null; - Guid NoticeID = Guid.Empty; - if (filter.FilterGroup.Rules.Count > 0) - { - foreach (var item in filter.FilterGroup.Rules) - { - if (item.Field == "ID") - { - NoticeID = new Guid(item.Value.ToString()); - } - } - filter.FilterGroup.Rules.Clear(); - } - if (NoticeID != Guid.Empty) - { - Notice = GetEntity(e => e.ID == NoticeID, filter, new string[] { "Nav_Files.Nav_ImgFile.Nav_File" }); - Notice.Nav_ListNoticeRegister = GetEntities(e => e.NOTICE_ID == NoticeID && !e.IS_DELETED, null, new string[] { "Nav_Department", "Nav_User.Nav_Person.Nav_Post", "Nav_ExamBatch", "Nav_ListOccHazard.Nav_Hazard" }).ToList(); - - //if (Notice.Nav_ListNoticeRegister != null && Notice.Nav_ListNoticeRegister.Any()) - //{ - // foreach (var item in Notice.Nav_ListNoticeRegister) - // { - // if (item.EXAM_BATCH_ID.HasValue) - // { - // //体检时间 - // item.Nav_ExamBatch.TIME = item.Nav_ExamBatch.START_TIME.ToString("yyyy-MM-dd") + " ~ " + item.Nav_ExamBatch.END_TIME.ToString("MM-dd"); - // } - // } - //} - - var batch = Notice.Nav_ListNoticeRegister.Where(e => e.EXAM_BATCH_ID.HasValue && e.Nav_ExamBatch.USER_ID.HasValue).Select(e => e.Nav_ExamBatch.USER_ID); - if (batch != null && batch.Any()) - { - var listUser = GetEntities(e => batch.Contains(e.ID), null, null); - foreach (var item in Notice.Nav_ListNoticeRegister) - { - if (item.EXAM_BATCH_ID.HasValue) - { - item.Nav_ExamBatch.Nav_User = listUser.FirstOrDefault(e => e.ID == item.Nav_ExamBatch.USER_ID); - } - } - } - else - { - //根据部门 自动匹配 - List listBatchSuit = GetEntities(e => e.START_TIME >= DateTime.Now.Date && e.Nav_ListDepartment != null, null, new string[] { "Nav_User", "Nav_ListDepartment" }).OrderBy(e => e.START_TIME).ToList(); - List listBatchDep = new List(); - for (int i = listBatchSuit.Count - 1; i > -1; i--) - { - if (listBatchSuit[i].Nav_ListDepartment == null || !listBatchSuit[i].Nav_ListDepartment.Any()) - { - listBatchSuit.RemoveAt(i); - continue; - } - listBatchDep.AddRange(listBatchSuit[i].Nav_ListDepartment.ToList()); - } - T_OH_HEALTH_EXAM_BATCH batchCheck = null; - foreach (var item in Notice.Nav_ListNoticeRegister) - { - //TODO 体检人所在部门 0512 修改一对多 - //if (item.DEPARTMENT_ID_WORKSHOP.HasValue) - //{ - // batchCheck = listBatchSuit.FirstOrDefault(e => e.DEPARTMENT_ID == item.DEPARTMENT_ID_WORKSHOP); - //} - //else if (item.DEPARTMENT_ID.HasValue) - //{ - // batchCheck = listBatchSuit.FirstOrDefault(e => e.DEPARTMENT_ID == item.DEPARTMENT_ID); - //} - batchCheck = listBatchDep.FirstOrDefault(e => e.DEPARTMENT_ID == item.DEPARTMENT_ID)?.Nav_Batch; - if (batchCheck != null) - { - item.EXAM_BATCH_ID = batchCheck.ID; - item.Nav_ExamBatch = batchCheck; - //item.THISDATE = batchCheck.START_TIME; - } - } - } - if (Notice.Nav_ListNoticeRegister != null && Notice.Nav_ListNoticeRegister.Any()) - { - foreach (var item in Notice.Nav_ListNoticeRegister) - { - if (item.EXAM_BATCH_ID.HasValue) - { - //体检时间 - //if (item.Nav_ExamBatch.START_TIME.Date == item.Nav_ExamBatch.END_TIME.Date) - //{ - // item.Nav_ExamBatch.TIME = item.Nav_ExamBatch.START_TIME.ToString("MM-dd HH:mm") + " ~ " + item.Nav_ExamBatch.END_TIME.ToString("HH:mm"); - //} - //else - //{ - // item.Nav_ExamBatch.TIME = item.Nav_ExamBatch.START_TIME.ToString("MM-dd") + " ~ " + item.Nav_ExamBatch.END_TIME.ToString("MM-dd"); - //} - item.Nav_ExamBatch.TIME = GetTimeShow(item.Nav_ExamBatch.START_TIME, item.Nav_ExamBatch.END_TIME); - } - item.Nav_ListOccHazard = item.Nav_ListOccHazard.OrderBy(e => e.HAZARD_ID).ToList(); - } - } - //Notice.Nav_ListNoticeRegister = Notice.Nav_ListNoticeRegister.OrderBy(e => e.DEPARTMENT_ID_WORKSHOP).ThenByDescending(e => e.Nav_User.APPROVE_ROLE_ID).ThenBy(e => e.Nav_User.NAME).ToList(); - Notice.Nav_ListNoticeRegister = Notice.Nav_ListNoticeRegister.OrderBy(e => e.DEPARTMENT_ID).ThenBy(e => e.Nav_User.NAME).ToList(); - } - return Notice; - }); - } - - /// - /// 体检通知 修改 - /// - /// - /// - [HttpPost, Route("FullUpdate")] - public JsonActionResult FullUpdate([FromBody] T_OH_HEALTH_EXAM_NOTICE entity) - { - return SafeExecute(() => - { - //保存并发送的时候 给各个带队人 发送 带队通知 - if (string.IsNullOrEmpty(entity.NAME)) - { - throw new Exception("请填写体检计划名称"); - } - - var listNoticeRegister = entity.Nav_ListNoticeRegister; - entity.Nav_ListNoticeRegister = null; - var Files = entity.Nav_Files; - entity.Nav_Files = null; - - if (listNoticeRegister == null || !listNoticeRegister.Any()) - { - throw new Exception("未获取到体检人员!"); - } - List listHaz = new List(); - foreach (var item in listNoticeRegister) - { - if (item.Nav_ListOccHazard != null && item.Nav_ListOccHazard.Any()) - { - listHaz.AddRange(item.Nav_ListOccHazard); - item.Nav_ListOccHazard = null; - } - } - //if (entity.STATUS == PFStandardStatus.Sign) - //{ - // var listNotMatchBatch = listNoticeRegister.Where(e => !e.EXAM_BATCH_ID.HasValue); - // if (listNotMatchBatch != null && listNotMatchBatch.Any()) - // { - // List listUserID = listNotMatchBatch.Where(e => !e.EXAM_BATCH_ID.HasValue).Select(e => e.USER_ID.Value).ToList(); - // List listName = GetEntities(e => listUserID.Contains(e.ID), null, null).Select(e => e.NAME).ToList(); - // throw new Exception("请完善体检批次:" + string.Join(",", listName) + "!"); - // } - //} - - if (entity.STATUS == PFStandardStatus.Draft) - { - //草稿 - this.UnifiedCommit(() => - { - if (entity != null) - UpdateEntityNoCommit(entity); //事故事件上报 - if (Files != null && Files.Any())//附件 - BantchSaveEntityNoCommit(Files); - if (listNoticeRegister != null && listNoticeRegister.Any())//体检人 - BantchSaveEntityNoCommit(listNoticeRegister); - if (listHaz != null && listHaz.Any()) - BantchSaveEntityNoCommit(listHaz); - }); - } - else - { - List listIndex = new List(); - int rowIndex = 1; - foreach (var item in listNoticeRegister) - { - if (!item.EXAM_BATCH_ID.HasValue) - { - listIndex.Add(rowIndex); - } - rowIndex++; - } - if (listIndex.Count > 0) - { - throw new Exception("体检批次不能为空:行" + String.Join(",", listIndex) + "!"); - } - - //原来 的一个 通知 变成 按体检批次变成多个通知 - List listNotice = new List();//通知 插入 更新 - List listNoticeFile = new List();//通知文件插入 更新 - - Dictionary dicBatchIDModelNotice = new Dictionary();//体检批次 - 体检通知 - //T_OH_HEALTH_EXAM_BATCH - - List listBatchID = listNoticeRegister.Select(e => e.EXAM_BATCH_ID.Value).Distinct().ToList(); - List listBatch = GetEntities(e => listBatchID.Contains(e.ID), null, new string[] { "Nav_User" }).ToList(); - DateTime dtEnd = DateTime.Now;//本次体检 最迟结束时间 (用于发送通知给人事专员录入体检结果) - foreach (var item in listBatch) - { - if (item.END_TIME > dtEnd) - { - dtEnd = item.END_TIME; - } - } - - entity.EXAM_BATCH_ID = listBatchID[0]; - entity.NOTICEIMPORTSTATE = NoticeImportState.Draft; - entity.END_TIME = dtEnd; - dicBatchIDModelNotice.Add(listBatchID[0], entity); - - DateTime dtNow = DateTime.Now; - entity.PARENTID = entity.ID; - for (int i = 1; i < listBatchID.Count; i++) - { - T_OH_HEALTH_EXAM_NOTICE notice = new T_OH_HEALTH_EXAM_NOTICE(); - notice.PARENTID = entity.ID; - notice.ID = Guid.NewGuid(); - notice.CODE = entity.CODE + i; - notice.NAME = entity.NAME; - notice.OTHER_STUFF = entity.OTHER_STUFF; - notice.STATUS = entity.STATUS; - //notice.APPROVE_ID =; - notice.IS_DELETED = false; - notice.ORG_ID = entity.ORG_ID; - //notice.ENTITY_ORG_TPYE =; - //notice.FORM_ID =; - //notice.FLOW_STATUS =; - //notice.FLOW_SEND_STATUS =; - //notice.FLOW_ID =; - //notice.CREATE_TIME =; - //notice.MODIFY_TIME =; - //notice.CREATER_ID =; - //notice.MODIFIER_ID =; - - if (Files != null && Files.Any()) - { - foreach (var item in Files) - { - T_OH_HEALTH_EXAM_NOTICE_FILE noticeFile = new T_OH_HEALTH_EXAM_NOTICE_FILE(); - noticeFile.ID = Guid.NewGuid(); - noticeFile.NOTICE_ID = notice.ID; - noticeFile.IMG_FILE_ID = item.IMG_FILE_ID; - noticeFile.ORG_ID = item.ORG_ID; - noticeFile.IS_DELETED = item.IS_DELETED; - listNoticeFile.Add(noticeFile);//通知文件 - } - } - - listNotice.Add(notice);//通知 - - notice.EXAM_BATCH_ID = listBatchID[i]; - notice.NOTICEIMPORTSTATE = NoticeImportState.Draft; - notice.END_TIME = dtEnd; - dicBatchIDModelNotice.Add(listBatchID[i], notice); - } - - //带队人(每个批次一个通知) - List listTitle = new List(); - List listUserID = new List(); - List listUserName = new List(); - List DataId = new List(); - foreach (var item in dicBatchIDModelNotice) - { - listTitle.Add("体检通知-带队");//通知标题 - listUserID.Add(listBatch.Find(e => e.ID == item.Key).USER_ID.Value); - listUserName.Add(listBatch.Find(e => e.ID == item.Key).Nav_User.NAME);//带队人 - DataId.Add(item.Value.ID);//体检通知ID - } - - //通知人 - List listRegTitle = new List(); - List listRegUserID = new List(); - List listRegUserName = new List(); - - List listTask = new List(); - T_OH_HEALTH_EXAM_BATCH examBatch = null; - T_FM_USER userNotice = null; - var listUserNoticeID = listNoticeRegister.Select(e => e.USER_ID); - var listUserNotice = GetEntities(e => listUserNoticeID.Contains(e.ID), null, null); - - - //体检周期 //体检批次 - DateTime dtNextTime = DateTime.Now; - - - List listCycle = null; - T_OH_HEALTH_EXAM_CYCLE cycleTemp = null; - var listCYCLEID = listNoticeRegister.Where(e => e.CYCLE_ID.HasValue).Select(e => e.CYCLE_ID);//体检周期 - if (listCYCLEID != null && listCYCLEID.Any()) - { - listCycle = GetEntities(e => listCYCLEID.Contains(e.ID), null, null).ToList(); - } - - foreach (var item in listNoticeRegister) - { - userNotice = listUserNotice.First(e => e.ID == item.USER_ID); - examBatch = listBatch.Find(e => e.ID == item.EXAM_BATCH_ID); - - T_FM_NOTIFICATION_TASK PerTask = NotificationTaskService.InsertUserNoticeTaskModel("请于" + examBatch.START_TIME.ToString("yyyy-MM-dd") + " ~ " + examBatch.END_TIME.ToString("MM-dd") + "参加体检", item.ID, item.ORG_ID, item.USER_ID.Value, userNotice.NAME, dtNow, examBatch.END_TIME, 2, ""); //FMNoticeTypeEnum.今日提醒 2 - listTask.Add(PerTask); - //清除导航属性 - - //通知赋值 - if (dicBatchIDModelNotice.ContainsKey(item.EXAM_BATCH_ID.Value)) - { - item.NOTICE_ID = dicBatchIDModelNotice[item.EXAM_BATCH_ID.Value].ID; - - if (!item.NEXTDATE.HasValue && item.CYCLE_ID.HasValue) - { - //下次体检日期= 体检批次 开始时间或当前时间(取大值) + 体检周期的月 - cycleTemp = listCycle.Find(e => e.ID == item.CYCLE_ID.Value); - //item.NEXTDATE = (examBatch.START_TIME > dtNow ? examBatch.START_TIME : dtNow).AddMonths(cycleTemp.HEALTH_EXAM_CYCLE); - item.THISDATE = examBatch.START_TIME > dtNow ? examBatch.START_TIME : dtNow; - item.NEXTDATE = item.THISDATE.Value.AddMonths(cycleTemp.HEALTH_EXAM_CYCLE); - } - } - } - - NotificationTaskService.SendAndFinishNotificationTask(listTitle, DataId, entity.ORG_ID, listUserID, listUserName, DateTime.Now, DateTime.Now.AddDays(1), 0, "OH010_SHOWPRINT", entity.TaskID, () => - { - if (entity != null) - UpdateEntityNoCommit(entity); //事故事件上报 - if (Files != null && Files.Any())//附件 - BantchSaveEntityNoCommit(Files); - - if (listNotice != null && listNotice.Any())//通知 - BantchSaveEntityNoCommit(listNotice); - if (listNoticeFile != null && listNoticeFile.Any())//通知附件 - BantchSaveEntityNoCommit(listNoticeFile); - - if (listNoticeRegister != null && listNoticeRegister.Any())//体检人 - BantchSaveEntityNoCommit(listNoticeRegister); - if (listHaz != null && listHaz.Any())//职业危害 - BantchSaveEntityNoCommit(listHaz); - if (listTask != null && listTask.Any())//体检人 今日提醒 - BantchSaveEntityNoCommit(listTask); - - }, "OH010_SHOWPRINT"); - } - return true; - }); - } - - /// - /// 带队人 确认 - /// - /// - /// - [HttpPost, Route("NoticeSign")] - public JsonActionResult NoticeSign([FromBody] KeywordFilter filter) - { - return SafeExecute(() => - { - var TaskID = new Guid(filter.Parameter1); - if (TaskID == Guid.Empty) - { - throw new Exception("获取数据【待办ID】传参失败!"); - } - var task = NotificationTaskService.GetEntityTask(TaskID); - - if (task.SOURCE_DATA_ID != new Guid(filter.Keyword)) - { - throw new Exception("传参有误!"); - } - - var entity = GetEntity(task.SOURCE_DATA_ID.Value, null); - entity.STATUS = PFStandardStatus.Approving;//带队人确认 - this.UnifiedCommit(() => - { - if (task != null)//待办 - UpdateEntityNoCommit(task); - if (entity != null)//待办 - UpdateEntityNoCommit(entity); - }); - - return true; - }); - } - - - - - /// - /// 体检通知新增选择人(不定期体检) - /// - /// - /// - [HttpPost, Route("GetCombinNoticeRegister")] - public JsonActionResult GetCombinNoticeRegister([FromBody] KeywordFilter filter) - { - return SafeExecute(() => - { - if (string.IsNullOrEmpty(filter.Keyword)) - { - ThrowError("获取选择人员信息传参失败!"); - } - if (string.IsNullOrEmpty(filter.Parameter1)) - { - ThrowError("获取体检计划信息传参失败!"); - } - OHHealthExamType? examType = null; - Guid NOTICE_ID = new Guid(filter.Parameter1);//页面ID - Guid UserID = new Guid(filter.Keyword);//用户ID - Guid ID = new Guid(filter.Parameter2);//行ID - if (!string.IsNullOrEmpty(filter.Parameter3)) - { - examType = (OHHealthExamType)(int.Parse(filter.Parameter3)); - } - Guid? DEPARTMENT_ID = null; - //Guid? DEPARTMENT_ID_WORKSHOP = null; - T_FM_DEPARTMENT Department = null; - //T_FM_DEPARTMENT DepartmentWorkshop = null; - - var User = GetEntity(UserID, "Nav_Department", "Nav_Person");// - //部门=0, 车间=1, 班组=2, 公司=3 - #region 获取部门信息 - - DEPARTMENT_ID = User.DEPARTMENT_ID.Value; - Department = User.Nav_Department; - //if (User.Nav_Department.DEPARTMENT_TYPE == 3) - //{ - // DEPARTMENT_ID = User.DEPARTMENT_ID.Value; - // Department = User.Nav_Department; - //} - //else if (User.Nav_Department.DEPARTMENT_TYPE == 2) - //{ - // DEPARTMENT_ID_WORKSHOP = User.Nav_Department.PARENT_ID.Value; - // DepartmentWorkshop = GetEntity(DEPARTMENT_ID_WORKSHOP.Value, "Nav_Parent"); - - // DEPARTMENT_ID = DepartmentWorkshop.PARENT_ID.Value; - // Department = GetEntity(DEPARTMENT_ID.Value); - - //} - //else if (User.Nav_Department.DEPARTMENT_TYPE == 1) - //{ - // DEPARTMENT_ID_WORKSHOP = User.DEPARTMENT_ID.Value; - // DEPARTMENT_ID = User.Nav_Department.PARENT_ID.Value; - - // DepartmentWorkshop = User.Nav_Department; - // Department = GetEntity(DEPARTMENT_ID.Value); - //} - //else if (User.Nav_Department.DEPARTMENT_TYPE == 0) - //{ - // DEPARTMENT_ID = User.DEPARTMENT_ID.Value; - // Department = User.Nav_Department; - //} - - #endregion - - //根据 这个 责任制岗位 设置的体检周期表 查找 职业危害类型 - - //User.Nav_Person.POST_ID; - //List listPostCycle = null; - List listDepPost = null; - if (User.Nav_Person.POST_ID.HasValue) - { - listDepPost = GetEntities(e => e.POST_ID == User.Nav_Person.POST_ID.Value && e.Nav_DepartmentInfo.DEPARTMENT_ID == User.DEPARTMENT_ID.Value && !e.IS_DELETED && !e.Nav_DepartmentInfo.IS_DELETED, null, "Nav_DepartmentInfo").OrderByDescending(e => e.CREATE_TIME).ToList(); - - - //List listDpost = GetEntities(e => e.DEPOST_ID == User.Nav_Person.POST_ID.Value, null, "Nav_Post").ToList(); - //if (listDpost != null && listDpost.Any()) - //{ - // List listPostID = listDpost.Select(e => e.POST_ID).ToList(); - // //TODO - // //责任制岗位修改 0511 - // //listPostCycle = GetEntities(e => listPostID.Contains(e.SC_POST_ID) && e.Nav_Record.DEPARTMENT_ID.HasValue && e.Nav_Record.DEPARTMENT_ID.Value == DEPARTMENT_ID, null, new string[] { "Nav_Record.Nav_ListOccHazard.Nav_Hazard" }).ToList(); - //} - } - - T_OH_HEALTH_EXAM_NOTICE_REGISTER modelCombin = new T_OH_HEALTH_EXAM_NOTICE_REGISTER(); - modelCombin.ID = ID; - modelCombin.NOTICE_ID = NOTICE_ID; - modelCombin.USER_ID = UserID; - modelCombin.Nav_User = User; - - modelCombin.DEPARTMENT_ID = DEPARTMENT_ID; - modelCombin.Nav_Department = Department; - //modelCombin.Nav_DepartmentWorkshop = DepartmentWorkshop; - //modelCombin.DEPARTMENT_ID_WORKSHOP = DEPARTMENT_ID_WORKSHOP; - //modelCombin.CYCLE_ID - //modelCombin.EXAM_BATCH_ID - if (examType.HasValue) - { - modelCombin.TYPE = examType.Value; - } - modelCombin.STATUS = OHHealthExamNoticeRegisterStatus.WaitNotice; - modelCombin.IS_DELETED = false; - modelCombin.ORG_ID = filter.OrgId; - - //自动匹配 体检批次 - - var listBanchDep = GetEntities(e => e.DEPARTMENT_ID == DEPARTMENT_ID && !e.IS_DELETED && e.Nav_Batch != null && !e.Nav_Batch.IS_DELETED && e.Nav_Batch.START_TIME > DateTime.Now, null, "Nav_Batch.Nav_User"); - if (listBanchDep != null && listBanchDep.Any()) - { - //TODO 体检人所在部门 0512 修改一对多 - var banchTemp = listBanchDep.OrderBy(e => e.Nav_Batch.START_TIME).ToList()[0]; - modelCombin.EXAM_BATCH_ID = banchTemp.BATCH_ID; - modelCombin.Nav_ExamBatch = banchTemp.Nav_Batch; - modelCombin.Nav_ExamBatch.TIME = modelCombin.Nav_ExamBatch.START_TIME.ToString("yyyy-MM-dd") + "~" + modelCombin.Nav_ExamBatch.END_TIME.ToString("MM-dd"); - - modelCombin.THISDATE = modelCombin.Nav_ExamBatch.START_TIME;//本次体检时间 - - } - //modelCombin.ENTITY_ORG_TPYE - //modelCombin.FORM_ID - //modelCombin.FLOW_STATUS - //modelCombin.FLOW_SEND_STATUS - //modelCombin.FLOW_ID - //modelCombin.CREATE_TIME - //modelCombin.MODIFY_TIME - //modelCombin.CREATER_ID - //modelCombin.MODIFIER_ID - - //modelCombin.PLAN_ID_DEP - //modelCombin.PLAN_REGISTER_ID - //modelCombin.NEXTDATE - - #region 获取上次体检时间 - - BaseFilter basFiliter = new BaseFilter(); - basFiliter.Order = DbOrder.DESC; - basFiliter.Orders.Add(new DataOrder() { Field = "THISDATE", Order = DbOrder.DESC }); - var modelLast = GetEntity(e => !e.IS_DELETED && e.USER_ID == UserID && e.STATUS >= OHHealthExamNoticeRegisterStatus.NoticeResult, basFiliter, ""); - if (modelLast != null && modelLast.THISDATE.HasValue) - { - modelCombin.LASTDATE = modelLast.THISDATE;//上次体检时间 就是上次通知的本次时间 - } - - #endregion - - if (listDepPost != null && listDepPost.Any()) - { - modelCombin.CYCLE_ID = listDepPost[0].Nav_DepartmentInfo.EXAM_CYCLE_ID; - - //T_OH_HEALTH_EXAM_CYCLE_DEPARTMENTINFO_POST - List listHazard = new List(); - var examCycle = GetEntity(e => e.ID == modelCombin.CYCLE_ID, "Nav_ListOccHazard.Nav_Hazard"); - foreach (var item in examCycle.Nav_ListOccHazard) - { - listHazard.Add(new T_OH_EXAM_NOTICE_OCC_HAZARD() - { - ID = Guid.NewGuid(), - REGISTER_ID = modelCombin.ID, - HAZARD_ID = item.HAZARD_ID, - Nav_Hazard = item.Nav_Hazard, - IS_DELETED = false, - ORG_ID = item.ORG_ID, - //ENTITY_ORG_TPYE - //FORM_ID - //FLOW_STATUS - //FLOW_SEND_STATUS - //FLOW_ID - //CREATE_TIME - //MODIFY_TIME - //CREATER_ID - //MODIFIER_ID - }); - } - modelCombin.Nav_ListOccHazard = listHazard; - } - - //if (listPostCycle != null && listPostCycle.Count > 0) - //{ - // if (listPostCycle.Count == 1) - // { - // modelCombin.CYCLE_ID = listPostCycle[0].RECORD_ID; - // } - // List listHazard = new List(); - // foreach (var item in listPostCycle) - // { - // foreach (var itemOcc in item.Nav_Record.Nav_ListOccHazard) - // { - // if (itemOcc?.Nav_Hazard?.RISK_TYPE == HMRiskTypeEnmu.职业危害辨识) - // { - // //职业危害辨识 - // listHazard.Add(new T_OH_EXAM_NOTICE_OCC_HAZARD() - // { - // ID = Guid.NewGuid(), - // REGISTER_ID = modelCombin.ID, - // HAZARD_ID = itemOcc.HAZARD_ID, - // Nav_Hazard = itemOcc.Nav_Hazard, - // IS_DELETED = false, - // ORG_ID = item.ORG_ID, - // //ENTITY_ORG_TPYE - // //FORM_ID - // //FLOW_STATUS - // //FLOW_SEND_STATUS - // //FLOW_ID - // //CREATE_TIME - // //MODIFY_TIME - // //CREATER_ID - // //MODIFIER_ID - // }); - // } - // } - // } - // modelCombin.Nav_ListOccHazard = listHazard; - //} - - return modelCombin; - }); - } - - - /// - /// 自动推送 体检通知 - /// 加载体检人员 - /// - /// - /// - [HttpPost, Route("GetNoticeCycle")] - public JsonActionResult GetNoticeCycle([FromBody] KeywordFilter filter) - { - return SafeExecute(() => - { - T_OH_HEALTH_EXAM_NOTICE NoticeCycle = GetEntity(null, filter, new string[] { "Nav_ListNoticeRegister.Nav_User", "Nav_ListNoticeRegister.Nav_Department", "Nav_ListNoticeRegister.Nav_DepartmentWorkshop", "Nav_ListNoticeRegister.Nav_Cycle", "Nav_ListNoticeRegister.Nav_ExamBatch", "Nav_ListNoticeRegister.Nav_ListOccHazard.Nav_Hazard", "Nav_Files" }); - if (NoticeCycle == null) - { - throw new Exception("获取体检通知信息失败!"); - } - if (NoticeCycle.ISSYSTEM) - { - var ListNoticeRegister = NoticeCycle.Nav_ListNoticeRegister; - - //下次体检时间 - DateTime dtNoticeEnd = DateTime.Now.Date.AddDays(16).AddSeconds(-1); - - //半个月以内要体检的人 - var listNoticeReg = GetEntities(e => e.NEXTDATE.HasValue && e.NEXTDATE <= dtNoticeEnd && !e.IS_DELETED, null, new string[] { "Nav_User", "Nav_Department", "Nav_DepartmentWorkshop", "Nav_Cycle", "Nav_ListOccHazard.Nav_Hazard" }).OrderBy(e => e.DEPARTMENT_ID); - if (listNoticeReg != null && listNoticeReg.Any()) - { - //根据部门 自动匹配 - //体检批次 开始时间 半个月以内的 - List listBatchSuit = GetEntities(e => e.START_TIME > DateTime.Now && e.START_TIME < dtNoticeEnd && e.Nav_ListDepartment != null && !e.IS_DELETED, null, new string[] { "Nav_User", "Nav_ListDepartment" }).OrderBy(e => e.START_TIME).ToList(); - //Nav_Department - List listBatchDep = new List(); - for (int i = listBatchSuit.Count - 1; i > -1; i--) - { - if (listBatchSuit[i].Nav_ListDepartment == null || !listBatchSuit[i].Nav_ListDepartment.Any()) - { - listBatchSuit.RemoveAt(i); - } - listBatchDep.AddRange(listBatchSuit[i].Nav_ListDepartment.ToList()); - } - - List listBatchCheck = null; - T_OH_HEALTH_EXAM_NOTICE_REGISTER modelCheck = null; - List ListOccHazard = null; - foreach (var item in listNoticeReg) - { - modelCheck = ListNoticeRegister.FirstOrDefault(e => e.USER_ID == item.USER_ID); - if (modelCheck == null) - { - modelCheck = new T_OH_HEALTH_EXAM_NOTICE_REGISTER(); - modelCheck.ID = Guid.NewGuid(); - modelCheck.NOTICE_ID = NoticeCycle.ID; - modelCheck.USER_ID = item.USER_ID; - modelCheck.Nav_User = item.Nav_User; - modelCheck.Nav_Department = item.Nav_Department; - modelCheck.Nav_DepartmentWorkshop = item.Nav_DepartmentWorkshop; - modelCheck.Nav_Cycle = item.Nav_Cycle; - if (item.Nav_ListOccHazard != null && item.Nav_ListOccHazard.Any()) - { - ListOccHazard = new List(); - foreach (var itemHaz in item.Nav_ListOccHazard) - { - ListOccHazard.Add(new T_OH_EXAM_NOTICE_OCC_HAZARD() - { - ID = Guid.NewGuid(), - REGISTER_ID = modelCheck.ID, - HAZARD_ID = itemHaz.HAZARD_ID, - Nav_Hazard = itemHaz.Nav_Hazard, - IS_DELETED = false, - ORG_ID = itemHaz.ORG_ID, - //ENTITY_ORG_TPYE =, - //FORM_ID =, - //FLOW_STATUS =, - //FLOW_SEND_STATUS =, - //FLOW_ID =, - //CREATE_TIME =, - //MODIFY_TIME =, - //CREATER_ID =, - //MODIFIER_ID =, - }); - } - - modelCheck.Nav_ListOccHazard = ListOccHazard; - } - modelCheck.DEPARTMENT_ID = item.DEPARTMENT_ID; - modelCheck.DEPARTMENT_ID_WORKSHOP = item.DEPARTMENT_ID_WORKSHOP; - modelCheck.CYCLE_ID = item.CYCLE_ID; - //modelCheck.EXAM_BATCH_ID = item.EXAM_BATCH_ID; - - - //TODO 体检人所在部门 0512 修改一对多 - ////根据实际 重新匹配 体检批次 - //listBatchCheck = listBatchSuit.FindAll(e => e.DEPARTMENT_ID == modelCheck.Nav_User.DEPARTMENT_ID).OrderBy(e => e.START_TIME).ToList(); - //if ((listBatchCheck == null || !listBatchCheck.Any()) && modelCheck.DEPARTMENT_ID_WORKSHOP.HasValue) - //{ - // listBatchCheck = listBatchSuit.FindAll(e => e.DEPARTMENT_ID == modelCheck.DEPARTMENT_ID_WORKSHOP).OrderBy(e => e.START_TIME).ToList(); - //} - //if ((listBatchCheck == null || !listBatchCheck.Any()) && modelCheck.DEPARTMENT_ID.HasValue) - //{ - // listBatchCheck = listBatchSuit.FindAll(e => e.DEPARTMENT_ID == modelCheck.DEPARTMENT_ID).OrderBy(e => e.START_TIME).ToList(); - //} - - listBatchCheck = listBatchSuit.FindAll(e => e.Nav_ListDepartment.FirstOrDefault(e => e.DEPARTMENT_ID == modelCheck.Nav_User.DEPARTMENT_ID) != null).OrderBy(e => e.START_TIME).ToList(); - - if (listBatchCheck != null && listBatchCheck.Any()) - { - modelCheck.EXAM_BATCH_ID = listBatchCheck[0].ID; - modelCheck.Nav_ExamBatch = listBatchCheck[0]; - modelCheck.Nav_ExamBatch.TIME = listBatchCheck[0].START_TIME.ToString("yyyy-MM-dd") + " ~ " + listBatchCheck[0].END_TIME.ToString("MM-dd"); - } ////根据实际 重新匹配 体检批次 - //listBatchCheck = listBatchSuit.FindAll(e => e.DEPARTMENT_ID == modelCheck.Nav_User.DEPARTMENT_ID).OrderBy(e => e.START_TIME).ToList(); - - //if ((listBatchCheck == null || !listBatchCheck.Any()) && modelCheck.DEPARTMENT_ID_WORKSHOP.HasValue) - //{ - // listBatchCheck = listBatchSuit.FindAll(e => e.DEPARTMENT_ID == modelCheck.DEPARTMENT_ID_WORKSHOP).OrderBy(e => e.START_TIME).ToList(); - //} - //if ((listBatchCheck == null || !listBatchCheck.Any()) && modelCheck.DEPARTMENT_ID.HasValue) - //{ - // listBatchCheck = listBatchSuit.FindAll(e => e.DEPARTMENT_ID == modelCheck.DEPARTMENT_ID).OrderBy(e => e.START_TIME).ToList(); - //} - - //if (listBatchCheck != null && listBatchCheck.Any()) - //{ - // modelCheck.EXAM_BATCH_ID = listBatchCheck[0].ID; - // modelCheck.Nav_ExamBatch = listBatchCheck[0]; - // modelCheck.Nav_ExamBatch.TIME = listBatchCheck[0].START_TIME.ToString("yyyy-MM-dd") + " ~ " + listBatchCheck[0].END_TIME.ToString("MM-dd"); - //} - - modelCheck.TYPE = item.TYPE; - modelCheck.STATUS = OHHealthExamNoticeRegisterStatus.WaitNotice; - modelCheck.IS_DELETED = item.IS_DELETED; - modelCheck.ORG_ID = item.ORG_ID; - //modelCheck.ENTITY_ORG_TPYE =item. ; - //modelCheck.FORM_ID =item.; - //modelCheck.FLOW_STATUS=item.; - //modelCheck.FLOW_SEND_STATUS=item. ; - //modelCheck.FLOW_ID =item.; - //modelCheck.CREATE_TIME =item.; - //modelCheck.MODIFY_TIME =item.; - //modelCheck.CREATER_ID =item.; - //modelCheck.MODIFIER_ID =item.; - modelCheck.PLAN_ID_DEP = item.PLAN_ID_DEP; - modelCheck.PLAN_REGISTER_ID = item.PLAN_REGISTER_ID; - //modelCheck.NEXTDATE = item. ; - } - ListNoticeRegister.Add(modelCheck); - } - } - NoticeCycle.Nav_ListNoticeRegister = ListNoticeRegister; - } - return NoticeCycle; - }); - } - } -} \ No newline at end of file diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/OHController/OHHealthExamPlanController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/OHController/OHHealthExamPlanController.cs deleted file mode 100644 index d337505..0000000 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/OHController/OHHealthExamPlanController.cs +++ /dev/null @@ -1,1205 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.BaseData.Domain.IServices; -using APT.BaseData.Domain.IServices.AE; -using APT.BaseData.Domain.IServices.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.HM; -using APT.MS.Domain.Entities.OH; -using APT.MS.Domain.Entities.PF; -using APT.MS.Domain.Entities.SC; -using APT.MS.Domain.Entities.TI; -using APT.MS.Domain.Enums; -using APT.Utility; -using Microsoft.AspNetCore.Mvc; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Linq.Expressions; - -namespace APT.SC.WebApi.Controllers.Api.OH -{ - [Route("api/OH/OHHealthExamPlan")] - public class OHHealthExamPlanController : AuthorizeApiController - { - IFMFlowPermitService MFlowPermitService { get; set; } - IPFApproveCallBackService ApproveCallBackService { get; set; } - IAEAccidentEventReportService AccidentEventReportService { get; set; } - IFMNotificationTaskService NotificationTaskService { get; set; } - IFMUserService UserService { get; set; } - IFMDepartmentService DepartmentService { get; set; } - public OHHealthExamPlanController(IFMFlowPermitService mFlowPermitService, IPFApproveCallBackService approveCallBackService, IAEAccidentEventReportService accidentEventReportService, IFMNotificationTaskService notificationTaskService, IFMUserService userService, IFMDepartmentService departmentService) - { - MFlowPermitService = mFlowPermitService; - ApproveCallBackService = approveCallBackService; - AccidentEventReportService = accidentEventReportService; - NotificationTaskService = notificationTaskService; - UserService = userService; - DepartmentService = departmentService; - } - - /// - /// 体检周期表 修改 - /// - /// - /// - [HttpPost, Route("FullUpdate")] - public JsonActionResult FullUpdate([FromBody] T_OH_HEALTH_EXAM_PLAN entity) - { - return SafeExecute(() => - { - //保存并发送的时候 发送给各个部门(负责人 或者安全员) - //如果有待办 去除待办 - - if (string.IsNullOrEmpty(entity.NAME)) - { - throw new Exception("请填写体检计划名称"); - } - if (entity.YEAR == 0) - { - throw new Exception("请填写年度"); - } - if (entity.STATUS == PFStandardStatus.Sign) - { - if (!entity.DUE_TIME.HasValue) - { - throw new Exception("请选择上报截止时间"); - } - else - { - //entity.DUE_TIME = entity.DUE_TIME.Value.Date.AddDays(1).AddSeconds(-1); - if (entity.DUE_TIME.Value < DateTime.Now) - { - throw new Exception("上报截止时间不能小于当前时间"); - } - } - //设置结束日期 - //entity.DUE_TIME = entity.DUE_TIME.Value.Date.AddDays(1).AddSeconds(-1); - if (entity.Nav_ListDepartment == null || !entity.Nav_ListDepartment.Any()) - { - throw new Exception("请选择上报部门"); - } - - if (entity.CONTENT.Length > 500) - { - throw new Exception("计划内容不能超过500字"); - } - } - var ListDepartment = entity.Nav_ListDepartment; - entity.Nav_ListDepartment = null; - - if (entity.STATUS == PFStandardStatus.Draft) - { - foreach (var item in ListDepartment) - { - item.Nav_Department = null; - } - //草稿 - this.UnifiedCommit(() => - { - if (entity != null) - UpdateEntityNoCommit(entity); //事故事件上报 - if (ListDepartment != null && ListDepartment.Any())//职业危害类型 - BantchSaveEntityNoCommit(ListDepartment); - }); - } - else - { - //给人员发送待办 - //提交后发送上报部门安全员填写体检员工登记表,职能部门发送给部门负责人,综合部人员中包含公司领导 - //[ "部门类型")] DEPARTMENT_STATUS { get; set; } 职能部门 = 0, 生产部门 = 1, 安全部门 = 2, - var listDepIDNotice = ListDepartment.Select(e => e.DEPARTMENT_ID); - var listDep = GetEntities(e => listDepIDNotice.Contains(e.ID) && e.DEPARTMENT_TYPE == 0 && !e.IS_DELETED && e.ENABLE_STATUS == 0, null, new string[] { "Nav_User" });//部门级别 - if (listDep == null || !listDep.Any()) - { - throw new Exception("获取部门信息失败!"); - } - - List listNoticeUser = new List();//通知人 - List listDepNoMaster = new List(); - List listDepID = new List();//生产部门ID - foreach (var item in listDep) - { - if (!item.USER_ID.HasValue && item.DEPARTMENT_STATUS != 1)//没有部门负责人 - { - listDepNoMaster.Add(item.NAME); - } - - if (item.DEPARTMENT_STATUS == 1) - { - listDepID.Add(item.ID); - } - else - { - //item.Nav_User.Nav_Department = item; - listNoticeUser.Add(item.Nav_User);//部门负责人 - } - } - if (listDepNoMaster.Count > 0) - { - throw new Exception(string.Join(",", listDepNoMaster) + "未找到部门负责人!"); - } - if (listDepID.Count < 1) - { - throw new Exception("请联系管理员配置生产部门!"); - } - var approvalSafe = GetEntity(e => e.NAME == "部门安全员"); - if (approvalSafe == null) - { - throw new Exception("请联系管理员配置审批角色【部门安全员】!"); - } - - var listSafeUser = GetEntities(e => e.DEPARTMENT_ID.HasValue && listDepID.Contains(e.DEPARTMENT_ID.Value) && e.APPROVE_ROLE_ID.HasValue && approvalSafe.ID == e.APPROVE_ROLE_ID.Value, null, null); - if (listSafeUser == null || !listSafeUser.Any()) - { - throw new Exception("请联系管理员配置部门安全员!"); - } - //查找 生产部门安全员 - List listNoSafe = null; - foreach (var item in listDepID) - { - var SafeEr = listSafeUser.FirstOrDefault(e => e.DEPARTMENT_ID.Value == item); - if (SafeEr != null) - { - //SafeEr.Nav_Department = listDep.FirstOrDefault(e => e.ID == SafeEr.DEPARTMENT_ID); - listNoticeUser.Add(SafeEr); - } - else - { - if (listNoSafe == null) - { - listNoSafe = new List(); - } - listNoSafe.Add(listDep.First(e => e.ID == item)); - } - } - if (listNoSafe != null && listNoSafe.Count > 0) - { - throw new Exception("请联系管理员给生产部门" + String.Join(",", listNoSafe.Select(e => e.NAME)) + "设置安全员!"); - } - - //bool SendNotificationTask(List names, List dataIds, Guid? orgId, List userIds, List userNames, DateTime startTime, DateTime endTime, int noticeType, string formCode, Action action); - //List ListName=new List(); - //List< Guid > ListDataId=new List(); - - //NotificationTaskService.SendAndFinishNotificationTask("部门体检计划表", entity.ID, entity.ORG_ID, listNoticeUser.Select(e => e.ID).ToList(), listNoticeUser.Select(e => e.NAME).ToList(), DateTime.Now, DateTime.Now.AddDays(1), 0, "OH005", entity.TaskID, () => - - List ListTitleName = new List(); - List ListDataId = new List(); - List ListUserId = new List(); - List ListUserName = new List(); - foreach (var modelDep in ListDepartment) - { - modelDep.ID = Guid.NewGuid(); - modelDep.PLAN_ID = entity.ID; - //modelDep.DEPARTMENT_ID = item.Nav_Department != null ? item.Nav_Department.ID : item.DEPARTMENT_ID.Value;//上报部门 - modelDep.ISCONTENTMASTER = false;//上报部门 - if (modelDep.Nav_Department != null && modelDep.Nav_Department.NAME.Contains("企业管理")) - { - //包含公司领导 - modelDep.ISCONTENTMASTER = true; - } - - modelDep.STATUS = PFStandardStatus.Draft; - modelDep.ORG_ID = entity.ORG_ID; - - var user = listNoticeUser.Find(e => e.DEPARTMENT_ID.HasValue && e.DEPARTMENT_ID == modelDep.DEPARTMENT_ID); - ListDataId.Add(modelDep.ID); - ListUserId.Add(user.ID); - modelDep.USER_ID = user.ID;//接收信息的人 - ListUserName.Add(user.NAME); - ListTitleName.Add(modelDep.Nav_Department.NAME + "体检计划表"); - } - - foreach (var item in ListDepartment) - { - item.Nav_Department = null; - } - - NotificationTaskService.SendAndFinishNotificationTask(ListTitleName, ListDataId, entity.ORG_ID, ListUserId, ListUserName, DateTime.Now, DateTime.Now.AddDays(1), 0, "OH005", entity.TaskID, () => - { - if (entity != null) - UpdateEntityNoCommit(entity); //体检计划 - if (ListDepartment != null && ListDepartment.Any())//上报部门 - BantchSaveEntityNoCommit(ListDepartment); - }, "OH004_SHOWPRINT"); - } - return true; - }); - - } - - //GetDep - //UpdateDep - #region 获取部门检查计划信息 - - - /// - /// 体检计划新增选择人 - /// - /// - /// - [HttpPost, Route("GetCombinPlanRegister")] - public JsonActionResult GetCombinPlanRegister([FromBody] KeywordFilter filter) - { - return SafeExecute(() => - { - if (string.IsNullOrEmpty(filter.Keyword)) - { - ThrowError("获取选择人员信息传参失败!"); - } - if (string.IsNullOrEmpty(filter.Parameter1)) - { - ThrowError("获取体检计划信息传参失败!"); - } - - Guid PLAN_ID = new Guid(filter.Parameter1); - Guid UserID = new Guid(filter.Keyword); - Guid ID = new Guid(filter.Parameter2); - Guid? DepartmentID = null; - if (!string.IsNullOrEmpty(filter.Parameter3)) - { - DepartmentID = new Guid(filter.Parameter3); - } - - T_OH_HEALTH_EXAM_PLAN_REGISTER checkReg = GetEntity(e => e.PLAN_ID.HasValue && e.PLAN_ID.Value == PLAN_ID && e.USER_ID.HasValue && e.USER_ID.Value == UserID); - - if (checkReg != null && checkReg.ID != Guid.Empty) - { - throw new Exception("该体检计划有此人,添加失败!"); - } - - Guid? DEPARTMENT_ID = null; - //Guid? DEPARTMENT_ID_WORKSHOP = null; - T_FM_DEPARTMENT Department = null; - //T_FM_DEPARTMENT DepartmentWorkshop = null; - - var User = GetEntity(UserID, "Nav_Department", "Nav_Person.Nav_Post"); - //部门=0, 车间=1, 班组=2, 公司=3 - #region 获取部门信息 - - //if (User.Nav_Department.DEPARTMENT_TYPE == 3) - //{ - // DEPARTMENT_ID = User.DEPARTMENT_ID.Value; - // Department = User.Nav_Department; - //} - //else if (User.Nav_Department.DEPARTMENT_TYPE == 2) - //{ - // DEPARTMENT_ID_WORKSHOP = User.Nav_Department.PARENT_ID.Value; - // DepartmentWorkshop = GetEntity(DEPARTMENT_ID_WORKSHOP.Value, "Nav_Parent"); - - // DEPARTMENT_ID = DepartmentWorkshop.PARENT_ID.Value; - // Department = GetEntity(DEPARTMENT_ID.Value); - - //} - //else if (User.Nav_Department.DEPARTMENT_TYPE == 1) - //{ - // DEPARTMENT_ID_WORKSHOP = User.DEPARTMENT_ID.Value; - // DEPARTMENT_ID = User.Nav_Department.PARENT_ID.Value; - - // DepartmentWorkshop = User.Nav_Department; - // Department = GetEntity(DEPARTMENT_ID.Value); - //} - //else if (User.Nav_Department.DEPARTMENT_TYPE == 0) - //{ - // DEPARTMENT_ID = User.DEPARTMENT_ID.Value; - // Department = User.Nav_Department; - //} - - DEPARTMENT_ID = User.DEPARTMENT_ID.Value; - Department = User.Nav_Department; - - #endregion - //User.Nav_Person.POST_ID; - - //Guid? SC_POST_ID = null; - //T_SC_POST_DEPOST modelDpost = null; - //if (User.Nav_Person.POST_ID.HasValue) - //{ - // modelDpost = GetEntity(e => e.DEPOST_ID == User.Nav_Person.POST_ID.Value, "Nav_Post"); - //} - - T_OH_HEALTH_EXAM_PLAN_REGISTER modelCombin = new T_OH_HEALTH_EXAM_PLAN_REGISTER(); - modelCombin.ID = ID; - modelCombin.PLAN_ID = PLAN_ID; - modelCombin.USER_ID = UserID; - modelCombin.Nav_User = User; - modelCombin.DEPARTMENT_ID = DEPARTMENT_ID; - modelCombin.Nav_Department = Department; - //modelCombin.Nav_DepartmentWorkshop = DepartmentWorkshop; - //modelCombin.DEPARTMENT_ID_WORKSHOP = DEPARTMENT_ID_WORKSHOP; - - //modelCombin.EXAM_CYCLE_ID =; - modelCombin.TYPE = OHHealthExamType.Post; - - //TODO - //责任制岗位修改 0511(2) - //modelCombin.SC_POST_ID = SC_POST_ID; - //modelCombin.Nav_SCPost = modelDpost?.Nav_Post; - modelCombin.POST_ID = User.Nav_Person?.POST_ID; - modelCombin.Nav_Post = User.Nav_Person?.Nav_Post; - - DateTime dt = User.DEPARTURETIME != null ? (DateTime)User.DEPARTURETIME : DateTime.Now; - modelCombin.WORKYEAR = GetWorkYear(User.ENTRYTIME, dt, DateTime.Now); - modelCombin.IS_DELETED = false; - modelCombin.ORG_ID = filter.OrgId; - //modelCombin.PLAN_ID_DEP = DepartmentID; - - - //modelCombin.HEALTH_EXAM_CONTENT =; - - - //modelCombin.ENTITY_ORG_TPYE =; - //modelCombin.FORM_ID =; - //modelCombin.FLOW_STATUS =; - //modelCombin.FLOW_SEND_STATUS =; - //modelCombin.FLOW_ID =; - //modelCombin.CREATE_TIME =; - //modelCombin.MODIFY_TIME =; - //modelCombin.CREATER_ID =; - //modelCombin.MODIFIER_ID =; - - //判断是否有 职业危害类型 体检项目 等 - ////modelCombin.Nav_ListHazard = null; - if (modelCombin.POST_ID.HasValue && User.DEPARTMENT_ID.HasValue) - { - var cycleDepPost = GetEntity(e => e.POST_ID == modelCombin.POST_ID.Value && !e.IS_DELETED && e.Nav_DepartmentInfo.DEPARTMENT_ID == User.DEPARTMENT_ID.Value && !e.Nav_DepartmentInfo.IS_DELETED && !e.Nav_DepartmentInfo.Nav_ExamCycle.IS_DELETED, "Nav_DepartmentInfo.Nav_ExamCycle"); - if (cycleDepPost != null && cycleDepPost.ID != Guid.Empty) - { - var listCycleHazard = GetEntities(e => e.RECORD_ID == cycleDepPost.Nav_DepartmentInfo.EXAM_CYCLE_ID, null, "Nav_Hazard"); - List ListHazard = new List(); - if (listCycleHazard != null && listCycleHazard.Any()) - { - foreach (var item in listCycleHazard) - { - ListHazard.Add(new T_OH_HEALTH_EXAM_PLAN_REGISTER_HAZARD() - { - ID = Guid.NewGuid(), - ORG_ID = modelCombin.ORG_ID, - REGISTER_ID = modelCombin.ID, - HAZARD_ID = item.HAZARD_ID, - Nav_Hazard = item.Nav_Hazard - }); ; - } - modelCombin.HEALTH_EXAM_CONTENT = cycleDepPost.Nav_DepartmentInfo.Nav_ExamCycle.HEALTH_EXAM_CONTENT; - modelCombin.Nav_ExamCycle = cycleDepPost.Nav_DepartmentInfo.Nav_ExamCycle; - modelCombin.EXAM_CYCLE_ID = cycleDepPost.Nav_DepartmentInfo.EXAM_CYCLE_ID; - } - modelCombin.Nav_ListHazard = ListHazard; - } - } - return modelCombin; - }); - } - - ///// - ///// 体检计划添加体检人员 - ///// - ///// - ///// - //[HttpPost, Route("OrderPagedUseful")] - //public PagedActionResult OrderPagedUseful([FromBody] KeywordPageFilter pageFilter) - //{ - // return SafeGetPagedData(delegate (PagedActionResult result) - // { - // Guid PLAN_ID = Guid.Empty; - // if (pageFilter.FilterGroup.Rules.Count > 0) - // { - // foreach (var item in pageFilter.FilterGroup.Rules) - // { - // if (item.Field == "PLAN_ID") - // { - // PLAN_ID = new Guid(item.Value.ToString()); - // } - // } - // pageFilter.FilterGroup.Rules.Clear(); - // } - // //非 此次体检人员 linq不好筛选 - // PagedActionResult pageEntities = GetPageEntities(null, pageFilter, null); - // result.Data = pageEntities.Data; - // result.TotalCount = pageEntities.TotalCount; - // }); - - - //} - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("GetDep")] - public JsonActionResult GetDep([FromBody] KeywordFilter filter) - { - return SafeExecute(() => - { - Guid PLAN_ID_DEP = Guid.Empty; - if (filter.FilterGroup.Rules.Count > 0) - { - foreach (var item in filter.FilterGroup.Rules) - { - if (item.Field == "ID") - { - PLAN_ID_DEP = new Guid(item.Value.ToString()); - } - } - } - var PlanDep = GetEntity(e => e.ID == PLAN_ID_DEP, new string[] { "Nav_Plan" }); - if (PlanDep == null) - { - throw new Exception("获取您所在部门体检计划上报信息失败!"); - } - PlanDep.Nav_Plan.Nav_ListPlanRegister = GetEntities(e => e.PLAN_ID_DEP == PLAN_ID_DEP && e.PLAN_ID == PlanDep.Nav_Plan.ID, null, null).ToList(); - - if (PlanDep.Nav_Plan.Nav_ListPlanRegister == null || !PlanDep.Nav_Plan.Nav_ListPlanRegister.Any()) - { - #region 这个部门 这次体检计划 所有的参加人员 - - //部门级 所有 有职业危害 的岗位 成员 - - var listDepPost = GetEntities(e => !e.IS_DELETED && !e.Nav_ExamCycle.IS_DELETED, null, "Nav_ExamCycle", "Nav_ListDepartmentInfoPost.Nav_Post"); - if (listDepPost == null || !listDepPost.Any()) - { - throw new Exception("请设置体检周期表!设置路径:系统管理 => 职业卫生设置 => 体检周期表"); - } - - var listCycle = GetEntities(e => !e.IS_DELETED, null, "Nav_ListOccHazard.Nav_Hazard"); - - foreach (var item in listDepPost) - { - item.Nav_ExamCycle = listCycle.FirstOrDefault(e => e.ID == item.EXAM_CYCLE_ID); - } - listDepPost = listDepPost.Where(e => e.Nav_ExamCycle != null && !e.Nav_ExamCycle.IS_DELETED); - - #endregion - - - #region 旧方式 - - ////责任制岗位 - ////var listPost = GetEntities(e => !e.IS_DELETED, null, new string[] { "Nav_Posts" }); - //var listPostT = GetEntities(e => !e.IS_DELETED, null, new string[] { "Nav_Post" }); - - //if (listPostT == null || !listPostT.Any()) - //{ - // throw new Exception("请联系管理员设置【责任制岗位】"); - //} - //List listPost = listPostT.ToList(); - //List listPostID = listPost.Select(e => e.DEPOST_ID).ToList(); - - ////TODO - ////责任制岗位修改 0511 - //List listSCPostCycleT = new List(); - ////var listSCPostCycleT = GetEntities(e => !e.IS_DELETED && e.Nav_Record.DEPARTMENT_ID.HasValue && e.Nav_Record.DEPARTMENT_ID.Value == PlanDep.DEPARTMENT_ID, null, new string[] { "Nav_Record.Nav_ListOccHazard.Nav_Hazard", "Nav_SCPost" }); - - - //if (listSCPostCycleT == null || !listSCPostCycleT.Any()) - //{ - // throw new Exception("请联系管理员设置您所在部门的【体检周期表】"); - //} - - //List listSCPostCycle = listSCPostCycleT.ToList(); - - ////var listExamT = GetEntities(e => e.DEPARTMENT_ID.HasValue && e.DEPARTMENT_ID == PlanDep.DEPARTMENT_ID, null, new string[] { "Nav_ListSCPost", "Nav_ListOccHazard.Nav_Hazard" }); - - ////if (listExamT == null || !listExamT.Any()) - ////{ - //// throw new Exception("请联系管理员设置您所在部门的【体检周期表】"); - ////} - ////List listExam = listExamT.ToList(); - #endregion - - //加载人员 - List listUser = new List(); - if (PlanDep.ISCONTENTMASTER) - { - var listrUserCom = GetEntities(e => e.ENABLE_STATUS == 0 && !e.IS_DELETED && e.CODE != "admin" && e.DEPARTMENT_ID.HasValue && e.Nav_Department.DEPARTMENT_TYPE == 3 && e.PERSON_ID.HasValue && e.Nav_Person.POST_ID.HasValue, null, new string[] { "Nav_Person.Nav_Post", "Nav_Department" }).OrderByDescending(e => e.APPROVE_ROLE_ID);//&& listPostID.Contains(e.Nav_Person.POST_ID.Value) - if (listrUserCom != null && listrUserCom.Any()) - { - listUser.AddRange(listrUserCom); - } - } - - //部门 - var listrUserDep = GetEntities(e => e.ENABLE_STATUS == 0 && !e.IS_DELETED && e.DEPARTMENT_ID.HasValue && e.DEPARTMENT_ID == PlanDep.DEPARTMENT_ID && e.PERSON_ID.HasValue && e.Nav_Person.POST_ID.HasValue, null, new string[] { "Nav_Person.Nav_Post", "Nav_Department" }).OrderByDescending(e => e.APPROVE_ROLE_ID); //&& listPostID.Contains(e.Nav_Person.POST_ID.Value) - - if (listrUserDep != null && listrUserDep.Any()) - { - listUser.AddRange(listrUserDep); - } - - //车间 - var listrUserWork = GetEntities(e => e.ENABLE_STATUS == 0 && !e.IS_DELETED && e.DEPARTMENT_ID.HasValue && e.Nav_Department.PARENT_ID.HasValue && e.Nav_Department.PARENT_ID == PlanDep.DEPARTMENT_ID && e.PERSON_ID.HasValue && e.Nav_Person.POST_ID.HasValue, null, new string[] { "Nav_Person.Nav_Post", "Nav_Department.Nav_Parent" }).OrderByDescending(e => e.APPROVE_ROLE_ID);//&& listPostID.Contains(e.Nav_Person.POST_ID.Value) - if (listrUserWork != null && listrUserWork.Any()) - { - listUser.AddRange(listrUserWork); - } - - //班组 - var listrUserClass = GetEntities(e => e.ENABLE_STATUS == 0 && !e.IS_DELETED && e.DEPARTMENT_ID.HasValue && e.Nav_Department.PARENT_ID.HasValue && e.Nav_Department.Nav_Parent.PARENT_ID == PlanDep.DEPARTMENT_ID && e.PERSON_ID.HasValue && e.Nav_Person.POST_ID.HasValue, null, new string[] { "Nav_Person.Nav_Post", "Nav_Department.Nav_Parent.Nav_Parent" }).OrderByDescending(e => e.APPROVE_ROLE_ID);//&& listPostID.Contains(e.Nav_Person.POST_ID.Value) - if (listrUserClass != null && listrUserClass.Any()) - { - listUser.AddRange(listrUserClass); - } - - DateTime dtNow = DateTime.Now; - Guid LoginID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value; - var ListPlanRegister = new List(); - T_SC_POST_DEPOST UserDePost = null; - List ListUserDePost = null; - List Nav_ListHazard = null; - List listSCPostCycleCheck = null; - List listDepInfoCheck = null; - foreach (var item in listUser) - { - listDepInfoCheck = listDepPost.Where(e => e.DEPARTMENT_ID.HasValue && e.DEPARTMENT_ID == item.DEPARTMENT_ID && e.Nav_ListDepartmentInfoPost != null && e.Nav_ListDepartmentInfoPost.FirstOrDefault(ec => ec.POST_ID == item.Nav_Person.POST_ID) != null).ToList(); - if (listDepInfoCheck == null || !listDepInfoCheck.Any()) - { - //没找到对应职位的职业危害设置 这个人不需要体检 - continue; - } - - T_OH_HEALTH_EXAM_PLAN_REGISTER model = new T_OH_HEALTH_EXAM_PLAN_REGISTER(); - model.ID = Guid.NewGuid(); - model.PLAN_ID = PlanDep.PLAN_ID; - model.Nav_Plan = PlanDep.Nav_Plan; - - model.USER_ID = item.ID; - model.Nav_User = item; - - //获取 部门 车间 - #region 获取部门人员信息 旧 - - //if (item.Nav_Department.DEPARTMENT_TYPE == 3 || item.Nav_Department.DEPARTMENT_TYPE == 0) - //{ - // // 公司 = 3 部门 = 0, - // model.DEPARTMENT_ID = item.DEPARTMENT_ID; - // model.DEPARTMENT_ID_WORKSHOP = null; - - // model.Nav_Department = item.Nav_Department; - //} - //else if (item.Nav_Department.DEPARTMENT_TYPE == 1) - //{ - // // 车间 = 1, - // model.DEPARTMENT_ID = item.Nav_Department.PARENT_ID; - // model.DEPARTMENT_ID_WORKSHOP = item.DEPARTMENT_ID; - - // model.Nav_Department = item.Nav_Department.Nav_Parent; - // model.Nav_DepartmentWorkshop = item.Nav_Department; - //} - //else - //{ - // // 班组 = 2, - // model.DEPARTMENT_ID = item.Nav_Department.Nav_Parent.PARENT_ID; - // model.DEPARTMENT_ID_WORKSHOP = item.Nav_Department.PARENT_ID; - - // model.Nav_Department = item.Nav_Department.Nav_Parent.Nav_Parent; - // model.Nav_DepartmentWorkshop = item.Nav_Department.Nav_Parent; - //} - #endregion - - #region 获取部门人员信息 - - model.DEPARTMENT_ID = item.DEPARTMENT_ID; - model.Nav_Department = item.Nav_Department; - - #endregion - - ////如果匹配到多个 责任制岗位 - //ListUserDePost = listPost.FindAll(e => e.DEPOST_ID == item.Nav_Person.POST_ID.Value); - //if (ListUserDePost == null || ListUserDePost.Count < 1) - //{ - // continue; - //} - - - //var listSCPostID = ListUserDePost.Select(e => e.POST_ID); - //listSCPostCycleCheck = listSCPostCycle.FindAll(e => listSCPostID.Contains(e.SC_POST_ID)); - //if (listSCPostCycleCheck == null) - //{ - // continue; - //} - - foreach (var itemCycle in listDepInfoCheck) - { - //TODO - //责任制岗位修改 0511 - - //model.SC_POST_ID = item.Nav_Person.POST_ID;// itemCycle.Nav_SCPost.ID; - //model.Nav_SCPost = item.Nav_Person.Nav_Post;// itemCycle.Nav_SCPost; - - model.EXAM_CYCLE_ID = itemCycle.Nav_ExamCycle.ID; - model.Nav_ExamCycle = itemCycle.Nav_ExamCycle; - break; - } - - //foreach (var itemCycle in listSCPostCycleCheck) - //{ - // //TODO - // //责任制岗位修改 0511 - // //如果 体检周期 和 - // if (itemCycle.Nav_Record.DEPARTMENT_ID == model.DEPARTMENT_ID) - // { - // if (itemCycle.Nav_Record.DEPARTMENT_ID_WORKSHOP == null || itemCycle.Nav_Record.DEPARTMENT_ID_WORKSHOP == model.DEPARTMENT_ID_WORKSHOP) - // { - // model.SC_POST_ID = itemCycle.Nav_SCPost.ID; - // model.Nav_SCPost = itemCycle.Nav_SCPost; - - // model.EXAM_CYCLE_ID = itemCycle.Nav_Record.ID; - // model.Nav_ExamCycle = itemCycle.Nav_Record; - - // break; - // } - // } - //} - - ////责任制岗位 - //UserDePost = listPost.FirstOrDefault(e => e.DEPOST_ID == item.Nav_Person.POST_ID.Value); - //if (UserDePost == null) - //{ - // continue; - //} - //model.SC_POST_ID = UserDePost.POST_ID; - //model.Nav_SCPost = UserDePost.Nav_Post; - - ////获取体检周期信息(根据 部门 车间 责任制岗位) - ////model.EXAM_CYCLE_ID = ""; - //foreach (var itemExam in listExam) - //{ - // foreach (var itemPost in itemExam.Nav_ListSCPost) - // { - // if (itemPost.SC_POST_ID == model.SC_POST_ID) - // { - // model.EXAM_CYCLE_ID = itemExam.ID; - // model.Nav_ExamCycle = itemExam; - // break; - // } - // } - // if (model.EXAM_CYCLE_ID != null && model.EXAM_CYCLE_ID != Guid.Empty) - // { - // break; - // } - //} - - if (model.EXAM_CYCLE_ID == null || model.EXAM_CYCLE_ID == Guid.Empty) - { - continue; - } - DateTime dt = item.DEPARTURETIME != null ? (DateTime)item.DEPARTURETIME : DateTime.Now; - model.WORKYEAR = GetWorkYear(item.ENTRYTIME, dt, dtNow); - model.TYPE = OHHealthExamType.Post; - model.IS_DELETED = false; - model.ORG_ID = PlanDep.ORG_ID; - //model.ENTITY_ORG_TPYE = ""; - //model.FORM_ID = ""; - //model.FLOW_STATUS = ""; - //model.FLOW_SEND_STATUS = ""; - //model.FLOW_ID = ""; - model.CREATE_TIME = dtNow; - model.MODIFY_TIME = dtNow; - model.CREATER_ID = LoginID; - model.MODIFIER_ID = LoginID; - model.PLAN_ID_DEP = PlanDep.ID; - model.Nav_PlanDEP = PlanDep; - //item.Nav_Person.POST_ID - - model.HEALTH_EXAM_CONTENT = model.Nav_ExamCycle.HEALTH_EXAM_CONTENT; - Nav_ListHazard = new List(); - foreach (var itemHaz in model.Nav_ExamCycle.Nav_ListOccHazard) - { - Nav_ListHazard.Add(new T_OH_HEALTH_EXAM_PLAN_REGISTER_HAZARD() - { - REGISTER_ID = model.ID, - HAZARD_ID = itemHaz.HAZARD_ID, - Nav_Hazard = itemHaz.Nav_Hazard, - ORG_ID = itemHaz.ORG_ID, - ID = Guid.NewGuid(), - IS_DELETED = false, - }); - } - model.Nav_ListHazard = Nav_ListHazard; - ListPlanRegister.Add(model); - } - - PlanDep.Nav_Plan.Nav_ListPlanRegister = ListPlanRegister; - PlanDep.Nav_Plan.Nav_ListDepartment = GetEntities(e => e.PLAN_ID == PlanDep.PLAN_ID, null, new string[] { "Nav_Department" }).ToList(); - - } - return PlanDep; - }); - } - - /// - /// 获取工龄(按365天 按小时算) - /// - /// - /// - /// - private int GetWorkYear(DateTime ENTRYTIME, DateTime DEPARTURETIME, DateTime dtNow) - { - int WorkYear = 0; - if (ENTRYTIME == DateTime.MinValue || (ENTRYTIME.Year == dtNow.Year)) - { - return 0; - } - else if (DEPARTURETIME == DateTime.MinValue) - { - WorkYear = (int)((dtNow - ENTRYTIME).TotalHours / 8760);// 365*24=8760.0 - //WorkYear = dtNow.Year - ENTRYTIME.Year + (dtNow.Month > ENTRYTIME.Month ? 1 : 0); - } - else - { - //WorkYear = DEPARTURETIME.Year - ENTRYTIME.Year + (DEPARTURETIME.Month > ENTRYTIME.Month ? 1 : 0); - WorkYear = (int)((DEPARTURETIME - ENTRYTIME).TotalHours / 8760);// 365*24=8760.0 - } - return WorkYear; - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("UpdateDep")] - public JsonActionResult UpdateDep([FromBody] T_OH_HEALTH_EAXM_PLAN_DEPARTMENT entity) - { - return SafeExecute(() => - { - //UpdateEntity(entity); - //如果是保存并发送 - //如果全部都 提交了 各部门填写完成后汇总到企管部人事专员,可增删人员,给企管部负责人审批 - //写一个 跑批 如果 报名截止(超过1天) 还有人没有提交 自动提交 到 人事专员 - - var ListPlanRegister = entity.Nav_Plan.Nav_ListPlanRegister; - entity.Nav_Plan.Nav_ListPlanRegister = null; - entity.Nav_Plan = null; - List ListRegHazard = new List(); - foreach (var item in ListPlanRegister) - { - if (item.Nav_ListHazard != null && item.Nav_ListHazard.Any()) - { - ListRegHazard.AddRange(item.Nav_ListHazard); - item.Nav_ListHazard = null; - } - } - - if (entity.STATUS == PFStandardStatus.Draft) - { - this.UnifiedCommit(() => - { - if (entity != null) - UpdateEntityNoCommit(entity); //部门体检计划 - if (ListPlanRegister != null && ListPlanRegister.Any())//体检人员 - BantchSaveEntityNoCommit(ListPlanRegister); - if (ListRegHazard != null && ListRegHazard.Any())//体检职业危害 - BantchSaveEntityNoCommit(ListRegHazard); - }); - } - else if (entity.STATUS == PFStandardStatus.Archived) - { - List listRowIndex = new List(); - int rowIndex = 1; - T_OH_HEALTH_EAXM_PLAN_DEPARTMENT PlanDep = null; - foreach (var item in ListPlanRegister) - { - if (string.IsNullOrEmpty(item.HEALTH_EXAM_CONTENT)) - { - listRowIndex.Add(rowIndex); - } - rowIndex++; - - if (!item.PLAN_ID_DEP.HasValue) - { - if (PlanDep == null) - { - PlanDep = GetEntity(e => e.PLAN_ID == item.PLAN_ID && e.DEPARTMENT_ID == APT.Infrastructure.Api.AppContext.CurrentSession.DepartmentID && !e.IS_DELETED); - } - if (PlanDep != null) - { - item.PLAN_ID_DEP = PlanDep.ID; - } - } - } - if (listRowIndex.Count > 0) - { - throw new Exception("体检项目不能为空:行:" + string.Join(",", listRowIndex) + "!"); - } - - bool isDepEnd = false; - #region 判断是否 转入 人事专员 - - //保存并发送 需要发送 - var plan = GetEntity(entity.PLAN_ID); - List listTaskEnd = null; - - if (plan.DUE_TIME.HasValue && DateTime.Now > plan.DUE_TIME.Value.AddDays(1))//人性化往后一天 - { - isDepEnd = true; - - #region - - var listNotArchived = GetEntities(e => !e.IS_DELETED && e.ID != entity.ID && e.PLAN_ID == entity.PLAN_ID && e.STATUS != PFStandardStatus.Archived, null, null); - if (listNotArchived != null && listNotArchived.Any()) - { - var listDataID = listNotArchived.Select(e => e.ID).ToList(); - listTaskEnd = GetEntities(e => e.SOURCE_FORMCODE == "OH005" && e.SOURCE_DATA_ID.HasValue && listDataID.Contains(e.SOURCE_DATA_ID.Value), null, null).ToList(); - if (listTaskEnd != null && listTaskEnd.Any()) - { - foreach (var item in listTaskEnd) - { - item.TASK_DT = DateTime.Now; - item.NOTICE_STATUS = 4;// FMNoticeStatusEnum.超时无需办理; - item.SOURCE_FORMCODE = "OH005_SHOWPRINT"; - } - } - } - - #endregion - - } - if (!isDepEnd) - { - var listNotArchived = GetEntities(e => !e.IS_DELETED && e.ID != entity.ID && e.PLAN_ID == entity.PLAN_ID && e.STATUS != PFStandardStatus.Archived, null, null); - if (listNotArchived == null || !listNotArchived.Any() || listNotArchived.Count() < 1) - { - isDepEnd = true; - } - } - - #endregion - - if (!isDepEnd) - { - var taskEnd = NotificationTaskService.GetEntityTask(entity.TaskID, "OH005_SHOWPRINT"); - this.UnifiedCommit(() => - { - if (entity != null) - UpdateEntityNoCommit(entity); //部门体检计划 - if (taskEnd != null) - UpdateEntityNoCommit(taskEnd); //结束待办 - //UpdateEntityNoCommit(plan);//体检计划状态修改 - if (ListPlanRegister != null && ListPlanRegister.Any())//体检人员 - BantchSaveEntityNoCommit(ListPlanRegister); - if (ListRegHazard != null && ListRegHazard.Any())//体检职业危害 - BantchSaveEntityNoCommit(ListRegHazard); - }); - } - else - { - //给人事专员 - #region 获取人事专员 - - string Msg = string.Empty; - var UserRS = UserService.GetPostUser(ref Msg, "人事专员"); - if (UserRS == null) - { - if (string.IsNullOrEmpty(Msg)) - { - throw new Exception("未获取到人事专员!"); - } - else - { - throw new Exception(Msg); - } - } - #endregion - - //plan.STATUS = PFStandardStatus.Sign; - - NotificationTaskService.SendAndFinishNotificationTask("部门体检计划汇总", entity.PLAN_ID, entity.ORG_ID, UserRS.ID, UserRS.NAME, DateTime.Now, DateTime.Now.AddDays(1), (int)FMNoticeTypeEnum.消息, "OH006", entity.TaskID, () => - { - if (entity != null) - UpdateEntityNoCommit(entity); //部门体检计划 - //UpdateEntityNoCommit(plan);//体检计划状态修改 - if (ListPlanRegister != null && ListPlanRegister.Any())//体检人员 - BantchSaveEntityNoCommit(ListPlanRegister); - if (ListRegHazard != null && ListRegHazard.Any())//体检职业危害 - BantchSaveEntityNoCommit(ListRegHazard); - - if (listTaskEnd != null && listTaskEnd.Any())//代办未处理的 超时不办理 - BantchSaveEntityNoCommit(listTaskEnd); - }, "OH005_SHOWPRINT"); - } - } - return true; - }); - } - - - /// - /// 部门负责人(安全员) 选择 职业危害 获取信息 - /// 暂时不用 - /// - /// - /// - [HttpPost, Route("GetExamCycleByIdentifying")] - public JsonActionResult GetExamCycleByIdentifying([FromBody] KeywordPageFilter pageFilter) - { - return SafeExecute(() => - { - //根据 职业危害类型 车间 部门 适配 体检周期 显示 体检项目 - - T_OH_HEALTH_EXAM_CYCLE result = new T_OH_HEALTH_EXAM_CYCLE(); - Guid HazardID = Guid.Empty; - - var listMin = GetEntities(e => e.HAZARD_ID == HazardID, null, null); - - var listcycle = GetEntities(e => e.Nav_ListOccHazard.FirstOrDefault(e => e.Nav_Hazard.ID == HazardID) != null, null, null); - - - return result; - }); - } - - #endregion - - - #region 人事专员编辑 - - - /// - /// 获得单条实体数据 OH006 - /// - /// 过滤实体 - /// - [HttpPost, Route("GetOH006")] - public JsonActionResult GetOH006([FromBody] KeywordFilter filter) - { - return SafeExecute(() => - { - Guid PlanID = Guid.Empty; - if (filter.FilterGroup.Rules.Count > 0) - { - foreach (var item in filter.FilterGroup.Rules) - { - if (item.Field == "ID") - { - PlanID = new Guid(item.Value.ToString()); - } - } - if (filter.FilterGroup.Rules.Count == 1) - { - filter.FilterGroup.Rules.Clear(); - } - } - - T_OH_HEALTH_EXAM_PLAN Plan = null; - if (PlanID != Guid.Empty) - { - Plan = GetEntity(e => e.ID == PlanID); - if (Plan != null) - { - //上报部门 - Plan.Nav_ListDepartment = GetEntities(e => e.PLAN_ID == PlanID, null, new string[] { "Nav_Department" }).ToList(); - //体检员工登记表 - //Plan.Nav_ListPlanRegister = GetEntities(e => e.PLAN_ID == PlanID, null, new string[] { "Nav_User", "Nav_Department", "Nav_DepartmentWorkshop", "Nav_ExamCycle", "Nav_SCPost", "Nav_ListHazard.Nav_Hazard" }).ToList(); - Plan.Nav_ListPlanRegister = GetEntities(e => e.PLAN_ID == PlanID, null, new string[] { "Nav_User.Nav_Person.Nav_Post", "Nav_Department", "Nav_DepartmentWorkshop", "Nav_ExamCycle", "Nav_ListHazard.Nav_Hazard" }).ToList(); - - if (Plan.Nav_ListPlanRegister != null && Plan.Nav_ListPlanRegister.Any()) - { - //体检周期(职业危害类型) - var listCycle = Plan.Nav_ListPlanRegister.Select(e => e.EXAM_CYCLE_ID); - if (listCycle != null && listCycle.Any()) - { - List listDisCycleID = listCycle.Distinct().ToList(); - var listModelCycle = GetEntities(e => listDisCycleID.Contains(e.ID), null, new string[] { "Nav_ListOccHazard.Nav_Hazard" }); - if (listModelCycle != null && listModelCycle.Any()) - { - foreach (var item in Plan.Nav_ListPlanRegister) - { - if (item.EXAM_CYCLE_ID.HasValue) - { - item.Nav_ExamCycle = listModelCycle.FirstOrDefault(e => e.ID == item.EXAM_CYCLE_ID); - } - item.Nav_ListHazard = item.Nav_ListHazard.OrderBy(e => e.HAZARD_ID).ToList();//职业危害排序 - } - } - } - //排序 - Plan.Nav_ListPlanRegister = Plan.Nav_ListPlanRegister.OrderBy(e => e.DEPARTMENT_ID).ThenBy(e => e.DEPARTMENT_ID_WORKSHOP).ToList(); - } - } - } - return Plan; - }); - } - - - /// - /// 人事专员汇总 - /// - /// 对象实体 - /// - [HttpPost, Route("UpdateSum")] - public JsonActionResult UpdateSum([FromBody] T_OH_HEALTH_EXAM_PLAN entity) - { - return SafeExecute(() => - { - //保存并发送 发送给 人事部负责人 - var ListPlanRegister = entity.Nav_ListPlanRegister; - entity.Nav_ListPlanRegister = null; - - List ListRegHazard = new List(); - foreach (var item in ListPlanRegister) - { - if (item.Nav_ListHazard != null && item.Nav_ListHazard.Any()) - { - ListRegHazard.AddRange(item.Nav_ListHazard); - item.Nav_ListHazard = null; - } - } - - if (entity.STATUS == PFStandardStatus.Sign) - { - //保存 - this.UnifiedCommit(() => - { - if (entity != null) - UpdateEntityNoCommit(entity); //部门体检计划 - if (ListPlanRegister != null && ListPlanRegister.Any())//体检人员 - BantchSaveEntityNoCommit(ListPlanRegister); - if (ListRegHazard != null && ListRegHazard.Any())//体检人员 - BantchSaveEntityNoCommit(ListRegHazard); - }); - } - else if (entity.STATUS == PFStandardStatus.Approving) - { - //保存并发送 - - List listRowIndex = new List(); - int rowIndex = 1; - T_OH_HEALTH_EAXM_PLAN_DEPARTMENT PlanDep = null; - List listDep = new List(); - - foreach (var item in ListPlanRegister) - { - if (string.IsNullOrEmpty(item.HEALTH_EXAM_CONTENT)) - { - listRowIndex.Add(rowIndex); - } - rowIndex++; - - if (!item.PLAN_ID_DEP.HasValue) - { - if (listDep.Count < 1) - { - listDep = GetEntities(e => e.PLAN_ID == item.PLAN_ID && !e.IS_DELETED, null, null).ToList(); - } - - PlanDep = listDep.FirstOrDefault(e => e.DEPARTMENT_ID == item.DEPARTMENT_ID); - - if (PlanDep == null) - { - PlanDep = listDep.FirstOrDefault(e => e.ISCONTENTMASTER); - } - if (PlanDep != null) - { - item.PLAN_ID_DEP = PlanDep.ID; - } - else if (listDep.Count > 0) - { - item.PLAN_ID_DEP = listDep[0].ID; - } - } - } - if (listRowIndex.Count > 0) - { - throw new Exception("体检项目不能为空:行:" + string.Join(",", listRowIndex) + "!"); - } - - - //给综合部负责人 - #region 获取综合部负责人 - T_FM_USER userMaster = null; - //人事专员 所在部门的负责人 - var Depart = GetEntity(e => e.ID == APT.Infrastructure.Api.AppContext.CurrentSession.DepartmentID, new string[] { "Nav_User" }); - if (Depart.Nav_User != null) - { - userMaster = Depart.Nav_User; - } - else if (userMaster == null) - { - //throw new Exception("未获取到" + RSDepName + "负责人!"); - string RSDepName = "企业管理部"; - var dep = DepartmentService.GetRSDep(RSDepName, new string[] { "Nav_User" }); - - if (dep == null || !dep.USER_ID.HasValue) - { - throw new Exception("未获取到" + RSDepName + "!"); - } - else// if (dep.USER_ID.HasValue) - { - userMaster = dep.Nav_User; - } - } - - - #endregion - - - ////人事部负责人审批待办 - //NotificationTaskService.SendAndFinishNotificationTask("部门体检计划汇总审批", entity.ID, entity.ORG_ID, userMaster.ID, userMaster.NAME, DateTime.Now, DateTime.Now.AddDays(1), (int)FMNoticeTypeEnum.消息, "OH006_SHOWPRINT", entity.TaskID, () => - //{ - // if (entity != null) - // UpdateEntityNoCommit(entity); //部门体检计划 - // if (ListPlanRegister != null && ListPlanRegister.Any())//体检人员 - // BantchSaveEntityNoCommit(ListPlanRegister); - //}, "OH006_SHOWPRINT"); - - Dictionary dicApproveUser = new Dictionary(); - dicApproveUser.Add(1, userMaster); - - //人事部负责人审批待办 - entity.APPROVE_ID = Guid.NewGuid(); - MFlowPermitService.InsertApprove("TJ" + DateTime.Now.ToString("yyyyMMddHHmmss"), "OH006", null, entity.ID, "OH006_SHOWPRINT", entity.TaskID, true, () => - { - if (entity != null) - UpdateEntityNoCommit(entity); //部门体检计划 - if (ListPlanRegister != null && ListPlanRegister.Any())//体检人员 - BantchSaveEntityNoCommit(ListPlanRegister); - if (ListRegHazard != null && ListRegHazard.Any())//体检人员 - BantchSaveEntityNoCommit(ListRegHazard); - }, entity.APPROVE_ID, userMaster.ID, dicApproveUser, null, null, "OH006_SHOWPRINT"); - } - return true; - }); - } - - - - /// - /// 职业危害类型(有设置体检周期 OH006) - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPagedIdentifying")] - public PagedActionResult OrderPagedIdentifying([FromBody] KeywordPageFilter pageFilter) - { - return SafeGetPagedData(delegate (PagedActionResult result) - { - PagedActionResult orderPageEntities = GetOrderPageEntities(null, pageFilter, null); - result.Data = orderPageEntities.Data; - result.TotalCount = orderPageEntities.TotalCount; - }); - } - - - /// - /// 人事部负责人审批回调 - /// - /// - /// - [HttpGet, Route("PlanMasterBack")] - public JsonActionResult PlanMasterBack(string id) - { - return SafeExecute(() => - { - return ApproveCallBackService.CallBack("OH/OHHealthExamPlan/PlanMasterBack", id); - }); - } - - - #endregion - } -} \ No newline at end of file diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/OHController/OHHealthExamPlanDepartmentController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/OHController/OHHealthExamPlanDepartmentController.cs deleted file mode 100644 index 6397d48..0000000 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/OHController/OHHealthExamPlanDepartmentController.cs +++ /dev/null @@ -1,61 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.BaseData.Domain.IServices; -using APT.BaseData.Domain.IServices.AE; -using APT.BaseData.Domain.IServices.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.HM; -using APT.MS.Domain.Entities.OH; -using APT.MS.Domain.Entities.PF; -using APT.MS.Domain.Entities.SC; -using APT.MS.Domain.Entities.TI; -using APT.MS.Domain.Enums; -using APT.Utility; -using Microsoft.AspNetCore.Mvc; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Linq.Expressions; - -namespace APT.SC.WebApi.Controllers.Api.OH -{ - [Route("api/OH/OHHealthEaxmPlanDepartment")] - public class OHHealthExamPlanDepartmentController : AuthorizeApiController - { - IFMFlowPermitService MFlowPermitService { get; set; } - IPFApproveCallBackService ApproveCallBackService { get; set; } - IAEAccidentEventReportService AccidentEventReportService { get; set; } - IFMNotificationTaskService NotificationTaskService { get; set; } - IFMUserService UserService { get; set; } - IFMDepartmentService DepartmentService { get; set; } - public OHHealthExamPlanDepartmentController(IFMFlowPermitService mFlowPermitService, IPFApproveCallBackService approveCallBackService, IAEAccidentEventReportService accidentEventReportService, IFMNotificationTaskService notificationTaskService, IFMUserService userService, IFMDepartmentService departmentService) - { - MFlowPermitService = mFlowPermitService; - ApproveCallBackService = approveCallBackService; - AccidentEventReportService = accidentEventReportService; - NotificationTaskService = notificationTaskService; - UserService = userService; - DepartmentService = departmentService; - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("GetDep")] - public JsonActionResult GetDep([FromBody] KeywordFilter filter) - { - return SafeExecute(() => - { - var result = GetEntity(null, filter, null); - if (result.Nav_Plan.Nav_ListPlanRegister != null && result.Nav_Plan.Nav_ListPlanRegister.Any()) - { - result.Nav_Plan.Nav_ListPlanRegister = result.Nav_Plan.Nav_ListPlanRegister.Where(e => e.PLAN_ID_DEP == result.ID).ToList(); - } - return result; - }); - } - } -} \ No newline at end of file diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/OHController/OHHealthExamResultController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/OHController/OHHealthExamResultController.cs deleted file mode 100644 index 1581064..0000000 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/OHController/OHHealthExamResultController.cs +++ /dev/null @@ -1,1433 +0,0 @@ -using APT.BaseData.Domain.ApiModel; -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.BaseData.Domain.IServices; -using APT.BaseData.Domain.IServices.AE; -using APT.BaseData.Domain.IServices.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.HM; -using APT.MS.Domain.Entities.OH; -using APT.MS.Domain.Entities.PF; -using APT.MS.Domain.Entities.SC; -using APT.MS.Domain.Entities.TI; -using APT.MS.Domain.Enums; -using APT.Utility; -using Microsoft.AspNetCore.Http; -using Microsoft.AspNetCore.Mvc; -using Microsoft.Extensions.Primitives; -using System; -using System.Collections.Generic; -using System.Data; -using System.IO; -using System.Linq; -using System.Linq.Expressions; - -namespace APT.SC.WebApi.Controllers.Api.OH -{ - [Route("api/OH/OHHealthExamResult")] - public class OHHealthExamResultController : AuthorizeApiController - { - IFMFlowPermitService MFlowPermitService { get; set; } - IPFApproveCallBackService ApproveCallBackService { get; set; } - IAEAccidentEventReportService AccidentEventReportService { get; set; } - IFMNotificationTaskService NotificationTaskService { get; set; } - IFMUserService UserService { get; set; } - IFMDepartmentService DepartmentService { get; set; } - public readonly int beforeMonth = -3;//提前月数 - public readonly int afterDays = 1;//推迟天数 - public OHHealthExamResultController(IFMFlowPermitService mFlowPermitService, IPFApproveCallBackService approveCallBackService, IAEAccidentEventReportService accidentEventReportService, IFMNotificationTaskService notificationTaskService, IFMUserService userService, IFMDepartmentService departmentService) - { - MFlowPermitService = mFlowPermitService; - ApproveCallBackService = approveCallBackService; - AccidentEventReportService = accidentEventReportService; - NotificationTaskService = notificationTaskService; - UserService = userService; - DepartmentService = departmentService; - } - - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPagedBatch")] - public PagedActionResult OrderPagedBatch([FromBody] KeywordPageFilter pageFilter) - { - return SafeGetPagedData(delegate (PagedActionResult result) - { - DateTime dtNow = DateTime.Now.Date.AddDays(afterDays); - DateTime dtMin = dtNow.AddMonths(beforeMonth); - PagedActionResult orderPageEntities = GetOrderPageEntities(e => dtMin < e.START_TIME && e.END_TIME <= dtNow, pageFilter, null); - result.Data = orderPageEntities.Data.OrderByDescending(e => e.END_TIME); - result.TotalCount = orderPageEntities.TotalCount; - }); - - } - - /// - /// 排序分页查询数据 体检批次的人员 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPagedBatchUser")] - public PagedActionResult OrderPagedBatchUser([FromBody] KeywordPageFilter pageFilter) - { - return SafeGetPagedData(delegate (PagedActionResult result) - { - Guid EXAM_BATCH_ID = Guid.Empty; - if (pageFilter.FilterGroup.Rules.Count > 0) - { - foreach (var item in pageFilter.FilterGroup.Rules) - { - if (item.Field == "EXAM_BATCH_ID") - { - EXAM_BATCH_ID = new Guid(item.Value.ToString()); - pageFilter.FilterGroup.Rules.Remove(item); - break; - } - } - } - - if (EXAM_BATCH_ID != Guid.Empty) - { - Expression> expression = e => e.USER_ID.HasValue && e.EXAM_BATCH_ID == EXAM_BATCH_ID; - pageFilter.Sort = null; - PagedActionResult orderPageEntities = GetOrderPageEntities(expression, pageFilter, null); - result.Data = orderPageEntities.Data; - result.TotalCount = orderPageEntities.TotalCount; - } - else - { - result.Data = new List(); - result.TotalCount = 0; - } - }); - } - - - ///// - ///// 排序分页查询数据 体检批次的人员 - ///// - ///// 分页过滤实体 - ///// - //[HttpPost, Route("OrderPagedBatchUser")] - //public PagedActionResult OrderPagedBatchUser([FromBody] KeywordPageFilter pageFilter) - //{ - // return SafeGetPagedData(delegate (PagedActionResult result) - // { - // Guid EXAM_BATCH_ID = Guid.Empty; - // if (pageFilter.FilterGroup.Rules.Count > 0) - // { - // foreach (var item in pageFilter.FilterGroup.Rules) - // { - // if (item.Field == "EXAM_BATCH_ID") - // { - // EXAM_BATCH_ID = new Guid(item.Value.ToString()); - // pageFilter.FilterGroup.Rules.Remove(item); - // break; - // } - // } - // } - // if (EXAM_BATCH_ID != Guid.Empty) - // { - // Expression> expression = e => e.USER_ID.HasValue && e.EXAM_BATCH_ID == EXAM_BATCH_ID; - // PagedActionResult orderPageEntities = GetOrderPageEntities(expression, pageFilter, null); - // result.Data = orderPageEntities.Data.Select(e => e.Nav_User).OrderBy(e => e.NAME).ToList(); - // result.TotalCount = orderPageEntities.TotalCount; - // } - // else - // { - // result.Data = new List(); - // result.TotalCount = 0; - // } - // }); - //} - - - - /// - /// 体检周期表 修改 - /// - /// - /// - [HttpPost, Route("FullUpdate")] - public JsonActionResult FullUpdate([FromBody] T_OH_HEALTH_EXAM_RESULT entity) - { - return SafeExecute(() => - { - //保存并发送的时候 发送给各个部门(负责人 或者安全员) - //如果有待办 去除待办 - if (!entity.NOTICE_REGISTER_ID.HasValue) - { - throw new Exception("请选择体检批次对应体检人员"); - } - - var check = GetEntity(e => e.ID != entity.ID && e.NOTICE_REGISTER_ID == entity.NOTICE_REGISTER_ID); - - if (check != null) - { - throw new Exception("该体检批次体检人意见录入体检结果!"); - } - - if (entity.STATUS == OHHealthExamResultStatus.Finish) - { - if (entity.RESULT_ENUM == OHHealthExamResult.NotSign) - { - throw new Exception("请选择体检结论!"); - } - if (string.IsNullOrEmpty(entity.DESCRIPTION)) - { - throw new Exception("请填写结果描述!"); - } - else if (entity.DESCRIPTION.Length > 500) - { - throw new Exception("结果描述不能超过500字!"); - } - } - - var listOccDisease = entity.Nav_OccDiseaseList; - entity.Nav_OccDiseaseList = null; - List listFiles = new List(); - - if (listOccDisease != null && listOccDisease.Any()) - { - foreach (var item in listOccDisease) - { - if (item.Nav_Files != null && item.Nav_Files.Any()) - { - listFiles.AddRange(item.Nav_Files); - item.Nav_Files = null; - } - } - } - - if (entity.RESULT_ENUM != OHHealthExamResult.Disease) - { - //非职业病 没有职业病信息 - //直接清理 - if (listOccDisease != null && listOccDisease.Any()) - { - listOccDisease.Clear(); - listFiles.Clear(); - } - } - - if (entity.STATUS == OHHealthExamResultStatus.WaitSign) - { - //草稿 - this.UnifiedCommit(() => - { - if (entity != null) - UpdateEntityNoCommit(entity); //体检结果 - if (listOccDisease != null && listOccDisease.Any()) - BantchSaveEntityNoCommit(listOccDisease);//职业病 - if (listFiles != null && listFiles.Any()) - BantchSaveEntityNoCommit(listFiles);//附件 - }); - } - else - { - //如果数据库中 已经是 待写入职业病信息 或者 已完成 状态 不需要发送 调岗 或者会议通知 - bool isNotice = true; - if (entity.RESULT_ENUM == OHHealthExamResult.Disease) - { - var resultCheck = GetEntity(entity.ID); - if (resultCheck != null && (resultCheck.STATUS == OHHealthExamResultStatus.WaitSignDisease || resultCheck.STATUS == OHHealthExamResultStatus.Finish)) - { - //如果是导入数据 保存、保存并发送 - //导入的时候已经发送了 调岗信息 不需要再次通知 - isNotice = false; - } - } - - if (entity.RESULT_ENUM == OHHealthExamResult.Disease && (listOccDisease == null || !listOccDisease.Any())) - { - throw new Exception("请填写职业病信息后再保存!"); - } - //OHHealthExamResultStatus.WaitSignDisease 也会进来 - if (entity.STATUS == OHHealthExamResultStatus.Finish) - { - int rowIndex = 1; - foreach (var item in listOccDisease) - { - if (!item.OCC_DISEASE_ID.HasValue) - { - throw new Exception("请选择行:" + rowIndex + "的职业病"); - } - if (!item.OCC_DISEASE_SEVERITY_ID.HasValue) - { - throw new Exception("请选择行:" + rowIndex + "的职业病严重程度"); - } - if (string.IsNullOrEmpty(item.DESCRIPTION)) - { - throw new Exception("请选择行:" + rowIndex + "的病状描述"); - } - rowIndex++; - } - } - - //5、体检结论结果为职业病触发今日提醒给安环部负责人;消息类型为:召开会议;消息内容为:请召开职业危害防治措施的有效性评估会 - //6、体检结论结果为职业病同时触发今日提醒给体检结论结果为职业病的员工的上级部门负责人;消息类型为:其他;消息内容为:请给“员工姓名”调岗。 - - //上级部门负责人,例如: 班组人员 =》 班长 班长 =》车间级负责人 - - T_FM_NOTIFICATION_TASK taskUserMaster = null; - T_FM_NOTIFICATION_TASK taskSafe = null; - T_FM_NOTIFICATION_TASK taskEnd = null; - if (entity.TaskID != Guid.Empty) - { - taskEnd = NotificationTaskService.GetEntityTask(entity.TaskID, "OH012_SHOWPRINT"); - } - - #region 职业病 今日提醒 - - if (entity.RESULT_ENUM == OHHealthExamResult.Disease && isNotice) - { - T_FM_USER userMaster = null;//上级负责人 - //职业病 - var user = GetEntity(e => e.ID == entity.USER_ID, new string[] { "Nav_ApproveRole", "Nav_Department.Nav_User" }); - if (user.Nav_ApproveRole == null || !user.Nav_ApproveRole.NAME.Contains("负责人")) - { - userMaster = user.Nav_Department.Nav_User; - } - else - { - //上一级部门的负责人 - if (user.Nav_Department.PARENT_ID.HasValue) - { - T_FM_DEPARTMENT dep = GetEntity(e => e.ID == user.Nav_Department.PARENT_ID, new string[] { "Nav_User" }); - userMaster = dep.Nav_User; - } - else - { - //没有上级部门 - - } - } - if (userMaster != null) - { - T_FM_USER userResult = GetEntity(entity.USER_ID.Value); - taskUserMaster = NotificationTaskService.InsertUserNoticeTaskModel("请给【" + userResult.NAME + "】调岗", Guid.Empty, entity.ORG_ID, userMaster.ID, userMaster.NAME, DateTime.Now, DateTime.Now.AddDays(1), (int)FMNoticeTypeEnum.今日提醒, ""); - } - string Msg = string.Empty; - - T_FM_USER userSafe = UserService.GetRoleUser(ref Msg, "安环部负责人", null, null); - if (userSafe == null || string.IsNullOrEmpty(userSafe.NAME)) - { - if (!string.IsNullOrEmpty(Msg)) - { - throw new Exception(Msg); - } - else - { - throw new Exception("获取安环部负责人失败"); - } - } - else - { - taskSafe = NotificationTaskService.InsertUserNoticeTaskModel("请召开职业危害防治措施的有效性评估会", Guid.Empty, entity.ORG_ID, userSafe.ID, userSafe.NAME, DateTime.Now, DateTime.Now.AddDays(1), (int)FMNoticeTypeEnum.今日提醒, ""); - } - } - - #endregion - - this.UnifiedCommit(() => - { - if (entity != null) - UpdateEntityNoCommit(entity); //体检结果 - if (listOccDisease != null && listOccDisease.Any()) - BantchSaveEntityNoCommit(listOccDisease);//职业病 - if (listFiles != null && listFiles.Any()) - BantchSaveEntityNoCommit(listFiles);//附件 - if (taskUserMaster != null) - UpdateEntityNoCommit(taskUserMaster); //上级领导 调岗 - if (taskSafe != null) - UpdateEntityNoCommit(taskSafe); //安环部 召开会议 - if (taskEnd != null) - UpdateEntityNoCommit(taskEnd); //结束待办 - }); - } - return true; - }); - - } - - - /// - /// 知识库 超级管理员修改体检结果 - /// - /// - /// - [HttpPost, Route("FullUpdateResult")] - public JsonActionResult FullUpdateResult([FromBody] T_OH_HEALTH_EXAM_RESULT entity) - { - return SafeExecute(() => - { - if (APT.Infrastructure.Api.AppContext.CurrentSession.UserName != "admin") - { - throw new Exception("只有超级管理员才能修改此体检结果"); - } - - //保存并发送的时候 发送给各个部门(负责人 或者安全员) - //如果有待办 去除待办 - if (!entity.NOTICE_REGISTER_ID.HasValue) - { - throw new Exception("请选择体检批次对应体检人员"); - } - - if (entity.RESULT_ENUM == OHHealthExamResult.NotSign) - { - throw new Exception("请选择体检结论!"); - } - if (string.IsNullOrEmpty(entity.DESCRIPTION)) - { - throw new Exception("请填写结果描述!"); - } - else if (entity.DESCRIPTION.Length > 500) - { - throw new Exception("结果描述不能超过500字!"); - } - - - var listOccDisease = entity.Nav_OccDiseaseList; - entity.Nav_OccDiseaseList = null; - List listFiles = new List(); - - if (entity.RESULT_ENUM == OHHealthExamResult.Disease && (listOccDisease == null || !listOccDisease.Any())) - { - throw new Exception("请填写职业病信息后再保存!"); - } - - if (listOccDisease != null && listOccDisease.Any()) - { - foreach (var item in listOccDisease) - { - if (entity.RESULT_ENUM != OHHealthExamResult.Disease) - { - item.IS_DELETED = true; - } - - if (item.Nav_Files != null && item.Nav_Files.Any()) - { - listFiles.AddRange(item.Nav_Files); - item.Nav_Files = null; - } - } - } - if (entity.RESULT_ENUM != OHHealthExamResult.Disease) - { - foreach (var item in listFiles) - { - item.IS_DELETED = true; - } - } - - - int rowIndex = 1; - foreach (var item in listOccDisease) - { - if (item.IS_DELETED) - { - continue; - } - if (!item.OCC_DISEASE_ID.HasValue) - { - throw new Exception("请选择行:" + rowIndex + "的职业病"); - } - if (!item.OCC_DISEASE_SEVERITY_ID.HasValue) - { - throw new Exception("请选择行:" + rowIndex + "的职业病严重程度"); - } - if (string.IsNullOrEmpty(item.DESCRIPTION)) - { - throw new Exception("请选择行:" + rowIndex + "的病状描述"); - } - rowIndex++; - } - - //草稿 - this.UnifiedCommit(() => - { - if (entity != null) - UpdateEntityNoCommit(entity); //体检结果 - if (listOccDisease != null && listOccDisease.Any()) - BantchSaveEntityNoCommit(listOccDisease);//职业病 - if (listFiles != null && listFiles.Any()) - BantchSaveEntityNoCommit(listFiles);//附件 - }); - - return true; - }); - - } - - [HttpPost, Route("ImportShow2")] - public PagedActionResult ImportShow2() - { - return null; - } - - /// - /// 获取导入的初始数据 - /// - /// - /// - /// - [HttpPost, Route("GetImportIni")] - public JsonActionResult GetImportIni([FromBody] KeywordFilter filter) - { - return SafeExecute(() => - { - Guid ID = Guid.Empty; - if (filter.FilterGroup.Rules.Count > 0) - { - foreach (var item in filter.FilterGroup.Rules) - { - if (item.Field == "ID") - { - ID = new Guid(item.Value.ToString()); - } - } - filter.FilterGroup.Rules.Clear(); - } - if (ID == Guid.Empty) - { - throw new Exception("获取信息失败!"); - } - List listNotice = new List(); - T_OH_HEALTH_EXAM_RESULT_IMPORT result = GetImports(ID, ref listNotice); - - #region 方法提取 - - - //T_OH_HEALTH_EXAM_RESULT_IMPORT result = GetEntity(e => e.ID == ID, new string[] { "Nav_ExamNotice" }); - - //Guid? PARENTID = result.Nav_ExamNotice.PARENTID; - //var listNotice = GetEntities(e => e.PARENTID == PARENTID, null, null); - //List listNoticeID = listNotice.Select(e => e.ID).ToList(); - //var listNoticeRegist = GetEntities(e => listNoticeID.Contains(e.NOTICE_ID.Value), null, new string[] { "Nav_User", "Nav_ExamBatch" }); //e.NOTICE_ID == result.NOTICE_ID - - //List listResult = new List(); - //if (listNoticeRegist != null && listNoticeRegist.Any()) - //{ - // foreach (var item in listNoticeRegist) - // { - // listResult.Add(new T_OH_HEALTH_EXAM_RESULT() - // { - // ID = Guid.NewGuid(), - // NOTICE_REGISTER_ID = item.ID, - // Nav_NoticeRegister = item, - // USER_ID = item.USER_ID, - // Nav_User = item.Nav_User, - // RESULT_ENUM = OHHealthExamResult.NotSign, - // DESCRIPTION = "", - // SUGGESTION = "", - // STATUS = OHHealthExamResultStatus.WaitSign, - // IS_DELETED = false, - // ORG_ID = item.ORG_ID, - // //ENTITY_ORG_TPYE - // //FORM_ID - // //FLOW_STATUS - // //FLOW_SEND_STATUS - // //FLOW_ID - // //CREATE_TIME - // //MODIFY_TIME - // //CREATER_ID - // //MODIFIER_ID - - // }); - // } - //} - //result.Nav_ListResult = listResult; - - #endregion - return result; - }); - } - - /// - /// 获取导入数据 - /// - /// - /// - /// - public T_OH_HEALTH_EXAM_RESULT_IMPORT GetImports(Guid ID, ref List listNotice) - { - T_OH_HEALTH_EXAM_RESULT_IMPORT result = GetEntity(e => e.ID == ID, new string[] { "Nav_ExamNotice" }); - - Guid? PARENTID = result.Nav_ExamNotice.PARENTID; - listNotice = GetEntities(e => e.PARENTID == PARENTID, null, null).ToList(); - List listNoticeID = listNotice.Select(e => e.ID).ToList(); - var listNoticeRegist = GetEntities(e => listNoticeID.Contains(e.NOTICE_ID.Value) && e.STATUS != OHHealthExamNoticeRegisterStatus.NoticeResult, null, new string[] { "Nav_User", "Nav_ExamBatch" }); //e.NOTICE_ID == result.NOTICE_ID - - List listResult = new List(); - if (listNoticeRegist != null && listNoticeRegist.Any()) - { - foreach (var item in listNoticeRegist) - { - listResult.Add(new T_OH_HEALTH_EXAM_RESULT() - { - ID = Guid.NewGuid(), - NOTICE_REGISTER_ID = item.ID, - Nav_NoticeRegister = item, - USER_ID = item.USER_ID, - Nav_User = item.Nav_User, - RESULT_ENUM = OHHealthExamResult.NotSign, - DESCRIPTION = "", - SUGGESTION = "", - STATUS = OHHealthExamResultStatus.WaitSign, - IS_DELETED = false, - ORG_ID = item.ORG_ID, - //ENTITY_ORG_TPYE - //FORM_ID - //FLOW_STATUS - //FLOW_SEND_STATUS - //FLOW_ID - //CREATE_TIME - //MODIFY_TIME - //CREATER_ID - //MODIFIER_ID - - }); - } - } - - result.Nav_ListResult = listResult; - return result; - } - /// - /// 显示批量导入数据 - /// - /// - /// - [HttpPost, Route("ImportShow")] - public PagedActionResult ImportShow(IFormCollection filer) - { - StringValues taskID = string.Empty; - StringValues id = string.Empty; - filer.TryGetValue("TaskID", out taskID); - try - { - filer.TryGetValue("id", out id); - if (string.IsNullOrEmpty(id.ToString())) - { - throw new Exception("获取传参失败!"); - } - } - catch - { - throw new Exception("获取传参失败!"); - throw; - } - - return SafeGetPagedData(delegate (PagedActionResult result) - { - var httpRequest = this.HttpContext.Request; - string orgIdStr = httpRequest.Form["OrgId"];// 获取 组织 - Guid? orgId = null; - result.IsSuccessful = true; - if (!string.IsNullOrEmpty(orgIdStr)) - { - orgId = new Guid(orgIdStr); - - var dic = Path.Combine(System.AppContext.BaseDirectory, "tempImportFiles"); - if (!Directory.Exists(dic)) - Directory.CreateDirectory(dic); - foreach (var key in httpRequest.Form.Files) // 文件键 - { - var postedFile = key; // 获取文件键对应的文件对象 - string filePath = Path.Combine(dic, DateTime.Now.ToString("yyyy_MM_dd_hh_mm_ss") + "_" + postedFile.FileName); - Byte[] fileData = new Byte[postedFile.Length]; - Stream sr = postedFile.OpenReadStream();//创建数据流对象 - sr.Read(fileData, 0, (int)postedFile.Length); - using (FileStream fs = new FileStream(filePath, FileMode.CreateNew)) - { - fs.Write(fileData, 0, fileData.Length); - fs.Flush(); - fs.Close(); - } - - //获取数据 - Dictionary startRowIndexs = new Dictionary(); - startRowIndexs.Add(0, 2);//根据Excel格式数据赋值 - var dataTables = FileUtils.ReadExcelByOledb(filePath, startRowIndexs); - - //bool isOK = InsertModel(dataTables.Tables[0], orgId.Value, ref Msg); - //try - //{ - // System.IO.File.Delete(filePath); - //} - //catch { } - - - #region 提取数据 - - DataTable dtInfo = dataTables.Tables[0]; - - int rowCount = dtInfo.Rows.Count; - int colunCount = dtInfo.Columns.Count; - if (rowCount < 1) - { - result.ErrorMessage = "获取导入数据失败!"; - result.IsSuccessful = false; - //return result; - } - else if (colunCount != 6) - { - result.ErrorMessage = "获取导入数据异常!"; - result.IsSuccessful = false; - } - else - { - //体检批次 体检人员 身份证号 体检结论 结果描述 处理意见 - //T_OH_HEALTH_EXAM_NOTICE_REGISTER - Dictionary> listEmptyInfo = new Dictionary>(); - Dictionary dicErrorRowResult = new Dictionary(); - List listEmptyRowColum = null; - - List listName = new List();//姓名 - List listBatch = new List(); - string strBatch = string.Empty; - - List listExamResult = new List(); - OHHealthExamResult[] HealthResult = Enum.GetValues(); - - foreach (var item in HealthResult) - { - listExamResult.Add(item.GetDescription()); - } - - - for (int i = 0; i < rowCount; i++) - { - #region 不能为空 - listEmptyRowColum = null; - for (int j = 0; j < 4; j++) - { - if (j != 2) - { - if (dtInfo.Rows[i][j] == null || string.IsNullOrEmpty(dtInfo.Rows[i][j].ToString())) - { - if (listEmptyRowColum == null) - { - listEmptyRowColum = new List(); - } - listEmptyRowColum.Add(j); - } - else if (j == 3) - { - if (!listExamResult.Contains(dtInfo.Rows[i][j].ToString().Trim())) - { - dicErrorRowResult.Add(i, dtInfo.Rows[i][j].ToString().Trim()); - } - } - } - - - if (listEmptyInfo.Count == 0) - { - //姓名 - listName.Add(dtInfo.Rows[i][1].ToString().Trim()); - - //批次 - strBatch = dtInfo.Rows[i][0].ToString().Trim(); - if (!listBatch.Contains(strBatch)) - { - listBatch.Add(dtInfo.Rows[i][0].ToString().Trim()); - } - } - } - //数据不能为空 - if (listEmptyRowColum != null) - { - listEmptyInfo.Add(i, listEmptyRowColum); - } - #endregion - } - - if (listEmptyInfo.Count > 0 || dicErrorRowResult.Count > 0) - { - string Msg = string.Empty; - if (listEmptyInfo.Count > 0) - { - foreach (var item in listEmptyInfo) - { - Msg += (Msg.Length == 0 ? "" : ";") + "行:" + item.Key + " 列【" + string.Join(',', item.Value) + "】"; - } - Msg += "信息不能为空!"; - } - if (dicErrorRowResult.Count > 0) - { - string errorResult = "体检结论有误,"; - foreach (var item in dicErrorRowResult) - { - errorResult += "行:" + item.Key + " 【" + item.Value + "】"; - } - errorResult += "!"; - Msg += (Msg.Length > 0 ? "\r\n" : "") + errorResult; - } - - result.ErrorMessage = Msg; - result.IsSuccessful = false; - //return result; - } - else - { - Guid ID = new Guid(id); - T_OH_HEALTH_EXAM_RESULT_IMPORT resultImport = GetEntity(e => e.ID == ID, new string[] { "Nav_ExamNotice" }); - Guid? PARENTID = resultImport.Nav_ExamNotice.PARENTID; - List listNotice = GetEntities(e => e.PARENTID == PARENTID, null, null).ToList(); - var listBatchId = listNotice.Where(e => e.EXAM_BATCH_ID.HasValue).Select(e => e.EXAM_BATCH_ID.Value); - - //3个月之前结束 到 2天后结束 - //DateTime dtMin = DateTime.Now.AddMonths(beforeMonth); - //DateTime dtMax = DateTime.Now.AddDays(afterDays); - - ////姓名 - //List listModelUser = GetEntities(e => listName.Contains(e.NAME), null, null).ToList(); - //批次 如果名称一样 怎么分辨 - //List listModelBatch = GetEntities(e => listBatch.Contains(e.BATCH) && e.END_TIME > dtMin && e.END_TIME < dtMax, null, null).ToList(); - List listModelBatch = GetEntities(e => listBatchId.Contains(e.ID), null, null).ToList(); - //体检人员安排 T_OH_HEALTH_EXAM_NOTICE_REGISTER - - T_OH_HEALTH_EXAM_BATCH modelCheck = null; - //有 批次信息 数据库 没找到 - foreach (var item in listBatch) - { - modelCheck = listModelBatch.Find(e => e.BATCH == item);// listBatch.Contains(e.BATCH) - if (result.IsSuccessful && modelCheck == null) - { - result.ErrorMessage = "未找到批次【" + item + "】信息"; - result.IsSuccessful = false; - break; - } - } - - - - if (result.IsSuccessful) - { - List listBatchID = listModelBatch.Select(e => e.ID).ToList(); - - //导入数据 是已经通知过的 未通知体检结果的 - var listNoticeRegister = GetEntities(e => e.EXAM_BATCH_ID.HasValue && listBatchID.Contains(e.EXAM_BATCH_ID.Value) && e.STATUS != OHHealthExamNoticeRegisterStatus.WaitNotice && e.STATUS != OHHealthExamNoticeRegisterStatus.NoticeResult, null, new string[] { "Nav_ExamBatch", "Nav_User" }); - //rowCount colunCount - string strName = string.Empty; - string CardID = string.Empty; - - Dictionary dicRowNameNone = new Dictionary(); - List listResult = new List(); - T_OH_HEALTH_EXAM_RESULT modelShow = null; - T_OH_HEALTH_EXAM_NOTICE_REGISTER modelSearch = null; - List listNoticeRegisterChange = new List(); - - Dictionary dicIUser = new Dictionary(); - Dictionary dicIRegister = new Dictionary(); - - #region 数据组装 - - for (int i = 0; i < rowCount; i++) - { - //批次 - strBatch = dtInfo.Rows[i][0].ToString().Trim(); - //姓名 - strName = dtInfo.Rows[i][1].ToString().Trim(); - var listRegister = listNoticeRegister.Where(e => !e.IS_DELETED && e.USER_ID.HasValue && e.Nav_User.NAME == strName && e.EXAM_BATCH_ID.HasValue && e.Nav_ExamBatch.BATCH == strBatch); - if (listRegister == null || !listRegister.Any()) - { - dicRowNameNone.Add(i, strName); - } - else - { - if (listRegister.Count() > 1) - { - //身份证号 - CardID = dtInfo.Rows[i][2].ToString().Trim(); - //过滤 - //判断身份证 - //提示问题 - if (!string.IsNullOrEmpty(CardID)) - { - modelSearch = listRegister.FirstOrDefault(e => e.Nav_User.ID_CARD == CardID); - - } - } - else - { - modelSearch = listRegister.ToList()[0]; - } - - if (modelSearch == null) - { - dicRowNameNone.Add(i, strName); - } - else - { - //体检批次 体检人员 身份证号 体检结论 结果描述 处理意见 - if (dicRowNameNone.Count == 0) - { - modelShow = new T_OH_HEALTH_EXAM_RESULT(); - modelShow.ID = Guid.NewGuid(); - modelShow.NOTICE_REGISTER_ID = modelSearch.ID; - modelShow.USER_ID = modelSearch.USER_ID; - dicIUser.Add(i, modelSearch.Nav_User); - dicIRegister.Add(i, modelSearch); - //modelShow.Nav_User = modelSearch.Nav_User; - modelShow.RESULT_ENUM = GetResult(dtInfo.Rows[i][3].ToString(), listExamResult, HealthResult).Value;//体检结论 - modelShow.DESCRIPTION = dtInfo.Rows[i][4].ToString().Trim(); - modelShow.SUGGESTION = dtInfo.Rows[i][5].ToString().Trim(); - //modelShow.STATUS = OHHealthExamResultStatus.WaitSign; //直接显示在页面 - //直接插入数据库 - if (modelShow.RESULT_ENUM == OHHealthExamResult.Disease) - { - //职业病 待填写职业病信息 - modelShow.STATUS = OHHealthExamResultStatus.WaitSignDisease; - } - else - { - //非职业病 导入数据完成 - modelShow.STATUS = OHHealthExamResultStatus.Finish; - } - - modelShow.IS_DELETED = false; - modelShow.ORG_ID = orgId; - //modelShow.ENTITY_ORG_TPYE =; - //modelShow.FORM_ID =; - //modelShow.FLOW_STATUS =; - //modelShow.FLOW_SEND_STATUS =; - //modelShow.FLOW_ID =; - //modelShow.CREATE_TIME =; - //modelShow.MODIFY_TIME =; - //modelShow.CREATER_ID =; - //modelShow.MODIFIER_ID =; - listResult.Add(modelShow); - - //体检通知 状态修改 - modelSearch.STATUS = OHHealthExamNoticeRegisterStatus.NoticeResult; - listNoticeRegisterChange.Add(modelSearch); - } - } - } - } - - - - //var notInt = resultImport.Nav_ListResult.Where(e => e.RESULT_ENUM != OHHealthExamResult.NoException); - //T_FM_NOTIFICATION_TASK taskEnd = null; - //if (notInt == null || !notInt.Any()) - //{ - // if (!string.IsNullOrEmpty(taskID.ToString())) - // { - // //结束待办 - // taskEnd = NotificationTaskService.GetEntityTask(new Guid(taskID.ToString())); - // } - //} - - - #endregion - - if (dicRowNameNone.Count > 0) - { - string Msg = string.Empty; - foreach (var item in dicRowNameNone) - { - Msg += (Msg.Length > 0 ? ";" : "") + "行" + item.Key + "【" + item.Value + "】"; - } - result.ErrorMessage = "未找到人员批次未上报结果信息【" + Msg + "】信息"; - result.IsSuccessful = false; - } - - if (result.IsSuccessful) - { - if (listResult.Count > 0) - { - //不能清空 否则值不对 - //foreach (var item in listNoticeRegisterChange) - //{ - // item.Nav_User - // item.Nav_ExamBatch - //} - - #region 职业病 - - T_FM_NOTIFICATION_TASK taskSafe = null; - List listTaskMaster = new List(); - var listDise = listResult.FindAll(e => e.RESULT_ENUM == OHHealthExamResult.Disease); - if (listDise != null && listDise.Count > 0) - { - string MsgWarming = string.Empty; - - #region 安环部会议通知 - T_FM_USER userSafe = UserService.GetRoleUser(ref MsgWarming, "安环部负责人", null, null); - if (userSafe == null || string.IsNullOrEmpty(userSafe.NAME)) - { - if (!string.IsNullOrEmpty(MsgWarming)) - { - throw new Exception(MsgWarming); - } - else - { - throw new Exception("获取安环部负责人失败"); - } - } - else - { - taskSafe = NotificationTaskService.InsertUserNoticeTaskModel("请召开职业危害防治措施的有效性评估会", Guid.Empty, orgId, userSafe.ID, userSafe.NAME, DateTime.Now, DateTime.Now.AddDays(1), (int)FMNoticeTypeEnum.今日提醒, ""); - } - #endregion - - #region 给职业病 上级部门负责人发送调岗通知 - - List listUserID = listDise.Select(e => e.USER_ID.Value).ToList(); - List listUserDise = GetEntities(e => listUserID.Contains(e.ID), null, new string[] { "Nav_ApproveRole", "Nav_Department.Nav_User" }).ToList(); - T_FM_USER userMaster = null;//上级负责人 //职业病 - - foreach (var item in listDise) - { - userMaster = null; - var user = listUserDise.FirstOrDefault(e => e.ID == item.USER_ID); - if (user.Nav_ApproveRole == null || !user.Nav_ApproveRole.NAME.Contains("负责人")) - { - userMaster = user.Nav_Department.Nav_User; - } - else - { - //上一级部门的负责人 - if (user.Nav_Department.PARENT_ID.HasValue) - { - T_FM_DEPARTMENT dep = GetEntity(e => e.ID == user.Nav_Department.PARENT_ID, new string[] { "Nav_User" }); - userMaster = dep.Nav_User; - } - else - { - //没有上级部门 - - } - } - if (userMaster != null) - { - T_FM_USER userResult = GetEntity(item.USER_ID.Value); - var taskUserMaster = NotificationTaskService.InsertUserNoticeTaskModel("体检结果为职业病,请给【" + userResult.NAME + "】调岗", Guid.Empty, item.ORG_ID, userMaster.ID, userMaster.NAME, DateTime.Now, DateTime.Now.AddDays(1), (int)FMNoticeTypeEnum.今日提醒, ""); - listTaskMaster.Add(taskUserMaster); - } - } - - #endregion - } - - #endregion - - this.UnifiedCommit(() => - { - if (listResult != null && listResult.Any()) - BantchSaveEntityNoCommit(listResult);//体检信息 - if (listNoticeRegisterChange != null && listNoticeRegisterChange.Any()) - BantchSaveEntityNoCommit(listNoticeRegisterChange);//体检 通知状态修改 - if (taskSafe != null) - UpdateEntityNoCommit(taskSafe); //职业病给安环部发送通知 - if (listTaskMaster != null && listTaskMaster.Any()) - BantchSaveEntityNoCommit(listTaskMaster);//调岗通知 - }); - - //数据库 查找是否 还有未导入审批结果的 如果没有 结束待办 - if (!string.IsNullOrEmpty(taskID.ToString())) - { - T_FM_NOTIFICATION_TASK taskEnd = null; - var listNoticeRegisterCheck = GetEntities(e => e.EXAM_BATCH_ID.HasValue && listBatchID.Contains(e.EXAM_BATCH_ID.Value) && e.STATUS != OHHealthExamNoticeRegisterStatus.WaitNotice && e.STATUS != OHHealthExamNoticeRegisterStatus.NoticeResult, null, null); - if (listNoticeRegisterCheck == null || !listNoticeRegisterCheck.Any()) - { - this.UnifiedCommit(() => - { - if (taskEnd != null) - UpdateEntityNoCommit(taskEnd);//全部人都填写结束待办(人事专员) - }); - } - } - - - #region 返回数据导航属性处理 - - for (int i = 0; i < listResult.Count; i++) - { - listResult[i].Nav_User = dicIUser[i];//用户信息 - listResult[i].Nav_NoticeRegister = dicIRegister[i]; - } - - #endregion - } - - result.Data = listResult; - result.TotalCount = listResult.Count; - } - } - } - } - - try - { - System.IO.File.Delete(filePath); - } - catch { } - #endregion - } - } - else - { - result.Data = null;//dataTables.Tables[0] - result.TotalCount = 0; - } - //return result; - }); - } - - /// - /// 获取体检结论 - /// - /// - /// - /// - /// - public OHHealthExamResult? GetResult(string strResult, List listExamResult, OHHealthExamResult[] HealthResult) - { - strResult = strResult.Trim(); - if (listExamResult.Contains(strResult.Trim())) - { - foreach (var item in HealthResult) - { - if (item.GetDescription() == strResult) - { - return item; - } - } - } - return null; - } - - ///// - ///// 显示批量导入数据 - ///// - ///// - ///// - //[HttpPost, Route("ImportShow")] - //public PagedActionResult ImportShow([FromBody] KeywordPageFilter pageFilter) - //{ - // //return WitOrderPaged(null, pageFilter); - // return SafeGetPagedData(delegate (PagedActionResult result) - // { - // var httpRequest = this.HttpContext.Request; - // string orgIdStr = httpRequest.Form["OrgId"];// 获取 组织 - // Guid? orgId = null; - // if (!string.IsNullOrEmpty(orgIdStr)) - // orgId = new Guid(orgIdStr); - // else - // { - // result.Data = null;//dataTables.Tables[0] - // result.TotalCount = 0; - // } - - // var dic = Path.Combine(System.AppContext.BaseDirectory, "tempImportFiles"); - // if (!Directory.Exists(dic)) - // Directory.CreateDirectory(dic); - // foreach (var key in httpRequest.Form.Files) // 文件键 - // { - // var postedFile = key; // 获取文件键对应的文件对象 - // string filePath = Path.Combine(dic, DateTime.Now.ToString("yyyy_MM_dd_hh_mm_ss") + "_" + postedFile.FileName); - // Byte[] fileData = new Byte[postedFile.Length]; - // Stream sr = postedFile.OpenReadStream();//创建数据流对象 - // sr.Read(fileData, 0, (int)postedFile.Length); - // using (FileStream fs = new FileStream(filePath, FileMode.CreateNew)) - // { - // fs.Write(fileData, 0, fileData.Length); - // fs.Flush(); - // fs.Close(); - // } - - // //获取数据 - // Dictionary startRowIndexs = new Dictionary(); - // startRowIndexs.Add(0, 2);//根据Excel格式数据赋值 - // var dataTables = FileUtils.ReadExcelByOledb(filePath, startRowIndexs); - - // //bool isOK = InsertModel(dataTables.Tables[0], orgId.Value, ref Msg); - // //try - // //{ - // // System.IO.File.Delete(filePath); - // //} - // //catch { } - - // //result.Data = orderPageEntities.Data;//dataTables.Tables[0] - // result.TotalCount = dataTables.Tables[0].Rows.Count; - - - // } - - // //return result; - - // }); - //}OrderPagedUser - - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPagedUser")] - public PagedActionResult OrderPagedUser([FromBody] KeywordPageFilter pageFilter) - { - return SafeGetPagedData(delegate (PagedActionResult result) - { - string Name = string.Empty; - string DEPARTMENTNAME = string.Empty; - string POSTNAME = string.Empty; - OHHealthExamResult? RESULT_ENUM = null; - if (pageFilter.FilterGroup.Rules.Count > 0) - { - foreach (var item in pageFilter.FilterGroup.Rules) - { - if (item.Field == "NAME") - { - Name = item.Value.ToString(); - } - else if (item.Field == "DEPARTMENTNAME") - { - DEPARTMENTNAME = item.Value.ToString(); - } - else if (item.Field == "POSTNAME") - { - POSTNAME = item.Value.ToString(); - } - else if (item.Field == "RESULT_ENUM") - { - try - { - RESULT_ENUM = (OHHealthExamResult)int.Parse(item.Value.ToString()); - } - catch { } - } - } - pageFilter.FilterGroup.Rules.Clear(); - } - Expression> expressionU = e => e.ORG_ID == pageFilter.OrgId; - if (!string.IsNullOrEmpty(Name)) - { - expressionU = expressionU.And(e => e.NAME.Contains(Name)); - } - if (!string.IsNullOrEmpty(DEPARTMENTNAME)) - { - expressionU = expressionU.And(e => e.DEPARTMENT_ID.HasValue && e.Nav_Department.NAME.Contains(DEPARTMENTNAME)); - } - if (!string.IsNullOrEmpty(POSTNAME)) - { - expressionU = expressionU.And(e => e.PERSON_ID.HasValue && e.Nav_Person.POST_ID.HasValue && e.Nav_Person.Nav_Post.NAME.Contains(POSTNAME)); - } - - #region 自定义查询 - - List listResult = GetEntities(e => e.USER_ID.HasValue, null, null).ToList(); - List listDis = GetEntities(e => e.RESULT_ID.HasValue, null, new string[] { "Nav_Files.Nav_ImgFile.Nav_File" }).ToList(); - List listUser = GetEntities(expressionU, null, "Nav_Department", "Nav_Person.Nav_Post").ToList(); - List listDiseaseSeverityLevel = GetEntities(null, null, null).ToList(); - List listDisease = GetEntities(null, null, null).ToList(); - - if (listResult.Count < 1) - { - result.Data = null; - result.TotalCount = 0; - } - - var query = from resultQ in listResult - join user in listUser on resultQ.USER_ID equals user.ID - join detail1 in listDis on resultQ.ID equals detail1.RESULT_ID into temp - from detail in temp.DefaultIfEmpty() - join dise1 in listDisease on detail?.OCC_DISEASE_ID equals dise1.ID into tempDis - from dise in tempDis.DefaultIfEmpty() - join diseLevel1 in listDiseaseSeverityLevel on detail?.OCC_DISEASE_SEVERITY_ID equals diseLevel1.ID into tempLevelDis - from diseLevel in tempLevelDis.DefaultIfEmpty() - select new HealthResult - { - ID = resultQ.ID, - CODE = user.CODE, - ORG_ID = resultQ.ORG_ID, - USER_ID = resultQ.USER_ID.Value, - RESULT_ENUM = resultQ.RESULT_ENUM, - //DESCRIPTION = resultQ.DESCRIPTION, - //SUGGESTION = resultQ.SUGGESTION, - CREATE_TIME = resultQ.CREATE_TIME, - NAME = user.NAME, - ID_CARD = user.ID_CARD, - ENTRYTIME = user.ENTRYTIME == DateTime.MinValue ? null : user.ENTRYTIME, - DEPARTMENT_ID = user.DEPARTMENT_ID, - DEPARTMENTNAME = user.Nav_Department.NAME, - POSTNAME = user.Nav_Person.Nav_Post.NAME, - PERSON_ID = user.PERSON_ID, - DEPARTURETIME = user.DEPARTURETIME == DateTime.MinValue ? null : user.DEPARTURETIME, - //DIAGNOSE_AGENCY = detail == null ? null : detail.DIAGNOSE_AGENCY, - //DIAGNOSE_METHOD = detail == null ? null : detail.DIAGNOSE_METHOD, - //DisDESCRIPTION = detail == null ? null : detail.DESCRIPTION, - //OCC_HISTORY = detail == null ? null : detail.OCC_HISTORY, - OCC_DISEASE_SEVERITY_ID = detail == null ? null : detail.OCC_DISEASE_SEVERITY_ID, - OCC_DISEASE_ID = detail == null ? null : detail.OCC_DISEASE_ID, - //disName = dise == null ? "" : dise.NAME, - disLevelName = diseLevel == null ? "" : diseLevel.NAME, - //Nav_Files = detail == null ? null : detail.Nav_Files - }; - - #region 查询条件 - - if (!string.IsNullOrEmpty(Name)) - { - query = query.Where(e => e.NAME.Contains(Name)); - } - if (!string.IsNullOrEmpty(DEPARTMENTNAME)) - { - query = query.Where(e => e.DEPARTMENTNAME != null && e.DEPARTMENTNAME.Contains(DEPARTMENTNAME)); - } - if (!string.IsNullOrEmpty(POSTNAME)) - { - query = query.Where(e => e.POSTNAME != null && e.POSTNAME.Contains(POSTNAME)); - } - if (RESULT_ENUM.HasValue) - { - query = query.Where(e => e.RESULT_ENUM == RESULT_ENUM.Value); - } - - #endregion - - var listResultTemp = query.OrderBy(e => e.NAME).ThenByDescending(e => e.CREATE_TIME).Skip((pageFilter.PageIndex - 1) * pageFilter.Limit).Take(pageFilter.Limit).ToList(); - - result.Data = listResultTemp; - result.TotalCount = query.Count(); - - #endregion - - #region 旧版 不满足需求 - - //pageFilter.Sort = "Nav_User.NAME"; - //pageFilter.Include.Remove("Nav_User.Nav_Department"); - //pageFilter.Include.Remove("Nav_User.Nav_Person.Nav_Post"); - //pageFilter.Include.Remove("Nav_OccDiseaseList.Nav_OccDisease"); - //pageFilter.Include.Remove("Nav_OccDiseaseList.Nav_OccDiseaseSeverity"); - //pageFilter.Include.Remove("Nav_OccDiseaseList.Nav_Files.Nav_ImgFile.Nav_File"); - - //pageFilter.SelectField = new List { "ID", "USER_ID", "RESULT_ENUM", "DESCRIPTION", "SUGGESTION", "RESULT_ENUM", "Nav_User.NAME", "Nav_User.ID_CARD", "Nav_User.ENTRYTIME", "Nav_User.DEPARTMENT_ID", "Nav_User.PERSON_ID", "Nav_User.DEPARTURETIME", "Nav_OccDiseaseList.OCC_DISEASE_SEVERITY_ID", "Nav_OccDiseaseList.OCC_DISEASE_ID" }; - - //PagedActionResult orderPageEntities = GetOrderPageEntities(e => e.USER_ID.HasValue, pageFilter, null); - //result.Data = orderPageEntities.Data; - //if (result.Data != null && result.Data.Any()) - //{ - // #region 岗位 - // var listPersonID = result.Data.Where(e => e.Nav_User.PERSON_ID.HasValue).Select(e => e.Nav_User.PERSON_ID); - // var listPerson = GetEntities(e => listPersonID.Contains(e.ID), null, "Nav_Post"); - // T_FM_PERSON personTemp = null; - // #endregion - // #region 部门 - // var listDepID = result.Data.Select(e => e.Nav_User.DEPARTMENT_ID); - // var listDep = GetEntities(e => listDepID.Contains(e.ID), null, null); - // T_FM_DEPARTMENT depTemp = null; - // #endregion - // #region 职业病 严重等级 - // List listDiseaseSeverityLevel = GetEntities(e => e.ORG_ID == pageFilter.OrgId, null, "").ToList(); - // List listDisease = GetEntities(e => e.ORG_ID == pageFilter.OrgId, null, "").ToList(); - - // T_OH_HEALTH_EXAM_OCC_DISEASE_SEVERITY_LEVEL levelTemp = null; - // T_OH_HEALTH_EXAM_OCC_DISEASE diseaseTemp = null; - - // #endregion - - // foreach (var item in result.Data) - // { - // #region 入职离职日期 - // if (item.Nav_User.ENTRYTIME != DateTime.MinValue) - // item.ENTRYTIME = item.Nav_User.ENTRYTIME; - // if (item.Nav_User.DEPARTURETIME != DateTime.MinValue) - // item.DEPARTURETIME = item.Nav_User.DEPARTURETIME; - // #endregion - // #region 人员岗位 - // if (item.Nav_User.PERSON_ID.HasValue) - // { - // personTemp = listPerson.FirstOrDefault(e => e.ID == item.Nav_User.PERSON_ID); - // if (personTemp != null) - // { - // item.Nav_User.Nav_Person = personTemp; - // } - // } - // #endregion - // #region 部门 - // if (item.Nav_User.DEPARTMENT_ID.HasValue) - // { - // depTemp = listDep.FirstOrDefault(e => e.ID == item.Nav_User.DEPARTMENT_ID.Value); - // if (depTemp != null) - // { - // item.Nav_User.Nav_Department = depTemp; - // } - // } - // #endregion - // //pageFilter.Include.Remove("Nav_OccDiseaseList.Nav_OccDisease"); - // //pageFilter.Include.Remove("Nav_OccDiseaseList.Nav_OccDiseaseSeverity"); - // //pageFilter.Include.Remove("Nav_OccDiseaseList.Nav_Files.Nav_ImgFile.Nav_File"); - // if (item.Nav_OccDiseaseList != null && item.Nav_OccDiseaseList.Any()) - // { - // foreach (var itemOcc in item.Nav_OccDiseaseList) - // { - // if (itemOcc.OCC_DISEASE_SEVERITY_ID.HasValue) - // { - // levelTemp = listDiseaseSeverityLevel.FirstOrDefault(e => e.ID == itemOcc.OCC_DISEASE_SEVERITY_ID.Value); - // if (levelTemp != null) - // { - // itemOcc.Nav_OccDiseaseSeverity = levelTemp; - // } - // } - // if (itemOcc.OCC_DISEASE_ID.HasValue) - // { - // diseaseTemp = listDisease.FirstOrDefault(e => e.ID == itemOcc.OCC_DISEASE_ID.Value); - // if (diseaseTemp != null) - // { - // itemOcc.Nav_OccDisease = diseaseTemp; - // } - // } - // } - // } - // } - //} - //result.TotalCount = orderPageEntities.TotalCount; - - #endregion - - }); - } - } - - /// - /// 员工健康监护档案 - /// - public class HealthResult - { - public Guid ID { get; set; } - public Guid? ORG_ID { get; set; } - public string CODE { get; set; } - public Guid? USER_ID { get; set; } - public OHHealthExamResult RESULT_ENUM { get; set; } - public string DESCRIPTION { get; set; } - public string SUGGESTION { get; set; } - public DateTime? CREATE_TIME { get; set; } - public string NAME { get; set; } - public string ID_CARD { get; set; } - public DateTime? ENTRYTIME { get; set; } - public Guid? DEPARTMENT_ID { get; set; } - public string DEPARTMENTNAME { get; set; } - public string POSTNAME { get; set; } - public Guid? PERSON_ID { get; set; } - public DateTime? DEPARTURETIME { get; set; } - public Guid? OCC_DISEASE_SEVERITY_ID { get; set; } - public Guid? OCC_DISEASE_ID { get; set; } - public string disName { get; set; } - public string disLevelName { get; set; } - public string DIAGNOSE_AGENCY { get; set; } - - public string DisDESCRIPTION { get; set; } - public string DIAGNOSE_METHOD { get; set; } - public string OCC_HISTORY { get; set; } - - public ICollection Nav_Files { get; set; } - } -} \ No newline at end of file diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/OHController/OHRunConfigController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/OHController/OHRunConfigController.cs deleted file mode 100644 index ef6d8ed..0000000 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/OHController/OHRunConfigController.cs +++ /dev/null @@ -1,125 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.BaseData.Domain.IServices; -using APT.BaseData.Domain.IServices.AE; -using APT.BaseData.Domain.IServices.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.OH; -using APT.MS.Domain.Entities.TI; -using APT.MS.Domain.Enums; -using APT.Utility; -using Microsoft.AspNetCore.Mvc; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Linq.Expressions; - -namespace APT.SC.WebApi.Controllers.Api.OH -{ - [Route("api/OH/OHRunConfig")] - public class OHRunConfigController : AuthorizeApiController - { - IFMFlowPermitService MFlowPermitService { get; set; } - IPFApproveCallBackService ApproveCallBackService { get; set; } - IAEAccidentEventReportService AccidentEventReportService { get; set; } - IFMNotificationTaskService NotificationTaskService { get; set; } - IFMUserService UserService { get; set; } - public OHRunConfigController(IFMFlowPermitService mFlowPermitService, IPFApproveCallBackService approveCallBackService, IAEAccidentEventReportService accidentEventReportService, IFMNotificationTaskService notificationTaskService, IFMUserService userService) - { - MFlowPermitService = mFlowPermitService; - ApproveCallBackService = approveCallBackService; - AccidentEventReportService = accidentEventReportService; - NotificationTaskService = notificationTaskService; - UserService = userService; - } - - /// - /// 表单触发时间设置 - /// - /// - /// - [HttpPost, Route("FullUpdate")] - public JsonActionResult FullUpdate([FromBody] T_OH_RUNCONFIG entity) - { - return SafeExecute(() => - { - if (string.IsNullOrEmpty(entity.STRDATE)) - { - throw new Exception("请填写待办日期!"); - } - else if (!entity.STRDATE.Contains("-") && !entity.STRDATE.Contains("/")) - { - throw new Exception("待办日期格式【MM-dd】!"); - } - else - { - try - { - entity.DATE = Convert.ToDateTime(DateTime.Now.Year + "-" + entity.STRDATE); - } - catch - { - throw new Exception("待办日期格式错误!"); - } - } - - var check = GetEntity(e => e.ID != entity.ID && e.CONFIGTYPE == entity.CONFIGTYPE); - if (check != null && check.ID != Guid.Empty) - { - throw new Exception("已经设置了配置类型【" + entity.CONFIGTYPE.GetDescription() + "】的信息,操作失败!"); - } - entity.Nav_Post = null; - - this.UnifiedCommit(() => - { - if (entity != null) - UpdateEntityNoCommit(entity); - }); - - return true; - }); - } - - - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPagedSuit")] - public PagedActionResult OrderPagedSuit([FromBody] KeywordPageFilter pageFilter) - { - return SafeGetPagedData(delegate (PagedActionResult result) - { - PagedActionResult orderPageEntities = GetOrderPageEntities(null, pageFilter, null); - if (orderPageEntities.Data != null && orderPageEntities.Data.Any()) - { - foreach (var item in orderPageEntities.Data) - { - item.STRDATE = item.DATE.ToString("MM-dd"); - } - } - result.Data = orderPageEntities.Data.OrderBy(e => e.STRDATE); - result.TotalCount = orderPageEntities.TotalCount; - }); - } - - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("GetSuit")] - public JsonActionResult GetSuit([FromBody] KeywordFilter filter) - { - return SafeExecute(() => - { - var model = GetEntity(null, filter, null); - model.STRDATE = model.DATE.ToString("MM-dd HH:mm:ss"); - return model; - }); - } - } -} \ No newline at end of file diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/T4/T4Control.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/T4/T4Control.cs index b2352f2..690fdc7 100644 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/T4/T4Control.cs +++ b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/T4/T4Control.cs @@ -15,3069 +15,20 @@ using APT.Infrastructure.Api; using APT.BaseData.Domain.ApiModel.PF; namespace APT.SC.WebApi.Controllers.Api { - using APT.MS.Domain.Entities.AE; -using APT.MS.Domain.Entities.BI; + using APT.MS.Domain.Entities.BI; using APT.MS.Domain.Entities.SC.BI; using APT.MS.Domain.Entities.CM; using APT.MS.Domain.Entities.DM; using APT.MS.Domain.Entities.SC.DM; using APT.MS.Domain.Entities.SC; using APT.MS.Domain.Entities.OG; -using APT.MS.Domain.Entities.OH; using APT.MS.Domain.Entities.SC.PM; using APT.MS.Domain.Entities.SC.PE; using APT.MS.Domain.Entities.SC.PR; using APT.MS.Domain.Entities.SC.PT; using APT.MS.Domain.Entities.SC.SC; using APT.MS.Domain.Entities.SE; -using APT.MS.Domain.Entities.TI; -using APT.MS.Domain.Entities.TL; - #region AccidentEventDamageObject-致害物 - /// - /// 致害物 - /// - [Route("api/AE/AccidentEventDamageObject")] - public partial class AccidentEventDamageObjectController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_AE_ACCIDENT_EVENT_DAMAGE_OBJECT entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region AccidentEventReasonType-事故事件原因类别 - /// - /// 事故事件原因类别 - /// - [Route("api/AE/AccidentEventReasonType")] - public partial class AccidentEventReasonTypeController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_AE_ACCIDENT_EVENT_REASON_TYPE entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region AccidentEventReport-事故事件上报 - /// - /// 事故事件上报 - /// - [Route("api/AE/AccidentEventReport")] - public partial class AccidentEventReportController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_AE_ACCIDENT_EVENT_REPORT entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region AccidentEventReportFile-事故现场 - /// - /// 事故现场 - /// - [Route("api/AE/AccidentEventReportFile")] - public partial class AccidentEventReportFileController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_AE_ACCIDENT_EVENT_REPORT_FILE entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region AccidentEventReportListKind-导航属性: 事故种类 - /// - /// 导航属性: 事故种类 - /// - [Route("api/AE/AccidentEventReportListKind")] - public partial class AccidentEventReportListKindController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_AE_ACCIDENT_EVENT_REPORT_LIST_KIND entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region AccidentEventSurveyAdmPunishment-导航属性: 行政处罚信息 - /// - /// 导航属性: 行政处罚信息 - /// - [Route("api/AE/AccidentEventSurveyAdmPunishment")] - public partial class AccidentEventSurveyAdmPunishmentController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_AE_ACCIDENT_EVENT_SURVEY_ADM_PUNISHMENT entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region AccidentEventSurveyCasualties-导航属性: 人员伤亡信息 - /// - /// 导航属性: 人员伤亡信息 - /// - [Route("api/AE/AccidentEventSurveyCasualties")] - public partial class AccidentEventSurveyCasualtiesController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_AE_ACCIDENT_EVENT_SURVEY_CASUALTIES entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region AccidentEventSurveyDamageObject-致害物 - /// - /// 致害物 - /// - [Route("api/AE/AccidentEventSurveyDamageObject")] - public partial class AccidentEventSurveyDamageObjectController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_AE_ACCIDENT_EVENT_SURVEY_DAMAGE_OBJECT entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region AccidentEventSurveyEquipmentLoss-导航属性: 设备设施损失信息 - /// - /// 导航属性: 设备设施损失信息 - /// - [Route("api/AE/AccidentEventSurveyEquipmentLoss")] - public partial class AccidentEventSurveyEquipmentLossController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_AE_ACCIDENT_EVENT_SURVEY_EQUIPMENT_LOSS entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region AccidentEventSurveyFile-调查报告附件 - /// - /// 调查报告附件 - /// - [Route("api/AE/AccidentEventSurveyFile")] - public partial class AccidentEventSurveyFileController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_AE_ACCIDENT_EVENT_SURVEY_FILE entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region AccidentEventSurveyForensics-导航属性: 调查取证资料 - /// - /// 导航属性: 调查取证资料 - /// - [Route("api/AE/AccidentEventSurveyForensics")] - public partial class AccidentEventSurveyForensicsController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_AE_ACCIDENT_EVENT_SURVEY_FORENSICS entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region AccidentEventSurveyForensicsFile-导航属性: 调查取证资料附件 - /// - /// 导航属性: 调查取证资料附件 - /// - [Route("api/AE/AccidentEventSurveyForensicsFile")] - public partial class AccidentEventSurveyForensicsFileController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_AE_ACCIDENT_EVENT_SURVEY_FORENSICS_FILE entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region AccidentEventSurveyPfile-公示文件附件 - /// - /// 公示文件附件 - /// - [Route("api/AE/AccidentEventSurveyPfile")] - public partial class AccidentEventSurveyPfileController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_AE_ACCIDENT_EVENT_SURVEY_PFILE entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region AccidentEventSurveyReason-导航属性: 事故事件原因 - /// - /// 导航属性: 事故事件原因 - /// - [Route("api/AE/AccidentEventSurveyReason")] - public partial class AccidentEventSurveyReasonController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_AE_ACCIDENT_EVENT_SURVEY_REASON entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region AccidentEventSurveyReasonType-事故事件原因类别 - /// - /// 事故事件原因类别 - /// - [Route("api/AE/AccidentEventSurveyReasonType")] - public partial class AccidentEventSurveyReasonTypeController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_AE_ACCIDENT_EVENT_SURVEY_REASON_TYPE entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region AccidentEventSurveyResult-事故事件调查结果填报表 - /// - /// 事故事件调查结果填报表 - /// - [Route("api/AE/AccidentEventSurveyResult")] - public partial class AccidentEventSurveyResultController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_AE_ACCIDENT_EVENT_SURVEY_RESULT entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region AccidentKind-事故种类 - /// - /// 事故种类 - /// - [Route("api/AE/AccidentKind")] - public partial class AccidentKindController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_AE_ACCIDENT_KIND entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region AccidentLevelDays-事故等级结案限制 - /// - /// 事故等级结案限制 - /// - [Route("api/AE/AccidentLevelDays")] - public partial class AccidentLevelDaysController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_AE_ACCIDENT_LEVEL_DAYS entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region AccidentSurveyTeamDeputyLeader-事故调查小组副组长 - /// - /// 事故调查小组副组长 - /// - [Route("api/AE/AccidentSurveyTeamDeputyLeader")] - public partial class AccidentSurveyTeamDeputyLeaderController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_AE_ACCIDENT_SURVEY_TEAM_DEPUTY_LEADER entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region AccidentSurveyTeamMember-事故调查小组成员 - /// - /// 事故调查小组成员 - /// - [Route("api/AE/AccidentSurveyTeamMember")] - public partial class AccidentSurveyTeamMemberController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_AE_ACCIDENT_SURVEY_TEAM_MEMBER entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region AccidentSurveyTeamMembers-导航属性: 事故调查小组组员 - /// - /// 导航属性: 事故调查小组组员 - /// - [Route("api/AE/AccidentSurveyTeamMembers")] - public partial class AccidentSurveyTeamMembersController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_AE_ACCIDENT_SURVEY_TEAM_MEMBERS entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region AccidentType-事故类型 - /// - /// 事故类型 - /// - [Route("api/AE/AccidentType")] - public partial class AccidentTypeController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_AE_ACCIDENT_TYPE entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region DosetDepartmentUser-触发设置 - /// - /// 触发设置 - /// - [Route("api/AE/DosetDepartmentUser")] - public partial class DosetDepartmentUserController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_AE_DOSET_DEPARTMENT_USER entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region InvestigationRecord-勘察记录 - /// - /// 勘察记录 - /// - [Route("api/AE/InvestigationRecord")] - public partial class InvestigationRecordController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_AE_INVESTIGATION_RECORD entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region InvestigationRecordAccFiles-勘察记录表事故照片 - /// - /// 勘察记录表事故照片 - /// - [Route("api/AE/InvestigationRecordAccFiles")] - public partial class InvestigationRecordAccFilesController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_AE_INVESTIGATION_RECORD_ACC_FILES entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region InvestigationRecordAskUsers-询问人员中间表 - /// - /// 询问人员中间表 - /// - [Route("api/AE/InvestigationRecordAskUsers")] - public partial class InvestigationRecordAskUsersController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_AE_INVESTIGATION_RECORD_ASK_USERS entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region InvestigationRecordChartFiles-勘察记录表绘制事故图 - /// - /// 勘察记录表绘制事故图 - /// - [Route("api/AE/InvestigationRecordChartFiles")] - public partial class InvestigationRecordChartFilesController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_AE_INVESTIGATION_RECORD_CHART_FILES entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region InvestigationRecordInvestigationUsers-勘察人员中间表 - /// - /// 勘察人员中间表 - /// - [Route("api/AE/InvestigationRecordInvestigationUsers")] - public partial class InvestigationRecordInvestigationUsersController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_AE_INVESTIGATION_RECORD_INVESTIGATION_USERS entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region InvestigationRecordNotesFiles-勘察记录表现场笔录 - /// - /// 勘察记录表现场笔录 - /// - [Route("api/AE/InvestigationRecordNotesFiles")] - public partial class InvestigationRecordNotesFilesController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_AE_INVESTIGATION_RECORD_NOTES_FILES entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region SafetaskFinish-安全任务完成分析 + #region SafetaskFinish-安全任务完成分析 /// /// 安全任务完成分析 /// @@ -16630,111 +13581,6 @@ using APT.MS.Domain.Entities.TL; return WitEntity(null, filter); } - } - #endregion - #region Ogconfig-组织保障模块基础配置 - /// - /// 组织保障模块基础配置 - /// - [Route("api/OG/Ogconfig")] - public partial class OgconfigController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_OG_OGCONFIG entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - } #endregion #region Related-相关方基本信息表 @@ -18310,111 +15156,6 @@ using APT.MS.Domain.Entities.TL; return WitEntity(null, filter); } - } - #endregion - #region PersonnelTypeEnum-任命人员类型 - /// - /// 任命人员类型 - /// - [Route("api/OG/PersonnelTypeEnum")] - public partial class PersonnelTypeEnumController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_OG_PERSONNEL_TYPE_ENUM entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - } #endregion #region RelatedEstimateItem-评估项目表 @@ -18730,3471 +15471,6 @@ using APT.MS.Domain.Entities.TL; return WitEntity(null, filter); } - } - #endregion - #region StandardizationReviewResultEnum-评审结论 - /// - /// 评审结论 - /// - [Route("api/OG/StandardizationReviewResultEnum")] - public partial class StandardizationReviewResultEnumController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_OG_STANDARDIZATION_REVIEW_RESULT_ENUM entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region ExamNoticeOccHazard-体检通知人员职业危害中间表 - /// - /// 体检通知人员职业危害中间表 - /// - [Route("api/OH/ExamNoticeOccHazard")] - public partial class ExamNoticeOccHazardController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_OH_EXAM_NOTICE_OCC_HAZARD entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region ExamResultOccHazard-体检结果职业危害中间表 - /// - /// 体检结果职业危害中间表 - /// - [Route("api/OH/ExamResultOccHazard")] - public partial class ExamResultOccHazardController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_OH_EXAM_RESULT_OCC_HAZARD entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region HazardMonitorJob-职业危害监测 - /// - /// 职业危害监测 - /// - [Route("api/OH/HazardMonitorJob")] - public partial class HazardMonitorJobController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_OH_HAZARD_MONITOR_JOB entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region HazardMonitorJobDetail-职业危害监测明细 - /// - /// 职业危害监测明细 - /// - [Route("api/OH/HazardMonitorJobDetail")] - public partial class HazardMonitorJobDetailController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_OH_HAZARD_MONITOR_JOB_DETAIL entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region HazardMonitorJobFile-监测作业附件 - /// - /// 监测作业附件 - /// - [Route("api/OH/HazardMonitorJobFile")] - public partial class HazardMonitorJobFileController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_OH_HAZARD_MONITOR_JOB_FILE entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region HazardMonitorJobReport-职业危害监测报告 - /// - /// 职业危害监测报告 - /// - [Route("api/OH/HazardMonitorJobReport")] - public partial class HazardMonitorJobReportController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_OH_HAZARD_MONITOR_JOB_REPORT entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region HazardMonitorJobReportFile-职业危害监测报告附件 - /// - /// 职业危害监测报告附件 - /// - [Route("api/OH/HazardMonitorJobReportFile")] - public partial class HazardMonitorJobReportFileController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_OH_HAZARD_MONITOR_JOB_REPORT_FILE entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region HazardMonitorResult-监测结果统计与分析 - /// - /// 监测结果统计与分析 - /// - [Route("api/OH/HazardMonitorResult")] - public partial class HazardMonitorResultController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_OH_HAZARD_MONITOR_RESULT entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region HazardMonitorResultSum-监测结果统计与分析汇总 - /// - /// 监测结果统计与分析汇总 - /// - [Route("api/OH/HazardMonitorResultSum")] - public partial class HazardMonitorResultSumController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_OH_HAZARD_MONITOR_RESULT_SUM entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region HazardMonitorRule-职业危害因素监测规则 - /// - /// 职业危害因素监测规则 - /// - [Route("api/OH/HazardMonitorRule")] - public partial class HazardMonitorRuleController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_OH_HAZARD_MONITOR_RULE entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region HazardMonitorType-危害监测类型 - /// - /// 危害监测类型 - /// - [Route("api/OH/HazardMonitorType")] - public partial class HazardMonitorTypeController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_OH_HAZARD_MONITOR_TYPE entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region HealthEaxmCycleOccHazardMid-体检周期职业危害中间表 - /// - /// 体检周期职业危害中间表 - /// - [Route("api/OH/HealthEaxmCycleOccHazardMid")] - public partial class HealthEaxmCycleOccHazardMidController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_OH_HEALTH_EAXM_CYCLE_OCC_HAZARD_MID entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region HealthEaxmCyclePostMid-体检周期岗位中间表 - /// - /// 体检周期岗位中间表 - /// - [Route("api/OH/HealthEaxmCyclePostMid")] - public partial class HealthEaxmCyclePostMidController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_OH_HEALTH_EAXM_CYCLE_POST_MID entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region HealthEaxmPlanDepartment-体检计划上报部门中间表 - /// - /// 体检计划上报部门中间表 - /// - [Route("api/OH/HealthEaxmPlanDepartment")] - public partial class HealthEaxmPlanDepartmentController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_OH_HEALTH_EAXM_PLAN_DEPARTMENT entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region HealthExamBatch-体检批次 - /// - /// 体检批次 - /// - [Route("api/OH/HealthExamBatch")] - public partial class HealthExamBatchController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_OH_HEALTH_EXAM_BATCH entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region HealthExamBatchDepartment-体检批次部门 - /// - /// 体检批次部门 - /// - [Route("api/OH/HealthExamBatchDepartment")] - public partial class HealthExamBatchDepartmentController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_OH_HEALTH_EXAM_BATCH_DEPARTMENT entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region HealthExamCycle-体检周期表 - /// - /// 体检周期表 - /// - [Route("api/OH/HealthExamCycle")] - public partial class HealthExamCycleController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_OH_HEALTH_EXAM_CYCLE entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region HealthExamCycleDepartmentinfo-体检周期部门信息 - /// - /// 体检周期部门信息 - /// - [Route("api/OH/HealthExamCycleDepartmentinfo")] - public partial class HealthExamCycleDepartmentinfoController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_OH_HEALTH_EXAM_CYCLE_DEPARTMENTINFO entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region HealthExamCycleDepartmentinfoPost-体检周期岗位 - /// - /// 体检周期岗位 - /// - [Route("api/OH/HealthExamCycleDepartmentinfoPost")] - public partial class HealthExamCycleDepartmentinfoPostController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_OH_HEALTH_EXAM_CYCLE_DEPARTMENTINFO_POST entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region HealthExamNotice-体检通知 - /// - /// 体检通知 - /// - [Route("api/OH/HealthExamNotice")] - public partial class HealthExamNoticeController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_OH_HEALTH_EXAM_NOTICE entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region HealthExamNoticeFile-体检通知附件 - /// - /// 体检通知附件 - /// - [Route("api/OH/HealthExamNoticeFile")] - public partial class HealthExamNoticeFileController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_OH_HEALTH_EXAM_NOTICE_FILE entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region HealthExamNoticeRegister-体检人员安排 - /// - /// 体检人员安排 - /// - [Route("api/OH/HealthExamNoticeRegister")] - public partial class HealthExamNoticeRegisterController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_OH_HEALTH_EXAM_NOTICE_REGISTER entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region HealthExamOccDisease-职业病名称 - /// - /// 职业病名称 - /// - [Route("api/OH/HealthExamOccDisease")] - public partial class HealthExamOccDiseaseController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_OH_HEALTH_EXAM_OCC_DISEASE entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region HealthExamOccDiseaseSeverityLevel-职业病严重等级 - /// - /// 职业病严重等级 - /// - [Route("api/OH/HealthExamOccDiseaseSeverityLevel")] - public partial class HealthExamOccDiseaseSeverityLevelController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_OH_HEALTH_EXAM_OCC_DISEASE_SEVERITY_LEVEL entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region HealthExamPlan-体检计划表 - /// - /// 体检计划表 - /// - [Route("api/OH/HealthExamPlan")] - public partial class HealthExamPlanController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_OH_HEALTH_EXAM_PLAN entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region HealthExamPlanRegister-体检员工登记表 - /// - /// 体检员工登记表 - /// - [Route("api/OH/HealthExamPlanRegister")] - public partial class HealthExamPlanRegisterController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_OH_HEALTH_EXAM_PLAN_REGISTER entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region HealthExamPlanRegisterHazard-体检周期职业危害中间表 - /// - /// 体检周期职业危害中间表 - /// - [Route("api/OH/HealthExamPlanRegisterHazard")] - public partial class HealthExamPlanRegisterHazardController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_OH_HEALTH_EXAM_PLAN_REGISTER_HAZARD entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region HealthExamResult-体检结果 - /// - /// 体检结果 - /// - [Route("api/OH/HealthExamResult")] - public partial class HealthExamResultController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_OH_HEALTH_EXAM_RESULT entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region HealthExamResultImport-体检结果导入 - /// - /// 体检结果导入 - /// - [Route("api/OH/HealthExamResultImport")] - public partial class HealthExamResultImportController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_OH_HEALTH_EXAM_RESULT_IMPORT entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region HealthExamResultOccDisease-职业病信息 - /// - /// 职业病信息 - /// - [Route("api/OH/HealthExamResultOccDisease")] - public partial class HealthExamResultOccDiseaseController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_OH_HEALTH_EXAM_RESULT_OCC_DISEASE entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region HealthExamResultOccDiseaseFile-职业病信息附件 - /// - /// 职业病信息附件 - /// - [Route("api/OH/HealthExamResultOccDiseaseFile")] - public partial class HealthExamResultOccDiseaseFileController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_OH_HEALTH_EXAM_RESULT_OCC_DISEASE_FILE entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region Runconfig-职业卫生基础配置 - /// - /// 职业卫生基础配置 - /// - [Route("api/OH/Runconfig")] - public partial class RunconfigController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_OH_RUNCONFIG entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - } #endregion #region AssessmentItem-考评项目表 @@ -44255,7986 +37531,6 @@ using APT.MS.Domain.Entities.TL; return WitEntity(null, filter); } - } - #endregion - #region CostType-费用类型 - /// - /// 费用类型 - /// - [Route("api/TI/CostType")] - public partial class CostTypeController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TI_COST_TYPE entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region InsuranceClaimRecord-工伤保险理赔信息记录 - /// - /// 工伤保险理赔信息记录 - /// - [Route("api/TI/InsuranceClaimRecord")] - public partial class InsuranceClaimRecordController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TI_INSURANCE_CLAIM_RECORD entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region InsuranceClaimRecordFile-工伤保险理赔信息记录附件 - /// - /// 工伤保险理赔信息记录附件 - /// - [Route("api/TI/InsuranceClaimRecordFile")] - public partial class InsuranceClaimRecordFileController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TI_INSURANCE_CLAIM_RECORD_FILE entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region InsuranceRecord-参保记录 - /// - /// 参保记录 - /// - [Route("api/TI/InsuranceRecord")] - public partial class InsuranceRecordController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TI_INSURANCE_RECORD entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region InsuranceRecordFile-参保记录表附件 - /// - /// 参保记录表附件 - /// - [Route("api/TI/InsuranceRecordFile")] - public partial class InsuranceRecordFileController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TI_INSURANCE_RECORD_FILE entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region InsuranceUserRecord-参保人员表 - /// - /// 参保人员表 - /// - [Route("api/TI/InsuranceUserRecord")] - public partial class InsuranceUserRecordController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TI_INSURANCE_USER_RECORD entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region Plan-安全科技计划 - /// - /// 安全科技计划 - /// - [Route("api/TI/Plan")] - public partial class PlanController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TI_PLAN entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region PlanFile-安全科技计划附件 - /// - /// 安全科技计划附件 - /// - [Route("api/TI/PlanFile")] - public partial class PlanFileController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TI_PLAN_FILE entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region PlanRange-安全科技计划范围 - /// - /// 安全科技计划范围 - /// - [Route("api/TI/PlanRange")] - public partial class PlanRangeController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TI_PLAN_RANGE entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region PlanRangeType-所属范围 - /// - /// 所属范围 - /// - [Route("api/TI/PlanRangeType")] - public partial class PlanRangeTypeController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TI_PLAN_RANGE_TYPE entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region PlanSource-安全科技计划来源 - /// - /// 安全科技计划来源 - /// - [Route("api/TI/PlanSource")] - public partial class PlanSourceController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TI_PLAN_SOURCE entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region PlanSourceType-项目来源 - /// - /// 项目来源 - /// - [Route("api/TI/PlanSourceType")] - public partial class PlanSourceTypeController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TI_PLAN_SOURCE_TYPE entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region Project-立项申请/任务书上报 - /// - /// 立项申请/任务书上报 - /// - [Route("api/TI/Project")] - public partial class ProjectController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TI_PROJECT entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region ProjectCheck-项目结题验收 - /// - /// 项目结题验收 - /// - [Route("api/TI/ProjectCheck")] - public partial class ProjectCheckController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TI_PROJECT_CHECK entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region ProjectCheckFile-项目附件 - /// - /// 项目附件 - /// - [Route("api/TI/ProjectCheckFile")] - public partial class ProjectCheckFileController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TI_PROJECT_CHECK_FILE entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region ProjectCheckWffile-项目附件 - /// - /// 项目附件 - /// - [Route("api/TI/ProjectCheckWffile")] - public partial class ProjectCheckWffileController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TI_PROJECT_CHECK_WFFILE entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region ProjectFile-项目附件 - /// - /// 项目附件 - /// - [Route("api/TI/ProjectFile")] - public partial class ProjectFileController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TI_PROJECT_FILE entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region ProjectMoney-项目经费管理 - /// - /// 项目经费管理 - /// - [Route("api/TI/ProjectMoney")] - public partial class ProjectMoneyController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TI_PROJECT_MONEY entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region ProjectMoneyDetail-项目经费子项 - /// - /// 项目经费子项 - /// - [Route("api/TI/ProjectMoneyDetail")] - public partial class ProjectMoneyDetailController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TI_PROJECT_MONEY_DETAIL entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region ProjectMoneyDetailFile-项目附件 - /// - /// 项目附件 - /// - [Route("api/TI/ProjectMoneyDetailFile")] - public partial class ProjectMoneyDetailFileController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TI_PROJECT_MONEY_DETAIL_FILE entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region ProjectRange-项目范围 - /// - /// 项目范围 - /// - [Route("api/TI/ProjectRange")] - public partial class ProjectRangeController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TI_PROJECT_RANGE entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region ProjectSource-项目来源 - /// - /// 项目来源 - /// - [Route("api/TI/ProjectSource")] - public partial class ProjectSourceController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TI_PROJECT_SOURCE entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region ProjectWffile-项目审批附件 - /// - /// 项目审批附件 - /// - [Route("api/TI/ProjectWffile")] - public partial class ProjectWffileController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TI_PROJECT_WFFILE entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region SafePdtCostRecord-安全生产费用使用记录表 - /// - /// 安全生产费用使用记录表 - /// - [Route("api/TI/SafePdtCostRecord")] - public partial class SafePdtCostRecordController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TI_SAFE_PDT_COST_RECORD entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region SafePdtCostRecordFile-安全生产费用使用记录附件 - /// - /// 安全生产费用使用记录附件 - /// - [Route("api/TI/SafePdtCostRecordFile")] - public partial class SafePdtCostRecordFileController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TI_SAFE_PDT_COST_RECORD_FILE entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region SafePdtCostRecordType-安全生产费用使用记录表 - /// - /// 安全生产费用使用记录表 - /// - [Route("api/TI/SafePdtCostRecordType")] - public partial class SafePdtCostRecordTypeController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TI_SAFE_PDT_COST_RECORD_TYPE entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region Back-回采计划 - /// - /// 回采计划 - /// - [Route("api/TL/Back")] - public partial class BackController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TL_BACK entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region BackDetail-回采计划明细 - /// - /// 回采计划明细 - /// - [Route("api/TL/BackDetail")] - public partial class BackDetailController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TL_BACK_DETAIL entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region BackDetailUser-值班人员 - /// - /// 值班人员 - /// - [Route("api/TL/BackDetailUser")] - public partial class BackDetailUserController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TL_BACK_DETAIL_USER entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region BackFile-回采计划 附件 - /// - /// 回采计划 附件 - /// - [Route("api/TL/BackFile")] - public partial class BackFileController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TL_BACK_FILE entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region BackRecord-回采记录 - /// - /// 回采记录 - /// - [Route("api/TL/BackRecord")] - public partial class BackRecordController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TL_BACK_RECORD entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region BackRecordUser-值班人员 - /// - /// 值班人员 - /// - [Route("api/TL/BackRecordUser")] - public partial class BackRecordUserController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TL_BACK_RECORD_USER entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region BackRequire-制定要求 - /// - /// 制定要求 - /// - [Route("api/TL/BackRequire")] - public partial class BackRequireController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TL_BACK_REQUIRE entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region Caculate-调洪演算报告 - /// - /// 调洪演算报告 - /// - [Route("api/TL/Caculate")] - public partial class CaculateController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TL_CACULATE entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region CaculateFile-调洪演算报告 - /// - /// 调洪演算报告 - /// - [Route("api/TL/CaculateFile")] - public partial class CaculateFileController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TL_CACULATE_FILE entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region FileSum-文件集合 - /// - /// 文件集合 - /// - [Route("api/TL/FileSum")] - public partial class FileSumController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TL_FILE_SUM entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region FileSumFile-监测作业附件 - /// - /// 监测作业附件 - /// - [Route("api/TL/FileSumFile")] - public partial class FileSumFileController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TL_FILE_SUM_FILE entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region HighCheck-隐蔽工程验收管理 - /// - /// 隐蔽工程验收管理 - /// - [Route("api/TL/HighCheck")] - public partial class HighCheckController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TL_HIGH_CHECK entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region HighCheckFile-隐蔽工程验收记录 - /// - /// 隐蔽工程验收记录 - /// - [Route("api/TL/HighCheckFile")] - public partial class HighCheckFileController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TL_HIGH_CHECK_FILE entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region Out-尾矿库注销 - /// - /// 尾矿库注销 - /// - [Route("api/TL/Out")] - public partial class OutController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TL_OUT entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region OutFile-尾矿库注销文件 - /// - /// 尾矿库注销文件 - /// - [Route("api/TL/OutFile")] - public partial class OutFileController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TL_OUT_FILE entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region PlanSet-制定任务 - /// - /// 制定任务 - /// - [Route("api/TL/PlanSet")] - public partial class PlanSetController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TL_PLAN_SET entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region ProjectFinish-安全设施竣工验收 - /// - /// 安全设施竣工验收 - /// - [Route("api/TL/ProjectFinish")] - public partial class ProjectFinishController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TL_PROJECT_FINISH entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region ProjectFinishFile-隐蔽工程验收管理 附件 - /// - /// 隐蔽工程验收管理 附件 - /// - [Route("api/TL/ProjectFinishFile")] - public partial class ProjectFinishFileController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TL_PROJECT_FINISH_FILE entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region ProjectHight-隐蔽工程验收管理 - /// - /// 隐蔽工程验收管理 - /// - [Route("api/TL/ProjectHight")] - public partial class ProjectHightController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TL_PROJECT_HIGHT entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region ProjectHightFile-隐蔽工程验收管理 附件 - /// - /// 隐蔽工程验收管理 附件 - /// - [Route("api/TL/ProjectHightFile")] - public partial class ProjectHightFileController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TL_PROJECT_HIGHT_FILE entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region ProjectIntroduce-上游工程情况说明 - /// - /// 上游工程情况说明 - /// - [Route("api/TL/ProjectIntroduce")] - public partial class ProjectIntroduceController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TL_PROJECT_INTRODUCE entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region ProjectIntroduceFile-上游工程情况说明 - /// - /// 上游工程情况说明 - /// - [Route("api/TL/ProjectIntroduceFile")] - public partial class ProjectIntroduceFileController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TL_PROJECT_INTRODUCE_FILE entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region ProjectRecord-单项工程记录管理 - /// - /// 单项工程记录管理 - /// - [Route("api/TL/ProjectRecord")] - public partial class ProjectRecordController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TL_PROJECT_RECORD entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region ProjectRecordCheckFile-监测作业附件 - /// - /// 监测作业附件 - /// - [Route("api/TL/ProjectRecordCheckFile")] - public partial class ProjectRecordCheckFileController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TL_PROJECT_RECORD_CHECK_FILE entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region ProjectRecordFile-施工记录 - /// - /// 施工记录 - /// - [Route("api/TL/ProjectRecordFile")] - public partial class ProjectRecordFileController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TL_PROJECT_RECORD_FILE entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region ProjectRecordWatchFile-监测作业附件 - /// - /// 监测作业附件 - /// - [Route("api/TL/ProjectRecordWatchFile")] - public partial class ProjectRecordWatchFileController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TL_PROJECT_RECORD_WATCH_FILE entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region ProjectSlopebank-子坝坡岸处理 - /// - /// 子坝坡岸处理 - /// - [Route("api/TL/ProjectSlopebank")] - public partial class ProjectSlopebankController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TL_PROJECT_SLOPEBANK entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region ProjectSlopebankFile-子坝坡岸处理 附件 - /// - /// 子坝坡岸处理 附件 - /// - [Route("api/TL/ProjectSlopebankFile")] - public partial class ProjectSlopebankFileController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TL_PROJECT_SLOPEBANK_FILE entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region ProjectSlopebankProjFile-隐蔽工程 附件 - /// - /// 隐蔽工程 附件 - /// - [Route("api/TL/ProjectSlopebankProjFile")] - public partial class ProjectSlopebankProjFileController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TL_PROJECT_SLOPEBANK_PROJ_FILE entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region ProjectSlopebankSubFile-坡岸处理 附件 - /// - /// 坡岸处理 附件 - /// - [Route("api/TL/ProjectSlopebankSubFile")] - public partial class ProjectSlopebankSubFileController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TL_PROJECT_SLOPEBANK_SUB_FILE entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region QualityCheck-子坝质量验收 - /// - /// 子坝质量验收 - /// - [Route("api/TL/QualityCheck")] - public partial class QualityCheckController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TL_QUALITY_CHECK entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region QualityCheckFile-子坝质量验收记录 - /// - /// 子坝质量验收记录 - /// - [Route("api/TL/QualityCheckFile")] - public partial class QualityCheckFileController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TL_QUALITY_CHECK_FILE entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region Require-制定要求 - /// - /// 制定要求 - /// - [Route("api/TL/Require")] - public partial class RequireController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TL_REQUIRE entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region Tailing-尾矿库名称 - /// - /// 尾矿库名称 - /// - [Route("api/TL/Tailing")] - public partial class TailingController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TL_TAILING entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region WatchDayly-日常观测 - /// - /// 日常观测 - /// - [Route("api/TL/WatchDayly")] - public partial class WatchDaylyController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TL_WATCH_DAYLY entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region WatchDaylyDetail-日常观测明细 - /// - /// 日常观测明细 - /// - [Route("api/TL/WatchDaylyDetail")] - public partial class WatchDaylyDetailController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TL_WATCH_DAYLY_DETAIL entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region WatchDaylyDetailUser-日常观测明细 - /// - /// 日常观测明细 - /// - [Route("api/TL/WatchDaylyDetailUser")] - public partial class WatchDaylyDetailUserController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TL_WATCH_DAYLY_DETAIL_USER entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region WatchLine-浸润线观测 - /// - /// 浸润线观测 - /// - [Route("api/TL/WatchLine")] - public partial class WatchLineController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TL_WATCH_LINE entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region WatchLineDetail-浸润线观测明细 - /// - /// 浸润线观测明细 - /// - [Route("api/TL/WatchLineDetail")] - public partial class WatchLineDetailController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TL_WATCH_LINE_DETAIL entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region WatchLineDetailUser-浸润线观测 - /// - /// 浸润线观测 - /// - [Route("api/TL/WatchLineDetailUser")] - public partial class WatchLineDetailUserController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TL_WATCH_LINE_DETAIL_USER entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region WatchLinePoint-浸润线观测配置 - /// - /// 浸润线观测配置 - /// - [Route("api/TL/WatchLinePoint")] - public partial class WatchLinePointController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TL_WATCH_LINE_POINT entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region WatchMove-位移观测 - /// - /// 位移观测 - /// - [Route("api/TL/WatchMove")] - public partial class WatchMoveController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TL_WATCH_MOVE entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region WatchMoveDetail-位移观测明细 - /// - /// 位移观测明细 - /// - [Route("api/TL/WatchMoveDetail")] - public partial class WatchMoveDetailController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TL_WATCH_MOVE_DETAIL entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region WatchMoveDetailUser-位移观测明细 - /// - /// 位移观测明细 - /// - [Route("api/TL/WatchMoveDetailUser")] - public partial class WatchMoveDetailUserController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TL_WATCH_MOVE_DETAIL_USER entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region WatchMovePoint-位移观测配置 - /// - /// 位移观测配置 - /// - [Route("api/TL/WatchMovePoint")] - public partial class WatchMovePointController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TL_WATCH_MOVE_POINT entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region WatchPercent-坡比观测 - /// - /// 坡比观测 - /// - [Route("api/TL/WatchPercent")] - public partial class WatchPercentController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TL_WATCH_PERCENT entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region WatchPercentDetail-坡比观测明细 - /// - /// 坡比观测明细 - /// - [Route("api/TL/WatchPercentDetail")] - public partial class WatchPercentDetailController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TL_WATCH_PERCENT_DETAIL entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region WatchPercentDetailUser-坡比观测明细 - /// - /// 坡比观测明细 - /// - [Route("api/TL/WatchPercentDetailUser")] - public partial class WatchPercentDetailUserController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TL_WATCH_PERCENT_DETAIL_USER entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region WatchPlanSet-人工观测 触发规则设置表 - /// - /// 人工观测 触发规则设置表 - /// - [Route("api/TL/WatchPlanSet")] - public partial class WatchPlanSetController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TL_WATCH_PLAN_SET entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - - } - #endregion - #region WatchSum-人工观测汇总表 - /// - /// 人工观测汇总表 - /// - [Route("api/TL/WatchSum")] - public partial class WatchSumController : AuthorizeApiController - { - /// - /// 查询所有数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Entities")] - public JsonActionResult> Entities([FromBody]KeywordFilter filter) - { - return WitEntities(null, filter); - } - /// - /// 排序查询所有数据 - /// - /// 过滤实体 - /// - - [HttpPost, Route("OrderEntities")] - public JsonActionResult> OrderEntities([FromBody]KeywordFilter filter) - { - return WitOrderEntities(null, filter); - } - /// - /// 分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("Paged")] - public PagedActionResult Paged([FromBody]KeywordPageFilter pageFilter) - { - return WitPaged(null, pageFilter); - } - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPaged")] - public PagedActionResult OrderPaged([FromBody]KeywordPageFilter pageFilter) - { - return WitOrderPaged(null, pageFilter); - } - /// - /// 根据主键删除数据 - /// - /// 主键ID - /// - [HttpGet, Route("Delete")] - public JsonActionResult Delete(string id) - { - return WitRealDelete(id); - } - - /// - /// 更新或新增数据 - /// - /// 对象实体 - /// - [HttpPost, Route("Update")] - public JsonActionResult Update([FromBody]T_TL_WATCH_SUM entity) - { - return WitUpdate(entity); - } - - /// - /// 批量更新 - /// - /// 对象实体 - /// - [HttpPost, Route("BatchUpdate")] - public JsonActionResult BatchUpdate([FromBody] BatchUpdateModel entity) - { - return WitBantchUpdate(entity?.Data); - } - - /// - /// 批量删除数据 - /// - /// id字符串(id用逗号分隔) - /// - [HttpGet, Route("BatchDelete")] - public JsonActionResult BatchDelete(string ids) - { - return WitRealBatchDelete(ids); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("Get")] - public JsonActionResult Get([FromBody] KeywordFilter filter) - { - return WitEntity(null, filter); - } - } #endregion } diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TIController/TIInsuranceClaimRecordController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TIController/TIInsuranceClaimRecordController.cs deleted file mode 100644 index 07558ea..0000000 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TIController/TIInsuranceClaimRecordController.cs +++ /dev/null @@ -1,96 +0,0 @@ -using APT.BaseData.Domain.Enums.PF; -using APT.BaseData.Domain.IServices; -using APT.BaseData.Domain.IServices.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.SC; -using APT.MS.Domain.Entities.TI; -using APT.MS.Domain.Enums; -using APT.Utility; -using Microsoft.AspNetCore.Mvc; -using System; -using System.Collections.Generic; -using System.Linq; - -namespace APT.SC.WebApi.Controllers.Api.SC -{ - [Route("api/TI/TIInsuranceClaimRecord")] - public class TIInsuranceClaimRecordController : AuthorizeApiController - { - IFMFlowPermitService MFlowPermitService { get; set; } - IPFApproveCallBackService ApproveCallBackService { get; set; } - public TIInsuranceClaimRecordController(IFMFlowPermitService mFlowPermitService, IPFApproveCallBackService approveCallBackService) - { - MFlowPermitService = mFlowPermitService; - ApproveCallBackService = approveCallBackService; - } - - /// - /// 工伤保险理赔信息 修改 - /// - /// - /// - [HttpPost, Route("FullUpdate")] - public JsonActionResult FullUpdate([FromBody] T_TI_INSURANCE_CLAIM_RECORD entity) - { - return SafeExecute(() => - { - if (entity.STATUS != PFStandardStatus.Draft && entity.STATUS != PFStandardStatus.Archived) - { - throw new Exception("获取操作方式有误!"); - } - var Files = entity.Nav_Files; - entity.Nav_Files = null; - - if (entity.DEPARTMENT_ID == null) - { - throw new Exception("请选择发起部门!"); - } - if (entity.USER_ID == null) - { - throw new Exception("请选择用户!"); - } - if (entity.ACCIDENT_ID == null) - { - throw new Exception("请选择事故事件!"); - } - if (entity.STATUS == PFStandardStatus.Archived) - { - if (entity.INJURE_TIME == null) - { - throw new Exception("请选择受伤日期!"); - } - else if (entity.INJURE_TIME.Value.Date > DateTime.Now.Date) - { - throw new Exception("受伤日期不能大于今天!"); - } - if (entity.INJURE_DETAIL == null) - { - throw new Exception("请填写受伤部位/疾病名称!"); - } - if (entity.IN_HOSPITAL == null) - { - throw new Exception("请选择是否住院!"); - } - if (entity.HOSPITAL == null) - { - throw new Exception("请填写就诊医院!"); - } - } - if (entity.CREATER_ID.HasValue && entity.CREATER_ID != APT.Infrastructure.Api.AppContext.CurrentSession.UserID) - { - throw new Exception("您不是添加人,不能修改此工伤保险理赔信息!"); - } - - this.UnifiedCommit(() => - { - if (entity != null) - UpdateEntityNoCommit(entity); //保存主表 - if (Files != null && Files.Any())//附件 - BantchSaveEntityNoCommit(Files); - }); - - return true; - }); - } - } -} \ No newline at end of file diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TIController/TIInsuranceRecordController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TIController/TIInsuranceRecordController.cs deleted file mode 100644 index bec2aae..0000000 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TIController/TIInsuranceRecordController.cs +++ /dev/null @@ -1,753 +0,0 @@ -using APT.BaseData.Domain.ApiModel; -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums; -using APT.BaseData.Domain.Enums.PF; -using APT.BaseData.Domain.IServices; -using APT.BaseData.Domain.IServices.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.SC; -using APT.MS.Domain.Entities.TI; -using APT.MS.Domain.Enums; -using APT.Utility; -using Microsoft.AspNetCore.Mvc; -using System; -using System.Collections.Generic; -using System.Data; -using System.IO; -using System.Linq; - -namespace APT.SC.WebApi.Controllers.Api.SC -{ - [Route("api/TI/TIInsuranceRecord")] - public class TIInsuranceRecordController : AuthorizeApiController - { - IFMFlowPermitService MFlowPermitService { get; set; } - IPFApproveCallBackService ApproveCallBackService { get; set; } - public TIInsuranceRecordController(IFMFlowPermitService mFlowPermitService, IPFApproveCallBackService approveCallBackService) - { - MFlowPermitService = mFlowPermitService; - ApproveCallBackService = approveCallBackService; - } - - /// - /// 参保记录表 修改 - /// - /// - /// - [HttpPost, Route("FullUpdate")] - public JsonActionResult FullUpdate([FromBody] T_TI_INSURANCE_RECORD entity) - { - return SafeExecute(() => - { - if (entity.STATUS != PFStandardStatus.Draft && entity.STATUS != PFStandardStatus.Archived) - throw new Exception("获取操作方式有误!"); - - var files = entity.Nav_Files;//附件 - entity.Nav_Files = null; - - var UserList = entity.Nav_UserList;//参保人员 - entity.Nav_UserList = null; - if (entity.STATUS != PFStandardStatus.Archived) - { - if (entity.TYPE == 0) - throw new Exception("请选择参保类型!"); - if (UserList == null || !UserList.Any()) - throw new Exception("请新增参保人员!"); - } - List listUserIns = new List(); - T_TI_INSURANCE_USER_RECORD modelCheck = null; - try - { - List listUserCode = UserList.Where(e => e.Nav_User != null).Select(e => e.Nav_User.CODE).ToList(); - listUserIns = GetEntities(e => !e.IS_DELETED && e.INSURE_STATUS.HasValue && e.INSURE_STATUS == TIInsuranceStatusEnum.normal && listUserCode.Contains(e.Nav_User.CODE), null, new string[] { "Nav_User" }).ToList(); - } - catch - { - } - List listRep = new List(); - - if (entity.STATUS == PFStandardStatus.Archived) - { - DateTime dtNowYM = Convert.ToDateTime(DateTime.Now.ToString("yyyy-MM-01 00:00:00")); - List listRowNO = new List(); - List listRowNOWrond = new List(); - foreach (var item in UserList) - { - if (!item.INSURE_STATUS.HasValue) - { - //如果 参保状态为空 或者停缴时间 大于 当前 时间 为参保状态 - // 否则为 停保状态 - if (!item.STOP_TIME.HasValue || item.STOP_TIME.Value >= DateTime.Now.Date) - { - item.INSURE_STATUS = TIInsuranceStatusEnum.normal; - } - else - { - item.INSURE_STATUS = TIInsuranceStatusEnum.StopPaying; - } - } - - if (item.INSURE_TIME == null) - { - //参保日期为空 - listRowNO.Add(item.ROW_NO); - continue; - } - if (item.INSURE_TIME.HasValue && item.STOP_TIME.HasValue && item.INSURE_TIME.Value > item.STOP_TIME.Value) - { - //参保日期大于停缴日期 - listRowNOWrond.Add(item.ROW_NO); - continue; - } - //显示整数,不满一月的按一个月算 参保状态正常时,当前月 - 参保时间;参保状态停缴时,停缴时间 - 参保时间 - - if (listRowNO.Count < 1 && listRowNOWrond.Count < 1) - { - //如果数据都符合 计算 参保期限 - item.TYPE = entity.TYPE;//参保类型 - item.OPERATEYEARMON = dtNowYM;//参保年月 - if (item.STOP_TIME.HasValue && item.STOP_TIME.Value < DateTime.Now) - { - //有停缴时间 或者 停缴时间小于当前时间 - item.INSURE_DURATION = (item.STOP_TIME.Value.Year - item.INSURE_TIME.Value.Year) * 12 + (item.STOP_TIME.Value.Month - item.INSURE_TIME.Value.Month); - } - else - { - //没有停缴时间 用当前时间算 - item.INSURE_DURATION = (dtNowYM.Year - item.INSURE_TIME.Value.Year) * 12 + (dtNowYM.Month - item.INSURE_TIME.Value.Month); - } - } - if (item.INSURE_STATUS == TIInsuranceStatusEnum.normal) - { - modelCheck = listUserIns.Find(e => e.USER_ID == item.USER_ID && e.TYPE == item.TYPE); - if (modelCheck != null) - { - listRep.Add(item.ROW_NO + ":" + modelCheck.Nav_User.CODE + "【" + modelCheck.Nav_User.NAME + "】" + modelCheck.TYPE.GetDescription()); - } - } - } - if (listRowNO.Count > 0) - throw new Exception("行" + string.Join(",", listRowNO) + "参保日期不能为空!"); - if (listRowNOWrond.Count > 0) - throw new Exception("行" + string.Join(",", listRowNO) + "参保日期不能大于停缴日期!"); - if (listRep.Count > 0) - throw new Exception(string.Join(",", listRep) + "参保信息在库中已存在!"); - } - - this.UnifiedCommit(() => - { - if (entity != null) - UpdateEntityNoCommit(entity); //保存主表 - if (files != null && files.Any())//附件 - BantchSaveEntityNoCommit(files); - if (UserList != null && UserList.Any())//参保人员信息 - BantchSaveEntityNoCommit(UserList); - }); - - return true; - }); - } - - /// - /// 修改参保月份 每月执行一次为佳 不然每次都会去判断 - /// - public void ChangeINSURE_DURATION() - { - DateTime dtYM = Convert.ToDateTime(DateTime.Now.ToString("yyyy-MM-01 00:00:00")); - //正常状态 并且这个月没有修改信息 - var liscChange = GetEntities(e => e.INSURE_STATUS.HasValue && e.INSURE_STATUS == TIInsuranceStatusEnum.normal && e.OPERATEYEARMON.HasValue && e.OPERATEYEARMON != dtYM, null, null); - - if (liscChange != null && liscChange.Any()) - { - DateTime dtNow = DateTime.Now; - foreach (var item in liscChange) - { - item.OPERATEYEARMON = dtYM; - if (item.STOP_TIME.HasValue && item.STOP_TIME < dtNow) - { - item.INSURE_DURATION = item.INSURE_DURATION = (item.STOP_TIME.Value.Year - item.INSURE_TIME.Value.Year) * 12 + (item.STOP_TIME.Value.Month - item.INSURE_TIME.Value.Month); - } - else - { - item.INSURE_DURATION = (dtYM.Year - item.INSURE_TIME.Value.Year) * 12 + (dtYM.Month - item.INSURE_TIME.Value.Month); - } - } - - //修改参保月份 - this.UnifiedCommit(() => - { - BantchSaveEntityNoCommit(liscChange); - }); - } - } - - - - /// - /// 排序分页查询数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPagedUserRecord")] - public PagedActionResult OrderPagedUserRecord([FromBody] KeywordPageFilter pageFilter) - { - return SafeGetPagedData(delegate (PagedActionResult result) - { - List listorder = new List(); - listorder.Add(new DataOrder() { Field = "Nav_User.NAME", Order = DbOrder.ASC }); - pageFilter.Orders = listorder; - PagedActionResult orderPageEntities = GetOrderPageEntities(e => !e.IS_DELETED && e.RECORD_ID.HasValue && !e.Nav_Record.IS_DELETED && e.Nav_Record.STATUS == PFStandardStatus.Archived, pageFilter, null); - result.Data = orderPageEntities.Data; - result.TotalCount = orderPageEntities.TotalCount; - }); - - - } - - - /// - /// 员工参保信息库 列表数据 - /// - /// 分页过滤实体 - /// - [HttpPost, Route("OrderPagedUserRecords")] - public PagedActionResult OrderPagedUserRecords([FromBody] KeywordPageFilter pageFilter) - { - return SafeGetPagedData(delegate (PagedActionResult result) - { - var user = GetEntity(APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value, new string[] { "Nav_Department" }); - PagedActionResult orderPageEntities = null; - - string PageCode = string.Empty; - if (pageFilter.FilterGroup.Rules.Count > 0) - { - var rules = pageFilter.FilterGroup.Rules.ToList(); - for (int i = pageFilter.FilterGroup.Rules.Count - 1; i > -1; i--) - { - if (rules[i].Field == "CODE") - { - PageCode = rules[i].Value.ToString(); - pageFilter.FilterGroup.Rules.Remove(rules[i]); - } - } - } - - if (user.Nav_Department.DEPARTMENT_STATUS == (int)FMDepartmentStatus.安全部门 || user.CODE.StartsWith("admin") || PageCode == "TI017")//录入界面 超级管理员 安全部门 能看全部 - { - List listorder = new List(); - listorder.Add(new DataOrder() { Field = "Nav_User.NAME", Order = DbOrder.ASC }); - pageFilter.Orders = listorder; - - //安环部看所有 - orderPageEntities = GetOrderPageEntities(e => e.FORM_ID == null || e.Nav_Record.STATUS == PFStandardStatus.Archived, pageFilter, null); - } - else - { - //只能看自己的 - orderPageEntities = GetOrderPageEntities(e => e.USER_ID.HasValue && e.USER_ID == APT.Infrastructure.Api.AppContext.CurrentSession.UserID && (e.FORM_ID == null || e.Nav_Record.STATUS == PFStandardStatus.Archived), pageFilter, null); - } - if (orderPageEntities.Data != null && orderPageEntities.Data.Any()) - { - DateTime dtNowDate = DateTime.Now.Date; - foreach (var item in orderPageEntities.Data) - { - GetINSURE_DURATION(item, dtNowDate); - } - } - result.Data = orderPageEntities.Data; - result.TotalCount = orderPageEntities.TotalCount; - }); - } - - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("GetUserRecord")] - public JsonActionResult GetUserRecord([FromBody] KeywordFilter filter) - { - return SafeExecute(() => - { - T_TI_INSURANCE_USER_RECORD model = GetEntity(null, filter, null); - GetINSURE_DURATION(model, DateTime.Now); - return model; - }); - } - - - /// - /// 获取 参保期限 月 - /// - /// - /// - private void GetINSURE_DURATION(T_TI_INSURANCE_USER_RECORD item, DateTime dtNowDate) - { - if (item.STOP_TIME.HasValue) - { - if (item.INSURE_TIME.HasValue) - { - item.INSURE_DURATION = (item.STOP_TIME.Value.Year - item.INSURE_TIME.Value.Year) * 12 + (item.STOP_TIME.Value.Month - item.INSURE_TIME.Value.Month) + 1; - } - else - { - item.INSURE_DURATION = 0; - } - } - else - { - if (item.INSURE_TIME.HasValue) - { - item.INSURE_DURATION = (dtNowDate.Year - item.INSURE_TIME.Value.Year) * 12 + (dtNowDate.Month - item.INSURE_TIME.Value.Month) + 1; - } - else - { - item.INSURE_DURATION = 0; - } - } - } - - /// - /// 参保记录表 修改 - /// - /// - /// - [HttpPost, Route("FullUpdateUser")] - public JsonActionResult FullUpdateUser([FromBody] T_TI_INSURANCE_USER_RECORD entity) - { - return SafeExecute(() => - { - if (entity.INSURE_STATUS == null) - { - throw new Exception("请选择参保状态!"); - } - if (!entity.INSURE_TIME.HasValue) - { - throw new Exception("请选择参保日期!"); - } - if (entity.INSURE_STATUS == TIInsuranceStatusEnum.StopPaying && !entity.STOP_TIME.HasValue) - { - throw new Exception("请选择停缴日期!"); - } - if (entity.STOP_TIME.HasValue && entity.STOP_TIME.Value < entity.INSURE_TIME.Value) - { - throw new Exception("停缴日期不能小于参保日期!"); - } - GetINSURE_DURATION(entity, DateTime.Now); - - //修改参保月份 - this.UnifiedCommit(() => - { - if (entity != null) - UpdateEntityNoCommit(entity); - }); - return true; - }); - } - - - #region 自定义数据导入 - - - /// - /// 获取导入数据 - /// 参考 [Route("api/PF/Import")] - /// - /// - [HttpPost, Route("GetImportData")] - public JsonActionResult GetImportData() - { - return SafeExecute(() => - { - var httpRequest = this.HttpContext.Request; - string orgIdStr = httpRequest.Form["OrgId"];// 获取 组织 - Guid? orgId = null; - if (!string.IsNullOrEmpty(orgIdStr)) - orgId = new Guid(orgIdStr); - else - return null; - ImportDataModel result = new ImportDataModel(); - var dic = Path.Combine(System.AppContext.BaseDirectory, "tempImportFiles"); - if (!Directory.Exists(dic)) - Directory.CreateDirectory(dic); - foreach (var key in httpRequest.Form.Files) // 文件键 - { - var postedFile = key; // 获取文件键对应的文件对象 - string filePath = Path.Combine(dic, DateTime.Now.ToString("yyyy_MM_dd_hh_mm_ss") + "_" + postedFile.FileName); - Byte[] fileData = new Byte[postedFile.Length]; - Stream sr = postedFile.OpenReadStream();//创建数据流对象 - sr.Read(fileData, 0, (int)postedFile.Length); - using (FileStream fs = new FileStream(filePath, FileMode.CreateNew)) - { - fs.Write(fileData, 0, fileData.Length); - fs.Flush(); - fs.Close(); - } - - //获取数据 - Dictionary startRowIndexs = new Dictionary(); - startRowIndexs.Add(0, 2);//根据Excel格式数据赋值 - var dataTables = FileUtils.ReadExcelByOledb(filePath, startRowIndexs); - string Msg = string.Empty; - - bool isOK = InsertModel(dataTables.Tables[0], orgId.Value, ref Msg); - - try - { - System.IO.File.Delete(filePath); - } - catch { } - - result.Data = Msg; - result.MessageList = new List { Msg }; - } - - return result; - }); - } - - /// - /// 数据插入 每个人 每种险 有效数据最多一条 - /// - /// - /// - /// - /// - /// - /// - public bool InsertModel(DataTable dtSource, Guid OrgID, ref string Msg) - { - if (dtSource == null || dtSource.Rows.Count < 1) - { - Msg = "未获取到导入数据"; - throw new Exception(Msg); - } - - //每个人 每种险 有效数据最多一条 - // 工号 参保类型 参保日期 参保状态 停缴日期 - //5列数据 - - Dictionary> dicIndexEmpty = new Dictionary>();//数据不能未空 - List listCodeRepIndex = new List();//重复工号行 - Dictionary> dicCodeType = new Dictionary>(); - List listUserCode = new List();//工号集合 - - #region 数据判断 - - //第一行是标题 跳过 - int rowAll = dtSource.Rows.Count; - string strUserCode = string.Empty; - for (int i = 0; i < rowAll; i++) - { - #region 不能为空 - - strUserCode = dtSource.Rows[i][0].ToString().Trim(); - for (int j = 0; j < 3; j++)//参保类型 工号 参保日期 参保状态 停缴日期 - { - List listi = null; - if (string.IsNullOrEmpty(dtSource.Rows[i][j].ToString().Trim())) - { - if (listi == null) - { - listi = new List(); - } - listi.Add(j); - } - if (listi == null) - continue; - dicIndexEmpty.Add(i + 1, listi);//有空的 直接添加 - } - - #endregion - - if (!listUserCode.Contains(strUserCode)) - { - listUserCode.Add(strUserCode);//所有导入员工 - } - - if (dicCodeType.ContainsKey(strUserCode)) - { - List listType = dicCodeType[strUserCode]; - if (listType.Contains(dtSource.Rows[i][1].ToString())) - { - //数据重复 工号 参保类型 - listCodeRepIndex.Add(i + 1); - } - } - } - - #endregion - - #region 提示 - - // 行:1,列:2、3、4;行:2,列:1 不能为空! - if (dicIndexEmpty.Count > 0) - { - int colIndex = 0; - foreach (var item in dicIndexEmpty) - { - Msg += "行:" + item.Key + ",列:"; - colIndex = 0; - foreach (var itemVal in item.Value) - { - Msg += (colIndex > 0 ? "、" : "") + itemVal; - colIndex++; - } - Msg += ";"; - } - Msg = Msg.Substring(0, Msg.Length - 1) + "不能为空!"; - } - - //工号重复 - string strCodeRep = ""; - if (listCodeRepIndex.Count > 0) - { - strCodeRep = "行:" + string.Join(',', listCodeRepIndex.ToArray()) + "工号、参保类型重复!"; - } - - if (!string.IsNullOrEmpty(strCodeRep)) - { - Msg = Msg + strCodeRep; - } - if (!string.IsNullOrEmpty(Msg)) - { - throw new Exception(Msg); - } - - #endregion - - #region 数据插入 - - Guid? LoginID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID; - List listUserRecord = new List(); - var listReordT = GetEntities(e => !e.IS_DELETED && e.INSURE_STATUS == TIInsuranceStatusEnum.normal && e.USER_ID.HasValue && listUserCode.Contains(e.Nav_User.CODE), null, new string[] { "Nav_User" }); - if (listReordT != null && listReordT.Any()) - { - listUserRecord = listReordT.ToList(); - } - List listUserReord = new List(); - DateTime dtNow = DateTime.Now; - DateTime dtNowYM = Convert.ToDateTime(dtNow.ToString("yyyy-MM-01")); - var listUser = GetEntities(e => listUserCode.Contains(e.CODE), null, new string[] { "Nav_Department", "Nav_Person.Nav_Post" }).ToList(); - - List listCode = new List(); - T_TI_INSURANCE_USER_RECORD modelCheck = null; - - listUserCode.Clear(); //数据清空 - - for (int i = 0; i < rowAll; i++) - { - var userThis = listUser.Find(e => e.CODE == dtSource.Rows[i][0].ToString()); - // 工号 参保类型 参保日期 参保状态 停缴日期 - if (userThis == null) - { - //没找到人 - listCode.Add(dtSource.Rows[i][0].ToString()); - } - else - { - T_TI_INSURANCE_USER_RECORD modelTemp = new T_TI_INSURANCE_USER_RECORD(); - modelTemp.ID = Guid.NewGuid(); - modelTemp.RECORD_ID = null; - modelTemp.TYPE = GetInsuranceTypeVal(dtSource.Rows[i][1]);//参保类型 - - modelCheck = listUserRecord.FirstOrDefault(e => e.USER_ID == userThis.ID && e.TYPE == modelTemp.TYPE); - if (modelCheck == null) - { - //没有重复数据 - modelTemp.DEPARTMENTNAME = userThis.Nav_Department?.NAME; - modelTemp.USERPOSTNAME = userThis.Nav_Person.Nav_Post.NAME; - modelTemp.USER_ID = userThis.ID; - modelTemp.INSURE_TIME = GetTime(dtSource.Rows[i][2]);//参保日期 - modelTemp.INSURE_STATUS = GetInsuranceStatusVal(dtSource.Rows[i][3]); - modelTemp.STOP_TIME = GetTime(dtSource.Rows[i][4]);//停缴日期 - modelTemp.INSURE_DURATION = GetINSURE_DURATION(dtNow, modelTemp.INSURE_TIME, modelTemp.STOP_TIME); - modelTemp.IS_DELETED = false; - modelTemp.ORG_ID = OrgID; - //modelTemp.ENTITY_ORG_TPYE =; - //modelTemp.FORM_ID =; - //modelTemp.FLOW_STATUS =; - //modelTemp.FLOW_SEND_STATUS =; - //modelTemp.FLOW_ID =; - modelTemp.CREATE_TIME = dtNow; - modelTemp.CREATER_ID = LoginID; - modelTemp.MODIFIER_ID = LoginID; - modelTemp.ROW_NO = i; - modelTemp.OPERATEYEARMON = dtNowYM; - listUserReord.Add(modelTemp); - } - else - { - //数据库有重复数据 - listUserCode.Add(modelCheck.Nav_User.CODE + "(" + modelCheck.Nav_User.NAME + ")"); - } - - } - } - - #endregion - - - if (listCode.Count > 0 || listUserCode.Count > 0) - { - Msg = ""; - if (listCode.Count > 0) - { - Msg = "以下工号未找到人员信息:" + string.Join(',', listCode); - } - if (listUserCode.Count > 0) - { - Msg += " 以下导入数据与系统重复:" + string.Join(',', listUserCode); - } - throw new Exception(Msg); - } - else - { - this.UnifiedCommit(() => - { - if (listUserReord != null && listUserReord.Any()) - this.BantchSaveEntityNoCommit(listUserReord); - }); - } - - Msg = "导入成功!"; - return true; - } - - - /// - /// 获取 时间 - /// - /// - /// - private DateTime? GetTime(object strTime) - { - if (strTime != null && !string.IsNullOrEmpty(strTime.ToString())) - { - try - { - return Convert.ToDateTime(strTime); - } - catch - { - return null; - } - } - return null; - } - - /// - /// 获取 参保类型 - /// - /// - /// - private TIInsuranceTypeEnum? GetInsuranceTypeVal(object objEnum) - { - if (objEnum != null && !string.IsNullOrEmpty(objEnum.ToString())) - { - TIInsuranceTypeEnum? result = null; - switch (objEnum.ToString()) - { - case "安全生产责任险": - result = TIInsuranceTypeEnum.SafeProdIns; - break; - case "工伤保险": - result = TIInsuranceTypeEnum.InductrialIns; - break; - case "养老保险": - result = TIInsuranceTypeEnum.EndowmentIns; - break; - case "医疗保险": - result = TIInsuranceTypeEnum.MedicalIns; - break; - case "失业保险": - result = TIInsuranceTypeEnum.JobLoseIns; - break; - case "生育保险": - result = TIInsuranceTypeEnum.BirthIns; - break; - case "团体意外险": - result = TIInsuranceTypeEnum.GroupIns; - break; - default: - break; - } - return result; - } - else - { - return null; - } - } - - /// - /// 获取 参保状态 - /// - /// - /// - private TIInsuranceStatusEnum? GetInsuranceStatusVal(object objEnum) - { - if (objEnum != null && !string.IsNullOrEmpty(objEnum.ToString())) - { - TIInsuranceStatusEnum? result = null; - switch (objEnum.ToString()) - { - case "停缴": - result = TIInsuranceStatusEnum.StopPaying; - break; - case "正常": - default: - result = TIInsuranceStatusEnum.normal; - break; - } - return result; - } - else - { - return null; - } - } - - /// - /// - /// - /// - /// - /// - /// - /// - private int? GetINSURE_DURATION(DateTime dtNow, DateTime? INSURE_TIME, DateTime? STOP_TIME) - { - int INSURE_DURATION = 0; - if (STOP_TIME.HasValue) - { - if (INSURE_TIME.HasValue) - { - INSURE_DURATION = (STOP_TIME.Value.Year - INSURE_TIME.Value.Year) * 12 + (STOP_TIME.Value.Month - INSURE_TIME.Value.Month) + 1; - } - else - { - INSURE_DURATION = 0; - } - } - else - { - if (INSURE_TIME.HasValue) - { - INSURE_DURATION = (dtNow.Year - INSURE_TIME.Value.Year) * 12 + (dtNow.Month - INSURE_TIME.Value.Month) + 1; - } - else - { - INSURE_DURATION = 0; - } - } - - return INSURE_DURATION; - } - - - #endregion - - } -} \ No newline at end of file diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TIController/TIPlanCheckController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TIController/TIPlanCheckController.cs deleted file mode 100644 index d3e718a..0000000 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TIController/TIPlanCheckController.cs +++ /dev/null @@ -1,163 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Enums.PF; -using APT.BaseData.Domain.IServices; -using APT.BaseData.Domain.IServices.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.SC; -using APT.MS.Domain.Entities.TI; -using APT.MS.Domain.Enums; -using APT.Utility; -using Microsoft.AspNetCore.Mvc; -using System; -using System.Collections.Generic; -using System.Linq; - -namespace APT.SC.WebApi.Controllers.Api.SC -{ - [Route("api/TI/TIProjectCheck")] - public class TIPlanCheckController : AuthorizeApiController - { - IFMFlowPermitService MFlowPermitService { get; set; } - IPFApproveCallBackService ApproveCallBackService { get; set; } - IFMNotificationTaskService NotificationTaskService { get; set; } - public TIPlanCheckController(IFMFlowPermitService mFlowPermitService, IPFApproveCallBackService approveCallBackService, IFMNotificationTaskService notificationTaskService) - { - MFlowPermitService = mFlowPermitService; - ApproveCallBackService = approveCallBackService; - NotificationTaskService = notificationTaskService; - } - - /// - /// 安全生产费用使用 修改 - /// - /// - /// - [HttpPost, Route("FullUpdate")] - public JsonActionResult FullUpdate([FromBody] T_TI_PROJECT_CHECK entity) - { - return SafeExecute(() => - { - if (entity.STATUS != PFStandardStatus.Draft && entity.STATUS != PFStandardStatus.Archived) - { - throw new Exception("获取操作方式有误!"); - } - - if (entity.BEGINTIME.HasValue) - { - entity.BEGINTIME = DateTime.Now; - //if (entity.BEGINTIME.Value >= DateTime.Now) - //{ - // throw new Exception("发起时间不能大于当前时间!"); - //} - } - if (entity.DEPARTMENT_ID == null) - { - throw new Exception("请选择发起部门!"); - } - if (entity.USER_ID == null) - { - throw new Exception("请选择发起人!"); - } - - if (entity.PROJECT_ID == Guid.Empty) - { - throw new Exception("请选择项目编号!"); - } - if (entity.STATUS == PFStandardStatus.Archived) - { - if (entity.RESULT == 0) - { - throw new Exception("请选择验收结果!"); - } - } - var files = entity.Nav_Files;//附件 - entity.Nav_Files = null; - var WFFiles = entity.Nav_WFFiles; - entity.Nav_WFFiles = null; - T_TI_PROJECT proj = null; - T_TI_PROJECT_MONEY modelMoney = null; - T_FM_NOTIFICATION_TASK task = null; - T_FM_NOTIFICATION_TASK taskEnd = null; - if (entity.STATUS == PFStandardStatus.Archived && entity.PROJECT_ID != Guid.Empty) - { - proj = GetEntity(entity.PROJECT_ID, new string[] { "Nav_Manger" }); - if (proj == null) - { - throw new Exception("获取立项申请/任务书上报失败!"); - } - else if (proj.ISCHECK) - { - throw new Exception("该项目已结题验收!"); - } - else - { - proj.ISCHECK = true; - } - if (files == null || !files.Any()) - { - throw new Exception("请上传项目成果附件!"); - } - - if (WFFiles == null || !WFFiles.Any()) - { - throw new Exception("请上传审批附件!"); - } - if (proj.MANAGER_ID.HasValue) - { - var modelCheck = GetEntity(e => e.PROJECT_ID == proj.ID && !e.IS_DELETED); - if (modelCheck == null) - { - modelMoney = new T_TI_PROJECT_MONEY(); - modelMoney.ID = Guid.NewGuid(); - modelMoney.BEGINTIME = DateTime.Now; - modelMoney.DEPARTMENT_ID = proj.Nav_Manger.DEPARTMENT_ID; - modelMoney.USER_ID = proj.MANAGER_ID;//MANAGER_ID - modelMoney.PROJECT_ID = proj.ID; - modelMoney.STATUS = PFStandardStatus.Draft; - modelMoney.IS_DELETED = false; - modelMoney.ORG_ID = entity.ORG_ID; - //modelMoney.ENTITY_ORG_TPYE =; - //modelMoney.FORM_ID =; - //modelMoney.FLOW_STATUS =; - //modelMoney.FLOW_SEND_STATUS =; - //modelMoney.FLOW_ID =; - //modelMoney.CREATE_TIME =; - //modelMoney.MODIFY_TIME =; - //modelMoney.CREATER_ID =; - //modelMoney.MODIFIER_ID =; - - task = NotificationTaskService.InsertUserNoticeTaskModel("项目经费管理", modelMoney.ID, entity.ORG_ID, proj.MANAGER_ID.Value, proj.Nav_Manger.NAME, DateTime.Now, (int)FMNoticeTypeEnum.消息, "TI016", BaseData.Domain.Enums.FMTASKTYPE.TI_MONEY); - } - } - - if (entity.TaskID!=Guid.Empty) - { - taskEnd = NotificationTaskService.GetEntityTask(entity.TaskID, "TI014_SHOWPRINT"); - } - } - - this.UnifiedCommit(() => - { - if (entity != null) - UpdateEntityNoCommit(entity); //保存主表 NoCommit - if (WFFiles != null && WFFiles.Any())//审批附件 - BantchSaveEntityNoCommit(WFFiles); - if (files != null && files.Any())//项目成果附件 - BantchSaveEntityNoCommit(files); - if (proj != null)//项目修改 - UpdateEntityNoCommit(proj); - if (modelMoney != null) //项目经费管理 - AddEntityNoCommit(modelMoney); - if (task != null) //给项目负责人发送待办 - AddEntityNoCommit(task); - if (taskEnd != null) //给项目负责人发送待办 - UpdateEntityNoCommit(taskEnd); - }); - - return true; - }); - } - - - } -} \ No newline at end of file diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TIController/TIPlanController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TIController/TIPlanController.cs deleted file mode 100644 index e1e0151..0000000 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TIController/TIPlanController.cs +++ /dev/null @@ -1,168 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.BaseData.Domain.IServices; -using APT.BaseData.Domain.IServices.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.SC; -using APT.MS.Domain.Entities.TI; -using APT.MS.Domain.Enums; -using APT.Utility; -using Microsoft.AspNetCore.Mvc; -using System; -using System.Collections.Generic; -using System.Linq; - -namespace APT.SC.WebApi.Controllers.Api.SC -{ - [Route("api/TI/TIPlan")] - public class TIPlanController : AuthorizeApiController - { - IFMFlowPermitService MFlowPermitService { get; set; } - IPFApproveCallBackService ApproveCallBackService { get; set; } - IFMNotificationTaskService NotificationTaskService { get; set; } - public TIPlanController(IFMFlowPermitService mFlowPermitService, IPFApproveCallBackService approveCallBackService, IFMNotificationTaskService notificationTaskService) - { - MFlowPermitService = mFlowPermitService; - ApproveCallBackService = approveCallBackService; - NotificationTaskService = notificationTaskService; - } - - /// - /// 安全生产费用使用 修改 - /// - /// - /// - [HttpPost, Route("FullUpdate")] - public JsonActionResult FullUpdate([FromBody] T_TI_PLAN entity) - { - return SafeExecute(() => - { - if (entity.BEGINTIME.HasValue) - { - if (entity.BEGINTIME.Value >= DateTime.Now) - { - throw new Exception("使用日期不能大于当前时间!"); - } - } - if (entity.DEPARTMENT_ID == null) - { - throw new Exception("请选择发起部门!"); - } - if (entity.USER_ID == null) - { - throw new Exception("请选择发起人!"); - } - if (entity.YEAR == 0) - { - throw new Exception("请选择计划年度!"); - } - else if (entity.YEAR < DateTime.Now.Year) - { - throw new Exception("计划年度不能小于当年!"); - } - - - var files = entity.Nav_Files;//附件 - entity.Nav_Files = null; - if (files == null || !files.Any()) - { - throw new Exception("请上传附件!"); - } - var listProject = entity.Nav_ListProject; - entity.Nav_ListProject = null; - if (listProject == null || !listProject.Any()) - { - throw new Exception("请添加计划明细!"); - } - var Ranges = entity.Nav_Ranges; - entity.Nav_Ranges = null; - var Sources = entity.Nav_Sources; - entity.Nav_Sources = null; - if (Ranges != null && Ranges.Any()) - { - foreach (var range in Ranges) - { - range.Nav_Range = null; - } - } - if (Sources != null && Sources.Any()) - { - foreach (var source in Sources) - { - source.Nav_Source = null; - } - } - if (entity.STATUS == PFStandardStatus.Archived) - { - int row = 1; - foreach (var item in listProject) - { - if (string.IsNullOrEmpty(item.CODE)) - { - throw new Exception("行【" + row + "】项目编号不能为空!"); - } - if (string.IsNullOrEmpty(item.NAME)) - { - throw new Exception("行【" + row + "】项目名称不能为空!"); - } - if (!item.MONEY.HasValue) - { - throw new Exception("行【" + row + "】申报经费不能为空!"); - } - if (!item.MANAGER_ID.HasValue) - { - throw new Exception("请选择行【" + row + "】的项目负责人!"); - } - row++; - } - } - foreach (var item in listProject) - { - item.YEAR = entity.YEAR; - item.PLAN_ID = entity.ID; - item.STATUS = PFStandardStatus.Draft; - } - - #region 给每个明细对应负责人发送待办 - - List listTask = null; - if (entity.STATUS == PFStandardStatus.Archived) - { - var listUserID = listProject.Where(e => e.MANAGER_ID.HasValue).Select(e => e.MANAGER_ID); - var listUser = GetEntities(e => listUserID.Contains(e.ID), null); - T_FM_USER modelUser = null; - listTask = new List(); - foreach (var item in listProject) - { - modelUser = listUser.FirstOrDefault(e => e.ID == item.MANAGER_ID); - if (modelUser != null) - { - listTask.Add(NotificationTaskService.InsertUserNoticeTaskModel("立项申请/任务书上报", item.ID, item.ORG_ID.Value, item.MANAGER_ID.Value, modelUser.NAME, DateTime.Now, 0, "TI012", BaseData.Domain.Enums.FMTASKTYPE.TI_PROJECT)); - } - } - } - - #endregion - - this.UnifiedCommit(() => - { - if (entity != null) - UpdateEntityNoCommit(entity); //保存主表 NoCommit - if (Ranges != null && Ranges.Any())//费用类型 - BantchSaveEntityNoCommit(Ranges); - if (Sources != null && Sources.Any())//费用类型 - BantchSaveEntityNoCommit(Sources); - if (files != null && files.Any())//附件 - BantchSaveEntityNoCommit(files); - if (listProject != null && listProject.Any())//附件 - BantchSaveEntityNoCommit(listProject); - if (listTask != null && listTask.Any())//给 项目负责人发送 立项申请/任务书上报 - BantchSaveEntityNoCommit(listTask); - }); - - return true; - }); - } - } -} \ No newline at end of file diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TIController/TIProjectController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TIController/TIProjectController.cs deleted file mode 100644 index 9d91c54..0000000 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TIController/TIProjectController.cs +++ /dev/null @@ -1,210 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.BaseData.Domain.IServices; -using APT.BaseData.Domain.IServices.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.SC; -using APT.MS.Domain.Entities.TI; -using APT.MS.Domain.Enums; -using APT.Utility; -using Microsoft.AspNetCore.Mvc; -using System; -using System.Collections.Generic; -using System.Linq; - -namespace APT.SC.WebApi.Controllers.Api.SC -{ - [Route("api/TI/TIProject")] - public class TIProjectController : AuthorizeApiController - { - IFMFlowPermitService MFlowPermitService { get; set; } - IPFApproveCallBackService ApproveCallBackService { get; set; } - IFMNotificationTaskService NotificationTaskService { get; set; } - public TIProjectController(IFMFlowPermitService mFlowPermitService, IPFApproveCallBackService approveCallBackService, IFMNotificationTaskService notificationTaskService) - { - MFlowPermitService = mFlowPermitService; - ApproveCallBackService = approveCallBackService; - NotificationTaskService = notificationTaskService; - } - - /// - /// 立项申请/任务书上报 修改 - /// - /// - /// - [HttpPost, Route("FullUpdate")] - public JsonActionResult FullUpdate([FromBody] T_TI_PROJECT entity) - { - return SafeExecute(() => - { - if (entity.STATUS != PFStandardStatus.Draft && entity.STATUS != PFStandardStatus.Archived) - { - throw new Exception("获取操作方式有误!"); - } - - //if (entity.BEGINTIME.HasValue) - //{ - // if (entity.BEGINTIME.Value >= DateTime.Now) - // { - // throw new Exception("使用日期不能大于当前时间!"); - // } - //} - //if (entity.DEPARTMENT_ID == null) - //{ - // throw new Exception("请选择发起部门!"); - //} - //if (entity.USER_ID == null) - //{ - // throw new Exception("请选择发起人!"); - //} - entity.BEGINTIME = DateTime.Now; - entity.DEPARTMENT_ID = APT.Infrastructure.Api.AppContext.CurrentSession.DepartmentID; - entity.USER_ID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID; - if (entity.YEAR == 0) - { - throw new Exception("请选择计划年度!"); - } - else if (entity.YEAR < DateTime.Now.Year) - { - throw new Exception("计划年度不能小于当年!"); - } - - var files = entity.Nav_Files;//附件 - entity.Nav_Files = null; - //if (files == null || !files.Any()) - //{ - // throw new Exception("请上传立项附件!"); - //} - var WFFiles = entity.Nav_WFFiles; - entity.Nav_WFFiles = null; - var Ranges = entity.Nav_Ranges; - entity.Nav_Ranges = null; - var Sources = entity.Nav_Sources; - entity.Nav_Sources = null; - if (Ranges != null && Ranges.Any()) - { - foreach (var range in Ranges) - { - range.Nav_Range = null; - } - } - if (Sources != null && Sources.Any()) - { - foreach (var source in Sources) - { - source.Nav_Source = null; - } - } - - T_FM_NOTIFICATION_TASK taskEnd = null; - T_FM_NOTIFICATION_TASK taskCheck = null; - T_TI_PROJECT_CHECK modelProjectCheck = null; - - if (entity.STATUS == PFStandardStatus.Archived) - { - if (string.IsNullOrEmpty(entity.CODE)) - { - throw new Exception("项目编号不能为空!"); - } - - var checkCode = GetEntity(e => e.ID != entity.ID && e.CODE == entity.CODE); - if (checkCode != null) - { - throw new Exception("项目编号不能重复!"); - } - if (string.IsNullOrEmpty(entity.NAME)) - { - throw new Exception("项目名称不能为空!"); - } - if (!entity.MANAGER_ID.HasValue) - { - throw new Exception("请选择项目负责人!"); - } - if (Sources == null || !Sources.Any()) - { - throw new Exception("请选择项目来源!"); - } - if (Ranges == null || !Ranges.Any()) - { - throw new Exception("请选择所属范围!"); - } - if (files == null || !files.Any()) - { - throw new Exception("请上传立项附件!"); - } - if (WFFiles == null || !WFFiles.Any()) - { - throw new Exception("请上传审批附件!"); - } - string UserName = string.Empty; - if (entity.TaskID != Guid.Empty) - { - taskEnd = NotificationTaskService.GetEntityTask(entity.TaskID, "TI012_SHOWPRINT"); - UserName = taskEnd.USER_NAME; - } - - UserName = GetEntity(entity.MANAGER_ID.Value)?.NAME; - - #region TI014 项目结题验收 - - modelProjectCheck = new T_TI_PROJECT_CHECK(); - modelProjectCheck.ID = Guid.NewGuid(); - modelProjectCheck.DEPARTMENT_ID = entity.DEPARTMENT_ID; - modelProjectCheck.USER_ID = entity.USER_ID; - modelProjectCheck.PROJECT_ID = entity.ID; - modelProjectCheck.ORG_ID = entity.ORG_ID; - modelProjectCheck.MONEY = entity.MONEY; - modelProjectCheck.DEPARTMENT_ID = entity.DEPARTMENT_ID; - modelProjectCheck.USER_ID = entity.USER_ID; - //modelProjectCheck.RESULT = 0; - - - taskCheck = NotificationTaskService.InsertUserNoticeTaskModel("项目结题验收", modelProjectCheck.ID, entity.ORG_ID.Value, entity.MANAGER_ID.Value, UserName, DateTime.Now, 0, "TI014", BaseData.Domain.Enums.FMTASKTYPE.TI_CHECK); - - - #endregion - } - - this.UnifiedCommit(() => - { - if (entity != null) - UpdateEntityNoCommit(entity); //保存主表 NoCommit - if (Ranges != null && Ranges.Any())//所属范围 - BantchSaveEntityNoCommit(Ranges); - if (Sources != null && Sources.Any())//项目来源 - BantchSaveEntityNoCommit(Sources); - if (files != null && files.Any())//立项附件 - BantchSaveEntityNoCommit(files); - if (WFFiles != null && WFFiles.Any())//审批附件 - BantchSaveEntityNoCommit(WFFiles); - if (taskEnd != null)//结束待办 - UpdateEntityNoCommit(taskEnd); - if (taskCheck != null)//项目结题验收 - UpdateEntityNoCommit(taskCheck); - if (modelProjectCheck != null)//项目结题验收 - UpdateEntityNoCommit(modelProjectCheck); - }); - - return true; - }); - } - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("GetCheck")] - public JsonActionResult GetCheck([FromBody] KeywordFilter filter) - { - //Func expression = e => e.ID == new Guid(filter.Keyword); - //return SafeExecute(() => GetEntity(e=>e.ID== new Guid(filter.Keyword))); - return SafeExecute(() => - { - Guid id = new Guid(filter.Keyword); - return GetEntity(e => e.ID == id, filter, null); - }); - } - } -} \ No newline at end of file diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TIController/TIProjectMoneyController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TIController/TIProjectMoneyController.cs deleted file mode 100644 index 261bc83..0000000 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TIController/TIProjectMoneyController.cs +++ /dev/null @@ -1,100 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Enums.PF; -using APT.BaseData.Domain.IServices; -using APT.BaseData.Domain.IServices.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.SC; -using APT.MS.Domain.Entities.TI; -using APT.MS.Domain.Enums; -using APT.Utility; -using Microsoft.AspNetCore.Mvc; -using System; -using System.Collections.Generic; -using System.Linq; - -namespace APT.SC.WebApi.Controllers.Api.SC -{ - [Route("api/TI/TIProjectMoney")] - public class TIProjectMoneyController : AuthorizeApiController - { - IFMFlowPermitService MFlowPermitService { get; set; } - IPFApproveCallBackService ApproveCallBackService { get; set; } - IFMNotificationTaskService NotificationTaskService { get; set; } - public TIProjectMoneyController(IFMFlowPermitService mFlowPermitService, IPFApproveCallBackService approveCallBackService, IFMNotificationTaskService notificationTaskService) - { - MFlowPermitService = mFlowPermitService; - ApproveCallBackService = approveCallBackService; - NotificationTaskService = notificationTaskService; - } - - /// - /// 安全生产费用使用 修改 - /// - /// - /// - [HttpPost, Route("FullUpdate")] - public JsonActionResult FullUpdate([FromBody] T_TI_PROJECT_MONEY entity) - { - return SafeExecute(() => - { - if (entity.STATUS != PFStandardStatus.Draft && entity.STATUS != PFStandardStatus.Archived) - { - throw new Exception("获取操作方式有误!"); - } - T_TI_PROJECT proj = null; - T_FM_NOTIFICATION_TASK task = null; - if (entity.PROJECT_ID == Guid.Empty) - { - throw new Exception("请选择项目名称!"); - } - else - { - proj = GetEntity(entity.PROJECT_ID); - proj.ISMONEY = true; - - if (entity.STATUS == PFStandardStatus.Archived && entity.TaskID != Guid.Empty) - { - task = NotificationTaskService.GetEntityTask(entity.TaskID, "TI016_SHOWPRINT"); - } - } - var Details = entity.Nav_Details; - entity.Nav_Details = null; - List listFiles = new List(); - if (Details != null && Details.Any()) - { - foreach (var Detail in Details) - { - if (Detail.IS_DELETED) - continue; - if (Detail.Nav_Files == null && !Detail.Nav_Files.Any()) - continue; - foreach (var itemdetail in Detail.Nav_Files) - { - itemdetail.DETAIL_ID = Detail.ID; - itemdetail.ORG_ID = Detail.ORG_ID; - } - - listFiles.AddRange(Detail.Nav_Files); - Detail.Nav_Files = null; - } - } - - this.UnifiedCommit(() => - { - if (entity != null) - UpdateEntityNoCommit(entity); //保存主表 - if (Details != null && Details.Any())//费用明细 - BantchSaveEntityNoCommit(Details); - if (listFiles != null && listFiles.Any())//附件 - BantchSaveEntityNoCommit(listFiles); - if (proj != null) - UpdateEntityNoCommit(proj); - if (task != null)//清除待办 - UpdateEntityNoCommit(task); - }); - - return true; - }); - } - } -} \ No newline at end of file diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TIController/TISafePdtCostRecordTypeController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TIController/TISafePdtCostRecordTypeController.cs deleted file mode 100644 index 2e8bb16..0000000 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TIController/TISafePdtCostRecordTypeController.cs +++ /dev/null @@ -1,149 +0,0 @@ -using APT.BaseData.Domain.Enums.PF; -using APT.BaseData.Domain.IServices; -using APT.BaseData.Domain.IServices.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.SC; -using APT.MS.Domain.Entities.TI; -using APT.MS.Domain.Enums; -using APT.Utility; -using Microsoft.AspNetCore.Mvc; -using System; -using System.Collections.Generic; -using System.Linq; - -namespace APT.SC.WebApi.Controllers.Api.SC -{ - [Route("api/TI/TISafePdtCostRecord")] - public class TISafePdtCostRecordTypeController : AuthorizeApiController - { - IFMFlowPermitService MFlowPermitService { get; set; } - IPFApproveCallBackService ApproveCallBackService { get; set; } - public TISafePdtCostRecordTypeController(IFMFlowPermitService mFlowPermitService, IPFApproveCallBackService approveCallBackService) - { - MFlowPermitService = mFlowPermitService; - ApproveCallBackService = approveCallBackService; - } - - /// - /// 安全生产费用使用 修改 - /// - /// - /// - [HttpPost, Route("FullUpdate")] - public JsonActionResult FullUpdate([FromBody] T_TI_SAFE_PDT_COST_RECORD entity) - { - return SafeExecute(() => - { - if (entity.STATUS != PFStandardStatus.Draft && entity.STATUS != PFStandardStatus.Approving) - { - throw new Exception("获取操作方式有误!"); - } - if (entity.USETIME.HasValue) - { - if (entity.USETIME.Value >= DateTime.Now) - { - throw new Exception("使用日期不能大于当前时间!"); - } - } - - var files = entity.Nav_Files;//附件 - entity.Nav_Files = null; - var listRecordType = entity.Nav_SafePdtCostRecordType;//费用类型 - entity.Nav_SafePdtCostRecordType = null; - - if (listRecordType != null && listRecordType.Any()) - { - foreach (var item in listRecordType) - { - item.Nav_CostType = null; - } - } - - if (entity.STATUS == PFStandardStatus.Draft) - { - this.UnifiedCommit(() => - { - if (entity != null) - UpdateEntityNoCommit(entity); //保存主表 NoCommit - if (listRecordType != null && listRecordType.Any())//费用类型 - BantchSaveEntityNoCommit(listRecordType); - if (files != null && files.Any())//附件 - BantchSaveEntityNoCommit(files); - }); - } - else if (entity.STATUS == PFStandardStatus.Approving) - { - //保存并发送 - if (entity.USETIME == null) - { - throw new Exception("使用日期不能为空!"); - } - if (!entity.DEPARTMENT_ID.HasValue) - { - throw new Exception("请选择使用部门!"); - } - if (!entity.USER_ID.HasValue) - { - throw new Exception("请选择记录人!"); - } - if (string.IsNullOrEmpty(entity.PROJECT)) - { - throw new Exception("请输入使用项目!"); - } - if (listRecordType == null || !listRecordType.Any()) - { - throw new Exception("请选择费用类型!"); - } - if (string.IsNullOrEmpty(entity.PURPOSE)) - { - throw new Exception("请输入用途!"); - } - if (entity.USE_AMOUNT == 0) - { - throw new Exception("请输入使用金额(万元)!"); - } - - //去重 - var check = GetEntity(e => e.ID != entity.ID && e.USETIME == entity.USETIME && e.DEPARTMENT_ID == entity.DEPARTMENT_ID && e.USER_ID == entity.USER_ID && e.PROJECT == entity.PROJECT && e.USE_AMOUNT == entity.USE_AMOUNT && e.PURPOSE == entity.PURPOSE); - if (check != null) - { - throw new Exception("该安全生产费用使用记录已添加!"); - } - - //审批流 - entity.APPROVE_ID = Guid.NewGuid(); - MFlowPermitService.InsertApprove("", "TI008", null, entity.ID, "TI008_SHOWPRINT", entity.TaskID, true, () => - { - if (entity != null) - UpdateEntityNoCommit(entity); //保存主表 - if (listRecordType != null && listRecordType.Any())//费用类型 - BantchSaveEntityNoCommit(listRecordType); - if (files != null && files.Any())//附件 - BantchSaveEntityNoCommit(files); - }, entity.APPROVE_ID, null, null, null, null, null, null); - // 审批完 回调方法 TI/TISafePdtCostRecord/RecordBack - } - else - { - throw new Exception("安全生产费用使用状态【" + entity.STATUS.GetDescription() + "】操作失败!"); - } - - return true; - }); - } - - /// - /// 会议通知发布审批回调 - /// - /// - /// - [HttpGet, Route("RecordBack")] - public JsonActionResult RecordBack(string id) - { - return SafeExecute(() => - { - return ApproveCallBackService.CallBack("TI/TISafePdtCostRecord/RecordBack", id); - }); - } - } -} \ No newline at end of file diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TLController/TLBackController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TLController/TLBackController.cs deleted file mode 100644 index 7c495dd..0000000 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TLController/TLBackController.cs +++ /dev/null @@ -1,271 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.BaseData.Domain.IServices; -using APT.BaseData.Domain.IServices.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.TL; -using APT.MS.Domain.Enums; -using APT.Utility; -using Microsoft.AspNetCore.Mvc; -using System; -using System.Collections.Generic; -using System.Linq; - -namespace APT.SC.WebApi.Controllers.Api.SC -{ - [Route("api/TL/TLBack")] - public class TLBackController : AuthorizeApiController - { - IFMFlowPermitService MFlowPermitService { get; set; } - IFMNotificationTaskService NotificationTaskService { get; set; } - IPFApproveCallBackService ApproveCallBackService { get; set; } - public TLBackController(IFMFlowPermitService mFlowPermitService, IFMNotificationTaskService notificationTaskService, IPFApproveCallBackService approveCallBackService) - { - MFlowPermitService = mFlowPermitService; - NotificationTaskService = notificationTaskService; - ApproveCallBackService = approveCallBackService; - } - - /// - /// 附件上传 - /// 设计文件专家评审意见 - /// - /// - /// - [HttpPost, Route("FullUpdate")] - public JsonActionResult FullUpdate([FromBody] T_TL_BACK entity) - { - return SafeExecute(() => - { - var files = entity.Nav_Files;//附件 - entity.Nav_Files = null; - var listBackRequire = entity.Nav_ListBackRequire; - entity.Nav_ListBackRequire = null; - var IListDetail = entity.Nav_ListDetail; - entity.Nav_ListDetail = null; - List listDetailUser = new List(); - - if (entity.USER_ID == Guid.Empty) - { - entity.USER_ID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value; - entity.DEPARTMENT_ID = APT.Infrastructure.Api.AppContext.CurrentSession.DepartmentID; - - } - if (entity.USER_ID != APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value) - { - throw new Exception("只能操作自己提交的记录!"); - } - - if (entity.STATUS == PFStandardStatus.Approving)//Archived - { - if (listBackRequire == null || !listBackRequire.Any()) - { - throw new Exception("请选择制定要求!"); - } - - //if (files == null || !files.Any()) - //{ - // throw new Exception("请上传安全设施竣工验收记录!"); - //} - - if (IListDetail == null || !IListDetail.Any()) - { - throw new Exception("请添加回采明细!"); - } - else - { - IListDetail = IListDetail.OrderBy(e => e.DATE).ToList(); - } - int index = 0; - int indexU = 0; - foreach (var item in IListDetail) - { - index++; - if (item.DATE == null) - { - throw new Exception("请选择行【" + index.ToString() + "】回采日期!"); - } - if (item.DATESTART == null) - { - throw new Exception("请选择行【" + index.ToString() + "】回采开始时间!"); - } - if (item.DATEEND == null) - { - throw new Exception("请选择行【" + index.ToString() + "】回采结束时间!"); - } - - if (item.Nav_ListDetailUser == null || !item.Nav_ListDetailUser.Any()) - { - throw new Exception("请选择行【" + (index + 1).ToString() + "】值班人员!"); - } - item.NUM = index; - if (item.DATE.Value.Date != item.DATESTART.Value.Date) - { - item.DATESTART = Convert.ToDateTime(item.DATE.Value.ToString("yyyy-MM-dd") + item.DATESTART.Value.ToString(" HH:mm:ss")); - } - if (item.DATE.Value.Date != item.DATEEND.Value.Date) - { - item.DATEEND = Convert.ToDateTime(item.DATE.Value.ToString("yyyy-MM-dd") + item.DATEEND.Value.ToString(" HH:mm:ss")); - } - - indexU = 0; - foreach (var itemU in item.Nav_ListDetailUser) - { - if (indexU == 0) - { - itemU.ISMAINCHECK = true; - } - else - { - itemU.ISMAINCHECK = false; - } - itemU.BACK_ID = entity.ID; - indexU++; - } - listDetailUser.AddRange(item.Nav_ListDetailUser); - } - } - if (listBackRequire != null && listBackRequire.Any()) - { - listBackRequire.ForEach(e => e.Nav_Require = null); - } - entity.Nav_Tailing = null; - if (entity.STATUS == PFStandardStatus.Draft) - { - this.UnifiedCommit(() => - { - if (entity != null) - UpdateEntityNoCommit(entity); - if (files != null && files.Any())//附件 - BantchSaveEntityNoCommit(files); - if (listBackRequire != null && listBackRequire.Any())//制定要求 - BantchSaveEntityNoCommit(listBackRequire); - - if (IListDetail != null && IListDetail.Any())//制定要求 - BantchSaveEntityNoCommit(IListDetail); - if (listDetailUser != null && listDetailUser.Any())//制定要求 - BantchSaveEntityNoCommit(listDetailUser); - }); - } - else - { - if (entity.APPROVE_ID.HasValue) - { - throw new Exception("数据异常,该回踩计划已经审批过,请联系管理员!"); - } - entity.APPROVE_ID = Guid.NewGuid(); - //审批流 - //TL014 - string ApproveCode = "TL" + DateTime.Now.ToString("yyyyMMddHHmmsshh"); - MFlowPermitService.InsertApprove(ApproveCode, "TL014", null, entity.ID, "TL014_SHOWPRINT", null, true, () => - { - if (entity != null) - UpdateEntityNoCommit(entity); - if (files != null && files.Any())//附件 - BantchSaveEntityNoCommit(files); - if (listBackRequire != null && listBackRequire.Any())//制定要求 - BantchSaveEntityNoCommit(listBackRequire); - - if (IListDetail != null && IListDetail.Any())//制定要求 - BantchSaveEntityNoCommit(IListDetail); - if (listDetailUser != null && listDetailUser.Any())//制定要求 - BantchSaveEntityNoCommit(listDetailUser); - }, entity.APPROVE_ID, null, null, null, null, "TL014_SHOWPRINT", null, null, BaseData.Domain.Enums.FMTASKTYPE.Default);//, entity.LIMITDATETIME - } - return true; - }); - } - - - /// - /// 回采计划审批流 - /// - /// - /// - [HttpPost, Route("BackUpdate")] - public JsonActionResult CheckAuditEndNew([FromBody] T_PF_APPROVE entity) - { - return SafeExecute(() => - { - return ApproveCallBackService.CallBackNew("TL/TLBack/BackUpdate", entity); - }); - } - - - /// - /// 确定 通知 - /// - /// - /// - [HttpPost, Route("sendCheck")] - public JsonActionResult SendCheck([FromBody] KeywordFilter filter) - { - return SafeExecute(() => - { - Guid taskID = Guid.Empty; - if (!string.IsNullOrEmpty(filter.Parameter1)) - { - taskID = new Guid(filter.Parameter1); - } - T_FM_NOTIFICATION_TASK taskEnd = null; - if (taskID == Guid.Empty) - { - throw new Exception("获取传参有误,请刷新后再确认!"); - } - else - { - taskEnd = NotificationTaskService.GetEntityTask(taskID); - } - - Guid id = Guid.Empty; - try - { - id = new Guid(filter.Keyword); - } - catch - { - throw new Exception("获取传参有误,请刷新后再确认!"); - } - - var listDetailUser = GetEntities(e => e.BACK_ID == id && !e.ISCHECK, null, null); - - if (listDetailUser == null || !listDetailUser.Any()) - { - throw new Exception("未获取到待确认回踩计划信息,操作失败!"); - } - - var listUserLogin = listDetailUser.Where(e => e.USER_ID == APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value); - if (listUserLogin == null || !listUserLogin.Any()) - { - throw new Exception("暂未获取到该登陆者的待确认回踩计划信息!"); - } - - foreach (var item in listUserLogin) - { - item.ISCHECK = true; - } - - T_TL_BACK entity = null; - var listUserOther = listDetailUser.Where(e => e.USER_ID != APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value); - if (listUserOther == null || !listUserOther.Any())//大家都已经确认 - { - entity = GetEntity(id); - entity.STATUS = PFStandardStatus.Archived; - } - - this.UnifiedCommit(() => - { - if (listUserLogin != null && listUserLogin.Any()) - BantchSaveEntityNoCommit(listUserLogin); - if (entity != null) - UpdateEntityNoCommit(entity); - if (taskEnd != null) - UpdateEntityNoCommit(taskEnd); - }); - - return true; - }); - } - } -} \ No newline at end of file diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TLController/TLBackRecordController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TLController/TLBackRecordController.cs deleted file mode 100644 index 3f2928c..0000000 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TLController/TLBackRecordController.cs +++ /dev/null @@ -1,373 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.BaseData.Domain.IServices; -using APT.BaseData.Domain.IServices.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.TL; -using APT.MS.Domain.Enums; -using APT.Utility; -using Microsoft.AspNetCore.Mvc; -using System; -using System.Collections.Generic; -using System.Linq; - -namespace APT.SC.WebApi.Controllers.Api.SC -{ - [Route("api/TL/TLBackRecord")] - public class TLBackRecordController : AuthorizeApiController - { - IFMFlowPermitService MFlowPermitService { get; set; } - IPFApproveCallBackService ApproveCallBackService { get; set; } - IFMNotificationTaskService NotificationTaskService { get; set; } - public TLBackRecordController(IFMFlowPermitService mFlowPermitService, IFMNotificationTaskService notificationTaskService, IPFApproveCallBackService approveCallBackService) - { - MFlowPermitService = mFlowPermitService; - ApproveCallBackService = approveCallBackService; - NotificationTaskService = notificationTaskService; - } - - /// - /// 附件上传 - /// 设计文件专家评审意见 - /// - /// - /// - [HttpPost, Route("FullUpdate")] - public JsonActionResult FullUpdate([FromBody] T_TL_BACK_RECORD entity) - { - return SafeExecute(() => - { - if (entity.USER_ID == Guid.Empty) - { - entity.USER_ID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value; - entity.DEPARTMENT_ID = APT.Infrastructure.Api.AppContext.CurrentSession.DepartmentID; - } - - if (entity.USER_ID != APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value) - { - throw new Exception("只能操作自己提交的记录!"); - } - var listUser = entity.Nav_ListUser; - entity.Nav_ListUser = null; - if (entity.STATUS == PFStandardStatus.Approving)//Archived - { - if (!entity.BACKTIME.HasValue) - { - throw new Exception("请选择回采时间!"); - } - if (!entity.BACKTIMEEND.HasValue) - { - throw new Exception("请选择回采结束时间!"); - } - - if (entity.BACKTIME.Value.Date != entity.BACKTIMEEND.Value.Date) - { - entity.BACKTIMEEND = Convert.ToDateTime(entity.BACKTIME.Value.ToString("yyyy-MM-dd ") + entity.BACKTIMEEND.Value.ToString("HH:mm:ss")); - if (entity.BACKTIMEEND < entity.BACKTIME) - { - throw new Exception("回采结束时间不能小于回采开始时间!"); - } - } - - if (string.IsNullOrEmpty(entity.BACK_DIREACT)) - { - throw new Exception("请输入回采方向!"); - } - - if (string.IsNullOrEmpty(entity.BACK_DIREACT)) - { - throw new Exception("请输入回采方向!"); - } - if (!entity.BACK_ORDER.HasValue) - { - throw new Exception("请输入回采顺序!"); - } - if (!entity.BACK_THICKNESS.HasValue) - { - throw new Exception("请输入回采厚度!"); - } - if (!entity.BACK_NUMBER.HasValue) - { - throw new Exception("请输入回采量!"); - } - if (string.IsNullOrEmpty(entity.BACK_SCALE)) - { - throw new Exception("请输入回采边坡坡比!"); - } - else - { - if (entity.BACK_SCALE.Contains(":") || !entity.BACK_SCALE.Contains(":")) - { - throw new Exception("回采边坡坡比输入格式有误,必须包含【:】(英文,半角)!"); - } - var scales = entity.BACK_SCALE.Split(':'); - if (scales.Length != 2) - { - throw new Exception("回采边坡坡比输入格式有误,格式【xx:xx】!"); - } - try - { - scales.ForEach(e => - { - if (e.Contains('.')) - { - var nums = e.Split('.'); - foreach (var item in nums) - { - try - { - int.Parse(item); - } - catch - { - throw new Exception("回采边坡坡比中【" + item + "】只能是数字"); - } - } - - if (nums.Length == 2) - { - if (nums[1].Length > 1) - { - throw new Exception("回采边坡坡比输入格式有误,【" + nums[1] + "】只能保留1位小数!"); - } - } - else if (nums.Length > 2) - { - throw new Exception("回采边坡坡比输入格式有误!"); - } - } - }); - } - catch (Exception ex) - { - throw new Exception(ex.Message); - } - } - - if (!entity.SAFE_HIGHT.HasValue) - { - throw new Exception("请输入安全超高!"); - } - - if (!entity.DRIVE_LONG.HasValue) - { - throw new Exception("请输入干滩长度!"); - } - if (entity.Nav_ListUser == null) - { - throw new Exception("请选择值班人!"); - } - } - - entity.Nav_Tailing = null; - List listUserTemp = null; - if (entity.STATUS != PFStandardStatus.Draft) - { - listUserTemp = new List(); - } - foreach (var item in listUser) - { - if (entity.STATUS != PFStandardStatus.Draft) - { - if (item.USER_ID != entity.USER_ID) - { - listUserTemp.Add(item.Nav_User); - } - else - { - item.ISCHECK = true;//操作员 默认 确认 - } - } - item.Nav_User = null; - } - - if (entity.STATUS == PFStandardStatus.Draft) - { - this.UnifiedCommit(() => - { - if (entity != null) - UpdateEntityNoCommit(entity); - if (listUser != null && listUser.Any()) - BantchSaveEntityNoCommit(listUser); - }); - } - else - { - T_FM_NOTIFICATION_TASK task = null; - if (entity.TaskID != Guid.Empty) - { - task = NotificationTaskService.GetEntityTask(entity.TaskID, "TL016_SHOWPRINT"); - } - //TL016 - //给值班人员 发送 确认单 - if (listUserTemp == null || !listUserTemp.Any()) - { - entity.STATUS = PFStandardStatus.Approving; - entity.APPROVE_ID = Guid.NewGuid(); - - //进入审批 - string ApproveCode = "TL" + DateTime.Now.ToString("yyyyMMddHHmmsshh"); - MFlowPermitService.InsertApprove(ApproveCode, "TL016", null, entity.ID, "TL016_SHOWPRINT", null, true, () => - { - if (entity != null) - UpdateEntityNoCommit(entity); - if (task != null) - UpdateEntityNoCommit(task); - if (listUser != null && listUser.Any()) - BantchSaveEntityNoCommit(listUser); - }, entity.APPROVE_ID, null, null, null, null, "TL016_SHOWPRINT", null, null, BaseData.Domain.Enums.FMTASKTYPE.Default); - } - else - { - List listUserIDs = new List(); - List listUserNames = new List(); - List listDataID = new List(); - if (!string.IsNullOrEmpty(listUserTemp[0].NAME)) - { - foreach (var item in listUserTemp) - { - listUserIDs.Add(item.ID); - listUserNames.Add(item.NAME); - listDataID.Add(entity.ID); - } - } - else - { - var listUserID = listUser.Where(e => e.USER_ID != entity.USER_ID).Select(e => e.USER_ID); - var listUsers = GetEntities(e => listUserID.Contains(e.ID), null, null); - foreach (var item in listUsers) - { - listUserIDs.Add(item.ID); - listUserNames.Add(item.NAME); - listDataID.Add(entity.ID); - } - } - - List listTaskSend = NotificationTaskService.InsertUserNoticeTaskModels("回采记录确认", listDataID, entity.ORG_ID, listUserIDs, listUserNames, DateTime.Now, 0, "TL016_SHOWPRINT", BaseData.Domain.Enums.FMTASKTYPE.Default); - - //给其他人 发送 确认单 - this.UnifiedCommit(() => - { - if (entity != null) - UpdateEntityNoCommit(entity); - if (task != null) - UpdateEntityNoCommit(task); - if (listUser != null && listUser.Any()) - BantchSaveEntityNoCommit(listUser); - if (listTaskSend != null && listTaskSend.Any()) - BantchSaveEntityNoCommit(listTaskSend); - }); - } - } - return true; - }); - } - - - /// - /// 确定 通知 - /// - /// - /// - [HttpPost, Route("sendCheck")] - public JsonActionResult SendCheck([FromBody] KeywordFilter filter) - { - return SafeExecute(() => - { - Guid taskID = Guid.Empty; - if (!string.IsNullOrEmpty(filter.Parameter1)) - { - taskID = new Guid(filter.Parameter1); - } - T_FM_NOTIFICATION_TASK taskEnd = null; - if (taskID == Guid.Empty) - { - throw new Exception("获取传参有误,请刷新后再确认!"); - } - else - { - taskEnd = NotificationTaskService.GetEntityTask(taskID); - } - - Guid id = Guid.Empty; - try - { - id = new Guid(filter.Keyword); - } - catch - { - throw new Exception("获取传参有误,请刷新后再确认!"); - } - - var listDetailUser = GetEntities(e => e.BACK_RECORD_ID == id && !e.ISCHECK, null, null); - - if (listDetailUser == null || !listDetailUser.Any()) - { - throw new Exception("未获取到待确认回踩记录信息,操作失败!"); - } - - var listUserLogin = listDetailUser.Where(e => e.USER_ID == APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value); - if (listUserLogin == null || !listUserLogin.Any()) - { - throw new Exception("暂未获取到该登陆者的待确认回踩计划信息!"); - } - - foreach (var item in listUserLogin) - { - item.ISCHECK = true; - } - - T_TL_BACK_RECORD entity = null; - var listUserOther = listDetailUser.Where(e => e.USER_ID != APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value); - if (listUserOther == null || !listUserOther.Any())//大家都已经确认 - { - entity = GetEntity(id); - entity.STATUS = PFStandardStatus.Approving; - entity.APPROVE_ID = Guid.NewGuid(); - } - if (entity.STATUS == PFStandardStatus.Approving) - { - string ApproveCode = "TL" + DateTime.Now.ToString("yyyyMMddHHmmsshh"); - MFlowPermitService.InsertApprove(ApproveCode, "TL016", null, entity.ID, "TL016_SHOWPRINT", null, true, () => - { - if (listUserLogin != null && listUserLogin.Any()) - BantchSaveEntityNoCommit(listUserLogin); - if (entity != null) - UpdateEntityNoCommit(entity); - if (taskEnd != null) - UpdateEntityNoCommit(taskEnd); - }, entity.APPROVE_ID, null, null, null, null, "TL016_SHOWPRINT", null, null, BaseData.Domain.Enums.FMTASKTYPE.Default); - } - else - { - this.UnifiedCommit(() => - { - if (listUserLogin != null && listUserLogin.Any()) - BantchSaveEntityNoCommit(listUserLogin); - if (entity != null) - UpdateEntityNoCommit(entity); - if (taskEnd != null) - UpdateEntityNoCommit(taskEnd); - }); - } - - return true; - }); - } - - /// - /// 回采记录审批流 - /// - /// - /// - [HttpPost, Route("BackUpdate")] - public JsonActionResult CheckAuditEndNew([FromBody] T_PF_APPROVE entity) - { - return SafeExecute(() => - { - return ApproveCallBackService.CallBackNew("TL/TLBackRecord/BackUpdate", entity); - }); - } - } -} \ No newline at end of file diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TLController/TLCaculateController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TLController/TLCaculateController.cs deleted file mode 100644 index 84622b8..0000000 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TLController/TLCaculateController.cs +++ /dev/null @@ -1,76 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.BaseData.Domain.IServices; -using APT.BaseData.Domain.IServices.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.TL; -using APT.MS.Domain.Enums; -using APT.Utility; -using Microsoft.AspNetCore.Mvc; -using System; -using System.Collections.Generic; -using System.Linq; - -namespace APT.SC.WebApi.Controllers.Api.SC -{ - [Route("api/TL/TLCaculate")] - public class TLCaculateController : AuthorizeApiController - { - IFMFlowPermitService MFlowPermitService { get; set; } - IFMNotificationTaskService NotificationTaskService { get; set; } - public TLCaculateController(IFMFlowPermitService mFlowPermitService, IFMNotificationTaskService notificationTaskService) - { - MFlowPermitService = mFlowPermitService; - NotificationTaskService = notificationTaskService; - } - - /// - /// 附件上传 - /// 设计文件专家评审意见 - /// - /// - /// - [HttpPost, Route("FullUpdate")] - public JsonActionResult FullUpdate([FromBody] T_TL_CACULATE entity) - { - return SafeExecute(() => - { - var files = entity.Nav_Files;//附件 - entity.Nav_Files = null; - if (entity.USER_ID == Guid.Empty) - { - entity.USER_ID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value; - entity.DEPARTMENT_ID = APT.Infrastructure.Api.AppContext.CurrentSession.DepartmentID; - - } - if (entity.USER_ID != APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value) - { - throw new Exception("只能操作自己提交的记录!"); - } - - if (entity.STATUS == PFStandardStatus.Archived) - { - if (!entity.DATE.HasValue) - { - throw new Exception("请选择日期!"); - } - if (files == null || !files.Any()) - { - throw new Exception("请上传隐蔽工程验收记录!"); - } - } - - entity.Nav_Tailing = null; - this.UnifiedCommit(() => - { - if (entity != null) - UpdateEntityNoCommit(entity); - if (files != null && files.Any())//附件 - BantchSaveEntityNoCommit(files); - }); - return true; - }); - } - } -} \ No newline at end of file diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TLController/TLFileSumController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TLController/TLFileSumController.cs deleted file mode 100644 index 94d73c7..0000000 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TLController/TLFileSumController.cs +++ /dev/null @@ -1,69 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.BaseData.Domain.IServices; -using APT.BaseData.Domain.IServices.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.TL; -using APT.MS.Domain.Enums; -using APT.Utility; -using Microsoft.AspNetCore.Mvc; -using System; -using System.Collections.Generic; -using System.Linq; - -namespace APT.SC.WebApi.Controllers.Api.SC -{ - [Route("api/TL/TLFileSum")] - public class TLFileSumController : AuthorizeApiController - { - IFMFlowPermitService MFlowPermitService { get; set; } - IFMNotificationTaskService NotificationTaskService { get; set; } - public TLFileSumController(IFMFlowPermitService mFlowPermitService, IFMNotificationTaskService notificationTaskService) - { - MFlowPermitService = mFlowPermitService; - NotificationTaskService = notificationTaskService; - } - - /// - /// 附件上传 - /// 设计文件专家评审意见 - /// - /// - /// - [HttpPost, Route("FullUpdate")] - public JsonActionResult FullUpdate([FromBody] T_TL_FILE_SUM entity) - { - return SafeExecute(() => - { - var files = entity.Nav_Files;//附件 - entity.Nav_Files = null; - if (files == null || !files.Any()) - { - throw new Exception("请上传附件!"); - } - T_FM_NOTIFICATION_TASK task = null; - if (entity.STATUS == PFStandardStatus.Archived) - { - if (entity.TaskID == Guid.Empty) - { - throw new Exception("获取待办信息失败!"); - } - task = NotificationTaskService.GetEntityTask(entity.TaskID, "TL004_SHOWPRINT"); - } - - this.UnifiedCommit(() => - { - if (entity != null) - UpdateEntityNoCommit(entity); - if (files != null && files.Any())//附件 - BantchSaveEntityNoCommit(files); - if (task != null)//待办清除 - UpdateEntityNoCommit(task); - }); - return true; - }); - } - - } -} \ No newline at end of file diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TLController/TLHighCheckController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TLController/TLHighCheckController.cs deleted file mode 100644 index 54931be..0000000 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TLController/TLHighCheckController.cs +++ /dev/null @@ -1,72 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.BaseData.Domain.IServices; -using APT.BaseData.Domain.IServices.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.TL; -using APT.MS.Domain.Enums; -using APT.Utility; -using Microsoft.AspNetCore.Mvc; -using System; -using System.Collections.Generic; -using System.Linq; - -namespace APT.SC.WebApi.Controllers.Api.SC -{ - [Route("api/TL/TLHighCheck")] - public class TLHighCheckController : AuthorizeApiController - { - IFMFlowPermitService MFlowPermitService { get; set; } - IFMNotificationTaskService NotificationTaskService { get; set; } - public TLHighCheckController(IFMFlowPermitService mFlowPermitService, IFMNotificationTaskService notificationTaskService) - { - MFlowPermitService = mFlowPermitService; - NotificationTaskService = notificationTaskService; - } - - /// - /// 附件上传 - /// 设计文件专家评审意见 - /// - /// - /// - [HttpPost, Route("FullUpdate")] - public JsonActionResult FullUpdate([FromBody] T_TL_HIGH_CHECK entity) - { - return SafeExecute(() => - { - var files = entity.Nav_Files;//附件 - entity.Nav_Files = null; - if (entity.USER_ID == Guid.Empty) - { - entity.USER_ID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value; - entity.DEPARTMENT_ID = APT.Infrastructure.Api.AppContext.CurrentSession.DepartmentID; - - } - if (entity.USER_ID != APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value) - { - throw new Exception("只能操作自己提交的记录!"); - } - - if (entity.STATUS == PFStandardStatus.Archived) - { - if (files == null || !files.Any()) - { - throw new Exception("请上传隐蔽工程验收记录!"); - } - } - - entity.Nav_Tailing = null; - this.UnifiedCommit(() => - { - if (entity != null) - UpdateEntityNoCommit(entity); - if (files != null && files.Any())//附件 - BantchSaveEntityNoCommit(files); - }); - return true; - }); - } - } -} \ No newline at end of file diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TLController/TLOutController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TLController/TLOutController.cs deleted file mode 100644 index 4b8a0b2..0000000 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TLController/TLOutController.cs +++ /dev/null @@ -1,101 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.BaseData.Domain.IServices; -using APT.BaseData.Domain.IServices.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.TL; -using APT.MS.Domain.Enums; -using APT.Utility; -using Microsoft.AspNetCore.Mvc; -using System; -using System.Collections.Generic; -using System.Linq; - -namespace APT.SC.WebApi.Controllers.Api.SC -{ - [Route("api/TL/TLOut")] - public class TLOutController : AuthorizeApiController - { - IFMFlowPermitService MFlowPermitService { get; set; } - IFMNotificationTaskService NotificationTaskService { get; set; } - public TLOutController(IFMFlowPermitService mFlowPermitService, IFMNotificationTaskService notificationTaskService) - { - MFlowPermitService = mFlowPermitService; - NotificationTaskService = notificationTaskService; - } - - /// - /// 附件上传 - /// 设计文件专家评审意见 - /// - /// - /// - [HttpPost, Route("FullUpdate")] - public JsonActionResult FullUpdate([FromBody] T_TL_OUT entity) - { - return SafeExecute(() => - { - var files = entity.Nav_Files;//附件 - entity.Nav_Files = null; - T_TL_TAILING Tailing = null; - - if (entity.USER_ID == Guid.Empty) - { - entity.USER_ID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value; - entity.DEPARTMENT_ID = APT.Infrastructure.Api.AppContext.CurrentSession.DepartmentID; - } - if (entity.USER_ID != APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value) - { - throw new Exception("只能操作自己提交的记录!"); - } - - if (entity.STATUS == PFStandardStatus.Archived) - { - if (entity.TAILING_ID != null) - { - Tailing = GetEntity(entity.TAILING_ID.Value); - if (Tailing != null) - { - if (Tailing.STATE == TailingState.ReEnd || Tailing.STATE == TailingState.End) - { - throw new Exception("操作失败,该尾矿库状态已经为" + Tailing.STATE.GetDescription() + "!"); - } - else - { - if (Tailing.STATE == TailingState.Using) - { - Tailing.STATE = TailingState.End; - } - else - { - Tailing.STATE = TailingState.ReEnd; - } - } - } - else - { - throw new Exception("获取尾矿库失败!"); - } - } - if (files == null || !files.Any()) - { - throw new Exception("请上传安全设施竣工验收记录!"); - } - } - - entity.Nav_Tailing = null; - this.UnifiedCommit(() => - { - if (entity != null) - UpdateEntityNoCommit(entity); - if (files != null && files.Any())//附件 - BantchSaveEntityNoCommit(files); - if (Tailing != null) - UpdateEntityNoCommit(Tailing); - }); - return true; - }); - } - } -} \ No newline at end of file diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TLController/TLProjectFinishController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TLController/TLProjectFinishController.cs deleted file mode 100644 index 43edd47..0000000 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TLController/TLProjectFinishController.cs +++ /dev/null @@ -1,84 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.BaseData.Domain.IServices; -using APT.BaseData.Domain.IServices.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.TL; -using APT.MS.Domain.Enums; -using APT.Utility; -using Microsoft.AspNetCore.Mvc; -using System; -using System.Collections.Generic; -using System.Linq; - -namespace APT.SC.WebApi.Controllers.Api.SC -{ - [Route("api/TL/TLProjectFinish")] - public class TLProjectFinishController : AuthorizeApiController - { - IFMFlowPermitService MFlowPermitService { get; set; } - IFMNotificationTaskService NotificationTaskService { get; set; } - public TLProjectFinishController(IFMFlowPermitService mFlowPermitService, IFMNotificationTaskService notificationTaskService) - { - MFlowPermitService = mFlowPermitService; - NotificationTaskService = notificationTaskService; - } - - /// - /// 附件上传 - /// 设计文件专家评审意见 - /// - /// - /// - [HttpPost, Route("FullUpdate")] - public JsonActionResult FullUpdate([FromBody] T_TL_PROJECT_FINISH entity) - { - return SafeExecute(() => - { - var files = entity.Nav_Files;//附件 - entity.Nav_Files = null; - - if (entity.USER_ID == Guid.Empty) - { - entity.USER_ID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value; - entity.DEPARTMENT_ID = APT.Infrastructure.Api.AppContext.CurrentSession.DepartmentID; - - } - if (entity.USER_ID != APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value) - { - throw new Exception("只能操作自己提交的记录!"); - } - - if (entity.STATUS == PFStandardStatus.Archived) - { - if (files == null || !files.Any()) - { - throw new Exception("请上传安全设施竣工验收记录!"); - } - if (!entity.RESULT.HasValue) - { - throw new Exception("请选择是否妥善保存了所有勘察、设计、施工纪录和验收文件和图纸!"); - } - - if (entity.RESULT.Value == BaseData.Domain.Enums.FMTureOrFalse.否 && string.IsNullOrEmpty(entity.RESULT_REASON)) - { - throw new Exception("请填写不妥善说明!"); - } - } - entity.Nav_Tailing = null; - this.UnifiedCommit(() => - { - if (entity != null) - UpdateEntityNoCommit(entity); - if (files != null && files.Any())//附件 - BantchSaveEntityNoCommit(files); - }); - return true; - }); - } - - - - } -} \ No newline at end of file diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TLController/TLProjectHightController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TLController/TLProjectHightController.cs deleted file mode 100644 index 09f53b9..0000000 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TLController/TLProjectHightController.cs +++ /dev/null @@ -1,83 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.BaseData.Domain.IServices; -using APT.BaseData.Domain.IServices.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.TL; -using APT.MS.Domain.Enums; -using APT.Utility; -using Microsoft.AspNetCore.Mvc; -using System; -using System.Collections.Generic; -using System.Linq; - -namespace APT.SC.WebApi.Controllers.Api.SC -{ - [Route("api/TL/TLProjectHight")] - public class TLProjectHightController : AuthorizeApiController - { - IFMFlowPermitService MFlowPermitService { get; set; } - IFMNotificationTaskService NotificationTaskService { get; set; } - public TLProjectHightController(IFMFlowPermitService mFlowPermitService, IFMNotificationTaskService notificationTaskService) - { - MFlowPermitService = mFlowPermitService; - NotificationTaskService = notificationTaskService; - } - - /// - /// 附件上传 - /// 设计文件专家评审意见 - /// - /// - /// - [HttpPost, Route("FullUpdate")] - public JsonActionResult FullUpdate([FromBody] T_TL_PROJECT_HIGHT entity) - { - return SafeExecute(() => - { - var files = entity.Nav_Files;//附件 - entity.Nav_Files = null; - - if (entity.USER_ID == Guid.Empty) - { - entity.USER_ID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value; - entity.DEPARTMENT_ID = APT.Infrastructure.Api.AppContext.CurrentSession.DepartmentID; - - } - if (entity.USER_ID != APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value) - { - throw new Exception("只能操作自己提交的记录!"); - } - - if (entity.STATUS != PFStandardStatus.Draft) - { - if (files == null || !files.Any()) - { - throw new Exception("请上传施工记录!"); - } - if (!entity.RESULT.HasValue) - { - throw new Exception("请选择施工是否满足规程及安全、健康要求!"); - } - if (entity.RESULT.Value == BaseData.Domain.Enums.FMTureOrFalse.否 && string.IsNullOrEmpty(entity.RESULT_REASON)) - { - throw new Exception("请填写不合格描述!"); - } - } - entity.Nav_Tailing = null; - this.UnifiedCommit(() => - { - if (entity != null) - UpdateEntityNoCommit(entity); - if (files != null && files.Any())//附件 - BantchSaveEntityNoCommit(files); - }); - return true; - }); - } - - - - } -} \ No newline at end of file diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TLController/TLProjectIntroduceController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TLController/TLProjectIntroduceController.cs deleted file mode 100644 index babc7e5..0000000 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TLController/TLProjectIntroduceController.cs +++ /dev/null @@ -1,76 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.BaseData.Domain.IServices; -using APT.BaseData.Domain.IServices.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.TL; -using APT.MS.Domain.Enums; -using APT.Utility; -using Microsoft.AspNetCore.Mvc; -using System; -using System.Collections.Generic; -using System.Linq; - -namespace APT.SC.WebApi.Controllers.Api.SC -{ - [Route("api/TL/TLProjectIntroduce")] - public class TLProjectIntroduceController : AuthorizeApiController - { - IFMFlowPermitService MFlowPermitService { get; set; } - IFMNotificationTaskService NotificationTaskService { get; set; } - public TLProjectIntroduceController(IFMFlowPermitService mFlowPermitService, IFMNotificationTaskService notificationTaskService) - { - MFlowPermitService = mFlowPermitService; - NotificationTaskService = notificationTaskService; - } - - /// - /// 附件上传 - /// 设计文件专家评审意见 - /// - /// - /// - [HttpPost, Route("FullUpdate")] - public JsonActionResult FullUpdate([FromBody] T_TL_PROJECT_INTRODUCE entity) - { - return SafeExecute(() => - { - var files = entity.Nav_Files;//附件 - entity.Nav_Files = null; - if (entity.USER_ID == Guid.Empty) - { - entity.USER_ID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value; - entity.DEPARTMENT_ID = APT.Infrastructure.Api.AppContext.CurrentSession.DepartmentID; - - } - if (entity.USER_ID != APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value) - { - throw new Exception("只能操作自己提交的记录!"); - } - - if (entity.STATUS == PFStandardStatus.Archived) - { - if (!entity.DATE.HasValue) - { - throw new Exception("请选择日期!"); - } - if (files == null || !files.Any()) - { - throw new Exception("请上传上游工程情况说明!"); - } - } - - entity.Nav_Tailing = null; - this.UnifiedCommit(() => - { - if (entity != null) - UpdateEntityNoCommit(entity); - if (files != null && files.Any())//附件 - BantchSaveEntityNoCommit(files); - }); - return true; - }); - } - } -} \ No newline at end of file diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TLController/TLProjectRecordController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TLController/TLProjectRecordController.cs deleted file mode 100644 index b19c97d..0000000 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TLController/TLProjectRecordController.cs +++ /dev/null @@ -1,117 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.BaseData.Domain.IServices; -using APT.BaseData.Domain.IServices.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.TL; -using APT.MS.Domain.Enums; -using APT.Utility; -using Microsoft.AspNetCore.Mvc; -using System; -using System.Collections.Generic; -using System.Linq; - -namespace APT.SC.WebApi.Controllers.Api.SC -{ - [Route("api/TL/TLProjectRecord")] - public class TLProjectRecordController : AuthorizeApiController - { - IFMFlowPermitService MFlowPermitService { get; set; } - IFMNotificationTaskService NotificationTaskService { get; set; } - public TLProjectRecordController(IFMFlowPermitService mFlowPermitService, IFMNotificationTaskService notificationTaskService) - { - MFlowPermitService = mFlowPermitService; - NotificationTaskService = notificationTaskService; - } - - /// - /// 附件上传 - /// 设计文件专家评审意见 - /// - /// - /// - [HttpPost, Route("FullUpdate")] - public JsonActionResult FullUpdate([FromBody] T_TL_PROJECT_RECORD entity) - { - return SafeExecute(() => - { - var files = entity.Nav_Files;//附件 - entity.Nav_Files = null; - - var filesWatch = entity.Nav_FilesWatch;//监理记录 - entity.Nav_FilesWatch = null; - - var filesCheck = entity.Nav_FilesCheck;//验收记录 - entity.Nav_FilesCheck = null; - if (entity.USER_ID == Guid.Empty) - { - entity.USER_ID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value; - entity.DEPARTMENT_ID = APT.Infrastructure.Api.AppContext.CurrentSession.DepartmentID; - - } - if (entity.USER_ID != APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value) - { - throw new Exception("只能操作自己提交的记录!"); - } - - if (entity.STATUS == PFStandardStatus.Archived) - { - if (files == null || !files.Any()) - { - throw new Exception("请上传施工记录!"); - } - if (!entity.RESULT.HasValue) - { - throw new Exception("请选择施工是否满足规程及安全、健康要求!"); - } - if (entity.RESULT.Value != Result.All && string.IsNullOrEmpty(entity.RESULT_REASON)) - { - throw new Exception("请填写不满足描述!"); - } - if (filesWatch == null || !filesWatch.Any()) - { - throw new Exception("请上传监理记录!"); - } - if (!entity.RESULT_WATCH.HasValue) - { - throw new Exception("请选择安全设施是否与主体工程同时设计、同时施工、同时投入生产和使用!"); - } - - if (entity.RESULT_WATCH.Value != Result.All && string.IsNullOrEmpty(entity.RESULT_WATCH_REASON)) - { - throw new Exception("请填写未遵守描述!"); - } - if (filesCheck == null || !filesCheck.Any()) - { - throw new Exception("请上传验收记录!"); - } - if (!entity.RESULT_CHECK.HasValue) - { - throw new Exception("请选择验收是否按照规程进行!"); - } - if (entity.RESULT_CHECK.Value != Result.All && string.IsNullOrEmpty(entity.RESULT_CHECK_REASON)) - { - throw new Exception("请填写不同时描述!"); - } - } - - this.UnifiedCommit(() => - { - if (entity != null) - UpdateEntityNoCommit(entity); - if (files != null && files.Any())//附件 - BantchSaveEntityNoCommit(files); - if (filesWatch != null && filesWatch.Any())//附件 - BantchSaveEntityNoCommit(filesWatch); - if (filesCheck != null && filesCheck.Any())//附件 - BantchSaveEntityNoCommit(filesCheck); - }); - return true; - }); - } - - - - } -} \ No newline at end of file diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TLController/TLProjectSlopebankController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TLController/TLProjectSlopebankController.cs deleted file mode 100644 index 90b2d64..0000000 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TLController/TLProjectSlopebankController.cs +++ /dev/null @@ -1,90 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.BaseData.Domain.IServices; -using APT.BaseData.Domain.IServices.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.TL; -using APT.MS.Domain.Enums; -using APT.Utility; -using Microsoft.AspNetCore.Mvc; -using System; -using System.Collections.Generic; -using System.Linq; - -namespace APT.SC.WebApi.Controllers.Api.SC -{ - [Route("api/TL/TLProjectSlopebank")] - public class TLProjectSlopebankController : AuthorizeApiController - { - //IFMFlowPermitService MFlowPermitService { get; set; } - //IFMNotificationTaskService NotificationTaskService { get; set; } - //public TLProjectSlopebankController(IFMFlowPermitService mFlowPermitService, IFMNotificationTaskService notificationTaskService) - //{ - // MFlowPermitService = mFlowPermitService; - // NotificationTaskService = notificationTaskService; - //} - - /// - /// 附件上传 - /// 设计文件专家评审意见 - /// - /// - /// - [HttpPost, Route("FullUpdate")] - public JsonActionResult FullUpdate([FromBody] T_TL_PROJECT_SLOPEBANK entity) - { - return SafeExecute(() => - { - var files = entity.Nav_Files;//附件 - entity.Nav_Files = null; - - var filesProj = entity.Nav_Files_Proj;//监理记录 - entity.Nav_Files_Proj = null; - - var filesSub = entity.Nav_Files_Sub;//验收记录 - entity.Nav_Files_Sub = null; - if (entity.USER_ID == Guid.Empty) - { - entity.USER_ID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value; - entity.DEPARTMENT_ID = APT.Infrastructure.Api.AppContext.CurrentSession.DepartmentID; - - } - if (entity.USER_ID != APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value) - { - throw new Exception("只能操作自己提交的记录!"); - } - - if (entity.STATUS == PFStandardStatus.Archived) - { - if (string.IsNullOrEmpty(entity.NAMESUB)) - { - throw new Exception("请输入子坝名称!"); - } - if (entity.COUNTNUM == 0) - { - throw new Exception("请输入期数!"); - } - if (!entity.RESULT.HasValue) - { - throw new Exception("请选择冲刷情况!"); - } - } - entity.Nav_Tailing = null; - - this.UnifiedCommit(() => - { - if (entity != null) - UpdateEntityNoCommit(entity); - if (files != null && files.Any())//附件 - BantchSaveEntityNoCommit(files); - if (filesProj != null && filesProj.Any())//附件 - BantchSaveEntityNoCommit(filesProj); - if (filesSub != null && filesSub.Any())//附件 - BantchSaveEntityNoCommit(filesSub); - }); - return true; - }); - } - } -} \ No newline at end of file diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TLController/TLQualityCheckController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TLController/TLQualityCheckController.cs deleted file mode 100644 index 0dd99d1..0000000 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TLController/TLQualityCheckController.cs +++ /dev/null @@ -1,72 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.BaseData.Domain.IServices; -using APT.BaseData.Domain.IServices.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.TL; -using APT.MS.Domain.Enums; -using APT.Utility; -using Microsoft.AspNetCore.Mvc; -using System; -using System.Collections.Generic; -using System.Linq; - -namespace APT.SC.WebApi.Controllers.Api.SC -{ - [Route("api/TL/TLQualityCheck")] - public class TLQualityCheckController : AuthorizeApiController - { - IFMFlowPermitService MFlowPermitService { get; set; } - IFMNotificationTaskService NotificationTaskService { get; set; } - public TLQualityCheckController(IFMFlowPermitService mFlowPermitService, IFMNotificationTaskService notificationTaskService) - { - MFlowPermitService = mFlowPermitService; - NotificationTaskService = notificationTaskService; - } - - /// - /// 附件上传 - /// 设计文件专家评审意见 - /// - /// - /// - [HttpPost, Route("FullUpdate")] - public JsonActionResult FullUpdate([FromBody] T_TL_QUALITY_CHECK entity) - { - return SafeExecute(() => - { - var files = entity.Nav_Files;//附件 - entity.Nav_Files = null; - if (entity.USER_ID == Guid.Empty) - { - entity.USER_ID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value; - entity.DEPARTMENT_ID = APT.Infrastructure.Api.AppContext.CurrentSession.DepartmentID; - - } - if (entity.USER_ID != APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value) - { - throw new Exception("只能操作自己提交的记录!"); - } - - if (entity.STATUS == PFStandardStatus.Archived) - { - if (files == null || !files.Any()) - { - throw new Exception("请上传隐蔽工程验收记录!"); - } - } - - entity.Nav_Tailing = null; - this.UnifiedCommit(() => - { - if (entity != null) - UpdateEntityNoCommit(entity); - if (files != null && files.Any())//附件 - BantchSaveEntityNoCommit(files); - }); - return true; - }); - } - } -} \ No newline at end of file diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TLController/TLTailingController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TLController/TLTailingController.cs deleted file mode 100644 index 17a1b9f..0000000 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TLController/TLTailingController.cs +++ /dev/null @@ -1,202 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums.PF; -using APT.BaseData.Domain.IServices; -using APT.BaseData.Domain.IServices.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.TL; -using APT.MS.Domain.Enums; -using APT.Utility; -using Microsoft.AspNetCore.Mvc; -using System; -using System.Collections.Generic; -using System.Linq; - -namespace APT.SC.WebApi.Controllers.Api.SC -{ - [Route("api/TL/TLTailing")] - public class TLTailingController : AuthorizeApiController - { - /// - /// 附件上传 - /// 设计文件专家评审意见 - /// - /// - /// - [HttpPost, Route("FullUpdate")] - public JsonActionResult FullUpdate([FromBody] T_TL_TAILING entity) - { - return SafeExecute(() => - { - var tailing = GetEntity(entity.ID); - if (tailing == null || entity.NAME == tailing.NAME) - { - return UpdateEntity(entity); - } - else - { - #region 获取和修改冗余字段 - - var listBack = GetEntities(e => e.TAILING_ID.HasValue && e.TAILING_ID.Value == entity.ID, null, null); - var listSum = GetEntities(e => e.TAILING_ID == entity.ID, null, null); - var listSet = GetEntities(e => e.TAILING_ID == entity.ID, null, null); - var listMPoint = GetEntities(e => e.TAILING_ID == entity.ID, null, null); - var listPercent = GetEntities(e => e.TAILING_ID == entity.ID, null, null); - var listMove = GetEntities(e => e.TAILING_ID == entity.ID, null, null); - var listPoint = GetEntities(e => e.TAILING_ID == entity.ID, null, null); - var listLDetail = GetEntities(e => e.TAILING_ID == entity.ID, null, null); - var listL = GetEntities(e => e.TAILING_ID == entity.ID, null, null); - var listDDetail = GetEntities(e => e.TAILING_ID == entity.ID, null, null); - var listD = GetEntities(e => e.TAILING_ID == entity.ID, null, null); - var listCheck = GetEntities(e => e.TAILING_ID == entity.ID, null, null); - var listBRecord = GetEntities(e => e.TAILING_ID == entity.ID, null, null); - var listCaculate = GetEntities(e => e.TAILING_ID == entity.ID, null, null); - var listHCheck = GetEntities(e => e.TAILING_ID == entity.ID, null, null); - var listOut = GetEntities(e => e.TAILING_ID == entity.ID, null, null); - var listFinish = GetEntities(e => e.TAILING_ID == entity.ID, null, null); - var listHight = GetEntities(e => e.TAILING_ID == entity.ID, null, null); - var listIntroduce = GetEntities(e => e.TAILING_ID == entity.ID, null, null); - var listRecord = GetEntities(e => e.TAILING_ID == entity.ID, null, null); - var listBank = GetEntities(e => e.TAILING_ID == entity.ID, null, null); - - foreach (var item in listBack) - { - item.TAILING_NAME = entity.NAME; - } - foreach (var item in listSum) - { - item.TAILING_NAME = entity.NAME; - } - - foreach (var item in listSet) - { - item.TAILING_NAME = entity.NAME; - } - foreach (var item in listMPoint) - { - item.TAILING_NAME = entity.NAME; - } - foreach (var item in listPercent) - { - item.TAILING_NAME = entity.NAME; - } - foreach (var item in listMove) - { - item.TAILING_NAME = entity.NAME; - } - foreach (var item in listPoint) - { - item.TAILING_NAME = entity.NAME; - } - foreach (var item in listLDetail) - { - item.TAILING_NAME = entity.NAME; - } - foreach (var item in listL) - { - item.TAILING_NAME = entity.NAME; - } - foreach (var item in listDDetail) - { - item.TAILING_NAME = entity.NAME; - } - foreach (var item in listD) - { - item.TAILING_NAME = entity.NAME; - } - foreach (var item in listCheck) - { - item.TAILING_NAME = entity.NAME; - } - foreach (var item in listBRecord) - { - item.TAILING_NAME = entity.NAME; - } - foreach (var item in listCaculate) - { - item.TAILING_NAME = entity.NAME; - } - foreach (var item in listHCheck) - { - item.TAILING_NAME = entity.NAME; - } - foreach (var item in listOut) - { - item.TAILING_NAME = entity.NAME; - } - foreach (var item in listFinish) - { - item.TAILING_NAME = entity.NAME; - } - foreach (var item in listHight) - { - item.TAILING_NAME = entity.NAME; - } - foreach (var item in listIntroduce) - { - item.TAILING_NAME = entity.NAME; - } - foreach (var item in listRecord) - { - item.TAILING_NAME = entity.NAME; - } - foreach (var item in listBank) - { - item.TAILING_NAME = entity.NAME; - } - - #endregion - - this.UnifiedCommit(() => - { - if (entity != null) - UpdateEntityNoCommit(entity); - if (listBack != null && listBack.Any()) - BantchUpdateEntityNoCommit(listBack); - if (listSum != null && listSum.Any()) - BantchUpdateEntityNoCommit(listSum); - if (listSet != null && listSet.Any()) - BantchUpdateEntityNoCommit(listSet); - if (listMPoint != null && listMPoint.Any()) - BantchUpdateEntityNoCommit(listMPoint); - if (listPercent != null && listPercent.Any()) - BantchUpdateEntityNoCommit(listPercent); - if (listMove != null && listMove.Any()) - BantchUpdateEntityNoCommit(listMove); - if (listPoint != null && listPoint.Any()) - BantchUpdateEntityNoCommit(listPoint); - if (listLDetail != null && listLDetail.Any()) - BantchUpdateEntityNoCommit(listLDetail); - if (listL != null && listL.Any()) - BantchUpdateEntityNoCommit(listL); - if (listDDetail != null && listDDetail.Any()) - BantchUpdateEntityNoCommit(listDDetail); - if (listD != null && listD.Any()) - BantchUpdateEntityNoCommit(listD); - if (listCheck != null && listCheck.Any()) - BantchUpdateEntityNoCommit(listCheck); - if (listBRecord != null && listBRecord.Any()) - BantchUpdateEntityNoCommit(listBRecord); - if (listCaculate != null && listCaculate.Any()) - BantchUpdateEntityNoCommit(listCaculate); - if (listHCheck != null && listHCheck.Any()) - BantchUpdateEntityNoCommit(listHCheck); - if (listOut != null && listOut.Any()) - BantchUpdateEntityNoCommit(listOut); - if (listFinish != null && listFinish.Any()) - BantchUpdateEntityNoCommit(listFinish); - if (listHight != null && listHight.Any()) - BantchUpdateEntityNoCommit(listHight); - if (listIntroduce != null && listIntroduce.Any()) - BantchUpdateEntityNoCommit(listIntroduce); - if (listBank != null && listBank.Any()) - BantchUpdateEntityNoCommit(listBank); - if (listRecord != null && listRecord.Any()) - BantchUpdateEntityNoCommit(listRecord); - }); - } - return true; - }); - } - } -} \ No newline at end of file diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TLController/TLWatchDaylyController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TLController/TLWatchDaylyController.cs deleted file mode 100644 index 68b8d20..0000000 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TLController/TLWatchDaylyController.cs +++ /dev/null @@ -1,386 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums; -using APT.BaseData.Domain.Enums.PF; -using APT.BaseData.Domain.IServices; -using APT.BaseData.Domain.IServices.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.TL; -using APT.MS.Domain.Enums; -using APT.Utility; -using Microsoft.AspNetCore.Mvc; -using System; -using System.Collections.Generic; -using System.Linq; - -namespace APT.SC.WebApi.Controllers.Api.SC -{ - [Route("api/TL/TLWatchDayly")] - public class TLWatchDaylyController : AuthorizeApiController - { - IFMFlowPermitService MFlowPermitService { get; set; } - IFMNotificationTaskService NotificationTaskService { get; set; } - public TLWatchDaylyController(IFMFlowPermitService mFlowPermitService, IFMNotificationTaskService notificationTaskService) - { - MFlowPermitService = mFlowPermitService; - NotificationTaskService = notificationTaskService; - } - - /// - /// 附件上传 - /// 设计文件专家评审意见 - /// - /// - /// - [HttpPost, Route("FullUpdate")] - public JsonActionResult FullUpdate([FromBody] T_TL_WATCH_DAYLY entity) - { - return SafeExecute(() => - { - - T_FM_NOTIFICATION_TASK taskDo = null; - //只要有一个人操作了 检测待办 其余 删除 - List listTaskRemoveID = null; - var loginID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID; - if (!loginID.HasValue) - { - throw new Exception("获取您的登录信息失败,请重新登录后再操作!"); - } - if ((entity.CREATE_TIME == null || (entity.CREATE_TIME.Value - DateTime.Now).TotalHours < 1) && entity.SUM_ID == Guid.Empty && entity.TaskID == Guid.Empty) - { - //判断为新增 无需任何处理 - } - else if (entity.USER_ID.HasValue) - { - if (entity.USER_ID.Value != loginID) - { - var userSend = GetEntity(entity.USER_ID.Value); - if (userSend != null) - { - throw new Exception("您不是【" + userSend.NAME + "】无权限操作此单!"); - } - else - { - throw new Exception("您无权限操作此单!"); - } - } - } - else if (entity.TaskID == Guid.Empty) - { - var listTaskTemp = GetEntities(e => e.SOURCE_DATA_ID.HasValue && e.SOURCE_DATA_ID.Value == entity.ID && e.SOURCE_FORMCODE == "TL041", null, null); - - if (listTaskTemp != null && listTaskTemp.Any()) - { - taskDo = listTaskTemp.FirstOrDefault(e => e.USER_ID == loginID.Value); - if (taskDo == null) - { - var listUserName = listTaskTemp.Where(e => e.USER_ID != loginID).Select(e => e.USER_NAME); - if (listUserName == null) - { - throw new Exception("您无权限操作此单!"); - } - else - { - throw new Exception("您不是【" + String.Join(",", listUserName) + "】无权限操作此单!"); - } - } - else - { - listTaskRemoveID = listTaskTemp.Where(e => e.USER_ID != loginID.Value).Select(e => e.ID).ToList(); - } - } - } - else - { - taskDo = GetEntity(entity.TaskID, null); - if (taskDo == null) - { - throw new Exception("该位移观测已处理,您无需再次处理!"); - } - else - { - var listTaskTemp = GetEntities(e => e.SOURCE_DATA_ID.HasValue && e.SOURCE_DATA_ID.Value == taskDo.SOURCE_DATA_ID.Value && e.ID != taskDo.ID && e.SOURCE_FORMCODE == "TL037", null, null); - if (listTaskTemp != null && listTaskTemp.Any()) - { - listTaskRemoveID = listTaskTemp.Select(e => e.ID).ToList(); - } - } - } - - var liatDetail = entity.Nav_ListDetail;//明细 - entity.Nav_ListDetail = null; - - if (!entity.USER_ID.HasValue || entity.USER_ID == Guid.Empty) - { - entity.USER_ID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value; - entity.DEPARTMENT_ID = APT.Infrastructure.Api.AppContext.CurrentSession.DepartmentID; - } - if (entity.USER_ID != APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value) - { - throw new Exception("只能操作自己提交的记录!"); - } - - if (entity.STATUS == PFStandardStatus.Archived) - { - if (liatDetail == null || !liatDetail.Any()) - { - throw new Exception("日常观测明细不能为空!"); - } - - //taskDo = GetEntity(entity.TaskID, null); - if (taskDo != null) - { - //操作待办处理 - taskDo.TASK_DT = DateTime.Now; - taskDo.SOURCE_FORMCODE = "TL037_SHOWPRINT"; - if (taskDo.TASK_ENDDT >= taskDo.TASK_DT) - taskDo.NOTICE_STATUS = (int)FMNoticeStatusEnum.正常已办; - else - taskDo.NOTICE_STATUS = (int)FMNoticeStatusEnum.超期办理; - } - } - List listUserID = null; - List listUsers = null;//观测人 - List listUserTemp = null;//观测人 - if (liatDetail != null && liatDetail.Any()) - { - listUsers = new List(); - int rowIndex = 0; - foreach (var item in liatDetail) - { - #region 数据填充 - if (entity.TAILING_ID != Guid.Empty) - { - item.TAILING_ID = entity.TAILING_ID; - } - - #endregion - rowIndex++; - if (item.Nav_ListUser != null && item.Nav_ListUser.Any()) - { - listUserTemp = item.Nav_ListUser.ToList(); - foreach (var itemWatch in listUserTemp) - { - if (itemWatch.USER_ID == entity.USER_ID) - { - itemWatch.ISCHECK = true; - } - else - { - itemWatch.ISCHECK = false; - } - } - - listUsers.AddRange(listUserTemp); - if (entity.STATUS == PFStandardStatus.Archived && (listUserTemp.Count > 1 || listUserTemp[0].USER_ID != entity.USER_ID)) - { - if (listUserID == null) - { - listUserID = new List(); - } - foreach (var itemUser in listUserTemp) - { - if (itemUser.USER_ID != entity.USER_ID && !listUserID.Contains(itemUser.USER_ID)) - { - listUserID.Add(itemUser.USER_ID); - } - } - } - } - if (entity.STATUS != PFStandardStatus.Archived) - { - continue; - } - - if (item.DATE == DateTime.MinValue) - { - throw new Exception("观测日期行【" + rowIndex + "】不能为空!"); - } - if (!item.LONG.HasValue) - { - throw new Exception("干滩长度/m行【" + rowIndex + "】不能为空!"); - } - if (!item.WATERLINE.HasValue) - { - throw new Exception("库水位/m行【" + rowIndex + "】不能为空!"); - } - if (!item.DREEP.HasValue) - { - throw new Exception("降雨量/mm行【" + rowIndex + "】不能为空!"); - } - if (!item.HIGHTEST.HasValue) - { - throw new Exception("滩顶高程行【" + rowIndex + "】不能为空!"); - } - if (!item.HIGHT_MORE.HasValue) - { - throw new Exception("安全超高行【" + rowIndex + "】不能为空!"); - } - if (item.Nav_ListUser == null || !item.Nav_ListUser.Any()) - { - throw new Exception("观测人员行【" + rowIndex + "】不能为空!"); - } - } - } - - List listTask = null; - //发送 确认单 待办 - if (listUserID != null && listUserID.Any()) - { - //接收确认 待办 - List listUserSend = GetEntities(e => listUserID.Contains(e.ID), null, null).ToList(); - entity.STATUS = PFStandardStatus.Sign; - List listSendUserID = new List(); - List listSendUserNAME = new List(); - foreach (var item in listUserSend) - { - listSendUserID.Add(item.ID); - listSendUserNAME.Add(item.NAME); - } - listTask = NotificationTaskService.InsertUserNoticeTaskModels("尾矿库日常观测记录确认-" + entity.DATE.ToString("MMdd"), entity.ID, entity.ORG_ID, listSendUserID, listSendUserNAME, DateTime.Now, 0, "TL037_SHOWPRINT", FMTASKTYPE.Default); - } - - T_TL_WATCH_SUM sum = null; - if (entity.SUM_ID == Guid.Empty) - { - sum = GetEntity(e => e.DATE == DateTime.Now.Date); - if (sum == null) - { - sum = new T_TL_WATCH_SUM(); - sum.ID = Guid.NewGuid(); - sum.ORG_ID = entity.ORG_ID; - sum.DATE = DateTime.Now.Date; - sum.TAILING_NAME = entity.TAILING_NAME; - sum.TAILING_ID = entity.TAILING_ID; - } - entity.SUM_ID = sum.ID; - } - liatDetail.ForEach(item => item.SUM_ID = entity.SUM_ID); - - //if (listUsers != null && listUsers.Any()) - //{ - // foreach (var item in listUsers) - // { - // item.Nav_User = null; - // } - //} - this.UnifiedCommit(() => - { - if (sum != null) - UpdateEntityNoCommit(sum); - - if (entity != null)//待办信息主题保存 - UpdateEntityNoCommit(entity); - if (liatDetail != null && liatDetail.Any())//明细 - BantchSaveEntityNoCommit(liatDetail); - if (listUsers != null && listUsers.Any())//观测人 - BantchSaveEntityNoCommit(listUsers); - - if (entity.STATUS != PFStandardStatus.Draft && taskDo != null)//检测记录待办删除 - UpdateEntityNoCommit(taskDo); - if (listTaskRemoveID != null && listTaskRemoveID.Any())//同部门岗位人员检测待办 删除 - BantchDeleteEntity(listTaskRemoveID); - if (listTask != null && listTask.Any())//多检测人添加确认待办 - BantchSaveEntityNoCommit(listTask); - }); - return true; - }); - } - - /// - /// 确认 - /// - /// - /// - [HttpPost, Route("sendCheck")] - public JsonActionResult sendCheck([FromBody] KeywordFilter filter) - { - return SafeExecute(() => - { - if (string.IsNullOrEmpty(filter.Keyword) || string.IsNullOrEmpty(filter.Parameter1)) - throw new Exception("获取参数有误"); - - Guid id = Guid.Empty; - try - { - id = new Guid(filter.Keyword); - } - catch - { - throw new Exception("获取参数有误"); - } - - Guid taskID = Guid.Empty; - if (!string.IsNullOrEmpty(filter.Parameter1)) - { - try - { - taskID = new Guid(filter.Parameter1); - } - catch - { - throw new Exception("获取参数有误"); - } - } - - Guid LoginID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value; - - var detail = GetEntities(e => e.DAYLY_ID == id, null, "Nav_ListUser"); - List listDestUserLogin = new List(); - bool isOther = false; - if (detail != null && detail.Any()) - { - foreach (var item in detail) - { - if (item.Nav_ListUser != null && item.Nav_ListUser.Any()) - { - try - { - var listDestUserTempLogin = item.Nav_ListUser.Where(e => !e.ISCHECK && e.USER_ID == LoginID); - if (listDestUserTempLogin != null && listDestUserTempLogin.Any()) - { - listDestUserLogin.AddRange(listDestUserTempLogin); - } - - if (!isOther) - { - var listDestUserTempNotLogin = item.Nav_ListUser.Where(e => !e.ISCHECK && e.USER_ID != LoginID); - if (listDestUserTempNotLogin != null && listDestUserTempNotLogin.Any()) - { - isOther = true; - } - } - } - catch { } - } - } - } - - var task = NotificationTaskService.GetEntityTask(taskID); - if (listDestUserLogin != null && listDestUserLogin.Any()) - listDestUserLogin.ForEach(e => { e.ISCHECK = true; e.MODIFY_TIME = DateTime.Now; }); - - T_TL_WATCH_DAYLY modelLine = null; - //如果没有未确认的观测人 修改主表状态 - if (!isOther) - { - modelLine = GetEntity(id); - modelLine.STATUS = PFStandardStatus.Archived; - modelLine.MODIFY_TIME = DateTime.Now; - } - - this.UnifiedCommit(() => - { - if (task != null)//代办消息 清除 - UpdateEntityNoCommit(task);//状态修改 - if (listDestUserLogin != null && listDestUserLogin.Count > 0) - BantchSaveEntityNoCommit(listDestUserLogin); - if (modelLine != null)//代办消息 清除 - UpdateEntityNoCommit(modelLine);//状态修改 - }); - return true; - }); - } - - } -} \ No newline at end of file diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TLController/TLWatchLineController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TLController/TLWatchLineController.cs deleted file mode 100644 index 218b53e..0000000 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TLController/TLWatchLineController.cs +++ /dev/null @@ -1,384 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums; -using APT.BaseData.Domain.Enums.PF; -using APT.BaseData.Domain.IServices; -using APT.BaseData.Domain.IServices.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.TL; -using APT.MS.Domain.Enums; -using APT.Utility; -using Microsoft.AspNetCore.Mvc; -using System; -using System.Collections.Generic; -using System.Linq; - -namespace APT.SC.WebApi.Controllers.Api.SC -{ - [Route("api/TL/TLWatchLine")] - public class TLWatchLineController : AuthorizeApiController - { - IFMFlowPermitService MFlowPermitService { get; set; } - IFMNotificationTaskService NotificationTaskService { get; set; } - public TLWatchLineController(IFMFlowPermitService mFlowPermitService, IFMNotificationTaskService notificationTaskService) - { - MFlowPermitService = mFlowPermitService; - NotificationTaskService = notificationTaskService; - } - - /// - /// 附件上传 - /// 设计文件专家评审意见 - /// - /// - /// - [HttpPost, Route("FullUpdate")] - public JsonActionResult FullUpdate([FromBody] T_TL_WATCH_LINE entity) - { - return SafeExecute(() => - { - T_FM_NOTIFICATION_TASK taskDo = null; - //只要有一个人操作了 检测待办 其余 删除 - List listTaskRemoveID = null; - var loginID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID; - if (!loginID.HasValue) - { - throw new Exception("获取您的登录信息失败,请重新登录后再操作!"); - } - if ((entity.CREATE_TIME == null || (entity.CREATE_TIME.Value - DateTime.Now).TotalHours < 1) && entity.SUM_ID == Guid.Empty && entity.TaskID == Guid.Empty) - { - //判断为新增 无需任何处理 - } - else if (entity.USER_ID.HasValue) - { - if (entity.USER_ID.Value != loginID) - { - var userSend = GetEntity(entity.USER_ID.Value); - if (userSend != null) - { - throw new Exception("您不是【" + userSend.NAME + "】无权限操作此单!"); - } - else - { - throw new Exception("您无权限操作此单!"); - } - } - } - else if (entity.TaskID == Guid.Empty) - { - var listTaskTemp = GetEntities(e => e.SOURCE_DATA_ID.HasValue && e.SOURCE_DATA_ID.Value == entity.ID && e.SOURCE_FORMCODE == "TL041", null, null); - - if (listTaskTemp != null && listTaskTemp.Any()) - { - taskDo = listTaskTemp.FirstOrDefault(e => e.USER_ID == loginID.Value); - if (taskDo == null) - { - var listUserName = listTaskTemp.Where(e => e.USER_ID != loginID).Select(e => e.USER_NAME); - if (listUserName == null) - { - throw new Exception("您无权限操作此单!"); - } - else - { - throw new Exception("您不是【" + String.Join(",", listUserName) + "】无权限操作此单!"); - } - } - else - { - listTaskRemoveID = listTaskTemp.Where(e => e.USER_ID != loginID.Value).Select(e => e.ID).ToList(); - } - } - } - else - { - taskDo = GetEntity(entity.TaskID, null); - if (taskDo == null) - { - throw new Exception("该位移观测已处理,您无需再次处理!"); - } - else - { - var listTaskTemp = GetEntities(e => e.SOURCE_DATA_ID.HasValue && e.SOURCE_DATA_ID.Value == taskDo.SOURCE_DATA_ID.Value && e.ID != taskDo.ID && e.SOURCE_FORMCODE == "TL043", null, null); - if (listTaskTemp != null && listTaskTemp.Any()) - { - listTaskRemoveID = listTaskTemp.Select(e => e.ID).ToList(); - } - } - } - - var liatDetail = entity.Nav_ListDetail;//明细 - entity.Nav_ListDetail = null; - - if (!entity.USER_ID.HasValue || entity.USER_ID == Guid.Empty) - { - entity.USER_ID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value; - entity.DEPARTMENT_ID = APT.Infrastructure.Api.AppContext.CurrentSession.DepartmentID; - } - if (entity.USER_ID != APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value) - { - throw new Exception("只能操作自己提交的记录!"); - } - if (entity.DATE == DateTime.MinValue) - { - throw new Exception("请选择日期!"); - } - if (entity.STATUS == PFStandardStatus.Archived) - { - if (liatDetail == null || !liatDetail.Any()) - { - throw new Exception("浸润线观测明细不能为空!"); - } - - //taskDo = GetEntity(entity.TaskID, null); - if (taskDo != null) - { - //操作待办处理 - taskDo.TASK_DT = DateTime.Now; - taskDo.SOURCE_FORMCODE = "TL043_SHOWPRINT"; - if (taskDo.TASK_ENDDT >= taskDo.TASK_DT) - taskDo.NOTICE_STATUS = (int)FMNoticeStatusEnum.正常已办; - else - taskDo.NOTICE_STATUS = (int)FMNoticeStatusEnum.超期办理; - } - } - List listUserID = null; - List listUsers = null;//观测人 - List listUserTemp = null;//观测人 - if (liatDetail != null && liatDetail.Any()) - { - listUsers = new List(); - int rowIndex = 0; - foreach (var item in liatDetail) - { - #region 数据填充 - if (entity.TAILING_ID != Guid.Empty) - { - item.TAILING_ID = entity.TAILING_ID; - } - - #endregion - - //item.Nav_WatchMovePoint = null; - - rowIndex++; - if (item.Nav_ListUser != null && item.Nav_ListUser.Any()) - { - listUserTemp = item.Nav_ListUser.ToList(); - foreach (var itemWatch in listUserTemp) - { - if (itemWatch.USER_ID == entity.USER_ID) - { - itemWatch.ISCHECK = true; - } - else - { - itemWatch.ISCHECK = false; - } - itemWatch.ORG_ID = entity.ORG_ID; - } - - listUsers.AddRange(listUserTemp); - if (entity.STATUS == PFStandardStatus.Archived && (listUserTemp.Count > 1 || listUserTemp[0].USER_ID != entity.USER_ID)) - { - if (listUserID == null) - { - listUserID = new List(); - } - foreach (var itemUser in listUserTemp) - { - if (itemUser.USER_ID != entity.USER_ID && !listUserID.Contains(itemUser.USER_ID)) - { - listUserID.Add(itemUser.USER_ID); - } - } - } - } - if (entity.STATUS != PFStandardStatus.Archived) - { - continue; - } - - if (item.DATE == DateTime.MinValue) - { - throw new Exception("观测日期行【" + rowIndex + "】不能为空!"); - } - if (item.WATCH_LINE_POINT_ID == Guid.Empty) - { - throw new Exception("基准点号行【" + rowIndex + "】不能为空!"); - } - //if (!string.IsNullOrEmpty(item.LOOKPOINT)) - //{ - // throw new Exception("观测值X/Y/Z行【" + rowIndex + "】不能为空!"); - //} - //if (!string.IsNullOrEmpty(item.CHANGELOOKPOINT)) - //{ - // throw new Exception("变化量△X/△Y/△Z行【" + rowIndex + "】不能为空!"); - //} - - if (item.Nav_ListUser == null || !item.Nav_ListUser.Any()) - { - throw new Exception("观测人员行【" + rowIndex + "】不能为空!"); - } - } - } - - List listTask = null; - //发送 确认单 待办 - if (listUserID != null && listUserID.Any()) - { - //接收确认 待办 - List listUserSend = GetEntities(e => listUserID.Contains(e.ID), null, null).ToList(); - entity.STATUS = PFStandardStatus.Sign; - List listSendUserID = new List(); - List listSendUserNAME = new List(); - foreach (var item in listUserSend) - { - listSendUserID.Add(item.ID); - listSendUserNAME.Add(item.NAME); - } - listTask = NotificationTaskService.InsertUserNoticeTaskModels("尾矿库浸润线观测记录确认-" + entity.DATE.ToString("MMdd"), entity.ID, entity.ORG_ID, listSendUserID, listSendUserNAME, DateTime.Now, 0, "TL043_SHOWPRINT", FMTASKTYPE.Default); - } - - T_TL_WATCH_SUM sum = null; - if (entity.SUM_ID == Guid.Empty) - { - sum = GetEntity(e => e.DATE == DateTime.Now.Date); - if (sum == null) - { - sum = new T_TL_WATCH_SUM(); - sum.ID = Guid.NewGuid(); - sum.ORG_ID = entity.ORG_ID; - sum.DATE = DateTime.Now.Date; - sum.TAILING_NAME = entity.TAILING_NAME; - sum.TAILING_ID = entity.TAILING_ID; - } - entity.SUM_ID = sum.ID; - } - liatDetail.ForEach(item => item.SUM_ID = entity.SUM_ID); - - //if (listUsers != null && listUsers.Any()) - //{ - // foreach (var item in listUsers) - // { - // item.Nav_User = null; - // } - //} - this.UnifiedCommit(() => - { - if (sum != null) - UpdateEntityNoCommit(sum); - - if (entity != null)//待办信息主题保存 - UpdateEntityNoCommit(entity); - if (liatDetail != null && liatDetail.Any())//明细 - BantchSaveEntityNoCommit(liatDetail); - if (listUsers != null && listUsers.Any())//观测人 - BantchSaveEntityNoCommit(listUsers); - - if (entity.STATUS != PFStandardStatus.Draft && taskDo != null)//检测记录待办删除 - UpdateEntityNoCommit(taskDo); - if (listTaskRemoveID != null && listTaskRemoveID.Any())//同部门岗位人员检测待办 删除 - BantchDeleteEntity(listTaskRemoveID); - if (listTask != null && listTask.Any())//多检测人添加确认待办 - BantchSaveEntityNoCommit(listTask); - }); - return true; - }); - } - - /// - /// 确认 - /// - /// - /// - [HttpPost, Route("sendCheck")] - public JsonActionResult sendCheck([FromBody] KeywordFilter filter) - { - return SafeExecute(() => - { - if (string.IsNullOrEmpty(filter.Keyword) || string.IsNullOrEmpty(filter.Parameter1)) - throw new Exception("获取参数有误"); - - Guid id = Guid.Empty; - try - { - id = new Guid(filter.Keyword); - } - catch - { - throw new Exception("获取参数有误"); - } - - Guid taskID = Guid.Empty; - if (!string.IsNullOrEmpty(filter.Parameter1)) - { - try - { - taskID = new Guid(filter.Parameter1); - } - catch - { - throw new Exception("获取参数有误"); - } - } - - Guid LoginID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value; - - var detail = GetEntities(e => e.LINE_ID == id, null, "Nav_ListUser"); - List listDestUserLogin = new List(); - bool isOther = false; - if (detail != null && detail.Any()) - { - foreach (var item in detail) - { - if (item.Nav_ListUser != null && item.Nav_ListUser.Any()) - { - try - { - var listDestUserTempLogin = item.Nav_ListUser.Where(e => !e.ISCHECK && e.USER_ID == LoginID); - if (listDestUserTempLogin != null && listDestUserTempLogin.Any()) - { - listDestUserLogin.AddRange(listDestUserTempLogin); - } - - if (!isOther) - { - var listDestUserTempNotLogin = item.Nav_ListUser.Where(e => !e.ISCHECK && e.USER_ID != LoginID); - if (listDestUserTempNotLogin != null && listDestUserTempNotLogin.Any()) - { - isOther = true; - } - } - } - catch { } - } - } - } - - var task = NotificationTaskService.GetEntityTask(taskID); - if (listDestUserLogin != null && listDestUserLogin.Any()) - listDestUserLogin.ForEach(e => { e.ISCHECK = true; e.MODIFY_TIME = DateTime.Now; }); - - T_TL_WATCH_LINE modelLine = null; - //如果没有未确认的观测人 修改主表状态 - if (!isOther) - { - modelLine = GetEntity(id); - modelLine.STATUS = PFStandardStatus.Archived; - modelLine.MODIFY_TIME = DateTime.Now; - } - - this.UnifiedCommit(() => - { - if (task != null)//代办消息 清除 - UpdateEntityNoCommit(task);//状态修改 - if (listDestUserLogin != null && listDestUserLogin.Count > 0) - BantchSaveEntityNoCommit(listDestUserLogin); - if (modelLine != null)//代办消息 清除 - UpdateEntityNoCommit(modelLine);//状态修改 - }); - return true; - }); - } - } -} \ No newline at end of file diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TLController/TLWatchMoveController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TLController/TLWatchMoveController.cs deleted file mode 100644 index 7e479e8..0000000 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TLController/TLWatchMoveController.cs +++ /dev/null @@ -1,385 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums; -using APT.BaseData.Domain.Enums.PF; -using APT.BaseData.Domain.IServices; -using APT.BaseData.Domain.IServices.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.TL; -using APT.MS.Domain.Enums; -using APT.Utility; -using Microsoft.AspNetCore.Mvc; -using System; -using System.Collections.Generic; -using System.Linq; - -namespace APT.SC.WebApi.Controllers.Api.SC -{ - [Route("api/TL/TLWatchMove")] - public class TLWatchMoveController : AuthorizeApiController - { - IFMFlowPermitService MFlowPermitService { get; set; } - IFMNotificationTaskService NotificationTaskService { get; set; } - public TLWatchMoveController(IFMFlowPermitService mFlowPermitService, IFMNotificationTaskService notificationTaskService) - { - MFlowPermitService = mFlowPermitService; - NotificationTaskService = notificationTaskService; - } - - /// - /// 附件上传 - /// 设计文件专家评审意见 - /// - /// - /// - [HttpPost, Route("FullUpdate")] - public JsonActionResult FullUpdate([FromBody] T_TL_WATCH_MOVE entity) - { - return SafeExecute(() => - { - T_FM_NOTIFICATION_TASK taskDo = null; - //只要有一个人操作了 检测待办 其余 删除 - List listTaskRemoveID = null; - var loginID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID; - if (!loginID.HasValue) - { - throw new Exception("获取您的登录信息失败,请重新登录后再操作!"); - } - if ((entity.CREATE_TIME == null || (entity.CREATE_TIME.Value - DateTime.Now).TotalHours < 1) && entity.SUM_ID == Guid.Empty && entity.TaskID == Guid.Empty) - { - //判断为新增 无需任何处理 - } - else if (entity.USER_ID.HasValue) - { - if (entity.USER_ID.Value != loginID) - { - var userSend = GetEntity(entity.USER_ID.Value); - if (userSend != null) - { - throw new Exception("您不是【" + userSend.NAME + "】无权限操作此单!"); - } - else - { - throw new Exception("您无权限操作此单!"); - } - } - } - else if (entity.TaskID == Guid.Empty) - { - var listTaskTemp = GetEntities(e => e.SOURCE_DATA_ID.HasValue && e.SOURCE_DATA_ID.Value == entity.ID && e.SOURCE_FORMCODE == "TL041", null, null); - - if (listTaskTemp != null && listTaskTemp.Any()) - { - taskDo = listTaskTemp.FirstOrDefault(e => e.USER_ID == loginID.Value); - if (taskDo == null) - { - var listUserName = listTaskTemp.Where(e => e.USER_ID != loginID).Select(e => e.USER_NAME); - if (listUserName == null) - { - throw new Exception("您无权限操作此单!"); - } - else - { - throw new Exception("您不是【" + String.Join(",", listUserName) + "】无权限操作此单!"); - } - } - else - { - listTaskRemoveID = listTaskTemp.Where(e => e.USER_ID != loginID.Value).Select(e => e.ID).ToList(); - } - } - } - else - { - taskDo = GetEntity(entity.TaskID, null); - if (taskDo == null) - { - throw new Exception("该位移观测已处理,您无需再次处理!"); - } - else - { - var listTaskTemp = GetEntities(e => e.SOURCE_DATA_ID.HasValue && e.SOURCE_DATA_ID.Value == taskDo.SOURCE_DATA_ID.Value && e.ID != taskDo.ID && e.SOURCE_FORMCODE == "TL041", null, null); - if (listTaskTemp != null && listTaskTemp.Any()) - { - listTaskRemoveID = listTaskTemp.Select(e => e.ID).ToList(); - } - } - } - - var liatDetail = entity.Nav_ListDetail;//明细 - entity.Nav_ListDetail = null; - - if (!entity.USER_ID.HasValue || entity.USER_ID == Guid.Empty) - { - entity.USER_ID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value; - entity.DEPARTMENT_ID = APT.Infrastructure.Api.AppContext.CurrentSession.DepartmentID; - } - if (entity.USER_ID != APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value) - { - throw new Exception("只能操作自己提交的记录!"); - } - if (entity.DATE == DateTime.MinValue) - { - throw new Exception("请选择日期!"); - } - if (entity.STATUS == PFStandardStatus.Archived) - { - if (liatDetail == null || !liatDetail.Any()) - { - throw new Exception("位移观测明细不能为空!"); - } - - //taskDo = GetEntity(entity.TaskID, null); - if (taskDo != null) - { - //操作待办处理 - taskDo.TASK_DT = DateTime.Now; - taskDo.SOURCE_FORMCODE = "TL041_SHOWPRINT"; - if (taskDo.TASK_ENDDT >= taskDo.TASK_DT) - taskDo.NOTICE_STATUS = (int)FMNoticeStatusEnum.正常已办; - else - taskDo.NOTICE_STATUS = (int)FMNoticeStatusEnum.超期办理; - } - } - List listUserID = null; - List listUsers = null;//观测人 - List listUserTemp = null;//观测人 - if (liatDetail != null && liatDetail.Any()) - { - listUsers = new List(); - int rowIndex = 0; - foreach (var item in liatDetail) - { - #region 数据填充 - if (entity.TAILING_ID != Guid.Empty) - { - item.TAILING_ID = entity.TAILING_ID; - } - - #endregion - - //item.Nav_WatchMovePoint = null; - - rowIndex++; - if (item.Nav_ListUser != null && item.Nav_ListUser.Any()) - { - listUserTemp = item.Nav_ListUser.ToList(); - foreach (var itemWatch in listUserTemp) - { - if (itemWatch.USER_ID == entity.USER_ID) - { - itemWatch.ISCHECK = true; - } - else - { - itemWatch.ISCHECK = false; - } - itemWatch.ORG_ID = entity.ORG_ID; - } - - listUsers.AddRange(listUserTemp); - if (entity.STATUS == PFStandardStatus.Archived && (listUserTemp.Count > 1 || listUserTemp[0].USER_ID != entity.USER_ID)) - { - if (listUserID == null) - { - listUserID = new List(); - } - foreach (var itemUser in listUserTemp) - { - if (itemUser.USER_ID != entity.USER_ID && !listUserID.Contains(itemUser.USER_ID)) - { - listUserID.Add(itemUser.USER_ID); - } - } - } - } - if (entity.STATUS != PFStandardStatus.Archived) - { - continue; - } - - if (item.DATE == DateTime.MinValue) - { - throw new Exception("日期行【" + rowIndex + "】不能为空!"); - } - if (!item.WATCH_MOVE_POINT_ID.HasValue) - { - throw new Exception("基准点号行【" + rowIndex + "】不能为空!"); - } - if (string.IsNullOrEmpty(item.LOOKPOINT)) - { - throw new Exception("观测值X/Y/Z行【" + rowIndex + "】不能为空!"); - } - if (string.IsNullOrEmpty(item.CHANGELOOKPOINT)) - { - throw new Exception("变化量△X/△Y/△Z行【" + rowIndex + "】不能为空!"); - } - - if (item.Nav_ListUser == null || !item.Nav_ListUser.Any()) - { - throw new Exception("观测人员行【" + rowIndex + "】不能为空!"); - } - } - } - - List listTask = null; - //发送 确认单 待办 - if (listUserID != null && listUserID.Any()) - { - //接收确认 待办 - List listUserSend = GetEntities(e => listUserID.Contains(e.ID), null, null).ToList(); - entity.STATUS = PFStandardStatus.Sign; - List listSendUserID = new List(); - List listSendUserNAME = new List(); - foreach (var item in listUserSend) - { - listSendUserID.Add(item.ID); - listSendUserNAME.Add(item.NAME); - } - listTask = NotificationTaskService.InsertUserNoticeTaskModels("尾矿库位移观测记录确认-" + entity.DATE.ToString("MMdd"), entity.ID, entity.ORG_ID, listSendUserID, listSendUserNAME, DateTime.Now, 0, "TL041_SHOWPRINT", FMTASKTYPE.Default); - } - - T_TL_WATCH_SUM sum = null; - if (entity.SUM_ID == Guid.Empty) - { - sum = GetEntity(e => e.DATE == DateTime.Now.Date); - if (sum == null) - { - sum = new T_TL_WATCH_SUM(); - sum.ID = Guid.NewGuid(); - sum.ORG_ID = entity.ORG_ID; - sum.DATE = DateTime.Now.Date; - sum.TAILING_NAME = entity.TAILING_NAME; - sum.TAILING_ID = entity.TAILING_ID; - } - entity.SUM_ID = sum.ID; - } - liatDetail.ForEach(item => item.SUM_ID = entity.SUM_ID); - - //if (listUsers != null && listUsers.Any()) - //{ - // foreach (var item in listUsers) - // { - // item.Nav_User = null; - // } - //} - this.UnifiedCommit(() => - { - if (sum != null) - UpdateEntityNoCommit(sum); - - if (entity != null)//待办信息主题保存 - UpdateEntityNoCommit(entity); - if (liatDetail != null && liatDetail.Any())//明细 - BantchSaveEntityNoCommit(liatDetail); - if (listUsers != null && listUsers.Any())//观测人 - BantchSaveEntityNoCommit(listUsers); - - if (entity.STATUS != PFStandardStatus.Draft && taskDo != null)//检测记录待办删除 - UpdateEntityNoCommit(taskDo); - if (listTaskRemoveID != null && listTaskRemoveID.Any())//同部门岗位人员检测待办 删除 - BantchDeleteEntity(listTaskRemoveID); - if (listTask != null && listTask.Any())//多检测人添加确认待办 - BantchSaveEntityNoCommit(listTask); - }); - return true; - }); - } - - /// - /// 确认 - /// - /// - /// - [HttpPost, Route("sendCheck")] - public JsonActionResult sendCheck([FromBody] KeywordFilter filter) - { - return SafeExecute(() => - { - if (string.IsNullOrEmpty(filter.Keyword) || string.IsNullOrEmpty(filter.Parameter1)) - throw new Exception("获取参数有误"); - - Guid id = Guid.Empty; - try - { - id = new Guid(filter.Keyword); - } - catch - { - throw new Exception("获取参数有误"); - } - - Guid taskID = Guid.Empty; - if (!string.IsNullOrEmpty(filter.Parameter1)) - { - try - { - taskID = new Guid(filter.Parameter1); - } - catch - { - throw new Exception("获取参数有误"); - } - } - - Guid LoginID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value; - - var detail = GetEntities(e => e.MOVE_ID == id, null, "Nav_ListUser"); - List listDestUserLogin = new List(); - bool isOther = false; - if (detail != null && detail.Any()) - { - foreach (var item in detail) - { - if (item.Nav_ListUser != null && item.Nav_ListUser.Any()) - { - try - { - var listDestUserTempLogin = item.Nav_ListUser.Where(e => !e.ISCHECK && e.USER_ID == LoginID); - if (listDestUserTempLogin != null && listDestUserTempLogin.Any()) - { - listDestUserLogin.AddRange(listDestUserTempLogin); - } - - if (!isOther) - { - var listDestUserTempNotLogin = item.Nav_ListUser.Where(e => !e.ISCHECK && e.USER_ID != LoginID); - if (listDestUserTempNotLogin != null && listDestUserTempNotLogin.Any()) - { - isOther = true; - } - } - } - catch { } - } - } - } - - var task = NotificationTaskService.GetEntityTask(taskID); - if (listDestUserLogin != null && listDestUserLogin.Any()) - listDestUserLogin.ForEach(e => { e.ISCHECK = true; e.MODIFY_TIME = DateTime.Now; }); - - T_TL_WATCH_MOVE modelLine = null; - //如果没有未确认的观测人 修改主表状态 - if (!isOther) - { - modelLine = GetEntity(id); - modelLine.STATUS = PFStandardStatus.Archived; - modelLine.MODIFY_TIME = DateTime.Now; - } - - this.UnifiedCommit(() => - { - if (task != null)//代办消息 清除 - UpdateEntityNoCommit(task);//状态修改 - if (listDestUserLogin != null && listDestUserLogin.Count > 0) - BantchSaveEntityNoCommit(listDestUserLogin); - if (modelLine != null)//代办消息 清除 - UpdateEntityNoCommit(modelLine);//状态修改 - }); - return true; - }); - } - - } -} \ No newline at end of file diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TLController/TLWatchPercentController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TLController/TLWatchPercentController.cs deleted file mode 100644 index 4ce7772..0000000 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TLController/TLWatchPercentController.cs +++ /dev/null @@ -1,377 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums; -using APT.BaseData.Domain.Enums.PF; -using APT.BaseData.Domain.IServices; -using APT.BaseData.Domain.IServices.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.TL; -using APT.MS.Domain.Enums; -using APT.Utility; -using Microsoft.AspNetCore.Mvc; -using System; -using System.Collections.Generic; -using System.Linq; - -namespace APT.SC.WebApi.Controllers.Api.SC -{ - [Route("api/TL/TLWatchPercent")] - public class TLWatchPercentController : AuthorizeApiController - { - IFMFlowPermitService MFlowPermitService { get; set; } - IFMNotificationTaskService NotificationTaskService { get; set; } - public TLWatchPercentController(IFMFlowPermitService mFlowPermitService, IFMNotificationTaskService notificationTaskService) - { - MFlowPermitService = mFlowPermitService; - NotificationTaskService = notificationTaskService; - } - - /// - /// 附件上传 - /// 设计文件专家评审意见 - /// - /// - /// - [HttpPost, Route("FullUpdate")] - public JsonActionResult FullUpdate([FromBody] T_TL_WATCH_PERCENT entity) - { - return SafeExecute(() => - { - T_FM_NOTIFICATION_TASK taskDo = null; - //只要有一个人操作了 检测待办 其余 删除 - List listTaskRemoveID = null; - var loginID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID; - if (!loginID.HasValue) - { - throw new Exception("获取您的登录信息失败,请重新登录后再操作!"); - } - if ((entity.CREATE_TIME == null || (entity.CREATE_TIME.Value - DateTime.Now).TotalHours < 1) && entity.SUM_ID == Guid.Empty && entity.TaskID == Guid.Empty) - { - //判断为新增 无需任何处理 - } - else if (entity.USER_ID.HasValue) - { - if (entity.USER_ID.Value != loginID) - { - var userSend = GetEntity(entity.USER_ID.Value); - if (userSend != null) - { - throw new Exception("您不是【" + userSend.NAME + "】无权限操作此单!"); - } - else - { - throw new Exception("您无权限操作此单!"); - } - } - } - else if (entity.TaskID == Guid.Empty) - { - var listTaskTemp = GetEntities(e => e.SOURCE_DATA_ID.HasValue && e.SOURCE_DATA_ID.Value == entity.ID && e.SOURCE_FORMCODE == "TL041", null, null); - - if (listTaskTemp != null && listTaskTemp.Any()) - { - taskDo = listTaskTemp.FirstOrDefault(e => e.USER_ID == loginID.Value); - if (taskDo == null) - { - var listUserName = listTaskTemp.Where(e => e.USER_ID != loginID).Select(e => e.USER_NAME); - if (listUserName == null) - { - throw new Exception("您无权限操作此单!"); - } - else - { - throw new Exception("您不是【" + String.Join(",", listUserName) + "】无权限操作此单!"); - } - } - else - { - listTaskRemoveID = listTaskTemp.Where(e => e.USER_ID != loginID.Value).Select(e => e.ID).ToList(); - } - } - } - else - { - taskDo = GetEntity(entity.TaskID, null); - if (taskDo == null) - { - throw new Exception("该位移观测已处理,您无需再次处理!"); - } - else - { - var listTaskTemp = GetEntities(e => e.SOURCE_DATA_ID.HasValue && e.SOURCE_DATA_ID.Value == taskDo.SOURCE_DATA_ID.Value && e.ID != taskDo.ID && e.SOURCE_FORMCODE == "TL039", null, null); - if (listTaskTemp != null && listTaskTemp.Any()) - { - listTaskRemoveID = listTaskTemp.Select(e => e.ID).ToList(); - } - } - } - - var liatDetail = entity.Nav_ListDetail;//明细 - entity.Nav_ListDetail = null; - - if (!entity.USER_ID.HasValue || entity.USER_ID == Guid.Empty) - { - entity.USER_ID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value; - entity.DEPARTMENT_ID = APT.Infrastructure.Api.AppContext.CurrentSession.DepartmentID; - } - if (entity.USER_ID != APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value) - { - throw new Exception("只能操作自己提交的记录!"); - } - if (entity.DATE == DateTime.MinValue) - { - throw new Exception("请选择日期!"); - } - if (entity.STATUS == PFStandardStatus.Archived) - { - if (liatDetail == null || !liatDetail.Any()) - { - throw new Exception("坡比观测明细不能为空!"); - } - - //taskDo = GetEntity(entity.TaskID, null); - if (taskDo != null) - { - //操作待办处理 - taskDo.TASK_DT = DateTime.Now; - taskDo.SOURCE_FORMCODE = "TL039_SHOWPRINT"; - if (taskDo.TASK_ENDDT >= taskDo.TASK_DT) - taskDo.NOTICE_STATUS = (int)FMNoticeStatusEnum.正常已办; - else - taskDo.NOTICE_STATUS = (int)FMNoticeStatusEnum.超期办理; - } - } - List listUserID = null; - List listUsers = null;//观测人 - List listUserTemp = null;//观测人 - if (liatDetail != null && liatDetail.Any()) - { - listUsers = new List(); - int rowIndex = 0; - foreach (var item in liatDetail) - { - #region 数据填充 - if (entity.TAILING_ID != Guid.Empty) - { - item.TAILING_ID = entity.TAILING_ID; - } - - #endregion - rowIndex++; - if (item.Nav_ListUser != null && item.Nav_ListUser.Any()) - { - listUserTemp = item.Nav_ListUser.ToList(); - foreach (var itemWatch in listUserTemp) - { - if (itemWatch.USER_ID == entity.USER_ID) - { - itemWatch.ISCHECK = true; - } - else - { - itemWatch.ISCHECK = false; - } - } - - listUsers.AddRange(listUserTemp); - if (entity.STATUS == PFStandardStatus.Archived && (listUserTemp.Count > 1 || listUserTemp[0].USER_ID != entity.USER_ID)) - { - if (listUserID == null) - { - listUserID = new List(); - } - foreach (var itemUser in listUserTemp) - { - if (itemUser.USER_ID != entity.USER_ID && !listUserID.Contains(itemUser.USER_ID)) - { - listUserID.Add(itemUser.USER_ID); - } - } - } - } - if (entity.STATUS != PFStandardStatus.Archived) - { - continue; - } - - if (item.DATE == DateTime.MinValue) - { - throw new Exception("观测日期行【" + rowIndex + "】不能为空!"); - } - if (string.IsNullOrEmpty(item.INT_PERCENT)) - { - throw new Exception("内坡比行【" + rowIndex + "】不能为空!"); - } - if (string.IsNullOrEmpty(item.OUT_PERCENT)) - { - throw new Exception("外坡比行【" + rowIndex + "】不能为空!"); - } - - if (item.Nav_ListUser == null || !item.Nav_ListUser.Any()) - { - throw new Exception("观测人员行【" + rowIndex + "】不能为空!"); - } - } - } - - List listTask = null; - //发送 确认单 待办 - if (listUserID != null && listUserID.Any()) - { - //接收确认 待办 - List listUserSend = GetEntities(e => listUserID.Contains(e.ID), null, null).ToList(); - entity.STATUS = PFStandardStatus.Sign; - List listSendUserID = new List(); - List listSendUserNAME = new List(); - foreach (var item in listUserSend) - { - listSendUserID.Add(item.ID); - listSendUserNAME.Add(item.NAME); - } - listTask = NotificationTaskService.InsertUserNoticeTaskModels("尾矿库坡比观测记录确认-" + entity.DATE.ToString("MMdd"), entity.ID, entity.ORG_ID, listSendUserID, listSendUserNAME, DateTime.Now, 0, "TL039_SHOWPRINT", FMTASKTYPE.Default); - } - - T_TL_WATCH_SUM sum = null; - if (entity.SUM_ID == Guid.Empty) - { - sum = GetEntity(e => e.DATE == DateTime.Now.Date); - if (sum == null) - { - sum = new T_TL_WATCH_SUM(); - sum.ID = Guid.NewGuid(); - sum.ORG_ID = entity.ORG_ID; - sum.DATE = DateTime.Now.Date; - sum.TAILING_NAME = entity.TAILING_NAME; - sum.TAILING_ID = entity.TAILING_ID; - } - entity.SUM_ID = sum.ID; - } - liatDetail.ForEach(item => item.SUM_ID = entity.SUM_ID); - - //if (listUsers != null && listUsers.Any()) - //{ - // foreach (var item in listUsers) - // { - // item.Nav_User = null; - // } - //} - this.UnifiedCommit(() => - { - if (sum != null) - UpdateEntityNoCommit(sum); - - if (entity != null)//待办信息主题保存 - UpdateEntityNoCommit(entity); - if (liatDetail != null && liatDetail.Any())//明细 - BantchSaveEntityNoCommit(liatDetail); - if (listUsers != null && listUsers.Any())//观测人 - BantchSaveEntityNoCommit(listUsers); - - if (entity.STATUS != PFStandardStatus.Draft && taskDo != null)//检测记录待办删除 - UpdateEntityNoCommit(taskDo); - if (listTaskRemoveID != null && listTaskRemoveID.Any())//同部门岗位人员检测待办 删除 - BantchDeleteEntity(listTaskRemoveID); - if (listTask != null && listTask.Any())//多检测人添加确认待办 - BantchSaveEntityNoCommit(listTask); - }); - return true; - }); - } - - /// - /// 确认 - /// - /// - /// - [HttpPost, Route("sendCheck")] - public JsonActionResult sendCheck([FromBody] KeywordFilter filter) - { - return SafeExecute(() => - { - if (string.IsNullOrEmpty(filter.Keyword) || string.IsNullOrEmpty(filter.Parameter1)) - throw new Exception("获取参数有误"); - - Guid id = Guid.Empty; - try - { - id = new Guid(filter.Keyword); - } - catch - { - throw new Exception("获取参数有误"); - } - - Guid taskID = Guid.Empty; - if (!string.IsNullOrEmpty(filter.Parameter1)) - { - try - { - taskID = new Guid(filter.Parameter1); - } - catch - { - throw new Exception("获取参数有误"); - } - } - - Guid LoginID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value; - - var detail = GetEntities(e => e.PERCENT_ID == id, null, "Nav_ListUser"); - List listDestUserLogin = new List(); - bool isOther = false; - if (detail != null && detail.Any()) - { - foreach (var item in detail) - { - if (item.Nav_ListUser != null && item.Nav_ListUser.Any()) - { - try - { - var listDestUserTempLogin = item.Nav_ListUser.Where(e => !e.ISCHECK && e.USER_ID == LoginID); - if (listDestUserTempLogin != null && listDestUserTempLogin.Any()) - { - listDestUserLogin.AddRange(listDestUserTempLogin); - } - - if (!isOther) - { - var listDestUserTempNotLogin = item.Nav_ListUser.Where(e => !e.ISCHECK && e.USER_ID != LoginID); - if (listDestUserTempNotLogin != null && listDestUserTempNotLogin.Any()) - { - isOther = true; - } - } - } - catch { } - } - } - } - - var task = NotificationTaskService.GetEntityTask(taskID); - if (listDestUserLogin != null && listDestUserLogin.Any()) - listDestUserLogin.ForEach(e => { e.ISCHECK = true; e.MODIFY_TIME = DateTime.Now; }); - - T_TL_WATCH_PERCENT modelLine = null; - //如果没有未确认的观测人 修改主表状态 - if (!isOther) - { - modelLine = GetEntity(id); - modelLine.STATUS = PFStandardStatus.Archived; - modelLine.MODIFY_TIME = DateTime.Now; - } - - this.UnifiedCommit(() => - { - if (task != null)//代办消息 清除 - UpdateEntityNoCommit(task);//状态修改 - if (listDestUserLogin != null && listDestUserLogin.Count > 0) - BantchSaveEntityNoCommit(listDestUserLogin); - if (modelLine != null)//代办消息 清除 - UpdateEntityNoCommit(modelLine);//状态修改 - }); - return true; - }); - } - - } -} \ No newline at end of file diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TLController/TLWatchSumController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TLController/TLWatchSumController.cs deleted file mode 100644 index 037565c..0000000 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/TLController/TLWatchSumController.cs +++ /dev/null @@ -1,140 +0,0 @@ -using APT.BaseData.Domain.Entities; -using APT.BaseData.Domain.Entities.FM; -using APT.BaseData.Domain.Enums; -using APT.BaseData.Domain.Enums.PF; -using APT.BaseData.Domain.IServices; -using APT.BaseData.Domain.IServices.FM; -using APT.Infrastructure.Core; -using APT.MS.Domain.Entities.TL; -using APT.MS.Domain.Enums; -using APT.Utility; -using Microsoft.AspNetCore.Mvc; -using System; -using System.Collections.Generic; -using System.Linq; - -namespace APT.SC.WebApi.Controllers.Api.SC -{ - [Route("api/TL/TLWatchSum")] - public class TLWatchSumController : AuthorizeApiController - { - //IFMFlowPermitService MFlowPermitService { get; set; } - //IFMNotificationTaskService NotificationTaskService { get; set; } - //public TLWatchSumController(IFMFlowPermitService mFlowPermitService, IFMNotificationTaskService notificationTaskService) - //{ - // MFlowPermitService = mFlowPermitService; - // NotificationTaskService = notificationTaskService; - //} - - /// - /// 获得单条实体数据 - /// - /// 过滤实体 - /// - [HttpPost, Route("GetALL")] - public JsonActionResult GetALL([FromBody] KeywordFilter filter) - { - return SafeExecute(() => - { - var result = GetEntity(null, filter, null); - var listDayly = GetEntities(e => !e.IS_DELETED && e.DATE.HasValue && e.DATE.Value.Date == result.DATE, null, "Nav_ListUser.Nav_User").OrderBy(e => e.DATE).OrderBy(e => e.DAYLY_ID); - var listMove = GetEntities(e => !e.IS_DELETED && e.DATE.HasValue && e.DATE.Value.Date == result.DATE, null, "Nav_WatchMovePoint", "Nav_ListUser.Nav_User").OrderBy(e => e.DATE).OrderBy(e=>e.MOVE_ID); - var listLine = GetEntities(e => !e.IS_DELETED && e.DATE.HasValue && e.DATE.Value.Date == result.DATE, null, "Nav_WatchLinePoint", "Nav_ListUser.Nav_User").OrderBy(e => e.DATE).OrderBy(e => e.LINE_ID); - var listPercent = GetEntities(e => !e.IS_DELETED && e.DATE.HasValue && e.DATE.Value.Date == result.DATE, null, "Nav_ListUser.Nav_User").OrderBy(e => e.DATE).OrderBy(e => e.PERCENT_ID); - List listUserID = new List(); - List listUserIDMovd = null; - List listUserIDLine = null; - List listUserIDDayly = null; - List listUserIDPercent = null; - - if (listPercent != null && listPercent.Any()) - { - listUserIDPercent = new List(); - foreach (var item in listPercent) - { - listUserIDPercent.AddRange(item.Nav_ListUser.Select(e => e.USER_ID)); - item.Nav_ListUser = item.Nav_ListUser.OrderBy(e => e.MODIFY_TIME).ToList(); - } - listUserID.AddRange(listUserIDPercent); - result.Nav_ListDetailPercent = listPercent.ToList(); - } - if (listMove != null && listMove.Any()) - { - listUserIDMovd = new List(); - foreach (var item in listMove) - { - listUserIDMovd.AddRange(item.Nav_ListUser.Select(e => e.USER_ID)); - item.Nav_ListUser = item.Nav_ListUser.OrderBy(e => e.MODIFY_TIME).ToList(); - } - listUserID.AddRange(listUserIDMovd); - result.Nav_ListDetailMovd = listMove.ToList(); - } - if (listLine != null && listLine.Any()) - { - listUserIDLine = new List(); - foreach (var item in listLine) - { - item.Nav_ListUser = item.Nav_ListUser.OrderBy(e => e.MODIFY_TIME).ToList(); - listUserIDLine.AddRange(item.Nav_ListUser.Select(e => e.USER_ID)); - } - listUserID.AddRange(listUserIDLine); - result.Nav_ListDetailLine = listLine.ToList(); - } - if (listDayly != null && listDayly.Any()) - { - listUserIDDayly = new List(); - foreach (var item in listDayly) - { - listUserIDDayly.AddRange(item.Nav_ListUser.Select(e => e.USER_ID)); - item.Nav_ListUser = item.Nav_ListUser.OrderBy(e => e.MODIFY_TIME).ToList(); - } - listUserID.AddRange(listUserIDDayly); - result.Nav_ListDetailDayly = listDayly.ToList(); - } - - #region 签名 - - listUserID = listUserID.Distinct().ToList(); - var listUserSign = GetEntities(e => listUserID.Contains(e.ID), null, null); - var listUserSignFile = GetEntities(e => listUserID.Contains(e.USER_ID), null, "Nav_ImgFile.Nav_File"); - - if (listUserIDMovd != null) - { - result.Nav_ListSignMovd = listUserSign.Where(e => listUserIDMovd.Contains(e.ID)).ToList(); - foreach (var item in result.Nav_ListSignMovd) - { - item.Nav_UserSignFiles = listUserSignFile.Where(e => e.USER_ID == item.ID).ToList(); - } - } - - if (listUserIDLine != null) - { - result.Nav_ListSignLine = listUserSign.Where(e => listUserIDLine.Contains(e.ID)).ToList(); - foreach (var item in result.Nav_ListSignLine) - { - item.Nav_UserSignFiles = listUserSignFile.Where(e => e.USER_ID == item.ID).ToList(); - } - } - if (listUserIDDayly != null) - { - result.Nav_ListSignDayly = listUserSign.Where(e => listUserIDDayly.Contains(e.ID)).ToList(); - foreach (var item in result.Nav_ListSignDayly) - { - item.Nav_UserSignFiles = listUserSignFile.Where(e => e.USER_ID == item.ID).ToList(); - } - } - if (listUserIDPercent != null) - { - result.Nav_ListSignPercent = listUserSign.Where(e => listUserIDPercent.Contains(e.ID)).ToList(); - foreach (var item in result.Nav_ListSignPercent) - { - item.Nav_UserSignFiles = listUserSignFile.Where(e => e.USER_ID == item.ID).ToList(); - } - } - #endregion - - return result; - }); - } - } -} \ No newline at end of file