&ANALYZE-SUSPEND _VERSION-NUMBER AB_v10r12 GUI ADM2 &ANALYZE-RESUME /* Connected Databases anadat PROGRESS */ &Scoped-define WINDOW-NAME CURRENT-WINDOW &ANALYZE-SUSPEND _UIB-CODE-BLOCK _CUSTOM _DECLARATIONS dTables USING classes.Artst FROM PROPATH. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _CUSTOM _DEFINITIONS dTables /*------------------------------------------------------------------------ File: Description: from DATA.W - Template For SmartData objects in the ADM Input Parameters: Output Parameters: 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 Besze &SCOPED-DEFINE TabWhere USE-INDEX Besze-k1 ~ WHERE {&Tabelle}.Firma = tRowObject.Firma ~ AND {&Tabelle}.Besnr = tRowObject.Besnr ~ AND {&Tabelle}.Pos = tRowObject.Pos { incl/datdefinition.i } /* _UIB-CODE-BLOCK-END */ &ANALYZE-RESUME {adecomm/appserv.i} &ANALYZE-SUSPEND _UIB-CODE-BLOCK _CUSTOM _DEFINITIONS dTables /*------------------------------------------------------------------------ File: Description: Input Parameters: Output Parameters: Author: Created: 16/09/21 - 2:48 pm ------------------------------------------------------------------------*/ /* This .W file was created with the Progress AppBuilder. */ /*----------------------------------------------------------------------*/ /* *************************** Definitions ************************** */ /* Parameters Definitions --- */ /* Local Variable Definitions --- */ /* _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 Besze /* Definitions for QUERY Query-Main */ &Scoped-Define ENABLED-FIELDS Aktion Alter_EP Alter_Listen_EP Artnr Besnr Bez1 Bez2 EP Faktor Firma FRW~ Gewicht GGebKto GGeb_Cd GGeb_Me Inhalt Jahr KGebKto KGeb_Cd KGeb_Me Kurs~ Lager Liter lLotnr lVerfall L_EP L_EP_FRW L_Rabatt MBest MGeli MRuek Pos~ Preis Rabatt Rueckstand Spesen S_Artnr S_Bez1 S_Bez2 S_Preis S_Preis_FRW~ Trnr Verbrauch Verbucht VGebKto VGeb_Cd VGeb_Me Zustext1 Zustext2 Zustext3~ Zustext4 Zustext5 Zustext6 Zustext7 Zustext8 Zustext9 Zustext10 Bezeichnung~ SeineBez GGebinde VGebinde KGebinde Bestand LagerOrt Netto SpesenBetr~ ZusRab Netto_Bas Spesen_Bas Best_Sta GGeb_EG KGeb_EG VGeb_EG Eingang &Scoped-define ENABLED-FIELDS-IN-Besze Aktion Alter_EP Alter_Listen_EP ~ Artnr Besnr Bez1 Bez2 EP Faktor Firma FRW Gewicht GGebKto GGeb_Cd GGeb_Me ~ Inhalt Jahr KGebKto KGeb_Cd KGeb_Me Kurs Lager Liter lLotnr lVerfall L_EP ~ L_EP_FRW L_Rabatt MBest MGeli MRuek Pos Preis Rabatt Rueckstand Spesen ~ S_Artnr S_Bez1 S_Bez2 S_Preis S_Preis_FRW Trnr Verbrauch Verbucht VGebKto ~ VGeb_Cd VGeb_Me Zustext1 Zustext2 Zustext3 Zustext4 Zustext5 Zustext6 ~ Zustext7 Zustext8 Zustext9 Zustext10 Netto SpesenBetr ZusRab Best_Sta ~ GGeb_EG KGeb_EG VGeb_EG Eingang &Scoped-Define DATA-FIELDS Aktion Alter_EP Alter_Listen_EP Artnr Besnr Bez1 Bez2 EP Faktor Firma FRW~ Gewicht GGebKto GGeb_Cd GGeb_Me Inhalt Jahr KGebKto KGeb_Cd KGeb_Me Kurs~ Lager Liter lLotnr lVerfall L_EP L_EP_FRW L_Rabatt MBest MGeli MRuek Pos~ Preis Rabatt Rueckstand Spesen S_Artnr S_Bez1 S_Bez2 S_Preis S_Preis_FRW~ Trnr Verbrauch Verbucht VGebKto VGeb_Cd VGeb_Me Zustext1 Zustext2 Zustext3~ Zustext4 Zustext5 Zustext6 Zustext7 Zustext8 Zustext9 Zustext10 Bezeichnung~ SeineBez GGebinde VGebinde KGebinde Bestand LagerOrt Netto SpesenBetr~ ZusRab Netto_Bas Spesen_Bas Best_Sta GGeb_EG KGeb_EG VGeb_EG Eingang~ zzDUMMY &Scoped-define DATA-FIELDS-IN-Besze Aktion Alter_EP Alter_Listen_EP Artnr ~ Besnr Bez1 Bez2 EP Faktor Firma FRW Gewicht GGebKto GGeb_Cd GGeb_Me Inhalt ~ Jahr KGebKto KGeb_Cd KGeb_Me Kurs Lager Liter lLotnr lVerfall L_EP L_EP_FRW ~ L_Rabatt MBest MGeli MRuek Pos Preis Rabatt Rueckstand Spesen S_Artnr ~ S_Bez1 S_Bez2 S_Preis S_Preis_FRW Trnr Verbrauch Verbucht VGebKto VGeb_Cd ~ VGeb_Me Zustext1 Zustext2 Zustext3 Zustext4 Zustext5 Zustext6 Zustext7 ~ Zustext8 Zustext9 Zustext10 Netto SpesenBetr ZusRab Best_Sta GGeb_EG ~ KGeb_EG VGeb_EG Eingang &Scoped-Define MANDATORY-FIELDS Firma &Scoped-Define APPLICATION-SERVICE &Scoped-Define ASSIGN-LIST rowObject.Zustext1 = Besze.Zustext[1]~ rowObject.Zustext2 = Besze.Zustext[2]~ rowObject.Zustext3 = Besze.Zustext[3]~ rowObject.Zustext4 = Besze.Zustext[4]~ rowObject.Zustext5 = Besze.Zustext[5]~ rowObject.Zustext6 = Besze.Zustext[6]~ rowObject.Zustext7 = Besze.Zustext[7]~ rowObject.Zustext8 = Besze.Zustext[8]~ rowObject.Zustext9 = Besze.Zustext[9]~ rowObject.Zustext10 = Besze.Zustext[10] &Scoped-Define DATA-FIELD-DEFS "d-besze.i" &Scoped-Define DATA-TABLE-NO-UNDO NO-UNDO &Scoped-define QUERY-STRING-Query-Main FOR EACH Besze NO-LOCK INDEXED-REPOSITION {&DB-REQUIRED-START} &Scoped-define OPEN-QUERY-Query-Main OPEN QUERY Query-Main FOR EACH Besze NO-LOCK INDEXED-REPOSITION. {&DB-REQUIRED-END} &Scoped-define TABLES-IN-QUERY-Query-Main Besze &Scoped-define FIRST-TABLE-IN-QUERY-Query-Main Besze /* Custom List Definitions */ /* List-1,List-2,List-3,List-4,List-5,List-6 */ /* _UIB-PREPROCESSOR-BLOCK-END */ &ANALYZE-RESUME /* ************************ Function Prototypes ********************** */ &ANALYZE-SUSPEND _UIB-CODE-BLOCK _FUNCTION-FORWARD getArtikelDaten dTables FUNCTION getArtikelDaten RETURNS LOGICAL ( ) FORWARD. /* _UIB-CODE-BLOCK-END */ &ANALYZE-RESUME {&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 Besze 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 = 83.4. /* 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.Besze" _Options = "NO-LOCK INDEXED-REPOSITION" _FldNameList[1] > AnaDat.Besze.Aktion "Aktion" "Aktion" ? ? "logical" ? ? ? ? ? ? yes ? no 6 yes ? _FldNameList[2] > AnaDat.Besze.Alter_EP "Alter_EP" "Alter_EP" ? ? "decimal" ? ? ? ? ? ? yes ? no 12.2 yes ? _FldNameList[3] > AnaDat.Besze.Alter_Listen_EP "Alter_Listen_EP" "Alter_Listen_EP" ? ? "decimal" ? ? ? ? ? ? yes ? no 15 yes ? _FldNameList[4] > AnaDat.Besze.Artnr "Artnr" "Artnr" ? ? "integer" ? ? ? ? ? ? yes ? no 7.2 yes ? _FldNameList[5] > AnaDat.Besze.Besnr "Besnr" "Besnr" ? ? "integer" ? ? ? ? ? ? yes ? no 7.2 yes ? _FldNameList[6] > AnaDat.Besze.Bez1 "Bez1" "Bez1" ? ? "character" ? ? ? ? ? ? yes ? no 30 yes ? _FldNameList[7] > AnaDat.Besze.Bez2 "Bez2" "Bez2" ? ? "character" ? ? ? ? ? ? yes ? no 30 yes ? _FldNameList[8] > AnaDat.Besze.EP "EP" "EP" ? ? "decimal" ? ? ? ? ? ? yes ? no 12.2 yes ? _FldNameList[9] > AnaDat.Besze.Faktor "Faktor" "Faktor" ? ? "integer" ? ? ? ? ? ? yes ? no 6 yes ? _FldNameList[10] > AnaDat.Besze.Firma "Firma" "Firma" ? ? "character" ? ? ? ? ? ? yes ? yes 8 yes ? _FldNameList[11] > AnaDat.Besze.FRW "FRW" "FRW" ? ? "character" ? ? ? ? ? ? yes ? no 5 yes ? _FldNameList[12] > AnaDat.Besze.Gewicht "Gewicht" "Gewicht" ? ? "decimal" ? ? ? ? ? ? yes ? no 11.6 yes ? _FldNameList[13] > AnaDat.Besze.GGebKto "GGebKto" "GGebKto" ? ? "character" ? ? ? ? ? ? yes ? no 8.8 yes ? _FldNameList[14] > AnaDat.Besze.GGeb_Cd "GGeb_Cd" "GGeb_Cd" ? ? "character" ? ? ? ? ? ? yes ? no 9.4 yes ? _FldNameList[15] > AnaDat.Besze.GGeb_Me "GGeb_Me" "GGeb_Me" ? ? "decimal" ? ? ? ? ? ? yes ? no 10.4 yes ? _FldNameList[16] > AnaDat.Besze.Inhalt "Inhalt" "Inhalt" ? ? "integer" ? ? ? ? ? ? yes ? no 5.2 yes ? _FldNameList[17] > AnaDat.Besze.Jahr "Jahr" "Jahr" ? ? "integer" ? ? ? ? ? ? yes ? no 4.8 yes ? _FldNameList[18] > AnaDat.Besze.KGebKto "KGebKto" "KGebKto" ? ? "character" ? ? ? ? ? ? yes ? no 8.6 yes ? _FldNameList[19] > AnaDat.Besze.KGeb_Cd "KGeb_Cd" "KGeb_Cd" ? ? "character" ? ? ? ? ? ? yes ? no 9.2 yes ? _FldNameList[20] > AnaDat.Besze.KGeb_Me "KGeb_Me" "KGeb_Me" ? ? "decimal" ? ? ? ? ? ? yes ? no 10.4 yes ? _FldNameList[21] > AnaDat.Besze.Kurs "Kurs" "Kurs" ? ? "decimal" ? ? ? ? ? ? yes ? no 13.6 yes ? _FldNameList[22] > AnaDat.Besze.Lager "Lager" "Lager" ? ? "integer" ? ? ? ? ? ? yes ? no 5.4 yes ? _FldNameList[23] > AnaDat.Besze.Liter "Liter" "Liter" ? ? "decimal" ? ? ? ? ? ? yes ? no 11.6 yes ? _FldNameList[24] > AnaDat.Besze.lLotnr "lLotnr" "lLotnr" ? ? "logical" ? ? ? ? ? ? yes ? no 5.2 yes ? _FldNameList[25] > AnaDat.Besze.lVerfall "lVerfall" "lVerfall" ? ? "logical" ? ? ? ? ? ? yes ? no 6.2 yes ? _FldNameList[26] > AnaDat.Besze.L_EP "L_EP" "L_EP" ? ? "decimal" ? ? ? ? ? ? yes ? no 12.2 yes ? _FldNameList[27] > AnaDat.Besze.L_EP_FRW "L_EP_FRW" "L_EP_FRW" ? ? "decimal" ? ? ? ? ? ? yes ? no 15.8 yes ? _FldNameList[28] > AnaDat.Besze.L_Rabatt "L_Rabatt" "L_Rabatt" ? ? "decimal" ? ? ? ? ? ? yes ? no 8.8 yes ? _FldNameList[29] > AnaDat.Besze.MBest "MBest" "MBest" ? ? "decimal" ? ? ? ? ? ? yes ? no 8.8 yes ? _FldNameList[30] > AnaDat.Besze.MGeli "MGeli" "MGeli" ? ? "decimal" ? ? ? ? ? ? yes ? no 8.8 yes ? _FldNameList[31] > AnaDat.Besze.MRuek "MRuek" "MRuek" ? ? "decimal" ? ? ? ? ? ? yes ? no 8.8 yes ? _FldNameList[32] > AnaDat.Besze.Pos "Pos" "Pos" ? ? "integer" ? ? ? ? ? ? yes ? no 4.8 yes ? _FldNameList[33] > AnaDat.Besze.Preis "Preis" "Preis" ? ? "decimal" ? ? ? ? ? ? yes ? no 11 yes ? _FldNameList[34] > AnaDat.Besze.Rabatt "Rabatt" "Rabatt" ? ? "decimal" ? ? ? ? ? ? yes ? no 6.4 yes ? _FldNameList[35] > AnaDat.Besze.Rueckstand "Rueckstand" "Rueckstand" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ? _FldNameList[36] > AnaDat.Besze.Spesen "Spesen" "Spesen" ? ? "decimal" ? ? ? ? ? ? yes ? no 7.2 yes ? _FldNameList[37] > AnaDat.Besze.S_Artnr "S_Artnr" "S_Artnr" ? ? "character" ? ? ? ? ? ? yes ? no 12 yes ? _FldNameList[38] > AnaDat.Besze.S_Bez1 "S_Bez1" "S_Bez1" ? ? "character" ? ? ? ? ? ? yes ? no 30 yes ? _FldNameList[39] > AnaDat.Besze.S_Bez2 "S_Bez2" "S_Bez2" ? ? "character" ? ? ? ? ? ? yes ? no 30 yes ? _FldNameList[40] > AnaDat.Besze.S_Preis "S_Preis" "S_Preis" ? ? "decimal" ? ? ? ? ? ? yes ? no 12.2 yes ? _FldNameList[41] > AnaDat.Besze.S_Preis_FRW "S_Preis_FRW" "S_Preis_FRW" ? ? "decimal" ? ? ? ? ? ? yes ? no 15.8 yes ? _FldNameList[42] > AnaDat.Besze.Trnr "Trnr" "Trnr" ? ? "integer" ? ? ? ? ? ? yes ? no 9.6 yes ? _FldNameList[43] > AnaDat.Besze.Verbrauch "Verbrauch" "Verbrauch" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ? _FldNameList[44] > AnaDat.Besze.Verbucht "Verbucht" "Verbucht" ? ? "logical" ? ? ? ? ? ? yes ? no 8.6 yes ? _FldNameList[45] > AnaDat.Besze.VGebKto "VGebKto" "VGebKto" ? ? "character" ? ? ? ? ? ? yes ? no 8.6 yes ? _FldNameList[46] > AnaDat.Besze.VGeb_Cd "VGeb_Cd" "VGeb_Cd" ? ? "character" ? ? ? ? ? ? yes ? no 9.2 yes ? _FldNameList[47] > AnaDat.Besze.VGeb_Me "VGeb_Me" "VGeb_Me" ? ? "decimal" ? ? ? ? ? ? yes ? no 10.4 yes ? _FldNameList[48] > AnaDat.Besze.Zustext[1] "Zustext[1]" "Zustext1" ? ? "character" ? ? ? ? ? ? yes ? no 30 yes ? _FldNameList[49] > AnaDat.Besze.Zustext[2] "Zustext[2]" "Zustext2" ? ? "character" ? ? ? ? ? ? yes ? no 30 yes ? _FldNameList[50] > AnaDat.Besze.Zustext[3] "Zustext[3]" "Zustext3" ? ? "character" ? ? ? ? ? ? yes ? no 30 yes ? _FldNameList[51] > AnaDat.Besze.Zustext[4] "Zustext[4]" "Zustext4" ? ? "character" ? ? ? ? ? ? yes ? no 30 yes ? _FldNameList[52] > AnaDat.Besze.Zustext[5] "Zustext[5]" "Zustext5" ? ? "character" ? ? ? ? ? ? yes ? no 30 yes ? _FldNameList[53] > AnaDat.Besze.Zustext[6] "Zustext[6]" "Zustext6" ? ? "character" ? ? ? ? ? ? yes ? no 30 yes ? _FldNameList[54] > AnaDat.Besze.Zustext[7] "Zustext[7]" "Zustext7" ? ? "character" ? ? ? ? ? ? yes ? no 30 yes ? _FldNameList[55] > AnaDat.Besze.Zustext[8] "Zustext[8]" "Zustext8" ? ? "character" ? ? ? ? ? ? yes ? no 30 yes ? _FldNameList[56] > AnaDat.Besze.Zustext[9] "Zustext[9]" "Zustext9" ? ? "character" ? ? ? ? ? ? yes ? no 30 yes ? _FldNameList[57] > AnaDat.Besze.Zustext[10] "Zustext[10]" "Zustext10" ? ? "character" ? ? ? ? ? ? yes ? no 30 yes ? _FldNameList[58] > "_" """""" "Bezeichnung" ? "x(50)" "character" ? ? ? ? ? ? yes ? no 50 no ? _FldNameList[59] > "_" """""" "SeineBez" "Seine Bezeichnung" "x(50)" "character" ? ? ? ? ? ? yes ? no 50 no ? _FldNameList[60] > "_" """""" "GGebinde" ? "x(12)" "character" ? ? ? ? ? ? yes ? no 12 no ? _FldNameList[61] > "_" """""" "VGebinde" ? "x(12)" "character" ? ? ? ? ? ? yes ? no 12 no ? _FldNameList[62] > "_" """""" "KGebinde" ? "x(12)" "character" ? ? ? ? ? ? yes ? no 12 no ? _FldNameList[63] > "_" "0.00" "Bestand" ? "zzz,zzz,zz9.99-" "Decimal" ? ? ? ? ? ? yes ? no 14 no ? _FldNameList[64] > "_" """""" "LagerOrt" "LagerOrt" "x(12)" "character" ? ? ? ? ? ? yes ? no 12 no ? _FldNameList[65] > AnaDat.Besze.Netto "Netto" "Netto" ? ? "decimal" ? ? ? ? ? ? yes ? no 10.4 yes ? _FldNameList[66] > AnaDat.Besze.SpesenBetr "SpesenBetr" "SpesenBetr" ? ? "decimal" ? ? ? ? ? ? yes ? no 11 yes ? _FldNameList[67] > AnaDat.Besze.ZusRab "ZusRab" "ZusRab" ? ? "decimal" ? ? ? ? ? ? yes ? no 7.6 yes ? _FldNameList[68] > "_" "RowObject.Netto * RowObject.Kurs" "Netto_Bas" "Netto CHF" "zzz,zz9.99-" "Decimal" ? ? ? ? ? ? yes ? no 10.4 no ? _FldNameList[69] > "_" "RowObject.SpesenBetr * RowObject.Kurs" "Spesen_Bas" "Spesen CHF" "zzz,zz9.99-" "Decimal" ? ? ? ? ? ? yes ? no 12 no ? _FldNameList[70] > AnaDat.Besze.Best_Sta "Best_Sta" "Best_Sta" ? ? "integer" ? ? ? ? ? ? yes ? no 8.6 yes ? _FldNameList[71] > AnaDat.Besze.GGeb_EG "GGeb_EG" "GGeb_EG" ? ? "decimal" ? ? ? ? ? ? yes ? no 10.4 yes ? _FldNameList[72] > AnaDat.Besze.KGeb_EG "KGeb_EG" "KGeb_EG" ? ? "decimal" ? ? ? ? ? ? yes ? no 10.4 yes ? _FldNameList[73] > AnaDat.Besze.VGeb_EG "VGeb_EG" "VGeb_EG" ? ? "decimal" ? ? ? ? ? ? yes ? no 10.4 yes ? _FldNameList[74] > AnaDat.Besze.Eingang "Eingang" "Eingang" ? ? "decimal" ? ? ? ? ? ? yes ? no 8.8 yes ? _FldNameList[75] > "_" "DYNAMIC-FUNCTION('getArtikelDaten':U IN THIS-PROCEDURE)" "zzDUMMY" "DUMMY" "x(8)" "character" ? ? ? ? ? ? no ? no 8 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 } SUBSCRIBE TO 'REFRESHBESEING' ANYWHERE. &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: ------------------------------------------------------------------------------*/ ASSIGN rowObject.Bestand = (0.00) rowObject.Bezeichnung = ("") rowObject.GGebinde = ("") rowObject.KGebinde = ("") rowObject.LagerOrt = ("") rowObject.Netto_Bas = (RowObject.Netto * RowObject.Kurs) rowObject.SeineBez = ("") rowObject.Spesen_Bas = (RowObject.SpesenBetr * RowObject.Kurs) rowObject.VGebinde = ("") rowObject.zzDUMMY = (DYNAMIC-FUNCTION('getArtikelDaten':U IN THIS-PROCEDURE)) . 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: 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: 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: Notes: ------------------------------------------------------------------------------*/ { incl/datreaktivieren.i } END PROCEDURE. /* _UIB-CODE-BLOCK-END */ &ANALYZE-RESUME {&DB-REQUIRED-END} &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE REFRESHBESEING dTables PROCEDURE REFRESHBESEING : /*------------------------------------------------------------------------------ Purpose: Notes: ------------------------------------------------------------------------------*/ DEFINE VARIABLE rBesze AS RECID NO-UNDO. DEFINE VARIABLE cRowId AS CHARACTER NO-UNDO. DEFINE BUFFER bBesze FOR Besze. rBesze = DYNAMIC-FUNCTION ('getCurrentRecid':U IN THIS-PROCEDURE) NO-ERROR. IF rBesze = ? OR rBesze = 0 THEN RETURN. FIND bBesze NO-LOCK WHERE RECID(bBesze) = rBesze. cRowId = STRING(ROWID(bBesze)). DYNAMIC-FUNCTION ('openQuery':U IN THIS-PROCEDURE ) NO-ERROR. DYNAMIC-FUNCTION ('fetchRowident':U IN THIS-PROCEDURE, cRowId, ?) NO-ERROR. END PROCEDURE. /* _UIB-CODE-BLOCK-END */ &ANALYZE-RESUME {&DB-REQUIRED-START} &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE REPOS_TABELLE dTables _DB-REQUIRED PROCEDURE REPOS_TABELLE : /*------------------------------------------------------------------------------ Purpose: Parameters: 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: 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: 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: Notes: ------------------------------------------------------------------------------*/ { incl/datsetsort.i } END PROCEDURE. /* _UIB-CODE-BLOCK-END */ &ANALYZE-RESUME {&DB-REQUIRED-END} /* ************************ Function Implementations ***************** */ &ANALYZE-SUSPEND _UIB-CODE-BLOCK _FUNCTION getArtikelDaten dTables FUNCTION getArtikelDaten RETURNS LOGICAL ( ): /*------------------------------------------------------------------------------ Purpose: Notes: ------------------------------------------------------------------------------*/ DEFINE VARIABLE oArtst AS Artst. oArtst = NEW Artst ( rowObject.Firma, RowObject.Artnr, RowObject.Inhalt, RowObject.Jahr, RowObject.Lager ). ASSIGN rowObject.Bestand = oArtst:Bestand rowObject.Bezeichnung = TRIM(oArtst:Bez1 + ' ' + oArtst:Bez2) rowObject.GGebinde = oArtst:GGeb_Cd_KBez + " (" + oArtst:GGeb_Cd + ")" rowObject.VGebinde = oArtst:VGeb_Cd_KBez + " (" + oArtst:VGeb_Cd + ")" rowObject.KGebinde = oArtst:KGeb_Cd_KBez + " (" + oArtst:KGeb_Cd + ")" rowObject.SeineBez = TRIM(oArtst:S_Bez1 + ' ' + oArtst:S_Bez2) rowObject.LagerOrt = oArtst:LagerOrt. END FUNCTION. /* _UIB-CODE-BLOCK-END */ &ANALYZE-RESUME {&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: ------------------------------------------------------------------------------*/ DEFINE VARIABLE Felder AS CHARACTER NO-UNDO. DEFINE VARIABLE Inhalt AS CHARACTER NO-UNDO. DEFINE VARIABLE cFeld AS CHARACTER 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) + ' '. */ { 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}