コード例 #1
0
 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;
 }
コード例 #2
0
ファイル: AddinPreloader.cs プロジェクト: barbarossia/CWF
 public void Unload(IDesignerContract addin)
 {
     AppDomain domain = addinDomainMaps[addin];
     addinDomainMaps.Remove(addin);
     addin.Close();
     AppDomain.Unload(domain);
     GC.Collect();
     GC.WaitForPendingFinalizers();
     GC.Collect();
 }
コード例 #3
0
 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;
 }
コード例 #4
0
ファイル: AddinPreloader.cs プロジェクト: barbarossia/CWF
 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;
 }
コード例 #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;
 }
コード例 #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;
 }
コード例 #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;
        }
コード例 #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;
 }