Subversion Repositories SmartDukaan

Rev

Rev 7410 | Rev 7574 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7410 Rev 7459
Line 380... Line 380...
380
    Parameters:
380
    Parameters:
381
     - id
381
     - id
382
    """
382
    """
383
    pass
383
    pass
384
 
384
 
385
  def scanForTransfer(self, inventoryItems, type, transferLotId):
385
  def scanForTransferOut(self, inventoryItems, type, transferLotId):
386
    """
386
    """
387
    Parameters:
387
    Parameters:
388
     - inventoryItems
388
     - inventoryItems
389
     - type
389
     - type
390
     - transferLotId
390
     - transferLotId
391
    """
391
    """
392
    pass
392
    pass
393
 
393
 
-
 
394
  def scanForTransferIn(self, inventoryItems, type, transferLotId):
-
 
395
    """
-
 
396
    Parameters:
-
 
397
     - inventoryItems
-
 
398
     - type
-
 
399
     - transferLotId
-
 
400
    """
-
 
401
    pass
-
 
402
 
-
 
403
  def scanForOursThirdPartyReceive(self, inventoryItems, id):
-
 
404
    """
-
 
405
    Parameters:
-
 
406
     - inventoryItems
-
 
407
     - id
-
 
408
    """
-
 
409
    pass
-
 
410
 
394
 
411
 
395
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
412
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
396
  def __init__(self, iprot, oprot=None):
413
  def __init__(self, iprot, oprot=None):
397
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
414
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
398
 
415
 
Line 1744... Line 1761...
1744
      return result.success
1761
      return result.success
1745
    if result.wex is not None:
1762
    if result.wex is not None:
1746
      raise result.wex
1763
      raise result.wex
1747
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateTransferLotAfterItemReceive failed: unknown result");
1764
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateTransferLotAfterItemReceive failed: unknown result");
1748
 
1765
 
1749
  def scanForTransfer(self, inventoryItems, type, transferLotId):
1766
  def scanForTransferOut(self, inventoryItems, type, transferLotId):
1750
    """
1767
    """
1751
    Parameters:
1768
    Parameters:
1752
     - inventoryItems
1769
     - inventoryItems
1753
     - type
1770
     - type
1754
     - transferLotId
1771
     - transferLotId
1755
    """
1772
    """
1756
    self.send_scanForTransfer(inventoryItems, type, transferLotId)
1773
    self.send_scanForTransferOut(inventoryItems, type, transferLotId)
1757
    self.recv_scanForTransfer()
1774
    self.recv_scanForTransferOut()
1758
 
1775
 
1759
  def send_scanForTransfer(self, inventoryItems, type, transferLotId):
1776
  def send_scanForTransferOut(self, inventoryItems, type, transferLotId):
1760
    self._oprot.writeMessageBegin('scanForTransfer', TMessageType.CALL, self._seqid)
1777
    self._oprot.writeMessageBegin('scanForTransferOut', TMessageType.CALL, self._seqid)
1761
    args = scanForTransfer_args()
1778
    args = scanForTransferOut_args()
1762
    args.inventoryItems = inventoryItems
1779
    args.inventoryItems = inventoryItems
1763
    args.type = type
1780
    args.type = type
1764
    args.transferLotId = transferLotId
1781
    args.transferLotId = transferLotId
1765
    args.write(self._oprot)
1782
    args.write(self._oprot)
1766
    self._oprot.writeMessageEnd()
1783
    self._oprot.writeMessageEnd()
1767
    self._oprot.trans.flush()
1784
    self._oprot.trans.flush()
1768
 
1785
 
1769
  def recv_scanForTransfer(self, ):
1786
  def recv_scanForTransferOut(self, ):
1770
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1787
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1771
    if mtype == TMessageType.EXCEPTION:
1788
    if mtype == TMessageType.EXCEPTION:
1772
      x = TApplicationException()
1789
      x = TApplicationException()
1773
      x.read(self._iprot)
1790
      x.read(self._iprot)
1774
      self._iprot.readMessageEnd()
1791
      self._iprot.readMessageEnd()
