d-debst.w 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565
  1. &ANALYZE-SUSPEND _VERSION-NUMBER AB_v10r12 GUI ADM2
  2. &ANALYZE-RESUME
  3. /* Connected Databases
  4. anadat PROGRESS
  5. */
  6. &Scoped-define WINDOW-NAME CURRENT-WINDOW
  7. {adecomm/appserv.i}
  8. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _CUSTOM _DEFINITIONS dTables
  9. /*------------------------------------------------------------------------
  10. File:
  11. Description: from DATA.W - Template For SmartData objects in the ADM
  12. Input Parameters:
  13. <none>
  14. Output Parameters:
  15. <none>
  16. Modified: February 24, 1999
  17. ------------------------------------------------------------------------*/
  18. /* This .W file was created with the Progress AppBuilder. */
  19. /*----------------------------------------------------------------------*/
  20. /* Create an unnamed pool to store all the widgets created
  21. by this procedure. This is a good default which assures
  22. that this procedure's triggers and internal procedures
  23. will execute in this procedure's storage, and that proper
  24. cleanup will occur on deletion of the procedure. */
  25. CREATE WIDGET-POOL.
  26. /* *************************** Definitions ************************** */
  27. /* Parameters Definitions --- */
  28. /* Local Variable Definitions --- */
  29. &SCOPED-DEFINE Tabelle Debst
  30. &SCOPED-DEFINE TabWhere USE-INDEX Debst-k1 ~
  31. WHERE {&Tabelle}.Firma = tRowObject.Firma ~
  32. AND {&Tabelle}.Knr = tRowObject.Knr
  33. { incl/datdefinition.i }
  34. /* _UIB-CODE-BLOCK-END */
  35. &ANALYZE-RESUME
  36. &ANALYZE-SUSPEND _UIB-PREPROCESSOR-BLOCK
  37. /* ******************** Preprocessor Definitions ******************** */
  38. &Scoped-define PROCEDURE-TYPE SmartDataObject
  39. &Scoped-define DB-AWARE yes
  40. &Scoped-define ADM-SUPPORTED-LINKS Data-Source,Data-Target,Navigation-Target,Update-Target,Commit-Target,Filter-Target
  41. /* Db-Required definitions. */
  42. &IF DEFINED(DB-REQUIRED) = 0 &THEN
  43. &GLOBAL-DEFINE DB-REQUIRED TRUE
  44. &ENDIF
  45. &GLOBAL-DEFINE DB-REQUIRED-START &IF {&DB-REQUIRED} &THEN
  46. &GLOBAL-DEFINE DB-REQUIRED-END &ENDIF
  47. &Scoped-define QUERY-NAME Query-Main
  48. /* Internal Tables (found by Frame, Query & Browse Queries) */
  49. &Scoped-define INTERNAL-TABLES Debst
  50. /* Definitions for QUERY Query-Main */
  51. &Scoped-Define ENABLED-FIELDS Firma Knr Vertr Ku_Grp Preis_Grp Bonus_Grp Rab_Grp ABC_Grp Fak_Art Bier_Cd~
  52. Wirt_So Wirt_So_Text Ablad_Vor Ablad_Vor_Text Tour_Nr1 Tour_Nr2 Kond MWSt~
  53. Geb_Rg Passant Mahn KnrFak KnrLie MWST_Nr Konto Kred_Lim LetztVK~
  54. Abh_Rab_Art Abh_Rab_Wert Auf_Rab_Art Auf_Rab_Wert Zei_Rab_Art Zei_Rab_Wert~
  55. Zuschl_Art Zuschl_Betr Zuschl_Verr Zuschl_Wert Bemerk Auf_Text Bar_Text~
  56. Lief_Art Lief_Bed Region Verband_Grp Verband_Nr Avis Fak_FTnr Fak_KTnr~
  57. AKonto Skonto Saldo Saldo_FRW FRW Filiale Aktiv Fak_Adresse BESR_Art~
  58. Lief_Adresse Kred_Lim_Vers Lager Subverband_Grp AbladeBild DokumentStatus~
  59. esAktiv esBenutzer esMail esPasswort Liefertag BestBis_1 BestBis_2
  60. &Scoped-define ENABLED-FIELDS-IN-Debst Firma Knr Vertr Ku_Grp Preis_Grp ~
  61. Bonus_Grp Rab_Grp ABC_Grp Fak_Art Bier_Cd Wirt_So Wirt_So_Text Ablad_Vor ~
  62. Ablad_Vor_Text Tour_Nr1 Tour_Nr2 Kond MWSt Geb_Rg Passant Mahn KnrFak ~
  63. KnrLie MWST_Nr Konto Kred_Lim LetztVK Abh_Rab_Art Abh_Rab_Wert Auf_Rab_Art ~
  64. Auf_Rab_Wert Zei_Rab_Art Zei_Rab_Wert Zuschl_Art Zuschl_Betr Zuschl_Verr ~
  65. Zuschl_Wert Bemerk Auf_Text Bar_Text Lief_Art Lief_Bed Region Verband_Grp ~
  66. Verband_Nr Avis Fak_FTnr Fak_KTnr AKonto Skonto Saldo Saldo_FRW FRW Filiale ~
  67. Aktiv BESR_Art Kred_Lim_Vers Lager Subverband_Grp AbladeBild DokumentStatus ~
  68. esAktiv esBenutzer esMail esPasswort Liefertag BestBis_1 BestBis_2
  69. &Scoped-Define DATA-FIELDS Firma Knr Vertr Ku_Grp Preis_Grp Bonus_Grp Rab_Grp ABC_Grp Fak_Art Bier_Cd~
  70. Wirt_So Wirt_So_Text Ablad_Vor Ablad_Vor_Text Tour_Nr1 Tour_Nr2 Kond MWSt~
  71. Geb_Rg Passant Mahn KnrFak KnrLie MWST_Nr Konto Kred_Lim LetztVK~
  72. Abh_Rab_Art Abh_Rab_Wert Auf_Rab_Art Auf_Rab_Wert Zei_Rab_Art Zei_Rab_Wert~
  73. Zuschl_Art Zuschl_Betr Zuschl_Verr Zuschl_Wert Bemerk Auf_Text Bar_Text~
  74. Lief_Art Lief_Bed Region Verband_Grp Verband_Nr Avis Fak_FTnr Fak_KTnr~
  75. AKonto Skonto Saldo Saldo_FRW FRW Filiale Aktiv Fak_Adresse BESR_Art~
  76. Lief_Adresse Kred_Lim_Vers Lager Subverband_Grp AbladeBild DokumentStatus~
  77. esAktiv esBenutzer esMail esPasswort Liefertag BestBis_1 BestBis_2
  78. &Scoped-define DATA-FIELDS-IN-Debst Firma Knr Vertr Ku_Grp Preis_Grp ~
  79. Bonus_Grp Rab_Grp ABC_Grp Fak_Art Bier_Cd Wirt_So Wirt_So_Text Ablad_Vor ~
  80. Ablad_Vor_Text Tour_Nr1 Tour_Nr2 Kond MWSt Geb_Rg Passant Mahn KnrFak ~
  81. KnrLie MWST_Nr Konto Kred_Lim LetztVK Abh_Rab_Art Abh_Rab_Wert Auf_Rab_Art ~
  82. Auf_Rab_Wert Zei_Rab_Art Zei_Rab_Wert Zuschl_Art Zuschl_Betr Zuschl_Verr ~
  83. Zuschl_Wert Bemerk Auf_Text Bar_Text Lief_Art Lief_Bed Region Verband_Grp ~
  84. Verband_Nr Avis Fak_FTnr Fak_KTnr AKonto Skonto Saldo Saldo_FRW FRW Filiale ~
  85. Aktiv BESR_Art Kred_Lim_Vers Lager Subverband_Grp AbladeBild DokumentStatus ~
  86. esAktiv esBenutzer esMail esPasswort Liefertag BestBis_1 BestBis_2
  87. &Scoped-Define MANDATORY-FIELDS
  88. &Scoped-Define APPLICATION-SERVICE
  89. &Scoped-Define ASSIGN-LIST
  90. &Scoped-Define DATA-FIELD-DEFS "d-debst.i"
  91. &Scoped-define QUERY-STRING-Query-Main FOR EACH Debst NO-LOCK INDEXED-REPOSITION
  92. {&DB-REQUIRED-START}
  93. &Scoped-define OPEN-QUERY-Query-Main OPEN QUERY Query-Main FOR EACH Debst NO-LOCK INDEXED-REPOSITION.
  94. {&DB-REQUIRED-END}
  95. &Scoped-define TABLES-IN-QUERY-Query-Main Debst
  96. &Scoped-define FIRST-TABLE-IN-QUERY-Query-Main Debst
  97. /* Custom List Definitions */
  98. /* List-1,List-2,List-3,List-4,List-5,List-6 */
  99. /* _UIB-PREPROCESSOR-BLOCK-END */
  100. &ANALYZE-RESUME
  101. /* ************************ Function Prototypes ********************** */
  102. {&DB-REQUIRED-START}
  103. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _FUNCTION-FORWARD openQuery dTables _DB-REQUIRED
  104. FUNCTION openQuery RETURNS LOGICAL
  105. ( /* parameter-definitions */ ) FORWARD.
  106. /* _UIB-CODE-BLOCK-END */
  107. &ANALYZE-RESUME
  108. {&DB-REQUIRED-END}
  109. /* *********************** Control Definitions ********************** */
  110. {&DB-REQUIRED-START}
  111. /* Query definitions */
  112. &ANALYZE-SUSPEND
  113. DEFINE QUERY Query-Main FOR
  114. Debst SCROLLING.
  115. &ANALYZE-RESUME
  116. {&DB-REQUIRED-END}
  117. /* ************************ Frame Definitions *********************** */
  118. /* *********************** Procedure Settings ************************ */
  119. &ANALYZE-SUSPEND _PROCEDURE-SETTINGS
  120. /* Settings for THIS-PROCEDURE
  121. Type: SmartDataObject
  122. Allow: Query
  123. Frames: 0
  124. Add Fields to: Neither
  125. Other Settings: PERSISTENT-ONLY COMPILE APPSERVER DB-AWARE
  126. */
  127. /* This procedure should always be RUN PERSISTENT. Report the error, */
  128. /* then cleanup and return. */
  129. IF NOT THIS-PROCEDURE:PERSISTENT THEN DO:
  130. MESSAGE "{&FILE-NAME} should only be RUN PERSISTENT.":U
  131. VIEW-AS ALERT-BOX ERROR BUTTONS OK.
  132. RETURN.
  133. END.
  134. &ANALYZE-RESUME _END-PROCEDURE-SETTINGS
  135. /* ************************* Create Window ************************** */
  136. &ANALYZE-SUSPEND _CREATE-WINDOW
  137. /* DESIGN Window definition (used by the UIB)
  138. CREATE WINDOW dTables ASSIGN
  139. HEIGHT = 1.62
  140. WIDTH = 46.6.
  141. /* END WINDOW DEFINITION */
  142. */
  143. &ANALYZE-RESUME
  144. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _CUSTOM _INCLUDED-LIB dTables
  145. /* ************************* Included-Libraries *********************** */
  146. {src/adm2/data.i}
  147. /* _UIB-CODE-BLOCK-END */
  148. &ANALYZE-RESUME
  149. /* *********** Runtime Attributes and AppBuilder Settings *********** */
  150. &ANALYZE-SUSPEND _RUN-TIME-ATTRIBUTES
  151. /* SETTINGS FOR WINDOW dTables
  152. VISIBLE,,RUN-PERSISTENT */
  153. /* _RUN-TIME-ATTRIBUTES-END */
  154. &ANALYZE-RESUME
  155. /* Setting information for Queries and Browse Widgets fields */
  156. &ANALYZE-SUSPEND _QUERY-BLOCK QUERY Query-Main
  157. /* Query rebuild information for SmartDataObject Query-Main
  158. _TblList = "AnaDat.Debst"
  159. _Options = "NO-LOCK INDEXED-REPOSITION"
  160. _FldNameList[1] > AnaDat.Debst.Firma
  161. "Firma" "Firma" ? ? "character" ? ? ? ? ? ? yes ? no 8.4 yes ""
  162. _FldNameList[2] > AnaDat.Debst.Knr
  163. "Knr" "Knr" ? ? "integer" ? ? ? ? ? ? yes ? no 8.4 yes ""
  164. _FldNameList[3] > AnaDat.Debst.Vertr
  165. "Vertr" "Vertr" ? ? "integer" ? ? ? ? ? ? yes ? no 4.4 yes ""
  166. _FldNameList[4] > AnaDat.Debst.Ku_Grp
  167. "Ku_Grp" "Ku_Grp" ? ? "integer" ? ? ? ? ? ? yes ? no 7.2 yes ""
  168. _FldNameList[5] > AnaDat.Debst.Preis_Grp
  169. "Preis_Grp" "Preis_Grp" ? ? "integer" ? ? ? ? ? ? yes ? no 9.2 yes ""
  170. _FldNameList[6] > AnaDat.Debst.Bonus_Grp
  171. "Bonus_Grp" "Bonus_Grp" ? ? "integer" ? ? ? ? ? ? yes ? no 10.6 yes ""
  172. _FldNameList[7] > AnaDat.Debst.Rab_Grp
  173. "Rab_Grp" "Rab_Grp" ? ? "integer" ? ? ? ? ? ? yes ? no 8.6 yes ""
  174. _FldNameList[8] > AnaDat.Debst.ABC_Grp
  175. "ABC_Grp" "ABC_Grp" ? ? "integer" ? ? ? ? ? ? yes ? no 8.8 yes ""
  176. _FldNameList[9] > AnaDat.Debst.Fak_Art
  177. "Fak_Art" "Fak_Art" ? ? "integer" ? ? ? ? ? ? yes ? no 7.4 yes ""
  178. _FldNameList[10] > AnaDat.Debst.Bier_Cd
  179. "Bier_Cd" "Bier_Cd" ? ? "integer" ? ? ? ? ? ? yes ? no 7.4 yes ""
  180. _FldNameList[11] > AnaDat.Debst.Wirt_So
  181. "Wirt_So" "Wirt_So" ? ? "integer" ? ? ? ? ? ? yes ? no 7.6 yes ""
  182. _FldNameList[12] > AnaDat.Debst.Wirt_So_Text
  183. "Wirt_So_Text" "Wirt_So_Text" ? ? "character" ? ? ? ? ? ? yes ? no 40 yes ""
  184. _FldNameList[13] > AnaDat.Debst.Ablad_Vor
  185. "Ablad_Vor" "Ablad_Vor" ? ? "integer" ? ? ? ? ? ? yes ? no 9.8 yes ""
  186. _FldNameList[14] > AnaDat.Debst.Ablad_Vor_Text
  187. "Ablad_Vor_Text" "Ablad_Vor_Text" ? ? "character" ? ? ? ? ? ? yes ? no 40 yes ""
  188. _FldNameList[15] > AnaDat.Debst.Tour_Nr1
  189. "Tour_Nr1" "Tour_Nr1" ? ? "integer" ? ? ? ? ? ? yes ? no 9 yes ""
  190. _FldNameList[16] > AnaDat.Debst.Tour_Nr2
  191. "Tour_Nr2" "Tour_Nr2" ? ? "character" ? ? ? ? ? ? yes ? no 20 yes ""
  192. _FldNameList[17] > AnaDat.Debst.Kond
  193. "Kond" "Kond" ? ? "integer" ? ? ? ? ? ? yes ? no 5 yes ""
  194. _FldNameList[18] > AnaDat.Debst.MWSt
  195. "MWSt" "MWSt" ? ? "integer" ? ? ? ? ? ? yes ? no 6 yes ""
  196. _FldNameList[19] > AnaDat.Debst.Geb_Rg
  197. "Geb_Rg" "Geb_Rg" ? ? "logical" ? ? ? ? ? ? yes ? no 8 yes ""
  198. _FldNameList[20] > AnaDat.Debst.Passant
  199. "Passant" "Passant" ? ? "logical" ? ? ? ? ? ? yes ? no 7.6 yes ""
  200. _FldNameList[21] > AnaDat.Debst.Mahn
  201. "Mahn" "Mahn" ? ? "integer" ? ? ? ? ? ? yes ? no 5.4 yes ""
  202. _FldNameList[22] > AnaDat.Debst.KnrFak
  203. "KnrFak" "KnrFak" ? ? "integer" ? ? ? ? ? ? yes ? no 7.2 yes ""
  204. _FldNameList[23] > AnaDat.Debst.KnrLie
  205. "KnrLie" "KnrLie" "KnrLie" ? "integer" ? ? ? ? ? ? yes ? no 7.8 yes ""
  206. _FldNameList[24] > AnaDat.Debst.MWST_Nr
  207. "MWST_Nr" "MWST_Nr" ? ? "character" ? ? ? ? ? ? yes ? no 15 yes ""
  208. _FldNameList[25] > AnaDat.Debst.Konto
  209. "Konto" "Konto" ? ? "character" ? ? ? ? ? ? yes ? no 12 yes ""
  210. _FldNameList[26] > AnaDat.Debst.Kred_Lim
  211. "Kred_Lim" "Kred_Lim" ? ? "integer" ? ? ? ? ? ? yes ? no 10.4 yes ""
  212. _FldNameList[27] > AnaDat.Debst.LetztVK
  213. "LetztVK" "LetztVK" ? ? "date" ? ? ? ? ? ? yes ? no 10.8 yes ""
  214. _FldNameList[28] > AnaDat.Debst.Abh_Rab_Art
  215. "Abh_Rab_Art" "Abh_Rab_Art" ? ? "integer" ? ? ? ? ? ? yes ? no 12.8 yes ""
  216. _FldNameList[29] > AnaDat.Debst.Abh_Rab_Wert
  217. "Abh_Rab_Wert" "Abh_Rab_Wert" ? ? "decimal" ? ? ? ? ? ? yes ? no 14.8 yes ""
  218. _FldNameList[30] > AnaDat.Debst.Auf_Rab_Art
  219. "Auf_Rab_Art" "Auf_Rab_Art" ? ? "integer" ? ? ? ? ? ? yes ? no 12.2 yes ""
  220. _FldNameList[31] > AnaDat.Debst.Auf_Rab_Wert
  221. "Auf_Rab_Wert" "Auf_Rab_Wert" ? ? "decimal" ? ? ? ? ? ? yes ? no 14.2 yes ""
  222. _FldNameList[32] > AnaDat.Debst.Zei_Rab_Art
  223. "Zei_Rab_Art" "Zei_Rab_Art" ? ? "integer" ? ? ? ? ? ? yes ? no 12 yes ""
  224. _FldNameList[33] > AnaDat.Debst.Zei_Rab_Wert
  225. "Zei_Rab_Wert" "Zei_Rab_Wert" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ""
  226. _FldNameList[34] > AnaDat.Debst.Zuschl_Art
  227. "Zuschl_Art" "Zuschl_Art" ? ? "integer" ? ? ? ? ? ? yes ? no 10.2 yes ""
  228. _FldNameList[35] > AnaDat.Debst.Zuschl_Betr
  229. "Zuschl_Betr" "Zuschl_Betr" ? ? "decimal" ? ? ? ? ? ? yes ? no 12.8 yes ""
  230. _FldNameList[36] > AnaDat.Debst.Zuschl_Verr
  231. "Zuschl_Verr" "Zuschl_Verr" ? ? "decimal" ? ? ? ? ? ? yes ? no 12.8 yes ""
  232. _FldNameList[37] > AnaDat.Debst.Zuschl_Wert
  233. "Zuschl_Wert" "Zuschl_Wert" ? ? "decimal" ? ? ? ? ? ? yes ? no 12.2 yes ""
  234. _FldNameList[38] > AnaDat.Debst.Bemerk
  235. "Bemerk" "Bemerk" ? ? "character" ? ? ? ? ? ? yes ? no 500 yes ""
  236. _FldNameList[39] > AnaDat.Debst.Auf_Text
  237. "Auf_Text" "Auf_Text" ? ? "character" ? ? ? ? ? ? yes ? no 500 yes ""
  238. _FldNameList[40] > AnaDat.Debst.Bar_Text
  239. "Bar_Text" "Bar_Text" ? ? "character" ? ? ? ? ? ? yes ? no 500 yes ""
  240. _FldNameList[41] > AnaDat.Debst.Lief_Art
  241. "Lief_Art" "Lief_Art" ? ? "integer" ? ? ? ? ? ? yes ? no 7.2 yes ""
  242. _FldNameList[42] > AnaDat.Debst.Lief_Bed
  243. "Lief_Bed" "Lief_Bed" ? ? "integer" ? ? ? ? ? ? yes ? no 8.4 yes ""
  244. _FldNameList[43] > AnaDat.Debst.Region
  245. "Region" "Region" ? ? "integer" ? ? ? ? ? ? yes ? no 6.8 yes ""
  246. _FldNameList[44] > AnaDat.Debst.Verband_Grp
  247. "Verband_Grp" "Verband_Grp" ? ? "integer" ? ? ? ? ? ? yes ? no 12.6 yes ""
  248. _FldNameList[45] > AnaDat.Debst.Verband_Nr
  249. "Verband_Nr" "Verband_Nr" ? ? "character" ? ? ? ? ? ? yes ? no 11.4 yes ""
  250. _FldNameList[46] > AnaDat.Debst.Avis
  251. "Avis" "Avis" ? ? "integer" ? ? ? ? ? ? yes ? no 4 yes ""
  252. _FldNameList[47] > AnaDat.Debst.Fak_FTnr
  253. "Fak_FTnr" "Fak_FTnr" ? ? "integer" ? ? ? ? ? ? yes ? no 9.2 yes ""
  254. _FldNameList[48] > AnaDat.Debst.Fak_KTnr
  255. "Fak_KTnr" "Fak_KTnr" ? ? "integer" ? ? ? ? ? ? yes ? no 9.4 yes ""
  256. _FldNameList[49] > AnaDat.Debst.AKonto
  257. "AKonto" "AKonto" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ""
  258. _FldNameList[50] > AnaDat.Debst.Skonto
  259. "Skonto" "Skonto" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ""
  260. _FldNameList[51] > AnaDat.Debst.Saldo
  261. "Saldo" "Saldo" ? ? "decimal" ? ? ? ? ? ? yes ? no 12 yes ""
  262. _FldNameList[52] > AnaDat.Debst.Saldo_FRW
  263. "Saldo_FRW" "Saldo_FRW" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ""
  264. _FldNameList[53] > AnaDat.Debst.FRW
  265. "FRW" "FRW" ? ? "character" ? ? ? ? ? ? yes ? no 5 yes ""
  266. _FldNameList[54] > AnaDat.Debst.Filiale
  267. "Filiale" "Filiale" ? ? "integer" ? ? ? ? ? ? yes ? no 5.2 yes ""
  268. _FldNameList[55] > AnaDat.Debst.Aktiv
  269. "Aktiv" "Aktiv" ? ? "logical" ? ? ? ? ? ? yes ? no 4.8 yes ""
  270. _FldNameList[56] > "_<CALC>"
  271. "IF (RowObject.KnrFak = 0) THEN ("""") ELSE (DYNAMIC-FUNCTION('GETADRESSEANZEIGEBR':U, INPUT RowObject.Knr, INPUT 1))" "Fak_Adresse" "Fakturaadresse" "x(60)" "character" ? ? ? ? ? ? yes ? no 60 no ?
  272. _FldNameList[57] > AnaDat.Debst.BESR_Art
  273. "BESR_Art" "BESR_Art" "BESR" ? "integer" ? ? ? ? ? ? yes ? no 9.6 yes ""
  274. _FldNameList[58] > "_<CALC>"
  275. "IF (RowObject.KnrLie = 0) THEN ("""") ELSE (DYNAMIC-FUNCTION('GETADRESSEANZEIGEBR':U, INPUT RowObject.Knr, INPUT 2 ))" "Lief_Adresse" "Lieferadresse" "x(60)" "character" ? ? ? ? ? ? yes ? no 60 no ?
  276. _FldNameList[59] > AnaDat.Debst.Kred_Lim_Vers
  277. "Kred_Lim_Vers" "Kred_Lim_Vers" "Kreditlimite Versich" ? "integer" ? ? ? ? ? ? yes ? no 14.2 yes ""
  278. _FldNameList[60] > AnaDat.Debst.Lager
  279. "Lager" "Lager" ? ? "integer" ? ? ? ? ? ? yes ? no 5.4 yes ?
  280. _FldNameList[61] > AnaDat.Debst.Subverband_Grp
  281. "Subverband_Grp" "Subverband_Grp" ? ? "integer" ? ? ? ? ? ? yes ? no 16.2 yes ?
  282. _FldNameList[62] > AnaDat.Debst.AbladeBild
  283. "AbladeBild" "AbladeBild" ? ? "character" ? ? ? ? ? ? yes ? no 60 yes ?
  284. _FldNameList[63] > AnaDat.Debst.DokumentStatus
  285. "DokumentStatus" "DokumentStatus" ? ? "integer" ? ? ? ? ? ? yes ? no 15.8 yes ?
  286. _FldNameList[64] > AnaDat.Debst.esAktiv
  287. "esAktiv" "esAktiv" ? ? "logical" ? ? ? ? ? ? yes ? no 7 yes ?
  288. _FldNameList[65] > AnaDat.Debst.esBenutzer
  289. "esBenutzer" "esBenutzer" ? ? "character" ? ? ? ? ? ? yes ? no 30 yes ?
  290. _FldNameList[66] > AnaDat.Debst.esMail
  291. "esMail" "esMail" ? ? "character" ? ? ? ? ? ? yes ? no 40 yes ?
  292. _FldNameList[67] > AnaDat.Debst.esPasswort
  293. "esPasswort" "esPasswort" ? ? "character" ? ? ? ? ? ? yes ? no 30 yes ?
  294. _FldNameList[68] > AnaDat.Debst.Liefertag
  295. "Liefertag" "Liefertag" ? ? "integer" ? ? ? ? ? ? yes ? no 8.2 yes ?
  296. _FldNameList[69] > AnaDat.Debst.BestBis_1
  297. "BestBis_1" "BestBis_1" ? ? "integer" ? ? ? ? ? ? yes ? no 9.4 yes ?
  298. _FldNameList[70] > AnaDat.Debst.BestBis_2
  299. "BestBis_2" "BestBis_2" ? ? "integer" ? ? ? ? ? ? yes ? no 9.4 yes ?
  300. _Design-Parent is WINDOW dTables @ ( 1.14 , 2.6 )
  301. */ /* QUERY Query-Main */
  302. &ANALYZE-RESUME
  303. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _CUSTOM _MAIN-BLOCK dTables
  304. /* *************************** Main Block *************************** */
  305. { incl/datmainblock.i }
  306. &IF DEFINED(UIB_IS_RUNNING) <> 0 &THEN
  307. RUN initializeObject.
  308. &ENDIF
  309. /* _UIB-CODE-BLOCK-END */
  310. &ANALYZE-RESUME
  311. /* ********************** Internal Procedures *********************** */
  312. {&DB-REQUIRED-START}
  313. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE DATA.CALCULATE dTables DATA.CALCULATE _DB-REQUIRED
  314. PROCEDURE DATA.CALCULATE :
  315. /*------------------------------------------------------------------------------
  316. Purpose: Calculate all the Calculated Expressions found in the
  317. SmartDataObject.
  318. Parameters: <none>
  319. ------------------------------------------------------------------------------*/
  320. ASSIGN
  321. rowObject.Fak_Adresse = (IF (RowObject.KnrFak = 0) THEN ("") ELSE (DYNAMIC-FUNCTION('GETADRESSEANZEIGEBR':U, INPUT RowObject.Knr, INPUT 1)))
  322. rowObject.Lief_Adresse = (IF (RowObject.KnrLie = 0) THEN ("") ELSE (DYNAMIC-FUNCTION('GETADRESSEANZEIGEBR':U, INPUT RowObject.Knr, INPUT 2 )))
  323. .
  324. END PROCEDURE.
  325. /* _UIB-CODE-BLOCK-END */
  326. &ANALYZE-RESUME
  327. {&DB-REQUIRED-END}
  328. {&DB-REQUIRED-START}
  329. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE dataAvailable dTables _DB-REQUIRED
  330. PROCEDURE dataAvailable :
  331. /*------------------------------------------------------------------------------
  332. Purpose: Super Override
  333. Parameters:
  334. Notes:
  335. ------------------------------------------------------------------------------*/
  336. { incl/datdataavailable.i }
  337. END PROCEDURE.
  338. /* _UIB-CODE-BLOCK-END */
  339. &ANALYZE-RESUME
  340. {&DB-REQUIRED-END}
  341. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE disable_UI dTables _DEFAULT-DISABLE
  342. PROCEDURE disable_UI :
  343. /*------------------------------------------------------------------------------
  344. Purpose: DISABLE the User Interface
  345. Parameters: <none>
  346. Notes: Here we clean-up the user-interface by deleting
  347. dynamic widgets we have created and/or hide
  348. frames. This procedure is usually called when
  349. we are ready to "clean-up" after running.
  350. ------------------------------------------------------------------------------*/
  351. /* Hide all frames. */
  352. IF THIS-PROCEDURE:PERSISTENT THEN DELETE PROCEDURE THIS-PROCEDURE.
  353. END PROCEDURE.
  354. /* _UIB-CODE-BLOCK-END */
  355. &ANALYZE-RESUME
  356. {&DB-REQUIRED-START}
  357. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE INAKTIVIEREN dTables _DB-REQUIRED
  358. PROCEDURE INAKTIVIEREN :
  359. /*------------------------------------------------------------------------------
  360. Purpose:
  361. Parameters: <none>
  362. Notes:
  363. ------------------------------------------------------------------------------*/
  364. { incl/datinaktivieren.i }
  365. END PROCEDURE.
  366. /* _UIB-CODE-BLOCK-END */
  367. &ANALYZE-RESUME
  368. {&DB-REQUIRED-END}
  369. {&DB-REQUIRED-START}
  370. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE initializeObject dTables _DB-REQUIRED
  371. PROCEDURE initializeObject :
  372. /*------------------------------------------------------------------------------
  373. Purpose: Super Override
  374. Parameters:
  375. Notes:
  376. ------------------------------------------------------------------------------*/
  377. { incl/datinitialize.i }
  378. END PROCEDURE.
  379. /* _UIB-CODE-BLOCK-END */
  380. &ANALYZE-RESUME
  381. {&DB-REQUIRED-END}
  382. {&DB-REQUIRED-START}
  383. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE REAKTIVIEREN dTables _DB-REQUIRED
  384. PROCEDURE REAKTIVIEREN :
  385. /*------------------------------------------------------------------------------
  386. Purpose:
  387. Parameters: <none>
  388. Notes:
  389. ------------------------------------------------------------------------------*/
  390. { incl/datreaktivieren.i }
  391. END PROCEDURE.
  392. /* _UIB-CODE-BLOCK-END */
  393. &ANALYZE-RESUME
  394. {&DB-REQUIRED-END}
  395. {&DB-REQUIRED-START}
  396. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE refreshRow dTables _DB-REQUIRED
  397. PROCEDURE refreshRow :
  398. /*------------------------------------------------------------------------------
  399. Purpose: Super Override
  400. Parameters:
  401. Notes:
  402. ------------------------------------------------------------------------------*/
  403. /* Code placed here will execute PRIOR to standard behavior. */
  404. RUN SUPER.
  405. /* Code placed here will execute AFTER standard behavior. */
  406. END PROCEDURE.
  407. /* _UIB-CODE-BLOCK-END */
  408. &ANALYZE-RESUME
  409. {&DB-REQUIRED-END}
  410. /* ************************ Function Implementations ***************** */
  411. {&DB-REQUIRED-START}
  412. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _FUNCTION openQuery dTables _DB-REQUIRED
  413. FUNCTION openQuery RETURNS LOGICAL
  414. ( /* parameter-definitions */ ) :
  415. /*------------------------------------------------------------------------------
  416. Purpose: Super Override
  417. Notes:
  418. ------------------------------------------------------------------------------*/
  419. DEF VAR Mandant AS CHAR NO-UNDO.
  420. DEF VAR ix AS INT NO-UNDO.
  421. DEF VAR Felder AS CHAR NO-UNDO.
  422. Mandant = DYNAMIC-FUNCTION('GETMANDANT':U) NO-ERROR.
  423. Felder = DYNAMIC-FUNCTION('getForeignFields':U) NO-ERROR.
  424. DO WHILE TRUE:
  425. xWhere = 'Firma = "' + Mandant + '" '.
  426. IF Felder = ? THEN LEAVE.
  427. IF Felder = '' THEN LEAVE.
  428. ix = LOOKUP('Knr', Felder, ',') / 2.
  429. IF ix < 1 THEN LEAVE.
  430. Felder = DYNAMIC-FUNCTION('getForeignValues':U) NO-ERROR.
  431. xWhere = 'Firma = "' + Mandant + '" '
  432. + 'AND Knr = ' + ENTRY(ix, Felder, CHR(01)).
  433. LEAVE.
  434. END.
  435. DYNAMIC-FUNCTION('setQueryWhere':U, INPUT xWhere).
  436. /* xSort = ''. */
  437. /* DYNAMIC-FUNCTION('setQuerySort':U, INPUT xSort). */
  438. /* xWhere = ''. */
  439. /* DYNAMIC-FUNCTION('setQueryString':U, INPUT xWhere). */
  440. RETURN SUPER( ).
  441. END FUNCTION.
  442. /* _UIB-CODE-BLOCK-END */
  443. &ANALYZE-RESUME
  444. {&DB-REQUIRED-END}