Exemple #1
0
        public HttpResponseMessage HandInApplication(string applicationId)
        {
            try
            {
                //repository.ChangeApplicationStatus(applicationId, ApplicationStatus.ACCEPT, ApplicationStatus.ASSIGNMENT, a => true);
                Object response = repository.AcceptApplication(applicationId, a => true);

                //院管理员受理申请书
                //通知打点:发给提交申请书的用户
                //_noticeService.AddNotice(
                //    _noticeService.GetUserIdByApplicationId(applicationId), 6);
                //通知打点:发给审核通过申请书的单位
                //_noticeService.AddNoticeList(
                //    _noticeService.GetInstManagerIdsbyAppId(applicationId), 11);

                //系统设置使用手动分配专家
                //if ( !SystemConfig.AutoAssignmentExpert)
                //{
                //    //院管理员受理申请书,并系统设置手动指派
                //    //通知打点:院管理员
                //    _noticeService.AddNoticeList(
                //        _noticeService.GetDepartManagerIdListByApplicationId(applicationId), 16);
                //}

                return(ResponseWrapper.SuccessResponse(response));
            }
            catch (Exception e)
            {
                return(ResponseWrapper.ExceptionResponse(e));
            }
        }