移动系统liao
2025-05-01 a247547df86f0fad8f03aebb91de68d3f2bc7918
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
using Models;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace cylsg.Model.ECTEModel
{
    /// <summary>
    /// 川印司机打卡类
    /// </summary>
    public  class OA_DriverRecord
    {
        /// <summary>
        /// id   Key
        /// </summary>
        [SugarColumn(IsPrimaryKey =true)]
        public Guid? Id { get; set; }
        /// <summary>
        /// 里程表 公里
        /// </summary>
        public int Mileage { get; set; } = 0;
 
        /// <summary>
        /// 车辆里程表图片
        /// </summary>
        public string? MileageImg { get; set; }
        /// <summary>
        /// 车况
        /// </summary>
        public string? CarCondition { get; set; }
 
        /// <summary>
        /// 备注
        /// </summary>
        public string? Remark { get; set; }
 
        /// <summary>
        /// 未装货情况
        /// </summary>
        public string ? EmptyCause { get; set; }
 
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreatTime { get; set; }
 
        /// <summary>
        ///  创建人的memberId
        /// </summary>
        public  Guid?  CreaterID { get; set; }
 
        /// <summary>
        /// 车辆ID
        /// </summary>
        public  int CarID { get; set; }
        /// <summary>
        /// 创建人对象
        /// </summary>
        [Navigate(NavigateType.OneToOne, nameof(OaStaff.MemberId), nameof(CreaterID))]
        public OaStaff? CreaterStaff { get; set; }
 
        /// <summary>
        /// 车辆
        /// </summary>
        [Navigate(NavigateType.OneToOne, nameof(CarID), nameof(OA_CarManage.Keyid))]
        public OA_CarManage Car { get; set; }
        /// <summary>
        ///  创建人
        /// </summary>
        public string? Creater { get; set; }
 
 
        /// <summary>
        /// 附件列表  4
        /// </summary>
        [Navigate(NavigateType.OneToMany,  nameof(OA_attachment.OA_Id), nameof(Id), "AttachmentType=4")]
        public List<OA_attachment> Attachments { get; set; }
 
        /// <summary>
        /// 车辆检测照片列表  5
        /// </summary>
        [Navigate(NavigateType.OneToMany, nameof(OA_attachment.OA_Id), nameof(Id), "AttachmentType=5")]
        public List<OA_attachment> CarConditionAttachments { get; set; }
 
 
        /// <summary>
        /// 打卡类型
        /// </summary>
        public DriverClockType ClockType { get; set; } = DriverClockType.Unknown;
 
 
   
 
        /// <summary>
        /// 是否可以编辑
        /// </summary>
        [SugarColumn(IsIgnore =true)]
        public bool  CanEdit  { get; set; }=false;
 
 
    }
    /// <summary>
    /// 打卡类型
    /// </summary>
    public enum DriverClockType
    {
        /// <summary>
        /// 未知类型
        /// </summary>
        Unknown,
        /// <summary>
        /// 上班打卡
        /// </summary>
        ClockIn,
        /// <summary>
        /// 下班打卡
        /// </summary>
        Clockout,
        /// <summary>
        /// 草稿
        /// </summary>
        RoughDraft
 
    }
}