Example #1
0
        //插入数据
        public bool InsertIntoGWJ(DataTable dtData, string lotNumber)
        {
            DataSet dsReturn = new DataSet();

            try
            {
                IServerObjFactory serverFactory = CallRemotingService.GetRemoteObject();
                if (null != serverFactory)
                {
                    dsReturn  = serverFactory.CreateIHighOfSFinishedProductsEngine().InsertIntoGWJ(dtData, lotNumber);
                    _errorMsg = FanHai.Hemera.Share.Common.ReturnMessageUtils.GetServerReturnMessage(dsReturn);


                    if (string.IsNullOrEmpty(_errorMsg))
                    {
                        MessageService.ShowMessage("保存成功!");
                        return(true);
                    }
                    else
                    {
                        MessageService.ShowMessage("保存失败!详细信息:" + _errorMsg);
                        return(false);
                    }
                }
            }
            catch (Exception ex)
            {
                _errorMsg = ex.Message;
            }
            finally
            {
                CallRemotingService.UnregisterChannel();
            }
            return(true);
        }
Example #2
0
        //获取托信息
        public DataSet GetHighInfByLotNum(string strLotNum)
        {
            DataSet dsReturn = new DataSet();

            try
            {
                IServerObjFactory serverFactory = CallRemotingService.GetRemoteObject();
                if (null != serverFactory)
                {
                    dsReturn  = serverFactory.CreateIHighOfSFinishedProductsEngine().GetHighInfByLotNum(strLotNum);
                    _errorMsg = FanHai.Hemera.Share.Common.ReturnMessageUtils.GetServerReturnMessage(dsReturn);
                }
            }
            catch (Exception ex)
            {
                _errorMsg = ex.Message;
            }
            finally
            {
                CallRemotingService.UnregisterChannel();
            }
            return(dsReturn);
        }