コード例 #1
0
ファイル: ProductType.cs プロジェクト: Abnertd/public
 public ProductType()
 {
     Tools               = ToolsFactory.CreateTools();
     DBHelper            = SQLHelperFactory.CreateSQLHelper();
     MyBrand             = BrandFactory.CreateBrand();
     MyProductTypeExtend = ProductTypeExtendFactory.CreateProductTypeExtend();
 }
コード例 #2
0
ファイル: ProductTypeExtend.cs プロジェクト: Abnertd/public
    public ProductTypeExtend()
    {
        //初始化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 = ProductTypeExtendFactory.CreateProductTypeExtend();
    }