20. April 2010 08:32
PartnerAlliancesLoc.RESET;
CLEAR(PartnerAlliancesListLoc);
Counter := 0;
i := 0;
"Sales&ReceivablesSetupLoc".GET;
//IF FORM.RUNMODAL(FORM::"Partner Alliances",PartnerAlliancesLoc) = ACTION::LookupOK THEN BEGIN
PartnerAlliancesListLoc.LOOKUPMODE := TRUE;
IF PartnerAlliancesListLoc.RUNMODAL = ACTION::LookupOK THEN BEGIN
PartnerAlliancesLoc.SETVIEW(PartnerAlliancesListLoc.GetFilters);
MARKEDONLY(FALSE);
CLEARMARKS;
Window.OPEN( 'Anzahl berechne #1#### \' + 'Gesamtanzahl #2####' + '\Gefilterte Debitoren #3####');
Window.UPDATE(2, COUNT);
IF Rec.FINDSET(FALSE,FALSE) THEN BEGIN
// --> hier muss die GetAlliances und GetPartners rein
REPEAT
Counter := Counter + 1;
Window.UPDATE(1, Counter);
IF PartnerAlliancesLoc.FINDSET(FALSE,FALSE) THEN BEGIN
REPEAT
IF ((GetAlliances("No.") = PartnerAlliancesLoc."Alliance Code") AND
(GetPartners("No.") = PartnerAlliancesLoc.Partnercode)) THEN BEGIN
MARK(TRUE);
i := i +1;
END ELSE BEGIN
IF ((PartnerAlliancesLoc."Alliance Code" = "Sales&ReceivablesSetupLoc"."Without Alliance Code" ) AND
(PartnerAlliancesLoc.Partnercode = "Sales&ReceivablesSetupLoc"."Without Partner Code")) THEN BEGIN
IF ((GetAlliances("No.") = '') AND (GetPartners("No.") = '')) THEN BEGIN
MARK(TRUE);
i := i + 1;
END;
END;
END;
UNTIL PartnerAlliancesLoc.NEXT = 0;
END;
Window.UPDATE(3, i );
UNTIL NEXT = 0;
MARKEDONLY(TRUE);
END;
END;
Window.CLOSE;
20. April 2010 08:46
partnercode_loc := GetPartners("No.");
20. April 2010 09:12
20. April 2010 09:20
20. April 2010 09:46