d-abholze.w 26 KB

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