Exemple #1
0
        private double TotalRow()
        {
            BLL.DataCenterBiz biz = new BLL.DataCenterBiz();
            var res = biz.GetAssociationByByCriteria(txtIdAss.Text.Trim().ReplaceQuote(), txtNameAss.Text.Trim().ReplaceQuote(), ddlCType.SelectedValue.ToString(),
                                                     ddlAtype.SelectedValue.ToString(), 0, 0, true, getStatus());

            return(double.Parse(res.DataResponse.Tables[0].Rows[0][0].ToString()));
        }
Exemple #2
0
        protected void BindGrid()
        {
            TotalRows = TotalRow();
            int page = int.Parse(txtNumberGvSearch.Text);

            BLL.DataCenterBiz biz = new BLL.DataCenterBiz();
            var res = biz.GetAssociationByByCriteria(txtIdAss.Text.Trim().ReplaceQuote(), txtNameAss.Text.Trim().ReplaceQuote(), ddlCType.SelectedValue.ToString(),
                                                     ddlAtype.SelectedValue.ToString(), page, rowsPerPage(), false, getStatus());

            gvAssociation.DataSource = res.DataResponse;
            gvAssociation.DataBind();

            SetTextTotlaRows();
        }