/// <summary> /// 保存角色拥有的机台状态权限 /// </summary> /// <param name="dataSet"></param> public void SaveStatusOfRole(DataSet dataSet) //ADD BY QYM 20120606 Q.001 { DataSet dsReturn = new DataSet(); try { IServerObjFactory serverFactory = CallRemotingService.GetRemoteObject(); if (null != serverFactory) { dsReturn = serverFactory.CreateIPrivilegeEngine().SaveStatusOfRole(dataSet); _errorMsg = FanHai.Hemera.Share.Common.ReturnMessageUtils.GetServerReturnMessage(dsReturn); } } catch (Exception ex) { _errorMsg = ex.Message; } finally { CallRemotingService.UnregisterChannel(); } }
/// <summary> /// 取得角色有权限或者没有权限的机台状态 /// </summary> /// <param name="type"></param> /// <returns></returns> public DataSet GetStatusOfRole(string type)//add by qym 20120605 Q.001 { DataSet dsReturn = new DataSet(); try { IServerObjFactory serverFactory = CallRemotingService.GetRemoteObject(); if (null != serverFactory) { dsReturn = serverFactory.CreateIPrivilegeEngine().GetStatusOfRole(_roleKey, type); _errorMsg = FanHai.Hemera.Share.Common.ReturnMessageUtils.GetServerReturnMessage(dsReturn); } } catch (Exception ex) { _errorMsg = ex.Message; } finally { CallRemotingService.UnregisterChannel(); } return(dsReturn); }
public DataSet GetOperationOwnedByRole() { DataSet dsReturn = new DataSet(); try { IServerObjFactory serverFactory = CallRemotingService.GetRemoteObject(); if (null != serverFactory) { dsReturn = serverFactory.CreateIPrivilegeEngine().GetOperationOwnedByRole(_roleKey); _errorMsg = FanHai.Hemera.Share.Common.ReturnMessageUtils.GetServerReturnMessage(dsReturn); } } catch (Exception ex) { _errorMsg = ex.Message; } finally { CallRemotingService.UnregisterChannel(); } return(dsReturn); }