Exemplo n.º 1
0
        private void TFCad_Report_Load(object sender, EventArgs e)
        {
            this.Icon = Utils.ResourcesUtils.TecnoAliance_ICO;
            if (rreport != null)
            {
                BS_Relatorio.DataSource = new TList_Cad_Report()
                {
                    rreport
                };
                rreport.lConsulta.ForEach(p =>
                {
                    TreeNode noMenu   = new TreeNode(p.DS_Consulta.Trim());
                    noMenu.Name       = p.ID_Consulta.ToString().Trim();
                    noMenu.ImageIndex = 0;

                    treeConsulta.Nodes.AddRange(new TreeNode[] { noMenu });
                });
                this.AtualizaTreeConsulta();
            }
            else
            {
                bb_Menu.Visible      = false;
                bbEditReport.Visible = false;
                BS_Relatorio.AddNew();
            }
        }
Exemplo n.º 2
0
        public override void afterNovo()
        {
            if ((vTP_Modo == TTpModo.tm_busca) || (vTP_Modo == TTpModo.tm_Standby))
            {
                BS_Relatorio.AddNew();
                base.afterNovo();

                cbChart.Enabled     = false;
                cbDataCube.Enabled  = false;
                cbRelatorio.Enabled = false;

                HabilitaConsulta(true);

                cbModulo.SelectedIndex = 0;
                if (cbModulo.Enabled)
                {
                    cbModulo.Focus();
                }
            }
        }