当前位置: 首页>>代码示例>>PHP>>正文


PHP CustomEditColumn类代码示例

本文整理汇总了PHP中CustomEditColumn的典型用法代码示例。如果您正苦于以下问题:PHP CustomEditColumn类的具体用法?PHP CustomEditColumn怎么用?PHP CustomEditColumn使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了CustomEditColumn类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: ApplyCommonColumnEditProperties

 protected function ApplyCommonColumnEditProperties(CustomEditColumn $column)
 {
     $column->SetDisplaySetToNullCheckBox(false);
     $column->SetDisplaySetToDefaultCheckBox(false);
     $column->SetVariableContainer($this->GetColumnVariableContainer());
 }
开发者ID:CivicInfoBC,项目名称:workplan.gov_ver_1.19,代码行数:6,代码来源:total_allocated_hours_small.php

示例2: DoAddColumn

 /**
  * @param CustomEditColumn|CustomViewColumn $column
  * @return void
  */
 private function DoAddColumn($column)
 {
     $column->SetGrid($this);
 }
开发者ID:howareyoucolin,项目名称:demo,代码行数:8,代码来源:grid.php

示例3: 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);
//.........这里部分代码省略.........
开发者ID:blakeHelm,项目名称:BallotPath,代码行数:101,代码来源:public.office_holder.php

示例4: CreateGrid

 protected function CreateGrid()
 {
     $result = new Grid($this, $this->dataset, 'empresaGrid');
     if ($this->GetSecurityInfo()->HasDeleteGrant()) {
         $result->SetAllowDeleteSelected(false);
     } 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->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 nombre field
     //
     $column = new TextViewColumn('nombre', 'Nombre', $this->dataset);
     $column->SetOrderable(true);
     /* <inline edit column> */
     //
     // Edit column for nombre field
     //
     $editor = new TextEdit('nombre_edit');
     $editor->SetSize(80);
     $editor->SetMaxLength(80);
     $editColumn = new CustomEditColumn('Nombre', 'nombre', $editor, $this->dataset);
     $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $this->RenderText($editColumn->GetCaption())));
     $editor->GetValidatorCollection()->AddValidator($validator);
     $this->ApplyCommonColumnEditProperties($editColumn);
     $column->SetEditOperationColumn($editColumn);
     /* </inline edit column> */
     /* <inline insert column> */
     //
     // Edit column for nombre field
     //
     $editor = new TextEdit('nombre_edit');
     $editor->SetSize(80);
     $editor->SetMaxLength(80);
     $editColumn = new CustomEditColumn('Nombre', 'nombre', $editor, $this->dataset);
     $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $this->RenderText($editColumn->GetCaption())));
     $editor->GetValidatorCollection()->AddValidator($validator);
     $this->ApplyCommonColumnEditProperties($editColumn);
     $column->SetInsertOperationColumn($editColumn);
     /* </inline insert column> */
     $handler = new ShowTextBlobHandler($this->dataset, $this, 'nombre_handler', $column);
     GetApplication()->RegisterHTTPHandler($handler);
     //
     // View column for depto field
     //
     $column = new TextViewColumn('depto', 'Depto', $this->dataset);
     $column->SetOrderable(true);
     /* <inline edit column> */
     //
     // Edit column for depto field
     //
     $editor = new TextAreaEdit('depto_edit', 50, 8);
     $editColumn = new CustomEditColumn('Depto', 'depto', $editor, $this->dataset);
     $editColumn->SetAllowSetToNull(true);
     $this->ApplyCommonColumnEditProperties($editColumn);
     $column->SetEditOperationColumn($editColumn);
     /* </inline edit column> */
     /* <inline insert column> */
     //
     // Edit column for depto field
     //
     $editor = new TextAreaEdit('depto_edit', 50, 8);
     $editColumn = new CustomEditColumn('Depto', 'depto', $editor, $this->dataset);
     $editColumn->SetAllowSetToNull(true);
     $this->ApplyCommonColumnEditProperties($editColumn);
     $column->SetInsertOperationColumn($editColumn);
     /* </inline insert column> */
     $handler = new ShowTextBlobHandler($this->dataset, $this, 'depto_handler', $column);
     GetApplication()->RegisterHTTPHandler($handler);
