Search in sources :

Example 76 with Student

use of com.remswork.project.alice.model.Student in project classify-system by anverliedoit.

the class ExamInputAdapter method onBindViewHolder.

@Override
public void onBindViewHolder(StudentAdapterViewHolder holder, int position) {
    count += 1;
    Student student = studentList.get(position);
    holder.setView(student, position);
    Log.i("TESSSSSSSST", "COUNT :" + count + " VALIDATE : " + doValidate);
    Log.i("TESSSSSSSST", "SCORE :" + score[position] + "POSITION :" + position + "STUDENT :" + student.getFirstName());
    if (doValidate) {
        if (score[position] > totalScore || score[position] < 0) {
            holder.setStatus(false);
        } else {
            holder.setStatus(true);
        }
    }
    if (count == studentList.size()) {
        doValidate = false;
        count = 0;
    }
}
Also used : Student(com.remswork.project.alice.model.Student)

Example 77 with Student

use of com.remswork.project.alice.model.Student in project classify-system by anverliedoit.

the class GradeAdapter method onBindViewHolder.

@Override
public void onBindViewHolder(StudentAdapterViewHolder holder, int position) {
    Student student = studentList.get(position);
    holder.setView(student, position);
}
Also used : Student(com.remswork.project.alice.model.Student)

Example 78 with Student

use of com.remswork.project.alice.model.Student in project classify-system by anverliedoit.

the class AttendanceInputAdapter method onBindViewHolder.

@Override
public void onBindViewHolder(AttendanceViewHolder holder, int position) {
    Student student = studentList.get(position);
    holder.setView(student, position);
    if (doValidate) {
        if (holder.getStatus() < 1)
            holder.isSuccess(false);
        else
            holder.isSuccess(true);
    } else
        holder.markAllAsPresent(isSelectAll);
    if (position == studentList.size() - 1)
        doValidate = false;
}
Also used : Student(com.remswork.project.alice.model.Student)

Example 79 with Student

use of com.remswork.project.alice.model.Student in project classify-system by anverliedoit.

the class ActivityInputAdapterF method onBindViewHolder.

@Override
public void onBindViewHolder(StudentAdapterViewHolder holder, int position) {
    count += 1;
    Student student = studentList.get(position);
    holder.setView(student, position);
    Log.i("TESSSSSSSST", "COUNT :" + count + " VALIDATE : " + doValidate);
    Log.i("TESSSSSSSST", "SCORE :" + score[position] + "POSITION :" + position + "STUDENT :" + student.getFirstName());
    if (doValidate) {
        if (score[position] > totalScore || score[position] < 0) {
            holder.setStatus(false);
        } else {
            holder.setStatus(true);
        }
    }
    if (count == studentList.size()) {
        doValidate = false;
        count = 0;
    }
}
Also used : Student(com.remswork.project.alice.model.Student)

Example 80 with Student

use of com.remswork.project.alice.model.Student in project classify-system by anverliedoit.

the class QuizInputAdapterF method onBindViewHolder.

@Override
public void onBindViewHolder(StudentAdapterViewHolder holder, int position) {
    count += 1;
    Student student = studentList.get(position);
    holder.setView(student, position);
    Log.i("TESSSSSSSST", "COUNT :" + count + " VALIDATE : " + doValidate);
    Log.i("TESSSSSSSST", "SCORE :" + score[position] + "POSITION :" + position + "STUDENT :" + student.getFirstName());
    if (doValidate) {
        if (score[position] > totalScore || score[position] < 0) {
            holder.setStatus(false);
        } else {
            holder.setStatus(true);
        }
    }
    if (count == studentList.size()) {
        doValidate = false;
        count = 0;
    }
}
Also used : Student(com.remswork.project.alice.model.Student)

Aggregations

Student (com.remswork.project.alice.model.Student)82 GradingFactorException (com.remswork.project.alice.exception.GradingFactorException)29 CompoundButton (android.widget.CompoundButton)22 Message (com.remswork.project.alice.model.support.Message)21 Grade (com.remswork.project.alice.model.Grade)20 ArrayList (java.util.ArrayList)19 StudentException (com.remswork.project.alice.exception.StudentException)17 CardView (android.support.v7.widget.CardView)15 DefaultItemAnimator (android.support.v7.widget.DefaultItemAnimator)15 LinearLayoutManager (android.support.v7.widget.LinearLayoutManager)15 RecyclerView (android.support.v7.widget.RecyclerView)15 View (android.view.View)15 TextView (android.widget.TextView)15 ClassException (com.remswork.project.alice.exception.ClassException)14 Button (android.widget.Button)13 List (java.util.List)13 ToggleButton (android.widget.ToggleButton)11 Client (javax.ws.rs.client.Client)10 WebTarget (javax.ws.rs.client.WebTarget)10 Response (javax.ws.rs.core.Response)10