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

            RepositoryDataCache.ClearTemplateBinds();
            return(null);
        }
예제 #2
0
 public Error SaveTemplateBinds(int refrenceId, TemplateBind[] list)
 {
     if (list == null || list.Length == 0)
     {
         return(null);
     }
     foreach (var b in list)
     {
         tpldal.SetBind(b.BindType, refrenceId, b.TplPath);
     }
     RepositoryDataCache.ClearTemplateBinds();
     return(null);
 }
예제 #3
0
        public Error RemoveBinds(int refrenceId, TemplateBind[] list)
        {
            if (list == null || list.Length == 0)
            {
                return(null);
            }
            foreach (var b in list)
            {
                tpldal.RemoveBind(b.BindType, refrenceId);
                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);
 }