Example #1
0
 /**
  * @param ExtendedHyperLinkColumnDecorator $columnDecorator
  */
 public function RenderExtendedHyperLinkColumnDecorator($columnDecorator)
 {
     if ($columnDecorator->GetData() == null) {
         $this->result = $this->GetNullValuePresentation($columnDecorator);
     } else {
         if ($this->HtmlMarkupAvailable()) {
             $this->result = sprintf('<a href="%s" target="%s">%s</a>', $columnDecorator->GetLink(), $columnDecorator->GetTarget(), $this->Render($columnDecorator->GetInnerField()));
         } else {
             $this->result = $this->Render($columnDecorator->GetInnerField());
         }
     }
 }
Example #2
0
 protected function AddFieldColumns(Grid $grid)
 {
     //
     // View column for id_accion field
     //
     $column = new TextViewColumn('id_accion', 'Id Accion', $this->dataset);
     $column->SetOrderable(true);
     $column->SetDescription($this->RenderText('Identificador único de la acción.'));
     $column->SetFixedWidth(null);
     $grid->AddViewColumn($column);
     
     //
     // View column for ds_referencia field
     //
     $column = new TextViewColumn('id_tipo_accion_ds_referencia', 'Tipo Accion', $this->dataset);
     $column->SetOrderable(true);
     $column = new ExtendedHyperLinkColumnDecorator($column, $this->dataset, 'tipo_accion.php?operation=view&pk0=%id_tipo_accion%' , '_self');
     $column->SetDescription($this->RenderText('Tipo de la accion.'));
     $column->SetFixedWidth(null);
     $grid->AddViewColumn($column);
     
     //
     // View column for ds_referencia field
     //
     $column = new TextViewColumn('id_tipo_espacio_ds_referencia', 'Tipo Espacio', $this->dataset);
     $column->SetOrderable(true);
     $column = new ExtendedHyperLinkColumnDecorator($column, $this->dataset, 'tipo_espacio.php?operation=view&pk0=%id_tipo_espacio%' , '_self');
     $column->SetDescription($this->RenderText('Tipo de espacio en que se puede ejecutar la acción.'));
     $column->SetFixedWidth(null);
     $grid->AddViewColumn($column);
     
     //
     // View column for ds_referencia field
     //
     $column = new TextViewColumn('id_tipo_bien_ds_referencia', 'Tipo Bien', $this->dataset);
     $column->SetOrderable(true);
     $column = new ExtendedHyperLinkColumnDecorator($column, $this->dataset, 'tipo_bien.php?operation=view&pk0=%id_tipo_bien%' , '_self');
     $column->SetDescription($this->RenderText('Tipo de bien sobre el que se ejecuta la acción.'));
     $column->SetFixedWidth(null);
     $grid->AddViewColumn($column);
     
     //
     // View column for no_origen field
     //
     $column = new TextViewColumn('id_origen_no_origen', 'Origen', $this->dataset);
     $column->SetOrderable(true);
     $column = new ExtendedHyperLinkColumnDecorator($column, $this->dataset, 'origen.php?operation=view&pk0=%id_origen%' , '_self');
     $column->SetDescription($this->RenderText('Origen de la acción.'));
     $column->SetFixedWidth(null);
     $grid->AddViewColumn($column);
     
     //
     // View column for no_metodologia field
     //
     $column = new TextViewColumn('id_metodologia_no_metodologia', 'Metodología', $this->dataset);
     $column->SetOrderable(true);
     $column = new ExtendedHyperLinkColumnDecorator($column, $this->dataset, 'metodologia.php?operation=view&pk0=%id_metodologia%' , '_self');
     $column->SetDescription($this->RenderText('Metodología de realización de la acción.'));
     $column->SetFixedWidth(null);
     $grid->AddViewColumn($column);
     
     //
     // View column for no_periodicidad field
     //
     $column = new TextViewColumn('id_periodicidad_no_periodicidad', 'Periodicidad', $this->dataset);
     $column->SetOrderable(true);
     $column = new ExtendedHyperLinkColumnDecorator($column, $this->dataset, 'periodicidad.php?operation=view&pk0=%id_periodicidad%' , '_self');
     $column->SetDescription($this->RenderText('Periodicidad de ejecución de la acción.'));
     $column->SetFixedWidth(null);
     $grid->AddViewColumn($column);
     
     //
     // View column for fl_a_demanda field
     //
     $column = new TextViewColumn('fl_a_demanda', 'A Demanda', $this->dataset);
     $column->SetOrderable(true);
     $column = new CheckBoxFormatValueViewColumnDecorator($column);
     $column->SetDisplayValues($this->RenderText('<img src="images/checked.png" alt="true">'), $this->RenderText(''));
     $column->SetDescription($this->RenderText('Indicador de si la actividad puede ser realizada a demanda.'));
     $column->SetFixedWidth(null);
     $grid->AddViewColumn($column);
     
     //
     // View column for ds_referencia field
     //
     $column = new TextViewColumn('ds_referencia', 'Descripción Referencia', $this->dataset);
     $column->SetOrderable(true);
     $column->SetMaxLength(75);
     $column->SetFullTextWindowHandlerName('public_sga_accionGrid_ds_referencia_handler_list');
     $column->SetDescription($this->RenderText('Referencia del registro.'));
     $column->SetFixedWidth(null);
     $grid->AddViewColumn($column);
 }
