Esempio n. 1
0
 public override string ToString()
 {
     return(Title + " : " +
            Description + " [ " +
            CreationDate.ToShortDateString() + " ] " +
            Copleted.ToString());
 }
Esempio n. 2
0
 public bool Equals(TicketResponse other)
 {
     return(other.CreationDate.ToShortDateString() == CreationDate.ToShortDateString() &&
            other.Creator == Creator &&
            other.MinsSpent == MinsSpent &&
            other.Response == Response &&
            other.TicketId == TicketId);
 }
Esempio n. 3
0
        public bool Equals(TicketQueue other)
        {
            return
                (other.CreationDate.ToShortDateString() == CreationDate.ToShortDateString() &&
                 other.Creator == Creator &&
                 other.Description == Description &&
                 other.IsActive == IsActive &&
                 other.Name == Name &&
                 other.QueueId == QueueId);

            //TODO:  May need to consider comparing tickets at a later date.
        }
Esempio n. 4
0
 public bool Equals(Ticket other)
 {
     return
         (other.Status.TicketStatusId == Status.TicketStatusId &&
          other.Requestor.RequestorId == Requestor.RequestorId &&
          other.Queue.QueueId == Queue.QueueId &&
          other.Priority == Priority &&
          other.Module.TicketModuleId == Module.TicketModuleId &&
          other.DueDate.ToShortDateString() == DueDate.ToShortDateString() &&
          other.Description == Description &&
          other.Creator == Creator &&
          other.CreationDate.ToShortDateString() == CreationDate.ToShortDateString() &&
          other.Category.TicketCategoryId == Category.TicketCategoryId);
 }
Esempio n. 5
0
        public string ToCsvFormattedString()
        {
            string retVal = string.Empty;

            retVal += "\"" + Name.Replace("\"", "\"\"") + "\",";
            retVal += "\"" + Path.Replace("\"", "\"\"") + "\",";
            retVal += "\"" + SizeInBytes + "\",";
            retVal += "\"" + CreationDate.ToShortDateString() + "\",";
            retVal += "\"" + LastModifiedDate.ToShortDateString() + "\",";
            retVal += "\"" + LastAccessDate.ToShortDateString() + "\",";
            retVal += "\"" + Error.Replace("\"", "\"\"") + "\"";

            return(retVal);
        }
Esempio n. 6
0
 /// <summary> Get Date without time. </summary>
 public string GetDate()
 {
     return(CreationDate.ToShortDateString());
 }
Esempio n. 7
0
 public override string ToString()
 {
     return
         ($"{Id};{LastName};{FirstName};{Patronymic};{Iin};{CreationDate.ToShortDateString()};{LegalEntityId}");
 }
Esempio n. 8
0
 public override string ToString()
 {
     return($"Марка: {Mark} Год: {CreationDate.ToShortDateString()} " +
            $"номер двигателя: {EngineVin} номер кузова: {BodyVin} Цвет: {Color} Номер: {Number} ФИО владельца: {DriverFIO}");
 }
Esempio n. 9
0
 public override string ToString() =>
 $"Выдача терминала {CreationDate.ToShortDateString()} в {CreationDate.ToShortTimeString()}\r\n" +
 $"со склада {WarehouseMovementOperation.WriteoffWarehouse.Name}";
Esempio n. 10
0
 public override string ToString() =>
 $"Возрат терминала {CreationDate.ToShortDateString()} в {CreationDate.ToShortTimeString()}\r\n" +
 $"на склад {WarehouseMovementOperation.IncomingWarehouse.Name}";
Esempio n. 11
0
        public string ToDiscordString()
        {
            // Header
            var displayString = "Note #" + NoteID + " by **" + CreatorName + "** for  **" + TargetName + " (" + TargetID + ")** on " + CreationDate.ToShortDateString() + "\n";

            // Actual note content in code block
            displayString += "```\n";
            displayString += NoteContent;
            displayString += "```\n";

            return(displayString);
        }