增加职业危害拒绝
This commit is contained in:
		
							parent
							
								
									c60228600c
								
							
						
					
					
						commit
						e75403ae32
					
				@ -297,7 +297,7 @@ namespace APT.HM.WebApi.Controllers.Api
 | 
			
		||||
                                }
 | 
			
		||||
                                allUsers.Add(recordUser);
 | 
			
		||||
                            }
 | 
			
		||||
                            allUsers= allUsers.DistinctBy(u => new { u.USER_ID, u.AREA_ID }).ToList();
 | 
			
		||||
                            allUsers = allUsers.DistinctBy(u => new { u.USER_ID, u.AREA_ID }).ToList();
 | 
			
		||||
                        }
 | 
			
		||||
                    }
 | 
			
		||||
                    //添加附件
 | 
			
		||||
@ -408,5 +408,38 @@ namespace APT.HM.WebApi.Controllers.Api
 | 
			
		||||
            }
 | 
			
		||||
            return result;
 | 
			
		||||
        }
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// 审批流回调
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        /// <param name="id"></param>
 | 
			
		||||
        /// <returns></returns>
 | 
			
		||||
        [HttpPost, Route("RejectUpdate")]
 | 
			
		||||
        public JsonActionResult<bool> RejectUpdate([FromBody] T_PF_APPROVE entity)
 | 
			
		||||
        {
 | 
			
		||||
            return SafeExecute<bool>(() =>
 | 
			
		||||
            {
 | 
			
		||||
                T_PF_APPROVE modelApp = null;
 | 
			
		||||
                List<T_PF_APPROVE_DETAIL> listAppDetail = null;
 | 
			
		||||
                T_FM_NOTIFICATION_TASK taskFinish = null;
 | 
			
		||||
                string Msg = string.Empty;
 | 
			
		||||
                var record = GetEntity<T_HM_HAZARD_TASK>(entity.DATA_ID, new string[] { "Nav_LiableUser" });
 | 
			
		||||
                bool ResultGetInfo = ApproveCallBackService.GetApproject(entity, ref modelApp, ref listAppDetail, ref taskFinish, ref Msg);
 | 
			
		||||
                if (!ResultGetInfo)
 | 
			
		||||
                    throw new Exception("驳回失败!");
 | 
			
		||||
                record.STATUS = FOPreMeetingStatusEnum.审批拒绝;
 | 
			
		||||
                var sendNotice = NotificationTaskService.InsertUserNoticeTaskModel("职业危害辨识任务-驳回", entity.DATA_ID, record.ORG_ID, (Guid)record.LIABLE_USER_ID, record.Nav_LiableUser.NAME, DateTime.Now, DateTime.Now.AddDays(7), 0, "HM102");
 | 
			
		||||
                UnifiedCommit(() =>
 | 
			
		||||
                {
 | 
			
		||||
                    if (record != null)
 | 
			
		||||
                        UpdateEntityNoCommit(record);   //保存主表
 | 
			
		||||
                    if (sendNotice != null)
 | 
			
		||||
                        AddEntityNoCommit(sendNotice);
 | 
			
		||||
                });
 | 
			
		||||
 | 
			
		||||
                return true;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
            });
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user