1775
      raise x
1792
      raise x
-
 
1793
    result = scanForTransferOut_result()
-
 
1794
    result.read(self._iprot)
-
 
1795
    self._iprot.readMessageEnd()
-
 
1796
    if result.wex is not None:
-
 
1797
      raise result.wex
-
 
1798
    return
-
 
1799
 
-
 
1800
  def scanForTransferIn(self, inventoryItems, type, transferLotId):
-
 
1801
    """
-
 
1802
    Parameters:
-
 
1803
     - inventoryItems
-
 
1804
     - type
-
 
1805
     - transferLotId
-
 
1806
    """
-
 
1807
    self.send_scanForTransferIn(inventoryItems, type, transferLotId)
-
 
1808
    self.recv_scanForTransferIn()
-
 
1809
 
-
 
1810
  def send_scanForTransferIn(self, inventoryItems, type, transferLotId):
-
 
1811
    self._oprot.writeMessageBegin('scanForTransferIn', TMessageType.CALL, self._seqid)
-
 
1812
    args = scanForTransferIn_args()
-
 
1813
    args.inventoryItems = inventoryItems
-
 
1814
    args.type = type
-
 
1815
    args.transferLotId = transferLotId
-
 
1816
    args.write(self._oprot)
-
 
1817
    self._oprot.writeMessageEnd()
-
 
1818
    self._oprot.trans.flush()
-
 
1819
 
-
 
1820
  def recv_scanForTransferIn(self, ):
-
 
1821
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1822
    if mtype == TMessageType.EXCEPTION:
-
 
1823
      x = TApplicationException()
-
 
1824
      x.read(self._iprot)
-
 
1825
      self._iprot.readMessageEnd()
-
 
1826
      raise x
1776
    result = scanForTransfer_result()
1827
    result = scanForTransferIn_result()
-
 
1828
    result.read(self._iprot)
-
 
1829
    self._iprot.readMessageEnd()
-
 
1830
    if result.wex is not None:
-
 
1831
      raise result.wex
-
 
1832
    return
-
 
1833
 
-
 
1834
  def scanForOursThirdPartyReceive(self, inventoryItems, id):
-
 
1835
    """
-
 
1836
    Parameters:
-
 
1837
     - inventoryItems
-
 
1838
     - id
-
 
1839
    """
-
 
1840
    self.send_scanForOursThirdPartyReceive(inventoryItems, id)
-
 
1841
    self.recv_scanForOursThirdPartyReceive()
-
 
1842
 
-
 
1843
  def send_scanForOursThirdPartyReceive(self, inventoryItems, id):
-
 
1844
    self._oprot.writeMessageBegin('scanForOursThirdPartyReceive', TMessageType.CALL, self._seqid)
-
 
1845
    args = scanForOursThirdPartyReceive_args()
-
 
1846
    args.inventoryItems = inventoryItems
-
 
1847
    args.id = id
-
 
1848
    args.write(self._oprot)
-
 
1849
    self._oprot.writeMessageEnd()
-
 
1850
    self._oprot.trans.flush()
-
 
1851
 
-
 
1852
  def recv_scanForOursThirdPartyReceive(self, ):
-
 
1853
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1854
    if mtype == TMessageType.EXCEPTION:
-
 
1855
      x = TApplicationException()
-
 
1856
      x.read(self._iprot)
-
 
1857
      self._iprot.readMessageEnd()
-
 
1858
      raise x
-
 
1859
    result = scanForOursThirdPartyReceive_result()
1777
    result.read(self._iprot)
1860
    result.read(self._iprot)
1778
    self._iprot.readMessageEnd()
1861
    self._iprot.readMessageEnd()
1779
    if result.wex is not None:
1862
    if result.wex is not None:
1780
      raise result.wex
1863
      raise result.wex
1781
    return
1864
    return
Line 1822... Line 1905...
1822
    self._processMap["getTransferLotsByDate"] = Processor.process_getTransferLotsByDate
1905
    self._processMap["getTransferLotsByDate"] = Processor.process_getTransferLotsByDate
