Beispiel #1
0
 private void VerificaAcesso()
 {
     if (!Util.Acessa_Tela(this.Name, FrmLogin._IdNivel))
     {
         this.Close();
     }
 }
Beispiel #2
0
        private void FrmTipoRegiao_Load(object sender, EventArgs e)
        {
            CreaterCursor Cr = new CreaterCursor();

            this.Cursor = Cr.CreateCursor(Cr.btmap, 0, 0);

            this.MinimizeBox     = false;
            this.FormBorderStyle = FormBorderStyle.FixedDialog;

            GetToolStripButtonCadastro();
            GetDropContaCorrente();
            GetDropMoviConta();
            GetDropTipo();
            PreencheDropCamposPesquisa();
            PreencheDropTipoPesquisa();

            btnCadContCorrent.Image = Util.GetAddressImage(6);
            btnNomeMoviment.Image   = Util.GetAddressImage(6);

            bntDateSelecInicial.Image = Util.GetAddressImage(22);
            bntDateSelecFinal.Image   = Util.GetAddressImage(22);

            this.Cursor = Cursors.Default;

            bntDateSelecFinal.Image   = Util.GetAddressImage(11);
            bntDateSelecInicial.Image = Util.GetAddressImage(11);


            if (!Util.Acessa_Tela(this.Name, FrmLogin._IdNivel))
            {
                this.Close();
            }
        }
