Exemple #1
0
    public FriendlyLink()
    {
        //初始化ASP.NET内置对象
        Response    = System.Web.HttpContext.Current.Response;
        Request     = System.Web.HttpContext.Current.Request;
        Server      = System.Web.HttpContext.Current.Server;
        Session     = System.Web.HttpContext.Current.Session;
        Application = System.Web.HttpContext.Current.Application;

        tools  = ToolsFactory.CreateTools();
        MyBLL  = FriendlyLinkFactory.CreateFriendlyLink();
        MyCBLL = FriendlyLinkFactory.CreateFriendlyLinkCate();
    }
Exemple #2
0
    //private U_ILinksApplication MyApplication;

    public CMS()
    {
        //初始化ASP.NET内置对象
        Response     = System.Web.HttpContext.Current.Response;
        Request      = System.Web.HttpContext.Current.Request;
        Server       = System.Web.HttpContext.Current.Server;
        Session      = System.Web.HttpContext.Current.Session;
        Application  = System.Web.HttpContext.Current.Application;
        Webnotice    = NoticeFactory.CreateNotice();
        tools        = ToolsFactory.CreateTools();
        MyHelpCate   = HelpFactory.CreateHelpCate();
        MyHelp       = HelpFactory.CreateHelp();
        MyAbout      = AboutFactory.CreateAbout();
        mylink       = FriendlyLinkFactory.CreateFriendlyLink();
        pub          = new Public_Class();
        mylinkcate   = FriendlyLinkFactory.CreateFriendlyLinkCate();
        MyNoticeCate = NoticeFactory.CreateNoticeCate();
        // MyApplication = U_LinksApplicationFactory.CreateU_LinksApplication();
    }
 public NewsController(INewsService newsService, IFriendlyLink friendlylinkservice, IProduct productService)
 {
     _newsService         = newsService;
     _friendlylinkservice = friendlylinkservice;
     _productService      = productService;
 }
Exemple #4
0
 public SuccessController(ISuccess successService, IFriendlyLink friendlylinkservice, IProduct product)
 {
     _successService      = successService;
     _friendlylinkservice = friendlylinkservice;
     _product             = product;
 }
 public ProductController(IProduct product, IndexAdvantageIDAL advantageService, IFriendlyLink friendlylinkservice)
 {
     _product             = product;
     _advantageService    = advantageService;
     _friendlylinkservice = friendlylinkservice;
 }