Changeset 1679 for cprs/trunk/CPRS-Chart/fLabPrint.pas
- Timestamp:
- May 7, 2015, 12:34:29 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/trunk/CPRS-Chart/fLabPrint.pas
r830 r1679 391 391 aBasket := TStringList.Create; 392 392 aBasket.Clear; 393 //frmReports.MemText.Clear;394 393 aHead := ''; 395 394 cnt := 2; 396 //aWPFlag := false;397 395 for i := 0 to uColumns.Count - 1 do 398 396 begin … … 418 416 FReportText.Lines.Add(aHead); 419 417 FReportText.Lines.Add('-------------------------------------------------------------------------------'); 420 //frmReports.memText.Lines.Add(aHead);421 //frmReports.MemText.Lines.Add('-------------------------------------------------------------------------------');422 418 end; 423 419 for i := 0 to frmLabs.lvReports.Items.Count - 1 do … … 434 430 aData := x; 435 431 end; 436 for j := 0 to RowObjects.ColumnList.Count - 1 do432 for j := 0 to LabRowObjects.ColumnList.Count - 1 do 437 433 begin 438 aCol := TCellObject( RowObjects.ColumnList[j]).Handle;439 if piece(aID,':',1) = piece(TCellObject( RowObjects.ColumnList[j]).Handle,':',1) then440 if ListItem.Caption = (piece(TCellObject( RowObjects.ColumnList[j]).Site,';',1)) then434 aCol := TCellObject(LabRowObjects.ColumnList[j]).Handle; 435 if piece(aID,':',1) = piece(TCellObject(LabRowObjects.ColumnList[j]).Handle,':',1) then 436 if ListItem.Caption = (piece(TCellObject(LabRowObjects.ColumnList[j]).Site,';',1)) then 441 437 begin 442 438 if (piece(uColumns[StrToInt(piece(aCol,':',2))],'^',7) = '1') and 443 439 (not (piece(uColumns[StrToInt(piece(aCol,':',2))],'^',4) = '1')) then 444 440 begin 445 FastAssign(TCellObject( RowObjects.ColumnList[j]).Data, aBasket);441 FastAssign(TCellObject(LabRowObjects.ColumnList[j]).Data, aBasket); 446 442 for k := 0 to aBasket.Count - 1 do 447 443 begin … … 453 449 end; 454 450 end; 455 //frmReports.memText.Lines.Add(aData);456 451 FReportText.Lines.Add(aData); 457 452 cnt := cnt + 1; … … 459 454 begin 460 455 cnt := 0; 461 //frmReports.memText.Lines.Add('**PAGE BREAK**');462 456 FReportText.Lines.Add('**PAGE BREAK**'); 463 457 end; 464 for j := 0 to RowObjects.ColumnList.Count - 1 do458 for j := 0 to LabRowObjects.ColumnList.Count - 1 do 465 459 begin 466 aCol := TCellObject( RowObjects.ColumnList[j]).Handle;467 if piece(aID,':',1) = piece(TCellObject( RowObjects.ColumnList[j]).Handle,':',1) then468 if ListItem.Caption = (piece(TCellObject( RowObjects.ColumnList[j]).Site,';',1)) then460 aCol := TCellObject(LabRowObjects.ColumnList[j]).Handle; 461 if piece(aID,':',1) = piece(TCellObject(LabRowObjects.ColumnList[j]).Handle,':',1) then 462 if ListItem.Caption = (piece(TCellObject(LabRowObjects.ColumnList[j]).Site,';',1)) then 469 463 begin 470 464 if (piece(uColumns[StrToInt(piece(aCol,':',2))],'^',7) = '1') and … … 472 466 begin 473 467 aWPFlag := true; 474 FastAssign(TCellObject(RowObjects.ColumnList[j]).Data, aBasket); 475 //frmReports.MemText.Lines.Add(TCellObject(RowObjects.ColumnList[j]).Name); 476 FReportText.Lines.Add(TCellObject(RowObjects.ColumnList[j]).Name); 468 FastAssign(TCellObject(LabRowObjects.ColumnList[j]).Data, aBasket); 469 FReportText.Lines.Add(TCellObject(LabRowObjects.ColumnList[j]).Name); 477 470 cnt := cnt + 1; 478 471 for k := 0 to aBasket.Count - 1 do 479 472 begin 480 //frmReports.memText.Lines.Add(' ' + aBasket[k]); 481 FReportText.Lines.Add(' ' + aBasket[k]); 473 FReportText.Lines.Add('' + aBasket[k]); 482 474 cnt := cnt + 1; 483 475 if cnt > 40 then 484 476 begin 485 477 cnt := 0; 486 //frmReports.memText.Lines.Add('**PAGE BREAK**');487 478 FReportText.Lines.Add('**PAGE BREAK**'); 488 479 end; … … 493 484 if aWPFlag = true then 494 485 begin 495 //frmReports.MemText.Lines.Add('===============================================================================');496 486 FReportText.Lines.Add('==============================================================================='); 497 487 end;
Note:
See TracChangeset
for help on using the changeset viewer.