Beispiel #3
0
        private void FrmTransfereCliente_Load(object sender, EventArgs e)
        {
            try
            {
                GetDropVendedor();
                GetDropStatus();
                GetDropGrupo();
                btnSair.Image = Util.GetAddressImage(21);

                DataGriewDados.AutoGenerateColumns = false;
                DataGriewDados.DataSource          = LIS_AGENDAVENDEDORTLMKColl;

                label13.Text = LIS_AGENDAVENDEDORTLMKColl.Count.ToString();

                PaintGrid();

                if (!Util.Acessa_Tela(this.Name, FrmLogin._IdNivel))
                {
                    this.Close();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("Erro técnico: " + ex.Message);
            }
        }
Beispiel #4
0
        private void FrmCriarAgendaTLMK_Load(object sender, EventArgs e)
        {
            GetDropStatus();
            GetDropCliente();
            GetDropVendedor();
            GetDropGrupo();

            btnSalvar.Image = Util.GetAddressImage(15);
            btnLimpa.Image  = Util.GetAddressImage(16);
            btnSair.Image   = Util.GetAddressImage(21);

            btnExcel.Image     = Util.GetAddressImage(18);
            btnPrint.Image     = Util.GetAddressImage(19);
            btnpdf.Image       = Util.GetAddressImage(17);
            btnSeach.Image     = Util.GetAddressImage(20);
            btnCadStatus.Image = Util.GetAddressImage(6);
            btnCliente.Image   = Util.GetAddressImage(6);
            btnGrupo.Image     = Util.GetAddressImage(6);
            btnPesquisa.Image  = Util.GetAddressImage(20);

            // Pesquisa();

            if (!Util.Acessa_Tela(this.Name, FrmLogin._IdNivel))
            {
                this.Close();
            }
        }
Beispiel #5
0
        private void FrmOcorrenciasTLMK_Load(object sender, EventArgs e)
        {
            btnSair.Image  = Util.GetAddressImage(21);
            btnExcel.Image = Util.GetAddressImage(18);
            btnPrint.Image = Util.GetAddressImage(19);
            btnpdf.Image   = Util.GetAddressImage(17);
            btnSeach.Image = Util.GetAddressImage(20);

            bntDateSelecInicial.Image = Util.GetAddressImage(11);
            bntDateSelecFinal.Image   = Util.GetAddressImage(11);

            btnPesquisa.Image = Util.GetAddressImage(20);
            btnSair.Image     = Util.GetAddressImage(21);

            GetDropStatus();
            GetDropCliente();
            GetDropVendedor();

            if (_IDCLIENTE != -1)
            {
                cbCliente.SelectedValue = _IDCLIENTE;
                PesquisaOcorrencia();
            }

            if (!Util.Acessa_Tela(this.Name, FrmLogin._IdNivel))
            {
                this.Close();
            }
        }
Beispiel #6
0
        private void FrmCriarAgendaTLMKLote_Load(object sender, EventArgs e)
        {
            GetDropStatus();
            GetDropVendedor();
            GetDropGrupo();
            btnCadStatus.Image  = Util.GetAddressImage(6);
            btnGrupo.Image      = Util.GetAddressImage(6);
            btnSalvar.Image     = Util.GetAddressImage(15);
            btnSair.Image       = Util.GetAddressImage(21);
            btnPesxquisar.Image = Util.GetAddressImage(20);

            if (!Util.Acessa_Tela(this.Name, FrmLogin._IdNivel))
            {
                this.Close();
            }
        }
Beispiel #7
0
        private void FrmTipoRegiao_Load(object sender, EventArgs e)
        {
            CreaterCursor Cr = new CreaterCursor();

            this.Cursor = Cr.CreateCursor(Cr.btmap, 0, 0);

            this.MinimizeBox     = false;
            this.FormBorderStyle = FormBorderStyle.FixedDialog;

            PreencheDropCamposPesquisa();
            PreencheDropTipoPesquisa();

            GetToolStripButtonCadastro();
            GetDropProdutos();
            GetDropStatus();
            GetDropStatus2();
            GetDropCliente();

            btnCadCliente.Image = Util.GetAddressImage(6);
            btnCadProduto.Image = Util.GetAddressImage(6);
            btnStatus.Image     = Util.GetAddressImage(6);


            if (_IDRESERVA != -1)
            {
                Entity = RESERVAP.Read(_IDRESERVA);
            }
            else if (DataConsultaSelec != string.Empty)
            {
                tabControlMarca.SelectTab(1);
                RowRelatorio.Clear();
                RowRelatorio.Add(new RowsFiltro("DATARETIRADA", "System.DateTime", "=", Util.ConverStringDateSearch(DataConsultaSelec)));
                LIS_RESERVAColl = LIS_RESERVAP.ReadCollectionByParameter(RowRelatorio, "IDRESERVA DESC");
                DataGriewDados.AutoGenerateColumns = false;
                DataGriewDados.DataSource          = LIS_RESERVAColl;
            }

            this.Cursor = Cursors.Default;

            if (!Util.Acessa_Tela(this.Name, FrmLogin._IdNivel))
            {
                MessageBox.Show(ConfigMessage.Default.MsgPerm);
                this.Close();
            }
        }
Beispiel #8
0
        private void FrmTipoRegiao_Load(object sender, EventArgs e)
        {
            CreaterCursor Cr = new CreaterCursor();

            this.Cursor = Cr.CreateCursor(Cr.btmap, 0, 0);

            this.MinimizeBox = false; this.FormBorderStyle = FormBorderStyle.FixedDialog; this.FormBorderStyle = FormBorderStyle.FixedDialog;
            GetToolStripButtonCadastro();
            GetAllMesa();

            this.Cursor = Cursors.Default;

            if (!Util.Acessa_Tela(this.Name, FrmLogin._IdNivel))
            {
                MessageBox.Show(ConfigMessage.Default.MsgPerm);
                this.Close();
            }
        }
Beispiel #9
0
        private void FrmExtratoDuplReceber_Load(object sender, EventArgs e)
        {
            this.MinimizeBox = false;
            //  this.FormBorderStyle = FormBorderStyle.FixedDialog;

            bntDateSelecInicial.Image = Util.GetAddressImage(11);
            bntDateSelecFinal.Image   = Util.GetAddressImage(11);

            btnpdf.Image   = Util.GetAddressImage(17);
            btnExcel.Image = Util.GetAddressImage(18);
            btnPrint.Image = Util.GetAddressImage(19);

            btnPesquisa.Image      = Util.GetAddressImage(20);
            btnImprimir.Image      = Util.GetAddressImage(19);
            btnSair.Image          = Util.GetAddressImage(21);
            btnLimpaPesquisa.Image = Util.GetAddressImage(16);

            GetCentroCusto();
            GetDropTipoDuplicata();
            GetDropFornecedor();

            if (!Util.Acessa_Tela(this.Name, FrmLogin._IdNivel))
            {
                MessageBox.Show(ConfigMessage.Default.MsgPerm);
                this.Close();
            }

            if (ExibiDados == true)
            {
                mkDtInicial.Text = DateTime.Now.ToString();
                mkdatafinal.Text = DateTime.Now.ToString();
                rbVencer.Checked = true;
                btnPesquisa_Click(null, null);
            }

            if (DataConsultaSelec != string.Empty)
            {
                mkDtInicial.Text = DataConsultaSelec;
                mkdatafinal.Text = DataConsultaSelec;
                rbVencer.Checked = true;
                PesquisaExtrato();
            }
        }
Beispiel #10
0
        private void FrmProdutosMaisVendidos_Load(object sender, EventArgs e)
        {
            this.FormBorderStyle = FormBorderStyle.FixedDialog;

            bntDateSelecFinal.Image   = Util.GetAddressImage(11);
            bntDateSelecInicial.Image = Util.GetAddressImage(11);

            btnpdf.Image   = Util.GetAddressImage(17);
            btnExcel.Image = Util.GetAddressImage(18);
            btnPrint.Image = Util.GetAddressImage(19);

            btnPesquisa.Image = Util.GetAddressImage(20);
            btnImprimir.Image = Util.GetAddressImage(19);
            btnSair.Image     = Util.GetAddressImage(21);

            bntDateSelecInicial.Image = Util.GetAddressImage(22);
            bntDateSelecFinal.Image   = Util.GetAddressImage(22);

            if (!Util.Acessa_Tela(this.Name, FrmLogin._IdNivel))
            {
                this.Close();
            }
        }
Beispiel #11
0
        private void FrmExtratoDuplReceber_Load(object sender, EventArgs e)
        {
            CreaterCursor Cr = new CreaterCursor();

            this.Cursor = Cr.CreateCursor(Cr.btmap, 0, 0);

            this.MinimizeBox     = false;
            this.FormBorderStyle = FormBorderStyle.FixedDialog;

            GetDropFornecedor();
            cbFornecedor.Focus();

            btnpdf.Image   = Util.GetAddressImage(17);
            btnExcel.Image = Util.GetAddressImage(18);
            btnPrint.Image = Util.GetAddressImage(19);

            btnPesquisa.Image      = Util.GetAddressImage(20);
            btnImprimir.Image      = Util.GetAddressImage(19);
            btnSair.Image          = Util.GetAddressImage(21);
            btnLimpaPesquisa.Image = Util.GetAddressImage(16);

            //Exibir dados do cliente consultado em outra tela
            if (CodFornecedor != -1)
            {
                rbTodas.Checked            = true;
                cbFornecedor.SelectedValue = CodFornecedor;
                btnPesquisa_Click(null, null);
            }


            if (!Util.Acessa_Tela(this.Name, FrmLogin._IdNivel))
            {
                this.Close();
            }

            this.Cursor = Cursors.Default;
        }
Beispiel #12
0
        private void FrmStatus_Load(object sender, EventArgs e)
        {
            CreaterCursor Cr = new CreaterCursor();

            this.Cursor = Cr.CreateCursor(Cr.btmap, 0, 0);

            this.MinimizeBox     = false;
            this.FormBorderStyle = FormBorderStyle.FixedDialog;

            GetAllStatus();
            GetToolStripButtonCadastro();

            if (_IDGRUPOAGENDATLMK != -1)
            {
                Entity = GRUPOAGENDATLMKP.Read(_IDGRUPOAGENDATLMK);
            }

            if (!Util.Acessa_Tela(this.Name, FrmLogin._IdNivel))
            {
                this.Close();
            }

            this.Cursor = Cursors.Default;
        }