12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- using Cksoft.Unity;
- using System;
- namespace DllEapEntity.OFILM
- {
- [Table("maclaststatus")]
- public class MacLastStatus:BaseEntity
- {
- ////自动产生代码开始&&此行不能删除
- #region 自动产生代码
- public MacLastStatus()
- {
- base.EntityStatusID = 1;
- }
- [ColDetail(10,"Id",1,1,100,1,"a.Id","",1,1)]
- [Key]
- [Identity]
- public int Id { get; set; }
- [ColDetail(20,"机台号",1,1,100,1,"a.MacCode","",1,1)]
- public string MacCode { get; set; }
- [ColDetail(50,"持续时长",1,1,100,1,"a.Flen","",1,1)]
- public int Flen { get; set; }
- [ColDetail(60,"稼动率",1,1,100,1,"a.RunRate","",1,1)]
- public decimal? RunRate { get; set; }
- [ColDetail(70,"记录产生时间",1,1,100,1,"a.RecTime","",1,1)]
- public DateTime RecTime { get; set; }
- [ColDetail(80,"班别",1,1,100,1,"a.Shift","",1,1)]
- public int Shift { get; set; }
- [ColDetail(90,"FDate",1,1,100,1,"a.FDate","",1,1)]
- public DateTime FDate { get; set; }
- [ColDetail(100,"StatusId",1,1,100,1,"a.StatusId","",1,1)]
- public int StatusId { get; set; }
- [ColDetail(110,"STime",1,1,100,1,"a.STime","",1,1)]
- public DateTime STime { get; set; }
- [ColDetail(120, "Remark", 1, 1, 100, 1, "a.Remark", "", 1, 1)]
- public string Remark { get; set; }
- [ColDetail(130, "FactoryId", 1, 1, 100, 1, "a.FactoryId", "", 1, 1)]
- public int? FactoryId { get; set; }
- [ColDetail(130, "RegionId", 1, 1, 100, 1, "a.RegionId", "", 1, 1)]
- public int? RegionId { get; set; }
- public override string GetSelectSql()
- {
- return string.Format($"select { GetQueryColSql()} from { GetQueryTabSql()}");
- }
- public override string GetQueryColSql()
- {
- string sqlstr = "a.Id Id,a.MacCode MacCode,a.Flen Flen,a.RunRate RunRate,a.RecTime RecTime,a.Shift Shift,a.FDate FDate,a.StatusId StatusId,a.STime STime";
- sqlstr += ",0 EntityStatusID";
- return sqlstr;
- }
- public override string GetQueryTabSql()
- {
- string sqlstr=" maclaststatus a ";
- return sqlstr;
- }
- public override string GetQuerySortSql()
- {
- return "";
- }
- #endregion
- ////自动产生代码结束&&此行不能删除
- }
- }
|