Пример #1
0
        public void Page_Load(object sender, EventArgs args)
        {
            //me = UserBll.GetSessionUser();
            var t_site_id = Request["site"].TryToShort();

            if (t_site_id > 0)
            {
                site = SiteBll.GetById(t_site_id);
                SiteBll.SetSessionSite(site);
            }

            site = SiteBll.GetSessionSite();

            //cases = CaseBll.GetCasesForFront(6, 0).Table.Populate<Case>() ;
            cases = CaseBll.GetCasesForFrontOnlyDesigner(6, 0, 0, 0).Populate <Case>();

            articles1 = ArticleBll.GetArticleForFront("热点新闻").Table.Populate <Article>();
            articles2 = ArticleBll.GetArticleForFront("居家布置").Table.Populate <Article>();
            articles3 = ArticleBll.GetArticleForFront("装修常识").Table.Populate <Article>();
            articles4 = ArticleBll.GetArticleForFront("装修手册").Table.Populate <Article>();

            materials = MaterialsBll.GetMaterialsForFront().Table.Populate <Material>();

            tdks = SeoBll.GetTDKbyPage("index.aspx", "").Table.Populate <SeoBll.Seo>();

            contractors = ContractorBll.GetAllContractors(0, 50).Table.Populate <Contractor>();
            suppliers   = SupplierBll.GetAll(0, 50).Table.Populate <Supplier>();


            dists = DistrictBll.GetAll();

            contractorsList4global = ContractorBll.GetAllContractors(0, 500).Table.Populate <Contractor>();
        }
Пример #2
0
        private void LoadSupplier()
        {
            ISupplierBll bll = new SupplierBll(_log);

            _listOfSupplier = bll.GetAll();

            FillDataHelper.FillSupplier(chkListBox, _listOfSupplier);
        }
Пример #3
0
        private void LoadSupplier()
        {
            ISupplierBll bll = new SupplierBll(_log);

            _listOfSupplier = bll.GetAll();

            FillDataHelper.FillSupplier(cmbSupplier, _listOfSupplier);

            if (_listOfSupplier.Count > 0)
            {
                cmbSupplier.SelectedIndex = 0;
            }
            else
            {
                rdoStokBerdasarkanSupplier.Enabled = false;
            }
        }