//.........这里部分代码省略.........
开发者ID:Kenovix,项目名称:san-miguel,代码行数:101,代码来源:empresa.php

示例5: CreateGrid


//.........这里部分代码省略.........
     $lookupDataset->AddField($field, false);
     $field = new StringField('Email');
     $field->SetIsNotNull(true);
     $lookupDataset->AddField($field, false);
     $field = new IntegerField('CIUU');
     $field->SetIsNotNull(true);
     $lookupDataset->AddField($field, false);
     $field = new IntegerField('empresa_id');
     $field->SetIsNotNull(true);
     $lookupDataset->AddField($field, false);
     $field = new StringField('codigo');
     $field->SetIsNotNull(true);
     $lookupDataset->AddField($field, false);
     $field = new StringField('regimen');
     $field->SetIsNotNull(true);
     $lookupDataset->AddField($field, false);
     $field = new StringField('estado');
     $field->SetIsNotNull(true);
     $lookupDataset->AddField($field, false);
     $lookupDataset->SetOrderBy('RazonSocial', GetOrderTypeAsSQL(otAscending));
     $lookupDataset->AddCustomCondition(EnvVariablesUtils::EvaluateVariableTemplate($this->GetColumnVariableContainer(), ''));
     $handler = new DynamicSearchHandler($lookupDataset, $this, 'inline_insert_Cliente_RazonSocial_search', 'idClientes', 'RazonSocial', null);
     GetApplication()->RegisterHTTPHandler($handler);
     //
     // View column for Observaciones field
     //
     $column = new TextViewColumn('Observaciones', 'Observaciones', $this->dataset);
     $column->SetOrderable(true);
     /* <inline edit column> */
     //
     // Edit column for Observaciones field
     //
     $editor = new TextAreaEdit('observaciones_edit', 50, 8);
     $editColumn = new CustomEditColumn('Observaciones', 'Observaciones', $editor, $this->dataset);
     $editColumn->SetAllowSetToNull(true);
     $this->ApplyCommonColumnEditProperties($editColumn);
     $column->SetEditOperationColumn($editColumn);
     /* </inline edit column> */
     /* <inline insert column> */
     //
     // Edit column for Observaciones field
     //
     $editor = new TextAreaEdit('observaciones_edit', 50, 8);
     $editColumn = new CustomEditColumn('Observaciones', 'Observaciones', $editor, $this->dataset);
     $editColumn->SetAllowSetToNull(true);
     $this->ApplyCommonColumnEditProperties($editColumn);
     $column->SetInsertOperationColumn($editColumn);
     /* </inline insert column> */
     $handler = new ShowTextBlobHandler($this->dataset, $this, 'Observaciones_handler', $column);
     GetApplication()->RegisterHTTPHandler($handler);
     //
     // View column for Observaciones field
     //
     $column = new TextViewColumn('Observaciones', 'Observaciones', $this->dataset);
     $column->SetOrderable(true);
     $handler = new ShowTextBlobHandler($this->dataset, $this, 'Observaciones_handler', $column);
     GetApplication()->RegisterHTTPHandler($handler);
     $lookupDataset = new TableDataset(new MyConnectionFactory(), GetConnectionOptions(), '`clientes`');
     $field = new IntegerField('idClientes', null, null, true);
     $field->SetIsNotNull(true);
     $lookupDataset->AddField($field, true);
     $field = new IntegerField('Tipo_Documento');
     $field->SetIsNotNull(true);
     $lookupDataset->AddField($field, false);
     $field = new StringField('Num_Identificacion');
     $lookupDataset->AddField($field, false);
开发者ID:Kenovix,项目名称:san-miguel,代码行数:67,代码来源:cartera.php

