SMAServiceFunctionLine serviceFunction;
Args args;
SMAServiceOrderLine Buffer2;
;
//// selecciona varias lineas
while select * from Buffer2 where Buffer2.ServiceOrderId==ot.text()
&& Buffer2.ServiceOrderStatus==SMAServiceOrderStatus::Created
&& Buffer2.TransactionType==SMATransactionType::Item
&& Buffer2.SignOff==noyes::Yes
{
SMAServiceOrderLineSurtidas_ds.markRecord(buffer2,1);
}
args= new Args();
args.caller(element);
args.record(SMAServiceOrderLineSurtidas);
args.parmEnum(SMAServiceFunctionType::Transfer);
serviceFunction = SMAServiceFunctionLine::construct(args);
serviceFunction.initDefaults(args);
/// // if (serviceFunction.checkSetup() && serviceFunction.prompt() /////Con dialogo
if (serviceFunction.checkSetup() ) ///sin dialogo
{
serviceFunction.run();
}
No hay comentarios:
Publicar un comentario