Example #3
0
 protected function AddFieldColumns(Grid $grid)
 {
     //
     // View column for ds_referencia field
     //
     $column = new TextViewColumn('id_tipo_accion_ds_referencia', 'Tipo Accion', $this->dataset);
     $column->SetOrderable(true);
     $column = new ExtendedHyperLinkColumnDecorator($column, $this->dataset, 'tipo_accion.php?operation=view&pk0=%id_tipo_accion%' , '_self');
     $column->SetDescription($this->RenderText('Tipo de la accion.'));
     $column->SetFixedWidth(null);
     $grid->AddViewColumn($column);
     
     //
     // View column for ds_referencia field
     //
     $column = new TextViewColumn('id_tipo_espacio_ds_referencia', 'Tipo Espacio', $this->dataset);
     $column->SetOrderable(true);
     $column = new ExtendedHyperLinkColumnDecorator($column, $this->dataset, 'tipo_espacio.php?operation=view&pk0=%id_tipo_espacio%' , '_self');
     $column->SetDescription($this->RenderText('Tipo de espacio en que se puede ejecutar la acción.'));
     $column->SetFixedWidth(null);
     $grid->AddViewColumn($column);
     
     //
     // View column for no_sector field
     //
     $column = new TextViewColumn('id_sector_no_sector', 'Sector', $this->dataset);
     $column->SetOrderable(true);
     $column = new ExtendedHyperLinkColumnDecorator($column, $this->dataset, 'sector.php?operation=view&pk0=%id_sector%' , '_self');
     $column->SetDescription($this->RenderText('Sector sobre el que se ejecuta la acción.'));
     $column->SetFixedWidth(null);
     $grid->AddViewColumn($column);
     
     //
     // View column for no_metodologia field
     //
     $column = new TextViewColumn('id_metodologia_no_metodologia', 'Metodología', $this->dataset);
     $column->SetOrderable(true);
     $column = new ExtendedHyperLinkColumnDecorator($column, $this->dataset, 'metodologia.php?operation=view&pk0=%id_metodologia%' , '_self');
     $column->SetDescription($this->RenderText('Metodología de realización de la acción.'));
     $column->SetFixedWidth(null);
     $grid->AddViewColumn($column);
     
     //
     // View column for no_periodicidad field
     //
     $column = new TextViewColumn('id_periodicidad_no_periodicidad', 'Periodicidad', $this->dataset);
     $column->SetOrderable(true);
     $column = new ExtendedHyperLinkColumnDecorator($column, $this->dataset, 'periodicidad.php?operation=view&pk0=%id_periodicidad%' , '_self');
     $column->SetDescription($this->RenderText('Periodicidad de ejecución de la acción.'));
     $column->SetFixedWidth(null);
     $grid->AddViewColumn($column);
     
     //
     // View column for fe_horas field
     //
     $column = new TextViewColumn('fe_horas', 'Horas Ejecución', $this->dataset);
     $column->SetOrderable(true);
     $column->SetMaxLength(75);
     $column->SetFullTextWindowHandlerName('public_sga_accionGrid_fe_horas_handler_list');
     $column->SetDescription($this->RenderText(' Horarios de ejecución de las tareas.'));
     $column->SetFixedWidth(null);
     $grid->AddViewColumn($column);
 }
