/// <summary>删除信息 /// 删除信息 /// </summary> /// <param name="parameter"></param> /// <returns></returns> public bool DeleteInf(string parameter) { DataSet dsReturn = new DataSet(); try { IServerObjFactory serverFactory = CallRemotingService.GetRemoteObject(); if (null != serverFactory) { dsReturn = serverFactory.CreateIMaterialBuckleControlEngine().DeleteInf(parameter); _errorMsg = FanHai.Hemera.Share.Common.ReturnMessageUtils.GetServerReturnMessage(dsReturn); } } catch (Exception ex) { _errorMsg = ex.Message; } finally { CallRemotingService.UnregisterChannel(); } if (string.IsNullOrEmpty(_errorMsg)) { MessageService.ShowMessage("删除信息成功!", "${res:Global.SystemInfo}"); //系统提示删除成功 return(true); } else { MessageService.ShowError(_errorMsg); return(false); } }
/// <summary>通过参数名获取材料耗用设定基础表参数信息 /// 通过参数名获取参数信息 /// </summary> /// <param name="parameter">参数名</param> /// <returns></returns> public DataSet GetInfByParameter(string parameter) { DataSet dsReturn = new DataSet(); try { //创建远程调用的工厂对象。 IServerObjFactory serverFactory = CallRemotingService.GetRemoteObject(); if (null != serverFactory) { dsReturn = serverFactory.CreateIMaterialBuckleControlEngine().GetInfByParameter(parameter); _errorMsg = FanHai.Hemera.Share.Common.ReturnMessageUtils.GetServerReturnMessage(dsReturn); } } catch (Exception ex) { _errorMsg = ex.Message; } finally { CallRemotingService.UnregisterChannel(); } return(dsReturn); }