protected override DataStatus OnDeleteAfter(DataSource ds) { try { foreach (FreightMapping map in FreightMapping.GetAllByTemplate(ds, Id)) { if (map.Delete(ds) != DataStatus.Success) { ds.Rollback(); return(DataStatus.Rollback); } } } catch (Exception) { ds.Rollback(); return(DataStatus.Rollback); } ds.Commit(); return(DataStatus.Success); }
public IList <FreightMapping> GetMapping(DataSource ds) { return(FreightMapping.GetAllByTemplate(ds, Id)); }