d-aufko.w 40 KB

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