Exemple #1
0
        /// <summary>
        /// Cambia el password del usuario
        public EUsuario cambiarContrasena(string sUser,
                                          string sNewPwd, string sModiBy, string sDatemodi)
        {
            Lucky.Data.Common.Application.DUsuario odUsuario =
                new Lucky.Data.Common.Application.DUsuario();
            EUsuario oecusuario = odUsuario.cambiarContrasena(
                sUser, sNewPwd, sModiBy, sDatemodi);

            odUsuario = null;
            return(oecusuario);
        }
Exemple #2
0
        /// <summary>
        /// Permite autenticar a un usuario. Desatando determinados eventos si el usuario no cuenta con permisos
        /// </summary>
        /// <param name="sName">Usuario</param>
        /// <param name="oConn">Origen</param>
        /// <returns></returns>
        /// //Metodo que permite realizar el registro de Usuarios en SIGE
        public EUsuario Registrar(string sidtypeDocument, string sPersonnd,
                                  string sPersonFirtsname, string sPersonLastName,
                                  string sPersonSurname, string sPersonSeconName,
                                  string sPersonEmail, string sPersonPhone,
                                  string sPersonAddres, string sCountryid,
                                  string snameuser, string sUserPassword, string iPerfilid,
                                  string sModuloid, string suserrecall, int icompanyid,
                                  bool bPersonStatus, string sPersonCreateBy,
                                  DateTime tPersonDateBy, string sPersonModiBy,
                                  DateTime tPersonDateModiBy)
        {
            Lucky.Data.Common.Application.DUsuario odrUsuario = new Lucky.Data.Common.Application.DUsuario();
            EUsuario oerUsuario = odrUsuario.RegistrarPK(sidtypeDocument, sPersonnd, sPersonFirtsname, sPersonLastName, sPersonSurname, sPersonSeconName,
                                                         sPersonEmail, sPersonPhone, sPersonAddres, sCountryid, snameuser, sUserPassword, iPerfilid, sModuloid, suserrecall, icompanyid, bPersonStatus, sPersonCreateBy, tPersonDateBy, sPersonModiBy, tPersonDateModiBy);

            odrUsuario = null;
            return(oerUsuario);
        }
Exemple #3
0
        /// <summary>
        /// Actualiza tabla person en la base de datos DB_LUCKY_TMP
        /// 12/01/2011 Magaly Jiménez
        /// </summary>
        /// <param name="iPersonid"></param>
        /// <param name="sidtypeDocument"></param>
        /// <param name="sPersonnd"></param>
        /// <param name="sPersonFirtsname"></param>
        /// <param name="sPersonLastName"></param>
        /// <param name="sPersonSurname"></param>
        /// <param name="sPersonSeconName"></param>
        /// <param name="sPersonEmail"></param>
        /// <param name="sPersonPhone"></param>
        /// <param name="sPersonAddres"></param>
        /// <param name="scodCountry"></param>
        /// <param name="snameuser"></param>
        /// <param name="sUserPassword"></param>
        /// <param name="iPerfilid"></param>
        /// <param name="sModuloid"></param>
        /// <param name="suserrecall"></param>
        /// <param name="icompanyid"></param>
        /// <param name="bPersonStatus"></param>
        /// <param name="sPersonModiBy"></param>
        /// <param name="tPersonDateModiBy"></param>
        /// <returns></returns>
        public EUsuario ActualizarTMP(
            int iPersonid, string sidtypeDocument,
            string sPersonnd, string sPersonFirtsname,
            string sPersonLastName, string sPersonSurname,
            string sPersonSeconName, string sPersonEmail,
            string sPersonPhone, string sPersonAddres,
            string scodCountry, string snameuser, string sUserPassword,
            string iPerfilid, string sModuloid, string suserrecall,
            int icompanyid, bool bPersonStatus, string sPersonModiBy,
            DateTime tPersonDateModiBy)
        {
            Lucky.Data.Common.Application.DUsuario odaUsuarioTMP = new Lucky.Data.Common.Application.DUsuario();
            EUsuario oeaUsuarioTMP = odaUsuarioTMP.ActualizarUserTMP(iPersonid, sidtypeDocument, sPersonnd, sPersonFirtsname, sPersonLastName, sPersonSurname, sPersonSeconName, sPersonEmail, sPersonPhone, sPersonAddres, scodCountry,
                                                                     snameuser, sUserPassword, iPerfilid, sModuloid, suserrecall, icompanyid, bPersonStatus, sPersonModiBy, tPersonDateModiBy);

            odaUsuarioTMP = null;
            return(oeaUsuarioTMP);
        }