Example #4
0
 protected function AddFieldColumns(Grid $grid)
 {
     //
     // View column for id_tarea_plan field
     //
     $column = new TextViewColumn('id_tarea_plan', 'Id Tarea Plan', $this->dataset);
     $column->SetOrderable(true);
     $column->SetDescription($this->RenderText('Identificador único de la planificación de la tarea.'));
     $column->SetFixedWidth(null);
     $grid->AddViewColumn($column);
     
     //
     // View column for ds_referencia field
     //
     $column = new TextViewColumn('id_accion_ds_referencia', 'Acción', $this->dataset);
     $column->SetOrderable(true);
     $column = new ExtendedHyperLinkColumnDecorator($column, $this->dataset, 'accion.php?operation=view&pk0=%id_accion%' , '_self');
     $column->SetDescription($this->RenderText('Acción que ejecuta la tarea planificada.'));
     $column->SetFixedWidth(null);
     $grid->AddViewColumn($column);
     
     //
     // View column for ds_referencia field
     //
     $column = new TextViewColumn('id_espacio_ds_referencia', 'Espacio', $this->dataset);
     $column->SetOrderable(true);
     $column = new ExtendedHyperLinkColumnDecorator($column, $this->dataset, 'espacio.php?operation=view&pk0=%id_espacio%' , '_self');
     $column->SetDescription($this->RenderText('Espacio sobre el que se ejecuta la tarea planificada.'));
     $column->SetFixedWidth(null);
     $grid->AddViewColumn($column);
     
     //
     // View column for ds_observacion field
     //
     $column = new TextViewColumn('id_bien_ds_observacion', 'Bien', $this->dataset);
     $column->SetOrderable(true);
     $column = new ExtendedHyperLinkColumnDecorator($column, $this->dataset, 'bien.php?operation=view&pk0=%id_bien%' , '_self');
     $column->SetDescription($this->RenderText('Bien asociado a la tarea planificada.'));
     $column->SetFixedWidth(null);
     $grid->AddViewColumn($column);
     
     //
     // View column for no_periodicidad field
     //
     $column = new TextViewColumn('id_periodicidad_no_periodicidad', 'Periodicidad', $this->dataset);
     $column->SetOrderable(true);
     $column = new ExtendedHyperLinkColumnDecorator($column, $this->dataset, 'periodicidad.php?operation=view&pk0=%id_periodicidad%' , '_self');
     $column->SetDescription($this->RenderText('Periodicidad de ejecución de la tarea planificada.'));
     $column->SetFixedWidth(null);
     $grid->AddViewColumn($column);
     
     //
     // View column for ds_detalle field
     //
     $column = new TextViewColumn('ds_detalle', 'Detalle', $this->dataset);
     $column->SetOrderable(true);
     $column->SetMaxLength(75);
     $column->SetFullTextWindowHandlerName('public_sga_tarea_planGrid_ds_detalle_handler_list');
     $column->SetDescription($this->RenderText('Detalles adicionales necesarios para la realización de la tarea.'));
     $column->SetFixedWidth(null);
     $grid->AddViewColumn($column);
 }
