コード例 #1
0
        public ActionResult Create()
        {
            ViewBag.SpendType = CacheAccess.GetSpendType();


            return(PartialView());
        }
コード例 #2
0
        public ActionResult GetOptions()
        {
            var brands       = CacheAccess.GetBrand(_brandContract, true, false);
            var brandOptions = brands.Select(s => new { s.Text, s.Value }).ToList();
            var categories   = CacheAccess.GetCategorys(_categoryContract).Select(s => new SelectListItem()
            {
                Text = s.CategoryName, Value = s.Id.ToString()
            });
            var categoryOptions = categories.Select(s => new { Text = s.Text, Value = s.Value }).ToList();

            categoryOptions.Insert(0, new { Text = "请选择品类", Value = "" });
            var seasons       = CacheAccess.GetSeason(_seasonContract, true);
            var seasonOptions = seasons.Select(s => new { s.Text, s.Value }).ToList();

            //var storeOptions = _storeContract .Stores.Where(s => !s.IsDeleted && s.IsEnabled && s.IsAttached)
            //                                        .Select(s => new { Text = s.StoreName, Value = s.Id })
            //                                        .ToList();
            // storeOptions.Insert(0, new { Text = "请选择店铺", Value = 0 });
            return(Json(new OperationResult(OperationResultType.Success, string.Empty, new
            {
                brandOptions,
                categoryOptions,
                seasonOptions,
                //storeOptions
            }), JsonRequestBehavior.AllowGet));
        }
コード例 #3
0
 public StoreProcessor(CheckDecorator decorator, Org.Neo4j.Consistency.report.ConsistencyReport_Reporter report, Stage stage, CacheAccess cacheAccess) : base(decorator)
 {
     Debug.Assert(stage != null);
     this._report     = report;
     this._stage      = stage;
     this.CacheAccess = cacheAccess;
 }
コード例 #4
0
        public override async void OnNavigatedTo(NavigationParameters parameters)
        {
            base.OnNavigatedTo(parameters);

            try
            {
                var user = await CacheAccess.GetSecure <User>(CacheKeys.USER_KEY);

                invitePoints = await _userAppService.GetUserInvitePointsForChallenge(user.UsuarioId.ToString());

                registerPoints = await _clientsAppService.GetUserClientPointsForChallenge(user.UsuarioId.ToString());

                salesPoints = await _salesAppService.GetUserSalePointsForChallenge(user.UsuarioId.ToString());
            }
            catch
            {
                await NavigationService.GoBackAsync();

                UserDialogs.Instance.Toast("Não foi possivel carregar os desafios, verifique sua conexão.");
            }

            if (parameters.ContainsKey(NavigationKeyParameters.CurrentChallenges))
            {
                foreach (var challenge in ((List <Challenge>)parameters[NavigationKeyParameters.CurrentChallenges]))
                {
                    Challenges.Add(challenge);
                    challenge.StartDateFormatted = Formatter.FormatDate(challenge.StartDate);
                    challenge.EndDateFormatted   = Formatter.FormatDate(challenge.EndDate);
                    challenge.ParameterFormatted = Formatter.FormatChallengeType((ChallengeType)challenge.Parameter);
                    challenge.CurrentSituation   = GetCurrentSituationMissingPoints((ChallengeType)challenge.Parameter, challenge.Goal);
                    challenge.PrizeFormatted     = challenge.Prize.ToString();
                }
            }
            await NavigationHelper.PopLoading();
        }
コード例 #5
0
        public ActionResult Check(int Id)
        {
            var dto = new PartnerManageCheck()
            {
                PartnerManageId = Id
            };

            var mod = _PartnerManageCheckContract.Entities.FirstOrDefault(a => a.PartnerManageId == Id);

            if (mod.IsNotNull())
            {
                dto = mod;
            }

            ViewBag.StoreTypes = CacheAccess.GetStoreType(_StoreTypeContract, false);

            Dictionary <int, string> dic = new Dictionary <int, string>();
            var rols = CacheAccess.GetRoles(_roleContract).Where(c => c.IsDeleted == false && c.IsEnabled == true);

            foreach (var item in rols)
            {
                dic.Add(item.Id, item.RoleName);
            }
            ViewBag.roles = dic;

            return(PartialView(dto));
        }
