using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace YBDevice.Entity
{
///
/// 设备列表
///
public class DeviceListModel:YB_Device
{
///
/// 客户名称
///
public string BusinessName { get; set; }
///
/// 类型名称
///
public string TypeName { get; set; }
///
/// 今日称重次数
///
public int todayresultcnt { get; set; }
///
/// 累计称重次数
///
public int totalresultcnt { get; set; }
///
/// 最近测量时间
///
public string time { get; set; }
}
///
/// 设备和设备类型列表数据
///
public class DeviceAndTypeModel
{
///
/// 设备信息
///
public YB_Device equ { get; set; }
///
/// 设备类型列表
///
public List types { get; set; }
}
///
/// 设备批量操作
///
public class DeviceBatchModel
{
///
/// 服务商ID
///
public int BusinessId { get; set; }
///
/// 操作类型,1-分配,2-回收
///
public int type { get; set; }
///
/// 设备ID列表
///
public List codes { get; set; }
///
/// 分配是否激活,管理员使用,1-是,0-否
///
public int isactive { get; set; } = 1;
}
///
/// 关键字回复响应信息
///
public class WXTextResponseData
{
///
/// 用户fansid
///
public string wxfansid { get; set; }
///
/// 类型,1-带测量参数二维码,2-固定二维码
///
public int type { get; set;}
///
/// 记录ID
///
public string resultid { get; set; } = null;
}
///
/// 用户扫码的设备列表
///
public class ScanListC2SDto
{
///
/// 列表数据,多个之间以,分隔
///
[Required(ErrorMessage ="设备列表不可为空")]
public string Data { get; set; }
///
/// 文件名称
///
[Required(ErrorMessage ="请先输入一个文件名称"),MaxLength(100,ErrorMessage ="名称最多100个字")]
public string Name { get; set; }
}
}