order
This commit is contained in:
22
Shared/DTOs/OrderDto.cs
Normal file
22
Shared/DTOs/OrderDto.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Shared.DTOs
|
||||
{
|
||||
public class OrderDto
|
||||
{
|
||||
public int ID { get; set; }
|
||||
public StatusOrder Status { get; set; }
|
||||
public string StatusTitle { get { return Status.GetEnumDisplayName(); } }
|
||||
public string DateCreate { get; set; }
|
||||
public string ApprovalDate { get; set; }
|
||||
public decimal PreDiscount { get; set; }
|
||||
public decimal TDiscount { get; set; }
|
||||
public decimal lstDiscount { get; set; }
|
||||
public decimal TTax { get; set; }
|
||||
public decimal TPrice { get; set; }
|
||||
}
|
||||
}
|
21
Shared/DTOs/OrderItemDto.cs
Normal file
21
Shared/DTOs/OrderItemDto.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Shared.DTOs
|
||||
{
|
||||
public class OrderItemDto
|
||||
{
|
||||
public int ID { get; set; }
|
||||
public int OrderID { get; set; }
|
||||
public string Type { get; set; }
|
||||
public int IDForType { get; set; }
|
||||
public int CreditAmount { get; set; }
|
||||
public decimal APrice { get; set; }
|
||||
public decimal Discount { get; set; }
|
||||
public decimal Tax { get; set; }
|
||||
public decimal Total { get { return (CreditAmount * APrice) - Discount + Tax; } }
|
||||
}
|
||||
}
|
15
Shared/DTOs/PricingDto.cs
Normal file
15
Shared/DTOs/PricingDto.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Shared.DTOs
|
||||
{
|
||||
public class PricingDto
|
||||
{
|
||||
public int PermissionID { get; set; }
|
||||
public string PermissionTitle { get; set; }
|
||||
public decimal Price { get; set; }
|
||||
}
|
||||
}
|
18
Shared/DTOs/PromotionDetailDto.cs
Normal file
18
Shared/DTOs/PromotionDetailDto.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Shared.DTOs
|
||||
{
|
||||
public class PromotionDetailDto
|
||||
{
|
||||
public int ID { get; set; }
|
||||
public int PermissionID { get; set; }
|
||||
public string PermissionTitle { get; set; }
|
||||
public int CreditAmount { get; set; }
|
||||
public decimal APrice { get; set; }
|
||||
public decimal TPrice { get { return APrice * CreditAmount; } }
|
||||
}
|
||||
}
|
15
Shared/DTOs/PromotionDto.cs
Normal file
15
Shared/DTOs/PromotionDto.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Shared.DTOs
|
||||
{
|
||||
public class PromotionDto
|
||||
{
|
||||
public int ID { get; set; }
|
||||
public string Name { get; set; }
|
||||
public ICollection<PromotionDetailDto> promotionDetails { get; set; }
|
||||
}
|
||||
}
|
14
Shared/DTOs/Serch/ItemSerachOrder.cs
Normal file
14
Shared/DTOs/Serch/ItemSerachOrder.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 class ItemSerachOrder
|
||||
{
|
||||
public int? ID { get; set; }
|
||||
public StatusOrder? Status { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user