示例6: CreateGrid

 protected function CreateGrid()
 {
     $result = new Grid($this, $this->dataset, 'clientesGrid');
     if ($this->GetSecurityInfo()->HasDeleteGrant()) {
         $result->SetAllowDeleteSelected(false);
     } 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->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 RazonSocial field
     //
     $column = new TextViewColumn('RazonSocial', 'RazonSocial', $this->dataset);
     $column->SetOrderable(true);
     /* <inline edit column> */
     //
     // Edit column for RazonSocial field
     //
     $editor = new TextEdit('razonsocial_edit');
     $editor->SetSize(100);
     $editor->SetMaxLength(100);
     $editColumn = new CustomEditColumn('RazonSocial', 'RazonSocial', $editor, $this->dataset);
     $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $this->RenderText($editColumn->GetCaption())));
     $editor->GetValidatorCollection()->AddValidator($validator);
     $this->ApplyCommonColumnEditProperties($editColumn);
     $column->SetEditOperationColumn($editColumn);
     /* </inline edit column> */
     /* <inline insert column> */
     //
     // Edit column for RazonSocial field
     //
     $editor = new TextEdit('razonsocial_edit');
     $editor->SetSize(100);
     $editor->SetMaxLength(100);
     $editColumn = new CustomEditColumn('RazonSocial', 'RazonSocial', $editor, $this->dataset);
     $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $this->RenderText($editColumn->GetCaption())));
     $editor->GetValidatorCollection()->AddValidator($validator);
     $this->ApplyCommonColumnEditProperties($editColumn);
     $column->SetInsertOperationColumn($editColumn);
     /* </inline insert column> */
     $handler = new ShowTextBlobHandler($this->dataset, $this, 'RazonSocial_handler', $column);
     GetApplication()->RegisterHTTPHandler($handler);
     $lookupDataset = new TableDataset(new MyConnectionFactory(), GetConnectionOptions(), '`cod_departamentos`');
     $field = new IntegerField('Cod_dpto');
     $field->SetIsNotNull(true);
     $lookupDataset->AddField($field, true);
     $field = new StringField('Nombre');
     $field->SetIsNotNull(true);
     $lookupDataset->AddField($field, false);
     $lookupDataset->SetOrderBy('Nombre', GetOrderTypeAsSQL(otAscending));
     $lookupDataset->AddCustomCondition(EnvVariablesUtils::EvaluateVariableTemplate($this->GetColumnVariableContainer(), ''));
     $handler = new DynamicSearchHandler($lookupDataset, $this, 'inline_edit_Cod_Dpto_Nombre_search', 'Cod_dpto', 'Nombre', null);
     GetApplication()->RegisterHTTPHandler($handler);
     $lookupDataset = new TableDataset(new MyConnectionFactory(), GetConnectionOptions(), '`cod_departamentos`');
     $field = new IntegerField('Cod_dpto');
     $field->SetIsNotNull(true);
     $lookupDataset->AddField($field, true);
     $field = new StringField('Nombre');
     $field->SetIsNotNull(true);
     $lookupDataset->AddField($field, false);
     $lookupDataset->SetOrderBy('Nombre', GetOrderTypeAsSQL(otAscending));
     $lookupDataset->AddCustomCondition(EnvVariablesUtils::EvaluateVariableTemplate($this->GetColumnVariableContainer(), ''));
     $handler = new DynamicSearchHandler($lookupDataset, $this, 'inline_insert_Cod_Dpto_Nombre_search', 'Cod_dpto', 'Nombre', null);
     GetApplication()->RegisterHTTPHandler($handler);
     $lookupDataset = new TableDataset(new MyConnectionFactory(), GetConnectionOptions(), '`cod_paises`');
     $field = new IntegerField('Codigo');
     $field->SetIsNotNull(true);
     $lookupDataset->AddField($field, true);
     $field = new StringField('Pais');
//.........这里部分代码省略.........
开发者ID:Kenovix,项目名称:san-miguel,代码行数:101,代码来源:clientes.php

