protected void gvDataBind() { DataSet ds = BasEmScoreInfo.getDriveds(); DataSet ds1 = BasEmScoreInfo.getNurseds(); ds.Merge(ds1); DataView view = ds.Tables[0].DefaultView; string sort = (string)ViewState["SortExpression"] + " " + (string)ViewState["SortDir"]; view.Sort = sort; DataTable dt = ds.Tables[0]; if (dt.Rows.Count == 0) { dt.Rows.Add(dt.NewRow()); UI.BindCtrl(dt.DefaultView, gvScore, AspNetPager1); gvScore.Rows[0].Visible = false; } else { UI.BindCtrl(dt.DefaultView, gvScore, AspNetPager1); } }
protected void gvDataBind() { DataSet ds = BasEmScoreInfo.getBasM(); //市场助理 DataSet ds1 = BasEmScoreInfo.getFrontM(); //前台 DataSet ds2 = BasEmScoreInfo.getAssisM(); //行政助理 DataSet ds3 = BasEmScoreInfo.getNurseds(); //后勤 DataSet ds4 = BasEmScoreInfo.getDriveds(); //司机 DataSet ds5 = TechMaScoreInfo.getMarketds(); //市场部经理 DataSet ds6 = TechMaScoreInfo.getTechds(); //技术部经理 DataSet ds7 = TechMaScoreInfo.getTechEmds(); //技术部员工 ds.Merge(ds1); ds.Merge(ds2); ds.Merge(ds3); ds.Merge(ds4); ds.Merge(ds5); ds.Merge(ds6); ds.Merge(ds7); DataView view = ds.Tables[0].DefaultView; string sort = (string)ViewState["SortExpression"] + " " + (string)ViewState["SortDir"]; view.Sort = sort; DataTable dt = ds.Tables[0]; if (dt.Rows.Count == 0) { dt.Rows.Add(dt.NewRow()); UI.BindCtrl(dt.DefaultView, gvScore, AspNetPager1); gvScore.Rows[0].Visible = false; } else { UI.BindCtrl(dt.DefaultView, gvScore, AspNetPager1); } }