| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360 |
- &ANALYZE-SUSPEND _VERSION-NUMBER AB_v10r12 GUI ADM2
- &ANALYZE-RESUME
- /* Connected Databases
- anadat PROGRESS
- */
- &Scoped-define WINDOW-NAME CURRENT-WINDOW
- {adecomm/appserv.i}
- &ANALYZE-SUSPEND _UIB-CODE-BLOCK _CUSTOM _DEFINITIONS dTables
- /*------------------------------------------------------------------------
- File:
- Description: from DATA.W - Template For SmartData objects in the ADM
- Input Parameters:
- <none>
- Output Parameters:
- <none>
- Modified: February 24, 1999
- ------------------------------------------------------------------------*/
- /* This .W file was created with the Progress AppBuilder. */
- /*----------------------------------------------------------------------*/
- /* Create an unnamed pool to store all the widgets created
- by this procedure. This is a good default which assures
- that this procedure's triggers and internal procedures
- will execute in this procedure's storage, and that proper
- cleanup will occur on deletion of the procedure. */
- CREATE WIDGET-POOL.
- /* *************************** Definitions ************************** */
- /* Parameters Definitions --- */
- /* Local Variable Definitions --- */
- DEF VAR xWhere AS CHAR NO-UNDO.
- DEF VAR xSort AS CHAR NO-UNDO.
- DEF VAR Firma AS CHAR NO-UNDO.
- DEF VAR SAktiv AS LOG NO-UNDO INIT FALSE.
- /* _UIB-CODE-BLOCK-END */
- &ANALYZE-RESUME
- &ANALYZE-SUSPEND _UIB-PREPROCESSOR-BLOCK
- /* ******************** Preprocessor Definitions ******************** */
- &Scoped-define PROCEDURE-TYPE SmartDataObject
- &Scoped-define DB-AWARE yes
- &Scoped-define ADM-SUPPORTED-LINKS Data-Source,Data-Target,Navigation-Target,Update-Target,Commit-Target,Filter-Target
- /* Db-Required definitions. */
- &IF DEFINED(DB-REQUIRED) = 0 &THEN
- &GLOBAL-DEFINE DB-REQUIRED TRUE
- &ENDIF
- &GLOBAL-DEFINE DB-REQUIRED-START &IF {&DB-REQUIRED} &THEN
- &GLOBAL-DEFINE DB-REQUIRED-END &ENDIF
- &Scoped-define QUERY-NAME Query-Main
- /* Internal Tables (found by Frame, Query & Browse Queries) */
- &Scoped-define INTERNAL-TABLES Steuer
- /* Definitions for QUERY Query-Main */
- &Scoped-Define ENABLED-FIELDS Firma Firma1 Firma2 Strasse Ort Fwi01 Fwi02 Fwi03 Fwi04 Fwi05 Fwi06 Fwi07~
- Fwi08 Fwi09 Fwi10 Fwc01 Fwc02 Fwc03 Fwc04 Fwc05 Fwc06 Fwc07 Fwc08 Fwc09~
- Fwc10 Fwi11 Fwi12 Fwi13 Fwi14 Fwi15 Fwi16 Fwi17 Fwi18 Fwi19 Fwi20 Fwi21~
- Fwi22 Fwi23 Fwi24 Fwi25 Fwi26 Fwi27 Fwi28 Fwi29 Fwi30
- &Scoped-define ENABLED-FIELDS-IN-Steuer Firma Firma1 Firma2 Strasse Ort ~
- Fwi01 Fwi02 Fwi03 Fwi04 Fwi05 Fwi06 Fwi07 Fwi08 Fwi09 Fwi10 Fwc01 Fwc02 ~
- Fwc03 Fwc04 Fwc05 Fwc06 Fwc07 Fwc08 Fwc09 Fwc10 Fwi11 Fwi12 Fwi13 Fwi14 ~
- Fwi15 Fwi16 Fwi17 Fwi18 Fwi19 Fwi20 Fwi21 Fwi22 Fwi23 Fwi24 Fwi25 Fwi26 ~
- Fwi27 Fwi28 Fwi29 Fwi30
- &Scoped-Define DATA-FIELDS Firma Firma1 Firma2 Strasse Ort Fwi01 Fwi02 Fwi03 Fwi04 Fwi05 Fwi06 Fwi07~
- Fwi08 Fwi09 Fwi10 Fwc01 Fwc02 Fwc03 Fwc04 Fwc05 Fwc06 Fwc07 Fwc08 Fwc09~
- Fwc10 Fwi11 Fwi12 Fwi13 Fwi14 Fwi15 Fwi16 Fwi17 Fwi18 Fwi19 Fwi20 Fwi21~
- Fwi22 Fwi23 Fwi24 Fwi25 Fwi26 Fwi27 Fwi28 Fwi29 Fwi30
- &Scoped-define DATA-FIELDS-IN-Steuer Firma Firma1 Firma2 Strasse Ort Fwi01 ~
- Fwi02 Fwi03 Fwi04 Fwi05 Fwi06 Fwi07 Fwi08 Fwi09 Fwi10 Fwc01 Fwc02 Fwc03 ~
- Fwc04 Fwc05 Fwc06 Fwc07 Fwc08 Fwc09 Fwc10 Fwi11 Fwi12 Fwi13 Fwi14 Fwi15 ~
- Fwi16 Fwi17 Fwi18 Fwi19 Fwi20 Fwi21 Fwi22 Fwi23 Fwi24 Fwi25 Fwi26 Fwi27 ~
- Fwi28 Fwi29 Fwi30
- &Scoped-Define MANDATORY-FIELDS
- &Scoped-Define APPLICATION-SERVICE
- &Scoped-Define ASSIGN-LIST
- &Scoped-Define DATA-FIELD-DEFS "d-mandantfw.i"
- &Scoped-define QUERY-STRING-Query-Main FOR EACH Steuer NO-LOCK INDEXED-REPOSITION
- {&DB-REQUIRED-START}
- &Scoped-define OPEN-QUERY-Query-Main OPEN QUERY Query-Main FOR EACH Steuer NO-LOCK INDEXED-REPOSITION.
- {&DB-REQUIRED-END}
- &Scoped-define TABLES-IN-QUERY-Query-Main Steuer
- &Scoped-define FIRST-TABLE-IN-QUERY-Query-Main Steuer
- /* Custom List Definitions */
- /* List-1,List-2,List-3,List-4,List-5,List-6 */
- /* _UIB-PREPROCESSOR-BLOCK-END */
- &ANALYZE-RESUME
- /* ************************ Function Prototypes ********************** */
- {&DB-REQUIRED-START}
- &ANALYZE-SUSPEND _UIB-CODE-BLOCK _FUNCTION-FORWARD openQuery dTables _DB-REQUIRED
- FUNCTION openQuery RETURNS LOGICAL
- ( /* parameter-definitions */ ) FORWARD.
- /* _UIB-CODE-BLOCK-END */
- &ANALYZE-RESUME
- {&DB-REQUIRED-END}
- /* *********************** Control Definitions ********************** */
- {&DB-REQUIRED-START}
- /* Query definitions */
- &ANALYZE-SUSPEND
- DEFINE QUERY Query-Main FOR
- Steuer SCROLLING.
- &ANALYZE-RESUME
- {&DB-REQUIRED-END}
- /* ************************ Frame Definitions *********************** */
- /* *********************** Procedure Settings ************************ */
- &ANALYZE-SUSPEND _PROCEDURE-SETTINGS
- /* Settings for THIS-PROCEDURE
- Type: SmartDataObject
- Allow: Query
- Frames: 0
- Add Fields to: Neither
- Other Settings: PERSISTENT-ONLY COMPILE APPSERVER DB-AWARE
- */
- /* This procedure should always be RUN PERSISTENT. Report the error, */
- /* then cleanup and return. */
- IF NOT THIS-PROCEDURE:PERSISTENT THEN DO:
- MESSAGE "{&FILE-NAME} should only be RUN PERSISTENT.":U
- VIEW-AS ALERT-BOX ERROR BUTTONS OK.
- RETURN.
- END.
- &ANALYZE-RESUME _END-PROCEDURE-SETTINGS
- /* ************************* Create Window ************************** */
- &ANALYZE-SUSPEND _CREATE-WINDOW
- /* DESIGN Window definition (used by the UIB)
- CREATE WINDOW dTables ASSIGN
- HEIGHT = 1.62
- WIDTH = 71.
- /* END WINDOW DEFINITION */
- */
- &ANALYZE-RESUME
- &ANALYZE-SUSPEND _UIB-CODE-BLOCK _CUSTOM _INCLUDED-LIB dTables
- /* ************************* Included-Libraries *********************** */
- {src/adm2/data.i}
- /* _UIB-CODE-BLOCK-END */
- &ANALYZE-RESUME
- /* *********** Runtime Attributes and AppBuilder Settings *********** */
- &ANALYZE-SUSPEND _RUN-TIME-ATTRIBUTES
- /* SETTINGS FOR WINDOW dTables
- VISIBLE,,RUN-PERSISTENT */
- /* _RUN-TIME-ATTRIBUTES-END */
- &ANALYZE-RESUME
- /* Setting information for Queries and Browse Widgets fields */
- &ANALYZE-SUSPEND _QUERY-BLOCK QUERY Query-Main
- /* Query rebuild information for SmartDataObject Query-Main
- _TblList = "AnaDat.Steuer"
- _Options = "NO-LOCK INDEXED-REPOSITION"
- _FldNameList[1] > AnaDat.Steuer.Firma
- "Firma" "Firma" ? ? "character" ? ? ? ? ? ? yes ? no 8 yes ""
- _FldNameList[2] > AnaDat.Steuer.Firma1
- "Firma1" "Firma1" ? ? "character" ? ? ? ? ? ? yes ? no 25 yes ""
- _FldNameList[3] > AnaDat.Steuer.Firma2
- "Firma2" "Firma2" ? ? "character" ? ? ? ? ? ? yes ? no 25 yes ""
- _FldNameList[4] > AnaDat.Steuer.Strasse
- "Strasse" "Strasse" ? ? "character" ? ? ? ? ? ? yes ? no 25 yes ""
- _FldNameList[5] > AnaDat.Steuer.Ort
- "Ort" "Ort" ? ? "character" ? ? ? ? ? ? yes ? no 25 yes ""
- _FldNameList[6] > AnaDat.Steuer.Fwi01
- "Fwi01" "Fwi01" "Sprcd" ? "integer" ? ? ? ? ? ? yes ? no 7.2 yes ""
- _FldNameList[7] > AnaDat.Steuer.Fwi02
- "Fwi02" "Fwi02" ? ? "integer" ? ? ? ? ? ? yes ? no 7.2 yes ""
- _FldNameList[8] > AnaDat.Steuer.Fwi03
- "Fwi03" "Fwi03" ? ? "integer" ? ? ? ? ? ? yes ? no 7.2 yes ""
- _FldNameList[9] > AnaDat.Steuer.Fwi04
- "Fwi04" "Fwi04" ? ? "integer" ? ? ? ? ? ? yes ? no 7.2 yes ""
- _FldNameList[10] > AnaDat.Steuer.Fwi05
- "Fwi05" "Fwi05" ? ? "integer" ? ? ? ? ? ? yes ? no 7.2 yes ""
- _FldNameList[11] > AnaDat.Steuer.Fwi06
- "Fwi06" "Fwi06" ? ? "integer" ? ? ? ? ? ? yes ? no 7.2 yes ""
- _FldNameList[12] > AnaDat.Steuer.Fwi07
- "Fwi07" "Fwi07" ? ? "integer" ? ? ? ? ? ? yes ? no 7.2 yes ""
- _FldNameList[13] > AnaDat.Steuer.Fwi08
- "Fwi08" "Fwi08" ? ? "integer" ? ? ? ? ? ? yes ? no 7.2 yes ""
- _FldNameList[14] > AnaDat.Steuer.Fwi09
- "Fwi09" "Fwi09" ? ? "integer" ? ? ? ? ? ? yes ? no 7.2 yes ""
- _FldNameList[15] > AnaDat.Steuer.Fwi10
- "Fwi10" "Fwi10" ? ? "integer" ? ? ? ? ? ? yes ? no 7.2 yes ""
- _FldNameList[16] > AnaDat.Steuer.Fwc01
- "Fwc01" "Fwc01" ? ? "character" ? ? ? ? ? ? yes ? no 8 yes ""
- _FldNameList[17] > AnaDat.Steuer.Fwc02
- "Fwc02" "Fwc02" ? ? "character" ? ? ? ? ? ? yes ? no 8 yes ""
- _FldNameList[18] > AnaDat.Steuer.Fwc03
- "Fwc03" "Fwc03" ? ? "character" ? ? ? ? ? ? yes ? no 8 yes ""
- _FldNameList[19] > AnaDat.Steuer.Fwc04
- "Fwc04" "Fwc04" ? ? "character" ? ? ? ? ? ? yes ? no 8 yes ""
- _FldNameList[20] > AnaDat.Steuer.Fwc05
- "Fwc05" "Fwc05" ? ? "character" ? ? ? ? ? ? yes ? no 8 yes ""
- _FldNameList[21] > AnaDat.Steuer.Fwc06
- "Fwc06" "Fwc06" ? ? "character" ? ? ? ? ? ? yes ? no 8 yes ""
- _FldNameList[22] > AnaDat.Steuer.Fwc07
- "Fwc07" "Fwc07" ? ? "character" ? ? ? ? ? ? yes ? no 8 yes ""
- _FldNameList[23] > AnaDat.Steuer.Fwc08
- "Fwc08" "Fwc08" ? ? "character" ? ? ? ? ? ? yes ? no 8 yes ""
- _FldNameList[24] > AnaDat.Steuer.Fwc09
- "Fwc09" "Fwc09" ? ? "character" ? ? ? ? ? ? yes ? no 8 yes ""
- _FldNameList[25] > AnaDat.Steuer.Fwc10
- "Fwc10" "Fwc10" ? ? "character" ? ? ? ? ? ? yes ? no 8 yes ""
- _FldNameList[26] > AnaDat.Steuer.Fwi11
- "Fwi11" "Fwi11" ? ? "integer" ? ? ? ? ? ? yes ? no 7.2 yes ""
- _FldNameList[27] > AnaDat.Steuer.Fwi12
- "Fwi12" "Fwi12" ? ? "integer" ? ? ? ? ? ? yes ? no 7.2 yes ""
- _FldNameList[28] > AnaDat.Steuer.Fwi13
- "Fwi13" "Fwi13" ? ? "integer" ? ? ? ? ? ? yes ? no 7.2 yes ""
- _FldNameList[29] > AnaDat.Steuer.Fwi14
- "Fwi14" "Fwi14" ? ? "integer" ? ? ? ? ? ? yes ? no 7.2 yes ""
- _FldNameList[30] > AnaDat.Steuer.Fwi15
- "Fwi15" "Fwi15" ? ? "integer" ? ? ? ? ? ? yes ? no 7.2 yes ""
- _FldNameList[31] > AnaDat.Steuer.Fwi16
- "Fwi16" "Fwi16" ? ? "integer" ? ? ? ? ? ? yes ? no 7.2 yes ""
- _FldNameList[32] > AnaDat.Steuer.Fwi17
- "Fwi17" "Fwi17" ? ? "integer" ? ? ? ? ? ? yes ? no 7.2 yes ""
- _FldNameList[33] > AnaDat.Steuer.Fwi18
- "Fwi18" "Fwi18" ? ? "integer" ? ? ? ? ? ? yes ? no 7.2 yes ""
- _FldNameList[34] > AnaDat.Steuer.Fwi19
- "Fwi19" "Fwi19" ? ? "integer" ? ? ? ? ? ? yes ? no 7.2 yes ""
- _FldNameList[35] > AnaDat.Steuer.Fwi20
- "Fwi20" "Fwi20" ? ? "integer" ? ? ? ? ? ? yes ? no 7.2 yes ""
- _FldNameList[36] > AnaDat.Steuer.Fwi21
- "Fwi21" "Fwi21" ? ? "integer" ? ? ? ? ? ? yes ? no 7.2 yes ?
- _FldNameList[37] > AnaDat.Steuer.Fwi22
- "Fwi22" "Fwi22" ? ? "integer" ? ? ? ? ? ? yes ? no 7.2 yes ?
- _FldNameList[38] > AnaDat.Steuer.Fwi23
- "Fwi23" "Fwi23" ? ? "integer" ? ? ? ? ? ? yes ? no 7.2 yes ?
- _FldNameList[39] > AnaDat.Steuer.Fwi24
- "Fwi24" "Fwi24" ? ? "integer" ? ? ? ? ? ? yes ? no 7.2 yes ?
- _FldNameList[40] > AnaDat.Steuer.Fwi25
- "Fwi25" "Fwi25" ? ? "integer" ? ? ? ? ? ? yes ? no 7.2 yes ?
- _FldNameList[41] > AnaDat.Steuer.Fwi26
- "Fwi26" "Fwi26" ? ? "integer" ? ? ? ? ? ? yes ? no 7.2 yes ?
- _FldNameList[42] > AnaDat.Steuer.Fwi27
- "Fwi27" "Fwi27" ? ? "integer" ? ? ? ? ? ? yes ? no 7.2 yes ?
- _FldNameList[43] > AnaDat.Steuer.Fwi28
- "Fwi28" "Fwi28" ? ? "integer" ? ? ? ? ? ? yes ? no 7.2 yes ?
- _FldNameList[44] > AnaDat.Steuer.Fwi29
- "Fwi29" "Fwi29" ? ? "integer" ? ? ? ? ? ? yes ? no 7.2 yes ?
- _FldNameList[45] > AnaDat.Steuer.Fwi30
- "Fwi30" "Fwi30" ? ? "integer" ? ? ? ? ? ? yes ? no 7.2 yes ?
- _Design-Parent is WINDOW dTables @ ( 1.14 , 2.6 )
- */ /* QUERY Query-Main */
- &ANALYZE-RESUME
-
- &ANALYZE-SUSPEND _UIB-CODE-BLOCK _CUSTOM _MAIN-BLOCK dTables
- /* *************************** Main Block *************************** */
- SAktiv = DYNAMIC-FUNCTION('getSuperAktiv':U) NO-ERROR.
- IF SAktiv THEN DO:
- Firma = DYNAMIC-FUNCTION('GETMANDANT':U) NO-ERROR.
- END.
- &IF DEFINED(UIB_IS_RUNNING) <> 0 &THEN
- RUN initializeObject.
- &ENDIF
- /* _UIB-CODE-BLOCK-END */
- &ANALYZE-RESUME
- /* ********************** Internal Procedures *********************** */
- &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE disable_UI dTables _DEFAULT-DISABLE
- PROCEDURE disable_UI :
- /*------------------------------------------------------------------------------
- Purpose: DISABLE the User Interface
- Parameters: <none>
- Notes: Here we clean-up the user-interface by deleting
- dynamic widgets we have created and/or hide
- frames. This procedure is usually called when
- we are ready to "clean-up" after running.
- ------------------------------------------------------------------------------*/
- /* Hide all frames. */
- IF THIS-PROCEDURE:PERSISTENT THEN DELETE PROCEDURE THIS-PROCEDURE.
- END PROCEDURE.
- /* _UIB-CODE-BLOCK-END */
- &ANALYZE-RESUME
- /* ************************ Function Implementations ***************** */
- {&DB-REQUIRED-START}
- &ANALYZE-SUSPEND _UIB-CODE-BLOCK _FUNCTION openQuery dTables _DB-REQUIRED
- FUNCTION openQuery RETURNS LOGICAL
- ( /* parameter-definitions */ ) :
- /*------------------------------------------------------------------------------
- Purpose: Super Override
- Notes:
- ------------------------------------------------------------------------------*/
- xWhere = 'Steuer.Firma = "' + Firma + '" '.
- DYNAMIC-FUNCTION('setQueryWhere':U, INPUT xWhere).
-
- /* xSort = ''. */
- /* DYNAMIC-FUNCTION('setQuerySort':U, INPUT xSort). */
-
- /* xWhere = ''. */
- /* DYNAMIC-FUNCTION('setQueryString':U, INPUT xWhere). */
- RETURN SUPER( ).
- END FUNCTION.
- /* _UIB-CODE-BLOCK-END */
- &ANALYZE-RESUME
- {&DB-REQUIRED-END}
|