protected void Node_Btn_Click(object sender, EventArgs e) { PageSetting setting = PageSetting.Single(1, int.MaxValue, "PE_Class", "ClassID", ""); DataTable dt = access.SelPage(setting); dt.Columns["ClassID"].ColumnName = "NodeID"; dt.Columns["ClassName"].ColumnName = "NodeName"; dt.Columns["ParentID"].ColumnName = "ParentID"; CopyNodes(dt); function.WriteSuccessMsg("拷入完成"); }
public static DataTable SelPage(int psize, int cpage, out int itemCount, string pk, string fields, string tbname, string where = "", string order = "", SqlParameter[] sp = null) { PageSetting config = new PageSetting(); config.cpage = cpage; config.psize = psize; config.pk = pk; config.fields = fields; config.t1 = tbname; config.where = where; config.order = order; config.sp = sp; DataTable dt = DB.SelPage(config); itemCount = config.itemCount; return(dt); }