Exemplo n.º 1
0
    public Cart()
    {
        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();
        encrypt       = EncryptFactory.CreateEncrypt();
        MyOrders      = OrdersFactory.CreateOrders();
        MyCart        = OrdersGoodsTmpFactory.CreateOrdersGoodsTmp();
        MyProduct     = ProductFactory.CreateProduct();
        MyMem         = MemberFactory.CreateMember();
        Mypackage     = PackageFactory.CreatePackage();
        MyAddr        = MemberAddressFactory.CreateMemberAddress();
        MyDelivery    = DeliveryWayFactory.CreateDeliveryWay();
        MyPayway      = PayWayFactory.CreatePayWay();
        Mydelierytime = DeliveryTimeFactory.CreateDeliveryTime();
        MyInvioce     = OrdersInvoiceFactory.CreateOrdersInvoice();
        MyFavorFee    = PromotionFavorFeeFactory.CreatePromotionFavorFee();
        MyCoupon      = PromotionFavorCouponFactory.CreatePromotionFavorCoupon();
        MyPolicy      = PromotionFavorPolicyFactory.CreatePromotionFavorPolicy();
        MyGift        = PromotionFavorGiftFactory.CreatePromotionFavorGift();
        MyCommission  = SupplierCommissionCategoryFactory.CreateSupplierCommissionCategory();
        MySupplier    = SupplierFactory.CreateSupplier();
        MyFavor       = PromotionFavorFactory.CreatePromotionFavor();
        MyLimit       = PromotionLimitFactory.CreatePromotionLimit();
        MyMemberFavor = MemberFavoritesFactory.CreateMemberFavorites();
        pageurl       = new PageURL(int.Parse(Application["Static_IsEnable"].ToString()));
    }
 public SampleDetailsPageModel(ISampleConsignService service3, SampleStorageDbContext db2, ISampleUcControler service1, ITools service2)
 {
     sampleConsignService = service3;
     dbSampleStorage      = db2;
     sampleUcControler    = service1;
     tools = service2;
 }
Exemplo n.º 3
0
    public Orders()
    {
        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();
        encrypt         = EncryptFactory.CreateEncrypt();
        MyOrders        = OrdersFactory.CreateOrders();
        Mylog           = OrdersLogFactory.CreateOrdersLog();
        MyDelivery      = DeliveryWayFactory.CreateDeliveryWay();
        MyPayway        = PayWayFactory.CreatePayWay();
        MyProduct       = ProductFactory.CreateProduct();
        Mypackage       = PackageFactory.CreatePackage();
        Myorderdelivery = OrdersDeliveryFactory.CreateOrdersDelivery();
        MyFavorFee      = PromotionFavorFeeFactory.CreatePromotionFavorFee();
        MyCoupon        = PromotionFavorCouponFactory.CreatePromotionFavorCoupon();
        MyBack          = OrdersBackApplyFactory.CreateOrdersBackApply();
        MyPolicy        = PromotionFavorPolicyFactory.CreatePromotionFavorPolicy();
        MySupplier      = SupplierFactory.CreateSupplier();
        Mydelierytime   = DeliveryTimeFactory.CreateDeliveryTime();
        MyMember        = MemberFactory.CreateMember();
        MyConsumption   = MemberConsumptionFactory.CreateMemberConsumption();
        pageurl         = new PageURL(int.Parse(Application["Static_IsEnable"].ToString()));
        MyAccountLog    = MemberAccountLogFactory.CreateMemberAccountLog();
        MyFavor         = PromotionFavorFactory.CreatePromotionFavor();
        MyCouponRule    = PromotionCouponRuleFactory.CreatePromotionFavorCoupon();
        MyInvoice       = OrdersInvoiceFactory.CreateOrdersInvoice();
    }
