<?php
/**
 * @copyright (c) Kufer Software GmbH, Loisachstrasse 4, D-84453 Mühldorf
 */


class HinterlegungAussenstelle extends HinterlegungDialogBasis
{
  
  public $_data;

  
  public $filter;

  
  public function __construct()
  {
    parent::__construct();
    $dbwHLAussenstellen = new DBWorkHLAussenstellen(1, true);
    $this->_data = $dbwHLAussenstellen->getAussenstellen();
  }

  
  public function GetColumnCount()
  {
    return 1;
  }

  
  public function GetColumnTitle($index = 0)
  {
    return 'Außenstellen';
  }

  
  public function GetColumnWidth($index = 0)
  {
    return '100%';
  }

  
  public function GetIdColumnIndices()
  {
    return array(0);
  }

  
  public function GetRowCount()
  {
    return count($this->_data);
  }

  
  public function GetValueAt($row, $col = 0)
  {
    return $this->_data[$row]->bezeichner;
  }

  
  protected function getFieldContent($pField, $pKey)
  {
    $result = parent::getFieldContent($pField, $pKey);
    $result .= '$("#wt_kt_changeAussenstelle").prop("checked", true);';

    return $result;
  }
}