<?php
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 *                                   ATTENTION!
 * If you see this message in your browser (Internet Explorer, Mozilla Firefox, Google Chrome, etc.)
 * this means that PHP is not properly installed on your web server. Please refer to the PHP manual
 * for more details: http://php.net/manual/install.php 
 *
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 */

    include_once dirname(__FILE__) . '/components/startup.php';
    include_once dirname(__FILE__) . '/components/application.php';
    include_once dirname(__FILE__) . '/' . 'authorization.php';


    include_once dirname(__FILE__) . '/' . 'database_engine/mysql_engine.php';
    include_once dirname(__FILE__) . '/' . 'components/page/page_includes.php';

    function GetConnectionOptions()
    {
        $result = GetGlobalConnectionOptions();
        $result['client_encoding'] = 'utf8';
        GetApplication()->GetUserAuthentication()->applyIdentityToConnectionOptions($result);
        return $result;
    }

    
    
    
    // OnBeforePageExecute event handler
    
    
    
    class Notas_CanceladasPage extends Page
    {
        protected function DoBeforeCreate()
        {
            $this->SetTitle('Notas Canceladas');
            $this->SetMenuLabel('Notas Canceladas');
            $this->SetHeader(GetPagesHeader());
            $this->SetFooter(GetPagesFooter());
    
            $selectQuery = 'select * from notas where st_nota=\'C\'';
            $insertQuery = array();
            $updateQuery = array();
            $deleteQuery = array();
            $this->dataset = new QueryDataset(
              MyConnectionFactory::getInstance(), 
              GetConnectionOptions(),
              $selectQuery, $insertQuery, $updateQuery, $deleteQuery, 'Notas Canceladas');
            $this->dataset->addFields(
                array(
                    new IntegerField('id_notas', true, true, true),
                    new IntegerField('id_licencas'),
                    new StringField('chave'),
                    new IntegerField('sequencia'),
                    new StringField('tipo_nf'),
                    new DateTimeField('dt_inclusao'),
                    new DateTimeField('dt_concluido'),
                    new StringField('st_nota'),
                    new StringField('tx_obs'),
                    new StringField('nm_arquivo_retorno'),
                    new StringField('natureza_operacao'),
                    new StringField('forma_pagamento'),
                    new DateField('data_emissao'),
                    new DateTimeField('data_entrada_saida'),
                    new StringField('tipo_documento'),
                    new StringField('local_destino'),
                    new StringField('finalidade_emissao'),
                    new StringField('consumidor_final'),
                    new StringField('presenca_comprador'),
                    new StringField('colecao____________________notas_referenciadas'),
                    new StringField('colecao____________________pessoas_autorizadas'),
                    new StringField('cnpj_emitente'),
                    new StringField('nome_emitente'),
                    new StringField('nome_fantasia_emitente'),
                    new StringField('logradouro_emitente'),
                    new StringField('numero_emitente'),
                    new StringField('complemento_emitente'),
                    new StringField('bairro_emitente'),
                    new StringField('prestador_codigo_municipio'),
                    new StringField('municipio_emitente'),
                    new StringField('uf_emitente'),
                    new StringField('cep_emitente'),
                    new StringField('telefone_emitente'),
                    new StringField('inscricao_estadual_emitenete'),
                    new StringField('inscricao_estadual_st_emitente'),
                    new StringField('inscricao_municipal_emitente'),
                    new StringField('cnae_emitente'),
                    new StringField('regime_tributario_emitente'),
                    new StringField('cnpj_destinatario'),
                    new StringField('cpf_destinatario'),
                    new StringField('id_estrangeiro_destinatario'),
                    new StringField('nome_destinatario'),
                    new StringField('logradoura_destinatario'),
                    new StringField('numero_destinatario'),
                    new StringField('complemento_destinatario'),
                    new StringField('bairro_destinatario'),
                    new StringField('codigo_municipio_destinatario'),
                    new StringField('municipio_destinatario'),
                    new StringField('uf_destinatario'),
                    new StringField('cep_destinatario'),
                    new StringField('pais_destinatario'),
                    new StringField('telefone_destinatario'),
                    new StringField('indicador_inscricao_estadual_destinatario'),
                    new StringField('inscricao_estadual_destinatario'),
                    new StringField('inscricao_suframa_destinatario'),
                    new StringField('email_destinatario'),
                    new StringField('inscricao_municipal_destinatario'),
                    new StringField('cnpj_retirada'),
                    new StringField('cpf_retirada'),
                    new StringField('logradoura_retirada'),
                    new StringField('numero_retirada'),
                    new StringField('complemento_retirada'),
                    new StringField('bairro_retirada'),
                    new StringField('codigo_municipio_retirada'),
                    new StringField('municipio_retirada'),
                    new StringField('uf_retirada'),
                    new StringField('cnpj_entrega'),
                    new StringField('cpf_entrega'),
                    new StringField('logradouro_entrega'),
                    new StringField('numero_entrega'),
                    new StringField('complemento_entrega'),
                    new StringField('bairro_entrega'),
                    new StringField('codigo_municipio_entrega'),
                    new StringField('municipio_entrega'),
                    new StringField('uf_entrega'),
                    new StringField('colecao____________________itens'),
                    new StringField('icms_base_calculo'),
                    new StringField('icms_valor_total'),
                    new StringField('icms_valor_total_desonerado'),
                    new StringField('icms_base_calculo_st'),
                    new StringField('icms_valor_total_st'),
                    new StringField('valor_produtos'),
                    new StringField('valor_frete'),
                    new StringField('valor_seguro'),
                    new StringField('valor_desconto'),
                    new StringField('valor_total_ii'),
                    new StringField('valor_ipi'),
                    new StringField('valor_pis'),
                    new StringField('valor_cofins'),
                    new StringField('valor_outras_despesas'),
                    new StringField('valor_total'),
                    new StringField('valor_total_servicos'),
                    new StringField('base_issqn'),
                    new StringField('valor_pis_servico'),
                    new StringField('data_prestacao_servico'),
                    new StringField('valor_total_deducao_base_calculo'),
                    new StringField('valor_total_outras_retencoes'),
                    new StringField('valor_total_desconto_incondicionado'),
                    new StringField('valor_total_valor_condicionado'),
                    new StringField('valor_total_retencao_iss'),
                    new StringField('codigo_regime_especial_tributacao'),
                    new StringField('valor_retido_pis'),
                    new StringField('valor_retido_cofins'),
                    new StringField('valor_retido_csll'),
                    new StringField('base_calculo_irrf'),
                    new StringField('valor_retido_irrf'),
                    new StringField('prev_social_base_calculo'),
                    new StringField('prev_social_valor_retido'),
                    new StringField('modalidade_frete'),
                    new StringField('cnpj_transportador'),
                    new StringField('cpf_transportador'),
                    new StringField('nome_transportador'),
                    new StringField('inscricao_estadual_transportador'),
                    new StringField('endereco_transportador'),
                    new StringField('municipio_transportador'),
                    new StringField('uf_transportador'),
                    new StringField('transporte_icms_servico'),
                    new StringField('transporte_icms_base_servico'),
                    new StringField('transporte_icms_aliquota'),
                    new StringField('transporte_icms_valor'),
                    new StringField('transporte_icms_cfop'),
                    new StringField('transporte_icms_codigo_municipio'),
                    new StringField('veiculo_placa'),
                    new StringField('veiculo_uf'),
                    new StringField('veiculo_rntc'),
                    new StringField('veiculo_identificacao_vagao'),
                    new StringField('veiculo_identificacao_balsa'),
                    new StringField('colecao____________________volumes'),
                    new StringField('numero_fatura'),
                    new StringField('valor_original_fatura'),
                    new StringField('valor_desconto_fatura'),
                    new StringField('valor_liquido_fatura'),
                    new StringField('colecao____________________duplicatas'),
                    new StringField('informacoes_adicionais_contribuinte'),
                    new StringField('uf_local_embarque'),
                    new StringField('local_embarque'),
                    new StringField('local_despacho'),
                    new StringField('colecao____________________formas_pagamento'),
                    new StringField('operacao'),
                    new StringField('tx_cancelamento'),
                    new StringField('tx_correcao')
                )
            );
            $this->dataset->AddCustomCondition(EnvVariablesUtils::EvaluateVariableTemplate($this->GetColumnVariableContainer(), 'id_licencas=%CURRENT_USER_ID%'));
        }
    
        protected function DoPrepare() {
    
        }
    
        protected function CreatePageNavigator()
        {
            $result = new CompositePageNavigator($this);
            
            $partitionNavigator = new PageNavigator('pnav', $this, $this->dataset);
            $partitionNavigator->SetRowsPerPage(20);
            $result->AddPageNavigator($partitionNavigator);
            
            return $result;
        }
    
        protected function CreateRssGenerator()
        {
            return null;
        }
    
        protected function setupCharts()
        {
    
        }
    
        protected function getFiltersColumns()
        {
            return array(
                new FilterColumn($this->dataset, 'id_notas', 'id_notas', 'Id Notas'),
                new FilterColumn($this->dataset, 'id_licencas', 'id_licencas', 'Id Licencas'),
                new FilterColumn($this->dataset, 'chave', 'chave', 'Chave'),
                new FilterColumn($this->dataset, 'sequencia', 'sequencia', 'Sequencia'),
                new FilterColumn($this->dataset, 'tipo_nf', 'tipo_nf', 'Tipo Nf'),
                new FilterColumn($this->dataset, 'dt_inclusao', 'dt_inclusao', 'Dt Inclusao'),
                new FilterColumn($this->dataset, 'dt_concluido', 'dt_concluido', 'Dt Concluido'),
                new FilterColumn($this->dataset, 'st_nota', 'st_nota', 'St Nota'),
                new FilterColumn($this->dataset, 'tx_obs', 'tx_obs', 'Tx Obs'),
                new FilterColumn($this->dataset, 'nm_arquivo_retorno', 'nm_arquivo_retorno', 'Nm Arquivo Retorno'),
                new FilterColumn($this->dataset, 'natureza_operacao', 'natureza_operacao', 'Natureza Operacao'),
                new FilterColumn($this->dataset, 'forma_pagamento', 'forma_pagamento', 'Forma Pagamento'),
                new FilterColumn($this->dataset, 'data_emissao', 'data_emissao', 'Data Emissao'),
                new FilterColumn($this->dataset, 'data_entrada_saida', 'data_entrada_saida', 'Data Entrada Saida'),
                new FilterColumn($this->dataset, 'tipo_documento', 'tipo_documento', 'Tipo Documento'),
                new FilterColumn($this->dataset, 'local_destino', 'local_destino', 'Local Destino'),
                new FilterColumn($this->dataset, 'finalidade_emissao', 'finalidade_emissao', 'Finalidade Emissao'),
                new FilterColumn($this->dataset, 'consumidor_final', 'consumidor_final', 'Consumidor Final'),
                new FilterColumn($this->dataset, 'presenca_comprador', 'presenca_comprador', 'Presenca Comprador'),
                new FilterColumn($this->dataset, 'colecao____________________notas_referenciadas', 'colecao____________________notas_referenciadas', 'Colecao                    Notas Referenciadas'),
                new FilterColumn($this->dataset, 'colecao____________________pessoas_autorizadas', 'colecao____________________pessoas_autorizadas', 'Colecao                    Pessoas Autorizadas'),
                new FilterColumn($this->dataset, 'cnpj_emitente', 'cnpj_emitente', 'Cnpj Emitente'),
                new FilterColumn($this->dataset, 'nome_emitente', 'nome_emitente', 'Nome Emitente'),
                new FilterColumn($this->dataset, 'nome_fantasia_emitente', 'nome_fantasia_emitente', 'Nome Fantasia Emitente'),
                new FilterColumn($this->dataset, 'logradouro_emitente', 'logradouro_emitente', 'Logradouro Emitente'),
                new FilterColumn($this->dataset, 'numero_emitente', 'numero_emitente', 'Numero Emitente'),
                new FilterColumn($this->dataset, 'complemento_emitente', 'complemento_emitente', 'Complemento Emitente'),
                new FilterColumn($this->dataset, 'bairro_emitente', 'bairro_emitente', 'Bairro Emitente'),
                new FilterColumn($this->dataset, 'prestador_codigo_municipio', 'prestador_codigo_municipio', 'Prestador Codigo Municipio'),
                new FilterColumn($this->dataset, 'municipio_emitente', 'municipio_emitente', 'Municipio Emitente'),
                new FilterColumn($this->dataset, 'uf_emitente', 'uf_emitente', 'Uf Emitente'),
                new FilterColumn($this->dataset, 'cep_emitente', 'cep_emitente', 'Cep Emitente'),
                new FilterColumn($this->dataset, 'telefone_emitente', 'telefone_emitente', 'Telefone Emitente'),
                new FilterColumn($this->dataset, 'inscricao_estadual_emitenete', 'inscricao_estadual_emitenete', 'Inscricao Estadual Emitenete'),
                new FilterColumn($this->dataset, 'inscricao_estadual_st_emitente', 'inscricao_estadual_st_emitente', 'Inscricao Estadual St Emitente'),
                new FilterColumn($this->dataset, 'inscricao_municipal_emitente', 'inscricao_municipal_emitente', 'Inscricao Municipal Emitente'),
                new FilterColumn($this->dataset, 'cnae_emitente', 'cnae_emitente', 'Cnae Emitente'),
                new FilterColumn($this->dataset, 'regime_tributario_emitente', 'regime_tributario_emitente', 'Regime Tributario Emitente'),
                new FilterColumn($this->dataset, 'cnpj_destinatario', 'cnpj_destinatario', 'Cnpj Destinatario'),
                new FilterColumn($this->dataset, 'cpf_destinatario', 'cpf_destinatario', 'Cpf Destinatario'),
                new FilterColumn($this->dataset, 'id_estrangeiro_destinatario', 'id_estrangeiro_destinatario', 'Id Estrangeiro Destinatario'),
                new FilterColumn($this->dataset, 'nome_destinatario', 'nome_destinatario', 'Nome Destinatario'),
                new FilterColumn($this->dataset, 'logradoura_destinatario', 'logradoura_destinatario', 'Logradoura Destinatario'),
                new FilterColumn($this->dataset, 'numero_destinatario', 'numero_destinatario', 'Numero Destinatario'),
                new FilterColumn($this->dataset, 'complemento_destinatario', 'complemento_destinatario', 'Complemento Destinatario'),
                new FilterColumn($this->dataset, 'bairro_destinatario', 'bairro_destinatario', 'Bairro Destinatario'),
                new FilterColumn($this->dataset, 'codigo_municipio_destinatario', 'codigo_municipio_destinatario', 'Codigo Municipio Destinatario'),
                new FilterColumn($this->dataset, 'municipio_destinatario', 'municipio_destinatario', 'Municipio Destinatario'),
                new FilterColumn($this->dataset, 'uf_destinatario', 'uf_destinatario', 'Uf Destinatario'),
                new FilterColumn($this->dataset, 'cep_destinatario', 'cep_destinatario', 'Cep Destinatario'),
                new FilterColumn($this->dataset, 'pais_destinatario', 'pais_destinatario', 'Pais Destinatario'),
                new FilterColumn($this->dataset, 'telefone_destinatario', 'telefone_destinatario', 'Telefone Destinatario'),
                new FilterColumn($this->dataset, 'indicador_inscricao_estadual_destinatario', 'indicador_inscricao_estadual_destinatario', 'Indicador Inscricao Estadual Destinatario'),
                new FilterColumn($this->dataset, 'inscricao_estadual_destinatario', 'inscricao_estadual_destinatario', 'Inscricao Estadual Destinatario'),
                new FilterColumn($this->dataset, 'inscricao_suframa_destinatario', 'inscricao_suframa_destinatario', 'Inscricao Suframa Destinatario'),
                new FilterColumn($this->dataset, 'email_destinatario', 'email_destinatario', 'Email Destinatario'),
                new FilterColumn($this->dataset, 'inscricao_municipal_destinatario', 'inscricao_municipal_destinatario', 'Inscricao Municipal Destinatario'),
                new FilterColumn($this->dataset, 'cnpj_retirada', 'cnpj_retirada', 'Cnpj Retirada'),
                new FilterColumn($this->dataset, 'cpf_retirada', 'cpf_retirada', 'Cpf Retirada'),
                new FilterColumn($this->dataset, 'logradoura_retirada', 'logradoura_retirada', 'Logradoura Retirada'),
                new FilterColumn($this->dataset, 'numero_retirada', 'numero_retirada', 'Numero Retirada'),
                new FilterColumn($this->dataset, 'complemento_retirada', 'complemento_retirada', 'Complemento Retirada'),
                new FilterColumn($this->dataset, 'bairro_retirada', 'bairro_retirada', 'Bairro Retirada'),
                new FilterColumn($this->dataset, 'codigo_municipio_retirada', 'codigo_municipio_retirada', 'Codigo Municipio Retirada'),
                new FilterColumn($this->dataset, 'municipio_retirada', 'municipio_retirada', 'Municipio Retirada'),
                new FilterColumn($this->dataset, 'uf_retirada', 'uf_retirada', 'Uf Retirada'),
                new FilterColumn($this->dataset, 'cnpj_entrega', 'cnpj_entrega', 'Cnpj Entrega'),
                new FilterColumn($this->dataset, 'cpf_entrega', 'cpf_entrega', 'Cpf Entrega'),
                new FilterColumn($this->dataset, 'logradouro_entrega', 'logradouro_entrega', 'Logradouro Entrega'),
                new FilterColumn($this->dataset, 'numero_entrega', 'numero_entrega', 'Numero Entrega'),
                new FilterColumn($this->dataset, 'complemento_entrega', 'complemento_entrega', 'Complemento Entrega'),
                new FilterColumn($this->dataset, 'bairro_entrega', 'bairro_entrega', 'Bairro Entrega'),
                new FilterColumn($this->dataset, 'codigo_municipio_entrega', 'codigo_municipio_entrega', 'Codigo Municipio Entrega'),
                new FilterColumn($this->dataset, 'municipio_entrega', 'municipio_entrega', 'Municipio Entrega'),
                new FilterColumn($this->dataset, 'uf_entrega', 'uf_entrega', 'Uf Entrega'),
                new FilterColumn($this->dataset, 'colecao____________________itens', 'colecao____________________itens', 'Colecao                    Itens'),
                new FilterColumn($this->dataset, 'icms_base_calculo', 'icms_base_calculo', 'Icms Base Calculo'),
                new FilterColumn($this->dataset, 'icms_valor_total', 'icms_valor_total', 'Icms Valor Total'),
                new FilterColumn($this->dataset, 'icms_valor_total_desonerado', 'icms_valor_total_desonerado', 'Icms Valor Total Desonerado'),
                new FilterColumn($this->dataset, 'icms_base_calculo_st', 'icms_base_calculo_st', 'Icms Base Calculo St'),
                new FilterColumn($this->dataset, 'icms_valor_total_st', 'icms_valor_total_st', 'Icms Valor Total St'),
                new FilterColumn($this->dataset, 'valor_produtos', 'valor_produtos', 'Valor Produtos'),
                new FilterColumn($this->dataset, 'valor_frete', 'valor_frete', 'Valor Frete'),
                new FilterColumn($this->dataset, 'valor_seguro', 'valor_seguro', 'Valor Seguro'),
                new FilterColumn($this->dataset, 'valor_desconto', 'valor_desconto', 'Valor Desconto'),
                new FilterColumn($this->dataset, 'valor_total_ii', 'valor_total_ii', 'Valor Total Ii'),
                new FilterColumn($this->dataset, 'valor_ipi', 'valor_ipi', 'Valor Ipi'),
                new FilterColumn($this->dataset, 'valor_pis', 'valor_pis', 'Valor Pis'),
                new FilterColumn($this->dataset, 'valor_cofins', 'valor_cofins', 'Valor Cofins'),
                new FilterColumn($this->dataset, 'valor_outras_despesas', 'valor_outras_despesas', 'Valor Outras Despesas'),
                new FilterColumn($this->dataset, 'valor_total', 'valor_total', 'Valor Total'),
                new FilterColumn($this->dataset, 'valor_total_servicos', 'valor_total_servicos', 'Valor Total Servicos'),
                new FilterColumn($this->dataset, 'base_issqn', 'base_issqn', 'Base Issqn'),
                new FilterColumn($this->dataset, 'valor_pis_servico', 'valor_pis_servico', 'Valor Pis Servico'),
                new FilterColumn($this->dataset, 'data_prestacao_servico', 'data_prestacao_servico', 'Data Prestacao Servico'),
                new FilterColumn($this->dataset, 'valor_total_deducao_base_calculo', 'valor_total_deducao_base_calculo', 'Valor Total Deducao Base Calculo'),
                new FilterColumn($this->dataset, 'valor_total_outras_retencoes', 'valor_total_outras_retencoes', 'Valor Total Outras Retencoes'),
                new FilterColumn($this->dataset, 'valor_total_desconto_incondicionado', 'valor_total_desconto_incondicionado', 'Valor Total Desconto Incondicionado'),
                new FilterColumn($this->dataset, 'valor_total_valor_condicionado', 'valor_total_valor_condicionado', 'Valor Total Valor Condicionado'),
                new FilterColumn($this->dataset, 'valor_total_retencao_iss', 'valor_total_retencao_iss', 'Valor Total Retencao Iss'),
                new FilterColumn($this->dataset, 'codigo_regime_especial_tributacao', 'codigo_regime_especial_tributacao', 'Codigo Regime Especial Tributacao'),
                new FilterColumn($this->dataset, 'valor_retido_pis', 'valor_retido_pis', 'Valor Retido Pis'),
                new FilterColumn($this->dataset, 'valor_retido_cofins', 'valor_retido_cofins', 'Valor Retido Cofins'),
                new FilterColumn($this->dataset, 'valor_retido_csll', 'valor_retido_csll', 'Valor Retido Csll'),
                new FilterColumn($this->dataset, 'base_calculo_irrf', 'base_calculo_irrf', 'Base Calculo Irrf'),
                new FilterColumn($this->dataset, 'valor_retido_irrf', 'valor_retido_irrf', 'Valor Retido Irrf'),
                new FilterColumn($this->dataset, 'prev_social_base_calculo', 'prev_social_base_calculo', 'Prev Social Base Calculo'),
                new FilterColumn($this->dataset, 'prev_social_valor_retido', 'prev_social_valor_retido', 'Prev Social Valor Retido'),
                new FilterColumn($this->dataset, 'modalidade_frete', 'modalidade_frete', 'Modalidade Frete'),
                new FilterColumn($this->dataset, 'cnpj_transportador', 'cnpj_transportador', 'Cnpj Transportador'),
                new FilterColumn($this->dataset, 'cpf_transportador', 'cpf_transportador', 'Cpf Transportador'),
                new FilterColumn($this->dataset, 'nome_transportador', 'nome_transportador', 'Nome Transportador'),
                new FilterColumn($this->dataset, 'inscricao_estadual_transportador', 'inscricao_estadual_transportador', 'Inscricao Estadual Transportador'),
                new FilterColumn($this->dataset, 'endereco_transportador', 'endereco_transportador', 'Endereco Transportador'),
                new FilterColumn($this->dataset, 'municipio_transportador', 'municipio_transportador', 'Municipio Transportador'),
                new FilterColumn($this->dataset, 'uf_transportador', 'uf_transportador', 'Uf Transportador'),
                new FilterColumn($this->dataset, 'transporte_icms_servico', 'transporte_icms_servico', 'Transporte Icms Servico'),
                new FilterColumn($this->dataset, 'transporte_icms_base_servico', 'transporte_icms_base_servico', 'Transporte Icms Base Servico'),
                new FilterColumn($this->dataset, 'transporte_icms_aliquota', 'transporte_icms_aliquota', 'Transporte Icms Aliquota'),
                new FilterColumn($this->dataset, 'transporte_icms_valor', 'transporte_icms_valor', 'Transporte Icms Valor'),
                new FilterColumn($this->dataset, 'transporte_icms_cfop', 'transporte_icms_cfop', 'Transporte Icms Cfop'),
                new FilterColumn($this->dataset, 'transporte_icms_codigo_municipio', 'transporte_icms_codigo_municipio', 'Transporte Icms Codigo Municipio'),
                new FilterColumn($this->dataset, 'veiculo_placa', 'veiculo_placa', 'Veiculo Placa'),
                new FilterColumn($this->dataset, 'veiculo_uf', 'veiculo_uf', 'Veiculo Uf'),
                new FilterColumn($this->dataset, 'veiculo_rntc', 'veiculo_rntc', 'Veiculo Rntc'),
                new FilterColumn($this->dataset, 'veiculo_identificacao_vagao', 'veiculo_identificacao_vagao', 'Veiculo Identificacao Vagao'),
                new FilterColumn($this->dataset, 'veiculo_identificacao_balsa', 'veiculo_identificacao_balsa', 'Veiculo Identificacao Balsa'),
                new FilterColumn($this->dataset, 'colecao____________________volumes', 'colecao____________________volumes', 'Colecao                    Volumes'),
                new FilterColumn($this->dataset, 'numero_fatura', 'numero_fatura', 'Numero Fatura'),
                new FilterColumn($this->dataset, 'valor_original_fatura', 'valor_original_fatura', 'Valor Original Fatura'),
                new FilterColumn($this->dataset, 'valor_desconto_fatura', 'valor_desconto_fatura', 'Valor Desconto Fatura'),
                new FilterColumn($this->dataset, 'valor_liquido_fatura', 'valor_liquido_fatura', 'Valor Liquido Fatura'),
                new FilterColumn($this->dataset, 'colecao____________________duplicatas', 'colecao____________________duplicatas', 'Colecao                    Duplicatas'),
                new FilterColumn($this->dataset, 'informacoes_adicionais_contribuinte', 'informacoes_adicionais_contribuinte', 'Informacoes Adicionais Contribuinte'),
                new FilterColumn($this->dataset, 'uf_local_embarque', 'uf_local_embarque', 'Uf Local Embarque'),
                new FilterColumn($this->dataset, 'local_embarque', 'local_embarque', 'Local Embarque'),
                new FilterColumn($this->dataset, 'local_despacho', 'local_despacho', 'Local Despacho'),
                new FilterColumn($this->dataset, 'colecao____________________formas_pagamento', 'colecao____________________formas_pagamento', 'Colecao                    Formas Pagamento'),
                new FilterColumn($this->dataset, 'operacao', 'operacao', 'Operacao'),
                new FilterColumn($this->dataset, 'tx_cancelamento', 'tx_cancelamento', 'Cancelamento'),
                new FilterColumn($this->dataset, 'tx_correcao', 'tx_correcao', 'Tx Correcao')
            );
        }
    
        protected function setupQuickFilter(QuickFilter $quickFilter, FixedKeysArray $columns)
        {
    
        }
    
        protected function setupColumnFilter(ColumnFilter $columnFilter)
        {
            $columnFilter
                ->setOptionsFor('dt_inclusao')
                ->setOptionsFor('data_emissao');
        }
    
        protected function setupFilterBuilder(FilterBuilder $filterBuilder, FixedKeysArray $columns)
        {
    
        }
    
        protected function AddOperationsColumns(Grid $grid)
        {
            $actions = $grid->getActions();
            $actions->setCaption($this->GetLocalizerCaptions()->GetMessageString('Actions'));
            $actions->setPosition(ActionList::POSITION_LEFT);
            
            if ($this->GetSecurityInfo()->HasViewGrant())
            {
                $operation = new LinkOperation($this->GetLocalizerCaptions()->GetMessageString('View'), OPERATION_VIEW, $this->dataset, $grid);
                $operation->setUseImage(true);
                $actions->addOperation($operation);
            }
        }
    
        protected function AddFieldColumns(Grid $grid, $withDetails = true)
        {
            //
            // View column for id_notas field
            //
            $column = new TextViewColumn('id_notas', 'id_notas', 'Id Notas', $this->dataset);
            $column->SetOrderable(true);
            $column->setMinimalVisibility(ColumnVisibility::PHONE);
            $column->SetDescription('');
            $column->SetFixedWidth(null);
            $grid->AddViewColumn($column);
            
            //
            // View column for chave field
            //
            $column = new TextViewColumn('chave', 'chave', 'Chave', $this->dataset);
            $column->SetOrderable(true);
            $column->setMinimalVisibility(ColumnVisibility::PHONE);
            $column->SetDescription('');
            $column->SetFixedWidth(null);
            $grid->AddViewColumn($column);
            
            //
            // View column for dt_inclusao field
            //
            $column = new DateTimeViewColumn('dt_inclusao', 'dt_inclusao', 'Dt Inclusao', $this->dataset);
            $column->SetOrderable(true);
            $column->SetDateTimeFormat('d.m.Y H:i:s');
            $column->setMinimalVisibility(ColumnVisibility::PHONE);
            $column->SetDescription('');
            $column->SetFixedWidth(null);
            $grid->AddViewColumn($column);
            
            //
            // View column for tx_obs field
            //
            $column = new TextViewColumn('tx_obs', 'tx_obs', 'Tx Obs', $this->dataset);
            $column->SetOrderable(true);
            $column->SetMaxLength(75);
            $column->SetFullTextWindowHandlerName('Notas_CanceladasGrid_tx_obs_handler_list');
            $column->setMinimalVisibility(ColumnVisibility::PHONE);
            $column->SetDescription('');
            $column->SetFixedWidth(null);
            $grid->AddViewColumn($column);
            
            //
            // View column for natureza_operacao field
            //
            $column = new TextViewColumn('natureza_operacao', 'natureza_operacao', 'Natureza Operacao', $this->dataset);
            $column->SetOrderable(true);
            $column->setMinimalVisibility(ColumnVisibility::PHONE);
            $column->SetDescription('');
            $column->SetFixedWidth(null);
            $grid->AddViewColumn($column);
            
            //
            // View column for forma_pagamento field
            //
            $column = new TextViewColumn('forma_pagamento', 'forma_pagamento', 'Forma Pagamento', $this->dataset);
            $column->SetOrderable(true);
            $column->setMinimalVisibility(ColumnVisibility::PHONE);
            $column->SetDescription('');
            $column->SetFixedWidth(null);
            $grid->AddViewColumn($column);
            
            //
            // View column for data_emissao field
            //
            $column = new DateTimeViewColumn('data_emissao', 'data_emissao', 'Data Emissao', $this->dataset);
            $column->SetOrderable(true);
            $column->SetDateTimeFormat('Y-m-d');
            $column->setMinimalVisibility(ColumnVisibility::PHONE);
            $column->SetDescription('');
            $column->SetFixedWidth(null);
            $grid->AddViewColumn($column);
            
            //
            // View column for nome_destinatario field
            //
            $column = new TextViewColumn('nome_destinatario', 'nome_destinatario', 'Nome Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $column->setMinimalVisibility(ColumnVisibility::PHONE);
            $column->SetDescription('');
            $column->SetFixedWidth(null);
            $grid->AddViewColumn($column);
            
            //
            // View column for valor_total field
            //
            $column = new TextViewColumn('valor_total', 'valor_total', 'Valor Total', $this->dataset);
            $column->SetOrderable(true);
            $column->setMinimalVisibility(ColumnVisibility::PHONE);
            $column->SetDescription('');
            $column->SetFixedWidth(null);
            $grid->AddViewColumn($column);
            
            //
            // View column for tx_cancelamento field
            //
            $column = new TextViewColumn('tx_cancelamento', 'tx_cancelamento', 'Cancelamento', $this->dataset);
            $column->SetOrderable(true);
            $column->setMinimalVisibility(ColumnVisibility::PHONE);
            $column->SetDescription('');
            $column->SetFixedWidth(null);
            $grid->AddViewColumn($column);
        }
    
        protected function AddSingleRecordViewColumns(Grid $grid)
        {
            //
            // View column for id_notas field
            //
            $column = new TextViewColumn('id_notas', 'id_notas', 'Id Notas', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for id_licencas field
            //
            $column = new TextViewColumn('id_licencas', 'id_licencas', 'Id Licencas', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for chave field
            //
            $column = new TextViewColumn('chave', 'chave', 'Chave', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for sequencia field
            //
            $column = new TextViewColumn('sequencia', 'sequencia', 'Sequencia', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for tipo_nf field
            //
            $column = new TextViewColumn('tipo_nf', 'tipo_nf', 'Tipo Nf', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for dt_inclusao field
            //
            $column = new DateTimeViewColumn('dt_inclusao', 'dt_inclusao', 'Dt Inclusao', $this->dataset);
            $column->SetOrderable(true);
            $column->SetDateTimeFormat('d.m.Y H:i:s');
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for dt_concluido field
            //
            $column = new DateTimeViewColumn('dt_concluido', 'dt_concluido', 'Dt Concluido', $this->dataset);
            $column->SetOrderable(true);
            $column->SetDateTimeFormat('d.m.Y H:i:s');
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for st_nota field
            //
            $column = new TextViewColumn('st_nota', 'st_nota', 'St Nota', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for tx_obs field
            //
            $column = new TextViewColumn('tx_obs', 'tx_obs', 'Tx Obs', $this->dataset);
            $column->SetOrderable(true);
            $column->SetMaxLength(75);
            $column->SetFullTextWindowHandlerName('Notas_CanceladasGrid_tx_obs_handler_view');
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for nm_arquivo_retorno field
            //
            $column = new TextViewColumn('nm_arquivo_retorno', 'nm_arquivo_retorno', 'Nm Arquivo Retorno', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for natureza_operacao field
            //
            $column = new TextViewColumn('natureza_operacao', 'natureza_operacao', 'Natureza Operacao', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for forma_pagamento field
            //
            $column = new TextViewColumn('forma_pagamento', 'forma_pagamento', 'Forma Pagamento', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for data_emissao field
            //
            $column = new DateTimeViewColumn('data_emissao', 'data_emissao', 'Data Emissao', $this->dataset);
            $column->SetOrderable(true);
            $column->SetDateTimeFormat('Y-m-d');
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for data_entrada_saida field
            //
            $column = new DateTimeViewColumn('data_entrada_saida', 'data_entrada_saida', 'Data Entrada Saida', $this->dataset);
            $column->SetOrderable(true);
            $column->SetDateTimeFormat('d.m.Y H:i:s');
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for tipo_documento field
            //
            $column = new TextViewColumn('tipo_documento', 'tipo_documento', 'Tipo Documento', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for local_destino field
            //
            $column = new TextViewColumn('local_destino', 'local_destino', 'Local Destino', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for finalidade_emissao field
            //
            $column = new TextViewColumn('finalidade_emissao', 'finalidade_emissao', 'Finalidade Emissao', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for consumidor_final field
            //
            $column = new TextViewColumn('consumidor_final', 'consumidor_final', 'Consumidor Final', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for presenca_comprador field
            //
            $column = new TextViewColumn('presenca_comprador', 'presenca_comprador', 'Presenca Comprador', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for colecao____________________notas_referenciadas field
            //
            $column = new TextViewColumn('colecao____________________notas_referenciadas', 'colecao____________________notas_referenciadas', 'Colecao                    Notas Referenciadas', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for colecao____________________pessoas_autorizadas field
            //
            $column = new TextViewColumn('colecao____________________pessoas_autorizadas', 'colecao____________________pessoas_autorizadas', 'Colecao                    Pessoas Autorizadas', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for cnpj_emitente field
            //
            $column = new TextViewColumn('cnpj_emitente', 'cnpj_emitente', 'Cnpj Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for nome_emitente field
            //
            $column = new TextViewColumn('nome_emitente', 'nome_emitente', 'Nome Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for nome_fantasia_emitente field
            //
            $column = new TextViewColumn('nome_fantasia_emitente', 'nome_fantasia_emitente', 'Nome Fantasia Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for logradouro_emitente field
            //
            $column = new TextViewColumn('logradouro_emitente', 'logradouro_emitente', 'Logradouro Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for numero_emitente field
            //
            $column = new TextViewColumn('numero_emitente', 'numero_emitente', 'Numero Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for complemento_emitente field
            //
            $column = new TextViewColumn('complemento_emitente', 'complemento_emitente', 'Complemento Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for bairro_emitente field
            //
            $column = new TextViewColumn('bairro_emitente', 'bairro_emitente', 'Bairro Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for prestador_codigo_municipio field
            //
            $column = new TextViewColumn('prestador_codigo_municipio', 'prestador_codigo_municipio', 'Prestador Codigo Municipio', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for municipio_emitente field
            //
            $column = new TextViewColumn('municipio_emitente', 'municipio_emitente', 'Municipio Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for uf_emitente field
            //
            $column = new TextViewColumn('uf_emitente', 'uf_emitente', 'Uf Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for cep_emitente field
            //
            $column = new TextViewColumn('cep_emitente', 'cep_emitente', 'Cep Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for telefone_emitente field
            //
            $column = new TextViewColumn('telefone_emitente', 'telefone_emitente', 'Telefone Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for inscricao_estadual_emitenete field
            //
            $column = new TextViewColumn('inscricao_estadual_emitenete', 'inscricao_estadual_emitenete', 'Inscricao Estadual Emitenete', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for inscricao_estadual_st_emitente field
            //
            $column = new TextViewColumn('inscricao_estadual_st_emitente', 'inscricao_estadual_st_emitente', 'Inscricao Estadual St Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for inscricao_municipal_emitente field
            //
            $column = new TextViewColumn('inscricao_municipal_emitente', 'inscricao_municipal_emitente', 'Inscricao Municipal Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for cnae_emitente field
            //
            $column = new TextViewColumn('cnae_emitente', 'cnae_emitente', 'Cnae Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for regime_tributario_emitente field
            //
            $column = new TextViewColumn('regime_tributario_emitente', 'regime_tributario_emitente', 'Regime Tributario Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for cnpj_destinatario field
            //
            $column = new TextViewColumn('cnpj_destinatario', 'cnpj_destinatario', 'Cnpj Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for cpf_destinatario field
            //
            $column = new TextViewColumn('cpf_destinatario', 'cpf_destinatario', 'Cpf Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for id_estrangeiro_destinatario field
            //
            $column = new TextViewColumn('id_estrangeiro_destinatario', 'id_estrangeiro_destinatario', 'Id Estrangeiro Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for nome_destinatario field
            //
            $column = new TextViewColumn('nome_destinatario', 'nome_destinatario', 'Nome Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for logradoura_destinatario field
            //
            $column = new TextViewColumn('logradoura_destinatario', 'logradoura_destinatario', 'Logradoura Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for numero_destinatario field
            //
            $column = new TextViewColumn('numero_destinatario', 'numero_destinatario', 'Numero Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for complemento_destinatario field
            //
            $column = new TextViewColumn('complemento_destinatario', 'complemento_destinatario', 'Complemento Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for bairro_destinatario field
            //
            $column = new TextViewColumn('bairro_destinatario', 'bairro_destinatario', 'Bairro Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for codigo_municipio_destinatario field
            //
            $column = new TextViewColumn('codigo_municipio_destinatario', 'codigo_municipio_destinatario', 'Codigo Municipio Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for municipio_destinatario field
            //
            $column = new TextViewColumn('municipio_destinatario', 'municipio_destinatario', 'Municipio Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for uf_destinatario field
            //
            $column = new TextViewColumn('uf_destinatario', 'uf_destinatario', 'Uf Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for cep_destinatario field
            //
            $column = new TextViewColumn('cep_destinatario', 'cep_destinatario', 'Cep Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for pais_destinatario field
            //
            $column = new TextViewColumn('pais_destinatario', 'pais_destinatario', 'Pais Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for telefone_destinatario field
            //
            $column = new TextViewColumn('telefone_destinatario', 'telefone_destinatario', 'Telefone Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for indicador_inscricao_estadual_destinatario field
            //
            $column = new TextViewColumn('indicador_inscricao_estadual_destinatario', 'indicador_inscricao_estadual_destinatario', 'Indicador Inscricao Estadual Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for inscricao_estadual_destinatario field
            //
            $column = new TextViewColumn('inscricao_estadual_destinatario', 'inscricao_estadual_destinatario', 'Inscricao Estadual Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for inscricao_suframa_destinatario field
            //
            $column = new TextViewColumn('inscricao_suframa_destinatario', 'inscricao_suframa_destinatario', 'Inscricao Suframa Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for email_destinatario field
            //
            $column = new TextViewColumn('email_destinatario', 'email_destinatario', 'Email Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for inscricao_municipal_destinatario field
            //
            $column = new TextViewColumn('inscricao_municipal_destinatario', 'inscricao_municipal_destinatario', 'Inscricao Municipal Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for cnpj_retirada field
            //
            $column = new TextViewColumn('cnpj_retirada', 'cnpj_retirada', 'Cnpj Retirada', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for cpf_retirada field
            //
            $column = new TextViewColumn('cpf_retirada', 'cpf_retirada', 'Cpf Retirada', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for logradoura_retirada field
            //
            $column = new TextViewColumn('logradoura_retirada', 'logradoura_retirada', 'Logradoura Retirada', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for numero_retirada field
            //
            $column = new TextViewColumn('numero_retirada', 'numero_retirada', 'Numero Retirada', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for complemento_retirada field
            //
            $column = new TextViewColumn('complemento_retirada', 'complemento_retirada', 'Complemento Retirada', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for bairro_retirada field
            //
            $column = new TextViewColumn('bairro_retirada', 'bairro_retirada', 'Bairro Retirada', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for codigo_municipio_retirada field
            //
            $column = new TextViewColumn('codigo_municipio_retirada', 'codigo_municipio_retirada', 'Codigo Municipio Retirada', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for municipio_retirada field
            //
            $column = new TextViewColumn('municipio_retirada', 'municipio_retirada', 'Municipio Retirada', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for uf_retirada field
            //
            $column = new TextViewColumn('uf_retirada', 'uf_retirada', 'Uf Retirada', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for cnpj_entrega field
            //
            $column = new TextViewColumn('cnpj_entrega', 'cnpj_entrega', 'Cnpj Entrega', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for cpf_entrega field
            //
            $column = new TextViewColumn('cpf_entrega', 'cpf_entrega', 'Cpf Entrega', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for logradouro_entrega field
            //
            $column = new TextViewColumn('logradouro_entrega', 'logradouro_entrega', 'Logradouro Entrega', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for numero_entrega field
            //
            $column = new TextViewColumn('numero_entrega', 'numero_entrega', 'Numero Entrega', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for complemento_entrega field
            //
            $column = new TextViewColumn('complemento_entrega', 'complemento_entrega', 'Complemento Entrega', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for bairro_entrega field
            //
            $column = new TextViewColumn('bairro_entrega', 'bairro_entrega', 'Bairro Entrega', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for codigo_municipio_entrega field
            //
            $column = new TextViewColumn('codigo_municipio_entrega', 'codigo_municipio_entrega', 'Codigo Municipio Entrega', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for municipio_entrega field
            //
            $column = new TextViewColumn('municipio_entrega', 'municipio_entrega', 'Municipio Entrega', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for uf_entrega field
            //
            $column = new TextViewColumn('uf_entrega', 'uf_entrega', 'Uf Entrega', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for colecao____________________itens field
            //
            $column = new TextViewColumn('colecao____________________itens', 'colecao____________________itens', 'Colecao                    Itens', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for icms_base_calculo field
            //
            $column = new TextViewColumn('icms_base_calculo', 'icms_base_calculo', 'Icms Base Calculo', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for icms_valor_total field
            //
            $column = new TextViewColumn('icms_valor_total', 'icms_valor_total', 'Icms Valor Total', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for icms_valor_total_desonerado field
            //
            $column = new TextViewColumn('icms_valor_total_desonerado', 'icms_valor_total_desonerado', 'Icms Valor Total Desonerado', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for icms_base_calculo_st field
            //
            $column = new TextViewColumn('icms_base_calculo_st', 'icms_base_calculo_st', 'Icms Base Calculo St', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for icms_valor_total_st field
            //
            $column = new TextViewColumn('icms_valor_total_st', 'icms_valor_total_st', 'Icms Valor Total St', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for valor_produtos field
            //
            $column = new TextViewColumn('valor_produtos', 'valor_produtos', 'Valor Produtos', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for valor_frete field
            //
            $column = new TextViewColumn('valor_frete', 'valor_frete', 'Valor Frete', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for valor_seguro field
            //
            $column = new TextViewColumn('valor_seguro', 'valor_seguro', 'Valor Seguro', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for valor_desconto field
            //
            $column = new TextViewColumn('valor_desconto', 'valor_desconto', 'Valor Desconto', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for valor_total_ii field
            //
            $column = new TextViewColumn('valor_total_ii', 'valor_total_ii', 'Valor Total Ii', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for valor_ipi field
            //
            $column = new TextViewColumn('valor_ipi', 'valor_ipi', 'Valor Ipi', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for valor_pis field
            //
            $column = new TextViewColumn('valor_pis', 'valor_pis', 'Valor Pis', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for valor_cofins field
            //
            $column = new TextViewColumn('valor_cofins', 'valor_cofins', 'Valor Cofins', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for valor_outras_despesas field
            //
            $column = new TextViewColumn('valor_outras_despesas', 'valor_outras_despesas', 'Valor Outras Despesas', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for valor_total field
            //
            $column = new TextViewColumn('valor_total', 'valor_total', 'Valor Total', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for valor_total_servicos field
            //
            $column = new TextViewColumn('valor_total_servicos', 'valor_total_servicos', 'Valor Total Servicos', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for base_issqn field
            //
            $column = new TextViewColumn('base_issqn', 'base_issqn', 'Base Issqn', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for valor_pis_servico field
            //
            $column = new TextViewColumn('valor_pis_servico', 'valor_pis_servico', 'Valor Pis Servico', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for data_prestacao_servico field
            //
            $column = new TextViewColumn('data_prestacao_servico', 'data_prestacao_servico', 'Data Prestacao Servico', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for valor_total_deducao_base_calculo field
            //
            $column = new TextViewColumn('valor_total_deducao_base_calculo', 'valor_total_deducao_base_calculo', 'Valor Total Deducao Base Calculo', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for valor_total_outras_retencoes field
            //
            $column = new TextViewColumn('valor_total_outras_retencoes', 'valor_total_outras_retencoes', 'Valor Total Outras Retencoes', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for valor_total_desconto_incondicionado field
            //
            $column = new TextViewColumn('valor_total_desconto_incondicionado', 'valor_total_desconto_incondicionado', 'Valor Total Desconto Incondicionado', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for valor_total_valor_condicionado field
            //
            $column = new TextViewColumn('valor_total_valor_condicionado', 'valor_total_valor_condicionado', 'Valor Total Valor Condicionado', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for valor_total_retencao_iss field
            //
            $column = new TextViewColumn('valor_total_retencao_iss', 'valor_total_retencao_iss', 'Valor Total Retencao Iss', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for codigo_regime_especial_tributacao field
            //
            $column = new TextViewColumn('codigo_regime_especial_tributacao', 'codigo_regime_especial_tributacao', 'Codigo Regime Especial Tributacao', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for valor_retido_pis field
            //
            $column = new TextViewColumn('valor_retido_pis', 'valor_retido_pis', 'Valor Retido Pis', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for valor_retido_cofins field
            //
            $column = new TextViewColumn('valor_retido_cofins', 'valor_retido_cofins', 'Valor Retido Cofins', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for valor_retido_csll field
            //
            $column = new TextViewColumn('valor_retido_csll', 'valor_retido_csll', 'Valor Retido Csll', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for base_calculo_irrf field
            //
            $column = new TextViewColumn('base_calculo_irrf', 'base_calculo_irrf', 'Base Calculo Irrf', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for valor_retido_irrf field
            //
            $column = new TextViewColumn('valor_retido_irrf', 'valor_retido_irrf', 'Valor Retido Irrf', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for prev_social_base_calculo field
            //
            $column = new TextViewColumn('prev_social_base_calculo', 'prev_social_base_calculo', 'Prev Social Base Calculo', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for prev_social_valor_retido field
            //
            $column = new TextViewColumn('prev_social_valor_retido', 'prev_social_valor_retido', 'Prev Social Valor Retido', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for modalidade_frete field
            //
            $column = new TextViewColumn('modalidade_frete', 'modalidade_frete', 'Modalidade Frete', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for cnpj_transportador field
            //
            $column = new TextViewColumn('cnpj_transportador', 'cnpj_transportador', 'Cnpj Transportador', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for cpf_transportador field
            //
            $column = new TextViewColumn('cpf_transportador', 'cpf_transportador', 'Cpf Transportador', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for nome_transportador field
            //
            $column = new TextViewColumn('nome_transportador', 'nome_transportador', 'Nome Transportador', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for inscricao_estadual_transportador field
            //
            $column = new TextViewColumn('inscricao_estadual_transportador', 'inscricao_estadual_transportador', 'Inscricao Estadual Transportador', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for endereco_transportador field
            //
            $column = new TextViewColumn('endereco_transportador', 'endereco_transportador', 'Endereco Transportador', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for municipio_transportador field
            //
            $column = new TextViewColumn('municipio_transportador', 'municipio_transportador', 'Municipio Transportador', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for uf_transportador field
            //
            $column = new TextViewColumn('uf_transportador', 'uf_transportador', 'Uf Transportador', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for transporte_icms_servico field
            //
            $column = new TextViewColumn('transporte_icms_servico', 'transporte_icms_servico', 'Transporte Icms Servico', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for transporte_icms_base_servico field
            //
            $column = new TextViewColumn('transporte_icms_base_servico', 'transporte_icms_base_servico', 'Transporte Icms Base Servico', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for transporte_icms_aliquota field
            //
            $column = new TextViewColumn('transporte_icms_aliquota', 'transporte_icms_aliquota', 'Transporte Icms Aliquota', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for transporte_icms_valor field
            //
            $column = new TextViewColumn('transporte_icms_valor', 'transporte_icms_valor', 'Transporte Icms Valor', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for transporte_icms_cfop field
            //
            $column = new TextViewColumn('transporte_icms_cfop', 'transporte_icms_cfop', 'Transporte Icms Cfop', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for transporte_icms_codigo_municipio field
            //
            $column = new TextViewColumn('transporte_icms_codigo_municipio', 'transporte_icms_codigo_municipio', 'Transporte Icms Codigo Municipio', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for veiculo_placa field
            //
            $column = new TextViewColumn('veiculo_placa', 'veiculo_placa', 'Veiculo Placa', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for veiculo_uf field
            //
            $column = new TextViewColumn('veiculo_uf', 'veiculo_uf', 'Veiculo Uf', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for veiculo_rntc field
            //
            $column = new TextViewColumn('veiculo_rntc', 'veiculo_rntc', 'Veiculo Rntc', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for veiculo_identificacao_vagao field
            //
            $column = new TextViewColumn('veiculo_identificacao_vagao', 'veiculo_identificacao_vagao', 'Veiculo Identificacao Vagao', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for veiculo_identificacao_balsa field
            //
            $column = new TextViewColumn('veiculo_identificacao_balsa', 'veiculo_identificacao_balsa', 'Veiculo Identificacao Balsa', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for colecao____________________volumes field
            //
            $column = new TextViewColumn('colecao____________________volumes', 'colecao____________________volumes', 'Colecao                    Volumes', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for numero_fatura field
            //
            $column = new TextViewColumn('numero_fatura', 'numero_fatura', 'Numero Fatura', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for valor_original_fatura field
            //
            $column = new TextViewColumn('valor_original_fatura', 'valor_original_fatura', 'Valor Original Fatura', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for valor_desconto_fatura field
            //
            $column = new TextViewColumn('valor_desconto_fatura', 'valor_desconto_fatura', 'Valor Desconto Fatura', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for valor_liquido_fatura field
            //
            $column = new TextViewColumn('valor_liquido_fatura', 'valor_liquido_fatura', 'Valor Liquido Fatura', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for colecao____________________duplicatas field
            //
            $column = new TextViewColumn('colecao____________________duplicatas', 'colecao____________________duplicatas', 'Colecao                    Duplicatas', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for informacoes_adicionais_contribuinte field
            //
            $column = new TextViewColumn('informacoes_adicionais_contribuinte', 'informacoes_adicionais_contribuinte', 'Informacoes Adicionais Contribuinte', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for uf_local_embarque field
            //
            $column = new TextViewColumn('uf_local_embarque', 'uf_local_embarque', 'Uf Local Embarque', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for local_embarque field
            //
            $column = new TextViewColumn('local_embarque', 'local_embarque', 'Local Embarque', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for local_despacho field
            //
            $column = new TextViewColumn('local_despacho', 'local_despacho', 'Local Despacho', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for colecao____________________formas_pagamento field
            //
            $column = new TextViewColumn('colecao____________________formas_pagamento', 'colecao____________________formas_pagamento', 'Colecao                    Formas Pagamento', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for operacao field
            //
            $column = new TextViewColumn('operacao', 'operacao', 'Operacao', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for tx_cancelamento field
            //
            $column = new TextViewColumn('tx_cancelamento', 'tx_cancelamento', 'Cancelamento', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
            
            //
            // View column for tx_correcao field
            //
            $column = new TextViewColumn('tx_correcao', 'tx_correcao', 'Tx Correcao', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddSingleRecordViewColumn($column);
        }
    
        protected function AddEditColumns(Grid $grid)
        {
            //
            // Edit column for id_notas field
            //
            $editor = new SpinEdit('id_notas_edit');
            $editColumn = new CustomEditColumn('Id Notas', 'id_notas', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for id_licencas field
            //
            $editor = new SpinEdit('id_licencas_edit');
            $editColumn = new CustomEditColumn('Id Licencas', 'id_licencas', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for chave field
            //
            $editor = new TextEdit('chave_edit');
            $editColumn = new CustomEditColumn('Chave', 'chave', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for sequencia field
            //
            $editor = new SpinEdit('sequencia_edit');
            $editColumn = new CustomEditColumn('Sequencia', 'sequencia', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for tipo_nf field
            //
            $editor = new TextEdit('tipo_nf_edit');
            $editColumn = new CustomEditColumn('Tipo Nf', 'tipo_nf', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for dt_inclusao field
            //
            $editor = new DateTimeEdit('dt_inclusao_edit', false, 'Y-m-d H:i:s');
            $editColumn = new CustomEditColumn('Dt Inclusao', 'dt_inclusao', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for dt_concluido field
            //
            $editor = new DateTimeEdit('dt_concluido_edit', false, 'Y-m-d H:i:s');
            $editColumn = new CustomEditColumn('Dt Concluido', 'dt_concluido', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for st_nota field
            //
            $editor = new TextEdit('st_nota_edit');
            $editColumn = new CustomEditColumn('St Nota', 'st_nota', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for tx_obs field
            //
            $editor = new TextAreaEdit('tx_obs_edit', 50, 8);
            $editColumn = new CustomEditColumn('Tx Obs', 'tx_obs', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for nm_arquivo_retorno field
            //
            $editor = new TextEdit('nm_arquivo_retorno_edit');
            $editColumn = new CustomEditColumn('Nm Arquivo Retorno', 'nm_arquivo_retorno', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for natureza_operacao field
            //
            $editor = new TextEdit('natureza_operacao_edit');
            $editColumn = new CustomEditColumn('Natureza Operacao', 'natureza_operacao', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for forma_pagamento field
            //
            $editor = new TextEdit('forma_pagamento_edit');
            $editColumn = new CustomEditColumn('Forma Pagamento', 'forma_pagamento', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for data_emissao field
            //
            $editor = new DateTimeEdit('data_emissao_edit', false, 'Y-m-d H:i:s');
            $editColumn = new CustomEditColumn('Data Emissao', 'data_emissao', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for data_entrada_saida field
            //
            $editor = new DateTimeEdit('data_entrada_saida_edit', false, 'Y-m-d H:i:s');
            $editColumn = new CustomEditColumn('Data Entrada Saida', 'data_entrada_saida', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for tipo_documento field
            //
            $editor = new TextEdit('tipo_documento_edit');
            $editColumn = new CustomEditColumn('Tipo Documento', 'tipo_documento', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for local_destino field
            //
            $editor = new TextEdit('local_destino_edit');
            $editColumn = new CustomEditColumn('Local Destino', 'local_destino', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for finalidade_emissao field
            //
            $editor = new TextEdit('finalidade_emissao_edit');
            $editColumn = new CustomEditColumn('Finalidade Emissao', 'finalidade_emissao', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for consumidor_final field
            //
            $editor = new TextEdit('consumidor_final_edit');
            $editColumn = new CustomEditColumn('Consumidor Final', 'consumidor_final', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for presenca_comprador field
            //
            $editor = new TextEdit('presenca_comprador_edit');
            $editColumn = new CustomEditColumn('Presenca Comprador', 'presenca_comprador', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for colecao____________________notas_referenciadas field
            //
            $editor = new TextEdit('colecao____________________notas_referenciadas_edit');
            $editColumn = new CustomEditColumn('Colecao                    Notas Referenciadas', 'colecao____________________notas_referenciadas', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for colecao____________________pessoas_autorizadas field
            //
            $editor = new TextEdit('colecao____________________pessoas_autorizadas_edit');
            $editColumn = new CustomEditColumn('Colecao                    Pessoas Autorizadas', 'colecao____________________pessoas_autorizadas', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for cnpj_emitente field
            //
            $editor = new TextEdit('cnpj_emitente_edit');
            $editColumn = new CustomEditColumn('Cnpj Emitente', 'cnpj_emitente', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for nome_emitente field
            //
            $editor = new TextEdit('nome_emitente_edit');
            $editColumn = new CustomEditColumn('Nome Emitente', 'nome_emitente', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for nome_fantasia_emitente field
            //
            $editor = new TextEdit('nome_fantasia_emitente_edit');
            $editColumn = new CustomEditColumn('Nome Fantasia Emitente', 'nome_fantasia_emitente', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for logradouro_emitente field
            //
            $editor = new TextEdit('logradouro_emitente_edit');
            $editColumn = new CustomEditColumn('Logradouro Emitente', 'logradouro_emitente', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for numero_emitente field
            //
            $editor = new TextEdit('numero_emitente_edit');
            $editColumn = new CustomEditColumn('Numero Emitente', 'numero_emitente', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for complemento_emitente field
            //
            $editor = new TextEdit('complemento_emitente_edit');
            $editColumn = new CustomEditColumn('Complemento Emitente', 'complemento_emitente', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for bairro_emitente field
            //
            $editor = new TextEdit('bairro_emitente_edit');
            $editColumn = new CustomEditColumn('Bairro Emitente', 'bairro_emitente', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for prestador_codigo_municipio field
            //
            $editor = new TextEdit('prestador_codigo_municipio_edit');
            $editColumn = new CustomEditColumn('Prestador Codigo Municipio', 'prestador_codigo_municipio', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for municipio_emitente field
            //
            $editor = new TextEdit('municipio_emitente_edit');
            $editColumn = new CustomEditColumn('Municipio Emitente', 'municipio_emitente', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for uf_emitente field
            //
            $editor = new TextEdit('uf_emitente_edit');
            $editColumn = new CustomEditColumn('Uf Emitente', 'uf_emitente', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for cep_emitente field
            //
            $editor = new TextEdit('cep_emitente_edit');
            $editColumn = new CustomEditColumn('Cep Emitente', 'cep_emitente', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for telefone_emitente field
            //
            $editor = new TextEdit('telefone_emitente_edit');
            $editColumn = new CustomEditColumn('Telefone Emitente', 'telefone_emitente', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for inscricao_estadual_emitenete field
            //
            $editor = new TextEdit('inscricao_estadual_emitenete_edit');
            $editColumn = new CustomEditColumn('Inscricao Estadual Emitenete', 'inscricao_estadual_emitenete', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for inscricao_estadual_st_emitente field
            //
            $editor = new TextEdit('inscricao_estadual_st_emitente_edit');
            $editColumn = new CustomEditColumn('Inscricao Estadual St Emitente', 'inscricao_estadual_st_emitente', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for inscricao_municipal_emitente field
            //
            $editor = new TextEdit('inscricao_municipal_emitente_edit');
            $editColumn = new CustomEditColumn('Inscricao Municipal Emitente', 'inscricao_municipal_emitente', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for cnae_emitente field
            //
            $editor = new TextEdit('cnae_emitente_edit');
            $editColumn = new CustomEditColumn('Cnae Emitente', 'cnae_emitente', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for regime_tributario_emitente field
            //
            $editor = new TextEdit('regime_tributario_emitente_edit');
            $editColumn = new CustomEditColumn('Regime Tributario Emitente', 'regime_tributario_emitente', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for cnpj_destinatario field
            //
            $editor = new TextEdit('cnpj_destinatario_edit');
            $editColumn = new CustomEditColumn('Cnpj Destinatario', 'cnpj_destinatario', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for cpf_destinatario field
            //
            $editor = new TextEdit('cpf_destinatario_edit');
            $editColumn = new CustomEditColumn('Cpf Destinatario', 'cpf_destinatario', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for id_estrangeiro_destinatario field
            //
            $editor = new TextEdit('id_estrangeiro_destinatario_edit');
            $editColumn = new CustomEditColumn('Id Estrangeiro Destinatario', 'id_estrangeiro_destinatario', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for nome_destinatario field
            //
            $editor = new TextEdit('nome_destinatario_edit');
            $editColumn = new CustomEditColumn('Nome Destinatario', 'nome_destinatario', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for logradoura_destinatario field
            //
            $editor = new TextEdit('logradoura_destinatario_edit');
            $editColumn = new CustomEditColumn('Logradoura Destinatario', 'logradoura_destinatario', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for numero_destinatario field
            //
            $editor = new TextEdit('numero_destinatario_edit');
            $editColumn = new CustomEditColumn('Numero Destinatario', 'numero_destinatario', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for complemento_destinatario field
            //
            $editor = new TextEdit('complemento_destinatario_edit');
            $editColumn = new CustomEditColumn('Complemento Destinatario', 'complemento_destinatario', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for bairro_destinatario field
            //
            $editor = new TextEdit('bairro_destinatario_edit');
            $editColumn = new CustomEditColumn('Bairro Destinatario', 'bairro_destinatario', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for codigo_municipio_destinatario field
            //
            $editor = new TextEdit('codigo_municipio_destinatario_edit');
            $editColumn = new CustomEditColumn('Codigo Municipio Destinatario', 'codigo_municipio_destinatario', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for municipio_destinatario field
            //
            $editor = new TextEdit('municipio_destinatario_edit');
            $editColumn = new CustomEditColumn('Municipio Destinatario', 'municipio_destinatario', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for uf_destinatario field
            //
            $editor = new TextEdit('uf_destinatario_edit');
            $editColumn = new CustomEditColumn('Uf Destinatario', 'uf_destinatario', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for cep_destinatario field
            //
            $editor = new TextEdit('cep_destinatario_edit');
            $editColumn = new CustomEditColumn('Cep Destinatario', 'cep_destinatario', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for pais_destinatario field
            //
            $editor = new TextEdit('pais_destinatario_edit');
            $editColumn = new CustomEditColumn('Pais Destinatario', 'pais_destinatario', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for telefone_destinatario field
            //
            $editor = new TextEdit('telefone_destinatario_edit');
            $editColumn = new CustomEditColumn('Telefone Destinatario', 'telefone_destinatario', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for indicador_inscricao_estadual_destinatario field
            //
            $editor = new TextEdit('indicador_inscricao_estadual_destinatario_edit');
            $editColumn = new CustomEditColumn('Indicador Inscricao Estadual Destinatario', 'indicador_inscricao_estadual_destinatario', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for inscricao_estadual_destinatario field
            //
            $editor = new TextEdit('inscricao_estadual_destinatario_edit');
            $editColumn = new CustomEditColumn('Inscricao Estadual Destinatario', 'inscricao_estadual_destinatario', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for inscricao_suframa_destinatario field
            //
            $editor = new TextEdit('inscricao_suframa_destinatario_edit');
            $editColumn = new CustomEditColumn('Inscricao Suframa Destinatario', 'inscricao_suframa_destinatario', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for email_destinatario field
            //
            $editor = new TextEdit('email_destinatario_edit');
            $editColumn = new CustomEditColumn('Email Destinatario', 'email_destinatario', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for inscricao_municipal_destinatario field
            //
            $editor = new TextEdit('inscricao_municipal_destinatario_edit');
            $editColumn = new CustomEditColumn('Inscricao Municipal Destinatario', 'inscricao_municipal_destinatario', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for cnpj_retirada field
            //
            $editor = new TextEdit('cnpj_retirada_edit');
            $editColumn = new CustomEditColumn('Cnpj Retirada', 'cnpj_retirada', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for cpf_retirada field
            //
            $editor = new TextEdit('cpf_retirada_edit');
            $editColumn = new CustomEditColumn('Cpf Retirada', 'cpf_retirada', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for logradoura_retirada field
            //
            $editor = new TextEdit('logradoura_retirada_edit');
            $editColumn = new CustomEditColumn('Logradoura Retirada', 'logradoura_retirada', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for numero_retirada field
            //
            $editor = new TextEdit('numero_retirada_edit');
            $editColumn = new CustomEditColumn('Numero Retirada', 'numero_retirada', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for complemento_retirada field
            //
            $editor = new TextEdit('complemento_retirada_edit');
            $editColumn = new CustomEditColumn('Complemento Retirada', 'complemento_retirada', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for bairro_retirada field
            //
            $editor = new TextEdit('bairro_retirada_edit');
            $editColumn = new CustomEditColumn('Bairro Retirada', 'bairro_retirada', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for codigo_municipio_retirada field
            //
            $editor = new TextEdit('codigo_municipio_retirada_edit');
            $editColumn = new CustomEditColumn('Codigo Municipio Retirada', 'codigo_municipio_retirada', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for municipio_retirada field
            //
            $editor = new TextEdit('municipio_retirada_edit');
            $editColumn = new CustomEditColumn('Municipio Retirada', 'municipio_retirada', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for uf_retirada field
            //
            $editor = new TextEdit('uf_retirada_edit');
            $editColumn = new CustomEditColumn('Uf Retirada', 'uf_retirada', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for cnpj_entrega field
            //
            $editor = new TextEdit('cnpj_entrega_edit');
            $editColumn = new CustomEditColumn('Cnpj Entrega', 'cnpj_entrega', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for cpf_entrega field
            //
            $editor = new TextEdit('cpf_entrega_edit');
            $editColumn = new CustomEditColumn('Cpf Entrega', 'cpf_entrega', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for logradouro_entrega field
            //
            $editor = new TextEdit('logradouro_entrega_edit');
            $editColumn = new CustomEditColumn('Logradouro Entrega', 'logradouro_entrega', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for numero_entrega field
            //
            $editor = new TextEdit('numero_entrega_edit');
            $editColumn = new CustomEditColumn('Numero Entrega', 'numero_entrega', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for complemento_entrega field
            //
            $editor = new TextEdit('complemento_entrega_edit');
            $editColumn = new CustomEditColumn('Complemento Entrega', 'complemento_entrega', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for bairro_entrega field
            //
            $editor = new TextEdit('bairro_entrega_edit');
            $editColumn = new CustomEditColumn('Bairro Entrega', 'bairro_entrega', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for codigo_municipio_entrega field
            //
            $editor = new TextEdit('codigo_municipio_entrega_edit');
            $editColumn = new CustomEditColumn('Codigo Municipio Entrega', 'codigo_municipio_entrega', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for municipio_entrega field
            //
            $editor = new TextEdit('municipio_entrega_edit');
            $editColumn = new CustomEditColumn('Municipio Entrega', 'municipio_entrega', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for uf_entrega field
            //
            $editor = new TextEdit('uf_entrega_edit');
            $editColumn = new CustomEditColumn('Uf Entrega', 'uf_entrega', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for colecao____________________itens field
            //
            $editor = new TextEdit('colecao____________________itens_edit');
            $editColumn = new CustomEditColumn('Colecao                    Itens', 'colecao____________________itens', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for icms_base_calculo field
            //
            $editor = new TextEdit('icms_base_calculo_edit');
            $editColumn = new CustomEditColumn('Icms Base Calculo', 'icms_base_calculo', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for icms_valor_total field
            //
            $editor = new TextEdit('icms_valor_total_edit');
            $editColumn = new CustomEditColumn('Icms Valor Total', 'icms_valor_total', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for icms_valor_total_desonerado field
            //
            $editor = new TextEdit('icms_valor_total_desonerado_edit');
            $editColumn = new CustomEditColumn('Icms Valor Total Desonerado', 'icms_valor_total_desonerado', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for icms_base_calculo_st field
            //
            $editor = new TextEdit('icms_base_calculo_st_edit');
            $editColumn = new CustomEditColumn('Icms Base Calculo St', 'icms_base_calculo_st', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for icms_valor_total_st field
            //
            $editor = new TextEdit('icms_valor_total_st_edit');
            $editColumn = new CustomEditColumn('Icms Valor Total St', 'icms_valor_total_st', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for valor_produtos field
            //
            $editor = new TextEdit('valor_produtos_edit');
            $editColumn = new CustomEditColumn('Valor Produtos', 'valor_produtos', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for valor_frete field
            //
            $editor = new TextEdit('valor_frete_edit');
            $editColumn = new CustomEditColumn('Valor Frete', 'valor_frete', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for valor_seguro field
            //
            $editor = new TextEdit('valor_seguro_edit');
            $editColumn = new CustomEditColumn('Valor Seguro', 'valor_seguro', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for valor_desconto field
            //
            $editor = new TextEdit('valor_desconto_edit');
            $editColumn = new CustomEditColumn('Valor Desconto', 'valor_desconto', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for valor_total_ii field
            //
            $editor = new TextEdit('valor_total_ii_edit');
            $editColumn = new CustomEditColumn('Valor Total Ii', 'valor_total_ii', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for valor_ipi field
            //
            $editor = new TextEdit('valor_ipi_edit');
            $editColumn = new CustomEditColumn('Valor Ipi', 'valor_ipi', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for valor_pis field
            //
            $editor = new TextEdit('valor_pis_edit');
            $editColumn = new CustomEditColumn('Valor Pis', 'valor_pis', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for valor_cofins field
            //
            $editor = new TextEdit('valor_cofins_edit');
            $editColumn = new CustomEditColumn('Valor Cofins', 'valor_cofins', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for valor_outras_despesas field
            //
            $editor = new TextEdit('valor_outras_despesas_edit');
            $editColumn = new CustomEditColumn('Valor Outras Despesas', 'valor_outras_despesas', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for valor_total field
            //
            $editor = new TextEdit('valor_total_edit');
            $editColumn = new CustomEditColumn('Valor Total', 'valor_total', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for valor_total_servicos field
            //
            $editor = new TextEdit('valor_total_servicos_edit');
            $editColumn = new CustomEditColumn('Valor Total Servicos', 'valor_total_servicos', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for base_issqn field
            //
            $editor = new TextEdit('base_issqn_edit');
            $editColumn = new CustomEditColumn('Base Issqn', 'base_issqn', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for valor_pis_servico field
            //
            $editor = new TextEdit('valor_pis_servico_edit');
            $editColumn = new CustomEditColumn('Valor Pis Servico', 'valor_pis_servico', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for data_prestacao_servico field
            //
            $editor = new TextEdit('data_prestacao_servico_edit');
            $editColumn = new CustomEditColumn('Data Prestacao Servico', 'data_prestacao_servico', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for valor_total_deducao_base_calculo field
            //
            $editor = new TextEdit('valor_total_deducao_base_calculo_edit');
            $editColumn = new CustomEditColumn('Valor Total Deducao Base Calculo', 'valor_total_deducao_base_calculo', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for valor_total_outras_retencoes field
            //
            $editor = new TextEdit('valor_total_outras_retencoes_edit');
            $editColumn = new CustomEditColumn('Valor Total Outras Retencoes', 'valor_total_outras_retencoes', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for valor_total_desconto_incondicionado field
            //
            $editor = new TextEdit('valor_total_desconto_incondicionado_edit');
            $editColumn = new CustomEditColumn('Valor Total Desconto Incondicionado', 'valor_total_desconto_incondicionado', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for valor_total_valor_condicionado field
            //
            $editor = new TextEdit('valor_total_valor_condicionado_edit');
            $editColumn = new CustomEditColumn('Valor Total Valor Condicionado', 'valor_total_valor_condicionado', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for valor_total_retencao_iss field
            //
            $editor = new TextEdit('valor_total_retencao_iss_edit');
            $editColumn = new CustomEditColumn('Valor Total Retencao Iss', 'valor_total_retencao_iss', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for codigo_regime_especial_tributacao field
            //
            $editor = new TextEdit('codigo_regime_especial_tributacao_edit');
            $editColumn = new CustomEditColumn('Codigo Regime Especial Tributacao', 'codigo_regime_especial_tributacao', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for valor_retido_pis field
            //
            $editor = new TextEdit('valor_retido_pis_edit');
            $editColumn = new CustomEditColumn('Valor Retido Pis', 'valor_retido_pis', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for valor_retido_cofins field
            //
            $editor = new TextEdit('valor_retido_cofins_edit');
            $editColumn = new CustomEditColumn('Valor Retido Cofins', 'valor_retido_cofins', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for valor_retido_csll field
            //
            $editor = new TextEdit('valor_retido_csll_edit');
            $editColumn = new CustomEditColumn('Valor Retido Csll', 'valor_retido_csll', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for base_calculo_irrf field
            //
            $editor = new TextEdit('base_calculo_irrf_edit');
            $editColumn = new CustomEditColumn('Base Calculo Irrf', 'base_calculo_irrf', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for valor_retido_irrf field
            //
            $editor = new TextEdit('valor_retido_irrf_edit');
            $editColumn = new CustomEditColumn('Valor Retido Irrf', 'valor_retido_irrf', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for prev_social_base_calculo field
            //
            $editor = new TextEdit('prev_social_base_calculo_edit');
            $editColumn = new CustomEditColumn('Prev Social Base Calculo', 'prev_social_base_calculo', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for prev_social_valor_retido field
            //
            $editor = new TextEdit('prev_social_valor_retido_edit');
            $editColumn = new CustomEditColumn('Prev Social Valor Retido', 'prev_social_valor_retido', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for modalidade_frete field
            //
            $editor = new TextEdit('modalidade_frete_edit');
            $editColumn = new CustomEditColumn('Modalidade Frete', 'modalidade_frete', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for cnpj_transportador field
            //
            $editor = new TextEdit('cnpj_transportador_edit');
            $editColumn = new CustomEditColumn('Cnpj Transportador', 'cnpj_transportador', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for cpf_transportador field
            //
            $editor = new TextEdit('cpf_transportador_edit');
            $editColumn = new CustomEditColumn('Cpf Transportador', 'cpf_transportador', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for nome_transportador field
            //
            $editor = new TextEdit('nome_transportador_edit');
            $editColumn = new CustomEditColumn('Nome Transportador', 'nome_transportador', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for inscricao_estadual_transportador field
            //
            $editor = new TextEdit('inscricao_estadual_transportador_edit');
            $editColumn = new CustomEditColumn('Inscricao Estadual Transportador', 'inscricao_estadual_transportador', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for endereco_transportador field
            //
            $editor = new TextEdit('endereco_transportador_edit');
            $editColumn = new CustomEditColumn('Endereco Transportador', 'endereco_transportador', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for municipio_transportador field
            //
            $editor = new TextEdit('municipio_transportador_edit');
            $editColumn = new CustomEditColumn('Municipio Transportador', 'municipio_transportador', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for uf_transportador field
            //
            $editor = new TextEdit('uf_transportador_edit');
            $editColumn = new CustomEditColumn('Uf Transportador', 'uf_transportador', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for transporte_icms_servico field
            //
            $editor = new TextEdit('transporte_icms_servico_edit');
            $editColumn = new CustomEditColumn('Transporte Icms Servico', 'transporte_icms_servico', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for transporte_icms_base_servico field
            //
            $editor = new TextEdit('transporte_icms_base_servico_edit');
            $editColumn = new CustomEditColumn('Transporte Icms Base Servico', 'transporte_icms_base_servico', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for transporte_icms_aliquota field
            //
            $editor = new TextEdit('transporte_icms_aliquota_edit');
            $editColumn = new CustomEditColumn('Transporte Icms Aliquota', 'transporte_icms_aliquota', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for transporte_icms_valor field
            //
            $editor = new TextEdit('transporte_icms_valor_edit');
            $editColumn = new CustomEditColumn('Transporte Icms Valor', 'transporte_icms_valor', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for transporte_icms_cfop field
            //
            $editor = new TextEdit('transporte_icms_cfop_edit');
            $editColumn = new CustomEditColumn('Transporte Icms Cfop', 'transporte_icms_cfop', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for transporte_icms_codigo_municipio field
            //
            $editor = new TextEdit('transporte_icms_codigo_municipio_edit');
            $editColumn = new CustomEditColumn('Transporte Icms Codigo Municipio', 'transporte_icms_codigo_municipio', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for veiculo_placa field
            //
            $editor = new TextEdit('veiculo_placa_edit');
            $editColumn = new CustomEditColumn('Veiculo Placa', 'veiculo_placa', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for veiculo_uf field
            //
            $editor = new TextEdit('veiculo_uf_edit');
            $editColumn = new CustomEditColumn('Veiculo Uf', 'veiculo_uf', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for veiculo_rntc field
            //
            $editor = new TextEdit('veiculo_rntc_edit');
            $editColumn = new CustomEditColumn('Veiculo Rntc', 'veiculo_rntc', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for veiculo_identificacao_vagao field
            //
            $editor = new TextEdit('veiculo_identificacao_vagao_edit');
            $editColumn = new CustomEditColumn('Veiculo Identificacao Vagao', 'veiculo_identificacao_vagao', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for veiculo_identificacao_balsa field
            //
            $editor = new TextEdit('veiculo_identificacao_balsa_edit');
            $editColumn = new CustomEditColumn('Veiculo Identificacao Balsa', 'veiculo_identificacao_balsa', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for colecao____________________volumes field
            //
            $editor = new TextEdit('colecao____________________volumes_edit');
            $editColumn = new CustomEditColumn('Colecao                    Volumes', 'colecao____________________volumes', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for numero_fatura field
            //
            $editor = new TextEdit('numero_fatura_edit');
            $editColumn = new CustomEditColumn('Numero Fatura', 'numero_fatura', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for valor_original_fatura field
            //
            $editor = new TextEdit('valor_original_fatura_edit');
            $editColumn = new CustomEditColumn('Valor Original Fatura', 'valor_original_fatura', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for valor_desconto_fatura field
            //
            $editor = new TextEdit('valor_desconto_fatura_edit');
            $editColumn = new CustomEditColumn('Valor Desconto Fatura', 'valor_desconto_fatura', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for valor_liquido_fatura field
            //
            $editor = new TextEdit('valor_liquido_fatura_edit');
            $editColumn = new CustomEditColumn('Valor Liquido Fatura', 'valor_liquido_fatura', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for colecao____________________duplicatas field
            //
            $editor = new TextEdit('colecao____________________duplicatas_edit');
            $editColumn = new CustomEditColumn('Colecao                    Duplicatas', 'colecao____________________duplicatas', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for informacoes_adicionais_contribuinte field
            //
            $editor = new TextEdit('informacoes_adicionais_contribuinte_edit');
            $editColumn = new CustomEditColumn('Informacoes Adicionais Contribuinte', 'informacoes_adicionais_contribuinte', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for uf_local_embarque field
            //
            $editor = new TextEdit('uf_local_embarque_edit');
            $editColumn = new CustomEditColumn('Uf Local Embarque', 'uf_local_embarque', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for local_embarque field
            //
            $editor = new TextEdit('local_embarque_edit');
            $editColumn = new CustomEditColumn('Local Embarque', 'local_embarque', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for local_despacho field
            //
            $editor = new TextEdit('local_despacho_edit');
            $editColumn = new CustomEditColumn('Local Despacho', 'local_despacho', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for colecao____________________formas_pagamento field
            //
            $editor = new TextEdit('colecao____________________formas_pagamento_edit');
            $editColumn = new CustomEditColumn('Colecao                    Formas Pagamento', 'colecao____________________formas_pagamento', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for operacao field
            //
            $editor = new TextEdit('operacao_edit');
            $editColumn = new CustomEditColumn('Operacao', 'operacao', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for tx_cancelamento field
            //
            $editor = new TextEdit('tx_cancelamento_edit');
            $editColumn = new CustomEditColumn('Cancelamento', 'tx_cancelamento', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
            
            //
            // Edit column for tx_correcao field
            //
            $editor = new TextEdit('tx_correcao_edit');
            $editColumn = new CustomEditColumn('Tx Correcao', 'tx_correcao', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddEditColumn($editColumn);
        }
    
        protected function AddMultiEditColumns(Grid $grid)
        {
            //
            // Edit column for id_licencas field
            //
            $editor = new SpinEdit('id_licencas_edit');
            $editColumn = new CustomEditColumn('Id Licencas', 'id_licencas', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for chave field
            //
            $editor = new TextEdit('chave_edit');
            $editColumn = new CustomEditColumn('Chave', 'chave', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for sequencia field
            //
            $editor = new SpinEdit('sequencia_edit');
            $editColumn = new CustomEditColumn('Sequencia', 'sequencia', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for tipo_nf field
            //
            $editor = new TextEdit('tipo_nf_edit');
            $editColumn = new CustomEditColumn('Tipo Nf', 'tipo_nf', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for dt_inclusao field
            //
            $editor = new DateTimeEdit('dt_inclusao_edit', false, 'Y-m-d H:i:s');
            $editColumn = new CustomEditColumn('Dt Inclusao', 'dt_inclusao', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for dt_concluido field
            //
            $editor = new DateTimeEdit('dt_concluido_edit', false, 'Y-m-d H:i:s');
            $editColumn = new CustomEditColumn('Dt Concluido', 'dt_concluido', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for st_nota field
            //
            $editor = new TextEdit('st_nota_edit');
            $editColumn = new CustomEditColumn('St Nota', 'st_nota', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for tx_obs field
            //
            $editor = new TextAreaEdit('tx_obs_edit', 50, 8);
            $editColumn = new CustomEditColumn('Tx Obs', 'tx_obs', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for nm_arquivo_retorno field
            //
            $editor = new TextEdit('nm_arquivo_retorno_edit');
            $editColumn = new CustomEditColumn('Nm Arquivo Retorno', 'nm_arquivo_retorno', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for natureza_operacao field
            //
            $editor = new TextEdit('natureza_operacao_edit');
            $editColumn = new CustomEditColumn('Natureza Operacao', 'natureza_operacao', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for forma_pagamento field
            //
            $editor = new TextEdit('forma_pagamento_edit');
            $editColumn = new CustomEditColumn('Forma Pagamento', 'forma_pagamento', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for data_emissao field
            //
            $editor = new DateTimeEdit('data_emissao_edit', false, 'Y-m-d H:i:s');
            $editColumn = new CustomEditColumn('Data Emissao', 'data_emissao', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for data_entrada_saida field
            //
            $editor = new DateTimeEdit('data_entrada_saida_edit', false, 'Y-m-d H:i:s');
            $editColumn = new CustomEditColumn('Data Entrada Saida', 'data_entrada_saida', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for tipo_documento field
            //
            $editor = new TextEdit('tipo_documento_edit');
            $editColumn = new CustomEditColumn('Tipo Documento', 'tipo_documento', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for local_destino field
            //
            $editor = new TextEdit('local_destino_edit');
            $editColumn = new CustomEditColumn('Local Destino', 'local_destino', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for finalidade_emissao field
            //
            $editor = new TextEdit('finalidade_emissao_edit');
            $editColumn = new CustomEditColumn('Finalidade Emissao', 'finalidade_emissao', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for consumidor_final field
            //
            $editor = new TextEdit('consumidor_final_edit');
            $editColumn = new CustomEditColumn('Consumidor Final', 'consumidor_final', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for presenca_comprador field
            //
            $editor = new TextEdit('presenca_comprador_edit');
            $editColumn = new CustomEditColumn('Presenca Comprador', 'presenca_comprador', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for colecao____________________notas_referenciadas field
            //
            $editor = new TextEdit('colecao____________________notas_referenciadas_edit');
            $editColumn = new CustomEditColumn('Colecao                    Notas Referenciadas', 'colecao____________________notas_referenciadas', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for colecao____________________pessoas_autorizadas field
            //
            $editor = new TextEdit('colecao____________________pessoas_autorizadas_edit');
            $editColumn = new CustomEditColumn('Colecao                    Pessoas Autorizadas', 'colecao____________________pessoas_autorizadas', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for cnpj_emitente field
            //
            $editor = new TextEdit('cnpj_emitente_edit');
            $editColumn = new CustomEditColumn('Cnpj Emitente', 'cnpj_emitente', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for nome_emitente field
            //
            $editor = new TextEdit('nome_emitente_edit');
            $editColumn = new CustomEditColumn('Nome Emitente', 'nome_emitente', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for nome_fantasia_emitente field
            //
            $editor = new TextEdit('nome_fantasia_emitente_edit');
            $editColumn = new CustomEditColumn('Nome Fantasia Emitente', 'nome_fantasia_emitente', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for logradouro_emitente field
            //
            $editor = new TextEdit('logradouro_emitente_edit');
            $editColumn = new CustomEditColumn('Logradouro Emitente', 'logradouro_emitente', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for numero_emitente field
            //
            $editor = new TextEdit('numero_emitente_edit');
            $editColumn = new CustomEditColumn('Numero Emitente', 'numero_emitente', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for complemento_emitente field
            //
            $editor = new TextEdit('complemento_emitente_edit');
            $editColumn = new CustomEditColumn('Complemento Emitente', 'complemento_emitente', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for bairro_emitente field
            //
            $editor = new TextEdit('bairro_emitente_edit');
            $editColumn = new CustomEditColumn('Bairro Emitente', 'bairro_emitente', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for prestador_codigo_municipio field
            //
            $editor = new TextEdit('prestador_codigo_municipio_edit');
            $editColumn = new CustomEditColumn('Prestador Codigo Municipio', 'prestador_codigo_municipio', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for municipio_emitente field
            //
            $editor = new TextEdit('municipio_emitente_edit');
            $editColumn = new CustomEditColumn('Municipio Emitente', 'municipio_emitente', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for uf_emitente field
            //
            $editor = new TextEdit('uf_emitente_edit');
            $editColumn = new CustomEditColumn('Uf Emitente', 'uf_emitente', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for cep_emitente field
            //
            $editor = new TextEdit('cep_emitente_edit');
            $editColumn = new CustomEditColumn('Cep Emitente', 'cep_emitente', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for telefone_emitente field
            //
            $editor = new TextEdit('telefone_emitente_edit');
            $editColumn = new CustomEditColumn('Telefone Emitente', 'telefone_emitente', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for inscricao_estadual_emitenete field
            //
            $editor = new TextEdit('inscricao_estadual_emitenete_edit');
            $editColumn = new CustomEditColumn('Inscricao Estadual Emitenete', 'inscricao_estadual_emitenete', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for inscricao_estadual_st_emitente field
            //
            $editor = new TextEdit('inscricao_estadual_st_emitente_edit');
            $editColumn = new CustomEditColumn('Inscricao Estadual St Emitente', 'inscricao_estadual_st_emitente', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for inscricao_municipal_emitente field
            //
            $editor = new TextEdit('inscricao_municipal_emitente_edit');
            $editColumn = new CustomEditColumn('Inscricao Municipal Emitente', 'inscricao_municipal_emitente', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for cnae_emitente field
            //
            $editor = new TextEdit('cnae_emitente_edit');
            $editColumn = new CustomEditColumn('Cnae Emitente', 'cnae_emitente', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for regime_tributario_emitente field
            //
            $editor = new TextEdit('regime_tributario_emitente_edit');
            $editColumn = new CustomEditColumn('Regime Tributario Emitente', 'regime_tributario_emitente', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for cnpj_destinatario field
            //
            $editor = new TextEdit('cnpj_destinatario_edit');
            $editColumn = new CustomEditColumn('Cnpj Destinatario', 'cnpj_destinatario', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for cpf_destinatario field
            //
            $editor = new TextEdit('cpf_destinatario_edit');
            $editColumn = new CustomEditColumn('Cpf Destinatario', 'cpf_destinatario', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for id_estrangeiro_destinatario field
            //
            $editor = new TextEdit('id_estrangeiro_destinatario_edit');
            $editColumn = new CustomEditColumn('Id Estrangeiro Destinatario', 'id_estrangeiro_destinatario', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for nome_destinatario field
            //
            $editor = new TextEdit('nome_destinatario_edit');
            $editColumn = new CustomEditColumn('Nome Destinatario', 'nome_destinatario', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for logradoura_destinatario field
            //
            $editor = new TextEdit('logradoura_destinatario_edit');
            $editColumn = new CustomEditColumn('Logradoura Destinatario', 'logradoura_destinatario', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for numero_destinatario field
            //
            $editor = new TextEdit('numero_destinatario_edit');
            $editColumn = new CustomEditColumn('Numero Destinatario', 'numero_destinatario', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for complemento_destinatario field
            //
            $editor = new TextEdit('complemento_destinatario_edit');
            $editColumn = new CustomEditColumn('Complemento Destinatario', 'complemento_destinatario', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for bairro_destinatario field
            //
            $editor = new TextEdit('bairro_destinatario_edit');
            $editColumn = new CustomEditColumn('Bairro Destinatario', 'bairro_destinatario', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for codigo_municipio_destinatario field
            //
            $editor = new TextEdit('codigo_municipio_destinatario_edit');
            $editColumn = new CustomEditColumn('Codigo Municipio Destinatario', 'codigo_municipio_destinatario', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for municipio_destinatario field
            //
            $editor = new TextEdit('municipio_destinatario_edit');
            $editColumn = new CustomEditColumn('Municipio Destinatario', 'municipio_destinatario', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for uf_destinatario field
            //
            $editor = new TextEdit('uf_destinatario_edit');
            $editColumn = new CustomEditColumn('Uf Destinatario', 'uf_destinatario', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for cep_destinatario field
            //
            $editor = new TextEdit('cep_destinatario_edit');
            $editColumn = new CustomEditColumn('Cep Destinatario', 'cep_destinatario', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for pais_destinatario field
            //
            $editor = new TextEdit('pais_destinatario_edit');
            $editColumn = new CustomEditColumn('Pais Destinatario', 'pais_destinatario', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for telefone_destinatario field
            //
            $editor = new TextEdit('telefone_destinatario_edit');
            $editColumn = new CustomEditColumn('Telefone Destinatario', 'telefone_destinatario', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for indicador_inscricao_estadual_destinatario field
            //
            $editor = new TextEdit('indicador_inscricao_estadual_destinatario_edit');
            $editColumn = new CustomEditColumn('Indicador Inscricao Estadual Destinatario', 'indicador_inscricao_estadual_destinatario', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for inscricao_estadual_destinatario field
            //
            $editor = new TextEdit('inscricao_estadual_destinatario_edit');
            $editColumn = new CustomEditColumn('Inscricao Estadual Destinatario', 'inscricao_estadual_destinatario', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for inscricao_suframa_destinatario field
            //
            $editor = new TextEdit('inscricao_suframa_destinatario_edit');
            $editColumn = new CustomEditColumn('Inscricao Suframa Destinatario', 'inscricao_suframa_destinatario', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for email_destinatario field
            //
            $editor = new TextEdit('email_destinatario_edit');
            $editColumn = new CustomEditColumn('Email Destinatario', 'email_destinatario', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for inscricao_municipal_destinatario field
            //
            $editor = new TextEdit('inscricao_municipal_destinatario_edit');
            $editColumn = new CustomEditColumn('Inscricao Municipal Destinatario', 'inscricao_municipal_destinatario', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for cnpj_retirada field
            //
            $editor = new TextEdit('cnpj_retirada_edit');
            $editColumn = new CustomEditColumn('Cnpj Retirada', 'cnpj_retirada', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for cpf_retirada field
            //
            $editor = new TextEdit('cpf_retirada_edit');
            $editColumn = new CustomEditColumn('Cpf Retirada', 'cpf_retirada', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for logradoura_retirada field
            //
            $editor = new TextEdit('logradoura_retirada_edit');
            $editColumn = new CustomEditColumn('Logradoura Retirada', 'logradoura_retirada', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for numero_retirada field
            //
            $editor = new TextEdit('numero_retirada_edit');
            $editColumn = new CustomEditColumn('Numero Retirada', 'numero_retirada', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for complemento_retirada field
            //
            $editor = new TextEdit('complemento_retirada_edit');
            $editColumn = new CustomEditColumn('Complemento Retirada', 'complemento_retirada', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for bairro_retirada field
            //
            $editor = new TextEdit('bairro_retirada_edit');
            $editColumn = new CustomEditColumn('Bairro Retirada', 'bairro_retirada', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for codigo_municipio_retirada field
            //
            $editor = new TextEdit('codigo_municipio_retirada_edit');
            $editColumn = new CustomEditColumn('Codigo Municipio Retirada', 'codigo_municipio_retirada', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for municipio_retirada field
            //
            $editor = new TextEdit('municipio_retirada_edit');
            $editColumn = new CustomEditColumn('Municipio Retirada', 'municipio_retirada', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for uf_retirada field
            //
            $editor = new TextEdit('uf_retirada_edit');
            $editColumn = new CustomEditColumn('Uf Retirada', 'uf_retirada', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for cnpj_entrega field
            //
            $editor = new TextEdit('cnpj_entrega_edit');
            $editColumn = new CustomEditColumn('Cnpj Entrega', 'cnpj_entrega', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for cpf_entrega field
            //
            $editor = new TextEdit('cpf_entrega_edit');
            $editColumn = new CustomEditColumn('Cpf Entrega', 'cpf_entrega', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for logradouro_entrega field
            //
            $editor = new TextEdit('logradouro_entrega_edit');
            $editColumn = new CustomEditColumn('Logradouro Entrega', 'logradouro_entrega', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for numero_entrega field
            //
            $editor = new TextEdit('numero_entrega_edit');
            $editColumn = new CustomEditColumn('Numero Entrega', 'numero_entrega', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for complemento_entrega field
            //
            $editor = new TextEdit('complemento_entrega_edit');
            $editColumn = new CustomEditColumn('Complemento Entrega', 'complemento_entrega', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for bairro_entrega field
            //
            $editor = new TextEdit('bairro_entrega_edit');
            $editColumn = new CustomEditColumn('Bairro Entrega', 'bairro_entrega', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for codigo_municipio_entrega field
            //
            $editor = new TextEdit('codigo_municipio_entrega_edit');
            $editColumn = new CustomEditColumn('Codigo Municipio Entrega', 'codigo_municipio_entrega', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for municipio_entrega field
            //
            $editor = new TextEdit('municipio_entrega_edit');
            $editColumn = new CustomEditColumn('Municipio Entrega', 'municipio_entrega', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for uf_entrega field
            //
            $editor = new TextEdit('uf_entrega_edit');
            $editColumn = new CustomEditColumn('Uf Entrega', 'uf_entrega', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for colecao____________________itens field
            //
            $editor = new TextEdit('colecao____________________itens_edit');
            $editColumn = new CustomEditColumn('Colecao                    Itens', 'colecao____________________itens', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for icms_base_calculo field
            //
            $editor = new TextEdit('icms_base_calculo_edit');
            $editColumn = new CustomEditColumn('Icms Base Calculo', 'icms_base_calculo', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for icms_valor_total field
            //
            $editor = new TextEdit('icms_valor_total_edit');
            $editColumn = new CustomEditColumn('Icms Valor Total', 'icms_valor_total', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for icms_valor_total_desonerado field
            //
            $editor = new TextEdit('icms_valor_total_desonerado_edit');
            $editColumn = new CustomEditColumn('Icms Valor Total Desonerado', 'icms_valor_total_desonerado', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for icms_base_calculo_st field
            //
            $editor = new TextEdit('icms_base_calculo_st_edit');
            $editColumn = new CustomEditColumn('Icms Base Calculo St', 'icms_base_calculo_st', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for icms_valor_total_st field
            //
            $editor = new TextEdit('icms_valor_total_st_edit');
            $editColumn = new CustomEditColumn('Icms Valor Total St', 'icms_valor_total_st', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for valor_produtos field
            //
            $editor = new TextEdit('valor_produtos_edit');
            $editColumn = new CustomEditColumn('Valor Produtos', 'valor_produtos', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for valor_frete field
            //
            $editor = new TextEdit('valor_frete_edit');
            $editColumn = new CustomEditColumn('Valor Frete', 'valor_frete', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for valor_seguro field
            //
            $editor = new TextEdit('valor_seguro_edit');
            $editColumn = new CustomEditColumn('Valor Seguro', 'valor_seguro', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for valor_desconto field
            //
            $editor = new TextEdit('valor_desconto_edit');
            $editColumn = new CustomEditColumn('Valor Desconto', 'valor_desconto', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for valor_total_ii field
            //
            $editor = new TextEdit('valor_total_ii_edit');
            $editColumn = new CustomEditColumn('Valor Total Ii', 'valor_total_ii', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for valor_ipi field
            //
            $editor = new TextEdit('valor_ipi_edit');
            $editColumn = new CustomEditColumn('Valor Ipi', 'valor_ipi', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for valor_pis field
            //
            $editor = new TextEdit('valor_pis_edit');
            $editColumn = new CustomEditColumn('Valor Pis', 'valor_pis', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for valor_cofins field
            //
            $editor = new TextEdit('valor_cofins_edit');
            $editColumn = new CustomEditColumn('Valor Cofins', 'valor_cofins', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for valor_outras_despesas field
            //
            $editor = new TextEdit('valor_outras_despesas_edit');
            $editColumn = new CustomEditColumn('Valor Outras Despesas', 'valor_outras_despesas', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for valor_total field
            //
            $editor = new TextEdit('valor_total_edit');
            $editColumn = new CustomEditColumn('Valor Total', 'valor_total', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for valor_total_servicos field
            //
            $editor = new TextEdit('valor_total_servicos_edit');
            $editColumn = new CustomEditColumn('Valor Total Servicos', 'valor_total_servicos', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for base_issqn field
            //
            $editor = new TextEdit('base_issqn_edit');
            $editColumn = new CustomEditColumn('Base Issqn', 'base_issqn', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for valor_pis_servico field
            //
            $editor = new TextEdit('valor_pis_servico_edit');
            $editColumn = new CustomEditColumn('Valor Pis Servico', 'valor_pis_servico', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for data_prestacao_servico field
            //
            $editor = new TextEdit('data_prestacao_servico_edit');
            $editColumn = new CustomEditColumn('Data Prestacao Servico', 'data_prestacao_servico', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for valor_total_deducao_base_calculo field
            //
            $editor = new TextEdit('valor_total_deducao_base_calculo_edit');
            $editColumn = new CustomEditColumn('Valor Total Deducao Base Calculo', 'valor_total_deducao_base_calculo', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for valor_total_outras_retencoes field
            //
            $editor = new TextEdit('valor_total_outras_retencoes_edit');
            $editColumn = new CustomEditColumn('Valor Total Outras Retencoes', 'valor_total_outras_retencoes', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for valor_total_desconto_incondicionado field
            //
            $editor = new TextEdit('valor_total_desconto_incondicionado_edit');
            $editColumn = new CustomEditColumn('Valor Total Desconto Incondicionado', 'valor_total_desconto_incondicionado', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for valor_total_valor_condicionado field
            //
            $editor = new TextEdit('valor_total_valor_condicionado_edit');
            $editColumn = new CustomEditColumn('Valor Total Valor Condicionado', 'valor_total_valor_condicionado', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for valor_total_retencao_iss field
            //
            $editor = new TextEdit('valor_total_retencao_iss_edit');
            $editColumn = new CustomEditColumn('Valor Total Retencao Iss', 'valor_total_retencao_iss', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for codigo_regime_especial_tributacao field
            //
            $editor = new TextEdit('codigo_regime_especial_tributacao_edit');
            $editColumn = new CustomEditColumn('Codigo Regime Especial Tributacao', 'codigo_regime_especial_tributacao', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for valor_retido_pis field
            //
            $editor = new TextEdit('valor_retido_pis_edit');
            $editColumn = new CustomEditColumn('Valor Retido Pis', 'valor_retido_pis', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for valor_retido_cofins field
            //
            $editor = new TextEdit('valor_retido_cofins_edit');
            $editColumn = new CustomEditColumn('Valor Retido Cofins', 'valor_retido_cofins', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for valor_retido_csll field
            //
            $editor = new TextEdit('valor_retido_csll_edit');
            $editColumn = new CustomEditColumn('Valor Retido Csll', 'valor_retido_csll', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for base_calculo_irrf field
            //
            $editor = new TextEdit('base_calculo_irrf_edit');
            $editColumn = new CustomEditColumn('Base Calculo Irrf', 'base_calculo_irrf', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for valor_retido_irrf field
            //
            $editor = new TextEdit('valor_retido_irrf_edit');
            $editColumn = new CustomEditColumn('Valor Retido Irrf', 'valor_retido_irrf', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for prev_social_base_calculo field
            //
            $editor = new TextEdit('prev_social_base_calculo_edit');
            $editColumn = new CustomEditColumn('Prev Social Base Calculo', 'prev_social_base_calculo', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for prev_social_valor_retido field
            //
            $editor = new TextEdit('prev_social_valor_retido_edit');
            $editColumn = new CustomEditColumn('Prev Social Valor Retido', 'prev_social_valor_retido', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for modalidade_frete field
            //
            $editor = new TextEdit('modalidade_frete_edit');
            $editColumn = new CustomEditColumn('Modalidade Frete', 'modalidade_frete', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for cnpj_transportador field
            //
            $editor = new TextEdit('cnpj_transportador_edit');
            $editColumn = new CustomEditColumn('Cnpj Transportador', 'cnpj_transportador', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for cpf_transportador field
            //
            $editor = new TextEdit('cpf_transportador_edit');
            $editColumn = new CustomEditColumn('Cpf Transportador', 'cpf_transportador', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for nome_transportador field
            //
            $editor = new TextEdit('nome_transportador_edit');
            $editColumn = new CustomEditColumn('Nome Transportador', 'nome_transportador', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for inscricao_estadual_transportador field
            //
            $editor = new TextEdit('inscricao_estadual_transportador_edit');
            $editColumn = new CustomEditColumn('Inscricao Estadual Transportador', 'inscricao_estadual_transportador', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for endereco_transportador field
            //
            $editor = new TextEdit('endereco_transportador_edit');
            $editColumn = new CustomEditColumn('Endereco Transportador', 'endereco_transportador', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for municipio_transportador field
            //
            $editor = new TextEdit('municipio_transportador_edit');
            $editColumn = new CustomEditColumn('Municipio Transportador', 'municipio_transportador', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for uf_transportador field
            //
            $editor = new TextEdit('uf_transportador_edit');
            $editColumn = new CustomEditColumn('Uf Transportador', 'uf_transportador', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for transporte_icms_servico field
            //
            $editor = new TextEdit('transporte_icms_servico_edit');
            $editColumn = new CustomEditColumn('Transporte Icms Servico', 'transporte_icms_servico', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for transporte_icms_base_servico field
            //
            $editor = new TextEdit('transporte_icms_base_servico_edit');
            $editColumn = new CustomEditColumn('Transporte Icms Base Servico', 'transporte_icms_base_servico', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for transporte_icms_aliquota field
            //
            $editor = new TextEdit('transporte_icms_aliquota_edit');
            $editColumn = new CustomEditColumn('Transporte Icms Aliquota', 'transporte_icms_aliquota', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for transporte_icms_valor field
            //
            $editor = new TextEdit('transporte_icms_valor_edit');
            $editColumn = new CustomEditColumn('Transporte Icms Valor', 'transporte_icms_valor', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for transporte_icms_cfop field
            //
            $editor = new TextEdit('transporte_icms_cfop_edit');
            $editColumn = new CustomEditColumn('Transporte Icms Cfop', 'transporte_icms_cfop', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for transporte_icms_codigo_municipio field
            //
            $editor = new TextEdit('transporte_icms_codigo_municipio_edit');
            $editColumn = new CustomEditColumn('Transporte Icms Codigo Municipio', 'transporte_icms_codigo_municipio', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for veiculo_placa field
            //
            $editor = new TextEdit('veiculo_placa_edit');
            $editColumn = new CustomEditColumn('Veiculo Placa', 'veiculo_placa', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for veiculo_uf field
            //
            $editor = new TextEdit('veiculo_uf_edit');
            $editColumn = new CustomEditColumn('Veiculo Uf', 'veiculo_uf', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for veiculo_rntc field
            //
            $editor = new TextEdit('veiculo_rntc_edit');
            $editColumn = new CustomEditColumn('Veiculo Rntc', 'veiculo_rntc', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for veiculo_identificacao_vagao field
            //
            $editor = new TextEdit('veiculo_identificacao_vagao_edit');
            $editColumn = new CustomEditColumn('Veiculo Identificacao Vagao', 'veiculo_identificacao_vagao', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for veiculo_identificacao_balsa field
            //
            $editor = new TextEdit('veiculo_identificacao_balsa_edit');
            $editColumn = new CustomEditColumn('Veiculo Identificacao Balsa', 'veiculo_identificacao_balsa', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for colecao____________________volumes field
            //
            $editor = new TextEdit('colecao____________________volumes_edit');
            $editColumn = new CustomEditColumn('Colecao                    Volumes', 'colecao____________________volumes', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for numero_fatura field
            //
            $editor = new TextEdit('numero_fatura_edit');
            $editColumn = new CustomEditColumn('Numero Fatura', 'numero_fatura', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for valor_original_fatura field
            //
            $editor = new TextEdit('valor_original_fatura_edit');
            $editColumn = new CustomEditColumn('Valor Original Fatura', 'valor_original_fatura', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for valor_desconto_fatura field
            //
            $editor = new TextEdit('valor_desconto_fatura_edit');
            $editColumn = new CustomEditColumn('Valor Desconto Fatura', 'valor_desconto_fatura', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for valor_liquido_fatura field
            //
            $editor = new TextEdit('valor_liquido_fatura_edit');
            $editColumn = new CustomEditColumn('Valor Liquido Fatura', 'valor_liquido_fatura', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for colecao____________________duplicatas field
            //
            $editor = new TextEdit('colecao____________________duplicatas_edit');
            $editColumn = new CustomEditColumn('Colecao                    Duplicatas', 'colecao____________________duplicatas', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for informacoes_adicionais_contribuinte field
            //
            $editor = new TextEdit('informacoes_adicionais_contribuinte_edit');
            $editColumn = new CustomEditColumn('Informacoes Adicionais Contribuinte', 'informacoes_adicionais_contribuinte', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for uf_local_embarque field
            //
            $editor = new TextEdit('uf_local_embarque_edit');
            $editColumn = new CustomEditColumn('Uf Local Embarque', 'uf_local_embarque', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for local_embarque field
            //
            $editor = new TextEdit('local_embarque_edit');
            $editColumn = new CustomEditColumn('Local Embarque', 'local_embarque', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for local_despacho field
            //
            $editor = new TextEdit('local_despacho_edit');
            $editColumn = new CustomEditColumn('Local Despacho', 'local_despacho', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for colecao____________________formas_pagamento field
            //
            $editor = new TextEdit('colecao____________________formas_pagamento_edit');
            $editColumn = new CustomEditColumn('Colecao                    Formas Pagamento', 'colecao____________________formas_pagamento', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for operacao field
            //
            $editor = new TextEdit('operacao_edit');
            $editColumn = new CustomEditColumn('Operacao', 'operacao', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for tx_cancelamento field
            //
            $editor = new TextEdit('tx_cancelamento_edit');
            $editColumn = new CustomEditColumn('Cancelamento', 'tx_cancelamento', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
            
            //
            // Edit column for tx_correcao field
            //
            $editor = new TextEdit('tx_correcao_edit');
            $editColumn = new CustomEditColumn('Tx Correcao', 'tx_correcao', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddMultiEditColumn($editColumn);
        }
    
        protected function AddInsertColumns(Grid $grid)
        {
            //
            // Edit column for id_notas field
            //
            $editor = new SpinEdit('id_notas_edit');
            $editColumn = new CustomEditColumn('Id Notas', 'id_notas', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for id_licencas field
            //
            $editor = new SpinEdit('id_licencas_edit');
            $editColumn = new CustomEditColumn('Id Licencas', 'id_licencas', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for chave field
            //
            $editor = new TextEdit('chave_edit');
            $editColumn = new CustomEditColumn('Chave', 'chave', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for sequencia field
            //
            $editor = new SpinEdit('sequencia_edit');
            $editColumn = new CustomEditColumn('Sequencia', 'sequencia', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for tipo_nf field
            //
            $editor = new TextEdit('tipo_nf_edit');
            $editColumn = new CustomEditColumn('Tipo Nf', 'tipo_nf', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for dt_inclusao field
            //
            $editor = new DateTimeEdit('dt_inclusao_edit', false, 'Y-m-d H:i:s');
            $editColumn = new CustomEditColumn('Dt Inclusao', 'dt_inclusao', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for dt_concluido field
            //
            $editor = new DateTimeEdit('dt_concluido_edit', false, 'Y-m-d H:i:s');
            $editColumn = new CustomEditColumn('Dt Concluido', 'dt_concluido', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for st_nota field
            //
            $editor = new TextEdit('st_nota_edit');
            $editColumn = new CustomEditColumn('St Nota', 'st_nota', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for tx_obs field
            //
            $editor = new TextAreaEdit('tx_obs_edit', 50, 8);
            $editColumn = new CustomEditColumn('Tx Obs', 'tx_obs', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for nm_arquivo_retorno field
            //
            $editor = new TextEdit('nm_arquivo_retorno_edit');
            $editColumn = new CustomEditColumn('Nm Arquivo Retorno', 'nm_arquivo_retorno', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for natureza_operacao field
            //
            $editor = new TextEdit('natureza_operacao_edit');
            $editColumn = new CustomEditColumn('Natureza Operacao', 'natureza_operacao', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for forma_pagamento field
            //
            $editor = new TextEdit('forma_pagamento_edit');
            $editColumn = new CustomEditColumn('Forma Pagamento', 'forma_pagamento', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for data_emissao field
            //
            $editor = new DateTimeEdit('data_emissao_edit', false, 'Y-m-d H:i:s');
            $editColumn = new CustomEditColumn('Data Emissao', 'data_emissao', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for data_entrada_saida field
            //
            $editor = new DateTimeEdit('data_entrada_saida_edit', false, 'Y-m-d H:i:s');
            $editColumn = new CustomEditColumn('Data Entrada Saida', 'data_entrada_saida', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for tipo_documento field
            //
            $editor = new TextEdit('tipo_documento_edit');
            $editColumn = new CustomEditColumn('Tipo Documento', 'tipo_documento', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for local_destino field
            //
            $editor = new TextEdit('local_destino_edit');
            $editColumn = new CustomEditColumn('Local Destino', 'local_destino', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for finalidade_emissao field
            //
            $editor = new TextEdit('finalidade_emissao_edit');
            $editColumn = new CustomEditColumn('Finalidade Emissao', 'finalidade_emissao', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for consumidor_final field
            //
            $editor = new TextEdit('consumidor_final_edit');
            $editColumn = new CustomEditColumn('Consumidor Final', 'consumidor_final', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for presenca_comprador field
            //
            $editor = new TextEdit('presenca_comprador_edit');
            $editColumn = new CustomEditColumn('Presenca Comprador', 'presenca_comprador', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for colecao____________________notas_referenciadas field
            //
            $editor = new TextEdit('colecao____________________notas_referenciadas_edit');
            $editColumn = new CustomEditColumn('Colecao                    Notas Referenciadas', 'colecao____________________notas_referenciadas', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for colecao____________________pessoas_autorizadas field
            //
            $editor = new TextEdit('colecao____________________pessoas_autorizadas_edit');
            $editColumn = new CustomEditColumn('Colecao                    Pessoas Autorizadas', 'colecao____________________pessoas_autorizadas', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for cnpj_emitente field
            //
            $editor = new TextEdit('cnpj_emitente_edit');
            $editColumn = new CustomEditColumn('Cnpj Emitente', 'cnpj_emitente', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for nome_emitente field
            //
            $editor = new TextEdit('nome_emitente_edit');
            $editColumn = new CustomEditColumn('Nome Emitente', 'nome_emitente', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for nome_fantasia_emitente field
            //
            $editor = new TextEdit('nome_fantasia_emitente_edit');
            $editColumn = new CustomEditColumn('Nome Fantasia Emitente', 'nome_fantasia_emitente', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for logradouro_emitente field
            //
            $editor = new TextEdit('logradouro_emitente_edit');
            $editColumn = new CustomEditColumn('Logradouro Emitente', 'logradouro_emitente', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for numero_emitente field
            //
            $editor = new TextEdit('numero_emitente_edit');
            $editColumn = new CustomEditColumn('Numero Emitente', 'numero_emitente', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for complemento_emitente field
            //
            $editor = new TextEdit('complemento_emitente_edit');
            $editColumn = new CustomEditColumn('Complemento Emitente', 'complemento_emitente', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for bairro_emitente field
            //
            $editor = new TextEdit('bairro_emitente_edit');
            $editColumn = new CustomEditColumn('Bairro Emitente', 'bairro_emitente', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for prestador_codigo_municipio field
            //
            $editor = new TextEdit('prestador_codigo_municipio_edit');
            $editColumn = new CustomEditColumn('Prestador Codigo Municipio', 'prestador_codigo_municipio', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for municipio_emitente field
            //
            $editor = new TextEdit('municipio_emitente_edit');
            $editColumn = new CustomEditColumn('Municipio Emitente', 'municipio_emitente', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for uf_emitente field
            //
            $editor = new TextEdit('uf_emitente_edit');
            $editColumn = new CustomEditColumn('Uf Emitente', 'uf_emitente', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for cep_emitente field
            //
            $editor = new TextEdit('cep_emitente_edit');
            $editColumn = new CustomEditColumn('Cep Emitente', 'cep_emitente', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for telefone_emitente field
            //
            $editor = new TextEdit('telefone_emitente_edit');
            $editColumn = new CustomEditColumn('Telefone Emitente', 'telefone_emitente', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for inscricao_estadual_emitenete field
            //
            $editor = new TextEdit('inscricao_estadual_emitenete_edit');
            $editColumn = new CustomEditColumn('Inscricao Estadual Emitenete', 'inscricao_estadual_emitenete', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for inscricao_estadual_st_emitente field
            //
            $editor = new TextEdit('inscricao_estadual_st_emitente_edit');
            $editColumn = new CustomEditColumn('Inscricao Estadual St Emitente', 'inscricao_estadual_st_emitente', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for inscricao_municipal_emitente field
            //
            $editor = new TextEdit('inscricao_municipal_emitente_edit');
            $editColumn = new CustomEditColumn('Inscricao Municipal Emitente', 'inscricao_municipal_emitente', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for cnae_emitente field
            //
            $editor = new TextEdit('cnae_emitente_edit');
            $editColumn = new CustomEditColumn('Cnae Emitente', 'cnae_emitente', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for regime_tributario_emitente field
            //
            $editor = new TextEdit('regime_tributario_emitente_edit');
            $editColumn = new CustomEditColumn('Regime Tributario Emitente', 'regime_tributario_emitente', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for cnpj_destinatario field
            //
            $editor = new TextEdit('cnpj_destinatario_edit');
            $editColumn = new CustomEditColumn('Cnpj Destinatario', 'cnpj_destinatario', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for cpf_destinatario field
            //
            $editor = new TextEdit('cpf_destinatario_edit');
            $editColumn = new CustomEditColumn('Cpf Destinatario', 'cpf_destinatario', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for id_estrangeiro_destinatario field
            //
            $editor = new TextEdit('id_estrangeiro_destinatario_edit');
            $editColumn = new CustomEditColumn('Id Estrangeiro Destinatario', 'id_estrangeiro_destinatario', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for nome_destinatario field
            //
            $editor = new TextEdit('nome_destinatario_edit');
            $editColumn = new CustomEditColumn('Nome Destinatario', 'nome_destinatario', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for logradoura_destinatario field
            //
            $editor = new TextEdit('logradoura_destinatario_edit');
            $editColumn = new CustomEditColumn('Logradoura Destinatario', 'logradoura_destinatario', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for numero_destinatario field
            //
            $editor = new TextEdit('numero_destinatario_edit');
            $editColumn = new CustomEditColumn('Numero Destinatario', 'numero_destinatario', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for complemento_destinatario field
            //
            $editor = new TextEdit('complemento_destinatario_edit');
            $editColumn = new CustomEditColumn('Complemento Destinatario', 'complemento_destinatario', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for bairro_destinatario field
            //
            $editor = new TextEdit('bairro_destinatario_edit');
            $editColumn = new CustomEditColumn('Bairro Destinatario', 'bairro_destinatario', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for codigo_municipio_destinatario field
            //
            $editor = new TextEdit('codigo_municipio_destinatario_edit');
            $editColumn = new CustomEditColumn('Codigo Municipio Destinatario', 'codigo_municipio_destinatario', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for municipio_destinatario field
            //
            $editor = new TextEdit('municipio_destinatario_edit');
            $editColumn = new CustomEditColumn('Municipio Destinatario', 'municipio_destinatario', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for uf_destinatario field
            //
            $editor = new TextEdit('uf_destinatario_edit');
            $editColumn = new CustomEditColumn('Uf Destinatario', 'uf_destinatario', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for cep_destinatario field
            //
            $editor = new TextEdit('cep_destinatario_edit');
            $editColumn = new CustomEditColumn('Cep Destinatario', 'cep_destinatario', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for pais_destinatario field
            //
            $editor = new TextEdit('pais_destinatario_edit');
            $editColumn = new CustomEditColumn('Pais Destinatario', 'pais_destinatario', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for telefone_destinatario field
            //
            $editor = new TextEdit('telefone_destinatario_edit');
            $editColumn = new CustomEditColumn('Telefone Destinatario', 'telefone_destinatario', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for indicador_inscricao_estadual_destinatario field
            //
            $editor = new TextEdit('indicador_inscricao_estadual_destinatario_edit');
            $editColumn = new CustomEditColumn('Indicador Inscricao Estadual Destinatario', 'indicador_inscricao_estadual_destinatario', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for inscricao_estadual_destinatario field
            //
            $editor = new TextEdit('inscricao_estadual_destinatario_edit');
            $editColumn = new CustomEditColumn('Inscricao Estadual Destinatario', 'inscricao_estadual_destinatario', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for inscricao_suframa_destinatario field
            //
            $editor = new TextEdit('inscricao_suframa_destinatario_edit');
            $editColumn = new CustomEditColumn('Inscricao Suframa Destinatario', 'inscricao_suframa_destinatario', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for email_destinatario field
            //
            $editor = new TextEdit('email_destinatario_edit');
            $editColumn = new CustomEditColumn('Email Destinatario', 'email_destinatario', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for inscricao_municipal_destinatario field
            //
            $editor = new TextEdit('inscricao_municipal_destinatario_edit');
            $editColumn = new CustomEditColumn('Inscricao Municipal Destinatario', 'inscricao_municipal_destinatario', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for cnpj_retirada field
            //
            $editor = new TextEdit('cnpj_retirada_edit');
            $editColumn = new CustomEditColumn('Cnpj Retirada', 'cnpj_retirada', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for cpf_retirada field
            //
            $editor = new TextEdit('cpf_retirada_edit');
            $editColumn = new CustomEditColumn('Cpf Retirada', 'cpf_retirada', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for logradoura_retirada field
            //
            $editor = new TextEdit('logradoura_retirada_edit');
            $editColumn = new CustomEditColumn('Logradoura Retirada', 'logradoura_retirada', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for numero_retirada field
            //
            $editor = new TextEdit('numero_retirada_edit');
            $editColumn = new CustomEditColumn('Numero Retirada', 'numero_retirada', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for complemento_retirada field
            //
            $editor = new TextEdit('complemento_retirada_edit');
            $editColumn = new CustomEditColumn('Complemento Retirada', 'complemento_retirada', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for bairro_retirada field
            //
            $editor = new TextEdit('bairro_retirada_edit');
            $editColumn = new CustomEditColumn('Bairro Retirada', 'bairro_retirada', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for codigo_municipio_retirada field
            //
            $editor = new TextEdit('codigo_municipio_retirada_edit');
            $editColumn = new CustomEditColumn('Codigo Municipio Retirada', 'codigo_municipio_retirada', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for municipio_retirada field
            //
            $editor = new TextEdit('municipio_retirada_edit');
            $editColumn = new CustomEditColumn('Municipio Retirada', 'municipio_retirada', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for uf_retirada field
            //
            $editor = new TextEdit('uf_retirada_edit');
            $editColumn = new CustomEditColumn('Uf Retirada', 'uf_retirada', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for cnpj_entrega field
            //
            $editor = new TextEdit('cnpj_entrega_edit');
            $editColumn = new CustomEditColumn('Cnpj Entrega', 'cnpj_entrega', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for cpf_entrega field
            //
            $editor = new TextEdit('cpf_entrega_edit');
            $editColumn = new CustomEditColumn('Cpf Entrega', 'cpf_entrega', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for logradouro_entrega field
            //
            $editor = new TextEdit('logradouro_entrega_edit');
            $editColumn = new CustomEditColumn('Logradouro Entrega', 'logradouro_entrega', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for numero_entrega field
            //
            $editor = new TextEdit('numero_entrega_edit');
            $editColumn = new CustomEditColumn('Numero Entrega', 'numero_entrega', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for complemento_entrega field
            //
            $editor = new TextEdit('complemento_entrega_edit');
            $editColumn = new CustomEditColumn('Complemento Entrega', 'complemento_entrega', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for bairro_entrega field
            //
            $editor = new TextEdit('bairro_entrega_edit');
            $editColumn = new CustomEditColumn('Bairro Entrega', 'bairro_entrega', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for codigo_municipio_entrega field
            //
            $editor = new TextEdit('codigo_municipio_entrega_edit');
            $editColumn = new CustomEditColumn('Codigo Municipio Entrega', 'codigo_municipio_entrega', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for municipio_entrega field
            //
            $editor = new TextEdit('municipio_entrega_edit');
            $editColumn = new CustomEditColumn('Municipio Entrega', 'municipio_entrega', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for uf_entrega field
            //
            $editor = new TextEdit('uf_entrega_edit');
            $editColumn = new CustomEditColumn('Uf Entrega', 'uf_entrega', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for colecao____________________itens field
            //
            $editor = new TextEdit('colecao____________________itens_edit');
            $editColumn = new CustomEditColumn('Colecao                    Itens', 'colecao____________________itens', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for icms_base_calculo field
            //
            $editor = new TextEdit('icms_base_calculo_edit');
            $editColumn = new CustomEditColumn('Icms Base Calculo', 'icms_base_calculo', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for icms_valor_total field
            //
            $editor = new TextEdit('icms_valor_total_edit');
            $editColumn = new CustomEditColumn('Icms Valor Total', 'icms_valor_total', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for icms_valor_total_desonerado field
            //
            $editor = new TextEdit('icms_valor_total_desonerado_edit');
            $editColumn = new CustomEditColumn('Icms Valor Total Desonerado', 'icms_valor_total_desonerado', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for icms_base_calculo_st field
            //
            $editor = new TextEdit('icms_base_calculo_st_edit');
            $editColumn = new CustomEditColumn('Icms Base Calculo St', 'icms_base_calculo_st', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for icms_valor_total_st field
            //
            $editor = new TextEdit('icms_valor_total_st_edit');
            $editColumn = new CustomEditColumn('Icms Valor Total St', 'icms_valor_total_st', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for valor_produtos field
            //
            $editor = new TextEdit('valor_produtos_edit');
            $editColumn = new CustomEditColumn('Valor Produtos', 'valor_produtos', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for valor_frete field
            //
            $editor = new TextEdit('valor_frete_edit');
            $editColumn = new CustomEditColumn('Valor Frete', 'valor_frete', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for valor_seguro field
            //
            $editor = new TextEdit('valor_seguro_edit');
            $editColumn = new CustomEditColumn('Valor Seguro', 'valor_seguro', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for valor_desconto field
            //
            $editor = new TextEdit('valor_desconto_edit');
            $editColumn = new CustomEditColumn('Valor Desconto', 'valor_desconto', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for valor_total_ii field
            //
            $editor = new TextEdit('valor_total_ii_edit');
            $editColumn = new CustomEditColumn('Valor Total Ii', 'valor_total_ii', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for valor_ipi field
            //
            $editor = new TextEdit('valor_ipi_edit');
            $editColumn = new CustomEditColumn('Valor Ipi', 'valor_ipi', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for valor_pis field
            //
            $editor = new TextEdit('valor_pis_edit');
            $editColumn = new CustomEditColumn('Valor Pis', 'valor_pis', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for valor_cofins field
            //
            $editor = new TextEdit('valor_cofins_edit');
            $editColumn = new CustomEditColumn('Valor Cofins', 'valor_cofins', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for valor_outras_despesas field
            //
            $editor = new TextEdit('valor_outras_despesas_edit');
            $editColumn = new CustomEditColumn('Valor Outras Despesas', 'valor_outras_despesas', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for valor_total field
            //
            $editor = new TextEdit('valor_total_edit');
            $editColumn = new CustomEditColumn('Valor Total', 'valor_total', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for valor_total_servicos field
            //
            $editor = new TextEdit('valor_total_servicos_edit');
            $editColumn = new CustomEditColumn('Valor Total Servicos', 'valor_total_servicos', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for base_issqn field
            //
            $editor = new TextEdit('base_issqn_edit');
            $editColumn = new CustomEditColumn('Base Issqn', 'base_issqn', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for valor_pis_servico field
            //
            $editor = new TextEdit('valor_pis_servico_edit');
            $editColumn = new CustomEditColumn('Valor Pis Servico', 'valor_pis_servico', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for data_prestacao_servico field
            //
            $editor = new TextEdit('data_prestacao_servico_edit');
            $editColumn = new CustomEditColumn('Data Prestacao Servico', 'data_prestacao_servico', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for valor_total_deducao_base_calculo field
            //
            $editor = new TextEdit('valor_total_deducao_base_calculo_edit');
            $editColumn = new CustomEditColumn('Valor Total Deducao Base Calculo', 'valor_total_deducao_base_calculo', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for valor_total_outras_retencoes field
            //
            $editor = new TextEdit('valor_total_outras_retencoes_edit');
            $editColumn = new CustomEditColumn('Valor Total Outras Retencoes', 'valor_total_outras_retencoes', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for valor_total_desconto_incondicionado field
            //
            $editor = new TextEdit('valor_total_desconto_incondicionado_edit');
            $editColumn = new CustomEditColumn('Valor Total Desconto Incondicionado', 'valor_total_desconto_incondicionado', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for valor_total_valor_condicionado field
            //
            $editor = new TextEdit('valor_total_valor_condicionado_edit');
            $editColumn = new CustomEditColumn('Valor Total Valor Condicionado', 'valor_total_valor_condicionado', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for valor_total_retencao_iss field
            //
            $editor = new TextEdit('valor_total_retencao_iss_edit');
            $editColumn = new CustomEditColumn('Valor Total Retencao Iss', 'valor_total_retencao_iss', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for codigo_regime_especial_tributacao field
            //
            $editor = new TextEdit('codigo_regime_especial_tributacao_edit');
            $editColumn = new CustomEditColumn('Codigo Regime Especial Tributacao', 'codigo_regime_especial_tributacao', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for valor_retido_pis field
            //
            $editor = new TextEdit('valor_retido_pis_edit');
            $editColumn = new CustomEditColumn('Valor Retido Pis', 'valor_retido_pis', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for valor_retido_cofins field
            //
            $editor = new TextEdit('valor_retido_cofins_edit');
            $editColumn = new CustomEditColumn('Valor Retido Cofins', 'valor_retido_cofins', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for valor_retido_csll field
            //
            $editor = new TextEdit('valor_retido_csll_edit');
            $editColumn = new CustomEditColumn('Valor Retido Csll', 'valor_retido_csll', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for base_calculo_irrf field
            //
            $editor = new TextEdit('base_calculo_irrf_edit');
            $editColumn = new CustomEditColumn('Base Calculo Irrf', 'base_calculo_irrf', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for valor_retido_irrf field
            //
            $editor = new TextEdit('valor_retido_irrf_edit');
            $editColumn = new CustomEditColumn('Valor Retido Irrf', 'valor_retido_irrf', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for prev_social_base_calculo field
            //
            $editor = new TextEdit('prev_social_base_calculo_edit');
            $editColumn = new CustomEditColumn('Prev Social Base Calculo', 'prev_social_base_calculo', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for prev_social_valor_retido field
            //
            $editor = new TextEdit('prev_social_valor_retido_edit');
            $editColumn = new CustomEditColumn('Prev Social Valor Retido', 'prev_social_valor_retido', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for modalidade_frete field
            //
            $editor = new TextEdit('modalidade_frete_edit');
            $editColumn = new CustomEditColumn('Modalidade Frete', 'modalidade_frete', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for cnpj_transportador field
            //
            $editor = new TextEdit('cnpj_transportador_edit');
            $editColumn = new CustomEditColumn('Cnpj Transportador', 'cnpj_transportador', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for cpf_transportador field
            //
            $editor = new TextEdit('cpf_transportador_edit');
            $editColumn = new CustomEditColumn('Cpf Transportador', 'cpf_transportador', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for nome_transportador field
            //
            $editor = new TextEdit('nome_transportador_edit');
            $editColumn = new CustomEditColumn('Nome Transportador', 'nome_transportador', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for inscricao_estadual_transportador field
            //
            $editor = new TextEdit('inscricao_estadual_transportador_edit');
            $editColumn = new CustomEditColumn('Inscricao Estadual Transportador', 'inscricao_estadual_transportador', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for endereco_transportador field
            //
            $editor = new TextEdit('endereco_transportador_edit');
            $editColumn = new CustomEditColumn('Endereco Transportador', 'endereco_transportador', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for municipio_transportador field
            //
            $editor = new TextEdit('municipio_transportador_edit');
            $editColumn = new CustomEditColumn('Municipio Transportador', 'municipio_transportador', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for uf_transportador field
            //
            $editor = new TextEdit('uf_transportador_edit');
            $editColumn = new CustomEditColumn('Uf Transportador', 'uf_transportador', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for transporte_icms_servico field
            //
            $editor = new TextEdit('transporte_icms_servico_edit');
            $editColumn = new CustomEditColumn('Transporte Icms Servico', 'transporte_icms_servico', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for transporte_icms_base_servico field
            //
            $editor = new TextEdit('transporte_icms_base_servico_edit');
            $editColumn = new CustomEditColumn('Transporte Icms Base Servico', 'transporte_icms_base_servico', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for transporte_icms_aliquota field
            //
            $editor = new TextEdit('transporte_icms_aliquota_edit');
            $editColumn = new CustomEditColumn('Transporte Icms Aliquota', 'transporte_icms_aliquota', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for transporte_icms_valor field
            //
            $editor = new TextEdit('transporte_icms_valor_edit');
            $editColumn = new CustomEditColumn('Transporte Icms Valor', 'transporte_icms_valor', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for transporte_icms_cfop field
            //
            $editor = new TextEdit('transporte_icms_cfop_edit');
            $editColumn = new CustomEditColumn('Transporte Icms Cfop', 'transporte_icms_cfop', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for transporte_icms_codigo_municipio field
            //
            $editor = new TextEdit('transporte_icms_codigo_municipio_edit');
            $editColumn = new CustomEditColumn('Transporte Icms Codigo Municipio', 'transporte_icms_codigo_municipio', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for veiculo_placa field
            //
            $editor = new TextEdit('veiculo_placa_edit');
            $editColumn = new CustomEditColumn('Veiculo Placa', 'veiculo_placa', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for veiculo_uf field
            //
            $editor = new TextEdit('veiculo_uf_edit');
            $editColumn = new CustomEditColumn('Veiculo Uf', 'veiculo_uf', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for veiculo_rntc field
            //
            $editor = new TextEdit('veiculo_rntc_edit');
            $editColumn = new CustomEditColumn('Veiculo Rntc', 'veiculo_rntc', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for veiculo_identificacao_vagao field
            //
            $editor = new TextEdit('veiculo_identificacao_vagao_edit');
            $editColumn = new CustomEditColumn('Veiculo Identificacao Vagao', 'veiculo_identificacao_vagao', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for veiculo_identificacao_balsa field
            //
            $editor = new TextEdit('veiculo_identificacao_balsa_edit');
            $editColumn = new CustomEditColumn('Veiculo Identificacao Balsa', 'veiculo_identificacao_balsa', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for colecao____________________volumes field
            //
            $editor = new TextEdit('colecao____________________volumes_edit');
            $editColumn = new CustomEditColumn('Colecao                    Volumes', 'colecao____________________volumes', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for numero_fatura field
            //
            $editor = new TextEdit('numero_fatura_edit');
            $editColumn = new CustomEditColumn('Numero Fatura', 'numero_fatura', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for valor_original_fatura field
            //
            $editor = new TextEdit('valor_original_fatura_edit');
            $editColumn = new CustomEditColumn('Valor Original Fatura', 'valor_original_fatura', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for valor_desconto_fatura field
            //
            $editor = new TextEdit('valor_desconto_fatura_edit');
            $editColumn = new CustomEditColumn('Valor Desconto Fatura', 'valor_desconto_fatura', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for valor_liquido_fatura field
            //
            $editor = new TextEdit('valor_liquido_fatura_edit');
            $editColumn = new CustomEditColumn('Valor Liquido Fatura', 'valor_liquido_fatura', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for colecao____________________duplicatas field
            //
            $editor = new TextEdit('colecao____________________duplicatas_edit');
            $editColumn = new CustomEditColumn('Colecao                    Duplicatas', 'colecao____________________duplicatas', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for informacoes_adicionais_contribuinte field
            //
            $editor = new TextEdit('informacoes_adicionais_contribuinte_edit');
            $editColumn = new CustomEditColumn('Informacoes Adicionais Contribuinte', 'informacoes_adicionais_contribuinte', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for uf_local_embarque field
            //
            $editor = new TextEdit('uf_local_embarque_edit');
            $editColumn = new CustomEditColumn('Uf Local Embarque', 'uf_local_embarque', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for local_embarque field
            //
            $editor = new TextEdit('local_embarque_edit');
            $editColumn = new CustomEditColumn('Local Embarque', 'local_embarque', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for local_despacho field
            //
            $editor = new TextEdit('local_despacho_edit');
            $editColumn = new CustomEditColumn('Local Despacho', 'local_despacho', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for colecao____________________formas_pagamento field
            //
            $editor = new TextEdit('colecao____________________formas_pagamento_edit');
            $editColumn = new CustomEditColumn('Colecao                    Formas Pagamento', 'colecao____________________formas_pagamento', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for operacao field
            //
            $editor = new TextEdit('operacao_edit');
            $editColumn = new CustomEditColumn('Operacao', 'operacao', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for tx_cancelamento field
            //
            $editor = new TextEdit('tx_cancelamento_edit');
            $editColumn = new CustomEditColumn('Cancelamento', 'tx_cancelamento', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            
            //
            // Edit column for tx_correcao field
            //
            $editor = new TextEdit('tx_correcao_edit');
            $editColumn = new CustomEditColumn('Tx Correcao', 'tx_correcao', $editor, $this->dataset);
            $validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $editColumn->GetCaption()));
            $editor->GetValidatorCollection()->AddValidator($validator);
            $this->ApplyCommonColumnEditProperties($editColumn);
            $grid->AddInsertColumn($editColumn);
            $grid->SetShowAddButton(false && $this->GetSecurityInfo()->HasAddGrant());
        }
    
        private function AddMultiUploadColumn(Grid $grid)
        {
    
        }
    
        protected function AddPrintColumns(Grid $grid)
        {
            //
            // View column for id_notas field
            //
            $column = new TextViewColumn('id_notas', 'id_notas', 'Id Notas', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for id_licencas field
            //
            $column = new TextViewColumn('id_licencas', 'id_licencas', 'Id Licencas', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for chave field
            //
            $column = new TextViewColumn('chave', 'chave', 'Chave', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for sequencia field
            //
            $column = new TextViewColumn('sequencia', 'sequencia', 'Sequencia', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for tipo_nf field
            //
            $column = new TextViewColumn('tipo_nf', 'tipo_nf', 'Tipo Nf', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for dt_inclusao field
            //
            $column = new DateTimeViewColumn('dt_inclusao', 'dt_inclusao', 'Dt Inclusao', $this->dataset);
            $column->SetOrderable(true);
            $column->SetDateTimeFormat('d.m.Y H:i:s');
            $grid->AddPrintColumn($column);
            
            //
            // View column for dt_concluido field
            //
            $column = new DateTimeViewColumn('dt_concluido', 'dt_concluido', 'Dt Concluido', $this->dataset);
            $column->SetOrderable(true);
            $column->SetDateTimeFormat('d.m.Y H:i:s');
            $grid->AddPrintColumn($column);
            
            //
            // View column for st_nota field
            //
            $column = new TextViewColumn('st_nota', 'st_nota', 'St Nota', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for tx_obs field
            //
            $column = new TextViewColumn('tx_obs', 'tx_obs', 'Tx Obs', $this->dataset);
            $column->SetOrderable(true);
            $column->SetMaxLength(75);
            $column->SetFullTextWindowHandlerName('Notas_CanceladasGrid_tx_obs_handler_print');
            $grid->AddPrintColumn($column);
            
            //
            // View column for nm_arquivo_retorno field
            //
            $column = new TextViewColumn('nm_arquivo_retorno', 'nm_arquivo_retorno', 'Nm Arquivo Retorno', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for natureza_operacao field
            //
            $column = new TextViewColumn('natureza_operacao', 'natureza_operacao', 'Natureza Operacao', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for forma_pagamento field
            //
            $column = new TextViewColumn('forma_pagamento', 'forma_pagamento', 'Forma Pagamento', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for data_emissao field
            //
            $column = new DateTimeViewColumn('data_emissao', 'data_emissao', 'Data Emissao', $this->dataset);
            $column->SetOrderable(true);
            $column->SetDateTimeFormat('Y-m-d');
            $grid->AddPrintColumn($column);
            
            //
            // View column for data_entrada_saida field
            //
            $column = new DateTimeViewColumn('data_entrada_saida', 'data_entrada_saida', 'Data Entrada Saida', $this->dataset);
            $column->SetOrderable(true);
            $column->SetDateTimeFormat('d.m.Y H:i:s');
            $grid->AddPrintColumn($column);
            
            //
            // View column for tipo_documento field
            //
            $column = new TextViewColumn('tipo_documento', 'tipo_documento', 'Tipo Documento', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for local_destino field
            //
            $column = new TextViewColumn('local_destino', 'local_destino', 'Local Destino', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for finalidade_emissao field
            //
            $column = new TextViewColumn('finalidade_emissao', 'finalidade_emissao', 'Finalidade Emissao', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for consumidor_final field
            //
            $column = new TextViewColumn('consumidor_final', 'consumidor_final', 'Consumidor Final', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for presenca_comprador field
            //
            $column = new TextViewColumn('presenca_comprador', 'presenca_comprador', 'Presenca Comprador', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for colecao____________________notas_referenciadas field
            //
            $column = new TextViewColumn('colecao____________________notas_referenciadas', 'colecao____________________notas_referenciadas', 'Colecao                    Notas Referenciadas', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for colecao____________________pessoas_autorizadas field
            //
            $column = new TextViewColumn('colecao____________________pessoas_autorizadas', 'colecao____________________pessoas_autorizadas', 'Colecao                    Pessoas Autorizadas', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for cnpj_emitente field
            //
            $column = new TextViewColumn('cnpj_emitente', 'cnpj_emitente', 'Cnpj Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for nome_emitente field
            //
            $column = new TextViewColumn('nome_emitente', 'nome_emitente', 'Nome Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for nome_fantasia_emitente field
            //
            $column = new TextViewColumn('nome_fantasia_emitente', 'nome_fantasia_emitente', 'Nome Fantasia Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for logradouro_emitente field
            //
            $column = new TextViewColumn('logradouro_emitente', 'logradouro_emitente', 'Logradouro Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for numero_emitente field
            //
            $column = new TextViewColumn('numero_emitente', 'numero_emitente', 'Numero Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for complemento_emitente field
            //
            $column = new TextViewColumn('complemento_emitente', 'complemento_emitente', 'Complemento Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for bairro_emitente field
            //
            $column = new TextViewColumn('bairro_emitente', 'bairro_emitente', 'Bairro Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for prestador_codigo_municipio field
            //
            $column = new TextViewColumn('prestador_codigo_municipio', 'prestador_codigo_municipio', 'Prestador Codigo Municipio', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for municipio_emitente field
            //
            $column = new TextViewColumn('municipio_emitente', 'municipio_emitente', 'Municipio Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for uf_emitente field
            //
            $column = new TextViewColumn('uf_emitente', 'uf_emitente', 'Uf Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for cep_emitente field
            //
            $column = new TextViewColumn('cep_emitente', 'cep_emitente', 'Cep Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for telefone_emitente field
            //
            $column = new TextViewColumn('telefone_emitente', 'telefone_emitente', 'Telefone Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for inscricao_estadual_emitenete field
            //
            $column = new TextViewColumn('inscricao_estadual_emitenete', 'inscricao_estadual_emitenete', 'Inscricao Estadual Emitenete', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for inscricao_estadual_st_emitente field
            //
            $column = new TextViewColumn('inscricao_estadual_st_emitente', 'inscricao_estadual_st_emitente', 'Inscricao Estadual St Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for inscricao_municipal_emitente field
            //
            $column = new TextViewColumn('inscricao_municipal_emitente', 'inscricao_municipal_emitente', 'Inscricao Municipal Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for cnae_emitente field
            //
            $column = new TextViewColumn('cnae_emitente', 'cnae_emitente', 'Cnae Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for regime_tributario_emitente field
            //
            $column = new TextViewColumn('regime_tributario_emitente', 'regime_tributario_emitente', 'Regime Tributario Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for cnpj_destinatario field
            //
            $column = new TextViewColumn('cnpj_destinatario', 'cnpj_destinatario', 'Cnpj Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for cpf_destinatario field
            //
            $column = new TextViewColumn('cpf_destinatario', 'cpf_destinatario', 'Cpf Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for id_estrangeiro_destinatario field
            //
            $column = new TextViewColumn('id_estrangeiro_destinatario', 'id_estrangeiro_destinatario', 'Id Estrangeiro Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for nome_destinatario field
            //
            $column = new TextViewColumn('nome_destinatario', 'nome_destinatario', 'Nome Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for logradoura_destinatario field
            //
            $column = new TextViewColumn('logradoura_destinatario', 'logradoura_destinatario', 'Logradoura Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for numero_destinatario field
            //
            $column = new TextViewColumn('numero_destinatario', 'numero_destinatario', 'Numero Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for complemento_destinatario field
            //
            $column = new TextViewColumn('complemento_destinatario', 'complemento_destinatario', 'Complemento Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for bairro_destinatario field
            //
            $column = new TextViewColumn('bairro_destinatario', 'bairro_destinatario', 'Bairro Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for codigo_municipio_destinatario field
            //
            $column = new TextViewColumn('codigo_municipio_destinatario', 'codigo_municipio_destinatario', 'Codigo Municipio Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for municipio_destinatario field
            //
            $column = new TextViewColumn('municipio_destinatario', 'municipio_destinatario', 'Municipio Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for uf_destinatario field
            //
            $column = new TextViewColumn('uf_destinatario', 'uf_destinatario', 'Uf Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for cep_destinatario field
            //
            $column = new TextViewColumn('cep_destinatario', 'cep_destinatario', 'Cep Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for pais_destinatario field
            //
            $column = new TextViewColumn('pais_destinatario', 'pais_destinatario', 'Pais Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for telefone_destinatario field
            //
            $column = new TextViewColumn('telefone_destinatario', 'telefone_destinatario', 'Telefone Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for indicador_inscricao_estadual_destinatario field
            //
            $column = new TextViewColumn('indicador_inscricao_estadual_destinatario', 'indicador_inscricao_estadual_destinatario', 'Indicador Inscricao Estadual Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for inscricao_estadual_destinatario field
            //
            $column = new TextViewColumn('inscricao_estadual_destinatario', 'inscricao_estadual_destinatario', 'Inscricao Estadual Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for inscricao_suframa_destinatario field
            //
            $column = new TextViewColumn('inscricao_suframa_destinatario', 'inscricao_suframa_destinatario', 'Inscricao Suframa Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for email_destinatario field
            //
            $column = new TextViewColumn('email_destinatario', 'email_destinatario', 'Email Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for inscricao_municipal_destinatario field
            //
            $column = new TextViewColumn('inscricao_municipal_destinatario', 'inscricao_municipal_destinatario', 'Inscricao Municipal Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for cnpj_retirada field
            //
            $column = new TextViewColumn('cnpj_retirada', 'cnpj_retirada', 'Cnpj Retirada', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for cpf_retirada field
            //
            $column = new TextViewColumn('cpf_retirada', 'cpf_retirada', 'Cpf Retirada', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for logradoura_retirada field
            //
            $column = new TextViewColumn('logradoura_retirada', 'logradoura_retirada', 'Logradoura Retirada', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for numero_retirada field
            //
            $column = new TextViewColumn('numero_retirada', 'numero_retirada', 'Numero Retirada', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for complemento_retirada field
            //
            $column = new TextViewColumn('complemento_retirada', 'complemento_retirada', 'Complemento Retirada', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for bairro_retirada field
            //
            $column = new TextViewColumn('bairro_retirada', 'bairro_retirada', 'Bairro Retirada', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for codigo_municipio_retirada field
            //
            $column = new TextViewColumn('codigo_municipio_retirada', 'codigo_municipio_retirada', 'Codigo Municipio Retirada', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for municipio_retirada field
            //
            $column = new TextViewColumn('municipio_retirada', 'municipio_retirada', 'Municipio Retirada', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for uf_retirada field
            //
            $column = new TextViewColumn('uf_retirada', 'uf_retirada', 'Uf Retirada', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for cnpj_entrega field
            //
            $column = new TextViewColumn('cnpj_entrega', 'cnpj_entrega', 'Cnpj Entrega', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for cpf_entrega field
            //
            $column = new TextViewColumn('cpf_entrega', 'cpf_entrega', 'Cpf Entrega', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for logradouro_entrega field
            //
            $column = new TextViewColumn('logradouro_entrega', 'logradouro_entrega', 'Logradouro Entrega', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for numero_entrega field
            //
            $column = new TextViewColumn('numero_entrega', 'numero_entrega', 'Numero Entrega', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for complemento_entrega field
            //
            $column = new TextViewColumn('complemento_entrega', 'complemento_entrega', 'Complemento Entrega', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for bairro_entrega field
            //
            $column = new TextViewColumn('bairro_entrega', 'bairro_entrega', 'Bairro Entrega', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for codigo_municipio_entrega field
            //
            $column = new TextViewColumn('codigo_municipio_entrega', 'codigo_municipio_entrega', 'Codigo Municipio Entrega', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for municipio_entrega field
            //
            $column = new TextViewColumn('municipio_entrega', 'municipio_entrega', 'Municipio Entrega', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for uf_entrega field
            //
            $column = new TextViewColumn('uf_entrega', 'uf_entrega', 'Uf Entrega', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for colecao____________________itens field
            //
            $column = new TextViewColumn('colecao____________________itens', 'colecao____________________itens', 'Colecao                    Itens', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for icms_base_calculo field
            //
            $column = new TextViewColumn('icms_base_calculo', 'icms_base_calculo', 'Icms Base Calculo', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for icms_valor_total field
            //
            $column = new TextViewColumn('icms_valor_total', 'icms_valor_total', 'Icms Valor Total', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for icms_valor_total_desonerado field
            //
            $column = new TextViewColumn('icms_valor_total_desonerado', 'icms_valor_total_desonerado', 'Icms Valor Total Desonerado', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for icms_base_calculo_st field
            //
            $column = new TextViewColumn('icms_base_calculo_st', 'icms_base_calculo_st', 'Icms Base Calculo St', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for icms_valor_total_st field
            //
            $column = new TextViewColumn('icms_valor_total_st', 'icms_valor_total_st', 'Icms Valor Total St', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for valor_produtos field
            //
            $column = new TextViewColumn('valor_produtos', 'valor_produtos', 'Valor Produtos', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for valor_frete field
            //
            $column = new TextViewColumn('valor_frete', 'valor_frete', 'Valor Frete', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for valor_seguro field
            //
            $column = new TextViewColumn('valor_seguro', 'valor_seguro', 'Valor Seguro', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for valor_desconto field
            //
            $column = new TextViewColumn('valor_desconto', 'valor_desconto', 'Valor Desconto', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for valor_total_ii field
            //
            $column = new TextViewColumn('valor_total_ii', 'valor_total_ii', 'Valor Total Ii', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for valor_ipi field
            //
            $column = new TextViewColumn('valor_ipi', 'valor_ipi', 'Valor Ipi', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for valor_pis field
            //
            $column = new TextViewColumn('valor_pis', 'valor_pis', 'Valor Pis', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for valor_cofins field
            //
            $column = new TextViewColumn('valor_cofins', 'valor_cofins', 'Valor Cofins', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for valor_outras_despesas field
            //
            $column = new TextViewColumn('valor_outras_despesas', 'valor_outras_despesas', 'Valor Outras Despesas', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for valor_total field
            //
            $column = new TextViewColumn('valor_total', 'valor_total', 'Valor Total', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for valor_total_servicos field
            //
            $column = new TextViewColumn('valor_total_servicos', 'valor_total_servicos', 'Valor Total Servicos', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for base_issqn field
            //
            $column = new TextViewColumn('base_issqn', 'base_issqn', 'Base Issqn', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for valor_pis_servico field
            //
            $column = new TextViewColumn('valor_pis_servico', 'valor_pis_servico', 'Valor Pis Servico', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for data_prestacao_servico field
            //
            $column = new TextViewColumn('data_prestacao_servico', 'data_prestacao_servico', 'Data Prestacao Servico', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for valor_total_deducao_base_calculo field
            //
            $column = new TextViewColumn('valor_total_deducao_base_calculo', 'valor_total_deducao_base_calculo', 'Valor Total Deducao Base Calculo', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for valor_total_outras_retencoes field
            //
            $column = new TextViewColumn('valor_total_outras_retencoes', 'valor_total_outras_retencoes', 'Valor Total Outras Retencoes', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for valor_total_desconto_incondicionado field
            //
            $column = new TextViewColumn('valor_total_desconto_incondicionado', 'valor_total_desconto_incondicionado', 'Valor Total Desconto Incondicionado', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for valor_total_valor_condicionado field
            //
            $column = new TextViewColumn('valor_total_valor_condicionado', 'valor_total_valor_condicionado', 'Valor Total Valor Condicionado', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for valor_total_retencao_iss field
            //
            $column = new TextViewColumn('valor_total_retencao_iss', 'valor_total_retencao_iss', 'Valor Total Retencao Iss', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for codigo_regime_especial_tributacao field
            //
            $column = new TextViewColumn('codigo_regime_especial_tributacao', 'codigo_regime_especial_tributacao', 'Codigo Regime Especial Tributacao', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for valor_retido_pis field
            //
            $column = new TextViewColumn('valor_retido_pis', 'valor_retido_pis', 'Valor Retido Pis', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for valor_retido_cofins field
            //
            $column = new TextViewColumn('valor_retido_cofins', 'valor_retido_cofins', 'Valor Retido Cofins', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for valor_retido_csll field
            //
            $column = new TextViewColumn('valor_retido_csll', 'valor_retido_csll', 'Valor Retido Csll', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for base_calculo_irrf field
            //
            $column = new TextViewColumn('base_calculo_irrf', 'base_calculo_irrf', 'Base Calculo Irrf', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for valor_retido_irrf field
            //
            $column = new TextViewColumn('valor_retido_irrf', 'valor_retido_irrf', 'Valor Retido Irrf', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for prev_social_base_calculo field
            //
            $column = new TextViewColumn('prev_social_base_calculo', 'prev_social_base_calculo', 'Prev Social Base Calculo', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for prev_social_valor_retido field
            //
            $column = new TextViewColumn('prev_social_valor_retido', 'prev_social_valor_retido', 'Prev Social Valor Retido', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for modalidade_frete field
            //
            $column = new TextViewColumn('modalidade_frete', 'modalidade_frete', 'Modalidade Frete', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for cnpj_transportador field
            //
            $column = new TextViewColumn('cnpj_transportador', 'cnpj_transportador', 'Cnpj Transportador', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for cpf_transportador field
            //
            $column = new TextViewColumn('cpf_transportador', 'cpf_transportador', 'Cpf Transportador', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for nome_transportador field
            //
            $column = new TextViewColumn('nome_transportador', 'nome_transportador', 'Nome Transportador', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for inscricao_estadual_transportador field
            //
            $column = new TextViewColumn('inscricao_estadual_transportador', 'inscricao_estadual_transportador', 'Inscricao Estadual Transportador', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for endereco_transportador field
            //
            $column = new TextViewColumn('endereco_transportador', 'endereco_transportador', 'Endereco Transportador', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for municipio_transportador field
            //
            $column = new TextViewColumn('municipio_transportador', 'municipio_transportador', 'Municipio Transportador', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for uf_transportador field
            //
            $column = new TextViewColumn('uf_transportador', 'uf_transportador', 'Uf Transportador', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for transporte_icms_servico field
            //
            $column = new TextViewColumn('transporte_icms_servico', 'transporte_icms_servico', 'Transporte Icms Servico', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for transporte_icms_base_servico field
            //
            $column = new TextViewColumn('transporte_icms_base_servico', 'transporte_icms_base_servico', 'Transporte Icms Base Servico', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for transporte_icms_aliquota field
            //
            $column = new TextViewColumn('transporte_icms_aliquota', 'transporte_icms_aliquota', 'Transporte Icms Aliquota', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for transporte_icms_valor field
            //
            $column = new TextViewColumn('transporte_icms_valor', 'transporte_icms_valor', 'Transporte Icms Valor', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for transporte_icms_cfop field
            //
            $column = new TextViewColumn('transporte_icms_cfop', 'transporte_icms_cfop', 'Transporte Icms Cfop', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for transporte_icms_codigo_municipio field
            //
            $column = new TextViewColumn('transporte_icms_codigo_municipio', 'transporte_icms_codigo_municipio', 'Transporte Icms Codigo Municipio', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for veiculo_placa field
            //
            $column = new TextViewColumn('veiculo_placa', 'veiculo_placa', 'Veiculo Placa', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for veiculo_uf field
            //
            $column = new TextViewColumn('veiculo_uf', 'veiculo_uf', 'Veiculo Uf', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for veiculo_rntc field
            //
            $column = new TextViewColumn('veiculo_rntc', 'veiculo_rntc', 'Veiculo Rntc', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for veiculo_identificacao_vagao field
            //
            $column = new TextViewColumn('veiculo_identificacao_vagao', 'veiculo_identificacao_vagao', 'Veiculo Identificacao Vagao', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for veiculo_identificacao_balsa field
            //
            $column = new TextViewColumn('veiculo_identificacao_balsa', 'veiculo_identificacao_balsa', 'Veiculo Identificacao Balsa', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for colecao____________________volumes field
            //
            $column = new TextViewColumn('colecao____________________volumes', 'colecao____________________volumes', 'Colecao                    Volumes', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for numero_fatura field
            //
            $column = new TextViewColumn('numero_fatura', 'numero_fatura', 'Numero Fatura', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for valor_original_fatura field
            //
            $column = new TextViewColumn('valor_original_fatura', 'valor_original_fatura', 'Valor Original Fatura', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for valor_desconto_fatura field
            //
            $column = new TextViewColumn('valor_desconto_fatura', 'valor_desconto_fatura', 'Valor Desconto Fatura', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for valor_liquido_fatura field
            //
            $column = new TextViewColumn('valor_liquido_fatura', 'valor_liquido_fatura', 'Valor Liquido Fatura', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for colecao____________________duplicatas field
            //
            $column = new TextViewColumn('colecao____________________duplicatas', 'colecao____________________duplicatas', 'Colecao                    Duplicatas', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for informacoes_adicionais_contribuinte field
            //
            $column = new TextViewColumn('informacoes_adicionais_contribuinte', 'informacoes_adicionais_contribuinte', 'Informacoes Adicionais Contribuinte', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for uf_local_embarque field
            //
            $column = new TextViewColumn('uf_local_embarque', 'uf_local_embarque', 'Uf Local Embarque', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for local_embarque field
            //
            $column = new TextViewColumn('local_embarque', 'local_embarque', 'Local Embarque', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for local_despacho field
            //
            $column = new TextViewColumn('local_despacho', 'local_despacho', 'Local Despacho', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for colecao____________________formas_pagamento field
            //
            $column = new TextViewColumn('colecao____________________formas_pagamento', 'colecao____________________formas_pagamento', 'Colecao                    Formas Pagamento', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for operacao field
            //
            $column = new TextViewColumn('operacao', 'operacao', 'Operacao', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for tx_cancelamento field
            //
            $column = new TextViewColumn('tx_cancelamento', 'tx_cancelamento', 'Cancelamento', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
            
            //
            // View column for tx_correcao field
            //
            $column = new TextViewColumn('tx_correcao', 'tx_correcao', 'Tx Correcao', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddPrintColumn($column);
        }
    
        protected function AddExportColumns(Grid $grid)
        {
            //
            // View column for id_notas field
            //
            $column = new TextViewColumn('id_notas', 'id_notas', 'Id Notas', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for id_licencas field
            //
            $column = new TextViewColumn('id_licencas', 'id_licencas', 'Id Licencas', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for chave field
            //
            $column = new TextViewColumn('chave', 'chave', 'Chave', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for sequencia field
            //
            $column = new TextViewColumn('sequencia', 'sequencia', 'Sequencia', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for tipo_nf field
            //
            $column = new TextViewColumn('tipo_nf', 'tipo_nf', 'Tipo Nf', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for dt_inclusao field
            //
            $column = new DateTimeViewColumn('dt_inclusao', 'dt_inclusao', 'Dt Inclusao', $this->dataset);
            $column->SetOrderable(true);
            $column->SetDateTimeFormat('d.m.Y H:i:s');
            $grid->AddExportColumn($column);
            
            //
            // View column for dt_concluido field
            //
            $column = new DateTimeViewColumn('dt_concluido', 'dt_concluido', 'Dt Concluido', $this->dataset);
            $column->SetOrderable(true);
            $column->SetDateTimeFormat('d.m.Y H:i:s');
            $grid->AddExportColumn($column);
            
            //
            // View column for st_nota field
            //
            $column = new TextViewColumn('st_nota', 'st_nota', 'St Nota', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for tx_obs field
            //
            $column = new TextViewColumn('tx_obs', 'tx_obs', 'Tx Obs', $this->dataset);
            $column->SetOrderable(true);
            $column->SetMaxLength(75);
            $column->SetFullTextWindowHandlerName('Notas_CanceladasGrid_tx_obs_handler_export');
            $grid->AddExportColumn($column);
            
            //
            // View column for nm_arquivo_retorno field
            //
            $column = new TextViewColumn('nm_arquivo_retorno', 'nm_arquivo_retorno', 'Nm Arquivo Retorno', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for natureza_operacao field
            //
            $column = new TextViewColumn('natureza_operacao', 'natureza_operacao', 'Natureza Operacao', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for forma_pagamento field
            //
            $column = new TextViewColumn('forma_pagamento', 'forma_pagamento', 'Forma Pagamento', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for data_emissao field
            //
            $column = new DateTimeViewColumn('data_emissao', 'data_emissao', 'Data Emissao', $this->dataset);
            $column->SetOrderable(true);
            $column->SetDateTimeFormat('Y-m-d');
            $grid->AddExportColumn($column);
            
            //
            // View column for data_entrada_saida field
            //
            $column = new DateTimeViewColumn('data_entrada_saida', 'data_entrada_saida', 'Data Entrada Saida', $this->dataset);
            $column->SetOrderable(true);
            $column->SetDateTimeFormat('d.m.Y H:i:s');
            $grid->AddExportColumn($column);
            
            //
            // View column for tipo_documento field
            //
            $column = new TextViewColumn('tipo_documento', 'tipo_documento', 'Tipo Documento', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for local_destino field
            //
            $column = new TextViewColumn('local_destino', 'local_destino', 'Local Destino', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for finalidade_emissao field
            //
            $column = new TextViewColumn('finalidade_emissao', 'finalidade_emissao', 'Finalidade Emissao', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for consumidor_final field
            //
            $column = new TextViewColumn('consumidor_final', 'consumidor_final', 'Consumidor Final', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for presenca_comprador field
            //
            $column = new TextViewColumn('presenca_comprador', 'presenca_comprador', 'Presenca Comprador', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for colecao____________________notas_referenciadas field
            //
            $column = new TextViewColumn('colecao____________________notas_referenciadas', 'colecao____________________notas_referenciadas', 'Colecao                    Notas Referenciadas', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for colecao____________________pessoas_autorizadas field
            //
            $column = new TextViewColumn('colecao____________________pessoas_autorizadas', 'colecao____________________pessoas_autorizadas', 'Colecao                    Pessoas Autorizadas', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for cnpj_emitente field
            //
            $column = new TextViewColumn('cnpj_emitente', 'cnpj_emitente', 'Cnpj Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for nome_emitente field
            //
            $column = new TextViewColumn('nome_emitente', 'nome_emitente', 'Nome Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for nome_fantasia_emitente field
            //
            $column = new TextViewColumn('nome_fantasia_emitente', 'nome_fantasia_emitente', 'Nome Fantasia Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for logradouro_emitente field
            //
            $column = new TextViewColumn('logradouro_emitente', 'logradouro_emitente', 'Logradouro Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for numero_emitente field
            //
            $column = new TextViewColumn('numero_emitente', 'numero_emitente', 'Numero Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for complemento_emitente field
            //
            $column = new TextViewColumn('complemento_emitente', 'complemento_emitente', 'Complemento Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for bairro_emitente field
            //
            $column = new TextViewColumn('bairro_emitente', 'bairro_emitente', 'Bairro Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for prestador_codigo_municipio field
            //
            $column = new TextViewColumn('prestador_codigo_municipio', 'prestador_codigo_municipio', 'Prestador Codigo Municipio', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for municipio_emitente field
            //
            $column = new TextViewColumn('municipio_emitente', 'municipio_emitente', 'Municipio Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for uf_emitente field
            //
            $column = new TextViewColumn('uf_emitente', 'uf_emitente', 'Uf Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for cep_emitente field
            //
            $column = new TextViewColumn('cep_emitente', 'cep_emitente', 'Cep Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for telefone_emitente field
            //
            $column = new TextViewColumn('telefone_emitente', 'telefone_emitente', 'Telefone Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for inscricao_estadual_emitenete field
            //
            $column = new TextViewColumn('inscricao_estadual_emitenete', 'inscricao_estadual_emitenete', 'Inscricao Estadual Emitenete', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for inscricao_estadual_st_emitente field
            //
            $column = new TextViewColumn('inscricao_estadual_st_emitente', 'inscricao_estadual_st_emitente', 'Inscricao Estadual St Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for inscricao_municipal_emitente field
            //
            $column = new TextViewColumn('inscricao_municipal_emitente', 'inscricao_municipal_emitente', 'Inscricao Municipal Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for cnae_emitente field
            //
            $column = new TextViewColumn('cnae_emitente', 'cnae_emitente', 'Cnae Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for regime_tributario_emitente field
            //
            $column = new TextViewColumn('regime_tributario_emitente', 'regime_tributario_emitente', 'Regime Tributario Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for cnpj_destinatario field
            //
            $column = new TextViewColumn('cnpj_destinatario', 'cnpj_destinatario', 'Cnpj Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for cpf_destinatario field
            //
            $column = new TextViewColumn('cpf_destinatario', 'cpf_destinatario', 'Cpf Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for id_estrangeiro_destinatario field
            //
            $column = new TextViewColumn('id_estrangeiro_destinatario', 'id_estrangeiro_destinatario', 'Id Estrangeiro Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for nome_destinatario field
            //
            $column = new TextViewColumn('nome_destinatario', 'nome_destinatario', 'Nome Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for logradoura_destinatario field
            //
            $column = new TextViewColumn('logradoura_destinatario', 'logradoura_destinatario', 'Logradoura Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for numero_destinatario field
            //
            $column = new TextViewColumn('numero_destinatario', 'numero_destinatario', 'Numero Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for complemento_destinatario field
            //
            $column = new TextViewColumn('complemento_destinatario', 'complemento_destinatario', 'Complemento Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for bairro_destinatario field
            //
            $column = new TextViewColumn('bairro_destinatario', 'bairro_destinatario', 'Bairro Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for codigo_municipio_destinatario field
            //
            $column = new TextViewColumn('codigo_municipio_destinatario', 'codigo_municipio_destinatario', 'Codigo Municipio Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for municipio_destinatario field
            //
            $column = new TextViewColumn('municipio_destinatario', 'municipio_destinatario', 'Municipio Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for uf_destinatario field
            //
            $column = new TextViewColumn('uf_destinatario', 'uf_destinatario', 'Uf Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for cep_destinatario field
            //
            $column = new TextViewColumn('cep_destinatario', 'cep_destinatario', 'Cep Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for pais_destinatario field
            //
            $column = new TextViewColumn('pais_destinatario', 'pais_destinatario', 'Pais Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for telefone_destinatario field
            //
            $column = new TextViewColumn('telefone_destinatario', 'telefone_destinatario', 'Telefone Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for indicador_inscricao_estadual_destinatario field
            //
            $column = new TextViewColumn('indicador_inscricao_estadual_destinatario', 'indicador_inscricao_estadual_destinatario', 'Indicador Inscricao Estadual Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for inscricao_estadual_destinatario field
            //
            $column = new TextViewColumn('inscricao_estadual_destinatario', 'inscricao_estadual_destinatario', 'Inscricao Estadual Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for inscricao_suframa_destinatario field
            //
            $column = new TextViewColumn('inscricao_suframa_destinatario', 'inscricao_suframa_destinatario', 'Inscricao Suframa Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for email_destinatario field
            //
            $column = new TextViewColumn('email_destinatario', 'email_destinatario', 'Email Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for inscricao_municipal_destinatario field
            //
            $column = new TextViewColumn('inscricao_municipal_destinatario', 'inscricao_municipal_destinatario', 'Inscricao Municipal Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for cnpj_retirada field
            //
            $column = new TextViewColumn('cnpj_retirada', 'cnpj_retirada', 'Cnpj Retirada', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for cpf_retirada field
            //
            $column = new TextViewColumn('cpf_retirada', 'cpf_retirada', 'Cpf Retirada', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for logradoura_retirada field
            //
            $column = new TextViewColumn('logradoura_retirada', 'logradoura_retirada', 'Logradoura Retirada', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for numero_retirada field
            //
            $column = new TextViewColumn('numero_retirada', 'numero_retirada', 'Numero Retirada', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for complemento_retirada field
            //
            $column = new TextViewColumn('complemento_retirada', 'complemento_retirada', 'Complemento Retirada', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for bairro_retirada field
            //
            $column = new TextViewColumn('bairro_retirada', 'bairro_retirada', 'Bairro Retirada', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for codigo_municipio_retirada field
            //
            $column = new TextViewColumn('codigo_municipio_retirada', 'codigo_municipio_retirada', 'Codigo Municipio Retirada', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for municipio_retirada field
            //
            $column = new TextViewColumn('municipio_retirada', 'municipio_retirada', 'Municipio Retirada', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for uf_retirada field
            //
            $column = new TextViewColumn('uf_retirada', 'uf_retirada', 'Uf Retirada', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for cnpj_entrega field
            //
            $column = new TextViewColumn('cnpj_entrega', 'cnpj_entrega', 'Cnpj Entrega', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for cpf_entrega field
            //
            $column = new TextViewColumn('cpf_entrega', 'cpf_entrega', 'Cpf Entrega', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for logradouro_entrega field
            //
            $column = new TextViewColumn('logradouro_entrega', 'logradouro_entrega', 'Logradouro Entrega', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for numero_entrega field
            //
            $column = new TextViewColumn('numero_entrega', 'numero_entrega', 'Numero Entrega', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for complemento_entrega field
            //
            $column = new TextViewColumn('complemento_entrega', 'complemento_entrega', 'Complemento Entrega', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for bairro_entrega field
            //
            $column = new TextViewColumn('bairro_entrega', 'bairro_entrega', 'Bairro Entrega', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for codigo_municipio_entrega field
            //
            $column = new TextViewColumn('codigo_municipio_entrega', 'codigo_municipio_entrega', 'Codigo Municipio Entrega', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for municipio_entrega field
            //
            $column = new TextViewColumn('municipio_entrega', 'municipio_entrega', 'Municipio Entrega', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for uf_entrega field
            //
            $column = new TextViewColumn('uf_entrega', 'uf_entrega', 'Uf Entrega', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for colecao____________________itens field
            //
            $column = new TextViewColumn('colecao____________________itens', 'colecao____________________itens', 'Colecao                    Itens', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for icms_base_calculo field
            //
            $column = new TextViewColumn('icms_base_calculo', 'icms_base_calculo', 'Icms Base Calculo', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for icms_valor_total field
            //
            $column = new TextViewColumn('icms_valor_total', 'icms_valor_total', 'Icms Valor Total', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for icms_valor_total_desonerado field
            //
            $column = new TextViewColumn('icms_valor_total_desonerado', 'icms_valor_total_desonerado', 'Icms Valor Total Desonerado', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for icms_base_calculo_st field
            //
            $column = new TextViewColumn('icms_base_calculo_st', 'icms_base_calculo_st', 'Icms Base Calculo St', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for icms_valor_total_st field
            //
            $column = new TextViewColumn('icms_valor_total_st', 'icms_valor_total_st', 'Icms Valor Total St', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for valor_produtos field
            //
            $column = new TextViewColumn('valor_produtos', 'valor_produtos', 'Valor Produtos', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for valor_frete field
            //
            $column = new TextViewColumn('valor_frete', 'valor_frete', 'Valor Frete', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for valor_seguro field
            //
            $column = new TextViewColumn('valor_seguro', 'valor_seguro', 'Valor Seguro', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for valor_desconto field
            //
            $column = new TextViewColumn('valor_desconto', 'valor_desconto', 'Valor Desconto', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for valor_total_ii field
            //
            $column = new TextViewColumn('valor_total_ii', 'valor_total_ii', 'Valor Total Ii', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for valor_ipi field
            //
            $column = new TextViewColumn('valor_ipi', 'valor_ipi', 'Valor Ipi', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for valor_pis field
            //
            $column = new TextViewColumn('valor_pis', 'valor_pis', 'Valor Pis', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for valor_cofins field
            //
            $column = new TextViewColumn('valor_cofins', 'valor_cofins', 'Valor Cofins', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for valor_outras_despesas field
            //
            $column = new TextViewColumn('valor_outras_despesas', 'valor_outras_despesas', 'Valor Outras Despesas', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for valor_total field
            //
            $column = new TextViewColumn('valor_total', 'valor_total', 'Valor Total', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for valor_total_servicos field
            //
            $column = new TextViewColumn('valor_total_servicos', 'valor_total_servicos', 'Valor Total Servicos', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for base_issqn field
            //
            $column = new TextViewColumn('base_issqn', 'base_issqn', 'Base Issqn', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for valor_pis_servico field
            //
            $column = new TextViewColumn('valor_pis_servico', 'valor_pis_servico', 'Valor Pis Servico', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for data_prestacao_servico field
            //
            $column = new TextViewColumn('data_prestacao_servico', 'data_prestacao_servico', 'Data Prestacao Servico', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for valor_total_deducao_base_calculo field
            //
            $column = new TextViewColumn('valor_total_deducao_base_calculo', 'valor_total_deducao_base_calculo', 'Valor Total Deducao Base Calculo', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for valor_total_outras_retencoes field
            //
            $column = new TextViewColumn('valor_total_outras_retencoes', 'valor_total_outras_retencoes', 'Valor Total Outras Retencoes', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for valor_total_desconto_incondicionado field
            //
            $column = new TextViewColumn('valor_total_desconto_incondicionado', 'valor_total_desconto_incondicionado', 'Valor Total Desconto Incondicionado', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for valor_total_valor_condicionado field
            //
            $column = new TextViewColumn('valor_total_valor_condicionado', 'valor_total_valor_condicionado', 'Valor Total Valor Condicionado', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for valor_total_retencao_iss field
            //
            $column = new TextViewColumn('valor_total_retencao_iss', 'valor_total_retencao_iss', 'Valor Total Retencao Iss', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for codigo_regime_especial_tributacao field
            //
            $column = new TextViewColumn('codigo_regime_especial_tributacao', 'codigo_regime_especial_tributacao', 'Codigo Regime Especial Tributacao', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for valor_retido_pis field
            //
            $column = new TextViewColumn('valor_retido_pis', 'valor_retido_pis', 'Valor Retido Pis', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for valor_retido_cofins field
            //
            $column = new TextViewColumn('valor_retido_cofins', 'valor_retido_cofins', 'Valor Retido Cofins', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for valor_retido_csll field
            //
            $column = new TextViewColumn('valor_retido_csll', 'valor_retido_csll', 'Valor Retido Csll', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for base_calculo_irrf field
            //
            $column = new TextViewColumn('base_calculo_irrf', 'base_calculo_irrf', 'Base Calculo Irrf', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for valor_retido_irrf field
            //
            $column = new TextViewColumn('valor_retido_irrf', 'valor_retido_irrf', 'Valor Retido Irrf', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for prev_social_base_calculo field
            //
            $column = new TextViewColumn('prev_social_base_calculo', 'prev_social_base_calculo', 'Prev Social Base Calculo', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for prev_social_valor_retido field
            //
            $column = new TextViewColumn('prev_social_valor_retido', 'prev_social_valor_retido', 'Prev Social Valor Retido', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for modalidade_frete field
            //
            $column = new TextViewColumn('modalidade_frete', 'modalidade_frete', 'Modalidade Frete', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for cnpj_transportador field
            //
            $column = new TextViewColumn('cnpj_transportador', 'cnpj_transportador', 'Cnpj Transportador', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for cpf_transportador field
            //
            $column = new TextViewColumn('cpf_transportador', 'cpf_transportador', 'Cpf Transportador', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for nome_transportador field
            //
            $column = new TextViewColumn('nome_transportador', 'nome_transportador', 'Nome Transportador', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for inscricao_estadual_transportador field
            //
            $column = new TextViewColumn('inscricao_estadual_transportador', 'inscricao_estadual_transportador', 'Inscricao Estadual Transportador', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for endereco_transportador field
            //
            $column = new TextViewColumn('endereco_transportador', 'endereco_transportador', 'Endereco Transportador', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for municipio_transportador field
            //
            $column = new TextViewColumn('municipio_transportador', 'municipio_transportador', 'Municipio Transportador', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for uf_transportador field
            //
            $column = new TextViewColumn('uf_transportador', 'uf_transportador', 'Uf Transportador', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for transporte_icms_servico field
            //
            $column = new TextViewColumn('transporte_icms_servico', 'transporte_icms_servico', 'Transporte Icms Servico', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for transporte_icms_base_servico field
            //
            $column = new TextViewColumn('transporte_icms_base_servico', 'transporte_icms_base_servico', 'Transporte Icms Base Servico', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for transporte_icms_aliquota field
            //
            $column = new TextViewColumn('transporte_icms_aliquota', 'transporte_icms_aliquota', 'Transporte Icms Aliquota', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for transporte_icms_valor field
            //
            $column = new TextViewColumn('transporte_icms_valor', 'transporte_icms_valor', 'Transporte Icms Valor', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for transporte_icms_cfop field
            //
            $column = new TextViewColumn('transporte_icms_cfop', 'transporte_icms_cfop', 'Transporte Icms Cfop', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for transporte_icms_codigo_municipio field
            //
            $column = new TextViewColumn('transporte_icms_codigo_municipio', 'transporte_icms_codigo_municipio', 'Transporte Icms Codigo Municipio', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for veiculo_placa field
            //
            $column = new TextViewColumn('veiculo_placa', 'veiculo_placa', 'Veiculo Placa', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for veiculo_uf field
            //
            $column = new TextViewColumn('veiculo_uf', 'veiculo_uf', 'Veiculo Uf', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for veiculo_rntc field
            //
            $column = new TextViewColumn('veiculo_rntc', 'veiculo_rntc', 'Veiculo Rntc', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for veiculo_identificacao_vagao field
            //
            $column = new TextViewColumn('veiculo_identificacao_vagao', 'veiculo_identificacao_vagao', 'Veiculo Identificacao Vagao', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for veiculo_identificacao_balsa field
            //
            $column = new TextViewColumn('veiculo_identificacao_balsa', 'veiculo_identificacao_balsa', 'Veiculo Identificacao Balsa', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for colecao____________________volumes field
            //
            $column = new TextViewColumn('colecao____________________volumes', 'colecao____________________volumes', 'Colecao                    Volumes', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for numero_fatura field
            //
            $column = new TextViewColumn('numero_fatura', 'numero_fatura', 'Numero Fatura', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for valor_original_fatura field
            //
            $column = new TextViewColumn('valor_original_fatura', 'valor_original_fatura', 'Valor Original Fatura', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for valor_desconto_fatura field
            //
            $column = new TextViewColumn('valor_desconto_fatura', 'valor_desconto_fatura', 'Valor Desconto Fatura', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for valor_liquido_fatura field
            //
            $column = new TextViewColumn('valor_liquido_fatura', 'valor_liquido_fatura', 'Valor Liquido Fatura', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for colecao____________________duplicatas field
            //
            $column = new TextViewColumn('colecao____________________duplicatas', 'colecao____________________duplicatas', 'Colecao                    Duplicatas', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for informacoes_adicionais_contribuinte field
            //
            $column = new TextViewColumn('informacoes_adicionais_contribuinte', 'informacoes_adicionais_contribuinte', 'Informacoes Adicionais Contribuinte', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for uf_local_embarque field
            //
            $column = new TextViewColumn('uf_local_embarque', 'uf_local_embarque', 'Uf Local Embarque', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for local_embarque field
            //
            $column = new TextViewColumn('local_embarque', 'local_embarque', 'Local Embarque', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for local_despacho field
            //
            $column = new TextViewColumn('local_despacho', 'local_despacho', 'Local Despacho', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for colecao____________________formas_pagamento field
            //
            $column = new TextViewColumn('colecao____________________formas_pagamento', 'colecao____________________formas_pagamento', 'Colecao                    Formas Pagamento', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for operacao field
            //
            $column = new TextViewColumn('operacao', 'operacao', 'Operacao', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for tx_cancelamento field
            //
            $column = new TextViewColumn('tx_cancelamento', 'tx_cancelamento', 'Cancelamento', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
            
            //
            // View column for tx_correcao field
            //
            $column = new TextViewColumn('tx_correcao', 'tx_correcao', 'Tx Correcao', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddExportColumn($column);
        }
    
        private function AddCompareColumns(Grid $grid)
        {
            //
            // View column for id_notas field
            //
            $column = new TextViewColumn('id_notas', 'id_notas', 'Id Notas', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for id_licencas field
            //
            $column = new TextViewColumn('id_licencas', 'id_licencas', 'Id Licencas', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for chave field
            //
            $column = new TextViewColumn('chave', 'chave', 'Chave', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for sequencia field
            //
            $column = new TextViewColumn('sequencia', 'sequencia', 'Sequencia', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for tipo_nf field
            //
            $column = new TextViewColumn('tipo_nf', 'tipo_nf', 'Tipo Nf', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for dt_inclusao field
            //
            $column = new DateTimeViewColumn('dt_inclusao', 'dt_inclusao', 'Dt Inclusao', $this->dataset);
            $column->SetOrderable(true);
            $column->SetDateTimeFormat('d.m.Y H:i:s');
            $grid->AddCompareColumn($column);
            
            //
            // View column for dt_concluido field
            //
            $column = new DateTimeViewColumn('dt_concluido', 'dt_concluido', 'Dt Concluido', $this->dataset);
            $column->SetOrderable(true);
            $column->SetDateTimeFormat('d.m.Y H:i:s');
            $grid->AddCompareColumn($column);
            
            //
            // View column for st_nota field
            //
            $column = new TextViewColumn('st_nota', 'st_nota', 'St Nota', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for tx_obs field
            //
            $column = new TextViewColumn('tx_obs', 'tx_obs', 'Tx Obs', $this->dataset);
            $column->SetOrderable(true);
            $column->SetMaxLength(75);
            $column->SetFullTextWindowHandlerName('Notas_CanceladasGrid_tx_obs_handler_compare');
            $grid->AddCompareColumn($column);
            
            //
            // View column for nm_arquivo_retorno field
            //
            $column = new TextViewColumn('nm_arquivo_retorno', 'nm_arquivo_retorno', 'Nm Arquivo Retorno', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for natureza_operacao field
            //
            $column = new TextViewColumn('natureza_operacao', 'natureza_operacao', 'Natureza Operacao', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for forma_pagamento field
            //
            $column = new TextViewColumn('forma_pagamento', 'forma_pagamento', 'Forma Pagamento', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for data_emissao field
            //
            $column = new DateTimeViewColumn('data_emissao', 'data_emissao', 'Data Emissao', $this->dataset);
            $column->SetOrderable(true);
            $column->SetDateTimeFormat('Y-m-d');
            $grid->AddCompareColumn($column);
            
            //
            // View column for data_entrada_saida field
            //
            $column = new DateTimeViewColumn('data_entrada_saida', 'data_entrada_saida', 'Data Entrada Saida', $this->dataset);
            $column->SetOrderable(true);
            $column->SetDateTimeFormat('d.m.Y H:i:s');
            $grid->AddCompareColumn($column);
            
            //
            // View column for tipo_documento field
            //
            $column = new TextViewColumn('tipo_documento', 'tipo_documento', 'Tipo Documento', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for local_destino field
            //
            $column = new TextViewColumn('local_destino', 'local_destino', 'Local Destino', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for finalidade_emissao field
            //
            $column = new TextViewColumn('finalidade_emissao', 'finalidade_emissao', 'Finalidade Emissao', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for consumidor_final field
            //
            $column = new TextViewColumn('consumidor_final', 'consumidor_final', 'Consumidor Final', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for presenca_comprador field
            //
            $column = new TextViewColumn('presenca_comprador', 'presenca_comprador', 'Presenca Comprador', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for colecao____________________notas_referenciadas field
            //
            $column = new TextViewColumn('colecao____________________notas_referenciadas', 'colecao____________________notas_referenciadas', 'Colecao                    Notas Referenciadas', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for colecao____________________pessoas_autorizadas field
            //
            $column = new TextViewColumn('colecao____________________pessoas_autorizadas', 'colecao____________________pessoas_autorizadas', 'Colecao                    Pessoas Autorizadas', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for cnpj_emitente field
            //
            $column = new TextViewColumn('cnpj_emitente', 'cnpj_emitente', 'Cnpj Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for nome_emitente field
            //
            $column = new TextViewColumn('nome_emitente', 'nome_emitente', 'Nome Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for nome_fantasia_emitente field
            //
            $column = new TextViewColumn('nome_fantasia_emitente', 'nome_fantasia_emitente', 'Nome Fantasia Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for logradouro_emitente field
            //
            $column = new TextViewColumn('logradouro_emitente', 'logradouro_emitente', 'Logradouro Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for numero_emitente field
            //
            $column = new TextViewColumn('numero_emitente', 'numero_emitente', 'Numero Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for complemento_emitente field
            //
            $column = new TextViewColumn('complemento_emitente', 'complemento_emitente', 'Complemento Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for bairro_emitente field
            //
            $column = new TextViewColumn('bairro_emitente', 'bairro_emitente', 'Bairro Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for prestador_codigo_municipio field
            //
            $column = new TextViewColumn('prestador_codigo_municipio', 'prestador_codigo_municipio', 'Prestador Codigo Municipio', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for municipio_emitente field
            //
            $column = new TextViewColumn('municipio_emitente', 'municipio_emitente', 'Municipio Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for uf_emitente field
            //
            $column = new TextViewColumn('uf_emitente', 'uf_emitente', 'Uf Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for cep_emitente field
            //
            $column = new TextViewColumn('cep_emitente', 'cep_emitente', 'Cep Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for telefone_emitente field
            //
            $column = new TextViewColumn('telefone_emitente', 'telefone_emitente', 'Telefone Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for inscricao_estadual_emitenete field
            //
            $column = new TextViewColumn('inscricao_estadual_emitenete', 'inscricao_estadual_emitenete', 'Inscricao Estadual Emitenete', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for inscricao_estadual_st_emitente field
            //
            $column = new TextViewColumn('inscricao_estadual_st_emitente', 'inscricao_estadual_st_emitente', 'Inscricao Estadual St Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for inscricao_municipal_emitente field
            //
            $column = new TextViewColumn('inscricao_municipal_emitente', 'inscricao_municipal_emitente', 'Inscricao Municipal Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for cnae_emitente field
            //
            $column = new TextViewColumn('cnae_emitente', 'cnae_emitente', 'Cnae Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for regime_tributario_emitente field
            //
            $column = new TextViewColumn('regime_tributario_emitente', 'regime_tributario_emitente', 'Regime Tributario Emitente', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for cnpj_destinatario field
            //
            $column = new TextViewColumn('cnpj_destinatario', 'cnpj_destinatario', 'Cnpj Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for cpf_destinatario field
            //
            $column = new TextViewColumn('cpf_destinatario', 'cpf_destinatario', 'Cpf Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for id_estrangeiro_destinatario field
            //
            $column = new TextViewColumn('id_estrangeiro_destinatario', 'id_estrangeiro_destinatario', 'Id Estrangeiro Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for nome_destinatario field
            //
            $column = new TextViewColumn('nome_destinatario', 'nome_destinatario', 'Nome Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for logradoura_destinatario field
            //
            $column = new TextViewColumn('logradoura_destinatario', 'logradoura_destinatario', 'Logradoura Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for numero_destinatario field
            //
            $column = new TextViewColumn('numero_destinatario', 'numero_destinatario', 'Numero Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for complemento_destinatario field
            //
            $column = new TextViewColumn('complemento_destinatario', 'complemento_destinatario', 'Complemento Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for bairro_destinatario field
            //
            $column = new TextViewColumn('bairro_destinatario', 'bairro_destinatario', 'Bairro Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for codigo_municipio_destinatario field
            //
            $column = new TextViewColumn('codigo_municipio_destinatario', 'codigo_municipio_destinatario', 'Codigo Municipio Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for municipio_destinatario field
            //
            $column = new TextViewColumn('municipio_destinatario', 'municipio_destinatario', 'Municipio Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for uf_destinatario field
            //
            $column = new TextViewColumn('uf_destinatario', 'uf_destinatario', 'Uf Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for cep_destinatario field
            //
            $column = new TextViewColumn('cep_destinatario', 'cep_destinatario', 'Cep Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for pais_destinatario field
            //
            $column = new TextViewColumn('pais_destinatario', 'pais_destinatario', 'Pais Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for telefone_destinatario field
            //
            $column = new TextViewColumn('telefone_destinatario', 'telefone_destinatario', 'Telefone Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for indicador_inscricao_estadual_destinatario field
            //
            $column = new TextViewColumn('indicador_inscricao_estadual_destinatario', 'indicador_inscricao_estadual_destinatario', 'Indicador Inscricao Estadual Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for inscricao_estadual_destinatario field
            //
            $column = new TextViewColumn('inscricao_estadual_destinatario', 'inscricao_estadual_destinatario', 'Inscricao Estadual Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for inscricao_suframa_destinatario field
            //
            $column = new TextViewColumn('inscricao_suframa_destinatario', 'inscricao_suframa_destinatario', 'Inscricao Suframa Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for email_destinatario field
            //
            $column = new TextViewColumn('email_destinatario', 'email_destinatario', 'Email Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for inscricao_municipal_destinatario field
            //
            $column = new TextViewColumn('inscricao_municipal_destinatario', 'inscricao_municipal_destinatario', 'Inscricao Municipal Destinatario', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for cnpj_retirada field
            //
            $column = new TextViewColumn('cnpj_retirada', 'cnpj_retirada', 'Cnpj Retirada', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for cpf_retirada field
            //
            $column = new TextViewColumn('cpf_retirada', 'cpf_retirada', 'Cpf Retirada', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for logradoura_retirada field
            //
            $column = new TextViewColumn('logradoura_retirada', 'logradoura_retirada', 'Logradoura Retirada', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for numero_retirada field
            //
            $column = new TextViewColumn('numero_retirada', 'numero_retirada', 'Numero Retirada', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for complemento_retirada field
            //
            $column = new TextViewColumn('complemento_retirada', 'complemento_retirada', 'Complemento Retirada', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for bairro_retirada field
            //
            $column = new TextViewColumn('bairro_retirada', 'bairro_retirada', 'Bairro Retirada', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for codigo_municipio_retirada field
            //
            $column = new TextViewColumn('codigo_municipio_retirada', 'codigo_municipio_retirada', 'Codigo Municipio Retirada', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for municipio_retirada field
            //
            $column = new TextViewColumn('municipio_retirada', 'municipio_retirada', 'Municipio Retirada', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for uf_retirada field
            //
            $column = new TextViewColumn('uf_retirada', 'uf_retirada', 'Uf Retirada', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for cnpj_entrega field
            //
            $column = new TextViewColumn('cnpj_entrega', 'cnpj_entrega', 'Cnpj Entrega', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for cpf_entrega field
            //
            $column = new TextViewColumn('cpf_entrega', 'cpf_entrega', 'Cpf Entrega', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for logradouro_entrega field
            //
            $column = new TextViewColumn('logradouro_entrega', 'logradouro_entrega', 'Logradouro Entrega', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for numero_entrega field
            //
            $column = new TextViewColumn('numero_entrega', 'numero_entrega', 'Numero Entrega', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for complemento_entrega field
            //
            $column = new TextViewColumn('complemento_entrega', 'complemento_entrega', 'Complemento Entrega', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for bairro_entrega field
            //
            $column = new TextViewColumn('bairro_entrega', 'bairro_entrega', 'Bairro Entrega', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for codigo_municipio_entrega field
            //
            $column = new TextViewColumn('codigo_municipio_entrega', 'codigo_municipio_entrega', 'Codigo Municipio Entrega', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for municipio_entrega field
            //
            $column = new TextViewColumn('municipio_entrega', 'municipio_entrega', 'Municipio Entrega', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for uf_entrega field
            //
            $column = new TextViewColumn('uf_entrega', 'uf_entrega', 'Uf Entrega', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for colecao____________________itens field
            //
            $column = new TextViewColumn('colecao____________________itens', 'colecao____________________itens', 'Colecao                    Itens', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for icms_base_calculo field
            //
            $column = new TextViewColumn('icms_base_calculo', 'icms_base_calculo', 'Icms Base Calculo', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for icms_valor_total field
            //
            $column = new TextViewColumn('icms_valor_total', 'icms_valor_total', 'Icms Valor Total', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for icms_valor_total_desonerado field
            //
            $column = new TextViewColumn('icms_valor_total_desonerado', 'icms_valor_total_desonerado', 'Icms Valor Total Desonerado', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for icms_base_calculo_st field
            //
            $column = new TextViewColumn('icms_base_calculo_st', 'icms_base_calculo_st', 'Icms Base Calculo St', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for icms_valor_total_st field
            //
            $column = new TextViewColumn('icms_valor_total_st', 'icms_valor_total_st', 'Icms Valor Total St', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for valor_produtos field
            //
            $column = new TextViewColumn('valor_produtos', 'valor_produtos', 'Valor Produtos', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for valor_frete field
            //
            $column = new TextViewColumn('valor_frete', 'valor_frete', 'Valor Frete', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for valor_seguro field
            //
            $column = new TextViewColumn('valor_seguro', 'valor_seguro', 'Valor Seguro', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for valor_desconto field
            //
            $column = new TextViewColumn('valor_desconto', 'valor_desconto', 'Valor Desconto', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for valor_total_ii field
            //
            $column = new TextViewColumn('valor_total_ii', 'valor_total_ii', 'Valor Total Ii', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for valor_ipi field
            //
            $column = new TextViewColumn('valor_ipi', 'valor_ipi', 'Valor Ipi', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for valor_pis field
            //
            $column = new TextViewColumn('valor_pis', 'valor_pis', 'Valor Pis', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for valor_cofins field
            //
            $column = new TextViewColumn('valor_cofins', 'valor_cofins', 'Valor Cofins', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for valor_outras_despesas field
            //
            $column = new TextViewColumn('valor_outras_despesas', 'valor_outras_despesas', 'Valor Outras Despesas', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for valor_total field
            //
            $column = new TextViewColumn('valor_total', 'valor_total', 'Valor Total', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for valor_total_servicos field
            //
            $column = new TextViewColumn('valor_total_servicos', 'valor_total_servicos', 'Valor Total Servicos', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for base_issqn field
            //
            $column = new TextViewColumn('base_issqn', 'base_issqn', 'Base Issqn', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for valor_pis_servico field
            //
            $column = new TextViewColumn('valor_pis_servico', 'valor_pis_servico', 'Valor Pis Servico', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for data_prestacao_servico field
            //
            $column = new TextViewColumn('data_prestacao_servico', 'data_prestacao_servico', 'Data Prestacao Servico', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for valor_total_deducao_base_calculo field
            //
            $column = new TextViewColumn('valor_total_deducao_base_calculo', 'valor_total_deducao_base_calculo', 'Valor Total Deducao Base Calculo', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for valor_total_outras_retencoes field
            //
            $column = new TextViewColumn('valor_total_outras_retencoes', 'valor_total_outras_retencoes', 'Valor Total Outras Retencoes', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for valor_total_desconto_incondicionado field
            //
            $column = new TextViewColumn('valor_total_desconto_incondicionado', 'valor_total_desconto_incondicionado', 'Valor Total Desconto Incondicionado', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for valor_total_valor_condicionado field
            //
            $column = new TextViewColumn('valor_total_valor_condicionado', 'valor_total_valor_condicionado', 'Valor Total Valor Condicionado', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for valor_total_retencao_iss field
            //
            $column = new TextViewColumn('valor_total_retencao_iss', 'valor_total_retencao_iss', 'Valor Total Retencao Iss', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for codigo_regime_especial_tributacao field
            //
            $column = new TextViewColumn('codigo_regime_especial_tributacao', 'codigo_regime_especial_tributacao', 'Codigo Regime Especial Tributacao', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for valor_retido_pis field
            //
            $column = new TextViewColumn('valor_retido_pis', 'valor_retido_pis', 'Valor Retido Pis', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for valor_retido_cofins field
            //
            $column = new TextViewColumn('valor_retido_cofins', 'valor_retido_cofins', 'Valor Retido Cofins', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for valor_retido_csll field
            //
            $column = new TextViewColumn('valor_retido_csll', 'valor_retido_csll', 'Valor Retido Csll', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for base_calculo_irrf field
            //
            $column = new TextViewColumn('base_calculo_irrf', 'base_calculo_irrf', 'Base Calculo Irrf', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for valor_retido_irrf field
            //
            $column = new TextViewColumn('valor_retido_irrf', 'valor_retido_irrf', 'Valor Retido Irrf', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for prev_social_base_calculo field
            //
            $column = new TextViewColumn('prev_social_base_calculo', 'prev_social_base_calculo', 'Prev Social Base Calculo', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for prev_social_valor_retido field
            //
            $column = new TextViewColumn('prev_social_valor_retido', 'prev_social_valor_retido', 'Prev Social Valor Retido', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for modalidade_frete field
            //
            $column = new TextViewColumn('modalidade_frete', 'modalidade_frete', 'Modalidade Frete', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for cnpj_transportador field
            //
            $column = new TextViewColumn('cnpj_transportador', 'cnpj_transportador', 'Cnpj Transportador', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for cpf_transportador field
            //
            $column = new TextViewColumn('cpf_transportador', 'cpf_transportador', 'Cpf Transportador', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for nome_transportador field
            //
            $column = new TextViewColumn('nome_transportador', 'nome_transportador', 'Nome Transportador', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for inscricao_estadual_transportador field
            //
            $column = new TextViewColumn('inscricao_estadual_transportador', 'inscricao_estadual_transportador', 'Inscricao Estadual Transportador', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for endereco_transportador field
            //
            $column = new TextViewColumn('endereco_transportador', 'endereco_transportador', 'Endereco Transportador', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for municipio_transportador field
            //
            $column = new TextViewColumn('municipio_transportador', 'municipio_transportador', 'Municipio Transportador', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for uf_transportador field
            //
            $column = new TextViewColumn('uf_transportador', 'uf_transportador', 'Uf Transportador', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for transporte_icms_servico field
            //
            $column = new TextViewColumn('transporte_icms_servico', 'transporte_icms_servico', 'Transporte Icms Servico', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for transporte_icms_base_servico field
            //
            $column = new TextViewColumn('transporte_icms_base_servico', 'transporte_icms_base_servico', 'Transporte Icms Base Servico', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for transporte_icms_aliquota field
            //
            $column = new TextViewColumn('transporte_icms_aliquota', 'transporte_icms_aliquota', 'Transporte Icms Aliquota', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for transporte_icms_valor field
            //
            $column = new TextViewColumn('transporte_icms_valor', 'transporte_icms_valor', 'Transporte Icms Valor', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for transporte_icms_cfop field
            //
            $column = new TextViewColumn('transporte_icms_cfop', 'transporte_icms_cfop', 'Transporte Icms Cfop', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for transporte_icms_codigo_municipio field
            //
            $column = new TextViewColumn('transporte_icms_codigo_municipio', 'transporte_icms_codigo_municipio', 'Transporte Icms Codigo Municipio', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for veiculo_placa field
            //
            $column = new TextViewColumn('veiculo_placa', 'veiculo_placa', 'Veiculo Placa', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for veiculo_uf field
            //
            $column = new TextViewColumn('veiculo_uf', 'veiculo_uf', 'Veiculo Uf', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for veiculo_rntc field
            //
            $column = new TextViewColumn('veiculo_rntc', 'veiculo_rntc', 'Veiculo Rntc', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for veiculo_identificacao_vagao field
            //
            $column = new TextViewColumn('veiculo_identificacao_vagao', 'veiculo_identificacao_vagao', 'Veiculo Identificacao Vagao', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for veiculo_identificacao_balsa field
            //
            $column = new TextViewColumn('veiculo_identificacao_balsa', 'veiculo_identificacao_balsa', 'Veiculo Identificacao Balsa', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for colecao____________________volumes field
            //
            $column = new TextViewColumn('colecao____________________volumes', 'colecao____________________volumes', 'Colecao                    Volumes', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for numero_fatura field
            //
            $column = new TextViewColumn('numero_fatura', 'numero_fatura', 'Numero Fatura', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for valor_original_fatura field
            //
            $column = new TextViewColumn('valor_original_fatura', 'valor_original_fatura', 'Valor Original Fatura', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for valor_desconto_fatura field
            //
            $column = new TextViewColumn('valor_desconto_fatura', 'valor_desconto_fatura', 'Valor Desconto Fatura', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for valor_liquido_fatura field
            //
            $column = new TextViewColumn('valor_liquido_fatura', 'valor_liquido_fatura', 'Valor Liquido Fatura', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for colecao____________________duplicatas field
            //
            $column = new TextViewColumn('colecao____________________duplicatas', 'colecao____________________duplicatas', 'Colecao                    Duplicatas', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for informacoes_adicionais_contribuinte field
            //
            $column = new TextViewColumn('informacoes_adicionais_contribuinte', 'informacoes_adicionais_contribuinte', 'Informacoes Adicionais Contribuinte', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for uf_local_embarque field
            //
            $column = new TextViewColumn('uf_local_embarque', 'uf_local_embarque', 'Uf Local Embarque', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for local_embarque field
            //
            $column = new TextViewColumn('local_embarque', 'local_embarque', 'Local Embarque', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for local_despacho field
            //
            $column = new TextViewColumn('local_despacho', 'local_despacho', 'Local Despacho', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for colecao____________________formas_pagamento field
            //
            $column = new TextViewColumn('colecao____________________formas_pagamento', 'colecao____________________formas_pagamento', 'Colecao                    Formas Pagamento', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for operacao field
            //
            $column = new TextViewColumn('operacao', 'operacao', 'Operacao', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for tx_cancelamento field
            //
            $column = new TextViewColumn('tx_cancelamento', 'tx_cancelamento', 'Cancelamento', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
            
            //
            // View column for tx_correcao field
            //
            $column = new TextViewColumn('tx_correcao', 'tx_correcao', 'Tx Correcao', $this->dataset);
            $column->SetOrderable(true);
            $grid->AddCompareColumn($column);
        }
    
        private function AddCompareHeaderColumns(Grid $grid)
        {
    
        }
    
        public function GetPageDirection()
        {
            return null;
        }
    
        public function isFilterConditionRequired()
        {
            return false;
        }
    
        protected function ApplyCommonColumnEditProperties(CustomEditColumn $column)
        {
            $column->SetDisplaySetToNullCheckBox(false);
            $column->SetDisplaySetToDefaultCheckBox(false);
    		$column->SetVariableContainer($this->GetColumnVariableContainer());
        }
    
        function GetCustomClientScript()
        {
            return ;
        }
        
        function GetOnPageLoadedClientScript()
        {
            return ;
        }
    
        protected function CreateGrid()
        {
            $result = new Grid($this, $this->dataset);
            if ($this->GetSecurityInfo()->HasDeleteGrant())
               $result->SetAllowDeleteSelected(false);
            else
               $result->SetAllowDeleteSelected(false);   
            
            ApplyCommonPageSettings($this, $result);
            
            $result->SetUseImagesForActions(true);
            $result->SetUseFixedHeader(false);
            $result->SetShowLineNumbers(false);
            $result->SetViewMode(ViewMode::TABLE);
            $result->setEnableRuntimeCustomization(true);
            $result->setAllowCompare(true);
            $this->AddCompareHeaderColumns($result);
            $this->AddCompareColumns($result);
            $result->setMultiEditAllowed($this->GetSecurityInfo()->HasEditGrant() && false);
            $result->setTableBordered(false);
            $result->setTableCondensed(false);
            
            $result->SetHighlightRowAtHover(false);
            $result->SetWidth('');
            $this->AddOperationsColumns($result);
            $this->AddFieldColumns($result);
            $this->AddSingleRecordViewColumns($result);
            $this->AddEditColumns($result);
            $this->AddMultiEditColumns($result);
            $this->AddInsertColumns($result);
            $this->AddPrintColumns($result);
            $this->AddExportColumns($result);
            $this->AddMultiUploadColumn($result);
    
    
            $this->SetShowPageList(true);
            $this->SetShowTopPageNavigator(true);
            $this->SetShowBottomPageNavigator(true);
            $this->setPrintListAvailable(true);
            $this->setPrintListRecordAvailable(false);
            $this->setPrintOneRecordAvailable(true);
            $this->setAllowPrintSelectedRecords(true);
            $this->setExportListAvailable(array('pdf', 'excel', 'word', 'xml', 'csv'));
            $this->setExportSelectedRecordsAvailable(array('pdf', 'excel', 'word', 'xml', 'csv'));
            $this->setExportListRecordAvailable(array());
            $this->setExportOneRecordAvailable(array('pdf', 'excel', 'word', 'xml', 'csv'));
    
            return $result;
        }
     
        protected function setClientSideEvents(Grid $grid) {
    
        }
    
        protected function doRegisterHandlers() {
            //
            // View column for tx_obs field
            //
            $column = new TextViewColumn('tx_obs', 'tx_obs', 'Tx Obs', $this->dataset);
            $column->SetOrderable(true);
            $handler = new ShowTextBlobHandler($this->dataset, $this, 'Notas_CanceladasGrid_tx_obs_handler_list', $column);
            GetApplication()->RegisterHTTPHandler($handler);
            
            //
            // View column for tx_obs field
            //
            $column = new TextViewColumn('tx_obs', 'tx_obs', 'Tx Obs', $this->dataset);
            $column->SetOrderable(true);
            $handler = new ShowTextBlobHandler($this->dataset, $this, 'Notas_CanceladasGrid_tx_obs_handler_print', $column);
            GetApplication()->RegisterHTTPHandler($handler);
            
            //
            // View column for tx_obs field
            //
            $column = new TextViewColumn('tx_obs', 'tx_obs', 'Tx Obs', $this->dataset);
            $column->SetOrderable(true);
            $handler = new ShowTextBlobHandler($this->dataset, $this, 'Notas_CanceladasGrid_tx_obs_handler_compare', $column);
            GetApplication()->RegisterHTTPHandler($handler);
            
            //
            // View column for tx_obs field
            //
            $column = new TextViewColumn('tx_obs', 'tx_obs', 'Tx Obs', $this->dataset);
            $column->SetOrderable(true);
            $handler = new ShowTextBlobHandler($this->dataset, $this, 'Notas_CanceladasGrid_tx_obs_handler_view', $column);
            GetApplication()->RegisterHTTPHandler($handler);
        }
       
        protected function doCustomRenderColumn($fieldName, $fieldData, $rowData, &$customText, &$handled)
        { 
    
        }
    
        protected function doCustomRenderPrintColumn($fieldName, $fieldData, $rowData, &$customText, &$handled)
        { 
    
        }
    
        protected function doCustomRenderExportColumn($exportType, $fieldName, $fieldData, $rowData, &$customText, &$handled)
        { 
    
        }
    
        protected function doCustomDrawRow($rowData, &$cellFontColor, &$cellFontSize, &$cellBgColor, &$cellItalicAttr, &$cellBoldAttr)
        {
    
        }
    
        protected function doExtendedCustomDrawRow($rowData, &$rowCellStyles, &$rowStyles, &$rowClasses, &$cellClasses)
        {
    
        }
    
        protected function doCustomRenderTotal($totalValue, $aggregate, $columnName, &$customText, &$handled)
        {
    
        }
    
        protected function doCustomDefaultValues(&$values, &$handled) 
        {
    
        }
    
        protected function doCustomCompareColumn($columnName, $valueA, $valueB, &$result)
        {
    
        }
    
        protected function doBeforeInsertRecord($page, &$rowData, $tableName, &$cancel, &$message, &$messageDisplayTime)
        {
    
        }
    
        protected function doBeforeUpdateRecord($page, $oldRowData, &$rowData, $tableName, &$cancel, &$message, &$messageDisplayTime)
        {
    
        }
    
        protected function doBeforeDeleteRecord($page, &$rowData, $tableName, &$cancel, &$message, &$messageDisplayTime)
        {
    
        }
    
        protected function doAfterInsertRecord($page, $rowData, $tableName, &$success, &$message, &$messageDisplayTime)
        {
    
        }
    
        protected function doAfterUpdateRecord($page, $oldRowData, $rowData, $tableName, &$success, &$message, &$messageDisplayTime)
        {
    
        }
    
        protected function doAfterDeleteRecord($page, $rowData, $tableName, &$success, &$message, &$messageDisplayTime)
        {
    
        }
    
        protected function doCustomHTMLHeader($page, &$customHtmlHeaderText)
        { 
    
        }
    
        protected function doGetCustomTemplate($type, $part, $mode, &$result, &$params)
        {
    
        }
    
        protected function doGetCustomExportOptions(Page $page, $exportType, $rowData, &$options)
        {
    
        }
    
        protected function doFileUpload($fieldName, $rowData, &$result, &$accept, $originalFileName, $originalFileExtension, $fileSize, $tempFileName)
        {
    
        }
    
        protected function doPrepareChart(Chart $chart)
        {
    
        }
    
        protected function doPrepareColumnFilter(ColumnFilter $columnFilter)
        {
    
        }
    
        protected function doPrepareFilterBuilder(FilterBuilder $filterBuilder, FixedKeysArray $columns)
        {
    
        }
    
        protected function doGetSelectionFilters(FixedKeysArray $columns, &$result)
        {
    
        }
    
        protected function doGetCustomFormLayout($mode, FixedKeysArray $columns, FormLayout $layout)
        {
    
        }
    
        protected function doGetCustomColumnGroup(FixedKeysArray $columns, ViewColumnGroup $columnGroup)
        {
    
        }
    
        protected function doPageLoaded()
        {
    
        }
    
        protected function doCalculateFields($rowData, $fieldName, &$value)
        {
    
        }
    
        protected function doGetCustomPagePermissions(Page $page, PermissionSet &$permissions, &$handled)
        {
    
        }
    
        protected function doGetCustomRecordPermissions(Page $page, &$usingCondition, $rowData, &$allowEdit, &$allowDelete, &$mergeWithDefault, &$handled)
        {
    
        }
    
    }

    SetUpUserAuthorization();

    try
    {
        $Page = new Notas_CanceladasPage("Notas_Canceladas", "Notas_Canceladas.php", GetCurrentUserPermissionSetForDataSource("Notas Canceladas"), 'UTF-8');
        $Page->SetRecordPermission(GetCurrentUserRecordPermissionsForDataSource("Notas Canceladas"));
        GetApplication()->SetMainPage($Page);
        GetApplication()->Run();
    }
    catch(Exception $e)
    {
        ShowErrorPage($e);
    }
	
