This commit is contained in:
mmrbnjd
2024-05-05 18:15:37 +03:30
parent 67adbee29a
commit df6c31eac2
13 changed files with 451 additions and 163 deletions

View File

@@ -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
{

View File

@@ -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; }

View File

@@ -0,0 +1,9 @@
namespace Shared.DTOs
{
[AttributeUsage(AttributeTargets.Property)]
public class ShowNameAttribute : Attribute
{
public string Name = "";
}
}

View 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
View 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
View 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; }
}
}