wmusers.lfm 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. object CombinedModule: TCombinedModule
  2. OnCreate = DataModuleCreate
  3. OldCreateOrder = False
  4. InputAdaptor = ProviderInputAdaptor
  5. ContentProducer = ProviderFormatter
  6. OnGetContentProducer = DataModuleGetContentProducer
  7. OnGetInputAdaptor = DataModuleGetInputAdaptor
  8. OnNewSession = DataModuleNewSession
  9. Height = 300
  10. HorizontalOffset = 635
  11. VerticalOffset = 230
  12. Width = 400
  13. object ProviderFormatter: TExtJSJSONDataFormatter
  14. AllowPageSize = False
  15. BeforeDataToJSON = ProviderFormatterBeforeDataToJSON
  16. BeforeUpdate = ProviderFormatterBeforeUpdate
  17. BeforeInsert = ProviderFormatterBeforeInsert
  18. BeforeDelete = ProviderFormatterBeforeDelete
  19. left = 272
  20. top = 72
  21. end
  22. object Users: TSQLDBWebDataProvider
  23. SelectSQL.Strings = (
  24. 'SELECT FIRST :limit SKIP :start U_ID, U_NAME, U_LOGIN, U_PASSWORD, U_EMAIL FROM USERS'
  25. )
  26. UpdateSQL.Strings = (
  27. 'UPDATE USERS SET'
  28. ' U_NAME=:U_NAME,'
  29. ' U_LOGIN=:U_LOGIN,'
  30. ' U_EMAIL=:U_EMAIL,'
  31. ' U_PASSWORD=:U_PASSWORD'
  32. 'WHERE'
  33. ' (U_ID=:U_ID)'
  34. )
  35. DeleteSQL.Strings = (
  36. 'DELETE FROM USERS WHERE (U_ID=:ID)'
  37. )
  38. InsertSQL.Strings = (
  39. 'INSERT INTO USERS'
  40. '(U_ID, U_LOGIN, U_NAME, U_EMAIL, U_PASSWORD)'
  41. 'VALUES'
  42. '(:U_ID, :U_LOGIN, :U_NAME, :U_EMAIL, :U_PASSWORD)'
  43. )
  44. Connection = IBConnection1
  45. IDFieldName = 'U_ID'
  46. OnGetNewID = UsersGetNewID
  47. Options = []
  48. Params = <
  49. item
  50. DataType = ftUnknown
  51. Name = 'limit'
  52. ParamType = ptUnknown
  53. end
  54. item
  55. DataType = ftUnknown
  56. Name = 'start'
  57. ParamType = ptUnknown
  58. end>
  59. left = 32
  60. top = 72
  61. end
  62. object IBConnection1: TIBConnection
  63. Connected = False
  64. LoginPrompt = False
  65. KeepConnection = False
  66. Transaction = SQLTransaction1
  67. LogEvents = []
  68. left = 32
  69. top = 16
  70. end
  71. object QGetID: TSQLQuery
  72. AutoCalcFields = False
  73. Database = IBConnection1
  74. Transaction = SQLTransaction1
  75. ReadOnly = False
  76. SQL.Strings = (
  77. 'SELECT GEN_ID(GEN_USERS,1) AS THEID FROM RDB$DATABASE'
  78. )
  79. Params = <>
  80. left = 32
  81. top = 128
  82. end
  83. object SQLTransaction1: TSQLTransaction
  84. Active = False
  85. Action = caNone
  86. Database = IBConnection1
  87. left = 144
  88. top = 16
  89. end
  90. object ProviderInputAdaptor: TExtJSJSonWebdataInputAdaptor
  91. left = 272
  92. top = 16
  93. end
  94. end