Esempio n. 1
0
        public DataSet GetMaterialSendingList(DataTable paramTable, ref PagingQueryConfig config)
        {
            DataSet dsReturn = new DataSet();

            try
            {
                IServerObjFactory serverFactory = CallRemotingService.GetRemoteObject();
                dsReturn  = serverFactory.CreateIMaterialReqOrReturnEngine().GetMaterialSendingList(paramTable, ref config);
                _errorMsg = FanHai.Hemera.Share.Common.ReturnMessageUtils.GetServerReturnMessage(dsReturn);
            }
            catch (Exception ex)
            {
                _errorMsg = ex.Message;
            }
            finally
            {
                CallRemotingService.UnregisterChannel();
            }

            return(dsReturn);
        }
Esempio n. 2
0
        /// <summary>创建领料单
        /// 创建领料单
        /// </summary>
        /// <param name="dsIn">领料单抬头和明细信息</param>
        /// <returns></returns>
        public DataSet CreateRequistionKoPo(DataSet dsIn)
        {
            DataSet dsReturn = new DataSet();

            try
            {
                IServerObjFactory serverFactory = CallRemotingService.GetRemoteObject();
                if (null != serverFactory)
                {
                    dsReturn  = serverFactory.CreateIMaterialReqOrReturnEngine().CreateRequistionKoPo(dsIn);
                    _errorMsg = FanHai.Hemera.Share.Common.ReturnMessageUtils.GetServerReturnMessage(dsReturn);
                }
            }
            catch (Exception ex)
            {
                _errorMsg = ex.Message;
            }
            finally
            {
                CallRemotingService.UnregisterChannel();
            }
            return(dsReturn);
        }
Esempio n. 3
0
        /// <summary>
        /// 根据工单,物料代码,批次号 获取已经领料的信息
        /// </summary>
        /// <param name="workorder">工单号</param>
        /// <param name="mat">物料号</param>
        /// <param name="charg">批次号</param>
        /// <returns></returns>
        public DataSet GetMaterialstTui(string workorder, string mat, string num)
        {
            DataSet dsReturn = new DataSet();

            try
            {
                IServerObjFactory serverFactory = CallRemotingService.GetRemoteObject();
                if (null != serverFactory)
                {
                    dsReturn  = serverFactory.CreateIMaterialReqOrReturnEngine().GetMaterialstTui(workorder, mat, num);
                    _errorMsg = FanHai.Hemera.Share.Common.ReturnMessageUtils.GetServerReturnMessage(dsReturn);
                }
            }
            catch (Exception ex)
            {
                _errorMsg = ex.Message;
            }
            finally
            {
                CallRemotingService.UnregisterChannel();
            }
            return(dsReturn);
        }
Esempio n. 4
0
        /// <summary>通过领料单号判定领料单号是否已经存在
        /// 通过领料单号判定领料单号是否已经存在
        /// </summary>
        /// <param name="number">领料单号</param>
        /// <returns>数量的数据集</returns>
        public DataSet GetCountByNumToCheck(string number, int flag)
        {
            DataSet dsReturn = new DataSet();

            try
            {
                IServerObjFactory serverFactory = CallRemotingService.GetRemoteObject();
                if (null != serverFactory)
                {
                    dsReturn  = serverFactory.CreateIMaterialReqOrReturnEngine().GetCountByNumToCheck(number, flag);
                    _errorMsg = FanHai.Hemera.Share.Common.ReturnMessageUtils.GetServerReturnMessage(dsReturn);
                }
            }
            catch (Exception ex)
            {
                _errorMsg = ex.Message;
            }
            finally
            {
                CallRemotingService.UnregisterChannel();
            }
            return(dsReturn);
        }
Esempio n. 5
0
        /// <summary>根据领料单号查询领料信息
        /// 根据领料单号查询领料信息
        /// </summary>
        /// <param name="_numForSelect"></param>
        /// <returns>领料单信息抬头表和明细表的信息</returns>
        public DataSet GetMatRequisitionInfByNum(string _numForSelect)
        {
            DataSet dsReturn = new DataSet();

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