Пример #1
0
        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);
            }
        }
Пример #2
0
        public IEnumerable <ItemRoleDto> GetItemRoles(int itemId, int itemTypeId)
        {
            IItRequestFormService requestFormService = new ItRequestFormService();

            return(requestFormService.GetItemRoles(itemId, itemTypeId));
        }
Пример #3
0
        public IEnumerable <ItemDto> GetItemsInclDeprecated(int sessionId)
        {
            IItRequestFormService requestFormService = new ItRequestFormService();

            return(requestFormService.GetItems(sessionId, true));
        }
Пример #4
0
        public IEnumerable <ItemDto> GetItems(int sessionId)
        {
            IItRequestFormService requestFormService = new ItRequestFormService();

            return(requestFormService.GetItems(sessionId));
        }