icent.Template/Tags.cs

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using icent.BLL;
using icent.Common;
using icent.Config;
using icent.Model;

namespace icent.Template
{
    public class Tags
    {
        Catalog catalog = new Catalog();
        Content content = new Content();
        Sys_Website website = new Sys_Website();
        User user = new User();
        Parameter parameter = new Parameter();
        Function function = new Function();
        DataTable dt = new DataTable();
        DataSet ds = new DataSet();
        ArrayList arraylist = new ArrayList();
        StringBuilder sb = new StringBuilder();

        public void Init(TemplateHelper th)
        { 
            InitCollection(th);
            InitParameter(th);
            InitClass(th);
        }

        public void InitCollection(TemplateHelper th)
        {
            th.Put("dt", dt);
            th.Put("ds", ds);
            th.Put("arraylist", arraylist);
            th.Put("sb", sb);
        }

        public void InitParameter(TemplateHelper th)
        {
            th.Put("parameter", parameter);
        }

        public void InitClass(TemplateHelper th)
        {
            #region public

            th.Put("th", th);

            th.Put("website", website);
            th.Put("user", user);
            th.Put("function", function);

            #endregion

            #region private

后面还有 7 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。