예제 #1
0
        public bool Actualizar(BE_SUN_LIBRO e_Libro)
        {
            bool         b_result = false;
            CD_sun_libro miFun    = new CD_sun_libro();

            miFun.mysConec = mysConec;
            b_result       = miFun.Actualizar(e_Libro);
            if (b_result == false)
            {
                b_OcurrioError = miFun.b_OcurrioError;
                c_ErrorMensaje = miFun.c_ErrorMensaje;
                n_ErrorNumber  = miFun.n_ErrorNumber;
            }
            return(b_result);
        }
예제 #2
0
        public bool Eliminar(int n_Idregistro)
        {
            bool         b_result = false;
            CD_sun_libro miFun    = new CD_sun_libro();

            miFun.mysConec = mysConec;
            b_result       = miFun.Eliminar(n_Idregistro);
            if (b_result == false)
            {
                b_OcurrioError = miFun.b_OcurrioError;
                c_ErrorMensaje = miFun.c_ErrorMensaje;
                n_ErrorNumber  = miFun.n_ErrorNumber;
            }
            return(b_result);
        }
예제 #3
0
        public void Listar()
        {
            CD_sun_libro miFun = new CD_sun_libro();

            miFun.mysConec = mysConec;

            miFun.Listar();
            dtLista = miFun.dtLista;
            if (dtLista == null)
            {
                b_OcurrioError = miFun.b_OcurrioError;
                c_ErrorMensaje = miFun.c_ErrorMensaje;
                n_ErrorNumber  = miFun.n_ErrorNumber;
            }
            return;
        }
예제 #4
0
        public void TraerRegistro(int n_IdRegistro)
        {
            CD_sun_libro miFun = new CD_sun_libro();

            miFun.mysConec = mysConec;

            miFun.TraerRegistro(n_IdRegistro);
            dtLista = miFun.dtLista;
            if (dtLista == null)
            {
                b_OcurrioError = miFun.b_OcurrioError;
                c_ErrorMensaje = miFun.c_ErrorMensaje;
                n_ErrorNumber  = miFun.n_ErrorNumber;
            }
            else
            {
                e_Libro.n_id     = Convert.ToInt32(dtLista.Rows[0]["n_id"]);
                e_Libro.c_des    = dtLista.Rows[0]["c_des"].ToString();
                e_Libro.c_codsun = dtLista.Rows[0]["c_codsun"].ToString();
            }
            return;
        }