TPlannedTransport.AddLine
| TPlannedTransport = class (TObject) | Interface de TPlannedTransport | Exemples de TPlannedTransport |
Qubes 6.3 Ajoute une ligne à l'attendu
Syntaxe
function AddLine(): TPlannedTransportLine
Remarques
Fonction pour ajouter une ligne à l'attendu logistique.
Elle retourne un objet de ligne d'attendu du type TPlannedTransportLine
L'enregistrement de la ligne crée est fait par l'appel de la méthode Post
Exemples
uses SysUtils, QubesLogistics.PlannedTransports, QubesLogistics.ReceiptAndDelivery;
// Création de l'attendu
var attendu:=TPlannedTransport.Create;
attendu.Site:='ACP'; // champs obligatoire
attendu.FlowType:=TLogisticsFlowType.Purchase; // champs obligatoire
attendu.OriginSoftware:='56574'; // champs obligatoire
attendu.PlannedTransportNumber:='56'; // champs obligatoire
attendu.OrderNumber:='28';
// Création de la ligne d'attendu
var myList:=TStrings.Create;
myList.Add('Name=Value');
myList.Add('Name=Value2');
var attenduLine:=attendu.AddLine;
attenduLine.Data := myList;
attendu.Post;
// Création de l'attendu
var attendu:=TPlannedTransport.Create;
attendu.Site:='ACP'; // champs obligatoire
attendu.FlowType:=TLogisticsFlowType.Purchase; // champs obligatoire
attendu.OriginSoftware:='56574'; // champs obligatoire
attendu.PlannedTransportNumber:='56'; // champs obligatoire
attendu.OrderNumber:='28';
// Création de la ligne d'attendu
var myList:=TStrings.Create;
myList.Add('Name=Value');
myList.Add('Name=Value2');
var attenduLine:=attendu.AddLine;
attenduLine.Data := myList;
attendu.Post;