74 lines
No EOL
3 KiB
C#
74 lines
No EOL
3 KiB
C#
using Data.SeaHavenIndustries;
|
|
|
|
namespace Api.SeaHavenIndustries.DTOs
|
|
{
|
|
public class Workorder_DTO
|
|
{
|
|
public string? WorkerOrderNumber { get; set; }
|
|
public string? WorkerOrderTitle { get; set; }
|
|
public string? Description { get; set; }
|
|
public string? PO { get; set; }
|
|
public string? TT { get; set; }
|
|
//public int? ContactId { get; set; }
|
|
public string? AssignTo { get; set; }
|
|
public DateTime? DueDate { get; set; }
|
|
public string? Priority { get; set; }
|
|
public int? LocationId { get; set; }
|
|
public bool? istemplate { get; set; }
|
|
//public int? CategoryId { get; set; }
|
|
|
|
public List<IFormFile>? Attachments { get; set; }
|
|
public string? BeforPhotoIssue { get; set; }
|
|
public IFormFile? BeforPhotoAttachment { get; set; }
|
|
public string? AfterPhotoIssue { get; set; }
|
|
public IFormFile? AfterPhotoAttachment { get; set; }
|
|
public string? SignOffName { get; set; }
|
|
public IFormFile? SignOffAttachment { get; set; }
|
|
public string? SignOffSignature { get; set; }
|
|
public string? WorkOrderContacts { get; set; }
|
|
public string? WorkOrderCategories { get; set; }
|
|
public List<int> GetContactIds()
|
|
{
|
|
return WorkOrderContacts?.Split(',').Select(int.Parse).ToList() ?? new List<int>();
|
|
}
|
|
public List<int> GetCategoryIds()
|
|
{
|
|
return WorkOrderCategories?.Split(',').Select(int.Parse).ToList() ?? new List<int>();
|
|
}
|
|
}
|
|
public class EditWorkorder_DTO
|
|
{
|
|
public int? Id { get; set; }
|
|
public string? WorkerOrderNumber { get; set; }
|
|
public string? WorkerOrderTitle { get; set; }
|
|
public string? Description { get; set; }
|
|
public string? PO { get; set; }
|
|
public string? TT { get; set; }
|
|
//public int? ContactId { get; set; }
|
|
public string? AssignTo { get; set; }
|
|
public DateTime? DueDate { get; set; }
|
|
public string? Priority { get; set; }
|
|
public int? LocationId { get; set; }
|
|
//public int? CategoryId { get; set; }
|
|
|
|
public List<IFormFile>? Attachments { get; set; }
|
|
public string? BeforPhotoIssue { get; set; }
|
|
public IFormFile? BeforPhotoAttachment { get; set; }
|
|
public string? AfterPhotoIssue { get; set; }
|
|
public IFormFile? AfterPhotoAttachment { get; set; }
|
|
public string? SignOffName { get; set; }
|
|
public IFormFile? SignOffAttachment { get; set; }
|
|
public string? SignOffSignature { get; set; }
|
|
public string? WorkOrderContacts { get; set; }
|
|
public string? WorkOrderCategories { get; set; }
|
|
public List<int> GetContactIds()
|
|
{
|
|
return WorkOrderContacts?.Split(',').Select(int.Parse).ToList() ?? new List<int>();
|
|
}
|
|
public List<int> GetCategoryIds()
|
|
{
|
|
return WorkOrderCategories?.Split(',').Select(int.Parse).ToList() ?? new List<int>();
|
|
}
|
|
}
|
|
|
|
} |