// 
function PrintHeader(PO, RO)
{
  //      
  PO.FontIndex = 1;

  // ,  
  PO.FontDblHeight = 1;
  PO.FontNegative = 1;
  PO.PrintCenterString(" " + RO.ReceiptNo + " " + PO.DeviceName, " ");
  PO.FontDblHeight = 0;
  PO.FontNegative = 0;

  //  
  PO.FontDblHeight = 1;
  PO.FontDblWidth = 1;
  PO.FontBold = 1;
  PO.Alignment = 1;
  for (RO.Aspect.Index = 1;
       RO.Aspect.Index <=
       RO.Aspect.Count;
       RO.Aspect.Index++)
  {
      if (RO.Aspect.Code != 0) //      
      PO.PrintString(RO.Aspect.AspectText + ": " + RO.Aspect.Text);
  }


  PO.Alignment = 0;
  PO.FontDblHeight = 0;
  PO.FontDblWidth = 0;
  PO.FontBold = 0;

  //     ""
  if (RO.NotificationBarcode != "" )
  {
    PO.PrintCenterString("   ", " ");
    PO.Alignment = 1;
    PO.PrintBarcode(RO.NotificationBarcode, 0, 200, 200);
  }


  //  ,     
  PO.PrintLRString(RO.OpenSellerName, RO.DateOpen + " " + RO.TimeOpen, " ");

  //     
  if (RO.HallCode != 0)
  {
     if (RO.HallText == "")
       s1 = RO.HallName;
     else
       s1 = RO.HallText;
     if (RO.HallPlaceText == "")
       s2 = RO.HallPlaceName;
     else
       s2 = RO.HallPlaceText;
     PO.PrintLRStringLF(RO.HallCode + ". " + s1, RO.HallPlaceCode + ". " + s2, " ");
  }

  // 
  PO.FontBold = 1;
  PO.PrintLRString(" ", "-", " ");
  PO.FontBold = 0;
}

// 

function PrintPosition(PO, RO)
{
  //, , 
  if (RO.Pos.RcpPrnQuantity < 0)
    PO.FontBold = 1;
  else
    PO.FontBold = 0;

  if (RO.Pos.Number > 0)
    s1 = RO.Pos.Number + ". ";
  else
    s1 = "";
  PO.PrintLRString(RO.Pos.CookOrder + ") " + s1 + RO.Pos.WareText, RO.Pos.FracSale?PO.FormatQuantity(RO.Pos.RcpPrnQuantity):RO.Pos.RcpPrnQuantity, " ");
  //  
  for (RO.Pos.Aspect.Index = 1;
       RO.Pos.Aspect.Index <=
       RO.Pos.Aspect.Count;
       RO.Pos.Aspect.Index++)
  {
    if (RO.Pos.Aspect.Code != 0)
      PO.PrintString("    " + RO.Pos.Aspect.AspectText + ": " + RO.Pos.Aspect.Text);
  }

  //     ""

  if (RO.Pos.NotificationBarcode != "" )
  {
    PO.PrintCenterString("   ", " ");
    PO.Alignment = 1;
    PO.PrintBarcode(RO.Pos.NotificationBarcode, 0, 200, 200);
  }
  PO.Alignment = 0;
}


// 

function PrintFooter(PO, RO)
{
  PO.PrintLRStringLF("-","-","-");
}

