60 lines
2.2 KiB
C#
60 lines
2.2 KiB
C#
using System;
|
||
using System.Collections.Generic;
|
||
using System.Linq;
|
||
using System.Threading.Tasks;
|
||
|
||
namespace SolarPower.Models
|
||
{
|
||
public class Operation:Created
|
||
{
|
||
public int Id { get; set; }//流水號
|
||
public byte Delete { get; set; }//刪除
|
||
public string PlanId { get; set; }//計畫單號
|
||
public int PowerStationId { get; set; }//電站編號
|
||
public string SerialNumber { get; set; }//計畫單號用流水號
|
||
public int ScheduleNum { get; set; }//排程數字
|
||
public byte ScheduleType { get; set; }//排程屬性,0:天 1:周 2:月 3:季 4:年
|
||
public int WorkDay { get; set; }//預期工作天數
|
||
public DateTime StartTime { get; set; }//開始時間
|
||
public byte Type { get; set; }//項目, 0:清洗 1:巡檢
|
||
public byte EmailType { get; set; }//email提醒種類,0:當天 1:前一天 2:前兩天 3:前三天
|
||
public string Description { get; set; }//描述
|
||
|
||
}
|
||
public class PowerStationIdList
|
||
{
|
||
public string Text { get; set; }
|
||
public string Value { get; set; }
|
||
}
|
||
public class OperationCreatePlanModal : Created
|
||
{
|
||
public int Id { get; set; }
|
||
public int PowerStationId { get; set; }
|
||
public int Type { get; set; }
|
||
public int ScheduleNum { get; set; }
|
||
public int ScheduleType { get; set; }
|
||
public int WorkDay { get; set; }
|
||
public DateTime StartTime { get; set; }
|
||
public DateTime EndTime { get; set; }
|
||
public string Description { get; set; }
|
||
public int EmailType { get; set; }
|
||
}
|
||
public class OperationCreatePlan : OperationCreatePlanModal
|
||
{
|
||
public string PlanId { get; set; }
|
||
public string SerialNumber { get; set; }
|
||
}
|
||
public class OperationPlanTable : OperationCreatePlan
|
||
{
|
||
public string TypeName { get; set; }
|
||
public string PowerStationName { get; set; }
|
||
public string Schedule { get; set; }
|
||
public string EmailTypeName { get; set; }
|
||
public string CreatedPerson { get; set; }
|
||
public string Function { get; set; }//功能
|
||
public string ScheduleDay { get; set; }
|
||
public string StartTimeString { get; set; }
|
||
public string CreateTimeString { get; set; }
|
||
}
|
||
}
|