protected override void AfterAdd(DataRow row) { CLAS.InsolvencyRow dr = (CLAS.InsolvencyRow)row; string ObjectName = this.myInsolvencyDT.TableName; dr.InsolvencyID = this.myA.AtMng.PKIDGet(ObjectName, 1); dr.FileID = myA.FM.CurrentFile.FileId; dr.OfficeID = myA.FM.CurrentFile.LeadOfficeId; dr.StayOfProceeding = true; dr.CSLNonDischargeable = false; CLAS.DebtorRow ddr = this.myA.GetDebtor().FindLoad(myA.FM.CurrentFile.OpponentID); dr.CeasedToBeStudentDate = ddr.CeasedToBeStudentDate; InsolvencyAccountBE jaBE = this.myA.GetInsolvencyAccount(); foreach (CLAS.DebtRow debtr in this.myA.DB.Debt) { if (debtr.ActiveWithJustice) // && debtr.OfficeID==debtr.EFileRow.LeadOfficeId) JLL 2010-08-11 Review this check { CLAS.InsolvencyAccountRow jar = (CLAS.InsolvencyAccountRow)jaBE.Add(dr); jar.BeginEdit(); jar.FileAccountID = debtr.FileAccountId; jar.Include = true; jar.EndEdit(); } } }
public override System.Collections.Generic.List <int> Accounts(int id) { CLAS.InsolvencyAccountRow ahr = myInsolvencyAccountDT.FindByIAId(id); System.Collections.Generic.List <int> l = new System.Collections.Generic.List <int>(); l.Add(ahr.FileAccountID); return(l); }
protected override void BeforeUpdate(DataRow ddr) { CLAS.InsolvencyAccountRow dr = (CLAS.InsolvencyAccountRow)ddr; if (dr.RowState == DataRowState.Added && !dr.Include) { dr.Delete(); } }
protected override void AfterAdd(DataRow dr) { CLAS.InsolvencyAccountRow abf = (CLAS.InsolvencyAccountRow)dr; string ObjectName = this.myDT.TableName; abf.IAId = this.myA.AtMng.PKIDGet(ObjectName, 1); abf.FileId = myA.FM.CurrentFileId; }