private void CloseITForm(ProcInst workListItem, TicketActivity activity) { var formService = new ItRequestFormService(); var itParam = new Domain.Entities.BatchData.ItRequestWorkflowInstance() { RequestHeaderId = workListItem.RequestHeaderId, Activity = "IT Implementation", Action = "Done", Comment = GetPlainTextFromHtml(activity.Description), SerialNo = workListItem.Serial, CurrentUser = loginUsr.loginName, loginName = loginUsr.loginName, fullName = loginUsr.fullName, Requestor = new Domain.Entities.Employee { Id = loginUsr.id }, AddUploadFiles = new List <Domain.Entities.FileAttachement>(), DelUploadFiles = new List <Domain.Entities.FileAttachement>(), UploadFiles = new List <Domain.Entities.FileAttachement>() }; var errorMsg = string.Empty; try { formService.TakeAction(itParam); } catch (Exception e) { errorMsg = e.Message; logger.Error(e); } }
public IEnumerable <ItemRoleDto> GetItemRoles(int itemId, int itemTypeId) { IItRequestFormService requestFormService = new ItRequestFormService(); return(requestFormService.GetItemRoles(itemId, itemTypeId)); }
public IEnumerable <ItemDto> GetItemsInclDeprecated(int sessionId) { IItRequestFormService requestFormService = new ItRequestFormService(); return(requestFormService.GetItems(sessionId, true)); }
public IEnumerable <ItemDto> GetItems(int sessionId) { IItRequestFormService requestFormService = new ItRequestFormService(); return(requestFormService.GetItems(sessionId)); }