49 lines
1.5 KiB
C#
49 lines
1.5 KiB
C#
using CPRNIMS.Infrastructure.Entities.Purchasing;
|
|
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("RIS")]
|
|
public class RIS
|
|
{
|
|
[Key]
|
|
public long RISId { get; set; }
|
|
|
|
[Required, MaxLength(50)]
|
|
public string RISNo { get; set; } = string.Empty;
|
|
|
|
public int InventoryId { get; set; }
|
|
public long PRDetailId { get; set; }
|
|
|
|
[Required, MaxLength(450)]
|
|
public string IssuedTo { get; set; } = string.Empty;
|
|
|
|
public byte DisciplineId { get; set; }
|
|
public decimal QtyIssued { 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 Inventory Inventory { get; set; } = null!;
|
|
public PRDetails PRDetail { get; set; } = null!;
|
|
public Discipline Discipline { get; set; } = null!;
|
|
public ICollection<MRS> MaterialReturns { get; set; } = [];
|
|
}
|
|
}
|