Esempio n. 1
0
        /// <summary>
        /// 捞取批次退料的记录,加了条件
        /// </summary>
        /// <param name="dsSearch"></param>
        /// <returns></returns>
        /// Q.001
        public DataSet GetReturnMaterial(DataSet dsSearch)
        {
            DataSet dsReturn = new DataSet();

            try
            {
                //创建远程调用的工厂对象。
                IServerObjFactory serverFactory = CallRemotingService.GetRemoteObject();
                if (null != serverFactory)
                {
                    dsReturn  = serverFactory.CreateIReturnMaterialQueryEngine().GetReturnMaterial(dsSearch);
                    _errorMsg = FanHai.Hemera.Share.Common.ReturnMessageUtils.GetServerReturnMessage(dsReturn);
                }
            }
            catch (Exception ex)
            {
                _errorMsg = ex.Message;
            }
            finally
            {
                CallRemotingService.UnregisterChannel();
            }
            return(dsReturn);
        }