d-artlager.w 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555
  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. DEFINE VARIABLE iLager AS INTEGER NO-UNDO.
  30. DEFINE VARIABLE iArtnr AS INTEGER NO-UNDO.
  31. DEFINE VARIABLE iInhalt AS INTEGER NO-UNDO.
  32. DEFINE VARIABLE iJahr AS INTEGER NO-UNDO.
  33. &glob DATA-LOGIC-PROCEDURE .p
  34. &SCOPED-DEFINE Tabelle Artlager
  35. &SCOPED-DEFINE TabWhere /* USE-INDEX Benutzer-k1 ~
  36. WHERE {&Tabelle}.Benutzer = tRowObject.Benutzer
  37. */
  38. { incl/datdefinition.i }
  39. /* _UIB-CODE-BLOCK-END */
  40. &ANALYZE-RESUME
  41. &ANALYZE-SUSPEND _UIB-PREPROCESSOR-BLOCK
  42. /* ******************** Preprocessor Definitions ******************** */
  43. &Scoped-define PROCEDURE-TYPE SmartDataObject
  44. &Scoped-define DB-AWARE yes
  45. &Scoped-define ADM-SUPPORTED-LINKS Data-Source,Data-Target,Navigation-Target,Update-Target,Commit-Target,Filter-Target
  46. /* Db-Required definitions. */
  47. &IF DEFINED(DB-REQUIRED) = 0 &THEN
  48. &GLOBAL-DEFINE DB-REQUIRED TRUE
  49. &ENDIF
  50. &GLOBAL-DEFINE DB-REQUIRED-START &IF {&DB-REQUIRED} &THEN
  51. &GLOBAL-DEFINE DB-REQUIRED-END &ENDIF
  52. &Scoped-define QUERY-NAME Query-Main
  53. /* Internal Tables (found by Frame, Query & Browse Queries) */
  54. &Scoped-define INTERNAL-TABLES ArtLager
  55. /* Definitions for QUERY Query-Main */
  56. &Scoped-Define ENABLED-FIELDS Firma Lager Artnr Inhalt Jahr Bestand Eingang Ausgang Ort Bestellt~
  57. Reserviert Offen Mind_Bestand Meld_Bestand Soll_Bestand Inv_Best Inv_Alt~
  58. Datum_Inv Bestand_Alt
  59. &Scoped-define ENABLED-FIELDS-IN-ArtLager Firma Lager Artnr Inhalt Jahr ~
  60. Bestand Eingang Ausgang Ort Bestellt Reserviert Offen Mind_Bestand ~
  61. Meld_Bestand Soll_Bestand Inv_Best Inv_Alt Datum_Inv Bestand_Alt
  62. &Scoped-Define DATA-FIELDS Firma Lager Artnr Inhalt Jahr Bestand Eingang Ausgang Ort Bestellt~
  63. Reserviert Offen Mind_Bestand Meld_Bestand Soll_Bestand Inv_Best Inv_Alt~
  64. Datum_Inv Bestand_Alt
  65. &Scoped-define DATA-FIELDS-IN-ArtLager Firma Lager Artnr Inhalt Jahr ~
  66. Bestand Eingang Ausgang Ort Bestellt Reserviert Offen Mind_Bestand ~
  67. Meld_Bestand Soll_Bestand Inv_Best Inv_Alt Datum_Inv Bestand_Alt
  68. &Scoped-Define MANDATORY-FIELDS Firma
  69. &Scoped-Define APPLICATION-SERVICE
  70. &Scoped-Define ASSIGN-LIST
  71. &Scoped-Define DATA-FIELD-DEFS "d-artlager.i"
  72. &Scoped-Define DATA-TABLE-NO-UNDO NO-UNDO
  73. &Scoped-define QUERY-STRING-Query-Main FOR EACH ArtLager NO-LOCK INDEXED-REPOSITION
  74. {&DB-REQUIRED-START}
  75. &Scoped-define OPEN-QUERY-Query-Main OPEN QUERY Query-Main FOR EACH ArtLager NO-LOCK INDEXED-REPOSITION.
  76. {&DB-REQUIRED-END}
  77. &Scoped-define TABLES-IN-QUERY-Query-Main ArtLager
  78. &Scoped-define FIRST-TABLE-IN-QUERY-Query-Main ArtLager
  79. /* Custom List Definitions */
  80. /* List-1,List-2,List-3,List-4,List-5,List-6 */
  81. /* _UIB-PREPROCESSOR-BLOCK-END */
  82. &ANALYZE-RESUME
  83. /* ************************ Function Prototypes ********************** */
  84. {&DB-REQUIRED-START}
  85. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _FUNCTION-FORWARD getCurrentRecid dTables _DB-REQUIRED
  86. FUNCTION getCurrentRecid RETURNS RECID
  87. ( /* parameter-definitions */ ) FORWARD.
  88. /* _UIB-CODE-BLOCK-END */
  89. &ANALYZE-RESUME
  90. {&DB-REQUIRED-END}
  91. {&DB-REQUIRED-START}
  92. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _FUNCTION-FORWARD getQueryBuffer dTables _DB-REQUIRED
  93. FUNCTION getQueryBuffer RETURNS HANDLE
  94. ( /* parameter-definitions */ ) FORWARD.
  95. /* _UIB-CODE-BLOCK-END */
  96. &ANALYZE-RESUME
  97. {&DB-REQUIRED-END}
  98. {&DB-REQUIRED-START}
  99. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _FUNCTION-FORWARD openQuery dTables _DB-REQUIRED
  100. FUNCTION openQuery RETURNS LOGICAL
  101. ( /* parameter-definitions */ ) FORWARD.
  102. /* _UIB-CODE-BLOCK-END */
  103. &ANALYZE-RESUME
  104. {&DB-REQUIRED-END}
  105. /* *********************** Control Definitions ********************** */
  106. {&DB-REQUIRED-START}
  107. /* Query definitions */
  108. &ANALYZE-SUSPEND
  109. DEFINE QUERY Query-Main FOR
  110. ArtLager SCROLLING.
  111. &ANALYZE-RESUME
  112. {&DB-REQUIRED-END}
  113. /* ************************ Frame Definitions *********************** */
  114. /* *********************** Procedure Settings ************************ */
  115. &ANALYZE-SUSPEND _PROCEDURE-SETTINGS
  116. /* Settings for THIS-PROCEDURE
  117. Type: SmartDataObject
  118. Allow: Query
  119. Frames: 0
  120. Add Fields to: Neither
  121. Other Settings: PERSISTENT-ONLY COMPILE APPSERVER DB-AWARE
  122. */
  123. /* This procedure should always be RUN PERSISTENT. Report the error, */
  124. /* then cleanup and return. */
  125. IF NOT THIS-PROCEDURE:PERSISTENT THEN
  126. DO:
  127. MESSAGE "{&FILE-NAME} should only be RUN PERSISTENT.":U
  128. VIEW-AS ALERT-BOX ERROR BUTTONS OK.
  129. RETURN.
  130. END.
  131. &ANALYZE-RESUME _END-PROCEDURE-SETTINGS
  132. /* ************************* Create Window ************************** */
  133. &ANALYZE-SUSPEND _CREATE-WINDOW
  134. /* DESIGN Window definition (used by the UIB)
  135. CREATE WINDOW dTables ASSIGN
  136. HEIGHT = 1.62
  137. WIDTH = 46.6.
  138. /* END WINDOW DEFINITION */
  139. */
  140. &ANALYZE-RESUME
  141. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _CUSTOM _INCLUDED-LIB dTables
  142. /* ************************* Included-Libraries *********************** */
  143. {src/adm2/data.i}
  144. /* _UIB-CODE-BLOCK-END */
  145. &ANALYZE-RESUME
  146. /* *********** Runtime Attributes and AppBuilder Settings *********** */
  147. &ANALYZE-SUSPEND _RUN-TIME-ATTRIBUTES
  148. /* SETTINGS FOR WINDOW dTables
  149. VISIBLE,,RUN-PERSISTENT */
  150. /* _RUN-TIME-ATTRIBUTES-END */
  151. &ANALYZE-RESUME
  152. /* Setting information for Queries and Browse Widgets fields */
  153. &ANALYZE-SUSPEND _QUERY-BLOCK QUERY Query-Main
  154. /* Query rebuild information for SmartDataObject Query-Main
  155. _TblList = "AnaDat.ArtLager"
  156. _Options = "NO-LOCK INDEXED-REPOSITION"
  157. _FldNameList[1] > AnaDat.ArtLager.Firma
  158. "Firma" "Firma" ? ? "character" ? ? ? ? ? ? yes ? yes 8 yes ?
  159. _FldNameList[2] > AnaDat.ArtLager.Lager
  160. "Lager" "Lager" ? ? "integer" ? ? ? ? ? ? yes ? no 5.4 yes ?
  161. _FldNameList[3] > AnaDat.ArtLager.Artnr
  162. "Artnr" "Artnr" ? ? "integer" ? ? ? ? ? ? yes ? no 7.2 yes ?
  163. _FldNameList[4] > AnaDat.ArtLager.Inhalt
  164. "Inhalt" "Inhalt" ? ? "integer" ? ? ? ? ? ? yes ? no 5.2 yes ?
  165. _FldNameList[5] > AnaDat.ArtLager.Jahr
  166. "Jahr" "Jahr" ? ? "integer" ? ? ? ? ? ? yes ? no 4.8 yes ?
  167. _FldNameList[6] > AnaDat.ArtLager.Bestand
  168. "Bestand" "Bestand" ? ? "integer" ? ? ? ? ? ? yes ? no 11 yes ?
  169. _FldNameList[7] > AnaDat.ArtLager.Eingang
  170. "Eingang" "Eingang" ? ? "integer" ? ? ? ? ? ? yes ? no 11 yes ?
  171. _FldNameList[8] > AnaDat.ArtLager.Ausgang
  172. "Ausgang" "Ausgang" ? ? "integer" ? ? ? ? ? ? yes ? no 11 yes ?
  173. _FldNameList[9] > AnaDat.ArtLager.Ort
  174. "Ort" "Ort" ? ? "character" ? ? ? ? ? ? yes ? no 15 yes ?
  175. _FldNameList[10] > AnaDat.ArtLager.Bestellt
  176. "Bestellt" "Bestellt" ? ? "integer" ? ? ? ? ? ? yes ? no 9.4 yes ?
  177. _FldNameList[11] > AnaDat.ArtLager.Reserviert
  178. "Reserviert" "Reserviert" ? ? "integer" ? ? ? ? ? ? yes ? no 9.6 yes ?
  179. _FldNameList[12] > AnaDat.ArtLager.Offen
  180. "Offen" "Offen" ? ? "integer" ? ? ? ? ? ? yes ? no 9.4 yes ?
  181. _FldNameList[13] > AnaDat.ArtLager.Mind_Bestand
  182. "Mind_Bestand" "Mind_Bestand" ? ? "integer" ? ? ? ? ? ? yes ? no 13.6 yes ?
  183. _FldNameList[14] > AnaDat.ArtLager.Meld_Bestand
  184. "Meld_Bestand" "Meld_Bestand" ? ? "integer" ? ? ? ? ? ? yes ? no 13.6 yes ?
  185. _FldNameList[15] > AnaDat.ArtLager.Soll_Bestand
  186. "Soll_Bestand" "Soll_Bestand" ? ? "integer" ? ? ? ? ? ? yes ? no 12.4 yes ?
  187. _FldNameList[16] > AnaDat.ArtLager.Inv_Best
  188. "Inv_Best" "Inv_Best" ? ? "integer" ? ? ? ? ? ? yes ? no 10.4 yes ?
  189. _FldNameList[17] > AnaDat.ArtLager.Inv_Alt
  190. "Inv_Alt" "Inv_Alt" ? ? "integer" ? ? ? ? ? ? yes ? no 10.4 yes ?
  191. _FldNameList[18] > AnaDat.ArtLager.Datum_Inv
  192. "Datum_Inv" "Datum_Inv" ? ? "date" ? ? ? ? ? ? yes ? no 10.8 yes ?
  193. _FldNameList[19] > AnaDat.ArtLager.Bestand_Alt
  194. "Bestand_Alt" "Bestand_Alt" ? ? "integer" ? ? ? ? ? ? yes ? no 11.4 yes ?
  195. _Design-Parent is WINDOW dTables @ ( 1.14 , 2.6 )
  196. */ /* QUERY Query-Main */
  197. &ANALYZE-RESUME
  198. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _CUSTOM _MAIN-BLOCK dTables
  199. /* *************************** Main Block *************************** */
  200. { incl/datmainblock.i }
  201. &IF DEFINED(UIB_IS_RUNNING) <> 0 &THEN
  202. RUN initializeObject.
  203. &ENDIF
  204. /* _UIB-CODE-BLOCK-END */
  205. &ANALYZE-RESUME
  206. /* ********************** Internal Procedures *********************** */
  207. {&DB-REQUIRED-START}
  208. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE dataAvailable dTables _DB-REQUIRED
  209. PROCEDURE dataAvailable :
  210. /*------------------------------------------------------------------------------
  211. Purpose: Super Override
  212. Parameters:
  213. Notes:
  214. ------------------------------------------------------------------------------*/
  215. { incl/datdataavailable.i }
  216. END PROCEDURE.
  217. /* _UIB-CODE-BLOCK-END */
  218. &ANALYZE-RESUME
  219. {&DB-REQUIRED-END}
  220. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE disable_UI dTables _DEFAULT-DISABLE
  221. PROCEDURE disable_UI :
  222. /*------------------------------------------------------------------------------
  223. Purpose: DISABLE the User Interface
  224. Parameters: <none>
  225. Notes: Here we clean-up the user-interface by deleting
  226. dynamic widgets we have created and/or hide
  227. frames. This procedure is usually called when
  228. we are ready to "clean-up" after running.
  229. ------------------------------------------------------------------------------*/
  230. /* Hide all frames. */
  231. IF THIS-PROCEDURE:PERSISTENT THEN DELETE PROCEDURE THIS-PROCEDURE.
  232. END PROCEDURE.
  233. /* _UIB-CODE-BLOCK-END */
  234. &ANALYZE-RESUME
  235. {&DB-REQUIRED-START}
  236. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE INAKTIVIEREN dTables _DB-REQUIRED
  237. PROCEDURE INAKTIVIEREN :
  238. /*------------------------------------------------------------------------------
  239. Purpose:
  240. Parameters: <none>
  241. Notes:
  242. ------------------------------------------------------------------------------*/
  243. { incl/datinaktivieren.i }
  244. END PROCEDURE.
  245. /* _UIB-CODE-BLOCK-END */
  246. &ANALYZE-RESUME
  247. {&DB-REQUIRED-END}
  248. {&DB-REQUIRED-START}
  249. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE initializeObject dTables _DB-REQUIRED
  250. PROCEDURE initializeObject :
  251. /*------------------------------------------------------------------------------
  252. Purpose: Super Override
  253. Parameters:
  254. Notes:
  255. ------------------------------------------------------------------------------*/
  256. { incl/datinitialize.i }
  257. END PROCEDURE.
  258. /* _UIB-CODE-BLOCK-END */
  259. &ANALYZE-RESUME
  260. {&DB-REQUIRED-END}
  261. {&DB-REQUIRED-START}
  262. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE REAKTIVIEREN dTables _DB-REQUIRED
  263. PROCEDURE REAKTIVIEREN :
  264. /*------------------------------------------------------------------------------
  265. Purpose:
  266. Parameters: <none>
  267. Notes:
  268. ------------------------------------------------------------------------------*/
  269. iLager = DYNAMIC-FUNCTION ('getDefaultLager':U IN hKontainer ) NO-ERROR.
  270. { incl/datreaktivieren.i }
  271. END PROCEDURE.
  272. /* _UIB-CODE-BLOCK-END */
  273. &ANALYZE-RESUME
  274. {&DB-REQUIRED-END}
  275. {&DB-REQUIRED-START}
  276. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE REPOS_TABELLE dTables _DB-REQUIRED
  277. PROCEDURE REPOS_TABELLE :
  278. /*------------------------------------------------------------------------------
  279. Purpose:
  280. Parameters: <none>
  281. Notes:
  282. ------------------------------------------------------------------------------*/
  283. { incl/datrepos.i }
  284. END PROCEDURE.
  285. /* _UIB-CODE-BLOCK-END */
  286. &ANALYZE-RESUME
  287. {&DB-REQUIRED-END}
  288. {&DB-REQUIRED-START}
  289. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE SET_FILTER dTables _DB-REQUIRED
  290. PROCEDURE SET_FILTER :
  291. /*------------------------------------------------------------------------------
  292. Purpose:
  293. Parameters: <none>
  294. Notes:
  295. ------------------------------------------------------------------------------*/
  296. { incl/datsetfilter.i }
  297. END PROCEDURE.
  298. /* _UIB-CODE-BLOCK-END */
  299. &ANALYZE-RESUME
  300. {&DB-REQUIRED-END}
  301. {&DB-REQUIRED-START}
  302. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE SET_OPENFLAG dTables _DB-REQUIRED
  303. PROCEDURE SET_OPENFLAG :
  304. /*------------------------------------------------------------------------------
  305. Purpose:
  306. Parameters: <none>
  307. Notes:
  308. ------------------------------------------------------------------------------*/
  309. { incl/datsetopenflag.i }
  310. END PROCEDURE.
  311. /* _UIB-CODE-BLOCK-END */
  312. &ANALYZE-RESUME
  313. {&DB-REQUIRED-END}
  314. {&DB-REQUIRED-START}
  315. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE SET_SORT dTables _DB-REQUIRED
  316. PROCEDURE SET_SORT :
  317. /*------------------------------------------------------------------------------
  318. Purpose:
  319. Parameters: <none>
  320. Notes:
  321. ------------------------------------------------------------------------------*/
  322. { incl/datsetsort.i }
  323. END PROCEDURE.
  324. /* _UIB-CODE-BLOCK-END */
  325. &ANALYZE-RESUME
  326. {&DB-REQUIRED-END}
  327. /* ************************ Function Implementations ***************** */
  328. {&DB-REQUIRED-START}
  329. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _FUNCTION getCurrentRecid dTables _DB-REQUIRED
  330. FUNCTION getCurrentRecid RETURNS RECID
  331. ( /* parameter-definitions */ ) :
  332. /*------------------------------------------------------------------------------
  333. Purpose:
  334. Notes:
  335. ------------------------------------------------------------------------------*/
  336. { incl/datgetcurrentrecid.i }
  337. END FUNCTION.
  338. /* _UIB-CODE-BLOCK-END */
  339. &ANALYZE-RESUME
  340. {&DB-REQUIRED-END}
  341. {&DB-REQUIRED-START}
  342. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _FUNCTION getQueryBuffer dTables _DB-REQUIRED
  343. FUNCTION getQueryBuffer RETURNS HANDLE
  344. ( /* parameter-definitions */ ) :
  345. /*------------------------------------------------------------------------------
  346. Purpose:
  347. Notes:
  348. ------------------------------------------------------------------------------*/
  349. RETURN BUFFER rowObject:HANDLE.
  350. END FUNCTION.
  351. /* _UIB-CODE-BLOCK-END */
  352. &ANALYZE-RESUME
  353. {&DB-REQUIRED-END}
  354. {&DB-REQUIRED-START}
  355. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _FUNCTION openQuery dTables _DB-REQUIRED
  356. FUNCTION openQuery RETURNS LOGICAL
  357. ( /* parameter-definitions */ ) :
  358. /*------------------------------------------------------------------------------
  359. Purpose: Super Override
  360. Notes:
  361. ------------------------------------------------------------------------------*/
  362. DEF VAR Felder AS CHAR NO-UNDO.
  363. DEF VAR Inhalt AS CHAR NO-UNDO.
  364. DEF VAR ix AS INT NO-UNDO.
  365. DEF VAR cFeld AS CHAR NO-UNDO.
  366. DEFINE VARIABLE cArtikel AS CHARACTER NO-UNDO.
  367. /* IF NOT fOpen THEN RETURN FALSE. */
  368. xWhere = ''.
  369. xSort = ''.
  370. xString = ''.
  371. Felder = DYNAMIC-FUNCTION('getForeignFields':U) NO-ERROR.
  372. Inhalt = DYNAMIC-FUNCTION('getForeignValues':U) NO-ERROR.
  373. iLager = DYNAMIC-FUNCTION('getDefaultLager':U IN hKontainer ) NO-ERROR.
  374. ix = LOOKUP('Artnr', Felder, ',') / 2.
  375. iArtnr = INTEGER(ENTRY(ix, Inhalt, CHR(01))).
  376. ix = LOOKUP('Inhalt', Felder, ',') / 2.
  377. iInhalt = INTEGER(ENTRY(ix, Inhalt, CHR(01))).
  378. ix = LOOKUP('Jahr', Felder, ',') / 2.
  379. iJahr = INTEGER(ENTRY(ix, Inhalt, CHR(01))).
  380. xWhere = 'ArtLager.Firma = &1 AND '
  381. + 'ArtLager.Artnr = &2 AND '
  382. + 'ArtLager.Inhalt = &3 AND '
  383. + 'ArtLager.Jahr = &4 AND '
  384. + 'ArtLager.Lager = &5 '.
  385. xWhere = SUBSTITUTE(xWhere, QUOTER(Firma), iArtnr, iInhalt, iJahr, iLager).
  386. /*MESSAGE xWhere */
  387. /*VIEW-AS ALERT-BOX.*/
  388. /* xString = 'FOR EACH Debop ' + xSort + 'WHERE ' */
  389. /* + 'Debop.Firma = "' + Firma + '" AND ' */
  390. /* + 'Debop.Knr = ' + STRING(Knr) + ' ' */
  391. /* + 'NO-LOCK BY Debop.FakDat DESCENDING INDEXED-REPOSITION '. */
  392. { incl/datopenquery.i }
  393. IF xWhere <> '' THEN DYNAMIC-FUNCTION('setQueryWhere':U , INPUT xWhere ).
  394. IF xSort <> '' THEN DYNAMIC-FUNCTION('setQuerySort':U , INPUT xSort ).
  395. IF xString <> '' THEN DYNAMIC-FUNCTION('setQueryString':U, INPUT xString).
  396. RETURN SUPER( ).
  397. END FUNCTION.
  398. /* _UIB-CODE-BLOCK-END */
  399. &ANALYZE-RESUME
  400. {&DB-REQUIRED-END}