233
schangxiang@126.com
2024-07-05 b27a2ba1ccbd8e2e7b61a700dde5f891ed6ae35d
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;
    }
}