Extension.cs 5.27 KB
using Hh.Mes.POJO.Entity;
using Microsoft.AspNetCore.Http;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace Hh.Mes.POJO.Entity
{
    public class base_entity
    {
        /// <summary>
        /// 建立时间
        /// </summary>
        [SugarColumn(ColumnDescription = "建立时间", IsNullable = true)]
        public DateTime createTime { get; set; }

        /// <summary>
        /// 建立者
        /// </summary>
        [SugarColumn(Length = 50, ColumnDescription = "建立者", IsNullable = true)]
        public string createBy { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        [SugarColumn(ColumnDescription = "更新时间", IsNullable = true)]
        public DateTime updateTime { get; set; }

        /// <summary>
        /// 更新者
        /// </summary>
        [SugarColumn(Length = 50, ColumnDescription = "更新者", IsNullable = true)]
        public string updateBy { get; set; }

        [SugarColumn(IsIgnore = true)]
        public bool Exel { get; set; }
    }

    public class base_Entity
    {
        [SugarColumn(IsIgnore = true)]
        public bool Exel { get; set; }
    }

    public partial class sys_interface_log
    {
        //最早日志时间
        [SugarColumn(IsIgnore = true)]
        public DateTime? BeginLogTime { get; set; }

        //最晚日志时间
        [SugarColumn(IsIgnore = true)]
        public DateTime? EndLogTime { get; set; }

        //response http  不是 200
        [SugarColumn(IsIgnore = true)]
        public string responseNo200 { get; set; }
    }


    public partial class GroupData
    {
        /// <summary>
        /// 组编号(每组对应不同的物料,PLC定义)
        /// </summary>
        public int? sequence { get; set; }

        public string materialCode { get; set; }

        public int? row { get; set; }
        /// <summary>
        /// 列
        /// </summary>

        public int? line { get; set; }
        /// <summary>
        /// 层
        /// </summary>
        public int? layer { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public int? qty { get; set; }

        public Guid bodyKeys { get; set; }

    }


   
    public partial class sys_File
    {
        /// <summary>
        /// 文件
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public List<IFormFile> excelfile { get; set; }
    }



    public partial class base_material
    {
        /// <summary>
        /// 新增,更新,删除标识Flag 0 新增 1 更新,2 删除
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public int flag { get; set; }

        [SugarColumn(IsIgnore = true)]
        public string codeOrName { get; set; }

        /// <summary>
        /// 物料页面新增编辑 区分物料还是物料BOM比例 
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string addOrEditFlag { get; set; }

        /// <summary>
        /// 追踪码
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string barCode { get; set; }

        /// <summary>
        /// 管段长度
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public decimal cuttingLength { get; set; }

        /// <summary>
        /// 物料批次
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string lotNo { get; set; }

    }


    public partial class base_project 
    {
        /// <summary>
        /// projectMapList 读取项目对应设备信息
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string flag { get; set; }

        /// <summary>
        /// 设备总数
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public int eqCount { get; set; }

        /// <summary>
        /// 设备在线
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public int eqOnLineCount { get; set; }

        /// <summary>
        /// 设备待机 空闲
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public int eqFreeCount { get; set; }

		/// <summary>
		/// 设备故障
		/// </summary>
		[SugarColumn(IsIgnore = true)]
        public int eqFailureCount { get; set; }


		/// <summary>
		/// 设备离线
		/// </summary>
		[SugarColumn(IsIgnore = true)]
		public int eqOfflineCount { get; set; }

		/// <summary>
		/// 客户关联的多个项目拼接串
		/// </summary>
		[SugarColumn(IsIgnore =true)]
        public string projectKeysString { get; set; }
    }

    public partial class base_factory
    {
        /// <summary>
        /// 客户关联的多个项目拼接串
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string projectKeysString { get; set; }

        /// <summary>
        /// 下拉框项目对应的厂房筛选条件
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string factorySelectWhere { get; set; }



    }

    public partial class base_equipment
    {
        //  [SugarColumn(IsIgnore =true)]
        //public List<string> factoryCodeList { get; set; } = new List<string>();

        /// <summary>
        /// 文件
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public List<IFormFile> excelfile { get; set; }
    }
}