コード例 #1
0
        public DataSet GetDecayCoeffiData()
        {
            DataSet dsReturn = new DataSet();

            try
            {
                _errorMsg = string.Empty;
                IServerObjFactory serverFactory = CallRemotingService.GetRemoteObject();
                dsReturn  = serverFactory.CreateIDecayCoeffiEngine().GetDecayCoeffiData();
                _errorMsg = FanHai.Hemera.Share.Common.ReturnMessageUtils.GetServerReturnMessage(dsReturn);
            }
            catch (Exception ex)
            {
                _errorMsg = ex.Message;
            }
            finally
            {
                CallRemotingService.UnregisterChannel();
            }
            return(dsReturn);
        }
コード例 #2
0
 public bool SaveDecayCoeffiData(DataSet dsDecayCoeffi)
 {
     try
     {
         _errorMsg = string.Empty;
         IServerObjFactory serverFactory = CallRemotingService.GetRemoteObject();
         DataSet           dsReturn      = serverFactory.CreateIDecayCoeffiEngine().SaveDecayCoeffiData(dsDecayCoeffi);
         _errorMsg = FanHai.Hemera.Share.Common.ReturnMessageUtils.GetServerReturnMessage(dsReturn);
         if (!string.IsNullOrEmpty(_errorMsg))
         {
             return(false);
         }
     }
     catch (Exception ex)
     {
         _errorMsg = ex.Message;
         return(false);
     }
     finally
     {
         CallRemotingService.UnregisterChannel();
     }
     return(true);
 }