コード例 #6
0
 public ActionResult Index()
 {
     ViewBag.Categories = _categoryContract.ParentSelectList("请选择品类").ToList();
     ViewBag.Brands     = CacheAccess.GetBrand(_brandContract, true);
     ViewBag.Colors     = CacheAccess.GetColorsName(_colorContract, true);
     return(View());
 }
コード例 #7
0
 protected override void Before(CacheAccess access, TKey key, TValue value)
 {
     if (access == CacheAccess.Get)
     {
         UsedKeys.Use(key);
     }
 }
コード例 #8
0
        public ActionResult Payment(string PurchaseNumber, int Id)
        {
            ViewBag.PurchaseNumber = PurchaseNumber;
            ViewBag.PurchaserId    = Id;
            var mod = _purchaseContract.Purchases.Where(c => c.PurchaseNumber == PurchaseNumber && c.IsDeleted == false && c.IsEnabled == true && c.PurchaseStatus == (int)PurchaseStatusFlag.待付款).FirstOrDefault();

            if (mod.IsNotNull())
            {
                ViewBag.ReceiptStoreId   = mod.ReceiverId;
                ViewBag.ReceiptStorageId = mod.ReceiverStorageId;

                #region 计算价格

                var listprices = mod.PurchaseItems.Where(w => w.PurchaseItemProducts.Any()).Select(s => new
                {
                    TagPrices       = s.Product.ProductOriginNumber.TagPrice * s.PurchaseItemProducts.Count,
                    PurchasePrices  = s.Product.ProductOriginNumber.PurchasePrice * s.PurchaseItemProducts.Count,
                    WholesalePrices = s.Product.ProductOriginNumber.WholesalePrice * s.PurchaseItemProducts.Count,
                }).ToList();

                ViewBag.TagPrices       = listprices.Sum(s => s.TagPrices);
                ViewBag.PurchasePrices  = listprices.Sum(s => s.PurchasePrices);
                ViewBag.WholesalePrices = listprices.Sum(s => s.WholesalePrices);

                #endregion
            }

            ViewBag.StoreTypes = CacheAccess.GetStoreType(_storeTypeContract, true);
            return(PartialView());
        }
コード例 #9
0
ファイル: RoleController.cs プロジェクト: kangxiangli/webSite
        private List <RightTree> GetChild(int parid, List <ARolePermissionRelation> rolepers, List <Module> listmodules)
        {
            List <RightTree> li = new List <RightTree>();

            var mods     = listmodules.Where(c => c.ParentId == parid);
            var listpers = CacheAccess.GetPermissions(_permissionContract).Where(c => c.IsEnabled == true && c.IsDeleted == false).ToList();

            foreach (var c in mods)
            {
                var tr = new RightTree()
                {
                    id       = c.Id + "",
                    text     = c.ModuleName,
                    url      = "",
                    children = GetPermiss(c.Id, rolepers, listpers),
                    _checked = false,
                    msg      = c.Description
                };

                tr._checked = tr.children.Any(x => x._checked);
                tr._isShow  = tr.children.Any(x => x._isShow);
                li.Add(tr);
            }

            return(li);
        }
コード例 #10
0
        public InventoryController(IInventoryContract inventoryContract,
                                   IStoreContract storeContract,
                                   IStorageContract storageContract,
                                   IProductContract productContract,
                                   IBrandContract brandContract,
                                   ICategoryContract categoryContract,
                                   IColorContract colorContract,
                                   ILogContract logContract,
                                   IProductBarcodeDetailContract productBarcodeDetailContract,
                                   IProductBarcodePrintInfoContract productBarcodePrintInfoContract,
                                   IInventoryRecordContract inventoryRecordContract,
                                   IStoreRecommendContract storeRecommendContract,
                                   ISeasonContract seasonContract,
                                   IProductTrackContract productTrackContract,
                                   IAdministratorContract administratorContract)
        {
            _administratorContract           = administratorContract;
            _inventoryContract               = inventoryContract;
            _storeContract                   = storeContract;
            _productContract                 = productContract;
            _storageContract                 = storageContract;
            _brandContract                   = brandContract;
            _categoryContract                = categoryContract;
            _colorContract                   = colorContract;
            _productBarcodePrintInfoContract = productBarcodePrintInfoContract;
            _productBarcodeDetailContract    = productBarcodeDetailContract;
            _logContract             = logContract;
            _inventoryRecordContract = inventoryRecordContract;
            _storeRecommendContract  = storeRecommendContract;
            _seasonContract          = seasonContract;
            _productTrackContract    = productTrackContract;

            ViewBag.Products = CacheAccess.GetProductListItem(_productContract, true);
        }
