-
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.
- Loading branch information
Showing
1 changed file
with
107 additions
and
0 deletions.
There are no files selected for viewing
107 changes: 107 additions & 0 deletions
107
app/src/main/java/com/sf/stormwaterutilityandroid/WaterWay/General.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,107 @@ | ||
package com.sf.stormwaterutilityandroid.WaterWay; | ||
|
||
import android.os.Bundle; | ||
|
||
import androidx.appcompat.app.AppCompatActivity; | ||
import androidx.recyclerview.widget.RecyclerView; | ||
|
||
import com.sf.stormwaterutilityandroid.R; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
import me.riddhimanadib.formmaster.FormBuilder; | ||
import me.riddhimanadib.formmaster.model.BaseFormElement; | ||
import me.riddhimanadib.formmaster.model.FormElementPickerDate; | ||
import me.riddhimanadib.formmaster.model.FormElementPickerMulti; | ||
import me.riddhimanadib.formmaster.model.FormElementPickerSingle; | ||
import me.riddhimanadib.formmaster.model.FormElementPickerTime; | ||
import me.riddhimanadib.formmaster.model.FormElementSwitch; | ||
import me.riddhimanadib.formmaster.model.FormElementTextEmail; | ||
import me.riddhimanadib.formmaster.model.FormElementTextMultiLine; | ||
import me.riddhimanadib.formmaster.model.FormElementTextNumber; | ||
import me.riddhimanadib.formmaster.model.FormElementTextPassword; | ||
import me.riddhimanadib.formmaster.model.FormElementTextPhone; | ||
import me.riddhimanadib.formmaster.model.FormElementTextSingleLine; | ||
import me.riddhimanadib.formmaster.model.FormHeader; | ||
|
||
public class General { | ||
//HQ form | ||
private FormBuilder formBuilder; | ||
private RecyclerView recyclerView; | ||
|
||
String nameOfInspector = ""; | ||
String nameOfSite = ""; | ||
String dateRow = ""; | ||
|
||
double outfall = 0.0; | ||
double longitude = 0.0; | ||
double latitude = 0.0; | ||
double invertElevation = 0.0; | ||
|
||
String type = ""; | ||
String pipeSize = ""; | ||
String channelBottomWidth = ""; | ||
String receivingWater = ""; | ||
String routineEvaluation = ""; | ||
String complaintInvestigation = ""; | ||
|
||
String comments = ""; | ||
|
||
/*protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_sample_fordm); | ||
recyclerView = findViewById(R.id.recyclerView2); | ||
setupForm(); | ||
}*/ | ||
|
||
private void setupForm() { | ||
formBuilder = new FormBuilder(this, recyclerView); | ||
|
||
FormHeader title = (FormHeader) new FormHeader().setTitle("Report"); | ||
|
||
FormElementTextSingleLine name = FormElementTextSingleLine.createInstance().setTitle("Name of Inspector").setValue(""); | ||
nameOfInspector = name.getValue(); | ||
|
||
FormElementTextSingleLine site = FormElementTextSingleLine.createInstance().setTitle("Name of site").setValue(""); | ||
nameOfSite = site.getValue(); | ||
|
||
FormElementPickerDate date = FormElementPickerDate.createInstance().setTitle("Date Row").setDateFormat("XX-XX-XXXX").setValue(""); | ||
dateRow = date.getValue(); | ||
|
||
FormElementTextSingleLine outfallValue = FormElementTextSingleLine.createInstance().setTitle("Outfall").setValue("0"); | ||
outfall = Double.parseDouble(outfallValue.getValue()); | ||
|
||
FormElementTextSingleLine longitudeValue = FormElementTextSingleLine.createInstance().setTitle("Longitude").setValue("0"); | ||
longitude = Double.parseDouble(longitudeValue.getValue()); | ||
|
||
FormElementTextSingleLine latitudeValue = FormElementTextSingleLine.createInstance().setTitle("Latitude").setValue("0"); | ||
latitude = Double.parseDouble(latitudeValue.getValue()); | ||
|
||
FormElementTextSingleLine invertElevationValue = FormElementTextSingleLine.createInstance().setTitle("Invert Elevation").setValue("0"); | ||
invertElevation = Double.parseDouble(invertElevationValue.getValue()); | ||
|
||
FormElementTextSingleLine typeValue = FormElementTextSingleLine.createInstance().setTitle("Type").setValue(""); | ||
type = typeValue.getValue(); | ||
|
||
FormElementTextSingleLine pipeSizeValue = FormElementTextSingleLine.createInstance().setTitle("Pipe Size").setValue(""); | ||
pipeSize = pipeSizeValue.getValue(); | ||
|
||
FormElementTextSingleLine channelBottomWidthValue = FormElementTextSingleLine.createInstance().setTitle("Channel Bottom Width") | ||
.setValue(""); | ||
channelBottomWidth = channelBottomWidthValue.getValue(); | ||
|
||
FormElementTextSingleLine receiving = FormElementTextSingleLine.createInstance().setTitle("Receiving Water").setValue(""); | ||
receivingWater = receiving.getValue(); | ||
|
||
FormElementTextSingleLine routine = FormElementTextSingleLine.createInstance().setTitle("Routine Evaluation").setValue(""); | ||
routineEvaluation = routine.getValue(); | ||
|
||
FormElementTextSingleLine complaint = FormElementTextSingleLine.createInstance().setTitle("Complaint Investigation").setValue(""); | ||
complaintInvestigation = complaint.getValue(); | ||
|
||
FormElementTextSingleLine commentsValue = FormElementTextSingleLine.createInstance().setTitle("Comments").setValue(""); | ||
comments = commentsValue.getValue(); | ||
} | ||
|
||
} |