/// <summary> /// 获取全部角色 /// </summary> public void GetAllUserRole() { DataSet ds = SysTools.basicService.GetAllUserRole(); TCOM_ROLE.Rows.Clear(); DataManager.ImpDataSet(ds.Tables[0], TCOM_ROLE); TCOM_ROLE.AcceptChanges(); }
/// <summary> /// 保存 /// </summary> public void SaveRole() { DataTable tb = TCOM_ROLE.GetChanges(); if (tb != null) { DataSet dst = new DataSet(); dst.Tables.Add(tb); SysTools.basicSer.SaveTable(dst, "TCOM_ROLE"); TCOM_ROLE.AcceptChanges(); } }