Exemple #1
0
        private void Bind()
        {
            SearchProductDetail snt = new SearchProductDetail();

            snt.IsEnglish = 1;
            if (type == 0)
            {
            }
            else
            {
                snt.ProTypeID = type;
            }
            Pagination pagination = new DevNet.Common.Pagination(pager.PageIndex, pager.PageSize, 0);

            using (BLLProductDetail bll = new BLLProductDetail())
            {
                List <ProductDetail> lists = bll.GetPageList(snt, pagination);
                rptProduct.DataSource = lists;
                rptProduct.DataBind();
                pager.RecordCount = pagination.RecordCount;
            }
            using (BLLCompanyInformationType bll = new BLLCompanyInformationType())
            {
                string[] fileds = new string[] { "CompanyInformationTypeID", "IsEnglish" };
                object[] values = new object[] { type, 1 };
                CompanyInformationType contype = bll.GetSingle(type);
                if (contype != null)
                {
                    Title = contype.CompanyInformationName;
                }
            }
        }
Exemple #2
0
        private void ProBind()
        {
            SearchProductDetail snt = new SearchProductDetail();

            snt.IsEnglish = 1;
            Pagination pagination = new DevNet.Common.Pagination(0, 9, 0);

            using (BLLProductDetail bll = new BLLProductDetail())
            {
                List <ProductDetail> lists = bll.GetPageList(snt, pagination);
                rptProduct.DataSource = lists;
                rptProduct.DataBind();
            }
        }
Exemple #3
0
        private void setnews()
        {
            SearchNewsDetail snt = new SearchNewsDetail();

            snt.IsEnglish = 1;

            Pagination pagination = new DevNet.Common.Pagination(1, 6, 0);

            using (BLLNewsDetail bll = new BLLNewsDetail())
            {
                List <NewsDetail> lists = bll.GetPageList(snt, pagination);

                rptNews.DataSource = lists;
                rptNews.DataBind();
            }
        }
Exemple #4
0
        private void Bindqiye()
        {
            SearchSuccessStories sss = new SearchSuccessStories();

            sss.IsEnglish = 1;
            sss.SSType    = 16;
            Pagination pagination = new DevNet.Common.Pagination(0, 6, 0);

            using (BLLSuccessStories bll = new BLLSuccessStories())
            {
                List <SuccessStories> lists = bll.GetPageList(sss, pagination);
                //rptProducttype.DataSource = lists;
                //rptProducttype.DataBind();
                //pager.RecordCount = pagination.RecordCount;
            }
        }
Exemple #5
0
        private void Bindanli()
        {
            SearchSuccessStories sss = new SearchSuccessStories();

            sss.IsEnglish = 1;


            sss.SSType = 14;
            Pagination pagination = new DevNet.Common.Pagination(0, 20, 0);

            using (BLLSuccessStories bll = new BLLSuccessStories())
            {
                List <SuccessStories> lists = bll.GetPageList(sss, pagination);
                chenggong.DataSource = lists;
                chenggong.DataBind();
            }
        }
Exemple #6
0
        private void setnews()
        {
            SearchDownLoad snt = new SearchDownLoad();

            snt.IsEnglish = 1;
            if (type == "")
            {
            }
            else
            {
                snt.CpDLName = type;
            }
            Pagination pagination = new DevNet.Common.Pagination(pager.PageIndex, pager.PageSize, 0);

            using (BLLDownLoad bll = new BLLDownLoad())
            {
                List <DownLoad> lists = bll.GetPageList(snt, pagination);
                pager.RecordCount  = pagination.RecordCount;
                rptNews.DataSource = lists;
                rptNews.DataBind();
            }
        }
Exemple #7
0
        /// <summary>
        /// 加载新闻
        /// </summary>
        private void setnews()
        {
            SearchNewsDetail snt = new SearchNewsDetail();

            snt.IsEnglish = 1;
            if (type == 0)
            {
            }
            else
            {
                snt.NewsTypeID = type;
            }
            Pagination pagination = new DevNet.Common.Pagination(pager.PageIndex, pager.PageSize, 0);

            using (BLLNewsDetail bll = new BLLNewsDetail())
            {
                List <NewsDetail> lists = bll.GetPageList(snt, pagination);
                pager.RecordCount  = pagination.RecordCount;
                rptNews.DataSource = lists;
                rptNews.DataBind();
            }
        }
        private void ProBind()
        {
            SearchProductDetail snt = new SearchProductDetail();

            snt.IsEnglish = 1;
            if (type == 0)
            {
            }
            else
            {
                snt.ProTypeID = type;
            }
            Pagination pagination = new DevNet.Common.Pagination(pager.PageIndex, pager.PageSize, 0);

            using (BLLProductDetail bll = new BLLProductDetail())
            {
                List <ProductDetail> lists = bll.GetPageList(snt, pagination);
                rptProduct.DataSource = lists;
                rptProduct.DataBind();
                pager.RecordCount = pagination.RecordCount;
                pager.PageCount   = pagination.PageCount;
            }
        }
