Ajout option de réinitialisation d'un enrichissement pour recommencer à zéro
This commit is contained in:
parent
72d3750960
commit
d972d9d545
@ -70,7 +70,25 @@ class IndexController extends Zend_Controller_Action
|
|||||||
} else {
|
} else {
|
||||||
echo 'Impossible de charger le fichier.';
|
echo 'Impossible de charger le fichier.';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function restartAction()
|
||||||
|
{
|
||||||
|
$this->_helper->layout()->disableLayout();
|
||||||
|
$this->_helper->viewRenderer->setNoRender(true);
|
||||||
|
$request = $this->getRequest();
|
||||||
|
$id = $request->getParam('id');
|
||||||
|
if (!empty($id)){
|
||||||
|
$commandesM = new Application_Model_Commandes();
|
||||||
|
$data = array(
|
||||||
|
'nbLigneT' => 0,
|
||||||
|
'error' => '',
|
||||||
|
'dateStart' => '0000-00-00 00:00:00',
|
||||||
|
'fichierOut' => '',
|
||||||
|
);
|
||||||
|
$commandesM->update($data, "id=$id");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
@ -42,7 +42,14 @@
|
|||||||
<?php if (count($this->fileEnCours)) {?>
|
<?php if (count($this->fileEnCours)) {?>
|
||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
<tr><th>Fichier</th><th>Date</th><th>Lignes traités</th><th>Lignes total</th></tr>
|
<tr>
|
||||||
|
<th>Fichier</th>
|
||||||
|
<th>Date Ajout</th>
|
||||||
|
<th>Lignes Traités</th>
|
||||||
|
<th>Lignes Total</th>
|
||||||
|
<th>Message d'erreur</th>
|
||||||
|
<th>Action</th>
|
||||||
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php foreach($this->fileEnCours as $file) {?>
|
<?php foreach($this->fileEnCours as $file) {?>
|
||||||
@ -51,6 +58,8 @@
|
|||||||
<td><?=$file->dateAdded?></td>
|
<td><?=$file->dateAdded?></td>
|
||||||
<td class="ligne"><?=$file->nbLigneT?></td>
|
<td class="ligne"><?=$file->nbLigneT?></td>
|
||||||
<td><?=$file->nbLigne?></td>
|
<td><?=$file->nbLigne?></td>
|
||||||
|
<td><?=$file->error?></td>
|
||||||
|
<td><a class="restart" href="<?=$this->url(array('action'=>'restart', 'id'=>$file->id))?>">Remise à zéro et redémarrage</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php }?>
|
<?php }?>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
Loading…
Reference in New Issue
Block a user