protected function _prepareColumns()
 {
     $this->addColumn('split_payment_id', array('header' => Mage::helper('hipay')->__('ID'), 'width' => '50px', 'type' => 'number', 'index' => 'split_payment_id'));
     $this->addColumn('real_order_id', array('header' => Mage::helper('sales')->__('Order #'), 'type' => 'text', 'width' => '20px', 'index' => 'real_order_id'));
     $this->addColumn('customer_id', array('header' => Mage::helper('customer')->__('Customer ID'), 'type' => 'text', 'width' => '20px', 'index' => 'customer_id'));
     $this->addColumn('card_token', array('header' => Mage::helper('hipay')->__('Card Token'), 'type' => 'text', 'width' => '60px', 'index' => 'card_token'));
     $this->addColumn('total_amount', array('header' => Mage::helper('sales')->__('G.T. (Purchased)'), 'index' => 'total_amount', 'type' => 'currency'));
     $this->addColumn('amount_to_pay', array('header' => Mage::helper('hipay')->__('Amount to pay'), 'type' => 'currency', 'index' => 'amount_to_pay'));
     $this->addColumn('date_to_pay', array('header' => Mage::helper('hipay')->__('Date to pay'), 'type' => 'date', 'index' => 'date_to_pay'));
     $this->addColumn('attempts', array('header' => Mage::helper('hipay')->__('Attempts'), 'index' => 'attempts', 'type' => 'number'));
     $this->addColumn('status', array('header' => Mage::helper('hipay')->__('Status'), 'index' => 'status', 'type' => 'options', 'options' => Allopass_Hipay_Model_SplitPayment::getStatues()));
     return parent::_prepareColumns();
 }
 protected function _prepareForm()
 {
     /* @var $profile Allopass_Hipay_Model_SplitPayment */
     $splitPayment = Mage::registry('split_payment');
     $form = new Varien_Data_Form(array('id' => 'edit_form', 'action' => $this->getUrl('*/splitPayment/save'), 'method' => 'post'));
     $fieldset = $form->addFieldset('splitPayment_form', array('legend' => Mage::helper('hipay')->__('Split Payment')));
     if ($splitPayment->getSplitPaymentId()) {
         $fieldset->addField('split_payment_id', 'hidden', array('name' => 'split_payment_id'));
     }
     $fieldset->addField('real_order_id', 'text', array('label' => Mage::helper('sales')->__('Order #'), 'title' => Mage::helper('sales')->__('Order #'), 'class' => 'required-entry', 'required' => true, 'name' => 'real_order_id', 'readonly' => true));
     $fieldset->addField('customer_id', 'text', array('label' => Mage::helper('customer')->__('Customer ID'), 'title' => Mage::helper('customer')->__('Customer ID'), 'class' => 'required-entry', 'required' => true, 'name' => 'customer_id', 'readonly' => true));
     $fieldset->addField('card_token', 'text', array('label' => Mage::helper('hipay')->__('Card Token'), 'title' => Mage::helper('hipay')->__('Card Token'), 'class' => 'required-entry', 'required' => true, 'name' => 'card_token'));
     $fieldset->addField('total_amount', 'text', array('label' => Mage::helper('sales')->__('G.T. (Purchased)'), 'title' => Mage::helper('sales')->__('G.T. (Purchased)'), 'class' => 'required-entry validate-number', 'required' => true, 'name' => 'total_amount', 'readonly' => true));
     $fieldset->addField('amount_to_pay', 'text', array('label' => Mage::helper('hipay')->__('Amount to pay'), 'title' => Mage::helper('hipay')->__('Amount to pay'), 'class' => 'required-entry validate-number', 'required' => true, 'name' => 'amount_to_pay'));
     $fieldset->addField('date_to_pay', 'date', array('label' => Mage::helper('hipay')->__('Date to pay'), 'title' => Mage::helper('hipay')->__('Date to pay'), 'class' => 'required-entry', 'required' => true, 'name' => 'date_to_pay', 'format' => Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_SHORT), 'image' => $this->getSkinUrl('images/grid-cal.gif')));
     $fieldset->addField('attempts', 'text', array('label' => Mage::helper('hipay')->__('Attempts'), 'title' => Mage::helper('hipay')->__('Attempts'), 'class' => 'required-entry validate-number', 'required' => true, 'name' => 'attempts', 'readonly' => true));
     $fieldset->addField('status', 'select', array('label' => Mage::helper('hipay')->__('Status'), 'title' => Mage::helper('hipay')->__('Status'), 'name' => 'status', 'values' => Allopass_Hipay_Model_SplitPayment::getStatues()));
     $form->setUseContainer(true);
     $form->setValues($splitPayment->getData());
     $this->setForm($form);
     return parent::_prepareForm();
 }