Example #1
0
        public void GerarDocumentoChamado(int nroChamado)
        {
            ChamadosFechadosTableAdapter ta = new ChamadosFechadosTableAdapter();
            DataTable dt = new DataTable();

            ta.GetDataById(nroChamado);

            // StreamWriter gravar = new StreamWriter("C:\\Contratos" + RetNome() + ".doc", false, Encoding.UTF8);
        }
Example #2
0
        public DataTable CarregaGridChamadosFechados()
        {
            DataTable chamados;

            ChamadosFechadosTableAdapter ta = new ChamadosFechadosTableAdapter();

            chamados = ta.GetData();

            return(chamados);
        }
Example #3
0
        public DataTable PesquisaGridChamadosFechados(int opcao, string condicao)
        {
            DataTable chamados = null;
            ChamadosFechadosTableAdapter ta = new ChamadosFechadosTableAdapter();

            if (opcao == 1)
            {
                chamados = ta.GetDataBySolicitante(condicao);
            }
            else if (opcao == 2)
            {
                chamados = ta.GetDataById(Convert.ToInt32(condicao));
            }

            return(chamados);
        }