Ignore:
Timestamp:
May 7, 2015, 12:34:29 PM (9 years ago)
Author:
healthsevak
Message:

Updating the working copy to CPRS version 28

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cprs/trunk/CPRS-Chart/fLabPrint.pas

    r830 r1679  
    391391  aBasket := TStringList.Create;
    392392  aBasket.Clear;
    393   //frmReports.MemText.Clear;
    394393  aHead := '';
    395394  cnt := 2;
    396   //aWPFlag := false;
    397395  for i := 0 to uColumns.Count - 1 do
    398396    begin
     
    418416      FReportText.Lines.Add(aHead);
    419417      FReportText.Lines.Add('-------------------------------------------------------------------------------');
    420       //frmReports.memText.Lines.Add(aHead);
    421       //frmReports.MemText.Lines.Add('-------------------------------------------------------------------------------');
    422418    end;
    423419  for i := 0 to frmLabs.lvReports.Items.Count - 1 do
     
    434430            aData := x;
    435431          end;
    436         for j := 0 to RowObjects.ColumnList.Count - 1 do
     432        for j := 0 to LabRowObjects.ColumnList.Count - 1 do
    437433          begin
    438             aCol := TCellObject(RowObjects.ColumnList[j]).Handle;
    439             if piece(aID,':',1) = piece(TCellObject(RowObjects.ColumnList[j]).Handle,':',1) then
    440               if ListItem.Caption = (piece(TCellObject(RowObjects.ColumnList[j]).Site,';',1)) then
     434            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
    441437                begin
    442438                  if (piece(uColumns[StrToInt(piece(aCol,':',2))],'^',7) = '1') and
    443439                   (not (piece(uColumns[StrToInt(piece(aCol,':',2))],'^',4) = '1')) then
    444440                    begin
    445                       FastAssign(TCellObject(RowObjects.ColumnList[j]).Data, aBasket);
     441                      FastAssign(TCellObject(LabRowObjects.ColumnList[j]).Data, aBasket);
    446442                      for k := 0 to aBasket.Count - 1 do
    447443                        begin
     
    453449                end;
    454450          end;
    455         //frmReports.memText.Lines.Add(aData);
    456451        FReportText.Lines.Add(aData);
    457452        cnt := cnt + 1;
     
    459454          begin
    460455            cnt := 0;
    461             //frmReports.memText.Lines.Add('**PAGE BREAK**');
    462456            FReportText.Lines.Add('**PAGE BREAK**');
    463457          end;
    464         for j := 0 to RowObjects.ColumnList.Count - 1 do
     458        for j := 0 to LabRowObjects.ColumnList.Count - 1 do
    465459          begin
    466             aCol := TCellObject(RowObjects.ColumnList[j]).Handle;
    467             if piece(aID,':',1) = piece(TCellObject(RowObjects.ColumnList[j]).Handle,':',1) then
    468               if ListItem.Caption = (piece(TCellObject(RowObjects.ColumnList[j]).Site,';',1)) then
     460            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
    469463                begin
    470464                  if (piece(uColumns[StrToInt(piece(aCol,':',2))],'^',7) = '1') and
     
    472466                    begin
    473467                      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);
    477470                      cnt := cnt + 1;
    478471                      for k := 0 to aBasket.Count - 1 do
    479472                        begin
    480                           //frmReports.memText.Lines.Add('  ' + aBasket[k]);
    481                           FReportText.Lines.Add('  ' + aBasket[k]);
     473                          FReportText.Lines.Add('' + aBasket[k]);
    482474                          cnt := cnt + 1;
    483475                          if cnt > 40 then
    484476                            begin
    485477                              cnt := 0;
    486                               //frmReports.memText.Lines.Add('**PAGE BREAK**');
    487478                              FReportText.Lines.Add('**PAGE BREAK**');
    488479                            end;
     
    493484        if aWPFlag = true then
    494485          begin
    495             //frmReports.MemText.Lines.Add('===============================================================================');
    496486            FReportText.Lines.Add('===============================================================================');
    497487          end;
Note: See TracChangeset for help on using the changeset viewer.