public override bool doEvent(int event_number, object arg)
        {
            switch (event_number)
            {
                #region - event_Load -

            case event_Load:
            {
                //InitEventCode event_Load

                                        #if ROBOT
                var_util.execDefinedRobot(this, var_alias);
                                        #else
                doEvent(event_Translate, null);
                doEvent(event_FormIsOpening, null);
                                        #endif

                //EndEventCode
                return(true);
            }

                #endregion

                #region - event_Translate -

            case event_Translate:
            {
                //InitEventCode event_Translate
                //EndEventCode
                return(true);
            }

                #endregion

                #region - event_FormIsOpening -

            case event_FormIsOpening:
            {
                //InitEventCode event_FormIsOpening

                ctrl_TxtCartao.AcquireTextBox(i_Form.TxtCartao, this, event_val_TxtCartao, 6);
                ctrl_TxtEmpresa.AcquireTextBox(i_Form.TxtEmpresa, this, event_val_TxtEmpresa, 6);
                ctrl_TxtNome.AcquireTextBox(i_Form.TxtNome, this, event_val_TxtNome, 20);
                ctrl_TxtLimTotal.AcquireTextBox(i_Form.TxtLimTotal, this, event_val_TxtLimTotal, "R$", 6);
                ctrl_TxtLimMensal.AcquireTextBox(i_Form.TxtLimMensal, this, event_val_TxtLimMensal, "R$", 6);
                ctrl_TxtCotaExtra.AcquireTextBox(i_Form.TxtCotaExtra, this, event_val_TxtCotaExtra, "R$", 6);

                ctrl_TxtCidade.AcquireTextBox(i_Form.TxtCidade, this, event_val_TxtCidade, 20, false);
                ctrl_TxtEstado.AcquireTextBox(i_Form.TxtEstado, this, event_val_TxtEstado, 20, false);

                ctrl_TxtCpf.AcquireTextBox(i_Form.TxtCpf, this, event_val_TxtCpf);
                ctrl_TxtCNPJ.AcquireTextBox(i_Form.TxtCNPJ, this, event_val_TxtCNPJ);

                if (header.get_tg_user_type() == TipoUsuario.Administrador ||
                    header.get_tg_user_type() == TipoUsuario.AdminGift ||
                    header.get_tg_user_type() == TipoUsuario.VendedorGift ||
                    header.get_tg_user_type() == TipoUsuario.Operador)
                {
                    ctrl_TxtEmpresa.SetTextBoxText(header.get_st_empresa());

                    i_Form.TxtEmpresa.ReadOnly = true;
                }

                if (header.get_tg_user_type() == TipoUsuario.SuperUser)
                {
                    i_Form.BtnExclui.Visible = true;
                }

                i_Form.CboSit.SelectedIndex = 3;
                i_Form.CboExp.SelectedIndex = 2;

                //EndEventCode
                return(true);
            }

                #endregion

                #region - robot_ShowDialog -

            case robot_ShowDialog:
            {
                //InitEventCode robot_ShowDialog
                //EndEventCode
                return(true);
            }

                #endregion

                #region - robot_CloseDialog -

            case robot_CloseDialog:
            {
                //InitEventCode robot_CloseDialog
                //EndEventCode
                return(true);
            }

                #endregion

                #region - event_Consultar -

            case event_Consultar:
            {
                //InitEventCode event_Consultar

                i_Form.BtnConsultar.Enabled = false;

                DadosConsultaCartoes dcc = new DadosConsultaCartoes();

                if (header.get_tg_user_type() == TipoUsuario.Administrador)
                {
                    dcc.set_st_empresa(header.get_st_empresa());
                }
                else
                {
                    dcc.set_st_cnpj(ctrl_TxtCNPJ.getTextBoxValue());
                    dcc.set_st_empresa(ctrl_TxtEmpresa.getTextBoxValue());
                }

                dcc.set_st_cpf(ctrl_TxtCpf.getTextBoxValue());
                dcc.set_st_cartao(ctrl_TxtCartao.getTextBoxValue());
                dcc.set_st_nome(ctrl_TxtNome.getTextBoxValue());
                dcc.set_vr_limTotal(ctrl_TxtLimTotal.getTextBoxValue_NumberStr());
                dcc.set_vr_limMensal(ctrl_TxtLimMensal.getTextBoxValue_NumberStr());
                dcc.set_vr_cotaExtra(ctrl_TxtCotaExtra.getTextBoxValue_NumberStr());

                dcc.set_st_cidade(ctrl_TxtCidade.getTextBoxValue());
                dcc.set_st_estado(ctrl_TxtEstado.getTextBoxValue());

                dcc.set_tg_bloqueado(i_Form.CboSit.SelectedIndex.ToString());
                dcc.set_tg_expedido(i_Form.CboExp.SelectedIndex.ToString());

                string st_csv_block = "";

                i_Form.LstCartao.Items.Clear();

                i_Form.LblCart.Text = "Processando...";
                Application.DoEvents();

                ArrayList full_memory = new ArrayList();

                if (var_exchange.fetch_consultaCartao(ref dcc,
                                                      ref header,
                                                      ref st_csv_block))
                {
                    while (st_csv_block != "")
                    {
                        ArrayList tmp_memory = new ArrayList();

                        if (var_exchange.fetch_memory(st_csv_block, "400", ref st_csv_block, ref tmp_memory))
                        {
                            for (int t = 0; t < tmp_memory.Count; ++t)
                            {
                                full_memory.Add(tmp_memory[t]);
                            }
                        }
                    }

                    string bloq = "";

                    if (i_Form.ChkAlfa.Checked)
                    {
                        ArrayList lst_sort = new ArrayList();
                        Hashtable hsh_sort = new Hashtable();

                        for (int t = 0; t < full_memory.Count; ++t)
                        {
                            DadosCartao dc = new DadosCartao(full_memory[t] as DataPortable);

                            lst_sort.Add(dc.get_st_proprietario() + dc.get_st_matricula());

                            hsh_sort [dc.get_st_proprietario() + dc.get_st_matricula()] = dc;
                        }

                        lst_sort.Sort();

                        for (int t = 0; t < lst_sort.Count; ++t)
                        {
                            DadosCartao dc = hsh_sort [lst_sort[t]] as DadosCartao;

                            if (dc.get_tg_status() == CartaoStatus.Bloqueado)
                            {
                                bloq = "Sim";
                            }
                            else
                            {
                                bloq = "Não";
                            }

                            string [] full_row = new string [] { dc.get_st_empresa() + "." + dc.get_st_matricula() + "-" + dc.get_st_titularidade(),
                                      bloq,
                                      dc.get_st_proprietario(),
                                                                 "R$ " + new money().formatToMoney(dc.get_vr_limiteTotal()),
                                                                 "R$ " + new money().formatToMoney(dc.get_vr_limiteMensal()),
                                                                 "R$ " + new money().formatToMoney(dc.get_vr_extraCota()),
                                                                 "R$ " + new money().formatToMoney(dc.get_vr_dispMes()),
                                                                 "R$ " + new money().formatToMoney(dc.get_vr_dispTotal()) };

                            i_Form.LstCartao.Items.Add(var_util.GetListViewItem(dc.get_st_cpf(), full_row));
                        }
                    }
                    else
                    {
                        for (int t = 0; t < full_memory.Count; ++t)
                        {
                            DadosCartao dc = new DadosCartao(full_memory[t] as DataPortable);

                            if (dc.get_tg_status() == CartaoStatus.Bloqueado)
                            {
                                bloq = "Sim";
                            }
                            else
                            {
                                bloq = "Não";
                            }

                            string [] full_row = new string [] { dc.get_st_empresa() + "." + dc.get_st_matricula() + "-" + dc.get_st_titularidade(),
                                      bloq,
                                      dc.get_st_proprietario(),
                                                                 "R$ " + new money().formatToMoney(dc.get_vr_limiteTotal()),
                                                                 "R$ " + new money().formatToMoney(dc.get_vr_limiteMensal()),
                                                                 "R$ " + new money().formatToMoney(dc.get_vr_extraCota()),
                                                                 "R$ " + new money().formatToMoney(dc.get_vr_dispMes()),
                                                                 "R$ " + new money().formatToMoney(dc.get_vr_dispTotal()) };

                            i_Form.LstCartao.Items.Add(var_util.GetListViewItem(dc.get_st_cpf(), full_row));
                        }
                    }
                }

                if (full_memory.Count != 0)
                {
                    i_Form.LblCart.Text = full_memory.Count.ToString() + " cartões encontrados";
                }
                else
                {
                    i_Form.LblCart.Text = "Nenhum cartão encontrado";
                }

                i_Form.BtnConsultar.Enabled = true;

                //EndEventCode
                return(true);
            }

                #endregion

                #region - event_val_TxtEmpresa -

            case event_val_TxtEmpresa:
            {
                //InitEventCode event_val_TxtEmpresa

                switch (arg as string)
                {
                case numberTextController.NUMBER_INCOMPLETE:
                case numberTextController.NUMBER_COMPLETE:
                {
                    if (ctrl_TxtEmpresa.getTextBoxValue().Length > 0)
                    {
                        i_Form.TxtEmpresa.BackColor     = Color.White;
                        ctrl_TxtEmpresa.IsUserValidated = true;
                    }
                    else
                    {
                        i_Form.TxtEmpresa.BackColor     = colorInvalid;
                        ctrl_TxtEmpresa.IsUserValidated = false;
                    }

                    break;
                }

                default: break;
                }

                //EndEventCode
                return(true);
            }

                #endregion

                #region - event_val_TxtCNPJ -

            case event_val_TxtCNPJ:
            {
                //InitEventCode event_val_TxtCNPJ

                switch (arg as string)
                {
                case cnpjTextController.CNPJ_INCOMPLETE:
                case cnpjTextController.CNPJ_INVALID:
                {
                    i_Form.TxtCNPJ.BackColor     = colorInvalid;
                    ctrl_TxtCNPJ.IsUserValidated = false;
                    break;
                }

                case cnpjTextController.CNPJ_VALID:
                {
                    i_Form.TxtCNPJ.BackColor     = Color.White;
                    ctrl_TxtCNPJ.IsUserValidated = true;
                    ctrl_TxtCNPJ.CleanError();
                    break;
                }

                default: break;
                }

                //EndEventCode
                return(true);
            }

                #endregion

                #region - event_val_TxtNome -

            case event_val_TxtNome:
            {
                //InitEventCode event_val_TxtNome

                switch (arg as string)
                {
                case alphaTextController.ALPHA_COMPLETE:
                case alphaTextController.ALPHA_INCOMPLETE:
                {
                    if (ctrl_TxtNome.getTextBoxValue().Length > 0)
                    {
                        i_Form.TxtNome.BackColor     = Color.White;
                        ctrl_TxtNome.IsUserValidated = true;
                    }
                    else
                    {
                        i_Form.TxtNome.BackColor     = colorInvalid;
                        ctrl_TxtNome.IsUserValidated = false;
                    }

                    break;
                }

                default: break;
                }

                //EndEventCode
                return(true);
            }

                #endregion

                #region - event_val_TxtLimTotal -

            case event_val_TxtLimTotal:
            {
                //InitEventCode event_val_TxtLimTotal

                if (arg as string == moneyTextController.MONEY_ZERO)
                {
                    i_Form.TxtLimTotal.BackColor     = colorInvalid;
                    ctrl_TxtLimTotal.IsUserValidated = false;
                }
                else
                {
                    i_Form.TxtLimTotal.BackColor     = Color.White;
                    ctrl_TxtLimTotal.IsUserValidated = true;
                }

                //EndEventCode
                return(true);
            }

                #endregion

                #region - event_val_TxtLimMensal -

            case event_val_TxtLimMensal:
            {
                //InitEventCode event_val_TxtLimMensal

                if (arg as string == moneyTextController.MONEY_ZERO)
                {
                    i_Form.TxtLimMensal.BackColor     = colorInvalid;
                    ctrl_TxtLimMensal.IsUserValidated = false;
                }
                else
                {
                    i_Form.TxtLimMensal.BackColor     = Color.White;
                    ctrl_TxtLimMensal.IsUserValidated = true;
                }

                //EndEventCode
                return(true);
            }

                #endregion

                #region - event_val_TxtCotaExtra -

            case event_val_TxtCotaExtra:
            {
                //InitEventCode event_val_TxtCotaExtra

                if (arg as string == moneyTextController.MONEY_ZERO)
                {
                    i_Form.TxtCotaExtra.BackColor     = colorInvalid;
                    ctrl_TxtCotaExtra.IsUserValidated = false;
                }
                else
                {
                    i_Form.TxtCotaExtra.BackColor     = Color.White;
                    ctrl_TxtCotaExtra.IsUserValidated = true;
                }

                //EndEventCode
                return(true);
            }

                #endregion

                #region - event_val_TxtCidade -

            case event_val_TxtCidade:
            {
                //InitEventCode event_val_TxtCidade

                switch (arg as string)
                {
                case alphaTextController.ALPHA_COMPLETE:
                case alphaTextController.ALPHA_INCOMPLETE:
                {
                    if (ctrl_TxtCidade.getTextBoxValue().Length > 0)
                    {
                        i_Form.TxtCidade.BackColor     = Color.White;
                        ctrl_TxtCidade.IsUserValidated = true;
                    }
                    else
                    {
                        i_Form.TxtCidade.BackColor     = colorInvalid;
                        ctrl_TxtCidade.IsUserValidated = false;
                    }

                    break;
                }

                default: break;
                }

                //EndEventCode
                return(true);
            }

                #endregion

                #region - event_val_TxtEstado -

            case event_val_TxtEstado:
            {
                //InitEventCode event_val_TxtEstado

                switch (arg as string)
                {
                case alphaTextController.ALPHA_COMPLETE:
                case alphaTextController.ALPHA_INCOMPLETE:
                {
                    if (ctrl_TxtEstado.getTextBoxValue().Length > 0)
                    {
                        i_Form.TxtEstado.BackColor     = Color.White;
                        ctrl_TxtEstado.IsUserValidated = true;
                    }
                    else
                    {
                        i_Form.TxtEstado.BackColor     = colorInvalid;
                        ctrl_TxtEstado.IsUserValidated = false;
                    }

                    break;
                }

                default: break;
                }

                //EndEventCode
                return(true);
            }

                #endregion

                #region - event_val_TxtCartao -

            case event_val_TxtCartao:
            {
                //InitEventCode event_val_TxtCartao

                switch (arg as string)
                {
                case numberTextController.NUMBER_INCOMPLETE:
                case numberTextController.NUMBER_COMPLETE:
                {
                    if (ctrl_TxtCartao.getTextBoxValue().Length > 0)
                    {
                        i_Form.TxtCartao.BackColor     = Color.White;
                        ctrl_TxtCartao.IsUserValidated = true;
                    }
                    else
                    {
                        i_Form.TxtCartao.BackColor     = colorInvalid;
                        ctrl_TxtCartao.IsUserValidated = false;
                    }

                    break;
                }

                default: break;
                }

                //EndEventCode
                return(true);
            }

                #endregion

                #region - event_val_TxtCpf -

            case event_val_TxtCpf:
            {
                //InitEventCode event_val_TxtCpf

                switch (arg as string)
                {
                case cnpjTextController.CNPJ_INCOMPLETE:
                case cnpjTextController.CNPJ_INVALID:
                case cpfTextController.CPF_INCOMPLETE:
                case cpfTextController.CPF_INVALID:
                {
                    i_Form.TxtCpf.BackColor     = colorInvalid;
                    ctrl_TxtCpf.IsUserValidated = false;
                    break;
                }

                case cpfTextController.CPF_VALID:
                case cnpjTextController.CNPJ_VALID:
                {
                    i_Form.TxtCpf.BackColor     = System.Drawing.Color.White;
                    ctrl_TxtCpf.IsUserValidated = true;
                    break;
                }
                }

                //EndEventCode
                return(true);
            }

                #endregion

                #region - event_Editar -

            case event_Editar:
            {
                //InitEventCode event_Editar

                if (i_Form.LstCartao.SelectedItems.Count > 0)
                {
                    string cpf_cnpj = var_util.getSelectedListViewItemTag(i_Form.LstCartao);

                    DadosProprietario dp = new DadosProprietario();

                    if (var_exchange.fetch_proprietario(cpf_cnpj,
                                                        ref header,
                                                        ref dp))
                    {
                        if (dp.get_tg_found() == Context.TRUE)
                        {
                            event_dlgDadosCadastrais ev_call = new event_dlgDadosCadastrais(var_util, var_exchange);

                            ev_call.header   = header;
                            ev_call.dp       = dp;
                            ev_call.cpf_cnpj = cpf_cnpj;

                            ev_call.i_Form.ShowDialog();
                        }
                    }
                }

                //EndEventCode
                return(true);
            }

                #endregion

                #region - event_Print -

            case event_Print:
            {
                //InitEventCode event_Print
                //EndEventCode
                return(true);
            }

                #endregion

                #region - event_Report -

            case event_Report:
            {
                //InitEventCode event_Report

                ArrayList lstReport = new ArrayList();

                lstReport.Add("RELATÓRIO DE CONSULTA DE CARTÃO");
                lstReport.Add("");
                lstReport.Add("                                                                 Limite    Limite   Cota Extra  Disponível  Disponível ");
                lstReport.Add("CARTÃO              BLOQ NOME                                    TOTAL     MENSAL               MENSAL      TOTAL");
                lstReport.Add("------------------------------------------------------------------------------------------------------------------------");
                lstReport.Add("");

                string line = "";

                for (int t = 0; t < i_Form.LstCartao.Items.Count; ++t)
                {
                    line  = i_Form.LstCartao.Items[t].SubItems[0].Text + " ";
                    line += i_Form.LstCartao.Items[t].SubItems[1].Text.PadLeft(4, ' ') + " ";
                    line += i_Form.LstCartao.Items[t].SubItems[2].Text.PadRight(38, ' ').Substring(0, 38);
                    line += i_Form.LstCartao.Items[t].SubItems[3].Text.PadLeft(14, ' ').Replace("R$ ", "");
                    line += i_Form.LstCartao.Items[t].SubItems[4].Text.PadLeft(14, ' ').Replace("R$ ", "");
                    line += i_Form.LstCartao.Items[t].SubItems[5].Text.PadLeft(14, ' ').Replace("R$ ", "");
                    line += i_Form.LstCartao.Items[t].SubItems[6].Text.PadLeft(14, ' ').Replace("R$ ", "");
                    line += i_Form.LstCartao.Items[t].SubItems[7].Text.PadLeft(14, ' ').Replace("R$ ", "");

                    lstReport.Add(line);
                }

                new ConveyPrinter("Courier New", 7, 10, ref lstReport);

                //EndEventCode
                return(true);
            }

                #endregion

                #region - event_BtnConsultarClick -

            case event_BtnConsultarClick:
            {
                //InitEventCode event_BtnConsultarClick
                //EndEventCode
                return(true);
            }

                #endregion

                #region - event_LstCartaoDoubleClick -

            case event_LstCartaoDoubleClick:
            {
                //InitEventCode event_LstCartaoDoubleClick
                //EndEventCode
                return(true);
            }

                #endregion

                #region - event_BtnRelatorioClick -

            case event_BtnRelatorioClick:
            {
                //InitEventCode event_BtnRelatorioClick
                //EndEventCode
                return(true);
            }

                #endregion

                #region - event_ChkAlfaCheckedChanged -

            case event_ChkAlfaCheckedChanged:
            {
                //InitEventCode event_ChkAlfaCheckedChanged

                doEvent(event_Consultar, null);

                //EndEventCode
                return(true);
            }

                #endregion

                #region - event_BtnExcluiClick -

            case event_BtnExcluiClick:
            {
                //InitEventCode event_BtnExcluiClick

                if (i_Form.LstCartao.SelectedItems.Count == 1)
                {
                    string emp = i_Form.LstCartao.SelectedItems[0].SubItems[0].Text.Substring(0, 6);
                    string mat = i_Form.LstCartao.SelectedItems[0].SubItems[0].Text.Substring(7, 6);
                    string tit = i_Form.LstCartao.SelectedItems[0].SubItems[0].Text.Substring(14, 2);

                    var_exchange.exec_excluiCart(emp, mat, tit, ref header);
                }

                //EndEventCode
                return(true);
            }

                #endregion

            default: break;
            }

            return(false);
        }
