public string GetCompanyName() { ICompanyQuery CompanyQueryRq = requestMsgSet.AppendCompanyQueryRq(); responseMsgSet = sessionManager.DoRequests(requestMsgSet); ICompanyRet CompanyRet = null; if (responseMsgSet == null) { return(null); } IResponseList responseList = responseMsgSet.ResponseList; if (responseList == null) { return(null); } for (int i = 0; i < responseList.Count; i++) { IResponse response = responseList.GetAt(i); if (response.StatusCode >= 0) { if (response.Detail != null) { ENResponseType responseType = (ENResponseType)response.Type.GetValue(); if (responseType == ENResponseType.rtCompanyQueryRs) { CompanyRet = (ICompanyRet)response.Detail; } } } } return((string)CompanyRet.CompanyName.GetValue()); }