Ejemplo n.º 1
0
 /// <summary>
 ///     Unico acesso externo, pois todo o trafego de informaçoes eh monitorado
 /// pelo conjunto de userControls, SigaControle com o objeto SigaSession.
 /// </summary>
 /// <param name="username">usuario de sistema</param>
 /// <param name="password">senha do usuario setado</param>
 /// <param name="inForm"  >webguiForm onde o Main(menu e janela principal) será carregado, caso seja autenticado</param>
 public Logon(string username, string password, List <string> nomes, Gizmox.WebGUI.Forms.Form inForm)
 {
     try
     {
         if (nomes.Count > 0)
         {
             if (username.Equals("") || password.Equals(""))
             {
                 MessageBox.Show("Favor preencher Login e/ou Senha !");
             }
             else
             {
                 sigaSession.Logon(username, password);
                 //new EmpresaDao().Load(sigaSession.EMPRESAS, nomes);
                 inForm.Controls.Clear();
                 FormatScreen.AddControl(inForm, new MainMenu(), true);
             }
         }
         else
         {
             MessageBox.Show("Selecione alguma empresa !");
         }
     }
     catch (Exception e)
     {
         MessageBox.Show(e.Message);
     }
 }
Ejemplo n.º 2
0
        private void label_TextChanged(object sender, EventArgs e)
        {
            string relatorio = (sender as Control).Text;

            Report.Report report = new SigaControls.Report.Report(relatorio);
            FormatScreen.AddTab(ABAS, relatorio, report);
            report.LOAD(relatorio, false);
        }
Ejemplo n.º 3
0
        public void btnAddNew_Click(object sender, EventArgs e)
        {
            string novo  = "novo relatorio";
            int    count = 1;

            for (int i = 0; i < ABAS.TabPages.Count; i++)
            {
                if (ABAS.TabPages[i].Text.StartsWith(novo))
                {
                    count++;
                }
            }

            novo = novo + count.ToString();

            Report.Report report = new Report.Report();

            FormatScreen.AddTab(ABAS, novo, report);

            report.LOAD(novo, true);
        }
Ejemplo n.º 4
0
 private void PermissaoUsuRel_Click(object sender, EventArgs e)
 {
     this.Painel.Controls.Clear();
     FormatScreen.AddControl(Painel, new Permissoes(), true, 1, true, false);
     //FormatScreen.AddControl(Painel, new Label("Controle ainda não implementado"), true, 1, true, false);
 }
Ejemplo n.º 5
0
        private void ConsultarRelatorio_Click(object sender, EventArgs e)
        {
            this.Painel.Controls.Clear();

            FormatScreen.AddControl(Painel, new Report.ReportList(), true, 1, true, false);
        }
Ejemplo n.º 6
0
 private void CadUsuario_Click(object sender, EventArgs e)
 {
     this.Painel.Controls.Clear();
     FormatScreen.AddControl(Painel, new Usuario_principal(), true, 1, true, false);
 }
Ejemplo n.º 7
0
 public MainMenu(DataGridView gridUsuarios)
 {
     this.Painel.Controls.Clear();
     FormatScreen.AddControl(Painel, new Usuario_principal(gridUsuarios), true, 1, true, false);
 }
Ejemplo n.º 8
0
 private void btnCadCompPg_Click(object sender, EventArgs e)
 {
     this.Painel.Controls.Clear();
     FormatScreen.AddControl(Painel, new Cadastros.ContasAPagarList(), true, 1, true, false);
 }
Ejemplo n.º 9
0
 private void tpJoin_Resize(object sender, EventArgs e)
 {
     FormatScreen.organizerControls(tpJoin);
 }