-
Notifications
You must be signed in to change notification settings - Fork 0
/
diplom2.txt
73 lines (54 loc) · 3.08 KB
/
diplom2.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/*when {
maths?.text.isNullOrBlank() ->
maths?.error = "Áàëëû çà ìàòåìàòèêó íå ââåäåíû"
maths?.text.toString().toInt() < math_passing ->
maths?.error = "Áàëë ïî ìàòåìàòèêå ìåíüøå ïðîõîäíîãî(%d)".format(math_passing)
maths?.text.toString().toInt() > score_limit ->
maths?.error = "Ââåä¸ííûé áàëë áîëüøå (%d)".format(score_limit)
russian?.text.isNullOrBlank() ->
russian?.error = "Áàëëû çà ðóññêèé ÿçûê íå ââåäåíû"
russian?.text.toString().toInt() < rus_passing ->
russian?.error = "Áàëë ïî ðóññêîìó ÿçûêó ìåíüøå ïðîõîäíîãî(%d)".format(rus_passing)
russian?.text.toString().toInt() > score_limit ->
russian?.error = "Ââåä¸ííûé áàëë áîëüøå (%d)".format(score_limit)
}*/
/*when(maths.text.toString().toInt()) {
!in math_passing..100 -> {
maths?.error = "Áàëë ïî ìàòåìàòèêå ìåíüøå ïðîõîäíîãî (27)"
}
/*-> {
maths?.error = "Áàëëû çà ìàòåìàòèêó íå ââåäåíû"
}*/
}*/
//storage.putInt("maths", maths.text.toString().toInt())
//storage.putInt("russian", russian.text.toString().toInt())
//standardPresenter!!.addFragment(ResultView.instance)
/*storage.putInt("maths", 10)
storage.putInt("russian", 20)
fragmentManager!!.beginTransaction()
.replace(R.id.container, ResultView.instance).commit()*/
/*val args = Bundle()
args.putInt("editTextMaths", Integer.parseInt(maths.text.toString()/*editTextMaths!!.text.toString()*/))
args.putInt("editTextRussian", Integer.parseInt(russian.text.toString()/*!!.text.toString()*/))
ResultView.instance.arguments = args*/
//standardPresenter!!.addFragment(ResultView.instance)
/*when(maths.text.toString().toInt()) {
!in math_passing..100 -> {
maths?.error = "Áàëë ïî ìàòåìàòèêå ìåíüøå ïðîõîäíîãî (27)"
}
/*-> {
maths?.error = "Áàëëû çà ìàòåìàòèêó íå ââåäåíû"
}*/
}*/
//storage.putInt("maths", maths.text.toString().toInt())
//storage.putInt("russian", russian.text.toString().toInt())
//standardPresenter!!.addFragment(ResultView.instance)
/*storage.putInt("maths", 10)
storage.putInt("russian", 20)
fragmentManager!!.beginTransaction()
.replace(R.id.container, ResultView.instance).commit()*/
/*val args = Bundle()
args.putInt("editTextMaths", Integer.parseInt(maths.text.toString()/*editTextMaths!!.text.toString()*/))
args.putInt("editTextRussian", Integer.parseInt(russian.text.toString()/*!!.text.toString()*/))
ResultView.instance.arguments = args*/
//standardPresenter!!.addFragment(ResultView.instance)