コード例 #1
0
        /// <summary> 修改登陆密码
        /// </summary>
        /// <param name="subbranchID">支行id</param>
        /// <param name="newpwd">密码</param>
        public string updatePwd(string subbranchID, string newpwd, string oldpwd)
        {
            SqlAgent sa = new SqlAgent(SysConfiguration.GetErpSqlConn());

            sa.addCondition("F_0120_01", subbranchID, CompareType.Equal, LogicType.none, "");
            sa.addCondition("F_0120_10", oldpwd, CompareType.Equal, LogicType.And, "");
            if (!sa.selectOne("T_0120"))
            {
                return("输入密码错误!");
            }
            sa.addParameterString("F_0120_10", newpwd, 200, false, "");
            sa.update("T_0120");
            return("");
        }