ltable
This commit is contained in:
@@ -1,9 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Shared.DTOs
|
||||
{
|
||||
|
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
@@ -8,7 +9,9 @@ namespace Shared.DTOs
|
||||
{
|
||||
public class Employee1
|
||||
{
|
||||
[Display(Name ="شناسه")]
|
||||
public int Id { get; set; }
|
||||
[Display(Name = "نام")]
|
||||
public string Name { get; set; }
|
||||
public string Designation { get; set; }
|
||||
public DateOnly DOJ { get; set; }
|
||||
|
9
Shared/DTOs/Features/ShowNameAttribute.cs
Normal file
9
Shared/DTOs/Features/ShowNameAttribute.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace Shared.DTOs
|
||||
{
|
||||
|
||||
[AttributeUsage(AttributeTargets.Property)]
|
||||
public class ShowNameAttribute : Attribute
|
||||
{
|
||||
public string Name = "";
|
||||
}
|
||||
}
|
21
Shared/DTOs/ItemSerchGetCustomer.cs
Normal file
21
Shared/DTOs/ItemSerchGetCustomer.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using Shared.DTOs.Serch;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Shared.DTOs
|
||||
{
|
||||
public class ItemSerchGetCustomer : IFildGlobalItemSerch
|
||||
{
|
||||
public int? ID { get; set; }
|
||||
public CustomerType? CustomerType { get; set; }
|
||||
public string? EconomicCode { get; set; }
|
||||
public string? Phone { get; set; }
|
||||
public string? MeliCode { get; set; }
|
||||
public string? ZipCode { get; set; }
|
||||
public int PageIndex { get; set; } = 1;
|
||||
public int PageSize { get; set; } = 5;
|
||||
}
|
||||
}
|
24
Shared/DTOs/RCustomer.cs
Normal file
24
Shared/DTOs/RCustomer.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
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 RCustomer
|
||||
{
|
||||
[Display(Name ="شناسه")]
|
||||
public int ID { get; set; }
|
||||
[Display(Name = "نام کامل")]
|
||||
public string FullName { get; set; }
|
||||
[Display(Name = "نوع مشتری")]
|
||||
public string CustomerType { get; set; }
|
||||
[Display(Name = "تلفن")]
|
||||
public string Phone { get; set; }
|
||||
[Display(Name = "کد اقتصادی")]
|
||||
public string? EconomicCode { get; set; }
|
||||
|
||||
}
|
||||
}
|
19
Shared/DTOs/TestModel.cs
Normal file
19
Shared/DTOs/TestModel.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
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 TestModel
|
||||
{
|
||||
[Display(Name = "شناسه")]
|
||||
public int ID { get; set; }
|
||||
[Display(Name = "نام")]
|
||||
public string Name { get; set; }
|
||||
[Display(Name = "آدرس")]
|
||||
public string Address { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user