67 lines
1.8 KiB
C#
67 lines
1.8 KiB
C#
|
|
using System.Collections.Generic;
|
|
using _0_Framework.Domain;
|
|
using AccountManagement.Domain.AdminResponseAgg;
|
|
using AccountManagement.Domain.ClientResponseAgg;
|
|
using AccountManagement.Domain.TicketMediasAgg;
|
|
|
|
namespace AccountManagement.Domain.TicketAgg;
|
|
|
|
public class Ticket:EntityBase
|
|
{
|
|
public Ticket(string title, string description, long senderId, string contractingPartyName, string ticketType, long workshopId, string ticketNumber,long subAccountSenderId=0)
|
|
{
|
|
Title = title;
|
|
Description = description;
|
|
Status = "باز";
|
|
SenderId = senderId;
|
|
ContractingPartyName = contractingPartyName;
|
|
TicketType = ticketType;
|
|
WorkshopId = workshopId;
|
|
TicketNumber = ticketNumber;
|
|
SubAccountSenderId = subAccountSenderId;
|
|
}
|
|
public string Title { get; private set; }
|
|
public string Description { get; private set; }
|
|
public string TicketType { get; set; }
|
|
public string TicketNumber { get; set; }
|
|
public string Status { get; private set; }
|
|
public long SenderId { get; private set; }
|
|
public long SubAccountSenderId { get; set; }
|
|
public string ContractingPartyName { get; private set; }
|
|
public long WorkshopId { get; private set; }
|
|
public List<ClientResponse> ClientResponses { get; set; }
|
|
public List<AdminResponse> AdminResponses{ get; set; }
|
|
public List<TicketMedia> TicketMedias { get; set; }
|
|
public bool IsDeleted { get; set; }
|
|
|
|
public void Completed()
|
|
{
|
|
Status = "بسته شده";
|
|
}
|
|
|
|
public void Responded()
|
|
{
|
|
Status = "پاسخ داده شده";
|
|
}
|
|
|
|
public void AssignedToTasks()
|
|
{
|
|
Status = "درحال بررسی";
|
|
}
|
|
|
|
public void Open()
|
|
{
|
|
Status = "باز";
|
|
}
|
|
|
|
public void Delete()
|
|
{
|
|
IsDeleted = true;
|
|
}
|
|
|
|
public void RestoreDelete()
|
|
{
|
|
IsDeleted = false;
|
|
}
|
|
} |