EapAppserver.cs 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. using Cksoft.Unity;
  2. using System;
  3. namespace DllEapEntity
  4. {
  5. [Table("EapAppserver")]
  6. public class EapAppserver:BaseEntity
  7. {
  8. ////自动产生代码开始&&此行不能删除
  9. #region 自动产生代码
  10. public EapAppserver()
  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.FCode","",1,1)]
  19. public string FCode { get; set; }
  20. [ColDetail(30,"名称",1,1,100,1,"a.FName","",1,1)]
  21. public string FName { get; set; }
  22. [ColDetail(40,"备注",1,1,100,1,"a.remark","",1,1)]
  23. public string remark { get; set; }
  24. [ColDetail(50,"reccode",1,1,100,1,"a.reccode","",1,1)]
  25. public string reccode { get; set; }
  26. [ColDetail(60,"录入日期",1,1,100,1,"a.rectime","",1,1)]
  27. public DateTime rectime { get; set; }
  28. [ColDetail(70,"modcode",1,1,100,1,"a.modcode","",1,1)]
  29. public string modcode { get; set; }
  30. [ColDetail(80,"修改时间",1,1,100,1,"a.modtime","",1,1)]
  31. public DateTime modtime { get; set; }
  32. [ColDetail(90,"FName",1,0,100,1,"b.FName","",1,1)]
  33. public string RecName { get; set; }
  34. [ColDetail(100,"FName",1,0,100,1,"c.FName","",1,1)]
  35. public string ModName { get; set; }
  36. [ColDetail(120, "FIp", 1, 1, 100, 1, "a.FIp", "", 1, 1)]
  37. public string FIp { get; set; }
  38. [ColDetail(130, "端口", 1, 1, 100, 1, "a.FPort", "", 1, 1)]
  39. public string FPort { get; set; }
  40. [ColDetail(100, "FactoryId", 1, 1, 100, 1, "a.FactoryId", "", 1, 1)]
  41. public int? FactoryId { get; set; }
  42. [ColDetail(100, "FactoryName", 1, 0, 100, 1, "d.FName", "", 1, 1)]
  43. public string FactoryName { 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.FCode FCode,a.FName FName,a.remark remark,a.reccode reccode,a.rectime rectime,a.modcode modcode,a.modtime modtime,b.FName RecName";
  51. sqlstr += ",c.FName ModName,a.FIp FIp,a.FPort FPort,a.FactoryId FactoryId,d.Fname FactoryName,0 EntityStatusID";
  52. return sqlstr;
  53. }
  54. public override string GetQueryTabSql()
  55. {
  56. string sqlstr=" EapAppserver a ";
  57. sqlstr+=" left outer join staff b on a.reccode =b.fcode";
  58. sqlstr+=" left outer join staff c on a.modcode =c.fcode";
  59. sqlstr += " left outer join factoryregion d on a.factoryid =d.id";
  60. return sqlstr;
  61. }
  62. public override string GetQuerySortSql()
  63. {
  64. return "";
  65. }
  66. #endregion
  67. ////自动产生代码结束&&此行不能删除
  68. }
  69. }