Вообщем формирую отчет, вот кусок кода
this.initPrologSection(_reportId,
_transDate,
fromInventLocationName,
fromActivityType,
toInventLocationName,
toActivityType);
this.initTotalsSection(qtyTotal,
grossWeightTotal,
netWeightTotal,
costAmountTotal);
this.initTotalsTxtSection(_offSessionId, costAmountTotal);
return xmlDocument;
}
}
после return закрывается скобка цикла while, он выполняется один раз до return, мне необходимо сделать два отчета с разными строками. Методы this.initPrologSection,this.initTotalsSection,this.initTotalsTxtSection создают шапку и нижнюю часть отчета, если вынести return за цикл вот так
this.initTotalsTxtSection(_offSessionId, costAmountTotal);
}
return xmlDocument;
}
методы this.initPrologSection,this.initTotalsSection,this.initTotalsTxtSection вообще не выполняются
|