コード例 #1
0
        private void LoadEducationEditing()
        {
            TutorAcademics ad = new TutorAcademicsService().GetTutorAcademicsById(int.Parse(dgEducation.GetRowValues(dgEducation.FocusedRowIndex, "Id").ToString()), new SessionManager().GetUserId(this.Session));

            txtEduComment.Text     = ad.Comment;
            txtEduID.Text          = ad.Id.ToString();
            txtEduInstitution.Text = ad.Institution;
            txtEduQuali.Text       = ad.Qualification;
            dtEduCDate.Date        = ad.DateCompleted.Date;
            dtEduSDate.Date        = ad.DateAttended.Date;
            cmbEduLevel.Value      = ad.AcademicLevel.ToString();
            cmbEduLevel.Text       = ad.AcademicLevel.ToString();
        }
コード例 #2
0
        public rptTutorProfile(string studUserId)
        {
            InitializeComponent();
            xrPicheader.ImageUrl = "~/pictures/letter_head.jpg";
            Tutor st = new TutorService().GetTutor(studUserId);

            xrAdmissDate.Text  = st.Admissiondate.ToString("dd MMMM yyyy");
            xrID.Text          = st.IndexNo;
            xrGender.Text      = st.Gender;
            xrEmail.Text       = st.Email;
            xrDoB.Text         = st.Dob.ToString("dd MMMM yyyy");
            xrMobile.Text      = st.Mobile;
            xrNationality.Text = st.Nationality;
            xrONames.Text      = st.ONames;
            xrPostAdd.Text     = st.PostAdd;
            xrReligon.Text     = st.Religion;
            xrResAdd.Text      = st.ResAdd;
            xrSname.Text       = st.SName;
            xrTel.Text         = st.Tel;
            xrFName.Text       = st.FNames;

            if (File.Exists("~/pictures/img_" + st.UserId + ".jpeg"))
            {
                xrPicbox.ImageUrl = "~/pictures/img_" + st.UserId + ".jpg";
            }
            else
            {
                //xrPicbox.ImageUrl = "~/images/default-person.jpg";
                xrPicbox.ImageUrl = "~/pictures/img_" + st.UserId + ".jpg";
            }


            List <TutorAcademics> ad = new TutorAcademicsService().GetTutorAcademics(studUserId);

            xrSubAcademicDetails.ReportSource = new mySmis.reports.rptSubTutorAcademics(ad);

            List <TutorRelatives> rl = new TutorRelativesService().GetTutorRelatives(studUserId);

            xrSubFamilyDetails.ReportSource = new mySmis.reports.rptSubTutorFamily(rl);
        }