Exemple #9
0
        private void Bind()
        {
            SearchSuccessStories sss = new SearchSuccessStories();

            sss.IsEnglish = 1;

            if (type == 15)
            {
                qianzhui.Text = "生产";
                houzhui.Text  = "设备";
                yingwen.Text  = "PRODUCT RUN  EQUIPMENT";
            }
            else if (type == 14)
            {
                qianzhui.Text = "成功";
                houzhui.Text  = "案例";
                yingwen.Text  = "SUCCESSFUL CASE";
            }
            else
            {
                type          = 15;
                qianzhui.Text = "生产";
                houzhui.Text  = "设备";
                yingwen.Text  = "PRODUCT RUN  EQUIPMENT";
            }
            sss.SSType = type;
            Pagination pagination = new DevNet.Common.Pagination(pager.PageIndex, pager.PageSize, 0);

            using (BLLSuccessStories bll = new BLLSuccessStories())
            {
                List <SuccessStories> lists = bll.GetPageList(sss, pagination);
                rptProducttype.DataSource = lists;
                rptProducttype.DataBind();
                pager.RecordCount = pagination.RecordCount;
            }
        }
Exemple #10
0
        private void Bind()
        {
            SearchSuccessStories sss = new SearchSuccessStories();

            sss.IsEnglish = 1;
            if (type == 14)
            {
                Title      = "成功案例";
                sss.SSType = type;
            }
            else
            {
                Title      = "生产设备";
                sss.SSType = type;
            }
            Pagination pagination = new DevNet.Common.Pagination(pager.PageIndex, pager.PageSize, 0);

            using (BLLSuccessStories bll = new BLLSuccessStories())
            {
                List <SuccessStories> lists = bll.GetPageList(sss, pagination);
                rptProducttype.DataSource = lists;
                rptProducttype.DataBind();
                pager.RecordCount = pagination.RecordCount;
            }

            //using (BLLCompanyInformationType bll = new BLLCompanyInformationType())
            //{

            //    CompanyInformationType contype = bll.GetSingle(14);
            //    if (contype != null)
            //    {
            //        Title = contype.CompanyInformationName;
            //    }

            //}
        }
Exemple #11
0
        /// <summary>
        /// 加载产品
        /// </summary>
        private void bindInfo()
        {
            SearchProductDetail spt = new SearchProductDetail();

            using (BLLProductDetail bll = new BLLProductDetail())
            {
                Pagination           pagination = new DevNet.Common.Pagination(0, 20, 0);
                List <ProductDetail> lists      = bll.GetPageList(spt, pagination);

                //if (lists != null)
                //{
                //    int x = 0;

                //    for (int i = 0; i < (lists.Count) / 2; i++)
                //    {
                //        prlsdaafgad.InnerHtml += "<li>";
                //        if (lists[x] != null)
                //        {
                //            prlsdaafgad.InnerHtml += "<a href=\"productDetail.aspx?id=" + lists[x].ID + "\" target=\"_self\"><img src=\"" + phoneImgUrl(lists[x].ProductPic) + "\" alt=\"\" /><span>" + lists[x].ProductName + "</span></a>";
                //        }
                //        x++;
                //        if (lists[x] != null)
                //        {
                //            prlsdaafgad.InnerHtml += "<a href=\"productDetail.aspx?id=" + lists[x].ID + "\" target=\"_self\"><img src=\"" + phoneImgUrl(lists[x].ProductPic) + "\" alt=\"\" /><span>" + lists[x].ProductName + "</span></a>";
                //        }
                //        x++;
                //        prlsdaafgad.InnerHtml += "</li>";
                //    }

                //}
                //else
                //{
                //    prlsdaafgad.InnerHtml += "暂无数据";
                //}
            }
        }
 /// <summary>
 /// 获取角色列表
 /// </summary>
 /// <param name="condition"></param>
 /// <param name="pagination"></param>
 /// <returns></returns>
 public virtual List <SysRole> GetRoleList(SearchSysRole condition, DevNet.Common.Pagination pagination)
 {
     return(GetRoleList(condition, pagination, SysRole.RoleID_FieldName, ScriptQuery.SortEnum.ASC));
 }