示例#1
0
        private void InitControl()
        {
            SearchCompaniesRequest request = new SearchCompaniesRequest();

            request.SearchType      = SearchCompanyType.List;
            request.IsPageModel     = true;
            request.CompanyName     = txtKeyword.Text.NoHTML();
            request.CurrentPage     = CurrentPageIndex;
            request.PageCount       = CompanyPage.PageSize;
            request.OrderExpression = OrderBy;
            request.OrderDirection  = OrderDirection;
            SearchCompaniesResponse response = companyApp.SearchCompanies(request);

            if (response.ResultCount > 0)
            {
                rptCompanyList.DataSource = response.ResultList;
                rptCompanyList.DataBind();
                CompanyPage.RecordCount = response.ResultCount;
            }
            else
            {
                trNoTickets.Visible    = true;
                rptCompanyList.Visible = false;
            }
        }
示例#2
0
        private void InitControl()
        {
            SearchCompaniesRequest request = new SearchCompaniesRequest();

            request.SearchType      = SearchCompanyType.List;
            request.IsPageModel     = true;
            request.CompanyName     = txtKeyword.Text.NoHTML();
            request.CurrentPage     = anpCompanies.CurrentPageIndex;
            request.PageCount       = anpCompanies.PageSize;
            request.OrderExpression = hidOrderBy.Value;
            request.OrderDirection  = hidOrderDirection.Value;
            SearchCompaniesResponse response = companyApp.SearchCompanies(request);

            rptCompanies.DataSource = response.ResultList;
            rptCompanies.DataBind();

            anpCompanies.RecordCount = response.ResultCount;
        }