| Line 406... |
Line 406... |
| 406 |
- inventoryItems
|
406 |
- inventoryItems
|
| 407 |
- id
|
407 |
- id
|
| 408 |
"""
|
408 |
"""
|
| 409 |
pass
|
409 |
pass
|
| 410 |
|
410 |
|
| - |
|
411 |
def getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(self, itemId, physicalWarehouseId):
|
| - |
|
412 |
"""
|
| - |
|
413 |
Parameters:
|
| - |
|
414 |
- itemId
|
| - |
|
415 |
- physicalWarehouseId
|
| - |
|
416 |
"""
|
| - |
|
417 |
pass
|
| - |
|
418 |
|
| 411 |
|
419 |
|
| 412 |
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
|
420 |
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
|
| 413 |
def __init__(self, iprot, oprot=None):
|
421 |
def __init__(self, iprot, oprot=None):
|
| 414 |
shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
|
422 |
shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
|
| 415 |
|
423 |
|
| Line 1861... |
Line 1869... |
| 1861 |
self._iprot.readMessageEnd()
|
1869 |
self._iprot.readMessageEnd()
|
| 1862 |
if result.wex is not None:
|
1870 |
if result.wex is not None:
|
| 1863 |
raise result.wex
|
1871 |
raise result.wex
|
| 1864 |
return
|
1872 |
return
|
| 1865 |
|
1873 |
|
| - |
|
1874 |
def getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(self, itemId, physicalWarehouseId):
|
| - |
|
1875 |
"""
|
| - |
|
1876 |
Parameters:
|
| - |
|
1877 |
- itemId
|
| - |
|
1878 |
- physicalWarehouseId
|
| - |
|
1879 |
"""
|
| - |
|
1880 |
self.send_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(itemId, physicalWarehouseId)
|
| - |
|
1881 |
return self.recv_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse()
|
| - |
|
1882 |
|
| - |
|
1883 |
def send_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(self, itemId, physicalWarehouseId):
|
| - |
|
1884 |
self._oprot.writeMessageBegin('getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse', TMessageType.CALL, self._seqid)
|
| - |
|
1885 |
args = getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args()
|
| - |
|
1886 |
args.itemId = itemId
|
| - |
|
1887 |
args.physicalWarehouseId = physicalWarehouseId
|
| - |
|
1888 |
args.write(self._oprot)
|
| - |
|
1889 |
self._oprot.writeMessageEnd()
|
| - |
|
1890 |
self._oprot.trans.flush()
|
| - |
|
1891 |
|
| - |
|
1892 |
def recv_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(self, ):
|
| - |
|
1893 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
| - |
|
1894 |
if mtype == TMessageType.EXCEPTION:
|
| - |
|
1895 |
x = TApplicationException()
|
| - |
|
1896 |
x.read(self._iprot)
|
| - |
|
1897 |
self._iprot.readMessageEnd()
|
| - |
|
1898 |
raise x
|
| - |
|
1899 |
result = getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result()
|
| - |
|
1900 |
result.read(self._iprot)
|
| - |
|
1901 |
self._iprot.readMessageEnd()
|
| - |
|
1902 |
if result.success is not None:
|
| - |
|
1903 |
return result.success
|
| - |
|
1904 |
if result.wex is not None:
|
| - |
|
1905 |
raise result.wex
|
| - |
|
1906 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse failed: unknown result");
|
| - |
|
1907 |
|
| 1866 |
|
1908 |
|
| 1867 |
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
|
1909 |
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
|
| 1868 |
def __init__(self, handler):
|
1910 |
def __init__(self, handler):
|
| 1869 |
shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
|
1911 |
shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
|
| 1870 |
self._processMap["getInventoryItem"] = Processor.process_getInventoryItem
|
1912 |
self._processMap["getInventoryItem"] = Processor.process_getInventoryItem
|
| Line 1908... |
Line 1950... |
| 1908 |
self._processMap["markItemsAsReceivedForTransferLot"] = Processor.process_markItemsAsReceivedForTransferLot
|
1950 |
self._processMap["markItemsAsReceivedForTransferLot"] = Processor.process_markItemsAsReceivedForTransferLot
|
| 1909 |
self._processMap["updateTransferLotAfterItemReceive"] = Processor.process_updateTransferLotAfterItemReceive
|
1951 |
self._processMap["updateTransferLotAfterItemReceive"] = Processor.process_updateTransferLotAfterItemReceive
|
| 1910 |
self._processMap["scanForTransferOut"] = Processor.process_scanForTransferOut
|
1952 |
self._processMap["scanForTransferOut"] = Processor.process_scanForTransferOut
|
| 1911 |
self._processMap["scanForTransferIn"] = Processor.process_scanForTransferIn
|
1953 |
self._processMap["scanForTransferIn"] = Processor.process_scanForTransferIn
|
| 1912 |
self._processMap["scanForOursThirdPartyReceive"] = Processor.process_scanForOursThirdPartyReceive
|
1954 |
self._processMap["scanForOursThirdPartyReceive"] = Processor.process_scanForOursThirdPartyReceive
|
| - |
|
1955 |
self._processMap["getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse"] = Processor.process_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse
|
| 1913 |
|
1956 |
|
| 1914 |
def process(self, iprot, oprot):
|
1957 |
def process(self, iprot, oprot):
|
| 1915 |
(name, type, seqid) = iprot.readMessageBegin()
|
1958 |
(name, type, seqid) = iprot.readMessageBegin()
|
| 1916 |
if name not in self._processMap:
|
1959 |
if name not in self._processMap:
|
| 1917 |
iprot.skip(TType.STRUCT)
|
1960 |
iprot.skip(TType.STRUCT)
|
| Line 2466... |
Line 2509... |
| 2466 |
oprot.writeMessageBegin("scanForOursThirdPartyReceive", TMessageType.REPLY, seqid)
|
2509 |
oprot.writeMessageBegin("scanForOursThirdPartyReceive", TMessageType.REPLY, seqid)
|
| 2467 |
result.write(oprot)
|
2510 |
result.write(oprot)
|
| 2468 |
oprot.writeMessageEnd()
|
2511 |
oprot.writeMessageEnd()
|
| 2469 |
oprot.trans.flush()
|
2512 |
oprot.trans.flush()
|
| 2470 |
|
2513 |
|
| - |
|
2514 |
def process_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(self, seqid, iprot, oprot):
|
| - |
|
2515 |
args = getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args()
|
| - |
|
2516 |
args.read(iprot)
|
| - |
|
2517 |
iprot.readMessageEnd()
|
| - |
|
2518 |
result = getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result()
|
| - |
|
2519 |
try:
|
| - |
|
2520 |
result.success = self._handler.getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(args.itemId, args.physicalWarehouseId)
|
| - |
|
2521 |
except WarehouseServiceException, wex:
|
| - |
|
2522 |
result.wex = wex
|
| - |
|
2523 |
oprot.writeMessageBegin("getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse", TMessageType.REPLY, seqid)
|
| - |
|
2524 |
result.write(oprot)
|
| - |
|
2525 |
oprot.writeMessageEnd()
|
| - |
|
2526 |
oprot.trans.flush()
|
| - |
|
2527 |
|
| 2471 |
|
2528 |
|
| 2472 |
# HELPER FUNCTIONS AND STRUCTURES
|
2529 |
# HELPER FUNCTIONS AND STRUCTURES
|
| 2473 |
|
2530 |
|
| 2474 |
class getInventoryItem_args:
|
2531 |
class getInventoryItem_args:
|
| 2475 |
"""
|
2532 |
"""
|
| Line 8509... |
Line 8566... |
| 8509 |
if self.wex is not None:
|
8566 |
if self.wex is not None:
|
| 8510 |
oprot.writeFieldBegin('wex', TType.STRUCT, 1)
|
8567 |
oprot.writeFieldBegin('wex', TType.STRUCT, 1)
|
| 8511 |
self.wex.write(oprot)
|
8568 |
self.wex.write(oprot)
|
| 8512 |
oprot.writeFieldEnd()
|
8569 |
oprot.writeFieldEnd()
|
| 8513 |
oprot.writeFieldStop()
|
8570 |
oprot.writeFieldStop()
|
| - |
|
8571 |
oprot.writeStructEnd()
|
| - |
|
8572 |
|
| - |
|
8573 |
def validate(self):
|
| - |
|
8574 |
return
|
| - |
|
8575 |
|
| - |
|
8576 |
|
| - |
|
8577 |
def __repr__(self):
|
| - |
|
8578 |
L = ['%s=%r' % (key, value)
|
| - |
|
8579 |
for key, value in self.__dict__.iteritems()]
|
| - |
|
8580 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
| - |
|
8581 |
|
| - |
|
8582 |
def __eq__(self, other):
|
| - |
|
8583 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
| - |
|
8584 |
|
| - |
|
8585 |
def __ne__(self, other):
|
| - |
|
8586 |
return not (self == other)
|
| - |
|
8587 |
|
| - |
|
8588 |
class getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args:
|
| - |
|
8589 |
"""
|
| - |
|
8590 |
Attributes:
|
| - |
|
8591 |
- itemId
|
| - |
|
8592 |
- physicalWarehouseId
|
| - |
|
8593 |
"""
|
| - |
|
8594 |
|
| - |
|
8595 |
thrift_spec = (
|
| - |
|
8596 |
None, # 0
|
| - |
|
8597 |
(1, TType.I64, 'itemId', None, None, ), # 1
|
| - |
|
8598 |
(2, TType.I64, 'physicalWarehouseId', None, None, ), # 2
|
| - |
|
8599 |
)
|
| - |
|
8600 |
|
| - |
|
8601 |
def __init__(self, itemId=None, physicalWarehouseId=None,):
|
| - |
|
8602 |
self.itemId = itemId
|
| - |
|
8603 |
self.physicalWarehouseId = physicalWarehouseId
|
| - |
|
8604 |
|
| - |
|
8605 |
def read(self, iprot):
|
| - |
|
8606 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
| - |
|
8607 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
| - |
|
8608 |
return
|
| - |
|
8609 |
iprot.readStructBegin()
|
| - |
|
8610 |
while True:
|
| - |
|
8611 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
| - |
|
8612 |
if ftype == TType.STOP:
|
| - |
|
8613 |
break
|
| - |
|
8614 |
if fid == 1:
|
| - |
|
8615 |
if ftype == TType.I64:
|
| - |
|
8616 |
self.itemId = iprot.readI64();
|
| - |
|
8617 |
else:
|
| - |
|
8618 |
iprot.skip(ftype)
|
| - |
|
8619 |
elif fid == 2:
|
| - |
|
8620 |
if ftype == TType.I64:
|
| - |
|
8621 |
self.physicalWarehouseId = iprot.readI64();
|
| - |
|
8622 |
else:
|
| - |
|
8623 |
iprot.skip(ftype)
|
| - |
|
8624 |
else:
|
| - |
|
8625 |
iprot.skip(ftype)
|
| - |
|
8626 |
iprot.readFieldEnd()
|
| - |
|
8627 |
iprot.readStructEnd()
|
| - |
|
8628 |
|
| - |
|
8629 |
def write(self, oprot):
|
| - |
|
8630 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
| - |
|
8631 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
| - |
|
8632 |
return
|
| - |
|
8633 |
oprot.writeStructBegin('getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args')
|
| - |
|
8634 |
if self.itemId is not None:
|
| - |
|
8635 |
oprot.writeFieldBegin('itemId', TType.I64, 1)
|
| - |
|
8636 |
oprot.writeI64(self.itemId)
|
| - |
|
8637 |
oprot.writeFieldEnd()
|
| - |
|
8638 |
if self.physicalWarehouseId is not None:
|
| - |
|
8639 |
oprot.writeFieldBegin('physicalWarehouseId', TType.I64, 2)
|
| - |
|
8640 |
oprot.writeI64(self.physicalWarehouseId)
|
| - |
|
8641 |
oprot.writeFieldEnd()
|
| - |
|
8642 |
oprot.writeFieldStop()
|
| - |
|
8643 |
oprot.writeStructEnd()
|
| - |
|
8644 |
|
| - |
|
8645 |
def validate(self):
|
| - |
|
8646 |
return
|
| - |
|
8647 |
|
| - |
|
8648 |
|
| - |
|
8649 |
def __repr__(self):
|
| - |
|
8650 |
L = ['%s=%r' % (key, value)
|
| - |
|
8651 |
for key, value in self.__dict__.iteritems()]
|
| - |
|
8652 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
| - |
|
8653 |
|
| - |
|
8654 |
def __eq__(self, other):
|
| - |
|
8655 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
| - |
|
8656 |
|
| - |
|
8657 |
def __ne__(self, other):
|
| - |
|
8658 |
return not (self == other)
|
| - |
|
8659 |
|
| - |
|
8660 |
class getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result:
|
| - |
|
8661 |
"""
|
| - |
|
8662 |
Attributes:
|
| - |
|
8663 |
- success
|
| - |
|
8664 |
- wex
|
| - |
|
8665 |
"""
|
| - |
|
8666 |
|
| - |
|
8667 |
thrift_spec = (
|
| - |
|
8668 |
(0, TType.I64, 'success', None, None, ), # 0
|
| - |
|
8669 |
(1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
|
| - |
|
8670 |
)
|
| - |
|
8671 |
|
| - |
|
8672 |
def __init__(self, success=None, wex=None,):
|
| - |
|
8673 |
self.success = success
|
| - |
|
8674 |
self.wex = wex
|
| - |
|
8675 |
|
| - |
|
8676 |
def read(self, iprot):
|
| - |
|
8677 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
| - |
|
8678 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
| - |
|
8679 |
return
|
| - |
|
8680 |
iprot.readStructBegin()
|
| - |
|
8681 |
while True:
|
| - |
|
8682 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
| - |
|
8683 |
if ftype == TType.STOP:
|
| - |
|
8684 |
break
|
| - |
|
8685 |
if fid == 0:
|
| - |
|
8686 |
if ftype == TType.I64:
|
| - |
|
8687 |
self.success = iprot.readI64();
|
| - |
|
8688 |
else:
|
| - |
|
8689 |
iprot.skip(ftype)
|
| - |
|
8690 |
elif fid == 1:
|
| - |
|
8691 |
if ftype == TType.STRUCT:
|
| - |
|
8692 |
self.wex = WarehouseServiceException()
|
| - |
|
8693 |
self.wex.read(iprot)
|
| - |
|
8694 |
else:
|
| - |
|
8695 |
iprot.skip(ftype)
|
| - |
|
8696 |
else:
|
| - |
|
8697 |
iprot.skip(ftype)
|
| - |
|
8698 |
iprot.readFieldEnd()
|
| - |
|
8699 |
iprot.readStructEnd()
|
| - |
|
8700 |
|
| - |
|
8701 |
def write(self, oprot):
|
| - |
|
8702 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
| - |
|
8703 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
| - |
|
8704 |
return
|
| - |
|
8705 |
oprot.writeStructBegin('getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result')
|
| - |
|
8706 |
if self.success is not None:
|
| - |
|
8707 |
oprot.writeFieldBegin('success', TType.I64, 0)
|
| - |
|
8708 |
oprot.writeI64(self.success)
|
| - |
|
8709 |
oprot.writeFieldEnd()
|
| - |
|
8710 |
if self.wex is not None:
|
| - |
|
8711 |
oprot.writeFieldBegin('wex', TType.STRUCT, 1)
|
| - |
|
8712 |
self.wex.write(oprot)
|
| - |
|
8713 |
oprot.writeFieldEnd()
|
| - |
|
8714 |
oprot.writeFieldStop()
|
| 8514 |
oprot.writeStructEnd()
|
8715 |
oprot.writeStructEnd()
|
| 8515 |
|
8716 |
|
| 8516 |
def validate(self):
|
8717 |
def validate(self):
|
| 8517 |
return
|
8718 |
return
|
| 8518 |
|
8719 |
|