Productionplan.cs 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. using Cksoft.Unity;
  2. using System;
  3. namespace DllEapEntity
  4. {
  5. [Table("productionplan")]
  6. public class Productionplan:BaseEntity
  7. {
  8. ////自动产生代码开始&&此行不能删除
  9. #region 自动产生代码
  10. public Productionplan()
  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.park","",1,1)]
  19. public string Park { get; set; }
  20. [ColDetail(30,"客户",1,1,100,1,"a.customer","",1,1)]
  21. public string Customer { get; set; }
  22. [ColDetail(40,"机种",1,1,100,1,"a.machineType","",1,1)]
  23. public string MachineType { get; set; }
  24. [ColDetail(50,"工艺",1,1,100,1,"a.technology","",1,1)]
  25. public string Technology { get; set; }
  26. [ColDetail(60,"工艺Code",1,1,100,1,"a.technologyCode","",1,1)]
  27. public string TechnologyCode { get; set; }
  28. [ColDetail(70,"月计划",1,1,100,1,"a.monthPlan","",1,1)]
  29. public string MonthPlan { get; set; }
  30. [ColDetail(80,"天计划",1,1,100,1,"a.dayPlan","",1,1)]
  31. public string DayPlan { get; set; }
  32. [ColDetail(90,"RecCode",1,1,100,1,"a.RecCode","",1,1)]
  33. public string RecCode { get; set; }
  34. [ColDetail(100,"RecTime",1,1,100,1,"a.RecTime","",1,1)]
  35. public DateTime RecTime { get; set; }
  36. [ColDetail(110,"ModCode",1,1,100,1,"a.ModCode","",1,1)]
  37. public string ModCode { get; set; }
  38. [ColDetail(120,"ModTime",1,1,100,1,"a.ModTime","",1,1)]
  39. public DateTime ModTime { get; set; }
  40. [ColDetail(140,"planTime",1,1,100,1,"a.planTime","",1,1)]
  41. public string PlanTime { get; set; }
  42. [ColDetail(150,"楼层",1,1,100,1,"a.floor","",1,1)]
  43. public string Floor { get; set; }
  44. public override string GetSelectSql()
  45. {
  46. return string.Format($"select { GetQueryColSql()} from { GetQueryTabSql()}");
  47. }
  48. public override string GetQueryColSql()
  49. {
  50. string sqlstr = "a.ID ID,a.park Park,a.customer Customer,a.machineType MachineType,a.technology Technology,a.technologyCode TechnologyCode,a.monthPlan MonthPlan";
  51. sqlstr += ",a.dayPlan DayPlan,a.RecCode RecCode,a.RecTime RecTime,a.ModCode ModCode,a.ModTime ModTime,a.planTime PlanTime,a.floor Floor,0 EntityStatusID";
  52. return sqlstr;
  53. }
  54. public override string GetQueryTabSql()
  55. {
  56. string sqlstr=" productionplan a ";
  57. return sqlstr;
  58. }
  59. public override string GetQuerySortSql()
  60. {
  61. return "";
  62. }
  63. #endregion
  64. ////自动产生代码结束&&此行不能删除
  65. }
  66. }