示例#1
0
        protected void btnQuery_Click(object sender, EventArgs e)
        {
            DataTable dt = rmBLL.getRMListByName(tbName.Text.Trim());

            ViewState["GridData"] = dt;
            GridRM.DataSource     = dt;
            GridRM.DataBind();
        }
示例#2
0
        private void getRMList()
        {
            DataTable dt = rmBLL.getAllRepairMen();

            ViewState["GridRMData"] = dt;
            GridRM.DataSource       = dt;
            GridRM.DataBind();
        }
示例#3
0
        private void getGridData()
        {
            DataTable dt = rmBLL.getAllRepairMen(true);

            if (dt.Rows.Count > 0)
            {
                ViewState["GridData"] = dt;
                GridRM.DataSource     = dt;
                GridRM.DataBind();
            }
        }