1823
    self._processMap["getAllowedDestinationWarehousesForTransfer"] = Processor.process_getAllowedDestinationWarehousesForTransfer
1906
    self._processMap["getAllowedDestinationWarehousesForTransfer"] = Processor.process_getAllowedDestinationWarehousesForTransfer
1824
    self._processMap["getItemsInTransferLot"] = Processor.process_getItemsInTransferLot
1907
    self._processMap["getItemsInTransferLot"] = Processor.process_getItemsInTransferLot
1825
    self._processMap["markItemsAsReceivedForTransferLot"] = Processor.process_markItemsAsReceivedForTransferLot
1908
    self._processMap["markItemsAsReceivedForTransferLot"] = Processor.process_markItemsAsReceivedForTransferLot
1826
    self._processMap["updateTransferLotAfterItemReceive"] = Processor.process_updateTransferLotAfterItemReceive
1909
    self._processMap["updateTransferLotAfterItemReceive"] = Processor.process_updateTransferLotAfterItemReceive
-
 
1910
    self._processMap["scanForTransferOut"] = Processor.process_scanForTransferOut
1827
    self._processMap["scanForTransfer"] = Processor.process_scanForTransfer
1911
    self._processMap["scanForTransferIn"] = Processor.process_scanForTransferIn
-
 
1912
    self._processMap["scanForOursThirdPartyReceive"] = Processor.process_scanForOursThirdPartyReceive
1828
 
1913
 
1829
  def process(self, iprot, oprot):
1914
  def process(self, iprot, oprot):
1830
    (name, type, seqid) = iprot.readMessageBegin()
1915
    (name, type, seqid) = iprot.readMessageBegin()
1831
    if name not in self._processMap:
1916
    if name not in self._processMap:
1832
      iprot.skip(TType.STRUCT)
1917
      iprot.skip(TType.STRUCT)
Line 2339... Line 2424...
2339
    oprot.writeMessageBegin("updateTransferLotAfterItemReceive", TMessageType.REPLY, seqid)
2424
    oprot.writeMessageBegin("updateTransferLotAfterItemReceive", TMessageType.REPLY, seqid)
2340
    result.write(oprot)
2425
    result.write(oprot)
2341
    oprot.writeMessageEnd()
2426
    oprot.writeMessageEnd()
2342
    oprot.trans.flush()
2427
    oprot.trans.flush()
2343
 
2428
 
-
 
2429
  def process_scanForTransferOut(self, seqid, iprot, oprot):
-
 
2430
    args = scanForTransferOut_args()
-
 
2431
    args.read(iprot)
-
 
2432
    iprot.readMessageEnd()
-
 
2433
    result = scanForTransferOut_result()
-
 
2434
    try:
-
 
2435
      self._handler.scanForTransferOut(args.inventoryItems, args.type, args.transferLotId)
-
 
2436
    except WarehouseServiceException, wex:
-
 
2437
      result.wex = wex
-
 
2438
    oprot.writeMessageBegin("scanForTransferOut", TMessageType.REPLY, seqid)
-
 
2439
    result.write(oprot)
-
 
2440
    oprot.writeMessageEnd()
-
 
2441
    oprot.trans.flush()
-
 
2442
 
2344
  def process_scanForTransfer(self, seqid, iprot, oprot):
2443
  def process_scanForTransferIn(self, seqid, iprot, oprot):
2345
    args = scanForTransfer_args()
2444
    args = scanForTransferIn_args()
-
 
2445
    args.read(iprot)
-
 
2446
    iprot.readMessageEnd()
-
 
2447
    result = scanForTransferIn_result()
-
 
2448
    try:
-
 
2449
      self._handler.scanForTransferIn(args.inventoryItems, args.type, args.transferLotId)
-
 
2450
    except WarehouseServiceException, wex:
-
 
2451
      result.wex = wex
-
 
2452
    oprot.writeMessageBegin("scanForTransferIn", TMessageType.REPLY, seqid)
-
 
2453
    result.write(oprot)
-
 
2454
    oprot.writeMessageEnd()
