コード例 #1
0
        /// <summary>
        /// 根据车间捞取设备,其他参数
        /// </summary>
        /// <param name="?"></param>
        public DataSet SearchEMS(string strFactoryRoom, string groupKey, string equipmentKey)
        {
            DataSet dsReturn = new DataSet();

            try
            {
                IServerObjFactory obj = CallRemotingService.GetRemoteObject();
                dsReturn  = obj.CreateIEDCQuery().SearchEMS(strFactoryRoom, groupKey, equipmentKey);
                _errorMsg = FanHai.Hemera.Share.Common.ReturnMessageUtils.GetServerReturnMessage(dsReturn);
            }
            catch (Exception ex)
            {
                _errorMsg = ex.Message;
            }
            finally
            {
                CallRemotingService.GetRemoteObject();
            }
            return(dsReturn);
        }
コード例 #2
0
        /// <summary>
        /// 查询抽检点
        /// </summary>
        /// <returns></returns>
        public DataSet SearchEdcPoint()
        {
            DataSet dsReturn = new DataSet();

            try
            {
                IServerObjFactory obj = CallRemotingService.GetRemoteObject();
                dsReturn  = obj.CreateIEDCQuery().SearchEdcPoint();
                _errorMsg = FanHai.Hemera.Share.Common.ReturnMessageUtils.GetServerReturnMessage(dsReturn);
            }
            catch (Exception ex)
            {
                _errorMsg = ex.Message;
            }
            finally
            {
                CallRemotingService.GetRemoteObject();
            }
            return(dsReturn);
        }