Beispiel #1
0
 public function pxyDeleteStack_Click($strFormId, $strControlId, $strParameter)
 {
     if ($this->objStack && !$this->objStack->CountStewardshipContributions()) {
         $this->objStack->Delete();
         if ($this->objBatch->CountStewardshipStacks()) {
             $this->objBatch->RefreshStackNumbering();
             $this->pnlStacks_Refresh(true);
             $this->pnlBatchTitle->Refresh();
             $this->objBatch->RefreshReportedTotalAmount();
             QApplication::ExecuteJavaScript(sprintf('document.location="/stewardship/batch.php/%s";', $this->objBatch->Id));
         } else {
             $this->objBatch->Delete();
             $dttDateEntered = $this->objBatch->DateEntered;
             StewardshipBatch::RefreshBatchLettering($dttDateEntered);
             QApplication::Redirect('/stewardship/');
         }
     }
 }