Ejemplo n.º 1
0
        private void Create_Click(object sender, EventArgs e)
        {
            Ticket.CustomerInfo ci = new Ticket.CustomerInfo()
            {
                FirstName = firstName.Text,
                LastName = lastName.Text,
                Address = addressInfo.Text,
                PrimaryPhone = primaryPhone.Text,
                AlternatePhone = alternatePhone.Text,
                Email = emailAddress.Text,
                ComputerResponse = placeResponse.Text,
                NetworkResponse = networkResponse.Text,
                SpeedResponse = speedResponse.Text,
                ProtectionResponse = protectionResponse.Text,
                BackupReponse = backupResponse.Text,
                DiscussReponse = discussResponse.Text,
                Issues = issues.Text,
                CompInfo = new Ticket.ComputerInformation()
                {
                    Brand = brand.Text,
                    Model = model.Text,
                    Serial = serial.Text,
                    Processor = processor.Text,
                    OperatingSystem = operatingSystem.Text,
                    RAM = currentRAM.Text,
                    MaxRAM = maxRAM.Text
                }
            };

            Ticket t = new Ticket(ci);
            t.OrderAdded += t_OrderAdded;
            t.CreateTicket();
            Ticket.OpenTickets.Add(t);
            this.Close();
        }
Ejemplo n.º 2
0
 public void AddOrder(Ticket ticket)
 {
     OpenOrders.Items.Add(ticket);
     lockDownMode.Text = ticket.Level.ToString();
     StatusText.Text = ticket.Status.ToString().Replace('_', ' ');
     workOrder.Text = ticket.WorkOrderNumber.ToString();
     currentName.Text = string.Format("{0}, {1}", ticket.CustomerInformation.LastName, ticket.CustomerInformation.FirstName);
     CurrentNotes = ticket.Notes;
     CurrentNotes.Invalidate();
 }
Ejemplo n.º 3
0
 void t_OrderAdded(Ticket ticket)
 {
     Master.Self.AddOrder(ticket);
     BoxDiag.Success(string.Format("Success! You've created a work order for {0} {1} with {2} as new WID", ticket.CustomerInformation.FirstName, ticket.CustomerInformation.LastName, ticket.WorkOrderNumber));
 }