private void bindList()
        {
            SearchSuccessStories con = new SearchSuccessStories();

            if (ddlSuccessStoriesType.SelectedValue != "")
            {
                con.SSType = Convert.ToInt32(ddlSuccessStoriesType.SelectedValue);
            }
            if (rbtnIsChinese.Checked == true)
            {
                con.IsEnglish = 1;
            }
            else if (rbtnIsEnglish.Checked == true)
            {
                con.IsEnglish = 2;
            }
            Pagination pagina = new Pagination(pager.PageIndex, pager.PageSize, 0);

            using (BLLSuccessStories bll = new BLLSuccessStories())
            {
                List <SuccessStories> lists = bll.GetPageList(con, pagina, SuccessStoriesType.ID_FieldName, ScriptQuery.SortEnum.DESC);

                pager.RecordCount = pagina.RecordCount;
                pager.PageCount   = pagina.PageCount;

                grid_friendlink.DataSource = lists;
                grid_friendlink.DataBind();
            }
        }
Beispiel #2
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;
            }
        }
Beispiel #3
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();
            }
        }
Beispiel #4
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;
            }
        }
Beispiel #5
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;
            //    }

            //}
        }