Exemple #1
0
        /// <summary>
        /// 根据查询条件获取返工单批次数据。
        /// </summary>
        /// <param name="hstable">查询条件。</param>
        /// <returns>包好返工单数据数据集对象。</returns>
        public DataSet GetExchangeByFilter(Hashtable hstable)
        {
            DataSet dsReturn = new DataSet();

            try
            {
                IServerObjFactory serverFactory = CallRemotingService.GetRemoteObject();
                dsReturn  = serverFactory.CreateIExchangeWoEngine().GetExchangeByFilter(hstable);
                _errorMsg = FanHai.Hemera.Share.Common.ReturnMessageUtils.GetServerReturnMessage(dsReturn);
            }
            catch (Exception ex)
            {
                _errorMsg = ex.Message;
            }
            finally
            {
                CallRemotingService.UnregisterChannel();
            }
            return(dsReturn);
        }
Exemple #2
0
        public DataSet GetExchangeWoData(DataSet reqDS, int pageNo, int pageSize, out int pages, out int records, Hashtable hstable)
        {
            DataSet dsReturn = new DataSet();

            pages   = 0;
            records = 0;
            try
            {
                _errorMsg = string.Empty;
                IServerObjFactory serverFactory = CallRemotingService.GetRemoteObject();
                dsReturn  = serverFactory.CreateIExchangeWoEngine().GetExchangeWoData(reqDS, pageNo, pageSize, out pages, out records, hstable);
                _errorMsg = FanHai.Hemera.Share.Common.ReturnMessageUtils.GetServerReturnMessage(dsReturn);
            }
            catch (Exception ex)
            {
                _errorMsg = ex.Message;
            }
            finally
            {
                CallRemotingService.UnregisterChannel();
            }
            return(dsReturn);
        }