ID作成時に表示をダイアログに変更、セットアップが終了していない場合にtoast表示を行い遷移しないように変更 #49
|
@ -16,19 +16,18 @@ import java.util.Map;
|
|||
|
||||
public class FirestoreReception {
|
||||
|
||||
//firestoreから受け取ったデータを束ねるためのマップ
|
||||
public List<MyDataClass> myDataList = new ArrayList<>();
|
||||
private FirebaseFirestore db;
|
||||
|
||||
public FirestoreReception() {
|
||||
db = FirebaseFirestore.getInstance();
|
||||
}
|
||||
|
||||
//firestoreから受け取ったデータを束ねるためのマップ
|
||||
public List<MyDataClass> myDataList = new ArrayList<>();
|
||||
|
||||
//ClassIdを引数にデータの作成を行う
|
||||
public void getDocumentsByClassId(int classId) {
|
||||
myDataList.clear();
|
||||
CollectionReference collectionRef = db.collection("QuestionnaireForms");
|
||||
CollectionReference collectionRef = db.collection("testTimeStamp");
|
||||
|
||||
// classIdが引数のものを取得する
|
||||
collectionRef.whereEqualTo("classId", classId).get()
|
||||
|
|
|
@ -2,7 +2,6 @@ package com.example.oplogy;
|
|||
|
||||
import static android.content.ContentValues.TAG;
|
||||
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.app.DatePickerDialog;
|
||||
import android.app.TimePickerDialog;
|
||||
|
@ -42,6 +41,16 @@ public class SetUpActivity extends FragmentActivity
|
|||
String startBreakTimeString;
|
||||
String endBreakTimeString;
|
||||
int totalStudentString;
|
||||
String stringYearString;
|
||||
String stringMonthString;
|
||||
String stringDayOfMonthString;
|
||||
String stringHourOfDayString;
|
||||
String stringMinuteString;
|
||||
Button setFirstDay;
|
||||
Button setSecondDay;
|
||||
Button setThirdDay;
|
||||
Button setStartTimeButton;
|
||||
Button setEndTimeButton;
|
||||
private TextView setTeacherName;
|
||||
private TextView setStartPoint;
|
||||
private TextView setStartTime;
|
||||
|
@ -52,22 +61,6 @@ public class SetUpActivity extends FragmentActivity
|
|||
private int isDateSelectedInt;
|
||||
private int isStartTimeSelectedInt;
|
||||
|
||||
String stringYearString;
|
||||
String stringMonthString;
|
||||
String stringDayOfMonthString;
|
||||
|
||||
|
||||
String stringHourOfDayString;
|
||||
String stringMinuteString;
|
||||
|
||||
Button setFirstDay;
|
||||
Button setSecondDay;
|
||||
Button setThirdDay;
|
||||
Button setStartTimeButton;
|
||||
Button setEndTimeButton;
|
||||
|
||||
|
||||
|
||||
@SuppressLint("MissingInflatedId")
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user