d-p_bestvorschlag.w 8.6 KB

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