Ejemplo n.º 1
0
        public static void GuardarIngreso(int n_TipMov)
        {
            BE_SYS_USUARIOSINGRESOS entIngresos = new BE_SYS_USUARIOSINGRESOS();
            CN_sys_usuariosingresos objIngresos = new CN_sys_usuariosingresos();

            entIngresos.n_id     = 0;
            entIngresos.n_idemp  = Program.STU_SISTEMA.EMPRESAID;
            entIngresos.n_idusu  = Program.STU_SISTEMA.USUARIOID;
            entIngresos.d_fchreg = DateTime.Now;
            entIngresos.c_idpc   = "";
            entIngresos.c_horreg = DateTime.Now.ToString("hh:mm:ss");
            entIngresos.n_tipmov = n_TipMov;
            if (n_TipMov == 1)
            {
                entIngresos.n_ord = 1;
            }
            if (n_TipMov == 2)
            {
                entIngresos.n_ord = 2;
            }

            objIngresos.mysConec = Program.mysConeccion;
            if (objIngresos.Insertar(entIngresos) == true)
            {
            }
        }
Ejemplo n.º 2
0
        public bool Insertar(BE_SYS_USUARIOSINGRESOS ent_Ingresos)
        {
            bool       booOk      = false;
            DatosMySql xMiFuncion = new DatosMySql();

            if (xMiFuncion.StoreEjecutar("sys_usuariosingreso_insertar", ent_Ingresos, mysConec, 0) == true)
            {
                booOk = true;
            }
            else
            {
                booOcurrioError = xMiFuncion.booOcurrioError;
                StrErrorMensaje = xMiFuncion.StrErrorMensaje;
                IntErrorNumber  = xMiFuncion.IntErrorNumber;
            }

            return(booOk);
        }
Ejemplo n.º 3
0
        public bool Insertar(BE_SYS_USUARIOSINGRESOS ent_Ingresos)
        {
            DataTable dtResult = new DataTable();
            bool      b_result = false;

            CD_sys_usuariosingresos miFun = new CD_sys_usuariosingresos();

            miFun.mysConec = mysConec;

            if (miFun.Insertar(ent_Ingresos) == true)
            {
                b_result = true;
            }
            else
            {
                booOcurrioError = miFun.booOcurrioError;
                StrErrorMensaje = miFun.StrErrorMensaje;
                IntErrorNumber  = miFun.IntErrorNumber;
            }
            b_result = true;
            return(b_result);
        }