MacProgram.cs 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. using Cksoft.Unity;
  2. using System;
  3. namespace DllEapEntity
  4. {
  5. [Table("macprogram")]
  6. public class MacProgram:BaseEntity
  7. {
  8. ////自动产生代码开始&&此行不能删除
  9. #region 自动产生代码
  10. public MacProgram()
  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.MacID","",1,1)]
  19. public int MacID { get; set; }
  20. [ColDetail(30,"程序名称",1,1,100,1,"a.ProgramName","",1,1)]
  21. public string ProgramName { get; set; }
  22. [ColDetail(40,"版次",1,1,100,1,"a.Version","",1,1)]
  23. public int Version { get; set; }
  24. [ColDetail(50,"标准程序",1,1,100,1,"a.IsDefault","",1,1)]
  25. public int IsDefault { get; set; }
  26. [ColDetail(60,"备注",1,1,100,1,"a.Remark","",1,1)]
  27. public string Remark { get; set; }
  28. [ColDetail(70,"录入人代码",1,1,100,1,"a.RecCode","",1,1)]
  29. public string RecCode { get; set; }
  30. [ColDetail(80,"录入日期",1,1,100,1,"a.RecTime","",1,1)]
  31. public DateTime RecTime { get; set; }
  32. [ColDetail(90,"修改 人代码",1,1,100,1,"a.ModCode","",1,1)]
  33. public string ModCode { get; set; }
  34. [ColDetail(100,"修改时间",1,1,100,1,"a.ModTime","",1,1)]
  35. public DateTime ModTime { get; set; }
  36. [ColDetail(110,"文件名称",1,1,100,1,"a.FileOrgName","",1,1)]
  37. public string FileOrgName { get; set; }
  38. public override string GetSelectSql()
  39. {
  40. return string.Format($"select { GetQueryColSql()} from { GetQueryTabSql()}");
  41. }
  42. public override string GetQueryColSql()
  43. {
  44. string sqlstr = "a.ID ID,a.MacID MacID,a.ProgramName ProgramName,a.Version Version,a.IsDefault IsDefault,a.Remark Remark,a.RecCode RecCode,a.RecTime RecTime";
  45. sqlstr += ",a.ModCode ModCode,a.ModTime ModTime,a.FileOrgName FileOrgName,0 EntityStatusID";
  46. return sqlstr;
  47. }
  48. public override string GetQueryTabSql()
  49. {
  50. string sqlstr=" MacProgram a ";
  51. return sqlstr;
  52. }
  53. public override string GetQuerySortSql()
  54. {
  55. return "";
  56. }
  57. #endregion
  58. ////自动产生代码结束&&此行不能删除
  59. [Ignore]
  60. public string FileInfoRemark { get; set; }
  61. [Ignore]
  62. public string UploadMacCode { get; set; }
  63. }
  64. }