剥离OG
This commit is contained in:
parent
365222e5ca
commit
a4a2d689ff
@ -22,17 +22,5 @@ namespace APT.BaseData.Domain.IServices
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
bool yearTrainPlanAgree(string id);
|
||||
/// <summary>
|
||||
/// 认可与奖励审批
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
bool approveAndRewardAgree(string id);
|
||||
/// <summary>
|
||||
/// 责任制考核方案审核
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
bool safePdtAssessPlanCheck(string id);
|
||||
}
|
||||
}
|
||||
|
||||
@ -231,49 +231,5 @@ namespace APT.BaseData.Services.DomainServices
|
||||
});
|
||||
return true;
|
||||
}
|
||||
/// <summary>
|
||||
/// 认可与奖励审批流
|
||||
/// </summary>
|
||||
/// <param name="filter"></param>
|
||||
/// <returns></returns>
|
||||
public bool approveAndRewardAgree(string id)
|
||||
{
|
||||
var entity = GetEntity<T_OG_APPROVE_REWARD_PUNISHMENT_REPORT>(id);
|
||||
entity.STATUS = PFStandardStatus.Archived;
|
||||
UnifiedCommit(() =>
|
||||
{
|
||||
UpdateEntityNoCommit(entity);
|
||||
});
|
||||
return true;
|
||||
}
|
||||
/// <summary>
|
||||
/// 责任制考核方案审核
|
||||
/// </summary>
|
||||
/// <param name="filter"></param>
|
||||
/// <returns></returns>
|
||||
public bool safePdtAssessPlanCheck(string id)
|
||||
{
|
||||
var entity = GetEntity<T_OG_SAFE_PDT_ASSESS_PLAN_CHECK>(id, "Nav_Files");
|
||||
entity.STATUS = PFStandardStatus.Archived;
|
||||
var postInput = GetEntities<T_OG_SAFE_ASSESS_PLAN_INPUT>(t => t.CHECK_ID == Guid.Parse(id),new BaseFilter(entity.ORG_ID));
|
||||
foreach(var item in postInput)
|
||||
{
|
||||
item.STATUS = OGAssessPlanInputStatus.已提交;
|
||||
}
|
||||
List<Guid?> fileIds = new List<Guid?>();
|
||||
foreach (var file in entity.Nav_Files)
|
||||
{
|
||||
fileIds.Add(file.IMG_FILE_ID);
|
||||
}
|
||||
DepartmentService.AddDocument("安全生产组织保障", "考核方案审核表", entity.NAME + entity.LEVEL.GetDescription() + "安全生产责任制考核方案", "附件", "计划文件", DateTime.Now.AddYears(1), entity.ID, fileIds ,entity.USER_ID);
|
||||
UnifiedCommit(() =>
|
||||
{
|
||||
if (entity != null)
|
||||
UpdateEntityNoCommit(entity);
|
||||
if (postInput != null&& postInput.Any())
|
||||
BantchSaveEntityNoCommit(postInput);
|
||||
});
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -164,12 +164,6 @@ namespace APT.BaseData.Services.DomainServices
|
||||
case "SE/SEYearTrainPlan/yearTrainPlanAgree"://安全教育模块年度培训计划通过
|
||||
result = PFApproveCallBackSEService.yearTrainPlanAgree(DATA_ID);
|
||||
break;
|
||||
case "OG/OGApproveRewardPunishmentReport/approveAndRewardAgree"://认可与奖励
|
||||
result = PFApproveCallBackSEService.approveAndRewardAgree(DATA_ID);
|
||||
break;
|
||||
case "OG/OGSafePdtAssessPlanCheck/BackUpdate"://责任制考核方案审核
|
||||
result = PFApproveCallBackSEService.safePdtAssessPlanCheck(DATA_ID);
|
||||
break;
|
||||
case "PT/PTIndicatorFormulation/BackUpdate"://方针与目标管理
|
||||
result = BackUpdate_PTIndicatorFormulation(DATA_ID);
|
||||
break;
|
||||
|
||||
92513
APT.Data.Migrations/Migrations/20240126062023_wjn202401-2601.Designer.cs
generated
Normal file
92513
APT.Data.Migrations/Migrations/20240126062023_wjn202401-2601.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
3662
APT.Data.Migrations/Migrations/20240126062023_wjn202401-2601.cs
Normal file
3662
APT.Data.Migrations/Migrations/20240126062023_wjn202401-2601.cs
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -23,7 +23,6 @@ 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.SC.OG;
|
||||
using APT.MS.Domain.Entities.OH;
|
||||
using APT.MS.Domain.Entities.SC.PM;
|
||||
using APT.MS.Domain.Entities.SC.PE;
|
||||
@ -5189,153 +5188,6 @@ builder.Property(t => t.RUNDATA).HasMaxLength(500);
|
||||
builder.HasOne(t => t.Nav_PlanSet).WithMany(t=>t.Nav_ListSetDepartment).HasForeignKey(t => t.PLAN_SET_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region SafePdtSigned
|
||||
public partial class OGSafePdtSignedMap :APTEntityBaseMap<T_OG_SAFE_PDT_SIGNED>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_OG_SAFE_PDT_SIGNED> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_StandardCreate).WithMany().HasForeignKey(t => t.STANDARD_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.Property(t => t.FILE_NAME).HasMaxLength(500);
|
||||
builder.Property(t => t.FILE_CONTENT).HasMaxLength(5000);
|
||||
builder.Ignore(t => t.IS_OVERTIME);
|
||||
builder.Ignore(t => t.PUBLISH);
|
||||
builder.HasOne(t => t.Nav_ChargeUser).WithMany().HasForeignKey(t => t.CHARGE_USER_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region SafePdtSignedPost
|
||||
public partial class OGSafePdtSignedPostMap :APTEntityBaseMap<T_OG_SAFE_PDT_SIGNED_POST>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_OG_SAFE_PDT_SIGNED_POST> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_SafePdtSigned).WithMany(t=>t.Nav_SafePdtSignedPost).HasForeignKey(t => t.SAFE_PDT_SIGNED_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_Post).WithMany().HasForeignKey(t => t.POST_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_ChargeUser).WithMany().HasForeignKey(t => t.CHARGE_USER_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region SafePdtAssessPlanCheck
|
||||
public partial class OGSafePdtAssessPlanCheckMap :APTEntityBaseMap<T_OG_SAFE_PDT_ASSESS_PLAN_CHECK>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_OG_SAFE_PDT_ASSESS_PLAN_CHECK> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
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.Property(t => t.NAME).HasMaxLength(50);
|
||||
builder.Ignore(t => t.PUBLISH);
|
||||
builder.Ignore(t => t.IS_OVERTIME);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region SafePdtAssessPlanCheckDetail
|
||||
public partial class OGSafePdtAssessPlanCheckDetailMap :APTEntityBaseMap<T_OG_SAFE_PDT_ASSESS_PLAN_CHECK_DETAIL>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_OG_SAFE_PDT_ASSESS_PLAN_CHECK_DETAIL> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_SafePdtAssessPlanCheck).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.CHECK_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.Property(t => t.CODE).HasMaxLength(500);
|
||||
builder.HasOne(t => t.Nav_Post).WithMany().HasForeignKey(t => t.POST_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.Ignore(t => t.NAME);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region SafePdtAssessPlanCheckDetailContent
|
||||
public partial class OGSafePdtAssessPlanCheckDetailContentMap :APTEntityBaseMap<T_OG_SAFE_PDT_ASSESS_PLAN_CHECK_DETAIL_CONTENT>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_OG_SAFE_PDT_ASSESS_PLAN_CHECK_DETAIL_CONTENT> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_CheckDetail).WithMany(t=>t.Nav_Contents).HasForeignKey(t => t.CHECK_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.Property(t => t.NAME).HasMaxLength(500);
|
||||
builder.Property(t => t.METHOD).HasMaxLength(500);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region SafePdtAssessPlanCheckFile
|
||||
public partial class OGSafePdtAssessPlanCheckFileMap :APTEntityBaseMap<T_OG_SAFE_PDT_ASSESS_PLAN_CHECK_FILE>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_OG_SAFE_PDT_ASSESS_PLAN_CHECK_FILE> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_SafePdtAssessPlanCheck).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.CHECK_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region SafeAssessPlanInput
|
||||
public partial class OGSafeAssessPlanInputMap :APTEntityBaseMap<T_OG_SAFE_ASSESS_PLAN_INPUT>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_OG_SAFE_ASSESS_PLAN_INPUT> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.Property(t => t.CODE).HasMaxLength(100);
|
||||
builder.Property(t => t.NAME).HasMaxLength(100);
|
||||
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.Property(t => t.DEP_NAME).HasMaxLength(100);
|
||||
builder.HasOne(t => t.Nav_Post).WithMany().HasForeignKey(t => t.POST_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_Check).WithMany().HasForeignKey(t => t.CHECK_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region SafeAssessItem
|
||||
public partial class OGSafeAssessItemMap :APTEntityBaseMap<T_OG_SAFE_ASSESS_ITEM>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_OG_SAFE_ASSESS_ITEM> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_SafeAssessPlanInput).WithMany(t=>t.Nav_SafeAssessItem).HasForeignKey(t => t.ASSESS_PLAN_INPUT_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.Property(t => t.NAME).HasMaxLength(100);
|
||||
builder.Property(t => t.METHOD).HasMaxLength(500);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region SafeAssessRecord
|
||||
public partial class OGSafeAssessRecordMap :APTEntityBaseMap<T_OG_SAFE_ASSESS_RECORD>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_OG_SAFE_ASSESS_RECORD> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.Property(t => t.CYCLE_NAME).HasMaxLength(50);
|
||||
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.Ignore(t => t.PUBLISH);
|
||||
builder.Ignore(t => t.IS_OVERTIME);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region SafeAssessRecordDetail
|
||||
public partial class OGSafeAssessRecordDetailMap :APTEntityBaseMap<T_OG_SAFE_ASSESS_RECORD_DETAIL>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_OG_SAFE_ASSESS_RECORD_DETAIL> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_SafeAssessRecord).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.SAFE_ASSESS_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_Post).WithMany().HasForeignKey(t => t.POST_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.Property(t => t.REWARD_PUNISHMENT_MEASURES).HasMaxLength(200);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region SafeAssessRecordItem
|
||||
public partial class OGSafeAssessRecordItemMap :APTEntityBaseMap<T_OG_SAFE_ASSESS_RECORD_ITEM>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_OG_SAFE_ASSESS_RECORD_ITEM> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_SafeAssessRecordDetail).WithMany(t=>t.Nav_SafeAssessRecordItem).HasForeignKey(t => t.RECORD_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_SafeAssessItem).WithMany().HasForeignKey(t => t.ASSESS_ITEM_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.Property(t => t.RESULT_INSTRUCTIONS).HasMaxLength(500);
|
||||
builder.Property(t => t.CORRECT_MEASURES).HasMaxLength(500);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region Agency
|
||||
@ -5369,253 +5221,6 @@ builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelet
|
||||
{
|
||||
base.Configure(builder);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region PolicyDocument
|
||||
public partial class OGPolicyDocumentMap :APTEntityBaseMap<T_OG_POLICY_DOCUMENT>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_OG_POLICY_DOCUMENT> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.Property(t => t.CODE).HasMaxLength(500);
|
||||
builder.Property(t => t.NAME).HasMaxLength(500);
|
||||
builder.HasOne(t => t.Nav_AppointType).WithMany().HasForeignKey(t => t.APPOINT_TYPE).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_AppointAgreeUser).WithMany().HasForeignKey(t => t.APPOINT_AGREEUSER_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.Ignore(t => t.IS_OVERTIME);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region PolicyDocumentDetail
|
||||
public partial class OGPolicyDocumentDetailMap :APTEntityBaseMap<T_OG_POLICY_DOCUMENT_DETAIL>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_OG_POLICY_DOCUMENT_DETAIL> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_PolicyDocument).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.POLICY_DOCUMENT_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.Property(t => t.CODE).HasMaxLength(500);
|
||||
builder.Property(t => t.NAME).HasMaxLength(500);
|
||||
builder.HasOne(t => t.Nav_AppointType).WithMany().HasForeignKey(t => t.APPOINT_TYPE).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_AppointAgreeUser).WithMany().HasForeignKey(t => t.APPOINT_AGREEUSER_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region PolicyDocumentType
|
||||
public partial class OGPolicyDocumentTypeMap :APTEntityBaseMap<T_OG_POLICY_DOCUMENT_TYPE>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_OG_POLICY_DOCUMENT_TYPE> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.Property(t => t.NAME).HasMaxLength(500);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region PolicyDocumentDetailFile
|
||||
public partial class OGPolicyDocumentDetailFileMap :APTEntityBaseMap<T_OG_POLICY_DOCUMENT_DETAIL_FILE>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_OG_POLICY_DOCUMENT_DETAIL_FILE> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_PolicyDocumentDetail).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.POLICY_DOCUMENT_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region PolicyDocumentDetailAppointUser
|
||||
public partial class OGPolicyDocumentDetailAppointUserMap :APTEntityBaseMap<T_OG_POLICY_DOCUMENT_DETAIL_APPOINT_USER>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_OG_POLICY_DOCUMENT_DETAIL_APPOINT_USER> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_PolicyDocumentDetail).WithMany(t=>t.Nav_AppointUsers).HasForeignKey(t => t.POLICY_DOCUMENT_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region EmployeeOpinionCollection
|
||||
public partial class OGEmployeeOpinionCollectionMap :APTEntityBaseMap<T_OG_EMPLOYEE_OPINION_COLLECTION>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_OG_EMPLOYEE_OPINION_COLLECTION> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.Property(t => t.NAME).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_ChargeUser).WithMany().HasForeignKey(t => t.CHARGE_USER_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_AHChargeUser).WithMany().HasForeignKey(t => t.AH_CHARGE_USER_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.Ignore(t => t.PUBLISH);
|
||||
builder.Ignore(t => t.IS_OVERTIME);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region EmployeeOpinionCollectionUser
|
||||
public partial class OGEmployeeOpinionCollectionUserMap :APTEntityBaseMap<T_OG_EMPLOYEE_OPINION_COLLECTION_USER>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_OG_EMPLOYEE_OPINION_COLLECTION_USER> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_Collection).WithMany(t=>t.Nav_Users).HasForeignKey(t => t.COLLECTION_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.Property(t => t.CONTENT).HasMaxLength(300);
|
||||
builder.Property(t => t.REFUSE_DESCRIPTION).HasMaxLength(100);
|
||||
builder.Ignore(t => t.PUBLISH);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region EmployeeOpinionCollectionUserFile
|
||||
public partial class OGEmployeeOpinionCollectionUserFileMap :APTEntityBaseMap<T_OG_EMPLOYEE_OPINION_COLLECTION_USER_FILE>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_OG_EMPLOYEE_OPINION_COLLECTION_USER_FILE> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_CollectionUser).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.COLLECTION_USER_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region EmployeeOpinion
|
||||
public partial class OGEmployeeOpinionMap :APTEntityBaseMap<T_OG_EMPLOYEE_OPINION>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_OG_EMPLOYEE_OPINION> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_CollectionUser).WithMany(t=>t.Nav_Opinions).HasForeignKey(t => t.COLLECTION_USER_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.Property(t => t.OPINION_CONTENT).HasMaxLength(200);
|
||||
builder.Property(t => t.REFUSE_DESCRIPTION).HasMaxLength(200);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region EmployeeOpinionReport
|
||||
public partial class OGEmployeeOpinionReportMap :APTEntityBaseMap<T_OG_EMPLOYEE_OPINION_REPORT>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_OG_EMPLOYEE_OPINION_REPORT> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_LaunchDepartment).WithMany().HasForeignKey(t => t.LAUNCH_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.Property(t => t.NAME).HasMaxLength(100);
|
||||
builder.HasOne(t => t.Nav_ItemEnum).WithMany().HasForeignKey(t => t.TYPE_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.Property(t => t.DESCRIPTION).HasMaxLength(500);
|
||||
builder.HasOne(t => t.Nav_Assignee).WithMany().HasForeignKey(t => t.ASSIGNEE_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.Property(t => t.ASSIGNEE_DESCRIPTION).HasMaxLength(500);
|
||||
builder.HasOne(t => t.Nav_DoDepartment).WithMany().HasForeignKey(t => t.DO_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_DoUser).WithMany().HasForeignKey(t => t.DO_USER_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.Property(t => t.IMPLEMENT_DESCRIPTION).HasMaxLength(500);
|
||||
builder.Ignore(t => t.PUBLISH);
|
||||
builder.Ignore(t => t.IS_OVERTIME);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region EmployeeOpinionSuggestionFile
|
||||
public partial class OGEmployeeOpinionSuggestionFileMap :APTEntityBaseMap<T_OG_EMPLOYEE_OPINION_SUGGESTION_FILE>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_OG_EMPLOYEE_OPINION_SUGGESTION_FILE> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_Opinion).WithMany(t=>t.Nav_FileList).HasForeignKey(t => t.EMPLOYEE_OPINION_REPORT_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region EmployeeOpinionImplementFile
|
||||
public partial class OGEmployeeOpinionImplementFileMap :APTEntityBaseMap<T_OG_EMPLOYEE_OPINION_IMPLEMENT_FILE>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_OG_EMPLOYEE_OPINION_IMPLEMENT_FILE> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_Opinion).WithMany(t=>t.Nav_ImpFileList).HasForeignKey(t => t.EMPLOYEE_OPINION_REPORT_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region EmployeeRefuseItemReport
|
||||
public partial class OGEmployeeRefuseItemReportMap :APTEntityBaseMap<T_OG_EMPLOYEE_REFUSE_ITEM_REPORT>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_OG_EMPLOYEE_REFUSE_ITEM_REPORT> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_LaunchDepartment).WithMany().HasForeignKey(t => t.LAUNCH_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.Property(t => t.NAME).HasMaxLength(200);
|
||||
builder.HasOne(t => t.Nav_ItemEnum).WithMany().HasForeignKey(t => t.TYPE_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.Property(t => t.DESCRIPTION).HasMaxLength(500);
|
||||
builder.HasOne(t => t.Nav_Assignee).WithMany().HasForeignKey(t => t.ASSIGNEE_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.Property(t => t.ASSIGNEE_DESCRIPTION).HasMaxLength(500);
|
||||
builder.HasOne(t => t.Nav_ImplementUser).WithMany().HasForeignKey(t => t.IMPLEMENT_USER_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_ImplementDepartment).WithMany().HasForeignKey(t => t.IMPLEMENT_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.Property(t => t.IMPLEMENT_DESCRIPTION).HasMaxLength(500);
|
||||
builder.Ignore(t => t.PUBLISH);
|
||||
builder.Ignore(t => t.IS_OVERTIME);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region EmployeeRefuseItemReportFile
|
||||
public partial class OGEmployeeRefuseItemReportFileMap :APTEntityBaseMap<T_OG_EMPLOYEE_REFUSE_ITEM_REPORT_FILE>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_OG_EMPLOYEE_REFUSE_ITEM_REPORT_FILE> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_Opinion).WithMany(t=>t.Nav_FileList).HasForeignKey(t => t.EMPLOYEE_REFUSE_ITEM_REPORT_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region EmployeeRefuseItemInvestigationFile
|
||||
public partial class OGEmployeeRefuseItemInvestigationFileMap :APTEntityBaseMap<T_OG_EMPLOYEE_REFUSE_ITEM_INVESTIGATION_FILE>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_OG_EMPLOYEE_REFUSE_ITEM_INVESTIGATION_FILE> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_Opinion).WithMany(t=>t.Nav_InvestigationFileList).HasForeignKey(t => t.EMPLOYEE_REFUSE_ITEM_REPORT_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region InnerContact
|
||||
public partial class OGInnerContactMap :APTEntityBaseMap<T_OG_INNER_CONTACT>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_OG_INNER_CONTACT> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_FormDepartment).WithMany().HasForeignKey(t => t.FORM_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_FromUser).WithMany().HasForeignKey(t => t.FROM_USER_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_ToDepartment).WithMany().HasForeignKey(t => t.TO_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_ToUser).WithMany().HasForeignKey(t => t.TO_USER_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.Property(t => t.PURPOSE).HasMaxLength(500);
|
||||
builder.Property(t => t.NAME).HasMaxLength(500);
|
||||
builder.Property(t => t.DESC).HasMaxLength(500);
|
||||
builder.HasOne(t => t.Nav_DoDepartment).WithMany().HasForeignKey(t => t.DO_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_DoUser).WithMany().HasForeignKey(t => t.DO_USER_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.Property(t => t.DO_DESC).HasMaxLength(500);
|
||||
builder.Ignore(t => t.PUBLISH);
|
||||
builder.Ignore(t => t.IS_OVERTIME);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region InnerContactItemFile
|
||||
public partial class OGInnerContactItemFileMap :APTEntityBaseMap<T_OG_INNER_CONTACT_ITEM_FILE>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_OG_INNER_CONTACT_ITEM_FILE> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_Contact).WithMany(t=>t.Nav_ItemFiles).HasForeignKey(t => t.CONTACT_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region InnerContactDoFile
|
||||
public partial class OGInnerContactDoFileMap :APTEntityBaseMap<T_OG_INNER_CONTACT_DO_FILE>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_OG_INNER_CONTACT_DO_FILE> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_Contact).WithMany(t=>t.Nav_DoFiles).HasForeignKey(t => t.CONTACT_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region Related
|
||||
@ -5773,303 +5378,6 @@ builder.Property(t => t.PERSON).HasMaxLength(50);
|
||||
builder.Property(t => t.PHONE).HasMaxLength(50);
|
||||
builder.Property(t => t.CONTACT_MATTER).HasMaxLength(500);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region ExternalContactCommunicate
|
||||
public partial class OGExternalContactCommunicateMap :APTEntityBaseMap<T_OG_EXTERNAL_CONTACT_COMMUNICATE>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_OG_EXTERNAL_CONTACT_COMMUNICATE> 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_ExternalContactDetail).WithMany().HasForeignKey(t => t.EXTERNAL_COMPANY_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.Property(t => t.EXTERNAL_COMMUNICATE_PERSON).HasMaxLength(50);
|
||||
builder.Property(t => t.COMMUNICATE_PURPOSE).HasMaxLength(500);
|
||||
builder.Property(t => t.COMMUNICATE_NAME).HasMaxLength(500);
|
||||
builder.Property(t => t.COMMUNICATE_DES).HasMaxLength(500);
|
||||
builder.HasOne(t => t.Nav_DoDepartment).WithMany().HasForeignKey(t => t.DO_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_DoUser).WithMany().HasForeignKey(t => t.DO_USER_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.Property(t => t.IMPLEMENT_DESCRIPTION).HasMaxLength(500);
|
||||
builder.Ignore(t => t.PUBLISH);
|
||||
builder.Ignore(t => t.IS_OVERTIME);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region ExternalContactCommunicateFile
|
||||
public partial class OGExternalContactCommunicateFileMap :APTEntityBaseMap<T_OG_EXTERNAL_CONTACT_COMMUNICATE_FILE>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_OG_EXTERNAL_CONTACT_COMMUNICATE_FILE> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_ExternalContactCommunicate).WithMany(t=>t.Nav_FileList).HasForeignKey(t => t.EXTERNAL_CONTACT_COMMUNICATE_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region ExternalContactCommunicateImplFile
|
||||
public partial class OGExternalContactCommunicateImplFileMap :APTEntityBaseMap<T_OG_EXTERNAL_CONTACT_COMMUNICATE_IMPL_FILE>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_OG_EXTERNAL_CONTACT_COMMUNICATE_IMPL_FILE> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_ExternalContactCommunicate).WithMany(t=>t.Nav_ImpFileList).HasForeignKey(t => t.EXTERNAL_CONTACT_COMMUNICATE_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region ExternalComplainAdvise
|
||||
public partial class OGExternalComplainAdviseMap :APTEntityBaseMap<T_OG_EXTERNAL_COMPLAIN_ADVISE>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_OG_EXTERNAL_COMPLAIN_ADVISE> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_ExternalContactDetail).WithMany().HasForeignKey(t => t.EXTERNAL_COMPANY_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(100);
|
||||
builder.HasOne(t => t.Nav_ItemEnum).WithMany().HasForeignKey(t => t.TYPE_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.Property(t => t.DESCRIPTION).HasMaxLength(100);
|
||||
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_Assignee).WithMany().HasForeignKey(t => t.ASSIGNEE_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.Property(t => t.ASSIGNEE_DESCRIPTION).HasMaxLength(100);
|
||||
builder.HasOne(t => t.Nav_SurveyDepartment).WithMany().HasForeignKey(t => t.SURVEY_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_SurveyUser).WithMany().HasForeignKey(t => t.SURVEY_USER_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.Property(t => t.SURVEY_DESCRIPTION).HasMaxLength(100);
|
||||
builder.Ignore(t => t.PUBLISH);
|
||||
builder.Ignore(t => t.IS_OVERTIME);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region ExternalComplainAdviseFile
|
||||
public partial class OGExternalComplainAdviseFileMap :APTEntityBaseMap<T_OG_EXTERNAL_COMPLAIN_ADVISE_FILE>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_OG_EXTERNAL_COMPLAIN_ADVISE_FILE> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_ExternalComplainAdvise).WithMany(t=>t.Nav_FileList).HasForeignKey(t => t.EXTERNAL_COMPLAIN_ADVISE_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region ExternalComplainAdviseSurveyFile
|
||||
public partial class OGExternalComplainAdviseSurveyFileMap :APTEntityBaseMap<T_OG_EXTERNAL_COMPLAIN_ADVISE_SURVEY_FILE>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_OG_EXTERNAL_COMPLAIN_ADVISE_SURVEY_FILE> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_ExternalComplainAdvise).WithMany(t=>t.Nav_SurveyFileList).HasForeignKey(t => t.EXTERNAL_COMPLAIN_ADVISE_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region ApproveRewardPunishmentReport
|
||||
public partial class OGApproveRewardPunishmentReportMap :APTEntityBaseMap<T_OG_APPROVE_REWARD_PUNISHMENT_REPORT>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_OG_APPROVE_REWARD_PUNISHMENT_REPORT> 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.Ignore(t => t.PUBLISH);
|
||||
builder.Ignore(t => t.IS_OVERTIME);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region ApproveRewardPunishmentDetail
|
||||
public partial class OGApproveRewardPunishmentDetailMap :APTEntityBaseMap<T_OG_APPROVE_REWARD_PUNISHMENT_DETAIL>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_OG_APPROVE_REWARD_PUNISHMENT_DETAIL> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_ApproveRewardPunishmentReport).WithMany(t=>t.Nav_ApproveRewardPunishmentDetail).HasForeignKey(t => t.REPORT_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.HasOne(t => t.Nav_Reason).WithMany().HasForeignKey(t => t.REASON_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.Property(t => t.REASON_DESCRIBE).HasMaxLength(500);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region EventGet
|
||||
public partial class OGEventGetMap :APTEntityBaseMap<T_OG_EVENT_GET>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_OG_EVENT_GET> 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.Ignore(t => t.PUBLISH);
|
||||
builder.Ignore(t => t.IS_OVERTIME);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region EventGetDetail
|
||||
public partial class OGEventGetDetailMap :APTEntityBaseMap<T_OG_EVENT_GET_DETAIL>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_OG_EVENT_GET_DETAIL> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_Event).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.EVENT_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_ReplyUser).WithMany().HasForeignKey(t => t.REPLY_USER_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.Ignore(t => t.PUBLISH);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region EventGetDetailItem
|
||||
public partial class OGEventGetDetailItemMap :APTEntityBaseMap<T_OG_EVENT_GET_DETAIL_ITEM>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_OG_EVENT_GET_DETAIL_ITEM> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_Detail).WithMany(t=>t.Nav_Items).HasForeignKey(t => t.DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.Property(t => t.DESC).HasMaxLength(500);
|
||||
builder.Property(t => t.REPLY).HasMaxLength(500);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region EventGetDetailFile
|
||||
public partial class OGEventGetDetailFileMap :APTEntityBaseMap<T_OG_EVENT_GET_DETAIL_FILE>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_OG_EVENT_GET_DETAIL_FILE> 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 EventReport
|
||||
public partial class OGEventReportMap :APTEntityBaseMap<T_OG_EVENT_REPORT>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_OG_EVENT_REPORT> 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_AHUser).WithMany().HasForeignKey(t => t.AH_USER_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.Property(t => t.PLACE).HasMaxLength(100);
|
||||
builder.Property(t => t.DESC).HasMaxLength(500);
|
||||
builder.HasOne(t => t.Nav_DoDepartment).WithMany().HasForeignKey(t => t.DO_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_DoUser).WithMany().HasForeignKey(t => t.DO_USER_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.Property(t => t.DO_DESC).HasMaxLength(500);
|
||||
builder.Property(t => t.COMMENT).HasMaxLength(500);
|
||||
builder.Ignore(t => t.PUBLISH);
|
||||
builder.Ignore(t => t.IS_OVERTIME);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region EventReportFile
|
||||
public partial class OGEventReportFileMap :APTEntityBaseMap<T_OG_EVENT_REPORT_FILE>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_OG_EVENT_REPORT_FILE> 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 EventReportSum
|
||||
public partial class OGEventReportSumMap :APTEntityBaseMap<T_OG_EVENT_REPORT_SUM>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_OG_EVENT_REPORT_SUM> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region StandardizationSystemReview
|
||||
public partial class OGStandardizationSystemReviewMap :APTEntityBaseMap<T_OG_STANDARDIZATION_SYSTEM_REVIEW>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_OG_STANDARDIZATION_SYSTEM_REVIEW> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_HostUser).WithMany().HasForeignKey(t => t.HOST_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.Ignore(t => t.PUBLISH);
|
||||
builder.Ignore(t => t.IS_OVERTIME);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region StandardizationReviewItemsRel
|
||||
public partial class OGStandardizationReviewItemsRelMap :APTEntityBaseMap<T_OG_STANDARDIZATION_REVIEW_ITEMS_REL>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_OG_STANDARDIZATION_REVIEW_ITEMS_REL> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_Review).WithMany(t=>t.Nav_ReviewItemsList).HasForeignKey(t => t.REVIEW_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_Item).WithMany().HasForeignKey(t => t.ITEM_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.Property(t => t.PROBLEM).HasMaxLength(500);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region StandardizationPersonRel
|
||||
public partial class OGStandardizationPersonRelMap :APTEntityBaseMap<T_OG_STANDARDIZATION_PERSON_REL>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_OG_STANDARDIZATION_PERSON_REL> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_Review).WithMany(t=>t.Nav_ReviewUserList).HasForeignKey(t => t.REVIEW_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region StandardizationReviewResultRel
|
||||
public partial class OGStandardizationReviewResultRelMap :APTEntityBaseMap<T_OG_STANDARDIZATION_REVIEW_RESULT_REL>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_OG_STANDARDIZATION_REVIEW_RESULT_REL> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_Review).WithMany(t=>t.Nav_ReviewResultList).HasForeignKey(t => t.REVIEW_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_Result).WithMany().HasForeignKey(t => t.RESULT_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.Property(t => t.RESULT).HasMaxLength(500);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region StandardizationActionPlanRel
|
||||
public partial class OGStandardizationActionPlanRelMap :APTEntityBaseMap<T_OG_STANDARDIZATION_ACTION_PLAN_REL>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_OG_STANDARDIZATION_ACTION_PLAN_REL> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_Review).WithMany(t=>t.Nav_ActionPlanList).HasForeignKey(t => t.REVIEW_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_Plan).WithMany().HasForeignKey(t => t.PLAN_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.Property(t => t.PLAN_CONTENT).HasMaxLength(500);
|
||||
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region StandardizationReviewItemEnum
|
||||
public partial class OGStandardizationReviewItemEnumMap :APTEntityBaseMap<T_OG_STANDARDIZATION_REVIEW_ITEM_ENUM>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_OG_STANDARDIZATION_REVIEW_ITEM_ENUM> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasIndex("NAME").IsUnique();
|
||||
builder.Property(t => t.NAME).HasMaxLength(500);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region StandardizationActionPlanEnum
|
||||
public partial class OGStandardizationActionPlanEnumMap :APTEntityBaseMap<T_OG_STANDARDIZATION_ACTION_PLAN_ENUM>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_OG_STANDARDIZATION_ACTION_PLAN_ENUM> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasIndex("NAME").IsUnique();
|
||||
builder.Property(t => t.NAME).HasMaxLength(500);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region EmployeeItemCategoryEnum
|
||||
public partial class OGEmployeeItemCategoryEnumMap :APTEntityBaseMap<T_OG_EMPLOYEE_ITEM_CATEGORY_ENUM>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_OG_EMPLOYEE_ITEM_CATEGORY_ENUM> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasIndex("NAME").IsUnique();
|
||||
builder.Property(t => t.NAME).HasMaxLength(500);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region RelatedQualificationDetailItem
|
||||
|
||||
@ -1,98 +0,0 @@
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using APT.BaseData.Domain.Enums.PF;
|
||||
using APT.Infrastructure.Core;
|
||||
using APT.MS.Domain.Entities.OG;
|
||||
using APT.MS.Domain.Entities.SC.SC;
|
||||
using APT.MS.Domain.Entities.SE;
|
||||
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.OG
|
||||
{
|
||||
/// <summary>
|
||||
/// 安全生产责任制签订表
|
||||
/// </summary>
|
||||
[Description("安全生产责任制签订表")]
|
||||
public class T_OG_SAFE_PDT_SIGNED : MesEntityBase
|
||||
{
|
||||
[Description("签订年度")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
public int ANNUAL { get; set; }
|
||||
/// <summary>
|
||||
/// 状态
|
||||
/// </summary>
|
||||
[Description("状态")]
|
||||
[EnumName("PFStandardStatus")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
public PFStandardStatus STATUS { get; set; }
|
||||
/// <summary>
|
||||
/// 触发方式
|
||||
/// </summary>
|
||||
[Description("触发方式")]
|
||||
[EnumName("OGPersonalSignedTriggerType")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
public OGPersonalSignedTriggerType TRIGGER_TYPE { get; set; }
|
||||
/// <summary>
|
||||
/// 导航属性:责任制岗位关联表
|
||||
/// </summary>
|
||||
[Description("导航属性:责任制岗位关联表")]
|
||||
[FormFieldEdit]
|
||||
public ICollection<T_OG_SAFE_PDT_SIGNED_POST> Nav_SafePdtSignedPost { get; set; }
|
||||
[Description("责任制名称")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_StandardCreate")]
|
||||
public Guid? STANDARD_ID { get; set; }
|
||||
/// <summary>
|
||||
/// 导航_标准化
|
||||
/// </summary>
|
||||
[Description("导航_标准化")]
|
||||
public T_SC_STANDARD_CREATE Nav_StandardCreate { get; set; }
|
||||
[Description("文件名称")]
|
||||
public string FILE_NAME { get; set; }
|
||||
[Description("文件内容")]
|
||||
[DataFieldLength(5000)]
|
||||
public string FILE_CONTENT { get; set; }
|
||||
[DataFieldIngore]
|
||||
public int IS_OVERTIME { get; set; }
|
||||
[Description("是否发布")]
|
||||
[DataFieldIngore]
|
||||
public string PUBLISH { get; set; }
|
||||
[Description("导航属性:创建人")]
|
||||
public virtual T_FM_USER Nav_CreateUser { get; set; }
|
||||
/// <summary>
|
||||
/// 签订负责人
|
||||
/// </summary>
|
||||
[Description("签订负责人")]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_ChargeUser")]
|
||||
public Guid? CHARGE_USER_ID { get; set; }
|
||||
/// <summary>
|
||||
/// 导航: 签订负责人
|
||||
/// </summary>
|
||||
[Description("导航: 签订负责人")]
|
||||
public T_FM_USER Nav_ChargeUser { get; set; }
|
||||
/// <summary>
|
||||
/// 部门Id
|
||||
/// </summary>
|
||||
[Description("部门Id")]
|
||||
[DataFieldForeignKey("Nav_Department")]
|
||||
public Guid? DEPARTMENT_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航:部门
|
||||
/// </summary>
|
||||
[Description("导航:部门")]
|
||||
public virtual T_FM_DEPARTMENT Nav_Department { get; set; }
|
||||
}
|
||||
}
|
||||
@ -1,106 +0,0 @@
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using APT.Infrastructure.Core;
|
||||
using APT.MS.Domain.Entities.OG;
|
||||
using APT.MS.Domain.Entities.SC;
|
||||
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.OG
|
||||
{
|
||||
/// <summary>
|
||||
/// 责任制岗位关联表
|
||||
/// </summary>
|
||||
[Description("责任制岗位关联表")]
|
||||
public class T_OG_SAFE_PDT_SIGNED_POST : MesEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 安全生产责任制签订ID
|
||||
/// </summary>
|
||||
[Description("安全生产责任制签订")]
|
||||
[DataFieldForeignKey("Nav_SafePdtSigned", "Nav_SafePdtSignedPost")]
|
||||
public Guid SAFE_PDT_SIGNED_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 安全生产责任制签订
|
||||
/// </summary>
|
||||
[Description("导航: 安全生产责任制签订")]
|
||||
public T_OG_SAFE_PDT_SIGNED Nav_SafePdtSigned { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 岗位
|
||||
/// </summary>
|
||||
[Description("岗位")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_Post")]
|
||||
public Guid? POST_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 岗位
|
||||
/// </summary>
|
||||
[Description("导航: 岗位")]
|
||||
public T_FM_USER_POST Nav_Post { get; set; }
|
||||
/// <summary>
|
||||
/// 签订人员ID
|
||||
/// </summary>
|
||||
[Description("签订人员")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_User")]
|
||||
public Guid? USER_ID { get; set; }
|
||||
/// <summary>
|
||||
/// 导航: 签订人员
|
||||
/// </summary>
|
||||
[Description("导航: 签订人员")]
|
||||
public T_FM_USER Nav_User { get; set; }
|
||||
[Description("签订人员处理状态")]
|
||||
[EnumName("PdtSignStatus")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
public PdtSignStatus DEAL_STATUS { get; set; }
|
||||
/// <summary>
|
||||
/// 签订人员ID
|
||||
/// </summary>
|
||||
[Description("签订人员领导")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_ChargeUser")]
|
||||
public Guid? CHARGE_USER_ID { get; set; }
|
||||
/// <summary>
|
||||
/// 导航: 签订人员领导
|
||||
/// </summary>
|
||||
[Description("导航: 签订人员领导")]
|
||||
public T_FM_USER Nav_ChargeUser { get; set; }
|
||||
[Description("签订人员领导处理状态")]
|
||||
[EnumName("PdtSignStatus")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
public PdtSignStatus CHARGE_DEAL_STATUS { get; set; }
|
||||
/// <summary>
|
||||
/// 签订日期
|
||||
/// </summary>
|
||||
[Description("签订日期")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
public DateTime? SIGNED_TIME { get; set; }
|
||||
/// <summary>
|
||||
/// 主管签订日期
|
||||
/// </summary>
|
||||
[Description("主管签订日期")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
public DateTime? CHARGE_SIGNED_TIME { get; set; }
|
||||
}
|
||||
}
|
||||
@ -1,101 +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.Entities.SC.OG;
|
||||
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.OG
|
||||
{
|
||||
/// <summary>
|
||||
/// 安全生产责任制考核方案审核表
|
||||
/// </summary>
|
||||
[Description("安全生产责任制考核方案审核表")]
|
||||
[DataRuleField("DEPARTMENT_ID")]
|
||||
public class T_OG_SAFE_PDT_ASSESS_PLAN_CHECK : MesEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 制定时间
|
||||
/// </summary>
|
||||
[Description("制定时间")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
public DateTime? TIME { get; set; }
|
||||
/// <summary>
|
||||
/// 制定人
|
||||
/// </summary>
|
||||
[Description("制定人员")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[DataFieldForeignKey("Nav_User")]
|
||||
public Guid? USER_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 制定人员
|
||||
/// </summary>
|
||||
[Description("导航: 制定人员")]
|
||||
public T_FM_USER Nav_User { get; set; }
|
||||
/// <summary>
|
||||
/// 制定部门ID
|
||||
/// </summary>
|
||||
[Description("制定部门")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[DataFieldForeignKey("Nav_Department")]
|
||||
public Guid? DEPARTMENT_ID { get; set; }
|
||||
/// <summary>
|
||||
/// 导航: 制定部门
|
||||
/// </summary>
|
||||
[Description("导航: 制定部门")]
|
||||
public T_FM_DEPARTMENT Nav_Department { get; set; }
|
||||
[Description("年度")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
public int ANNUAL { get; set; }
|
||||
/// <summary>
|
||||
/// 方案名称
|
||||
/// </summary>
|
||||
[Description("方案名称")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldLength(50)]
|
||||
public string NAME { get; set; }
|
||||
[Description("导航属性:考核方案审核细表")]
|
||||
[FormFieldEdit]
|
||||
public ICollection<T_OG_SAFE_PDT_ASSESS_PLAN_CHECK_DETAIL> Nav_Details { get; set; }
|
||||
/// <summary>
|
||||
/// 考核层级
|
||||
/// </summary>
|
||||
[Description("考核层级")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[EnumName("FMDepartmentType")]
|
||||
public FMDepartmentType LEVEL { get; set; }
|
||||
/// <summary>
|
||||
/// 状态
|
||||
/// </summary>
|
||||
[Description("状态")]
|
||||
[EnumName("PFStandardStatus")]
|
||||
[FormFieldTable]
|
||||
public PFStandardStatus STATUS { get; set; }
|
||||
[Description("是否发布")]
|
||||
[DataFieldIngore]
|
||||
public string PUBLISH { get; set; }
|
||||
/// <summary>
|
||||
/// 导航属性:附件
|
||||
/// </summary>
|
||||
[Description("导航属性:附件")]
|
||||
public ICollection<T_OG_SAFE_PDT_ASSESS_PLAN_CHECK_FILE> Nav_Files { get; set; }
|
||||
|
||||
[DataFieldIngore]
|
||||
public int IS_OVERTIME { get; set; }
|
||||
}
|
||||
}
|
||||
@ -1,60 +0,0 @@
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using APT.Infrastructure.Core;
|
||||
using APT.MS.Domain.Entities.OG;
|
||||
using APT.MS.Domain.Enums;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Text;
|
||||
|
||||
namespace APT.MS.Domain.Entities.SC.OG
|
||||
{
|
||||
[Description("导航属性:考核方案审核细表")]
|
||||
public class T_OG_SAFE_PDT_ASSESS_PLAN_CHECK_DETAIL : MesEntityBase
|
||||
{
|
||||
[Description("考核方案审核表")]
|
||||
[DataFieldForeignKey("Nav_SafePdtAssessPlanCheck", "Nav_Details")]
|
||||
public Guid CHECK_ID { get; set; }
|
||||
|
||||
[Description("导航属性:考核方案审核表")]
|
||||
public virtual T_OG_SAFE_PDT_ASSESS_PLAN_CHECK Nav_SafePdtAssessPlanCheck { get; set; }
|
||||
|
||||
[Description("编号")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
public string CODE { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 被考核岗位
|
||||
/// </summary>
|
||||
[Description("被考核岗位")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_Post")]
|
||||
public Guid? POST_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 被考核岗位
|
||||
/// </summary>
|
||||
[Description("导航: 被考核岗位")]
|
||||
public T_SC_POST Nav_Post { get; set; }
|
||||
|
||||
[Description("考核年度")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
public int ANNUAL { get; set; }
|
||||
|
||||
[Description("考核周期")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
public PTAssessmentCycleEnums CYCLE { get; set; }
|
||||
|
||||
[Description("安全生产目标与指标制定内容表")]
|
||||
[FormFieldEdit]
|
||||
public ICollection<T_OG_SAFE_PDT_ASSESS_PLAN_CHECK_DETAIL_CONTENT> Nav_Contents { get; set; }
|
||||
[Description("被考核对象")]
|
||||
[DataFieldIngore]
|
||||
public string NAME { get; set; }
|
||||
}
|
||||
}
|
||||
@ -1,37 +0,0 @@
|
||||
using APT.Infrastructure.Core;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Text;
|
||||
|
||||
namespace APT.MS.Domain.Entities.SC.OG
|
||||
{
|
||||
[Description("考核方案录入")]
|
||||
public class T_OG_SAFE_PDT_ASSESS_PLAN_CHECK_DETAIL_CONTENT : MesEntityBase
|
||||
{
|
||||
[Description("考核方案审核")]
|
||||
[DataFieldForeignKey("Nav_CheckDetail", "Nav_Contents")]
|
||||
public Guid CHECK_DETAIL_ID { get; set; }
|
||||
|
||||
[Description("导航属性:考核方案审核")]
|
||||
public T_OG_SAFE_PDT_ASSESS_PLAN_CHECK_DETAIL Nav_CheckDetail { get; set; }
|
||||
|
||||
[Description("顺序")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
public int ROW_NO { get; set; }
|
||||
|
||||
[Description("安全生产指标考核项目")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
public string NAME { get; set; }
|
||||
[Description("分数")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
public decimal? SCORE { get; set; }
|
||||
[Description("考核认定评分办法")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
public string METHOD { get; set; }
|
||||
}
|
||||
}
|
||||
@ -1,43 +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.OG
|
||||
{
|
||||
/// <summary>
|
||||
/// 附件
|
||||
/// </summary>
|
||||
[Description("附件")]
|
||||
public class T_OG_SAFE_PDT_ASSESS_PLAN_CHECK_FILE : MesEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 安全生产责任制考核方案审核
|
||||
/// </summary>
|
||||
[Description("安全生产责任制考核方案审核")]
|
||||
[DataFieldForeignKey("Nav_SafePdtAssessPlanCheck", "Nav_Files")]
|
||||
public Guid CHECK_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航属性:安全生产责任制考核方案审核
|
||||
/// </summary>
|
||||
[Description("导航属性:安全生产责任制考核方案审核")]
|
||||
public T_OG_SAFE_PDT_ASSESS_PLAN_CHECK Nav_SafePdtAssessPlanCheck { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 文件ID
|
||||
/// </summary>
|
||||
[Description("文件")]
|
||||
[DataFieldForeignKey("Nav_ImgFile")]
|
||||
public Guid? IMG_FILE_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航属性:文件
|
||||
/// </summary>
|
||||
[Description("导航属性:文件")]
|
||||
public T_PF_IMG_FILE Nav_ImgFile { get; set; }
|
||||
}
|
||||
}
|
||||
@ -1,144 +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.Entities.OG;
|
||||
using APT.MS.Domain.Entities.SC;
|
||||
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.OG
|
||||
{
|
||||
/// <summary>
|
||||
/// 安全生产责任制考核方案库
|
||||
/// </summary>
|
||||
[Description("安全生产责任制考核方案库")]
|
||||
[DataRuleField("DEPARTMENT_ID")]
|
||||
public class T_OG_SAFE_ASSESS_PLAN_INPUT : MesEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 编号
|
||||
/// </summary>
|
||||
[Description("编号")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldLength(100)]
|
||||
public string CODE { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 名称
|
||||
/// </summary>
|
||||
[Description("名称")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldLength(100)]
|
||||
public string NAME { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 录入人员ID
|
||||
/// </summary>
|
||||
[Description("录入人员")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_User")]
|
||||
public Guid? USER_ID { get; set; }
|
||||
/// <summary>
|
||||
/// 导航属性:录入人员
|
||||
/// </summary>
|
||||
[Description("录入人员")]
|
||||
public T_FM_USER Nav_User { get; set; }
|
||||
/// <summary>
|
||||
/// 录入部门
|
||||
/// </summary>
|
||||
[Description("录入部门")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_Department")]
|
||||
public Guid? DEPARTMENT_ID { get; set; }
|
||||
/// <summary>
|
||||
/// 导航属性:录入部门
|
||||
/// </summary>
|
||||
[Description("录入部门")]
|
||||
public T_FM_DEPARTMENT Nav_Department { get; set; }
|
||||
/// <summary>
|
||||
/// 录入人员部门名称
|
||||
/// </summary>
|
||||
[Description("录入人员部门名称")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldLength(100)]
|
||||
public string DEP_NAME { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 被考核岗位ID
|
||||
/// </summary>
|
||||
[Description("被考核岗位")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_Post")]
|
||||
public Guid? POST_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 被考核岗位
|
||||
/// </summary>
|
||||
[Description("导航: 被考核岗位")]
|
||||
public T_SC_POST Nav_Post { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 考核年度
|
||||
/// </summary>
|
||||
[Description("考核年度")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
public int ANNUAL { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 考核周期ID
|
||||
/// </summary>
|
||||
[Description("考核周期")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[EnumName("PTAssessmentCycleEnums")]
|
||||
public PTAssessmentCycleEnums CYCLE { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 考核项目
|
||||
/// </summary>
|
||||
[Description("导航: 考核项目")]
|
||||
[FormFieldEdit]
|
||||
public ICollection<T_OG_SAFE_ASSESS_ITEM> Nav_SafeAssessItem { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 状态
|
||||
/// </summary>
|
||||
[Description("状态")]
|
||||
[EnumName("OGAssessPlanInputStatus")]
|
||||
[FormFieldTable]
|
||||
public OGAssessPlanInputStatus STATUS { get; set; }
|
||||
/// <summary>
|
||||
/// 考核方案ID
|
||||
/// </summary>
|
||||
[Description("考核方案")]
|
||||
[DataFieldForeignKey("Nav_Check")]
|
||||
public Guid? CHECK_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 考核方案
|
||||
/// </summary>
|
||||
[Description("导航: 考核方案")]
|
||||
public T_OG_SAFE_PDT_ASSESS_PLAN_CHECK Nav_Check { get; set; }
|
||||
}
|
||||
}
|
||||
@ -1,53 +0,0 @@
|
||||
using APT.Infrastructure.Core;
|
||||
using APT.MS.Domain.Entities.OG;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
namespace APT.MS.Domain.Entities.OG
|
||||
{
|
||||
/// <summary>
|
||||
/// 考核项目
|
||||
/// </summary>
|
||||
[Description("考核项目")]
|
||||
public class T_OG_SAFE_ASSESS_ITEM : MesEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 考核方案ID
|
||||
/// </summary>
|
||||
[Description("考核方案")]
|
||||
[DataFieldForeignKey("Nav_SafeAssessPlanInput", "Nav_SafeAssessItem")]
|
||||
public Guid ASSESS_PLAN_INPUT_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 考核方案
|
||||
/// </summary>
|
||||
[Description("导航: 考核方案")]
|
||||
public T_OG_SAFE_ASSESS_PLAN_INPUT Nav_SafeAssessPlanInput { get; set; }
|
||||
[Description("顺序")]
|
||||
public int ROW_NO { get; set; }
|
||||
/// <summary>
|
||||
/// 考核项目
|
||||
/// </summary>
|
||||
[Description("考核项目")]
|
||||
[FormFieldEdit]
|
||||
[DataFieldLength(100)]
|
||||
public string NAME { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 标准分
|
||||
/// </summary>
|
||||
[Description("标准分")]
|
||||
[FormFieldEdit]
|
||||
public decimal? SCORE { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 考核认定评分办法
|
||||
/// </summary>
|
||||
[Description("考核认定评分办法")]
|
||||
[FormFieldEdit]
|
||||
public string METHOD { get; set; }
|
||||
}
|
||||
}
|
||||
@ -1,73 +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.Entities.OG;
|
||||
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.OG
|
||||
{
|
||||
[Description("考核记录")]
|
||||
[DataRuleField("DEPARTMENT_ID")]
|
||||
public class T_OG_SAFE_ASSESS_RECORD : MesEntityBase
|
||||
{
|
||||
[Description("部门层级")]
|
||||
[EnumName("FMDepartmentType")]
|
||||
public FMDepartmentType DEPARTMENT_TYPE { get; set; }
|
||||
[Description("考核时间")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
public DateTime? TIME { get; set; }
|
||||
[Description("考核年度")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
public int ANNUAL { get; set; }
|
||||
|
||||
[Description("考核周期")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[EnumName("PTAssessmentCycleEnums")]
|
||||
public PTAssessmentCycleEnums CYCLE { get; set; }
|
||||
[Description("考核周期")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[DataFieldLength(50)]
|
||||
public string CYCLE_NAME { get; set; }
|
||||
[Description("考核负责人")]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_User")]
|
||||
public Guid? USER_ID { get; set; }
|
||||
[Description("导航: 考核负责人")]
|
||||
public T_FM_USER Nav_User { get; set; }
|
||||
[Description("考核班组")]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_Department")]
|
||||
public Guid? DEPARTMENT_ID { get; set; }
|
||||
|
||||
[Description("导航: 考核班组/车间/部门/公司")]
|
||||
public T_FM_DEPARTMENT Nav_Department { get; set; }
|
||||
[Description("状态")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[EnumName("PFStandardStatus")]
|
||||
public PFStandardStatus STATUS { get; set; }
|
||||
[Description("是否发布")]
|
||||
[DataFieldIngore]
|
||||
public string PUBLISH { get; set; }
|
||||
|
||||
[Description("导航: 考核记录详情")]
|
||||
[FormFieldEdit]
|
||||
public ICollection<T_OG_SAFE_ASSESS_RECORD_DETAIL> Nav_Details { get; set; }
|
||||
[DataFieldIngore]
|
||||
public int IS_OVERTIME { get; set; }
|
||||
}
|
||||
}
|
||||
@ -1,80 +0,0 @@
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using APT.Infrastructure.Core;
|
||||
using APT.MS.Domain.Entities.OG;
|
||||
using APT.MS.Domain.Entities.SC;
|
||||
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.OG
|
||||
{
|
||||
/// <summary>
|
||||
/// 考核记录详情
|
||||
/// </summary>
|
||||
[Description("考核记录详情")]
|
||||
public class T_OG_SAFE_ASSESS_RECORD_DETAIL : MesEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 考核记录ID
|
||||
/// </summary>
|
||||
[Description("考核记录")]
|
||||
[DataFieldForeignKey("Nav_SafeAssessRecord", "Nav_Details")]
|
||||
public Guid SAFE_ASSESS_RECORD_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 考核记录
|
||||
/// </summary>
|
||||
[Description("导航: 考核记录")]
|
||||
public T_OG_SAFE_ASSESS_RECORD Nav_SafeAssessRecord { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 被考核员工ID
|
||||
/// </summary>
|
||||
[Description("被考核员工")]
|
||||
[DataFieldForeignKey("Nav_User")]
|
||||
[FormFieldEdit]
|
||||
public Guid? USER_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 被考核员工
|
||||
/// </summary>
|
||||
[Description("导航: 被考核员工")]
|
||||
public T_FM_USER Nav_User { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 被考核岗位ID
|
||||
/// </summary>
|
||||
[Description("责任制岗位")]
|
||||
[DataFieldForeignKey("Nav_Post")]
|
||||
[FormFieldEdit]
|
||||
public Guid? POST_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 被考核岗位
|
||||
/// </summary>
|
||||
[Description("导航: 责任制岗位")]
|
||||
public T_SC_POST Nav_Post { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 考核记录项目
|
||||
/// </summary>
|
||||
[Description("导航: 考核记录项目")]
|
||||
[FormFieldEdit]
|
||||
public ICollection<T_OG_SAFE_ASSESS_RECORD_ITEM> Nav_SafeAssessRecordItem { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 奖惩措施
|
||||
/// </summary>
|
||||
[Description("奖惩措施")]
|
||||
[FormFieldEdit]
|
||||
[DataFieldLength(200)]
|
||||
public string REWARD_PUNISHMENT_MEASURES { get; set; }
|
||||
[Description("处理状态")]
|
||||
[EnumName("FOUserShiftStatusEnum")] //为枚举(0待处理 1已处理)
|
||||
public FOUserShiftStatusEnum DEAL_STATUS { get; set; }
|
||||
}
|
||||
}
|
||||
@ -1,69 +0,0 @@
|
||||
using APT.Infrastructure.Core;
|
||||
using APT.MS.Domain.Entities.OG;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace APT.MS.Domain.Entities.OG
|
||||
{
|
||||
/// <summary>
|
||||
/// 考核记录项目
|
||||
/// </summary>
|
||||
[Description("考核记录项目")]
|
||||
public class T_OG_SAFE_ASSESS_RECORD_ITEM : MesEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 考核记录详情ID
|
||||
/// </summary>
|
||||
[Description("考核记录详情")]
|
||||
[DataFieldForeignKey("Nav_SafeAssessRecordDetail", "Nav_SafeAssessRecordItem")]
|
||||
public Guid RECORD_DETAIL_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 考核记录详情
|
||||
/// </summary>
|
||||
[Description("导航: 考核记录详情")]
|
||||
public T_OG_SAFE_ASSESS_RECORD_DETAIL Nav_SafeAssessRecordDetail { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 考核项目ID
|
||||
/// </summary>
|
||||
[Description("考核项目")]
|
||||
[DataFieldForeignKey("Nav_SafeAssessItem")]
|
||||
[FormFieldEdit]
|
||||
public Guid? ASSESS_ITEM_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 考核项目
|
||||
/// </summary>
|
||||
[Description("导航: 考核项目")]
|
||||
public T_OG_SAFE_ASSESS_ITEM Nav_SafeAssessItem { get; set; }
|
||||
[Description("顺序")]
|
||||
public int ROW_NO { get; set; }
|
||||
/// <summary>
|
||||
/// 考核得分
|
||||
/// </summary>
|
||||
[Description("考核得分")]
|
||||
[FormFieldEdit]
|
||||
public decimal? SCORE { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 考核结果说明
|
||||
/// </summary>
|
||||
[Description("考核结果说明")]
|
||||
[FormFieldEdit]
|
||||
[DataFieldLength(500)]
|
||||
public string RESULT_INSTRUCTIONS { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 纠正与预防措施
|
||||
/// </summary>
|
||||
[Description("纠正与预防措施")]
|
||||
[FormFieldEdit]
|
||||
[DataFieldLength(500)]
|
||||
public string CORRECT_MEASURES { get; set; }
|
||||
}
|
||||
}
|
||||
@ -1,58 +0,0 @@
|
||||
using APT.Infrastructure.Core;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace APT.MS.Domain.Entities.OG
|
||||
{
|
||||
/// <summary>
|
||||
/// 组织保障模块基础配置
|
||||
/// </summary>
|
||||
[Description("组织保障模块基础配置")]
|
||||
public class T_OG_OGCONFIG : MesEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 安全生产责任制个人签订表触发时间
|
||||
/// </summary>
|
||||
[Description("安全生产责任制个人签订表触发时间")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
public DateTime? SAFE_PDT_PERSONAL_SIGNED_TRIGGER_TIME { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 工余事件征集时间
|
||||
/// </summary>
|
||||
[Description("工余事件征集时间")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
public DateTime? EVENT_GET_TIME { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 工余事件征集时间
|
||||
/// </summary>
|
||||
[Description("工余事件征集时间1")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
public DateTime? EVENT_GET_TIME_1 { get; set; }
|
||||
/// <summary>
|
||||
/// 年度工余事件上报汇总时间
|
||||
/// </summary>
|
||||
[Description("年度工余事件上报汇总时间")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
public DateTime? REPORT_SUM_TIME { get; set; }
|
||||
/// <summary>
|
||||
/// 员工意见征集时间
|
||||
/// </summary>
|
||||
[Description("员工意见征集时间")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
public DateTime? EMPLOYEE_OPINION_TIME { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,131 +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.OG
|
||||
{
|
||||
/// <summary>
|
||||
/// 人员任命书
|
||||
/// </summary>
|
||||
[Description("人员任命书")]
|
||||
public class T_OG_POLICY_DOCUMENT : MesEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 文件编号
|
||||
/// </summary>
|
||||
[Description("文件编号")]
|
||||
public string CODE { get; set; }
|
||||
/// <summary>
|
||||
/// 文件名称
|
||||
/// </summary>
|
||||
[Description("文件名称")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
public string NAME { get; set; }
|
||||
/// <summary>
|
||||
/// 人员任命书-人员类别
|
||||
/// </summary>
|
||||
[Description("人员任命书-人员类别")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_AppointType")]
|
||||
public Guid? APPOINT_TYPE { get; set; }
|
||||
/// <summary>
|
||||
/// 导航:人员任命书-人员类别
|
||||
/// </summary>
|
||||
[Description("导航:人员任命书-人员类别")]
|
||||
public T_OG_PERSONNEL_TYPE_ENUM Nav_AppointType { get; set; }
|
||||
/// <summary>
|
||||
/// 版本号
|
||||
/// </summary>
|
||||
[Description("版本号")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
public int VERSION { get; set; }
|
||||
/// <summary>
|
||||
/// 子表
|
||||
/// </summary>
|
||||
[Description("子表")]
|
||||
[FormFieldEdit]
|
||||
public List<T_OG_POLICY_DOCUMENT_DETAIL> Nav_Details { get; set; }
|
||||
/// <summary>
|
||||
/// 被任命人员
|
||||
/// </summary>
|
||||
[Description("被任命人员")]
|
||||
public List<T_OG_POLICY_DOCUMENT_DETAIL_APPOINT_USER> Nav_AppointUsers { get; set; }
|
||||
/// <summary>
|
||||
/// 编制单位
|
||||
/// </summary>
|
||||
[Description("编制单位")]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_Department")]
|
||||
public Guid DEPARTMENT_ID { get; set; }
|
||||
/// <summary>
|
||||
/// 编制单位
|
||||
/// </summary>
|
||||
[Description("编制单位")]
|
||||
public T_FM_DEPARTMENT Nav_Department { get; set; }
|
||||
/// <summary>
|
||||
/// 批准人员
|
||||
/// </summary>
|
||||
[Description("批准人员")]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_AppointAgreeUser")]
|
||||
public Guid? APPOINT_AGREEUSER_ID { get; set; }
|
||||
/// <summary>
|
||||
/// 导航属性: 批准人员
|
||||
/// </summary>
|
||||
[Description("导航属性: 批准人员")]
|
||||
public T_FM_USER Nav_AppointAgreeUser { get; set; }
|
||||
/// <summary>
|
||||
/// 颁布时间
|
||||
/// </summary>
|
||||
[Description("颁布时间")]
|
||||
[FormFieldEdit]
|
||||
public DateTime? PUBLISH_TIME { get; set; }
|
||||
/// <summary>
|
||||
/// 生效时间
|
||||
/// </summary>
|
||||
[Description("生效时间")]
|
||||
[FormFieldEdit]
|
||||
public DateTime? APPOINT_EFFECT_TIME { get; set; }
|
||||
/// <summary>
|
||||
/// 人员任命增加/删除原因
|
||||
/// </summary>
|
||||
[Description("人员任命增加/删除原因")]
|
||||
[EnumName("OGAppointmentAddDelReason")]
|
||||
[FormFieldEdit]
|
||||
public OGAppointmentAddDelReason APPOINT_REASON { get; set; }
|
||||
/// <summary>
|
||||
/// 状态 (0:作废 ,1:有效)
|
||||
/// </summary>
|
||||
[Description("状态")]
|
||||
[EnumName("HMOperationStepEnum")]
|
||||
public HMOperationStepEnum STATUS { get; set; }
|
||||
/// <summary>
|
||||
/// 附件
|
||||
/// </summary>
|
||||
[Description("附件")]
|
||||
public List<T_OG_POLICY_DOCUMENT_DETAIL_FILE> Nav_Files { get; set; }
|
||||
/// <summary>
|
||||
///上传人员
|
||||
/// </summary>
|
||||
[Description("上传人员")]
|
||||
[DataFieldForeignKey("Nav_User")]
|
||||
public Guid USER_ID { get; set; }
|
||||
/// <summary>
|
||||
/// 上传人员
|
||||
/// </summary>
|
||||
[Description("上传人员")]
|
||||
public T_FM_USER Nav_User { get; set; }
|
||||
[DataFieldIngore]
|
||||
public int IS_OVERTIME { get; set; }
|
||||
}
|
||||
}
|
||||
@ -1,130 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using APT.Infrastructure.Core;
|
||||
using APT.MS.Domain.Enums;
|
||||
|
||||
namespace APT.MS.Domain.Entities.OG
|
||||
{
|
||||
/// <summary>
|
||||
/// 人员任命书子表
|
||||
/// </summary>
|
||||
[Description("人员任命书子表")]
|
||||
public class T_OG_POLICY_DOCUMENT_DETAIL : MesEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 文件库ID
|
||||
/// </summary>
|
||||
[Description("文件库")]
|
||||
[DataFieldForeignKey("Nav_PolicyDocument","Nav_Details")]
|
||||
public Guid POLICY_DOCUMENT_ID { get; set; }
|
||||
/// <summary>
|
||||
/// 文件库
|
||||
/// </summary>
|
||||
[Description("文件库")]
|
||||
public T_OG_POLICY_DOCUMENT Nav_PolicyDocument { get; set; }
|
||||
/// <summary>
|
||||
/// 文件编号
|
||||
/// </summary>
|
||||
[Description("文件编号")]
|
||||
[FormFieldEdit]
|
||||
public string CODE { get; set; }
|
||||
/// <summary>
|
||||
/// 文件名称
|
||||
/// </summary>
|
||||
[Description("文件名称")]
|
||||
[FormFieldEdit]
|
||||
public string NAME { get; set; }
|
||||
/// <summary>
|
||||
/// 人员任命书-人员类别
|
||||
/// </summary>
|
||||
[Description("人员任命书-人员类别")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_AppointType")]
|
||||
public Guid? APPOINT_TYPE { get; set; }
|
||||
/// <summary>
|
||||
/// 导航:人员任命书-人员类别
|
||||
/// </summary>
|
||||
[Description("导航:人员任命书-人员类别")]
|
||||
public T_OG_PERSONNEL_TYPE_ENUM Nav_AppointType { get; set; }
|
||||
/// <summary>
|
||||
/// 版本号
|
||||
/// </summary>
|
||||
[Description("版本号")]
|
||||
[FormFieldEdit]
|
||||
public int VERSION { get; set; }
|
||||
/// <summary>
|
||||
/// 被任命人员
|
||||
/// </summary>
|
||||
[Description("被任命人员")]
|
||||
public List<T_OG_POLICY_DOCUMENT_DETAIL_APPOINT_USER> Nav_AppointUsers { get; set; }
|
||||
/// <summary>
|
||||
/// 编制单位
|
||||
/// </summary>
|
||||
[Description("编制单位")]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_Department")]
|
||||
public Guid DEPARTMENT_ID { get; set; }
|
||||
/// <summary>
|
||||
/// 编制单位
|
||||
/// </summary>
|
||||
[Description("编制单位")]
|
||||
public T_FM_DEPARTMENT Nav_Department { get; set; }
|
||||
/// <summary>
|
||||
/// 批准人员
|
||||
/// </summary>
|
||||
[Description("批准人员")]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_AppointAgreeUser")]
|
||||
public Guid? APPOINT_AGREEUSER_ID { get; set; }
|
||||
/// <summary>
|
||||
/// 导航属性: 批准人员
|
||||
/// </summary>
|
||||
[Description("导航属性: 批准人员")]
|
||||
public T_FM_USER Nav_AppointAgreeUser { get; set; }
|
||||
/// <summary>
|
||||
/// 颁布时间
|
||||
/// </summary>
|
||||
[Description("颁布时间")]
|
||||
[FormFieldEdit]
|
||||
public DateTime? PUBLISH_TIME { get; set; }
|
||||
/// <summary>
|
||||
/// 生效时间
|
||||
/// </summary>
|
||||
[Description("生效时间")]
|
||||
[FormFieldEdit]
|
||||
public DateTime? APPOINT_EFFECT_TIME { get; set; }
|
||||
/// <summary>
|
||||
/// 人员任命增加/删除原因
|
||||
/// </summary>
|
||||
[Description("人员任命增加/删除原因")]
|
||||
[EnumName("OGAppointmentAddDelReason")]
|
||||
[FormFieldEdit]
|
||||
public OGAppointmentAddDelReason APPOINT_REASON { get; set; }
|
||||
/// <summary>
|
||||
/// 状态 (0:作废 ,1:有效)
|
||||
/// </summary>
|
||||
[Description("状态")]
|
||||
[EnumName("HMOperationStepEnum")]
|
||||
public HMOperationStepEnum STATUS { get; set; }
|
||||
/// <summary>
|
||||
/// 附件
|
||||
/// </summary>
|
||||
[Description("附件")]
|
||||
public List<T_OG_POLICY_DOCUMENT_DETAIL_FILE> Nav_Files { get; set; }
|
||||
/// <summary>
|
||||
///上传人员
|
||||
/// </summary>
|
||||
[Description("上传人员")]
|
||||
[DataFieldForeignKey("Nav_User")]
|
||||
public Guid USER_ID { get; set; }
|
||||
/// <summary>
|
||||
/// 上传人员
|
||||
/// </summary>
|
||||
[Description("上传人员")]
|
||||
public T_FM_USER Nav_User { get; set; }
|
||||
}
|
||||
}
|
||||
@ -1,24 +0,0 @@
|
||||
using APT.Infrastructure.Core;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace APT.MS.Domain.Entities.OG
|
||||
{
|
||||
/// <summary>
|
||||
/// 方针文件库类型
|
||||
/// </summary>
|
||||
[Description("方针文件库类型")]
|
||||
public class T_OG_POLICY_DOCUMENT_TYPE : MesEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 名称
|
||||
/// </summary>
|
||||
[Description("名称")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
public string NAME { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,38 +0,0 @@
|
||||
using APT.BaseData.Domain.Entities;
|
||||
using APT.Infrastructure.Core;
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace APT.MS.Domain.Entities.OG
|
||||
{
|
||||
/// <summary>
|
||||
/// 文件库附件表
|
||||
/// </summary>
|
||||
[Description("文件库子表附件表")]
|
||||
public class T_OG_POLICY_DOCUMENT_DETAIL_FILE : MesEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 文件库ID
|
||||
/// </summary>
|
||||
[Description("文件库")]
|
||||
[DataFieldForeignKey("Nav_PolicyDocumentDetail", "Nav_Files")]
|
||||
public Guid POLICY_DOCUMENT_DETAIL_ID { get; set; }
|
||||
/// <summary>
|
||||
/// 导航属性:文件库
|
||||
/// </summary>
|
||||
[Description("导航属性:文件库")]
|
||||
public T_OG_POLICY_DOCUMENT_DETAIL Nav_PolicyDocumentDetail { get; set; }
|
||||
/// <summary>
|
||||
/// 文件ID
|
||||
/// </summary>
|
||||
[Description("文件")]
|
||||
[DataFieldForeignKey("Nav_ImgFile")]
|
||||
public Guid IMG_FILE_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航属性:文件
|
||||
/// </summary>
|
||||
[Description("导航属性:文件")]
|
||||
public T_PF_IMG_FILE Nav_ImgFile { get; set; }
|
||||
}
|
||||
}
|
||||
@ -1,38 +0,0 @@
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using APT.Infrastructure.Core;
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace APT.MS.Domain.Entities.OG
|
||||
{
|
||||
/// <summary>
|
||||
/// 文件库人员任命书子表
|
||||
/// </summary>
|
||||
[Description("文件库人员任命书子表")]
|
||||
public class T_OG_POLICY_DOCUMENT_DETAIL_APPOINT_USER : MesEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 文件库ID
|
||||
/// </summary>
|
||||
[Description("文件库ID")]
|
||||
[DataFieldForeignKey("Nav_PolicyDocumentDetail", "Nav_AppointUsers")]
|
||||
public Guid POLICY_DOCUMENT_DETAIL_ID { get; set; }
|
||||
/// <summary>
|
||||
/// 导航属性:文件库
|
||||
/// </summary>
|
||||
[Description("导航属性:文件库")]
|
||||
public T_OG_POLICY_DOCUMENT_DETAIL Nav_PolicyDocumentDetail { get; set; }
|
||||
/// <summary>
|
||||
/// 人员ID
|
||||
/// </summary>
|
||||
[Description("人员")]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_User")]
|
||||
public Guid USER_ID { get; set; }
|
||||
/// <summary>
|
||||
/// 导航属性:人员
|
||||
/// </summary>
|
||||
[Description("导航属性:人员")]
|
||||
public T_FM_USER Nav_User { get; set; }
|
||||
}
|
||||
}
|
||||
@ -1,132 +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;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace APT.MS.Domain.Entities.OG
|
||||
{
|
||||
/// <summary>
|
||||
/// 员工意见征集表
|
||||
/// </summary>
|
||||
[Description("员工意见征集表")]
|
||||
[DataRuleField("DEPARTMENT_ID")]
|
||||
public class T_OG_EMPLOYEE_OPINION_COLLECTION : MesEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 征集目的
|
||||
/// </summary>
|
||||
[Description("征集目的")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldLength(50)]
|
||||
public string NAME { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 征集开始时间
|
||||
/// </summary>
|
||||
[Description("征集开始时间")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
public DateTime? START_TIME { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 征集结束时间
|
||||
/// </summary>
|
||||
[Description("征集结束时间")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
public DateTime? END_TIME { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 征集部门
|
||||
/// </summary>
|
||||
[Description("征集部门")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_Department")]
|
||||
public Guid? DEPARTMENT_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 征集部门
|
||||
/// </summary>
|
||||
[Description("导航: 征集部门")]
|
||||
public T_FM_DEPARTMENT Nav_Department { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 征集人员ID
|
||||
/// </summary>
|
||||
[Description("征集人员")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_User")]
|
||||
public Guid? USER_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 征集人员
|
||||
/// </summary>
|
||||
[Description("导航: 征集人员")]
|
||||
public T_FM_USER Nav_User { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 员工意见征集表意见反馈表
|
||||
/// </summary>
|
||||
[Description("导航: 员工意见征集表意见反馈表")]
|
||||
[FormFieldEdit]
|
||||
public ICollection<T_OG_EMPLOYEE_OPINION_COLLECTION_USER> Nav_Users { get; set; }
|
||||
/// <summary>
|
||||
/// 负责人ID
|
||||
/// </summary>
|
||||
[Description("负责人")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_ChargeUser")]
|
||||
public Guid? CHARGE_USER_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 负责人
|
||||
/// </summary>
|
||||
[Description("导航: 负责人")]
|
||||
public T_FM_USER Nav_ChargeUser { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 安环部负责人ID
|
||||
/// </summary>
|
||||
[Description("安环部负责人")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_AHChargeUser")]
|
||||
public Guid? AH_CHARGE_USER_ID { get; set; }
|
||||
/// <summary>
|
||||
/// 导航: 负责人
|
||||
/// </summary>
|
||||
[Description("导航: 安环部负责人")]
|
||||
public T_FM_USER Nav_AHChargeUser { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 状态
|
||||
/// </summary>
|
||||
[Description("状态")]
|
||||
[EnumName("OGEmployeeOpinionStatus")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
public OGEmployeeOpinionStatus STATUS { get; set; }
|
||||
[Description("是否发布")]
|
||||
[DataFieldIngore]
|
||||
public string PUBLISH { get; set; }
|
||||
|
||||
[DataFieldIngore]
|
||||
public int IS_OVERTIME { get; set; }
|
||||
}
|
||||
}
|
||||
@ -1,94 +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;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace APT.MS.Domain.Entities.OG
|
||||
{
|
||||
/// <summary>
|
||||
/// 员工意见征集表意见反馈表
|
||||
/// </summary>
|
||||
[Description("员工意见征集表意见反馈表")]
|
||||
public class T_OG_EMPLOYEE_OPINION_COLLECTION_USER : MesEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 员工意见征集
|
||||
/// </summary>
|
||||
[Description("员工意见征集")]
|
||||
[DataFieldForeignKey("Nav_Collection", "Nav_Users")]
|
||||
public Guid COLLECTION_ID { get; set; }
|
||||
/// <summary>
|
||||
/// 导航: 员工意见征集
|
||||
/// </summary>
|
||||
[Description("导航: 员工意见征集")]
|
||||
public T_OG_EMPLOYEE_OPINION_COLLECTION Nav_Collection { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 填写人员
|
||||
/// </summary>
|
||||
[Description("填写人员")]
|
||||
[DataFieldForeignKey("Nav_User")]
|
||||
[FormFieldEdit]
|
||||
public Guid USER_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 填写人员
|
||||
/// </summary>
|
||||
[Description("导航: 填写人员")]
|
||||
public T_FM_USER Nav_User { get; set; }
|
||||
/// <summary>
|
||||
/// 意见反馈
|
||||
/// </summary>
|
||||
[Description("意见反馈")]
|
||||
[FormFieldEdit]
|
||||
[DataFieldLength(300)]
|
||||
public string CONTENT { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航属性:意见反馈
|
||||
/// </summary>
|
||||
[Description("导航属性:意见反馈")]
|
||||
[FormFieldEdit]
|
||||
public ICollection<T_OG_EMPLOYEE_OPINION> Nav_Opinions { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航属性:附件
|
||||
/// </summary>
|
||||
[Description("导航属性:附件")]
|
||||
public ICollection<T_OG_EMPLOYEE_OPINION_COLLECTION_USER_FILE> Nav_Files { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 受理意见
|
||||
/// </summary>
|
||||
[Description("受理意见")]
|
||||
[EnumName("OGOpinionResultEnum")]
|
||||
[FormFieldEdit]
|
||||
public OGOpinionResultEnum RESULT { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 不认可解释
|
||||
/// </summary>
|
||||
[Description("不认可解释")]
|
||||
[FormFieldEdit]
|
||||
[DataFieldLength(100)]
|
||||
public string REFUSE_DESCRIPTION { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 状态
|
||||
/// </summary>
|
||||
[Description("状态")]
|
||||
[EnumName("OGEmployeeOpinionFeedbackStatus")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
public OGEmployeeOpinionFeedbackStatus STATUS { get; set; }
|
||||
[Description("是否发布")]
|
||||
[DataFieldIngore]
|
||||
public string PUBLISH { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,44 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using APT.BaseData.Domain.Entities;
|
||||
using APT.Infrastructure.Core;
|
||||
namespace APT.MS.Domain.Entities.OG
|
||||
{
|
||||
/// <summary>
|
||||
/// 导航属性:员工意见征集表附件
|
||||
/// </summary>
|
||||
[Description("员工意见征集表附件")]
|
||||
public class T_OG_EMPLOYEE_OPINION_COLLECTION_USER_FILE : MesEntityBase
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 员工意见征集表意见反馈表
|
||||
/// </summary>
|
||||
[Description("员工意见征集表意见反馈表")]
|
||||
[DataFieldForeignKey("Nav_CollectionUser","Nav_Files")]
|
||||
|
||||
public Guid COLLECTION_USER_ID { get; set; }
|
||||
/// <summary>
|
||||
/// 导航: 员工意见征集表意见反馈表
|
||||
/// </summary>
|
||||
[Description("导航: 员工意见征集表意见反馈表")]
|
||||
public T_OG_EMPLOYEE_OPINION_COLLECTION_USER Nav_CollectionUser { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 文件ID
|
||||
/// </summary>
|
||||
[Description("文件")]
|
||||
[DataFieldForeignKey("Nav_ImgFile")]
|
||||
public Guid IMG_FILE_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航属性:文件
|
||||
/// </summary>
|
||||
[Description("导航属性:文件")]
|
||||
public T_PF_IMG_FILE Nav_ImgFile { get; set; }
|
||||
}
|
||||
}
|
||||
@ -1,55 +0,0 @@
|
||||
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.OG
|
||||
{
|
||||
/// <summary>
|
||||
/// 员工意见反馈
|
||||
/// </summary>
|
||||
[Description("员工意见反馈")]
|
||||
public class T_OG_EMPLOYEE_OPINION : MesEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 员工意见征集表意见反馈表
|
||||
/// </summary>
|
||||
[Description("员工意见征集表意见反馈表")]
|
||||
[DataFieldForeignKey("Nav_CollectionUser", "Nav_Opinions")]
|
||||
public Guid COLLECTION_USER_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 员工意见征集表意见反馈表
|
||||
/// </summary>
|
||||
[Description("导航: 员工意见征集表意见反馈表")]
|
||||
public T_OG_EMPLOYEE_OPINION_COLLECTION_USER Nav_CollectionUser { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 意见反馈
|
||||
/// </summary>
|
||||
[Description("意见反馈")]
|
||||
[FormFieldEdit]
|
||||
[DataFieldLength(200)]
|
||||
public string OPINION_CONTENT { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 受理意见
|
||||
/// </summary>
|
||||
[Description("受理意见")]
|
||||
[FormFieldEdit]
|
||||
[EnumName("OGOpinionResultEnum")]
|
||||
public OGOpinionResultEnum RESULT { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 不认可解释
|
||||
/// </summary>
|
||||
[Description("不认可解释")]
|
||||
[FormFieldEdit]
|
||||
[DataFieldLength(200)]
|
||||
public string REFUSE_DESCRIPTION { get; set; }
|
||||
}
|
||||
}
|
||||
@ -1,196 +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;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace APT.MS.Domain.Entities.OG
|
||||
{
|
||||
/// <summary>
|
||||
/// 员工意见上报表
|
||||
/// </summary>
|
||||
[Description("员工意见上报表")]
|
||||
[DataRuleField("LAUNCH_DEPARTMENT_ID")]
|
||||
public class T_OG_EMPLOYEE_OPINION_REPORT : MesEntityBase
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 上报日期
|
||||
/// </summary>
|
||||
[Description("上报日期")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
public DateTime? START_TIME { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 上报员工
|
||||
/// </summary>
|
||||
[Description("上报员工")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_User")]
|
||||
public Guid? USER_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 上报员工
|
||||
/// </summary>
|
||||
[Description("导航: 上报员工")]
|
||||
public T_FM_USER Nav_User { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 所在部门
|
||||
/// </summary>
|
||||
[Description("所在部门")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_LaunchDepartment")]
|
||||
public Guid? LAUNCH_DEPARTMENT_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 所在部门
|
||||
/// </summary>
|
||||
[Description("导航: 所在部门")]
|
||||
public T_FM_DEPARTMENT Nav_LaunchDepartment { get; set; }
|
||||
/// <summary>
|
||||
/// 建议事项名称
|
||||
/// </summary>
|
||||
[Description("建议事项名称")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldLength(100)]
|
||||
public string NAME { get; set; }
|
||||
/// <summary>
|
||||
/// 建议事项类别ID
|
||||
/// </summary>
|
||||
[Description("建议事项类别")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_ItemEnum")]
|
||||
public Guid? TYPE_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 建议事项类别
|
||||
/// </summary>
|
||||
[Description("导航: 建议事项类别")]
|
||||
public T_OG_EMPLOYEE_ITEM_CATEGORY_ENUM Nav_ItemEnum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 建议事项描述
|
||||
/// </summary>
|
||||
[Description("建议事项描述")]
|
||||
[FormFieldEdit]
|
||||
[DataFieldLength(500)]
|
||||
public string DESCRIPTION { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航属性:建议文件附件
|
||||
/// </summary>
|
||||
[Description("导航属性:建议文件附件")]
|
||||
public ICollection<T_OG_EMPLOYEE_OPINION_SUGGESTION_FILE> Nav_FileList { get; set; }
|
||||
/// <summary>
|
||||
/// 受理人
|
||||
/// </summary>
|
||||
[Description("受理人")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_Assignee")]
|
||||
public Guid? ASSIGNEE_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 受理人
|
||||
/// </summary>
|
||||
[Description("导航: 受理人")]
|
||||
public T_FM_USER Nav_Assignee { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 受理状况
|
||||
/// </summary>
|
||||
[Description("受理状况")]
|
||||
[EnumName("OGAssigneeStatus")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
public OGAssigneeStatus ASSIGNEE_STATUS { get; set; }
|
||||
/// <summary>
|
||||
/// 受理状况描述
|
||||
/// </summary>
|
||||
[Description("受理状况描述")]
|
||||
[FormFieldEdit]
|
||||
[DataFieldLength(500)]
|
||||
public string ASSIGNEE_DESCRIPTION { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 落实部门ID
|
||||
/// </summary>
|
||||
[Description("落实部门")]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_DoDepartment")]
|
||||
public Guid? DO_DEPARTMENT_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 落实部门
|
||||
/// </summary>
|
||||
[Description("导航: 落实部门")]
|
||||
public T_FM_DEPARTMENT Nav_DoDepartment { get; set; }
|
||||
/// <summary>
|
||||
/// 落实人员ID
|
||||
/// </summary>
|
||||
[Description("落实人员")]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_DoUser")]
|
||||
public Guid? DO_USER_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 落实人员
|
||||
/// </summary>
|
||||
[Description("导航: 落实人员")]
|
||||
public T_FM_USER Nav_DoUser { get; set; }
|
||||
/// <summary>
|
||||
/// 落实情况描述
|
||||
/// </summary>
|
||||
[Description("落实情况描述")]
|
||||
[FormFieldEdit]
|
||||
[DataFieldLength(500)]
|
||||
public string IMPLEMENT_DESCRIPTION { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航属性:落实文件附件
|
||||
/// </summary>
|
||||
[Description("导航属性:落实文件附件")]
|
||||
public ICollection<T_OG_EMPLOYEE_OPINION_IMPLEMENT_FILE> Nav_ImpFileList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 反馈的满意度
|
||||
/// </summary>
|
||||
[Description("反馈的满意度")]
|
||||
[EnumName("OGSatisfactionStatus")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
public OGSatisfactionStatus SATISFACTION_STATUS { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 状态
|
||||
/// </summary>
|
||||
[Description("状态")]
|
||||
[EnumName("OGEmployeeOpinionReportStatus")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
public OGEmployeeOpinionReportStatus STATUS { get; set; }
|
||||
[Description("是否发布")]
|
||||
[DataFieldIngore]
|
||||
public string PUBLISH { get; set; }
|
||||
[DataFieldIngore]
|
||||
public int IS_OVERTIME { get; set; }
|
||||
}
|
||||
}
|
||||
@ -1,43 +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.OG
|
||||
{
|
||||
/// <summary>
|
||||
/// 导航属性:员工意见上报表表附件
|
||||
/// </summary>
|
||||
[Description("员工意见上报表表附件")]
|
||||
public class T_OG_EMPLOYEE_OPINION_SUGGESTION_FILE : MesEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 员工意见上报表
|
||||
/// </summary>
|
||||
[Description("员工意见上报表")]
|
||||
[DataFieldForeignKey("Nav_Opinion", "Nav_FileList")]
|
||||
public Guid? EMPLOYEE_OPINION_REPORT_ID { get; set; }
|
||||
/// <summary>
|
||||
/// 导航: 员工意见上报表
|
||||
/// </summary>
|
||||
[Description("导航: 员工意见上报表")]
|
||||
public T_OG_EMPLOYEE_OPINION_REPORT Nav_Opinion { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 文件ID
|
||||
/// </summary>
|
||||
[Description("文件")]
|
||||
[DataFieldForeignKey("Nav_ImgFile")]
|
||||
public Guid IMG_FILE_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航属性:文件
|
||||
/// </summary>
|
||||
[Description("导航属性:文件")]
|
||||
public T_PF_IMG_FILE Nav_ImgFile { get; set; }
|
||||
}
|
||||
}
|
||||
@ -1,42 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using APT.BaseData.Domain.Entities;
|
||||
using APT.Infrastructure.Core;
|
||||
namespace APT.MS.Domain.Entities.OG
|
||||
{
|
||||
/// <summary>
|
||||
/// 导航属性:员工意见表落实文件附件
|
||||
/// </summary>
|
||||
[Description("员工意见表落实文件附件")]
|
||||
public class T_OG_EMPLOYEE_OPINION_IMPLEMENT_FILE : MesEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 员工意见上报表
|
||||
/// </summary>
|
||||
[Description("员工意见上报表")]
|
||||
[DataFieldForeignKey("Nav_Opinion", "Nav_ImpFileList")]
|
||||
public Guid? EMPLOYEE_OPINION_REPORT_ID { get; set; }
|
||||
/// <summary>
|
||||
/// 导航: 员工意见上报表
|
||||
/// </summary>
|
||||
[Description("导航: 员工意见上报表")]
|
||||
public T_OG_EMPLOYEE_OPINION_REPORT Nav_Opinion { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 文件ID
|
||||
/// </summary>
|
||||
[Description("文件")]
|
||||
[DataFieldForeignKey("Nav_ImgFile")]
|
||||
public Guid IMG_FILE_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航属性:文件
|
||||
/// </summary>
|
||||
[Description("导航属性:文件")]
|
||||
public T_PF_IMG_FILE Nav_ImgFile { get; set; }
|
||||
}
|
||||
}
|
||||
@ -1,186 +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;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace APT.MS.Domain.Entities.OG
|
||||
{
|
||||
/// <summary>
|
||||
/// 员工拒绝事项上报表
|
||||
/// </summary>
|
||||
[Description("员工拒绝事项上报表")]
|
||||
[DataRuleField("LAUNCH_DEPARTMENT_ID")]
|
||||
public class T_OG_EMPLOYEE_REFUSE_ITEM_REPORT : MesEntityBase
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 上报日期
|
||||
/// </summary>
|
||||
[Description("上报日期")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
public DateTime? START_TIME { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 上报员工
|
||||
/// </summary>
|
||||
[Description("上报员工")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_User")]
|
||||
public Guid? USER_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 上报员工
|
||||
/// </summary>
|
||||
[Description("导航: 上报员工")]
|
||||
public T_FM_USER Nav_User { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 所在部门
|
||||
/// </summary>
|
||||
[Description("所在部门")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_LaunchDepartment")]
|
||||
public Guid? LAUNCH_DEPARTMENT_ID { get; set; }
|
||||
/// <summary>
|
||||
/// 导航: 所在部门
|
||||
/// </summary>
|
||||
[Description("导航: 所在部门")]
|
||||
public T_FM_DEPARTMENT Nav_LaunchDepartment { get; set; }
|
||||
/// <summary>
|
||||
/// 拒绝事项名称
|
||||
/// </summary>
|
||||
[Description("拒绝事项名称")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldLength(200)]
|
||||
public string NAME { get; set; }
|
||||
/// <summary>
|
||||
/// 拒绝事项类别ID
|
||||
/// </summary>
|
||||
[Description("拒绝事项类别")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_ItemEnum")]
|
||||
public Guid? TYPE_ID { get; set; }
|
||||
/// <summary>
|
||||
/// 导航: 拒绝事项类别
|
||||
/// </summary>
|
||||
[Description("导航: 拒绝事项类别")]
|
||||
public T_OG_EMPLOYEE_ITEM_CATEGORY_ENUM Nav_ItemEnum { get; set; }
|
||||
/// <summary>
|
||||
/// 拒绝事项描述
|
||||
/// </summary>
|
||||
[Description("拒绝事项描述")]
|
||||
[FormFieldEdit]
|
||||
public string DESCRIPTION { get; set; }
|
||||
/// <summary>
|
||||
/// 导航属性:拒绝事项文件上传
|
||||
/// </summary>
|
||||
[Description("导航属性:拒绝事项文件上传")]
|
||||
public ICollection<T_OG_EMPLOYEE_REFUSE_ITEM_REPORT_FILE> Nav_FileList { get; set; }
|
||||
/// <summary>
|
||||
/// 受理人
|
||||
/// </summary>
|
||||
[Description("受理人")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_Assignee")]
|
||||
public Guid? ASSIGNEE_ID { get; set; }
|
||||
/// <summary>
|
||||
/// 导航: 受理人
|
||||
/// </summary>
|
||||
[Description("导航: 受理人")]
|
||||
public T_FM_USER Nav_Assignee { get; set; }
|
||||
/// <summary>
|
||||
/// 受理状况
|
||||
/// </summary>
|
||||
[Description("受理状况")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[EnumName("OGAssigneeStatus")]
|
||||
public OGAssigneeStatus ASSIGNEE_STATUS { get; set; }
|
||||
/// <summary>
|
||||
/// 受理状况描述
|
||||
/// </summary>
|
||||
[Description("受理状况描述")]
|
||||
[FormFieldEdit]
|
||||
public string ASSIGNEE_DESCRIPTION { get; set; }
|
||||
/// <summary>
|
||||
/// 调查人员ID
|
||||
/// </summary>
|
||||
[Description("调查人员")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_ImplementUser")]
|
||||
public Guid? IMPLEMENT_USER_ID { get; set; }
|
||||
/// <summary>
|
||||
/// 导航:调查人员
|
||||
/// </summary>
|
||||
[Description("导航:调查人员")]
|
||||
public T_FM_USER Nav_ImplementUser { get; set; }
|
||||
/// <summary>
|
||||
/// 调查部门ID
|
||||
/// </summary>
|
||||
[Description("调查部门")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_ImplementDepartment")]
|
||||
public Guid? IMPLEMENT_DEPARTMENT_ID { get; set; }
|
||||
/// <summary>
|
||||
/// 导航:调查部门
|
||||
/// </summary>
|
||||
[Description("导航:调查部门")]
|
||||
public T_FM_DEPARTMENT Nav_ImplementDepartment { get; set; }
|
||||
/// <summary>
|
||||
/// 调查情况描述
|
||||
/// </summary>
|
||||
[Description("调查情况描述")]
|
||||
[FormFieldEdit]
|
||||
public string IMPLEMENT_DESCRIPTION { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航属性:调查文件附件
|
||||
/// </summary>
|
||||
[Description("导航属性:调查文件附件")]
|
||||
public ICollection<T_OG_EMPLOYEE_REFUSE_ITEM_INVESTIGATION_FILE> Nav_InvestigationFileList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 拒绝制度认可
|
||||
/// </summary>
|
||||
[Description("拒绝制度认可")]
|
||||
[FormFieldEdit]
|
||||
[EnumName("OGRefuseSystemApproval")]
|
||||
public OGRefuseSystemApproval SATISFACTION_STATUS { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 状态
|
||||
/// </summary>
|
||||
[Description("状态")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[EnumName("OGEmployeeOpinionReportStatus")]
|
||||
public OGEmployeeOpinionReportStatus STATUS { get; set; }
|
||||
[Description("是否发布")]
|
||||
[DataFieldIngore]
|
||||
public string PUBLISH { get; set; }
|
||||
[DataFieldIngore]
|
||||
public int IS_OVERTIME { get; set; }
|
||||
}
|
||||
}
|
||||
@ -1,42 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using APT.BaseData.Domain.Entities;
|
||||
using APT.Infrastructure.Core;
|
||||
namespace APT.MS.Domain.Entities.OG
|
||||
{
|
||||
/// <summary>
|
||||
/// 导航属性:员工拒绝事项上报表
|
||||
/// </summary>
|
||||
[Description("员工拒绝事项上报表")]
|
||||
public class T_OG_EMPLOYEE_REFUSE_ITEM_REPORT_FILE : MesEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 员工拒绝事项上报表
|
||||
/// </summary>
|
||||
[Description("员工拒绝事项上报表")]
|
||||
[DataFieldForeignKey("Nav_Opinion", "Nav_FileList")]
|
||||
public Guid EMPLOYEE_REFUSE_ITEM_REPORT_ID { get; set; }
|
||||
/// <summary>
|
||||
/// 导航: 员工拒绝事项上报表
|
||||
/// </summary>
|
||||
[Description("导航: 员工拒绝事项上报表")]
|
||||
public T_OG_EMPLOYEE_REFUSE_ITEM_REPORT Nav_Opinion { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 文件ID
|
||||
/// </summary>
|
||||
[Description("文件")]
|
||||
[DataFieldForeignKey("Nav_ImgFile")]
|
||||
public Guid IMG_FILE_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航属性:文件
|
||||
/// </summary>
|
||||
[Description("导航属性:文件")]
|
||||
public T_PF_IMG_FILE Nav_ImgFile { get; set; }
|
||||
}
|
||||
}
|
||||
@ -1,42 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using APT.BaseData.Domain.Entities;
|
||||
using APT.Infrastructure.Core;
|
||||
namespace APT.MS.Domain.Entities.OG
|
||||
{
|
||||
/// <summary>
|
||||
/// 导航属性:员工拒绝事项上报表调查文件附件
|
||||
/// </summary>
|
||||
[Description("员工拒绝事项上报表调查文件附件")]
|
||||
public class T_OG_EMPLOYEE_REFUSE_ITEM_INVESTIGATION_FILE : MesEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 员工拒绝事项上报表
|
||||
/// </summary>
|
||||
[Description("员工拒绝事项上报表")]
|
||||
[DataFieldForeignKey("Nav_Opinion", "Nav_InvestigationFileList")]
|
||||
public Guid EMPLOYEE_REFUSE_ITEM_REPORT_ID { get; set; }
|
||||
/// <summary>
|
||||
/// 导航: 员工拒绝事项上报表
|
||||
/// </summary>
|
||||
[Description("导航: 员工拒绝事项上报表")]
|
||||
public T_OG_EMPLOYEE_REFUSE_ITEM_REPORT Nav_Opinion { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 文件ID
|
||||
/// </summary>
|
||||
[Description("文件")]
|
||||
[DataFieldForeignKey("Nav_ImgFile")]
|
||||
public Guid IMG_FILE_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航属性:文件
|
||||
/// </summary>
|
||||
[Description("导航属性:文件")]
|
||||
public T_PF_IMG_FILE Nav_ImgFile { get; set; }
|
||||
}
|
||||
}
|
||||
@ -1,198 +0,0 @@
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using APT.Infrastructure.Core;
|
||||
using APT.MS.Domain.Entities.OG;
|
||||
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.OG
|
||||
{
|
||||
/// <summary>
|
||||
/// 内部联系记录表
|
||||
/// </summary>
|
||||
[Description("内部联系记录表")]
|
||||
public class T_OG_INNER_CONTACT : MesEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 日期
|
||||
/// </summary>
|
||||
[Description("日期")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
public DateTime? DATE { get; set; }
|
||||
/// <summary>
|
||||
/// 填写人员ID
|
||||
/// </summary>
|
||||
[Description("填写人员")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_User")]
|
||||
public Guid? USER_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 填写人员
|
||||
/// </summary>
|
||||
[Description("导航: 填写人员")]
|
||||
public T_FM_USER Nav_User { get; set; }
|
||||
/// <summary>
|
||||
/// 沟通部门
|
||||
/// </summary>
|
||||
[Description("沟通部门")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_FormDepartment")]
|
||||
public Guid? FORM_DEPARTMENT_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 沟通部门
|
||||
/// </summary>
|
||||
[Description("导航: 沟通部门")]
|
||||
public T_FM_DEPARTMENT Nav_FormDepartment { get; set; }
|
||||
/// <summary>
|
||||
/// 沟通人员ID
|
||||
/// </summary>
|
||||
[Description("沟通人员")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_FromUser")]
|
||||
public Guid? FROM_USER_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 对接人
|
||||
/// </summary>
|
||||
[Description("导航: 沟通人员")]
|
||||
public T_FM_USER Nav_FromUser { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 被沟通部门
|
||||
/// </summary>
|
||||
[Description("被沟通部门")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_ToDepartment")]
|
||||
public Guid? TO_DEPARTMENT_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 沟通部门
|
||||
/// </summary>
|
||||
[Description("导航: 沟通部门")]
|
||||
public T_FM_DEPARTMENT Nav_ToDepartment { get; set; }
|
||||
/// <summary>
|
||||
/// 沟通人员ID
|
||||
/// </summary>
|
||||
[Description("被沟通人员")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_ToUser")]
|
||||
public Guid? TO_USER_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 对接人
|
||||
/// </summary>
|
||||
[Description("导航:被沟通人员")]
|
||||
public T_FM_USER Nav_ToUser { get; set; }
|
||||
/// <summary>
|
||||
/// 沟通目的
|
||||
/// </summary>
|
||||
[Description("沟通目的")]
|
||||
[FormFieldTable]
|
||||
[FormFieldEdit]
|
||||
public string PURPOSE { get; set; }
|
||||
/// <summary>
|
||||
/// 沟通事项名称
|
||||
/// </summary>
|
||||
[Description("沟通事项名称")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
public string NAME { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 沟通事项描述
|
||||
/// </summary>
|
||||
[Description("沟通事项描述")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
public string DESC { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航属性:沟通事项文件
|
||||
/// </summary>
|
||||
[Description("导航属性:沟通事项文件")]
|
||||
public ICollection<T_OG_INNER_CONTACT_ITEM_FILE> Nav_ItemFiles { get; set; }
|
||||
/// <summary>
|
||||
/// 落实部门ID
|
||||
/// </summary>
|
||||
[Description("落实部门")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_DoDepartment")]
|
||||
public Guid? DO_DEPARTMENT_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 责任部门
|
||||
/// </summary>
|
||||
[Description("导航: 落实部门")]
|
||||
public T_FM_DEPARTMENT Nav_DoDepartment { get; set; }
|
||||
/// <summary>
|
||||
/// 落实人员ID
|
||||
/// </summary>
|
||||
[Description("落实人员")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_DoUser")]
|
||||
public Guid? DO_USER_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 落实人员
|
||||
/// </summary>
|
||||
[Description("导航:落实人员")]
|
||||
public T_FM_USER Nav_DoUser { get; set; }
|
||||
/// <summary>
|
||||
/// 落实情况描述
|
||||
/// </summary>
|
||||
[Description("落实情况描述")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
public string DO_DESC { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航属性:落实情况文件
|
||||
/// </summary>
|
||||
[Description("导航属性:落实情况文件")]
|
||||
public ICollection<T_OG_INNER_CONTACT_DO_FILE> Nav_DoFiles { get; set; }
|
||||
/// <summary>
|
||||
/// 状态
|
||||
/// </summary>
|
||||
[Description("状态")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[EnumName("OGInnerContactStatus")]
|
||||
public OGInnerContactStatus STATUS { get; set; }
|
||||
[Description("是否发布")]
|
||||
[DataFieldIngore]
|
||||
public string PUBLISH { get; set; }
|
||||
[DataFieldIngore]
|
||||
public int IS_OVERTIME { get; set; }
|
||||
|
||||
[Description("沟通人签名时间")]
|
||||
public DateTime FORM_USER_TIME { get; set; }
|
||||
[Description("被沟通人签名时间")]
|
||||
public DateTime TO_USER_TIME { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,43 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using APT.BaseData.Domain.Entities;
|
||||
using APT.Infrastructure.Core;
|
||||
namespace APT.MS.Domain.Entities.OG
|
||||
{
|
||||
/// <summary>
|
||||
/// 沟通事项文件
|
||||
/// </summary>
|
||||
[Description("沟通事项文件")]
|
||||
public class T_OG_INNER_CONTACT_ITEM_FILE : MesEntityBase
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 内部联系沟通记录ID
|
||||
/// </summary>
|
||||
[Description("内部联系沟通记录")]
|
||||
[DataFieldForeignKey("Nav_Contact", "Nav_ItemFiles")]
|
||||
public Guid CONTACT_ID { get; set; }
|
||||
/// <summary>
|
||||
/// 导航:内部联系沟通记录
|
||||
/// </summary>
|
||||
[Description("导航:内部联系记录表")]
|
||||
public T_OG_INNER_CONTACT Nav_Contact { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 文件ID
|
||||
/// </summary>
|
||||
[Description("文件")]
|
||||
[DataFieldForeignKey("Nav_ImgFile")]
|
||||
public Guid IMG_FILE_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航属性:文件
|
||||
/// </summary>
|
||||
[Description("导航属性:文件")]
|
||||
public T_PF_IMG_FILE Nav_ImgFile { get; set; }
|
||||
}
|
||||
}
|
||||
@ -1,43 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using APT.BaseData.Domain.Entities;
|
||||
using APT.Infrastructure.Core;
|
||||
namespace APT.MS.Domain.Entities.OG
|
||||
{
|
||||
/// <summary>
|
||||
/// 落实情况文件
|
||||
/// </summary>
|
||||
[Description("落实情况文件")]
|
||||
public class T_OG_INNER_CONTACT_DO_FILE : MesEntityBase
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 内部联系沟通记录ID
|
||||
/// </summary>
|
||||
[Description("内部联系沟通记录")]
|
||||
[DataFieldForeignKey("Nav_Contact", "Nav_DoFiles")]
|
||||
public Guid CONTACT_ID { get; set; }
|
||||
/// <summary>
|
||||
/// 导航:内部联系沟通记录
|
||||
/// </summary>
|
||||
[Description("导航:人员任命书详细表")]
|
||||
public T_OG_INNER_CONTACT Nav_Contact { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 文件ID
|
||||
/// </summary>
|
||||
[Description("文件")]
|
||||
[DataFieldForeignKey("Nav_ImgFile")]
|
||||
public Guid IMG_FILE_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航属性:文件
|
||||
/// </summary>
|
||||
[Description("导航属性:文件")]
|
||||
public T_PF_IMG_FILE Nav_ImgFile { get; set; }
|
||||
}
|
||||
}
|
||||
@ -1,180 +0,0 @@
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using APT.Infrastructure.Core;
|
||||
using APT.MS.Domain.Entities.OG;
|
||||
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.OG
|
||||
{
|
||||
/// <summary>
|
||||
/// 外部联系沟通记录
|
||||
/// </summary>
|
||||
[Description("外部联系沟通记录")]
|
||||
public class T_OG_EXTERNAL_CONTACT_COMMUNICATE : MesEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 日期
|
||||
/// </summary>
|
||||
[Description("日期")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
public DateTime? START_TIME { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 责任部门ID
|
||||
/// </summary>
|
||||
[Description("责任部门")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_Department")]
|
||||
public Guid? DEPARTMENT_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 责任部门
|
||||
/// </summary>
|
||||
[Description("导航: 责任部门")]
|
||||
public T_FM_DEPARTMENT Nav_Department { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 沟通人员ID
|
||||
/// </summary>
|
||||
[Description("沟通人员")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_User")]
|
||||
public Guid? USER_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 沟通人员
|
||||
/// </summary>
|
||||
[Description("导航: 沟通人员")]
|
||||
public T_FM_USER Nav_User { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 外部单位ID
|
||||
/// </summary>
|
||||
[Description("外部单位")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_ExternalContactDetail")]
|
||||
public Guid? EXTERNAL_COMPANY_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 外部单位
|
||||
/// </summary>
|
||||
[Description("导航: 外部单位")]
|
||||
public T_OG_EXTERNAL_CONTACT_DETAIL Nav_ExternalContactDetail { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 外部单位沟通人
|
||||
/// </summary>
|
||||
[Description("外部单位沟通人")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldLength(50)]
|
||||
public string EXTERNAL_COMMUNICATE_PERSON { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 沟通目的
|
||||
/// </summary>
|
||||
[Description("沟通目的")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
public string COMMUNICATE_PURPOSE { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 沟通事项名称
|
||||
/// </summary>
|
||||
[Description("沟通事项名称")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
public string COMMUNICATE_NAME { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 沟通事项描述
|
||||
/// </summary>
|
||||
[Description("沟通事项描述")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
public string COMMUNICATE_DES { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航属性:沟通事项文件
|
||||
/// </summary>
|
||||
[Description("导航属性:沟通事项文件")]
|
||||
public ICollection<T_OG_EXTERNAL_CONTACT_COMMUNICATE_FILE> Nav_FileList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 落实部门ID
|
||||
/// </summary>
|
||||
[Description("落实部门")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[DataFieldForeignKey("Nav_DoDepartment")]
|
||||
public Guid? DO_DEPARTMENT_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 落实部门
|
||||
/// </summary>
|
||||
[Description("导航: 落实部门")]
|
||||
public T_FM_DEPARTMENT Nav_DoDepartment { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 落实人员ID
|
||||
/// </summary>
|
||||
[Description("落实人员")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_DoUser")]
|
||||
public Guid? DO_USER_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 落实人员
|
||||
/// </summary>
|
||||
[Description("导航: 落实人员")]
|
||||
public T_FM_USER Nav_DoUser { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 落实情况描述
|
||||
/// </summary>
|
||||
[Description("落实情况描述")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
public string IMPLEMENT_DESCRIPTION { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航属性:落实文件附件
|
||||
/// </summary>
|
||||
[Description("导航属性:落实文件附件")]
|
||||
public ICollection<T_OG_EXTERNAL_CONTACT_COMMUNICATE_IMPL_FILE> Nav_ImpFileList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 状态
|
||||
/// </summary>
|
||||
[Description("状态")]
|
||||
[EnumName("OGInnerContactStatus")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
public OGInnerContactStatus STATUS { get; set; }
|
||||
[Description("是否发布")]
|
||||
[DataFieldIngore]
|
||||
public string PUBLISH { get; set; }
|
||||
[DataFieldIngore]
|
||||
public int IS_OVERTIME { get; set; }
|
||||
}
|
||||
}
|
||||
@ -1,44 +0,0 @@
|
||||
using APT.BaseData.Domain.Entities;
|
||||
using APT.Infrastructure.Core;
|
||||
using APT.MS.Domain.Entities.OG;using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace APT.MS.Domain.Entities.OG
|
||||
{
|
||||
/// <summary>
|
||||
/// 外部联系沟通记录
|
||||
/// </summary>
|
||||
[Description("外部联系沟通记录")]
|
||||
public class T_OG_EXTERNAL_CONTACT_COMMUNICATE_FILE : MesEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 外部联系沟通记录
|
||||
/// </summary>
|
||||
[Description("外部联系沟通记录")]
|
||||
[DataFieldForeignKey("Nav_ExternalContactCommunicate", "Nav_FileList")]
|
||||
public Guid EXTERNAL_CONTACT_COMMUNICATE_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 外部联系沟通记录
|
||||
/// </summary>
|
||||
[Description("导航: 外部联系沟通记录")]
|
||||
public T_OG_EXTERNAL_CONTACT_COMMUNICATE Nav_ExternalContactCommunicate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 文件ID
|
||||
/// </summary>
|
||||
[Description("文件")]
|
||||
[DataFieldForeignKey("Nav_ImgFile")]
|
||||
public Guid IMG_FILE_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航属性:文件
|
||||
/// </summary>
|
||||
[Description("导航属性:文件")]
|
||||
public T_PF_IMG_FILE Nav_ImgFile { get; set; }
|
||||
}
|
||||
}
|
||||
@ -1,45 +0,0 @@
|
||||
using APT.BaseData.Domain.Entities;
|
||||
using APT.Infrastructure.Core;
|
||||
using APT.MS.Domain.Entities.OG;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace APT.MS.Domain.Entities.OG
|
||||
{
|
||||
/// <summary>
|
||||
/// 外部联系沟通落实
|
||||
/// </summary>
|
||||
[Description("外部联系沟通落实")]
|
||||
public class T_OG_EXTERNAL_CONTACT_COMMUNICATE_IMPL_FILE : MesEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 外部联系沟通记录
|
||||
/// </summary>
|
||||
[Description("外部联系沟通记录")]
|
||||
[DataFieldForeignKey("Nav_ExternalContactCommunicate", "Nav_ImpFileList")]
|
||||
public Guid EXTERNAL_CONTACT_COMMUNICATE_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 外部联系沟通记录
|
||||
/// </summary>
|
||||
[Description("导航: 外部联系沟通记录")]
|
||||
public T_OG_EXTERNAL_CONTACT_COMMUNICATE Nav_ExternalContactCommunicate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 文件ID
|
||||
/// </summary>
|
||||
[Description("文件")]
|
||||
[DataFieldForeignKey("Nav_ImgFile")]
|
||||
public Guid IMG_FILE_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航属性:文件
|
||||
/// </summary>
|
||||
[Description("导航属性:文件")]
|
||||
public T_PF_IMG_FILE Nav_ImgFile { get; set; }
|
||||
}
|
||||
}
|
||||
@ -1,229 +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;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace APT.MS.Domain.Entities.OG
|
||||
{
|
||||
/// <summary>
|
||||
/// 外部单位投诉建议
|
||||
/// </summary>
|
||||
[Description("外部单位投诉建议")]
|
||||
[DataRuleField("DEPARTMENT_ID")]
|
||||
public class T_OG_EXTERNAL_COMPLAIN_ADVISE : MesEntityBase
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 上报日期
|
||||
/// </summary>
|
||||
[Description("上报日期")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
public DateTime? START_TIME { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 外部单位ID
|
||||
/// </summary>
|
||||
[Description("外部单位")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_ExternalContactDetail")]
|
||||
public Guid? EXTERNAL_COMPANY_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 外部单位
|
||||
/// </summary>
|
||||
[Description("导航: 外部单位")]
|
||||
public T_OG_EXTERNAL_CONTACT_DETAIL Nav_ExternalContactDetail { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 上报人员
|
||||
/// </summary>
|
||||
[Description("上报人员")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_User")]
|
||||
public Guid? USER_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 上报人员
|
||||
/// </summary>
|
||||
[Description("导航: 上报人员")]
|
||||
public T_FM_USER Nav_User { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 建议事项名称
|
||||
/// </summary>
|
||||
[Description("建议事项名称")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldLength(100)]
|
||||
public string NAME { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 建议事项类别ID
|
||||
/// </summary>
|
||||
[Description("建议事项类别")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_ItemEnum")]
|
||||
public Guid? TYPE_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 建议事项类别
|
||||
/// </summary>
|
||||
[Description("导航: 建议事项类别")]
|
||||
public T_OG_EMPLOYEE_ITEM_CATEGORY_ENUM Nav_ItemEnum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 建议事项描述
|
||||
/// </summary>
|
||||
[Description("建议事项描述")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldLength(100)]
|
||||
public string DESCRIPTION { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航属性:建议文件附件
|
||||
/// </summary>
|
||||
[Description("导航属性:建议文件附件")]
|
||||
public ICollection<T_OG_EXTERNAL_COMPLAIN_ADVISE_FILE> Nav_FileList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 责任部门
|
||||
/// </summary>
|
||||
[Description("责任部门")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_Department")]
|
||||
public Guid? DEPARTMENT_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 责任部门
|
||||
/// </summary>
|
||||
[Description("导航: 责任部门")]
|
||||
public T_FM_DEPARTMENT Nav_Department { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 受理人
|
||||
/// </summary>
|
||||
[Description("受理人")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_Assignee")]
|
||||
public Guid? ASSIGNEE_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 受理人
|
||||
/// </summary>
|
||||
[Description("导航: 受理人")]
|
||||
public T_FM_USER Nav_Assignee { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 受理状况
|
||||
/// </summary>
|
||||
[Description("受理状况")]
|
||||
[EnumName("OGAssigneeStatus")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
public OGAssigneeStatus ASSIGNEE_STATUS { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 受理意见描述
|
||||
/// </summary>
|
||||
[Description("受理意见描述")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldLength(100)]
|
||||
public string ASSIGNEE_DESCRIPTION { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 调查部门ID
|
||||
/// </summary>
|
||||
[Description("调查部门")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_SurveyDepartment")]
|
||||
public Guid? SURVEY_DEPARTMENT_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 调查部门
|
||||
/// </summary>
|
||||
[Description("导航: 调查部门")]
|
||||
public T_FM_DEPARTMENT Nav_SurveyDepartment { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 调查人员ID
|
||||
/// </summary>
|
||||
[Description("调查人员")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_SurveyUser")]
|
||||
public Guid? SURVEY_USER_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 调查人员
|
||||
/// </summary>
|
||||
[Description("导航: 调查人员")]
|
||||
public T_FM_USER Nav_SurveyUser { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 调查情况描述
|
||||
/// </summary>
|
||||
[Description("调查情况描述")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldLength(100)]
|
||||
public string SURVEY_DESCRIPTION { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航属性:调查文件附件
|
||||
/// </summary>
|
||||
[Description("导航属性:调查文件附件")]
|
||||
public ICollection<T_OG_EXTERNAL_COMPLAIN_ADVISE_SURVEY_FILE> Nav_SurveyFileList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 反馈的满意度
|
||||
/// </summary>
|
||||
[Description("反馈的满意度")]
|
||||
[EnumName("OGSatisfactionStatus")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
public OGSatisfactionStatus SATISFACTION_STATUS { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 状态
|
||||
/// </summary>
|
||||
[Description("状态")]
|
||||
[EnumName("OGExternalComplainAdviseStatus")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
public OGExternalComplainAdviseStatus STATUS { get; set; }
|
||||
[Description("是否发布")]
|
||||
[DataFieldIngore]
|
||||
public string PUBLISH { get; set; }
|
||||
|
||||
[DataFieldIngore]
|
||||
public int IS_OVERTIME { get; set; }
|
||||
}
|
||||
}
|
||||
@ -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.OG
|
||||
{
|
||||
/// <summary>
|
||||
/// 外部单位投诉建议附件
|
||||
/// </summary>
|
||||
[Description("外部单位投诉建议附件")]
|
||||
public class T_OG_EXTERNAL_COMPLAIN_ADVISE_FILE : MesEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 外部单位投诉建议
|
||||
/// </summary>
|
||||
[Description("外部单位投诉建议")]
|
||||
[DataFieldForeignKey("Nav_ExternalComplainAdvise", "Nav_FileList")]
|
||||
public Guid EXTERNAL_COMPLAIN_ADVISE_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 外部单位投诉建议
|
||||
/// </summary>
|
||||
[Description("导航: 外部单位投诉建议")]
|
||||
public T_OG_EXTERNAL_COMPLAIN_ADVISE Nav_ExternalComplainAdvise { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 文件ID
|
||||
/// </summary>
|
||||
[Description("文件")]
|
||||
[DataFieldForeignKey("Nav_ImgFile")]
|
||||
public Guid IMG_FILE_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航属性:文件
|
||||
/// </summary>
|
||||
[Description("导航属性:文件")]
|
||||
public T_PF_IMG_FILE Nav_ImgFile { get; set; }
|
||||
}
|
||||
}
|
||||
@ -1,44 +0,0 @@
|
||||
using APT.BaseData.Domain.Entities;
|
||||
using APT.Infrastructure.Core;
|
||||
using APT.MS.Domain.Entities.OG;using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace APT.MS.Domain.Entities.OG
|
||||
{
|
||||
/// <summary>
|
||||
/// 外部单位投诉建议调查附件
|
||||
/// </summary>
|
||||
[Description("外部单位投诉建议调查附件")]
|
||||
public class T_OG_EXTERNAL_COMPLAIN_ADVISE_SURVEY_FILE : MesEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 外部单位投诉建议
|
||||
/// </summary>
|
||||
[Description("外部单位投诉建议")]
|
||||
[DataFieldForeignKey("Nav_ExternalComplainAdvise", "Nav_SurveyFileList")]
|
||||
public Guid EXTERNAL_COMPLAIN_ADVISE_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 外部单位投诉建议
|
||||
/// </summary>
|
||||
[Description("导航: 外部单位投诉建议")]
|
||||
public T_OG_EXTERNAL_COMPLAIN_ADVISE Nav_ExternalComplainAdvise { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 文件ID
|
||||
/// </summary>
|
||||
[Description("文件")]
|
||||
[DataFieldForeignKey("Nav_ImgFile")]
|
||||
public Guid IMG_FILE_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航属性:文件
|
||||
/// </summary>
|
||||
[Description("导航属性:文件")]
|
||||
public T_PF_IMG_FILE Nav_ImgFile { get; set; }
|
||||
}
|
||||
}
|
||||
@ -1,94 +0,0 @@
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using APT.BaseData.Domain.Enums.PF;
|
||||
using APT.Infrastructure.Core;
|
||||
using APT.MS.Domain.Entities.OG;
|
||||
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.OG
|
||||
{
|
||||
/// <summary>
|
||||
/// 认可与奖励上报表
|
||||
/// </summary>
|
||||
[Description("认可与奖励上报表")]
|
||||
[DataRuleField("DEPARTMENT_ID")]
|
||||
public class T_OG_APPROVE_REWARD_PUNISHMENT_REPORT : MesEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 发起部门ID
|
||||
/// </summary>
|
||||
[Description("发起部门")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_Department")]
|
||||
public Guid? DEPARTMENT_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航属性:发起部门
|
||||
/// </summary>
|
||||
[Description("导航属性:发起部门")]
|
||||
public T_FM_DEPARTMENT Nav_Department { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 发起人员ID
|
||||
/// </summary>
|
||||
[Description("发起人员")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_User")]
|
||||
public Guid? USER_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航属性:发起人员
|
||||
/// </summary>
|
||||
[Description("导航属性:发起人员")]
|
||||
public T_FM_USER Nav_User { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 发起时间
|
||||
/// </summary>
|
||||
[Description("发起时间")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
public DateTime? START_TIME { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 辨别审批流
|
||||
/// </summary>
|
||||
[Description("辨别审批流")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[EnumName("OGIdentifyApprove")]
|
||||
public OGIdentifyApprove IDENTIFY_APPROVE { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 奖励与惩罚详情
|
||||
/// </summary>
|
||||
[Description("导航: 奖励与惩罚详情")]
|
||||
[FormFieldEdit]
|
||||
public ICollection<T_OG_APPROVE_REWARD_PUNISHMENT_DETAIL> Nav_ApproveRewardPunishmentDetail { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 状态
|
||||
/// </summary>
|
||||
[Description("状态")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[EnumName("PFStandardStatus")]
|
||||
public PFStandardStatus STATUS { get; set; }
|
||||
[Description("是否发布")]
|
||||
[DataFieldIngore]
|
||||
public string PUBLISH { get; set; }
|
||||
[DataFieldIngore]
|
||||
public int IS_OVERTIME { get; set; }
|
||||
}
|
||||
}
|
||||
@ -1,97 +0,0 @@
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using APT.Infrastructure.Core;
|
||||
using APT.MS.Domain.Entities.OG;
|
||||
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.OG
|
||||
{
|
||||
/// <summary>
|
||||
/// 奖励与惩罚详情
|
||||
/// </summary>
|
||||
[Description("奖励与惩罚详情")]
|
||||
public class T_OG_APPROVE_REWARD_PUNISHMENT_DETAIL : MesEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 认可与奖励上报表ID
|
||||
/// </summary>
|
||||
[Description("认可与奖励上报表")]
|
||||
[DataFieldForeignKey("Nav_ApproveRewardPunishmentReport", "Nav_ApproveRewardPunishmentDetail")]
|
||||
public Guid REPORT_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 认可与奖励上报表
|
||||
/// </summary>
|
||||
[Description("导航: 认可与奖励上报表")]
|
||||
public T_OG_APPROVE_REWARD_PUNISHMENT_REPORT Nav_ApproveRewardPunishmentReport { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 类型
|
||||
/// </summary>
|
||||
[Description("类型")]
|
||||
[EnumName("OGRewardPunishmentType")]
|
||||
[FormFieldEdit]
|
||||
public OGRewardPunishmentType TYPE { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 对象
|
||||
/// </summary>
|
||||
[Description("对象")]
|
||||
[EnumName("OGRewardPunishmentObject")]
|
||||
[FormFieldEdit]
|
||||
public OGRewardPunishmentObject OBJECT { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 奖惩部门ID
|
||||
/// </summary>
|
||||
[Description("奖惩部门")]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_Department")]
|
||||
public Guid? DEPARTMENT_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航属性:奖惩部门
|
||||
/// </summary>
|
||||
[Description("导航属性:奖惩部门")]
|
||||
public T_FM_DEPARTMENT Nav_Department { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 奖惩人员ID
|
||||
/// </summary>
|
||||
[Description("奖惩人员")]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_User")]
|
||||
public Guid? USER_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 奖惩人员
|
||||
/// </summary>
|
||||
[Description("导航: 奖惩人员")]
|
||||
public T_FM_USER Nav_User { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 奖惩原因ID
|
||||
/// </summary>
|
||||
[Description("奖惩原因")]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_Reason")]
|
||||
public Guid? REASON_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 奖惩原因
|
||||
/// </summary>
|
||||
[Description("导航: 奖惩原因")]
|
||||
public T_OG_APPROVE_REWARD_PUNISHMENT_REASON Nav_Reason { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 原因描述
|
||||
/// </summary>
|
||||
[Description("原因描述")]
|
||||
[FormFieldEdit]
|
||||
public string REASON_DESCRIBE { get; set; } }
|
||||
}
|
||||
@ -1,106 +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;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace APT.MS.Domain.Entities.OG
|
||||
{
|
||||
/// <summary>
|
||||
/// 工余事件征集
|
||||
/// </summary>
|
||||
[Description("工余事件征集")]
|
||||
public class T_OG_EVENT_GET : MesEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 征集日期
|
||||
/// </summary>
|
||||
[Description("征集日期")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
public DateTime? START_TIME { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 征集部门
|
||||
/// </summary>
|
||||
[Description("征集部门")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_Department")]
|
||||
public Guid? DEPARTMENT_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 征集部门
|
||||
/// </summary>
|
||||
[Description("导航: 征集部门")]
|
||||
public T_FM_DEPARTMENT Nav_Department { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 征集人员ID
|
||||
/// </summary>
|
||||
[Description("征集人员")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_User")]
|
||||
public Guid? USER_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 征集人员
|
||||
/// </summary>
|
||||
[Description("导航: 征集人员")]
|
||||
public T_FM_USER Nav_User { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 征集截止时间
|
||||
/// </summary>
|
||||
[Description("征集截止时间")]
|
||||
[FormFieldEdit]
|
||||
public DateTime? END_TIME { get; set; }
|
||||
/// <summary>
|
||||
/// 导航: 员工意见数据
|
||||
/// </summary>
|
||||
[Description("导航: 员工意见数据")]
|
||||
[FormFieldEdit]
|
||||
public ICollection<T_OG_EVENT_GET_DETAIL> Nav_Details { get; set; }
|
||||
/// <summary>
|
||||
/// 状态
|
||||
/// </summary>
|
||||
[Description("状态")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[EnumName("OGEventStatus")]
|
||||
public OGEventStatus STATUS { get; set; }
|
||||
/// <summary>
|
||||
/// 工余事件数
|
||||
/// </summary>
|
||||
[Description("工余事件数")]
|
||||
public int EVENT_COUNT { get; set; }
|
||||
/// <summary>
|
||||
/// 上次工余事件数
|
||||
/// </summary>
|
||||
[Description("上次工余事件数")]
|
||||
public int LAST_EVENT_COUNT { get; set; }
|
||||
/// <summary>
|
||||
/// 对比数
|
||||
/// </summary>
|
||||
[Description("对比数")]
|
||||
public int EVENT_COMPARE { get; set; }
|
||||
/// <summary>
|
||||
/// 后台触发
|
||||
/// </summary>
|
||||
[Description("后台触发")]
|
||||
public bool BACK { get; set; }
|
||||
[Description("是否发布")]
|
||||
[DataFieldIngore]
|
||||
public string PUBLISH { get; set; }
|
||||
[DataFieldIngore]
|
||||
public int IS_OVERTIME { get; set; }
|
||||
}
|
||||
}
|
||||
@ -1,80 +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;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace APT.MS.Domain.Entities.OG
|
||||
{
|
||||
/// <summary>
|
||||
/// 工余事件征集数据
|
||||
/// </summary>
|
||||
[Description("工余事件征集数据")]
|
||||
public class T_OG_EVENT_GET_DETAIL : MesEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 征集ID
|
||||
/// </summary>
|
||||
[Description("征集")]
|
||||
[DataFieldForeignKey("Nav_Event", "Nav_Details")]
|
||||
public Guid EVENT_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航属性:征集
|
||||
/// </summary>
|
||||
[Description("导航属性:征集")]
|
||||
public T_OG_EVENT_GET Nav_Event { get; set; }
|
||||
/// <summary>
|
||||
/// 参与人员ID
|
||||
/// </summary>
|
||||
[Description("参与人员")]
|
||||
[DataFieldForeignKey("Nav_User")]
|
||||
[FormFieldEdit]
|
||||
public Guid? USER_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 参与人员
|
||||
/// </summary>
|
||||
[Description("导航: 参与人员")]
|
||||
public T_FM_USER Nav_User { get; set; }
|
||||
/// <summary>
|
||||
/// 反馈人员ID
|
||||
/// </summary>
|
||||
[Description("反馈人员")]
|
||||
[DataFieldForeignKey("Nav_ReplyUser")]
|
||||
[FormFieldEdit]
|
||||
public Guid? REPLY_USER_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 反馈人员
|
||||
/// </summary>
|
||||
[Description("导航: 反馈人员")]
|
||||
public T_FM_USER Nav_ReplyUser { get; set; }
|
||||
/// <summary>
|
||||
/// 导航: 事件项
|
||||
/// </summary>
|
||||
[Description("导航: 事件项")]
|
||||
[FormFieldEdit]
|
||||
public ICollection<T_OG_EVENT_GET_DETAIL_ITEM> Nav_Items { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 附件
|
||||
/// </summary>
|
||||
[Description("导航: 附件")]
|
||||
public ICollection<T_OG_EVENT_GET_DETAIL_FILE> Nav_Files { get; set; }
|
||||
/// <summary>
|
||||
/// 状态
|
||||
/// </summary>
|
||||
[Description("状态")]
|
||||
[EnumName("OGEventGetUserStatus")]
|
||||
[FormFieldEdit]
|
||||
public OGEventGetUserStatus STATUS { get; set; }
|
||||
[Description("是否发布")]
|
||||
[DataFieldIngore]
|
||||
public string PUBLISH { get; set; }
|
||||
}
|
||||
}
|
||||
@ -1,53 +0,0 @@
|
||||
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.OG
|
||||
{
|
||||
/// <summary>
|
||||
/// 事件项
|
||||
/// </summary>
|
||||
[Description("事件项")]
|
||||
public class T_OG_EVENT_GET_DETAIL_ITEM : MesEntityBase
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 征集详情ID
|
||||
/// </summary>
|
||||
[Description("征集详情")]
|
||||
[DataFieldForeignKey("Nav_Detail", "Nav_Items")]
|
||||
public Guid DETAIL_ID { get; set; }
|
||||
/// <summary>
|
||||
/// 导航:征集详情
|
||||
/// </summary>
|
||||
[Description("导航:征集详情")]
|
||||
public T_OG_EVENT_GET_DETAIL Nav_Detail { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 事件类型
|
||||
/// </summary>
|
||||
[Description("事件类型")]
|
||||
[EnumName("OGEventGetType")]
|
||||
[FormFieldEdit]
|
||||
public OGEventGetType TYPE { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 事件描述
|
||||
/// </summary>
|
||||
[Description("事件描述")]
|
||||
[FormFieldEdit]
|
||||
public string DESC { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 反馈意见
|
||||
/// </summary>
|
||||
[Description("反馈意见")]
|
||||
[FormFieldEdit]
|
||||
public string REPLY { get; set; }
|
||||
}
|
||||
}
|
||||
@ -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.OG
|
||||
{
|
||||
/// <summary>
|
||||
/// 征集附件
|
||||
/// </summary>
|
||||
[Description("征集附件")]
|
||||
public class T_OG_EVENT_GET_DETAIL_FILE : MesEntityBase
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 征集详情ID
|
||||
/// </summary>
|
||||
[Description("征集详情")]
|
||||
[DataFieldForeignKey("Nav_Detail", "Nav_Files")]
|
||||
public Guid DETAIL_ID { get; set; }
|
||||
/// <summary>
|
||||
/// 导航:征集详情
|
||||
/// </summary>
|
||||
[Description("导航:征集详情")]
|
||||
public T_OG_EVENT_GET_DETAIL Nav_Detail { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 文件ID
|
||||
/// </summary>
|
||||
[Description("文件")]
|
||||
[DataFieldForeignKey("Nav_ImgFile")]
|
||||
public Guid IMG_FILE_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航属性:文件
|
||||
/// </summary>
|
||||
[Description("导航属性:文件")]
|
||||
public T_PF_IMG_FILE Nav_ImgFile { get; set; }
|
||||
}
|
||||
}
|
||||
@ -1,177 +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.OG
|
||||
{
|
||||
/// <summary>
|
||||
/// 工余事件上报及处理表
|
||||
/// </summary>
|
||||
[Description("工余事件上报及处理表")]
|
||||
[DataRuleField("DEPARTMENT_ID")]
|
||||
public class T_OG_EVENT_REPORT : MesEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 上报日期
|
||||
/// </summary>
|
||||
[Description("上报日期")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
public DateTime? TIME { get; set; }
|
||||
/// <summary>
|
||||
/// 所在部门
|
||||
/// </summary>
|
||||
[Description("所在部门")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_Department")]
|
||||
public Guid? DEPARTMENT_ID { get; set; }
|
||||
/// <summary>
|
||||
/// 导航: 所在部门
|
||||
/// </summary>
|
||||
[Description("导航: 所在部门")]
|
||||
public T_FM_DEPARTMENT Nav_Department { get; set; }
|
||||
/// <summary>
|
||||
/// 上报员工ID
|
||||
/// </summary>
|
||||
[Description("上报员工")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_User")]
|
||||
public Guid? USER_ID { get; set; }
|
||||
/// <summary>
|
||||
/// 导航: 上报员工
|
||||
/// </summary>
|
||||
[Description("导航: 上报员工")]
|
||||
public T_FM_USER Nav_User { get; set; }
|
||||
/// <summary>
|
||||
/// 安环部负责人ID
|
||||
/// </summary>
|
||||
[Description("安环部负责人")]
|
||||
[DataFieldForeignKey("Nav_AHUser")]
|
||||
[FormFieldEdit]
|
||||
public Guid? AH_USER_ID { get; set; }
|
||||
/// <summary>
|
||||
/// 导航: 安环部负责人
|
||||
/// </summary>
|
||||
[Description("导航: 安环部负责人")]
|
||||
public T_FM_USER Nav_AHUser { get; set; }
|
||||
/// <summary>
|
||||
/// 事件类型
|
||||
/// </summary>
|
||||
[Description("事件类型")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[EnumName("OGEventGetType")]
|
||||
public OGEventGetType TYPE { get; set; }
|
||||
/// <summary>
|
||||
/// 发生日期
|
||||
/// </summary>
|
||||
[Description("发生日期")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
public DateTime? HAPPEN_TIME { get; set; }
|
||||
/// <summary>
|
||||
/// 发生地点
|
||||
/// </summary>
|
||||
[Description("发生地点")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldLength(100)]
|
||||
public string PLACE { get; set; }
|
||||
/// <summary>
|
||||
/// 事件描述
|
||||
/// </summary>
|
||||
[Description("事件描述")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
public string DESC { get; set; }
|
||||
/// <summary>
|
||||
/// 处理状况
|
||||
/// </summary>
|
||||
[Description("处理状况")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[EnumName("OGEventDoType")]
|
||||
public OGEventDoType DO_TYPE { get; set; }
|
||||
/// <summary>
|
||||
/// 所在部门
|
||||
/// </summary>
|
||||
[Description("处理部门")]
|
||||
[DataFieldForeignKey("Nav_DoDepartment")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
public Guid? DO_DEPARTMENT_ID { get; set; }
|
||||
/// <summary>
|
||||
/// 导航: 所在部门
|
||||
/// </summary>
|
||||
[Description("导航: 处理部门")]
|
||||
public T_FM_DEPARTMENT Nav_DoDepartment { get; set; }
|
||||
/// <summary>
|
||||
/// 责任人ID
|
||||
/// </summary>
|
||||
[Description("责任人")]
|
||||
[DataFieldForeignKey("Nav_DoUser")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
public Guid? DO_USER_ID { get; set; }
|
||||
/// <summary>
|
||||
/// 导航: 责任人
|
||||
/// </summary>
|
||||
[Description("导航: 责任人")]
|
||||
public T_FM_USER Nav_DoUser { get; set; }
|
||||
/// <summary>
|
||||
/// 情况描述
|
||||
/// </summary>
|
||||
[Description("情况描述")]
|
||||
[FormFieldEdit]
|
||||
public string DO_DESC { get; set; }
|
||||
/// <summary>
|
||||
/// 导航: 附件
|
||||
/// </summary>
|
||||
[Description("导航: 附件")]
|
||||
public ICollection<T_OG_EVENT_REPORT_FILE> Nav_Files { get; set; }
|
||||
/// <summary>
|
||||
/// 审核意见
|
||||
/// </summary>
|
||||
[Description("审核意见")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
public string COMMENT { get; set; }
|
||||
/// <summary>
|
||||
/// 审核同意
|
||||
/// </summary>
|
||||
[Description("审核同意")]
|
||||
public bool AGREE { get; set; }
|
||||
/// <summary>
|
||||
/// 状态
|
||||
/// </summary>
|
||||
[Description("状态")]
|
||||
[EnumName("PFStandardStatus")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
public PFStandardStatus STATUS { get; set; }
|
||||
[Description("是否发布")]
|
||||
[DataFieldIngore]
|
||||
public string PUBLISH { get; set; }
|
||||
[DataFieldIngore]
|
||||
public int IS_OVERTIME { get; set; }
|
||||
}
|
||||
}
|
||||
@ -1,43 +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.OG
|
||||
{
|
||||
/// <summary>
|
||||
/// 征集附件
|
||||
/// </summary>
|
||||
[Description("征集附件")]
|
||||
public class T_OG_EVENT_REPORT_FILE : MesEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 上报ID
|
||||
/// </summary>
|
||||
[Description("上报")]
|
||||
[DataFieldForeignKey("Nav_Report", "Nav_Files")]
|
||||
public Guid REPORT_ID { get; set; }
|
||||
/// <summary>
|
||||
/// 导航:上报详情
|
||||
/// </summary>
|
||||
[Description("导航:上报详情")]
|
||||
public T_OG_EVENT_REPORT Nav_Report { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 文件ID
|
||||
/// </summary>
|
||||
[Description("文件")]
|
||||
[DataFieldForeignKey("Nav_ImgFile")]
|
||||
public Guid IMG_FILE_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航属性:文件
|
||||
/// </summary>
|
||||
[Description("导航属性:文件")]
|
||||
public T_PF_IMG_FILE Nav_ImgFile { get; set; }
|
||||
}
|
||||
}
|
||||
@ -1,41 +0,0 @@
|
||||
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.OG
|
||||
{
|
||||
/// <summary>
|
||||
/// 工余事件上报及处理汇总
|
||||
/// </summary>
|
||||
[Description("工余事件上报及处理汇总")]
|
||||
public class T_OG_EVENT_REPORT_SUM : MesEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 汇总日期
|
||||
/// </summary>
|
||||
[Description("汇总日期")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
public DateTime? TIME { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 处理比例
|
||||
/// </summary>
|
||||
[Description("处理比例")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
public decimal RATIO { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 年度
|
||||
/// </summary>
|
||||
[Description("年度")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
public int SUM_YEAR { get; set; }
|
||||
}
|
||||
}
|
||||
@ -1,99 +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.OG
|
||||
{
|
||||
/// <summary>
|
||||
/// 标准化系统评审意见表
|
||||
/// </summary>
|
||||
[Description("标准化系统评审意见表")]
|
||||
public class T_OG_STANDARDIZATION_SYSTEM_REVIEW : MesEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 发起人ID
|
||||
/// </summary>
|
||||
[Description("发起人")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_User")]
|
||||
public Guid? USER_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航:评审主持人
|
||||
/// </summary>
|
||||
[Description("导航:发起人")]
|
||||
public T_FM_USER Nav_User { get; set; }
|
||||
/// <summary>
|
||||
/// 评审时间
|
||||
/// </summary>
|
||||
[Description("评审时间")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
public DateTime? REVIEW_TIME { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 评审主持人ID
|
||||
/// </summary>
|
||||
[Description("评审主持人")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_HostUser")]
|
||||
public Guid? HOST_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航:评审主持人
|
||||
/// </summary>
|
||||
[Description("导航:评审主持人")]
|
||||
public T_FM_USER Nav_HostUser { get; set; }
|
||||
/// <summary>
|
||||
/// 导航属性:评审项目
|
||||
/// </summary>
|
||||
[Description("导航属性:评审项目")]
|
||||
[FormFieldEdit]
|
||||
public ICollection<T_OG_STANDARDIZATION_REVIEW_ITEMS_REL> Nav_ReviewItemsList { get; set; }
|
||||
/// <summary>
|
||||
/// 导航属性:评审人员
|
||||
/// </summary>
|
||||
[Description("导航属性:评审人员")]
|
||||
[FormFieldEdit]
|
||||
public ICollection<T_OG_STANDARDIZATION_PERSON_REL> Nav_ReviewUserList { get; set; }
|
||||
/// <summary>
|
||||
/// 导航属性:评审结论
|
||||
/// </summary>
|
||||
[Description("导航属性:评审结论")]
|
||||
[FormFieldEdit]
|
||||
public ICollection<T_OG_STANDARDIZATION_REVIEW_RESULT_REL> Nav_ReviewResultList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航属性:行动计划
|
||||
/// </summary>
|
||||
[Description("导航属性:行动计划")]
|
||||
[FormFieldEdit]
|
||||
public ICollection<T_OG_STANDARDIZATION_ACTION_PLAN_REL> Nav_ActionPlanList { get; set; }
|
||||
/// <summary>
|
||||
/// 状态
|
||||
/// </summary>
|
||||
[Description("状态")]
|
||||
[EnumName("PFStandardStatus")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
public PFStandardStatus STATUS { get; set; }
|
||||
[Description("是否发布")]
|
||||
[DataFieldIngore]
|
||||
public string PUBLISH { get; set; }
|
||||
|
||||
[DataFieldIngore]
|
||||
public int IS_OVERTIME { get; set; }
|
||||
}
|
||||
}
|
||||
@ -1,46 +0,0 @@
|
||||
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.OG
|
||||
{
|
||||
/// <summary>
|
||||
/// 标准化系统评审项目中间表
|
||||
/// </summary>
|
||||
[Description("标准化系统评审项目")]
|
||||
public class T_OG_STANDARDIZATION_REVIEW_ITEMS_REL : MesEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 标准化系统评审意见表ID
|
||||
/// </summary>
|
||||
[Description("标准化系统评审意见表")]
|
||||
[DataFieldForeignKey("Nav_Review", "Nav_ReviewItemsList")]
|
||||
public Guid REVIEW_ID { get; set; }
|
||||
/// <summary>
|
||||
/// 导航:标准化系统评审意见表
|
||||
/// </summary>
|
||||
[Description("导航:标准化系统评审意见表")]
|
||||
public T_OG_STANDARDIZATION_SYSTEM_REVIEW Nav_Review { get; set; }
|
||||
/// <summary>
|
||||
/// 评审项目ID
|
||||
/// </summary>
|
||||
[Description("评审项目")]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_Item")]
|
||||
public Guid ITEM_ID { get; set; }
|
||||
/// <summary>
|
||||
/// 导航:评审项目
|
||||
/// </summary>
|
||||
[Description("导航:评审项目")]
|
||||
public T_OG_STANDARDIZATION_REVIEW_ITEM_ENUM Nav_Item { get; set; }
|
||||
/// <summary>
|
||||
/// 存在问题
|
||||
/// </summary>
|
||||
[Description("存在问题")]
|
||||
[FormFieldEdit]
|
||||
public string PROBLEM { get; set; }
|
||||
}
|
||||
}
|
||||
@ -1,41 +0,0 @@
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
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.OG
|
||||
{
|
||||
/// <summary>
|
||||
/// 标准化系统评审人员中间表
|
||||
/// </summary>
|
||||
[Description("标准化系统评审人员")]
|
||||
public class T_OG_STANDARDIZATION_PERSON_REL : MesEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 标准化系统评审意见表ID
|
||||
/// </summary>
|
||||
[Description("标准化系统评审意见表")]
|
||||
[DataFieldForeignKey("Nav_Review", "Nav_ReviewUserList")]
|
||||
public Guid REVIEW_ID { get; set; }
|
||||
/// <summary>
|
||||
/// 导航:标准化系统评审意见表
|
||||
/// </summary>
|
||||
[Description("导航:标准化系统评审意见表")]
|
||||
public T_OG_STANDARDIZATION_SYSTEM_REVIEW Nav_Review { get; set; }
|
||||
/// <summary>
|
||||
/// 评审人员ID
|
||||
/// </summary>
|
||||
[Description("评审人员")]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_User")]
|
||||
public Guid USER_ID { get; set; }
|
||||
/// <summary>
|
||||
/// 导航:评审人员
|
||||
/// </summary>
|
||||
[Description("导航:评审人员")]
|
||||
public T_FM_USER Nav_User { get; set; }
|
||||
}
|
||||
}
|
||||
@ -1,47 +0,0 @@
|
||||
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.OG
|
||||
{
|
||||
/// <summary>
|
||||
/// 标准化系统评审结论中间表
|
||||
/// </summary>
|
||||
[Description("标准化系统评审结论")]
|
||||
public class T_OG_STANDARDIZATION_REVIEW_RESULT_REL : MesEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 标准化系统评审意见表ID
|
||||
/// </summary>
|
||||
[Description("标准化系统评审意见表")]
|
||||
[DataFieldForeignKey("Nav_Review", "Nav_ReviewResultList")]
|
||||
public Guid REVIEW_ID { get; set; }
|
||||
/// <summary>
|
||||
/// 导航:标准化系统评审意见表
|
||||
/// </summary>
|
||||
[Description("导航:标准化系统评审意见表")]
|
||||
public T_OG_STANDARDIZATION_SYSTEM_REVIEW Nav_Review { get; set; }
|
||||
/// <summary>
|
||||
/// 评审结论ID
|
||||
/// </summary>
|
||||
[Description("评审结论")]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_Result")]
|
||||
public Guid RESULT_ID { get; set; }
|
||||
/// <summary>
|
||||
/// 导航:评审结论
|
||||
/// </summary>
|
||||
[Description("导航:评审结论")]
|
||||
public T_OG_STANDARDIZATION_REVIEW_RESULT_ENUM Nav_Result { get; set; }
|
||||
/// <summary>
|
||||
/// 结论
|
||||
/// </summary>
|
||||
[Description("结论")]
|
||||
[FormFieldEdit]
|
||||
public string RESULT { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,66 +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;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
namespace APT.MS.Domain.Entities.OG
|
||||
{
|
||||
/// <summary>
|
||||
/// 标准化系统评审行动计划中间表
|
||||
/// </summary>
|
||||
[Description("标准化系统评审行动计划")]
|
||||
public class T_OG_STANDARDIZATION_ACTION_PLAN_REL : MesEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 标准化系统评审意见表ID
|
||||
/// </summary>
|
||||
[Description("标准化系统评审意见表")]
|
||||
[DataFieldForeignKey("Nav_Review", "Nav_ActionPlanList")]
|
||||
public Guid REVIEW_ID { get; set; }
|
||||
/// <summary>
|
||||
/// 导航:标准化系统评审意见表
|
||||
/// </summary>
|
||||
[Description("导航:标准化系统评审意见表")]
|
||||
public T_OG_STANDARDIZATION_SYSTEM_REVIEW Nav_Review { get; set; }
|
||||
/// <summary>
|
||||
/// 行动计划ID
|
||||
/// </summary>
|
||||
[Description("行动计划")]
|
||||
[DataFieldForeignKey("Nav_Plan")]
|
||||
public Guid PLAN_ID { get; set; }
|
||||
/// <summary>
|
||||
/// 导航:行动计划
|
||||
/// </summary>
|
||||
[Description("导航:行动计划")]
|
||||
public T_OG_STANDARDIZATION_ACTION_PLAN_ENUM Nav_Plan { get; set; }
|
||||
/// <summary>
|
||||
/// 计划内容
|
||||
/// </summary>
|
||||
[Description("计划内容")]
|
||||
[FormFieldEdit]
|
||||
public string PLAN_CONTENT { get; set; }
|
||||
/// <summary>
|
||||
/// 执行人员ID
|
||||
/// </summary>
|
||||
[Description("执行人员")]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_User")]
|
||||
public Guid? USER_ID { get; set; }
|
||||
/// <summary>
|
||||
/// 导航:执行人员
|
||||
/// </summary>
|
||||
[Description("导航:执行人员")]
|
||||
public T_FM_USER Nav_User { get; set; }
|
||||
/// <summary>
|
||||
/// 执行情况
|
||||
/// </summary>
|
||||
[Description("执行情况")]
|
||||
[EnumName("OGStandardizationImplementation")]
|
||||
[FormFieldEdit]
|
||||
public OGStandardizationImplementation IMPLEMENTATION { get; set; }
|
||||
}
|
||||
}
|
||||
@ -1,27 +0,0 @@
|
||||
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.OG
|
||||
{
|
||||
/// <summary>
|
||||
/// 评审项目
|
||||
/// </summary>
|
||||
[Description("评审项目")]
|
||||
public class T_OG_STANDARDIZATION_REVIEW_ITEM_ENUM : MesEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 名称
|
||||
/// </summary>
|
||||
[Description("名称")]
|
||||
[DataFieldIndex(true)]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
public string NAME { get; set; }
|
||||
}
|
||||
}
|
||||
@ -1,28 +0,0 @@
|
||||
|
||||
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.OG
|
||||
{
|
||||
/// <summary>
|
||||
/// 行动计划
|
||||
/// </summary>
|
||||
[Description("行动计划")]
|
||||
public class T_OG_STANDARDIZATION_ACTION_PLAN_ENUM : MesEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 名称
|
||||
/// </summary>
|
||||
[Description("名称")]
|
||||
[DataFieldIndex(true)]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
public string NAME { get; set; }
|
||||
}
|
||||
}
|
||||
@ -1,29 +0,0 @@
|
||||
|
||||
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.OG
|
||||
{
|
||||
/// <summary>
|
||||
/// 事项类别
|
||||
/// </summary>
|
||||
[Description("事项类别")]
|
||||
public class T_OG_EMPLOYEE_ITEM_CATEGORY_ENUM : MesEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 事项类别名称
|
||||
/// </summary>
|
||||
[Description("事项类别名称")]
|
||||
[DataFieldIndex(true)]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
public string NAME { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,27 +0,0 @@
|
||||
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.OG
|
||||
{
|
||||
/// <summary>
|
||||
/// 任命人员类型
|
||||
/// </summary>
|
||||
[Description("任命人员类型")]
|
||||
public class T_OG_PERSONNEL_TYPE_ENUM : MesEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 名称
|
||||
/// </summary>
|
||||
[Description("名称")]
|
||||
[DataFieldIndex(true)]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
public string NAME { get; set; }
|
||||
}
|
||||
}
|
||||
@ -1,27 +0,0 @@
|
||||
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.OG
|
||||
{
|
||||
/// <summary>
|
||||
/// 评审结论
|
||||
/// </summary>
|
||||
[Description("评审结论")]
|
||||
public class T_OG_STANDARDIZATION_REVIEW_RESULT_ENUM : MesEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 名称
|
||||
/// </summary>
|
||||
[Description("名称")]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[FormFieldEdit]
|
||||
[DataFieldLength(50)]
|
||||
[DataFieldIndex(true)]
|
||||
public string NAME { get; set; }
|
||||
}
|
||||
}
|
||||
@ -325,8 +325,6 @@ namespace APT.FM.WebApi.Controllers.Api.FM
|
||||
T_SE_THREE_LEVEL_SAFE_EDU_CARD eduCard = null;
|
||||
List<T_FM_NOTIFICATION_TASK> sendNotice = new List<T_FM_NOTIFICATION_TASK>();
|
||||
T_SE_THREE_LEVEL_SAFE_TRAIN_RECORD next_train_record = null;
|
||||
T_OG_SAFE_PDT_SIGNED signRecord = null;
|
||||
T_OG_SAFE_PDT_SIGNED_POST signPost = null;
|
||||
T_PT_ASSESSMENT_PLAN_AUDIT_TEMP_DETAIL library = null;
|
||||
if (!isAdd.Any())
|
||||
{
|
||||
@ -368,49 +366,6 @@ namespace APT.FM.WebApi.Controllers.Api.FM
|
||||
sendNotice.Add(NotificationTaskService.InsertUserNoticeTaskModel("三级安全培训记录-" + entity.NAME + "-" + eduCard.STATUS.GetDescription(), next_train_record.ID, entity.ORG_ID, sendUser.ID, sendUser.NAME, DateTime.Now, entity.ENTRYTIME.AddMonths(1), 1, "SE042"));
|
||||
}
|
||||
#endregion
|
||||
#region 新增人员触发安全生产责任制
|
||||
var post = GetEntity<T_SC_DEPARTMENT_POST>(t => t.Nav_Dept.DEPARTMENT_ID == entity.DEPARTMENT_ID && t.DEPOST_ID == entity.Nav_Person.POST_ID, new string[] { "Nav_Dept.Nav_Post" });
|
||||
if (post != null)
|
||||
{
|
||||
var standardCreate = GetEntity<T_SC_STANDARD_CREATE>(t => t.POST_ID == post.Nav_Dept.POST_ID && t.STATUS == SCSystemEditStatus.已归档 && t.FILE_STATUS == SCSystemFileStatus.有效);
|
||||
if (standardCreate != null)
|
||||
{
|
||||
var chargeUser = GetEntity<T_FM_USER>(t => t.DEPARTMENT_ID == post.Nav_Dept.Nav_Post.DEPARTMENT_ID && t.Nav_Person.POST_ID == post.Nav_Dept.Nav_Post.DEPOST_ID && t.ENABLE_STATUS == 0);
|
||||
if (chargeUser != null)
|
||||
{
|
||||
signRecord = new T_OG_SAFE_PDT_SIGNED
|
||||
{
|
||||
ID = Guid.NewGuid(),
|
||||
ORG_ID = entity.ORG_ID,
|
||||
STATUS = (int)PFStandardStatus.Draft,
|
||||
TRIGGER_TYPE = OGPersonalSignedTriggerType.手动新增,
|
||||
STANDARD_ID = standardCreate.ID,
|
||||
FILE_CONTENT = standardCreate.FILE_CONTENT,
|
||||
DEPARTMENT_ID = entity.DEPARTMENT_ID,
|
||||
ANNUAL = DateTime.Now.Year
|
||||
};
|
||||
if (chargeUser != null)
|
||||
{
|
||||
signRecord.CHARGE_USER_ID = chargeUser.ID;
|
||||
}
|
||||
signPost = new T_OG_SAFE_PDT_SIGNED_POST
|
||||
{
|
||||
SAFE_PDT_SIGNED_ID = signRecord.ID,
|
||||
ID = Guid.NewGuid(),
|
||||
ORG_ID = entity.ORG_ID,
|
||||
USER_ID = entity.ID,
|
||||
POST_ID = entity.Nav_Person.POST_ID,
|
||||
CHARGE_USER_ID = signRecord.CHARGE_USER_ID
|
||||
};
|
||||
sendNotice.Add(NotificationTaskService.InsertUserNoticeTaskModel(DateTime.Now.ToShortDateString() + "安全生产责任制个人签订表", signRecord.ID, entity.ORG_ID, entity.ID, entity.NAME, DateTime.Now, DateTime.Now.AddDays(7), 1, "OG001_SHOWPRINT"));
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
sendNotice.Add(NotificationTaskService.InsertUserNoticeTaskModel("请为《"+ postName + "》绑定责任制岗位并上传责任状", entity.ID, entity.ORG_ID, sendUser.ID, sendUser.NAME, DateTime.Now, DateTime.Now.AddDays(7), (int)FMNoticeTypeEnum.今日提醒, "PF135"));
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
#region 增加新增人员到ops表
|
||||
@ -751,10 +706,6 @@ namespace APT.FM.WebApi.Controllers.Api.FM
|
||||
BantchAddEntityNoCommit(sendNotice);
|
||||
if (next_train_record != null)
|
||||
AddEntityNoCommit(next_train_record);
|
||||
if (signRecord != null)
|
||||
AddEntityNoCommit(signRecord);
|
||||
if (signPost != null)
|
||||
AddEntityNoCommit(signPost);
|
||||
if (library != null)
|
||||
this.UpdateEntityNoCommit(library);
|
||||
if (teamPersonIds.Any())
|
||||
|
||||
@ -16,7 +16,6 @@ using APT.MS.Domain.Entities.SC.SC;
|
||||
using APT.MS.Domain.Entities.SC.PT;
|
||||
using APT.BaseData.Domain.Enums;
|
||||
using APT.BaseData.Services.Services.FM;
|
||||
using APT.MS.Domain.Entities.SC.OG;
|
||||
using APT.MS.Domain.Entities.SC;
|
||||
using ICSharpCode.SharpZipLib.Core;
|
||||
using APT.MS.Domain.Entities.SE;
|
||||
@ -48,20 +47,6 @@ namespace APT.PP.WebApi.Controllers.Api.PP
|
||||
{
|
||||
return SafeExecute<bool>(() =>
|
||||
{
|
||||
//每年1月10日触发安全生产责任制签订表
|
||||
CheckSafePdtPersonalSigned(filter);
|
||||
//定时触发考核记录
|
||||
CheckSafeAccessRecord(filter);
|
||||
//每年6月1日征集员工意见触发给各部门级部门安全员,同一部门安全员多于1人时只需1人提交
|
||||
CheckCreateEmployeeCollection(filter);
|
||||
//回收意见
|
||||
CheckEmployeeCollectionFinish(filter);
|
||||
//工余事件触发
|
||||
CheckCreateEventGet(filter);
|
||||
//工余事件完成
|
||||
CheckEventGetFinish(filter);
|
||||
//工余事件上报及处理汇总
|
||||
CheckEventReportSum(filter);
|
||||
//创建相关方提醒
|
||||
CreateReleatedAlert(filter);
|
||||
return true;
|
||||
@ -129,592 +114,5 @@ namespace APT.PP.WebApi.Controllers.Api.PP
|
||||
});
|
||||
}
|
||||
}
|
||||
public void CheckSafePdtPersonalSigned([FromBody] KeywordFilter filter)
|
||||
{
|
||||
//检查配置是否存在,并验证是否在同一天
|
||||
var dt = DateTime.Now;
|
||||
DateTime startTime;
|
||||
var config = GetEntity<T_OG_OGCONFIG>(t => true);
|
||||
if (config == null)
|
||||
{
|
||||
startTime = new DateTime(dt.Year, 1, 10);
|
||||
}
|
||||
else if (config.SAFE_PDT_PERSONAL_SIGNED_TRIGGER_TIME != null)
|
||||
{
|
||||
startTime = (DateTime)config.SAFE_PDT_PERSONAL_SIGNED_TRIGGER_TIME;
|
||||
}
|
||||
else
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (dt.Month != startTime.Month || dt.Day != startTime.Day)
|
||||
{
|
||||
return;
|
||||
}
|
||||
var pdtCount = GetEntities<T_OG_SAFE_PDT_SIGNED>(t => t.ANNUAL == dt.Year, new BaseFilter(filter.GetOrgId())).ToList();
|
||||
if (pdtCount.Any())
|
||||
{
|
||||
return;
|
||||
}
|
||||
var pdtList = new List<T_OG_SAFE_PDT_SIGNED>();
|
||||
var pdtListDetail = new List<T_OG_SAFE_PDT_SIGNED_POST>();
|
||||
var allSendUserTitles = new List<string>();
|
||||
var allSendDataIds = new List<Guid>();
|
||||
var allSendUserIds = new List<Guid>();
|
||||
var allSendUserNames = new List<string>();
|
||||
BaseFilter baseFilter = new BaseFilter(filter.GetOrgId());
|
||||
baseFilter.Include = new string[] { "Nav_Post.Nav_Depts.Nav_Posts", "Nav_Post.Nav_Depts.Nav_Department" };
|
||||
baseFilter.IgnoreDataRule = true;
|
||||
var standardPost = GetEntities<T_SC_STANDARD_CREATE>(t => t.TYPE == SCType.安全生产责任制 && t.STATUS == SCSystemEditStatus.已归档 && t.FILE_STATUS == SCSystemFileStatus.有效, baseFilter);
|
||||
|
||||
BaseFilter userFilter = new BaseFilter(filter.GetOrgId());
|
||||
userFilter.Include = new string[] { "Nav_User.Nav_Department" };
|
||||
var allPersons = GetEntities<T_FM_PERSON>(t => t.Nav_User.ENABLE_STATUS == 0, userFilter);
|
||||
|
||||
foreach (var t1 in standardPost)
|
||||
{
|
||||
foreach (var t2 in t1.Nav_Post.Nav_Depts)
|
||||
{
|
||||
var chargeUser = GetEntity<T_FM_USER>(t => t.DEPARTMENT_ID == t1.Nav_Post.DEPARTMENT_ID && t.Nav_Person.POST_ID == t1.Nav_Post.DEPOST_ID && t.ENABLE_STATUS == 0);
|
||||
T_OG_SAFE_PDT_SIGNED record = new T_OG_SAFE_PDT_SIGNED
|
||||
{
|
||||
ID = Guid.NewGuid(),
|
||||
ORG_ID = filter.GetOrgId(),
|
||||
STATUS = (int)PFStandardStatus.Draft,
|
||||
TRIGGER_TYPE = OGPersonalSignedTriggerType.任务触发,
|
||||
STANDARD_ID = t1.ID,
|
||||
FILE_CONTENT = t1.FILE_CONTENT,
|
||||
DEPARTMENT_ID = t2.DEPARTMENT_ID,
|
||||
ANNUAL = DateTime.Now.Year
|
||||
};
|
||||
if (chargeUser != null)
|
||||
{
|
||||
record.CHARGE_USER_ID = chargeUser.ID;
|
||||
}
|
||||
pdtList.Add(record);
|
||||
var posts = t2.Nav_Posts.Select(t => t.DEPOST_ID).ToList();
|
||||
var currPostPersons = allPersons.Where(t => t.POST_ID != null && t.DEPARTMENT_ID == t2.DEPARTMENT_ID && posts.Contains((Guid)t.POST_ID));
|
||||
if (currPostPersons != null && currPostPersons.Any())
|
||||
{
|
||||
foreach (var item in currPostPersons)
|
||||
{
|
||||
T_OG_SAFE_PDT_SIGNED_POST post = new T_OG_SAFE_PDT_SIGNED_POST
|
||||
{
|
||||
SAFE_PDT_SIGNED_ID = record.ID,
|
||||
ID = Guid.NewGuid(),
|
||||
ORG_ID = filter.GetOrgId(),
|
||||
USER_ID = item.Nav_User.ID,
|
||||
POST_ID = item.POST_ID,
|
||||
CHARGE_USER_ID = record.CHARGE_USER_ID
|
||||
};
|
||||
allSendUserTitles.Add(DateTime.Now.ToShortDateString() + "安全生产责任制个人签订表");
|
||||
allSendDataIds.Add(record.ID);
|
||||
allSendUserIds.Add(item.Nav_User.ID);
|
||||
allSendUserNames.Add(item.Nav_User.NAME);
|
||||
pdtListDetail.Add(post);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
var sendNotices = NotificationTaskService.InsertUserNoticeTaskModels(allSendUserTitles, allSendDataIds, filter.GetOrgId(), allSendUserIds, allSendUserNames, DateTime.Now, DateTime.Now.AddDays(7), 1, "OG001_SHOWPRINT");
|
||||
UnifiedCommit(() =>
|
||||
{
|
||||
if (pdtList != null && pdtList.Any())
|
||||
BantchAddEntityNoCommit(pdtList);
|
||||
if (pdtListDetail != null && pdtListDetail.Any())
|
||||
BantchAddEntity(pdtListDetail);
|
||||
if (sendNotices != null && sendNotices.Any())
|
||||
BantchAddEntityNoCommit(sendNotices);
|
||||
});
|
||||
}
|
||||
|
||||
public JsonActionResult<bool> CheckSafeAccessRecord([FromBody] KeywordFilter filter)
|
||||
{
|
||||
return SafeExecute<bool>(() =>
|
||||
{
|
||||
var dtNow = DateTime.Now;
|
||||
var year = dtNow.Year;
|
||||
var month = dtNow.Month;
|
||||
var day = dtNow.Day;
|
||||
//var time = dtNow.TimeOfDay;
|
||||
var week = dtNow.DayOfWeek;
|
||||
var timeSet = this.GetEntities<T_OG_SAFE_ASSESS_PLAN_INPUT>(e => e.STATUS == OGAssessPlanInputStatus.已提交 && e.IS_DELETED == false && (e.ANNUAL == year || e.ANNUAL == (year - 1)), new BaseFilter(filter.OrgId), new string[] { "Nav_SafeAssessItem", "Nav_User", "Nav_Post" }).ToList();
|
||||
if (timeSet.Count < 1)
|
||||
return true;
|
||||
List<T_OG_SAFE_ASSESS_RECORD> monitorList = new List<T_OG_SAFE_ASSESS_RECORD>();
|
||||
List<T_OG_SAFE_ASSESS_RECORD_DETAIL> monitorDetailList = new List<T_OG_SAFE_ASSESS_RECORD_DETAIL>();
|
||||
List<T_OG_SAFE_ASSESS_RECORD_ITEM> detailContentList = new List<T_OG_SAFE_ASSESS_RECORD_ITEM>();
|
||||
List<T_FM_NOTIFICATION_TASK> notices = new List<T_FM_NOTIFICATION_TASK>();
|
||||
foreach (var item in timeSet)
|
||||
{
|
||||
if (item.Nav_User != null && item.Nav_User.APPROVE_ROLE_ID != null && item.Nav_SafeAssessItem != null && item.Nav_SafeAssessItem.Any())
|
||||
{
|
||||
//年度
|
||||
if (item.CYCLE == PTAssessmentCycleEnums.Year && item.ANNUAL == (year - 1))
|
||||
{
|
||||
if (month == 1 && day == 1)
|
||||
{
|
||||
monitorList.Add(CreateDepartMonitorNew(item, item.Nav_SafeAssessItem, PTAssessmentCycleEnums.Year, year - 1, ref notices));
|
||||
}
|
||||
}
|
||||
//上半年度
|
||||
List<int> monthTemp = new List<int>() { 1, 2, 3, 4, 5, 6 };
|
||||
if (item.CYCLE == PTAssessmentCycleEnums.HalfYear && item.ANNUAL == year && monthTemp.Contains(item.CREATE_TIME.Value.Month))
|
||||
{
|
||||
if (month == 7 && day == 1)
|
||||
{
|
||||
monitorList.Add(CreateDepartMonitorNew(item, item.Nav_SafeAssessItem, PTAssessmentCycleEnums.HalfYear, year, ref notices));
|
||||
}
|
||||
}
|
||||
//下半年度
|
||||
monthTemp = new List<int>() { 7, 8, 9, 10, 11, 12 };
|
||||
if (item.CYCLE == PTAssessmentCycleEnums.HalfYear && item.ANNUAL == (year - 1) && monthTemp.Contains(item.CREATE_TIME.Value.Month))
|
||||
{
|
||||
if (month == 1 && day == 1)
|
||||
{
|
||||
monitorList.Add(CreateDepartMonitorNew(item, item.Nav_SafeAssessItem, PTAssessmentCycleEnums.HalfYear, year - 1, ref notices));
|
||||
}
|
||||
}
|
||||
//季度(第四季度)
|
||||
monthTemp = new List<int>() { 12 };
|
||||
if (item.CYCLE == PTAssessmentCycleEnums.Quarter && item.ANNUAL == (year - 1) && monthTemp.Contains(item.CREATE_TIME.Value.Month))
|
||||
{
|
||||
if (month == 1 && day == 1)
|
||||
{
|
||||
monitorList.Add(CreateDepartMonitorNew(item, item.Nav_SafeAssessItem, PTAssessmentCycleEnums.Quarter, year - 1, ref notices));
|
||||
}
|
||||
}
|
||||
//季度(第1、2、3季度)
|
||||
if (item.CYCLE == PTAssessmentCycleEnums.Quarter && item.ANNUAL == year && monthTemp.Contains(item.CREATE_TIME.Value.Month))
|
||||
{
|
||||
if ((month == 4 && day == 1) || (month == 7 && day == 1) || (month == 10 && (day == 28 || day == 29)))
|
||||
{
|
||||
monthTemp = new List<int>() { month - 1 };
|
||||
monitorList.Add(CreateDepartMonitorNew(item, item.Nav_SafeAssessItem, PTAssessmentCycleEnums.Quarter, year, ref notices));
|
||||
}
|
||||
}
|
||||
//月度
|
||||
monthTemp = new List<int>() { month - 1 };
|
||||
if (item.CYCLE == PTAssessmentCycleEnums.Month && item.ANNUAL == year && monthTemp.Contains(item.CREATE_TIME.Value.Month))
|
||||
{
|
||||
if (month != 1 && day == 1)
|
||||
{
|
||||
monitorList.Add(CreateDepartMonitorNew(item, item.Nav_SafeAssessItem, PTAssessmentCycleEnums.Month, year, ref notices));
|
||||
}
|
||||
}
|
||||
//月度(第十二月)
|
||||
monthTemp = new List<int>() { 12 };
|
||||
if (item.CYCLE == PTAssessmentCycleEnums.Month && item.ANNUAL == (year - 1) && monthTemp.Contains(item.CREATE_TIME.Value.Month))
|
||||
{
|
||||
if (month == 1 && day == 1)
|
||||
{
|
||||
monitorList.Add(CreateDepartMonitorNew(item, item.Nav_SafeAssessItem, PTAssessmentCycleEnums.Month, year - 1, ref notices));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (monitorList != null && monitorList.Any())
|
||||
{
|
||||
monitorList.ForEach(t =>
|
||||
{
|
||||
if (t.Nav_Details != null && t.Nav_Details.Any())
|
||||
{
|
||||
t.Nav_Details.ForEach(t1 =>
|
||||
{
|
||||
if (t1.Nav_SafeAssessRecordItem != null && t1.Nav_SafeAssessRecordItem.Any())
|
||||
{
|
||||
detailContentList.AddRange(t1.Nav_SafeAssessRecordItem);
|
||||
t1.Nav_SafeAssessRecordItem = null;
|
||||
}
|
||||
});
|
||||
monitorDetailList.AddRange(t.Nav_Details);
|
||||
t.Nav_Details = null;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
UnifiedCommit(() =>
|
||||
{
|
||||
if (monitorList != null && monitorList.Any())
|
||||
BantchSaveEntityNoCommit(monitorList);
|
||||
if (monitorDetailList != null && monitorDetailList.Any())
|
||||
BantchAddEntityNoCommit(monitorDetailList);
|
||||
if (detailContentList != null && detailContentList.Any())
|
||||
BantchAddEntityNoCommit(detailContentList);
|
||||
if (notices != null && notices.Any())
|
||||
BantchAddEntityNoCommit(notices);
|
||||
});
|
||||
return true;
|
||||
});
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 触发班组监测与考核记录表
|
||||
/// </summary>
|
||||
/// <param name="item"></param>
|
||||
/// <param name="details"></param>
|
||||
/// <param name="notices"></param>
|
||||
private T_OG_SAFE_ASSESS_RECORD CreateDepartMonitorNew(T_OG_SAFE_ASSESS_PLAN_INPUT item, ICollection<T_OG_SAFE_ASSESS_ITEM> details, PTAssessmentCycleEnums cycle, int year, ref List<T_FM_NOTIFICATION_TASK> notices)
|
||||
{
|
||||
var record = new T_OG_SAFE_ASSESS_RECORD();
|
||||
record.ORG_ID = item.ORG_ID;
|
||||
record.TIME = DateTime.Now;
|
||||
record.USER_ID = item.USER_ID;
|
||||
record.DEPARTMENT_ID = item.DEPARTMENT_ID;
|
||||
record.ANNUAL = year;
|
||||
record.CYCLE = cycle;
|
||||
record.STATUS = PFStandardStatus.Draft;
|
||||
var filter = new BaseFilter(item.ORG_ID);
|
||||
filter.SelectField = new string[] { "DEPOST_ID" };
|
||||
var allPosts = GetEntities<T_SC_POST_DEPOST>(t => t.POST_ID == item.POST_ID, filter).Select(t => t.DEPOST_ID);
|
||||
var userPost = new BaseFilter(item.ORG_ID);
|
||||
userPost.Include = new string[] { "Nav_User" };
|
||||
var allUserPosts = GetEntities<T_FM_PERSON>(t => allPosts.Contains((Guid)t.POST_ID) && t.DEPARTMENT_ID == item.DEPARTMENT_ID, userPost);
|
||||
var monitorDetails = new List<T_OG_SAFE_ASSESS_RECORD_DETAIL>();
|
||||
var contents = new List<T_OG_SAFE_ASSESS_RECORD_ITEM>();
|
||||
foreach (var post in allUserPosts)
|
||||
{
|
||||
T_OG_SAFE_ASSESS_RECORD_DETAIL detail = new T_OG_SAFE_ASSESS_RECORD_DETAIL();
|
||||
detail.ORG_ID = record.ORG_ID;
|
||||
detail.POST_ID = item.POST_ID;
|
||||
detail.SAFE_ASSESS_RECORD_ID = record.ID;
|
||||
detail.USER_ID = post.Nav_User.ID;
|
||||
foreach (var d in details)
|
||||
{
|
||||
T_OG_SAFE_ASSESS_RECORD_ITEM content = new T_OG_SAFE_ASSESS_RECORD_ITEM();
|
||||
content.ORG_ID = record.ORG_ID;
|
||||
content.RECORD_DETAIL_ID = detail.ID;
|
||||
content.ROW_NO = d.ROW_NO;
|
||||
content.ASSESS_ITEM_ID = d.ID;
|
||||
contents.Add(content);
|
||||
detail.Nav_SafeAssessRecordItem = contents;
|
||||
monitorDetails.Add(detail);
|
||||
}
|
||||
}
|
||||
record.Nav_Details = monitorDetails;
|
||||
string title = "";
|
||||
if (record.CYCLE == PTAssessmentCycleEnums.Day)
|
||||
{
|
||||
title = "每天";
|
||||
}
|
||||
if (record.CYCLE == PTAssessmentCycleEnums.Week)
|
||||
{
|
||||
title = "每周";
|
||||
}
|
||||
if (record.CYCLE == PTAssessmentCycleEnums.Month)
|
||||
{
|
||||
title = DateTime.Now.Month + "月";
|
||||
}
|
||||
if (record.CYCLE == PTAssessmentCycleEnums.Quarter)
|
||||
{
|
||||
int month = DateTime.Now.Month;
|
||||
if (month >= 1 && month <= 3)
|
||||
{
|
||||
title = "第一季度";
|
||||
}
|
||||
else if (month >= 4 && month <= 6)
|
||||
{
|
||||
title = "第二季度";
|
||||
}
|
||||
else if (month >= 7 && month <= 9)
|
||||
{
|
||||
title = "第三季度";
|
||||
}
|
||||
else if (month >= 10 && month <= 12)
|
||||
{
|
||||
title = "第四季度";
|
||||
}
|
||||
}
|
||||
if (record.CYCLE == PTAssessmentCycleEnums.HalfYear)
|
||||
{
|
||||
int month = DateTime.Now.Month;
|
||||
if (month >= 1 && month <= 6)
|
||||
{
|
||||
title = "上半年";
|
||||
}
|
||||
else if (month >= 7 && month <= 12)
|
||||
{
|
||||
title = "下半年";
|
||||
}
|
||||
}
|
||||
if (record.CYCLE == PTAssessmentCycleEnums.Year)
|
||||
{
|
||||
title = "年";
|
||||
}
|
||||
record.CYCLE_NAME = DateTime.Now.Year + title;
|
||||
//发消息
|
||||
notices.Add(NotificationTaskService.InsertUserNoticeTaskModel("(" + record.CYCLE_NAME + item.Nav_Post.NAME + ")安全生产责任制考核记录", record.ID, record.ORG_ID, item.USER_ID.Value, item?.Nav_User?.NAME, DateTime.Now,
|
||||
DateTime.Now.AddHours(24), (int)FMNoticeTypeEnum.消息, "OG008"));
|
||||
return record;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//创建员工意见征集
|
||||
private void CheckCreateEmployeeCollection([FromBody] KeywordFilter filter)
|
||||
{
|
||||
var dt = DateTime.Now;
|
||||
DateTime startTime;
|
||||
var config = GetEntity<T_OG_OGCONFIG>(t => true);
|
||||
if (config == null||config.EMPLOYEE_OPINION_TIME==null)
|
||||
{
|
||||
startTime = new DateTime(dt.Year, 6, 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
startTime = (DateTime)config.EMPLOYEE_OPINION_TIME;
|
||||
}
|
||||
if (dt.Month == startTime.Month && dt.Day == startTime.Day)
|
||||
{
|
||||
var data = GetEntities<T_OG_EMPLOYEE_OPINION_COLLECTION>(t => t.START_TIME.Value.Month == startTime.Month && t.START_TIME.Value.Day == startTime.Day, new BaseFilter(filter.GetOrgId())).ToList();
|
||||
if (data.Count > 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
var users = GetEntities<T_FM_USER>(t => t.Nav_ApproveRole.NAME == "部门安全员" || t.Nav_ApproveRole.NAME == "车间安全员" || t.Nav_ApproveRole.NAME == "安环部负责人" || t.Nav_ApproveRole.NAME == "安环部安全员", new BaseFilter(filter.GetOrgId()), new string[] { "Nav_ApproveRole", "Nav_Department" }).ToList();
|
||||
List<T_OG_EMPLOYEE_OPINION_COLLECTION> employeeOpinions = new List<T_OG_EMPLOYEE_OPINION_COLLECTION>();
|
||||
var allSendUserTitles = new List<string>();
|
||||
var allSendDataIds = new List<Guid>();
|
||||
var allSendUserIds = new List<Guid>();
|
||||
var allSendUserNames = new List<string>();
|
||||
var safeUser = users.Where(t => t.Nav_ApproveRole.NAME == "部门安全员");
|
||||
if (safeUser.Count() == 0)
|
||||
{
|
||||
safeUser = users.Where(t => t.Nav_ApproveRole.NAME == "车间安全员");
|
||||
|
||||
}
|
||||
safeUser.ForEach(user =>
|
||||
{
|
||||
var ahSafe = users.FirstOrDefault(t => t.Nav_ApproveRole.NAME == "安环部负责人");
|
||||
if (ahSafe == null)
|
||||
{
|
||||
ahSafe = users.FirstOrDefault(t => t.Nav_ApproveRole.NAME == "安环部安全员");
|
||||
}
|
||||
var employeeOpinion = new T_OG_EMPLOYEE_OPINION_COLLECTION
|
||||
{
|
||||
ID = Guid.NewGuid(),
|
||||
AH_CHARGE_USER_ID = ahSafe.ID,
|
||||
DEPARTMENT_ID = user.DEPARTMENT_ID,
|
||||
USER_ID = user.ID,
|
||||
CHARGE_USER_ID = user.Nav_Department.USER_ID,
|
||||
CREATER_ID = user.ID,
|
||||
START_TIME = DateTime.Now,
|
||||
ORG_ID = filter.GetOrgId(),
|
||||
|
||||
};
|
||||
employeeOpinions.Add(employeeOpinion);
|
||||
allSendUserTitles.Add("员工意见征集");
|
||||
allSendDataIds.Add(employeeOpinion.ID);
|
||||
allSendUserIds.Add(user.ID);
|
||||
allSendUserNames.Add(user.NAME);
|
||||
});
|
||||
var sendNotices = NotificationTaskService.InsertUserNoticeTaskModels(allSendUserTitles, allSendDataIds, filter.GetOrgId(), allSendUserIds, allSendUserNames, DateTime.Now, DateTime.Now.AddDays(1), 1, "OG060");
|
||||
UnifiedCommit(() =>
|
||||
{
|
||||
if (employeeOpinions != null && employeeOpinions.Any())
|
||||
BantchAddEntityNoCommit(employeeOpinions);
|
||||
if (sendNotices != null && sendNotices.Any())
|
||||
BantchAddEntityNoCommit(sendNotices);
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
//回收员工意见
|
||||
private void CheckEmployeeCollectionFinish([FromBody] KeywordFilter filter)
|
||||
{
|
||||
var dt = DateTime.Now;
|
||||
BaseFilter baseFilter = new BaseFilter(filter.GetOrgId());
|
||||
baseFilter.IgnoreDataRule = true;
|
||||
var data = GetEntities<T_OG_EMPLOYEE_OPINION_COLLECTION>(t => t.STATUS == OGEmployeeOpinionStatus.意见征集中 && t.END_TIME.Value <= dt, baseFilter).ToList();
|
||||
if (data.Count == 0)
|
||||
return;
|
||||
var allSendUserTitles = new List<string>();
|
||||
var allSendDataIds = new List<Guid>();
|
||||
var allSendUserIds = new List<Guid>();
|
||||
var allSendUserNames = new List<string>();
|
||||
data.ForEach(it =>
|
||||
{
|
||||
it.STATUS = OGEmployeeOpinionStatus.汇总中;
|
||||
});
|
||||
data.ForEach(it =>
|
||||
{
|
||||
allSendUserTitles.Add("员工意见征集汇总");
|
||||
allSendDataIds.Add(it.ID);
|
||||
allSendUserIds.Add(it.USER_ID.Value);
|
||||
allSendUserNames.Add(GetEntity<T_FM_USER>(it.USER_ID.Value).NAME);
|
||||
});
|
||||
var sendNotices = NotificationTaskService.InsertUserNoticeTaskModels(allSendUserTitles, allSendDataIds, filter.GetOrgId(), allSendUserIds, allSendUserNames, DateTime.Now, DateTime.Now.AddDays(1), 1, "OG059_REPORT");
|
||||
|
||||
UnifiedCommit(() =>
|
||||
{
|
||||
BantchSaveEntityNoCommit(data);
|
||||
BantchAddEntityNoCommit(sendNotices);
|
||||
});
|
||||
|
||||
}
|
||||
private void CheckCreateEventGet([FromBody] KeywordFilter filter)
|
||||
{
|
||||
//3月1日、9月1日触发给安环部负责人,触发时间和频率可以在基础设置调整
|
||||
var config = GetEntity<T_OG_OGCONFIG>(t => true);
|
||||
var mm1 = 0;
|
||||
var dd1 = 0;
|
||||
var mm2 = 0;
|
||||
var dd2 = 0;
|
||||
if (config != null)
|
||||
{
|
||||
if (config.EVENT_GET_TIME != null)
|
||||
{
|
||||
mm1 = config.EVENT_GET_TIME.Value.Month;
|
||||
dd1 = config.EVENT_GET_TIME.Value.Day;
|
||||
}
|
||||
if (config.EVENT_GET_TIME_1 != null)
|
||||
{
|
||||
mm2 = config.EVENT_GET_TIME_1.Value.Month;
|
||||
dd2 = config.EVENT_GET_TIME_1.Value.Day;
|
||||
}
|
||||
}
|
||||
|
||||
var dt = DateTime.Now;
|
||||
if ((dt.Month != mm1 || dt.Day != dd1) && (dt.Month != mm2 || dt.Day != dd2))
|
||||
return;
|
||||
var mm = dt.Month;
|
||||
var dd = dt.Day;
|
||||
BaseFilter baseFilter = new BaseFilter(filter.GetOrgId());
|
||||
baseFilter.IgnoreDataRule = true;
|
||||
var data = GetEntities<T_OG_EVENT_GET>(t => t.START_TIME != null && t.START_TIME.Value.Month == mm && t.START_TIME.Value.Day == dd && t.BACK, baseFilter).ToList();
|
||||
if (data.Count > 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
var AHUser = GetEntity<T_FM_USER>(t => t.Nav_ApproveRole.NAME == "安环部负责人");
|
||||
if( AHUser == null )
|
||||
{
|
||||
AHUser = GetEntity<T_FM_USER>(t => t.Nav_ApproveRole.NAME == "安环部安全员");
|
||||
}
|
||||
|
||||
var evt = new T_OG_EVENT_GET
|
||||
{
|
||||
ID = Guid.NewGuid(),
|
||||
ORG_ID = filter.GetOrgId(),
|
||||
USER_ID = AHUser.ID,
|
||||
START_TIME = dt,
|
||||
DEPARTMENT_ID = AHUser.DEPARTMENT_ID,
|
||||
BACK = true,
|
||||
};
|
||||
|
||||
var sendNotice = NotificationTaskService.InsertUserNoticeTaskModel("工余事件征集", evt.ID, evt.ORG_ID, AHUser.ID, AHUser.NAME, DateTime.Now, DateTime.Now.AddDays(1), 1, "OG030");
|
||||
|
||||
UnifiedCommit(() =>
|
||||
{
|
||||
AddEntityNoCommit(evt);
|
||||
if (sendNotice != null)
|
||||
AddEntityNoCommit(sendNotice);
|
||||
});
|
||||
}
|
||||
public void CheckEventGetFinish([FromBody] KeywordFilter filter)
|
||||
{
|
||||
var dt = DateTime.Now;
|
||||
var reportGet = GetEntity<T_OG_EVENT_GET>(t => t.START_TIME.Value.Year == dt.Year && t.STATUS == OGEventStatus.征集中, new string[] { "Nav_Details.Nav_Items" });
|
||||
if (reportGet == null)
|
||||
return;
|
||||
var mm = reportGet.END_TIME.Value.Month;
|
||||
var dd = reportGet.END_TIME.Value.Day;
|
||||
if (dt.Month != mm || dt.Day != dd)
|
||||
return;
|
||||
var AHUser = GetEntity<T_FM_USER>(t => t.Nav_ApproveRole.NAME == "安环部负责人");
|
||||
if (AHUser == null)
|
||||
{
|
||||
AHUser = GetEntity<T_FM_USER>(t => t.Nav_ApproveRole.NAME == "安环部安全员");
|
||||
};
|
||||
reportGet.STATUS = OGEventStatus.汇总中;
|
||||
int count = 0;
|
||||
var allDetails = reportGet.Nav_Details.Where(t => t.STATUS == OGEventGetUserStatus.完成);
|
||||
foreach (var item in allDetails)
|
||||
{
|
||||
count += item.Nav_Items.Count();
|
||||
}
|
||||
reportGet.EVENT_COUNT = count;
|
||||
var sendNotice = NotificationTaskService.InsertUserNoticeTaskModel("工余事件征集汇总", reportGet.ID, filter.GetOrgId(), AHUser.ID, AHUser.NAME, DateTime.Now, DateTime.Now.AddDays(1), 0, "OG030_SHOWPRINT");
|
||||
UnifiedCommit(() =>
|
||||
{
|
||||
UpdateEntityNoCommit(reportGet);
|
||||
AddEntityNoCommit(sendNotice);
|
||||
});
|
||||
}
|
||||
public void CheckEventReportSum([FromBody] KeywordFilter filter)
|
||||
{
|
||||
var last = GetEntity<T_OG_EVENT_REPORT_SUM>(t => t.TIME < DateTime.Now.AddMonths(-1));
|
||||
if (last == null)
|
||||
{
|
||||
var total = GetCount<T_OG_EVENT_REPORT>(t => t.IS_DELETED == false, new BaseFilter(filter.GetOrgId()));
|
||||
var num = GetCount<T_OG_EVENT_REPORT>(t => t.IS_DELETED == false && t.STATUS == PFStandardStatus.Archived, new BaseFilter(filter.GetOrgId()));
|
||||
T_OG_EVENT_REPORT_SUM sum = new T_OG_EVENT_REPORT_SUM();
|
||||
if (total > 0)
|
||||
{
|
||||
sum.RATIO = num / total * 100;
|
||||
sum.SUM_YEAR = DateTime.Now.Year;
|
||||
sum.TIME = DateTime.Now;
|
||||
sum.ORG_ID = filter.GetOrgId();
|
||||
UnifiedCommit(() =>
|
||||
{
|
||||
AddEntityNoCommit(sum);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
//检查相关方是否证件到期
|
||||
private void CheckReleateExpire(KeywordFilter filter)
|
||||
{
|
||||
var baseFilter = new BaseFilter(filter.GetOrgId());
|
||||
baseFilter.Include = new string[] { "Nav_User" };
|
||||
var allTrain = GetEntities<T_SE_RENEWAL_TRAIN>(t => t.IS_DELETED == false, baseFilter);
|
||||
var overTime = allTrain.Where(t => t.REVIEW_DATE == DateTime.Now.Date.AddMonths(3));
|
||||
//overTime = allTrain.Where(t => t.REVIEW_DATE == DateTime.Parse("2023-05-02").AddMonths(3));
|
||||
var equalTime = allTrain.Where(t => t.REVIEW_DATE == DateTime.Now.Date);
|
||||
var AHUser = GetEntity<T_FM_USER>(t => t.Nav_ApproveRole.NAME == "安环部安全员" && t.ENABLE_STATUS == 0);
|
||||
if (AHUser != null)
|
||||
{
|
||||
var allSendUserTitles = new List<string>();
|
||||
var allSendDataIds = new List<Guid>();
|
||||
var allSendUserIds = new List<Guid>();
|
||||
var allSendUserNames = new List<string>();
|
||||
if (overTime.Any())
|
||||
{
|
||||
foreach (var item in overTime)
|
||||
{
|
||||
allSendUserTitles.Add(item.Nav_User.NAME + item.Nav_User.CODE + "《" + item.CERTIFICATE_NAME + "》证书将于" + item.REVIEW_DATE.ToShortDateString() + "到期复审,请提前安排委外培训");
|
||||
allSendDataIds.Add(item.ID);
|
||||
allSendUserIds.Add(item.USER_ID);
|
||||
allSendUserNames.Add(item.Nav_User.NAME);
|
||||
|
||||
allSendUserTitles.Add(item.Nav_User.NAME + item.Nav_User.CODE + "《" + item.CERTIFICATE_NAME + "》证书将于" + item.REVIEW_DATE.ToShortDateString() + "到期复审,请提前安排委外培训");
|
||||
allSendDataIds.Add(item.ID);
|
||||
allSendUserIds.Add(AHUser.ID);
|
||||
allSendUserNames.Add(AHUser.NAME);
|
||||
}
|
||||
}
|
||||
if (equalTime.Any())
|
||||
{
|
||||
foreach (var item in equalTime)
|
||||
{
|
||||
allSendUserTitles.Add(item.Nav_User.NAME + item.Nav_User.CODE + "《" + item.CERTIFICATE_NAME + "》证书于" + item.REVIEW_DATE.ToShortDateString() + "到期,请到换证培训更新复审日期!");
|
||||
allSendDataIds.Add(item.ID);
|
||||
allSendUserIds.Add(AHUser.ID);
|
||||
allSendUserNames.Add(AHUser.NAME);
|
||||
}
|
||||
}
|
||||
if (allSendDataIds.Any())
|
||||
{
|
||||
var sendNotices = NotificationTaskService.InsertUserNoticeTaskModels(allSendUserTitles, allSendDataIds, filter.GetOrgId(), allSendUserIds, allSendUserNames, DateTime.Now, DateTime.Now.AddDays(1).Date, (int)FMNoticeTypeEnum.今日提醒, "PF135");
|
||||
UnifiedCommit(() =>
|
||||
{
|
||||
if (sendNotices.Any())
|
||||
BantchAddEntityNoCommit(sendNotices);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,316 +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.BaseData.Domain.IServices;
|
||||
using APT.Infrastructure.Core;
|
||||
using APT.MS.Domain.Entities.OG;
|
||||
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.OG
|
||||
{
|
||||
[Route("api/OG/OGSafePdtSigned")]
|
||||
public class OGSafePdtSignedController : AuthorizeApiController<T_OG_SAFE_PDT_SIGNED>
|
||||
{
|
||||
IFMNotificationTaskService NotificationTaskService { get; set; }
|
||||
public OGSafePdtSignedController(IFMNotificationTaskService notificationTaskService, IPFCodeRuleService codeRuleService)
|
||||
{
|
||||
NotificationTaskService = notificationTaskService;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 更新
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("FullUpdate")]
|
||||
public JsonActionResult<bool> FullUpdate([FromBody] T_OG_SAFE_PDT_SIGNED entity)
|
||||
{
|
||||
return SafeExecute<bool>(() =>
|
||||
{
|
||||
|
||||
var Nav_SafePdtSignedPost = entity.Nav_SafePdtSignedPost;
|
||||
entity.Nav_SafePdtSignedPost = null;
|
||||
List<T_FM_NOTIFICATION_TASK> notices = new List<T_FM_NOTIFICATION_TASK>();
|
||||
if (entity.PUBLISH != null && entity.PUBLISH.Equals("SaveAndNotify"))
|
||||
{
|
||||
if (entity.STATUS != PFStandardStatus.Draft)
|
||||
{
|
||||
throw new Exception("已发送!");
|
||||
}
|
||||
entity.STATUS = PFStandardStatus.Sign;
|
||||
entity.ANNUAL = DateTime.Now.Year;
|
||||
var allSendUserTitles = new List<string>();
|
||||
var allSendDataIds = new List<Guid>();
|
||||
var allSendUserIds = new List<Guid>();
|
||||
var allSendUserNames = new List<string>();
|
||||
foreach (var user in Nav_SafePdtSignedPost.Where(t => t.IS_DELETED == false))
|
||||
{
|
||||
if (user.CHARGE_USER_ID == Guid.Empty || user.CHARGE_USER_ID == null)
|
||||
{
|
||||
throw new Exception("签订人员负责人不能为空!");
|
||||
}
|
||||
allSendUserTitles.Add(DateTime.Now.ToShortDateString() + "安全生产责任制个人签订表");
|
||||
allSendDataIds.Add(entity.ID);
|
||||
allSendUserIds.Add(user.ID);
|
||||
allSendUserNames.Add("");
|
||||
}
|
||||
notices = NotificationTaskService.InsertUserNoticeTaskModels(allSendUserTitles, allSendDataIds, entity.ORG_ID, allSendUserIds, allSendUserNames, DateTime.Now, DateTime.Now.AddDays(7), 1, "OG001_SHOWPRINT");
|
||||
}
|
||||
UnifiedCommit(() =>
|
||||
{
|
||||
UpdateEntityNoCommit(entity);
|
||||
if (Nav_SafePdtSignedPost != null && Nav_SafePdtSignedPost.Any())
|
||||
BantchSaveEntityNoCommit(Nav_SafePdtSignedPost);
|
||||
if (notices != null && notices.Any())
|
||||
BantchAddEntityNoCommit(notices);
|
||||
});
|
||||
return true;
|
||||
});
|
||||
}
|
||||
/// <summary>
|
||||
/// 安环部负责人审阅
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Agree")]
|
||||
public JsonActionResult<bool> Agree([FromBody] T_OG_SAFE_PDT_SIGNED entity)
|
||||
{
|
||||
return SafeExecute(() =>
|
||||
{
|
||||
|
||||
var signeds = GetEntities<T_OG_SAFE_PDT_SIGNED>(t => t.TRIGGER_TYPE == OGPersonalSignedTriggerType.任务触发 &&
|
||||
t.STATUS == PFStandardStatus.Sign &&
|
||||
t.ANNUAL == DateTime.Now.Year,
|
||||
new BaseFilter(entity.ORG_ID)).ToList();
|
||||
if (signeds == null || signeds.Count == 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
var signedPosts = GetEntities<T_OG_SAFE_PDT_SIGNED_POST>(t => t.Nav_SafePdtSigned.TRIGGER_TYPE == OGPersonalSignedTriggerType.任务触发 &&
|
||||
t.Nav_SafePdtSigned.STATUS == PFStandardStatus.Sign &&
|
||||
t.Nav_SafePdtSigned.ANNUAL == DateTime.Now.Year,
|
||||
new BaseFilter(entity.ORG_ID),
|
||||
new string[] { "Nav_SCPost", "Nav_ChargeUser.Nav_Department" }).ToList();
|
||||
signeds.ForEach(signed =>
|
||||
{
|
||||
signed.STATUS = PFStandardStatus.Archived;
|
||||
});
|
||||
var finishNotice = NotificationTaskService.FOGetTaskFinishModel(entity.TaskID, entity.ID);
|
||||
var checkList = new List<T_OG_SAFE_PDT_ASSESS_PLAN_CHECK>();
|
||||
var allSendUserTitles = new List<string>();
|
||||
var allSendDataIds = new List<Guid>();
|
||||
var allSendUserIds = new List<Guid>();
|
||||
var allSendUserNames = new List<string>();
|
||||
foreach (var item in signedPosts)
|
||||
{
|
||||
var isExist = checkList.Where(t => t.USER_ID == item.CHARGE_USER_ID);
|
||||
if (!isExist.Any())
|
||||
{
|
||||
T_OG_SAFE_PDT_ASSESS_PLAN_CHECK check = new T_OG_SAFE_PDT_ASSESS_PLAN_CHECK
|
||||
{
|
||||
ID = Guid.NewGuid(),
|
||||
TIME = DateTime.Now,
|
||||
DEPARTMENT_ID = item.Nav_ChargeUser.DEPARTMENT_ID,
|
||||
USER_ID = item.CHARGE_USER_ID,
|
||||
LEVEL = (FMDepartmentType)item.Nav_ChargeUser.Nav_Department.DEPARTMENT_TYPE,
|
||||
STATUS = PFStandardStatus.Draft,
|
||||
ORG_ID = item.ORG_ID,
|
||||
ANNUAL = DateTime.Now.Year,
|
||||
};
|
||||
checkList.Add(check);
|
||||
allSendUserTitles.Add("安全生产责任制考核方案审核");
|
||||
allSendDataIds.Add(check.ID);
|
||||
allSendUserIds.Add((Guid)item.CHARGE_USER_ID);
|
||||
allSendUserNames.Add(item.Nav_ChargeUser.NAME);
|
||||
}
|
||||
}
|
||||
var sendNotices = NotificationTaskService.InsertUserNoticeTaskModels(allSendUserTitles, allSendDataIds, entity.ORG_ID.Value, allSendUserIds, allSendUserNames, DateTime.Now, DateTime.Now.AddDays(1), 1, "OG004");
|
||||
UnifiedCommit(() =>
|
||||
{
|
||||
BantchSaveEntityNoCommit(signeds);
|
||||
if (finishNotice != null)
|
||||
UpdateEntityNoCommit(finishNotice);
|
||||
if (checkList.Any())
|
||||
BantchSaveEntityNoCommit(checkList);
|
||||
if (sendNotices.Any())
|
||||
BantchSaveEntityNoCommit(sendNotices);
|
||||
});
|
||||
return true;
|
||||
});
|
||||
}
|
||||
public class SafePdtSignedModel
|
||||
{
|
||||
public List<T_OG_SAFE_PDT_SIGNED> Nav_Signed { get; set; }
|
||||
|
||||
public int SafePdtSignedStatus { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 获得单条实体数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("FullGet")]
|
||||
public JsonActionResult<T_OG_SAFE_PDT_SIGNED> FullGet([FromBody] KeywordFilter filter)
|
||||
{
|
||||
JsonActionResult<T_OG_SAFE_PDT_SIGNED> jsonActionResult = new JsonActionResult<T_OG_SAFE_PDT_SIGNED>();
|
||||
var data = WitEntity(null, filter);
|
||||
if (data.Data == null)
|
||||
{
|
||||
var id = filter.FilterGroup.Rules.FirstOrDefault(t => t.Field == "ID").Value.ToString();
|
||||
var signpost = GetEntity<T_OG_SAFE_PDT_SIGNED_POST>(id);
|
||||
filter.FilterGroup.Rules.FirstOrDefault(t => t.Field == "ID").Value = signpost.SAFE_PDT_SIGNED_ID;
|
||||
data = WitEntity(null, filter);
|
||||
T_OG_SAFE_PDT_SIGNED model = data.Data;
|
||||
jsonActionResult.Data = model;
|
||||
}
|
||||
else
|
||||
{
|
||||
T_OG_SAFE_PDT_SIGNED model = data.Data;
|
||||
if (model != null && model.Nav_SafePdtSignedPost != null && model.Nav_SafePdtSignedPost.Count() > 0)
|
||||
{
|
||||
var Nav_SafePdtSignedPost = model.Nav_SafePdtSignedPost;
|
||||
var user_id = APT.Infrastructure.Api.AppContext.CurrentSession.UserID;
|
||||
var isChargeUser = Nav_SafePdtSignedPost.FirstOrDefault(t => t.USER_ID == user_id);
|
||||
Guid? charge_user = Guid.Empty;
|
||||
if (isChargeUser == null)
|
||||
{
|
||||
charge_user = user_id;
|
||||
}
|
||||
else
|
||||
{
|
||||
charge_user = isChargeUser.CHARGE_USER_ID;
|
||||
}
|
||||
model.Nav_SafePdtSignedPost = Nav_SafePdtSignedPost.Where(t => t.CHARGE_USER_ID == charge_user).ToList();
|
||||
}
|
||||
jsonActionResult.Data = model;
|
||||
}
|
||||
return jsonActionResult;
|
||||
}
|
||||
/// <summary>
|
||||
/// 责任人签订
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("UserAgree")]
|
||||
public JsonActionResult<bool> UserAgree([FromBody] T_OG_SAFE_PDT_SIGNED entity)
|
||||
{
|
||||
return SafeExecute<bool>(() =>
|
||||
{
|
||||
var orgId = APT.Infrastructure.Api.AppContext.CurrentSession.OrgId;
|
||||
var userID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID;
|
||||
var baseFilter = new BaseFilter(orgId);
|
||||
baseFilter.Include = new string[] { "Nav_ChargeUser" };
|
||||
var signedPosts = GetEntities<T_OG_SAFE_PDT_SIGNED_POST>(t => t.SAFE_PDT_SIGNED_ID == entity.ID, baseFilter);
|
||||
var currUser = signedPosts.Where(t => t.USER_ID == userID);
|
||||
T_FM_NOTIFICATION_TASK finishNotice = null;
|
||||
T_FM_NOTIFICATION_TASK sendNotice = null;
|
||||
T_OG_SAFE_PDT_SIGNED signed = null;
|
||||
if (currUser != null && currUser.Any())
|
||||
{
|
||||
signed = GetEntity<T_OG_SAFE_PDT_SIGNED>(entity.ID);
|
||||
signed.STATUS = PFStandardStatus.Sign;
|
||||
var chargeUser = currUser.FirstOrDefault().CHARGE_USER_ID;
|
||||
if (chargeUser == null)
|
||||
{
|
||||
var tempUser = GetEntity<T_FM_USER>((Guid)currUser.FirstOrDefault().USER_ID);
|
||||
if (tempUser != null)
|
||||
{
|
||||
var tempDepartment = GetEntity<T_FM_DEPARTMENT>((Guid)tempUser.DEPARTMENT_ID);
|
||||
if (tempDepartment != null)
|
||||
{
|
||||
chargeUser = tempDepartment.USER_ID;
|
||||
}
|
||||
}
|
||||
}
|
||||
foreach(var item in currUser)
|
||||
{
|
||||
item.CHARGE_USER_ID= chargeUser;
|
||||
}
|
||||
foreach (var signedPost in currUser)
|
||||
{
|
||||
signedPost.DEAL_STATUS = PdtSignStatus.已签订;
|
||||
signedPost.SIGNED_TIME = DateTime.Now;
|
||||
}
|
||||
var leftuser = signedPosts.Where(t => t.CHARGE_USER_ID == chargeUser && t.DEAL_STATUS == PdtSignStatus.未签订);
|
||||
if (leftuser.Count() == 0)
|
||||
{
|
||||
sendNotice = NotificationTaskService.InsertUserNoticeTaskModel("安全生产责任制签订-负责人签订", entity.ID, orgId, (Guid)chargeUser, "", DateTime.Now, DateTime.Now.AddDays(1), 0, "OG001_SHOWPRINT");
|
||||
}
|
||||
}
|
||||
if (entity.TaskID != Guid.Empty)
|
||||
{
|
||||
finishNotice = NotificationTaskService.FOGetTaskFinishModel(entity.TaskID, entity.ID);
|
||||
}
|
||||
this.UnifiedCommit(() =>
|
||||
{
|
||||
if (finishNotice != null)
|
||||
UpdateEntityNoCommit(finishNotice);
|
||||
if (currUser != null && currUser.Any())
|
||||
BantchUpdateEntityNoCommit(currUser);
|
||||
if (sendNotice != null)
|
||||
AddEntityNoCommit(sendNotice);
|
||||
if (signed != null)
|
||||
UpdateEntityNoCommit(signed);
|
||||
|
||||
});
|
||||
return true;
|
||||
});
|
||||
}
|
||||
/// <summary>
|
||||
/// 负责人签订
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("ChargeUserAgree")]
|
||||
public JsonActionResult<bool> ChargeUserAgree([FromBody] T_OG_SAFE_PDT_SIGNED entity)
|
||||
{
|
||||
return SafeExecute<bool>(() =>
|
||||
{
|
||||
var orgId = APT.Infrastructure.Api.AppContext.CurrentSession.OrgId;
|
||||
var userID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID;
|
||||
T_FM_NOTIFICATION_TASK finishNotice = null;
|
||||
T_FM_NOTIFICATION_TASK sendNotice = null;
|
||||
T_OG_SAFE_PDT_SIGNED signed = null;
|
||||
var signedPost = GetEntities<T_OG_SAFE_PDT_SIGNED_POST>(t => t.Nav_SafePdtSigned.ANNUAL == DateTime.Now.Year && t.SAFE_PDT_SIGNED_ID == entity.ID && t.CHARGE_USER_ID == userID && t.CHARGE_DEAL_STATUS == PdtSignStatus.未签订, new BaseFilter(orgId));
|
||||
if (signedPost != null && signedPost.Any())
|
||||
{
|
||||
foreach (var item in signedPost)
|
||||
{
|
||||
item.CHARGE_DEAL_STATUS = PdtSignStatus.已签订;
|
||||
item.CHARGE_SIGNED_TIME = DateTime.Now;
|
||||
}
|
||||
signed = GetEntity<T_OG_SAFE_PDT_SIGNED>(entity.ID);
|
||||
signed.STATUS = PFStandardStatus.Archived;
|
||||
//20230727去掉审核环节
|
||||
//var AHUser = GetEntity<T_FM_USER>(t => t.Nav_ApproveRole.NAME == "安环部负责人" && t.ENABLE_STATUS == 0);
|
||||
// sendNotice = NotificationTaskService.InsertUserNoticeTaskModel("安全生产责任制签订-审核", entity.ID, orgId, AHUser.ID, AHUser.NAME, DateTime.Now, DateTime.Now.AddDays(1), 0, "OG001_REPORT");
|
||||
}
|
||||
if (entity.TaskID != Guid.Empty)
|
||||
{
|
||||
finishNotice = NotificationTaskService.FOGetTaskFinishModel(entity.TaskID, entity.ID);
|
||||
}
|
||||
this.UnifiedCommit(() =>
|
||||
{
|
||||
if (finishNotice != null)
|
||||
UpdateEntityNoCommit(finishNotice);
|
||||
if (signedPost != null)
|
||||
BantchUpdateEntityNoCommit(signedPost);
|
||||
if (sendNotice != null)
|
||||
AddEntityNoCommit(sendNotice);
|
||||
if (signed != null)
|
||||
UpdateEntityNoCommit(signed);
|
||||
});
|
||||
return true;
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,355 +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.OG;
|
||||
using APT.MS.Domain.Entities.SC;
|
||||
using APT.MS.Domain.Entities.SC.OG;
|
||||
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.OG
|
||||
{
|
||||
[Route("api/OG/OGSafePdtAssessPlanCheck")]
|
||||
public class OGSafePdtAssessPlanCheckController : AuthorizeApiController<T_OG_SAFE_PDT_ASSESS_PLAN_CHECK>
|
||||
{
|
||||
IPFCodeRuleService CodeRuleService { get; set; }
|
||||
IFMNotificationTaskService NotificationTaskService { get; set; }
|
||||
IFMFlowPermitService MFlowPermitService { get; set; }
|
||||
IPFApproveCallBackService ApproveCallBackService { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="notificationTaskService"></param>
|
||||
public OGSafePdtAssessPlanCheckController(IPFCodeRuleService codeRuleService, IFMNotificationTaskService notificationTaskService, IFMFlowPermitService mFlowPermitService, IPFApproveCallBackService approveCallBackService)
|
||||
{
|
||||
CodeRuleService = codeRuleService;
|
||||
NotificationTaskService = notificationTaskService;
|
||||
MFlowPermitService = mFlowPermitService;
|
||||
ApproveCallBackService = approveCallBackService;
|
||||
}
|
||||
/// <summary>
|
||||
/// 新增/编辑
|
||||
/// </summary>
|
||||
/// <param name="entity"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("FullUpdate")]
|
||||
public JsonActionResult<bool> FullUpdate([FromBody] T_OG_SAFE_PDT_ASSESS_PLAN_CHECK entity)
|
||||
{
|
||||
return SafeExecute(() =>
|
||||
{
|
||||
var details = entity.Nav_Details;
|
||||
var files = entity.Nav_Files;
|
||||
if (entity.ANNUAL == null || entity.ANNUAL == 0)
|
||||
{
|
||||
entity.ANNUAL = DateTime.Now.Year;
|
||||
}
|
||||
entity.USER_ID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID;
|
||||
var department = this.GetEntity<T_FM_USER>(t => t.ID == entity.USER_ID.Value, new string[] { "Nav_Department", "Nav_Person.Nav_Post" });
|
||||
entity.DEPARTMENT_ID = department?.DEPARTMENT_ID;
|
||||
entity.TIME = DateTime.Now;
|
||||
List<T_FM_NOTIFICATION_TASK> notices = new List<T_FM_NOTIFICATION_TASK>();
|
||||
List<T_OG_SAFE_PDT_ASSESS_PLAN_CHECK_DETAIL_CONTENT> contents = new List<T_OG_SAFE_PDT_ASSESS_PLAN_CHECK_DETAIL_CONTENT>();
|
||||
T_FM_NOTIFICATION_TASK task = null;
|
||||
List<T_OG_SAFE_ASSESS_PLAN_INPUT> newDetailTemps = new List<T_OG_SAFE_ASSESS_PLAN_INPUT>();
|
||||
List<T_OG_SAFE_ASSESS_ITEM> newContentTemps = new List<T_OG_SAFE_ASSESS_ITEM>();
|
||||
List<Guid> deleteIds = new List<Guid>();
|
||||
|
||||
if (entity.PUBLISH != null && entity.PUBLISH.Equals("SaveAndNotify"))
|
||||
{
|
||||
entity.STATUS = PFStandardStatus.Approving;
|
||||
|
||||
if (details != null && details.Any())
|
||||
{
|
||||
//回写考核方案导入表
|
||||
var postBack = details.Select(t => t.POST_ID).Distinct().ToList();
|
||||
var tempDetails = this.GetEntities<T_OG_SAFE_ASSESS_PLAN_INPUT>(t => t.DEPARTMENT_ID == entity.DEPARTMENT_ID && postBack.Contains(t.POST_ID.Value) && t.ANNUAL == entity.ANNUAL, new BaseFilter(entity.ORG_ID), new string[] { "Nav_SafeAssessItem" }).ToList();
|
||||
foreach (var t in details)
|
||||
{
|
||||
t.ANNUAL = entity.ANNUAL;
|
||||
if (t.CYCLE == 0)
|
||||
this.ThrowError("040006");
|
||||
var first = tempDetails.FirstOrDefault(f => f.POST_ID == t.POST_ID && f.ANNUAL == t.ANNUAL);
|
||||
if (first == null)
|
||||
{
|
||||
T_OG_SAFE_ASSESS_PLAN_INPUT newDetailTemp = new T_OG_SAFE_ASSESS_PLAN_INPUT();
|
||||
newDetailTemp.NAME = entity.NAME;
|
||||
newDetailTemp.DEPARTMENT_ID =entity.DEPARTMENT_ID;
|
||||
newDetailTemp.USER_ID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID;
|
||||
newDetailTemp.POST_ID = t.POST_ID;
|
||||
newDetailTemp.CYCLE = t.CYCLE;
|
||||
newDetailTemp.CODE = DateTime.Now.ToString("yyyyMMddHHmmss");
|
||||
newDetailTemp.ANNUAL = t.ANNUAL;
|
||||
newDetailTemp.ORG_ID = t.ORG_ID;
|
||||
newDetailTemp.POST_ID = t.POST_ID;
|
||||
newDetailTemp.CHECK_ID = entity.ID;
|
||||
newDetailTemps.Add(newDetailTemp);
|
||||
if (t.Nav_Contents != null && t.Nav_Contents.Any())
|
||||
{
|
||||
var sum = t.Nav_Contents.Where(p => !p.IS_DELETED).Sum(x => x.SCORE);
|
||||
if (sum != 100)
|
||||
throw new Exception("考试项目标准分总分必须为100");
|
||||
t.Nav_Contents.ForEach(t1 =>
|
||||
{
|
||||
t1.ORG_ID = entity.ORG_ID;
|
||||
t1.CHECK_DETAIL_ID = t.ID;
|
||||
contents.Add(t1);
|
||||
T_OG_SAFE_ASSESS_ITEM newContent = new T_OG_SAFE_ASSESS_ITEM();
|
||||
newContent.ORG_ID = entity.ORG_ID;
|
||||
newContent.ASSESS_PLAN_INPUT_ID = newDetailTemp.ID;
|
||||
newContent.SCORE = t1.SCORE;
|
||||
newContent.METHOD = t1.METHOD;
|
||||
newContent.NAME = t1.NAME;
|
||||
newContentTemps.Add(newContent);
|
||||
});
|
||||
t.Nav_Contents = null;
|
||||
}
|
||||
else
|
||||
throw new Exception("考试项目未全部填写");
|
||||
}
|
||||
else
|
||||
{
|
||||
var ids = first.Nav_SafeAssessItem.Select(p => p.ID).ToList();
|
||||
deleteIds.AddRange(ids);
|
||||
if (t.Nav_Contents != null && t.Nav_Contents.Any())
|
||||
{
|
||||
var sum = t.Nav_Contents.Where(p => !p.IS_DELETED).Sum(x => x.SCORE);
|
||||
if (sum != 100)
|
||||
throw new Exception("考试项目标准分总分必须为100");
|
||||
t.Nav_Contents.ForEach(t1 =>
|
||||
{
|
||||
t1.ORG_ID = entity.ORG_ID;
|
||||
t1.CHECK_DETAIL_ID = t.ID;
|
||||
contents.Add(t1);
|
||||
T_OG_SAFE_ASSESS_ITEM newContent = new T_OG_SAFE_ASSESS_ITEM();
|
||||
newContent.ORG_ID = entity.ORG_ID;
|
||||
newContent.ASSESS_PLAN_INPUT_ID = first.ID;
|
||||
newContent.SCORE = t1.SCORE;
|
||||
newContent.METHOD = t1.METHOD;
|
||||
newContent.NAME = t1.NAME;
|
||||
newContentTemps.Add(newContent);
|
||||
});
|
||||
t.Nav_Contents = null;
|
||||
}
|
||||
else
|
||||
throw new Exception("考试项目未全部填写");
|
||||
}
|
||||
};
|
||||
}
|
||||
entity.STATUS = PFStandardStatus.Approving;
|
||||
entity.Nav_Details = null;
|
||||
//取审批流水码
|
||||
var sysFilter = new SystemCodeFilter();
|
||||
sysFilter.CodeType = (int)PFCodeRuleType.审批流编码;
|
||||
sysFilter.Count = 1;
|
||||
sysFilter.OrgId = entity.ORG_ID;
|
||||
var codes = CodeRuleService.NewGenSerial(sysFilter);
|
||||
var serialCode = codes.Split(new char[] { ',' });
|
||||
var param = Enum.GetName(typeof(FMDepartmentType), entity.LEVEL);
|
||||
MFlowPermitService.InsertApprove(serialCode[0], "OG004", param, entity.ID, "OG003_SHOWPRINT", entity.TaskID, true, () =>
|
||||
{
|
||||
if (entity != null)
|
||||
this.UpdateEntityNoCommit(entity);
|
||||
if (details != null && details.Any())
|
||||
this.BantchSaveEntityNoCommit(details);
|
||||
if (contents != null && contents.Any())
|
||||
this.BantchSaveEntityNoCommit(contents);
|
||||
if (newDetailTemps != null && newDetailTemps.Any())
|
||||
this.BantchSaveEntityNoCommit(newDetailTemps);
|
||||
if (deleteIds != null && deleteIds.Any())
|
||||
this.BantchDeleteEntityNoCommit<T_OG_SAFE_ASSESS_ITEM>(deleteIds);
|
||||
if (newContentTemps != null && newContentTemps.Any())
|
||||
this.BantchSaveEntityNoCommit(newContentTemps);
|
||||
if (task != null)
|
||||
this.UpdateEntityNoCommit(task);
|
||||
if (notices != null && notices.Any())
|
||||
this.BantchSaveEntityNoCommit(notices);
|
||||
if (files != null && files.Any())
|
||||
this.BantchSaveEntityNoCommit(files);
|
||||
}, null, null, null, null, null, "OG003_SHOWPRINT", null);
|
||||
return true;
|
||||
}
|
||||
entity.Nav_Details = null;
|
||||
UnifiedCommit(() =>
|
||||
{
|
||||
if (entity != null)
|
||||
this.UpdateEntityNoCommit(entity);
|
||||
if (details != null && details.Any())
|
||||
this.BantchSaveEntityNoCommit(details);
|
||||
if (contents != null && contents.Any())
|
||||
this.BantchSaveEntityNoCommit(contents);
|
||||
if (newDetailTemps != null && newDetailTemps.Any())
|
||||
this.BantchSaveEntityNoCommit(newDetailTemps);
|
||||
if (deleteIds != null && deleteIds.Any())
|
||||
this.BantchDeleteEntityNoCommit<T_OG_SAFE_ASSESS_ITEM>(deleteIds);
|
||||
if (newContentTemps != null && newContentTemps.Any())
|
||||
this.BantchSaveEntityNoCommit(newContentTemps);
|
||||
if (task != null)
|
||||
this.UpdateEntityNoCommit(task);
|
||||
if (notices != null && notices.Any())
|
||||
this.BantchSaveEntityNoCommit(notices);
|
||||
});
|
||||
return true;
|
||||
});
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 已阅
|
||||
/// </summary>
|
||||
/// <param name="entity"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("IdentityUpdate")]
|
||||
public JsonActionResult<bool> IdentityUpdate([FromBody] T_OG_SAFE_PDT_ASSESS_PLAN_CHECK entity)
|
||||
{
|
||||
return SafeExecute(() =>
|
||||
{
|
||||
var audit = this.GetEntity<T_OG_SAFE_PDT_ASSESS_PLAN_CHECK>(entity.ID);
|
||||
//发起车间、班组、个人目标与指标
|
||||
T_OG_SAFE_PDT_ASSESS_PLAN_CHECK auditDepart = null;
|
||||
var loginUserId = APT.Infrastructure.Api.AppContext.CurrentSession.UserID;
|
||||
var loginUser = this.GetEntity<T_FM_USER>(t => t.ID == loginUserId.Value, "Nav_Department", "Nav_ApproveRole");
|
||||
var name = ""; var type = 0; var departmentType = FMDepartmentType.公司;
|
||||
switch (audit.LEVEL)
|
||||
{
|
||||
case FMDepartmentType.公司:
|
||||
departmentType = FMDepartmentType.部门;
|
||||
name = "部门"; type = 1;
|
||||
break;
|
||||
case FMDepartmentType.部门:
|
||||
departmentType = FMDepartmentType.车间;
|
||||
name = "车间"; type = 2;
|
||||
break;
|
||||
case FMDepartmentType.车间:
|
||||
departmentType = FMDepartmentType.班组;
|
||||
name = "班组";
|
||||
break;
|
||||
case FMDepartmentType.班组:
|
||||
name = "";
|
||||
break;
|
||||
default:
|
||||
name = "";
|
||||
break;
|
||||
}
|
||||
List<T_OG_SAFE_PDT_ASSESS_PLAN_CHECK_DETAIL> auditDetails = new List<T_OG_SAFE_PDT_ASSESS_PLAN_CHECK_DETAIL>();
|
||||
List<T_OG_SAFE_PDT_ASSESS_PLAN_CHECK_DETAIL_CONTENT> contents = new List<T_OG_SAFE_PDT_ASSESS_PLAN_CHECK_DETAIL_CONTENT>();
|
||||
T_FM_NOTIFICATION_TASK notice = null;
|
||||
if ((int)audit.LEVEL != loginUser.Nav_Department.DEPARTMENT_TYPE || ((int)audit.LEVEL == loginUser.Nav_Department.DEPARTMENT_TYPE && audit.LEVEL == FMDepartmentType.班组))
|
||||
{
|
||||
if (name == "")
|
||||
{
|
||||
auditDepart = null;
|
||||
audit.STATUS = PFStandardStatus.Archived;
|
||||
}
|
||||
else
|
||||
{
|
||||
auditDepart = new T_OG_SAFE_PDT_ASSESS_PLAN_CHECK();
|
||||
auditDepart.STATUS = PFStandardStatus.Draft;
|
||||
auditDepart.ORG_ID = audit.ORG_ID;
|
||||
auditDepart.ANNUAL = audit.ANNUAL;
|
||||
auditDepart.TIME = DateTime.Now;
|
||||
auditDepart.USER_ID = loginUserId;
|
||||
auditDepart.DEPARTMENT_ID = loginUser?.DEPARTMENT_ID;
|
||||
auditDepart.LEVEL = departmentType;
|
||||
var departmentIds = this.GetEntities<T_FM_DEPARTMENT>(t => t.DEPARTMENT_TYPE == type && t.PARENT_ID == loginUser.DEPARTMENT_ID && t.ENABLE_STATUS == (int)FMEnableStatusEnum.启用, new BaseFilter(audit.ORG_ID)).Select(m => m.ID).ToList();
|
||||
if (departmentIds.Any())
|
||||
{
|
||||
foreach (var department in departmentIds)
|
||||
{
|
||||
//细表
|
||||
T_OG_SAFE_PDT_ASSESS_PLAN_CHECK_DETAIL auditDetail = new T_OG_SAFE_PDT_ASSESS_PLAN_CHECK_DETAIL();
|
||||
auditDetail.ORG_ID = audit.ORG_ID;
|
||||
auditDetail.CHECK_ID = auditDepart.ID;
|
||||
auditDetail.ANNUAL = DateTime.Now.Year;
|
||||
auditDetails.Add(auditDetail);
|
||||
}
|
||||
}
|
||||
var userInfos = this.GetEntities<T_FM_USER>(t => t.DEPARTMENT_ID == loginUser.DEPARTMENT_ID && (t.Nav_ApproveRole == null || (t.Nav_ApproveRole != null && !t.Nav_ApproveRole.NAME.Contains("副总"))) && t.ENABLE_STATUS == (int)FMEnableStatusEnum.启用 && !t.CODE.Contains("admin"), new BaseFilter(entity.ORG_ID)).ToList();
|
||||
foreach (var info in userInfos)
|
||||
{
|
||||
//细表
|
||||
T_OG_SAFE_PDT_ASSESS_PLAN_CHECK_DETAIL auditDetail = new T_OG_SAFE_PDT_ASSESS_PLAN_CHECK_DETAIL();
|
||||
auditDetail.ORG_ID = audit.ORG_ID;
|
||||
auditDetail.POST_ID = info.ID;
|
||||
auditDetail.CHECK_ID = auditDepart.ID;
|
||||
auditDetail.ANNUAL = DateTime.Now.Year;
|
||||
auditDetails.Add(auditDetail);
|
||||
}
|
||||
var userIds = userInfos.Select(t => t.ID).ToList();
|
||||
var tempDetails = this.GetEntities<T_OG_SAFE_ASSESS_PLAN_INPUT>(t => departmentIds.Contains(t.DEPARTMENT_ID.Value) || userIds.Contains(t.USER_ID.Value), new BaseFilter(entity.ORG_ID), new string[] { "Nav_SafeAssessItem" }).ToList();
|
||||
if (auditDetails != null && auditDetails.Any())
|
||||
{
|
||||
foreach (var auditDs in auditDetails)
|
||||
{
|
||||
var tempCurrent = tempDetails.FirstOrDefault(t => t.POST_ID == auditDs.POST_ID && t.ANNUAL == auditDs.ANNUAL);
|
||||
if (tempCurrent != null)
|
||||
{
|
||||
auditDs.CYCLE = tempCurrent.CYCLE;
|
||||
if (tempCurrent.Nav_SafeAssessItem != null && tempCurrent.Nav_SafeAssessItem.Any())
|
||||
{
|
||||
tempCurrent.Nav_SafeAssessItem.ForEach(t =>
|
||||
{
|
||||
T_OG_SAFE_PDT_ASSESS_PLAN_CHECK_DETAIL_CONTENT content = new T_OG_SAFE_PDT_ASSESS_PLAN_CHECK_DETAIL_CONTENT();
|
||||
content.ORG_ID = t.ORG_ID;
|
||||
content.CHECK_DETAIL_ID = auditDs.ID;
|
||||
content.NAME = t.NAME;
|
||||
content.SCORE = t.SCORE;
|
||||
content.METHOD = t.METHOD;
|
||||
contents.Add(content);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
notice = NotificationTaskService.InsertUserNoticeTaskModel(name + "考核方案审核", auditDepart.ID, audit.ORG_ID, loginUser.ID, loginUser.NAME, DateTime.Now,
|
||||
DateTime.Now.AddHours(24), (int)FMNoticeTypeEnum.消息, "PT024");//userIds, userNames,
|
||||
}
|
||||
}
|
||||
T_FM_NOTIFICATION_TASK task = null;
|
||||
if (entity.TaskID != Guid.Empty)
|
||||
{
|
||||
task = NotificationTaskService.FOGetTaskFinishModel(entity.TaskID,entity.ID);
|
||||
task.SOURCE_FORMCODE = "PT024_SHOWPRINT";
|
||||
}
|
||||
UnifiedCommit(() =>
|
||||
{
|
||||
if (audit != null)
|
||||
this.UpdateEntityNoCommit(audit);
|
||||
if (auditDepart != null)
|
||||
this.UpdateEntityNoCommit(auditDepart);
|
||||
if (auditDetails != null && auditDetails.Any())
|
||||
this.BantchSaveEntityNoCommit(auditDetails);
|
||||
if (contents != null && contents.Any())
|
||||
this.BantchSaveEntityNoCommit(contents);
|
||||
if (task != null)
|
||||
this.UpdateEntityNoCommit(task);
|
||||
if (notice != null)
|
||||
this.UpdateEntityNoCommit(notice);
|
||||
});
|
||||
return true;
|
||||
});
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 回调函数
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet, Route("BackUpdate")]
|
||||
public JsonActionResult<bool> BackUpdate(string id)
|
||||
{
|
||||
return SafeExecute(() =>
|
||||
{
|
||||
return ApproveCallBackService.CallBack("OG/OGSafePdtAssessPlanCheck/BackUpdate", id);
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,501 +0,0 @@
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using APT.BaseData.Domain.Enums.PF;
|
||||
using APT.Infrastructure.Core;
|
||||
using APT.MS.Domain.Entities.OG;
|
||||
using APT.MS.Domain.Entities.SC;
|
||||
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.OG
|
||||
{
|
||||
[Route("api/OG/OGSafeAssessPlanInput")]
|
||||
public class OGSafeAssessPlanInputController : AuthorizeApiController<T_OG_SAFE_ASSESS_PLAN_INPUT>
|
||||
{
|
||||
/// <summary>
|
||||
/// 保存
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("FullUpdate")]
|
||||
public JsonActionResult<bool> FullUpdate([FromBody]T_OG_SAFE_ASSESS_PLAN_INPUT entity)
|
||||
{
|
||||
return SafeExecute(() =>
|
||||
{
|
||||
if (entity.USER_ID == null)
|
||||
{
|
||||
entity.USER_ID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value;
|
||||
}
|
||||
var items = entity.Nav_SafeAssessItem;
|
||||
entity.Nav_SafeAssessItem = null;
|
||||
decimal? score = 0;
|
||||
if (items != null)
|
||||
{
|
||||
items.ForEach(i => {
|
||||
score += i.SCORE;
|
||||
});
|
||||
}
|
||||
|
||||
if (score != 100)
|
||||
{
|
||||
throw new Exception("标准分相加应为100分");
|
||||
}
|
||||
|
||||
if (entity.CODE == null)
|
||||
{
|
||||
entity.CODE = DateTime.Now.ToString("yyyyMMddHHmmss");
|
||||
}
|
||||
|
||||
UnifiedCommit(() =>
|
||||
{
|
||||
UpdateEntityNoCommit(entity);
|
||||
if (items != null)
|
||||
{
|
||||
BantchSaveEntityNoCommit(items);
|
||||
}
|
||||
});
|
||||
return true;
|
||||
});
|
||||
}
|
||||
|
||||
public class AssessUserModel
|
||||
{
|
||||
public List<T_FM_USER> Nav_User { get; set; }
|
||||
}
|
||||
|
||||
[HttpPost, Route("GetAssessUser")]
|
||||
public JsonActionResult<AssessUserModel> GetAssessUser([FromBody] KeywordFilter filter)
|
||||
{
|
||||
var ret = new JsonActionResult<AssessUserModel>();
|
||||
if (filter.Keyword == null)
|
||||
{
|
||||
ret.Data = new AssessUserModel
|
||||
{
|
||||
Nav_User = new List<T_FM_USER>(),
|
||||
};
|
||||
ret.IsSuccessful = true;
|
||||
ret.TotalCount = 0;
|
||||
ret.ErrorMessage = "";
|
||||
return ret;
|
||||
}
|
||||
var id = new Guid(filter.Keyword);
|
||||
var departIds = new List<Guid>();
|
||||
var depUsers = new List<T_FM_USER>();
|
||||
var tmpUsers = new List<T_FM_USER>();
|
||||
var headUserId = new List<Guid>();
|
||||
var retUsers = new List<T_FM_USER>();
|
||||
var safeUserIds = new List<Guid>();
|
||||
var posts = GetEntities<T_FM_USER_POST>(t => t.ID == id,
|
||||
new BaseFilter(filter.GetOrgId())).ToList();
|
||||
bool isAsSafeUser = false;
|
||||
|
||||
//if (posts != null)
|
||||
//{
|
||||
// if (posts.Count > 0)
|
||||
// {
|
||||
// isAsSafeUser = posts[0].Nav_Post.AS_SAFE_USER;
|
||||
// }
|
||||
// posts.ForEach(t =>
|
||||
// {
|
||||
// departIds.AddRange(t.Nav_Post.Nav_Posts.Select(m => m.Nav_Depost.DEPARTMENT_ID.Value).ToList());
|
||||
// });
|
||||
// tmpUsers = posts.Select(u => u.Nav_User).ToList();
|
||||
//}
|
||||
//if (isAsSafeUser)
|
||||
//{
|
||||
// var safePost = GetEntities<T_FM_DEPARTMENT_POST>(
|
||||
// t => t.Nav_Workduty.NAME == "安全员" && departIds.Contains(t.DEPARTMENT_ID),
|
||||
// new BaseFilter(entity.ORG_ID),
|
||||
// new string[] { "Nav_Workduty", "Nav_Users", "Nav_Users.Nav_User" }).ToList();
|
||||
// if (safePost != null)
|
||||
// {
|
||||
// safePost.ForEach(t =>
|
||||
// {
|
||||
// safeUserIds.AddRange(t.Nav_Users.Select(u => u.USER_ID).ToList());
|
||||
// });
|
||||
// }
|
||||
// tmpUsers = tmpUsers.Where(u => safeUserIds.Contains(u.ID)).ToList();
|
||||
//}
|
||||
|
||||
//var userData = GetEntity<T_FM_USER>(u => u.ID == APT.Infrastructure.Api.AppContext.CurrentSession.UserID,
|
||||
// new BaseFilter(entity.ORG_ID),
|
||||
// new string[] { "Nav_Department" });
|
||||
|
||||
//// 公司级,除选矿部和矿山部
|
||||
//if (userData.Nav_Department.DEPARTMENT_LEVEL == (int)FMDepartmentLevelEnum.公司级)
|
||||
//{
|
||||
// var depData = GetEntities<T_FM_DEPARTMENT>(d => d.CODE == "XLKKS" || d.CODE == "XLKXK",
|
||||
// new BaseFilter(entity.ORG_ID),
|
||||
// new string[] { "" }).ToList();
|
||||
// depData.ForEach(t =>
|
||||
// {
|
||||
// // 获取选矿部和矿山部所有成员
|
||||
// getDepAllUser(t.ID, depUsers, headUserId);
|
||||
// });
|
||||
// if (tmpUsers.Count > 0)
|
||||
// {
|
||||
// tmpUsers.ForEach(t =>
|
||||
// {
|
||||
// if (depUsers.Count > 0)
|
||||
// {
|
||||
// var hasData = false;
|
||||
// depUsers.ForEach(d =>
|
||||
// {
|
||||
// if (t.ID == d.ID)
|
||||
// {
|
||||
// hasData = true;
|
||||
// }
|
||||
// });
|
||||
// if (!hasData)
|
||||
// {
|
||||
// retUsers.Add(t);
|
||||
// }
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
// // 部门级,或车间级,或班组级时,把当前部门和下级人员,除了负责人过滤出来
|
||||
// getDepAllUser(userData.DEPARTMENT_ID.Value, depUsers, headUserId);
|
||||
// if (tmpUsers.Count > 0)
|
||||
// {
|
||||
// tmpUsers.ForEach(t =>
|
||||
// {
|
||||
// if (depUsers.Count > 0)
|
||||
// {
|
||||
// depUsers.ForEach(d =>
|
||||
// {
|
||||
// if (t.ID == d.ID && !headUserId.Contains(t.ID))
|
||||
// {
|
||||
// retUsers.Add(t);
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
//}
|
||||
|
||||
//ret.Data = new AssessUserModel
|
||||
//{
|
||||
// Nav_User = retUsers,
|
||||
//};
|
||||
ret.IsSuccessful = true;
|
||||
ret.TotalCount = retUsers == null ? 0 : retUsers.Count;
|
||||
ret.ErrorMessage = "";
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void getDepAllUser(Guid depId, List<T_FM_USER> user, List<Guid> headUserId)
|
||||
{
|
||||
|
||||
var userData = GetEntities<T_FM_USER>(u => u.DEPARTMENT_ID == depId,
|
||||
new BaseFilter(APT.Infrastructure.Api.AppContext.CurrentSession.OrgId),
|
||||
new string[] { "Nav_Department" }).ToList();
|
||||
if (userData != null && userData.Count > 0)
|
||||
{
|
||||
userData.ForEach(u =>
|
||||
{
|
||||
headUserId.Add(u.Nav_Department.USER_ID.Value);
|
||||
});
|
||||
user.AddRange(userData);
|
||||
}
|
||||
var chidlData = GetEntities<T_FM_DEPARTMENT>(d => d.PARENT_ID == depId,
|
||||
new BaseFilter(APT.Infrastructure.Api.AppContext.CurrentSession.OrgId),
|
||||
new string[] { }).ToList();
|
||||
if (chidlData != null && chidlData.Count > 0)
|
||||
{
|
||||
chidlData.ForEach(c =>
|
||||
{
|
||||
getDepAllUser(c.ID, user, headUserId);
|
||||
});
|
||||
}
|
||||
}
|
||||
public String GetAssessPlanInputCode()
|
||||
{
|
||||
return DateTime.Now.ToString("yyyyMMddHHmmss");
|
||||
}
|
||||
/// <summary>
|
||||
/// 安全生产组织保障考核方案导入model
|
||||
/// </summary>
|
||||
public class AssessPlanInfoModel
|
||||
{
|
||||
/// <summary>
|
||||
/// 用户导入model
|
||||
/// </summary>
|
||||
public AssessPlanInfoModel()
|
||||
{
|
||||
this.MessageList = new List<string>();
|
||||
this.Nav_AssessPlanItem = new List<AssessPlanItemModel>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 提示信息
|
||||
/// </summary>
|
||||
public List<string> MessageList { get; set; }
|
||||
|
||||
public List<AssessPlanItemModel> Nav_AssessPlanItem { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 安全生产组织保障考核方案导入model
|
||||
/// </summary>
|
||||
public class AssessPlanItemModel
|
||||
{
|
||||
/// <summary>
|
||||
/// ID
|
||||
/// </summary>
|
||||
public Guid? ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 被考核岗位ID
|
||||
/// </summary>
|
||||
public Guid? POST_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 被考核岗位
|
||||
/// </summary>
|
||||
public string POST_NAME { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 考核年度
|
||||
/// </summary>
|
||||
public int ANNUAL { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 考核周期ID
|
||||
/// </summary>
|
||||
public PTAssessmentCycleEnums CYCLE { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 考核项目
|
||||
/// </summary>
|
||||
public string NAME { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 标准分
|
||||
/// </summary>
|
||||
public int SCORE { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 考核认定评分办法
|
||||
/// </summary>
|
||||
public string METHOD { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 导入安全生产组织考核方案
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("ImportAssessPlan")]
|
||||
public JsonActionResult<AssessPlanInfoModel> ImportAssessPlan()
|
||||
{
|
||||
return SafeExecute<AssessPlanInfoModel>(() =>
|
||||
{
|
||||
AssessPlanInfoModel model = new AssessPlanInfoModel();
|
||||
var httpRequest = this.HttpContext.Request;
|
||||
string orgIdStr = httpRequest.Form["OrgId"];// 获取 组织
|
||||
Guid? orgId = null;
|
||||
if (!string.IsNullOrEmpty(orgIdStr))
|
||||
orgId = new Guid(orgIdStr);
|
||||
var unitlists = this.GetEntities<T_FM_UNIT>(null, new BaseFilter(orgId));
|
||||
foreach (var key in httpRequest.Form.Files) // 文件键
|
||||
{
|
||||
var postedFile = key; // 获取文件键对应的文件对象
|
||||
var dic = Path.Combine(System.AppContext.BaseDirectory, "tempImportFiles");
|
||||
if (!Directory.Exists(dic))
|
||||
Directory.CreateDirectory(dic);
|
||||
string fileName = 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(fileName, FileMode.CreateNew))
|
||||
{
|
||||
fs.Write(fileData, 0, fileData.Length);
|
||||
fs.Flush();
|
||||
fs.Close();
|
||||
}
|
||||
|
||||
var table = FileUtils.ReadExcelTable(fileName, 0);
|
||||
try
|
||||
{
|
||||
System.IO.File.Delete(fileName);
|
||||
}
|
||||
catch { }
|
||||
|
||||
if (table != null && table.Rows.Count > 0)
|
||||
{
|
||||
DataColumn colPostName = table.Columns[0];//被考核岗位
|
||||
DataColumn colAnnual = table.Columns[1];//考核年度
|
||||
DataColumn colCycleName = table.Columns[2];//考核周期
|
||||
DataColumn colItem = table.Columns[3];//考核项目
|
||||
DataColumn colScore = table.Columns[4];//标准分
|
||||
DataColumn colMethod = table.Columns[5];//考核认定评分办法
|
||||
DataColumn colRowNO = new DataColumn("RowNo", typeof(int));//序号
|
||||
colRowNO.DefaultValue = 0;
|
||||
table.Columns.Add(colRowNO);
|
||||
|
||||
int rowNo = 1;
|
||||
foreach (DataRow row in table.Rows)
|
||||
{
|
||||
row[colRowNO] = rowNo;
|
||||
rowNo++;
|
||||
}
|
||||
|
||||
List<T_OG_SAFE_ASSESS_PLAN_INPUT> allPlanInput = this.GetEntities<T_OG_SAFE_ASSESS_PLAN_INPUT>(null, new BaseFilter(), new string[] { "Nav_Post", "Nav_SafeAssessItem" }).ToList();
|
||||
List<T_SC_POST> postList = null;
|
||||
postList = this.GetEntities<T_SC_POST>(null, new BaseFilter(null, FilterOrgTypeEnum.忽略组织), new string[] { "Nav_Posts" }).ToList();
|
||||
|
||||
DataView dataView = new DataView(table, string.Empty, colPostName.ColumnName, DataViewRowState.CurrentRows);
|
||||
foreach (DataRowView rV in dataView)
|
||||
{
|
||||
AssessPlanItemModel item = new AssessPlanItemModel();
|
||||
DataRow r = rV.Row;
|
||||
|
||||
string postcodeName = LibUtils.ToString(r[colPostName]);
|
||||
int annual = LibUtils.ToInt(r[colAnnual]);
|
||||
int cycleName = LibUtils.ToInt(r[colCycleName]);
|
||||
|
||||
string itemStr = LibUtils.ToString(r[colItem]);
|
||||
int scoreInt = LibUtils.ToInt(r[colScore]);
|
||||
string methodStr = LibUtils.ToString(r[colMethod]);
|
||||
|
||||
int tmpRowNo = LibUtils.ToInt(r[colRowNO]);
|
||||
|
||||
T_SC_POST post = postList == null ? null :
|
||||
postList.Where(t => t.NAME == postcodeName).FirstOrDefault();
|
||||
if (string.IsNullOrEmpty(postcodeName))
|
||||
{
|
||||
model.MessageList.Add(string.Format("序号{0}:被考核岗位为空,已忽略导入", tmpRowNo));
|
||||
continue;
|
||||
}
|
||||
item.ID = Guid.NewGuid();
|
||||
item.ANNUAL = annual;
|
||||
if (post != null)
|
||||
{
|
||||
item.POST_ID = post.ID;
|
||||
item.POST_NAME = post.NAME;
|
||||
}
|
||||
else
|
||||
{
|
||||
model.MessageList.Add(string.Format("序号{0}:被考核岗位{1}不存在,已忽略导入", tmpRowNo, postcodeName));
|
||||
continue;
|
||||
}
|
||||
item.CYCLE = (PTAssessmentCycleEnums)cycleName;
|
||||
item.NAME = itemStr;
|
||||
item.SCORE = scoreInt;
|
||||
item.METHOD = methodStr;
|
||||
|
||||
model.Nav_AssessPlanItem.Add(item);
|
||||
}
|
||||
}
|
||||
}
|
||||
return model;
|
||||
});
|
||||
}
|
||||
/// <summary>
|
||||
/// 保存导入考核方案
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("SaveImportAssessPlan")]
|
||||
public JsonActionResult<bool> SaveImportAssessPlan([FromBody] AssessPlanInfoModel model)
|
||||
{
|
||||
return SafeExecute<bool>(() =>
|
||||
{
|
||||
if (model == null || model.Nav_AssessPlanItem == null || model.Nav_AssessPlanItem.Count == 0)
|
||||
throw new Exception("请输入");
|
||||
|
||||
var inputList = new List<T_OG_SAFE_ASSESS_PLAN_INPUT>();
|
||||
var itemList = new List<T_OG_SAFE_ASSESS_ITEM>();
|
||||
|
||||
model.Nav_AssessPlanItem.ForEach(t =>
|
||||
{
|
||||
var index = -1;
|
||||
var codeIndex = 0;
|
||||
int i = 0;
|
||||
inputList.ForEach(p =>
|
||||
{
|
||||
if (p.POST_ID == t.POST_ID && p.ANNUAL == t.ANNUAL && p.CYCLE == t.CYCLE)
|
||||
{
|
||||
index = i;
|
||||
}
|
||||
i++;
|
||||
});
|
||||
|
||||
if (index != -1)
|
||||
{
|
||||
T_OG_SAFE_ASSESS_ITEM item = new T_OG_SAFE_ASSESS_ITEM();
|
||||
item.ID = Guid.NewGuid();
|
||||
item.ORG_ID = APT.Infrastructure.Api.AppContext.CurrentSession.OrgId;
|
||||
item.ASSESS_PLAN_INPUT_ID = inputList[index].ID;
|
||||
item.NAME = t.NAME;
|
||||
item.SCORE = t.SCORE;
|
||||
item.METHOD = t.METHOD;
|
||||
itemList.Add(item);
|
||||
}
|
||||
else
|
||||
{
|
||||
var userData = GetEntity<T_FM_USER>(u => u.ID == APT.Infrastructure.Api.AppContext.CurrentSession.UserID,new string[] { "Nav_Department" });
|
||||
var depName = "";
|
||||
if (userData != null && userData.Nav_Department != null)
|
||||
{
|
||||
depName = userData.Nav_Department.NAME;
|
||||
}
|
||||
var code = "";
|
||||
while (true)
|
||||
{
|
||||
var hasData = false;
|
||||
code = GetAssessPlanInputCode();
|
||||
inputList.ForEach(p =>
|
||||
{
|
||||
if (p.CODE == code)
|
||||
{
|
||||
hasData = true;
|
||||
}
|
||||
});
|
||||
if (!hasData)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
T_OG_SAFE_ASSESS_PLAN_INPUT input = new T_OG_SAFE_ASSESS_PLAN_INPUT
|
||||
{
|
||||
ID = Guid.NewGuid(),
|
||||
ORG_ID = APT.Infrastructure.Api.AppContext.CurrentSession.OrgId,
|
||||
CODE = code,
|
||||
POST_ID = t.POST_ID,
|
||||
USER_ID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID,
|
||||
ANNUAL = t.ANNUAL,
|
||||
CYCLE = t.CYCLE,
|
||||
DEP_NAME = depName,
|
||||
STATUS = (int)PFStandardStatus.Draft,
|
||||
ENTITY_ORG_TPYE = 2
|
||||
};
|
||||
inputList.Add(input);
|
||||
|
||||
T_OG_SAFE_ASSESS_ITEM item = new T_OG_SAFE_ASSESS_ITEM();
|
||||
item.ID = Guid.NewGuid();
|
||||
item.ORG_ID = APT.Infrastructure.Api.AppContext.CurrentSession.OrgId;
|
||||
item.ASSESS_PLAN_INPUT_ID = input.ID;
|
||||
item.NAME = t.NAME;
|
||||
item.SCORE = t.SCORE;
|
||||
item.METHOD = t.METHOD;
|
||||
itemList.Add(item);
|
||||
codeIndex++;
|
||||
}
|
||||
});
|
||||
|
||||
UnifiedCommit(() =>
|
||||
{
|
||||
if (inputList.Count > 0)
|
||||
BantchSaveEntityNoCommit(inputList);
|
||||
if (itemList.Count > 0)
|
||||
BantchSaveEntityNoCommit(itemList);
|
||||
});
|
||||
return true;
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,227 +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.BaseData.Domain.IServices;
|
||||
using APT.Infrastructure.Core;
|
||||
using APT.MS.Domain.Entities.OG;
|
||||
using APT.MS.Domain.Entities.SC.PT;
|
||||
using APT.MS.Domain.Enums;
|
||||
using APT.Utility;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using NPOI.SS.Formula.Functions;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
namespace APT.SC.WebApi.Controllers.Api.OG
|
||||
{
|
||||
[Route("api/OG/OGSafeAssessRecord")]
|
||||
public class OGSafeAssessRecordController : AuthorizeApiController<T_OG_SAFE_ASSESS_RECORD>
|
||||
{
|
||||
IPFCodeRuleService CodeRuleService { get; set; }
|
||||
IFMNotificationTaskService NotificationTaskService { get; set; }
|
||||
IFMFlowPermitService MFlowPermitService { get; set; }
|
||||
IPFApproveCallBackService ApproveCallBackService { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="notificationTaskService"></param>
|
||||
public OGSafeAssessRecordController(IPFCodeRuleService codeRuleService, IFMNotificationTaskService notificationTaskService, IFMFlowPermitService mFlowPermitService, IPFApproveCallBackService approveCallBackService)
|
||||
{
|
||||
CodeRuleService = codeRuleService;
|
||||
NotificationTaskService = notificationTaskService;
|
||||
MFlowPermitService = mFlowPermitService;
|
||||
ApproveCallBackService = approveCallBackService;
|
||||
}
|
||||
/// <summary>
|
||||
/// 新增/编辑
|
||||
/// </summary>
|
||||
/// <param name="entity"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("FullUpdate")]
|
||||
public JsonActionResult<bool> FullUpdate([FromBody] T_OG_SAFE_ASSESS_RECORD entity)
|
||||
{
|
||||
return SafeExecute(() =>
|
||||
{
|
||||
var details = entity.Nav_Details;
|
||||
entity.STATUS = PFStandardStatus.Draft;
|
||||
entity.ANNUAL = DateTime.Now.Year;
|
||||
var loginUserId = entity.USER_ID != null ? entity.USER_ID : APT.Infrastructure.Api.AppContext.CurrentSession.UserID;
|
||||
entity.USER_ID = loginUserId;
|
||||
var userInfo = this.GetEntity<T_FM_USER>(t => t.ID == loginUserId.Value);
|
||||
var departmentId = userInfo?.DEPARTMENT_ID;
|
||||
entity.DEPARTMENT_ID = departmentId;
|
||||
List<T_FM_NOTIFICATION_TASK> notices = null;
|
||||
List<T_OG_SAFE_ASSESS_RECORD_ITEM> contents = new List<T_OG_SAFE_ASSESS_RECORD_ITEM>();
|
||||
T_FM_NOTIFICATION_TASK task = null;
|
||||
if (details != null && details.Any())
|
||||
{
|
||||
details.ForEach(t =>
|
||||
{
|
||||
t.ORG_ID = entity.ORG_ID; t.SAFE_ASSESS_RECORD_ID = entity.ID;
|
||||
if (t.Nav_SafeAssessRecordItem != null && t.Nav_SafeAssessRecordItem.Any())
|
||||
{
|
||||
t.Nav_SafeAssessRecordItem.ForEach(t1 =>
|
||||
{
|
||||
t1.ORG_ID = entity.ORG_ID;
|
||||
t1.RECORD_DETAIL_ID = t.ID;
|
||||
contents.Add(t1);
|
||||
});
|
||||
}
|
||||
t.Nav_SafeAssessRecordItem = null;
|
||||
});
|
||||
}
|
||||
if (entity.PUBLISH != null && entity.PUBLISH.Equals("SaveAndNotify"))
|
||||
{
|
||||
entity.STATUS = PFStandardStatus.Sign;
|
||||
var name = Enum.GetName(typeof(FMDepartmentType), entity.DEPARTMENT_TYPE);
|
||||
var cycleName = entity.CYCLE.GetDescription();
|
||||
var userIds = details.Where(x => x.USER_ID != null).Select(t => t.USER_ID.Value).Distinct().ToList();
|
||||
if (userIds != null && userIds.Any())
|
||||
{
|
||||
var userNames = new List<string>();
|
||||
var userInfos = this.GetEntities<T_FM_USER>(t => t.ENABLE_STATUS == (int)FMEnableStatusEnum.启用 && userIds.Contains(t.ID), new BaseFilter(entity.ORG_ID));
|
||||
foreach (var user in userIds)
|
||||
{
|
||||
var current = userInfos.FirstOrDefault(t => t.ID == user);
|
||||
userNames.Add(current?.NAME);
|
||||
}
|
||||
//发消息
|
||||
notices = NotificationTaskService.InsertUserNoticeTaskModels("(" + cycleName + ")" + name + "安全生产责任制考核记录", entity.ID, entity.ORG_ID, userIds, userNames, DateTime.Now,
|
||||
DateTime.Now.AddHours(24), (int)FMNoticeTypeEnum.消息, "OG008_SHOWPRINT");
|
||||
}
|
||||
if (entity.TaskID != Guid.Empty)
|
||||
{
|
||||
task = NotificationTaskService.FOGetTaskFinishModel(entity.TaskID,entity.ID);
|
||||
}
|
||||
}
|
||||
entity.Nav_Details = null;
|
||||
UnifiedCommit(() =>
|
||||
{
|
||||
if (entity != null)
|
||||
this.UpdateEntityNoCommit(entity);
|
||||
if (details != null && details.Any())
|
||||
this.BantchSaveEntityNoCommit(details);
|
||||
if (contents != null && contents.Any())
|
||||
this.BantchSaveEntityNoCommit(contents);
|
||||
if (task != null)
|
||||
this.UpdateEntityNoCommit(task);
|
||||
if (notices != null && notices.Any())
|
||||
this.BantchSaveEntityNoCommit(notices);
|
||||
});
|
||||
return true;
|
||||
});
|
||||
}
|
||||
/// <summary>
|
||||
/// 已阅
|
||||
/// </summary>
|
||||
/// <param name="entity"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("IdentityUpdate")]
|
||||
public JsonActionResult<bool> IdentityUpdate([FromBody] T_OG_SAFE_ASSESS_RECORD entity)
|
||||
{
|
||||
return SafeExecute(() => {
|
||||
var monitor = this.GetEntity<T_OG_SAFE_ASSESS_RECORD>(entity.ID, "Nav_Details");
|
||||
var userId = APT.Infrastructure.Api.AppContext.CurrentSession.UserID;
|
||||
var user = this.GetEntity<T_OG_SAFE_ASSESS_RECORD_DETAIL>(t => t.SAFE_ASSESS_RECORD_ID == monitor.ID && t.USER_ID == userId, new BaseFilter(monitor.ORG_ID));
|
||||
user.DEAL_STATUS = FOUserShiftStatusEnum.已处理;
|
||||
T_FM_NOTIFICATION_TASK task = null;
|
||||
var todoCount = this.GetCount<T_OG_SAFE_ASSESS_RECORD_DETAIL>(t => t.SAFE_ASSESS_RECORD_ID == monitor.ID && t.DEAL_STATUS == 0, new BaseFilter(monitor.ORG_ID));
|
||||
if (todoCount == 0 || todoCount == 1)
|
||||
{
|
||||
monitor.STATUS = PFStandardStatus.Archived;
|
||||
//var sysFilter = new SystemCodeFilter();
|
||||
//sysFilter.CodeType = (int)PFCodeRuleType.审批流编码;
|
||||
//sysFilter.Count = 1;
|
||||
//sysFilter.OrgId = monitor.ORG_ID;
|
||||
//var codes = CodeRuleService.NewGenSerial(sysFilter);
|
||||
//var serialCode = codes.Split(new char[] { ',' });
|
||||
//var param = Enum.GetName(typeof(FMDepartmentType), monitor.DEPARTMENT_TYPE);
|
||||
//MFlowPermitService.InsertApprove(serialCode[0], "PT029", param, entity.ID, "PT029_SHOWPRINT", entity.TaskID, true, () =>
|
||||
//{
|
||||
// if (monitor != null)
|
||||
// this.UpdateEntityNoCommit(monitor);
|
||||
// if (user != null)
|
||||
// this.UpdateEntityNoCommit(user);
|
||||
// if (task != null)
|
||||
// this.UpdateEntityNoCommit(task);
|
||||
//}, null, null, null, null, null, "PT029_SHOWPRINT", null);
|
||||
//return true;
|
||||
}
|
||||
if (entity.TaskID != Guid.Empty)
|
||||
{
|
||||
task = NotificationTaskService.FOGetTaskFinishModel(entity.TaskID,entity.ID);
|
||||
}
|
||||
UnifiedCommit(() =>
|
||||
{
|
||||
if (monitor != null)
|
||||
this.UpdateEntityNoCommit(monitor);
|
||||
if (user != null)
|
||||
this.UpdateEntityNoCommit(user);
|
||||
if (task != null)
|
||||
this.UpdateEntityNoCommit(task);
|
||||
});
|
||||
return true;
|
||||
});
|
||||
}
|
||||
/// <summary>
|
||||
/// 负责人签阅
|
||||
/// </summary>
|
||||
/// <param name="entity"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("ChargeAgree")]
|
||||
public JsonActionResult<bool> ChargeAgree([FromBody] T_OG_SAFE_ASSESS_RECORD entity)
|
||||
{
|
||||
return SafeExecute(() => {
|
||||
T_FM_NOTIFICATION_TASK task = null;
|
||||
if (entity.TaskID != Guid.Empty)
|
||||
{
|
||||
task = NotificationTaskService.FOGetTaskFinishModel(entity.TaskID,entity.ID);
|
||||
task.SOURCE_FORMCODE = "PT029_SHOWPRINT";
|
||||
}
|
||||
UnifiedCommit(() =>
|
||||
{
|
||||
if (task != null)
|
||||
this.UpdateEntityNoCommit(task);
|
||||
});
|
||||
return true;
|
||||
});
|
||||
}
|
||||
/// <summary>
|
||||
/// 获取
|
||||
/// </summary>
|
||||
/// <param name="filter"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("GetEdit")]
|
||||
public JsonActionResult<T_OG_SAFE_ASSESS_RECORD> GetEdit([FromBody] KeywordFilter filter)
|
||||
{
|
||||
return SafeExecute(() => {
|
||||
var id = filter.FilterGroup.Rules.FirstOrDefault(t => t.Field == "ID").Value.ToString();
|
||||
if (string.IsNullOrEmpty(id))
|
||||
this.ThrowError("030017");
|
||||
var result = this.GetEntity<T_OG_SAFE_ASSESS_RECORD>(id, new string[] { "Nav_Details.Nav_Post","Nav_Department", "Nav_Details.Nav_SafeAssessRecordItem.Nav_SafeAssessItem",
|
||||
"Nav_Details.Nav_User.Nav_UserSignFiles.Nav_ImgFile.Nav_File"
|
||||
});
|
||||
if (result != null && result.Nav_Details != null && result.Nav_Details.Any())
|
||||
{
|
||||
result.Nav_Details = result.Nav_Details.OrderBy(t => t.USER_ID).ToList();
|
||||
}
|
||||
return result;
|
||||
});
|
||||
}
|
||||
/// <summary>
|
||||
/// 回调函数
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet, Route("BackUpdate")]
|
||||
public JsonActionResult<bool> BackUpdate(string id)
|
||||
{
|
||||
return SafeExecute(() =>
|
||||
{
|
||||
return ApproveCallBackService.CallBack("PT/PTMonitorAssessment/BackUpdate", id);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,279 +0,0 @@
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using APT.BaseData.Domain.IServices.FM;
|
||||
using APT.BaseData.Domain.IServices;
|
||||
using APT.BaseData.Services.Services.FM;
|
||||
using APT.Infrastructure.Core;
|
||||
using APT.MS.Domain.Entities.OG;
|
||||
using APT.MS.Domain.Enums;
|
||||
using APT.Utility;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using APT.BaseData.Domain.Entities;
|
||||
using APT.MS.Domain.Entities.HM;
|
||||
|
||||
namespace APT.SC.WebApi.Controllers.Api.OG
|
||||
{
|
||||
[Route("api/OG/OGEmployeeOpinionCollection")]
|
||||
public class OGEmployeeOpinionCollectionController : AuthorizeApiController<T_OG_EMPLOYEE_OPINION_COLLECTION>
|
||||
{
|
||||
IFMNotificationTaskService NotificationTaskService { get; set; }
|
||||
public OGEmployeeOpinionCollectionController(IFMNotificationTaskService notificationTaskService, IPFCodeRuleService codeRuleService)
|
||||
{
|
||||
NotificationTaskService = notificationTaskService;
|
||||
}
|
||||
/// <summary>
|
||||
/// 更新
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("FullUpdate")]
|
||||
public JsonActionResult<bool> FullUpdate([FromBody] T_OG_EMPLOYEE_OPINION_COLLECTION entity)
|
||||
{
|
||||
return SafeExecute<bool>(() =>
|
||||
{
|
||||
if (entity.STATUS != (int)OGEmployeeOpinionStatus.草稿 && entity.STATUS != OGEmployeeOpinionStatus.汇总中)
|
||||
{
|
||||
throw new Exception("当前数据不可提交!");
|
||||
}
|
||||
if (entity.START_TIME == null)
|
||||
{
|
||||
entity.START_TIME = DateTime.Now;
|
||||
}
|
||||
if (entity.END_TIME == null)
|
||||
{
|
||||
throw new Exception("请选择结束时间");
|
||||
}
|
||||
if (entity.STATUS == OGEmployeeOpinionStatus.草稿)
|
||||
{
|
||||
if (entity.END_TIME < entity.START_TIME)
|
||||
{
|
||||
throw new Exception("征集结束时间不可早于征集开始时间");
|
||||
}
|
||||
}
|
||||
|
||||
if (entity.USER_ID == null)
|
||||
{
|
||||
if (entity.STATUS == OGEmployeeOpinionStatus.草稿)
|
||||
{
|
||||
entity.USER_ID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID;
|
||||
}
|
||||
}
|
||||
if (entity.DEPARTMENT_ID == null)
|
||||
{
|
||||
if (entity.STATUS == OGEmployeeOpinionStatus.草稿)
|
||||
{
|
||||
entity.DEPARTMENT_ID = GetEntity<T_FM_USER>(t => t.ID == entity.USER_ID).DEPARTMENT_ID;
|
||||
}
|
||||
}
|
||||
if (entity.AH_CHARGE_USER_ID == null)
|
||||
{
|
||||
if (entity.STATUS == OGEmployeeOpinionStatus.草稿)
|
||||
{
|
||||
entity.AH_CHARGE_USER_ID = GetEntity<T_FM_USER>(t => t.Nav_ApproveRole.NAME == "安环部负责人").ID;
|
||||
}
|
||||
}
|
||||
var Nav_Users = entity.Nav_Users;
|
||||
List<T_OG_EMPLOYEE_OPINION> opinions = new List<T_OG_EMPLOYEE_OPINION>();
|
||||
List<T_OG_EMPLOYEE_OPINION_COLLECTION_USER_FILE> files = new List<T_OG_EMPLOYEE_OPINION_COLLECTION_USER_FILE>();
|
||||
foreach (var detail in Nav_Users)
|
||||
{
|
||||
|
||||
if (detail.Nav_Opinions != null)
|
||||
{
|
||||
foreach (var opinion in detail.Nav_Opinions)
|
||||
{
|
||||
if (opinion.RESULT == OGOpinionResultEnum.不认可)
|
||||
{
|
||||
if (string.IsNullOrEmpty(opinion.REFUSE_DESCRIPTION))
|
||||
{
|
||||
throw new Exception("不认可的请填写不认可解释!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
opinions.AddRange(detail.Nav_Opinions);
|
||||
detail.Nav_Opinions = null;
|
||||
}
|
||||
if (detail.Nav_Files != null)
|
||||
{
|
||||
files.AddRange(detail.Nav_Files);
|
||||
detail.Nav_Files = null;
|
||||
}
|
||||
};
|
||||
List<T_FM_NOTIFICATION_TASK> sendNotices = null;
|
||||
T_FM_NOTIFICATION_TASK sendNotice = null;
|
||||
T_FM_NOTIFICATION_TASK finishNotice = null;
|
||||
if (entity.PUBLISH != null && entity.PUBLISH.Equals("SaveAndNotify"))
|
||||
{
|
||||
var allUsers = GetEntities<T_FM_USER>(t => t.ENABLE_STATUS == 0, new BaseFilter(entity.ORG_ID));
|
||||
if (entity.STATUS == (int)OGEmployeeOpinionStatus.草稿)
|
||||
{
|
||||
entity.STATUS = OGEmployeeOpinionStatus.意见征集中;
|
||||
var allSendUserTitles = new List<string>();
|
||||
var allSendDataIds = new List<Guid>();
|
||||
var allSendUserIds = new List<Guid>();
|
||||
var allSendUserNames = new List<string>();
|
||||
Nav_Users.ForEach(u =>
|
||||
{
|
||||
allSendUserTitles.Add("员工意见征集-意见反馈");
|
||||
allSendDataIds.Add(u.ID);
|
||||
allSendUserIds.Add(u.USER_ID);
|
||||
allSendUserNames.Add(allUsers.FirstOrDefault(t => t.ID == u.USER_ID).NAME);
|
||||
});
|
||||
sendNotices = NotificationTaskService.InsertUserNoticeTaskModels(allSendUserTitles, allSendDataIds, entity.ORG_ID, allSendUserIds, allSendUserNames, DateTime.Now, entity.END_TIME.Value, 1, "OG059_EDIT");
|
||||
}
|
||||
else if (entity.STATUS == OGEmployeeOpinionStatus.汇总中)
|
||||
{
|
||||
entity.STATUS = OGEmployeeOpinionStatus.负责人审阅中;
|
||||
sendNotice = NotificationTaskService.InsertUserNoticeTaskModel("员工意见征集-负责人审阅", entity.ID, entity.ORG_ID, entity.CHARGE_USER_ID.Value, allUsers.FirstOrDefault(t => t.ID == entity.CHARGE_USER_ID).NAME, DateTime.Now, entity.END_TIME.Value, 1, "OG059_CHECK");
|
||||
};
|
||||
}
|
||||
entity.Nav_Users = null;
|
||||
if (entity.TaskID != Guid.Empty)
|
||||
{
|
||||
finishNotice = NotificationTaskService.FOGetTaskFinishModel(entity.TaskID,entity.ID, "OG059_SHOWPRINT");
|
||||
}
|
||||
UnifiedCommit(() =>
|
||||
{
|
||||
UpdateEntityNoCommit(entity);
|
||||
if (Nav_Users != null && Nav_Users.Any())
|
||||
BantchSaveEntityNoCommit(Nav_Users);
|
||||
if (sendNotices != null && sendNotices.Any())
|
||||
BantchAddEntityNoCommit(sendNotices);
|
||||
if (sendNotice != null)
|
||||
UpdateEntityNoCommit(sendNotice);
|
||||
if (finishNotice != null)
|
||||
UpdateEntityNoCommit(finishNotice);
|
||||
if (opinions != null && opinions.Any())
|
||||
BantchSaveEntityNoCommit(opinions);
|
||||
if (files != null && files.Any())
|
||||
BantchSaveEntityNoCommit(files);
|
||||
|
||||
});
|
||||
return true;
|
||||
});
|
||||
}
|
||||
/// <summary>
|
||||
/// 同意
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Agree")]
|
||||
public JsonActionResult<bool> Agree([FromBody] KeywordFilter filter)
|
||||
{
|
||||
return SafeExecute<bool>(() =>
|
||||
{
|
||||
var id = new Guid(filter.Keyword);
|
||||
|
||||
var data = GetEntity<T_OG_EMPLOYEE_OPINION_COLLECTION>(id);
|
||||
if (data == null)
|
||||
{
|
||||
throw new Exception("未查到相应数据");
|
||||
}
|
||||
T_FM_NOTIFICATION_TASK sendNotice = null;
|
||||
T_FM_NOTIFICATION_TASK finishNotice = null;
|
||||
|
||||
var uid = APT.Infrastructure.Api.AppContext.CurrentSession.UserID;
|
||||
if (data.STATUS == OGEmployeeOpinionStatus.负责人审阅中)
|
||||
{
|
||||
if (uid != data.CHARGE_USER_ID)
|
||||
{
|
||||
throw new Exception("你无权限做此操作");
|
||||
}
|
||||
data.STATUS = OGEmployeeOpinionStatus.安环部审阅中;
|
||||
sendNotice = NotificationTaskService.InsertUserNoticeTaskModel("员工意见征集-安环部审阅", data.ID, data.ORG_ID.Value, data.AH_CHARGE_USER_ID.Value, "", DateTime.Now, data.END_TIME.Value, 1, "OG059_CHECK");
|
||||
|
||||
}
|
||||
else if (data.STATUS == OGEmployeeOpinionStatus.安环部审阅中)
|
||||
{
|
||||
if (uid != data.AH_CHARGE_USER_ID)
|
||||
{
|
||||
throw new Exception("你无权限做此操作");
|
||||
}
|
||||
data.STATUS = OGEmployeeOpinionStatus.归档;
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new Exception("状态有误");
|
||||
}
|
||||
if (filter.Parameter1 != null)
|
||||
{
|
||||
finishNotice = NotificationTaskService.GetTaskFinishModel(Guid.Parse(filter.Parameter1));
|
||||
}
|
||||
UnifiedCommit(() =>
|
||||
{
|
||||
if (sendNotice != null)
|
||||
AddEntityNoCommit(sendNotice);
|
||||
UpdateEntityNoCommit(data);
|
||||
if (finishNotice != null)
|
||||
UpdateEntityNoCommit(finishNotice);
|
||||
});
|
||||
return true;
|
||||
});
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 用户提交
|
||||
/// </summary>
|
||||
/// <param name="filter"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("FullUpdateUser")]
|
||||
public JsonActionResult<bool> FullUpdateUser([FromBody] T_OG_EMPLOYEE_OPINION_COLLECTION_USER entity)
|
||||
{
|
||||
return SafeExecute<bool>(() =>
|
||||
{
|
||||
var exist = GetEntity<T_OG_EMPLOYEE_OPINION_COLLECTION_USER>(t => t.ID == entity.ID, new BaseFilter(entity.ORG_ID),
|
||||
new string[] { "Nav_Collection" });
|
||||
if (exist == null)
|
||||
{
|
||||
throw new Exception("未查到有效数据");
|
||||
}
|
||||
if (exist.STATUS != (int)OGEmployeeOpinionFeedbackStatus.未反馈 || exist.Nav_Collection.STATUS != OGEmployeeOpinionStatus.意见征集中)
|
||||
{
|
||||
throw new Exception("您已提交或当前征集已结束");
|
||||
}
|
||||
if (exist.Nav_Collection.END_TIME != null && exist.Nav_Collection.END_TIME < DateTime.Now)
|
||||
{
|
||||
throw new Exception("征集截止时间已过,不可提交");
|
||||
}
|
||||
T_FM_NOTIFICATION_TASK finishNotice = null;
|
||||
if (entity.PUBLISH != null && entity.PUBLISH.Equals("SaveAndNotify"))
|
||||
{
|
||||
entity.STATUS = OGEmployeeOpinionFeedbackStatus.已反馈;
|
||||
finishNotice = NotificationTaskService.FOGetTaskFinishModel(entity.TaskID,entity.ID,"OG059_USERVIEW");
|
||||
}
|
||||
var Nav_Files = entity.Nav_Files;
|
||||
var Nav_Opinions = entity.Nav_Opinions;
|
||||
entity.Nav_Files = null;
|
||||
entity.Nav_Opinions = null;
|
||||
UnifiedCommit(() =>
|
||||
{
|
||||
UpdateEntityNoCommit(entity);
|
||||
if (Nav_Files != null && Nav_Files.Any())
|
||||
BantchSaveEntityNoCommit(Nav_Files);
|
||||
if (Nav_Opinions != null && Nav_Opinions.Any())
|
||||
BantchSaveEntityNoCommit(Nav_Opinions);
|
||||
if (finishNotice != null)
|
||||
UpdateEntityNoCommit(finishNotice);
|
||||
});
|
||||
|
||||
return true;
|
||||
});
|
||||
}
|
||||
/// <summary>
|
||||
/// 查询
|
||||
/// </summary>
|
||||
/// <param name="filter"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("GetUser")]
|
||||
public JsonActionResult<T_OG_EMPLOYEE_OPINION_COLLECTION_USER> GetUser([FromBody] KeywordFilter filter)
|
||||
{
|
||||
return SafeExecute(() =>
|
||||
{
|
||||
return GetEntity<T_OG_EMPLOYEE_OPINION_COLLECTION_USER>(null, filter);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,212 +0,0 @@
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using APT.BaseData.Domain.IServices.FM;
|
||||
using APT.BaseData.Domain.IServices;
|
||||
using APT.BaseData.Services.Services.FM;
|
||||
using APT.Infrastructure.Core;
|
||||
using APT.MS.Domain.Entities.OG;
|
||||
using APT.MS.Domain.Enums;
|
||||
using APT.Utility;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Runtime.Intrinsics.Arm;
|
||||
using APT.BaseData.Domain.Entities;
|
||||
using APT.BaseData.Domain.Enums;
|
||||
|
||||
namespace APT.SC.WebApi.Controllers.Api.OG
|
||||
{
|
||||
[Route("api/OG/OGEmployeeOpinionReport")]
|
||||
public class OGEmployeeOpinionReportController : AuthorizeApiController<T_OG_EMPLOYEE_OPINION_REPORT>
|
||||
{
|
||||
IFMNotificationTaskService NotificationTaskService { get; set; }
|
||||
|
||||
public OGEmployeeOpinionReportController(IFMNotificationTaskService notificationTaskService, IPFCodeRuleService codeRuleService)
|
||||
{
|
||||
NotificationTaskService = notificationTaskService;
|
||||
}
|
||||
/// <summary>
|
||||
/// 更新
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("FullUpdate")]
|
||||
public JsonActionResult<bool> FullUpdate([FromBody] T_OG_EMPLOYEE_OPINION_REPORT entity)
|
||||
{
|
||||
return SafeExecute<bool>(() =>
|
||||
{
|
||||
if (entity.START_TIME == null)
|
||||
{
|
||||
entity.START_TIME = DateTime.Now;
|
||||
}
|
||||
if (entity.USER_ID == null)
|
||||
{
|
||||
if (entity.STATUS == OGEmployeeOpinionReportStatus.草稿)
|
||||
{
|
||||
entity.USER_ID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID;
|
||||
}
|
||||
}
|
||||
if (entity.USER_ID == null)
|
||||
{
|
||||
throw new Exception("用户信息错误");
|
||||
}
|
||||
var userInfo = GetEntity<T_FM_USER>(t => t.ID == entity.USER_ID, "Nav_ApproveRole");
|
||||
if (entity.LAUNCH_DEPARTMENT_ID == null)
|
||||
{
|
||||
if (entity.STATUS == OGEmployeeOpinionReportStatus.草稿)
|
||||
{
|
||||
entity.LAUNCH_DEPARTMENT_ID = userInfo.DEPARTMENT_ID;
|
||||
}
|
||||
}
|
||||
if (entity.LAUNCH_DEPARTMENT_ID == null)
|
||||
{
|
||||
throw new Exception("部门信息错误");
|
||||
}
|
||||
if (entity.ASSIGNEE_ID == null)
|
||||
{
|
||||
if (entity.STATUS == OGEmployeeOpinionReportStatus.草稿)
|
||||
{
|
||||
if (userInfo.APPROVE_ROLE_ID!=null&& userInfo.Nav_ApproveRole.NAME.Contains("负责人"))
|
||||
{
|
||||
entity.ASSIGNEE_ID = GetEntity<T_FM_DEPARTMENT>(t => t.ID == entity.LAUNCH_DEPARTMENT_ID, "Nav_Parent").Nav_Parent.USER_ID;
|
||||
}
|
||||
else
|
||||
{
|
||||
entity.ASSIGNEE_ID = GetEntity<T_FM_DEPARTMENT>(t => t.ID == entity.LAUNCH_DEPARTMENT_ID).USER_ID;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (entity.ASSIGNEE_ID == null)
|
||||
{
|
||||
throw new Exception("部门负责人信息错误");
|
||||
}
|
||||
T_FM_NOTIFICATION_TASK sendNotice = null;
|
||||
T_FM_NOTIFICATION_TASK finishNotice = null;
|
||||
|
||||
if (entity.PUBLISH != null && entity.PUBLISH.Equals("SaveAndNotify"))
|
||||
{
|
||||
DateTime dtEnd = NotificationTaskService.GetTaskEndTime(FMTASKTYPE.Default, entity.ORG_ID.Value, DateTime.Now, null, null);
|
||||
if (entity.STATUS == (int)OGEmployeeOpinionReportStatus.草稿)
|
||||
{
|
||||
if (string.IsNullOrEmpty(entity.NAME))
|
||||
{
|
||||
throw new Exception("请填写建议事项名称");
|
||||
}
|
||||
if (string.IsNullOrEmpty(entity.DESCRIPTION))
|
||||
{
|
||||
throw new Exception("请填写建议事项描述");
|
||||
}
|
||||
entity.STATUS = OGEmployeeOpinionReportStatus.确认中;
|
||||
sendNotice = NotificationTaskService.InsertUserNoticeTaskModel("员工意见受理", entity.ID, entity.ORG_ID.Value, entity.ASSIGNEE_ID.Value, "", DateTime.Now, dtEnd, 1, "OG012");
|
||||
}
|
||||
else if (entity.STATUS == OGEmployeeOpinionReportStatus.确认中)
|
||||
{
|
||||
if (string.IsNullOrEmpty(entity.ASSIGNEE_DESCRIPTION))
|
||||
{
|
||||
throw new Exception("请填写受理状况描述");
|
||||
}
|
||||
if (entity.DO_USER_ID == null)
|
||||
{
|
||||
throw new Exception("请选择落实人");
|
||||
}
|
||||
entity.STATUS = OGEmployeeOpinionReportStatus.审核中;
|
||||
sendNotice = NotificationTaskService.InsertUserNoticeTaskModel("员工意见落实", entity.ID, entity.ORG_ID.Value, entity.DO_USER_ID.Value, "", DateTime.Now, dtEnd, 1, "OG012");
|
||||
}
|
||||
else if (entity.STATUS == OGEmployeeOpinionReportStatus.审核中)
|
||||
{
|
||||
if (string.IsNullOrEmpty(entity.IMPLEMENT_DESCRIPTION))
|
||||
{
|
||||
throw new Exception("请填写落实情况描述");
|
||||
}
|
||||
|
||||
entity.STATUS = OGEmployeeOpinionReportStatus.评价中;
|
||||
sendNotice = NotificationTaskService.InsertUserNoticeTaskModel("员工意见评价", entity.ID, entity.ORG_ID.Value, entity.USER_ID.Value, "", DateTime.Now, dtEnd, 1, "OG012");
|
||||
}
|
||||
else if (entity.STATUS == OGEmployeeOpinionReportStatus.评价中)
|
||||
{
|
||||
entity.STATUS = OGEmployeeOpinionReportStatus.归档;
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new Exception("当前状态不可提交");
|
||||
}
|
||||
if (entity.TaskID != Guid.Empty)
|
||||
{
|
||||
finishNotice = NotificationTaskService.GetTaskFinishModel(entity.TaskID, "OG011_SHOWPRINT");
|
||||
}
|
||||
}
|
||||
var Nav_FileList = entity.Nav_FileList;
|
||||
entity.Nav_FileList = null;
|
||||
var Nav_ImpFileList = entity.Nav_ImpFileList;
|
||||
entity.Nav_ImpFileList = null;
|
||||
UnifiedCommit(() =>
|
||||
{
|
||||
UpdateEntity(entity);
|
||||
if (Nav_FileList != null && Nav_FileList.Any())
|
||||
BantchSaveEntity(Nav_FileList);
|
||||
if (Nav_ImpFileList != null && Nav_ImpFileList.Any())
|
||||
BantchSaveEntity(Nav_ImpFileList);
|
||||
if (sendNotice != null)
|
||||
UpdateEntityNoCommit(sendNotice);
|
||||
if (finishNotice != null)
|
||||
UpdateEntityNoCommit(finishNotice);
|
||||
});
|
||||
return true;
|
||||
});
|
||||
}
|
||||
/// <summary>
|
||||
/// 查询
|
||||
/// </summary>
|
||||
/// <param name="filter"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("AdviceTypes")]
|
||||
public JsonActionResult<IEnumerable<T_OG_EMPLOYEE_ITEM_CATEGORY_ENUM>> AdviceTypes([FromBody] KeywordFilter filter)
|
||||
{
|
||||
return SafeExecute<IEnumerable<T_OG_EMPLOYEE_ITEM_CATEGORY_ENUM>>(() =>
|
||||
{
|
||||
return GetEntities<T_OG_EMPLOYEE_ITEM_CATEGORY_ENUM>(null, filter);
|
||||
});
|
||||
}
|
||||
/// <summary>
|
||||
/// 查询
|
||||
/// </summary>
|
||||
/// <param name="filter"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("UpdateAdviceType")]
|
||||
public JsonActionResult<bool> UpdateAdviceType([FromBody] T_OG_EMPLOYEE_ITEM_CATEGORY_ENUM entity)
|
||||
{
|
||||
return SafeExecute<bool>(() =>
|
||||
{
|
||||
UpdateEntity(entity);
|
||||
return true;
|
||||
});
|
||||
}
|
||||
/// <summary>
|
||||
/// 查询
|
||||
/// </summary>
|
||||
/// <param name="filter"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("GetAdviceType")]
|
||||
public JsonActionResult<T_OG_EMPLOYEE_ITEM_CATEGORY_ENUM> GetAdviceType([FromBody] KeywordFilter filter)
|
||||
{
|
||||
return SafeExecute<T_OG_EMPLOYEE_ITEM_CATEGORY_ENUM>(() =>
|
||||
{
|
||||
return GetEntity<T_OG_EMPLOYEE_ITEM_CATEGORY_ENUM>(null, filter);
|
||||
});
|
||||
}
|
||||
/// <summary>
|
||||
/// 查询
|
||||
/// </summary>
|
||||
/// <param name="filter"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("DelAdviceType")]
|
||||
public JsonActionResult<bool> DelAdviceType(string id)
|
||||
{
|
||||
return SafeExecute<bool>(() =>
|
||||
{
|
||||
|
||||
return DeleteEntity<T_OG_EMPLOYEE_ITEM_CATEGORY_ENUM>(id);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,188 +0,0 @@
|
||||
using APT.BaseData.Domain.Entities;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using APT.BaseData.Domain.IServices.FM;
|
||||
using APT.BaseData.Domain.IServices;
|
||||
using APT.Infrastructure.Core;
|
||||
using APT.MS.Domain.Entities.OG;
|
||||
using APT.MS.Domain.Enums;
|
||||
using APT.Utility;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using System;
|
||||
using APT.BaseData.Domain.Enums;
|
||||
|
||||
namespace APT.SC.WebApi.Controllers.Api.OG
|
||||
{
|
||||
[Route("api/OG/OGEmployeeRefuseItemReport")]
|
||||
public class OGEmployeeRefuseItemReportController : AuthorizeApiController<T_OG_EMPLOYEE_REFUSE_ITEM_REPORT>
|
||||
{
|
||||
IFMNotificationTaskService NotificationTaskService { get; set; }
|
||||
public OGEmployeeRefuseItemReportController(IFMNotificationTaskService notificationTaskService, IPFCodeRuleService codeRuleService)
|
||||
{
|
||||
NotificationTaskService = notificationTaskService;
|
||||
}
|
||||
/// <summary>
|
||||
/// 更新
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("FullUpdate")]
|
||||
public JsonActionResult<bool> FullUpdate([FromBody] T_OG_EMPLOYEE_REFUSE_ITEM_REPORT entity)
|
||||
{
|
||||
return SafeExecute<bool>(() =>
|
||||
{
|
||||
if (entity.START_TIME == null)
|
||||
{
|
||||
entity.START_TIME = DateTime.Now;
|
||||
}
|
||||
if (entity.USER_ID == null)
|
||||
{
|
||||
if (entity.STATUS == OGEmployeeOpinionReportStatus.草稿)
|
||||
{
|
||||
entity.USER_ID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID;
|
||||
}
|
||||
}
|
||||
if (entity.LAUNCH_DEPARTMENT_ID == null)
|
||||
{
|
||||
if (entity.STATUS == (int)OGEmployeeOpinionReportStatus.草稿)
|
||||
{
|
||||
entity.LAUNCH_DEPARTMENT_ID = APT.Infrastructure.Api.AppContext.CurrentSession.DepartmentID;
|
||||
}
|
||||
}
|
||||
if (entity.LAUNCH_DEPARTMENT_ID == null)
|
||||
{
|
||||
throw new Exception("部门信息错误");
|
||||
}
|
||||
var ASSIGNEE_NAME = "";
|
||||
if (entity.ASSIGNEE_ID == null)
|
||||
{
|
||||
if (entity.STATUS == (int)OGEmployeeOpinionReportStatus.草稿)
|
||||
{
|
||||
var isNormal = GetEntity<T_FM_USER>(t => t.ID == entity.USER_ID, new string[] { "Nav_Department.Nav_Parent.Nav_User", "Nav_Department.Nav_Parent.Nav_Parent.Nav_User", "Nav_ApproveRole" });
|
||||
if (isNormal != null)
|
||||
{
|
||||
if (isNormal.Nav_ApproveRole != null && isNormal.Nav_ApproveRole.NAME.Equals("班组负责人"))//到车间负责人
|
||||
{
|
||||
entity.ASSIGNEE_ID = isNormal.Nav_Department.Nav_Parent.Nav_Parent.Nav_User.ID;
|
||||
ASSIGNEE_NAME = isNormal.Nav_Department.Nav_Parent.Nav_Parent.Nav_User.NAME;
|
||||
}
|
||||
else if (isNormal.Nav_ApproveRole != null && isNormal.Nav_ApproveRole.NAME.Equals("车间负责人"))//到副总
|
||||
{
|
||||
var fuzong = GetEntity<T_FM_USER>(t => t.Nav_ApproveRole.NAME == "分管安全副总");
|
||||
if(fuzong != null)
|
||||
{
|
||||
entity.ASSIGNEE_ID = fuzong.ID;
|
||||
ASSIGNEE_NAME = fuzong.NAME;
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new Exception("未找到该部门副总!");
|
||||
}
|
||||
}
|
||||
else if (isNormal.Nav_ApproveRole != null && isNormal.Nav_ApproveRole.NAME.Equals("部门负责人"))//到总经理
|
||||
{
|
||||
entity.ASSIGNEE_ID = isNormal.Nav_Department.Nav_Parent.Nav_User.ID;
|
||||
ASSIGNEE_NAME = isNormal.Nav_Department.Nav_Parent.Nav_User.NAME;
|
||||
}
|
||||
else
|
||||
{
|
||||
if(isNormal.Nav_Department.DEPARTMENT_TYPE==(int)FMDepartmentType.部门)
|
||||
{
|
||||
var fuzong = GetEntity<T_FM_USER>(t => t.Nav_ApproveRole.NAME == "分管安全副总");
|
||||
if (fuzong != null)
|
||||
{
|
||||
entity.ASSIGNEE_ID = fuzong.ID;
|
||||
ASSIGNEE_NAME = fuzong.NAME;
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new Exception("未找到该部门副总!");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
entity.ASSIGNEE_ID = isNormal.Nav_Department.Nav_Parent.Nav_User.ID;
|
||||
ASSIGNEE_NAME = isNormal.Nav_Department.Nav_Parent.Nav_User.NAME;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
var Nav_FileList = entity.Nav_FileList;
|
||||
entity.Nav_FileList = null;
|
||||
var Nav_InvestigationFileList = entity.Nav_InvestigationFileList;
|
||||
entity.Nav_InvestigationFileList = null;
|
||||
T_FM_NOTIFICATION_TASK sendNotice = null;
|
||||
T_FM_NOTIFICATION_TASK finishNotice = null;
|
||||
if (entity.PUBLISH != null && entity.PUBLISH.Equals("SaveAndNotify"))
|
||||
{
|
||||
if (entity.TaskID != Guid.Empty)
|
||||
{
|
||||
finishNotice = NotificationTaskService.FOGetTaskFinishModel(entity.TaskID,entity.ID, "OG013_SHOWPRINT");
|
||||
}
|
||||
if (entity.STATUS == (int)OGEmployeeOpinionReportStatus.草稿)
|
||||
{
|
||||
if (string.IsNullOrEmpty(entity.NAME))
|
||||
{
|
||||
throw new Exception("请填写事项名称");
|
||||
}
|
||||
if (string.IsNullOrEmpty(entity.DESCRIPTION))
|
||||
{
|
||||
throw new Exception("请填写事项描述");
|
||||
}
|
||||
entity.STATUS = OGEmployeeOpinionReportStatus.确认中;
|
||||
sendNotice = NotificationTaskService.InsertUserNoticeTaskModel("员工拒绝事项受理", entity.ID, entity.ORG_ID, entity.ASSIGNEE_ID.Value, ASSIGNEE_NAME, DateTime.Now, DateTime.Now.AddHours(12), 0, "OG014_EDIT1");
|
||||
}
|
||||
else if (entity.STATUS == OGEmployeeOpinionReportStatus.确认中)
|
||||
{
|
||||
if (string.IsNullOrEmpty(entity.ASSIGNEE_DESCRIPTION))
|
||||
{
|
||||
throw new Exception("请填写受理状况描述");
|
||||
}
|
||||
if (entity.IMPLEMENT_USER_ID == null)
|
||||
{
|
||||
throw new Exception("请选择调查人");
|
||||
}
|
||||
entity.STATUS = OGEmployeeOpinionReportStatus.审核中;
|
||||
var implementUser = GetEntity<T_FM_USER>(entity.IMPLEMENT_USER_ID.Value);
|
||||
entity.IMPLEMENT_DEPARTMENT_ID = implementUser.DEPARTMENT_ID;
|
||||
sendNotice = NotificationTaskService.InsertUserNoticeTaskModel("员工拒绝事项调查", entity.ID, entity.ORG_ID, entity.IMPLEMENT_USER_ID.Value, implementUser.NAME, DateTime.Now, DateTime.Now.AddHours(12), 0, "OG014_EDIT2");
|
||||
}
|
||||
else if (entity.STATUS == OGEmployeeOpinionReportStatus.审核中)
|
||||
{
|
||||
if (string.IsNullOrEmpty(entity.IMPLEMENT_DESCRIPTION))
|
||||
{
|
||||
throw new Exception("请填写落实情况描述");
|
||||
}
|
||||
|
||||
entity.STATUS = OGEmployeeOpinionReportStatus.评价中;
|
||||
var sendUser = GetEntity<T_FM_USER>(entity.USER_ID.Value);
|
||||
sendNotice = NotificationTaskService.InsertUserNoticeTaskModel("员工拒绝事项评价", entity.ID, entity.ORG_ID, entity.USER_ID.Value, sendUser.NAME, DateTime.Now, DateTime.Now.AddHours(12), 0, "OG014_EDIT3");
|
||||
}
|
||||
else if (entity.STATUS == OGEmployeeOpinionReportStatus.评价中)
|
||||
{
|
||||
entity.STATUS = OGEmployeeOpinionReportStatus.归档;
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new Exception("当前状态不可提交");
|
||||
}
|
||||
}
|
||||
UnifiedCommit(() =>
|
||||
{
|
||||
UpdateEntityNoCommit(entity);
|
||||
if (Nav_FileList != null)
|
||||
BantchSaveEntityNoCommit(Nav_FileList);
|
||||
if (Nav_InvestigationFileList != null)
|
||||
BantchSaveEntityNoCommit(Nav_InvestigationFileList);
|
||||
if (finishNotice != null)
|
||||
UpdateEntityNoCommit(finishNotice);
|
||||
if (sendNotice != null)
|
||||
UpdateEntityNoCommit(sendNotice);
|
||||
|
||||
});
|
||||
return true;
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,210 +0,0 @@
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using APT.BaseData.Domain.IServices.FM;
|
||||
using APT.BaseData.Domain.IServices;
|
||||
using APT.Infrastructure.Core;
|
||||
using APT.MS.Domain.Entities.OG;
|
||||
using APT.MS.Domain.Enums;
|
||||
using APT.Utility;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using System;
|
||||
using APT.BaseData.Domain.Entities;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace APT.SC.WebApi.Controllers.Api.OG
|
||||
{
|
||||
[Route("api/OG/OGInnerContact")]
|
||||
public class OGInnerContactController : AuthorizeApiController<T_OG_INNER_CONTACT>
|
||||
{
|
||||
IFMNotificationTaskService NotificationTaskService { get; set; }
|
||||
public OGInnerContactController(IFMNotificationTaskService notificationTaskService, IPFCodeRuleService codeRuleService)
|
||||
{
|
||||
NotificationTaskService = notificationTaskService;
|
||||
}
|
||||
/// <summary>
|
||||
/// 更新
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("FullUpdate")]
|
||||
public JsonActionResult<bool> FullUpdate([FromBody]T_OG_INNER_CONTACT entity)
|
||||
{
|
||||
return SafeExecute<bool>(() =>
|
||||
{
|
||||
if (entity.USER_ID == null)
|
||||
{
|
||||
if (entity.STATUS == (int)OGEmployeeOpinionStatus.草稿)
|
||||
{
|
||||
entity.USER_ID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID;
|
||||
}
|
||||
}
|
||||
if (entity.USER_ID == null)
|
||||
{
|
||||
throw new Exception("用户信息错误");
|
||||
}
|
||||
List<T_FM_NOTIFICATION_TASK> sendNotice = new List<T_FM_NOTIFICATION_TASK>();
|
||||
if (entity.PUBLISH != null && entity.PUBLISH.Equals("SaveAndNotify"))
|
||||
{
|
||||
if (entity.STATUS != (int)OGInnerContactStatus.草稿 && entity.STATUS != OGInnerContactStatus.落实中)
|
||||
{
|
||||
throw new Exception("当前状态不可提交");
|
||||
}
|
||||
if (entity.STATUS == (int)OGInnerContactStatus.草稿)
|
||||
{
|
||||
if (entity.FORM_DEPARTMENT_ID == null)
|
||||
{
|
||||
throw new Exception("请指定责任部门");
|
||||
}
|
||||
if (entity.FROM_USER_ID == null)
|
||||
{
|
||||
throw new Exception("请指定沟通人员");
|
||||
}
|
||||
if (entity.TO_USER_ID == null)
|
||||
{
|
||||
throw new Exception("请指定被沟通人员");
|
||||
}
|
||||
if (entity.DO_DEPARTMENT_ID != null && entity.DO_USER_ID == null)
|
||||
{
|
||||
throw new Exception("当前已选落实部门,请指定落实人员");
|
||||
}
|
||||
if (entity.DO_USER_ID != null && entity.DO_DEPARTMENT_ID == null)
|
||||
{
|
||||
var u = GetEntity<T_FM_USER>(entity.DO_USER_ID.Value);
|
||||
if (u != null)
|
||||
{
|
||||
entity.DO_DEPARTMENT_ID = u.DEPARTMENT_ID;
|
||||
}
|
||||
}
|
||||
}
|
||||
if(entity.FROM_USER_ID == APT.Infrastructure.Api.AppContext.CurrentSession.UserID)
|
||||
{
|
||||
entity.FORM_USER_TIME = DateTime.Now;
|
||||
}
|
||||
else
|
||||
{
|
||||
sendNotice.Add(NotificationTaskService.InsertUserNoticeTaskModel("内部联系沟通确认", entity.ID, entity.ORG_ID, entity.FROM_USER_ID.Value, GetEntity<T_FM_USER>(entity.FROM_USER_ID.Value).NAME, DateTime.Now, DateTime.Now.AddDays(1), 0, "OG015_SHOWPRINT"));
|
||||
}
|
||||
sendNotice.Add(NotificationTaskService.InsertUserNoticeTaskModel("内部联系沟通确认", entity.ID, entity.ORG_ID, entity.TO_USER_ID.Value, GetEntity<T_FM_USER>(entity.TO_USER_ID.Value).NAME, DateTime.Now, DateTime.Now.AddDays(1), 0, "OG015_SHOWPRINT"));
|
||||
if (entity.STATUS == (int)OGInnerContactStatus.草稿)
|
||||
{
|
||||
if (entity.DO_USER_ID == null)
|
||||
{
|
||||
entity.STATUS = OGInnerContactStatus.完成;
|
||||
return true;
|
||||
}
|
||||
entity.STATUS = OGInnerContactStatus.落实中;
|
||||
}
|
||||
else
|
||||
{
|
||||
entity.STATUS = OGInnerContactStatus.完成;
|
||||
}
|
||||
}
|
||||
var Nav_ItemFiles = entity.Nav_ItemFiles;
|
||||
entity.Nav_ItemFiles = null;
|
||||
var Nav_DoFiles = entity.Nav_DoFiles;
|
||||
entity.Nav_DoFiles = null;
|
||||
UnifiedCommit(() =>
|
||||
{
|
||||
UpdateEntityNoCommit(entity);
|
||||
if (Nav_ItemFiles != null)
|
||||
BantchSaveEntityNoCommit(Nav_ItemFiles);
|
||||
if (Nav_DoFiles != null)
|
||||
BantchSaveEntityNoCommit(Nav_DoFiles);
|
||||
if (sendNotice != null)
|
||||
BantchSaveEntityNoCommit(sendNotice);
|
||||
});
|
||||
return true;
|
||||
});
|
||||
}
|
||||
/// <summary>
|
||||
/// 内部联系确认
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("PersonalAgree")]
|
||||
public JsonActionResult<bool> PersonalAgree([FromBody] T_OG_INNER_CONTACT entity)
|
||||
{
|
||||
return SafeExecute<bool>(() =>
|
||||
{
|
||||
var orgId = APT.Infrastructure.Api.AppContext.CurrentSession.OrgId;
|
||||
var userID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID;
|
||||
var taskID = entity.TaskID;
|
||||
entity = GetEntity<T_OG_INNER_CONTACT>(entity.ID);
|
||||
T_FM_NOTIFICATION_TASK sendNotice = null;
|
||||
T_FM_NOTIFICATION_TASK finishNotice = null;
|
||||
if (entity != null)
|
||||
{
|
||||
if(userID == entity.FROM_USER_ID)
|
||||
{
|
||||
entity.FORM_USER_TIME=DateTime.Now;
|
||||
}
|
||||
else
|
||||
{
|
||||
entity.TO_USER_TIME = DateTime.Now;
|
||||
}
|
||||
if (entity.FORM_USER_TIME != DateTime.MinValue && entity.TO_USER_TIME != DateTime.MinValue)
|
||||
{
|
||||
sendNotice=NotificationTaskService.InsertUserNoticeTaskModel("内部联系沟通落实", entity.ID, entity.ORG_ID, entity.DO_USER_ID.Value, GetEntity<T_FM_USER>(entity.DO_USER_ID.Value).NAME, DateTime.Now, DateTime.Now.AddDays(1), 0, "OG016_EDIT");
|
||||
}
|
||||
}
|
||||
if (taskID != Guid.Empty)
|
||||
{
|
||||
finishNotice = NotificationTaskService.FOGetTaskFinishModel(taskID, entity.ID);
|
||||
}
|
||||
UnifiedCommit(() =>
|
||||
{
|
||||
AddEntityNoCommit(sendNotice);
|
||||
UpdateEntityNoCommit(entity);
|
||||
UpdateEntityNoCommit(finishNotice);
|
||||
});
|
||||
return true;
|
||||
});
|
||||
}
|
||||
/// <summary>
|
||||
/// 落实人员填写
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("FullUpdateConfirm")]
|
||||
public JsonActionResult<bool> FullUpdateConfirm([FromBody] T_OG_INNER_CONTACT entity)
|
||||
{
|
||||
return SafeExecute<bool>(() =>
|
||||
{
|
||||
List<T_FM_NOTIFICATION_TASK> sendNotice = new List<T_FM_NOTIFICATION_TASK>();
|
||||
T_FM_NOTIFICATION_TASK finishNotice = null;
|
||||
if (entity.PUBLISH != null && entity.PUBLISH.Equals("SaveAndNotify"))
|
||||
{
|
||||
if (entity.STATUS != (int)OGInnerContactStatus.草稿 && entity.STATUS != OGInnerContactStatus.落实中)
|
||||
{
|
||||
throw new Exception("当前状态不可提交");
|
||||
}
|
||||
sendNotice.Add(NotificationTaskService.InsertUserNoticeTaskModel("内部联系沟通完成确认", entity.ID, entity.ORG_ID, entity.FROM_USER_ID.Value, GetEntity<T_FM_USER>(entity.FROM_USER_ID.Value).NAME, DateTime.Now, DateTime.Now.AddDays(1), 0, "OG015_SHOWPRINT"));
|
||||
sendNotice.Add(NotificationTaskService.InsertUserNoticeTaskModel("内部联系沟通完成确认", entity.ID, entity.ORG_ID, entity.TO_USER_ID.Value, GetEntity<T_FM_USER>(entity.TO_USER_ID.Value).NAME, DateTime.Now, DateTime.Now.AddDays(1), 0, "OG015_SHOWPRINT"));
|
||||
entity.STATUS = OGInnerContactStatus.完成;
|
||||
if (entity.TaskID != Guid.Empty)
|
||||
{
|
||||
finishNotice = NotificationTaskService.FOGetTaskFinishModel(entity.TaskID, entity.ID);
|
||||
}
|
||||
}
|
||||
var Nav_ItemFiles = entity.Nav_ItemFiles;
|
||||
entity.Nav_ItemFiles = null;
|
||||
var Nav_DoFiles = entity.Nav_DoFiles;
|
||||
entity.Nav_DoFiles = null;
|
||||
UnifiedCommit(() =>
|
||||
{
|
||||
UpdateEntityNoCommit(entity);
|
||||
if (Nav_ItemFiles != null)
|
||||
BantchSaveEntityNoCommit(Nav_ItemFiles);
|
||||
if (Nav_DoFiles != null)
|
||||
BantchSaveEntityNoCommit(Nav_DoFiles);
|
||||
if (sendNotice != null)
|
||||
BantchSaveEntityNoCommit(sendNotice);
|
||||
UpdateEntityNoCommit(finishNotice);
|
||||
|
||||
});
|
||||
return true;
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,105 +0,0 @@
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using APT.BaseData.Domain.Enums;
|
||||
using APT.Infrastructure.Core;
|
||||
using APT.MS.Domain.Entities.OG;
|
||||
using APT.MS.Domain.Entities.SC.SC;
|
||||
using APT.MS.Domain.Enums;
|
||||
using APT.Utility;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using NPOI.SS.Formula.Functions;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
|
||||
namespace APT.SC.WebApi.Controllers.Api.OG
|
||||
{
|
||||
[Route("api/OG/OGPolicyDocument")]
|
||||
public class OGPolicyDocumentController : AuthorizeApiController<T_OG_POLICY_DOCUMENT>
|
||||
{
|
||||
[HttpPost, Route("FullUpdate")]
|
||||
public JsonActionResult<bool> FullUpdate([FromBody] T_OG_POLICY_DOCUMENT entity)
|
||||
{
|
||||
return SafeExecute(() =>
|
||||
{
|
||||
var newditailID = Guid.NewGuid();
|
||||
var Nav_Files = entity.Nav_Files;
|
||||
var Nav_AppointUsers = entity.Nav_AppointUsers;
|
||||
Nav_Files.ForEach(t =>
|
||||
{
|
||||
t.POLICY_DOCUMENT_DETAIL_ID = newditailID;
|
||||
});
|
||||
Nav_AppointUsers.ForEach(t =>
|
||||
{
|
||||
t.POLICY_DOCUMENT_DETAIL_ID = newditailID;
|
||||
t.Nav_User = null;
|
||||
});
|
||||
|
||||
var isHave = GetEntity<T_OG_POLICY_DOCUMENT>(t => t.APPOINT_TYPE == entity.APPOINT_TYPE);
|
||||
if (isHave != null)
|
||||
{
|
||||
entity.ID = isHave.ID;
|
||||
entity.VERSION = isHave.VERSION + 1;
|
||||
var oldDetail = GetEntities<T_OG_POLICY_DOCUMENT_DETAIL>(t => t.POLICY_DOCUMENT_ID == isHave.ID&&t.STATUS== HMOperationStepEnum.有效, new BaseFilter(entity.ORG_ID));
|
||||
foreach (var item in oldDetail)
|
||||
{
|
||||
item.STATUS = HMOperationStepEnum.作废;
|
||||
}
|
||||
BantchUpdateEntity(oldDetail);
|
||||
}
|
||||
if (entity.USER_ID == Guid.Empty)
|
||||
{
|
||||
entity.USER_ID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value;
|
||||
}
|
||||
if (entity.CODE == null)
|
||||
{
|
||||
entity.CODE = "RM" + DateTime.Now.ToString("yyyyMMddHHmmss");
|
||||
}
|
||||
T_OG_POLICY_DOCUMENT_DETAIL newDetail = new T_OG_POLICY_DOCUMENT_DETAIL
|
||||
{
|
||||
ID = newditailID,
|
||||
POLICY_DOCUMENT_ID = entity.ID,
|
||||
CODE = entity.CODE,
|
||||
NAME = entity.NAME,
|
||||
APPOINT_TYPE = entity.APPOINT_TYPE,
|
||||
VERSION = entity.VERSION,
|
||||
DEPARTMENT_ID = entity.DEPARTMENT_ID,
|
||||
APPOINT_AGREEUSER_ID = entity.APPOINT_AGREEUSER_ID,
|
||||
PUBLISH_TIME = entity.PUBLISH_TIME,
|
||||
APPOINT_EFFECT_TIME = entity.APPOINT_EFFECT_TIME,
|
||||
APPOINT_REASON = entity.APPOINT_REASON,
|
||||
USER_ID = entity.USER_ID,
|
||||
ORG_ID = entity.ORG_ID
|
||||
};
|
||||
|
||||
entity.Nav_Files = null;
|
||||
entity.Nav_AppointUsers = null;
|
||||
UnifiedCommit(() =>
|
||||
{
|
||||
UpdateEntityNoCommit(entity);
|
||||
if (newDetail != null)
|
||||
AddEntityNoCommit(newDetail);
|
||||
if (Nav_Files != null && Nav_Files.Any())
|
||||
BantchSaveEntityNoCommit(Nav_Files);
|
||||
if (Nav_AppointUsers != null && Nav_AppointUsers.Any())
|
||||
BantchSaveEntityNoCommit(Nav_AppointUsers);
|
||||
});
|
||||
return true;
|
||||
});
|
||||
}
|
||||
/// <summary>
|
||||
/// 排序分页查询数据
|
||||
/// </summary>
|
||||
/// <param name="pageFilter">分页过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("FullOrderPaged")]
|
||||
public PagedActionResult<T_OG_POLICY_DOCUMENT_DETAIL> FullOrderPaged([FromBody] KeywordPageFilter pageFilter)
|
||||
{
|
||||
|
||||
var modify = pageFilter.FilterGroup.Rules.FirstOrDefault(t => t.Field == "ID");
|
||||
modify.Field = "POLICY_DOCUMENT_ID";
|
||||
PagedActionResult<T_OG_POLICY_DOCUMENT_DETAIL> result = this.GetOrderPageEntities<T_OG_POLICY_DOCUMENT_DETAIL>(null, pageFilter);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,126 +0,0 @@
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using APT.BaseData.Domain.IServices.FM;
|
||||
using APT.BaseData.Domain.IServices;
|
||||
using APT.BaseData.Services.Services.FM;
|
||||
using APT.Infrastructure.Core;
|
||||
using APT.MS.Domain.Entities.OG;
|
||||
using APT.MS.Domain.Enums;
|
||||
using APT.Utility;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using System;
|
||||
using System.Linq;
|
||||
using APT.BaseData.Domain.Entities;
|
||||
|
||||
namespace APT.SC.WebApi.Controllers.Api.OG
|
||||
{
|
||||
[Route("api/OG/OGExternalContactCommunicate")]
|
||||
public class OGExternalContactCommunicateController : AuthorizeApiController<T_OG_EXTERNAL_CONTACT_COMMUNICATE>
|
||||
{
|
||||
IFMNotificationTaskService NotificationTaskService { get; set; }
|
||||
|
||||
public OGExternalContactCommunicateController(IFMNotificationTaskService notificationTaskService, IPFCodeRuleService codeRuleService)
|
||||
{
|
||||
NotificationTaskService = notificationTaskService;
|
||||
}
|
||||
[HttpPost, Route("FullUpdate")]
|
||||
public JsonActionResult<bool> FullUpdate([FromBody] T_OG_EXTERNAL_CONTACT_COMMUNICATE entity)
|
||||
{
|
||||
return SafeExecute<bool>(() =>
|
||||
{
|
||||
|
||||
if (entity.START_TIME == null)
|
||||
{
|
||||
entity.START_TIME = DateTime.Now;
|
||||
}
|
||||
var Nav_FileList = entity.Nav_FileList;
|
||||
entity.Nav_FileList = null;
|
||||
var Nav_ImpFileList = entity.Nav_ImpFileList;
|
||||
entity.Nav_ImpFileList = null;
|
||||
T_FM_NOTIFICATION_TASK sendNotice = null;
|
||||
T_FM_NOTIFICATION_TASK finishNotice = null;
|
||||
if (entity.PUBLISH != null && entity.PUBLISH.Equals("SaveAndNotify"))
|
||||
{
|
||||
if (entity.TaskID!=Guid.Empty)
|
||||
{
|
||||
finishNotice = NotificationTaskService.GetTaskFinishModel(entity.TaskID,"OG023_SHOWPRINT");
|
||||
}
|
||||
if (entity.STATUS == OGInnerContactStatus.草稿)
|
||||
{
|
||||
if (string.IsNullOrEmpty(entity.EXTERNAL_COMMUNICATE_PERSON))
|
||||
{
|
||||
throw new Exception("请填写外部单位沟通人");
|
||||
}
|
||||
if (string.IsNullOrEmpty(entity.COMMUNICATE_PURPOSE))
|
||||
{
|
||||
throw new Exception("请填写沟通目的");
|
||||
}
|
||||
if (string.IsNullOrEmpty(entity.COMMUNICATE_NAME))
|
||||
{
|
||||
throw new Exception("请填写沟通事项名称");
|
||||
}
|
||||
if (string.IsNullOrEmpty(entity.COMMUNICATE_DES))
|
||||
{
|
||||
throw new Exception("请填写沟通事项描述");
|
||||
}
|
||||
if (entity.DO_DEPARTMENT_ID != null && entity.DO_USER_ID == null)
|
||||
{
|
||||
throw new Exception("当前已选落实部门,请指定落实人员");
|
||||
}
|
||||
if (entity.USER_ID != null && entity.DEPARTMENT_ID == null)
|
||||
{
|
||||
var u = GetEntity<T_FM_USER>(entity.USER_ID.Value);
|
||||
if (u != null)
|
||||
{
|
||||
entity.DEPARTMENT_ID = u.DEPARTMENT_ID;
|
||||
}
|
||||
}
|
||||
var doUserName = "";
|
||||
if (entity.DO_USER_ID != null && entity.DO_DEPARTMENT_ID == null)
|
||||
{
|
||||
var u = GetEntity<T_FM_USER>(t => t.ID == entity.DO_USER_ID.Value);
|
||||
if (u != null)
|
||||
{
|
||||
entity.DO_DEPARTMENT_ID = u.DEPARTMENT_ID;
|
||||
doUserName = u.NAME;
|
||||
}
|
||||
}
|
||||
if (entity.DO_USER_ID != null)
|
||||
{
|
||||
entity.STATUS = OGInnerContactStatus.落实中;
|
||||
sendNotice=NotificationTaskService.InsertUserNoticeTaskModel("外部联系沟通落实", entity.ID, entity.ORG_ID.Value, entity.DO_USER_ID.Value, doUserName, DateTime.Now, DateTime.Now.AddDays(1), 1, "OG024_EDIT");
|
||||
}
|
||||
else
|
||||
{
|
||||
entity.STATUS = OGInnerContactStatus.完成;
|
||||
}
|
||||
}
|
||||
else if (entity.STATUS == OGInnerContactStatus.落实中)
|
||||
{
|
||||
if (string.IsNullOrEmpty(entity.IMPLEMENT_DESCRIPTION))
|
||||
{
|
||||
throw new Exception("请填写落实情况描述");
|
||||
}
|
||||
entity.STATUS = OGInnerContactStatus.完成;
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new Exception("当前状态不可提交");
|
||||
}
|
||||
}
|
||||
UnifiedCommit(() =>
|
||||
{
|
||||
UpdateEntityNoCommit(entity);
|
||||
if (Nav_FileList != null && Nav_FileList.Any())
|
||||
BantchSaveEntityNoCommit(Nav_FileList);
|
||||
if (Nav_ImpFileList != null && Nav_ImpFileList.Any())
|
||||
BantchSaveEntityNoCommit(Nav_ImpFileList);
|
||||
if (finishNotice != null)
|
||||
UpdateEntityNoCommit(finishNotice);
|
||||
if (sendNotice != null)
|
||||
UpdateEntityNoCommit(sendNotice);
|
||||
});
|
||||
return true;
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,146 +0,0 @@
|
||||
using APT.BaseData.Domain.Entities;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using APT.BaseData.Domain.IServices.FM;
|
||||
using APT.BaseData.Domain.IServices;
|
||||
using APT.Infrastructure.Core;
|
||||
using APT.MS.Domain.Entities.OG;
|
||||
using APT.MS.Domain.Enums;
|
||||
using APT.Utility;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using InfluxData.Net.InfluxDb.Models.Responses;
|
||||
|
||||
namespace APT.SC.WebApi.Controllers.Api.OG
|
||||
{
|
||||
[Route("api/OG/OGExternalComplainAdvise")]
|
||||
public class OGExternalComplainAdviseController : AuthorizeApiController<T_OG_EXTERNAL_COMPLAIN_ADVISE>
|
||||
{
|
||||
IFMNotificationTaskService NotificationTaskService { get; set; }
|
||||
public OGExternalComplainAdviseController(IFMNotificationTaskService notificationTaskService, IPFCodeRuleService codeRuleService)
|
||||
{
|
||||
NotificationTaskService = notificationTaskService;
|
||||
}
|
||||
/// <summary>
|
||||
/// 更新
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("FullUpdate")]
|
||||
public JsonActionResult<bool> FullUpdate([FromBody]T_OG_EXTERNAL_COMPLAIN_ADVISE entity)
|
||||
{
|
||||
return SafeExecute<bool>(() =>
|
||||
{
|
||||
var Nav_FileList = entity.Nav_FileList;
|
||||
var Nav_SurveyFileList = entity.Nav_SurveyFileList;
|
||||
|
||||
if (entity.START_TIME == null)
|
||||
{
|
||||
entity.START_TIME = DateTime.Now;
|
||||
}
|
||||
if (entity.USER_ID == null)
|
||||
{
|
||||
if (entity.STATUS == OGExternalComplainAdviseStatus.草稿)
|
||||
{
|
||||
entity.USER_ID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID;
|
||||
}
|
||||
}
|
||||
if (entity.USER_ID == null)
|
||||
{
|
||||
throw new Exception("用户信息错误");
|
||||
}
|
||||
if (entity.EXTERNAL_COMPANY_ID == null)
|
||||
{
|
||||
throw new Exception("请选择外部单位");
|
||||
}
|
||||
|
||||
T_FM_NOTIFICATION_TASK sendNotice = null;
|
||||
T_FM_NOTIFICATION_TASK finishNotice = null;
|
||||
if (entity.PUBLISH != null && entity.PUBLISH.Equals("SaveAndNotify"))
|
||||
{
|
||||
if (entity.TaskID != Guid.Empty)
|
||||
{
|
||||
finishNotice = NotificationTaskService.GetTaskFinishModel(entity.TaskID, "OG025_SHOWPRINT");
|
||||
}
|
||||
if (entity.STATUS == (int)OGExternalComplainAdviseStatus.草稿)
|
||||
{
|
||||
if (string.IsNullOrEmpty(entity.NAME))
|
||||
{
|
||||
throw new Exception("请填写建议事项名称");
|
||||
}
|
||||
if (string.IsNullOrEmpty(entity.DESCRIPTION))
|
||||
{
|
||||
throw new Exception("请填写建议事项描述");
|
||||
}
|
||||
|
||||
//安环部
|
||||
var AHUser = GetEntity<T_FM_USER>(t => t.Nav_ApproveRole.NAME == "安环部负责人");
|
||||
entity.DEPARTMENT_ID = AHUser.DEPARTMENT_ID;
|
||||
entity.ASSIGNEE_ID = AHUser.ID;
|
||||
entity.STATUS = OGExternalComplainAdviseStatus.受理中;
|
||||
sendNotice = NotificationTaskService.InsertUserNoticeTaskModel("外部单位投诉建议受理", entity.ID, entity.ORG_ID, AHUser.ID, AHUser.NAME, DateTime.Now, DateTime.Now.AddDays(1), 0, "OG026");
|
||||
}
|
||||
else if (entity.STATUS == OGExternalComplainAdviseStatus.受理中)
|
||||
{
|
||||
if (string.IsNullOrEmpty(entity.ASSIGNEE_DESCRIPTION))
|
||||
{
|
||||
throw new Exception("请填写受理意见描述");
|
||||
}
|
||||
if (entity.SURVEY_DEPARTMENT_ID == null)
|
||||
{
|
||||
throw new Exception("请选择调查部门");
|
||||
}
|
||||
if (entity.SURVEY_USER_ID == null)
|
||||
{
|
||||
throw new Exception("请选择调查人员");
|
||||
}
|
||||
var u = GetEntity<T_FM_USER>(entity.SURVEY_USER_ID.Value);
|
||||
entity.STATUS = OGExternalComplainAdviseStatus.调查中;
|
||||
sendNotice = NotificationTaskService.InsertUserNoticeTaskModel("外部单位投诉建议调查", entity.ID, entity.ORG_ID, entity.SURVEY_USER_ID.Value, u.NAME, DateTime.Now, DateTime.Now.AddDays(1), 0, "OG026");
|
||||
}
|
||||
else if (entity.STATUS == OGExternalComplainAdviseStatus.调查中)
|
||||
{
|
||||
if (string.IsNullOrEmpty(entity.SURVEY_DESCRIPTION))
|
||||
{
|
||||
throw new Exception("请填写调查情况描述");
|
||||
}
|
||||
var u = GetEntity<T_FM_USER>(entity.USER_ID.Value);
|
||||
entity.STATUS = OGExternalComplainAdviseStatus.评价中;
|
||||
sendNotice = NotificationTaskService.InsertUserNoticeTaskModel("外部单位投诉建议评价", entity.ID, entity.ORG_ID, entity.USER_ID.Value, u.NAME, DateTime.Now, DateTime.Now.AddDays(1), 0, "OG026");
|
||||
}
|
||||
else if (entity.STATUS == OGExternalComplainAdviseStatus.评价中)
|
||||
{
|
||||
entity.STATUS = OGExternalComplainAdviseStatus.归档;
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new Exception("当前状态不可提交");
|
||||
}
|
||||
}
|
||||
entity.Nav_User = null;
|
||||
entity.Nav_ExternalContactDetail = null;
|
||||
entity.Nav_ItemEnum = null;
|
||||
entity.Nav_Department = null;
|
||||
entity.Nav_Assignee = null;
|
||||
entity.Nav_SurveyDepartment = null;
|
||||
entity.Nav_SurveyUser = null;
|
||||
entity.Nav_FileList = null;
|
||||
entity.Nav_SurveyFileList = null;
|
||||
UnifiedCommit(() =>
|
||||
{
|
||||
UpdateEntityNoCommit(entity);
|
||||
if (Nav_FileList != null)
|
||||
BantchSaveEntityNoCommit(Nav_FileList);
|
||||
if (Nav_SurveyFileList != null)
|
||||
BantchSaveEntityNoCommit(Nav_SurveyFileList);
|
||||
if (finishNotice != null)
|
||||
UpdateEntityNoCommit(finishNotice);
|
||||
if (sendNotice != null)
|
||||
UpdateEntityNoCommit(sendNotice);
|
||||
});
|
||||
return true;
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,154 +0,0 @@
|
||||
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.BaseData.Domain.IServices;
|
||||
using APT.BaseData.Services.DomainServices;
|
||||
using APT.Infrastructure.Core;
|
||||
using APT.MS.Domain.Entities.OG;
|
||||
using APT.MS.Domain.Enums;
|
||||
using APT.Utility;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using System;
|
||||
|
||||
|
||||
namespace APT.SC.WebApi.Controllers.Api.OG
|
||||
{
|
||||
[Route("api/OG/OGApproveRewardPunishmentReport")]
|
||||
public class OGApproveRewardPunishmentReportController : AuthorizeApiController<T_OG_APPROVE_REWARD_PUNISHMENT_REPORT>
|
||||
{
|
||||
IFMNotificationTaskService NotificationTaskService { get; set; }
|
||||
IFMFlowPermitService MFlowPermitService { get; set; }
|
||||
IPFApproveCallBackService ApproveCallBackService { get; set; }
|
||||
|
||||
public OGApproveRewardPunishmentReportController(IFMNotificationTaskService notificationTaskService, IFMFlowPermitService mFlowPermitService, IPFApproveCallBackService approveCallBackService)
|
||||
{
|
||||
NotificationTaskService = notificationTaskService;
|
||||
MFlowPermitService = mFlowPermitService;
|
||||
ApproveCallBackService = approveCallBackService;
|
||||
}
|
||||
/// <summary>
|
||||
/// 保存
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("FullUpdate")]
|
||||
public JsonActionResult<bool> FullUpdate([FromBody] T_OG_APPROVE_REWARD_PUNISHMENT_REPORT entity)
|
||||
{
|
||||
return SafeExecute(() =>
|
||||
{
|
||||
if (entity.START_TIME == null)
|
||||
{
|
||||
entity.START_TIME = DateTime.Now;
|
||||
}
|
||||
var userID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID;
|
||||
if (entity.USER_ID == null)
|
||||
{
|
||||
entity.USER_ID = userID;
|
||||
}
|
||||
if (entity.DEPARTMENT_ID == null)
|
||||
{
|
||||
entity.DEPARTMENT_ID = APT.Infrastructure.Api.AppContext.CurrentSession.DepartmentID;
|
||||
}
|
||||
if (entity.STATUS != PFStandardStatus.Draft)
|
||||
{
|
||||
throw new Exception("当前表单不可重复提交");
|
||||
}
|
||||
var punishmentDetail = entity.Nav_ApproveRewardPunishmentDetail;
|
||||
entity.Nav_ApproveRewardPunishmentDetail = null;
|
||||
entity.Nav_Department = null;
|
||||
entity.Nav_User = null;
|
||||
|
||||
punishmentDetail.ForEach(t =>
|
||||
{
|
||||
if (t.OBJECT == OGRewardPunishmentObject.部门)
|
||||
{
|
||||
if (t.DEPARTMENT_ID == null)
|
||||
{
|
||||
throw new Exception("奖惩对象为部门时,需选择奖惩部门");
|
||||
}
|
||||
t.USER_ID = null;
|
||||
}
|
||||
if (t.OBJECT == OGRewardPunishmentObject.员工)
|
||||
{
|
||||
if (t.USER_ID == null)
|
||||
{
|
||||
throw new Exception("奖惩对象为员工时,需选择奖惩人员");
|
||||
}
|
||||
}
|
||||
});
|
||||
if (entity.PUBLISH != null && entity.PUBLISH.Equals("SaveAndNotify"))
|
||||
{
|
||||
if (entity.IDENTIFY_APPROVE == OGIdentifyApprove.录入)
|
||||
{
|
||||
entity.STATUS = PFStandardStatus.Archived;
|
||||
}
|
||||
else
|
||||
{
|
||||
var AHUser = GetEntity<T_FM_USER>(t => t.Nav_ApproveRole.NAME == "安环部负责人");
|
||||
var department = GetEntity<T_FM_DEPARTMENT>(t => t.ID == entity.DEPARTMENT_ID, new string[] { "Nav_User" });
|
||||
if (department.DEPARTMENT_TYPE == (int)FMDepartmentType.公司)
|
||||
{
|
||||
entity.STATUS = PFStandardStatus.Archived;
|
||||
}
|
||||
else
|
||||
{
|
||||
entity.STATUS = PFStandardStatus.Approving;
|
||||
}
|
||||
string type = "";
|
||||
switch (department.DEPARTMENT_TYPE)
|
||||
{
|
||||
case (int)FMDepartmentType.部门:
|
||||
// 安环部
|
||||
if (department.ID == AHUser.DEPARTMENT_ID)
|
||||
{
|
||||
type = "AH";
|
||||
}
|
||||
else
|
||||
{
|
||||
type = "BM";
|
||||
}
|
||||
break;
|
||||
case (int)FMDepartmentType.车间:
|
||||
type = "CJ";
|
||||
break;
|
||||
case (int)FMDepartmentType.班组:
|
||||
type = "BZ";
|
||||
break;
|
||||
}
|
||||
if (type != "")
|
||||
{
|
||||
MFlowPermitService.InsertApprove(DateTime.Now.ToString("yyyyMMddHHmmss"), "OG027", type, entity.ID, "OG027_SHOWPRINT", entity.TaskID, true, () =>
|
||||
{
|
||||
UpdateEntityNoCommit(entity);
|
||||
if (punishmentDetail != null)
|
||||
BantchSaveEntityNoCommit(punishmentDetail);
|
||||
}, null);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
UnifiedCommit(() =>
|
||||
{
|
||||
UpdateEntityNoCommit(entity);
|
||||
if (punishmentDetail != null)
|
||||
BantchSaveEntityNoCommit(punishmentDetail);
|
||||
});
|
||||
return true;
|
||||
});
|
||||
}
|
||||
/// <summary>
|
||||
/// 隐患上报 审核通过 给每个通知负责人发送通知
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet, Route("approveAndRewardAgree")]
|
||||
public JsonActionResult<bool> approveAndRewardAgree(string id)
|
||||
{
|
||||
return SafeExecute<bool>(() =>
|
||||
{
|
||||
return ApproveCallBackService.CallBack("OG/OGApproveRewardPunishmentReport/approveAndRewardAgree", id);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,225 +0,0 @@
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using APT.BaseData.Domain.IServices.FM;
|
||||
using APT.BaseData.Domain.IServices;
|
||||
using APT.Infrastructure.Core;
|
||||
using APT.MS.Domain.Entities.OG;
|
||||
using APT.MS.Domain.Enums;
|
||||
using APT.Utility;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using APT.BaseData.Domain.Entities;
|
||||
using APT.BaseData.Domain.Enums;
|
||||
using InfluxData.Net.InfluxDb.Models.Responses;
|
||||
|
||||
namespace APT.SC.WebApi.Controllers.Api.OG
|
||||
{
|
||||
[Route("api/OG/OGEventGet")]
|
||||
public class OGEventGetController : AuthorizeApiController<T_OG_EVENT_GET>
|
||||
{
|
||||
IFMNotificationTaskService NotificationTaskService { get; set; }
|
||||
public OGEventGetController(IFMNotificationTaskService notificationTaskService, IPFCodeRuleService codeRuleService)
|
||||
{
|
||||
NotificationTaskService = notificationTaskService;
|
||||
}
|
||||
/// <summary>
|
||||
/// 更新
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("FullUpdate")]
|
||||
public JsonActionResult<bool> FullUpdate([FromBody] T_OG_EVENT_GET entity)
|
||||
{
|
||||
return SafeExecute<bool>(() =>
|
||||
{
|
||||
if (entity.USER_ID == Guid.Empty)
|
||||
{
|
||||
entity.USER_ID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID;
|
||||
}
|
||||
if (entity.DEPARTMENT_ID == Guid.Empty)
|
||||
{
|
||||
entity.DEPARTMENT_ID = APT.Infrastructure.Api.AppContext.CurrentSession.DepartmentID;
|
||||
}
|
||||
if (entity.START_TIME == null)
|
||||
{
|
||||
entity.START_TIME = DateTime.Now;
|
||||
}
|
||||
List<T_FM_NOTIFICATION_TASK> sendNotices = null;
|
||||
T_FM_NOTIFICATION_TASK finishNotice = null;
|
||||
List<T_OG_EVENT_GET_DETAIL> lists = new List<T_OG_EVENT_GET_DETAIL>();
|
||||
if (entity.STATUS != (int)OGEventStatus.草稿)
|
||||
{
|
||||
throw new Exception("当前状态不可提交");
|
||||
}
|
||||
if (entity.PUBLISH != null && entity.PUBLISH.Equals("SaveAndNotify"))
|
||||
{
|
||||
if (entity.TaskID != Guid.Empty)
|
||||
{
|
||||
finishNotice = NotificationTaskService.GetTaskFinishModel(entity.TaskID, "OG030_SHOWPRINT");
|
||||
}
|
||||
entity.STATUS = OGEventStatus.征集中;
|
||||
var allUsers = GetEntities<T_FM_USER>(t => t.DEPARTMENT_ID != null && t.ENABLE_STATUS == (int)FMEnableStatusEnum.启用&& !t.CODE.Contains("admin"), new BaseFilter(entity.ORG_ID), new string[] { "Nav_Department" }).ToList();
|
||||
var allSendUserTitles = new List<string>();
|
||||
var allSendDataIds = new List<Guid>();
|
||||
var allSendUserIds = new List<Guid>();
|
||||
var allSendUserNames = new List<string>();
|
||||
foreach (var user in allUsers)
|
||||
{
|
||||
T_OG_EVENT_GET_DETAIL item = new T_OG_EVENT_GET_DETAIL
|
||||
{
|
||||
ID = Guid.NewGuid(),
|
||||
EVENT_ID = entity.ID,
|
||||
ORG_ID = entity.ORG_ID,
|
||||
USER_ID = user.ID,
|
||||
REPLY_USER_ID = user.Nav_Department.USER_ID,
|
||||
STATUS = 0,
|
||||
};
|
||||
lists.Add(item);
|
||||
allSendUserTitles.Add("工余事件征集意见填写");
|
||||
allSendDataIds.Add(item.ID);
|
||||
allSendUserIds.Add(user.ID);
|
||||
allSendUserNames.Add(user.NAME);
|
||||
}
|
||||
sendNotices = NotificationTaskService.InsertUserNoticeTaskModels(allSendUserTitles, allSendDataIds, entity.ORG_ID.Value, allSendUserIds, allSendUserNames, DateTime.Now, (DateTime)entity.END_TIME, 1, "OG030_EDIT");
|
||||
|
||||
}
|
||||
UnifiedCommit(() =>
|
||||
{
|
||||
UpdateEntityNoCommit(entity);
|
||||
if (lists != null && lists.Any())
|
||||
BantchSaveEntityNoCommit(lists);
|
||||
if (finishNotice != null)
|
||||
UpdateEntityNoCommit(finishNotice);
|
||||
if (sendNotices != null && sendNotices.Any())
|
||||
BantchAddEntityNoCommit(sendNotices);
|
||||
});
|
||||
return true;
|
||||
});
|
||||
}
|
||||
/// <summary>
|
||||
/// 用户数据
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("GetUser")]
|
||||
public JsonActionResult<T_OG_EVENT_GET_DETAIL> GetUser([FromBody] KeywordFilter filter)
|
||||
{
|
||||
return SafeExecute(() =>
|
||||
{
|
||||
return GetEntity<T_OG_EVENT_GET_DETAIL>(null, filter);
|
||||
});
|
||||
}
|
||||
/// <summary>
|
||||
/// 用户数据提交
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("UpdateUser")]
|
||||
public JsonActionResult<bool> UpdateUser([FromBody] T_OG_EVENT_GET_DETAIL entity)
|
||||
{
|
||||
return SafeExecute(() =>
|
||||
{
|
||||
var curUid = APT.Infrastructure.Api.AppContext.CurrentSession.UserID;
|
||||
var eventGet = GetEntity<T_OG_EVENT_GET>(t => t.ID == entity.EVENT_ID);
|
||||
if (entity.STATUS == OGEventGetUserStatus.未填写)
|
||||
{
|
||||
if (curUid != entity.USER_ID)
|
||||
{
|
||||
throw new Exception("您无权限修改他人的数据");
|
||||
}
|
||||
}
|
||||
else if (entity.STATUS == OGEventGetUserStatus.反馈中)
|
||||
{
|
||||
if (curUid != entity.REPLY_USER_ID)
|
||||
{
|
||||
throw new Exception("您无权限对数据进行反馈");
|
||||
}
|
||||
}
|
||||
T_FM_NOTIFICATION_TASK sendNotice = null;
|
||||
T_FM_NOTIFICATION_TASK finishNotice = null;
|
||||
if (entity.PUBLISH != null && entity.PUBLISH.Equals("SaveAndNotify"))
|
||||
{
|
||||
if (eventGet.STATUS != OGEventStatus.征集中 || DateTime.Now > eventGet.END_TIME.Value)
|
||||
{
|
||||
throw new Exception("当前状态不可提交数据,已超过截止征集时间!");
|
||||
}
|
||||
if (entity.TaskID != Guid.Empty)
|
||||
{
|
||||
finishNotice = NotificationTaskService.GetTaskFinishModel(entity.TaskID, "OG030_REPLYVIEW");
|
||||
}
|
||||
if (entity.STATUS == OGEventGetUserStatus.未填写)
|
||||
{
|
||||
if (entity.Nav_Items.Any())
|
||||
{
|
||||
entity.STATUS = OGEventGetUserStatus.反馈中;
|
||||
sendNotice = NotificationTaskService.InsertUserNoticeTaskModel("工余事件征集反馈", entity.ID, entity.ORG_ID.Value, (Guid)entity.REPLY_USER_ID, GetEntity<T_FM_USER>(entity.REPLY_USER_ID.Value).NAME, DateTime.Now, (DateTime)eventGet.END_TIME, 1, "OG030_REPLY");
|
||||
}
|
||||
else
|
||||
{
|
||||
entity.STATUS = OGEventGetUserStatus.完成;
|
||||
}
|
||||
}
|
||||
else if (entity.STATUS == OGEventGetUserStatus.反馈中)
|
||||
{
|
||||
entity.STATUS = OGEventGetUserStatus.完成;
|
||||
}
|
||||
}
|
||||
var Nav_Items = entity.Nav_Items;
|
||||
entity.Nav_Items = null;
|
||||
var Nav_Files = entity.Nav_Files;
|
||||
entity.Nav_Files = null;
|
||||
UnifiedCommit(() =>
|
||||
{
|
||||
UpdateEntityNoCommit(entity);
|
||||
if (Nav_Files != null)
|
||||
BantchSaveEntityNoCommit(Nav_Files);
|
||||
if (Nav_Items != null)
|
||||
BantchSaveEntityNoCommit(Nav_Items);
|
||||
if (finishNotice != null)
|
||||
UpdateEntityNoCommit(finishNotice);
|
||||
if (sendNotice != null)
|
||||
AddEntityNoCommit(sendNotice);
|
||||
});
|
||||
return true;
|
||||
});
|
||||
}
|
||||
/// <summary>
|
||||
/// 用户数据提交
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Agree")]
|
||||
public JsonActionResult<bool> Agree([FromBody] KeywordFilter filter)
|
||||
{
|
||||
return SafeExecute(() =>
|
||||
{
|
||||
var entity = GetEntity<T_OG_EVENT_GET>(filter.Keyword);
|
||||
if (entity == null)
|
||||
{
|
||||
throw new Exception("未查到相应数据");
|
||||
}
|
||||
var curUid = APT.Infrastructure.Api.AppContext.CurrentSession.UserID;
|
||||
if (entity.USER_ID != curUid)
|
||||
{
|
||||
throw new Exception("您无权限编辑当前数据");
|
||||
}
|
||||
if (entity.STATUS != OGEventStatus.汇总中)
|
||||
{
|
||||
throw new Exception("当前状态无法提交,可能您已经提交过当前数据,请刷新页面重试");
|
||||
}
|
||||
entity.STATUS = OGEventStatus.完成;
|
||||
Guid TASK_ID = Guid.Parse(filter.Parameter1);
|
||||
var finishNotice = NotificationTaskService.GetTaskFinishModel(TASK_ID);
|
||||
var sendNotice = NotificationTaskService.InsertUserNoticeTaskModel("请组织预防工余意外培训", entity.ID, filter.GetOrgId(), (Guid)entity.USER_ID, GetEntity<T_FM_USER>(entity.USER_ID.Value).NAME, DateTime.Now,DateTime.Now.AddDays(1), (int)FMNoticeTypeEnum.今日提醒,"PF135");
|
||||
UnifiedCommit(() =>
|
||||
{
|
||||
UpdateEntityNoCommit(entity);
|
||||
UpdateEntityNoCommit(finishNotice);
|
||||
AddEntityNoCommit(sendNotice);
|
||||
});
|
||||
return true;
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,207 +0,0 @@
|
||||
using APT.BaseData.Domain.Entities;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using APT.BaseData.Domain.Enums.PF;
|
||||
using APT.BaseData.Domain.IServices.FM;
|
||||
using APT.BaseData.Domain.IServices;
|
||||
using APT.Infrastructure.Core;
|
||||
using APT.MS.Domain.Entities.OG;
|
||||
using APT.MS.Domain.Enums;
|
||||
using APT.Utility;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using APT.BaseData.Domain.Enums;
|
||||
|
||||
namespace APT.SC.WebApi.Controllers.Api.OG
|
||||
{
|
||||
[Route("api/OG/OGEventReport")]
|
||||
public class OGEventReportController : AuthorizeApiController<T_OG_EVENT_REPORT>
|
||||
{
|
||||
IFMNotificationTaskService NotificationTaskService { get; set; }
|
||||
public OGEventReportController(IFMNotificationTaskService notificationTaskService, IPFCodeRuleService codeRuleService)
|
||||
{
|
||||
NotificationTaskService = notificationTaskService;
|
||||
}
|
||||
/// <summary>
|
||||
/// 更新
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("FullUpdate")]
|
||||
public JsonActionResult<bool> FullUpdate([FromBody] T_OG_EVENT_REPORT entity)
|
||||
{
|
||||
return SafeExecute<bool>(() =>
|
||||
{
|
||||
if (entity.TIME == null)
|
||||
{
|
||||
if (entity.STATUS == (int)PFStandardStatus.Draft)
|
||||
{
|
||||
entity.TIME = DateTime.Now;
|
||||
}
|
||||
}
|
||||
if (entity.USER_ID == null)
|
||||
{
|
||||
if (entity.STATUS == (int)PFStandardStatus.Draft)
|
||||
{
|
||||
entity.USER_ID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID;
|
||||
}
|
||||
}
|
||||
if (entity.DEPARTMENT_ID == null)
|
||||
{
|
||||
if (entity.STATUS == (int)PFStandardStatus.Draft)
|
||||
{
|
||||
entity.DEPARTMENT_ID = APT.Infrastructure.Api.AppContext.CurrentSession.DepartmentID;
|
||||
}
|
||||
}
|
||||
T_FM_NOTIFICATION_TASK sendNotice = null;
|
||||
T_FM_NOTIFICATION_TASK finishNotice = null;
|
||||
if (entity.PUBLISH != null && entity.PUBLISH.Equals("SaveAndNotify"))
|
||||
{
|
||||
if (entity.TaskID != Guid.Empty)
|
||||
{
|
||||
finishNotice = NotificationTaskService.GetTaskFinishModel(entity.TaskID, "OG031_SHOWPRINT");
|
||||
}
|
||||
if (entity.AH_USER_ID == null)
|
||||
{
|
||||
var AHUser = GetEntity<T_FM_USER>(t => t.Nav_ApproveRole.NAME == "安环部负责人");
|
||||
if (AHUser != null)
|
||||
{
|
||||
entity.AH_USER_ID = AHUser.ID;
|
||||
}
|
||||
}
|
||||
|
||||
if (entity.STATUS == PFStandardStatus.Draft)
|
||||
{
|
||||
entity.STATUS = PFStandardStatus.Sign;
|
||||
var chargeUser = GetEntity<T_FM_USER>((Guid)entity.USER_ID, new string[] { "Nav_Department.Nav_User", "Nav_Department.Nav_Parent.Nav_User", "Nav_Department.Nav_Parent.Nav_Parent.Nav_User" });
|
||||
Guid sendUser = Guid.Empty;
|
||||
Guid sendUserDep = Guid.Empty;
|
||||
|
||||
string sendUserName = "";
|
||||
|
||||
if (chargeUser.Nav_Department.DEPARTMENT_TYPE == (int)FMDepartmentType.班组)
|
||||
{
|
||||
var safeUser = GetEntity<T_FM_USER>(t => t.DEPARTMENT_ID == chargeUser.Nav_Department.Nav_Parent.Nav_Parent.ID && t.Nav_ApproveRole.NAME == "部门安全员");
|
||||
if (safeUser == null)
|
||||
{
|
||||
sendUser = chargeUser.Nav_Department.Nav_Parent.Nav_Parent.Nav_User.ID;
|
||||
sendUserName = chargeUser.Nav_Department.Nav_Parent.Nav_Parent.Nav_User.NAME;
|
||||
sendUserDep = (Guid)chargeUser.Nav_Department.Nav_Parent.Nav_Parent.Nav_User.DEPARTMENT_ID;
|
||||
}
|
||||
else
|
||||
{
|
||||
sendUser = safeUser.ID;
|
||||
sendUserName = safeUser.NAME;
|
||||
sendUserDep = (Guid)safeUser.DEPARTMENT_ID;
|
||||
}
|
||||
|
||||
}
|
||||
else if (chargeUser.Nav_Department.DEPARTMENT_TYPE == (int)FMDepartmentType.车间)
|
||||
{
|
||||
var safeUser = GetEntity<T_FM_USER>(t => t.DEPARTMENT_ID == chargeUser.Nav_Department.Nav_Parent.Nav_Parent.ID && t.Nav_ApproveRole.NAME == "部门安全员");
|
||||
if (safeUser == null)
|
||||
{
|
||||
sendUser = chargeUser.Nav_Department.Nav_Parent.Nav_User.ID;
|
||||
sendUserName = chargeUser.Nav_Department.Nav_Parent.Nav_User.NAME;
|
||||
sendUserDep = (Guid)chargeUser.Nav_Department.Nav_Parent.Nav_User.DEPARTMENT_ID;
|
||||
}
|
||||
else
|
||||
{
|
||||
sendUser = safeUser.ID;
|
||||
sendUserName = safeUser.NAME;
|
||||
sendUserDep = (Guid)safeUser.DEPARTMENT_ID;
|
||||
}
|
||||
}
|
||||
else if (chargeUser.Nav_Department.DEPARTMENT_TYPE == (int)FMDepartmentType.部门)
|
||||
{
|
||||
var safeUser = GetEntity<T_FM_USER>(t => t.DEPARTMENT_ID == entity.DEPARTMENT_ID && t.Nav_ApproveRole.NAME == "部门负责人");
|
||||
if (safeUser != null)
|
||||
{
|
||||
sendUser = chargeUser.Nav_Department.Nav_Parent.Nav_User.ID;
|
||||
sendUserName = chargeUser.Nav_Department.Nav_Parent.Nav_User.NAME;
|
||||
sendUserDep = (Guid)chargeUser.Nav_Department.Nav_Parent.Nav_User.DEPARTMENT_ID;
|
||||
}
|
||||
}
|
||||
if (entity.DO_DEPARTMENT_ID == null)
|
||||
{
|
||||
entity.DO_DEPARTMENT_ID = sendUserDep;
|
||||
}
|
||||
if (entity.DO_USER_ID == null)
|
||||
{
|
||||
entity.DO_USER_ID = sendUser;
|
||||
}
|
||||
sendNotice = NotificationTaskService.InsertUserNoticeTaskModel("工余事件上报及处理-待处理", entity.ID, entity.ORG_ID, sendUser, sendUserName, DateTime.Now, DateTime.Now.AddDays(1), 0, "OG032");
|
||||
}
|
||||
else if (entity.STATUS == PFStandardStatus.Sign)
|
||||
{
|
||||
entity.STATUS = PFStandardStatus.Approving;
|
||||
sendNotice = NotificationTaskService.InsertUserNoticeTaskModel("工余事件上报及处理-待审核", entity.ID, entity.ORG_ID, (Guid)entity.AH_USER_ID, GetEntity<T_FM_USER>(entity.AH_USER_ID.Value).NAME, DateTime.Now, DateTime.Now.AddDays(1), 0, "OG032");
|
||||
}
|
||||
else if (entity.STATUS == PFStandardStatus.Approving)
|
||||
{
|
||||
entity.STATUS = PFStandardStatus.Archived;
|
||||
}
|
||||
}
|
||||
var Nav_Files = entity.Nav_Files;
|
||||
entity.Nav_Files = null;
|
||||
|
||||
UnifiedCommit(() =>
|
||||
{
|
||||
UpdateEntityNoCommit(entity);
|
||||
if (Nav_Files != null)
|
||||
BantchSaveEntityNoCommit(Nav_Files);
|
||||
if (finishNotice != null)
|
||||
UpdateEntityNoCommit(finishNotice);
|
||||
if (sendNotice != null)
|
||||
AddEntityNoCommit(sendNotice);
|
||||
});
|
||||
return true;
|
||||
});
|
||||
}
|
||||
|
||||
public class EventsModel
|
||||
{
|
||||
public int PROCESSED_EVENTS { set; get; }
|
||||
public int TOTAL_EVENTS { set; get; }
|
||||
}
|
||||
|
||||
[HttpPost, Route("GetCurrentYearEvent")]
|
||||
public JsonActionResult<EventsModel> GetCurrentYearEvent([FromBody] KeywordFilter filter)
|
||||
{
|
||||
int year = DateTime.Now.Year;
|
||||
if (filter.Parameter1 != null)
|
||||
{
|
||||
year = Convert.ToInt32(filter.Parameter1);
|
||||
}
|
||||
var allEvents = GetEntities<T_OG_EVENT_REPORT>(t => t.TIME.Value.Year == year,
|
||||
new BaseFilter(filter.GetOrgId()),
|
||||
new string[] { }
|
||||
).ToList();
|
||||
|
||||
var processedEvents = 0;
|
||||
var totalEvents = 0;
|
||||
if (allEvents != null && allEvents.Count > 0)
|
||||
{
|
||||
totalEvents = allEvents.Count;
|
||||
allEvents.ForEach(e =>
|
||||
{
|
||||
if (e.DO_TYPE == OGEventDoType.已处理 && e.STATUS == PFStandardStatus.Archived)
|
||||
{
|
||||
processedEvents += 1;
|
||||
}
|
||||
});
|
||||
}
|
||||
EventsModel eventModel = new EventsModel();
|
||||
eventModel.PROCESSED_EVENTS = processedEvents;
|
||||
eventModel.TOTAL_EVENTS = totalEvents;
|
||||
|
||||
var ret = new JsonActionResult<EventsModel>();
|
||||
ret.Data = eventModel;
|
||||
ret.IsSuccessful = true;
|
||||
ret.TotalCount = 1;
|
||||
ret.ErrorMessage = "";
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,222 +0,0 @@
|
||||
using APT.BaseData.Domain.Enums.PF;
|
||||
using APT.BaseData.Domain.IServices.FM;
|
||||
using APT.BaseData.Domain.IServices;
|
||||
using APT.BaseData.Services.Services.FM;
|
||||
using APT.Infrastructure.Core;
|
||||
using APT.MS.Domain.Entities.OG;
|
||||
using APT.MS.Domain.Enums;
|
||||
using APT.Utility;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using APT.BaseData.Domain.Entities;
|
||||
|
||||
namespace APT.SC.WebApi.Controllers.Api.OG
|
||||
{
|
||||
[Route("api/OG/OGStanardSysReview")]
|
||||
public class OGStanardizationSystemReviewController : AuthorizeApiController<T_OG_STANDARDIZATION_SYSTEM_REVIEW>
|
||||
{
|
||||
IFMNotificationTaskService NotificationTaskService { get; set; }
|
||||
public OGStanardizationSystemReviewController(IFMNotificationTaskService notificationTaskService, IPFCodeRuleService codeRuleService)
|
||||
{
|
||||
NotificationTaskService = notificationTaskService;
|
||||
}
|
||||
/// <summary>
|
||||
/// 获得单条实体数据
|
||||
/// </summary>
|
||||
/// <param name="filter"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Get")]
|
||||
public JsonActionResult<T_OG_STANDARDIZATION_SYSTEM_REVIEW> Get([FromBody] KeywordFilter filter)
|
||||
{
|
||||
if (filter.FilterGroup.Rules.Count > 0)
|
||||
{
|
||||
return WitEntity(null, filter);
|
||||
}
|
||||
return SafeExecute(() =>
|
||||
{
|
||||
var ret = new T_OG_STANDARDIZATION_SYSTEM_REVIEW
|
||||
{
|
||||
ID = Guid.NewGuid(),
|
||||
ORG_ID = filter.OrgId,
|
||||
Nav_ReviewItemsList = new List<T_OG_STANDARDIZATION_REVIEW_ITEMS_REL>(),
|
||||
Nav_ReviewUserList = new List<T_OG_STANDARDIZATION_PERSON_REL>(),
|
||||
Nav_ReviewResultList = new List<T_OG_STANDARDIZATION_REVIEW_RESULT_REL>(),
|
||||
Nav_ActionPlanList = new List<T_OG_STANDARDIZATION_ACTION_PLAN_REL>(),
|
||||
};
|
||||
GetEntities<T_OG_STANDARDIZATION_REVIEW_ITEM_ENUM>(null, new BaseFilter(filter.GetOrgId())).ForEach(t =>
|
||||
{
|
||||
ret.Nav_ReviewItemsList.Add(new T_OG_STANDARDIZATION_REVIEW_ITEMS_REL
|
||||
{
|
||||
ID = Guid.NewGuid(),
|
||||
ORG_ID = filter.OrgId,
|
||||
REVIEW_ID = ret.ID,
|
||||
ITEM_ID = t.ID,
|
||||
Nav_Item = t,
|
||||
});
|
||||
});
|
||||
GetEntities<T_OG_STANDARDIZATION_REVIEW_RESULT_ENUM>(null, new BaseFilter(filter.GetOrgId())).ForEach(t =>
|
||||
{
|
||||
ret.Nav_ReviewResultList.Add(new T_OG_STANDARDIZATION_REVIEW_RESULT_REL
|
||||
{
|
||||
ID = Guid.NewGuid(),
|
||||
ORG_ID = filter.OrgId,
|
||||
REVIEW_ID = ret.ID,
|
||||
RESULT_ID = t.ID,
|
||||
Nav_Result = t,
|
||||
});
|
||||
});
|
||||
GetEntities<T_OG_STANDARDIZATION_ACTION_PLAN_ENUM>(null, new BaseFilter(filter.GetOrgId())).ForEach(t =>
|
||||
{
|
||||
ret.Nav_ActionPlanList.Add(new T_OG_STANDARDIZATION_ACTION_PLAN_REL
|
||||
{
|
||||
ID = Guid.NewGuid(),
|
||||
ORG_ID = filter.OrgId,
|
||||
REVIEW_ID = ret.ID,
|
||||
PLAN_ID = t.ID,
|
||||
Nav_Plan = t,
|
||||
});
|
||||
});
|
||||
return ret;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 更新
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("FullUpdate")]
|
||||
public JsonActionResult<bool> FullUpdate([FromBody] T_OG_STANDARDIZATION_SYSTEM_REVIEW entity)
|
||||
{
|
||||
return SafeExecute(() =>
|
||||
{
|
||||
if (entity.USER_ID == null || entity.USER_ID == Guid.Empty)
|
||||
{
|
||||
entity.USER_ID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID;
|
||||
}
|
||||
var Nav_ReviewItemsList = entity.Nav_ReviewItemsList;
|
||||
var Nav_ReviewUserList = entity.Nav_ReviewUserList;
|
||||
var Nav_ReviewResultList = entity.Nav_ReviewResultList;
|
||||
var Nav_ActionPlanList = entity.Nav_ActionPlanList;
|
||||
Nav_ReviewItemsList.ForEach((item) =>
|
||||
{
|
||||
item.Nav_Item = null;
|
||||
});
|
||||
Nav_ReviewUserList.ForEach((item) =>
|
||||
{
|
||||
item.REVIEW_ID = entity.ID;
|
||||
item.ORG_ID = entity.ORG_ID;
|
||||
item.Nav_User = null;
|
||||
});
|
||||
Nav_ReviewResultList.ForEach((item) =>
|
||||
{
|
||||
item.Nav_Result = null;
|
||||
});
|
||||
Nav_ActionPlanList.ForEach((item) =>
|
||||
{
|
||||
item.Nav_Plan = null;
|
||||
});
|
||||
List<T_FM_NOTIFICATION_TASK> sendNotices = null;
|
||||
if (entity.PUBLISH != null && entity.PUBLISH.Equals("SaveAndNotify"))
|
||||
{
|
||||
if (entity.STATUS != (int)PFStandardStatus.Draft)
|
||||
{
|
||||
throw new Exception("您已提交过此数据,不可重复提交,请更新页面后重试");
|
||||
}
|
||||
entity.STATUS = PFStandardStatus.Sign;
|
||||
var allSendUserTitles = new List<string>();
|
||||
var allSendDataIds = new List<Guid>();
|
||||
var allSendUserIds = new List<Guid>();
|
||||
var allSendUserNames = new List<string>();
|
||||
var userids = Nav_ActionPlanList.Select(t => t.USER_ID.Value).Distinct().ToList();
|
||||
var userNames = GetEntities<T_FM_USER>(t => userids.Contains(t.ID), new BaseFilter(entity.ORG_ID));
|
||||
foreach (var userid in userids)
|
||||
{
|
||||
allSendUserTitles.Add("标准化系统评审意见");
|
||||
allSendDataIds.Add(entity.ID);
|
||||
allSendUserIds.Add(userid);
|
||||
allSendUserNames.Add(userNames.FirstOrDefault(t => t.ID == userid).NAME);
|
||||
}
|
||||
sendNotices = NotificationTaskService.InsertUserNoticeTaskModels(allSendUserTitles, allSendDataIds, entity.ORG_ID.Value, allSendUserIds, allSendUserNames, DateTime.Now, DateTime.Now.AddDays(1), 1, "OG034_REPORT");
|
||||
}
|
||||
entity.Nav_ReviewItemsList = null;
|
||||
entity.Nav_ReviewUserList = null;
|
||||
entity.Nav_ReviewResultList = null;
|
||||
entity.Nav_ActionPlanList = null;
|
||||
UnifiedCommit(() =>
|
||||
{
|
||||
UpdateEntityNoCommit(entity);
|
||||
if (Nav_ReviewItemsList != null)
|
||||
BantchSaveEntityNoCommit(Nav_ReviewItemsList);
|
||||
if (Nav_ReviewUserList != null)
|
||||
BantchSaveEntityNoCommit(Nav_ReviewUserList);
|
||||
if (Nav_ReviewResultList != null)
|
||||
BantchSaveEntityNoCommit(Nav_ReviewResultList);
|
||||
if (Nav_ActionPlanList != null)
|
||||
BantchSaveEntityNoCommit(Nav_ActionPlanList);
|
||||
if (sendNotices != null)
|
||||
BantchAddEntityNoCommit(sendNotices);
|
||||
});
|
||||
|
||||
return true;
|
||||
});
|
||||
}
|
||||
/// <summary>
|
||||
/// 获得单条实体数据
|
||||
/// </summary>
|
||||
/// <param name="filter"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("SubmitUser")]
|
||||
public JsonActionResult<bool> SubmitUser([FromBody] KeywordFilter filter)
|
||||
{
|
||||
return SafeExecute(() =>
|
||||
{
|
||||
var finishNotice = NotificationTaskService.GetTaskFinishModel(Guid.Parse(filter.Parameter3));
|
||||
var ids = ((string)filter.Parameter1).Split(',');
|
||||
var flags = ((string)filter.Parameter2).Split(',');
|
||||
if (ids == null || ids.Count() == 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
var models = GetEntities<T_OG_STANDARDIZATION_ACTION_PLAN_REL>(t => t.REVIEW_ID == Guid.Parse(filter.Parameter4)&&t.IMPLEMENTATION== OGStandardizationImplementation.未填写,new BaseFilter(filter.GetOrgId()));
|
||||
if (models == null)
|
||||
{
|
||||
throw new Exception("已提交无法修该数据!");
|
||||
}
|
||||
for (var x = 0; x < ids.Count(); x++)
|
||||
{
|
||||
int status = flags[x] == "1" ? (int)OGStandardizationImplementation.已执行 : (int)OGStandardizationImplementation.未执行;
|
||||
Guid id = new Guid(ids[x]);
|
||||
var actionplan = models.FirstOrDefault(t => t.ID == id);
|
||||
if (actionplan == null)
|
||||
{
|
||||
throw new Exception("你已提交或无权限修改!");
|
||||
}
|
||||
actionplan.IMPLEMENTATION = (OGStandardizationImplementation)status;
|
||||
}
|
||||
var count = models.Where(t => t.IMPLEMENTATION == OGStandardizationImplementation.未填写).Count();
|
||||
T_OG_STANDARDIZATION_SYSTEM_REVIEW entity = null;
|
||||
if (count == 0)
|
||||
{
|
||||
entity = GetEntity<T_OG_STANDARDIZATION_SYSTEM_REVIEW>(t => t.ID == Guid.Parse(filter.Parameter4) && t.STATUS == PFStandardStatus.Sign);
|
||||
entity.STATUS = PFStandardStatus.Archived;
|
||||
}
|
||||
UnifiedCommit(() =>
|
||||
{
|
||||
if (entity != null)
|
||||
UpdateEntityNoCommit(entity);
|
||||
if (models != null && models.Any())
|
||||
BantchSaveEntityNoCommit(models);
|
||||
if (finishNotice != null)
|
||||
UpdateEntityNoCommit(finishNotice);
|
||||
});
|
||||
return true;
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,119 +0,0 @@
|
||||
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.BaseData.Domain.IServices;
|
||||
using APT.Infrastructure.Api;
|
||||
using APT.Infrastructure.Core;
|
||||
using APT.MS.Domain.Entities.OG;
|
||||
using APT.MS.Domain.Enums;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Runtime.Intrinsics.Arm;
|
||||
|
||||
|
||||
namespace APT.SC.WebApi.Controllers.Api.OG
|
||||
{
|
||||
|
||||
[Route("api/OG/OGCallback")]
|
||||
public class OGCallbackController : CommonApiController
|
||||
{
|
||||
IFMNotificationTaskService NotificationTaskService { get; set; }
|
||||
|
||||
public OGCallbackController(IFMNotificationTaskService notificationTaskService, IPFCodeRuleService codeRuleService)
|
||||
{
|
||||
NotificationTaskService = notificationTaskService;
|
||||
}
|
||||
/// <summary>
|
||||
/// 组织保障后台任务
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpGet, Route("TODOTASK")]
|
||||
public JsonActionResult<bool> TODO_DAY([FromBody] KeywordFilter filter)
|
||||
{
|
||||
return SafeExecute<bool>(() =>
|
||||
{
|
||||
CheckSafeAssessRecord(filter);
|
||||
return true;
|
||||
});
|
||||
}
|
||||
|
||||
public void CheckSafeAssessRecord([FromBody] KeywordFilter filter)
|
||||
{
|
||||
var dt = DateTime.Now;
|
||||
var days = (int)DateTime.DaysInMonth(DateTime.Now.Year, DateTime.Now.Month);
|
||||
var currentDay = (int)DateTime.Now.Day;
|
||||
|
||||
// 每月末触发待办事项给班组长和车间负责人
|
||||
if (days == currentDay)
|
||||
{
|
||||
var deps = GetEntities<T_FM_DEPARTMENT>(t => t.DEPARTMENT_TYPE == (int)FMDepartmentType.车间 || t.DEPARTMENT_TYPE == (int)FMDepartmentType.班组,
|
||||
new BaseFilter(null, FilterOrgTypeEnum.忽略组织), new string[] { "Nav_User" });
|
||||
var recordList = new List<T_OG_SAFE_ASSESS_RECORD>();
|
||||
deps.ForEach(dep =>
|
||||
{
|
||||
T_OG_SAFE_ASSESS_RECORD record = new T_OG_SAFE_ASSESS_RECORD
|
||||
{
|
||||
ID = Guid.NewGuid(),
|
||||
ANNUAL = dt.Year,
|
||||
DEPARTMENT_ID = dep.ID,
|
||||
USER_ID = dep.USER_ID,
|
||||
STATUS = PFStandardStatus.Draft,
|
||||
ORG_ID = dep.Nav_User.ORG_ID,
|
||||
};
|
||||
recordList.Add(record);
|
||||
|
||||
NotificationTaskService.InsertUserNoticeTaskModel("考核记录表", record.ID, dep.Nav_User.ORG_ID, dep.Nav_User.ID, "", DateTime.Now, DateTime.Now.AddDays(1), 1, "OGSafeAssessRecordInput");
|
||||
});
|
||||
BantchSaveEntity(recordList);
|
||||
}
|
||||
|
||||
DateTime startQuarter = dt.AddMonths(0 - (dt.Month - 1) % 3).AddDays(1 - dt.Day); //本季度初
|
||||
DateTime endQuarter = startQuarter.AddMonths(3).AddDays(-1); //本季度末
|
||||
//每季度末触发待办事项给部门负责人,安环部负责人
|
||||
if (endQuarter.DayOfYear == dt.DayOfYear)
|
||||
{
|
||||
var deps = GetEntities<T_FM_DEPARTMENT>(t => t.DEPARTMENT_TYPE == (int)FMDepartmentType.部门 || t.DEPARTMENT_TYPE == (int)FMDepartmentType.公司,
|
||||
new BaseFilter(null, FilterOrgTypeEnum.忽略组织), new string[] { "Nav_User" });
|
||||
var recordList = new List<T_OG_SAFE_ASSESS_RECORD>();
|
||||
deps.ForEach(dep =>
|
||||
{
|
||||
if (dep.DEPARTMENT_TYPE == (int)FMDepartmentType.部门)
|
||||
{
|
||||
T_OG_SAFE_ASSESS_RECORD record = new T_OG_SAFE_ASSESS_RECORD
|
||||
{
|
||||
ID = Guid.NewGuid(),
|
||||
ANNUAL = dt.Year,
|
||||
DEPARTMENT_ID = dep.ID,
|
||||
USER_ID = dep.USER_ID,
|
||||
STATUS = (int)PFStandardStatus.Draft,
|
||||
ORG_ID = dep.Nav_User.ORG_ID,
|
||||
};
|
||||
recordList.Add(record);
|
||||
NotificationTaskService.InsertUserNoticeTaskModel("考核记录表", record.ID, dep.Nav_User.ORG_ID, dep.Nav_User.ID,"", DateTime.Now, DateTime.Now.AddDays(1),1, "OGSafeAssessRecordInput");
|
||||
}
|
||||
else
|
||||
{
|
||||
//安环部
|
||||
var department = GetEntity<T_FM_DEPARTMENT>(t => t.CODE == "XLKAH", new string[] { "Nav_User" });
|
||||
T_OG_SAFE_ASSESS_RECORD record = new T_OG_SAFE_ASSESS_RECORD
|
||||
{
|
||||
ID = Guid.NewGuid(),
|
||||
ANNUAL = dt.Year,
|
||||
DEPARTMENT_ID = dep.ID,
|
||||
USER_ID = department.Nav_User.ID,
|
||||
STATUS = (int)PFStandardStatus.Draft,
|
||||
ORG_ID = department.Nav_User.ORG_ID,
|
||||
};
|
||||
|
||||
UpdateEntity(record);
|
||||
NotificationTaskService.InsertUserNoticeTaskModel("考核记录表", record.ID, dep.Nav_User.ORG_ID, dep.Nav_User.ID, "", DateTime.Now, DateTime.Now.AddDays(1), 1, "OGSafeAssessRecordInput");
|
||||
}
|
||||
});
|
||||
BantchSaveEntity(recordList);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user