FIC_Solar/SolarPower/Models/NoticeSchedule.cs
2021-08-13 16:54:03 +08:00

61 lines
2.1 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace SolarPower.Models
{
public class NoticeSchedule
{
public int Id { get; set; }
public byte Type { get; set; }
public string RecipientName { get; set; }
public string RecipientEmail { get; set; }
public string Subject { get; set; }
public string Content { get; set; }
public string Attachment { get; set; }
public byte IsDelivery { get; set; }
public string DeliveryAt { get; set; }
public string Reason { get; set; }
public int UserId { get; set; }
public int EmailType { get; set; }
public int ExceptionId { get; set; }
}
public class OperationPersonnel
{
public int PowerStationId { get; set; }
public int EmailDayReport { get; set; }
public int EmailMonthReport { get; set; }
public int EmailComplexReport { get; set; }
public int EmailException { get; set; }
public string Name { get; set; }
}
public class NoticeScheduleTable
{
public int Id { get; set; }
public string RecipientName { get; set; }
public int UserId { get; set; }
public int EmailType { get; set; }
public string Subject { get; set; }
public byte IsDelivery { get; set; }
private string deliveryAt;
public string DeliveryAt { get { return Convert.ToDateTime(deliveryAt).ToString("yyyy-MM-dd HH:mm:ss"); } set { deliveryAt = value; } }
private string createdAt;
public string CreatedAt { get { return Convert.ToDateTime(createdAt).ToString("yyyy-MM-dd HH:mm:ss"); } set { createdAt = value; } }
public string IsDeliveryName { get; set; }
public string EmailTypeName { get; set; }
}
public class NoticeTableSearch
{
public int TimeType { get; set; }
public string TimeRange { get; set; }
public int FormType { get; set; }
public int CheckType { get; set; }
public List<int> PowerstationIds { get; set; }
}
}