Beispiel #1
0
        public DataSet GetBasicPowerSetEngine_CommonData(string strFilter)
        {
            DataSet dsReturn = new DataSet();

            try
            {
                IServerObjFactory serverFactory = CallRemotingService.GetRemoteObject();
                dsReturn  = serverFactory.CreateIBasicPowerSetEngine().GetBasicPowerSetEngine_CommonData(strFilter);
                _errorMsg = FanHai.Hemera.Share.Common.ReturnMessageUtils.GetServerReturnMessage(dsReturn);
            }
            catch (Exception ex)
            {
                _errorMsg = ex.Message;
            }
            finally
            {
                CallRemotingService.UnregisterChannel();
            }
            return(dsReturn);
        }
Beispiel #2
0
        public DataSet GetPowerLevelByLotNum(string slot)
        {
            DataSet dsReturn = new DataSet();

            try
            {
                Hashtable hsParams = new Hashtable();
                hsParams.Add(POR_LOT_FIELDS.FIELD_LOT_NUMBER, slot);
                IServerObjFactory serverFactory = CallRemotingService.GetRemoteObject();
                dsReturn  = serverFactory.CreateIBasicPowerSetEngine().GetPowerLevelByLotNum(hsParams);
                _errorMsg = FanHai.Hemera.Share.Common.ReturnMessageUtils.GetServerReturnMessage(dsReturn);
            }
            catch (Exception ex)
            {
                _errorMsg = ex.Message;
            }
            finally
            {
                CallRemotingService.UnregisterChannel();
            }
            return(dsReturn);
        }
Beispiel #3
0
 /// <summary>
 /// 判断子分档规则是否存在
 /// </summary>
 /// <param name="dtInsertPowerDtlData"></param>
 /// <returns></returns>
 public bool IsExistPowerDtlData(DataTable dtInsertPowerDtlData)
 {
     try
     {
         _errorMsg = string.Empty;
         IServerObjFactory serverFactory = CallRemotingService.GetRemoteObject();
         DataSet           dsReturn      = serverFactory.CreateIBasicPowerSetEngine().IsExistPowerDtlData(dtInsertPowerDtlData);
         _errorMsg = FanHai.Hemera.Share.Common.ReturnMessageUtils.GetServerReturnMessage(dsReturn);
         if (!string.IsNullOrEmpty(_errorMsg))
         {
             return(false);
         }
     }
     catch (Exception ex)
     {
         _errorMsg = ex.Message;
         return(false);
     }
     finally
     {
         CallRemotingService.UnregisterChannel();
     }
     return(true);
 }