-
 
2455
    oprot.trans.flush()
-
 
2456
 
-
 
2457
  def process_scanForOursThirdPartyReceive(self, seqid, iprot, oprot):
-
 
2458
    args = scanForOursThirdPartyReceive_args()
2346
    args.read(iprot)
2459
    args.read(iprot)
2347
    iprot.readMessageEnd()
2460
    iprot.readMessageEnd()
2348
    result = scanForTransfer_result()
2461
    result = scanForOursThirdPartyReceive_result()
2349
    try:
2462
    try:
2350
      self._handler.scanForTransfer(args.inventoryItems, args.type, args.transferLotId)
2463
      self._handler.scanForOursThirdPartyReceive(args.inventoryItems, args.id)
2351
    except WarehouseServiceException, wex:
2464
    except WarehouseServiceException, wex:
2352
      result.wex = wex
2465
      result.wex = wex
2353
    oprot.writeMessageBegin("scanForTransfer", TMessageType.REPLY, seqid)
2466
    oprot.writeMessageBegin("scanForOursThirdPartyReceive", TMessageType.REPLY, seqid)
2354
    result.write(oprot)
2467
    result.write(oprot)
2355
    oprot.writeMessageEnd()
2468
    oprot.writeMessageEnd()
2356
    oprot.trans.flush()
2469
    oprot.trans.flush()
2357
 
2470
 
2358
 
2471
 
Line 7963... Line 8076...
7963
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8076
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7964
 
8077
 
7965
  def __ne__(self, other):
8078
  def __ne__(self, other):
7966
    return not (self == other)
8079
    return not (self == other)
7967
 
8080
 
7968
class scanForTransfer_args:
8081
class scanForTransferOut_args:
7969
  """
8082
  """
7970
  Attributes:
8083
  Attributes:
7971
   - inventoryItems
8084
   - inventoryItems
7972
   - type
8085
   - type
7973
   - transferLotId
8086
   - transferLotId
Line 8022... Line 8135...
8022
 
8135
 
8023
  def write(self, oprot):
8136
  def write(self, oprot):
8024
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8137
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8025
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8138
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8026
      return
8139
      return
8027
    oprot.writeStructBegin('scanForTransfer_args')
8140
    oprot.writeStructBegin('scanForTransferOut_args')
8028
    if self.inventoryItems is not None:
8141
    if self.inventoryItems is not None:
8029
      oprot.writeFieldBegin('inventoryItems', TType.LIST, 1)
8142
      oprot.writeFieldBegin('inventoryItems', TType.LIST, 1)
8030
      oprot.writeListBegin(TType.STRUCT, len(self.inventoryItems))
8143
      oprot.writeListBegin(TType.STRUCT, len(self.inventoryItems))
8031
      for iter162 in self.inventoryItems:
8144
      for iter162 in self.inventoryItems:
8032
        iter162.write(oprot)
8145
        iter162.write(oprot)
Line 8056... Line 8169...
8056
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8169
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8057
 
8170
 
8058
  def __ne__(self, other):
8171
  def __ne__(self, other):
8059
    return not (self == other)
8172
    return not (self == other)
8060
 
8173
 
-
 
8174
class scanForTransferOut_result:
-
 
8175
  """
-
 
8176
  Attributes:
-
 
8177
   - wex
-
 
8178
  """
-
 
8179
 
-
 
8180
  thrift_spec = (
-
 
8181
    None, # 0
-
 
8182
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
-
 
8183
  )
-
 
8184
 
-
 
8185
  def __init__(self, wex=None,):
-
 
8186
    self.wex = wex
-
 
8187
 
-
 
8188
  def read(self, iprot):
-
 
8189
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
8190
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
8191
      return
-
 
8192
    iprot.readStructBegin()
-
 
8193
    while True:
-
 
8194
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
8195
      if ftype == TType.STOP:
-
 
8196
        break
-
 
8197
      if fid == 1:
-
 
8198
        if ftype == TType.STRUCT:
-
 
8199
          self.wex = WarehouseServiceException()
-
 
8200
          self.wex.read(iprot)
