示例#1
0
 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);
 }
示例#2
0
 public IList <FreightMapping> GetMapping(DataSource ds)
 {
     return(FreightMapping.GetAllByTemplate(ds, Id));
 }