Example #1
0
 function ReportPrintPage(&$params)
 {
     parent::ReportPage($params);
     $this->crossTable = $this->pSet->isCrossTabReport() ? 1 : 0;
     $this->jsSettings['tableSettings'][$this->tName]['reportType'] = $this->crossTable;
     if (isRTL()) {
         $this->jsSettings['tableSettings'][$this->tName]['isRTL'] = true;
     }
     $this->jsSettings['tableSettings'][$this->tName]['reportPrintPartitionType'] = $this->pSet->getReportPrintPartitionType();
     $this->jsSettings['tableSettings'][$this->tName]['reportPrintGroupsPerPage'] = $this->pSet->getReportPrintGroupsPerPage();
     $this->jsSettings['tableSettings'][$this->tName]['reportPrintLayout'] = $this->pSet->getReportPrintLayout();
     $this->jsSettings['tableSettings'][$this->tName]['lowGroup'] = $this->pSet->getLowGroup();
     $this->jsSettings['tableSettings'][$this->tName]['printerPagePDF'] = $this->pSet->isPrinterPagePDF();
     $this->jsSettings['tableSettings'][$this->tName]['printerPageOrientation'] = $this->pSet->getPrinterPageOrientation();
     $this->jsSettings['tableSettings'][$this->tName]['printerPageScale'] = $this->pSet->getPrinterPageScale();
     $this->jsSettings['tableSettings'][$this->tName]['isPrinterPageFitToPage'] = $this->pSet->isPrinterPageFitToPage();
     $this->jsSettings['tableSettings'][$this->tName]['printerSplitRecords'] = $this->pSet->getPrinterSplitRecords();
     $this->jsSettings['tableSettings'][$this->tName]['printerPDFSplitRecords'] = $this->pSet->getPrinterPDFSplitRecords();
 }
 function ReportPrintPage(&$params)
 {
     parent::ReportPage($params);
     $this->crossTable = $this->pSet->isCrossTabReport() ? 1 : 0;
     $this->jsSettings['tableSettings'][$this->tName]['reportType'] = $this->crossTable;
     if ($this->pdfMode) {
         //	pdf mode
         if ($this->pSet->getReportPrintPDFGroupsPerPage() != 0) {
             $this->splitAtServer = true;
             $this->splitByGroups = $this->pSet->getReportPrintPDFGroupsPerPage();
         }
     } else {
         if ($this->format == "excel" || $this->format == "word") {
             //	export mode
             $this->splitAtServer = false;
             $this->splitByGroups = 0;
         } else {
             //	print mode
             if ($this->pSet->getReportPrintPartitionType() != 0) {
                 $this->splitAtServer = true;
                 $this->splitByGroups = $this->pSet->getReportPrintGroupsPerPage();
             }
         }
     }
     if (isRTL()) {
         $this->jsSettings['tableSettings'][$this->tName]['isRTL'] = true;
     }
     $this->jsSettings['tableSettings'][$this->tName]['reportPrintPartitionType'] = $this->pSet->getReportPrintPartitionType();
     $this->jsSettings['tableSettings'][$this->tName]['reportPrintGroupsPerPage'] = $this->pSet->getReportPrintGroupsPerPage();
     $this->jsSettings['tableSettings'][$this->tName]['reportPrintLayout'] = $this->pSet->getReportPrintLayout();
     $this->jsSettings['tableSettings'][$this->tName]['lowGroup'] = $this->pSet->getLowGroup();
     $this->jsSettings['tableSettings'][$this->tName]['printerPagePDF'] = $this->pSet->isPrinterPagePDF();
     $this->jsSettings['tableSettings'][$this->tName]['printerPageOrientation'] = $this->pSet->getPrinterPageOrientation();
     $this->jsSettings['tableSettings'][$this->tName]['printerPageScale'] = $this->pSet->getPrinterPageScale();
     $this->jsSettings['tableSettings'][$this->tName]['isPrinterPageFitToPage'] = $this->pSet->isPrinterPageFitToPage();
     if ($this->pSet->getReportPrintPartitionType() == 0) {
         $this->jsSettings['tableSettings'][$this->tName]['printerSplitRecords'] = 0;
     } else {
         $this->jsSettings['tableSettings'][$this->tName]['printerSplitRecords'] = $this->pSet->getReportPrintGroupsPerPage();
     }
     $this->jsSettings['tableSettings'][$this->tName]['printerPDFSplitRecords'] = $this->pSet->getReportPrintPDFGroupsPerPage();
 }