issue #0001391 : Add id to delete document

This commit is contained in:
Michael RICOIS 2012-11-19 16:09:08 +00:00
parent 341e5f90a3
commit 89521e5bf5
2 changed files with 5 additions and 1 deletions

View File

@ -1902,6 +1902,7 @@ class Saisie extends WsScore
foreach ( $rowset as $item ) {
$struct = new LienDoc();
$struct->id = $item->id;
$struct->perimetre = $item->periDoc;
$params = explode('-', $item->docRef);
switch($params[0]) {
@ -1921,7 +1922,7 @@ class Saisie extends WsScore
'DW'=>"Document Web/Internet",
);
$struct->label = $tabLabel[$params[2]].' ('.WDate::dateT('Ymd', 'd/m/Y', $params[3]).')';
$struct->url = $item->docRef;
$struct->url = $item->docRef.'.pdf';
break;
case 'GREFFE' :
$struct->label = $item->docRef;

View File

@ -314,6 +314,9 @@ class SearchLienRef
class LienDoc
{
/** @var int */
public $id;
/** @var string */
public $perimetre;