public void bindGridviews(Guid UserId) { //get grid emovement DAL.EmployeeMovement emov = new DAL.EmployeeMovement(); gvEMovement.DataSource = emov.DisplayEMovement(UserId); gvEMovement.DataBind(); //get grid jobexp DAL.Experience exp = new DAL.Experience(); gvExperience.DataSource = exp.getExperienceById(UserId); gvExperience.DataBind(); //get grid education DAL.Education educ = new DAL.Education(); gvEducation.DataSource = educ.getEducationById(UserId); gvEducation.DataBind(); //get grid trainings DAL.Training training = new DAL.Training(); gvTrainings.DataSource = training.getTrainingsById(UserId); gvTrainings.DataBind(); //get grid awards DAL.Award award = new DAL.Award(); gvAwards.DataSource = award.getAwardsById(UserId); gvAwards.DataBind(); //get grid violation DAL.Violation violation = new DAL.Violation(); gvViolations.DataSource = violation.getViolationsById(UserId); gvViolations.DataBind(); //get grid foremergency DAL.Contact contact = new DAL.Contact(); gvForEmergency.DataSource = contact.getContactById(UserId); gvForEmergency.DataBind(); //get grid personalcards DAL.MembershipCard memCard = new DAL.MembershipCard(); gvPersonalCards.DataSource = memCard.getPersonalCardsById(UserId); gvPersonalCards.DataBind(); BindDocuments(UserId); }
private void frmStudentEducation_Load(object sender, EventArgs e2) { MinimumSize = this.Size; DAL.Student s = new DAL.Student(); cmbStudent.DataSource = s.Select().Tables[0]; cmbStudent.DisplayMember = "name"; cmbStudent.ValueMember = "id"; cmbStudent.SelectedValue = -1; DAL.Education e = new DAL.Education(); cmbEducation.DataSource = e.Select().Tables[0]; cmbEducation.DisplayMember = "name"; cmbEducation.ValueMember = "id"; cmbEducation.SelectedValue = -1; DAL.EducationBoard eb = new DAL.EducationBoard(); cmbEducationBoard.DataSource = eb.Select().Tables[0]; cmbEducationBoard.DisplayMember = "name"; cmbEducationBoard.ValueMember = "id"; cmbEducationBoard.SelectedValue = -1; }