コード例 #11
0
ファイル: RoleController.cs プロジェクト: kangxiangli/webSite
        private RightTree GetNode(List <ARolePermissionRelation> rolepers)
        {
            RightTree retree = new RightTree()
            {
                id       = "0",
                _checked = false,
                text     = "选择权限",
                url      = "",
                children = new List <RightTree>()
            };
            var listmodules = CacheAccess.GetModules(_moduleContract).Where(w => w.IsEnabled && !w.IsDeleted).ToList();
            var parmodules  = listmodules.Where(c => c.ParentId == null).ToList();

            foreach (var item in parmodules)
            {
                var tre = new RightTree()
                {
                    id       = item.Id + "",
                    text     = item.ModuleName,
                    url      = "",
                    children = GetChild(item.Id, rolepers, listmodules),
                    _checked = false,
                    msg      = item.Description
                };
                tre._checked = tre.children.Any(c => c._checked);
                tre._isShow  = tre.children.Any(x => x._isShow);
                retree.children.Add(tre);
            }
            retree._checked = retree.children.Any(x => x._checked);
            retree._isShow  = retree.children.Any(x => x._isShow);
            return(retree);
        }
コード例 #12
0
        public ActionResult List()
        {
            GridRequest rq   = new GridRequest(Request);
            var         pred = FilterHelper.GetExpression <Inventory>(rq.FilterGroup);

            int cou   = CacheAccess.GetAccessibleInventorys(_inventoryContract, _storeContract).Count(pred);
            var inves = CacheAccess.GetAccessibleInventorys(_inventoryContract, _storeContract).Where(pred).OrderByDescending(c => c.CreatedTime).Skip(rq.PageCondition.PageIndex).Take(rq.PageCondition.PageSize).Select(c => new {
                c.Id,
                c.Store.StoreName,
                c.Product.ProductOriginNumber.Brand.BrandName,
                c.Product.ProductOriginNumber.Category.CategoryName,
                c.Product.ProductOriginNumber.Season.SeasonName,
                c.Product.Size.SizeName,
                c.Product.Color.ColorName,
                c.Product.Color.IconPath,
                c.Storage.StorageName,
                c.Product.ThumbnailPath,
                c.ProductBarcode,
                c.CreatedTime,
                c.Operator.Member.MemberName
            }).ToList <object>();
            GridData <object> ojbdat = new GridData <object>(inves, cou, Request);

            return(Json(ojbdat));
        }
コード例 #13
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;
 }
コード例 #14
0
        private async void Confirm()
        {
            try
            {
                await NavigationHelper.ShowLoading();

                var user = await CacheAccess.GetSecure <User>(CacheKeys.USER_KEY);

                await _userAppService.Logout(user.UsuarioId.ToString());

                await CacheAccess.DeleteAll();

                await _navigationService.NavigateAsync(NavigationSettings.AbsoluteLogin);

                try
                {
                    Analytics.TrackEvent(InsightsTypeEvents.ActionView, new Dictionary <string, string>
                    {
                        { InsightsPagesNames.LoginPage, InsightsActionNames.Logout }
                    });
                }
                catch { }
            }
            catch (Exception ex)
            {
                _userDialogs.Toast(ex.Message);
                await NavigationHelper.PopLoading();
            }
            finally
            {
                await NavigationHelper.PopLoading();
            }
        }
コード例 #15
0
 protected override void After(CacheAccess access, TKey key, TValue value)
 {
     if (access == CacheAccess.Set)
     {
         Evictables.Add(key);
     }
 }
コード例 #16
0
        /// <summary>
        /// 载入修改数据
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        public ActionResult Update(int Id)
        {
            var result = _storeContract.Edit(Id);

            ViewBag.StoreTypes = CacheAccess.GetStoreType(_storeTypeContract, false);
            return(PartialView(result));
        }
コード例 #17
0
        private async void SendEmail()
        {
            CanExecuteInitial();

            try
            {
                var user = await CacheAccess.GetSecure <User>(CacheKeys.USER_KEY);

                foreach (var client in Birthdays)
                {
                    await _userAppService.SendBirthdayEmail(client.Email, user.Name);
                }
                UserDialogs.Instance.Toast("Email(s) enviado(s) com sucesso!");
                await PopupAnniversaryHelper.EsconderAsync();
            }
            catch
            {
                UserDialogs.Instance.Toast("Não foi possível enviar os emails, verifique sua conexão.");
            }
            finally
            {
                await NavigationHelper.PopLoading();
            }
            CanExecuteEnd();
        }
