Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
4e8c0a67
Commit
4e8c0a67
authored
13 years ago
by
Juanjo Menent
Browse files
Options
Downloads
Patches
Plain Diff
Doxygen
parent
704993fb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/fichinter/class/fichinter.class.php
+66
-65
66 additions, 65 deletions
htdocs/fichinter/class/fichinter.class.php
with
66 additions
and
65 deletions
htdocs/fichinter/class/fichinter.class.php
+
66
−
65
View file @
4e8c0a67
...
...
@@ -22,7 +22,7 @@
/** \file htdocs/fichinter/class/fichinter.class.php
* \ingroup ficheinter
* \brief Fichier de la classe des gestion des fiches interventions
* \version $Id: fichinter.class.php,v 1.
19
2011/07/0
2 17:02:00 eldy
Exp $
* \version $Id: fichinter.class.php,v 1.
20
2011/07/0
8 09:18:54 simnandez
Exp $
*/
require_once
(
DOL_DOCUMENT_ROOT
.
"/core/class/commonobject.class.php"
);
...
...
@@ -61,9 +61,9 @@ class Fichinter extends CommonObject
var
$lines
=
array
();
/**
*
\brief Constructeur de la classe
*
\
param DB
Handler acces base de donnee
s
*
\
param socid
Id societ
e
*
Class constructor
*
@
param DB
Data base handler acces
s
*
@
param socid Id societ
y
*/
function
Fichinter
(
$DB
,
$socid
=
""
)
{
...
...
@@ -83,9 +83,9 @@ class Fichinter extends CommonObject
}
/*
*
\brief Cree une fiche
intervention
en
base
*
\
return int <0 if KO, >0 if OK
/*
*
*
Create a
intervention
into data
base
*
@
return int <0 if KO, >0 if OK
*/
function
create
()
{
...
...
@@ -168,8 +168,8 @@ class Fichinter extends CommonObject
}
/*
*
Met a jour une
intervention
/*
*
*
Update a
intervention
* @return int <0 if KO, >0 if OK
*/
function
update
(
$user
)
...
...
@@ -201,9 +201,10 @@ class Fichinter extends CommonObject
}
/**
* \brief Charge en memoire la fiche intervention
* \param rowid Id de la fiche a charger
* \return int <0 si ko, >0 si ok
* Fetch a intervention
* @param rowid Id of intervention
* @param ref Ref of intervention
* @return int <0 if ko, >0 if ok
*/
function
fetch
(
$rowid
,
$ref
=
''
)
{
...
...
@@ -261,8 +262,8 @@ class Fichinter extends CommonObject
}
/**
*
\brief
Set status to draft
*
\
return int <0 if KO, >0 if OK
* Set status to draft
*
@
return int <0 if KO, >0 if OK
*/
function
setDraft
(
$user
)
{
...
...
@@ -295,9 +296,10 @@ class Fichinter extends CommonObject
}
/**
* \brief Valide une fiche intervention
* \param user User qui valide
* \return int <0 if KO, >0 if OK
* Validate a intervention
* @param user User that validate
* @param outputdir
* @return int <0 if KO, >0 if OK
*/
function
setValid
(
$user
,
$outputdir
)
{
...
...
@@ -350,7 +352,7 @@ class Fichinter extends CommonObject
}
/**
*
s
et intervetnion as billed
*
S
et intervetnion as billed
* @return int <0 si ko, >0 si ok
*/
function
setBilled
()
...
...
@@ -375,9 +377,9 @@ class Fichinter extends CommonObject
/**
*
\brief
Ret
o
urn
e l
e l
i
bel
le du
statu
t
*
\
param mode 0=long label, 1=short label, 2=Picto + short label, 3=Picto, 4=Picto + long label, 5=Short label + Picto
*
\
return string L
i
bel
le
*
Return
s th
e l
a
bel statu
s
*
@
param mode 0=long label, 1=short label, 2=Picto + short label, 3=Picto, 4=Picto + long label, 5=Short label + Picto
*
@
return string L
a
bel
*/
function
getLibStatut
(
$mode
=
0
)
{
...
...
@@ -385,10 +387,10 @@ class Fichinter extends CommonObject
}
/**
*
\brief Renvoi l
e l
i
bel
le d'un
statut
donne
*
\
param statut id statut
*
\
param mode 0=long label, 1=short label, 2=Picto + short label, 3=Picto, 4=Picto + long label, 5=Short label + Picto
*
\
return string L
i
bel
le
*
Returns th
e l
a
bel
of a
statut
*
@
param statut id statut
*
@
param mode 0=long label, 1=short label, 2=Picto + short label, 3=Picto, 4=Picto + long label, 5=Short label + Picto
*
@
return string L
a
bel
*/
function
LibStatut
(
$statut
,
$mode
=
0
)
{
...
...
@@ -429,9 +431,9 @@ class Fichinter extends CommonObject
}
/**
*
\brief
Return clicable name (with picto eventually)
*
\
param withpicto 0=
Pas de
picto, 1=Inclu
t l
e picto
dans l
e li
e
n, 2=Picto
seul
*
\
return string
Chaine avec
URL
* Return clicable name (with picto eventually)
*
@
param withpicto 0=
_No
picto, 1=Inclu
des th
e picto
in th
e li
nk
n, 2=Picto
only
*
@
return string
String with
URL
*/
function
getNomUrl
(
$withpicto
=
0
)
{
...
...
@@ -454,10 +456,10 @@ class Fichinter extends CommonObject
/**
*
\brief Renvoie la
reference
de fiche
intervention
suivante non utilisee en fonction du module
*
d
e numer
otation actif defini dans
FICHEINTER_ADDON
*
\
param soc
o
bjet societ
e
*
\
return string
reference libre pour la fiche
intervention
*
Returns the next non used
reference
of
intervention
*
depending on the modul
e num
b
er
ing assets within
FICHEINTER_ADDON
*
@
param soc
O
bje
c
t societ
y
*
@
return string
Free reference for
intervention
*/
function
getNextNumRef
(
$soc
)
{
...
...
@@ -502,8 +504,8 @@ class Fichinter extends CommonObject
}
/**
*
\brief
Information sur l'objet fiche intervention
*
\
param id id de la fiche d'intervention
*
Information sur l'objet fiche intervention
*
@
param id id de la fiche d'intervention
*/
function
info
(
$id
)
{
...
...
@@ -551,8 +553,8 @@ class Fichinter extends CommonObject
}
/**
*
\brief Efface fich
e interve
n
tion
*
\
param user
Objet
du
user
qui efface
*
Delet
e intervet
n
ion
*
@
param user
Obje
c
t user
who deletes
*/
function
delete
(
$user
)
{
...
...
@@ -647,10 +649,10 @@ class Fichinter extends CommonObject
}
/**
*
\brief Definit une date
de
liv
raison du bon d'
intervention
*
\
param user
Objet u
tilisateur qui modi
fie
*
\
param date_
creation
date de
liv
raison
*
\
return int
<0
s
i ko, >0
s
i ok
*
Defines a
deliv
ery date of
intervention
*
@
param user
Obje
c
t u
ser who de
fi
n
e
*
@
param date_
delivery
date
of
deliv
ery
*
@
return int
<0 i
f
ko, >0 i
f
ok
*/
function
set_date_delivery
(
$user
,
$date_delivery
)
{
...
...
@@ -679,10 +681,10 @@ class Fichinter extends CommonObject
}
/**
*
\brief
Defin
it l
e label
de l'
intervention
*
\
param user
Objet u
tilisateur qui
modif
ie
*
\
param description description
*
\
return int
<0
s
i ko, >0
s
i ok
*
Defin
e th
e label
of the
intervention
*
@
param user
Obje
c
t u
ser who
modif
y
*
@
param description description
*
@
return int
<0 i
f
ko, >0 i
f
ok
*/
function
set_description
(
$user
,
$description
)
{
...
...
@@ -711,12 +713,12 @@ class Fichinter extends CommonObject
}
/**
*
\brief Ajout d'une
li
g
ne
d'
intervention
, en
base
*
\
param fichinterid
Id de la fiche d'
intervention
*
\
param desc
Description de la ligne
*
\
param date_intervention
Date de l'i
ntervention
*
\
param duration
Duree de l'i
ntervention
*
\
return int >0
s
i ok, <0
s
i ko
*
Adding a
line
of
intervention
into data
base
*
@
param fichinterid
Id of
intervention
*
@
param desc
Line description
*
@
param date_intervention
I
ntervention
date
*
@
param duration
I
ntervention
duration
*
@
return int >0 i
f
ok, <0 i
f
ko
*/
function
addline
(
$fichinterid
,
$desc
,
$date_intervention
,
$duration
)
{
...
...
@@ -752,8 +754,8 @@ class Fichinter extends CommonObject
/**
*
\brief Initialise la fiche intervention avec valeurs fictives aleatoire
*
Sert a generer une fiche intervention pour l'aperu
de
s
model
es ou demo
*
Initializes the intervention with random values
*
Used to generate a intervention for the preview or
de
mo
model
s
*/
function
initAsSpecimen
()
{
...
...
@@ -813,9 +815,8 @@ class Fichinter extends CommonObject
}
/**
* Initialise la fiche intervention avec valeurs fictives aleatoire
* Sert a generer une fiche intervention pour l'aperu des modeles ou demo
* @return int <0 OK, >0 KO
* Load array lines
* @return int <0 if Ko, >0 if OK
*/
function
fetch_lines
()
{
...
...
@@ -886,8 +887,8 @@ class FichinterLigne
}
/**
*
\brief Recupere l'objet
li
g
ne
d'
intervention
*
\
param rowid
id de la ligne
*
Retrieve the
line
of
intervention
*
@
param rowid
line id
*/
function
fetch
(
$rowid
)
{
...
...
@@ -920,8 +921,8 @@ class FichinterLigne
}
/**
*
\brief Insere l'objet
li
g
ne
d'
int
ervention en
base
*
\
return int <0
s
i ko, >0
s
i ok
*
Insert the
line int
o data
base
*
@
return int <0 i
f
ko, >0 i
f
ok
*/
function
insert
()
{
...
...
@@ -987,8 +988,8 @@ class FichinterLigne
/**
*
\brief Mise a jour de l'objet ligne d'
intervention
en
base
*
\
return int <0
s
i ko, >0
s
i ok
*
Update
intervention
into data
base
*
@
return int <0 i
f
ko, >0 i
f
ok
*/
function
update
()
{
...
...
@@ -1030,8 +1031,8 @@ class FichinterLigne
}
/**
*
\brief Mise a jour duree total dans table
llx_fichinter
*
\
return int <0 si ko, >0 si ok
*
Update total duration into
llx_fichinter
*
@
return int <0 si ko, >0 si ok
*/
function
update_total
()
{
...
...
@@ -1081,8 +1082,8 @@ class FichinterLigne
}
/**
*
\brief Supprime une ligne d'
intervention
*
\
return int
>0
s
i ok, <0
s
i ko
*
Delete a
intervention
line
*
@
return int
>0 i
f
ok, <0 i
f
ko
*/
function
deleteline
()
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment