Exemplo n.º 1
0
        public int ConsultarEwoDuracionTotal(int id)
        {
            int           duracion = 0;
            ewosDataTable edt      = null;

            edt = eta.GetDataById(id);

            if (edt.Rows.Count > 0)
            {
                duracion = int.Parse(edt.Rows[0]["tiempo_total"].ToString());
            }

            return(duracion);
        }
Exemplo n.º 2
0
        public Ewo ConsultarEwoById(int id)
        {
            Ewo           e   = new Ewo();
            ewosDataTable edt = null;

            edt = eta.GetDataById(id);

            if (edt.Rows.Count > 0)
            {
                e.id           = int.Parse(edt.Rows[0]["Id"].ToString());
                e.tiempo_total = int.Parse(edt.Rows[0]["tiempo_total"].ToString());
            }

            return(e);
        }