public override void OnClick() { if (ucCtl == null) { ucCtl = ModData.v_AppPrivileges.MainUserControl; } UCRole pRole = ucCtl as UCRole; pRole.ChangeUC("User"); if (this.WriteLog) { Fan.Plugin.LogTable.Writelog(Caption);//xisheng 2011.07.09 增加日志 } }
public override void OnClick() { //changed by chulili20110718 先将目录管理界面不可见,再响应界面切换 for (int i = 0; i < _hook.MainForm.Controls.Count; i++) { if (_hook.MainForm.Controls[i].Name.Equals("UCDataSourceManger")) { _hook.MainForm.Controls[i].Enabled = false; break; } } //end added by chulili if (ucCtl == null) { ucCtl = ModData.v_AppPrivileges.MainUserControl; } ucCtl.Enabled = true;//added by chulili 20110722 切换回来后,使可用 ucCtl.Visible = true; UCRole pUCROLE = ucCtl as UCRole; pUCROLE.RefreshDataList(); //pUCROLE.RefreshDBsourcelist();//changed by chulili 20110705删除数据源权限 //_hook.MainForm.Controls.Add(ucCtl ); _hook.MainForm.Controls.SetChildIndex(ucCtl, 0); //for (int i = 1; i < _hook.MainForm.Controls.Count; i++) //{ // if (_hook.MainForm.Controls[i].Name.Equals("UCDataSourceManger")) // { // _hook.MainForm.Controls[i].Visible = false; // break; // } //} if (this.WriteLog) { Fan.Plugin.LogTable.Writelog(Caption);//xisheng 2011.07.09 增加日志 } }
public override void OnClick() { if (m_Hook.MainForm.Controls[0] is UCRole) { UCRole pRole = m_Hook.MainForm.Controls[0] as UCRole; if (pRole.UCtag == "Role") { if (m_Hook.RoleTree.SelectedNode != null) { ModuleOperator.MovDown(m_Hook.RoleTree, m_Hook.RoleTree.SelectedNode); } } else { if (m_Hook.UserTree.SelectedNode != null) { if (m_Hook.UserTree.SelectedNode != null) { ModuleOperator.MovDown(m_Hook.UserTree, m_Hook.UserTree.SelectedNode); } } } } }