Esempio n. 1
0
        public int PlaceFoup(int foupBarCode, int DevID, int nLocType, _System.Collections.Generic.Dictionary <string, string> context__)
        {
            Ice.Current current__ = new Ice.Current();
            initCurrent__(ref current__, "PlaceFoup", Ice.OperationMode.Idempotent, context__);
            int result__ = 0;

            IceInternal.Direct.RunDelegate run__ = delegate(Ice.Object obj__)
            {
                MESLink servant__ = null;
                try
                {
                    servant__ = (MESLink)obj__;
                }
                catch (_System.InvalidCastException)
                {
                    throw new Ice.OperationNotExistException(current__.id, current__.facet, current__.operation);
                }
                result__ = servant__.PlaceFoup(foupBarCode, DevID, nLocType, current__);
                return(Ice.DispatchStatus.DispatchOK);
            };
            IceInternal.Direct direct__ = null;
            try
            {
                direct__ = new IceInternal.Direct(current__, run__);
                try
                {
                    Ice.DispatchStatus status__ = direct__.servant().collocDispatch__(direct__);
                    _System.Diagnostics.Debug.Assert(status__ == Ice.DispatchStatus.DispatchOK);
                }
                finally
                {
                    direct__.destroy();
                }
            }
            catch (Ice.SystemException)
            {
                throw;
            }
            catch (_System.Exception ex__)
            {
                IceInternal.LocalExceptionWrapper.throwWrapper(ex__);
            }
            return(result__);
        }
Esempio n. 2
0
        public static Ice.DispatchStatus PickFoup___(MESLink obj__, IceInternal.Incoming inS__, Ice.Current current__)
        {
            checkMode__(Ice.OperationMode.Idempotent, current__.mode);
            IceInternal.BasicStream is__ = inS__.istr();
            is__.startReadEncaps();
            int foupBarCode;

            foupBarCode = is__.readInt();
            int DevID;

            DevID = is__.readInt();
            int nLocType;

            nLocType = is__.readInt();
            is__.endReadEncaps();
            IceInternal.BasicStream os__ = inS__.ostr();
            int ret__ = obj__.PickFoup(foupBarCode, DevID, nLocType, current__);

            os__.writeInt(ret__);
            return(Ice.DispatchStatus.DispatchOK);
        }
Esempio n. 3
0
        public static Ice.DispatchStatus GetFoup___(MESLink obj__, IceInternal.Incoming inS__, Ice.Current current__)
        {
            checkMode__(Ice.OperationMode.Idempotent, current__.mode);
            IceInternal.BasicStream is__ = inS__.istr();
            is__.startReadEncaps();
            int foupBarCode;

            foupBarCode = is__.readInt();
            is__.endReadEncaps();
            IceInternal.BasicStream os__  = inS__.ostr();
            MCS.LocFoup             ret__ = obj__.GetFoup(foupBarCode, current__);
            if (ret__ == null)
            {
                MCS.LocFoup tmp__ = new MCS.LocFoup();
                tmp__.write__(os__);
            }
            else
            {
                ret__.write__(os__);
            }
            return(Ice.DispatchStatus.DispatchOK);
        }
Esempio n. 4
0
 public static Ice.DispatchStatus GetFoup___(MESLink obj__, IceInternal.Incoming inS__, Ice.Current current__)
 {
     checkMode__(Ice.OperationMode.Idempotent, current__.mode);
     IceInternal.BasicStream is__ = inS__.istr();
     is__.startReadEncaps();
     int foupBarCode;
     foupBarCode = is__.readInt();
     is__.endReadEncaps();
     IceInternal.BasicStream os__ = inS__.ostr();
     MCS.LocFoup ret__ = obj__.GetFoup(foupBarCode, current__);
     if(ret__ == null)
     {
         MCS.LocFoup tmp__ = new MCS.LocFoup();
         tmp__.write__(os__);
     }
     else
     {
         ret__.write__(os__);
     }
     return Ice.DispatchStatus.DispatchOK;
 }
Esempio n. 5
0
 public static Ice.DispatchStatus PickFoup___(MESLink obj__, IceInternal.Incoming inS__, Ice.Current current__)
 {
     checkMode__(Ice.OperationMode.Idempotent, current__.mode);
     IceInternal.BasicStream is__ = inS__.istr();
     is__.startReadEncaps();
     int foupBarCode;
     foupBarCode = is__.readInt();
     int DevID;
     DevID = is__.readInt();
     int nLocType;
     nLocType = is__.readInt();
     is__.endReadEncaps();
     IceInternal.BasicStream os__ = inS__.ostr();
     int ret__ = obj__.PickFoup(foupBarCode, DevID, nLocType, current__);
     os__.writeInt(ret__);
     return Ice.DispatchStatus.DispatchOK;
 }