public PwdQuestionQueryResult PwdQuestionQuery(string SPID, string ExtendField)
 {
     PwdQuestionQueryResult Result = new PwdQuestionQueryResult();
     return Result;
 }
    public int PwdQuestionQuery(string SPID, string ExtendField, out PwdQuestionQueryResult[] PwdResults, out int iResult, out string ErrorDescription)
    {
        PwdResults = null;
        iResult = ErrorDefinition.IError_Result_UnknowError_Code;
        ErrorDescription = ErrorDefinition.IError_Result_UnknowError_Msg;

        try
        {
            #region
            if (CommonUtility.IsEmpty(SPID))
            {

                iResult = ErrorDefinition.BT_IError_Result_InValidSPID_Code;
                ErrorDescription = ErrorDefinition.BT_IError_Result_InValidSPID_Msg + ",不能为空";
                return iResult;
            }

            if (SPID.Length != ConstDefinition.Length_SPID)
            {
                iResult = ErrorDefinition.BT_IError_Result_InValidSPID_Code;
                ErrorDescription = ErrorDefinition.BT_IError_Result_InValidSPID_Msg + ",长度有误";
                return iResult;
            }
            #endregion

            DataTable dt = new DataTable();
            iResult = BTForBusinessSystemInterfaceRules.PwdQuestionQuery(out dt, out ErrorDescription);
            if (iResult == 0)
            {
                int count = dt.Rows.Count;
                PwdResults = new PwdQuestionQueryResult[count];
                for (int i = 0; i < count; i++)
                {
                    PwdQuestionQueryResult PwdResult = new PwdQuestionQueryResult();
                    PwdResult.ExtendField = "";
                    PwdResult.QuestionID = int.Parse(dt.Rows[i]["QuestionID"].ToString());
                    PwdResult.Question = dt.Rows[i]["Question"].ToString();
                    PwdResults[i] = PwdResult;
                }
            }
            return iResult;
        }
        catch (Exception ex)
        {
            iResult = ErrorDefinition.IError_Result_UnknowError_Code;
            ErrorDescription = ex.Message.ToString();
        }
        finally
        {
            #region WriteLog
            StringBuilder msg = new StringBuilder();
            msg.Append("++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\r\n\r\n");
            msg.Append("密码问题查询接口 " + DateTime.Now.ToString("u") + "\r\n");
            msg.Append(";SPID - " + SPID);
            msg.Append(";ExtendField - " + ExtendField);
            msg.Append("\r\n");

            msg.Append("处理结果 - " + iResult);
            msg.Append("; 错误描述 - " + ErrorDescription);

            for (int i = 0; i < PwdResults.Length; i++)
            {
                msg.Append("; QuestionID - " + PwdResults[i].QuestionID);
                msg.Append("; Question - " + PwdResults[i].Question);
                msg.Append("; ExtendField - " + PwdResults[i].ExtendField + "\r\n");
            }
            msg.Append("++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\r\n");

            BTUCenterInterfaceLog.CenterForBizTourLog("PwdQuestionQuery", msg);
            #endregion
        }

        return iResult;
    }