public void MyBind() { DataTable configDT = GetConfig(); string nodes = ""; foreach (DataRow dr in configDT.Rows) { if (DataConvert.CLng(dr["NodeID"]) > 0) { nodes += dr["NodeID"] + ","; } } nodes = nodes.TrimEnd(','); Nodes_Hid.Value = nodes; NodeRPT.DataSource = configDT; NodeRPT.DataBind(); DataTable dt = SelFromArticle(nodes); dt.Merge(SelFromAsk()); CurDT = InitDT(dt, configDT); EGV.DataSource = CurDT; EGV.DataBind(); }
private void MyBind() { DataTable dt = nodeBll.GetNodeChildList(0); dt.DefaultView.RowFilter = "NodeType IN(1)"; NodeRPT.DataSource = dt.DefaultView.ToTable(); NodeRPT.DataBind(); dt.DefaultView.RowFilter = "NodeType IN(2)"; DataTable spageDT = dt.DefaultView.ToTable(); SPageRPT.DataSource = spageDT; SPageRPT.DataBind(); SpecRPT.DataSource = spBll.SelAsNode(); SpecRPT.DataBind(); //计划任务 DataTable schDT = null;// scheBll.SelByTaskType(M_Content_ScheTask.TaskTypeEnum.Release); if (schDT != null && schDT.Rows.Count > 0) { scheMod = scheMod.GetModelFromDR(schDT.Rows[0]); scheTime_T.Text = scheMod.ExecuteTime2.ToString("HH:mm"); } }