-
 
8201
        else:
-
 
8202
          iprot.skip(ftype)
-
 
8203
      else:
-
 
8204
        iprot.skip(ftype)
-
 
8205
      iprot.readFieldEnd()
-
 
8206
    iprot.readStructEnd()
-
 
8207
 
-
 
8208
  def write(self, oprot):
-
 
8209
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
8210
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
8211
      return
-
 
8212
    oprot.writeStructBegin('scanForTransferOut_result')
-
 
8213
    if self.wex is not None:
-
 
8214
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
-
 
8215
      self.wex.write(oprot)
-
 
8216
      oprot.writeFieldEnd()
-
 
8217
    oprot.writeFieldStop()
-
 
8218
    oprot.writeStructEnd()
-
 
8219
 
-
 
8220
  def validate(self):
-
 
8221
    return
-
 
8222
 
-
 
8223
 
-
 
8224
  def __repr__(self):
-
 
8225
    L = ['%s=%r' % (key, value)
-
 
8226
      for key, value in self.__dict__.iteritems()]
-
 
8227
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
8228
 
-
 
8229
  def __eq__(self, other):
-
 
8230
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
8231
 
-
 
8232
  def __ne__(self, other):
-
 
8233
    return not (self == other)
-
 
8234
 
-
 
8235
class scanForTransferIn_args:
-
 
8236
  """
-
 
8237
  Attributes:
-
 
8238
   - inventoryItems
-
 
8239
   - type
-
 
8240
   - transferLotId
-
 
8241
  """
-
 
8242
 
-
 
