46 lines
1.4 KiB
C#
46 lines
1.4 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace CPRNIMS.Infrastructure.Entities.Inventory
|
|
{
|
|
[Table("MRS")]
|
|
public class MRS
|
|
{
|
|
[Key]
|
|
public long MRSId { get; set; }
|
|
|
|
[Required, MaxLength(50)]
|
|
public string MRSNo { get; set; } = string.Empty;
|
|
public long RISId { get; set; }
|
|
public int InventoryId { get; set; }
|
|
[Required, MaxLength(450)]
|
|
public string ReturnedBy { get; set; } = string.Empty;
|
|
public decimal QtyReturned { get; set; }
|
|
|
|
[MaxLength(100)]
|
|
public string? Condition { get; set; }
|
|
|
|
[MaxLength(500)]
|
|
public string? Remarks { get; set; }
|
|
|
|
public short Status { get; set; } = 0;
|
|
|
|
[Required, MaxLength(450)]
|
|
public string CreatedBy { get; set; } = string.Empty;
|
|
|
|
public DateTime CreatedDate { get; set; } = DateTime.Now;
|
|
public string? ApprovedBy { get; set; }
|
|
public DateTime? ApprovedDate { get; set; }
|
|
public string? CanceledBy { get; set; }
|
|
public DateTime? CanceledDate { get; set; }
|
|
public string? Reason { get; set; }
|
|
public RIS RIS { get; set; } = null!;
|
|
public Inventory Inventory { get; set; } = null!;
|
|
}
|
|
}
|