/// <summary> /// 用户角色绑定 /// </summary> /// <param name="where"></param> private void RoleDataBind(string where) { try { DataTable dt = settingManager.GetSerRoleInfo(SystemID, where); StoreRole.DataSource = dt; StoreRole.DataBind(); } catch (Exception ex) { ILog.WriteErrorLog(ex); logManager.InsertLogError("RoleManager.aspx-RoleDataBind", ex.Message + ";" + ex.StackTrace, "RoleDataBind has an exception"); } }
/// <summary> /// 初始化绑定数据 /// </summary> private void StoreDataBind() { try { DataTable dt = dtname = settingManager.GetSerRoleInfo(SystemID, "1=1"); StoreRole.DataSource = dt; StoreRole.DataBind(); if (dt.Rows.Count > 0) { DataTable dtrole = GetFirstDataTable(dt.Rows[0]); BuildTree(TreePanel1.Root, dtrole); } string jjmc = TxtERoleName.Text; string jjms = TxtERoleDesc.Text; string bzz = TxtERoleRemark.Text; yhm = jjmc; } catch (Exception ex) { ILog.WriteErrorLog(ex); logManager.InsertLogError("RoleManager.aspx-StoreDataBind", ex.Message + ";" + ex.StackTrace, "StoreDataBind has an exception"); } }