34 public $module =
'webportal';
40 const STATUS_SIGN_SIGNED_INTERNAL = 12;
41 const STATUS_SIGN_SIGNED_THIRDPARTY = 13;
42 const STATUS_SIGN_SIGNED_THIRDPARTY_ONLINE = 14;
43 const STATUS_SIGN_SIGNED_ALL_PARTIES = 15;
45 const ARRAY_STATUS_LABEL = array(
47 self::STATUS_DRAFT =>
'StatusInterInDraft',
48 self::STATUS_VALIDATED =>
'StatusInterInValidated',
49 self::STATUS_BILLED =>
'StatusInterInvoiced',
50 self::STATUS_CLOSED =>
'StatusInterInClosed',
51 self::STATUS_SIGN_NOT_SIGNED =>
'WebPortalInterSignedStatusNotSigned',
52 self::STATUS_SIGN_SIGNED_INTERNAL =>
'WebPortalInterSignedStatusSignedInternal',
53 self::STATUS_SIGN_SIGNED_THIRDPARTY =>
'WebPortalInterSignedStatusSignedThirdParty',
54 self::STATUS_SIGN_SIGNED_THIRDPARTY_ONLINE =>
'WebPortalInterSignedStatusSignedThirdPartyOnline',
55 self::STATUS_SIGN_SIGNED_ALL_PARTIES =>
'WebPortalInterSignedStatusSignedAllParties',
58 public $fields = array(
59 'rowid' => array(
'type' =>
'integer',
'label' =>
'TechnicalID',
'enabled' => 1,
'visible' => 0,
'notnull' => 1,
'position' => 10),
60 'entity' => array(
'type' =>
'integer',
'label' =>
'Entity',
'enabled' => 1,
'visible' => -2,
'notnull' => 1,
'position' => 20),
61 'ref' => array(
'type' =>
'varchar(30)',
'label' =>
'Ref',
'enabled' => 1,
'visible' => 2,
'notnull' => 1,
'showoncombobox' => 1,
'position' => 25),
62 'fk_soc' => array(
'type' =>
'integer',
'label' =>
'ThirdParty',
'enabled' => 1,
'visible' => -2,
'position' => 40),
63 'datec' => array(
'type' =>
'datetime',
'label' =>
'WebPortalInterDateCreation',
'enabled' => 1,
'visible' => 2,
'position' => 60),
64 'dateo' => array(
'type' =>
'date',
'label' =>
'WebPortalInterDateStart',
'enabled' => 1,
'visible' => 2,
'position' => 61),
65 'datee' => array(
'type' =>
'date',
'label' =>
'WebPortalInterDateEnd',
'enabled' => 1,
'visible' => 2,
'position' => 62),
66 'datet' => array(
'type' =>
'date',
'label' =>
'WebPortalInterDateClose',
'enabled' => 1,
'visible' => 2,
'position' => 63),
67 'description' => array(
'type' =>
'text',
'label' =>
'Description',
'enabled' => 1,
'visible' => 2,
'position' => 80),
68 'fk_statut' => array(
'type' =>
'smallint(6)',
'label' =>
'Status',
'enabled' => 1,
'visible' => 2,
'position' => 500,
'arrayofkeyval' => self::ARRAY_STATUS_LABEL),
79 $this->isextrafieldmanaged = 0;