Esempio n. 1
0
        /// <summary>
        /// 根据序列号和功率档位查询对应档位的铭牌打印信息(体现功率档位) yibin.fei 2017.10.30
        /// </summary>
        /// <param name="lotNum"></param>
        /// <param name="AfterPower"></param>
        /// <returns></returns>
        public DataSet getInfoForNamepalteLabelAutoPrintForPowerShow(string lotNum, string AfterPower)
        {
            DataSet dsReturn = new DataSet();

            try
            {
                IServerObjFactory serverFactory = CallRemotingService.GetRemoteObject();
                if (null != serverFactory)
                {
                    dsReturn  = serverFactory.CreateINameplateLabelAutoPrintEngine().getInfoForNamepalteLabelAutoPrintForPowerShow(lotNum, AfterPower);
                    _errorMsg = FanHai.Hemera.Share.Common.ReturnMessageUtils.GetServerReturnMessage(dsReturn);
                }
            }
            catch (Exception ex)
            {
                _errorMsg = ex.Message;
            }
            finally
            {
                CallRemotingService.UnregisterChannel();
            }
            return(dsReturn);
        }
Esempio n. 2
0
        public DataSet getTemplateByProdId(string prodId)
        {
            DataSet dsReturn = new DataSet();

            try
            {
                IServerObjFactory serverFactory = CallRemotingService.GetRemoteObject();
                if (null != serverFactory)
                {
                    dsReturn  = serverFactory.CreateINameplateLabelAutoPrintEngine().getTemplateByProdId(prodId);
                    _errorMsg = FanHai.Hemera.Share.Common.ReturnMessageUtils.GetServerReturnMessage(dsReturn);
                }
            }
            catch (Exception ex)
            {
                _errorMsg = ex.Message;
            }
            finally
            {
                CallRemotingService.UnregisterChannel();
            }
            return(dsReturn);
        }
Esempio n. 3
0
        public bool updateTemplate(string prodId, string template, string editor, string editTime)
        {
            bool flag = false;

            try
            {
                IServerObjFactory serverFactory = CallRemotingService.GetRemoteObject();
                if (null != serverFactory)
                {
                    flag = serverFactory.CreateINameplateLabelAutoPrintEngine().updateTemplate(prodId, template, editor, editTime);
                }
            }
            catch (Exception ex)
            {
                _errorMsg = ex.Message;

                flag = false;
            }
            finally
            {
                CallRemotingService.UnregisterChannel();
            }
            return(flag);
        }