baotian
2024-06-04 b959135a1139fb66646523d92e5bd20c5910f283
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
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("checkbox")]
    [FrontTypeBindDatabase(DbProvider.SqlServer, typeof(string), "nvarchar(200)")]
    public class Front_Checkbox : Front_Base<Front_Checkbox_Options>, IFrontDynamic
    {
        public override ViewDynamic Dynamic
        { get { return new ViewDynamic() { Dynamic = this.Options.Dynamic, DynamicKey = this.Options.DynamicKey }; } }
    }
 
    public class Front_Checkbox_Options : IFrontDynamicOptions
    {
        /// <summary>
        /// 动态数据
        /// </summary>
        public string DynamicKey { get; set; }
 
        /// <summary>
        /// 是否是动态数据
        /// </summary>
        public bool Dynamic { get; set; }
 
        /// <summary>
        /// 选项配置
        /// </summary>
        public Front_Option[] Options { get; set; }
 
        /// <summary>
        /// 默认值
        /// </summary>
        public string[] DefaultValue { get; set; }
 
        /// <summary>
        /// 禁用
        /// </summary>
        public bool Disabled { get; set; }
 
        /// <summary>
        /// 隐藏
        /// </summary>
        public bool Hidden { get; set; }
    }
}