Esempio n. 1
0
        /// <summary>
        /// 获取线别
        /// </summary>
        /// <returns></returns>
        public DataSet GetLines()
        {
            DataSet dsReturn = new DataSet();

            try
            {
                IServerObjFactory serverFactory = CallRemotingService.GetRemoteObject();
                dsReturn = serverFactory.CreateIRptCommonEngine().GetLines();
            }
            catch (Exception ex)
            {
                _errorMsg = ex.Message;
            }
            finally
            {
                CallRemotingService.UnregisterChannel();
            }
            return(dsReturn);
        }
Esempio n. 2
0
        /// <summary>
        /// 获取生产排班数据
        /// </summary>
        /// <returns></returns>
        public DataSet GetFactoryShiftData(string sFactoryShiftSetKey, string sFactoryKey, string sDate, string sShiftValue, string sFactoryShiftName)
        {
            DataSet dsReturn = new DataSet();

            try
            {
                IServerObjFactory serverFactory = CallRemotingService.GetRemoteObject();
                dsReturn = serverFactory.CreateIRptCommonEngine().GetFactoryShiftData(sFactoryShiftSetKey, sFactoryKey, sDate, sShiftValue, sFactoryShiftName);
            }
            catch (Exception ex)
            {
                _errorMsg = ex.Message;
            }
            finally
            {
                CallRemotingService.UnregisterChannel();
            }
            return(dsReturn);
        }
Esempio n. 3
0
        /// <summary>
        /// 获得工序排班数据
        /// </summary>
        /// <param name="hstable"></param>
        /// <returns></returns>
        public DataSet GetOptSettingData(Hashtable hstable)
        {
            DataSet dsReturn = new DataSet();

            try
            {
                IServerObjFactory serverFactory = CallRemotingService.GetRemoteObject();
                dsReturn  = serverFactory.CreateIRptCommonEngine().GetOptSettingData(hstable);
                _errorMsg = FanHai.Hemera.Share.Common.ReturnMessageUtils.GetServerReturnMessage(dsReturn);
            }
            catch (Exception ex)
            {
                _errorMsg = ex.Message;
            }
            finally
            {
                CallRemotingService.UnregisterChannel();
            }
            return(dsReturn);
        }
Esempio n. 4
0
        public bool SaveRptPlanAimData(DataSet dsSave)
        {
            bool blBack = false;

            try
            {
                IServerObjFactory serverFactory = CallRemotingService.GetRemoteObject();
                DataSet           dsReturn      = serverFactory.CreateIRptCommonEngine().SaveRptPlanAimData(dsSave);
                _errorMsg = FanHai.Hemera.Share.Common.ReturnMessageUtils.GetServerReturnMessage(dsReturn);
                if (string.IsNullOrEmpty(_errorMsg))
                {
                    blBack = true;
                }
            }
            catch (Exception ex)
            {
                _errorMsg = ex.Message;
            }
            finally
            {
                CallRemotingService.UnregisterChannel();
            }
            return(blBack);
        }