예제 #1
0
        public Error RemoveBind(int refrenceId, TemplateBindType templateBindType)
        {
            bool result = tpldal.RemoveBind(templateBindType, refrenceId);

            RepositoryDataCache.ClearTemplateBinds();
            return(null);
        }
예제 #2
0
 public Error RemoveBinds(int refrenceId, TemplateBind[] list)
 {
     if (list == null || list.Length == 0)
     {
         return(null);
     }
     foreach (TemplateBind b in list)
     {
         this.tpldal.RemoveBind(b.BindType, refrenceId);
         RepositoryDataCache.ClearTemplateBinds();
     }
     return(null);
 }
예제 #3
0
 public Error SaveTemplateBinds(int refrenceId, TemplateBind[] list)
 {
     if (list == null || list.Length == 0)
     {
         return(null);
     }
     foreach (TemplateBind b in list)
     {
         tpldal.SetBind(b.BindType, refrenceId, b.TplPath);
     }
     RepositoryDataCache.ClearTemplateBinds();
     return(null);
 }
예제 #4
0
 public int SaveTemplateBind(int refrenceId, TemplateBind templateBind)
 {
     tpldal.SetBind(templateBind.BindType, refrenceId, templateBind.TplPath);
     RepositoryDataCache.ClearTemplateBinds();
     return(templateBind.ID);
 }