Exemple #1
0
 protected override void AssignDto()
 {
     Facade.Dto dto = base.FormDto.Dto as Facade.Dto;
     dto.FirstName   = this.txtFirstName.Text;
     dto.MiddleName  = this.txtMiddleName.Text;
     dto.LastName    = this.txtLastName.Text;
     dto.Standard    = this.cboStandard.SelectedItem as SchlFac.Standard.Dto;
     dto.Section     = this.cboSection.SelectedItem as SchlFac.Section.Dto;
     dto.RollNumber  = Convert.ToInt16(this.txtRollNumber.Text.Trim());
     dto.Category.Id = 1; //Hardcoded
 }
Exemple #2
0
 protected override void AssignFormControls()
 {
     Facade.Dto dto = base.FormDto.Dto as Facade.Dto;
     this.lblStudentId.Text        = dto.StudentId;
     this.txtFirstName.Text        = dto.FirstName;
     this.txtMiddleName.Text       = dto.MiddleName;
     this.txtLastName.Text         = dto.LastName;
     this.cboStandard.SelectedItem = (this.FormDto as Facade.FormDto).StandardList.FindLast((p) => { return(p.Id == dto.Standard.Id); });
     this.cboSection.SelectedItem  = (this.FormDto as Facade.FormDto).SectionList.FindLast((p) => { return(p.Id == dto.Section.Id); });
     this.txtRollNumber.Text       = Convert.ToString(dto.RollNumber);
     this.tbcMain.SelectTab(this.tbpGeneral);
     this.txtFirstName.Focus();
 }