8243
  thrift_spec = (
-
 
8244
    None, # 0
-
 
8245
    (1, TType.LIST, 'inventoryItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1
-
 
8246
    (2, TType.I32, 'type', None, None, ), # 2
-
 
8247
    (3, TType.I64, 'transferLotId', None, None, ), # 3
-
 
8248
  )
-
 
8249
 
-
 
8250
  def __init__(self, inventoryItems=None, type=None, transferLotId=None,):
-
 
8251
    self.inventoryItems = inventoryItems
-
 
8252
    self.type = type
-
 
8253
    self.transferLotId = transferLotId
-
 
8254
 
-
 
8255
  def read(self, iprot):
-
 
8256
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
8257
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
8258
      return
-
 
8259
    iprot.readStructBegin()
-
 
8260
    while True:
-
 
8261
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
8262
      if ftype == TType.STOP:
-
 
8263
        break
-
 
8264
      if fid == 1:
-
 
8265
        if ftype == TType.LIST:
-
 
8266
          self.inventoryItems = []
-
 
8267
          (_etype166, _size163) = iprot.readListBegin()
-
 
8268
          for _i167 in xrange(_size163):
-
 
8269
            _elem168 = InventoryItem()
-
 
8270
            _elem168.read(iprot)
-
 
8271
            self.inventoryItems.append(_elem168)
-
 
8272
          iprot.readListEnd()
-
 
8273
        else:
-
 
8274
          iprot.skip(ftype)
-
 
8275
      elif fid == 2:
-
 
8276
        if ftype == TType.I32:
-
 
8277
          self.type = iprot.readI32();
-
 
8278
        else:
-
 
8279
          iprot.skip(ftype)
-
 
8280
      elif fid == 3:
-
 
8281
        if ftype == TType.I64:
-
 
8282
          self.transferLotId = iprot.readI64();
-
 
8283
        else:
-
 
8284
          iprot.skip(ftype)
-
 
8285
      else:
-
 
8286
        iprot.skip(ftype)
-
 
8287
      iprot.readFieldEnd()
-
 
8288
    iprot.readStructEnd()
-
 
8289
 
-
 
8290
  def write(self, oprot):
-
 
8291
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
8292
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
8293
      return
-
 
8294
    oprot.writeStructBegin('scanForTransferIn_args')
-
 
8295
    if self.inventoryItems is not None:
-
 
8296
      oprot.writeFieldBegin('inventoryItems', TType.LIST, 1)
-
 
8297
      oprot.writeListBegin(TType.STRUCT, len(self.inventoryItems))
-
 
8298
      for iter169 in self.inventoryItems:
-
 
8299
        iter169.write(oprot)
-
 
8300
      oprot.writeListEnd()
-
 
8301
      oprot.writeFieldEnd()
-
 
8302
    if self.type is not None:
-
 
8303
      oprot.writeFieldBegin('type', TType.I32, 2)
-
 
8304
      oprot.writeI32(self.type)
-
 
8305
      oprot.writeFieldEnd()
-
 
8306
    if self.transferLotId is not None:
-
 
8307
      oprot.writeFieldBegin('transferLotId', TType.I64, 3)
-
 
8308
      oprot.writeI64(self.transferLotId)
-
 
8309
      oprot.writeFieldEnd()
-
 
8310
    oprot.writeFieldStop()
-
 
8311
    oprot.writeStructEnd()
-
 
8312
 
-
 
8313
  def validate(self):
-
 
8314
    return
-
 
8315
 
-
 
8316
 
-
 
8317
  def __repr__(self):
-
 
8318
    L = ['%s=%r' % (key, value)
-
 
8319
      for key, value in self.__dict__.iteritems()]
-
 
8320
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
8321
 
-
 
8322
  def __eq__(self, other):
-
 
8323
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
8324
 
-
 
8325
  def __ne__(self, other):
-
 
8326
    return not (self == other)
-
 
8327
 
8061
class scanForTransfer_result:
8328
class scanForTransferIn_result:
-
 
8329
  """
-
 
8330
  Attributes:
-
 
8331
   - wex
-
 
8332
  """
-
 
8333
 
-
 
8334
  thrift_spec = (
-
 
8335
    None, # 0
-
 
8336
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
-
 
8337
  )
-
 
8338
 
-
 
8339
  def __init__(self, wex=None,):
-
 
8340
    self.wex = wex
-
 
8341
 
-
 
8342
  def read(self, iprot):
-
 
8343
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
8344
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
8345
      return
-
 
8346
    iprot.readStructBegin()
-
 
8347
    while True:
-
 
8348
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
8349
      if ftype == TType.STOP:
-
 
8350
        break
-
 
8351
      if fid == 1:
-
 
8352
        if ftype == TType.STRUCT:
-
 
8353
          self.wex = WarehouseServiceException()
-
 
8354
          self.wex.read(iprot)
-
 
8355
        else:
-
 
8356
          iprot.skip(ftype)
-
 
8357
      else:
-
 
8358
        iprot.skip(ftype)
-
 
8359
      iprot.readFieldEnd()
-
 
8360
    iprot.readStructEnd()
-
 
8361
 
-
 
8362
  def write(self, oprot):
-
 
8363
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
8364
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
8365
      return
-
 
8366
    oprot.writeStructBegin('scanForTransferIn_result')
-
 
8367
    if self.wex is not None:
-
 
8368
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
-
 
8369
      self.wex.write(oprot)
-
 
8370
      oprot.writeFieldEnd()
-
 
8371
    oprot.writeFieldStop()
-
 
8372
    oprot.writeStructEnd()
-
 
8373
 
-
 
8374
  def validate(self):
-
 
8375
    return
-
 
8376
 
-
 
8377
 
-
 
8378
  def __repr__(self):
-
 
8379
    L = ['%s=%r' % (key, value)
-
 
8380
      for key, value in self.__dict__.iteritems()]
-
 
8381
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
8382
 
-
 
8383
  def __eq__(self, other):
-
 
8384
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
8385
 
-
 
8386
  def __ne__(self, other):
-
 
8387
    return not (self == other)
-
 
8388
 
-
 
8389
class scanForOursThirdPartyReceive_args:
-
 
8390
  """
-
 
8391
  Attributes:
-
 
8392
   - inventoryItems
-
 
8393
   - id
-
 
8394
  """
-
 
8395
 
-
 
8396
  thrift_spec = (
-
 
8397
    None, # 0
-
 
8398
    (1, TType.LIST, 'inventoryItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1
-
 
8399
    (2, TType.I64, 'id', None, None, ), # 2
-
 
8400
  )
-
 
8401
 
-
 
8402
  def __init__(self, inventoryItems=None, id=None,):
-
 
8403
    self.inventoryItems = inventoryItems
-
 
8404
    self.id = id
-
 
8405
 
-
 
8406
  def read(self, iprot):
-
 
8407
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
8408
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
8409
      return
-
 
8410
    iprot.readStructBegin()
-
 
8411
    while True:
-
 
8412
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
8413
      if ftype == TType.STOP:
-
 
8414
        break
-
 
8415
      if fid == 1:
-
 
8416
        if ftype == TType.LIST:
-
 
8417
          self.inventoryItems = []
-
 
8418
          (_etype173, _size170) = iprot.readListBegin()
-
 
8419
          for _i174 in xrange(_size170):
-
 
8420
            _elem175 = InventoryItem()
-
 
8421
            _elem175.read(iprot)
-
 
8422
            self.inventoryItems.append(_elem175)
-
 
8423
          iprot.readListEnd()
-
 
8424
        else:
-
 
8425
          iprot.skip(ftype)
-
 
8426
      elif fid == 2:
-
 
8427
        if ftype == TType.I64:
-
 
8428
          self.id = iprot.readI64();
-
 
8429
        else:
-
 
8430
          iprot.skip(ftype)
-
 
8431
      else:
-
 
8432
        iprot.skip(ftype)
-
 
8433
      iprot.readFieldEnd()
-
 
8434
    iprot.readStructEnd()
-
 
8435
 
-
 
8436
  def write(self, oprot):
-
 
8437
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
8438
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
8439
      return
-
 
8440
    oprot.writeStructBegin('scanForOursThirdPartyReceive_args')
-
 
8441
    if self.inventoryItems is not None:
-
 
8442
      oprot.writeFieldBegin('inventoryItems', TType.LIST, 1)
-
 
8443
      oprot.writeListBegin(TType.STRUCT, len(self.inventoryItems))
-
 
8444
      for iter176 in self.inventoryItems:
-
 
8445
        iter176.write(oprot)
-
 
8446
      oprot.writeListEnd()
-
 
8447
      oprot.writeFieldEnd()
-
 
8448
    if self.id is not None:
-
 
8449
      oprot.writeFieldBegin('id', TType.I64, 2)
-
 
8450
      oprot.writeI64(self.id)
-
 
8451
      oprot.writeFieldEnd()
-
 
8452
    oprot.writeFieldStop()
-
 
8453
    oprot.writeStructEnd()
-
 
8454
 
-
 
8455
  def validate(self):
-
 
8456
    return
-
 
8457
 
-
 
8458
 
-
 
8459
  def __repr__(self):
-
 
8460
    L = ['%s=%r' % (key, value)
-
 
8461
      for key, value in self.__dict__.iteritems()]
-
 
8462
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
8463
 
-
 
8464
  def __eq__(self, other):
-
 
8465
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
8466
 
-
 
8467
  def __ne__(self, other):
-
 
8468
    return not (self == other)
-
 
8469
 
-
 
8470
class scanForOursThirdPartyReceive_result:
8062
  """
8471
  """
8063
  Attributes:
8472
  Attributes:
8064
   - wex
8473
   - wex
8065
  """
8474
  """
8066
 
8475
 
Line 8094... Line 8503...
8094
 
8503
 
8095
  def write(self, oprot):
8504
  def write(self, oprot):
8096
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8505
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8097
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8506
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8098
      return
8507
      return
8099
    oprot.writeStructBegin('scanForTransfer_result')
8508
    oprot.writeStructBegin('scanForOursThirdPartyReceive_result')
8100
    if self.wex is not None:
8509
    if self.wex is not None:
8101
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
8510
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
8102
      self.wex.write(oprot)
8511
      self.wex.write(oprot)
8103
      oprot.writeFieldEnd()
8512
      oprot.writeFieldEnd()
8104
    oprot.writeFieldStop()
8513
    oprot.writeFieldStop()