Exemplo n.º 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();
    }
Exemplo n.º 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();
    }
Exemplo n.º 3
0
 public NewsController(INewsService newsService, IFriendlyLink friendlylinkservice, IProduct productService)
 {
     _newsService         = newsService;
     _friendlylinkservice = friendlylinkservice;
     _productService      = productService;
 }
Exemplo n.º 4
0
 public SuccessController(ISuccess successService, IFriendlyLink friendlylinkservice, IProduct product)
 {
     _successService      = successService;
     _friendlylinkservice = friendlylinkservice;
     _product             = product;
 }
Exemplo n.º 5
0
 public ProductController(IProduct product, IndexAdvantageIDAL advantageService, IFriendlyLink friendlylinkservice)
 {
     _product             = product;
     _advantageService    = advantageService;
     _friendlylinkservice = friendlylinkservice;
 }