コード例 #18
0
        public ActionResult View(int Id, string tabName)
        {
            var resul          = _saleCampaignContract.SalesCampaigns.Where(c => c.Id == Id).FirstOrDefault();
            var originStoreId  = resul.StoresIds.Split(",", true);
            var storeIds       = originStoreId.Select(id => int.Parse(id)).ToList();
            var selectItemList = _storeContract.QueryManageStore(AuthorityHelper.OperatorId.Value)
                                 .Select(s => new SelectListItem()
            {
                Text = s.StoreName, Value = s.Id.ToString()
            })
                                 .ToList();

            selectItemList.Each(item =>
            {
                if (originStoreId.Contains(item.Value))
                {
                    item.Selected = true;
                }
            });

            ViewBag.Brand   = CacheAccess.GetBrand(_brandContract, false, false);
            ViewBag.Stores  = selectItemList;
            ViewBag.TabName = tabName;
            return(PartialView(resul));
        }
コード例 #19
0
        public override async void OnNavigatingTo(NavigationParameters parameters)
        {
            if (parameters.ContainsKey(NavigationKeyParameters.SelectedSale))
            {
                ButtonText       = "EDITAR VENDA";
                SaleRegistered   = parameters[NavigationKeyParameters.SelectedSale] as Sale;
                NameAndDateLabel = "Venda para: " + SaleRegistered.ClientName + ", " + Formatter.FormatDate(SaleRegistered.SaleDate);
                _isEditSale      = true;
            }
            else if (parameters.ContainsKey(NavigationKeyParameters.SelectedClient))
            {
                ButtonText = "SALVAR VENDA";
                Client selectedClient = (Client)parameters[NavigationKeyParameters.SelectedClient];
                SaleRegistered.ClienteId  = selectedClient.ClienteId;
                SaleRegistered.ClientName = selectedClient.Name;
                _isEditSale = false;

                try
                {
                    CurrentUser = await CacheAccess.GetSecure <User>(CacheKeys.USER_KEY);

                    SaleRegistered.UsuarioId = CurrentUser.UsuarioId;
                }
                catch
                {
                    _userDialogs.Toast("Tivemos um problema com seu usuário, faça o Login novamente!");
                }
                NameAndDateLabel = "Venda para: " + SaleRegistered.ClientName + ", " + Formatter.FormatDate(DateTime.Now);
            }
            if (SaleRegistered != null && SaleRegistered.Description != null)
            {
                DescriptionPlaceHolderVisible = (SaleRegistered.Description.Length > 0) ? false : true;
            }
            base.OnNavigatingTo(parameters);
        }
コード例 #20
0
        public ActionResult MembList()
        {
            List <int?> stores = _memberContract.Members.Select(c => c.StoreId).Distinct().ToList();

            var li = _storeContract.Stores.Where(c => c.IsDeleted == false && c.IsEnabled == true && stores.Contains(c.Id)).Select(c => new SelectListItem()
            {
                Text  = c.StoreName,
                Value = c.Id.ToString()
            }).ToList();

            li.Insert(0, new SelectListItem()
            {
                Text  = "下拉选择",
                Value = ""
            });
            ViewBag.StoreIds = li;
            var colls = _collocationContract.Collocations.Where(c => c.IsDeleted == false && c.IsEnabled == true).Select(c => new SelectListItem()
            {
                Value = c.Id.ToString(),
                Text  = c.CollocationName,
            }).ToList();

            colls.Insert(0, new SelectListItem()
            {
                Text  = "下拉选择",
                Value = ""
            });
            ViewBag.CollocationIds = colls;
            ViewBag.Departments    = CacheAccess.GetDepartmentListItem(_departmentContract, true);
            return(PartialView());
        }
コード例 #21
0
        public ActionResult Index()
        {
            var mod = CacheAccess.GetParentModules(_moduleContract, true);

            ViewBag.ModuleF = mod;
            return(View());
        }
