g-besze-auswahl.w 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322
  1. &ANALYZE-SUSPEND _VERSION-NUMBER AB_v10r12 GUI ADM2
  2. &ANALYZE-RESUME
  3. &Scoped-define WINDOW-NAME CURRENT-WINDOW
  4. &Scoped-define FRAME-NAME BeszeAuswahl
  5. {adecomm/appserv.i}
  6. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _CUSTOM _DEFINITIONS BeszeAuswahl
  7. /*------------------------------------------------------------------------
  8. File:
  9. Description: from cntnrdlg.w - ADM2 SmartDialog Template
  10. Input Parameters:
  11. <none>
  12. Output Parameters:
  13. <none>
  14. Author:
  15. Created:
  16. ------------------------------------------------------------------------*/
  17. /* This .W file was created with the Progress AppBuilder. */
  18. /*----------------------------------------------------------------------*/
  19. /* Create an unnamed pool to store all the widgets created
  20. by this procedure. This is a good default which assures
  21. that this procedure's triggers and internal procedures
  22. will execute in this procedure's storage, and that proper
  23. cleanup will occur on deletion of the procedure. */
  24. CREATE WIDGET-POOL.
  25. /* *************************** Definitions ************************** */
  26. /* Parameters Definitions --- */
  27. DEF OUTPUT PARAMETER opRecid AS RECID NO-UNDO.
  28. /* Local Variable Definitions --- */
  29. { incl/dlgdefinition.i }
  30. { src/adm2/widgetprto.i }
  31. /* _UIB-CODE-BLOCK-END */
  32. &ANALYZE-RESUME
  33. &ANALYZE-SUSPEND _UIB-PREPROCESSOR-BLOCK
  34. /* ******************** Preprocessor Definitions ******************** */
  35. &Scoped-define PROCEDURE-TYPE SmartDialog
  36. &Scoped-define DB-AWARE no
  37. &Scoped-define ADM-CONTAINER DIALOG-BOX
  38. &Scoped-define ADM-SUPPORTED-LINKS Data-Target,Data-Source,Page-Target,Update-Source,Update-Target
  39. /* Name of designated FRAME-NAME and/or first browse and/or first query */
  40. &Scoped-define FRAME-NAME BeszeAuswahl
  41. /* Custom List Definitions */
  42. /* List-1,List-2,List-3,List-4,List-5,List-6 */
  43. /* _UIB-PREPROCESSOR-BLOCK-END */
  44. &ANALYZE-RESUME
  45. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _XFTR "SmartDialogCues" BeszeAuswahl _INLINE
  46. /* Actions: adecomm/_so-cue.w ? adecomm/_so-cued.p ? adecomm/_so-cuew.p */
  47. /* SmartDialog,ab,49267
  48. Destroy on next read */
  49. /* _UIB-CODE-BLOCK-END */
  50. &ANALYZE-RESUME
  51. /* *********************** Control Definitions ********************** */
  52. /* Define a dialog box */
  53. /* Definitions of handles for SmartObjects */
  54. DEFINE VARIABLE h_b-besze-auswahl AS HANDLE NO-UNDO.
  55. DEFINE VARIABLE h_d-besze-auswahl AS HANDLE NO-UNDO.
  56. /* ************************ Frame Definitions *********************** */
  57. DEFINE FRAME BeszeAuswahl
  58. SPACE(137.20) SKIP(19.19)
  59. WITH VIEW-AS DIALOG-BOX KEEP-TAB-ORDER
  60. SIDE-LABELS NO-UNDERLINE THREE-D SCROLLABLE
  61. TITLE "Bestellzeillenauswahl" WIDGET-ID 100.
  62. /* *********************** Procedure Settings ************************ */
  63. &ANALYZE-SUSPEND _PROCEDURE-SETTINGS
  64. /* Settings for THIS-PROCEDURE
  65. Type: SmartDialog
  66. Allow: Basic,Browse,DB-Fields,Query,Smart
  67. Container Links: Data-Target,Data-Source,Page-Target,Update-Source,Update-Target
  68. Design Page: 1
  69. Other Settings: COMPILE APPSERVER
  70. */
  71. &ANALYZE-RESUME _END-PROCEDURE-SETTINGS
  72. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _CUSTOM _INCLUDED-LIB BeszeAuswahl
  73. /* ************************* Included-Libraries *********************** */
  74. {src/adm2/containr.i}
  75. /* _UIB-CODE-BLOCK-END */
  76. &ANALYZE-RESUME
  77. /* *********** Runtime Attributes and AppBuilder Settings *********** */
  78. &ANALYZE-SUSPEND _RUN-TIME-ATTRIBUTES
  79. /* SETTINGS FOR DIALOG-BOX BeszeAuswahl
  80. FRAME-NAME */
  81. ASSIGN
  82. FRAME BeszeAuswahl:SCROLLABLE = FALSE
  83. FRAME BeszeAuswahl:HIDDEN = TRUE.
  84. /* _RUN-TIME-ATTRIBUTES-END */
  85. &ANALYZE-RESUME
  86. /* Setting information for Queries and Browse Widgets fields */
  87. &ANALYZE-SUSPEND _QUERY-BLOCK DIALOG-BOX BeszeAuswahl
  88. /* Query rebuild information for DIALOG-BOX BeszeAuswahl
  89. _Options = "SHARE-LOCK"
  90. _Query is NOT OPENED
  91. */ /* DIALOG-BOX BeszeAuswahl */
  92. &ANALYZE-RESUME
  93. /* ************************ Control Triggers ************************ */
  94. &Scoped-define SELF-NAME BeszeAuswahl
  95. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _CONTROL BeszeAuswahl BeszeAuswahl
  96. ON END-ERROR OF FRAME BeszeAuswahl /* Bestellzeillenauswahl */
  97. DO:
  98. RUN ENDE.
  99. RETURN NO-APPLY.
  100. END.
  101. /* _UIB-CODE-BLOCK-END */
  102. &ANALYZE-RESUME
  103. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _CONTROL BeszeAuswahl BeszeAuswahl
  104. ON WINDOW-CLOSE OF FRAME BeszeAuswahl /* Bestellzeillenauswahl */
  105. DO:
  106. RUN ENDE.
  107. RETURN NO-APPLY.
  108. END.
  109. /* _UIB-CODE-BLOCK-END */
  110. &ANALYZE-RESUME
  111. &UNDEFINE SELF-NAME
  112. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _CUSTOM _MAIN-BLOCK BeszeAuswahl
  113. /* *************************** Main Block *************************** */
  114. opRecid = ?.
  115. { incl/dlgmainblock.i }
  116. {src/adm2/dialogmn.i}
  117. /* _UIB-CODE-BLOCK-END */
  118. &ANALYZE-RESUME
  119. /* ********************** Internal Procedures *********************** */
  120. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE adm-create-objects BeszeAuswahl _ADM-CREATE-OBJECTS
  121. PROCEDURE adm-create-objects :
  122. /*------------------------------------------------------------------------------
  123. Purpose: Create handles for all SmartObjects used in this procedure.
  124. After SmartObjects are initialized, then SmartLinks are added.
  125. Parameters: <none>
  126. ------------------------------------------------------------------------------*/
  127. DEFINE VARIABLE currentPage AS INTEGER NO-UNDO.
  128. ASSIGN currentPage = getCurrentPage().
  129. CASE currentPage:
  130. WHEN 0 THEN DO:
  131. RUN constructObject (
  132. INPUT 'd-besze-auswahl.wDB-AWARE':U ,
  133. INPUT FRAME BeszeAuswahl:HANDLE ,
  134. INPUT 'AppServiceASInfoASUsePrompt?CacheDuration0CheckCurrentChangedyesDestroyStatelessyesDisconnectAppServernoServerOperatingModeNONEShareDatanoUpdateFromSourcenoForeignFieldsObjectNamed-besze-auswahlOpenOnInitnoPromptColumns(NONE)PromptOnDeletenoRowsToBatch100RebuildOnReposyesToggleDataTargetsyes':U ,
  135. OUTPUT h_d-besze-auswahl ).
  136. RUN repositionObject IN h_d-besze-auswahl ( 4.62 , 66.60 ) NO-ERROR.
  137. /* Size in AB: ( 6.10 , 32.80 ) */
  138. RUN constructObject (
  139. INPUT 'b-besze-auswahl.w':U ,
  140. INPUT FRAME BeszeAuswahl:HANDLE ,
  141. INPUT 'ScrollRemotenoNumDown0CalcWidthnoMaxWidth80FetchOnReposToEndyesUseSortIndicatoryesSearchFieldDataSourceNames?UpdateTargetNames?LogicalObjectNameHideOnInitnoDisableOnInitnoObjectLayout':U ,
  142. OUTPUT h_b-besze-auswahl ).
  143. RUN repositionObject IN h_b-besze-auswahl ( 1.00 , 1.00 ) NO-ERROR.
  144. RUN resizeObject IN h_b-besze-auswahl ( 18.81 , 137.20 ) NO-ERROR.
  145. /* Links to SmartDataBrowser h_b-besze-auswahl. */
  146. RUN addLink ( h_d-besze-auswahl , 'Data':U , h_b-besze-auswahl ).
  147. /* Adjust the tab order of the smart objects. */
  148. END. /* Page 0 */
  149. END CASE.
  150. END PROCEDURE.
  151. /* _UIB-CODE-BLOCK-END */
  152. &ANALYZE-RESUME
  153. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE disable_UI BeszeAuswahl _DEFAULT-DISABLE
  154. PROCEDURE disable_UI :
  155. /*------------------------------------------------------------------------------
  156. Purpose: DISABLE the User Interface
  157. Parameters: <none>
  158. Notes: Here we clean-up the user-interface by deleting
  159. dynamic widgets we have created and/or hide
  160. frames. This procedure is usually called when
  161. we are ready to "clean-up" after running.
  162. ------------------------------------------------------------------------------*/
  163. /* Hide all frames. */
  164. HIDE FRAME BeszeAuswahl.
  165. END PROCEDURE.
  166. /* _UIB-CODE-BLOCK-END */
  167. &ANALYZE-RESUME
  168. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE enableObject BeszeAuswahl
  169. PROCEDURE enableObject :
  170. /*------------------------------------------------------------------------------
  171. Purpose: Super Override
  172. Parameters:
  173. Notes:
  174. ------------------------------------------------------------------------------*/
  175. { incl/dlgenableobject.i }
  176. RUN SET_OPENFLAG IN h_d-besze-auswahl ( TRUE ).
  177. END PROCEDURE.
  178. /* _UIB-CODE-BLOCK-END */
  179. &ANALYZE-RESUME
  180. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE enable_UI BeszeAuswahl _DEFAULT-ENABLE
  181. PROCEDURE enable_UI :
  182. /*------------------------------------------------------------------------------
  183. Purpose: ENABLE the User Interface
  184. Parameters: <none>
  185. Notes: Here we display/view/enable the widgets in the
  186. user-interface. In addition, OPEN all queries
  187. associated with each FRAME and BROWSE.
  188. These statements here are based on the "Other
  189. Settings" section of the widget Property Sheets.
  190. ------------------------------------------------------------------------------*/
  191. VIEW FRAME BeszeAuswahl.
  192. {&OPEN-BROWSERS-IN-QUERY-BeszeAuswahl}
  193. END PROCEDURE.
  194. /* _UIB-CODE-BLOCK-END */
  195. &ANALYZE-RESUME
  196. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE ENDE BeszeAuswahl
  197. PROCEDURE ENDE :
  198. /*------------------------------------------------------------------------------
  199. Purpose:
  200. Parameters: <none>
  201. Notes:
  202. ------------------------------------------------------------------------------*/
  203. IF btnOK THEN DO:
  204. END.
  205. { incl/dlgende.i }
  206. END PROCEDURE.
  207. /* _UIB-CODE-BLOCK-END */
  208. &ANALYZE-RESUME
  209. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE SET_BESZE_RECID BeszeAuswahl
  210. PROCEDURE SET_BESZE_RECID :
  211. /*------------------------------------------------------------------------------
  212. Purpose:
  213. Parameters: <none>
  214. Notes:
  215. ------------------------------------------------------------------------------*/
  216. DEF INPUT PARAMETER ipRecid AS RECID NO-UNDO.
  217. IF ipRecid = ? OR
  218. ipRecid = 0 THEN RETURN NO-APPLY.
  219. opRecid = ipRecid.
  220. RUN ENDE.
  221. END PROCEDURE.
  222. /* _UIB-CODE-BLOCK-END */
  223. &ANALYZE-RESUME