示例#1
0
 public void UpdateTicket(Guid ticketId, string status, string priority)
 {
     using (var connection = ConnectionFactory.GetConnection())
     {
         DAL.Ticket ticket = new InfoWebTicketSystem.DAL.Ticket(connection);
         ticket.UpdateTicket(ticketId, status, priority);
     }
 }
示例#2
0
        public DataTable GetALLTickets()
        {
            DataTable dt;

            DAL.Ticket ticket = new InfoWebTicketSystem.DAL.Ticket();
            dt = ticket.GetAllTickets();

            return(dt);
        }
示例#3
0
        public DataTable GetUserAllTickets(string userEmailId)
        {
            DataTable dt;

            DAL.Ticket ticket = new InfoWebTicketSystem.DAL.Ticket();
            dt = ticket.GetUserAllTickets(userEmailId);

            return(dt);
        }
示例#4
0
        public DataTable GetUserTicket(Guid ticketId)
        {
            DataTable dt;

            using (var connection = ConnectionFactory.GetConnection())
            {
                DAL.Ticket ticket = new InfoWebTicketSystem.DAL.Ticket(connection);
                dt = ticket.GetUserTicket(ticketId);
            }

            return(dt);
        }
示例#5
0
        public DataTable GetALLTickets()
        {
            DataTable dt;

            using (var connection = ConnectionFactory.GetConnection())
            {
                DAL.Ticket ticket = new InfoWebTicketSystem.DAL.Ticket(connection);
                dt = ticket.GetAllTickets();
            }

            return(dt);
        }
示例#6
0
        public DataTable GetUserAllTickets(string userEmailId)
        {
            DataTable dt;

            using (var connection = ConnectionFactory.GetConnection())
            {
                DAL.Ticket ticket = new InfoWebTicketSystem.DAL.Ticket(connection);
                dt = ticket.GetUserAllTickets(userEmailId);
            }

            return(dt);
        }
示例#7
0
        public Guid InsertTicket(string priority, string subject, string message, string attachment, string type, string userEmailId, string domain, string contactNumber, string department, string lastReplier, string userName)
        {
            Guid ticketId = Guid.NewGuid();

            DAL.Ticket ticket = new InfoWebTicketSystem.DAL.Ticket();
            ticket.InsertTicket(ticketId, "OP", priority, subject, type, userEmailId, domain, contactNumber, department, lastReplier, userName);

            TicketConversation tikConv = new TicketConversation();
            Guid userId = GetEmptyGuid();

            tikConv.InsertConversation(ticketId, message, attachment, userId, false, userEmailId);

            return(ticketId);
        }
示例#8
0
 public DataTable GetUserTicket(string userEmailId, Guid ticketId)
 {
     DAL.Ticket ticket = new InfoWebTicketSystem.DAL.Ticket();
     return(ticket.GetUserTicket(userEmailId, ticketId));
 }
示例#9
0
 public void UpdateTicket(Guid ticketId, string status, string priority)
 {
     DAL.Ticket ticket = new InfoWebTicketSystem.DAL.Ticket();
     ticket.UpdateTicket(ticketId, status, priority);
 }