public PwdQuestionUploadResult PwdQuestionUpload(string SPID, string CustID, PwdQARecord[] PwdQARecords, string ExtendField)
 {
     PwdQuestionUploadResult Result = new PwdQuestionUploadResult();
     return Result;
 }
    public int PwdQuestionUpload(string SPID, string CustID, PwdQuestionUploadResult[] PwdQARecords, string ExtendField, out string OutCustID, 
                                        out string ErrorDescription, out string OutExtendField)
    {
        OutCustID = "";
        int Result = ErrorDefinition.IError_Result_UnknowError_Code;
        ErrorDescription = ErrorDefinition.IError_Result_UnknowError_Msg;
        OutExtendField = "";

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

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

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

            if (CommonUtility.IsEmpty(CustID))
            {
                Result = ErrorDefinition.BT_IError_Result_InValidCustID_Code;
                ErrorDescription = ErrorDefinition.BT_IError_Result_InValidCustID_Msg + ",不能为空";
                return Result;
            }

            if (PwdQARecords == null)
            {
                Result = ErrorDefinition.IError_Result_UnknowError_Code;
                ErrorDescription = "PwdQARecords为null值";
                return Result;
            }
            #endregion
            int count = PwdQARecords.Length;
            string[] Answer = new string[count];
            int[] QuestionID = new int[count];

            for (int i = 0; i < count; i++)
            {
                Answer[i] = PwdQARecords[i].Answer;
                QuestionID[i] = PwdQARecords[i].QuestionID;
            }

            Result = BTForBusinessSystemInterfaceRules.PwdQuestionUpload(CustID, QuestionID, Answer, out ErrorDescription);
            OutCustID = CustID;
        }
        catch (Exception err)
        {
            Result = ErrorDefinition.IError_Result_UnknowError_Code;
            ErrorDescription = err.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(";CustID - " + CustID);
            if (PwdQARecords != null)
            {
                for (int i = 0; i < PwdQARecords.Length; i++)
                {
                    msg.Append(";QuestionID" + i + " - " + PwdQARecords[i].QuestionID);
                    msg.Append(";Answer " + i + " - " + PwdQARecords[i].Answer);
                    msg.Append(";ExtendField " + i + " - " + PwdQARecords[i].ExtendField + "\r\n");
                }
            }
            msg.Append(";ExtendField - " + ExtendField);
            msg.Append("\r\n");

            msg.Append("处理结果 - " + Result);
            msg.Append("; 错误描述 - " + ErrorDescription);
            msg.Append("CustID - " + OutCustID);
            msg.Append("ExtendField - " + OutExtendField);
            msg.Append("++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\r\n");

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

        return Result;
    }