|
|
@ -337,6 +337,33 @@ public class CabinetActivity extends AppCompatActivity |
|
|
|
return 0; |
|
|
|
} |
|
|
|
|
|
|
|
public void setStudentName(String string){ |
|
|
|
studentGroup.setText(string); |
|
|
|
} |
|
|
|
|
|
|
|
public void setStudentGroup(String string) { |
|
|
|
studentGroup.setText(getString(R.string.cabinet_group_name) + string); |
|
|
|
} |
|
|
|
|
|
|
|
public void setStudentRate(String string) { |
|
|
|
studentRate.setText(getString(R.string.cabinet_student_rate) + string); |
|
|
|
} |
|
|
|
|
|
|
|
public void setProgressVisibility(Boolean visible) { |
|
|
|
if(visible){ |
|
|
|
progressLayout.setVisibility(View.VISIBLE); |
|
|
|
} else { |
|
|
|
progressLayout.setVisibility(View.INVISIBLE); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public void setGroupPosition(String position) { |
|
|
|
positionGroup.setText(getString(R.string.cabinet_group_position) + position); |
|
|
|
} |
|
|
|
|
|
|
|
public void setFacultyPosition(String position) { |
|
|
|
positionFaculty.setText(getString(R.string.cabinet_faculty_position) + position); |
|
|
|
} |
|
|
|
|
|
|
|
// Контент генератор
|
|
|
|
public void taskGenerator(int state){ |
|
|
@ -346,10 +373,9 @@ public class CabinetActivity extends AppCompatActivity |
|
|
|
case 2: |
|
|
|
MainHTML = siteBuf; |
|
|
|
String studNameGroup = parser.cutLine("<span id=\\\"P1_STUD\\\" class=\\\"display_only\\\" style=\\\"font-size: 120%; font-family:Verdana, Arial, Helvetica, sans-serif; color: #0000FF; font-weight:bold\\\">", |
|
|
|
"</span>", |
|
|
|
MainHTML); |
|
|
|
studentName.setText(parser.cutLine(""," /",studNameGroup)); |
|
|
|
studentGroup.setText("Группа: " + parser.cutLine("/ ","",studNameGroup)); |
|
|
|
"</span>", MainHTML); |
|
|
|
setStudentName(parser.cutLine(""," /",studNameGroup)); |
|
|
|
setStudentGroup(parser.cutLine("/ ","",studNameGroup)); |
|
|
|
loadSite("javascript:apex.submit('T_ЗАНЯТИЯ/ОЦЕНКИ');"); |
|
|
|
break; |
|
|
|
case 3: |
|
|
@ -367,7 +393,7 @@ public class CabinetActivity extends AppCompatActivity |
|
|
|
case 5: |
|
|
|
RateValueHTML = siteBuf; |
|
|
|
String rate = parser.cutLine("<td align=\\\"center\\\" headers=\\\"STUDRATE\\\">","</td>",RateValueHTML); |
|
|
|
studentRate.setText("Балл: " + rate); |
|
|
|
setStudentRate(rate); |
|
|
|
GroupRateURL = "http://web-iais.admin.tstu.ru:7777/zion/" + parser.cutLine("><td headers=\\\"GROUP_NAME\\\"><a href=\\\"","\\\">",RateValueHTML); |
|
|
|
FacultyRateURL = "http://web-iais.admin.tstu.ru:7777/zion/" + parser.cutLine("<td headers=\\\"INST\\\"><a href=\\\"","\\\">", RateValueHTML); |
|
|
|
loadSite(GroupRateURL); |
|
|
@ -382,7 +408,7 @@ public class CabinetActivity extends AppCompatActivity |
|
|
|
fillFaculty(); |
|
|
|
fillAll(); |
|
|
|
taskFinished = true; |
|
|
|
progressLayout.setVisibility(View.INVISIBLE); |
|
|
|
setProgressVisibility(false); |
|
|
|
break; |
|
|
|
} |
|
|
|
|
|
|
@ -454,8 +480,10 @@ public class CabinetActivity extends AppCompatActivity |
|
|
|
s = parser.cutLine("<font","</font>",s); |
|
|
|
} |
|
|
|
s2 = parser.cutLine("<td align=\\\"center\\\" headers=\\\"ROWNUM\\\">","</td>",s2); |
|
|
|
Log.i("GroupPos",s2); |
|
|
|
positionGroup.setText("Место в группе: " + s2); |
|
|
|
//***//
|
|
|
|
Log.i(getString(R.string.cabinet_group_position), s2); |
|
|
|
//***//
|
|
|
|
setGroupPosition(s2); |
|
|
|
s = ""; |
|
|
|
s2 = FacultyRateHTML; |
|
|
|
s = parser.cutLine("<tr>","</tr>",FacultyRateHTML); |
|
|
@ -466,8 +494,8 @@ public class CabinetActivity extends AppCompatActivity |
|
|
|
s = parser.cutLine("<font","</font>",s); |
|
|
|
} |
|
|
|
s2 = parser.cutLine("<td align=\\\"center\\\" headers=\\\"ROWNUM\\\">","</td>",s2); |
|
|
|
Log.i("FacultyPos",s2); |
|
|
|
positionFaculty.setText("Место в институте: " + s2); |
|
|
|
Log.i(getString(R.string.cabinet_faculty_position),s2); |
|
|
|
setFacultyPosition(s2); |
|
|
|
} |
|
|
|
|
|
|
|
@TargetApi(19) |
|
|
|