d-aufze.w 28 KB

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