Exemplo n.º 4
0
    public ZhongXin()
    {
        //初始化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      = ZhongXinFactory.Create();
        MySupplier = SupplierFactory.CreateSupplier();
        DBHelper   = SQLHelperFactory.CreateSQLHelper();

        pub          = new Public_Class();
        sendmessages = new ZhongXinUtil.SendMessages();

        //Supplier_ID = tools.CheckInt(Session["supplier_id"].ToString());
        //佣金
        CommissionAccNo = System.Configuration.ConfigurationManager.AppSettings["zhongxin_commissionaccno"];
        CommissionAccNm = System.Configuration.ConfigurationManager.AppSettings["zhongxin_commissionaccnm"];
        //交易保证金
        GuaranteeAccNo = System.Configuration.ConfigurationManager.AppSettings["zhongxin_dealguaranteeaccno"];
        GuaranteeAccNm = System.Configuration.ConfigurationManager.AppSettings["zhongxin_dealguaranteeaccnm"];
    }
Exemplo n.º 5
0
    public Member()
    {
        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();
        MyMember      = MemberFactory.CreateMember();
        Mygrade       = MemberGradeFactory.CreateMemberGrade();
        MyMemLog      = MemberLogFactory.CreateMemberLog();
        encrypt       = EncryptFactory.CreateEncrypt();
        MyConsumption = MemberConsumptionFactory.CreateMemberConsumption();
        MyFavor       = MemberFavoritesFactory.CreateMemberFavorites();
        MyProduct     = ProductFactory.CreateProduct();
        MyPackage     = PackageFactory.CreatePackage();
        MyReview      = ProductReviewFactory.CreateProductReview();
        MyFeedback    = FeedBackFactory.CreateFeedBack();
        MyAddr        = MemberAddressFactory.CreateMemberAddress();
        MyCart        = OrdersGoodsTmpFactory.CreateOrdersGoodsTmp();
        MyCoupon      = PromotionFavorCouponFactory.CreatePromotionFavorCoupon();
        // MyEmail = U_EmailNotifyRequestFactory.CreateU_EmailNotifyRequest();
        MyAccountLog = MemberAccountLogFactory.CreateMemberAccountLog();
        MyShop       = SupplierShopFactory.CreateSupplierShop();

        pageurl = new PageURL(int.Parse(Application["Static_IsEnable"].ToString()));
    }
Exemplo n.º 6
0
 public ProductType()
 {
     Tools               = ToolsFactory.CreateTools();
     DBHelper            = SQLHelperFactory.CreateSQLHelper();
     MyBrand             = BrandFactory.CreateBrand();
     MyProductTypeExtend = ProductTypeExtendFactory.CreateProductTypeExtend();
 }
Exemplo n.º 7
0
        public Presenter(IMainForm view, ITools tools, IMessageService message)
        {
            _view    = view;
            _tools   = tools;
            _message = message;

            _view.ApplicationClose += ApplicationClose;
            _view.Connected        += Connection;
            _view.TableSelected    += TableSelect;
            _view.RowDeleted       += RowDeleted;
            _view.RowChanged       += RowChanged;
            _view.DBCreated        += DBCreated;
            _view.Refreshed        += Refreshed;
            _view.Disconnected     += Disconnected;
            _view.TableCreate      += TableCreate;
            _view.TableCreated     += TableCreated;
            _view.DBDeleted        += DBDeleted;
            _view.TableDeleted     += TableDeleted;
            _view.DBRenamed        += DBRenamed;
            _view.TableRenamed     += TableRenamed;
            _view.RowSearched      += RowSearched;
            _view.DataFiltered     += DataFiltered;
            _view.UploadRows       += _view_UploadRows;
            _view.QueryExecute     += _view_QueryExecute;
        }
Exemplo n.º 8
0
            //
            // Constructor
            //

            public Helper(GitRepo repo)
            {
                _folder = repo._folder;
                _tools  = repo._tools;
                _debug  = repo._debug;
                _keys   = new Dictionary <string, string>();
                Help();
            }
Exemplo n.º 9
0
 public ModulePage(ITools tools, object[] arguments)
 {
     DataContext = null;
     Width       = 1080;
     Height      = 1590;
     Loaded     += ApplicationPage_Loaded;
     Tools       = tools;
     Arguments   = arguments;
 }
