d-faxbestellung.w 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515
  1. &ANALYZE-SUSPEND _VERSION-NUMBER UIB_v8r12 GUI ADM1
  2. &ANALYZE-RESUME
  3. /* Connected Databases
  4. anadat PROGRESS
  5. */
  6. &Scoped-define WINDOW-NAME CURRENT-WINDOW
  7. &Scoped-define FRAME-NAME D-Dialog
  8. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _CUSTOM _DEFINITIONS D-Dialog
  9. /*------------------------------------------------------------------------
  10. File:
  11. Description: from cntnrdlg.w - ADM SmartDialog Template
  12. Input Parameters:
  13. <none>
  14. Output Parameters:
  15. <none>
  16. Author:
  17. Created:
  18. ------------------------------------------------------------------------*/
  19. /* This .W file was created with the Progress UIB. */
  20. /*----------------------------------------------------------------------*/
  21. /* Create an unnamed pool to store all the widgets created
  22. by this procedure. This is a good default which assures
  23. that this procedure's triggers and internal procedures
  24. will execute in this procedure's storage, and that proper
  25. cleanup will occur on deletion of the procedure. */
  26. CREATE WIDGET-POOL.
  27. /* *************************** Definitions ************************** */
  28. /* Parameters Definitions --- */
  29. /* Local Variable Definitions --- */
  30. DEF VAR VBez AS CHAR NO-UNDO.
  31. DEF VAR VInhalt AS INT NO-UNDO.
  32. DEF VAR VKGebinde AS CHAR NO-UNDO.
  33. DEF VAR VVGebinde AS CHAR NO-UNDO.
  34. DEF VAR VAlk_Gehalt AS DEC NO-UNDO.
  35. DEF VAR VDaten AS CHAR NO-UNDO.
  36. DEF VAR iLager AS INT NO-UNDO.
  37. DEF VAR lLager AS LOG NO-UNDO.
  38. DEF BUFFER BKunBest FOR KunBest.
  39. DEF BUFFER BAufko FOR Aufko.
  40. /* ---------- Globale Variablen ---------------------------------- */
  41. { v8/globvar.i" " " " "SHARED" }
  42. { v8/debivar.i " " " " "SHARED" }
  43. { v8/artivar.i " " " " "SHARED" }
  44. { v8/contvar.i " " " " "SHARED" }
  45. /* _UIB-CODE-BLOCK-END */
  46. &ANALYZE-RESUME
  47. &ANALYZE-SUSPEND _UIB-PREPROCESSOR-BLOCK
  48. /* ******************** Preprocessor Definitions ******************** */
  49. &Scoped-define PROCEDURE-TYPE SmartDialog
  50. &Scoped-define DB-AWARE no
  51. &Scoped-define ADM-CONTAINER DIALOG-BOX
  52. /* Name of designated FRAME-NAME and/or first browse and/or first query */
  53. &Scoped-define FRAME-NAME D-Dialog
  54. &Scoped-define BROWSE-NAME Br_KunBest
  55. /* Internal Tables (found by Frame, Query & Browse Queries) */
  56. &Scoped-define INTERNAL-TABLES KunBest
  57. /* Definitions for BROWSE Br_KunBest */
  58. &Scoped-define FIELDS-IN-QUERY-Br_KunBest KunBest.Pos KunBest.Artnr ~
  59. KunBest.Inhalt KunBest.Jahr VBez @ VBez VInhalt @ VInhalt ~
  60. VAlk_Gehalt @ VAlk_Gehalt VKGebinde @ VKGebinde VVGebinde @ VVGebinde ~
  61. KunBest.Soll KunBest.Best
  62. &Scoped-define ENABLED-FIELDS-IN-QUERY-Br_KunBest
  63. &Scoped-define QUERY-STRING-Br_KunBest FOR EACH KunBest ~
  64. WHERE KunBest.Firma = GVFirma ~
  65. AND KunBest.Knr = XVKnr NO-LOCK
  66. &Scoped-define OPEN-QUERY-Br_KunBest OPEN QUERY Br_KunBest FOR EACH KunBest ~
  67. WHERE KunBest.Firma = GVFirma ~
  68. AND KunBest.Knr = XVKnr NO-LOCK.
  69. &Scoped-define TABLES-IN-QUERY-Br_KunBest KunBest
  70. &Scoped-define FIRST-TABLE-IN-QUERY-Br_KunBest KunBest
  71. /* Definitions for DIALOG-BOX D-Dialog */
  72. &Scoped-define OPEN-BROWSERS-IN-QUERY-D-Dialog ~
  73. ~{&OPEN-QUERY-Br_KunBest}
  74. /* Standard List Definitions */
  75. &Scoped-Define ENABLED-OBJECTS Br_KunBest
  76. /* Custom List Definitions */
  77. /* List-1,List-2,List-3,List-4,List-5,List-6 */
  78. /* _UIB-PREPROCESSOR-BLOCK-END */
  79. &ANALYZE-RESUME
  80. /* *********************** Control Definitions ********************** */
  81. /* Define a dialog box */
  82. /* Definitions of the field level widgets */
  83. /* Query definitions */
  84. &ANALYZE-SUSPEND
  85. DEFINE QUERY Br_KunBest FOR
  86. KunBest SCROLLING.
  87. &ANALYZE-RESUME
  88. /* Browse definitions */
  89. DEFINE BROWSE Br_KunBest
  90. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _DISPLAY-FIELDS Br_KunBest D-Dialog _STRUCTURED
  91. QUERY Br_KunBest DISPLAY
  92. KunBest.Pos FORMAT "zzz9":U
  93. KunBest.Artnr FORMAT "999999":U
  94. KunBest.Inhalt FORMAT "9999":U
  95. KunBest.Jahr FORMAT "zzzz":U
  96. VBez @ VBez COLUMN-LABEL "Artikel" FORMAT "x(28)":U
  97. VInhalt @ VInhalt COLUMN-LABEL "Inhalt" FORMAT "zzzz":U
  98. VAlk_Gehalt @ VAlk_Gehalt COLUMN-LABEL "Vol%" FORMAT "z9.99":U
  99. VKGebinde @ VKGebinde COLUMN-LABEL "KGebinde" FORMAT "x(10)":U
  100. VVGebinde @ VVGebinde COLUMN-LABEL "VGebinde" FORMAT "x(10)":U
  101. KunBest.Soll FORMAT "zz,zzz":U
  102. KunBest.Best FORMAT "zz,zzz":U
  103. /* _UIB-CODE-BLOCK-END */
  104. &ANALYZE-RESUME
  105. WITH NO-ROW-MARKERS SEPARATORS SIZE 109 BY 15
  106. BGCOLOR 15 .
  107. /* ************************ Frame Definitions *********************** */
  108. DEFINE FRAME D-Dialog
  109. Br_KunBest AT ROW 1.24 COL 2
  110. SPACE(0.99) SKIP(0.23)
  111. WITH VIEW-AS DIALOG-BOX KEEP-TAB-ORDER
  112. SIDE-LABELS NO-UNDERLINE THREE-D SCROLLABLE
  113. TITLE "Faxbestellung".
  114. /* *********************** Procedure Settings ************************ */
  115. &ANALYZE-SUSPEND _PROCEDURE-SETTINGS
  116. /* Settings for THIS-PROCEDURE
  117. Type: SmartDialog
  118. Allow: Basic,Browse,DB-Fields,Query,Smart
  119. Other Settings: COMPILE
  120. */
  121. &ANALYZE-RESUME _END-PROCEDURE-SETTINGS
  122. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _CUSTOM _INCLUDED-LIB D-Dialog
  123. /* ************************* Included-Libraries *********************** */
  124. {src/adm/method/containr.i}
  125. /* _UIB-CODE-BLOCK-END */
  126. &ANALYZE-RESUME
  127. /* *********** Runtime Attributes and AppBuilder Settings *********** */
  128. &ANALYZE-SUSPEND _RUN-TIME-ATTRIBUTES
  129. /* SETTINGS FOR DIALOG-BOX D-Dialog
  130. FRAME-NAME */
  131. /* BROWSE-TAB Br_KunBest 1 D-Dialog */
  132. ASSIGN
  133. FRAME D-Dialog:SCROLLABLE = FALSE
  134. FRAME D-Dialog:HIDDEN = TRUE.
  135. /* _RUN-TIME-ATTRIBUTES-END */
  136. &ANALYZE-RESUME
  137. /* Setting information for Queries and Browse Widgets fields */
  138. &ANALYZE-SUSPEND _QUERY-BLOCK BROWSE Br_KunBest
  139. /* Query rebuild information for BROWSE Br_KunBest
  140. _TblList = "AnaDat.KunBest"
  141. _Where[1] = "KunBest.Firma = GVFirma
  142. AND KunBest.Knr = XVKnr"
  143. _FldNameList[1] = AnaDat.KunBest.Pos
  144. _FldNameList[2] = AnaDat.KunBest.Artnr
  145. _FldNameList[3] = AnaDat.KunBest.Inhalt
  146. _FldNameList[4] > AnaDat.KunBest.Jahr
  147. "KunBest.Jahr" ? "zzzz" "integer" ? ? ? ? ? ? no ? no no ? yes no no "U" "" "" "" "" "" "" 0 no 0 no no
  148. _FldNameList[5] > "_<CALC>"
  149. "VBez @ VBez" "Artikel" "x(28)" ? ? ? ? ? ? ? no ? no no ? yes no no "U" "" "" "" "" "" "" 0 no 0 no no
  150. _FldNameList[6] > "_<CALC>"
  151. "VInhalt @ VInhalt" "Inhalt" "zzzz" ? ? ? ? ? ? ? no ? no no ? yes no no "U" "" "" "" "" "" "" 0 no 0 no no
  152. _FldNameList[7] > "_<CALC>"
  153. "VAlk_Gehalt @ VAlk_Gehalt" "Vol%" "z9.99" ? ? ? ? ? ? ? no ? no no ? yes no no "U" "" "" "" "" "" "" 0 no 0 no no
  154. _FldNameList[8] > "_<CALC>"
  155. "VKGebinde @ VKGebinde" "KGebinde" "x(10)" ? ? ? ? ? ? ? no ? no no ? yes no no "U" "" "" "" "" "" "" 0 no 0 no no
  156. _FldNameList[9] > "_<CALC>"
  157. "VVGebinde @ VVGebinde" "VGebinde" "x(10)" ? ? ? ? ? ? ? no ? no no ? yes no no "U" "" "" "" "" "" "" 0 no 0 no no
  158. _FldNameList[10] > AnaDat.KunBest.Soll
  159. "KunBest.Soll" ? "zz,zzz" "integer" ? ? ? ? ? ? no ? no no ? yes no no "U" "" "" "" "" "" "" 0 no 0 no no
  160. _FldNameList[11] > AnaDat.KunBest.Best
  161. "KunBest.Best" ? "zz,zzz" "integer" ? ? ? ? ? ? no ? no no ? yes no no "U" "" "" "" "" "" "" 0 no 0 no no
  162. _Query is OPENED
  163. */ /* BROWSE Br_KunBest */
  164. &ANALYZE-RESUME
  165. &ANALYZE-SUSPEND _QUERY-BLOCK DIALOG-BOX D-Dialog
  166. /* Query rebuild information for DIALOG-BOX D-Dialog
  167. _Options = "SHARE-LOCK"
  168. _Query is NOT OPENED
  169. */ /* DIALOG-BOX D-Dialog */
  170. &ANALYZE-RESUME
  171. /* ************************ Control Triggers ************************ */
  172. &Scoped-define SELF-NAME D-Dialog
  173. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _CONTROL D-Dialog D-Dialog
  174. ON WINDOW-CLOSE OF FRAME D-Dialog /* Faxbestellung */
  175. DO:
  176. /* Add Trigger to equate WINDOW-CLOSE to END-ERROR. */
  177. APPLY "END-ERROR":U TO SELF.
  178. END.
  179. /* _UIB-CODE-BLOCK-END */
  180. &ANALYZE-RESUME
  181. &Scoped-define BROWSE-NAME Br_KunBest
  182. &Scoped-define SELF-NAME Br_KunBest
  183. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _CONTROL Br_KunBest D-Dialog
  184. ON DELETE-CHARACTER OF Br_KunBest IN FRAME D-Dialog
  185. DO:
  186. DO WITH FRAME {&FRAME-NAME}:
  187. IF {&BROWSE-NAME}:NUM-SELECTED-ROWS = 0 THEN RETURN NO-APPLY.
  188. IF NOT AVAILABLE KunBest THEN RETURN NO-APPLY.
  189. Ja = TRUE.
  190. { v8/loeschen.i }
  191. IF NOT Ja THEN RETURN NO-APPLY.
  192. REPEAT TRANSACTION:
  193. FIND BKunBest WHERE RECID(BKunBest) = RECID(KunBest).
  194. DELETE BKunBest.
  195. {&BROWSE-NAME}:DELETE-SELECTED-ROW(1).
  196. LEAVE.
  197. END.
  198. END.
  199. END.
  200. /* _UIB-CODE-BLOCK-END */
  201. &ANALYZE-RESUME
  202. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _CONTROL Br_KunBest D-Dialog
  203. ON RETURN OF Br_KunBest IN FRAME D-Dialog
  204. DO:
  205. IF NOT AVAILABLE KunBest THEN RETURN NO-APPLY.
  206. DEF VAR VRecid AS RECID NO-UNDO.
  207. DEF BUFFER BKunbest FOR KunBest.
  208. FIND Artst NO-LOCK USE-INDEX Artst-k1
  209. WHERE Artst.Firma = KunBest.Firma
  210. AND Artst.Artnr = KunBest.Artnr
  211. AND Artst.Inhalt = KunBest.Inhalt
  212. AND Artst.Jahr = KunBest.Jahr.
  213. ASSIGN AVArtnr = Artst.Artnr
  214. AVInhalt = Artst.Inhalt
  215. AVJahr = Artst.Jahr
  216. LVKGeb_Cd = Artst.KGeb_Cd
  217. LVVGeb_Cd = Artst.VGeb_Cd
  218. LVGGeb_Cd = Artst.GGeb_Cd
  219. XVKGeb_Me = KunBest.KGeb_Me
  220. XVVGeb_Me = KunBest.VGeb_Me
  221. XVGGeb_Me = KunBest.GGeb_Me
  222. XVKGeb_Be = KunBest.KGeb_Me
  223. XVVGeb_Be = KunBest.VGeb_Me
  224. XVGGeb_Be = KunBest.GGeb_Me.
  225. VRecid = RECID(KunBest).
  226. VDaten = Artst.KGeb_Cd + ';'
  227. + Artst.VGeb_Cd + ';'
  228. + Artst.GGeb_Cd + ';'
  229. + STRING(KunBest.KGeb_Me) + ';'
  230. + STRING(KunBest.VGeb_Me) + ';'
  231. + STRING(KunBest.GGeb_Me) + ';'
  232. + STRING(RECID(Artst)) + ';'
  233. + STRING(Artst.Lager ,'yes/no') + ';'
  234. + STRING(iLager) + ';'
  235. + STRING(BAufko.AlsOfferte,'yes/no') + ';'
  236. + STRING(KunBest.KGeb_Me) + ';'
  237. + STRING(KunBest.VGeb_Me) + ';'
  238. + STRING(KunBest.GGeb_Me).
  239. RUN "g-gebindemenge.w" ( INPUT-OUTPUT VDaten ).
  240. IF VDaten = '' THEN RETURN NO-APPLY.
  241. XVGGeb_Me = DEC(ENTRY(1, VDaten, ';')).
  242. XVVGeb_Me = DEC(ENTRY(2, VDaten, ';')).
  243. XVKGeb_Me = DEC(ENTRY(3, VDaten, ';')).
  244. lLager = (IF ENTRY(4, VDaten, ';') BEGINS 'N' THEN FALSE ELSE TRUE).
  245. XVGGeb_Be = DEC(ENTRY(5, VDaten, ';')).
  246. XVVGeb_Be = DEC(ENTRY(6, VDaten, ';')).
  247. XVKGeb_Be = DEC(ENTRY(7, VDaten, ';')).
  248. REPEAT TRANSACTION:
  249. FIND BKunBest WHERE RECID(BKunBest) = VRecid.
  250. ASSIGN BKunBest.KGeb_Cd = Artst.KGeb_Cd
  251. BKunBest.VGeb_Cd = Artst.VGeb_Cd
  252. BKunBest.KGeb_Cd = Artst.GGeb_Cd
  253. BKunBest.KGeb_Me = XVKGeb_Me
  254. BKunBest.VGeb_Me = XVVGeb_Me
  255. BKunBest.GGeb_Me = XVGGeb_Me
  256. BKunBest.Best = XVKGeb_Me
  257. KunBest.Lag_Buch = lLager.
  258. RELEASE BKunBest.
  259. LEAVE.
  260. END.
  261. Br_KunBest:REFRESH().
  262. RETURN.
  263. END.
  264. /* _UIB-CODE-BLOCK-END */
  265. &ANALYZE-RESUME
  266. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _CONTROL Br_KunBest D-Dialog
  267. ON ROW-DISPLAY OF Br_KunBest IN FRAME D-Dialog
  268. DO:
  269. IF NOT AVAILABLE KunBest THEN RETURN NO-APPLY.
  270. FIND Artst USE-INDEX Artst-k1
  271. WHERE Artst.Firma = GVFirma
  272. AND Artst.Artnr = KunBest.Artnr
  273. AND Artst.Inhalt = KunBest.Inhalt
  274. AND Artst.Jahr = KunBest.Jahr NO-LOCK NO-ERROR.
  275. IF AVAILABLE Artst THEN DO:
  276. FIND KGebinde USE-INDEX KGebinde-k1
  277. WHERE KGebinde.Firma = KunBest.Firma
  278. AND KGebinde.Geb_Cd = Artst.KGeb_Cd NO-LOCK NO-ERROR.
  279. FIND VGebinde USE-INDEX VGebinde-k1
  280. WHERE VGebinde.Firma = KunBest.Firma
  281. AND VGebinde.Geb_Cd = Artst.VGeb_Cd NO-LOCK NO-ERROR.
  282. VBez = Artst.Bez.
  283. VInhalt = KGebinde.Inhalt.
  284. VAlk_Gehalt = Artst.Alk_Gehalt.
  285. VKGebinde = KGebinde.KBez.
  286. VVGebinde = VGebinde.KBez.
  287. END.
  288. END.
  289. /* _UIB-CODE-BLOCK-END */
  290. &ANALYZE-RESUME
  291. &UNDEFINE SELF-NAME
  292. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _CUSTOM _MAIN-BLOCK D-Dialog
  293. /* *************************** Main Block *************************** */
  294. FIND BAufko NO-LOCK USE-INDEX Aufko-k1
  295. WHERE BAufko.Firma = GVFirma
  296. AND BAufko.Aufnr = XVAufnr.
  297. ASSIGN iLager = BAufko.Lager.
  298. REPEAT TRANSACTION:
  299. FOR EACH KunBest USE-INDEX KunBest-k1
  300. WHERE KunBest.Firma = GVFirma
  301. AND KunBest.Knr = XVKnr :
  302. FIND Artst OF KunBest NO-LOCK NO-ERROR.
  303. IF NOT AVAILABLE Artst THEN DO:
  304. DELETE KunBest.
  305. NEXT.
  306. END.
  307. IF Artst.Aktiv = FALSE OR
  308. Artst.Ausverk = 9 THEN DO:
  309. DELETE KunBest.
  310. NEXT.
  311. END.
  312. END.
  313. LEAVE.
  314. END.
  315. {src/adm/template/dialogmn.i}
  316. /* _UIB-CODE-BLOCK-END */
  317. &ANALYZE-RESUME
  318. /* ********************** Internal Procedures *********************** */
  319. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE adm-create-objects D-Dialog _ADM-CREATE-OBJECTS
  320. PROCEDURE adm-create-objects :
  321. /*------------------------------------------------------------------------------
  322. Purpose: Create handles for all SmartObjects used in this procedure.
  323. After SmartObjects are initialized, then SmartLinks are added.
  324. Parameters: <none>
  325. ------------------------------------------------------------------------------*/
  326. END PROCEDURE.
  327. /* _UIB-CODE-BLOCK-END */
  328. &ANALYZE-RESUME
  329. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE adm-row-available D-Dialog _ADM-ROW-AVAILABLE
  330. PROCEDURE adm-row-available :
  331. /*------------------------------------------------------------------------------
  332. Purpose: Dispatched to this procedure when the Record-
  333. Source has a new row available. This procedure
  334. tries to get the new row (or foriegn keys) from
  335. the Record-Source and process it.
  336. Parameters: <none>
  337. ------------------------------------------------------------------------------*/
  338. /* Define variables needed by this internal procedure. */
  339. {src/adm/template/row-head.i}
  340. /* Process the newly available records (i.e. display fields,
  341. open queries, and/or pass records on to any RECORD-TARGETS). */
  342. {src/adm/template/row-end.i}
  343. END PROCEDURE.
  344. /* _UIB-CODE-BLOCK-END */
  345. &ANALYZE-RESUME
  346. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE disable_UI D-Dialog _DEFAULT-DISABLE
  347. PROCEDURE disable_UI :
  348. /*------------------------------------------------------------------------------
  349. Purpose: DISABLE the User Interface
  350. Parameters: <none>
  351. Notes: Here we clean-up the user-interface by deleting
  352. dynamic widgets we have created and/or hide
  353. frames. This procedure is usually called when
  354. we are ready to "clean-up" after running.
  355. ------------------------------------------------------------------------------*/
  356. /* Hide all frames. */
  357. HIDE FRAME D-Dialog.
  358. END PROCEDURE.
  359. /* _UIB-CODE-BLOCK-END */
  360. &ANALYZE-RESUME
  361. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE enable_UI D-Dialog _DEFAULT-ENABLE
  362. PROCEDURE enable_UI :
  363. /*------------------------------------------------------------------------------
  364. Purpose: ENABLE the User Interface
  365. Parameters: <none>
  366. Notes: Here we display/view/enable the widgets in the
  367. user-interface. In addition, OPEN all queries
  368. associated with each FRAME and BROWSE.
  369. These statements here are based on the "Other
  370. Settings" section of the widget Property Sheets.
  371. ------------------------------------------------------------------------------*/
  372. ENABLE Br_KunBest
  373. WITH FRAME D-Dialog.
  374. VIEW FRAME D-Dialog.
  375. {&OPEN-BROWSERS-IN-QUERY-D-Dialog}
  376. END PROCEDURE.
  377. /* _UIB-CODE-BLOCK-END */
  378. &ANALYZE-RESUME
  379. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE send-records D-Dialog _ADM-SEND-RECORDS
  380. PROCEDURE send-records :
  381. /*------------------------------------------------------------------------------
  382. Purpose: Send record ROWID's for all tables used by
  383. this file.
  384. Parameters: see template/snd-head.i
  385. ------------------------------------------------------------------------------*/
  386. /* Define variables needed by this internal procedure. */
  387. {src/adm/template/snd-head.i}
  388. /* For each requested table, put it's ROWID in the output list. */
  389. {src/adm/template/snd-list.i "KunBest"}
  390. /* Deal with any unexpected table requests before closing. */
  391. {src/adm/template/snd-end.i}
  392. END PROCEDURE.
  393. /* _UIB-CODE-BLOCK-END */
  394. &ANALYZE-RESUME
  395. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE state-changed D-Dialog
  396. PROCEDURE state-changed :
  397. /* -----------------------------------------------------------
  398. Purpose:
  399. Parameters: <none>
  400. Notes:
  401. -------------------------------------------------------------*/
  402. DEFINE INPUT PARAMETER p-issuer-hdl AS HANDLE NO-UNDO.
  403. DEFINE INPUT PARAMETER p-state AS CHARACTER NO-UNDO.
  404. END PROCEDURE.
  405. /* _UIB-CODE-BLOCK-END */
  406. &ANALYZE-RESUME