40 lines
1.2 KiB
C#
40 lines
1.2 KiB
C#
namespace LingAdmin.API.DTOs;
|
|
|
|
public class RequisitionDto
|
|
{
|
|
public int Id { get; set; }
|
|
public string ReqNo { get; set; } = string.Empty;
|
|
public string Requester { get; set; } = string.Empty;
|
|
public string Department { get; set; } = string.Empty;
|
|
public DateTime Date { get; set; }
|
|
public string Status { get; set; } = string.Empty;
|
|
public string? Description { get; set; }
|
|
public decimal TotalAmount { get; set; }
|
|
public List<RequisitionItemDto> Items { get; set; } = new();
|
|
}
|
|
|
|
public class RequisitionItemDto
|
|
{
|
|
public int Id { get; set; }
|
|
public string ItemName { get; set; } = string.Empty;
|
|
public int Quantity { get; set; }
|
|
public decimal Price { get; set; }
|
|
}
|
|
|
|
public class CreateRequisitionDto
|
|
{
|
|
public required string Requester { get; set; }
|
|
public required string Department { get; set; }
|
|
public DateTime Date { get; set; }
|
|
public required string Status { get; set; }
|
|
public string? Description { get; set; }
|
|
public List<CreateRequisitionItemDto> Items { get; set; } = new();
|
|
}
|
|
|
|
public class CreateRequisitionItemDto
|
|
{
|
|
public required string ItemName { get; set; }
|
|
public int Quantity { get; set; }
|
|
public decimal Price { get; set; }
|
|
}
|