-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed login, changed WaterWayReport class, added code to push form to…
… firebase, added WaterwayReportDetail.java
- Loading branch information
Samuelford24
authored and
Samuelford24
committed
Apr 15, 2021
1 parent
03b8a54
commit cd52021
Showing
8 changed files
with
247 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
124 changes: 124 additions & 0 deletions
124
app/src/main/java/com/sf/stormwaterutilityandroid/WaterwayReportDetail.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
package com.sf.stormwaterutilityandroid; | ||
|
||
import androidx.appcompat.app.AppCompatActivity; | ||
import androidx.recyclerview.widget.DefaultItemAnimator; | ||
import androidx.recyclerview.widget.LinearLayoutManager; | ||
import androidx.recyclerview.widget.RecyclerView; | ||
|
||
import android.os.Bundle; | ||
import android.util.Log; | ||
|
||
import com.google.firebase.firestore.DocumentSnapshot; | ||
import com.google.firebase.firestore.EventListener; | ||
import com.google.firebase.firestore.FirebaseFirestore; | ||
import com.google.firebase.firestore.FirebaseFirestoreException; | ||
import com.google.firebase.firestore.Query; | ||
import com.google.firebase.firestore.QuerySnapshot; | ||
import com.sf.stormwaterutilityandroid.WaterWay.WaterWayReport; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public class WaterwayReportDetail extends AppCompatActivity { | ||
WaterWayReport wp; | ||
ArrayList<String> s = new ArrayList<>(); | ||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_waterway_report_detail); | ||
wp = (WaterWayReport) getIntent().getSerializableExtra("report"); | ||
String[] labels = | ||
{"Chemical (WQI): ", | ||
"Biological (PTI): ", | ||
"Habitat (QHEI): ", | ||
"Name of Inspector: ", | ||
"Name of Site: ", | ||
"Date: ", | ||
"Outfall #: ", | ||
"Longitude: ", | ||
"Latitude: ", | ||
"Invert Elevation: ", | ||
"Type: ", | ||
"Pipe Size: ", | ||
"Channel Bottom Width: ", | ||
"Receiving Water: ", | ||
"Presence Of Flow: ", | ||
"Unusual Odor: ", | ||
"Unusual Color: ", | ||
"Polutants (nearby): ", | ||
"Obstruction: ", | ||
"Needs Mainenance: ", | ||
"Screened Ok: ", | ||
"Routine Evaluation: ", | ||
"Complaint Investigation: ", | ||
"Illicit Discharge Detected: ", | ||
"No Illicit Discharge Detected: ", | ||
"Further Action Needed: ", | ||
"Temperature (C) Change: ", | ||
"Turbidity (NTU): ", | ||
"pH: ", | ||
"Nitrate (mg/L): ", | ||
"Total Phosphate (mg/L): ", | ||
"Dissolved Oxygen (mg/L): ", | ||
"E coli (Col/100ml): ", | ||
"Other 1: ", | ||
"Other 2: ", | ||
"Intolerant: ", | ||
"Moderately Tolerant: ", | ||
"Fairly Tolerant: ", | ||
"Very Tolerant: ", | ||
"Substrate Size: ", | ||
"Smothering: ", | ||
"Silting: ", | ||
"Rootwads: ", | ||
"Overhanging Veg.: ", | ||
"Oxbows/Black Water: ", | ||
"Downed Trees/Logs: ", | ||
"Shallows (in slow water): ", | ||
"Water Plants: ", | ||
"Deep Pools: ", | ||
"Logs/Woody Debris: ", | ||
"Boulders: ", | ||
"Undercut Banks: ", | ||
"Sinuosity: ", | ||
"Natural: ", | ||
"Riparian Width: ", | ||
"Land Use: ", | ||
"Bank Erosion: ", | ||
"Stream Shading: ", | ||
"Deepest Pool: ", | ||
"Velocity: ", | ||
"Riffle/Run Depth: ", | ||
"Riffle/Run Substrate: ", | ||
"Comments: "}; | ||
s.add( labels[0]+wp.getDoubleFields().get("WQI")); | ||
s.add( labels[1]+wp.getDoubleFields().get("PTI")); | ||
s.add( labels[2]+wp.getDoubleFields().get("QHEI")); | ||
s.add( labels[3]+wp.getH_inspector_name()); | ||
s.add( labels[4]+wp.getH_site_name()); | ||
s.add( labels[5]+wp.getH_date()); | ||
s.add( labels[6]+wp.getDoubleFields().get("GOD_longitude")); | ||
s.add(labels[7]+wp.getDoubleFields().get("GOD_latitude")); | ||
s.add(labels[8]+wp.getDoubleFields().get("GOD_invert_elevation")); | ||
s.add(labels[9] + wp.getDoubleFields().get("GOD_type")); | ||
s.add(labels[10] + wp.getDoubleFields().get("GOD_pipe_size")); | ||
s.add(labels[11] + wp.getDoubleFields().get("GOD_channel_bottom_width")); | ||
s.add(labels[12] + wp.getDoubleFields().get("GOD_receiving_water")); | ||
s.add(labels[13] + wp.getBoolFields().get("DWS_presence_of_flow")); | ||
s.add(labels[14] + wp.getBoolFields().get("DWS_unusual_odor")); | ||
s.add(labels[15] + wp.getBoolFields().get("DWS_unusual_color")); | ||
s.add(labels[16] + wp.getBoolFields().get("DWS_polutants")); | ||
s.add(labels[17] + wp.getBoolFields().get("DWS_polutants")); | ||
s.add(labels[18] + wp.getBoolFields().get("DWS_obstruction")); | ||
s.add(labels[19] + wp.getBoolFields().get("DWS_needs_maintenance")); | ||
s.add(labels[20] + wp.getBoolFields().get("DWS_needs_maintenance")); | ||
s.add(labels[21] + wp.getBoolFields().get("DWS_needs_maintenance")); | ||
s.add(labels[22] + wp.getBoolFields().get("DWS_needs_maintenance")); | ||
s.add(labels[23] + wp.getBoolFields().get("DWS_needs_maintenance")); | ||
s.add(labels[24] + wp.getBoolFields().get("DWS_needs_maintenance")); | ||
s.add(labels[25] + wp.getBoolFields().get("DWS_needs_maintenance")); | ||
|
||
|
||
|
||
} | ||
} |
Oops, something went wrong.