protected void btnSearch_Click(object sender, EventArgs e) { BLL.department bll = new BLL.department(); if (IsshowNum) { this.rptList.DataSource = bll.getAllEmployee(area, txtPerson.Text.ToUpper(), IsshowNum, hasOrder); this.rptList.DataBind(); } else { this.rptList1.DataSource = bll.getAllEmployee(area, txtPerson.Text.ToUpper()); this.rptList1.DataBind(); } }
private void RptBind() { BLL.department bll = new BLL.department(); if (IsshowNum) { this.rptList.DataSource = bll.getAllEmployee(area, "", IsshowNum, hasOrder); this.rptList.DataBind(); } else { this.rptList1.DataSource = bll.getAllEmployee(area, ""); this.rptList1.DataBind(); } }