private void GUI_Syllabus_OtherInfo_Load(object sender, EventArgs e) { if (p.getLock(idp) == true) { richTextBox1.ReadOnly = true; richTextBox2.ReadOnly = true; richTextBox3.ReadOnly = true; richTextBox4.ReadOnly = true; richTextBox5.ReadOnly = true; button1.Enabled = false; } try { richTextBox1.Text = db.Syllabus.Where(pro => pro.id == ids).Single().CourseLecturer; richTextBox2.Text = db.Syllabus.Where(pro => pro.id == ids).Single().CourseDescription; richTextBox3.Text = db.Syllabus.Where(pro => pro.id == ids).Single().CourseRequest; richTextBox4.Text = db.Syllabus.Where(pro => pro.id == ids).Single().CourseDocument; richTextBox5.Text = db.Syllabus.Where(pro => pro.id == ids).Single().CourseMethod; } catch { richTextBox1.Text = ""; richTextBox2.Text = ""; richTextBox3.Text = ""; richTextBox4.Text = ""; richTextBox5.Text = ""; } }
private void GUI_Program_Outcomes_AddEdit_Load(object sender, EventArgs e) { if (pr.getLock(idp) == true) { txtProgramOutNo.ReadOnly = true; rcOutcomes.ReadOnly = true; btnOutcomesSave.Enabled = false; } var list = new[] { new { Text = "Về Kiến Thức", Value = 1 }, new { Text = "Về kỹ năng, thái độ và đạo đức nghề nghiệp", Value = 2 }, new { Text = "Về khả năng công tác", Value = 3 } }; cboOutcomeType.DataSource = list; cboOutcomeType.DisplayMember = "Text"; cboOutcomeType.ValueMember = "Value"; if (idprout == "") { clean(); } else { txtProgramOutNo.Text = prou.LoadOutcomes(idprout).Single().OutcomeNo; cboOutcomeType.SelectedValue = prou.LoadOutcomes(idprout).Single().OutcomeType; rcOutcomes.Text = prou.LoadOutcomes(idprout).Single().OutcomeContent; } }
private void GUI_Program_ProgramInfo_Load(object sender, EventArgs e) { if (pro.getLock(id) == true) { txtProgramActor.ReadOnly = true; txtProgramBranch.ReadOnly = true; txtProgramLevel.ReadOnly = true; txtProgramMark.ReadOnly = true; txtProgramName.ReadOnly = true; txtProgramPoint.ReadOnly = true; txtProgramProcess.ReadOnly = true; txtProgramSemester.ReadOnly = true; txtProgramTime.ReadOnly = true; txtProgramType.ReadOnly = true; txtProgramVolume.ReadOnly = true; btnSave.Enabled = false; } txtProgramName.Text = pro.LoadProgram(id).Single().name; txtProgramName.ReadOnly = true; if (pro.LoadProgram(id).Single().ProgramActor != null || pro.LoadProgram(id).Single().ProgramActor != "") { txtProgramActor.Text = pro.LoadProgram(id).Single().ProgramActor; } if (pro.LoadProgram(id).Single().ProgramBranch != null || pro.LoadProgram(id).Single().ProgramBranch != "") { txtProgramBranch.Text = pro.LoadProgram(id).Single().ProgramBranch; } if (pro.LoadProgram(id).Single().ProgramLevel != null || pro.LoadProgram(id).Single().ProgramLevel != "") { txtProgramLevel.Text = pro.LoadProgram(id).Single().ProgramLevel; } if (pro.LoadProgram(id).Single().ProgramVolume != null || pro.LoadProgram(id).Single().ProgramVolume != "") { txtProgramVolume.Text = pro.LoadProgram(id).Single().ProgramVolume; } if (pro.LoadProgram(id).Single().ProgramType != null || pro.LoadProgram(id).Single().ProgramType != "") { txtProgramType.Text = pro.LoadProgram(id).Single().ProgramType; } if (pro.LoadProgram(id).Single().ProgramTime != null || pro.LoadProgram(id).Single().ProgramTime != "") { txtProgramTime.Text = pro.LoadProgram(id).Single().ProgramTime; } if (pro.LoadProgram(id).Single().ProgramProcess != null || pro.LoadProgram(id).Single().ProgramProcess != "") { txtProgramProcess.Text = pro.LoadProgram(id).Single().ProgramProcess; } if (pro.LoadProgram(id).Single().ProgramSemester != null || pro.LoadProgram(id).Single().ProgramSemester.ToString() != "") { txtProgramSemester.Text = pro.LoadProgram(id).Single().ProgramSemester.ToString(); } if (pro.LoadProgram(id).Single().ProgramPoint != null || pro.LoadProgram(id).Single().ProgramPoint.ToString() != "") { txtProgramMark.Text = pro.LoadProgram(id).Single().ProgramPoint.ToString(); } if (pro.LoadProgram(id).Single().ProgramTC != null || pro.LoadProgram(id).Single().ProgramTC.ToString() != "") { txtProgramPoint.Text = pro.LoadProgram(id).Single().ProgramTC.ToString(); } }
private void GUI_Syllabus_MethodMapp_Load(object sender, EventArgs e) { loadata(); if (p.getLock(idp) == true) { btnDel.Enabled = false; } }
void loadData() { gcCourseObj.DataSource = sysobj.loadlistobj(idsys); if (p.getLock(idp) == true) { btnAdd.Enabled = false; btnDel.Enabled = false; } }
private void GUI_Syllabus_ScheduleManager_Load(object sender, EventArgs e) { loadata(); if (p.getLock(idp) == true) { btnAdd.Enabled = false; btnDel.Enabled = false; } }
private void GUI_Program_Outcomes_Load(object sender, EventArgs e) { loadData(); if (p.getLock(idprogram) == true) { btnAdd.Enabled = false; barLargeButtonItem2.Enabled = false; } }
private void GUI_Syllabus_Map_Load(object sender, EventArgs e) { if (p.getLock(idpo) == true) { btnSave.Enabled = false; } loadDB(); string sts = lsSyllabusOut.GetItemValue(index).ToString(); string stp = map.loadmap(sts); loadchecked(map.loadcheckedlist(stp)); }
private void GUI_Syllabus_Schedule_Load(object sender, EventArgs e) { txtcount.ReadOnly = true; loaddata(); if (p.getLock(idp) == true) { txtcount.ReadOnly = true; txtPeriods.ReadOnly = true; rtAct.ReadOnly = true; rtContent.ReadOnly = true; rtDoc.ReadOnly = true; btnSave.Enabled = false; } }
private void GUI_Program_Syllabus_Load(object sender, EventArgs e) { txtTHtime.ReadOnly = true; if (idsys == "") { loadcomboSY(); clean(); } else { if (pro.getLock(idprogram) == false) { txtCourseCode.ReadOnly = true; txtCourseName.ReadOnly = true; txtCoursePoint.ReadOnly = true; txtLTtime.ReadOnly = true; txtTHtime.ReadOnly = true; btnSave.Enabled = false; btnAdd.Enabled = false; btnDel.Enabled = false; rtCourseContent.ReadOnly = true; } { loadcomboSY(); txtCourseName.Text = sys.loadSys(idsys).Single().name; txtCourseCode.Text = sys.loadSys(idsys).Single().CourseCode; txtCoursePoint.Text = sys.loadSys(idsys).Single().CoursePoint.ToString(); txtLTtime.Text = sys.loadSys(idsys).Single().CourseLT.ToString(); string time = ""; try { int point = (sys.loadSys(idsys).Single().CoursePoint.Value) * 15; int LT = (sys.loadSys(idsys).Single().CourseLT.Value) * 15; time = (point - LT).ToString(); } catch { time = ""; } txtTHtime.Text = time; cboCourseOwner.SelectedValue = sys.loadSys(idsys).Single().idAccount; cboCourseSemester.SelectedItem = int.Parse((sys.loadSys(idsys).Single().CourseSemester).ToString()); cboCourseType.SelectedValue = sys.loadSys(idsys).Single().CourseType; loadpre(sys.loadSys(idsys).Single().PreCourse); rtCourseContent.Text = sys.loadSys(idsys).Single().CourseContent; } } }
private void GUI_Syllabus_Request_Load(object sender, EventArgs e) { if (p.getLock(idp) == true) { richtextboxrequest.ReadOnly = true; fileSaveItem1.Enabled = false; } try { richtextboxrequest.Text = db.Syllabus.Where(pro => pro.id == ids).Single().CourseRequest; } catch { richtextboxrequest.Text = ""; } }
private void GUI_Syllabus_Objectives_Add_Load(object sender, EventArgs e) { if (p.getLock(idp) == true) { rtObjectives.ReadOnly = true; btnSave.Enabled = false; } if (idobj != "") { rtObjectives.Text = syso.loadobj(idobj).Single().ObjSContent; } else { rtObjectives.Text = ""; } }
private void GUI_Syllabus_MethodMap_Dialog_Load(object sender, EventArgs e) { if (p.getLock(idp) == true) { rtsys.ReadOnly = true; rtpro.ReadOnly = true; rtmethod.ReadOnly = true; txtpart1.ReadOnly = true; txtpart2.ReadOnly = true; txtpart3.ReadOnly = true; txtpercent1.ReadOnly = true; txtpercent2.ReadOnly = true; txtpercent3.ReadOnly = true; txtdesity.ReadOnly = true; txtcount.ReadOnly = true; btnSave.Enabled = false; } rtsys.Text = map.singlemap(idmap).Single().SyllabusOutcome; rtpro.Text = map.singlemap(idmap).Single().ProgramOutcome; rtmethod.Text = map.singlemap(idmap).Single().Methods; txtpart1.Text = map.singlemap(idmap).Single().FirstPart; txtpart2.Text = map.singlemap(idmap).Single().SecondPart; txtpart3.Text = map.singlemap(idmap).Single().ThirdPart; txtpercent1.Text = map.singlemap(idmap).Single().FirstPercent.ToString(); txtpercent2.Text = map.singlemap(idmap).Single().FirstPercent.ToString(); txtpercent3.Text = map.singlemap(idmap).Single().FirstPercent.ToString(); txtdesity.Text = map.singlemap(idmap).Single().desity.ToString(); int count = 100; try { foreach (Mapping item in map.listmap(ids)) { count -= int.Parse(item.desity.Value.ToString()); } ; }catch { count = 100; } txtcount.Text = count.ToString() + "%"; txtcount.ReadOnly = true; rtsys.ReadOnly = true; rtpro.ReadOnly = true; }
private void GUI_Program_PackageInfo_Load(object sender, EventArgs e) { if (p.getLock(idprogram) == true) { richtextboxLecturer.ReadOnly = true; fileSaveItem1.Enabled = false; } try { richtextboxLecturer.Text = db.Programs.Where(pro => pro.id == idprogram).Single().ProgramLecturer; } catch { richtextboxLecturer.Text = ""; } richtextboxLecturer.Options.Behavior.SaveAs = DevExpress.XtraRichEdit.DocumentCapability.Disabled; richtextboxLecturer.Options.Behavior.Save = DevExpress.XtraRichEdit.DocumentCapability.Disabled; }
private void GUI_Syllabus_Outcomes_Add_Load(object sender, EventArgs e) { if (p.getLock(idp) == true) { txtOutNo.ReadOnly = true; rtCourseOut.ReadOnly = true; btnSave.Enabled = true; } if (idSout != "") { txtOutNo.Text = syou.loadout(idSout).Single().OutcomeNo; rtCourseOut.Text = syou.loadout(idSout).Single().OutcomeContent; } else { rtCourseOut.Text = ""; txtOutNo.Text = ""; } }
private void GUI_Program_OtherInfo_Load(object sender, EventArgs e) { if (p.getLock(idprogram) == true) { richTextBox1.ReadOnly = true; richTextBox2.ReadOnly = true; button1.Enabled = false; button2.Enabled = false; } try { richTextBox1.Text = db.Programs.Where(pro => pro.id == idprogram).Single().ProgramLecturer; richTextBox1.Text = db.Programs.Where(pro => pro.id == idprogram).Single().ProgramPackage; } catch { richTextBox1.Text = ""; richTextBox2.Text = ""; } }
private void GUI_Syllabus_Info_Load(object sender, EventArgs e) { txtCoursePoint.ReadOnly = true; if (p.getLock(idp) == true) { txtCourseLevel.ReadOnly = true; txtCoursePoint.ReadOnly = true; btnSave.Enabled = false; } string point, level, time; try { time = sys.loadSys(idsysinfo).Single().CourseTime; } catch { time = ""; } try { level = sys.loadSys(idsysinfo).Single().CourseLevel; } catch { level = ""; } try { point = sys.loadSys(idsysinfo).Single().CoursePoint.ToString(); } catch { point = ""; } txtCoursePoint.Text = point; txtCourseLevel.Text = level; rtCourseTime.Text = time; }