private void Student_Experience_Load(object sender, EventArgs e) { this.dec = new UDTDetailContentBase.MultipleUDCDecorator<UDT.Experience, Student_Experience_SingleForm>(this, this.dg, "StudentID", true); /* Assign Event Handler */ this.dec.AfterDataLoaded += new EventHandler(dec_AfterDataLoaded); this.dec.AfterDeleted += new UDTDetailContentBase.MultipleUDCDecorator<UDT.Experience, Student_Experience_SingleForm>.UDTDetailContentEventHandler(dec_AfterDeleted); this.dec.AfterSaved += new UDTDetailContentBase.MultipleUDCDecorator<UDT.Experience, Student_Experience_SingleForm>.UDTDetailContentEventHandler(dec_AfterSaved); this.dec.OnReadDataError += new UDTDetailContentBase.MultipleUDCDecorator<UDT.Experience, Student_Experience_SingleForm>.UDTDetailContentErrorEventHandler(dec_OnReadDataError); this.dec.OnDeleteError += new UDTDetailContentBase.MultipleUDCDecorator<UDT.Experience, Student_Experience_SingleForm>.UDTDetailContentErrorEventHandler(dec_OnDeleteError); /* Check Permission */ this.canEdit = Permission.Editable; this.btnAddNew.Enabled = this.canEdit; this.btnDelete.Enabled = this.canEdit; this.btnUpdate.Enabled = this.canEdit; }
private void Student_EducationBackground_Load(object sender, EventArgs e) { this.dec = new MultipleUDCDecorator<UDT.EducationBackground, Student_EducationBackground_SingleForm>(this, this.dg, "StudentID"); /* Assign Event Handler */ this.dec.AfterDataLoaded += new EventHandler(dec_AfterDataLoaded); this.dec.AfterDeleted += new UDTDetailContentBase.MultipleUDCDecorator<UDT.EducationBackground, Student_EducationBackground_SingleForm>.UDTDetailContentEventHandler(dec_AfterDeleted); this.dec.AfterSaved += new UDTDetailContentBase.MultipleUDCDecorator<UDT.EducationBackground, Student_EducationBackground_SingleForm>.UDTDetailContentEventHandler(dec_AfterSaved); this.dec.OnReadDataError += new UDTDetailContentBase.MultipleUDCDecorator<UDT.EducationBackground, Student_EducationBackground_SingleForm>.UDTDetailContentErrorEventHandler(dec_OnReadDataError); this.dec.OnDeleteError += new UDTDetailContentBase.MultipleUDCDecorator<UDT.EducationBackground, Student_EducationBackground_SingleForm>.UDTDetailContentErrorEventHandler(dec_OnDeleteError); /* Check Permission */ this.canEdit = Permission.Editable;// FISCA.Permission.UserAcl.Current[this.GetType()].Editable; //User.Acl[strSetUserDefineDataAcl].Executable; this.btnAddNew.Enabled = this.canEdit; this.btnDelete.Enabled = this.canEdit; this.btnUpdate.Enabled = this.canEdit; }