Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public void addItem(int HospSerial, String HospType, String HospitalName, String
item.setfield(field);
mList.add(item);
}
//모든 연계병원 보기
//모든 동물병원 보기
public void call_totalList(){
String region = City1Name;
String city = City2Name;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,8 @@ public void onResponse(Call<QnListResponse> call, Response<QnListResponse> respo
if (response.isSuccessful()) {
Qndata = response.body().data;
if (Qndata == null) {
Log.d("문진표 스피너", "데이터 없음");
Toast.makeText(getActivity(), "문진표를 작성해주세요.", Toast.LENGTH_SHORT).show();
} else {
for(int i=0; i< Qndata.size(); i++) {
mSerial = Qndata.get(i).getMedicalFormSerial();
Expand Down Expand Up @@ -331,7 +333,7 @@ public void sendData() {
map.put("apptReason", apptReason);

//Uri 타입 파일 경로가지는 requestBody 객체 생성
RequestBody requestFile = RequestBody.create(MediaType.parse("image/jpg"), String.valueOf(mImageCaptureUri)); //요부분을 잘 모르겠음.
RequestBody requestFile = RequestBody.create(MediaType.parse("image/jpg"), String.valueOf(mImageCaptureUri));
File IImage = directory_AAI;
//requestBody로 Multipart.Part 객체 생성
if (IImage == null) {body = null;}
Expand Down Expand Up @@ -385,6 +387,7 @@ public void onTimeSet(TimePicker view, int hourOfDay, int minute) {

// 카메라 촬영 후 이미지 가져오기
public void TakePhoto() {
//카메라 호출
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder();
StrictMode.setVmPolicy(builder.build());
Expand Down Expand Up @@ -426,14 +429,14 @@ public void onActivityResult(int requestCode, int resultCode, Intent data) {
intent.putExtra("aspectY", 1); // CROP 박스의 Y축 비율
intent.putExtra("scale", true);
intent.putExtra("return-data", true);
Log.d("크롭!", "성공");
Log.d("크롭", "성공");
startActivityForResult(intent, CROP_FROM_IMAGE); // CROP_FROM_CAMERA case문 이동
break;
}

case CROP_FROM_IMAGE:
{
Log.d("크롭~", "성공");
Log.d("크롭 이미지 보여주기", "성공");
if(resultCode != RESULT_OK) { return;}
final Bundle extras = data.getExtras();
// CROP된 이미지를 저장하기 위한 FILE 경로 >> Provider의 문제?
Expand All @@ -445,7 +448,7 @@ public void onActivityResult(int requestCode, int resultCode, Intent data) {
storeCropImage(photo, filePath); // CROP된 이미지를 외부저장소, 앨범에 저장한다.
absoultePath = filePath;
break;
}
} else {Log.d("extras", "데이터 없음"); }

// 임시 파일 삭제
File f = new File(mImageCaptureUri.getPath());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,21 +84,6 @@ public void onClick(View view){
});

}
/*사용자가 작성한 반려동물 정보 불러오기
@Override
protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent intent) {
super.onActivityResult(requestCode, resultCode, intent);

if (resultCode == Activity.RESULT_OK) {
if (intent !=null) {
/*String petName = intent.getStringExtra("petName");
String CATDOG = intent.getStringExtra("CATDOG");
addItem(petName, CATDOG, );
mRecyclerViewAdapter.notifyDataSetChanged();
callPetList();
}
}
}*/

// 리사이클러뷰에 데이터추가
public void addItem(String mainText, String imgName, int petSerial){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ public void onResponse(Call<QnListResponse> call, Response<QnListResponse> respo
if (response.isSuccessful()) {
Qndata = response.body().data;
if (Qndata == null) {
{Log.d("문진표", "데이터 없음");}
} else {
for(int i=0; i< Qndata.size(); i++) {
int mSerial = Qndata.get(i).getMedicalFormSerial();
Expand Down