serv full ticket

This commit is contained in:
mmrbnjd
2024-05-01 15:42:21 +03:30
parent 827aa36860
commit 720b2f00ce
23 changed files with 353 additions and 58 deletions

View File

@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Shared.DTOs
{
public class AddSubTicket
{
[Required]
public int TicketID { get; set; }
[Required]
public string Text { get; set; }
}
}

View File

@@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Shared.DTOs.Serch
{
public interface IFildGlobalItemSerch
{
public int PageIndex { get; set; }
public int PageSize { get; set; }
}
}

View File

@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Shared.DTOs.Serch
{
public class ItemSerchGetTicket : IFildGlobalItemSerch
{
public int? TicketID { get; set; }
public string? Title { get; set; }
public int PageIndex { get; set; } = 1;
public int PageSize { get; set; } = 5;
}
}

View File

@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Shared.DTOs
{
public class SubTicketDTO
{
public string Text { get; set; }
public string Date { get; set; }
public string Time { get; set; }
public SideType Type { get; set; }
public string MsgType { get; set; }
}
}

20
Shared/DTOs/TicketDTO.cs Normal file
View File

@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Shared.DTOs
{
public class TicketDTO
{
public int TicketID { get; set; }
public string Title { get; set; }
public string CreateDate { get; set; }
public string CreateTime { get; set; }
public string EndDate { get; set; }
public string EndTime { get; set; }
public StatusTicket Status { get; set; }
public string MsgStatus { get; set; }
}
}

View File

@@ -0,0 +1,17 @@
using System.ComponentModel.DataAnnotations;
namespace Shared.DTOs
{
public enum CustomerType:int
{
[Display(Name = "حقیقی")]
genuine = 1,
[Display(Name = "حقوقی")]
legal = 2,
[Display(Name = "مشارکت مدنی")]
CivilPartnership = 3,
[Display(Name = "اتباع عیر ایرانی")]
NonIranianNationals = 4
}
}

View File

@@ -0,0 +1,25 @@
using System.ComponentModel.DataAnnotations;
namespace Shared.DTOs
{
public enum InvoiceType:int
{
[Display(Name = "پیشنهاد قیمت")]
Bidding=10,
//[Display(Name = "فاکتور")]
//Factor=11,
//[Display(Name = "قطعی")]
//Final=12,
[Display(Name = "لغو")]
CANCEL = 0,
[Display(Name = "فروش")]
Sale=1,
[Display(Name = "ابطالی")]
Cancellation=3,
[Display(Name = "اصلاحی")]
Repair=2,
[Display(Name = "برگشت از فروش")]
BackFrmSale = 4
}
}

View File

@@ -0,0 +1,21 @@
using System.ComponentModel.DataAnnotations;
namespace Shared.DTOs
{
public enum SentStatus
{
[Display(Name = "ارسال شده")]
Send,
[Display(Name = "موفق")]
Successful,
[Display(Name = "ناموفق")]
Unsuccessful,
[Display(Name = "در حال پردازش")]
pending,
[Display(Name = "نامشخص")]
Unknown,
[Display(Name = "یافت نشده")]
NOT_FOUND
}
}

12
Shared/Enums/SideType.cs Normal file
View File

@@ -0,0 +1,12 @@
using System.ComponentModel.DataAnnotations;
namespace Shared.DTOs
{
public enum SideType
{
[Display(Name = "مشتری")]
Customer,
[Display(Name = "کارشناس")]
Expert
}
}

View File

@@ -0,0 +1,14 @@
using System.ComponentModel.DataAnnotations;
namespace Shared.DTOs
{
public enum StatusOrder
{
[Display(Name = "ساخته شده")]
Create,
[Display(Name = "پرداخت شده")]
Paid,
[Display(Name = "انصراف داده شده")]
Cancel
}
}

View File

@@ -0,0 +1,21 @@
using System.ComponentModel.DataAnnotations;
namespace Shared.DTOs
{
public enum StatusTicket
{
[Display(Name = "فرد ناشناس")]
unknownPerson,
[Display(Name = "در انتظار بررسی")]
Awaitingreview,
[Display(Name = "خوانده شده/ در حال بررسی")]
Read_Checking,
[Display(Name = "پاسخ داده شده")]
hasbeenanswered,
[Display(Name = "پاِیان")]
End,
[Display(Name = "انصراف")]
optout,
}
}