Beispiel #1
0
        /// <summary>
        /// 初始化帐号密码
        /// </summary>
        /// <param name="nAccountId">帐号编码</param>
        /// <param name="strNewPassword">新密码</param>
        /// <param name="nOpStaffId">操作员工编码</param>
        /// <param name="strOpStaffName">操作员工姓名</param>
        /// <param name="strErrText">出错信息</param>
        /// <returns>成功返回True,否则返回False</returns>
        public bool ResetPassword(long nAccountId, string strNewPassword, long nOpStaffId, string strOpStaffName, out string strErrText)
        {
            AuthenticateRule rule = new AuthenticateRule();

            return(rule.ResetPassword(nAccountId, strNewPassword, nOpStaffId, strOpStaffName, out strErrText));
        }
Beispiel #2
0
        /// <summary>
        /// 修改帐号密码
        /// </summary>
        /// <param name="strOldPassword">原密码</param>
        /// <param name="strNewPassword">新密码</param>
        /// <param name="nOpStaffId">操作员工编码</param>
        /// <param name="strOpStaffName">操作员工姓名</param>
        /// <param name="strErrText">出错信息</param>
        /// <returns>成功返回True,否则返回False</returns>
        public bool UpdatePassword(string strOldPassword, string strNewPassword, long nOpStaffId, string strOpStaffName, out string strErrText)
        {
            AuthenticateRule rule = new AuthenticateRule();

            return(rule.UpdatePassword(strOldPassword, strNewPassword, nOpStaffId, strOpStaffName, out strErrText));
        }
Beispiel #3
0
        /// <summary>
        /// 注销帐号
        /// </summary>
        /// <param name="nAccountId"></param>
        /// <param name="nOpStaffId">操作员工编码</param>
        /// <param name="strOpStaffName">操作员工姓名</param>
        /// <param name="strErrText">出错信息</param>
        /// <returns>成功返回True,否则返回False</returns>
        public bool CancelAccount(long nAccountId, long nOpStaffId, string strOpStaffName, out string strErrText)
        {
            AuthenticateRule rule = new AuthenticateRule();

            return(rule.CancelAccount(nAccountId, nOpStaffId, strOpStaffName, out strErrText));
        }
Beispiel #4
0
        /// <summary>
        /// 员工登录认证方法
        /// </summary>
        /// <param name="strAccountName">登录帐号</param>
        /// <param name="strPassword">登录密码</param>
        /// <param name="strErrText">出错信息</param>
        /// <returns>登录成功返回员工实体对象,否则返回null</returns>
        public Account StaffLogin(string strAccountName, string strPassword, out string strErrText)
        {
            AuthenticateRule rule = new AuthenticateRule();

            return(rule.StaffLogin(strAccountName, strPassword, out strErrText));
        }
Beispiel #5
0
        /// <summary>
        /// 新增帐号
        /// </summary>
        /// <param name="data"></param>
        /// <param name="nOpStaffId"></param>
        /// <param name="strOpStaffName"></param>
        /// <param name="strErrText"></param>
        /// <returns></returns>
        public long InsertAccount(Account data, long nOpStaffId, string strOpStaffName, out string strErrText)
        {
            AuthenticateRule rule = new AuthenticateRule();

            return(rule.InsertAccount(data, nOpStaffId, strOpStaffName, out strErrText));
        }