本文整理汇总了PHP中TextViewColumn::SetOrderable方法的典型用法代码示例。如果您正苦于以下问题:PHP TextViewColumn::SetOrderable方法的具体用法?PHP TextViewColumn::SetOrderable怎么用?PHP TextViewColumn::SetOrderable使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TextViewColumn
的用法示例。
在下文中一共展示了TextViewColumn::SetOrderable方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: AddExportColumns
protected function AddExportColumns(Grid $grid)
{
//
// View column for DEPT_ID field
//
$column = new TextViewColumn('DEPT_ID', 'DEPT ID', $this->dataset);
$column->SetOrderable(true);
$grid->AddExportColumn($column);
//
// View column for DEPARTMENT field
//
$column = new TextViewColumn('DEPARTMENT', 'Department', $this->dataset);
$column->SetOrderable(true);
$grid->AddExportColumn($column);
//
// View column for LOCATION field
//
$column = new TextViewColumn('LOCATION', 'Location', $this->dataset);
$column->SetOrderable(true);
$grid->AddExportColumn($column);
//
// View column for PHONE_NO field
//
$column = new TextViewColumn('PHONE_NO', 'Phone No', $this->dataset);
$column->SetOrderable(true);
$grid->AddExportColumn($column);
}
示例2: CreateGrid
protected function CreateGrid()
{
$result = new Grid($this, $this->dataset, 'public_sga_accionGrid');
if ($this->GetSecurityInfo()->HasDeleteGrant())
$result->SetAllowDeleteSelected(true);
else
$result->SetAllowDeleteSelected(true);
ApplyCommonPageSettings($this, $result);
$result->SetUseImagesForActions(true);
$defaultSortedColumns = array();
$defaultSortedColumns[] = new SortColumn('id_accion', 'DESC');
$result->setDefaultOrdering($defaultSortedColumns);
$result->SetUseFixedHeader(false);
$result->SetShowLineNumbers(false);
$result->SetHighlightRowAtHover(true);
$result->SetWidth('');
$this->CreateGridSearchControl($result);
$this->CreateGridAdvancedSearchControl($result);
$this->AddFieldColumns($result);
$this->AddSingleRecordViewColumns($result);
$this->AddEditColumns($result);
$this->AddInsertColumns($result);
$this->AddPrintColumns($result);
$this->AddExportColumns($result);
$this->AddOperationsColumns($result);
$this->SetShowPageList(true);
$this->SetHidePageListByDefault(false);
$this->SetExportToExcelAvailable(true);
$this->SetExportToWordAvailable(true);
$this->SetExportToXmlAvailable(true);
$this->SetExportToCsvAvailable(true);
$this->SetExportToPdfAvailable(true);
$this->SetPrinterFriendlyAvailable(true);
$this->SetSimpleSearchAvailable(true);
$this->SetAdvancedSearchAvailable(true);
$this->SetFilterRowAvailable(true);
$this->SetVisualEffectsEnabled(true);
$this->SetShowTopPageNavigator(true);
$this->SetShowBottomPageNavigator(true);
//
// Http Handlers
//
//
// View column for fe_horas field
//
$column = new TextViewColumn('fe_horas', 'Horas Ejecución', $this->dataset);
$column->SetOrderable(true);
$handler = new ShowTextBlobHandler($this->dataset, $this, 'public_sga_accionGrid_fe_horas_handler_list', $column);
GetApplication()->RegisterHTTPHandler($handler);//
// View column for fe_horas field
//
$column = new TextViewColumn('fe_horas', 'Horas Ejecución', $this->dataset);
$column->SetOrderable(true);
$handler = new ShowTextBlobHandler($this->dataset, $this, 'public_sga_accionGrid_fe_horas_handler_view', $column);
GetApplication()->RegisterHTTPHandler($handler);
//
// View column for ds_referencia field
//
$column = new TextViewColumn('ds_referencia', 'Descripción', $this->dataset);
$column->SetOrderable(true);
$handler = new ShowTextBlobHandler($this->dataset, $this, 'public_sga_accionGrid_ds_referencia_handler_view', $column);
GetApplication()->RegisterHTTPHandler($handler);
return $result;
}
示例3: AddExportColumns
protected function AddExportColumns(Grid $grid)
{
//
// View column for priority field
//
$column = new TextViewColumn('priority', 'Priority', $this->dataset);
$column->SetOrderable(true);
$grid->AddExportColumn($column);
//
// View column for total_allocated_hrs field
//
$column = new TextViewColumn('total_allocated_hrs', 'Total Allocated Hrs', $this->dataset);
$column->SetOrderable(true);
$grid->AddExportColumn($column);
}
示例4: CreateGrid
protected function CreateGrid()
{
$result = new Grid($this, $this->dataset, 'phpgen_user_permsGrid');
if ($this->GetSecurityInfo()->HasDeleteGrant()) {
$result->SetAllowDeleteSelected(true);
} else {
$result->SetAllowDeleteSelected(false);
}
ApplyCommonPageSettings($this, $result);
$result->SetUseImagesForActions(true);
$result->SetUseFixedHeader(false);
$result->SetShowLineNumbers(false);
$result->SetShowKeyColumnsImagesInHeader(false);
$result->SetViewMode(ViewMode::TABLE);
$result->setEnableRuntimeCustomization(true);
$result->SetHighlightRowAtHover(false);
$result->SetWidth('');
$this->CreateGridSearchControl($result);
$this->CreateGridAdvancedSearchControl($result);
$this->AddOperationsColumns($result);
$this->AddFieldColumns($result);
$this->AddSingleRecordViewColumns($result);
$this->AddEditColumns($result);
$this->AddInsertColumns($result);
$this->AddPrintColumns($result);
$this->AddExportColumns($result);
$this->SetShowPageList(true);
$this->SetExportToExcelAvailable(true);
$this->SetExportToWordAvailable(true);
$this->SetExportToXmlAvailable(true);
$this->SetExportToCsvAvailable(true);
$this->SetExportToPdfAvailable(true);
$this->SetPrinterFriendlyAvailable(true);
$this->SetSimpleSearchAvailable(true);
$this->SetAdvancedSearchAvailable(true);
$this->SetVisualEffectsEnabled(true);
$this->SetShowTopPageNavigator(true);
$this->SetShowBottomPageNavigator(true);
//
// Http Handlers
//
//
// View column for page_name field
//
$column = new TextViewColumn('page_name', 'Page Name', $this->dataset);
$column->SetOrderable(true);
$handler = new ShowTextBlobHandler($this->dataset, $this, 'phpgen_user_permsGrid_page_name_handler_list', $column);
GetApplication()->RegisterHTTPHandler($handler);
//
// View column for page_name field
//
$column = new TextViewColumn('page_name', 'Page Name', $this->dataset);
$column->SetOrderable(true);
$handler = new ShowTextBlobHandler($this->dataset, $this, 'phpgen_user_permsGrid_page_name_handler_view', $column);
GetApplication()->RegisterHTTPHandler($handler);
return $result;
}
示例5: CreateGrid
//.........这里部分代码省略.........
$result->OnCustomDrawCell->AddListener('projectGrid' . '_OnCustomDrawRow', $this);
$result->OnCustomRenderColumn->AddListener('projectGrid' . '_' . 'OnCustomRenderColumn', $this);
$result->OnCustomRenderTotal->AddListener('projectGrid' . '_' . 'OnCustomRenderTotal', $this);
$result->BeforeUpdateRecord->AddListener('projectGrid' . '_' . 'BeforeUpdateRecord', $this);
$result->BeforeInsertRecord->AddListener('projectGrid' . '_' . 'BeforeInsertRecord', $this);
$this->CreateGridSearchControl($result);
$this->CreateGridAdvancedSearchControl($result);
$this->AddOperationsColumns($result);
$this->AddFieldColumns($result);
$this->AddSingleRecordViewColumns($result);
$this->AddEditColumns($result);
$this->AddInsertColumns($result);
$this->AddPrintColumns($result);
$this->AddExportColumns($result);
$this->SetShowPageList(true);
$this->SetHidePageListByDefault(false);
$this->SetExportToExcelAvailable(true);
$this->SetExportToWordAvailable(true);
$this->SetExportToXmlAvailable(false);
$this->SetExportToCsvAvailable(true);
$this->SetExportToPdfAvailable(true);
$this->SetPrinterFriendlyAvailable(true);
$this->SetSimpleSearchAvailable(true);
$this->SetAdvancedSearchAvailable(true);
$this->SetFilterRowAvailable(true);
$this->SetVisualEffectsEnabled(true);
$this->SetShowTopPageNavigator(true);
$this->SetShowBottomPageNavigator(true);
//
// Http Handlers
//
$pageView = new taskDetailView0projectPage($this, 'Tasks', 'Tasks', array('project_id'), GetCurrentUserGrantForDataSource('project.task'), 'UTF-8', 20, 'taskDetailEdit0project_handler');
$pageView->SetRecordPermission(GetCurrentUserRecordPermissionsForDataSource('project.task'));
$handler = new PageHTTPHandler('taskDetailView0project_handler', $pageView);
GetApplication()->RegisterHTTPHandler($handler);
$pageEdit = new taskDetailEdit0projectPage($this, array('project_id'), array('project_id'), $this->GetForeingKeyFields(), $this->CreateMasterDetailRecordGridFortaskDetailEdit0projectGrid(), $this->dataset, GetCurrentUserGrantForDataSource('project.task'), 'UTF-8');
$pageEdit->SetRecordPermission(GetCurrentUserRecordPermissionsForDataSource('project.task'));
$pageEdit->SetShortCaption('Tasks within this project');
$pageEdit->SetHeader(GetPagesHeader());
$pageEdit->SetFooter(GetPagesFooter());
$pageEdit->SetCaption('Tasks');
$pageEdit->SetHttpHandlerName('taskDetailEdit0project_handler');
$handler = new PageHTTPHandler('taskDetailEdit0project_handler', $pageEdit);
GetApplication()->RegisterHTTPHandler($handler);
$pageView = new projectDetailView1projectPage($this, 'Project Budget', 'Project Budget', array('project_id'), GetCurrentUserGrantForDataSource('project.project'), 'UTF-8', 20, 'projectDetailEdit1project_handler');
$pageView->SetRecordPermission(GetCurrentUserRecordPermissionsForDataSource('project.project'));
$handler = new PageHTTPHandler('projectDetailView1project_handler', $pageView);
GetApplication()->RegisterHTTPHandler($handler);
$pageEdit = new projectDetailEdit1projectPage($this, array('project_id'), array('project_id'), $this->GetForeingKeyFields(), $this->CreateMasterDetailRecordGridForprojectDetailEdit1projectGrid(), $this->dataset, GetCurrentUserGrantForDataSource('project.project'), 'UTF-8');
$pageEdit->SetRecordPermission(GetCurrentUserRecordPermissionsForDataSource('project.project'));
$pageEdit->SetShortCaption('Project Budget Chart');
$pageEdit->SetHeader(GetPagesHeader());
$pageEdit->SetFooter(GetPagesFooter());
$pageEdit->SetCaption('Project Budget');
$pageEdit->SetHttpHandlerName('projectDetailEdit1project_handler');
$handler = new PageHTTPHandler('projectDetailEdit1project_handler', $pageEdit);
GetApplication()->RegisterHTTPHandler($handler);
$pageView = new project_timeline_detailDetailView2projectPage($this, 'Tasks Gantt view', 'Tasks Gantt view', array('task_project_id'), GetCurrentUserGrantForDataSource('project.project_timeline_detail'), 'UTF-8', 20, 'project_timeline_detailDetailEdit2project_handler');
$pageView->SetRecordPermission(GetCurrentUserRecordPermissionsForDataSource('project.project_timeline_detail'));
$handler = new PageHTTPHandler('project_timeline_detailDetailView2project_handler', $pageView);
GetApplication()->RegisterHTTPHandler($handler);
$pageEdit = new project_timeline_detailDetailEdit2projectPage($this, array('task_project_id'), array('project_id'), $this->GetForeingKeyFields(), $this->CreateMasterDetailRecordGridForproject_timeline_detailDetailEdit2projectGrid(), $this->dataset, GetCurrentUserGrantForDataSource('project.project_timeline_detail'), 'UTF-8');
$pageEdit->SetRecordPermission(GetCurrentUserRecordPermissionsForDataSource('project.project_timeline_detail'));
$pageEdit->SetShortCaption('Tasks Gantt view');
$pageEdit->SetHeader(GetPagesHeader());
$pageEdit->SetFooter(GetPagesFooter());
$pageEdit->SetCaption('Tasks Gantt view');
$pageEdit->SetHttpHandlerName('project_timeline_detailDetailEdit2project_handler');
$handler = new PageHTTPHandler('project_timeline_detailDetailEdit2project_handler', $pageEdit);
GetApplication()->RegisterHTTPHandler($handler);
//
// View column for notes field
//
$column = new TextViewColumn('notes', 'Objectives', $this->dataset);
$column->SetOrderable(true);
$handler = new ShowTextBlobHandler($this->dataset, $this, 'projectGrid_notes_handler_list', $column);
GetApplication()->RegisterHTTPHandler($handler);
//
// View column for public_engagement field
//
$column = new TextViewColumn('public_engagement', 'Public Engagement', $this->dataset);
$column->SetOrderable(true);
$handler = new ShowTextBlobHandler($this->dataset, $this, 'projectGrid_public_engagement_handler_list', $column);
GetApplication()->RegisterHTTPHandler($handler);
//
// View column for notes field
//
$column = new TextViewColumn('notes', 'Objectives', $this->dataset);
$column->SetOrderable(true);
$handler = new ShowTextBlobHandler($this->dataset, $this, 'projectGrid_notes_handler_view', $column);
GetApplication()->RegisterHTTPHandler($handler);
//
// View column for public_engagement field
//
$column = new TextViewColumn('public_engagement', 'Public Engagement', $this->dataset);
$column->SetOrderable(true);
$handler = new ShowTextBlobHandler($this->dataset, $this, 'projectGrid_public_engagement_handler_view', $column);
GetApplication()->RegisterHTTPHandler($handler);
return $result;
}
示例6: AddExportColumns
protected function AddExportColumns(Grid $grid)
{
//
// View column for Name field
//
$column = new TextViewColumn('Name', 'Name', $this->dataset);
$column->SetOrderable(true);
$grid->AddExportColumn($column);
}
示例7: AddExportColumns
protected function AddExportColumns(Grid $grid)
{
//
// View column for project_name field
//
$column = new TextViewColumn('project_name', 'Project Name', $this->dataset);
$column->SetOrderable(true);
$grid->AddExportColumn($column);
//
// View column for date_start field
//
$column = new TextViewColumn('date_start', 'Date Start', $this->dataset);
$column->SetOrderable(true);
$grid->AddExportColumn($column);
//
// View column for date_end field
//
$column = new TextViewColumn('date_end', 'Date End', $this->dataset);
$column->SetOrderable(true);
$grid->AddExportColumn($column);
}
示例8: AddExportColumns
protected function AddExportColumns(Grid $grid)
{
//
// View column for name field
//
$column = new TextViewColumn('name', 'Name', $this->dataset);
$column->SetOrderable(true);
$grid->AddExportColumn($column);
//
// View column for total_hours field
//
$column = new TextViewColumn('total_hours', 'Actual Hours', $this->dataset);
$column->SetOrderable(true);
$column = new NumberFormatValueViewColumnDecorator($column, 2, ',', '.');
$grid->AddExportColumn($column);
//
// View column for project_name field
//
$column = new TextViewColumn('project_name', 'Project Name', $this->dataset);
$column->SetOrderable(true);
$grid->AddExportColumn($column);
//
// View column for task_name field
//
$column = new TextViewColumn('task_name', 'Task Name', $this->dataset);
$column->SetOrderable(true);
$grid->AddExportColumn($column);
}
示例9: Grid
function CreateMasterDetailRecordGridForfacturas_abonosDetailEdit0facturasGrid()
{
$result = new Grid($this, $this->dataset, 'MasterDetailRecordGridForfacturas_abonosDetailEdit0facturas');
$result->SetAllowDeleteSelected(false);
$result->SetShowFilterBuilder(false);
$result->SetAdvancedSearchAvailable(false);
$result->SetFilterRowAvailable(false);
$result->SetShowUpdateLink(false);
$result->SetEnabledInlineEditing(false);
$result->SetName('master_grid');
//
// View column for idFacturas field
//
$column = new TextViewColumn('idFacturas', 'IdFacturas', $this->dataset);
$column->SetOrderable(true);
$column->SetDescription($this->RenderText(''));
$column->SetFixedWidth(null);
$result->AddViewColumn($column);
//
// View column for Fecha field
//
$column = new TextViewColumn('Fecha', 'Fecha', $this->dataset);
$column->SetOrderable(true);
$column->SetDescription($this->RenderText(''));
$column->SetFixedWidth(null);
$result->AddViewColumn($column);
//
// View column for OCompra field
//
$column = new TextViewColumn('OCompra', 'OCompra', $this->dataset);
$column->SetOrderable(true);
$column->SetDescription($this->RenderText(''));
$column->SetFixedWidth(null);
$result->AddViewColumn($column);
//
// View column for OSalida field
//
$column = new TextViewColumn('OSalida', 'OSalida', $this->dataset);
$column->SetOrderable(true);
$column->SetDescription($this->RenderText(''));
$column->SetFixedWidth(null);
$result->AddViewColumn($column);
//
// View column for FormaPago field
//
$column = new TextViewColumn('FormaPago', 'FormaPago', $this->dataset);
$column->SetOrderable(true);
$column->SetDescription($this->RenderText(''));
$column->SetFixedWidth(null);
$result->AddViewColumn($column);
//
// View column for Subtotal field
//
$column = new TextViewColumn('Subtotal', 'Subtotal', $this->dataset);
$column->SetOrderable(true);
$column->SetDescription($this->RenderText(''));
$column->SetFixedWidth(null);
$result->AddViewColumn($column);
//
// View column for IVA field
//
$column = new TextViewColumn('IVA', 'IVA', $this->dataset);
$column->SetOrderable(true);
$column->SetDescription($this->RenderText(''));
$column->SetFixedWidth(null);
$result->AddViewColumn($column);
//
// View column for Descuentos field
//
$column = new TextViewColumn('Descuentos', 'Descuentos', $this->dataset);
$column->SetOrderable(true);
$column->SetDescription($this->RenderText(''));
$column->SetFixedWidth(null);
$result->AddViewColumn($column);
//
// View column for Total field
//
$column = new TextViewColumn('Total', 'Total', $this->dataset);
$column->SetOrderable(true);
$column->SetDescription($this->RenderText(''));
$column->SetFixedWidth(null);
$result->AddViewColumn($column);
//
// View column for SaldoFact field
//
$column = new TextViewColumn('SaldoFact', 'SaldoFact', $this->dataset);
$column->SetOrderable(true);
$column->SetDescription($this->RenderText(''));
$column->SetFixedWidth(null);
$result->AddViewColumn($column);
//
// View column for TotalCostos field
//
$column = new TextViewColumn('TotalCostos', 'TotalCostos', $this->dataset);
$column->SetOrderable(true);
$column->SetDescription($this->RenderText(''));
$column->SetFixedWidth(null);
$result->AddViewColumn($column);
//
// View column for Cotizaciones_idCotizaciones field
//.........这里部分代码省略.........
示例10: CreateGrid
protected function CreateGrid()
{
$result = new Grid($this, $this->dataset, 'field_namesGrid');
if ($this->GetSecurityInfo()->HasDeleteGrant()) {
$result->SetAllowDeleteSelected(true);
} else {
$result->SetAllowDeleteSelected(false);
}
ApplyCommonPageSettings($this, $result);
$result->SetUseImagesForActions(true);
$result->SetUseFixedHeader(false);
$result->SetShowLineNumbers(false);
$result->SetHighlightRowAtHover(false);
$result->SetWidth('');
$this->CreateGridSearchControl($result);
$this->CreateGridAdvancedSearchControl($result);
$this->AddOperationsColumns($result);
$this->AddFieldColumns($result);
$this->AddSingleRecordViewColumns($result);
$this->AddEditColumns($result);
$this->AddInsertColumns($result);
$this->AddPrintColumns($result);
$this->AddExportColumns($result);
$this->SetShowPageList(true);
$this->SetHidePageListByDefault(false);
$this->SetExportToExcelAvailable(true);
$this->SetExportToWordAvailable(true);
$this->SetExportToXmlAvailable(false);
$this->SetExportToCsvAvailable(true);
$this->SetExportToPdfAvailable(true);
$this->SetPrinterFriendlyAvailable(true);
$this->SetSimpleSearchAvailable(true);
$this->SetAdvancedSearchAvailable(true);
$this->SetFilterRowAvailable(true);
$this->SetVisualEffectsEnabled(true);
$this->SetShowTopPageNavigator(true);
$this->SetShowBottomPageNavigator(true);
//
// Http Handlers
//
//
// View column for task_name field
//
$column = new TextViewColumn('task_name', 'Task Name', $this->dataset);
$column->SetOrderable(true);
$handler = new ShowTextBlobHandler($this->dataset, $this, 'field_namesGrid_task_name_handler_list', $column);
GetApplication()->RegisterHTTPHandler($handler);
//
// View column for public_engagement field
//
$column = new TextViewColumn('public_engagement', 'Public Engagement', $this->dataset);
$column->SetOrderable(true);
$handler = new ShowTextBlobHandler($this->dataset, $this, 'field_namesGrid_public_engagement_handler_list', $column);
GetApplication()->RegisterHTTPHandler($handler);
//
// View column for level_of_service field
//
$column = new TextViewColumn('level_of_service', 'Level Of Service', $this->dataset);
$column->SetOrderable(true);
$handler = new ShowTextBlobHandler($this->dataset, $this, 'field_namesGrid_level_of_service_handler_list', $column);
GetApplication()->RegisterHTTPHandler($handler);
//
// View column for project_type field
//
$column = new TextViewColumn('project_type', 'Project Type', $this->dataset);
$column->SetOrderable(true);
$handler = new ShowTextBlobHandler($this->dataset, $this, 'field_namesGrid_project_type_handler_list', $column);
GetApplication()->RegisterHTTPHandler($handler);
//
// View column for task_name field
//
$column = new TextViewColumn('task_name', 'Task Name', $this->dataset);
$column->SetOrderable(true);
$handler = new ShowTextBlobHandler($this->dataset, $this, 'field_namesGrid_task_name_handler_view', $column);
GetApplication()->RegisterHTTPHandler($handler);
//
// View column for public_engagement field
//
$column = new TextViewColumn('public_engagement', 'Public Engagement', $this->dataset);
$column->SetOrderable(true);
$handler = new ShowTextBlobHandler($this->dataset, $this, 'field_namesGrid_public_engagement_handler_view', $column);
GetApplication()->RegisterHTTPHandler($handler);
//
// View column for level_of_service field
//
$column = new TextViewColumn('level_of_service', 'Level Of Service', $this->dataset);
$column->SetOrderable(true);
$handler = new ShowTextBlobHandler($this->dataset, $this, 'field_namesGrid_level_of_service_handler_view', $column);
GetApplication()->RegisterHTTPHandler($handler);
//
// View column for project_type field
//
$column = new TextViewColumn('project_type', 'Project Type', $this->dataset);
$column->SetOrderable(true);
$handler = new ShowTextBlobHandler($this->dataset, $this, 'field_namesGrid_project_type_handler_view', $column);
GetApplication()->RegisterHTTPHandler($handler);
return $result;
}
示例11: AddExportColumns
protected function AddExportColumns(Grid $grid)
{
//
// View column for TIPO_RELACION_ID field
//
$column = new TextViewColumn('TIPO_RELACION_ID', 'TIPO RELACION ID', $this->dataset);
$column->SetOrderable(true);
$grid->AddExportColumn($column);
//
// View column for NOMBRE field
//
$column = new TextViewColumn('NOMBRE', 'NOMBRE', $this->dataset);
$column->SetOrderable(true);
$grid->AddExportColumn($column);
//
// View column for FECHA_CREACION field
//
$column = new DateTimeViewColumn('FECHA_CREACION', 'FECHA CREACION', $this->dataset);
$column->SetDateTimeFormat('Y-m-d');
$column->SetOrderable(true);
$grid->AddExportColumn($column);
//
// View column for FECHA_MODIFICACION field
//
$column = new DateTimeViewColumn('FECHA_MODIFICACION', 'FECHA MODIFICACION', $this->dataset);
$column->SetDateTimeFormat('Y-m-d');
$column->SetOrderable(true);
$grid->AddExportColumn($column);
//
// View column for USUARIO_CREACION field
//
$column = new TextViewColumn('USUARIO_CREACION', 'USUARIO CREACION', $this->dataset);
$column->SetOrderable(true);
$grid->AddExportColumn($column);
//
// View column for USUARIO_MODIFICACION field
//
$column = new TextViewColumn('USUARIO_MODIFICACION', 'USUARIO MODIFICACION', $this->dataset);
$column->SetOrderable(true);
$grid->AddExportColumn($column);
}
示例12: AddExportColumns
protected function AddExportColumns(Grid $grid)
{
//
// View column for name field
//
$column = new TextViewColumn('name', 'Name', $this->dataset);
$column->SetOrderable(true);
$grid->AddExportColumn($column);
//
// View column for date field
//
$column = new DateTimeViewColumn('date', 'Timesheet Date', $this->dataset);
$column->SetDateTimeFormat('Y-m-d');
$column->SetOrderable(true);
$grid->AddExportColumn($column);
//
// View column for project_name field
//
$column = new TextViewColumn('project_name', 'Project Name', $this->dataset);
$column->SetOrderable(true);
$grid->AddExportColumn($column);
//
// View column for pay_period_number field
//
$column = new TextViewColumn('pay_period_number', 'Pay Period ', $this->dataset);
$column->SetOrderable(true);
$grid->AddExportColumn($column);
//
// View column for hours field
//
$column = new TextViewColumn('hours', 'Hours', $this->dataset);
$column->SetOrderable(true);
$grid->AddExportColumn($column);
//
// View column for position field
//
$column = new TextViewColumn('position', 'Position', $this->dataset);
$column->SetOrderable(true);
$grid->AddExportColumn($column);
//
// View column for emp_number field
//
$column = new TextViewColumn('emp_number', 'Emp Number', $this->dataset);
$column->SetOrderable(true);
$grid->AddExportColumn($column);
}
示例13: CreateGrid
protected function CreateGrid()
{
$result = new Grid($this, $this->dataset, 'public_office_holderGrid');
if ($this->GetSecurityInfo()->HasDeleteGrant()) {
$result->SetAllowDeleteSelected(false);
} else {
$result->SetAllowDeleteSelected(false);
}
ApplyCommonPageSettings($this, $result);
$result->SetUseImagesForActions(false);
$result->SetUseFixedHeader(false);
$result->SetShowLineNumbers(false);
$result->SetUseModalInserting(true);
$result->SetHighlightRowAtHover(false);
$result->SetWidth('');
$this->CreateGridSearchControl($result);
$this->CreateGridAdvancedSearchControl($result);
$this->AddOperationsColumns($result);
$this->AddFieldColumns($result);
$this->AddSingleRecordViewColumns($result);
$this->AddEditColumns($result);
$this->AddInsertColumns($result);
$this->AddPrintColumns($result);
$this->AddExportColumns($result);
$this->SetShowPageList(true);
$this->SetHidePageListByDefault(false);
$this->SetExportToExcelAvailable(false);
$this->SetExportToWordAvailable(false);
$this->SetExportToXmlAvailable(false);
$this->SetExportToCsvAvailable(false);
$this->SetExportToPdfAvailable(false);
$this->SetPrinterFriendlyAvailable(false);
$this->SetSimpleSearchAvailable(true);
$this->SetAdvancedSearchAvailable(false);
$this->SetFilterRowAvailable(false);
$this->SetVisualEffectsEnabled(false);
$this->SetShowTopPageNavigator(true);
$this->SetShowBottomPageNavigator(true);
//
// Http Handlers
//
//
// View column for photo_link field
//
$column = new TextViewColumn('photo_link', 'Photo Link', $this->dataset);
$column->SetOrderable(true);
/* <inline edit column> */
//
// Edit column for photo_link field
//
$editor = new TextAreaEdit('photo_link_edit', 50, 8);
$editColumn = new CustomEditColumn('Photo Link', 'photo_link', $editor, $this->dataset);
$editColumn->SetAllowSetToNull(true);
$this->ApplyCommonColumnEditProperties($editColumn);
$column->SetEditOperationColumn($editColumn);
/* </inline edit column> */
/* <inline insert column> */
//
// Edit column for photo_link field
//
$editor = new TextAreaEdit('photo_link_edit', 50, 8);
$editColumn = new CustomEditColumn('Photo Link', 'photo_link', $editor, $this->dataset);
$editColumn->SetAllowSetToNull(true);
$this->ApplyCommonColumnEditProperties($editColumn);
$column->SetInsertOperationColumn($editColumn);
/* </inline insert column> */
$handler = new ShowTextBlobHandler($this->dataset, $this, 'public_office_holderGrid_photo_link_handler_list', $column);
GetApplication()->RegisterHTTPHandler($handler);
//
// View column for notes field
//
$column = new TextViewColumn('notes', 'Notes', $this->dataset);
$column->SetOrderable(true);
/* <inline edit column> */
//
// Edit column for notes field
//
$editor = new TextAreaEdit('notes_edit', 50, 8);
$editColumn = new CustomEditColumn('Notes', 'notes', $editor, $this->dataset);
$editColumn->SetAllowSetToNull(true);
$this->ApplyCommonColumnEditProperties($editColumn);
$column->SetEditOperationColumn($editColumn);
/* </inline edit column> */
/* <inline insert column> */
//
// Edit column for notes field
//
$editor = new TextAreaEdit('notes_edit', 50, 8);
$editColumn = new CustomEditColumn('Notes', 'notes', $editor, $this->dataset);
$editColumn->SetAllowSetToNull(true);
$this->ApplyCommonColumnEditProperties($editColumn);
$column->SetInsertOperationColumn($editColumn);
/* </inline insert column> */
$handler = new ShowTextBlobHandler($this->dataset, $this, 'public_office_holderGrid_notes_handler_list', $column);
GetApplication()->RegisterHTTPHandler($handler);
//
// View column for photo_link field
//
$column = new TextViewColumn('photo_link', 'Photo Link', $this->dataset);
$column->SetOrderable(true);
//.........这里部分代码省略.........
示例14: Grid
function CreateMasterDetailRecordGridForofferte_dettaglio_articoliDetailEdit0offerteGrid()
{
$result = new Grid($this, $this->dataset, 'MasterDetailRecordGridForofferte_dettaglio_articoliDetailEdit0offerte');
$result->SetAllowDeleteSelected(false);
$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 off-numoff field
//
$column = new TextViewColumn('off-numoff', 'Off-numoff', $this->dataset);
$column->SetOrderable(true);
$column->SetDescription($this->RenderText(''));
$column->SetFixedWidth(null);
$result->AddViewColumn($column);
//
// View column for cli-ragsoc field
//
$column = new TextViewColumn('off-codcli_cli-ragsoc', 'cod.Cliente', $this->dataset);
$column->SetOrderable(true);
$column->SetDescription($this->RenderText(''));
$column->SetFixedWidth(null);
$result->AddViewColumn($column);
//
// View column for off-descriz field
//
$column = new TextViewColumn('off-descriz', 'Off-descriz', $this->dataset);
$column->SetOrderable(true);
$column->SetDescription($this->RenderText(''));
$column->SetFixedWidth(null);
$result->AddViewColumn($column);
//
// View column for off-gg-termine-consegna field
//
$column = new TextViewColumn('off-gg-termine-consegna', 'Off-gg-termine-consegna', $this->dataset);
$column->SetOrderable(true);
$column->SetDescription($this->RenderText(''));
$column->SetFixedWidth(null);
$result->AddViewColumn($column);
//
// View column for off-datains field
//
$column = new DateTimeViewColumn('off-datains', 'Data inserimento', $this->dataset);
$column->SetDateTimeFormat('d-m-Y');
$column->SetOrderable(true);
$column->SetDescription($this->RenderText(''));
$column->SetFixedWidth(null);
$result->AddViewColumn($column);
//
// View column for off-dataeva field
//
$column = new DateTimeViewColumn('off-dataeva', 'Data evasione', $this->dataset);
$column->SetDateTimeFormat('d-m-Y');
$column->SetOrderable(true);
$column->SetDescription($this->RenderText(''));
$column->SetFixedWidth(null);
$result->AddViewColumn($column);
//
// View column for datains field
//
$column = new DateTimeViewColumn('datains', 'Data ins', $this->dataset);
$column->SetDateTimeFormat('d-m-Y');
$column->SetOrderable(true);
$column->SetDescription($this->RenderText(''));
$column->SetFixedWidth(null);
$result->AddViewColumn($column);
//
// View column for off-numoff field
//
$column = new TextViewColumn('off-numoff', 'Off-numoff', $this->dataset);
$column->SetOrderable(true);
$result->AddPrintColumn($column);
//
// View column for cli-ragsoc field
//
$column = new TextViewColumn('off-codcli_cli-ragsoc', 'cod.Cliente', $this->dataset);
$column->SetOrderable(true);
$result->AddPrintColumn($column);
//
// View column for off-descriz field
//
$column = new TextViewColumn('off-descriz', 'Off-descriz', $this->dataset);
$column->SetOrderable(true);
$result->AddPrintColumn($column);
//
// View column for off-gg-termine-consegna field
//
$column = new TextViewColumn('off-gg-termine-consegna', 'Off-gg-termine-consegna', $this->dataset);
$column->SetOrderable(true);
$result->AddPrintColumn($column);
//
// View column for off-datains field
//
$column = new DateTimeViewColumn('off-datains', 'Data inserimento', $this->dataset);
$column->SetDateTimeFormat('d-m-Y');
$column->SetOrderable(true);
//.........这里部分代码省略.........
示例15: AddExportColumns
protected function AddExportColumns(Grid $grid)
{
//
// View column for USERNAME field
//
$column = new TextViewColumn('USERNAME', 'USERNAME', $this->dataset);
$column->SetOrderable(true);
$grid->AddExportColumn($column);
//
// View column for ES_REAL field
//
$column = new TextViewColumn('ES_REAL', 'ES REAL', $this->dataset);
$column->SetOrderable(true);
$grid->AddExportColumn($column);
//
// View column for NOMBRE field
//
$column = new TextViewColumn('LA1', 'EJERCICIO ID', $this->dataset);
$column->SetOrderable(true);
$grid->AddExportColumn($column);
//
// View column for FEC_CREACION field
//
$column = new DateTimeViewColumn('FEC_CREACION', 'FEC CREACION', $this->dataset);
$column->SetDateTimeFormat('Y-m-d');
$column->SetOrderable(true);
$grid->AddExportColumn($column);
//
// View column for USUARIO_CREACION field
//
$column = new TextViewColumn('USUARIO_CREACION', 'USUARIO CREACION', $this->dataset);
$column->SetOrderable(true);
$grid->AddExportColumn($column);
//
// View column for FEC_ULTIMA_MOD field
//
$column = new DateTimeViewColumn('FEC_ULTIMA_MOD', 'FEC ULTIMA MOD', $this->dataset);
$column->SetDateTimeFormat('Y-m-d');
$column->SetOrderable(true);
$grid->AddExportColumn($column);
//
// View column for USUARIO_ULTIMA_MOD field
//
$column = new TextViewColumn('USUARIO_ULTIMA_MOD', 'USUARIO ULTIMA MOD', $this->dataset);
$column->SetOrderable(true);
$grid->AddExportColumn($column);
}