d-artbw.w 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608
  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. &glob DATA-LOGIC-PROCEDURE .p
  30. &SCOPED-DEFINE Tabelle Artbw
  31. &SCOPED-DEFINE TabWhere /* USE-INDEX Benutzer-k1 ~
  32. WHERE {&Tabelle}.Benutzer = tRowObject.Benutzer
  33. */
  34. { incl/datdefinition.i }
  35. /* _UIB-CODE-BLOCK-END */
  36. &ANALYZE-RESUME
  37. &ANALYZE-SUSPEND _UIB-PREPROCESSOR-BLOCK
  38. /* ******************** Preprocessor Definitions ******************** */
  39. &Scoped-define PROCEDURE-TYPE SmartDataObject
  40. &Scoped-define DB-AWARE yes
  41. &Scoped-define ADM-SUPPORTED-LINKS Data-Source,Data-Target,Navigation-Target,Update-Target,Commit-Target,Filter-Target
  42. /* Db-Required definitions. */
  43. &IF DEFINED(DB-REQUIRED) = 0 &THEN
  44. &GLOBAL-DEFINE DB-REQUIRED TRUE
  45. &ENDIF
  46. &GLOBAL-DEFINE DB-REQUIRED-START &IF {&DB-REQUIRED} &THEN
  47. &GLOBAL-DEFINE DB-REQUIRED-END &ENDIF
  48. &Scoped-define QUERY-NAME Query-Main
  49. /* Internal Tables (found by Frame, Query & Browse Queries) */
  50. &Scoped-define INTERNAL-TABLES Artbw
  51. /* Definitions for QUERY Query-Main */
  52. &Scoped-Define ENABLED-FIELDS Firma Artnr Inhalt Jahr Knr Abhol Abh_Rab Aktion Aktion_Text Alk_Gehalt~
  53. Aufnr Auf_Rab Auf_Sp_Grp Auf_Sp_Proz_Betr Auf_Sp_Rab Auf_Sp_Wert Bez1 Bez2~
  54. Bonus_Verb Bru_Betr Datum EP Faknr Faktor Fak_Art Fak_Dat Fak_Knr FRW~
  55. Gewicht GGebKto GGeb_Cd GGeb_Me KGebKto KGeb_Cd KGeb_Me Kurs Lager Lag_Buch~
  56. Liter Menge MWST% MWST_Inkl Netto Net_Betr Preis Rab_Art Rab_Betr~
  57. Rab_Su_Art Rab_Su_Grp Rab_Wert Sk_Ber Trnr Tr_Art Vertr VGebKto VGeb_Cd~
  58. VGeb_Me WC WuCd Zus_Art Zus_Betr Zus_Wert
  59. &Scoped-define ENABLED-FIELDS-IN-Artbw Firma Artnr Inhalt Jahr Knr Abhol ~
  60. Abh_Rab Aktion Aktion_Text Alk_Gehalt Aufnr Auf_Rab Auf_Sp_Grp ~
  61. Auf_Sp_Proz_Betr Auf_Sp_Rab Auf_Sp_Wert Bez1 Bez2 Bonus_Verb Bru_Betr Datum ~
  62. EP Faknr Faktor Fak_Art Fak_Dat Fak_Knr FRW Gewicht GGebKto GGeb_Cd GGeb_Me ~
  63. KGebKto KGeb_Cd KGeb_Me Kurs Lager Lag_Buch Liter Menge MWST% MWST_Inkl ~
  64. Netto Net_Betr Preis Rab_Art Rab_Betr Rab_Su_Art Rab_Su_Grp Rab_Wert Sk_Ber ~
  65. Trnr Tr_Art Vertr VGebKto VGeb_Cd VGeb_Me WC WuCd Zus_Art Zus_Betr Zus_Wert
  66. &Scoped-Define DATA-FIELDS Firma Artnr Inhalt Jahr Knr Abhol Abh_Rab Aktion Aktion_Text Alk_Gehalt~
  67. Aufnr Auf_Rab Auf_Sp_Grp Auf_Sp_Proz_Betr Auf_Sp_Rab Auf_Sp_Wert Bez1 Bez2~
  68. Bonus_Verb Bru_Betr Datum EP Faknr Faktor Fak_Art Fak_Dat Fak_Knr FRW~
  69. Gewicht GGebKto GGeb_Cd GGeb_Me KGebKto KGeb_Cd KGeb_Me Kurs Lager Lag_Buch~
  70. Liter Menge MWST% MWST_Inkl Netto Net_Betr Preis Rab_Art Rab_Betr~
  71. Rab_Su_Art Rab_Su_Grp Rab_Wert Sk_Ber Trnr Tr_Art Vertr VGebKto VGeb_Cd~
  72. VGeb_Me WC WuCd Zus_Art Zus_Betr Zus_Wert
  73. &Scoped-define DATA-FIELDS-IN-Artbw Firma Artnr Inhalt Jahr Knr Abhol ~
  74. Abh_Rab Aktion Aktion_Text Alk_Gehalt Aufnr Auf_Rab Auf_Sp_Grp ~
  75. Auf_Sp_Proz_Betr Auf_Sp_Rab Auf_Sp_Wert Bez1 Bez2 Bonus_Verb Bru_Betr Datum ~
  76. EP Faknr Faktor Fak_Art Fak_Dat Fak_Knr FRW Gewicht GGebKto GGeb_Cd GGeb_Me ~
  77. KGebKto KGeb_Cd KGeb_Me Kurs Lager Lag_Buch Liter Menge MWST% MWST_Inkl ~
  78. Netto Net_Betr Preis Rab_Art Rab_Betr Rab_Su_Art Rab_Su_Grp Rab_Wert Sk_Ber ~
  79. Trnr Tr_Art Vertr VGebKto VGeb_Cd VGeb_Me WC WuCd Zus_Art Zus_Betr Zus_Wert
  80. &Scoped-Define MANDATORY-FIELDS Firma
  81. &Scoped-Define APPLICATION-SERVICE
  82. &Scoped-Define ASSIGN-LIST
  83. &Scoped-Define DATA-FIELD-DEFS "d-artbw.i"
  84. &Scoped-Define DATA-TABLE-NO-UNDO NO-UNDO
  85. &Scoped-define QUERY-STRING-Query-Main FOR EACH Artbw NO-LOCK INDEXED-REPOSITION
  86. {&DB-REQUIRED-START}
  87. &Scoped-define OPEN-QUERY-Query-Main OPEN QUERY Query-Main FOR EACH Artbw NO-LOCK INDEXED-REPOSITION.
  88. {&DB-REQUIRED-END}
  89. &Scoped-define TABLES-IN-QUERY-Query-Main Artbw
  90. &Scoped-define FIRST-TABLE-IN-QUERY-Query-Main Artbw
  91. /* Custom List Definitions */
  92. /* List-1,List-2,List-3,List-4,List-5,List-6 */
  93. /* _UIB-PREPROCESSOR-BLOCK-END */
  94. &ANALYZE-RESUME
  95. /* ************************ Function Prototypes ********************** */
  96. {&DB-REQUIRED-START}
  97. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _FUNCTION-FORWARD getQueryBuffer dTables _DB-REQUIRED
  98. FUNCTION getQueryBuffer RETURNS HANDLE
  99. ( /* parameter-definitions */ ) FORWARD.
  100. /* _UIB-CODE-BLOCK-END */
  101. &ANALYZE-RESUME
  102. {&DB-REQUIRED-END}
  103. {&DB-REQUIRED-START}
  104. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _FUNCTION-FORWARD openQuery dTables _DB-REQUIRED
  105. FUNCTION openQuery RETURNS LOGICAL
  106. ( /* parameter-definitions */ ) FORWARD.
  107. /* _UIB-CODE-BLOCK-END */
  108. &ANALYZE-RESUME
  109. {&DB-REQUIRED-END}
  110. /* *********************** Control Definitions ********************** */
  111. {&DB-REQUIRED-START}
  112. /* Query definitions */
  113. &ANALYZE-SUSPEND
  114. DEFINE QUERY Query-Main FOR
  115. Artbw SCROLLING.
  116. &ANALYZE-RESUME
  117. {&DB-REQUIRED-END}
  118. /* ************************ Frame Definitions *********************** */
  119. /* *********************** Procedure Settings ************************ */
  120. &ANALYZE-SUSPEND _PROCEDURE-SETTINGS
  121. /* Settings for THIS-PROCEDURE
  122. Type: SmartDataObject
  123. Allow: Query
  124. Frames: 0
  125. Add Fields to: Neither
  126. Other Settings: PERSISTENT-ONLY COMPILE APPSERVER DB-AWARE
  127. */
  128. /* This procedure should always be RUN PERSISTENT. Report the error, */
  129. /* then cleanup and return. */
  130. IF NOT THIS-PROCEDURE:PERSISTENT THEN DO:
  131. MESSAGE "{&FILE-NAME} should only be RUN PERSISTENT.":U
  132. VIEW-AS ALERT-BOX ERROR BUTTONS OK.
  133. RETURN.
  134. END.
  135. &ANALYZE-RESUME _END-PROCEDURE-SETTINGS
  136. /* ************************* Create Window ************************** */
  137. &ANALYZE-SUSPEND _CREATE-WINDOW
  138. /* DESIGN Window definition (used by the UIB)
  139. CREATE WINDOW dTables ASSIGN
  140. HEIGHT = 1.62
  141. WIDTH = 46.6.
  142. /* END WINDOW DEFINITION */
  143. */
  144. &ANALYZE-RESUME
  145. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _CUSTOM _INCLUDED-LIB dTables
  146. /* ************************* Included-Libraries *********************** */
  147. {src/adm2/data.i}
  148. /* _UIB-CODE-BLOCK-END */
  149. &ANALYZE-RESUME
  150. /* *********** Runtime Attributes and AppBuilder Settings *********** */
  151. &ANALYZE-SUSPEND _RUN-TIME-ATTRIBUTES
  152. /* SETTINGS FOR WINDOW dTables
  153. VISIBLE,,RUN-PERSISTENT */
  154. /* _RUN-TIME-ATTRIBUTES-END */
  155. &ANALYZE-RESUME
  156. /* Setting information for Queries and Browse Widgets fields */
  157. &ANALYZE-SUSPEND _QUERY-BLOCK QUERY Query-Main
  158. /* Query rebuild information for SmartDataObject Query-Main
  159. _TblList = "AnaDat.Artbw"
  160. _Options = "NO-LOCK INDEXED-REPOSITION"
  161. _FldNameList[1] > AnaDat.Artbw.Firma
  162. "Firma" "Firma" ? ? "character" ? ? ? ? ? ? yes ? yes 8 yes ?
  163. _FldNameList[2] > AnaDat.Artbw.Artnr
  164. "Artnr" "Artnr" ? ? "integer" ? ? ? ? ? ? yes ? no 7.2 yes ?
  165. _FldNameList[3] > AnaDat.Artbw.Inhalt
  166. "Inhalt" "Inhalt" ? ? "integer" ? ? ? ? ? ? yes ? no 5.2 yes ?
  167. _FldNameList[4] > AnaDat.Artbw.Jahr
  168. "Jahr" "Jahr" ? ? "integer" ? ? ? ? ? ? yes ? no 4.8 yes ?
  169. _FldNameList[5] > AnaDat.Artbw.Knr
  170. "Knr" "Knr" ? ? "integer" ? ? ? ? ? ? yes ? no 7.2 yes ?
  171. _FldNameList[6] > AnaDat.Artbw.Abhol
  172. "Abhol" "Abhol" ? ? "logical" ? ? ? ? ? ? yes ? no 5.4 yes ?
  173. _FldNameList[7] > AnaDat.Artbw.Abh_Rab
  174. "Abh_Rab" "Abh_Rab" ? ? "decimal" ? ? ? ? ? ? yes ? no 12.8 yes ?
  175. _FldNameList[8] > AnaDat.Artbw.Aktion
  176. "Aktion" "Aktion" ? ? "logical" ? ? ? ? ? ? yes ? no 6 yes ?
  177. _FldNameList[9] > AnaDat.Artbw.Aktion_Text
  178. "Aktion_Text" "Aktion_Text" ? ? "character" ? ? ? ? ? ? yes ? no 80 yes ?
  179. _FldNameList[10] > AnaDat.Artbw.Alk_Gehalt
  180. "Alk_Gehalt" "Alk_Gehalt" ? ? "decimal" ? ? ? ? ? ? yes ? no 10.4 yes ?
  181. _FldNameList[11] > AnaDat.Artbw.Aufnr
  182. "Aufnr" "Aufnr" ? ? "integer" ? ? ? ? ? ? yes ? no 7.2 yes ?
  183. _FldNameList[12] > AnaDat.Artbw.Auf_Rab
  184. "Auf_Rab" "Auf_Rab" ? ? "decimal" ? ? ? ? ? ? yes ? no 12.8 yes ?
  185. _FldNameList[13] > AnaDat.Artbw.Auf_Sp_Grp
  186. "Auf_Sp_Grp" "Auf_Sp_Grp" ? ? "integer" ? ? ? ? ? ? yes ? no 11.6 yes ?
  187. _FldNameList[14] > AnaDat.Artbw.Auf_Sp_Proz_Betr
  188. "Auf_Sp_Proz_Betr" "Auf_Sp_Proz_Betr" ? ? "logical" ? ? ? ? ? ? yes ? no 17.4 yes ?
  189. _FldNameList[15] > AnaDat.Artbw.Auf_Sp_Rab
  190. "Auf_Sp_Rab" "Auf_Sp_Rab" ? ? "decimal" ? ? ? ? ? ? yes ? no 12.6 yes ?
  191. _FldNameList[16] > AnaDat.Artbw.Auf_Sp_Wert
  192. "Auf_Sp_Wert" "Auf_Sp_Wert" ? ? "decimal" ? ? ? ? ? ? yes ? no 12.8 yes ?
  193. _FldNameList[17] > AnaDat.Artbw.Bez1
  194. "Bez1" "Bez1" ? ? "character" ? ? ? ? ? ? yes ? no 30 yes ?
  195. _FldNameList[18] > AnaDat.Artbw.Bez2
  196. "Bez2" "Bez2" ? ? "character" ? ? ? ? ? ? yes ? no 30 yes ?
  197. _FldNameList[19] > AnaDat.Artbw.Bonus_Verb
  198. "Bonus_Verb" "Bonus_Verb" ? ? "logical" ? ? ? ? ? ? yes ? no 11.6 yes ?
  199. _FldNameList[20] > AnaDat.Artbw.Bru_Betr
  200. "Bru_Betr" "Bru_Betr" ? ? "decimal" ? ? ? ? ? ? yes ? no 15.2 yes ?
  201. _FldNameList[21] > AnaDat.Artbw.Datum
  202. "Datum" "Datum" ? ? "date" ? ? ? ? ? ? yes ? no 10.8 yes ?
  203. _FldNameList[22] > AnaDat.Artbw.EP
  204. "EP" "EP" ? ? "decimal" ? ? ? ? ? ? yes ? no 12.2 yes ?
  205. _FldNameList[23] > AnaDat.Artbw.Faknr
  206. "Faknr" "Faknr" ? ? "integer" ? ? ? ? ? ? yes ? no 7.2 yes ?
  207. _FldNameList[24] > AnaDat.Artbw.Faktor
  208. "Faktor" "Faktor" ? ? "integer" ? ? ? ? ? ? yes ? no 6 yes ?
  209. _FldNameList[25] > AnaDat.Artbw.Fak_Art
  210. "Fak_Art" "Fak_Art" ? ? "integer" ? ? ? ? ? ? yes ? no 7.4 yes ?
  211. _FldNameList[26] > AnaDat.Artbw.Fak_Dat
  212. "Fak_Dat" "Fak_Dat" ? ? "date" ? ? ? ? ? ? yes ? no 10.8 yes ?
  213. _FldNameList[27] > AnaDat.Artbw.Fak_Knr
  214. "Fak_Knr" "Fak_Knr" ? ? "integer" ? ? ? ? ? ? yes ? no 8 yes ?
  215. _FldNameList[28] > AnaDat.Artbw.FRW
  216. "FRW" "FRW" ? ? "character" ? ? ? ? ? ? yes ? no 5 yes ?
  217. _FldNameList[29] > AnaDat.Artbw.Gewicht
  218. "Gewicht" "Gewicht" ? ? "decimal" ? ? ? ? ? ? yes ? no 11.6 yes ?
  219. _FldNameList[30] > AnaDat.Artbw.GGebKto
  220. "GGebKto" "GGebKto" ? ? "character" ? ? ? ? ? ? yes ? no 8.8 yes ?
  221. _FldNameList[31] > AnaDat.Artbw.GGeb_Cd
  222. "GGeb_Cd" "GGeb_Cd" ? ? "character" ? ? ? ? ? ? yes ? no 9.4 yes ?
  223. _FldNameList[32] > AnaDat.Artbw.GGeb_Me
  224. "GGeb_Me" "GGeb_Me" ? ? "decimal" ? ? ? ? ? ? yes ? no 10.4 yes ?
  225. _FldNameList[33] > AnaDat.Artbw.KGebKto
  226. "KGebKto" "KGebKto" ? ? "character" ? ? ? ? ? ? yes ? no 8.6 yes ?
  227. _FldNameList[34] > AnaDat.Artbw.KGeb_Cd
  228. "KGeb_Cd" "KGeb_Cd" ? ? "character" ? ? ? ? ? ? yes ? no 9.2 yes ?
  229. _FldNameList[35] > AnaDat.Artbw.KGeb_Me
  230. "KGeb_Me" "KGeb_Me" ? ? "decimal" ? ? ? ? ? ? yes ? no 10.4 yes ?
  231. _FldNameList[36] > AnaDat.Artbw.Kurs
  232. "Kurs" "Kurs" ? ? "decimal" ? ? ? ? ? ? yes ? no 13.6 yes ?
  233. _FldNameList[37] > AnaDat.Artbw.Lager
  234. "Lager" "Lager" ? ? "integer" ? ? ? ? ? ? yes ? no 5.4 yes ?
  235. _FldNameList[38] > AnaDat.Artbw.Lag_Buch
  236. "Lag_Buch" "Lag_Buch" ? ? "logical" ? ? ? ? ? ? yes ? no 9.8 yes ?
  237. _FldNameList[39] > AnaDat.Artbw.Liter
  238. "Liter" "Liter" ? ? "decimal" ? ? ? ? ? ? yes ? no 10.4 yes ?
  239. _FldNameList[40] > AnaDat.Artbw.Menge
  240. "Menge" "Menge" ? ? "decimal" ? ? ? ? ? ? yes ? no 8.8 yes ?
  241. _FldNameList[41] > AnaDat.Artbw.MWST%
  242. "MWST%" "MWST%" ? ? "decimal" ? ? ? ? ? ? yes ? no 8.4 yes ?
  243. _FldNameList[42] > AnaDat.Artbw.MWST_Inkl
  244. "MWST_Inkl" "MWST_Inkl" ? ? "logical" ? ? ? ? ? ? yes ? no 11.4 yes ?
  245. _FldNameList[43] > AnaDat.Artbw.Netto
  246. "Netto" "Netto" ? ? "logical" ? ? ? ? ? ? yes ? no 5.2 yes ?
  247. _FldNameList[44] > AnaDat.Artbw.Net_Betr
  248. "Net_Betr" "Net_Betr" ? ? "decimal" ? ? ? ? ? ? yes ? no 15.2 yes ?
  249. _FldNameList[45] > AnaDat.Artbw.Preis
  250. "Preis" "Preis" ? ? "decimal" ? ? ? ? ? ? yes ? no 11 yes ?
  251. _FldNameList[46] > AnaDat.Artbw.Rab_Art
  252. "Rab_Art" "Rab_Art" ? ? "integer" ? ? ? ? ? ? yes ? no 7.8 yes ?
  253. _FldNameList[47] > AnaDat.Artbw.Rab_Betr
  254. "Rab_Betr" "Rab_Betr" ? ? "decimal" ? ? ? ? ? ? yes ? no 12.8 yes ?
  255. _FldNameList[48] > AnaDat.Artbw.Rab_Su_Art
  256. "Rab_Su_Art" "Rab_Su_Art" ? ? "integer" ? ? ? ? ? ? yes ? no 11.6 yes ?
  257. _FldNameList[49] > AnaDat.Artbw.Rab_Su_Grp
  258. "Rab_Su_Grp" "Rab_Su_Grp" ? ? "integer" ? ? ? ? ? ? yes ? no 12.4 yes ?
  259. _FldNameList[50] > AnaDat.Artbw.Rab_Wert
  260. "Rab_Wert" "Rab_Wert" ? ? "decimal" ? ? ? ? ? ? yes ? no 9.8 yes ?
  261. _FldNameList[51] > AnaDat.Artbw.Sk_Ber
  262. "Sk_Ber" "Sk_Ber" ? ? "logical" ? ? ? ? ? ? yes ? no 7 yes ?
  263. _FldNameList[52] > AnaDat.Artbw.Trnr
  264. "Trnr" "Trnr" ? ? "integer" ? ? ? ? ? ? yes ? no 9.6 yes ?
  265. _FldNameList[53] > AnaDat.Artbw.Tr_Art
  266. "Tr_Art" "Tr_Art" ? ? "integer" ? ? ? ? ? ? yes ? no 5.8 yes ?
  267. _FldNameList[54] > AnaDat.Artbw.Vertr
  268. "Vertr" "Vertr" ? ? "integer" ? ? ? ? ? ? yes ? no 4.4 yes ?
  269. _FldNameList[55] > AnaDat.Artbw.VGebKto
  270. "VGebKto" "VGebKto" ? ? "character" ? ? ? ? ? ? yes ? no 8.6 yes ?
  271. _FldNameList[56] > AnaDat.Artbw.VGeb_Cd
  272. "VGeb_Cd" "VGeb_Cd" ? ? "character" ? ? ? ? ? ? yes ? no 9.2 yes ?
  273. _FldNameList[57] > AnaDat.Artbw.VGeb_Me
  274. "VGeb_Me" "VGeb_Me" ? ? "decimal" ? ? ? ? ? ? yes ? no 10.4 yes ?
  275. _FldNameList[58] > AnaDat.Artbw.WC
  276. "WC" "WC" ? ? "integer" ? ? ? ? ? ? yes ? no 3.6 yes ?
  277. _FldNameList[59] > AnaDat.Artbw.WuCd
  278. "WuCd" "WuCd" ? ? "integer" ? ? ? ? ? ? yes ? no 6 yes ?
  279. _FldNameList[60] > AnaDat.Artbw.Zus_Art
  280. "Zus_Art" "Zus_Art" ? ? "integer" ? ? ? ? ? ? yes ? no 7.4 yes ?
  281. _FldNameList[61] > AnaDat.Artbw.Zus_Betr
  282. "Zus_Betr" "Zus_Betr" ? ? "decimal" ? ? ? ? ? ? yes ? no 12.8 yes ?
  283. _FldNameList[62] > AnaDat.Artbw.Zus_Wert
  284. "Zus_Wert" "Zus_Wert" ? ? "decimal" ? ? ? ? ? ? yes ? no 9.4 yes ?
  285. _Design-Parent is WINDOW dTables @ ( 1.14 , 2.6 )
  286. */ /* QUERY Query-Main */
  287. &ANALYZE-RESUME
  288. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _CUSTOM _MAIN-BLOCK dTables
  289. /* *************************** Main Block *************************** */
  290. { incl/datmainblock.i }
  291. &IF DEFINED(UIB_IS_RUNNING) <> 0 &THEN
  292. RUN initializeObject.
  293. &ENDIF
  294. /* _UIB-CODE-BLOCK-END */
  295. &ANALYZE-RESUME
  296. /* ********************** Internal Procedures *********************** */
  297. {&DB-REQUIRED-START}
  298. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE dataAvailable dTables _DB-REQUIRED
  299. PROCEDURE dataAvailable :
  300. /*------------------------------------------------------------------------------
  301. Purpose: Super Override
  302. Parameters:
  303. Notes:
  304. ------------------------------------------------------------------------------*/
  305. { incl/datdataavailable.i }
  306. END PROCEDURE.
  307. /* _UIB-CODE-BLOCK-END */
  308. &ANALYZE-RESUME
  309. {&DB-REQUIRED-END}
  310. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE disable_UI dTables _DEFAULT-DISABLE
  311. PROCEDURE disable_UI :
  312. /*------------------------------------------------------------------------------
  313. Purpose: DISABLE the User Interface
  314. Parameters: <none>
  315. Notes: Here we clean-up the user-interface by deleting
  316. dynamic widgets we have created and/or hide
  317. frames. This procedure is usually called when
  318. we are ready to "clean-up" after running.
  319. ------------------------------------------------------------------------------*/
  320. /* Hide all frames. */
  321. IF THIS-PROCEDURE:PERSISTENT THEN DELETE PROCEDURE THIS-PROCEDURE.
  322. END PROCEDURE.
  323. /* _UIB-CODE-BLOCK-END */
  324. &ANALYZE-RESUME
  325. {&DB-REQUIRED-START}
  326. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE INAKTIVIEREN dTables _DB-REQUIRED
  327. PROCEDURE INAKTIVIEREN :
  328. /*------------------------------------------------------------------------------
  329. Purpose:
  330. Parameters: <none>
  331. Notes:
  332. ------------------------------------------------------------------------------*/
  333. { incl/datinaktivieren.i }
  334. END PROCEDURE.
  335. /* _UIB-CODE-BLOCK-END */
  336. &ANALYZE-RESUME
  337. {&DB-REQUIRED-END}
  338. {&DB-REQUIRED-START}
  339. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE initializeObject dTables _DB-REQUIRED
  340. PROCEDURE initializeObject :
  341. /*------------------------------------------------------------------------------
  342. Purpose: Super Override
  343. Parameters:
  344. Notes:
  345. ------------------------------------------------------------------------------*/
  346. { incl/datinitialize.i }
  347. END PROCEDURE.
  348. /* _UIB-CODE-BLOCK-END */
  349. &ANALYZE-RESUME
  350. {&DB-REQUIRED-END}
  351. {&DB-REQUIRED-START}
  352. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE REAKTIVIEREN dTables _DB-REQUIRED
  353. PROCEDURE REAKTIVIEREN :
  354. /*------------------------------------------------------------------------------
  355. Purpose:
  356. Parameters: <none>
  357. Notes:
  358. ------------------------------------------------------------------------------*/
  359. { incl/datreaktivieren.i }
  360. END PROCEDURE.
  361. /* _UIB-CODE-BLOCK-END */
  362. &ANALYZE-RESUME
  363. {&DB-REQUIRED-END}
  364. {&DB-REQUIRED-START}
  365. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE REPOS_TABELLE dTables _DB-REQUIRED
  366. PROCEDURE REPOS_TABELLE :
  367. /*------------------------------------------------------------------------------
  368. Purpose:
  369. Parameters: <none>
  370. Notes:
  371. ------------------------------------------------------------------------------*/
  372. { incl/datrepos.i }
  373. END PROCEDURE.
  374. /* _UIB-CODE-BLOCK-END */
  375. &ANALYZE-RESUME
  376. {&DB-REQUIRED-END}
  377. {&DB-REQUIRED-START}
  378. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE SET_FILTER dTables _DB-REQUIRED
  379. PROCEDURE SET_FILTER :
  380. /*------------------------------------------------------------------------------
  381. Purpose:
  382. Parameters: <none>
  383. Notes:
  384. ------------------------------------------------------------------------------*/
  385. { incl/datsetfilter.i }
  386. END PROCEDURE.
  387. /* _UIB-CODE-BLOCK-END */
  388. &ANALYZE-RESUME
  389. {&DB-REQUIRED-END}
  390. {&DB-REQUIRED-START}
  391. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE SET_OPENFLAG dTables _DB-REQUIRED
  392. PROCEDURE SET_OPENFLAG :
  393. /*------------------------------------------------------------------------------
  394. Purpose:
  395. Parameters: <none>
  396. Notes:
  397. ------------------------------------------------------------------------------*/
  398. { incl/datsetopenflag.i }
  399. END PROCEDURE.
  400. /* _UIB-CODE-BLOCK-END */
  401. &ANALYZE-RESUME
  402. {&DB-REQUIRED-END}
  403. {&DB-REQUIRED-START}
  404. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE SET_SORT dTables _DB-REQUIRED
  405. PROCEDURE SET_SORT :
  406. /*------------------------------------------------------------------------------
  407. Purpose:
  408. Parameters: <none>
  409. Notes:
  410. ------------------------------------------------------------------------------*/
  411. { incl/datsetsort.i }
  412. END PROCEDURE.
  413. /* _UIB-CODE-BLOCK-END */
  414. &ANALYZE-RESUME
  415. {&DB-REQUIRED-END}
  416. /* ************************ Function Implementations ***************** */
  417. {&DB-REQUIRED-START}
  418. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _FUNCTION getQueryBuffer dTables _DB-REQUIRED
  419. FUNCTION getQueryBuffer RETURNS HANDLE
  420. ( /* parameter-definitions */ ) :
  421. /*------------------------------------------------------------------------------
  422. Purpose:
  423. Notes:
  424. ------------------------------------------------------------------------------*/
  425. RETURN BUFFER rowObject:HANDLE.
  426. END FUNCTION.
  427. /* _UIB-CODE-BLOCK-END */
  428. &ANALYZE-RESUME
  429. {&DB-REQUIRED-END}
  430. {&DB-REQUIRED-START}
  431. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _FUNCTION openQuery dTables _DB-REQUIRED
  432. FUNCTION openQuery RETURNS LOGICAL
  433. ( /* parameter-definitions */ ) :
  434. /*------------------------------------------------------------------------------
  435. Purpose: Super Override
  436. Notes:
  437. ------------------------------------------------------------------------------*/
  438. DEF VAR Felder AS CHAR NO-UNDO.
  439. DEF VAR Inhalt AS CHAR NO-UNDO.
  440. DEF VAR ix AS INT NO-UNDO.
  441. DEF VAR cFeld AS CHAR NO-UNDO.
  442. /* IF NOT fOpen THEN RETURN FALSE. */
  443. xWhere = ''.
  444. xSort = ''.
  445. xString = ''.
  446. Felder = DYNAMIC-FUNCTION('getForeignFields':U) NO-ERROR.
  447. Inhalt = DYNAMIC-FUNCTION('getForeignValues':U) NO-ERROR.
  448. /* ix = LOOKUP('Feld', Felder, ',') / 2. */
  449. /* cFeld = ENTRY (ix , Inhalt, CHR(01)). */
  450. /* xWhere = 'Aufko.Firma = ' + QUOTER(Firma) + ' AND ' */
  451. /* + 'Aufko.Auf_Sta = ' + STRING(Auf_Sta) + ' '. */
  452. /* xString = 'FOR EACH Debop ' + xSort + 'WHERE ' */
  453. /* + 'Debop.Firma = "' + Firma + '" AND ' */
  454. /* + 'Debop.Knr = ' + STRING(Knr) + ' ' */
  455. /* + 'NO-LOCK BY Debop.FakDat DESCENDING INDEXED-REPOSITION '. */
  456. { incl/datopenquery.i }
  457. IF xWhere <> '' THEN DYNAMIC-FUNCTION('setQueryWhere':U , INPUT xWhere ).
  458. IF xString <> '' THEN DYNAMIC-FUNCTION('setQueryString':U, INPUT xString).
  459. IF xSort <> '' THEN DYNAMIC-FUNCTION('setQuerySort':U , INPUT xSort ).
  460. RETURN SUPER( ).
  461. END FUNCTION.
  462. /* _UIB-CODE-BLOCK-END */
  463. &ANALYZE-RESUME
  464. {&DB-REQUIRED-END}