Exemplo n.º 10
0
 public ModulePage(ITools tools, object[] arguments)
 {
     DataContext = null;
     Width = 1080;
     Height = 1590;
     Loaded += ApplicationPage_Loaded;
     Tools = tools;
     Arguments = arguments;
 }
Exemplo n.º 11
0
 private void DrawGroup_Click(object sender, EventArgs e) //Выбираем группу
 {
     if (toolStripComboBox1.SelectedIndex == -1)
     {
         return;
     }
     tl       = tools[toolStripComboBox1.SelectedIndex + 3];
     toolsJob = paintFigure;
 }
Exemplo n.º 12
0
 public GenerationSteps(IUserInputProvider userInputProvider, IExecutingPluginAssemblyProvider assemblyProvider, ITools tools, ITimeKeeper timeKeeper, IConsoleWriter consoleWriter, IExceptionFormatter exceptionFormatter)
 {
     _userInputProvider  = userInputProvider;
     _assemblyProvider   = assemblyProvider;
     _tools              = tools;
     _timeKeeper         = timeKeeper;
     _consoleWriter      = consoleWriter;
     _exceptionFormatter = exceptionFormatter;
 }
Exemplo n.º 13
0
        /// <summary>
        /// Ctor.
        /// </summary>
        /// <param name="tools">ITools instance</param>
        public WordStatisticRule(ITools tools)
        {
            if (tools == null)
            {
                throw new ArgumentNullException(nameof(tools));
            }

            _tools = tools;
        }
Exemplo n.º 14
0
    public ProductPrice()
    {
        Application = System.Web.HttpContext.Current.Application;

        tools   = ToolsFactory.CreateTools();
        MyMem   = MemberFactory.CreateMember();
        Myprice = ProductPriceFactory.CreateProductPrice();
        Mygrade = MemberGradeFactory.CreateMemberGrade();
    }
Exemplo n.º 15
0
 public ToolsController
 (
     ITools tools,
     HttpClient client
 )
 {
     _tools  = tools;
     _client = client;
 }
Exemplo n.º 16
0
        formTools toolsJob;                        //Создаём переменную делегата чтобы заносить в неё методы для отработки

        private void Form1_Load(object sender, EventArgs e)
        {
            gr = pictureBox1.CreateGraphics();
            tl = null;
            tools.Add(null);
            tools.Add(new Rect.RectCreator());
            tools.Add(new Elips.ElipsCreator());
            toolsJob = selectFigure;
            select   = new FigureSelect();
        }
Exemplo n.º 17
0
 /// <summary>
 /// Remove a ToolStripItem from all its instances
 /// </summary>
 /// <param name="tools">List of ToolStripItem</param>
 /// <param name="key">Key to remove the ToolStripItem</param>
 public static void Remove(this ITools tools, object key)
 {
     if (tools is ToolsList)
     {
         Remove(tools as ToolsList, key.ToString());
     }
     else
     {
         Remove(tools, key);
     }
 }
Exemplo n.º 18
0
    public Addr()
    {
        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 = AddrFactory.CreateAddr();
    }
Exemplo n.º 19
0
    public Logistics()
    {
        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;

        MyBLL   = LogisticsFactory.CreateLogistics();
        tools   = ToolsFactory.CreateTools();
        encrypt = EncryptFactory.CreateEncrypt();
    }
Exemplo n.º 20
0
    public SCMConfig()
    {
        //初始化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();
        DBHelper = SQLHelperFactory.CreateSQLHelper();
    }
