private void loadStudent(long studentId) { UserModule userModule = new UserModule(); FileModule fileModule = new FileModule(); Student student = (Student) userModule.getUserByUserId(studentId); student_id.Text = student.USER_ID.ToString(); first_name.Text = student.FIRSTNAME; last_name.Text = student.LASTNAME; email.Text = student.EMAIL; //get profile pic string profilePicLocation = fileModule.getProfilePicLocation(studentId); if(profilePicLocation.Length > 0) profile_pic.ImageUrl = "~/" + profilePicLocation; //get courses attended IList<Enrollment> courseEnrolled = student.COURSE_ENROLLED; foreach (Enrollment enrollment in courseEnrolled) { Course course = enrollment.COURSE; student_writeup.Text += course.COURSE_NAME + "<br />"; } }
private void loadStudent(long studentId) { UserModule userModule = new UserModule(); FileModule fileModule = new FileModule(); Student student = (Student) userModule.getUserByUserId(studentId); student_id.Text = student.USER_ID.ToString(); first_name.Text = student.FIRSTNAME; last_name.Text = student.LASTNAME; email.Text = student.EMAIL; student_writeup.Text = student.WRITE_UP; //get profile pic string profilePicLocation = fileModule.getProfilePicLocation(studentId); if (profilePicLocation.Length > 0) profile_pic.ImageUrl = "~/" + profilePicLocation; }
private void updateDetails(long UCId) { UserModule userModule = new UserModule(); UnitCoordinator uc = (UnitCoordinator)userModule.getUserByUserId(UCId); uc.FIRSTNAME = first_name.Text; uc.LASTNAME = last_name.Text; uc.EMAIL = email.Text; uc.PHONE = phone.Text; uc.ADDRESS1 = address1.Text; uc.ADDRESS2 = address2.Text; uc.CITY_TOWN = city_town.Text; uc.STATE = state.Text; uc.ZIP_CODE = zipcode.Text; uc.COUNTRY = country.Text; userModule.updateUser(uc); }
private void loadDetails(long UCId) { UserModule userModule = new UserModule(); UnitCoordinator uc = (UnitCoordinator)userModule.getUserByUserId(UCId); //student.Text = partner.USERNAME; first_name.Text = uc.FIRSTNAME; last_name.Text = uc.LASTNAME; email.Text = uc.EMAIL; phone.Text = uc.PHONE; address1.Text = uc.ADDRESS1; address2.Text = uc.ADDRESS2; city_town.Text = uc.CITY_TOWN; state.Text = uc.STATE; zipcode.Text = uc.ZIP_CODE; country.Text = uc.COUNTRY; }
private void updateDetails(long partnerId) { UserModule userModule = new UserModule(); Partner partner = (Partner)userModule.getUserByUserId(partnerId); partner.USERNAME = company_name.Text; partner.EMAIL = email.Text; partner.PHONE = phone.Text; partner.FAX = fax.Text; partner.ADDRESS1 = address1.Text; partner.ADDRESS2 = address2.Text; partner.CITY_TOWN = city_town.Text; partner.STATE = state.Text; partner.ZIP_CODE = zipcode.Text; partner.COUNTRY = country.Text; userModule.updateUser(partner); //Change username Session["username"] = partner.USERNAME; }
private void loadDetails(long partnerId) { UserModule userModule = new UserModule(); Partner partner = (Partner)userModule.getUserByUserId(partnerId); company_name.Text = partner.USERNAME; email.Text = partner.EMAIL; phone.Text = partner.PHONE; fax.Text = partner.FAX; address1.Text = partner.ADDRESS1; address2.Text = partner.ADDRESS2; city_town.Text = partner.CITY_TOWN; state.Text = partner.STATE; zipcode.Text = partner.ZIP_CODE; country.Text = partner.COUNTRY; }
private void updateDetails(long studentId) { UserModule userModule = new UserModule(); Student student = (Student)userModule.getUserByUserId(studentId); student.FIRSTNAME = first_name.Text; student.LASTNAME = last_name.Text; student.EMAIL = email.Text; student.PHONE = phone.Text; student.ADDRESS1 = address1.Text; student.ADDRESS2 = address2.Text; student.CITY_TOWN = city_town.Text; student.STATE = state.Text; student.ZIP_CODE = zipcode.Text; student.COUNTRY = country.Text; student.WRITE_UP = writeup.Text; userModule.updateUser(student); }
private void loadDetails(long studentId) { UserModule userModule = new UserModule(); Student student = (Student)userModule.getUserByUserId(studentId); //student.Text = partner.USERNAME; student_id.Text = student.USER_ID.ToString(); first_name.Text = student.FIRSTNAME; last_name.Text = student.LASTNAME; email.Text = student.EMAIL; phone.Text = student.PHONE; address1.Text = student.ADDRESS1; address2.Text = student.ADDRESS2; city_town.Text = student.CITY_TOWN; state.Text = student.STATE; zipcode.Text = student.ZIP_CODE; country.Text = student.COUNTRY; writeup.Text = student.WRITE_UP; }