d-p_debop.w 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. &ANALYZE-SUSPEND _VERSION-NUMBER UIB_v8r12 GUI ADM1
  2. &ANALYZE-RESUME
  3. /* Connected Databases
  4. */
  5. &Scoped-define WINDOW-NAME CURRENT-WINDOW
  6. &Scoped-define FRAME-NAME D-Dialog
  7. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _CUSTOM _DEFINITIONS D-Dialog
  8. /*------------------------------------------------------------------------
  9. File:
  10. Description: from cntnrdlg.w - ADM SmartDialog Template
  11. Input Parameters:
  12. <none>
  13. Output Parameters:
  14. <none>
  15. Author:
  16. Created:
  17. ------------------------------------------------------------------------*/
  18. /* This .W file was created with the Progress UIB. */
  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. /* _UIB-CODE-BLOCK-END */
  30. &ANALYZE-RESUME
  31. &ANALYZE-SUSPEND _UIB-PREPROCESSOR-BLOCK
  32. /* ******************** Preprocessor Definitions ******************** */
  33. &Scoped-define PROCEDURE-TYPE SmartDialog
  34. &Scoped-define DB-AWARE no
  35. &Scoped-define ADM-CONTAINER DIALOG-BOX
  36. /* Name of designated FRAME-NAME and/or first browse and/or first query */
  37. &Scoped-define FRAME-NAME D-Dialog
  38. /* Custom List Definitions */
  39. /* List-1,List-2,List-3,List-4,List-5,List-6 */
  40. /* _UIB-PREPROCESSOR-BLOCK-END */
  41. &ANALYZE-RESUME
  42. /* *********************** Control Definitions ********************** */
  43. /* Define a dialog box */
  44. /* Definitions of handles for SmartObjects */
  45. DEFINE VARIABLE h_b-p_debfa AS HANDLE NO-UNDO.
  46. /* ************************ Frame Definitions *********************** */
  47. DEFINE FRAME D-Dialog
  48. SPACE(143.40) SKIP(18.52)
  49. WITH VIEW-AS DIALOG-BOX KEEP-TAB-ORDER
  50. SIDE-LABELS NO-UNDERLINE THREE-D SCROLLABLE
  51. TITLE "Drucken Offene Posten".
  52. /* *********************** Procedure Settings ************************ */
  53. &ANALYZE-SUSPEND _PROCEDURE-SETTINGS
  54. /* Settings for THIS-PROCEDURE
  55. Type: SmartDialog
  56. Allow: Basic,Browse,DB-Fields,Query,Smart
  57. Other Settings: COMPILE
  58. */
  59. &ANALYZE-RESUME _END-PROCEDURE-SETTINGS
  60. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _CUSTOM _INCLUDED-LIB D-Dialog
  61. /* ************************* Included-Libraries *********************** */
  62. {src/adm/method/containr.i}
  63. /* _UIB-CODE-BLOCK-END */
  64. &ANALYZE-RESUME
  65. /* *********** Runtime Attributes and AppBuilder Settings *********** */
  66. &ANALYZE-SUSPEND _RUN-TIME-ATTRIBUTES
  67. /* SETTINGS FOR DIALOG-BOX D-Dialog
  68. FRAME-NAME */
  69. ASSIGN
  70. FRAME D-Dialog:SCROLLABLE = FALSE
  71. FRAME D-Dialog:HIDDEN = TRUE.
  72. /* _RUN-TIME-ATTRIBUTES-END */
  73. &ANALYZE-RESUME
  74. /* Setting information for Queries and Browse Widgets fields */
  75. &ANALYZE-SUSPEND _QUERY-BLOCK DIALOG-BOX D-Dialog
  76. /* Query rebuild information for DIALOG-BOX D-Dialog
  77. _Options = "SHARE-LOCK"
  78. _Query is NOT OPENED
  79. */ /* DIALOG-BOX D-Dialog */
  80. &ANALYZE-RESUME
  81. /* ************************ Control Triggers ************************ */
  82. &Scoped-define SELF-NAME D-Dialog
  83. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _CONTROL D-Dialog D-Dialog
  84. ON WINDOW-CLOSE OF FRAME D-Dialog /* Drucken Offene Posten */
  85. DO:
  86. /* Add Trigger to equate WINDOW-CLOSE to END-ERROR. */
  87. APPLY "END-ERROR":U TO SELF.
  88. END.
  89. /* _UIB-CODE-BLOCK-END */
  90. &ANALYZE-RESUME
  91. &UNDEFINE SELF-NAME
  92. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _CUSTOM _MAIN-BLOCK D-Dialog
  93. /* *************************** Main Block *************************** */
  94. {src/adm/template/dialogmn.i}
  95. /* _UIB-CODE-BLOCK-END */
  96. &ANALYZE-RESUME
  97. /* ********************** Internal Procedures *********************** */
  98. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE adm-create-objects D-Dialog _ADM-CREATE-OBJECTS
  99. PROCEDURE adm-create-objects :
  100. /*------------------------------------------------------------------------------
  101. Purpose: Create handles for all SmartObjects used in this procedure.
  102. After SmartObjects are initialized, then SmartLinks are added.
  103. Parameters: <none>
  104. ------------------------------------------------------------------------------*/
  105. DEFINE VARIABLE adm-current-page AS INTEGER NO-UNDO.
  106. RUN get-attribute IN THIS-PROCEDURE ('Current-Page':U).
  107. ASSIGN adm-current-page = INTEGER(RETURN-VALUE).
  108. CASE adm-current-page:
  109. WHEN 0 THEN DO:
  110. RUN init-object IN THIS-PROCEDURE (
  111. INPUT 'v8/b-p_debop.w':U ,
  112. INPUT FRAME D-Dialog:HANDLE ,
  113. INPUT 'Layout = ':U ,
  114. OUTPUT h_b-p_debfa ).
  115. RUN set-position IN h_b-p_debfa ( 1.00 , 1.00 ) NO-ERROR.
  116. RUN set-size IN h_b-p_debfa ( 18.52 , 143.40 ) NO-ERROR.
  117. /* Adjust the tab order of the smart objects. */
  118. END. /* Page 0 */
  119. END CASE.
  120. END PROCEDURE.
  121. /* _UIB-CODE-BLOCK-END */
  122. &ANALYZE-RESUME
  123. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE adm-row-available D-Dialog _ADM-ROW-AVAILABLE
  124. PROCEDURE adm-row-available :
  125. /*------------------------------------------------------------------------------
  126. Purpose: Dispatched to this procedure when the Record-
  127. Source has a new row available. This procedure
  128. tries to get the new row (or foriegn keys) from
  129. the Record-Source and process it.
  130. Parameters: <none>
  131. ------------------------------------------------------------------------------*/
  132. /* Define variables needed by this internal procedure. */
  133. {src/adm/template/row-head.i}
  134. /* Process the newly available records (i.e. display fields,
  135. open queries, and/or pass records on to any RECORD-TARGETS). */
  136. {src/adm/template/row-end.i}
  137. END PROCEDURE.
  138. /* _UIB-CODE-BLOCK-END */
  139. &ANALYZE-RESUME
  140. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE disable_UI D-Dialog _DEFAULT-DISABLE
  141. PROCEDURE disable_UI :
  142. /*------------------------------------------------------------------------------
  143. Purpose: DISABLE the User Interface
  144. Parameters: <none>
  145. Notes: Here we clean-up the user-interface by deleting
  146. dynamic widgets we have created and/or hide
  147. frames. This procedure is usually called when
  148. we are ready to "clean-up" after running.
  149. ------------------------------------------------------------------------------*/
  150. /* Hide all frames. */
  151. HIDE FRAME D-Dialog.
  152. END PROCEDURE.
  153. /* _UIB-CODE-BLOCK-END */
  154. &ANALYZE-RESUME
  155. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE enable_UI D-Dialog _DEFAULT-ENABLE
  156. PROCEDURE enable_UI :
  157. /*------------------------------------------------------------------------------
  158. Purpose: ENABLE the User Interface
  159. Parameters: <none>
  160. Notes: Here we display/view/enable the widgets in the
  161. user-interface. In addition, OPEN all queries
  162. associated with each FRAME and BROWSE.
  163. These statements here are based on the "Other
  164. Settings" section of the widget Property Sheets.
  165. ------------------------------------------------------------------------------*/
  166. VIEW FRAME D-Dialog.
  167. {&OPEN-BROWSERS-IN-QUERY-D-Dialog}
  168. END PROCEDURE.
  169. /* _UIB-CODE-BLOCK-END */
  170. &ANALYZE-RESUME
  171. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE send-records D-Dialog _ADM-SEND-RECORDS
  172. PROCEDURE send-records :
  173. /*------------------------------------------------------------------------------
  174. Purpose: Send record ROWID's for all tables used by
  175. this file.
  176. Parameters: see template/snd-head.i
  177. ------------------------------------------------------------------------------*/
  178. /* SEND-RECORDS does nothing because there are no External
  179. Tables specified for this SmartDialog, and there are no
  180. tables specified in any contained Browse, Query, or Frame. */
  181. END PROCEDURE.
  182. /* _UIB-CODE-BLOCK-END */
  183. &ANALYZE-RESUME
  184. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE state-changed D-Dialog
  185. PROCEDURE state-changed :
  186. /* -----------------------------------------------------------
  187. Purpose:
  188. Parameters: <none>
  189. Notes:
  190. -------------------------------------------------------------*/
  191. DEFINE INPUT PARAMETER p-issuer-hdl AS HANDLE NO-UNDO.
  192. DEFINE INPUT PARAMETER p-state AS CHARACTER NO-UNDO.
  193. END PROCEDURE.
  194. /* _UIB-CODE-BLOCK-END */
  195. &ANALYZE-RESUME