コード例 #22
0
        public override async void OnNavigatingTo(NavigationParameters parameters)
        {
            await NavigationHelper.ShowLoading();

            GetGamificationPointsResponse currentPoints = new GetGamificationPointsResponse();

            try
            {
                currentPoints.Entity = await CacheAccess.GetSecure <Points>(CacheKeys.POINTS);
            }
            catch
            {
                currentPoints = await _gamificationPointsAppService.GetCurrentGamificationPoints();

                await CacheAccess.InsertSecure <Points>(CacheKeys.POINTS, currentPoints.Entity);
            }
            if (currentPoints.Entity != null)
            {
                GamificationInvitePoints   = currentPoints.Entity.InviteFlower;
                GamificationRegisterPoints = currentPoints.Entity.RegisterNewClients;
                GamificationSalesPoints    = currentPoints.Entity.SalesNumber;
            }

            await NavigationHelper.PopLoading();

            base.OnNavigatingTo(parameters);
        }
コード例 #23
0
        /// <summary>
        /// 载入创建数据
        /// </summary>
        /// <returns></returns>
        public ActionResult Create()
        {
            #region 物品类型
            var companyGoodsCategoryTypeFlagList = new List <SelectListItem>()
            {
                new SelectListItem()
                {
                    Value = "", Text = "请选择"
                }
            };

            foreach (var value in Enum.GetValues(typeof(CompanyGoodsCategoryTypeFlag)))
            {
                companyGoodsCategoryTypeFlagList.Add(new SelectListItem()
                {
                    Value = Convert.ToInt32(value).ToString(), Text = (EnumHelper.GetValue <string>((CompanyGoodsCategoryTypeFlag)value))
                });
            }
            ViewBag.CompanyGoodsCategoryTypeFlagList = companyGoodsCategoryTypeFlagList;
            #endregion

            #region 部门
            var li = CacheAccess.GetDepartmentListItem(_departmentContract, true, DepartmentTypeFlag.公司, DepartmentTypeFlag.店铺);

            ViewBag.Departments = li;
            #endregion

            return(PartialView());
        }
コード例 #24
0
        public override async void OnNavigatedTo(NavigationParameters parameters)
        {
            base.OnNavigatedTo(parameters);
            string firstAccess = "false";

            if (parameters.ContainsKey(NavigationKeyParameters.FirstAccess))
                firstAccess = parameters[NavigationKeyParameters.FirstAccess] as string;
            if (parameters.ContainsKey(NavigationKeyParameters.ClientsBirthday))
            {
                await Task.Delay(2000);
                var listBirthdays = parameters[NavigationKeyParameters.ClientsBirthday] as ObservableCollection<Client>;
                await CacheAccess.Insert<ObservableCollection<Client>>(CacheKeys.BIRTHDAYS, listBirthdays);
                if (firstAccess == "true")
                {
                    int dayMonthCache = 0;
                    try
                    {
                        dayMonthCache = await CacheAccess.Get<int>(CacheKeys.DAY_MONTH);
                    }
                    catch { }
                    if (dayMonthCache != DateTime.Now.Day)
                    {
                        await PopupAnniversaryHelper.Mostrar(_userAppService);
                    }
                }
            }
        }
コード例 #25
0
        /// <summary>
        /// 获取商品的打印条码的后三位
        /// </summary>
        /// <param name="product"></param>
        /// <param name="prcou">打印数量</param>
        /// <returns></returns>
        private List <string> GetPrintBarcodeNumbs(ProductBarcodePrintInfo product, int prcou)
        {
            List <string> li      = new List <string>();
            string        starFlg = "0";

            if (product != null)
            {
                starFlg = product.CurPrintFlag;
            }
            lock (objlock)
            {
                string _key     = "cur_barcode_flgnum_1109";
                var    tecurNum = CacheAccess.Get(_key) as string;
                if (!string.IsNullOrEmpty(tecurNum))
                {
                    starFlg = tecurNum;
                }
            }
            Math36 math    = new Math36();
            int    curstar = (int)(math.To10(starFlg, 0));

            for (int i = 0; i < prcou; i++)
            {
                curstar += 1;
                li.Add((math.To36(curstar)).PadLeft(3, '0'));
            }
            lock (objlock)
            {
                string _key = "cur_barcode_flgnum_1109";
                CacheAccess.Set(_key, curstar, 2);
            }
            return(li);
        }