示例7: CreateGrid

 protected function CreateGrid()
 {
     $result = new Grid($this, $this->dataset, 'hometextGrid');
     if ($this->GetSecurityInfo()->HasDeleteGrant()) {
         $result->SetAllowDeleteSelected(false);
     } else {
         $result->SetAllowDeleteSelected(false);
     }
     ApplyCommonPageSettings($this, $result);
     $result->SetUseImagesForActions(false);
     $result->SetUseFixedHeader(false);
     $result->SetShowLineNumbers(false);
     $result->SetHighlightRowAtHover(true);
     $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(false);
     $this->SetAdvancedSearchAvailable(false);
     $this->SetFilterRowAvailable(false);
     $this->SetVisualEffectsEnabled(false);
     $this->SetShowTopPageNavigator(false);
     $this->SetShowBottomPageNavigator(false);
     //
     // Http Handlers
     //
     //
     // View column for text field
     //
     $column = new TextViewColumn('text', 'Text', $this->dataset);
     $column->SetOrderable(true);
     /* <inline edit column> */
     //
     // Edit column for text field
     //
     $editor = new HtmlWysiwygEditor('text_edit');
     $editor->SetAllowColorControls(true);
     $editColumn = new CustomEditColumn('Text', 'text', $editor, $this->dataset);
     $editColumn->SetAllowSetToNull(true);
     $this->ApplyCommonColumnEditProperties($editColumn);
     $column->SetEditOperationColumn($editColumn);
     /* </inline edit column> */
     /* <inline insert column> */
     //
     // Edit column for text field
     //
     $editor = new HtmlWysiwygEditor('text_edit');
     $editor->SetAllowColorControls(true);
     $editColumn = new CustomEditColumn('Text', 'text', $editor, $this->dataset);
     $editColumn->SetAllowSetToNull(true);
     $this->ApplyCommonColumnEditProperties($editColumn);
     $column->SetInsertOperationColumn($editColumn);
     /* </inline insert column> */
     $column = new DivTagViewColumnDecorator($column);
     $column->Align = 'left';
     $handler = new ShowTextBlobHandler($this->dataset, $this, 'text_handler', $column);
     GetApplication()->RegisterHTTPHandler($handler);
     //
     // View column for text field
     //
     $column = new TextViewColumn('text', 'Text', $this->dataset);
     $column->SetOrderable(true);
     $column = new DivTagViewColumnDecorator($column);
     $column->Align = 'left';
     $handler = new ShowTextBlobHandler($this->dataset, $this, 'text_handler', $column);
     GetApplication()->RegisterHTTPHandler($handler);
     //
     // View column for id field
     //
     $column = new TextViewColumn('id', 'Id', $this->dataset);
     $column->SetOrderable(true);
     $handler = new ShowTextBlobHandler($this->dataset, $this, 'id_handler', $column);
     GetApplication()->RegisterHTTPHandler($handler);
     return $result;
 }
开发者ID:howareyoucolin,项目名称:demo,代码行数:89,代码来源:HomePageText.php

