models
This commit is contained in:
31
Shared/DTOs/Warehouse/CirculationDto.cs
Normal file
31
Shared/DTOs/Warehouse/CirculationDto.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using Shared.Enums;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Shared.DTOs.Warehouse
|
||||
{
|
||||
public enum TypeCirculation
|
||||
{
|
||||
[Display(Name = "رسید")]
|
||||
Receipt,
|
||||
|
||||
[Display(Name = "حواله")]
|
||||
Remittance
|
||||
}
|
||||
public class CirculationDto
|
||||
{
|
||||
public int CODID { get; set; }
|
||||
public string? CODTitle { get; set; }
|
||||
public int Count { get; set; }
|
||||
public string Date { get; set; }
|
||||
public bool? ForSale { get; set; }
|
||||
public string ModelTypeTitle { get; set; }
|
||||
public int ModelTypeID { get; set; }
|
||||
public string info { get; set; }
|
||||
public TypeCirculation Type { get; set; }
|
||||
}
|
||||
}
|
21
Shared/DTOs/Warehouse/ReceiptDto.cs
Normal file
21
Shared/DTOs/Warehouse/ReceiptDto.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using Shared.Enums;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Shared.DTOs.Warehouse
|
||||
{
|
||||
public class ReceiptDto
|
||||
{
|
||||
public int? ID { get; set; }
|
||||
public int CODID { get; set; }
|
||||
public string? CODTitle { get; set; }
|
||||
public int Count { get; set; }
|
||||
public string Date { get; set; }
|
||||
public bool ForSale { get; set; }
|
||||
public TypeReceipt Type { get; set; }
|
||||
public string info { get; set; }
|
||||
}
|
||||
}
|
20
Shared/DTOs/Warehouse/RemittanceDto.cs
Normal file
20
Shared/DTOs/Warehouse/RemittanceDto.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using Shared.Enums;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Shared.DTOs.Warehouse
|
||||
{
|
||||
public class RemittanceDto
|
||||
{
|
||||
public int? ID { get; set; }
|
||||
public int CODID { get; set; }
|
||||
public string CODTitle { get; set; }
|
||||
public int Count { get; set; }
|
||||
public string Date { get; set; }
|
||||
public TypeRemittance Type { get; set; }
|
||||
public string info { get; set; }
|
||||
}
|
||||
}
|
17
Shared/Enums/TypeReceipt.cs
Normal file
17
Shared/Enums/TypeReceipt.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Shared.Enums
|
||||
{
|
||||
public enum TypeReceipt
|
||||
{
|
||||
[Display(Name = "خرید")]
|
||||
Shopping=1,
|
||||
[Display(Name = "امانت")]
|
||||
trust=2
|
||||
}
|
||||
}
|
17
Shared/Enums/TypeRemittance.cs
Normal file
17
Shared/Enums/TypeRemittance.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Shared.Enums
|
||||
{
|
||||
public enum TypeRemittance
|
||||
{
|
||||
[Display(Name = "فروش")]
|
||||
Sale=3,
|
||||
[Display(Name = "امانت")]
|
||||
trust=4
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user