serv full ticket
This commit is contained in:
18
Shared/DTOs/AddSubTicket.cs
Normal file
18
Shared/DTOs/AddSubTicket.cs
Normal 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; }
|
||||
|
||||
}
|
||||
}
|
14
Shared/DTOs/Serch/IFildGlobalItemSerch.cs
Normal file
14
Shared/DTOs/Serch/IFildGlobalItemSerch.cs
Normal 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; }
|
||||
}
|
||||
}
|
16
Shared/DTOs/Serch/ItemSerchGetTicket.cs
Normal file
16
Shared/DTOs/Serch/ItemSerchGetTicket.cs
Normal 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;
|
||||
}
|
||||
}
|
17
Shared/DTOs/SubTicketDTO.cs
Normal file
17
Shared/DTOs/SubTicketDTO.cs
Normal 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
20
Shared/DTOs/TicketDTO.cs
Normal 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; }
|
||||
}
|
||||
}
|
17
Shared/Enums/CustomerType.cs
Normal file
17
Shared/Enums/CustomerType.cs
Normal 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
|
||||
|
||||
}
|
||||
}
|
25
Shared/Enums/InvoiceType.cs
Normal file
25
Shared/Enums/InvoiceType.cs
Normal 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
|
||||
|
||||
}
|
||||
}
|
21
Shared/Enums/SentStatus.cs
Normal file
21
Shared/Enums/SentStatus.cs
Normal 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
12
Shared/Enums/SideType.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Shared.DTOs
|
||||
{
|
||||
public enum SideType
|
||||
{
|
||||
[Display(Name = "مشتری")]
|
||||
Customer,
|
||||
[Display(Name = "کارشناس")]
|
||||
Expert
|
||||
}
|
||||
}
|
14
Shared/Enums/StatusOrder.cs
Normal file
14
Shared/Enums/StatusOrder.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Shared.DTOs
|
||||
{
|
||||
public enum StatusOrder
|
||||
{
|
||||
[Display(Name = "ساخته شده")]
|
||||
Create,
|
||||
[Display(Name = "پرداخت شده")]
|
||||
Paid,
|
||||
[Display(Name = "انصراف داده شده")]
|
||||
Cancel
|
||||
}
|
||||
}
|
21
Shared/Enums/StatusTicket.cs
Normal file
21
Shared/Enums/StatusTicket.cs
Normal 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,
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user