BIOutput.cs 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. using Cksoft.Unity;
  2. using System;
  3. namespace DllEapEntity
  4. {
  5. [Table("bioutput")]
  6. public class BIOutput:BaseEntity
  7. {
  8. ////自动产生代码开始&&此行不能删除
  9. #region 自动产生代码
  10. public BIOutput()
  11. {
  12. base.EntityStatusID = 1;
  13. }
  14. [ColDetail(80,"Id",1,1,100,1,"a.Id","",1,1)]
  15. [Key]
  16. [Identity]
  17. public int Id { get; set; }
  18. [ColDetail(90,"Device_Code",1,1,100,1,"a.Device_Code","",1,1)]
  19. public string Device_Code { get; set; }
  20. [ColDetail(100,"FDate",1,1,100,1,"a.FDate","",1,1)]
  21. public DateTime FDate { get; set; }
  22. [ColDetail(110,"All_Product",1,1,100,1,"a.All_Product","",1,1)]
  23. public int All_Product { get; set; }
  24. [ColDetail(120,"Goods",1,1,100,1,"a.Goods","",1,1)]
  25. public int Goods { get; set; }
  26. [ColDetail(130,"Recipe",1,1,100,1,"a.Recipe","",1,1)]
  27. public string Recipe { get; set; }
  28. public override string GetSelectSql()
  29. {
  30. return string.Format($"select { GetQueryColSql()} from { GetQueryTabSql()}");
  31. }
  32. public override string GetQueryColSql()
  33. {
  34. string sqlstr = "a.Id Id,a.Device_Code Device_Code,a.FDate FDate,a.All_Product All_Product,a.Goods Goods,a.Recipe Recipe,0 EntityStatusID";
  35. return sqlstr;
  36. }
  37. public override string GetQueryTabSql()
  38. {
  39. string sqlstr=" bioutput a ";
  40. return sqlstr;
  41. }
  42. public override string GetQuerySortSql()
  43. {
  44. return "";
  45. }
  46. #endregion
  47. ////自动产生代码结束&&此行不能删除
  48. public string Factory { get; set; }
  49. public string Plant { get; set; }
  50. public string Floor { get; set; }
  51. public string Line { get; set; }
  52. public string Project { get; set; }
  53. public string Dev_Type { get; set; }
  54. public string Work_Process { get; set; }
  55. }
  56. }