Example #5
0
 protected function AddFieldColumns(Grid $grid)
 {
     //
     // View column for id_metodologia field
     //
     $column = new TextViewColumn('id_metodologia', 'Id Metodologia', $this->dataset);
     $column->SetOrderable(true);
     $column->SetDescription($this->RenderText('Identificador único de una metodología.'));
     $column->SetFixedWidth(null);
     $grid->AddViewColumn($column);
     
     //
     // View column for no_metodologia field
     //
     $column = new TextViewColumn('no_metodologia', 'Nombre', $this->dataset);
     $column->SetOrderable(true);
     $column->SetMaxLength(75);
     $column->SetFullTextWindowHandlerName('public_sga_metodologiaGrid_no_metodologia_handler_list');
     $column->SetDescription($this->RenderText('Nombre de la metodología.'));
     $column->SetFixedWidth(null);
     $grid->AddViewColumn($column);
     
     //
     // View column for ds_metodologia field
     //
     $column = new TextViewColumn('ds_metodologia', 'Descripción Metodo', $this->dataset);
     $column->SetOrderable(true);
     $column->SetMaxLength(75);
     $column->SetFullTextWindowHandlerName('public_sga_metodologiaGrid_ds_metodologia_handler_list');
     $column->SetDescription($this->RenderText('Descripción del metodología.'));
     $column->SetFixedWidth(null);
     $grid->AddViewColumn($column);
     
     //
     // View column for no_origen field
     //
     $column = new TextViewColumn('id_origen_no_origen', 'Origen', $this->dataset);
     $column->SetOrderable(true);
     $column = new ExtendedHyperLinkColumnDecorator($column, $this->dataset, 'origen.php?operation=view&pk0=%id_origen%' , '_self');
     $column->SetDescription($this->RenderText('Origen de la metodología.'));
     $column->SetFixedWidth(null);
     $grid->AddViewColumn($column);
 }
