WaferDetail.cs 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. using Cksoft.Unity;
  2. using System;
  3. namespace DllEapEntity
  4. {
  5. [Table("WaferDetail")]
  6. public class WaferDetail:BaseEntity
  7. {
  8. ////自动产生代码开始&&此行不能删除
  9. #region 自动产生代码
  10. public WaferDetail()
  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,"主档ID",1,1,100,1,"a.MstID","",1,1)]
  19. public int MstID { get; set; }
  20. [ColDetail(30,"waferLot",1,1,100,1,"a.WaferLot","",1,1)]
  21. public string WaferLot { get; set; }
  22. [ColDetail(40,"片号",1,1,100,1,"a.Piece","",1,1)]
  23. public string Piece { get; set; }
  24. [ColDetail(50,"备注",1,1,100,1,"a.remark","",1,1)]
  25. public string remark { get; set; }
  26. [ColDetail(60,"reccode",1,1,100,1,"a.reccode","",1,1)]
  27. public string RecCode { get; set; }
  28. [ColDetail(70,"录入日期",1,1,100,1,"a.rectime","",1,1)]
  29. public DateTime RecTime { get; set; }
  30. [ColDetail(80,"modcode",1,1,100,1,"a.modcode","",1,1)]
  31. public string ModCode { get; set; }
  32. [ColDetail(90,"修改时间",1,1,100,1,"a.modtime","",1,1)]
  33. public DateTime ModTime { get; set; }
  34. public override string GetSelectSql()
  35. {
  36. return string.Format($"select { GetQueryColSql()} from { GetQueryTabSql()}");
  37. }
  38. public override string GetQueryColSql()
  39. {
  40. string sqlstr = "a.ID ID,a.MstID MstID,a.WaferLot WaferLot,a.Piece Piece,a.remark remark,a.reccode RecCode,a.rectime RecTime,a.modcode ModCode,a.modtime ModTime";
  41. sqlstr += ",0 EntityStatusID";
  42. return sqlstr;
  43. }
  44. public override string GetQueryTabSql()
  45. {
  46. string sqlstr=" WaferDetail a ";
  47. return sqlstr;
  48. }
  49. public override string GetQuerySortSql()
  50. {
  51. return "";
  52. }
  53. #endregion
  54. ////自动产生代码结束&&此行不能删除
  55. [Ignore]
  56. public string WaferSourceAndCom { get; set; }
  57. }
  58. }