示例8: CreateGrid

 protected function CreateGrid()
 {
     $result = new Grid($this, $this->dataset, 'imvGrid');
     if ($this->GetSecurityInfo()->HasDeleteGrant()) {
         $result->SetAllowDeleteSelected(false);
     } 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->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
     //
     $pageView = new kardexmercanciasDetailView0imvPage($this, 'Kardexmercancias', 'Kardexmercancias', array('ProductosVenta_idProductosVenta'), GetCurrentUserGrantForDataSource('imv.'), 'UTF-8', 20, 'kardexmercanciasDetailEdit0imv_handler');
     $pageView->SetRecordPermission(GetCurrentUserRecordPermissionsForDataSource('imv.'));
     $handler = new PageHTTPHandler('kardexmercanciasDetailView0imv_handler', $pageView);
     GetApplication()->RegisterHTTPHandler($handler);
     $pageEdit = new kardexmercanciasDetailEdit0imvPage($this, array('ProductosVenta_idProductosVenta'), array('id'), $this->GetForeingKeyFields(), $this->CreateMasterDetailRecordGridForkardexmercanciasDetailEdit0imvGrid(), $this->dataset, GetCurrentUserGrantForDataSource('imv.'), 'UTF-8');
     $pageEdit->SetRecordPermission(GetCurrentUserRecordPermissionsForDataSource('imv.'));
     $pageEdit->SetShortCaption('Kardexmercancias');
     $pageEdit->SetHeader(GetPagesHeader());
     $pageEdit->SetFooter(GetPagesFooter());
     $pageEdit->SetCaption('Kardexmercancias');
     $pageEdit->SetHttpHandlerName('kardexmercanciasDetailEdit0imv_handler');
     $handler = new PageHTTPHandler('kardexmercanciasDetailEdit0imv_handler', $pageEdit);
     GetApplication()->RegisterHTTPHandler($handler);
     //
     // View column for cod_cups field
     //
     $column = new TextViewColumn('cod_cups', 'Cod Cups', $this->dataset);
     $column->SetOrderable(true);
     /* <inline edit column> */
     //
     // Edit column for cod_cups field
     //
     $editor = new TextEdit('cod_cups_edit');
     $editor->SetSize(100);
     $editor->SetMaxLength(100);
     $editColumn = new CustomEditColumn('Cod Cups', 'cod_cups', $editor, $this->dataset);
     $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $this->RenderText($editColumn->GetCaption())));
     $editor->GetValidatorCollection()->AddValidator($validator);
     $this->ApplyCommonColumnEditProperties($editColumn);
     $column->SetEditOperationColumn($editColumn);
     /* </inline edit column> */
     /* <inline insert column> */
     //
     // Edit column for cod_cups field
     //
     $editor = new TextEdit('cod_cups_edit');
     $editor->SetSize(100);
     $editor->SetMaxLength(100);
     $editColumn = new CustomEditColumn('Cod Cups', 'cod_cups', $editor, $this->dataset);
     $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $this->RenderText($editColumn->GetCaption())));
     $editor->GetValidatorCollection()->AddValidator($validator);
     $this->ApplyCommonColumnEditProperties($editColumn);
     $column->SetInsertOperationColumn($editColumn);
     /* </inline insert column> */
     $handler = new ShowTextBlobHandler($this->dataset, $this, 'cod_cups_handler', $column);
     GetApplication()->RegisterHTTPHandler($handler);
     //
     // View column for cod_admin field
     //
     $column = new TextViewColumn('cod_admin', 'Cod Admin', $this->dataset);
     $column->SetOrderable(true);
     /* <inline edit column> */
     //
     // Edit column for cod_admin field
     //
     $editor = new TextEdit('cod_admin_edit');
     $editor->SetSize(100);
     $editor->SetMaxLength(100);
     $editColumn = new CustomEditColumn('Cod Admin', 'cod_admin', $editor, $this->dataset);
     $editColumn->SetAllowSetToNull(true);
//.........这里部分代码省略.........
开发者ID:Kenovix,项目名称:san-miguel,代码行数:101,代码来源:imv.php

