d-abholko.w 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975
  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. DEF VAR FwAufSta AS INT NO-UNDO.
  30. DEF VAR FwFakArt AS INT NO-UNDO.
  31. &SCOPED-DEFINE Tabelle Aufko
  32. &SCOPED-DEFINE TabWhere USE-INDEX Aufko-k1 ~
  33. WHERE {&Tabelle}.Firma = tRowObject.Firma ~
  34. AND {&Tabelle}.Aufnr = tRowObject.Aufnr
  35. { incl/datdefinition.i }
  36. /* _UIB-CODE-BLOCK-END */
  37. &ANALYZE-RESUME
  38. &ANALYZE-SUSPEND _UIB-PREPROCESSOR-BLOCK
  39. /* ******************** Preprocessor Definitions ******************** */
  40. &Global-define DATA-LOGIC-PROCEDURE .p
  41. &Scoped-define PROCEDURE-TYPE SmartDataObject
  42. &Scoped-define DB-AWARE yes
  43. &Scoped-define ADM-SUPPORTED-LINKS Data-Source,Data-Target,Navigation-Target,Update-Target,Commit-Target,Filter-Target
  44. /* Db-Required definitions. */
  45. &IF DEFINED(DB-REQUIRED) = 0 &THEN
  46. &GLOBAL-DEFINE DB-REQUIRED TRUE
  47. &ENDIF
  48. &GLOBAL-DEFINE DB-REQUIRED-START &IF {&DB-REQUIRED} &THEN
  49. &GLOBAL-DEFINE DB-REQUIRED-END &ENDIF
  50. &Scoped-define QUERY-NAME Query-Main
  51. /* Internal Tables (found by Frame, Query & Browse Queries) */
  52. &Scoped-define INTERNAL-TABLES Aufko
  53. /* Definitions for QUERY Query-Main */
  54. &Scoped-Define ENABLED-FIELDS Abhol Abh_Rab_Art Abh_Rab_Wert Abh_Text Ablad_Vor Ablad_Vor_Text Adresse1~
  55. Adresse2 Adresse3 Adresse4 Adresse5 Aufnr Auf_Datum Auf_Rab_Art~
  56. Auf_Rab_Wert Auf_Sta Auf_Text Auf_Tot Avis Bar_Betr Bar_Fak Bar_Konto~
  57. Bar_Skonto Bar_Text BeiFahrer Fahrer Faknr Fak_Art Fak_Datum Fak_FTnr~
  58. Fak_Knr Fak_KTnr Filiale Firma Frw Fuss_Text1 Fuss_Text2 Fuss_Text3 Geb_Rg~
  59. Gedruckt Gewicht GG_Berech I_Best Knr Kond Kond_Datum Konto Kopf_Text1~
  60. Kopf_Text2 Kopf_Text3 Kurs Ku_Grp Lief_Bed Lief_Datum LKW MWSt MWST_Nr~
  61. Passant Porto Preis_Grp Rabatt Rab_Grp Rueckst Samm_Nr Sk_Ber Tour_Nr1~
  62. Tour_Nr2 Transp U_Ref Verbucht Verpack Vertr Wirt_So Wirt_So_Text Wpfl1~
  63. Wpfl2 Wpfl3 Wpfl4 Wpfl5 Wpfl6 Wpfl7 Wpfl8 Wpfl9 Wpfl10 Wpfl11 Wpfl12 Wust1~
  64. Wust2 Wust3 Wust4 Wust5 Wust6 Wust7 Wust8 Wust9 Wust10 Wust11 Wust12 WW1~
  65. WW2 WW3 WW4 WW5 WW6 WW7 WW8 WW9 WW10 WW11 WW12 Zei_Rab_Art Zei_Rab_Wert~
  66. Zuschl_Art Zuschl_Wert Kunde DokNr Lager
  67. &Scoped-define ENABLED-FIELDS-IN-Aufko Abhol Abh_Rab_Art Abh_Rab_Wert ~
  68. Abh_Text Ablad_Vor Ablad_Vor_Text Adresse1 Adresse2 Adresse3 Adresse4 ~
  69. Adresse5 Aufnr Auf_Datum Auf_Rab_Art Auf_Rab_Wert Auf_Sta Auf_Text Auf_Tot ~
  70. Avis Bar_Betr Bar_Fak Bar_Konto Bar_Skonto Bar_Text BeiFahrer Fahrer Faknr ~
  71. Fak_Art Fak_Datum Fak_FTnr Fak_Knr Fak_KTnr Filiale Firma Frw Fuss_Text1 ~
  72. Fuss_Text2 Fuss_Text3 Geb_Rg Gedruckt Gewicht GG_Berech I_Best Knr Kond ~
  73. Kond_Datum Konto Kopf_Text1 Kopf_Text2 Kopf_Text3 Kurs Ku_Grp Lief_Bed ~
  74. Lief_Datum LKW MWSt MWST_Nr Passant Porto Preis_Grp Rabatt Rab_Grp Rueckst ~
  75. Samm_Nr Sk_Ber Tour_Nr1 Tour_Nr2 Transp U_Ref Verbucht Verpack Vertr ~
  76. Wirt_So Wirt_So_Text Wpfl1 Wpfl2 Wpfl3 Wpfl4 Wpfl5 Wpfl6 Wpfl7 Wpfl8 Wpfl9 ~
  77. Wpfl10 Wpfl11 Wpfl12 Wust1 Wust2 Wust3 Wust4 Wust5 Wust6 Wust7 Wust8 Wust9 ~
  78. Wust10 Wust11 Wust12 WW1 WW2 WW3 WW4 WW5 WW6 WW7 WW8 WW9 WW10 WW11 WW12 ~
  79. Zei_Rab_Art Zei_Rab_Wert Zuschl_Art Zuschl_Wert Lager
  80. &Scoped-Define DATA-FIELDS Abhol Abh_Rab_Art Abh_Rab_Wert Abh_Text Ablad_Vor Ablad_Vor_Text Adresse1~
  81. Adresse2 Adresse3 Adresse4 Adresse5 Aufnr Auf_Datum Auf_Rab_Art~
  82. Auf_Rab_Wert Auf_Sta Auf_Text Auf_Tot Avis Bar_Betr Bar_Fak Bar_Konto~
  83. Bar_Skonto Bar_Text BeiFahrer Fahrer Faknr Fak_Art Fak_Datum Fak_FTnr~
  84. Fak_Knr Fak_KTnr Filiale Firma Frw Fuss_Text1 Fuss_Text2 Fuss_Text3 Geb_Rg~
  85. Gedruckt Gewicht GG_Berech I_Best Knr Kond Kond_Datum Konto Kopf_Text1~
  86. Kopf_Text2 Kopf_Text3 Kurs Ku_Grp Lief_Bed Lief_Datum LKW MWSt MWST_Nr~
  87. Passant Porto Preis_Grp Rabatt Rab_Grp Rueckst Samm_Nr Sk_Ber Tour_Nr1~
  88. Tour_Nr2 Transp U_Ref Verbucht Verpack Vertr Wirt_So Wirt_So_Text Wpfl1~
  89. Wpfl2 Wpfl3 Wpfl4 Wpfl5 Wpfl6 Wpfl7 Wpfl8 Wpfl9 Wpfl10 Wpfl11 Wpfl12 Wust1~
  90. Wust2 Wust3 Wust4 Wust5 Wust6 Wust7 Wust8 Wust9 Wust10 Wust11 Wust12 WW1~
  91. WW2 WW3 WW4 WW5 WW6 WW7 WW8 WW9 WW10 WW11 WW12 Zei_Rab_Art Zei_Rab_Wert~
  92. Zuschl_Art Zuschl_Wert Kunde DokNr Lager
  93. &Scoped-define DATA-FIELDS-IN-Aufko Abhol Abh_Rab_Art Abh_Rab_Wert Abh_Text ~
  94. Ablad_Vor Ablad_Vor_Text Adresse1 Adresse2 Adresse3 Adresse4 Adresse5 Aufnr ~
  95. Auf_Datum Auf_Rab_Art Auf_Rab_Wert Auf_Sta Auf_Text Auf_Tot Avis Bar_Betr ~
  96. Bar_Fak Bar_Konto Bar_Skonto Bar_Text BeiFahrer Fahrer Faknr Fak_Art ~
  97. Fak_Datum Fak_FTnr Fak_Knr Fak_KTnr Filiale Firma Frw Fuss_Text1 Fuss_Text2 ~
  98. Fuss_Text3 Geb_Rg Gedruckt Gewicht GG_Berech I_Best Knr Kond Kond_Datum ~
  99. Konto Kopf_Text1 Kopf_Text2 Kopf_Text3 Kurs Ku_Grp Lief_Bed Lief_Datum LKW ~
  100. MWSt MWST_Nr Passant Porto Preis_Grp Rabatt Rab_Grp Rueckst Samm_Nr Sk_Ber ~
  101. Tour_Nr1 Tour_Nr2 Transp U_Ref Verbucht Verpack Vertr Wirt_So Wirt_So_Text ~
  102. Wpfl1 Wpfl2 Wpfl3 Wpfl4 Wpfl5 Wpfl6 Wpfl7 Wpfl8 Wpfl9 Wpfl10 Wpfl11 Wpfl12 ~
  103. Wust1 Wust2 Wust3 Wust4 Wust5 Wust6 Wust7 Wust8 Wust9 Wust10 Wust11 Wust12 ~
  104. WW1 WW2 WW3 WW4 WW5 WW6 WW7 WW8 WW9 WW10 WW11 WW12 Zei_Rab_Art Zei_Rab_Wert ~
  105. Zuschl_Art Zuschl_Wert Lager
  106. &Scoped-Define MANDATORY-FIELDS Firma Knr
  107. &Scoped-Define APPLICATION-SERVICE
  108. &Scoped-Define ASSIGN-LIST rowObject.Adresse1 = Aufko.Adresse[1]~
  109. rowObject.Adresse2 = Aufko.Adresse[2]~
  110. rowObject.Adresse3 = Aufko.Adresse[3]~
  111. rowObject.Adresse4 = Aufko.Adresse[4]~
  112. rowObject.Adresse5 = Aufko.Adresse[5]~
  113. rowObject.Fuss_Text1 = Aufko.Fuss_Text[1]~
  114. rowObject.Fuss_Text2 = Aufko.Fuss_Text[2]~
  115. rowObject.Fuss_Text3 = Aufko.Fuss_Text[3]~
  116. rowObject.Kopf_Text1 = Aufko.Kopf_Text[1]~
  117. rowObject.Kopf_Text2 = Aufko.Kopf_Text[2]~
  118. rowObject.Kopf_Text3 = Aufko.Kopf_Text[3] rowObject.Wpfl1 = Aufko.Wpfl[1]~
  119. rowObject.Wpfl2 = Aufko.Wpfl[2] rowObject.Wpfl3 = Aufko.Wpfl[3]~
  120. rowObject.Wpfl4 = Aufko.Wpfl[4] rowObject.Wpfl5 = Aufko.Wpfl[5]~
  121. rowObject.Wpfl6 = Aufko.Wpfl[6] rowObject.Wpfl7 = Aufko.Wpfl[7]~
  122. rowObject.Wpfl8 = Aufko.Wpfl[8] rowObject.Wpfl9 = Aufko.Wpfl[9]~
  123. rowObject.Wpfl10 = Aufko.Wpfl[10] rowObject.Wpfl11 = Aufko.Wpfl[11]~
  124. rowObject.Wpfl12 = Aufko.Wpfl[12] rowObject.Wust1 = Aufko.Wust[1]~
  125. rowObject.Wust2 = Aufko.Wust[2] rowObject.Wust3 = Aufko.Wust[3]~
  126. rowObject.Wust4 = Aufko.Wust[4] rowObject.Wust5 = Aufko.Wust[5]~
  127. rowObject.Wust6 = Aufko.Wust[6] rowObject.Wust7 = Aufko.Wust[7]~
  128. rowObject.Wust8 = Aufko.Wust[8] rowObject.Wust9 = Aufko.Wust[9]~
  129. rowObject.Wust10 = Aufko.Wust[10] rowObject.Wust11 = Aufko.Wust[11]~
  130. rowObject.Wust12 = Aufko.Wust[12] rowObject.WW1 = Aufko.WW[1]~
  131. rowObject.WW2 = Aufko.WW[2] rowObject.WW3 = Aufko.WW[3]~
  132. rowObject.WW4 = Aufko.WW[4] rowObject.WW5 = Aufko.WW[5]~
  133. rowObject.WW6 = Aufko.WW[6] rowObject.WW7 = Aufko.WW[7]~
  134. rowObject.WW8 = Aufko.WW[8] rowObject.WW9 = Aufko.WW[9]~
  135. rowObject.WW10 = Aufko.WW[10] rowObject.WW11 = Aufko.WW[11]~
  136. rowObject.WW12 = Aufko.WW[12]
  137. &Scoped-Define DATA-FIELD-DEFS "d-abholko.i"
  138. &Scoped-Define DATA-TABLE-NO-UNDO NO-UNDO
  139. &Scoped-define QUERY-STRING-Query-Main FOR EACH Aufko NO-LOCK INDEXED-REPOSITION
  140. {&DB-REQUIRED-START}
  141. &Scoped-define OPEN-QUERY-Query-Main OPEN QUERY Query-Main FOR EACH Aufko NO-LOCK INDEXED-REPOSITION.
  142. {&DB-REQUIRED-END}
  143. &Scoped-define TABLES-IN-QUERY-Query-Main Aufko
  144. &Scoped-define FIRST-TABLE-IN-QUERY-Query-Main Aufko
  145. /* Custom List Definitions */
  146. /* List-1,List-2,List-3,List-4,List-5,List-6 */
  147. /* _UIB-PREPROCESSOR-BLOCK-END */
  148. &ANALYZE-RESUME
  149. /* ************************ Function Prototypes ********************** */
  150. {&DB-REQUIRED-START}
  151. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _FUNCTION-FORWARD getCurrentAufnr dTables _DB-REQUIRED
  152. FUNCTION getCurrentAufnr RETURNS INTEGER
  153. ( /* parameter-definitions */ ) FORWARD.
  154. /* _UIB-CODE-BLOCK-END */
  155. &ANALYZE-RESUME
  156. {&DB-REQUIRED-END}
  157. {&DB-REQUIRED-START}
  158. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _FUNCTION-FORWARD getCurrentRecid dTables _DB-REQUIRED
  159. FUNCTION getCurrentRecid RETURNS RECID
  160. ( /* parameter-definitions */ ) FORWARD.
  161. /* _UIB-CODE-BLOCK-END */
  162. &ANALYZE-RESUME
  163. {&DB-REQUIRED-END}
  164. {&DB-REQUIRED-START}
  165. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _FUNCTION-FORWARD getKundenadresse dTables _DB-REQUIRED
  166. FUNCTION getKundenadresse RETURNS CHARACTER
  167. ( ipKnr AS INT ) FORWARD.
  168. /* _UIB-CODE-BLOCK-END */
  169. &ANALYZE-RESUME
  170. {&DB-REQUIRED-END}
  171. {&DB-REQUIRED-START}
  172. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _FUNCTION-FORWARD getQueryBuffer dTables _DB-REQUIRED
  173. FUNCTION getQueryBuffer RETURNS HANDLE
  174. ( /* parameter-definitions */ ) FORWARD.
  175. /* _UIB-CODE-BLOCK-END */
  176. &ANALYZE-RESUME
  177. {&DB-REQUIRED-END}
  178. {&DB-REQUIRED-START}
  179. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _FUNCTION-FORWARD openQuery dTables _DB-REQUIRED
  180. FUNCTION openQuery RETURNS LOGICAL
  181. ( /* parameter-definitions */ ) FORWARD.
  182. /* _UIB-CODE-BLOCK-END */
  183. &ANALYZE-RESUME
  184. {&DB-REQUIRED-END}
  185. /* *********************** Control Definitions ********************** */
  186. {&DB-REQUIRED-START}
  187. /* Query definitions */
  188. &ANALYZE-SUSPEND
  189. DEFINE QUERY Query-Main FOR
  190. Aufko SCROLLING.
  191. &ANALYZE-RESUME
  192. {&DB-REQUIRED-END}
  193. /* ************************ Frame Definitions *********************** */
  194. /* *********************** Procedure Settings ************************ */
  195. &ANALYZE-SUSPEND _PROCEDURE-SETTINGS
  196. /* Settings for THIS-PROCEDURE
  197. Type: SmartDataObject
  198. Allow: Query
  199. Frames: 0
  200. Add Fields to: Neither
  201. Other Settings: PERSISTENT-ONLY COMPILE APPSERVER DB-AWARE
  202. */
  203. /* This procedure should always be RUN PERSISTENT. Report the error, */
  204. /* then cleanup and return. */
  205. IF NOT THIS-PROCEDURE:PERSISTENT THEN DO:
  206. MESSAGE "{&FILE-NAME} should only be RUN PERSISTENT.":U
  207. VIEW-AS ALERT-BOX ERROR BUTTONS OK.
  208. RETURN.
  209. END.
  210. &ANALYZE-RESUME _END-PROCEDURE-SETTINGS
  211. /* ************************* Create Window ************************** */
  212. &ANALYZE-SUSPEND _CREATE-WINDOW
  213. /* DESIGN Window definition (used by the UIB)
  214. CREATE WINDOW dTables ASSIGN
  215. HEIGHT = 1.62
  216. WIDTH = 68.2.
  217. /* END WINDOW DEFINITION */
  218. */
  219. &ANALYZE-RESUME
  220. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _CUSTOM _INCLUDED-LIB dTables
  221. /* ************************* Included-Libraries *********************** */
  222. {src/adm2/data.i}
  223. /* _UIB-CODE-BLOCK-END */
  224. &ANALYZE-RESUME
  225. /* *********** Runtime Attributes and AppBuilder Settings *********** */
  226. &ANALYZE-SUSPEND _RUN-TIME-ATTRIBUTES
  227. /* SETTINGS FOR WINDOW dTables
  228. VISIBLE,,RUN-PERSISTENT */
  229. /* _RUN-TIME-ATTRIBUTES-END */
  230. &ANALYZE-RESUME
  231. /* Setting information for Queries and Browse Widgets fields */
  232. &ANALYZE-SUSPEND _QUERY-BLOCK QUERY Query-Main
  233. /* Query rebuild information for SmartDataObject Query-Main
  234. _TblList = "AnaDat.Aufko"
  235. _Options = "NO-LOCK INDEXED-REPOSITION"
  236. _FldNameList[1] > AnaDat.Aufko.Abhol
  237. "Abhol" "Abhol" ? ? "logical" ? ? ? ? ? ? yes ? no 5.4 yes ?
  238. _FldNameList[2] > AnaDat.Aufko.Abh_Rab_Art
  239. "Abh_Rab_Art" "Abh_Rab_Art" ? ? "integer" ? ? ? ? ? ? yes ? no 12.8 yes ?
  240. _FldNameList[3] > AnaDat.Aufko.Abh_Rab_Wert
  241. "Abh_Rab_Wert" "Abh_Rab_Wert" ? ? "decimal" ? ? ? ? ? ? yes ? no 14.8 yes ?
  242. _FldNameList[4] > AnaDat.Aufko.Abh_Text
  243. "Abh_Text" "Abh_Text" ? ? "character" ? ? ? ? ? ? yes ? no 500 yes ?
  244. _FldNameList[5] > AnaDat.Aufko.Ablad_Vor
  245. "Ablad_Vor" "Ablad_Vor" ? ? "integer" ? ? ? ? ? ? yes ? no 9.8 yes ?
  246. _FldNameList[6] > AnaDat.Aufko.Ablad_Vor_Text
  247. "Ablad_Vor_Text" "Ablad_Vor_Text" ? ? "character" ? ? ? ? ? ? yes ? no 40 yes ?
  248. _FldNameList[7] > AnaDat.Aufko.Adresse[1]
  249. "Adresse[1]" "Adresse1" ? ? "character" ? ? ? ? ? ? yes ? no 30 yes ?
  250. _FldNameList[8] > AnaDat.Aufko.Adresse[2]
  251. "Adresse[2]" "Adresse2" ? ? "character" ? ? ? ? ? ? yes ? no 30 yes ?
  252. _FldNameList[9] > AnaDat.Aufko.Adresse[3]
  253. "Adresse[3]" "Adresse3" ? ? "character" ? ? ? ? ? ? yes ? no 30 yes ?
  254. _FldNameList[10] > AnaDat.Aufko.Adresse[4]
  255. "Adresse[4]" "Adresse4" ? ? "character" ? ? ? ? ? ? yes ? no 30 yes ?
  256. _FldNameList[11] > AnaDat.Aufko.Adresse[5]
  257. "Adresse[5]" "Adresse5" ? ? "character" ? ? ? ? ? ? yes ? no 30 yes ?
  258. _FldNameList[12] > AnaDat.Aufko.Aufnr
  259. "Aufnr" "Aufnr" ? ? "integer" ? ? ? ? ? ? yes ? no 7.2 yes ?
  260. _FldNameList[13] > AnaDat.Aufko.Auf_Datum
  261. "Auf_Datum" "Auf_Datum" ? ? "date" ? ? ? ? ? ? yes ? no 10.8 yes ?
  262. _FldNameList[14] > AnaDat.Aufko.Auf_Rab_Art
  263. "Auf_Rab_Art" "Auf_Rab_Art" ? ? "integer" ? ? ? ? ? ? yes ? no 12.2 yes ?
  264. _FldNameList[15] > AnaDat.Aufko.Auf_Rab_Wert
  265. "Auf_Rab_Wert" "Auf_Rab_Wert" ? ? "decimal" ? ? ? ? ? ? yes ? no 14.2 yes ?
  266. _FldNameList[16] > AnaDat.Aufko.Auf_Sta
  267. "Auf_Sta" "Auf_Sta" ? ? "integer" ? ? ? ? ? ? yes ? no 7.6 yes ?
  268. _FldNameList[17] > AnaDat.Aufko.Auf_Text
  269. "Auf_Text" "Auf_Text" ? ? "character" ? ? ? ? ? ? yes ? no 500 yes ?
  270. _FldNameList[18] > AnaDat.Aufko.Auf_Tot
  271. "Auf_Tot" "Auf_Tot" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ?
  272. _FldNameList[19] > AnaDat.Aufko.Avis
  273. "Avis" "Avis" ? ? "integer" ? ? ? ? ? ? yes ? no 4 yes ?
  274. _FldNameList[20] > AnaDat.Aufko.Bar_Betr
  275. "Bar_Betr" "Bar_Betr" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ?
  276. _FldNameList[21] > AnaDat.Aufko.Bar_Fak
  277. "Bar_Fak" "Bar_Fak" ? ? "logical" ? ? ? ? ? ? yes ? no 8 yes ?
  278. _FldNameList[22] > AnaDat.Aufko.Bar_Konto
  279. "Bar_Konto" "Bar_Konto" ? ? "character" ? ? ? ? ? ? yes ? no 12 yes ?
  280. _FldNameList[23] > AnaDat.Aufko.Bar_Skonto
  281. "Bar_Skonto" "Bar_Skonto" ? ? "decimal" ? ? ? ? ? ? yes ? no 11.2 yes ?
  282. _FldNameList[24] > AnaDat.Aufko.Bar_Text
  283. "Bar_Text" "Bar_Text" ? ? "character" ? ? ? ? ? ? yes ? no 500 yes ?
  284. _FldNameList[25] > AnaDat.Aufko.BeiFahrer
  285. "BeiFahrer" "BeiFahrer" ? ? "integer" ? ? ? ? ? ? yes ? no 9 yes ?
  286. _FldNameList[26] > AnaDat.Aufko.Fahrer
  287. "Fahrer" "Fahrer" ? ? "integer" ? ? ? ? ? ? yes ? no 6 yes ?
  288. _FldNameList[27] > AnaDat.Aufko.Faknr
  289. "Faknr" "Faknr" ? ? "integer" ? ? ? ? ? ? yes ? no 7.2 yes ?
  290. _FldNameList[28] > AnaDat.Aufko.Fak_Art
  291. "Fak_Art" "Fak_Art" ? ? "integer" ? ? ? ? ? ? yes ? no 7.4 yes ?
  292. _FldNameList[29] > AnaDat.Aufko.Fak_Datum
  293. "Fak_Datum" "Fak_Datum" ? ? "date" ? ? ? ? ? ? yes ? no 11 yes ?
  294. _FldNameList[30] > AnaDat.Aufko.Fak_FTnr
  295. "Fak_FTnr" "Fak_FTnr" ? ? "integer" ? ? ? ? ? ? yes ? no 9.2 yes ?
  296. _FldNameList[31] > AnaDat.Aufko.Fak_Knr
  297. "Fak_Knr" "Fak_Knr" ? ? "integer" ? ? ? ? ? ? yes ? no 8 yes ?
  298. _FldNameList[32] > AnaDat.Aufko.Fak_KTnr
  299. "Fak_KTnr" "Fak_KTnr" ? ? "integer" ? ? ? ? ? ? yes ? no 9.4 yes ?
  300. _FldNameList[33] > AnaDat.Aufko.Filiale
  301. "Filiale" "Filiale" ? ? "integer" ? ? ? ? ? ? yes ? no 5.2 yes ?
  302. _FldNameList[34] > AnaDat.Aufko.Firma
  303. "Firma" "Firma" ? ? "character" ? ? ? ? ? ? yes ? yes 8 yes ?
  304. _FldNameList[35] > AnaDat.Aufko.Frw
  305. "Frw" "Frw" ? ? "character" ? ? ? ? ? ? yes ? no 3.4 yes ?
  306. _FldNameList[36] > AnaDat.Aufko.Fuss_Text[1]
  307. "Fuss_Text[1]" "Fuss_Text1" ? ? "character" ? ? ? ? ? ? yes ? no 70 yes ?
  308. _FldNameList[37] > AnaDat.Aufko.Fuss_Text[2]
  309. "Fuss_Text[2]" "Fuss_Text2" ? ? "character" ? ? ? ? ? ? yes ? no 70 yes ?
  310. _FldNameList[38] > AnaDat.Aufko.Fuss_Text[3]
  311. "Fuss_Text[3]" "Fuss_Text3" ? ? "character" ? ? ? ? ? ? yes ? no 70 yes ?
  312. _FldNameList[39] > AnaDat.Aufko.Geb_Rg
  313. "Geb_Rg" "Geb_Rg" ? ? "logical" ? ? ? ? ? ? yes ? no 8 yes ?
  314. _FldNameList[40] > AnaDat.Aufko.Gedruckt
  315. "Gedruckt" "Gedruckt" ? ? "logical" ? ? ? ? ? ? yes ? no 8.8 yes ?
  316. _FldNameList[41] > AnaDat.Aufko.Gewicht
  317. "Gewicht" "Gewicht" ? ? "decimal" ? ? ? ? ? ? yes ? no 11.6 yes ?
  318. _FldNameList[42] > AnaDat.Aufko.GG_Berech
  319. "GG_Berech" "GG_Berech" ? ? "logical" ? ? ? ? ? ? yes ? no 11.2 yes ?
  320. _FldNameList[43] > AnaDat.Aufko.I_Best
  321. "I_Best" "I_Best" ? ? "character" ? ? ? ? ? ? yes ? no 20 yes ?
  322. _FldNameList[44] > AnaDat.Aufko.Knr
  323. "Knr" "Knr" ? ? "integer" ? ? ? ? ? ? yes ? yes 7.2 yes ?
  324. _FldNameList[45] > AnaDat.Aufko.Kond
  325. "Kond" "Kond" ? ? "integer" ? ? ? ? ? ? yes ? no 5 yes ?
  326. _FldNameList[46] > AnaDat.Aufko.Kond_Datum
  327. "Kond_Datum" "Kond_Datum" ? ? "date" ? ? ? ? ? ? yes ? no 12.4 yes ?
  328. _FldNameList[47] > AnaDat.Aufko.Konto
  329. "Konto" "Konto" ? ? "character" ? ? ? ? ? ? yes ? no 12 yes ?
  330. _FldNameList[48] > AnaDat.Aufko.Kopf_Text[1]
  331. "Kopf_Text[1]" "Kopf_Text1" ? ? "character" ? ? ? ? ? ? yes ? no 70 yes ?
  332. _FldNameList[49] > AnaDat.Aufko.Kopf_Text[2]
  333. "Kopf_Text[2]" "Kopf_Text2" ? ? "character" ? ? ? ? ? ? yes ? no 70 yes ?
  334. _FldNameList[50] > AnaDat.Aufko.Kopf_Text[3]
  335. "Kopf_Text[3]" "Kopf_Text3" ? ? "character" ? ? ? ? ? ? yes ? no 70 yes ?
  336. _FldNameList[51] > AnaDat.Aufko.Kurs
  337. "Kurs" "Kurs" ? ? "decimal" ? ? ? ? ? ? yes ? no 9.6 yes ?
  338. _FldNameList[52] > AnaDat.Aufko.Ku_Grp
  339. "Ku_Grp" "Ku_Grp" ? ? "integer" ? ? ? ? ? ? yes ? no 7.2 yes ?
  340. _FldNameList[53] > AnaDat.Aufko.Lief_Bed
  341. "Lief_Bed" "Lief_Bed" ? ? "integer" ? ? ? ? ? ? yes ? no 8.4 yes ?
  342. _FldNameList[54] > AnaDat.Aufko.Lief_Datum
  343. "Lief_Datum" "Lief_Datum" ? ? "date" ? ? ? ? ? ? yes ? no 10.8 yes ?
  344. _FldNameList[55] > AnaDat.Aufko.LKW
  345. "LKW" "LKW" ? ? "integer" ? ? ? ? ? ? yes ? no 4.8 yes ?
  346. _FldNameList[56] > AnaDat.Aufko.MWSt
  347. "MWSt" "MWSt" ? ? "integer" ? ? ? ? ? ? yes ? no 6 yes ?
  348. _FldNameList[57] > AnaDat.Aufko.MWST_Nr
  349. "MWST_Nr" "MWST_Nr" ? ? "character" ? ? ? ? ? ? yes ? no 15 yes ?
  350. _FldNameList[58] > AnaDat.Aufko.Passant
  351. "Passant" "Passant" ? ? "logical" ? ? ? ? ? ? yes ? no 7.6 yes ?
  352. _FldNameList[59] > AnaDat.Aufko.Porto
  353. "Porto" "Porto" ? ? "decimal" ? ? ? ? ? ? yes ? no 7.8 yes ?
  354. _FldNameList[60] > AnaDat.Aufko.Preis_Grp
  355. "Preis_Grp" "Preis_Grp" ? ? "integer" ? ? ? ? ? ? yes ? no 9.2 yes ?
  356. _FldNameList[61] > AnaDat.Aufko.Rabatt
  357. "Rabatt" "Rabatt" ? ? "decimal" ? ? ? ? ? ? yes ? no 6.4 yes ?
  358. _FldNameList[62] > AnaDat.Aufko.Rab_Grp
  359. "Rab_Grp" "Rab_Grp" ? ? "integer" ? ? ? ? ? ? yes ? no 8.6 yes ?
  360. _FldNameList[63] > AnaDat.Aufko.Rueckst
  361. "Rueckst" "Rueckst" ? ? "logical" ? ? ? ? ? ? yes ? no 8 yes ?
  362. _FldNameList[64] > AnaDat.Aufko.Samm_Nr
  363. "Samm_Nr" "Samm_Nr" ? ? "integer" ? ? ? ? ? ? yes ? no 9.2 yes ?
  364. _FldNameList[65] > AnaDat.Aufko.Sk_Ber
  365. "Sk_Ber" "Sk_Ber" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ?
  366. _FldNameList[66] > AnaDat.Aufko.Tour_Nr1
  367. "Tour_Nr1" "Tour_Nr1" ? ? "integer" ? ? ? ? ? ? yes ? no 9 yes ?
  368. _FldNameList[67] > AnaDat.Aufko.Tour_Nr2
  369. "Tour_Nr2" "Tour_Nr2" ? ? "character" ? ? ? ? ? ? yes ? no 20 yes ?
  370. _FldNameList[68] > AnaDat.Aufko.Transp
  371. "Transp" "Transp" ? ? "decimal" ? ? ? ? ? ? yes ? no 7.8 yes ?
  372. _FldNameList[69] > AnaDat.Aufko.U_Ref
  373. "U_Ref" "U_Ref" ? ? "character" ? ? ? ? ? ? yes ? no 20 yes ?
  374. _FldNameList[70] > AnaDat.Aufko.Verbucht
  375. "Verbucht" "Verbucht" ? ? "logical" ? ? ? ? ? ? yes ? no 8.6 yes ?
  376. _FldNameList[71] > AnaDat.Aufko.Verpack
  377. "Verpack" "Verpack" ? ? "decimal" ? ? ? ? ? ? yes ? no 8 yes ?
  378. _FldNameList[72] > AnaDat.Aufko.Vertr
  379. "Vertr" "Vertr" ? ? "integer" ? ? ? ? ? ? yes ? no 4.4 yes ?
  380. _FldNameList[73] > AnaDat.Aufko.Wirt_So
  381. "Wirt_So" "Wirt_So" ? ? "integer" ? ? ? ? ? ? yes ? no 7.6 yes ?
  382. _FldNameList[74] > AnaDat.Aufko.Wirt_So_Text
  383. "Wirt_So_Text" "Wirt_So_Text" ? ? "character" ? ? ? ? ? ? yes ? no 40 yes ?
  384. _FldNameList[75] > AnaDat.Aufko.Wpfl[1]
  385. "Wpfl[1]" "Wpfl1" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ?
  386. _FldNameList[76] > AnaDat.Aufko.Wpfl[2]
  387. "Wpfl[2]" "Wpfl2" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ?
  388. _FldNameList[77] > AnaDat.Aufko.Wpfl[3]
  389. "Wpfl[3]" "Wpfl3" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ?
  390. _FldNameList[78] > AnaDat.Aufko.Wpfl[4]
  391. "Wpfl[4]" "Wpfl4" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ?
  392. _FldNameList[79] > AnaDat.Aufko.Wpfl[5]
  393. "Wpfl[5]" "Wpfl5" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ?
  394. _FldNameList[80] > AnaDat.Aufko.Wpfl[6]
  395. "Wpfl[6]" "Wpfl6" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ?
  396. _FldNameList[81] > AnaDat.Aufko.Wpfl[7]
  397. "Wpfl[7]" "Wpfl7" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ?
  398. _FldNameList[82] > AnaDat.Aufko.Wpfl[8]
  399. "Wpfl[8]" "Wpfl8" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ?
  400. _FldNameList[83] > AnaDat.Aufko.Wpfl[9]
  401. "Wpfl[9]" "Wpfl9" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ?
  402. _FldNameList[84] > AnaDat.Aufko.Wpfl[10]
  403. "Wpfl[10]" "Wpfl10" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ?
  404. _FldNameList[85] > AnaDat.Aufko.Wpfl[11]
  405. "Wpfl[11]" "Wpfl11" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ?
  406. _FldNameList[86] > AnaDat.Aufko.Wpfl[12]
  407. "Wpfl[12]" "Wpfl12" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ?
  408. _FldNameList[87] > AnaDat.Aufko.Wust[1]
  409. "Wust[1]" "Wust1" ? ? "decimal" ? ? ? ? ? ? yes ? no 10.4 yes ?
  410. _FldNameList[88] > AnaDat.Aufko.Wust[2]
  411. "Wust[2]" "Wust2" ? ? "decimal" ? ? ? ? ? ? yes ? no 10.4 yes ?
  412. _FldNameList[89] > AnaDat.Aufko.Wust[3]
  413. "Wust[3]" "Wust3" ? ? "decimal" ? ? ? ? ? ? yes ? no 10.4 yes ?
  414. _FldNameList[90] > AnaDat.Aufko.Wust[4]
  415. "Wust[4]" "Wust4" ? ? "decimal" ? ? ? ? ? ? yes ? no 10.4 yes ?
  416. _FldNameList[91] > AnaDat.Aufko.Wust[5]
  417. "Wust[5]" "Wust5" ? ? "decimal" ? ? ? ? ? ? yes ? no 10.4 yes ?
  418. _FldNameList[92] > AnaDat.Aufko.Wust[6]
  419. "Wust[6]" "Wust6" ? ? "decimal" ? ? ? ? ? ? yes ? no 10.4 yes ?
  420. _FldNameList[93] > AnaDat.Aufko.Wust[7]
  421. "Wust[7]" "Wust7" ? ? "decimal" ? ? ? ? ? ? yes ? no 10.4 yes ?
  422. _FldNameList[94] > AnaDat.Aufko.Wust[8]
  423. "Wust[8]" "Wust8" ? ? "decimal" ? ? ? ? ? ? yes ? no 10.4 yes ?
  424. _FldNameList[95] > AnaDat.Aufko.Wust[9]
  425. "Wust[9]" "Wust9" ? ? "decimal" ? ? ? ? ? ? yes ? no 10.4 yes ?
  426. _FldNameList[96] > AnaDat.Aufko.Wust[10]
  427. "Wust[10]" "Wust10" ? ? "decimal" ? ? ? ? ? ? yes ? no 10.4 yes ?
  428. _FldNameList[97] > AnaDat.Aufko.Wust[11]
  429. "Wust[11]" "Wust11" ? ? "decimal" ? ? ? ? ? ? yes ? no 10.4 yes ?
  430. _FldNameList[98] > AnaDat.Aufko.Wust[12]
  431. "Wust[12]" "Wust12" ? ? "decimal" ? ? ? ? ? ? yes ? no 10.4 yes ?
  432. _FldNameList[99] > AnaDat.Aufko.WW[1]
  433. "WW[1]" "WW1" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ?
  434. _FldNameList[100] > AnaDat.Aufko.WW[2]
  435. "WW[2]" "WW2" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ?
  436. _FldNameList[101] > AnaDat.Aufko.WW[3]
  437. "WW[3]" "WW3" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ?
  438. _FldNameList[102] > AnaDat.Aufko.WW[4]
  439. "WW[4]" "WW4" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ?
  440. _FldNameList[103] > AnaDat.Aufko.WW[5]
  441. "WW[5]" "WW5" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ?
  442. _FldNameList[104] > AnaDat.Aufko.WW[6]
  443. "WW[6]" "WW6" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ?
  444. _FldNameList[105] > AnaDat.Aufko.WW[7]
  445. "WW[7]" "WW7" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ?
  446. _FldNameList[106] > AnaDat.Aufko.WW[8]
  447. "WW[8]" "WW8" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ?
  448. _FldNameList[107] > AnaDat.Aufko.WW[9]
  449. "WW[9]" "WW9" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ?
  450. _FldNameList[108] > AnaDat.Aufko.WW[10]
  451. "WW[10]" "WW10" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ?
  452. _FldNameList[109] > AnaDat.Aufko.WW[11]
  453. "WW[11]" "WW11" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ?
  454. _FldNameList[110] > AnaDat.Aufko.WW[12]
  455. "WW[12]" "WW12" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ?
  456. _FldNameList[111] > AnaDat.Aufko.Zei_Rab_Art
  457. "Zei_Rab_Art" "Zei_Rab_Art" ? ? "integer" ? ? ? ? ? ? yes ? no 12 yes ?
  458. _FldNameList[112] > AnaDat.Aufko.Zei_Rab_Wert
  459. "Zei_Rab_Wert" "Zei_Rab_Wert" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ?
  460. _FldNameList[113] > AnaDat.Aufko.Zuschl_Art
  461. "Zuschl_Art" "Zuschl_Art" ? ? "integer" ? ? ? ? ? ? yes ? no 10.2 yes ?
  462. _FldNameList[114] > AnaDat.Aufko.Zuschl_Wert
  463. "Zuschl_Wert" "Zuschl_Wert" ? ? "decimal" ? ? ? ? ? ? yes ? no 12.2 yes ?
  464. _FldNameList[115] > "_<CALC>"
  465. "DYNAMIC-FUNCTION('getKundenadresse':U IN THIS-PROCEDURE, rowObject.Knr)" "Kunde" "Kunde" "x(60)" "character" ? ? ? ? ? ? yes ? no 60 no ?
  466. _FldNameList[116] > "_<CALC>"
  467. "DYNAMIC-FUNCTION('getDokNr':U, RowObject.Aufnr )" "DokNr" "DokNr" "9999999" "character" ? ? ? ? ? ? yes ? no 7 no ?
  468. _FldNameList[117] > AnaDat.Aufko.Lager
  469. "Lager" "Lager" ? ? "integer" ? ? ? ? ? ? yes ? no 5.4 yes ?
  470. _Design-Parent is WINDOW dTables @ ( 1.14 , 2.6 )
  471. */ /* QUERY Query-Main */
  472. &ANALYZE-RESUME
  473. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _CUSTOM _MAIN-BLOCK dTables
  474. /* *************************** Main Block *************************** */
  475. { incl/datmainblock.i }
  476. FwAufSta = DYNAMIC-FUNCTION('getAbholAufstatus':U) NO-ERROR.
  477. FwFakArt = DYNAMIC-FUNCTION('getAbholFakart':U) NO-ERROR.
  478. SUBSCRIBE TO 'GET_CURRENT_ABHOLKO' ANYWHERE NO-ERROR.
  479. SUBSCRIBE TO 'refreshAbholKo' ANYWHERE RUN-PROCEDURE 'refreshRow' NO-ERROR.
  480. &IF DEFINED(UIB_IS_RUNNING) <> 0 &THEN
  481. RUN initializeObject.
  482. &ENDIF
  483. /* _UIB-CODE-BLOCK-END */
  484. &ANALYZE-RESUME
  485. /* ********************** Internal Procedures *********************** */
  486. {&DB-REQUIRED-START}
  487. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE DATA.CALCULATE dTables DATA.CALCULATE _DB-REQUIRED
  488. PROCEDURE DATA.CALCULATE :
  489. /*------------------------------------------------------------------------------
  490. Purpose: Calculate all the Calculated Expressions found in the
  491. SmartDataObject.
  492. Parameters: <none>
  493. ------------------------------------------------------------------------------*/
  494. ASSIGN
  495. rowObject.DokNr = (DYNAMIC-FUNCTION('getDokNr':U, RowObject.Aufnr ))
  496. rowObject.Kunde = (DYNAMIC-FUNCTION('getKundenadresse':U IN THIS-PROCEDURE, rowObject.Knr))
  497. .
  498. END PROCEDURE.
  499. /* _UIB-CODE-BLOCK-END */
  500. &ANALYZE-RESUME
  501. {&DB-REQUIRED-END}
  502. {&DB-REQUIRED-START}
  503. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE dataAvailable dTables _DB-REQUIRED
  504. PROCEDURE dataAvailable :
  505. /*------------------------------------------------------------------------------
  506. Purpose: Super Override
  507. Parameters:
  508. Notes:
  509. ------------------------------------------------------------------------------*/
  510. { incl/datdataavailable.i }
  511. END PROCEDURE.
  512. /* _UIB-CODE-BLOCK-END */
  513. &ANALYZE-RESUME
  514. {&DB-REQUIRED-END}
  515. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE disable_UI dTables _DEFAULT-DISABLE
  516. PROCEDURE disable_UI :
  517. /*------------------------------------------------------------------------------
  518. Purpose: DISABLE the User Interface
  519. Parameters: <none>
  520. Notes: Here we clean-up the user-interface by deleting
  521. dynamic widgets we have created and/or hide
  522. frames. This procedure is usually called when
  523. we are ready to "clean-up" after running.
  524. ------------------------------------------------------------------------------*/
  525. /* Hide all frames. */
  526. IF THIS-PROCEDURE:PERSISTENT THEN DELETE PROCEDURE THIS-PROCEDURE.
  527. END PROCEDURE.
  528. /* _UIB-CODE-BLOCK-END */
  529. &ANALYZE-RESUME
  530. {&DB-REQUIRED-START}
  531. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE GET_CURRENT_ABHOLKO dTables _DB-REQUIRED
  532. PROCEDURE GET_CURRENT_ABHOLKO :
  533. /*------------------------------------------------------------------------------
  534. Purpose:
  535. Parameters: <none>
  536. Notes:
  537. ------------------------------------------------------------------------------*/
  538. DEF OUTPUT PARAMETER opRecid AS RECID NO-UNDO.
  539. DEF OUTPUT PARAMETER opAufnr AS INT NO-UNDO.
  540. DEF VAR iRecid AS RECID NO-UNDO.
  541. DEF BUFFER bAufko FOR Aufko.
  542. ASSIGN opRecid = 0
  543. opAufnr = 0.
  544. opRecid = DYNAMIC-FUNCTION('getCurrentRecid':U) NO-ERROR.
  545. IF opRecid = ? OR
  546. OPRecid = 0 THEN RETURN.
  547. FIND bAufko NO-LOCK WHERE RECID(bAufko) = opRecid.
  548. opAufnr = bAufko.Aufnr.
  549. RELEASE bAufko.
  550. END PROCEDURE.
  551. /* _UIB-CODE-BLOCK-END */
  552. &ANALYZE-RESUME
  553. {&DB-REQUIRED-END}
  554. {&DB-REQUIRED-START}
  555. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE INAKTIVIEREN dTables _DB-REQUIRED
  556. PROCEDURE INAKTIVIEREN :
  557. /*------------------------------------------------------------------------------
  558. Purpose:
  559. Parameters: <none>
  560. Notes:
  561. ------------------------------------------------------------------------------*/
  562. { incl/datinaktivieren.i }
  563. END PROCEDURE.
  564. /* _UIB-CODE-BLOCK-END */
  565. &ANALYZE-RESUME
  566. {&DB-REQUIRED-END}
  567. {&DB-REQUIRED-START}
  568. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE initializeObject dTables _DB-REQUIRED
  569. PROCEDURE initializeObject :
  570. /*------------------------------------------------------------------------------
  571. Purpose: Super Override
  572. Parameters:
  573. Notes:
  574. ------------------------------------------------------------------------------*/
  575. { incl/datinitialize.i }
  576. END PROCEDURE.
  577. /* _UIB-CODE-BLOCK-END */
  578. &ANALYZE-RESUME
  579. {&DB-REQUIRED-END}
  580. {&DB-REQUIRED-START}
  581. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE REAKTIVIEREN dTables _DB-REQUIRED
  582. PROCEDURE REAKTIVIEREN :
  583. /*------------------------------------------------------------------------------
  584. Purpose:
  585. Parameters: <none>
  586. Notes:
  587. ------------------------------------------------------------------------------*/
  588. { incl/datreaktivieren.i }
  589. END PROCEDURE.
  590. /* _UIB-CODE-BLOCK-END */
  591. &ANALYZE-RESUME
  592. {&DB-REQUIRED-END}
  593. {&DB-REQUIRED-START}
  594. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE REFRESH_AUFKOPF dTables _DB-REQUIRED
  595. PROCEDURE REFRESH_AUFKOPF :
  596. /*------------------------------------------------------------------------------
  597. Purpose:
  598. Parameters: <none>
  599. Notes:
  600. ------------------------------------------------------------------------------*/
  601. RUN refreshRow.
  602. END PROCEDURE.
  603. /* _UIB-CODE-BLOCK-END */
  604. &ANALYZE-RESUME
  605. {&DB-REQUIRED-END}
  606. {&DB-REQUIRED-START}
  607. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE REPOS_TABELLE dTables _DB-REQUIRED
  608. PROCEDURE REPOS_TABELLE :
  609. /*------------------------------------------------------------------------------
  610. Purpose:
  611. Parameters: <none>
  612. Notes:
  613. ------------------------------------------------------------------------------*/
  614. { incl/datrepos.i }
  615. END PROCEDURE.
  616. /* _UIB-CODE-BLOCK-END */
  617. &ANALYZE-RESUME
  618. {&DB-REQUIRED-END}
  619. {&DB-REQUIRED-START}
  620. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE SET_FILTER dTables _DB-REQUIRED
  621. PROCEDURE SET_FILTER :
  622. /*------------------------------------------------------------------------------
  623. Purpose:
  624. Parameters: <none>
  625. Notes:
  626. ------------------------------------------------------------------------------*/
  627. { incl/datsetfilter.i }
  628. END PROCEDURE.
  629. /* _UIB-CODE-BLOCK-END */
  630. &ANALYZE-RESUME
  631. {&DB-REQUIRED-END}
  632. {&DB-REQUIRED-START}
  633. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE SET_OPENFLAG dTables _DB-REQUIRED
  634. PROCEDURE SET_OPENFLAG :
  635. /*------------------------------------------------------------------------------
  636. Purpose:
  637. Parameters: <none>
  638. Notes:
  639. ------------------------------------------------------------------------------*/
  640. { incl/datsetopenflag.i }
  641. END PROCEDURE.
  642. /* _UIB-CODE-BLOCK-END */
  643. &ANALYZE-RESUME
  644. {&DB-REQUIRED-END}
  645. {&DB-REQUIRED-START}
  646. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE SET_SORT dTables _DB-REQUIRED
  647. PROCEDURE SET_SORT :
  648. /*------------------------------------------------------------------------------
  649. Purpose:
  650. Parameters: <none>
  651. Notes:
  652. ------------------------------------------------------------------------------*/
  653. { incl/datsetsort.i }
  654. END PROCEDURE.
  655. /* _UIB-CODE-BLOCK-END */
  656. &ANALYZE-RESUME
  657. {&DB-REQUIRED-END}
  658. /* ************************ Function Implementations ***************** */
  659. {&DB-REQUIRED-START}
  660. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _FUNCTION getCurrentAufnr dTables _DB-REQUIRED
  661. FUNCTION getCurrentAufnr RETURNS INTEGER
  662. ( /* parameter-definitions */ ) :
  663. /*------------------------------------------------------------------------------
  664. Purpose:
  665. Notes:
  666. ------------------------------------------------------------------------------*/
  667. fData = TRUE.
  668. RUN dataAvailable ('SAME').
  669. FIND FIRST tRowObject.
  670. RETURN tRowObject.Aufnr.
  671. END FUNCTION.
  672. /* _UIB-CODE-BLOCK-END */
  673. &ANALYZE-RESUME
  674. {&DB-REQUIRED-END}
  675. {&DB-REQUIRED-START}
  676. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _FUNCTION getCurrentRecid dTables _DB-REQUIRED
  677. FUNCTION getCurrentRecid RETURNS RECID
  678. ( /* parameter-definitions */ ) :
  679. /*------------------------------------------------------------------------------
  680. Purpose:
  681. Notes:
  682. ------------------------------------------------------------------------------*/
  683. fData = TRUE.
  684. RUN dataAvailable ('SAME').
  685. FIND FIRST tRowObject.
  686. FIND Aufko NO-LOCK USE-INDEX Aufko-k1
  687. WHERE Aufko.Firma = tRowObject.Firma
  688. AND Aufko.Aufnr = tRowObject.Aufnr NO-ERROR.
  689. RETURN (IF AVAILABLE Aufko THEN RECID(Aufko) ELSE ?).
  690. END FUNCTION.
  691. /* _UIB-CODE-BLOCK-END */
  692. &ANALYZE-RESUME
  693. {&DB-REQUIRED-END}
  694. {&DB-REQUIRED-START}
  695. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _FUNCTION getKundenadresse dTables _DB-REQUIRED
  696. FUNCTION getKundenadresse RETURNS CHARACTER
  697. ( ipKnr AS INT ) :
  698. /*------------------------------------------------------------------------------
  699. Purpose:
  700. Notes:
  701. ------------------------------------------------------------------------------*/
  702. DEF VAR cAdresse AS CHAR NO-UNDO.
  703. cAdresse = FILL('?', 20).
  704. FIND Adresse NO-LOCK
  705. WHERE Adresse.Firma = AdFirma
  706. AND Adresse.Knr = ipKnr NO-ERROR.
  707. IF NOT AVAILABLE Adresse THEN RETURN cAdresse.
  708. IF RowObject.Adresse1 = '' AND
  709. RowObject.Adresse2 = '' AND
  710. RowObject.Adresse3 = '' AND
  711. RowObject.Adresse4 = '' AND
  712. RowObject.Adresse5 = '' THEN cAdresse = Adresse.Anzeig_Br.
  713. ELSE cAdresse = TRIM(RowObject.Adresse1 + ' '
  714. + RowObject.Adresse2 + ' '
  715. + RowObject.Adresse3 + ' '
  716. + RowObject.Adresse4 + ' '
  717. + RowObject.Adresse5).
  718. RETURN cAdresse.
  719. END FUNCTION.
  720. /* _UIB-CODE-BLOCK-END */
  721. &ANALYZE-RESUME
  722. {&DB-REQUIRED-END}
  723. {&DB-REQUIRED-START}
  724. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _FUNCTION getQueryBuffer dTables _DB-REQUIRED
  725. FUNCTION getQueryBuffer RETURNS HANDLE
  726. ( /* parameter-definitions */ ) :
  727. /*------------------------------------------------------------------------------
  728. Purpose:
  729. Notes:
  730. ------------------------------------------------------------------------------*/
  731. RETURN BUFFER rowObject:HANDLE.
  732. END FUNCTION.
  733. /* _UIB-CODE-BLOCK-END */
  734. &ANALYZE-RESUME
  735. {&DB-REQUIRED-END}
  736. {&DB-REQUIRED-START}
  737. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _FUNCTION openQuery dTables _DB-REQUIRED
  738. FUNCTION openQuery RETURNS LOGICAL
  739. ( /* parameter-definitions */ ) :
  740. /*------------------------------------------------------------------------------
  741. Purpose: Super Override
  742. Notes:
  743. ------------------------------------------------------------------------------*/
  744. DEF VAR Felder AS CHAR NO-UNDO.
  745. DEF VAR Inhalt AS CHAR NO-UNDO.
  746. DEF VAR ix AS INT NO-UNDO.
  747. DEF VAR cFeld AS CHAR NO-UNDO.
  748. /* IF NOT fOpen THEN RETURN FALSE. */
  749. xWhere = ''.
  750. xSort = ''.
  751. xString = ''.
  752. Felder = DYNAMIC-FUNCTION('getForeignFields':U) NO-ERROR.
  753. Inhalt = DYNAMIC-FUNCTION('getForeignValues':U) NO-ERROR.
  754. /* ix = LOOKUP('Feld', Felder, ',') / 2. */
  755. /* cFeld = ENTRY (ix , Inhalt, CHR(01)). */
  756. xWhere = 'Aufko.Firma = ' + QUOTER(Firma) + ' AND '
  757. + 'Aufko.Auf_Sta = ' + STRING(FwAufSta) + ' '.
  758. /* xString = 'FOR EACH Debop ' + xSort + 'WHERE ' */
  759. /* + 'Debop.Firma = "' + Firma + '" AND ' */
  760. /* + 'Debop.Knr = ' + STRING(Knr) + ' ' */
  761. /* + 'NO-LOCK BY Debop.FakDat DESCENDING INDEXED-REPOSITION '. */
  762. { incl/datopenquery.i }
  763. IF xWhere <> '' THEN DYNAMIC-FUNCTION('setQueryWhere':U , INPUT xWhere ).
  764. IF xString <> '' THEN DYNAMIC-FUNCTION('setQueryString':U, INPUT xString).
  765. IF xSort <> '' THEN DYNAMIC-FUNCTION('setQuerySort':U , INPUT xSort ).
  766. RETURN SUPER( ).
  767. END FUNCTION.
  768. /* _UIB-CODE-BLOCK-END */
  769. &ANALYZE-RESUME
  770. {&DB-REQUIRED-END}