public override System.Collections.Generic.List <int> Accounts(int id) { CLAS.BankruptcyAccountRow ahr = myBankruptcyAccountDT.FindByBAId(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.BankruptcyAccountRow dr = (CLAS.BankruptcyAccountRow)ddr; if (dr.RowState == DataRowState.Added && !dr.Include) { dr.Delete(); } }
protected override void AfterAdd(DataRow dr) { CLAS.BankruptcyAccountRow abf = (CLAS.BankruptcyAccountRow)dr; string ObjectName = this.myDT.TableName; abf.BAId = this.myA.AtMng.PKIDGet(ObjectName, 1); abf.FileId = myA.FM.CurrentFileId; }