示例#1
0
 void FillStudentData(dlgStudent dlg, StudentAllocation S)
 {
     dlg.Text            = "Edytuj dane ucznia";
     dlg.cbKlasa.Enabled = false;
     dlg.cbKlasa.Items.Add(S.StudentClass);
     dlg.cbKlasa.SelectedIndex      = 0;
     dlg.cbMiejsceUr.DataSource     = City.ComboItems.GetCities();
     dlg.cbMiejsceZam.DataSource    = City.ComboItems.GetCities();
     dlg.cbMiejsceUr.SelectedIndex  = City.ComboItems.GetCityIndex(S.Student.BirthPlace.ID, dlg.cbMiejsceUr.Items);
     dlg.cbMiejsceZam.SelectedIndex = City.ComboItems.GetCityIndex(S.Student.ResidencePlace.ID, dlg.cbMiejsceZam.Items);
     dlg.txtImie.Text            = S.Student.FirstName;
     dlg.txtImie2.Text           = S.Student.SecondName;
     dlg.txtImieMatki.Text       = S.Student.MotherFirstName;
     dlg.txtImieOjca.Text        = S.Student.FatherFirstName;
     dlg.txtNazwisko.Text        = S.Student.LastName;
     dlg.txtNazwiskoMatki.Text   = S.Student.MotherLastName;
     dlg.txtNazwiskoOjca.Text    = S.Student.FatherLastName;
     dlg.txtNrArkusza.Text       = S.Student.RegistryNo;
     dlg.txtUlica.Text           = S.Student.StreetName;
     dlg.txtNrDomu.Text          = S.Student.PropertyNo;
     dlg.txtNrMieszkania.Text    = S.Student.ApartmentNo;
     dlg.txtPesel.Text           = S.Student.Pesel;
     dlg.txtTelefon.Text         = S.Student.PhoneNo;
     dlg.txtTelKom1.Text         = S.Student.MobilePhoneNo;
     dlg.txtTelKom2.Text         = S.Student.MobilePhoneNo2;
     dlg.txtUlica.Text           = S.Student.SecondName;
     dlg.dtDataAktywacji.Value   = S.StartDate;
     dlg.dtDataDeaktywacji.Value = S.EndDate;
     dlg.nudNrwDzienniku.Value   = S.StudentNo;
     dlg.chkSex.Checked          = S.Student.Sex > 0;
     dlg.dtDataUr.Value          = S.Student.BirthDate;
 }
示例#2
0
 private void GetDetails(StudentAllocation R)
 {
     lblAdres.Text           = R.Student.FullAddress;
     lblDataAktywacji.Text   = R.StartDate.ToShortDateString();
     lblDataDeaktywacji.Text = R.EndDate.ToShortDateString();
     lblMatka.Text           = R.Student.MotherFirstName;
     lblOjciec.Text          = R.Student.FatherFirstName;
     lblMatka.Text           = R.Student.MotherFullName;
     lblOjciec.Text          = R.Student.FatherFullName;
     lblTelefon.Text         = R.Student.PhoneNo;
     lblTelKom1.Text         = R.Student.MobilePhoneNo;
     lblTelKom2.Text         = R.Student.MobilePhoneNo2;
     lblStatus.Text          = R.Status.ToString();
 }
示例#3
0
 private void GetSignature(StudentAllocation UserItem)
 {
     lblData.Text = UserItem.Student.Creator.Version.ToString();
     lblIP.Text   = UserItem.Student.Creator.IP;
     lblUser.Text = UserItem.Student.Creator.ToString();
 }