ke_junjie
2025-06-04 84620534eb627e95811b971a4b552b6a177829bf
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
using Furion.Extras.iWare.Wms.Util.LowCode.Enum;
using Furion.Extras.iWare.Wms.Util.LowCode.Factor.Interface;
using System.Reflection;
 
namespace Furion.Extras.iWare.Wms.Util.LowCode.Factor
{
    public class DateFactor : IFactor
    {
        public PropertyInfo Field { get; set; }
        public string Describe { get; set; }
        public string FieldName { get; set; }
 
        public FieldType FieldType
        { get { return FieldType.Date; } }
 
        public string DbType
        {
            get
            {
                if (IsDateTime) return "DATETIME";
                return "DATE";
            }
        }
 
        public bool IsDateTime { get; set; } = true;
    }
}