| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565 |
- &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 Debst
- &SCOPED-DEFINE TabWhere USE-INDEX Debst-k1 ~
- WHERE {&Tabelle}.Firma = tRowObject.Firma ~
- AND {&Tabelle}.Knr = tRowObject.Knr
-
- { incl/datdefinition.i }
- /* _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 Debst
- /* Definitions for QUERY Query-Main */
- &Scoped-Define ENABLED-FIELDS Firma Knr Vertr Ku_Grp Preis_Grp Bonus_Grp Rab_Grp ABC_Grp Fak_Art Bier_Cd~
- Wirt_So Wirt_So_Text Ablad_Vor Ablad_Vor_Text Tour_Nr1 Tour_Nr2 Kond MWSt~
- Geb_Rg Passant Mahn KnrFak KnrLie MWST_Nr Konto Kred_Lim LetztVK~
- Abh_Rab_Art Abh_Rab_Wert Auf_Rab_Art Auf_Rab_Wert Zei_Rab_Art Zei_Rab_Wert~
- Zuschl_Art Zuschl_Betr Zuschl_Verr Zuschl_Wert Bemerk Auf_Text Bar_Text~
- Lief_Art Lief_Bed Region Verband_Grp Verband_Nr Avis Fak_FTnr Fak_KTnr~
- AKonto Skonto Saldo Saldo_FRW FRW Filiale Aktiv Fak_Adresse BESR_Art~
- Lief_Adresse Kred_Lim_Vers Lager Subverband_Grp AbladeBild DokumentStatus~
- esAktiv esBenutzer esMail esPasswort Liefertag BestBis_1 BestBis_2
- &Scoped-define ENABLED-FIELDS-IN-Debst Firma Knr Vertr Ku_Grp Preis_Grp ~
- Bonus_Grp Rab_Grp ABC_Grp Fak_Art Bier_Cd Wirt_So Wirt_So_Text Ablad_Vor ~
- Ablad_Vor_Text Tour_Nr1 Tour_Nr2 Kond MWSt Geb_Rg Passant Mahn KnrFak ~
- KnrLie MWST_Nr Konto Kred_Lim LetztVK Abh_Rab_Art Abh_Rab_Wert Auf_Rab_Art ~
- Auf_Rab_Wert Zei_Rab_Art Zei_Rab_Wert Zuschl_Art Zuschl_Betr Zuschl_Verr ~
- Zuschl_Wert Bemerk Auf_Text Bar_Text Lief_Art Lief_Bed Region Verband_Grp ~
- Verband_Nr Avis Fak_FTnr Fak_KTnr AKonto Skonto Saldo Saldo_FRW FRW Filiale ~
- Aktiv BESR_Art Kred_Lim_Vers Lager Subverband_Grp AbladeBild DokumentStatus ~
- esAktiv esBenutzer esMail esPasswort Liefertag BestBis_1 BestBis_2
- &Scoped-Define DATA-FIELDS Firma Knr Vertr Ku_Grp Preis_Grp Bonus_Grp Rab_Grp ABC_Grp Fak_Art Bier_Cd~
- Wirt_So Wirt_So_Text Ablad_Vor Ablad_Vor_Text Tour_Nr1 Tour_Nr2 Kond MWSt~
- Geb_Rg Passant Mahn KnrFak KnrLie MWST_Nr Konto Kred_Lim LetztVK~
- Abh_Rab_Art Abh_Rab_Wert Auf_Rab_Art Auf_Rab_Wert Zei_Rab_Art Zei_Rab_Wert~
- Zuschl_Art Zuschl_Betr Zuschl_Verr Zuschl_Wert Bemerk Auf_Text Bar_Text~
- Lief_Art Lief_Bed Region Verband_Grp Verband_Nr Avis Fak_FTnr Fak_KTnr~
- AKonto Skonto Saldo Saldo_FRW FRW Filiale Aktiv Fak_Adresse BESR_Art~
- Lief_Adresse Kred_Lim_Vers Lager Subverband_Grp AbladeBild DokumentStatus~
- esAktiv esBenutzer esMail esPasswort Liefertag BestBis_1 BestBis_2
- &Scoped-define DATA-FIELDS-IN-Debst Firma Knr Vertr Ku_Grp Preis_Grp ~
- Bonus_Grp Rab_Grp ABC_Grp Fak_Art Bier_Cd Wirt_So Wirt_So_Text Ablad_Vor ~
- Ablad_Vor_Text Tour_Nr1 Tour_Nr2 Kond MWSt Geb_Rg Passant Mahn KnrFak ~
- KnrLie MWST_Nr Konto Kred_Lim LetztVK Abh_Rab_Art Abh_Rab_Wert Auf_Rab_Art ~
- Auf_Rab_Wert Zei_Rab_Art Zei_Rab_Wert Zuschl_Art Zuschl_Betr Zuschl_Verr ~
- Zuschl_Wert Bemerk Auf_Text Bar_Text Lief_Art Lief_Bed Region Verband_Grp ~
- Verband_Nr Avis Fak_FTnr Fak_KTnr AKonto Skonto Saldo Saldo_FRW FRW Filiale ~
- Aktiv BESR_Art Kred_Lim_Vers Lager Subverband_Grp AbladeBild DokumentStatus ~
- esAktiv esBenutzer esMail esPasswort Liefertag BestBis_1 BestBis_2
- &Scoped-Define MANDATORY-FIELDS
- &Scoped-Define APPLICATION-SERVICE
- &Scoped-Define ASSIGN-LIST
- &Scoped-Define DATA-FIELD-DEFS "d-debst.i"
- &Scoped-define QUERY-STRING-Query-Main FOR EACH Debst NO-LOCK INDEXED-REPOSITION
- {&DB-REQUIRED-START}
- &Scoped-define OPEN-QUERY-Query-Main OPEN QUERY Query-Main FOR EACH Debst NO-LOCK INDEXED-REPOSITION.
- {&DB-REQUIRED-END}
- &Scoped-define TABLES-IN-QUERY-Query-Main Debst
- &Scoped-define FIRST-TABLE-IN-QUERY-Query-Main Debst
- /* 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
- Debst 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.Debst"
- _Options = "NO-LOCK INDEXED-REPOSITION"
- _FldNameList[1] > AnaDat.Debst.Firma
- "Firma" "Firma" ? ? "character" ? ? ? ? ? ? yes ? no 8.4 yes ""
- _FldNameList[2] > AnaDat.Debst.Knr
- "Knr" "Knr" ? ? "integer" ? ? ? ? ? ? yes ? no 8.4 yes ""
- _FldNameList[3] > AnaDat.Debst.Vertr
- "Vertr" "Vertr" ? ? "integer" ? ? ? ? ? ? yes ? no 4.4 yes ""
- _FldNameList[4] > AnaDat.Debst.Ku_Grp
- "Ku_Grp" "Ku_Grp" ? ? "integer" ? ? ? ? ? ? yes ? no 7.2 yes ""
- _FldNameList[5] > AnaDat.Debst.Preis_Grp
- "Preis_Grp" "Preis_Grp" ? ? "integer" ? ? ? ? ? ? yes ? no 9.2 yes ""
- _FldNameList[6] > AnaDat.Debst.Bonus_Grp
- "Bonus_Grp" "Bonus_Grp" ? ? "integer" ? ? ? ? ? ? yes ? no 10.6 yes ""
- _FldNameList[7] > AnaDat.Debst.Rab_Grp
- "Rab_Grp" "Rab_Grp" ? ? "integer" ? ? ? ? ? ? yes ? no 8.6 yes ""
- _FldNameList[8] > AnaDat.Debst.ABC_Grp
- "ABC_Grp" "ABC_Grp" ? ? "integer" ? ? ? ? ? ? yes ? no 8.8 yes ""
- _FldNameList[9] > AnaDat.Debst.Fak_Art
- "Fak_Art" "Fak_Art" ? ? "integer" ? ? ? ? ? ? yes ? no 7.4 yes ""
- _FldNameList[10] > AnaDat.Debst.Bier_Cd
- "Bier_Cd" "Bier_Cd" ? ? "integer" ? ? ? ? ? ? yes ? no 7.4 yes ""
- _FldNameList[11] > AnaDat.Debst.Wirt_So
- "Wirt_So" "Wirt_So" ? ? "integer" ? ? ? ? ? ? yes ? no 7.6 yes ""
- _FldNameList[12] > AnaDat.Debst.Wirt_So_Text
- "Wirt_So_Text" "Wirt_So_Text" ? ? "character" ? ? ? ? ? ? yes ? no 40 yes ""
- _FldNameList[13] > AnaDat.Debst.Ablad_Vor
- "Ablad_Vor" "Ablad_Vor" ? ? "integer" ? ? ? ? ? ? yes ? no 9.8 yes ""
- _FldNameList[14] > AnaDat.Debst.Ablad_Vor_Text
- "Ablad_Vor_Text" "Ablad_Vor_Text" ? ? "character" ? ? ? ? ? ? yes ? no 40 yes ""
- _FldNameList[15] > AnaDat.Debst.Tour_Nr1
- "Tour_Nr1" "Tour_Nr1" ? ? "integer" ? ? ? ? ? ? yes ? no 9 yes ""
- _FldNameList[16] > AnaDat.Debst.Tour_Nr2
- "Tour_Nr2" "Tour_Nr2" ? ? "character" ? ? ? ? ? ? yes ? no 20 yes ""
- _FldNameList[17] > AnaDat.Debst.Kond
- "Kond" "Kond" ? ? "integer" ? ? ? ? ? ? yes ? no 5 yes ""
- _FldNameList[18] > AnaDat.Debst.MWSt
- "MWSt" "MWSt" ? ? "integer" ? ? ? ? ? ? yes ? no 6 yes ""
- _FldNameList[19] > AnaDat.Debst.Geb_Rg
- "Geb_Rg" "Geb_Rg" ? ? "logical" ? ? ? ? ? ? yes ? no 8 yes ""
- _FldNameList[20] > AnaDat.Debst.Passant
- "Passant" "Passant" ? ? "logical" ? ? ? ? ? ? yes ? no 7.6 yes ""
- _FldNameList[21] > AnaDat.Debst.Mahn
- "Mahn" "Mahn" ? ? "integer" ? ? ? ? ? ? yes ? no 5.4 yes ""
- _FldNameList[22] > AnaDat.Debst.KnrFak
- "KnrFak" "KnrFak" ? ? "integer" ? ? ? ? ? ? yes ? no 7.2 yes ""
- _FldNameList[23] > AnaDat.Debst.KnrLie
- "KnrLie" "KnrLie" "KnrLie" ? "integer" ? ? ? ? ? ? yes ? no 7.8 yes ""
- _FldNameList[24] > AnaDat.Debst.MWST_Nr
- "MWST_Nr" "MWST_Nr" ? ? "character" ? ? ? ? ? ? yes ? no 15 yes ""
- _FldNameList[25] > AnaDat.Debst.Konto
- "Konto" "Konto" ? ? "character" ? ? ? ? ? ? yes ? no 12 yes ""
- _FldNameList[26] > AnaDat.Debst.Kred_Lim
- "Kred_Lim" "Kred_Lim" ? ? "integer" ? ? ? ? ? ? yes ? no 10.4 yes ""
- _FldNameList[27] > AnaDat.Debst.LetztVK
- "LetztVK" "LetztVK" ? ? "date" ? ? ? ? ? ? yes ? no 10.8 yes ""
- _FldNameList[28] > AnaDat.Debst.Abh_Rab_Art
- "Abh_Rab_Art" "Abh_Rab_Art" ? ? "integer" ? ? ? ? ? ? yes ? no 12.8 yes ""
- _FldNameList[29] > AnaDat.Debst.Abh_Rab_Wert
- "Abh_Rab_Wert" "Abh_Rab_Wert" ? ? "decimal" ? ? ? ? ? ? yes ? no 14.8 yes ""
- _FldNameList[30] > AnaDat.Debst.Auf_Rab_Art
- "Auf_Rab_Art" "Auf_Rab_Art" ? ? "integer" ? ? ? ? ? ? yes ? no 12.2 yes ""
- _FldNameList[31] > AnaDat.Debst.Auf_Rab_Wert
- "Auf_Rab_Wert" "Auf_Rab_Wert" ? ? "decimal" ? ? ? ? ? ? yes ? no 14.2 yes ""
- _FldNameList[32] > AnaDat.Debst.Zei_Rab_Art
- "Zei_Rab_Art" "Zei_Rab_Art" ? ? "integer" ? ? ? ? ? ? yes ? no 12 yes ""
- _FldNameList[33] > AnaDat.Debst.Zei_Rab_Wert
- "Zei_Rab_Wert" "Zei_Rab_Wert" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ""
- _FldNameList[34] > AnaDat.Debst.Zuschl_Art
- "Zuschl_Art" "Zuschl_Art" ? ? "integer" ? ? ? ? ? ? yes ? no 10.2 yes ""
- _FldNameList[35] > AnaDat.Debst.Zuschl_Betr
- "Zuschl_Betr" "Zuschl_Betr" ? ? "decimal" ? ? ? ? ? ? yes ? no 12.8 yes ""
- _FldNameList[36] > AnaDat.Debst.Zuschl_Verr
- "Zuschl_Verr" "Zuschl_Verr" ? ? "decimal" ? ? ? ? ? ? yes ? no 12.8 yes ""
- _FldNameList[37] > AnaDat.Debst.Zuschl_Wert
- "Zuschl_Wert" "Zuschl_Wert" ? ? "decimal" ? ? ? ? ? ? yes ? no 12.2 yes ""
- _FldNameList[38] > AnaDat.Debst.Bemerk
- "Bemerk" "Bemerk" ? ? "character" ? ? ? ? ? ? yes ? no 500 yes ""
- _FldNameList[39] > AnaDat.Debst.Auf_Text
- "Auf_Text" "Auf_Text" ? ? "character" ? ? ? ? ? ? yes ? no 500 yes ""
- _FldNameList[40] > AnaDat.Debst.Bar_Text
- "Bar_Text" "Bar_Text" ? ? "character" ? ? ? ? ? ? yes ? no 500 yes ""
- _FldNameList[41] > AnaDat.Debst.Lief_Art
- "Lief_Art" "Lief_Art" ? ? "integer" ? ? ? ? ? ? yes ? no 7.2 yes ""
- _FldNameList[42] > AnaDat.Debst.Lief_Bed
- "Lief_Bed" "Lief_Bed" ? ? "integer" ? ? ? ? ? ? yes ? no 8.4 yes ""
- _FldNameList[43] > AnaDat.Debst.Region
- "Region" "Region" ? ? "integer" ? ? ? ? ? ? yes ? no 6.8 yes ""
- _FldNameList[44] > AnaDat.Debst.Verband_Grp
- "Verband_Grp" "Verband_Grp" ? ? "integer" ? ? ? ? ? ? yes ? no 12.6 yes ""
- _FldNameList[45] > AnaDat.Debst.Verband_Nr
- "Verband_Nr" "Verband_Nr" ? ? "character" ? ? ? ? ? ? yes ? no 11.4 yes ""
- _FldNameList[46] > AnaDat.Debst.Avis
- "Avis" "Avis" ? ? "integer" ? ? ? ? ? ? yes ? no 4 yes ""
- _FldNameList[47] > AnaDat.Debst.Fak_FTnr
- "Fak_FTnr" "Fak_FTnr" ? ? "integer" ? ? ? ? ? ? yes ? no 9.2 yes ""
- _FldNameList[48] > AnaDat.Debst.Fak_KTnr
- "Fak_KTnr" "Fak_KTnr" ? ? "integer" ? ? ? ? ? ? yes ? no 9.4 yes ""
- _FldNameList[49] > AnaDat.Debst.AKonto
- "AKonto" "AKonto" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ""
- _FldNameList[50] > AnaDat.Debst.Skonto
- "Skonto" "Skonto" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ""
- _FldNameList[51] > AnaDat.Debst.Saldo
- "Saldo" "Saldo" ? ? "decimal" ? ? ? ? ? ? yes ? no 12 yes ""
- _FldNameList[52] > AnaDat.Debst.Saldo_FRW
- "Saldo_FRW" "Saldo_FRW" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ""
- _FldNameList[53] > AnaDat.Debst.FRW
- "FRW" "FRW" ? ? "character" ? ? ? ? ? ? yes ? no 5 yes ""
- _FldNameList[54] > AnaDat.Debst.Filiale
- "Filiale" "Filiale" ? ? "integer" ? ? ? ? ? ? yes ? no 5.2 yes ""
- _FldNameList[55] > AnaDat.Debst.Aktiv
- "Aktiv" "Aktiv" ? ? "logical" ? ? ? ? ? ? yes ? no 4.8 yes ""
- _FldNameList[56] > "_<CALC>"
- "IF (RowObject.KnrFak = 0) THEN ("""") ELSE (DYNAMIC-FUNCTION('GETADRESSEANZEIGEBR':U, INPUT RowObject.Knr, INPUT 1))" "Fak_Adresse" "Fakturaadresse" "x(60)" "character" ? ? ? ? ? ? yes ? no 60 no ?
- _FldNameList[57] > AnaDat.Debst.BESR_Art
- "BESR_Art" "BESR_Art" "BESR" ? "integer" ? ? ? ? ? ? yes ? no 9.6 yes ""
- _FldNameList[58] > "_<CALC>"
- "IF (RowObject.KnrLie = 0) THEN ("""") ELSE (DYNAMIC-FUNCTION('GETADRESSEANZEIGEBR':U, INPUT RowObject.Knr, INPUT 2 ))" "Lief_Adresse" "Lieferadresse" "x(60)" "character" ? ? ? ? ? ? yes ? no 60 no ?
- _FldNameList[59] > AnaDat.Debst.Kred_Lim_Vers
- "Kred_Lim_Vers" "Kred_Lim_Vers" "Kreditlimite Versich" ? "integer" ? ? ? ? ? ? yes ? no 14.2 yes ""
- _FldNameList[60] > AnaDat.Debst.Lager
- "Lager" "Lager" ? ? "integer" ? ? ? ? ? ? yes ? no 5.4 yes ?
- _FldNameList[61] > AnaDat.Debst.Subverband_Grp
- "Subverband_Grp" "Subverband_Grp" ? ? "integer" ? ? ? ? ? ? yes ? no 16.2 yes ?
- _FldNameList[62] > AnaDat.Debst.AbladeBild
- "AbladeBild" "AbladeBild" ? ? "character" ? ? ? ? ? ? yes ? no 60 yes ?
- _FldNameList[63] > AnaDat.Debst.DokumentStatus
- "DokumentStatus" "DokumentStatus" ? ? "integer" ? ? ? ? ? ? yes ? no 15.8 yes ?
- _FldNameList[64] > AnaDat.Debst.esAktiv
- "esAktiv" "esAktiv" ? ? "logical" ? ? ? ? ? ? yes ? no 7 yes ?
- _FldNameList[65] > AnaDat.Debst.esBenutzer
- "esBenutzer" "esBenutzer" ? ? "character" ? ? ? ? ? ? yes ? no 30 yes ?
- _FldNameList[66] > AnaDat.Debst.esMail
- "esMail" "esMail" ? ? "character" ? ? ? ? ? ? yes ? no 40 yes ?
- _FldNameList[67] > AnaDat.Debst.esPasswort
- "esPasswort" "esPasswort" ? ? "character" ? ? ? ? ? ? yes ? no 30 yes ?
- _FldNameList[68] > AnaDat.Debst.Liefertag
- "Liefertag" "Liefertag" ? ? "integer" ? ? ? ? ? ? yes ? no 8.2 yes ?
- _FldNameList[69] > AnaDat.Debst.BestBis_1
- "BestBis_1" "BestBis_1" ? ? "integer" ? ? ? ? ? ? yes ? no 9.4 yes ?
- _FldNameList[70] > AnaDat.Debst.BestBis_2
- "BestBis_2" "BestBis_2" ? ? "integer" ? ? ? ? ? ? yes ? no 9.4 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 *************************** */
- { 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.Fak_Adresse = (IF (RowObject.KnrFak = 0) THEN ("") ELSE (DYNAMIC-FUNCTION('GETADRESSEANZEIGEBR':U, INPUT RowObject.Knr, INPUT 1)))
- rowObject.Lief_Adresse = (IF (RowObject.KnrLie = 0) THEN ("") ELSE (DYNAMIC-FUNCTION('GETADRESSEANZEIGEBR':U, INPUT RowObject.Knr, INPUT 2 )))
- .
- 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 refreshRow dTables _DB-REQUIRED
- PROCEDURE refreshRow :
- /*------------------------------------------------------------------------------
- Purpose: Super Override
- Parameters:
- Notes:
- ------------------------------------------------------------------------------*/
- /* Code placed here will execute PRIOR to standard behavior. */
- RUN SUPER.
- /* Code placed here will execute AFTER standard behavior. */
- END PROCEDURE.
- /* _UIB-CODE-BLOCK-END */
- &ANALYZE-RESUME
- {&DB-REQUIRED-END}
- /* ************************ 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:
- ------------------------------------------------------------------------------*/
- DEF VAR Mandant AS CHAR NO-UNDO.
- DEF VAR ix AS INT NO-UNDO.
- DEF VAR Felder AS CHAR NO-UNDO.
- Mandant = DYNAMIC-FUNCTION('GETMANDANT':U) NO-ERROR.
- Felder = DYNAMIC-FUNCTION('getForeignFields':U) NO-ERROR.
- DO WHILE TRUE:
- xWhere = 'Firma = "' + Mandant + '" '.
- IF Felder = ? THEN LEAVE.
- IF Felder = '' THEN LEAVE.
- ix = LOOKUP('Knr', Felder, ',') / 2.
- IF ix < 1 THEN LEAVE.
- Felder = DYNAMIC-FUNCTION('getForeignValues':U) NO-ERROR.
- xWhere = 'Firma = "' + Mandant + '" '
- + 'AND Knr = ' + ENTRY(ix, Felder, CHR(01)).
- LEAVE.
- END.
- 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}
|