tblst.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. //////////////////////////////////////////////////////////////////////////
  2. // dindan±íϵÁÐ;
  3. typedef struct __Tbl_dindan__
  4. {
  5. TString _id;
  6. TString _name1;
  7. TString _name2;
  8. TString _taoxiname;
  9. TString _taoxijiage;
  10. TString _curno;
  11. }Tbldindan,*pTbldindan;
  12. #define INSERT_dindan _T("INSERT INTO [dindan](\
  13. id,\
  14. name1,\
  15. name2,\
  16. taoxiname,\
  17. taoxijiage,\
  18. curno\
  19. )VALUES(\
  20. '%s',\
  21. '%s',\
  22. '%s',\
  23. '%s',\
  24. '%s',\
  25. '%s')")
  26. #define SELECT_dindan _T("SELECT id,name1,name2,taoxiname,taoxijiage,curno FROM dindan")
  27. //////////////////////////////////////////////////////////////////////////
  28. // NetShareInfo±íϵÁÐ;
  29. typedef struct __Tbl_NetShareInfo__
  30. {
  31. bool _enable;
  32. TString _branchid;
  33. TString _sharepath;
  34. int _mincapacity;
  35. int _maxcapacity;
  36. int _phototype;
  37. int _priority;
  38. }TblNetShareInfo,*pTblNetShareInfo;
  39. #define SELECT_NetShareInfo _T("SELECT enable,branchid,sharepath,mincapacity,maxcapacity,phototype,priority FROM NetShareInfo")
  40. #define INSERT_NetShareInfo _T("INSERT INTO [NetShareInfo](\
  41. enable,\
  42. branchid,\
  43. sharepath,\
  44. mincapacity,\
  45. maxcapacity,\
  46. phototype,\
  47. priority\
  48. )VALUES(\
  49. %d,\
  50. '%s',\
  51. '%s',\
  52. %d,\
  53. %d,\
  54. %d,\
  55. %d)")
  56. #define UPDATE_NetShareInfo _T("UPDATE [NetShareInfo] SET \
  57. enable,\
  58. branchid,\
  59. sharepath,\
  60. mincapacity,\
  61. maxcapacity,\
  62. phototype,\
  63. priority\
  64. )VALUES(\
  65. %d,\
  66. '%s',\
  67. '%s',\
  68. %d,\
  69. %d,\
  70. %d,\
  71. %d)")