private void LoadData() { string strWhere = string.Format("ID='{0}'", Request.QueryString["ID"]); BLL.vw_JC_RoutingSub bllRoutingSub = new BLL.vw_JC_RoutingSub(); DataRow dr = bllRoutingSub.GetList(strWhere).Tables[0].Rows[0]; txbProcedureName.Text = dr["ProcedureName"].ToString(); nbxProcedureOrder.Text = dr["ProcedureOrder"].ToString(); tgbProcedureNO.Text = dr["ProcedureNO"].ToString(); hdfRoutingID.Text = dr["RoutingID"].ToString(); }
private void BindGridSub(string id) { string strWhere = string.Format("RoutingID='{0}'", id); string order = string.Format("{0} {1}", gridRoutingSub.SortField, gridRoutingSub.SortDirection); int pageSize = gridRoutingSub.PageSize; int pageIndex = gridRoutingSub.PageIndex; long totalRecord; BLL.vw_JC_RoutingSub bllRoutingSub = new BLL.vw_JC_RoutingSub(); DataTable dtSource = bllRoutingSub.GetListByPage(strWhere, order, pageSize, pageIndex, out totalRecord).Tables[0]; gridRoutingSub.DataSource = dtSource; gridRoutingSub.RecordCount = (int)totalRecord; gridRoutingSub.DataBind(); }