public static QueryAccountResponse queryAccount(QueryAccountInfo info) { string _uri = ECConstUri.account_uri + string.Format("?userId={0}&exactSearch={1}&condition={2}&pageCount={3}&pageNum={4}", info.userId, info.exactSearch, info.condition, info.pageCount, info.pageNum); QueryAccountResponse result = eSDKServiceHelper.CallService <QueryAccountResponse>(_uri, HttpMethod.GET); return(result); }
//查询账户 private void btn_QueryAccount_Click(object sender, EventArgs e) { try { QueryAccountInfo _info = new QueryAccountInfo(); _info.userId = this.txt_AccountId.Text.Trim(); _info.exactSearch = this.cbx_IsExact.Text.Trim(); _info.pageCount = this.txt_dpPageNum.Text.Trim(); _info.pageNum = this.txt_accountPageNum.Text.Trim(); _info.condition = this.txt_codition.Text.Trim(); QueryAccountResponse result = ecBusiness.QueryAccount(_info); if (result != null) { this.txt_ResultCode.Text = result.resultCode; this.txt_Content.Text = result.resultContext; this.txt_ResultInfo.Text = eSDKServiceHelper.GetJsonString(result); if (result.resultCode == "0") { this.WriteLog("call query account success."); } else { this.WriteLog("call query account failed," + result.resultContext); } } else { this.WriteLog("call query account fail,response is null."); } } catch (Exception ex) { this.WriteLog("call query account fail," + ex.Message); } }
/// <summary> /// 查询账户 /// </summary> /// <param name="info"></param> /// <returns></returns> public QueryAccountResponse QueryAccount(QueryAccountInfo info) { QueryAccountResponse result = eSDKServiceHelper.queryAccount(info); return(result); }