CheckBoxItem.cs 1.38 KB
using System;
using System.Collections.Generic;

namespace Hh.Mes.POJO.ViewModel
{
    public class CheckBoxItem
    {
        /// <summary>
        /// 复选框id
        /// </summary>
        public string Id { set; get; } = Guid.NewGuid().ToString();
        /// <summary>
        /// 复选框值
        /// </summary>
        public string Value { set; get; }
        /// <summary>
        /// 复选框文本内容
        /// </summary>
        public string Text { set; get; }
        /// <summary>
        /// 是否选中
        /// </summary>
        public bool Checked { set; get; }
        /// <summary>
        /// 是否可用
        /// </summary>
        public bool Disabled { set; get; }

        /// <summary>
        /// 按钮样式
        /// </summary>
        public string BtnClass { get; set; }

        /// <summary>
        /// 图标Unicode
        /// </summary>
        public string Icon { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { set; get; }
    }

    public class AreaBtnModel
    {
        public AreaBtnModel()
        {
            CheckBoxItems = new List<CheckBoxItem>();
        }

        /// <summary>
        /// 区域数值目前只能是1、2或3
        /// </summary>
        public string Area { get; set; }

        public ICollection<CheckBoxItem> CheckBoxItems { get; set; }
    }
}