d-savze.w 26 KB

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