protected void Button1_Click(object sender, EventArgs e) { //ToppersDAL td = new ToppersDAL(); objBEL = new ExamBEL(); objDAL = new ExamDAL(); objBEL.course = DropDownList1.SelectedValue; objBEL.branch = DropDownList6.SelectedValue; objBEL.year = DropDownList3.SelectedValue; objBEL.sub = DropDownList4.SelectedValue; objBEL.max = TextBox18.Text; objBEL.etype = DropDownList5.SelectedValue; foreach (GridViewRow row in GridView1.Rows) { if (row.RowType == DataControlRowType.DataRow) { TextBox txtrow = (row.Cells[0].FindControl("txtmarks") as TextBox); objBEL.m = txtrow.Text; //objBEL.max = TextBox1.Text; Label nm = (row.Cells[0].FindControl("Label1") as Label); objBEL.name = nm.Text; Label2.Text = objDAL.StoreMarks(objBEL); } } GridView1.DataBind(); GridView2.DataBind(); //td.AddToppers(objBEL); }
List <QueAnsVO> GetExamQuestions(long examId) { //return MockQuestions.GetQuestions(questionCountForExam, examId); ExamDAL examDAL = new ExamDAL(); List <QueAnsVO> queAnsVOList = examDAL.GetQuestionsForExam(examId); return(queAnsVOList); }
protected void Button1_Click(object sender, EventArgs e) { objBEL = new ExamBEL(); objDAL = new ExamDAL(); objBEL.course = DropDownList1.SelectedValue; objBEL.branch = DropDownList2.SelectedValue; objBEL.year = DropDownList3.SelectedValue; objBEL.sub = DropDownList4.SelectedValue; objBEL.date = TextBox1.Text; //objBEL.duration = DropDownList5.SelectedValue; objBEL.etype = DropDownList6.SelectedValue; objBEL.end = DropDownList5.SelectedValue; Label6.Text = objDAL.AddExam(objBEL); GridView1.DataBind(); }
public ExamGeneration() { InitializeComponent(); course = new Course(); adm = new Admin(); adm.Id = 1; exam = new Exam(false, adm); courses = CourseDAL.SelectAll(); for (int i = 0; i < courses.Count; i++) { ComboboxItem item = new ComboboxItem(); item.Text = courses[i].Name; item.Value = courses[i].Id; CourseNameComboBox.Items.Add(item); CourseNameComboBox.SelectedIndex = 0; } updateCourse(); exams = ExamDAL.getAll(adm); for (int i = 0; i < exams.Count; i++) { ComboboxItem item = new ComboboxItem(); item.Text = exams[i].Id.ToString(); item.Value = exams[i].Id; ExamsComboBox.Items.Add(item); ExamsComboBox.SelectedIndex = 0; } QuestionCollection col = QuestionDAL.GetByType(1); MCQnumLabel.Text = col.Count.ToString(); QuestionCollection col2 = QuestionDAL.GetByType(2); TFnumLabel.Text = col2.Count.ToString(); QuestionCollection col3 = QuestionDAL.GetByType(3); EssaynumLabel.Text = col3.Count.ToString(); updateExamSessions(); }
private void Instructor_Profile_Load(object sender, EventArgs e) { ins = MyInstructor.Instructor; //just for test MyAdmin.Admin = new Admin(); MyAdmin.Admin.Id = 1; ExamCollection exams = ExamDAL.getAll(MyAdmin.Admin); if (exams.Count != 0) { examsCombobox.Items.Clear(); for (int i = 0; i < exams.Count; i++) { ComboboxItem item = new ComboboxItem(); item.Text = exams[i].Id.ToString(); item.Value = exams[i].Id; examsCombobox.Items.Add(item); examsCombobox.SelectedIndex = 0; } } }
public ExamBLL() { _examDAL = new ExamDAL(); }
public void UpdateExamTime(int userId, string currentTime) { ExamDAL ExamDl = new ExamDAL(); ExamDl.UpdateExamTime(userId, currentTime); }
public string GettblConfigByExamTime(string userId) { ExamDAL ExamDl = new ExamDAL(); return(ExamDl.GettblConfigByExamTime(userId)); }
//for Exam drp public List <ExamEntities> GetExamForDrp() { ExamDAL ExamDl = new ExamDAL(); return(ExamDl.GetExamForDrp()); }
public ExamEntities GetExamByID(int ExamID) { ExamDAL ExamDl = new ExamDAL(); return(ExamDl.GetExamByID(ExamID)); }
public List <ExamEntities> GetAllExamPageWise(int pageIndex, ref int recordCount, int length) { ExamDAL ExamDl = new ExamDAL(); return(ExamDl.GetAllExamPageWise(pageIndex, ref recordCount, length)); }
public int DeleteExam(int ID) { ExamDAL ExamDl = new ExamDAL(); return(ExamDl.DeleteExam(ID)); }
public int SaveOrUpdateExam(ExamEntities Exam) { ExamDAL ExamDl = new ExamDAL(); return(ExamDl.SaveOrUpdateExam(Exam)); }
public ExamEntity getexambyname(string name, int numPreguntas) { ExamDAL examDAL = new ExamDAL(); return(examDAL.getexambyname(name, numPreguntas)); }