Skip to content

Commit

Permalink
Fixing Dossier medical
Browse files Browse the repository at this point in the history
  • Loading branch information
YassineBOUJNAH committed Jun 4, 2020
1 parent a23d97b commit 1503b96
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ private void setUpRecyclerView() {

String email_id = getActivity().getIntent().getExtras().getString("patient_email");
FicheRef = db.collection("Patient").document(email_id).collection("MyMedicalFolder");
Query query = FicheRef.whereEqualTo("type", "Consultation").orderBy("dateCreated", Query.Direction.DESCENDING);
Query query = FicheRef.whereEqualTo("type", "Consultation");

FirestoreRecyclerOptions<Fiche> options = new FirestoreRecyclerOptions.Builder<Fiche>()
.setQuery(query, Fiche.class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import android.view.View;
import android.widget.TextView;

import com.ensias.healthcareapp.Common.Common;
import com.ensias.healthcareapp.adapter.ConsultationFragmentAdapter;
import com.google.android.material.floatingactionbutton.FloatingActionButton;
import com.google.android.material.tabs.TabLayout;
Expand Down Expand Up @@ -38,6 +39,9 @@ public void onClick(View view) {
openPatientFiche();
}
});
if(Common.CurrentUserType.equals("patient")){
createNewFicheButton.setVisibility(View.GONE);
}


}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container,
return result;
}
private void setUpRecyclerView() {

FicheRef = db.collection("Patient").document(FirebaseAuth.getInstance().getCurrentUser().getEmail().toString()).collection("MyMedicalFolder");
Query query = FicheRef.whereEqualTo("type", "Consultation").orderBy("dateCreated", Query.Direction.DESCENDING);
String email_id = getActivity().getIntent().getExtras().getString("patient_email");
FicheRef = db.collection("Patient").document(email_id).collection("MyMedicalFolder");
Query query = FicheRef.whereEqualTo("type", "Hospitalisation");

FirestoreRecyclerOptions<Fiche> options = new FirestoreRecyclerOptions.Builder<Fiche>()
.setQuery(query, Fiche.class)
Expand Down
Binary file added app/src/main/res/drawable-hdpi/medcal_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-mdpi/medcal_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/main/res/drawable-v24/medcal_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-xhdpi/medcal_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-xxhdpi/medcal_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable/medcal_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 12 additions & 12 deletions app/src/main/res/layout/fragment_booking_step_one.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
<LinearLayout
android:orientation="vertical"
xmlns:android="https://schemas.android.com/apk/res/android"
xmlns:app="https://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
Expand All @@ -14,28 +15,27 @@
android:text="Select your appointement purpose"
android:textSize="24sp" />

<ImageView
android:id="@+id/imageView"
android:layout_width="match_parent"
android:layout_height="170dp"
android:layout_marginTop="15dp"
android:alpha="0.7"
app:srcCompat="@drawable/medcal_logo" />

<Spinner
android:id="@+id/spinnerBooking"
android:layout_width="299dp"
android:layout_height="46dp"

android:layout_marginStart="50dp"
android:layout_marginLeft="50dp"
android:layout_marginTop="350dp"
android:layout_marginTop="75dp"
android:layout_marginEnd="62dp"
android:layout_marginRight="62dp"
android:layout_marginBottom="200dp"
android:background="#ffffff"
android:paddingLeft="20dp"
android:prompt="@string/common_google_play_services_update_text"
android:spinnerMode="dropdown" />

<ImageView
android:id="@+id/imageView"
android:layout_width="match_parent"
android:layout_height="170dp"
android:layout_alignParentTop="true"
android:layout_marginTop="120dp"
android:alpha="0.7"
app:srcCompat="@drawable/medcal_logo" />
</RelativeLayout>
</LinearLayout>
Binary file added app/src/main/res/medcal_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1503b96

Please sign in to comment.