MacLastStatus.cs 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. using Cksoft.Unity;
  2. using System;
  3. namespace DllEapEntity.OFILM
  4. {
  5. [Table("maclaststatus")]
  6. public class MacLastStatus:BaseEntity
  7. {
  8. ////自动产生代码开始&&此行不能删除
  9. #region 自动产生代码
  10. public MacLastStatus()
  11. {
  12. base.EntityStatusID = 1;
  13. }
  14. [ColDetail(10,"Id",1,1,100,1,"a.Id","",1,1)]
  15. [Key]
  16. [Identity]
  17. public int Id { get; set; }
  18. [ColDetail(20,"机台号",1,1,100,1,"a.MacCode","",1,1)]
  19. public string MacCode { get; set; }
  20. [ColDetail(50,"持续时长",1,1,100,1,"a.Flen","",1,1)]
  21. public int Flen { get; set; }
  22. [ColDetail(60,"稼动率",1,1,100,1,"a.RunRate","",1,1)]
  23. public decimal? RunRate { get; set; }
  24. [ColDetail(70,"记录产生时间",1,1,100,1,"a.RecTime","",1,1)]
  25. public DateTime RecTime { get; set; }
  26. [ColDetail(80,"班别",1,1,100,1,"a.Shift","",1,1)]
  27. public int Shift { get; set; }
  28. [ColDetail(90,"FDate",1,1,100,1,"a.FDate","",1,1)]
  29. public DateTime FDate { get; set; }
  30. [ColDetail(100,"StatusId",1,1,100,1,"a.StatusId","",1,1)]
  31. public int StatusId { get; set; }
  32. [ColDetail(110,"STime",1,1,100,1,"a.STime","",1,1)]
  33. public DateTime STime { get; set; }
  34. [ColDetail(120, "Remark", 1, 1, 100, 1, "a.Remark", "", 1, 1)]
  35. public string Remark { get; set; }
  36. [ColDetail(130, "FactoryId", 1, 1, 100, 1, "a.FactoryId", "", 1, 1)]
  37. public int? FactoryId { get; set; }
  38. [ColDetail(130, "RegionId", 1, 1, 100, 1, "a.RegionId", "", 1, 1)]
  39. public int? RegionId { get; set; }
  40. public override string GetSelectSql()
  41. {
  42. return string.Format($"select { GetQueryColSql()} from { GetQueryTabSql()}");
  43. }
  44. public override string GetQueryColSql()
  45. {
  46. 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";
  47. sqlstr += ",0 EntityStatusID";
  48. return sqlstr;
  49. }
  50. public override string GetQueryTabSql()
  51. {
  52. string sqlstr=" maclaststatus a ";
  53. return sqlstr;
  54. }
  55. public override string GetQuerySortSql()
  56. {
  57. return "";
  58. }
  59. #endregion
  60. ////自动产生代码结束&&此行不能删除
  61. }
  62. }