Exemplo n.º 21
0
 /// <summary>
 /// Adds a new ToolStripItem
 /// </summary>
 /// <param name="tools">List of ToolStrip Items</param>
 /// <param name="toolId">Id of the tool. Empty by default</param>
 /// <param name="style">Type of ToolStrip Item . Button by default</param>
 /// <param name="index">Index to insert. 0 by default </param>
 /// <returns>A new ToolStrip Item</returns>
 public static ToolStripItem Add(this ITools tools, string toolId  = "",
                                 ToolbarHelper.ConstantsType style = ToolbarHelper.ConstantsType.ssTypeButton, int index = 0)
 {
     if (tools is ToolsList) // If the list belongs to the tools of the toolbar
     {
         return(Add(tools as ToolsList, toolId, style, index));
     }
     else // If the list belongs to the menu tools of a ToolStripItem
     {
         return(Add(tools as ToolsListMenu, toolId, style, index));
     }
 }
Exemplo n.º 22
0
    public FriendlyLinkCate()
    {
        //初始化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.CreateFriendlyLinkCate();
    }
Exemplo n.º 23
0
    public OrdersLog()
    {
        //初始化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 = OrdersLogFactory.CreateOrdersLog();
    }
Exemplo n.º 24
0
    public SupplierGrade()
    {
        //初始化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 = SupplierGradeFactory.CreateSupplierGrade();
    }
Exemplo n.º 25
0
    public ProductAuditReason()
    {
        //初始化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 = ProductAuditReasonFactory.CreateProductAuditReason();
    }
Exemplo n.º 26
0
    public Help()
    {
        //初始化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 = HelpFactory.CreateHelp();
        cate  = new HelpCate();
    }
Exemplo n.º 27
0
    public Config()
    {
        //初始化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          = ConfigFactory.CreateConfig();
        MyReviewconfig = ProductReviewConfigFactory.CreateProductReviewConfig();
    }
Exemplo n.º 28
0
    public DeliveryWay()
    {
        //初始化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   = DeliveryWayFactory.CreateDeliveryWay();
        addrBLL = AddrFactory.CreateAddr();
    }
 //
 // Constructor
 //
 public PublishPackage(string repoPath,
                       string packageFilePath,
                       Action <string> logMessageFn,
                       ITools tools = null,
                       bool debug   = false)
 {
     _repoPath        = repoPath;
     _packageFilePath = packageFilePath;
     _logMessageFn    = logMessageFn;
     _packageFile     = new PackageFile(_packageFilePath);
     _tools           = tools ?? Singletons.Tools;
     _debug           = debug;
 }
Exemplo n.º 30
0
    public RBACResource()
    {
        //初始化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      = RBACResourceFactory.CreateRBACResource();
        MyGroupBLL = RBACResourceFactory.CreateRBACResourceGroup();
    }
Exemplo n.º 31
0
    public Brand()
    {
        //初始化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();
        brand         = BrandFactory.CreateBrand();
        MyProductType = ProductTypeFactory.CreateProductType();
    }
Exemplo n.º 32
0
        protected MirrorModule(ITools tools)
        {
            _dispatcher = CoreWindow.GetForCurrentThread().Dispatcher;
            Tools = tools;
            ModuleName = GetType().Name;

            if (string.IsNullOrWhiteSpace(IconPath) || !IconPath.ToLower().EndsWith(".xaml"))
            {
                throw new Exception($"The module {ModuleName}'s icon path is invalid.");
            }

            if (MainPage != null && !typeof(ModulePage).IsAssignableFrom(MainPage))
            {
                throw new InvalidCastException($"The MainPage's type should be an {nameof(ModulePage)}.");
            }

            _primaryPeriodicTaskTimer = new DispatcherTimer();
            _secondaryPeriodicTaskTimer = new DispatcherTimer();

            Initialize();
        }
Exemplo n.º 33
0
 public Test(IPhantomJS phantomJS, ITools tools)
 {
     this.phantomJS = phantomJS;
     this.tools = tools;
 }
 public JasmineRunner(ITools tools, IPhantomJS phantomJS)
 {
     this.tools = tools;
     this.phantomJS = phantomJS;
 }
Exemplo n.º 35
0
 public ModulePageViewModelBase(ITools tools, object[] arguments)
 {
     Tools = tools;
     Arguments = arguments;
 }