示例#1
0
 public override string ToString()
 {
     return(Title + " : " +
            Description + " [ " +
            CreationDate.ToShortDateString() + " ] " +
            Copleted.ToString());
 }
示例#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);
 }
示例#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.
        }
示例#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);
 }
示例#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);
        }
示例#6
0
 /// <summary> Get Date without time. </summary>
 public string GetDate()
 {
     return(CreationDate.ToShortDateString());
 }
示例#7
0
 public override string ToString()
 {
     return
         ($"{Id};{LastName};{FirstName};{Patronymic};{Iin};{CreationDate.ToShortDateString()};{LegalEntityId}");
 }
示例#8
0
 public override string ToString()
 {
     return($"Марка: {Mark} Год: {CreationDate.ToShortDateString()} " +
            $"номер двигателя: {EngineVin} номер кузова: {BodyVin} Цвет: {Color} Номер: {Number} ФИО владельца: {DriverFIO}");
 }
示例#9
0
 public override string ToString() =>
 $"Выдача терминала {CreationDate.ToShortDateString()} в {CreationDate.ToShortTimeString()}\r\n" +
 $"со склада {WarehouseMovementOperation.WriteoffWarehouse.Name}";
示例#10
0
 public override string ToString() =>
 $"Возрат терминала {CreationDate.ToShortDateString()} в {CreationDate.ToShortTimeString()}\r\n" +
 $"на склад {WarehouseMovementOperation.IncomingWarehouse.Name}";
示例#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);
        }