示例9: CreateGrid

 protected function CreateGrid()
 {
     $result = new Grid($this, $this->dataset, 'activosGrid');
     if ($this->GetSecurityInfo()->HasDeleteGrant()) {
         $result->SetAllowDeleteSelected(false);
     } 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->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
     //
     $pageView = new act_movimientosDetailView0activosPage($this, 'Act Movimientos', 'Act Movimientos', array('idActivo'), GetCurrentUserGrantForDataSource('activos.act_movimientos'), 'UTF-8', 20, 'act_movimientosDetailEdit0activos_handler');
     $pageView->SetRecordPermission(GetCurrentUserRecordPermissionsForDataSource('activos.act_movimientos'));
     $handler = new PageHTTPHandler('act_movimientosDetailView0activos_handler', $pageView);
     GetApplication()->RegisterHTTPHandler($handler);
     $pageEdit = new act_movimientosDetailEdit0activosPage($this, array('idActivo'), array('idActivos'), $this->GetForeingKeyFields(), $this->CreateMasterDetailRecordGridForact_movimientosDetailEdit0activosGrid(), $this->dataset, GetCurrentUserGrantForDataSource('activos.act_movimientos'), 'UTF-8');
     $pageEdit->SetRecordPermission(GetCurrentUserRecordPermissionsForDataSource('activos.act_movimientos'));
     $pageEdit->SetShortCaption('Act Movimientos');
     $pageEdit->SetHeader(GetPagesHeader());
     $pageEdit->SetFooter(GetPagesFooter());
     $pageEdit->SetCaption('Act Movimientos');
     $pageEdit->SetHttpHandlerName('act_movimientosDetailEdit0activos_handler');
     $handler = new PageHTTPHandler('act_movimientosDetailEdit0activos_handler', $pageEdit);
     GetApplication()->RegisterHTTPHandler($handler);
     //
     // View column for NombreAct field
     //
     $column = new TextViewColumn('NombreAct', 'NombreAct', $this->dataset);
     $column->SetOrderable(true);
     /* <inline edit column> */
     //
     // Edit column for NombreAct field
     //
     $editor = new TextAreaEdit('nombreact_edit', 50, 8);
     $editColumn = new CustomEditColumn('NombreAct', 'NombreAct', $editor, $this->dataset);
     $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $this->RenderText($editColumn->GetCaption())));
     $editor->GetValidatorCollection()->AddValidator($validator);
     $this->ApplyCommonColumnEditProperties($editColumn);
     $column->SetEditOperationColumn($editColumn);
     /* </inline edit column> */
     /* <inline insert column> */
     //
     // Edit column for NombreAct field
     //
     $editor = new TextAreaEdit('nombreact_edit', 50, 8);
     $editColumn = new CustomEditColumn('NombreAct', 'NombreAct', $editor, $this->dataset);
     $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $this->RenderText($editColumn->GetCaption())));
     $editor->GetValidatorCollection()->AddValidator($validator);
     $this->ApplyCommonColumnEditProperties($editColumn);
     $column->SetInsertOperationColumn($editColumn);
     /* </inline insert column> */
     $handler = new ShowTextBlobHandler($this->dataset, $this, 'NombreAct_handler', $column);
     GetApplication()->RegisterHTTPHandler($handler);
     //
     // View column for Marca field
     //
     $column = new TextViewColumn('Marca', 'Marca', $this->dataset);
     $column->SetOrderable(true);
     /* <inline edit column> */
     //
     // Edit column for Marca field
     //
     $editor = new TextEdit('marca_edit');
     $editor->SetSize(100);
     $editor->SetMaxLength(100);
     $editColumn = new CustomEditColumn('Marca', 'Marca', $editor, $this->dataset);
     $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $this->RenderText($editColumn->GetCaption())));
     $editor->GetValidatorCollection()->AddValidator($validator);
     $this->ApplyCommonColumnEditProperties($editColumn);
     $column->SetEditOperationColumn($editColumn);
     /* </inline edit column> */
//.........这里部分代码省略.........
开发者ID:Kenovix,项目名称:san-miguel,代码行数:101,代码来源:activos.php

示例10: GetColumnViewData

 private function GetColumnViewData(CustomEditColumn $column, Renderer $renderer)
 {
     return array('FieldName' => $column->GetFieldName(), 'Id' => $column->GetEditControl()->GetName(), 'Editor' => $renderer->Render($column), 'Caption' => $column->GetCaption(), 'Required' => $column->DisplayAsRequired(), 'DisplaySetToNullCheckBox' => $column->GetDisplaySetToNullCheckBox(), 'DisplaySetToDefaultCheckBox' => $column->GetDisplaySetToDefaultCheckBox(), 'IsValueNull' => $column->IsValueNull(), 'IsValueSetToDefault' => $column->IsValueSetToDefault(), 'SetNullCheckBoxName' => $column->GetFieldName() . '_null', 'SetDefaultCheckBoxName' => $column->GetFieldName() . '_def');
 }
开发者ID:outsourcinggithub,项目名称:outsourcing,代码行数:4,代码来源:grid.php

示例11: GetInsertOperationEditor

 public function GetInsertOperationEditor()
 {
     if (isset($this->insertOperationColumn)) {
         return $this->insertOperationColumn->GetEditControl();
     } else {
         return null;
     }
 }
开发者ID:martinw0102,项目名称:ProjetSyst,代码行数:8,代码来源:columns.php

示例12: __construct

 public function __construct($caption, $fieldName, $editControl, $dataset, $allowSetToNull = false, $allowSetToDefault = false, $targetFolderTemplate = '', $fileExtension = '')
 {
     parent::__construct($caption, $fieldName, $editControl, $dataset, $allowSetToNull, $allowSetToDefault);
     $this->targetFolderTemplate = $targetFolderTemplate;
     $this->OnCustomFileName = new Event();
     $this->useThumbnailGeneration = false;
     $this->replaceUploadedFileIfExist = true;
 }
开发者ID:martinw0102,项目名称:ProjetSyst,代码行数:8,代码来源:edit_columns.php


注:本文中的CustomEditColumn类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。