liuying
2025-09-24 6efa5f6ca7536a37e3af3592bb42db63bcb8371d
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
using iWare.Wms.Core.Util.LowCode.Front.Model;
using Furion.DatabaseAccessor;
using Furion.Extras.iWare.Wms.Util.LowCode.Front.Att;
using Furion.Extras.iWare.Wms.Util.LowCode.Front.Interface;
using Furion.Extras.iWare.Wms.Util.LowCode.Front.Model;
 
namespace Furion.Extras.iWare.Wms.Util.LowCode.Front
{
    /// <summary>
    /// 下拉选择器
    /// </summary>
    [FrontType("select")]
    [FrontTypeBindDatabase(DbProvider.SqlServer, typeof(string), "nvarchar(200)")]
    public class Front_Select : Front_Base<Front_Select_Options>, IFrontDynamic
    {
        public override ViewDynamic Dynamic
        { get { return new ViewDynamic() { Dynamic = this.Options.Dynamic, DynamicKey = this.Options.DynamicKey }; } }
    }
 
    public class Front_Select_Options : IFrontDynamicOptions
    {
        /// <summary>
        /// 动态数据
        /// </summary>
        public string DynamicKey { get; set; }
 
        /// <summary>
        /// 是否是动态数据
        /// </summary>
        public bool Dynamic { get; set; }
 
        /// <summary>
        /// 宽度
        /// </summary>
        public string Width { get; set; }
 
        /// <summary>
        /// 多选
        /// </summary>
        public bool Multiple { get; set; }
 
        /// <summary>
        /// 禁用
        /// </summary>
        public bool Disabled { get; set; }
 
        /// <summary>
        /// 可清除
        /// </summary>
        public bool Clearable { get; set; }
 
        /// <summary>
        /// 隐藏
        /// </summary>
        public bool Hidden { get; set; }
 
        /// <summary>
        /// 占位内容
        /// </summary>
        public string Placeholder { get; set; }
 
        /// <summary>
        /// 选项配置
        /// </summary>
        public Front_Option[] Options { get; set; }
 
        /// <summary>
        /// 可搜索
        /// </summary>
        public bool ShowSearch { get; set; }
 
        /// <summary>
        /// 默认值
        /// </summary>
        public string DefaultValue { get; set; }
    }
}