Example #6
0
 protected function AddFieldColumns(Grid $grid)
 {
     //
     // View column for id_espacio field
     //
     $column = new TextViewColumn('id_espacio', 'Id Espacio', $this->dataset);
     $column->SetOrderable(true);
     $column->SetDescription($this->RenderText('Identificador único del espacio.'));
     $column->SetFixedWidth(null);
     $grid->AddViewColumn($column);
     
     //
     // View column for ds_referencia field
     //
     $column = new TextViewColumn('id_tipo_espacio_ds_referencia', 'Tipo Espacio', $this->dataset);
     $column->SetOrderable(true);
     $column = new ExtendedHyperLinkColumnDecorator($column, $this->dataset, 'tipo_espacio.php?operation=view&pk0=%id_tipo_espacio%' , '_self');
     $column->SetDescription($this->RenderText('Tipo del espacio.'));
     $column->SetFixedWidth(null);
     $grid->AddViewColumn($column);
     
     //
     // View column for ds_referencia field
     //
     $column = new TextViewColumn('id_espacio_contenedor_ds_referencia', 'Espacio Contenedor', $this->dataset);
     $column->SetOrderable(true);
     $column = new ExtendedHyperLinkColumnDecorator($column, $this->dataset, 'espacio.php?operation=view&pk0=%id_espacio_contenedor%' , '_self');
     $column->SetDescription($this->RenderText('Espacio que contiene al espacio actual (padre).'));
     $column->SetFixedWidth(null);
     $grid->AddViewColumn($column);
     
     //
     // View column for co_espacio field
     //
     $column = new TextViewColumn('co_espacio', 'Código Espacio', $this->dataset);
     $column->SetOrderable(true);
     $column->SetDescription($this->RenderText('Código de espacio.'));
     $column->SetFixedWidth(null);
     $grid->AddViewColumn($column);
     
     //
     // View column for no_espacio field
     //
     $column = new TextViewColumn('no_espacio', 'Nombre Espacio', $this->dataset);
     $column->SetOrderable(true);
     $column->SetMaxLength(75);
     $column->SetFullTextWindowHandlerName('public_sga_espacioGrid_no_espacio_handler_list');
     $column->SetDescription($this->RenderText('Nombre del espacio.'));
     $column->SetFixedWidth(null);
     $grid->AddViewColumn($column);
     
     //
     // View column for co_plano field
     //
     $column = new TextViewColumn('co_plano', 'Código Plano', $this->dataset);
     $column->SetOrderable(true);
     $column->SetDescription($this->RenderText('Codificación del espacio en los planos de Espacio Físico.'));
     $column->SetFixedWidth(null);
     $grid->AddViewColumn($column);
     
     //
     // View column for no_planta field
     //
     $column = new TextViewColumn('id_planta_no_planta', 'Planta', $this->dataset);
     $column->SetOrderable(true);
     $column = new ExtendedHyperLinkColumnDecorator($column, $this->dataset, 'planta.php?operation=view&pk0=%id_planta%' , '_self');
     $column->SetDescription($this->RenderText('Planta en la que se encuentra el espacio.'));
     $column->SetFixedWidth(null);
     $grid->AddViewColumn($column);
     
     //
     // View column for ds_referencia field
     //
     $column = new TextViewColumn('ds_referencia', 'Referencia', $this->dataset);
     $column->SetOrderable(true);
     $column->SetMaxLength(75);
     $column->SetFullTextWindowHandlerName('public_sga_espacioGrid_ds_referencia_handler_list');
     $column->SetDescription($this->RenderText('Referencia del registro.'));
     $column->SetFixedWidth(null);
     $grid->AddViewColumn($column);
 }
 function CreateMasterDetailRecordGridFortimesheetDetailEdit0taskDetailEdit0department_projectsGrid()
 {
     $result = new Grid($this, $this->dataset, 'MasterDetailRecordGridFortimesheetDetailEdit0taskDetailEdit0department_projects');
     $result->SetAllowDeleteSelected(false);
     $result->OnCustomDrawCell->AddListener('MasterDetailRecordGridFortimesheetDetailEdit0taskDetailEdit0department_projects' . '_OnCustomDrawRow', $this);
     $result->SetShowFilterBuilder(false);
     $result->SetAdvancedSearchAvailable(false);
     $result->SetFilterRowAvailable(false);
     $result->SetShowUpdateLink(false);
     $result->SetEnabledInlineEditing(false);
     $result->SetShowKeyColumnsImagesInHeader(false);
     $result->SetName('master_grid');
     //
     // View column for project_id field
     //
     $column = new TextViewColumn('project_id', 'Project', $this->dataset);
     $column->SetOrderable(true);
     $column = new ExtendedHyperLinkColumnDecorator($column, $this->dataset, 'department_projects?operation=view&pk0=%project_id%', '');
     $column->SetDescription($this->RenderText(''));
     $column->SetFixedWidth(null);
     $result->AddViewColumn($column);
     //
     // View column for task_name field
     //
     $column = new TextViewColumn('task_name', 'Task Name', $this->dataset);
     $column->SetOrderable(true);
     $column->SetMaxLength(75);
     $column->SetFullTextWindowHandlerName('taskGrid_task_name_handler_list');
     $column->SetDescription($this->RenderText(''));
     $column->SetFixedWidth(null);
     $result->AddViewColumn($column);
     //
     // View column for notes field
     //
     $column = new TextViewColumn('notes', 'Notes', $this->dataset);
     $column->SetOrderable(true);
     $column->SetMaxLength(75);
     $column->SetFullTextWindowHandlerName('taskGrid_notes_handler_list');
     $column->SetDescription($this->RenderText(''));
     $column->SetFixedWidth(null);
     $result->AddViewColumn($column);
     //
     // View column for hrs field
     //
     $column = new TextViewColumn('hrs', 'Estimated Hours', $this->dataset);
     $column->SetOrderable(true);
     $column = new NumberFormatValueViewColumnDecorator($column, 2, ',', '.');
     $column->SetDescription($this->RenderText(''));
     $column->SetFixedWidth(null);
     $result->AddViewColumn($column);
     //
     // View column for assigned_to field
     //
     $column = new TextViewColumn('assigned_to', 'Assigned To', $this->dataset);
     $column->SetOrderable(true);
     $column->SetDescription($this->RenderText(''));
     $column->SetFixedWidth(null);
     $result->AddViewColumn($column);
     //
     // View column for date_start field
     //
     $column = new DateTimeViewColumn('date_start', 'Date Start', $this->dataset);
     $column->SetDateTimeFormat('Y-m-d');
     $column->SetOrderable(true);
     $column->SetDescription($this->RenderText(''));
     $column->SetFixedWidth(null);
     $result->AddViewColumn($column);
     //
     // View column for date_end field
     //
     $column = new DateTimeViewColumn('date_end', 'Date End', $this->dataset);
     $column->SetDateTimeFormat('Y-m-d');
     $column->SetOrderable(true);
     $column->SetDescription($this->RenderText(''));
     $column->SetFixedWidth(null);
     $result->AddViewColumn($column);
     //
     // View column for project_id field
     //
     $column = new TextViewColumn('project_id', 'Project', $this->dataset);
     $column->SetOrderable(true);
     $column = new ExtendedHyperLinkColumnDecorator($column, $this->dataset, 'department_projects?operation=view&pk0=%project_id%', '');
     $result->AddPrintColumn($column);
     //
     // View column for task_name field
     //
     $column = new TextViewColumn('task_name', 'Task Name', $this->dataset);
     $column->SetOrderable(true);
     $result->AddPrintColumn($column);
     //
     // View column for notes field
     //
     $column = new TextViewColumn('notes', 'Notes', $this->dataset);
     $column->SetOrderable(true);
     $result->AddPrintColumn($column);
     //
     // View column for hrs field
     //
     $column = new TextViewColumn('hrs', 'Estimated Hours', $this->dataset);
     $column->SetOrderable(true);
     $column = new NumberFormatValueViewColumnDecorator($column, 2, ',', '.');
     $result->AddPrintColumn($column);
     //
     // View column for assigned_to field
     //
     $column = new TextViewColumn('assigned_to', 'Assigned To', $this->dataset);
     $column->SetOrderable(true);
     $result->AddPrintColumn($column);
     //
     // View column for date_start field
     //
     $column = new DateTimeViewColumn('date_start', 'Date Start', $this->dataset);
     $column->SetDateTimeFormat('Y-m-d');
     $column->SetOrderable(true);
     $result->AddPrintColumn($column);
     //
     // View column for date_end field
     //
     $column = new DateTimeViewColumn('date_end', 'Date End', $this->dataset);
     $column->SetDateTimeFormat('Y-m-d');
     $column->SetOrderable(true);
     $result->AddPrintColumn($column);
     return $result;
 }