Example #2
0
        public dlgDadosCadastrais(event_dlgDadosCadastrais par_ev_layer)
        {
            InitializeComponent();

            ev_layer = par_ev_layer;
        }
Example #3
0
        public RobotEngine(ApplicationUtil util, Exchange ex)
        {
            var_exchange = ex;
            var_util     = util;

                        #if ROBOT
            event_dlgRemessa tmp_event_dlgRemessa = new event_dlgRemessa(util, ex);
            tmp_event_dlgRemessa.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgRemessa"] = tmp_event_dlgRemessa;

            event_dlgGraficosEmp tmp_event_dlgGraficosEmp = new event_dlgGraficosEmp(util, ex);
            tmp_event_dlgGraficosEmp.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgGraficosEmp"] = tmp_event_dlgGraficosEmp;

            event_dlgDBF_Fechamento tmp_event_dlgDBF_Fechamento = new event_dlgDBF_Fechamento(util, ex);
            tmp_event_dlgDBF_Fechamento.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgDBF_Fechamento"] = tmp_event_dlgDBF_Fechamento;

            event_dlgReimpGift tmp_event_dlgReimpGift = new event_dlgReimpGift(util, ex);
            tmp_event_dlgReimpGift.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgReimpGift"] = tmp_event_dlgReimpGift;

            event_dlgObservacao tmp_event_dlgObservacao = new event_dlgObservacao(util, ex);
            tmp_event_dlgObservacao.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgObservacao"] = tmp_event_dlgObservacao;

            event_dlgPrevLojista tmp_event_dlgPrevLojista = new event_dlgPrevLojista(util, ex);
            tmp_event_dlgPrevLojista.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgPrevLojista"] = tmp_event_dlgPrevLojista;

            event_dlgVendaParcelada tmp_event_dlgVendaParcelada = new event_dlgVendaParcelada(util, ex);
            tmp_event_dlgVendaParcelada.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgVendaParcelada"] = tmp_event_dlgVendaParcelada;

            event_dlgVendaLojista tmp_event_dlgVendaLojista = new event_dlgVendaLojista(util, ex);
            tmp_event_dlgVendaLojista.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgVendaLojista"] = tmp_event_dlgVendaLojista;

            event_dlgLojista tmp_event_dlgLojista = new event_dlgLojista(util, ex);
            tmp_event_dlgLojista.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgLojista"] = tmp_event_dlgLojista;

            event_dlgFatRecManual tmp_event_dlgFatRecManual = new event_dlgFatRecManual(util, ex);
            tmp_event_dlgFatRecManual.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgFatRecManual"] = tmp_event_dlgFatRecManual;

            event_dlgResPend tmp_event_dlgResPend = new event_dlgResPend(util, ex);
            tmp_event_dlgResPend.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgResPend"] = tmp_event_dlgResPend;

            event_dlgNovoDependente tmp_event_dlgNovoDependente = new event_dlgNovoDependente(util, ex);
            tmp_event_dlgNovoDependente.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgNovoDependente"] = tmp_event_dlgNovoDependente;

            event_dlgUpdate tmp_event_dlgUpdate = new event_dlgUpdate(util, ex);
            tmp_event_dlgUpdate.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgUpdate"] = tmp_event_dlgUpdate;

            event_dlgConfFinalRepasse tmp_event_dlgConfFinalRepasse = new event_dlgConfFinalRepasse(util, ex);
            tmp_event_dlgConfFinalRepasse.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgConfFinalRepasse"] = tmp_event_dlgConfFinalRepasse;

            event_dlgConfirmarRepasse tmp_event_dlgConfirmarRepasse = new event_dlgConfirmarRepasse(util, ex);
            tmp_event_dlgConfirmarRepasse.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgConfirmarRepasse"] = tmp_event_dlgConfirmarRepasse;

            event_dlgCompensaCheque tmp_event_dlgCompensaCheque = new event_dlgCompensaCheque(util, ex);
            tmp_event_dlgCompensaCheque.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgCompensaCheque"] = tmp_event_dlgCompensaCheque;

            event_dlgConsultaGift tmp_event_dlgConsultaGift = new event_dlgConsultaGift(util, ex);
            tmp_event_dlgConsultaGift.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgConsultaGift"] = tmp_event_dlgConsultaGift;

            event_dlgRecargaGift tmp_event_dlgRecargaGift = new event_dlgRecargaGift(util, ex);
            tmp_event_dlgRecargaGift.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgRecargaGift"] = tmp_event_dlgRecargaGift;

            event_dlgFinalGift tmp_event_dlgFinalGift = new event_dlgFinalGift(util, ex);
            tmp_event_dlgFinalGift.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgFinalGift"] = tmp_event_dlgFinalGift;

            event_dlgQuiosque tmp_event_dlgQuiosque = new event_dlgQuiosque(util, ex);
            tmp_event_dlgQuiosque.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgQuiosque"] = tmp_event_dlgQuiosque;

            event_dlgConfGiftCard tmp_event_dlgConfGiftCard = new event_dlgConfGiftCard(util, ex);
            tmp_event_dlgConfGiftCard.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgConfGiftCard"] = tmp_event_dlgConfGiftCard;

            event_dlgExtrasGift tmp_event_dlgExtrasGift = new event_dlgExtrasGift(util, ex);
            tmp_event_dlgExtrasGift.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgExtrasGift"] = tmp_event_dlgExtrasGift;

            event_dlgCustoChamado tmp_event_dlgCustoChamado = new event_dlgCustoChamado(util, ex);
            tmp_event_dlgCustoChamado.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgCustoChamado"] = tmp_event_dlgCustoChamado;

            event_dlgEditaChamado tmp_event_dlgEditaChamado = new event_dlgEditaChamado(util, ex);
            tmp_event_dlgEditaChamado.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgEditaChamado"] = tmp_event_dlgEditaChamado;

            event_dlgPesquisaChamado tmp_event_dlgPesquisaChamado = new event_dlgPesquisaChamado(util, ex);
            tmp_event_dlgPesquisaChamado.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgPesquisaChamado"] = tmp_event_dlgPesquisaChamado;

            event_dlgNovoChamado tmp_event_dlgNovoChamado = new event_dlgNovoChamado(util, ex);
            tmp_event_dlgNovoChamado.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgNovoChamado"] = tmp_event_dlgNovoChamado;

            event_dlgDadosCadastrais tmp_event_dlgDadosCadastrais = new event_dlgDadosCadastrais(util, ex);
            tmp_event_dlgDadosCadastrais.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgDadosCadastrais"] = tmp_event_dlgDadosCadastrais;

            event_dlgFatRel tmp_event_dlgFatRel = new event_dlgFatRel(util, ex);
            tmp_event_dlgFatRel.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgFatRel"] = tmp_event_dlgFatRel;

            event_dlgRecebeArqBanco tmp_event_dlgRecebeArqBanco = new event_dlgRecebeArqBanco(util, ex);
            tmp_event_dlgRecebeArqBanco.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgRecebeArqBanco"] = tmp_event_dlgRecebeArqBanco;

            event_dlgFatGerarArquivo tmp_event_dlgFatGerarArquivo = new event_dlgFatGerarArquivo(util, ex);
            tmp_event_dlgFatGerarArquivo.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgFatGerarArquivo"] = tmp_event_dlgFatGerarArquivo;

            event_dlgSegundaVia tmp_event_dlgSegundaVia = new event_dlgSegundaVia(util, ex);
            tmp_event_dlgSegundaVia.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgSegundaVia"] = tmp_event_dlgSegundaVia;

            event_dlgCancelaDespesa tmp_event_dlgCancelaDespesa = new event_dlgCancelaDespesa(util, ex);
            tmp_event_dlgCancelaDespesa.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgCancelaDespesa"] = tmp_event_dlgCancelaDespesa;

            event_dlgFatExtra tmp_event_dlgFatExtra = new event_dlgFatExtra(util, ex);
            tmp_event_dlgFatExtra.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgFatExtra"] = tmp_event_dlgFatExtra;

            event_dlgFaturamento tmp_event_dlgFaturamento = new event_dlgFaturamento(util, ex);
            tmp_event_dlgFaturamento.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgFaturamento"] = tmp_event_dlgFaturamento;

            event_dlgAdminEmpresas tmp_event_dlgAdminEmpresas = new event_dlgAdminEmpresas(util, ex);
            tmp_event_dlgAdminEmpresas.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgAdminEmpresas"] = tmp_event_dlgAdminEmpresas;

            event_dlgEduSegundaVia tmp_event_dlgEduSegundaVia = new event_dlgEduSegundaVia(util, ex);
            tmp_event_dlgEduSegundaVia.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgEduSegundaVia"] = tmp_event_dlgEduSegundaVia;

            event_dlgEduCancelarCartao tmp_event_dlgEduCancelarCartao = new event_dlgEduCancelarCartao(util, ex);
            tmp_event_dlgEduCancelarCartao.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgEduCancelarCartao"] = tmp_event_dlgEduCancelarCartao;

            event_dlgConfCartao tmp_event_dlgConfCartao = new event_dlgConfCartao(util, ex);
            tmp_event_dlgConfCartao.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgConfCartao"] = tmp_event_dlgConfCartao;

            event_dlgExpedicao tmp_event_dlgExpedicao = new event_dlgExpedicao(util, ex);
            tmp_event_dlgExpedicao.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgExpedicao"] = tmp_event_dlgExpedicao;

            event_dlgHabilitarCartao tmp_event_dlgHabilitarCartao = new event_dlgHabilitarCartao(util, ex);
            tmp_event_dlgHabilitarCartao.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgHabilitarCartao"] = tmp_event_dlgHabilitarCartao;

            event_dlgDesbloqueio tmp_event_dlgDesbloqueio = new event_dlgDesbloqueio(util, ex);
            tmp_event_dlgDesbloqueio.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgDesbloqueio"] = tmp_event_dlgDesbloqueio;

            event_dlgBloqueio tmp_event_dlgBloqueio = new event_dlgBloqueio(util, ex);
            tmp_event_dlgBloqueio.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgBloqueio"] = tmp_event_dlgBloqueio;

            event_dlgEducacional tmp_event_dlgEducacional = new event_dlgEducacional(util, ex);
            tmp_event_dlgEducacional.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgEducacional"] = tmp_event_dlgEducacional;

            event_dlgFechamento tmp_event_dlgFechamento = new event_dlgFechamento(util, ex);
            tmp_event_dlgFechamento.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgFechamento"] = tmp_event_dlgFechamento;

            event_dlgCadastroAtividade tmp_event_dlgCadastroAtividade = new event_dlgCadastroAtividade(util, ex);
            tmp_event_dlgCadastroAtividade.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgCadastroAtividade"] = tmp_event_dlgCadastroAtividade;

            event_dlgAgendamento tmp_event_dlgAgendamento = new event_dlgAgendamento(util, ex);
            tmp_event_dlgAgendamento.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgAgendamento"] = tmp_event_dlgAgendamento;

            event_dlgRelatorios tmp_event_dlgRelatorios = new event_dlgRelatorios(util, ex);
            tmp_event_dlgRelatorios.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgRelatorios"] = tmp_event_dlgRelatorios;

            event_dlgCancelaVendaPayFone tmp_event_dlgCancelaVendaPayFone = new event_dlgCancelaVendaPayFone(util, ex);
            tmp_event_dlgCancelaVendaPayFone.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgCancelaVendaPayFone"] = tmp_event_dlgCancelaVendaPayFone;

            event_dlgVendaEmpresarialCancelamento tmp_event_dlgVendaEmpresarialCancelamento = new event_dlgVendaEmpresarialCancelamento(util, ex);
            tmp_event_dlgVendaEmpresarialCancelamento.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgVendaEmpresarialCancelamento"] = tmp_event_dlgVendaEmpresarialCancelamento;

            event_dlgSelecionaTerminal tmp_event_dlgSelecionaTerminal = new event_dlgSelecionaTerminal(util, ex);
            tmp_event_dlgSelecionaTerminal.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgSelecionaTerminal"] = tmp_event_dlgSelecionaTerminal;

            event_dlgVendaEmpresarial tmp_event_dlgVendaEmpresarial = new event_dlgVendaEmpresarial(util, ex);
            tmp_event_dlgVendaEmpresarial.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgVendaEmpresarial"] = tmp_event_dlgVendaEmpresarial;

            event_dlgAlterarSenhaCartao tmp_event_dlgAlterarSenhaCartao = new event_dlgAlterarSenhaCartao(util, ex);
            tmp_event_dlgAlterarSenhaCartao.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgAlterarSenhaCartao"] = tmp_event_dlgAlterarSenhaCartao;

            event_dlgPF_CadastroLojista tmp_event_dlgPF_CadastroLojista = new event_dlgPF_CadastroLojista(util, ex);
            tmp_event_dlgPF_CadastroLojista.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgPF_CadastroLojista"] = tmp_event_dlgPF_CadastroLojista;

            event_dlgPF_CadastroCliente tmp_event_dlgPF_CadastroCliente = new event_dlgPF_CadastroCliente(util, ex);
            tmp_event_dlgPF_CadastroCliente.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgPF_CadastroCliente"] = tmp_event_dlgPF_CadastroCliente;

            event_dlgAutorizaVendaPayFone tmp_event_dlgAutorizaVendaPayFone = new event_dlgAutorizaVendaPayFone(util, ex);
            tmp_event_dlgAutorizaVendaPayFone.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgAutorizaVendaPayFone"] = tmp_event_dlgAutorizaVendaPayFone;

            event_dlgVerificaPendenciaPayFone tmp_event_dlgVerificaPendenciaPayFone = new event_dlgVerificaPendenciaPayFone(util, ex);
            tmp_event_dlgVerificaPendenciaPayFone.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgVerificaPendenciaPayFone"] = tmp_event_dlgVerificaPendenciaPayFone;

            event_dlgCancelaPendenciaPayFone tmp_event_dlgCancelaPendenciaPayFone = new event_dlgCancelaPendenciaPayFone(util, ex);
            tmp_event_dlgCancelaPendenciaPayFone.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgCancelaPendenciaPayFone"] = tmp_event_dlgCancelaPendenciaPayFone;

            event_dlgGravaPendenciaPayFone tmp_event_dlgGravaPendenciaPayFone = new event_dlgGravaPendenciaPayFone(util, ex);
            tmp_event_dlgGravaPendenciaPayFone.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgGravaPendenciaPayFone"] = tmp_event_dlgGravaPendenciaPayFone;

            event_dlgConsultaTransacoes tmp_event_dlgConsultaTransacoes = new event_dlgConsultaTransacoes(util, ex);
            tmp_event_dlgConsultaTransacoes.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgConsultaTransacoes"] = tmp_event_dlgConsultaTransacoes;

            event_dlgConsultaCartao tmp_event_dlgConsultaCartao = new event_dlgConsultaCartao(util, ex);
            tmp_event_dlgConsultaCartao.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgConsultaCartao"] = tmp_event_dlgConsultaCartao;

            event_dlgLimiteCartao tmp_event_dlgLimiteCartao = new event_dlgLimiteCartao(util, ex);
            tmp_event_dlgLimiteCartao.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgLimiteCartao"] = tmp_event_dlgLimiteCartao;

            event_dlgLocalizacao tmp_event_dlgLocalizacao = new event_dlgLocalizacao(util, ex);
            tmp_event_dlgLocalizacao.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgLocalizacao"] = tmp_event_dlgLocalizacao;

            event_dlgConsultaAuditoria tmp_event_dlgConsultaAuditoria = new event_dlgConsultaAuditoria(util, ex);
            tmp_event_dlgConsultaAuditoria.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgConsultaAuditoria"] = tmp_event_dlgConsultaAuditoria;

            event_dlgConsultaEmpresa tmp_event_dlgConsultaEmpresa = new event_dlgConsultaEmpresa(util, ex);
            tmp_event_dlgConsultaEmpresa.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgConsultaEmpresa"] = tmp_event_dlgConsultaEmpresa;

            event_dlgConsultaLoja tmp_event_dlgConsultaLoja = new event_dlgConsultaLoja(util, ex);
            tmp_event_dlgConsultaLoja.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgConsultaLoja"] = tmp_event_dlgConsultaLoja;

            event_dlgConvenios tmp_event_dlgConvenios = new event_dlgConvenios(util, ex);
            tmp_event_dlgConvenios.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgConvenios"] = tmp_event_dlgConvenios;

            event_dlgManutencaoTerminal tmp_event_dlgManutencaoTerminal = new event_dlgManutencaoTerminal(util, ex);
            tmp_event_dlgManutencaoTerminal.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgManutencaoTerminal"] = tmp_event_dlgManutencaoTerminal;

            event_dlgSelecionaEmpresa tmp_event_dlgSelecionaEmpresa = new event_dlgSelecionaEmpresa(util, ex);
            tmp_event_dlgSelecionaEmpresa.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgSelecionaEmpresa"] = tmp_event_dlgSelecionaEmpresa;

            event_dlgNovoTerminal tmp_event_dlgNovoTerminal = new event_dlgNovoTerminal(util, ex);
            tmp_event_dlgNovoTerminal.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgNovoTerminal"] = tmp_event_dlgNovoTerminal;

            event_dlgManutencaoUsuario tmp_event_dlgManutencaoUsuario = new event_dlgManutencaoUsuario(util, ex);
            tmp_event_dlgManutencaoUsuario.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgManutencaoUsuario"] = tmp_event_dlgManutencaoUsuario;

            event_dlgNovaLoja tmp_event_dlgNovaLoja = new event_dlgNovaLoja(util, ex);
            tmp_event_dlgNovaLoja.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgNovaLoja"] = tmp_event_dlgNovaLoja;

            event_dlgNovaEmpresa tmp_event_dlgNovaEmpresa = new event_dlgNovaEmpresa(util, ex);
            tmp_event_dlgNovaEmpresa.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgNovaEmpresa"] = tmp_event_dlgNovaEmpresa;

            event_dlgCadastroUsuario tmp_event_dlgCadastroUsuario = new event_dlgCadastroUsuario(util, ex);
            tmp_event_dlgCadastroUsuario.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgCadastroUsuario"] = tmp_event_dlgCadastroUsuario;

            event_dlgPassword tmp_event_dlgPassword = new event_dlgPassword(util, ex);
            tmp_event_dlgPassword.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgPassword"] = tmp_event_dlgPassword;

            event_dlgLogin tmp_event_dlgLogin = new event_dlgLogin(util, ex);
            tmp_event_dlgLogin.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgLogin"] = tmp_event_dlgLogin;

            event_dlgNovoCartao tmp_event_dlgNovoCartao = new event_dlgNovoCartao(util, ex);
            tmp_event_dlgNovoCartao.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["dlgNovoCartao"] = tmp_event_dlgNovoCartao;

            event_MainForm tmp_event_MainForm = new event_MainForm(util, ex);
            tmp_event_MainForm.mapEvents(ref lst_layers, ref hsh_layers_events);
            hsh_layers ["MainForm"] = tmp_event_MainForm;

            Load();
                        #endif
        }