Exemple #1
0
        /// <summary>
        /// 自动生产编号
        /// </summary>
        /// <param name="strTxt">编号类型</param>
        /// <param name="isAdd">是否增长</param>
        /// <returns></returns>
        public string GetShgCod(string strTxt, bool isAdd)
        {
            String strReturn = null;

            try
            {
                _errorMsg = string.Empty;
                IServerObjFactory serverFactory = CallRemotingService.GetRemoteObject();
                strReturn = serverFactory.CreateILotComponentTrayEngine().GetShgCod(strTxt, isAdd);
            }
            catch (Exception ex)
            {
                _errorMsg = ex.Message;
            }
            finally
            {
                CallRemotingService.UnregisterChannel();
            }
            return(strReturn);
        }
Exemple #2
0
        /// <summary>
        /// 线别托盘数据查询
        /// </summary>
        /// <param name="trayValue"></param>
        /// <param name="linekey"></param>
        /// <returns></returns>
        public DataSet SelectComponentTrayLine(string trayValue, string linekey)
        {
            DataSet dsReturn = null;

            try
            {
                _errorMsg = string.Empty;
                IServerObjFactory serverFactory = CallRemotingService.GetRemoteObject();
                dsReturn = serverFactory.CreateILotComponentTrayEngine().SelectComponentTrayLine(trayValue, linekey);
            }
            catch (Exception ex)
            {
                _errorMsg = ex.Message;
            }
            finally
            {
                CallRemotingService.UnregisterChannel();
            }

            return(dsReturn);
        }
Exemple #3
0
        public bool InsertComponentTray(LotCustomerModel model)
        {
            bool isBool = false;

            try
            {
                _errorMsg = string.Empty;
                IServerObjFactory serverFactory = CallRemotingService.GetRemoteObject();
                isBool = serverFactory.CreateILotComponentTrayEngine().InsertComponentTray(model);
            }
            catch (Exception ex)
            {
                _errorMsg = ex.Message;
            }
            finally
            {
                CallRemotingService.UnregisterChannel();
            }

            return(isBool);
        }
Exemple #4
0
        public bool UpdateOpcValue(string strAddress, string strValue, string strDateTime)
        {
            bool isBool = false;

            try
            {
                _errorMsg = string.Empty;
                IServerObjFactory serverFactory = CallRemotingService.GetRemoteObject();
                isBool = serverFactory.CreateILotComponentTrayEngine().UpdateOpcValue(strAddress, strValue, strDateTime);
            }
            catch (Exception ex)
            {
                _errorMsg = ex.Message;
            }
            finally
            {
                CallRemotingService.UnregisterChannel();
            }

            return(isBool);
        }