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/Orders/rODBase.pas

    r829 r1679  
    446446procedure PutNewOrder(var AnOrder: TOrder; ConstructOrder: TConstructOrder; OrderSource: string);
    447447var
    448   i: Integer;
    449   x, y, z: string;
     448  i, inc, len, numLoop, remain: Integer;
     449  ocStr, tmpStr, x, y, z: string;
    450450begin
    451451  with RPCBrokerV do
     
    469469    Param[6].PType := literal;
    470470    Param[6].Value := AnOrder.EditOf;        // null if new order, otherwise ORIFN of original
    471     if (ConstructOrder.DGroup = IVDisp) then
     471    if (ConstructOrder.DGroup = IVDisp) or (ConstructOrder.DialogName = 'PSJI OR PAT FLUID OE') then
    472472      SetupORDIALOG(Param[7], ConstructOrder.ResponseList, True)
    473473    else
     
    483483      y := '"ORCHECK","' + Piece(OCList[i], U, 1) + '","' + Piece(OCList[i], U, 3) +
    484484        '","' + IntToStr(i+1) + '"';
    485       Param[7].Mult[y] := Pieces(OCList[i], U, 2, 4);
     485      //Param[7].Mult[y] := Pieces(OCList[i], U, 2, 4);
     486      OCStr :=  Pieces(OCList[i], U, 2, 4);
     487      len := Length(OCStr);
     488      if len > 255 then
     489        begin
     490          numLoop := len div 255;
     491          remain := len mod 255;
     492          inc := 0;
     493          while inc <= numLoop do
     494            begin
     495              tmpStr := Copy(OCStr, 1, 255);
     496              OCStr := Copy(OCStr, 256, Length(OcStr));
     497              Param[7].Mult[y + ',' + InttoStr(inc)] := tmpStr;
     498              inc := inc +1;
     499            end;
     500          if remain > 0 then  Param[7].Mult[y + ',' + inttoStr(inc)] := OCStr;
     501
     502        end
     503      else
     504       Param[7].Mult[y] := OCStr;
    486505    end;
    487506    if ConstructOrder.DelayEvent in ['A','D','T','M','O'] then
Note: See TracChangeset for help on using the changeset viewer.