using Models;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace cylsg.Model.ECTEModel
{
///
/// 川印司机打卡类
///
public class OA_DriverRecord
{
///
/// id Key
///
public Guid? Id { get; set; }
///
/// 里程表 公里
///
public int Mileage { get; set; } = 0;
///
/// 车况
///
public string? CarCondition { get; set; }
///
/// 备注
///
public string? Remark { get; set; }
///
/// 未装货情况
///
public string ? EmptyCause { get; set; }
///
/// 创建时间
///
public DateTime CreatTime { get; set; }
///
/// 创建人的memberId
///
public Guid? CreaterID { get; set; }
///
/// 车辆ID
///
public int CarID { get; set; }
///
/// 创建人对象
///
public OaStaff? Staff { get; set; }
///
/// 车辆
///
public OA_CarManage Car { get; set; }
///
/// 创建人
///
public string? Creater { get; set; }
///
/// 附件列表 4
///
[Navigate(NavigateType.OneToMany, nameof(OA_attachment.OA_Id), nameof(Id), "AttachmentType=4")]
public List Attachments { get; set; }
///
/// 车辆检测照片列表 5
///
[Navigate(NavigateType.OneToMany, nameof(OA_attachment.OA_Id), nameof(Id), "AttachmentType=5")]
public List CarConditionAttachments { get; set; }
///
/// 打卡类型
///
public DriverClockType ClockType { get; set; } = DriverClockType.Unknown;
}
///
/// 打卡类型
///
public enum DriverClockType
{
///
/// 未知类型
///
Unknown,
///
/// 上班打卡
///
ClockIn,
///
/// 下班打卡
///
Clockout
}
}