ChangeStationModel.cs 2.22 KB
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;

namespace WebRepository
{
    /// <summary>
	/// 站台设置
    /// 任务类型说明:insert时所以参数都必须填写,界面需要做管控
    /// strBarcode也就是RFID必须是唯一,且一旦insert成功不允许更改
    /// 通过strBarcode更新/删除 其他属性值
    /// </summary>
    public partial class ChangeStationModel
    {
        /// <summary>
        /// "站台类型,int,3是充电桩,其他待定",
        /// </summary>
        public int stationType { get; set; }
        /// <summary>
	    /// "站台类型,int,3是充电桩,其他待定",
	    /// </summary>
        public string Group { get; set; }
        /// <summary>
	    /// "站台所属区域,string(20)"
	    /// </summary>
        public string Area { get; set; }
        /// <summary>
	    /// "站台方向"
	    /// </summary>
        public int stationOri { get; set; }
        /// <summary>
	    /// "充电距离"
	    /// </summary>
        public int Length { get; set; }
        /// <summary>
        /// "小车是否启用,bit"
        /// </summary>
        public bool? isEnable { get; set; }
        /// <summary>
        /// isLocked
        /// </summary>
        public bool? isLocked { get; set; }
        /// <summary>
        /// "站台RFID值",string(20),唯一
        /// </summary>
        public string Barcode { get; set; }
        /// <summary>
        /// "站台关联点"
        /// </summary>
        public string PreBarcode { get; set; }

        /// <summary>
        /// "站台名称",string(20),唯一
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// "任务类型,string(50) ,"insert"增加,"update"更新,"delete"删除,必填"
        /// </summary>
        public string type { get; set; }

        /// <summary>
        /// 站台状态
        /// </summary>
        public int stationState { get; set; }

        //唯一标识
        public string ID { get; set; }

        public ChangeStationModel()
        {
            stationType = 0;
            stationOri = 0;
            Length = 0;
            stationState = 0;
        }
    }
}