Example #8
0
File: bien.php Project: jsrxar/dto
 protected function AddFieldColumns(Grid $grid)
 {
     //
     // View column for id_bien field
     //
     $column = new TextViewColumn('id_bien', 'Id Bien', $this->dataset);
     $column->SetOrderable(true);
     $column->SetDescription($this->RenderText('Identificador único del bien.'));
     $column->SetFixedWidth(null);
     $grid->AddViewColumn($column);
     
     //
     // View column for ds_referencia field
     //
     $column = new TextViewColumn('id_tipo_bien_ds_referencia', 'Tipo Bien', $this->dataset);
     $column->SetOrderable(true);
     $column = new ExtendedHyperLinkColumnDecorator($column, $this->dataset, 'tipo_bien.php?operation=view&pk0=%id_tipo_bien%' , '_self');
     $column->SetDescription($this->RenderText('Tipo del bien.'));
     $column->SetFixedWidth(null);
     $grid->AddViewColumn($column);
     
     //
     // View column for ds_referencia field
     //
     $column = new TextViewColumn('id_espacio_ds_referencia', 'Espacio', $this->dataset);
     $column->SetOrderable(true);
     $column = new ExtendedHyperLinkColumnDecorator($column, $this->dataset, 'espacio.php?operation=view&pk0=%id_espacio%' , '_self');
     $column->SetDescription($this->RenderText('Espacio en el que se encuentra el bien.'));
     $column->SetFixedWidth(null);
     $grid->AddViewColumn($column);
     
     //
     // View column for nu_cantidad field
     //
     $column = new TextViewColumn('nu_cantidad', 'Cantidad', $this->dataset);
     $column->SetOrderable(true);
     $column->SetDescription($this->RenderText('Cantidad del tipo de bien dentro del espacio.'));
     $column->SetFixedWidth(null);
     $grid->AddViewColumn($column);
     
     //
     // View column for ds_observacion field
     //
     $column = new TextViewColumn('ds_observacion', 'Observaciones', $this->dataset);
     $column->SetOrderable(true);
     $column->SetMaxLength(75);
     $column->SetFullTextWindowHandlerName('public_sga_bienGrid_ds_observacion_handler_list');
     $column->SetDescription($this->RenderText('Observaciones sobre el bien.'));
     $column->SetFixedWidth(null);
     $grid->AddViewColumn($column);
 }