Esempio n. 1
0
        private void autoAssigned(TicketAgent tAgent)
        {
            //Auto assign
            AssignedTicketParams assignedTicketParams = new AssignedTicketParams()
            {
                TicketId     = ticketParam.TicketId,
                ActivityCode = AssignTicketActivityHandler.ACTIVITY_CODE,
                ActionCode   = "Auto Assigned",
                TeamId       = ticket.LastAssTeamId,
                Assignee     = tAgent.Id,
                ActComment   = "Auto assigned since agent take [post reply] action.",
                bySystem     = true
            };
            ITicketActivityHandler assinged = new AssignTicketActivityHandler(ACTIVITY_CODE, ticket, dataProcessingProvider, assignedTicketParams, actMssgHandlers);

            assinged.takeAction();
        }
Esempio n. 2
0
        protected override void postProcessing()
        {
            //No need to assigned
            if (isEdit() && statusChanged)
            {
                ChangeStatusActParams statusParams = new ChangeStatusActParams()
                {
                    TicketId        = ticket.Id,
                    ActivityCode    = ChangeStatusActivityHandler.ACTIVITY_CODE,
                    ActionCode      = "Auto change",
                    ActComment      = ticketParam.ActComment,
                    CurrLoginUserId = ticketParam.CurrLoginUserId,
                    StatusId        = ticketParam.StatusId
                };

                ITicketActivityHandler statusAct = new ChangeStatusActivityHandler(ACTIVITY_CODE, ticket, dataProcessingProvider, statusParams, actMssgHandlers);
                statusAct.setNotifyHandler(notifyHandler);
                statusAct.takeAction();
            }

            if (!isEdit() || reassigned)
            {
                AssignedTicketParams assignedTkParams = new AssignedTicketParams()
                {
                    TicketId        = ticket.Id,
                    ActivityCode    = AssignTicketActivityHandler.ACTIVITY_CODE,
                    ActionCode      = "Auto Assigned",
                    ActComment      = "Auto assigned",
                    TeamId          = ticketParam.TeamId,
                    Assignee        = ticketParam.Assignee,
                    CurrLoginUserId = ticketParam.CurrLoginUserId,
                    bySystem        = TicketParams.INTEGRATED_TYPE.NONE != ticketParam.AutomationType
                };
                ITicketActivityHandler assigned = new AssignTicketActivityHandler(ACTIVITY_CODE, ticket, dataProcessingProvider, assignedTkParams, actMssgHandlers);
                assigned.setNotifyHandler(notifyHandler);
                assigned.takeAction();
            }
        }