| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710 |
- &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 --- */
- &SCOPED-DEFINE Tabelle Savze
- &SCOPED-DEFINE TabWhere /* USE-INDEX Benutzer-k1 ~
- WHERE {&Tabelle}.Benutzer = tRowObject.Benutzer
- */
- { incl/datdefinition.i }
- /* _UIB-CODE-BLOCK-END */
- &ANALYZE-RESUME
- &ANALYZE-SUSPEND _UIB-PREPROCESSOR-BLOCK
- /* ******************** Preprocessor Definitions ******************** */
- &Global-define DATA-LOGIC-PROCEDURE .p
- &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 Savze
- /* Definitions for QUERY Query-Main */
- &Scoped-Define ENABLED-FIELDS Firma Aufnr Pos Artnr Inhalt Jahr Bez1 Bez2 Preis Rab_Art Rab_Wert Zus_Art~
- Zus_Wert MBest MGeli MRuek KGeb_Cd VGeb_Cd GGeb_Cd Alk_Gehalt WC Abh_Rab~
- Aktion Aktion_Text Auf_Rab Auf_Sp_Grp Auf_Sp_Proz_Betr Auf_Sp_Rab~
- Auf_Sp_Wert Bru_Betr EP Frw Gewicht GGebKto GGeb_Be GGeb_Me GGeb_Ru KGebKto~
- KGeb_Be KGeb_Me KGeb_Ru Kurs Lager Lag_Buch Liter MKumm MWST% MWST_Inkl~
- Netto Net_Betr Preis_Mut Rab_Betr Rab_Su_Art Rab_Su_Grp Sk_Ber Trnr~
- Verbucht VGebKto VGeb_Be VGeb_Me VGeb_Ru WuCd Zustext1 Zustext2 Zustext3~
- Zustext4 Zustext5 Zustext6 Zustext7 Zustext8 Zustext9 Zustext10 Zus_Betr~
- GGebinde VGebinde KGebinde Bezeichnung
- &Scoped-define ENABLED-FIELDS-IN-Savze Firma Aufnr Pos Artnr Inhalt Jahr ~
- Bez1 Bez2 Preis Rab_Art Rab_Wert Zus_Art Zus_Wert MBest MGeli MRuek KGeb_Cd ~
- VGeb_Cd GGeb_Cd Alk_Gehalt WC Abh_Rab Aktion Aktion_Text Auf_Rab Auf_Sp_Grp ~
- Auf_Sp_Proz_Betr Auf_Sp_Rab Auf_Sp_Wert Bru_Betr EP Frw Gewicht GGebKto ~
- GGeb_Be GGeb_Me GGeb_Ru KGebKto KGeb_Be KGeb_Me KGeb_Ru Kurs Lager Lag_Buch ~
- Liter MKumm MWST% MWST_Inkl Netto Net_Betr Preis_Mut Rab_Betr Rab_Su_Art ~
- Rab_Su_Grp Sk_Ber Trnr Verbucht VGebKto VGeb_Be VGeb_Me VGeb_Ru WuCd ~
- Zustext1 Zustext2 Zustext3 Zustext4 Zustext5 Zustext6 Zustext7 Zustext8 ~
- Zustext9 Zustext10 Zus_Betr
- &Scoped-Define DATA-FIELDS Firma Aufnr Pos Artnr Inhalt Jahr Bez1 Bez2 Preis Rab_Art Rab_Wert Zus_Art~
- Zus_Wert MBest MGeli MRuek KGeb_Cd VGeb_Cd GGeb_Cd Alk_Gehalt WC Abh_Rab~
- Aktion Aktion_Text Auf_Rab Auf_Sp_Grp Auf_Sp_Proz_Betr Auf_Sp_Rab~
- Auf_Sp_Wert Bru_Betr EP Frw Gewicht GGebKto GGeb_Be GGeb_Me GGeb_Ru KGebKto~
- KGeb_Be KGeb_Me KGeb_Ru Kurs Lager Lag_Buch Liter MKumm MWST% MWST_Inkl~
- Netto Net_Betr Preis_Mut Rab_Betr Rab_Su_Art Rab_Su_Grp Sk_Ber Trnr~
- Verbucht VGebKto VGeb_Be VGeb_Me VGeb_Ru WuCd Zustext1 Zustext2 Zustext3~
- Zustext4 Zustext5 Zustext6 Zustext7 Zustext8 Zustext9 Zustext10 Zus_Betr~
- GGebinde VGebinde KGebinde Bezeichnung
- &Scoped-define DATA-FIELDS-IN-Savze Firma Aufnr Pos Artnr Inhalt Jahr Bez1 ~
- Bez2 Preis Rab_Art Rab_Wert Zus_Art Zus_Wert MBest MGeli MRuek KGeb_Cd ~
- VGeb_Cd GGeb_Cd Alk_Gehalt WC Abh_Rab Aktion Aktion_Text Auf_Rab Auf_Sp_Grp ~
- Auf_Sp_Proz_Betr Auf_Sp_Rab Auf_Sp_Wert Bru_Betr EP Frw Gewicht GGebKto ~
- GGeb_Be GGeb_Me GGeb_Ru KGebKto KGeb_Be KGeb_Me KGeb_Ru Kurs Lager Lag_Buch ~
- Liter MKumm MWST% MWST_Inkl Netto Net_Betr Preis_Mut Rab_Betr Rab_Su_Art ~
- Rab_Su_Grp Sk_Ber Trnr Verbucht VGebKto VGeb_Be VGeb_Me VGeb_Ru WuCd ~
- Zustext1 Zustext2 Zustext3 Zustext4 Zustext5 Zustext6 Zustext7 Zustext8 ~
- Zustext9 Zustext10 Zus_Betr
- &Scoped-Define MANDATORY-FIELDS Firma
- &Scoped-Define APPLICATION-SERVICE
- &Scoped-Define ASSIGN-LIST rowObject.Zustext1 = Savze.Zustext[1]~
- rowObject.Zustext2 = Savze.Zustext[2]~
- rowObject.Zustext3 = Savze.Zustext[3]~
- rowObject.Zustext4 = Savze.Zustext[4]~
- rowObject.Zustext5 = Savze.Zustext[5]~
- rowObject.Zustext6 = Savze.Zustext[6]~
- rowObject.Zustext7 = Savze.Zustext[7]~
- rowObject.Zustext8 = Savze.Zustext[8]~
- rowObject.Zustext9 = Savze.Zustext[9]~
- rowObject.Zustext10 = Savze.Zustext[10]
- &Scoped-Define DATA-FIELD-DEFS "d-savze.i"
- &Scoped-Define DATA-TABLE-NO-UNDO NO-UNDO
- &Scoped-define QUERY-STRING-Query-Main FOR EACH Savze NO-LOCK INDEXED-REPOSITION
- {&DB-REQUIRED-START}
- &Scoped-define OPEN-QUERY-Query-Main OPEN QUERY Query-Main FOR EACH Savze NO-LOCK INDEXED-REPOSITION.
- {&DB-REQUIRED-END}
- &Scoped-define TABLES-IN-QUERY-Query-Main Savze
- &Scoped-define FIRST-TABLE-IN-QUERY-Query-Main Savze
- /* 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 getCurrentRecid dTables _DB-REQUIRED
- FUNCTION getCurrentRecid RETURNS RECID
- ( /* parameter-definitions */ ) FORWARD.
- /* _UIB-CODE-BLOCK-END */
- &ANALYZE-RESUME
- {&DB-REQUIRED-END}
- {&DB-REQUIRED-START}
- &ANALYZE-SUSPEND _UIB-CODE-BLOCK _FUNCTION-FORWARD getQueryBuffer dTables _DB-REQUIRED
- FUNCTION getQueryBuffer RETURNS HANDLE
- ( /* parameter-definitions */ ) FORWARD.
- /* _UIB-CODE-BLOCK-END */
- &ANALYZE-RESUME
- {&DB-REQUIRED-END}
- {&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
- Savze 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 = 46.6.
- /* 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.Savze"
- _Options = "NO-LOCK INDEXED-REPOSITION"
- _FldNameList[1] > AnaDat.Savze.Firma
- "Firma" "Firma" ? ? "character" ? ? ? ? ? ? yes ? yes 8 yes ?
- _FldNameList[2] > AnaDat.Savze.Aufnr
- "Aufnr" "Aufnr" ? ? "integer" ? ? ? ? ? ? yes ? no 7.2 yes ?
- _FldNameList[3] > AnaDat.Savze.Pos
- "Pos" "Pos" ? ? "integer" ? ? ? ? ? ? yes ? no 4.8 yes ?
- _FldNameList[4] > AnaDat.Savze.Artnr
- "Artnr" "Artnr" ? ? "integer" ? ? ? ? ? ? yes ? no 7.2 yes ?
- _FldNameList[5] > AnaDat.Savze.Inhalt
- "Inhalt" "Inhalt" ? ? "integer" ? ? ? ? ? ? yes ? no 5.2 yes ?
- _FldNameList[6] > AnaDat.Savze.Jahr
- "Jahr" "Jahr" ? ? "integer" ? ? ? ? ? ? yes ? no 4.8 yes ?
- _FldNameList[7] > AnaDat.Savze.Bez1
- "Bez1" "Bez1" ? ? "character" ? ? ? ? ? ? yes ? no 30 yes ?
- _FldNameList[8] > AnaDat.Savze.Bez2
- "Bez2" "Bez2" ? ? "character" ? ? ? ? ? ? yes ? no 30 yes ?
- _FldNameList[9] > AnaDat.Savze.Preis
- "Preis" "Preis" ? ? "decimal" ? ? ? ? ? ? yes ? no 11 yes ?
- _FldNameList[10] > AnaDat.Savze.Rab_Art
- "Rab_Art" "Rab_Art" ? ? "integer" ? ? ? ? ? ? yes ? no 7.8 yes ?
- _FldNameList[11] > AnaDat.Savze.Rab_Wert
- "Rab_Wert" "Rab_Wert" ? ? "decimal" ? ? ? ? ? ? yes ? no 9.8 yes ?
- _FldNameList[12] > AnaDat.Savze.Zus_Art
- "Zus_Art" "Zus_Art" ? ? "integer" ? ? ? ? ? ? yes ? no 7.4 yes ?
- _FldNameList[13] > AnaDat.Savze.Zus_Wert
- "Zus_Wert" "Zus_Wert" ? ? "decimal" ? ? ? ? ? ? yes ? no 9.4 yes ?
- _FldNameList[14] > AnaDat.Savze.MBest
- "MBest" "MBest" ? ? "decimal" ? ? ? ? ? ? yes ? no 8.8 yes ?
- _FldNameList[15] > AnaDat.Savze.MGeli
- "MGeli" "MGeli" ? ? "decimal" ? ? ? ? ? ? yes ? no 8.8 yes ?
- _FldNameList[16] > AnaDat.Savze.MRuek
- "MRuek" "MRuek" ? ? "decimal" ? ? ? ? ? ? yes ? no 8.8 yes ?
- _FldNameList[17] > AnaDat.Savze.KGeb_Cd
- "KGeb_Cd" "KGeb_Cd" ? ? "character" ? ? ? ? ? ? yes ? no 9.2 yes ?
- _FldNameList[18] > AnaDat.Savze.VGeb_Cd
- "VGeb_Cd" "VGeb_Cd" ? ? "character" ? ? ? ? ? ? yes ? no 9.2 yes ?
- _FldNameList[19] > AnaDat.Savze.GGeb_Cd
- "GGeb_Cd" "GGeb_Cd" ? ? "character" ? ? ? ? ? ? yes ? no 9.4 yes ?
- _FldNameList[20] > AnaDat.Savze.Alk_Gehalt
- "Alk_Gehalt" "Alk_Gehalt" ? ? "decimal" ? ? ? ? ? ? yes ? no 10.4 yes ?
- _FldNameList[21] > AnaDat.Savze.WC
- "WC" "WC" ? ? "integer" ? ? ? ? ? ? yes ? no 3.6 yes ?
- _FldNameList[22] > AnaDat.Savze.Abh_Rab
- "Abh_Rab" "Abh_Rab" ? ? "decimal" ? ? ? ? ? ? yes ? no 12.8 yes ?
- _FldNameList[23] > AnaDat.Savze.Aktion
- "Aktion" "Aktion" ? ? "logical" ? ? ? ? ? ? yes ? no 6 yes ?
- _FldNameList[24] > AnaDat.Savze.Aktion_Text
- "Aktion_Text" "Aktion_Text" ? ? "character" ? ? ? ? ? ? yes ? no 80 yes ?
- _FldNameList[25] > AnaDat.Savze.Auf_Rab
- "Auf_Rab" "Auf_Rab" ? ? "decimal" ? ? ? ? ? ? yes ? no 12.8 yes ?
- _FldNameList[26] > AnaDat.Savze.Auf_Sp_Grp
- "Auf_Sp_Grp" "Auf_Sp_Grp" ? ? "integer" ? ? ? ? ? ? yes ? no 11.6 yes ?
- _FldNameList[27] > AnaDat.Savze.Auf_Sp_Proz_Betr
- "Auf_Sp_Proz_Betr" "Auf_Sp_Proz_Betr" ? ? "logical" ? ? ? ? ? ? yes ? no 17.4 yes ?
- _FldNameList[28] > AnaDat.Savze.Auf_Sp_Rab
- "Auf_Sp_Rab" "Auf_Sp_Rab" ? ? "decimal" ? ? ? ? ? ? yes ? no 12.6 yes ?
- _FldNameList[29] > AnaDat.Savze.Auf_Sp_Wert
- "Auf_Sp_Wert" "Auf_Sp_Wert" ? ? "decimal" ? ? ? ? ? ? yes ? no 12.8 yes ?
- _FldNameList[30] > AnaDat.Savze.Bru_Betr
- "Bru_Betr" "Bru_Betr" ? ? "decimal" ? ? ? ? ? ? yes ? no 15.2 yes ?
- _FldNameList[31] > AnaDat.Savze.EP
- "EP" "EP" ? ? "decimal" ? ? ? ? ? ? yes ? no 12.2 yes ?
- _FldNameList[32] > AnaDat.Savze.Frw
- "Frw" "Frw" ? ? "character" ? ? ? ? ? ? yes ? no 3.4 yes ?
- _FldNameList[33] > AnaDat.Savze.Gewicht
- "Gewicht" "Gewicht" ? ? "decimal" ? ? ? ? ? ? yes ? no 11.6 yes ?
- _FldNameList[34] > AnaDat.Savze.GGebKto
- "GGebKto" "GGebKto" ? ? "character" ? ? ? ? ? ? yes ? no 8.8 yes ?
- _FldNameList[35] > AnaDat.Savze.GGeb_Be
- "GGeb_Be" "GGeb_Be" ? ? "decimal" ? ? ? ? ? ? yes ? no 10.4 yes ?
- _FldNameList[36] > AnaDat.Savze.GGeb_Me
- "GGeb_Me" "GGeb_Me" ? ? "decimal" ? ? ? ? ? ? yes ? no 10.4 yes ?
- _FldNameList[37] > AnaDat.Savze.GGeb_Ru
- "GGeb_Ru" "GGeb_Ru" ? ? "decimal" ? ? ? ? ? ? yes ? no 10.4 yes ?
- _FldNameList[38] > AnaDat.Savze.KGebKto
- "KGebKto" "KGebKto" ? ? "character" ? ? ? ? ? ? yes ? no 8.6 yes ?
- _FldNameList[39] > AnaDat.Savze.KGeb_Be
- "KGeb_Be" "KGeb_Be" ? ? "decimal" ? ? ? ? ? ? yes ? no 10.4 yes ?
- _FldNameList[40] > AnaDat.Savze.KGeb_Me
- "KGeb_Me" "KGeb_Me" ? ? "decimal" ? ? ? ? ? ? yes ? no 10.4 yes ?
- _FldNameList[41] > AnaDat.Savze.KGeb_Ru
- "KGeb_Ru" "KGeb_Ru" ? ? "decimal" ? ? ? ? ? ? yes ? no 10.4 yes ?
- _FldNameList[42] > AnaDat.Savze.Kurs
- "Kurs" "Kurs" ? ? "decimal" ? ? ? ? ? ? yes ? no 9.6 yes ?
- _FldNameList[43] > AnaDat.Savze.Lager
- "Lager" "Lager" ? ? "integer" ? ? ? ? ? ? yes ? no 5.4 yes ?
- _FldNameList[44] > AnaDat.Savze.Lag_Buch
- "Lag_Buch" "Lag_Buch" ? ? "logical" ? ? ? ? ? ? yes ? no 9.8 yes ?
- _FldNameList[45] > AnaDat.Savze.Liter
- "Liter" "Liter" ? ? "decimal" ? ? ? ? ? ? yes ? no 11.6 yes ?
- _FldNameList[46] > AnaDat.Savze.MKumm
- "MKumm" "MKumm" ? ? "decimal" ? ? ? ? ? ? yes ? no 8.8 yes ?
- _FldNameList[47] > AnaDat.Savze.MWST%
- "MWST%" "MWST%" ? ? "decimal" ? ? ? ? ? ? yes ? no 8.4 yes ?
- _FldNameList[48] > AnaDat.Savze.MWST_Inkl
- "MWST_Inkl" "MWST_Inkl" ? ? "logical" ? ? ? ? ? ? yes ? no 11.4 yes ?
- _FldNameList[49] > AnaDat.Savze.Netto
- "Netto" "Netto" ? ? "logical" ? ? ? ? ? ? yes ? no 5.2 yes ?
- _FldNameList[50] > AnaDat.Savze.Net_Betr
- "Net_Betr" "Net_Betr" ? ? "decimal" ? ? ? ? ? ? yes ? no 15.2 yes ?
- _FldNameList[51] > AnaDat.Savze.Preis_Mut
- "Preis_Mut" "Preis_Mut" ? ? "logical" ? ? ? ? ? ? yes ? no 9.4 yes ?
- _FldNameList[52] > AnaDat.Savze.Rab_Betr
- "Rab_Betr" "Rab_Betr" ? ? "decimal" ? ? ? ? ? ? yes ? no 12.8 yes ?
- _FldNameList[53] > AnaDat.Savze.Rab_Su_Art
- "Rab_Su_Art" "Rab_Su_Art" ? ? "integer" ? ? ? ? ? ? yes ? no 11.6 yes ?
- _FldNameList[54] > AnaDat.Savze.Rab_Su_Grp
- "Rab_Su_Grp" "Rab_Su_Grp" ? ? "integer" ? ? ? ? ? ? yes ? no 12.4 yes ?
- _FldNameList[55] > AnaDat.Savze.Sk_Ber
- "Sk_Ber" "Sk_Ber" ? ? "logical" ? ? ? ? ? ? yes ? no 7 yes ?
- _FldNameList[56] > AnaDat.Savze.Trnr
- "Trnr" "Trnr" ? ? "integer" ? ? ? ? ? ? yes ? no 9.6 yes ?
- _FldNameList[57] > AnaDat.Savze.Verbucht
- "Verbucht" "Verbucht" ? ? "logical" ? ? ? ? ? ? yes ? no 8.6 yes ?
- _FldNameList[58] > AnaDat.Savze.VGebKto
- "VGebKto" "VGebKto" ? ? "character" ? ? ? ? ? ? yes ? no 8.6 yes ?
- _FldNameList[59] > AnaDat.Savze.VGeb_Be
- "VGeb_Be" "VGeb_Be" ? ? "decimal" ? ? ? ? ? ? yes ? no 10.4 yes ?
- _FldNameList[60] > AnaDat.Savze.VGeb_Me
- "VGeb_Me" "VGeb_Me" ? ? "decimal" ? ? ? ? ? ? yes ? no 10.4 yes ?
- _FldNameList[61] > AnaDat.Savze.VGeb_Ru
- "VGeb_Ru" "VGeb_Ru" ? ? "decimal" ? ? ? ? ? ? yes ? no 10.4 yes ?
- _FldNameList[62] > AnaDat.Savze.WuCd
- "WuCd" "WuCd" ? ? "integer" ? ? ? ? ? ? yes ? no 6 yes ?
- _FldNameList[63] > AnaDat.Savze.Zustext[1]
- "Zustext[1]" "Zustext1" ? ? "character" ? ? ? ? ? ? yes ? no 30 yes ?
- _FldNameList[64] > AnaDat.Savze.Zustext[2]
- "Zustext[2]" "Zustext2" ? ? "character" ? ? ? ? ? ? yes ? no 30 yes ?
- _FldNameList[65] > AnaDat.Savze.Zustext[3]
- "Zustext[3]" "Zustext3" ? ? "character" ? ? ? ? ? ? yes ? no 30 yes ?
- _FldNameList[66] > AnaDat.Savze.Zustext[4]
- "Zustext[4]" "Zustext4" ? ? "character" ? ? ? ? ? ? yes ? no 30 yes ?
- _FldNameList[67] > AnaDat.Savze.Zustext[5]
- "Zustext[5]" "Zustext5" ? ? "character" ? ? ? ? ? ? yes ? no 30 yes ?
- _FldNameList[68] > AnaDat.Savze.Zustext[6]
- "Zustext[6]" "Zustext6" ? ? "character" ? ? ? ? ? ? yes ? no 30 yes ?
- _FldNameList[69] > AnaDat.Savze.Zustext[7]
- "Zustext[7]" "Zustext7" ? ? "character" ? ? ? ? ? ? yes ? no 30 yes ?
- _FldNameList[70] > AnaDat.Savze.Zustext[8]
- "Zustext[8]" "Zustext8" ? ? "character" ? ? ? ? ? ? yes ? no 30 yes ?
- _FldNameList[71] > AnaDat.Savze.Zustext[9]
- "Zustext[9]" "Zustext9" ? ? "character" ? ? ? ? ? ? yes ? no 30 yes ?
- _FldNameList[72] > AnaDat.Savze.Zustext[10]
- "Zustext[10]" "Zustext10" ? ? "character" ? ? ? ? ? ? yes ? no 30 yes ?
- _FldNameList[73] > AnaDat.Savze.Zus_Betr
- "Zus_Betr" "Zus_Betr" ? ? "decimal" ? ? ? ? ? ? yes ? no 12.8 yes ?
- _FldNameList[74] > "_<CALC>"
- "DYNAMIC-FUNCTION('getGGebindeKBez':U, RowObject.GGeb_Cd)" "GGebinde" ? "x(12)" "character" ? ? ? ? ? ? yes ? no 12 no ?
- _FldNameList[75] > "_<CALC>"
- "DYNAMIC-FUNCTION('getVGebindeKBez':U, RowObject.VGeb_Cd)" "VGebinde" ? "x(12)" "character" ? ? ? ? ? ? yes ? no 12 no ?
- _FldNameList[76] > "_<CALC>"
- "DYNAMIC-FUNCTION('getKGebindeKBez':U, RowObject.KGeb_Cd)" "KGebinde" ? "x(12)" "character" ? ? ? ? ? ? yes ? no 12 no ?
- _FldNameList[77] > "_<CALC>"
- "TRIM(RowObject.Bez1 + ' ' + RowObject.Bez2)" "Bezeichnung" "Artikel" "x(40)" "character" ? ? ? ? ? ? yes ? no 40 no ?
- _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 *************************** */
- { incl/datmainblock.i }
- &IF DEFINED(UIB_IS_RUNNING) <> 0 &THEN
- RUN initializeObject.
- &ENDIF
- /* _UIB-CODE-BLOCK-END */
- &ANALYZE-RESUME
- /* ********************** Internal Procedures *********************** */
- {&DB-REQUIRED-START}
- &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE DATA.CALCULATE dTables DATA.CALCULATE _DB-REQUIRED
- PROCEDURE DATA.CALCULATE :
- /*------------------------------------------------------------------------------
- Purpose: Calculate all the Calculated Expressions found in the
- SmartDataObject.
- Parameters: <none>
- ------------------------------------------------------------------------------*/
- ASSIGN
- rowObject.Bezeichnung = (TRIM(RowObject.Bez1 + ' ' + RowObject.Bez2))
- rowObject.GGebinde = (DYNAMIC-FUNCTION('getGGebindeKBez':U, RowObject.GGeb_Cd))
- rowObject.KGebinde = (DYNAMIC-FUNCTION('getKGebindeKBez':U, RowObject.KGeb_Cd))
- rowObject.VGebinde = (DYNAMIC-FUNCTION('getVGebindeKBez':U, RowObject.VGeb_Cd))
- .
- END PROCEDURE.
- /* _UIB-CODE-BLOCK-END */
- &ANALYZE-RESUME
- {&DB-REQUIRED-END}
- {&DB-REQUIRED-START}
- &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE dataAvailable dTables _DB-REQUIRED
- PROCEDURE dataAvailable :
- /*------------------------------------------------------------------------------
- Purpose: Super Override
- Parameters:
- Notes:
- ------------------------------------------------------------------------------*/
- { incl/datdataavailable.i }
- END PROCEDURE.
- /* _UIB-CODE-BLOCK-END */
- &ANALYZE-RESUME
- {&DB-REQUIRED-END}
- &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
- {&DB-REQUIRED-START}
- &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE INAKTIVIEREN dTables _DB-REQUIRED
- PROCEDURE INAKTIVIEREN :
- /*------------------------------------------------------------------------------
- Purpose:
- Parameters: <none>
- Notes:
- ------------------------------------------------------------------------------*/
- { incl/datinaktivieren.i }
- END PROCEDURE.
- /* _UIB-CODE-BLOCK-END */
- &ANALYZE-RESUME
- {&DB-REQUIRED-END}
- {&DB-REQUIRED-START}
- &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE initializeObject dTables _DB-REQUIRED
- PROCEDURE initializeObject :
- /*------------------------------------------------------------------------------
- Purpose: Super Override
- Parameters:
- Notes:
- ------------------------------------------------------------------------------*/
- { incl/datinitialize.i }
- END PROCEDURE.
- /* _UIB-CODE-BLOCK-END */
- &ANALYZE-RESUME
- {&DB-REQUIRED-END}
- {&DB-REQUIRED-START}
- &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE REAKTIVIEREN dTables _DB-REQUIRED
- PROCEDURE REAKTIVIEREN :
- /*------------------------------------------------------------------------------
- Purpose:
- Parameters: <none>
- Notes:
- ------------------------------------------------------------------------------*/
- { incl/datreaktivieren.i }
- END PROCEDURE.
- /* _UIB-CODE-BLOCK-END */
- &ANALYZE-RESUME
- {&DB-REQUIRED-END}
- {&DB-REQUIRED-START}
- &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE REPOS_TABELLE dTables _DB-REQUIRED
- PROCEDURE REPOS_TABELLE :
- /*------------------------------------------------------------------------------
- Purpose:
- Parameters: <none>
- Notes:
- ------------------------------------------------------------------------------*/
- { incl/datrepos.i }
- END PROCEDURE.
- /* _UIB-CODE-BLOCK-END */
- &ANALYZE-RESUME
- {&DB-REQUIRED-END}
- {&DB-REQUIRED-START}
- &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE SET_FILTER dTables _DB-REQUIRED
- PROCEDURE SET_FILTER :
- /*------------------------------------------------------------------------------
- Purpose:
- Parameters: <none>
- Notes:
- ------------------------------------------------------------------------------*/
- { incl/datsetfilter.i }
- END PROCEDURE.
- /* _UIB-CODE-BLOCK-END */
- &ANALYZE-RESUME
- {&DB-REQUIRED-END}
- {&DB-REQUIRED-START}
- &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE SET_OPENFLAG dTables _DB-REQUIRED
- PROCEDURE SET_OPENFLAG :
- /*------------------------------------------------------------------------------
- Purpose:
- Parameters: <none>
- Notes:
- ------------------------------------------------------------------------------*/
- { incl/datsetopenflag.i }
- END PROCEDURE.
- /* _UIB-CODE-BLOCK-END */
- &ANALYZE-RESUME
- {&DB-REQUIRED-END}
- {&DB-REQUIRED-START}
- &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE SET_SORT dTables _DB-REQUIRED
- PROCEDURE SET_SORT :
- /*------------------------------------------------------------------------------
- Purpose:
- Parameters: <none>
- Notes:
- ------------------------------------------------------------------------------*/
- { incl/datsetsort.i }
- END PROCEDURE.
- /* _UIB-CODE-BLOCK-END */
- &ANALYZE-RESUME
- {&DB-REQUIRED-END}
- /* ************************ Function Implementations ***************** */
- {&DB-REQUIRED-START}
- &ANALYZE-SUSPEND _UIB-CODE-BLOCK _FUNCTION getCurrentRecid dTables _DB-REQUIRED
- FUNCTION getCurrentRecid RETURNS RECID
- ( /* parameter-definitions */ ) :
- /*------------------------------------------------------------------------------
- Purpose:
- Notes:
- ------------------------------------------------------------------------------*/
- { incl/datgetcurrentrecid.i }
- END FUNCTION.
- /* _UIB-CODE-BLOCK-END */
- &ANALYZE-RESUME
- {&DB-REQUIRED-END}
- {&DB-REQUIRED-START}
- &ANALYZE-SUSPEND _UIB-CODE-BLOCK _FUNCTION getQueryBuffer dTables _DB-REQUIRED
- FUNCTION getQueryBuffer RETURNS HANDLE
- ( /* parameter-definitions */ ) :
- /*------------------------------------------------------------------------------
- Purpose:
- Notes:
- ------------------------------------------------------------------------------*/
- RETURN BUFFER rowObject:HANDLE.
- END FUNCTION.
- /* _UIB-CODE-BLOCK-END */
- &ANALYZE-RESUME
- {&DB-REQUIRED-END}
- {&DB-REQUIRED-START}
- &ANALYZE-SUSPEND _UIB-CODE-BLOCK _FUNCTION openQuery dTables _DB-REQUIRED
- FUNCTION openQuery RETURNS LOGICAL
- ( /* parameter-definitions */ ) :
- /*------------------------------------------------------------------------------
- Purpose: Super Override
- Notes:
- ------------------------------------------------------------------------------*/
- DEF VAR Felder AS CHAR NO-UNDO.
- DEF VAR Inhalt AS CHAR NO-UNDO.
- DEF VAR ix AS INT NO-UNDO.
- DEF VAR cFeld AS CHAR NO-UNDO.
- /* IF NOT fOpen THEN RETURN FALSE. */
- xWhere = ''.
- xSort = ''.
- xString = ''.
- Felder = DYNAMIC-FUNCTION('getForeignFields':U) NO-ERROR.
- Inhalt = DYNAMIC-FUNCTION('getForeignValues':U) NO-ERROR.
- /* ix = LOOKUP('Feld', Felder, ',') / 2. */
- /* cFeld = ENTRY (ix , Inhalt, CHR(01)). */
- /* xWhere = 'Aufko.Firma = ' + QUOTER(Firma) + ' AND ' */
- /* + 'Aufko.Auf_Sta = ' + STRING(Auf_Sta) + ' '. */
- /* xString = 'FOR EACH Debop ' + xSort + 'WHERE ' */
- /* + 'Debop.Firma = "' + Firma + '" AND ' */
- /* + 'Debop.Knr = ' + STRING(Knr) + ' ' */
- /* + 'NO-LOCK BY Debop.FakDat DESCENDING INDEXED-REPOSITION '. */
- { incl/datopenquery.i }
- IF xWhere <> '' THEN DYNAMIC-FUNCTION('setQueryWhere':U , INPUT xWhere ).
- IF xString <> '' THEN DYNAMIC-FUNCTION('setQueryString':U, INPUT xString).
- IF xSort <> '' THEN DYNAMIC-FUNCTION('setQuerySort':U , INPUT xSort ).
- RETURN SUPER( ).
- END FUNCTION.
- /* _UIB-CODE-BLOCK-END */
- &ANALYZE-RESUME
- {&DB-REQUIRED-END}
|