setId('bulksync_jobs_queue');
$this->setUseAjax(true);
$this->setDefaultSort('id');
$this->setDefaultDir('DESC');
$this->setSaveParametersInSession(false);
}
protected function _prepareCollection()
{
$collection = Mage::getModel('monkey/bulksyncExport')
->getCollection();
$this->setCollection($collection);
return parent::_prepareCollection();
}
protected function _prepareColumns()
{
$this->addColumn('id', array(
'header'=> Mage::helper('monkey')->__('ID'),
'width' => '80px',
'index' => 'id',
'type' => 'number'
));
$this->addColumn('status', array(
'header'=> Mage::helper('monkey')->__('Status'),
'width' => '80px',
'index' => 'status',
));
$this->addColumn('updated_at', array(
'header'=> Mage::helper('monkey')->__('Date Sent'),
'width' => '80px',
'index' => 'updated_at',
'type' => 'datetime'
));
$this->addColumn('created_at', array(
'header'=> Mage::helper('monkey')->__('Date Sent'),
'width' => '80px',
'index' => 'created_at',
'type' => 'datetime'
));
return parent::_prepareColumns();
}
public function getRowUrl($row)
{
return $this->getUrl('adminhtml/sales_order/view', array('order_id' => $row->getOrderId()));
}
public function getGridUrl()
{
return $this->getUrl('*/*/grid', array('_current' => true));
}
}