示例#1
0
        /// <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();
            }
        }
示例#2
0
        /// <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);
        }
示例#3
0
        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);
        }