コード例 #26
0
        private async void GoToMyTrophies()
        {
            CanExecuteInitial();
            await NavigationHelper.ShowLoading();
            var parameter = new NavigationParameters();
            try
            {
                var user = await CacheAccess.GetSecure<User>(CacheKeys.USER_KEY);
                var myTrophies = await _trophyAppService.GetCurrentTrophies(user.UsuarioId.ToString());
                parameter.Add(NavigationKeyParameters.MyTrophies, myTrophies.Trophies);
                if (myTrophies.Trophies.Count < 1)
                {
                    _userDialogs.Toast("Você não possui Troféus!", new TimeSpan(0, 0, 3));
                }
                else
                {
                    await _navigationService.NavigateAsync(NavigationSettings.TrophyRoom, parameter);
                }

            }
            catch
            {
                _userDialogs.Toast("Não foi possível carregar seus troféus, verifique sua conexão.", new TimeSpan(0, 0, 3));
            }
            finally
            {
                await NavigationHelper.PopLoading();
                CanExecuteEnd();
            }
        }
コード例 #27
0
        public ActionResult GetChilById()
        {
            //GetChilById?_pid
            OperationResult resul = new OperationResult(OperationResultType.Error);
            var             parid = InputHelper.SafeInput(Request["_pid"]);

            if (!string.IsNullOrEmpty(parid))
            {
                int pid = Convert.ToInt32(parid);

                var pmodu = CacheAccess.GetModules(_moduleContract).Single(c => c.Id == pid && c.IsDeleted == false && c.IsEnabled == true);
                if (pmodu != null)
                {
                    var chil = pmodu.Permissions.Select(c => new RightTree()
                    {
                        id       = "c" + c.Id,
                        text     = c.PermissionName,
                        _checked = false,
                        url      = "",
                        msg      = c.Description
                    });
                    return(Json(new ResJson()
                    {
                        obj = chil,
                        msg = "",
                        success = true,
                    }));
                }
            }
            return(Json(resul));
        }
コード例 #28
0
 public OnlineController(IStoreContract storeContract,
                         IStorageContract storageContract,
                         IGalleryContract galleryContract,
                         IInventoryContract inventoryContract,
                         IStoreCartContract storeCartContract,
                         IProductContract prodcutContract,
                         IAdministratorContract administratorContract,
                         IStoreCartItemContract storeCartItemContract,
                         IColorContract colorContract,
                         IOnlinePurchaseProductContract oppContract,
                         IProductContract productContract,
                         IProductOrigNumberContract _productOrigNumberContract,
                         IStoreTypeContract _storeTypeContract,
                         IBrandContract _brandContract,
                         ICategoryContract categoryContract)
 {
     _storeContract   = storeContract;
     _storageContract = storageContract;
     //_galleryContract = galleryContract;
     //_inventoryContract = inventoryContract;
     _storeCartContract              = storeCartContract;
     _productContract                = prodcutContract;
     _storeCartItemContract          = storeCartItemContract;
     _colorContract                  = colorContract;
     _categoryContract               = categoryContract;
     _oppContract                    = oppContract;
     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._storeTypeContract         = _storeTypeContract;
 }
コード例 #29
0
        private async Task GetClients()
        {
            await NavigationHelper.ShowLoading();

            ListaClientes.Clear();
            try
            {
                var user = await CacheAccess.GetSecure <User>(CacheKeys.USER_KEY);

                var clients = await TryGetClientsFromCache();

                foreach (var client in clients.Clients)
                {
                    ListaClientes.Add(client);
                }
                NoData = ListaClientes.Count < 1 ? true : false;
            }
            catch
            {
                UserDialogs.Instance.Toast("Não foi possível carregar os clientes");
                await _navigationService.NavigateAsync(NavigationSettings.MenuPrincipal);
            }
            finally
            {
                await NavigationHelper.PopLoading();
            }
        }
コード例 #30
0
 public PropertyAndNode2LabelIndexProcessor(ConsistencyReporter reporter, IndexAccessors indexes, PropertyReader propertyReader, CacheAccess cacheAccess, System.Func <NodeRecord, MandatoryProperties.Check <NodeRecord, ConsistencyReport_NodeConsistencyReport> > mandatoryProperties)
 {
     this._reporter            = reporter;
     this._cacheAccess         = cacheAccess;
     this._mandatoryProperties = mandatoryProperties;
     this._nodeIndexCheck      = new PropertyAndNodeIndexedCheck(indexes, propertyReader, cacheAccess);
     this._propertyCheck       = new PropertyRecordCheck();
 }