public FactoryOnlineController(IStoreContract storeContract,
                                IStorageContract storageContract,
                                IGalleryContract galleryContract,
                                IInventoryContract inventoryContract,
                                IStoreCartContract storeCartContract,
                                IProductContract prodcutContract,
                                IAdministratorContract administratorContract,
                                IStoreCartItemContract storeCartItemContract,
                                IColorContract colorContract,
                                IProductContract productContract,
                                IProductOrigNumberContract _productOrigNumberContract,
                                IBrandContract _brandContract,
                                IPurchaseContract _purchaseContract,
                                IDesignerContract _DesignerContract,
                                IFactorysContract _factoryContract,
                                ICategoryContract categoryContract)
 {
     _storeContract                  = storeContract;
     _storageContract                = storageContract;
     _storeCartContract              = storeCartContract;
     _productContract                = prodcutContract;
     _storeCartItemContract          = storeCartItemContract;
     _colorContract                  = colorContract;
     _categoryContract               = categoryContract;
     this._brandContract             = _brandContract;
     this._administratorContract     = administratorContract;
     this._productOrigNumberContract = _productOrigNumberContract;
     ViewBag.Color          = _colorContract.ParentSelectList("请选择");
     ViewBag.Category       = CacheAccess.GetCategory(_categoryContract, true);
     ViewBag.Brand          = CacheAccess.GetBrand(_brandContract, true);
     this._purchaseContract = _purchaseContract;
     this._DesignerContract = _DesignerContract;
     this._factoryContract  = _factoryContract;
 }
Esempio n. 2
0
 public void Unload(IDesignerContract addin)
 {
     AppDomain domain = addinDomainMaps[addin];
     addinDomainMaps.Remove(addin);
     addin.Close();
     AppDomain.Unload(domain);
     GC.Collect();
     GC.WaitForPendingFinalizers();
     GC.Collect();
 }
 public AddProductController(IStoreContract storeContract,
                             IBrandContract brandContract, IAdministratorContract adminContract,
                             IStorageContract storageContract,
                             IDesignerContract _designerContract,
                             ICheckerContract checkerContract)
 {
     _adminContract         = adminContract;
     _storeContract         = storeContract;
     _brandContract         = brandContract;
     _storageContract       = storageContract;
     _checkerContract       = checkerContract;
     this._designerContract = _designerContract;
 }
Esempio n. 4
0
 private IDesignerContract Create()
 {
     Type addinType = typeof(DesignerAddIn);
     AppDomain domain = AppDomain.CreateDomain(Guid.NewGuid().ToString(), null, new AppDomainSetup
     {
         LoaderOptimization = LoaderOptimization.MultiDomainHost,
         ApplicationBase = AppDomain.CurrentDomain.BaseDirectory,
     });
     domain.InitializeLifetimeService();
     addin = (IDesignerContract)domain.CreateInstanceAndUnwrap(addinType.Assembly.FullName, addinType.FullName);
     addinDomainMaps.Add(addin, domain);
     return addin;
 }
Esempio n. 5
0
 public FactorysController(
     IFactorysContract factorysContract,
     IDesignerContract designerContract,
     IAdministratorContract administratorContract
     , IBrandContract _brandContract
     , IStoreContract _StoreContract
     , IDepartmentContract _DepartmentContract
     )
 {
     _factorysContract        = factorysContract;
     _designerContract        = designerContract;
     _administratorContract   = administratorContract;
     this._brandContract      = _brandContract;
     this._StoreContract      = _StoreContract;
     this._DepartmentContract = _DepartmentContract;
 }
Esempio n. 6
0
 public DesignerController(
     IFactorysContract factoryContract,
     IDesignerContract designerContract,
     IBrandContract brandContract,
     IAdministratorContract administratorContract,
     IJobPositionContract jobPositionContract,
     IMemberContract memberContract,
     IDepartmentContract _departmentContract,
     //IAdministratorTypeContract AdministratorTypeContract,
     IRoleContract _roleContract
     )
 {
     _designerContract      = designerContract;
     _factorysContract      = factoryContract;
     _brandContract         = brandContract;
     _memberContract        = memberContract;
     _jobPositionContract   = jobPositionContract;
     _administratorContract = administratorContract;
     //this.AdministratorTypeContract = AdministratorTypeContract;
     this._departmentContract = _departmentContract;
     this._roleContract       = _roleContract;
 }
Esempio n. 7
0
        public CommonController(
            IStoreContract storeContract,
            IModuleContract moduleContract,
            IDepartmentContract departContract,
            IAdministratorContract adminContract,
            IMemberContract memberContract,
            IStoreTypeContract storeTypeContract,
            IStoreDepositContract storeDepositContract,
            IStoreLevelContract storeLevelContract,
            IJobPositionContract jobPositionContract,
            IDesignerContract designerContract,
            IPermissionContract permisstionContract,
            ICategoryContract categoryContract,
            IProductAttributeContract productAttributeContract,
            IProductContract productContract,
            IProductOrigNumberContract productOrigNumberContract,
            IStorageContract storageContract

            )
        {
            _storeContract             = storeContract;
            _moduleContract            = moduleContract;
            _departContract            = departContract;
            _adminContract             = adminContract;
            _memberContract            = memberContract;
            _jobPositionContract       = jobPositionContract;
            _storeTypeContract         = storeTypeContract;
            _storeDepositContract      = storeDepositContract;
            _storeLevelContract        = storeLevelContract;
            _designerContract          = designerContract;
            _permisstionContract       = permisstionContract;
            _categoryContract          = categoryContract;
            _productAttributeContract  = productAttributeContract;
            _productContract           = productContract;
            _productOrigNumberContract = productOrigNumberContract;
            _storageContract           = storageContract;
        }
Esempio n. 8
0
 private void InitAddIn(string name, string projectXamlCode, List<ActivityAssemblyItem> references, bool isTask)
 {
     this.proxy = AddinPreloader.Current.Get();
     this.proxy.InitWorkflow(name, projectXamlCode, isTask);
     if (references != null && references.Any())
     {
         this.proxy.ImportAssemblies(references);
     }
     this.proxy.RefreshTasks();
     this.proxy.DesignerChanged += this.OnDesignerChanged;
     this.proxy.DesignerReloaded += this.OnDesignerReloaded;
     this.proxy.PrintStateChanged += this.OnPrintStateChanged;
     this.proxy.GetTaskLastVersionChanged += this.GetTaskLastVersion;
 }