void clicked()
{
SrsReportRunController reportRunController;
Map queryContracts;
MapEnumerator mapEnum;
Query query;
QueryBuildRange range;
SrsReportDataContract contract;
TECSOContract rdpContract;
//JournalNameId ScraptReworkJournalNameId;
reportRunController = new SrsReportRunController();
reportRunController.parmReportName(ssrsReportStr(TECJTCEDDSls04packingSlipSo ,Report));
reportRunController.parmLoadFromSysLastValue(false);
// Set printer settings (print to file, format, filename, etc).
contract = reportRunController.parmReportContract();
rdpContract = contract.parmRdpContract() as TECSOContract;
queryContracts = contract.parmQueryContracts();
mapEnum = queryContracts.getEnumerator();
while(mapEnum.moveNext())
{
query = mapEnum.currentValue();
SysQuery::findOrCreateRange(query.dataSourceTable(tableNum(CustPackingSlipJour)),fieldNum(CustPackingSlipJour, recId)).value(queryValue(CustPackingSlipJour.RecId));
reportRunController.runReport();
}
//super();
super();
}
{
SrsReportRunController reportRunController;
Map queryContracts;
MapEnumerator mapEnum;
Query query;
QueryBuildRange range;
SrsReportDataContract contract;
TECSOContract rdpContract;
//JournalNameId ScraptReworkJournalNameId;
reportRunController = new SrsReportRunController();
reportRunController.parmReportName(ssrsReportStr(TECJTCEDDSls04packingSlipSo ,Report));
reportRunController.parmLoadFromSysLastValue(false);
// Set printer settings (print to file, format, filename, etc).
contract = reportRunController.parmReportContract();
rdpContract = contract.parmRdpContract() as TECSOContract;
queryContracts = contract.parmQueryContracts();
mapEnum = queryContracts.getEnumerator();
while(mapEnum.moveNext())
{
query = mapEnum.currentValue();
SysQuery::findOrCreateRange(query.dataSourceTable(tableNum(CustPackingSlipJour)),fieldNum(CustPackingSlipJour, recId)).value(queryValue(CustPackingSlipJour.RecId));
reportRunController.runReport();
}
//super();
super();
}
0 comments:
Post a Comment