private void GetSelectionDetail() { TokenResultEntity getToken = provide.GetToken(); if (getToken.Code != 0) { MessageBox.Show("获取Token失败, 错误信息: " + getToken.ErrMsg); return; } GetSelectionDetailResponse getSelectionDetail = provide.GetSelectionDetail(selectionID); if (getSelectionDetail.Code != 0) { MessageBox.Show("获取认购人信息失败, 错误信息: " + getSelectionDetail.ErrMsg); return; } else { if (getSelectionDetail.IsAbandon == true) { label4.Text = "已弃选"; } else { label4.Text = "已确认"; } label3.Text = projectName + getSelectionDetail.House.Building + "栋" + getSelectionDetail.House.Unit + "单元" + getSelectionDetail.House.RoomNumber + "室"; LoadPicture(getSelectionDetail); } }
private void LoadPicture(GetSelectionDetailResponse selectionDtl) { if (!string.IsNullOrEmpty(selectionDtl.SelectImageUrl1)) { pictureBox1.ImageLocation = selectionDtl.SelectImageUrl1; } if (!string.IsNullOrEmpty(selectionDtl.SelectImageUrl2)) { pictureBox1.ImageLocation = selectionDtl.SelectImageUrl2; } if (!string.IsNullOrEmpty(selectionDtl.SelectImageUrl3)) { pictureBox1.ImageLocation = selectionDtl.SelectImageUrl3; } if (!string.IsNullOrEmpty(selectionDtl.AbandonImageUrl1)) { pictureBox1.ImageLocation = selectionDtl.AbandonImageUrl1; } if (!string.IsNullOrEmpty(selectionDtl.AbandonImageUrl2)) { pictureBox1.ImageLocation = selectionDtl.AbandonImageUrl2; } if (!string.IsNullOrEmpty(selectionDtl.AbandonImageUrl3)) { pictureBox1.ImageLocation = selectionDtl.AbandonImageUrl3; } }
public GetSelectionDetailResponse GetSelectionDetail(int Id) { GetSelectionDetailResponse result = new GetSelectionDetailResponse(); try { var request = new GetSelectionDetailRequest() { SelectionID = Id }; result = this.Client.InvokeAPI <GetSelectionDetailResponse>(request); } catch (Exception ex) { result.Code = 9999; result.ErrMsg = ex.Message; } return(result); }