from inventory.Create import create
from inventory.Reserve import Reserve
from inventory.StorageIn import StorageIn
from inventory.MyReserved import MyReserved
from inventory.Unapproved import Unapproved
from inventory.StorageOut import StorageOut
from inventory.StorageMove import StorageMove
from inventory.StorageCheck import StorageCheck
from ReturnPage import Returnpage
from base import base
from inventory.History import VHistory
class InventoryMenu():
    create1 = create()
    IN = StorageIn()
    Reserve = Reserve()
    MyReserved = MyReserved()
    Unapproved = Unapproved()
    StorageOut = StorageOut()
    StorageMove = StorageMove()
    StorageCheck = StorageCheck()
    Returnpage=Returnpage()
    History=VHistory()
    def __init__(self):
        try:
        # 创建物资
            material = InventoryMenu.create1.create()
        except BaseException:
            for i in range(10):
                try:
                    name=base.id_text('com.facilityone.product.shang:id/actionbar_title_fullscreen_tv')
                    if name=='库存管理':
                       break
                    else:
                        InventoryMenu.Returnpage.returnpage()
                except BaseException:
                    InventoryMenu.Returnpage.returnpage()
        # 入库
        try:
            InventoryMenu.IN.storageIn(material)
        except BaseException:
            for i in range(10):
                try:
                    name=base.id_text('com.facilityone.product.shang:id/actionbar_title_fullscreen_tv')
                    if name=='库存管理':
                       break
                    else:
                        InventoryMenu.Returnpage.returnpage()
                except BaseException:
                    InventoryMenu.Returnpage.returnpage()
        # 物资预定
        try:
           InventoryMenu.Reserve.reserve(material)
        except BaseException:
           for i in range(10):
               try:
                   name = base.id_text('com.facilityone.product.shang:id/actionbar_title_fullscreen_tv')
                   if name == '库存管理':
                       break
                   else:
                       InventoryMenu.Returnpage.returnpage()
               except BaseException:
                   InventoryMenu.Returnpage.returnpage()
        # 我的预定
        try:
            materialNo = InventoryMenu.MyReserved.MyReserved()
        except BaseException:
            for i in range(10):
                try:
                    name=base.id_text('com.facilityone.product.shang:id/actionbar_title_fullscreen_tv')
                    if name=='库存管理':
                       break
                    else:
                        InventoryMenu.Returnpage.returnpage()
                except BaseException:
                    InventoryMenu.Returnpage.returnpage()
        # 物资审核(通过)
        try:
           InventoryMenu.Unapproved.unapproved(materialNo)
           InventoryMenu.Unapproved.Pass()
        except BaseException:
            for i in range(10):
                try:
                    name=base.id_text('com.facilityone.product.shang:id/actionbar_title_fullscreen_tv')
                    if name=='库存管理':
                       break
                    else:
                        InventoryMenu.Returnpage.returnpage()
                except BaseException:
                    InventoryMenu.Returnpage.returnpage()
        # 预定出库
        try:
            InventoryMenu.StorageOut.StorageOut()
            InventoryMenu.StorageOut.reserved(materialNo)
            InventoryMenu.StorageOut.delivery()
        except BaseException:
            for i in range(10):
                try:
                    name=base.id_text('com.facilityone.product.shang:id/actionbar_title_fullscreen_tv')
                    if name=='库存管理':
                       break
                    else:
                        InventoryMenu.Returnpage.returnpage()
                except BaseException:
                    InventoryMenu.Returnpage.returnpage()
        # 直接出库
        try:
           InventoryMenu.StorageOut.StorageOut()
           InventoryMenu.StorageOut.direct(material)
        except BaseException:
            for i in range(10):
                try:
                    name=base.id_text('com.facilityone.product.shang:id/actionbar_title_fullscreen_tv')
                    if name=='库存管理':
                       break
                    else:
                        InventoryMenu.Returnpage.returnpage()
                except BaseException:
                    InventoryMenu.Returnpage.returnpage()
        # 移库
        try:
           InventoryMenu.StorageMove.StorageMove(material)
        except BaseException:
            for i in range(10):
                try:
                    name=base.id_text('com.facilityone.product.shang:id/actionbar_title_fullscreen_tv')
                    if name=='库存管理':
                       break
                    else:
                        InventoryMenu.Returnpage.returnpage()
                except BaseException:
                    InventoryMenu.Returnpage.returnpage()
        # 盘点
        try:
            InventoryMenu.StorageCheck.StorageCheck(material)
            InventoryMenu.Returnpage.returnpage()
        except BaseException:
            for i in range(10):
                try:
                    name=base.id_text('com.facilityone.product.shang:id/actionbar_title_fullscreen_tv')
                    if name=='库存管理':
                       break
                    else:
                        InventoryMenu.Returnpage.returnpage()
                except BaseException:
                    InventoryMenu.Returnpage.returnpage()
        # 物资预定
        try:
           InventoryMenu.Reserve.reserve(material)
        except BaseException:
            for i in range(10):
                try:
                    name=base.id_text('com.facilityone.product.shang:id/actionbar_title_fullscreen_tv')
                    if name=='库存管理':
                       break
                    else:
                        InventoryMenu.Returnpage.returnpage()
                except BaseException:
                    InventoryMenu.Returnpage.returnpage()
        try:
            # 预定取消
            InventoryMenu.MyReserved.cancellation()
        except BaseException:
            for i in range(10):
                try:
                    name=base.id_text('com.facilityone.product.shang:id/actionbar_title_fullscreen_tv')
                    if name=='库存管理':
                       break
                    else:
                        InventoryMenu.Returnpage.returnpage()
                except BaseException:
                    InventoryMenu.Returnpage.returnpage()
        try:
            # 库存查询
            InventoryMenu.History.history(material)
        except BaseException:
            for i in range(10):
                try:
                    name=base.id_text('com.facilityone.product.shang:id/actionbar_title_fullscreen_tv')
                    if name=='库存管理':
                       break
                    else:
                        InventoryMenu.Returnpage.returnpage()
                except BaseException:
                    InventoryMenu.Returnpage.returnpage()
        InventoryMenu.Returnpage.returnpage()



b14854de5bda1e782e2c727da8ab99cf0cd4c39b
<mask token>


class InventoryMenu:
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>

<mask token>


class InventoryMenu:
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>

    def __init__(self):
        try:
            material = InventoryMenu.create1.create()
        except BaseException:
            for i in range(10):
                try:
                    name = base.id_text(
                        'com.facilityone.product.shang:id/actionbar_title_fullscreen_tv'
                        )
                    if name == '库存管理':
                        break
                    else:
                        InventoryMenu.Returnpage.returnpage()
                except BaseException:
                    InventoryMenu.Returnpage.returnpage()
        try:
            InventoryMenu.IN.storageIn(material)
        except BaseException:
            for i in range(10):
                try:
                    name = base.id_text(
                        'com.facilityone.product.shang:id/actionbar_title_fullscreen_tv'
                        )
                    if name == '库存管理':
                        break
                    else:
                        InventoryMenu.Returnpage.returnpage()
                except BaseException:
                    InventoryMenu.Returnpage.returnpage()
        try:
            InventoryMenu.Reserve.reserve(material)
        except BaseException:
            for i in range(10):
                try:
                    name = base.id_text(
                        'com.facilityone.product.shang:id/actionbar_title_fullscreen_tv'
                        )
                    if name == '库存管理':
                        break
                    else:
                        InventoryMenu.Returnpage.returnpage()
                except BaseException:
                    InventoryMenu.Returnpage.returnpage()
        try:
            materialNo = InventoryMenu.MyReserved.MyReserved()
        except BaseException:
            for i in range(10):
                try:
                    name = base.id_text(
                        'com.facilityone.product.shang:id/actionbar_title_fullscreen_tv'
                        )
                    if name == '库存管理':
                        break
                    else:
                        InventoryMenu.Returnpage.returnpage()
                except BaseException:
                    InventoryMenu.Returnpage.returnpage()
        try:
            InventoryMenu.Unapproved.unapproved(materialNo)
            InventoryMenu.Unapproved.Pass()
        except BaseException:
            for i in range(10):
                try:
                    name = base.id_text(
                        'com.facilityone.product.shang:id/actionbar_title_fullscreen_tv'
                        )
                    if name == '库存管理':
                        break
                    else:
                        InventoryMenu.Returnpage.returnpage()
                except BaseException:
                    InventoryMenu.Returnpage.returnpage()
        try:
            InventoryMenu.StorageOut.StorageOut()
            InventoryMenu.StorageOut.reserved(materialNo)
            InventoryMenu.StorageOut.delivery()
        except BaseException:
            for i in range(10):
                try:
                    name = base.id_text(
                        'com.facilityone.product.shang:id/actionbar_title_fullscreen_tv'
                        )
                    if name == '库存管理':
                        break
                    else:
                        InventoryMenu.Returnpage.returnpage()
                except BaseException:
                    InventoryMenu.Returnpage.returnpage()
        try:
            InventoryMenu.StorageOut.StorageOut()
            InventoryMenu.StorageOut.direct(material)
        except BaseException:
            for i in range(10):
                try:
                    name = base.id_text(
                        'com.facilityone.product.shang:id/actionbar_title_fullscreen_tv'
                        )
                    if name == '库存管理':
                        break
                    else:
                        InventoryMenu.Returnpage.returnpage()
                except BaseException:
                    InventoryMenu.Returnpage.returnpage()
        try:
            InventoryMenu.StorageMove.StorageMove(material)
        except BaseException:
            for i in range(10):
                try:
                    name = base.id_text(
                        'com.facilityone.product.shang:id/actionbar_title_fullscreen_tv'
                        )
                    if name == '库存管理':
                        break
                    else:
                        InventoryMenu.Returnpage.returnpage()
                except BaseException:
                    InventoryMenu.Returnpage.returnpage()
        try:
            InventoryMenu.StorageCheck.StorageCheck(material)
            InventoryMenu.Returnpage.returnpage()
        except BaseException:
            for i in range(10):
                try:
                    name = base.id_text(
                        'com.facilityone.product.shang:id/actionbar_title_fullscreen_tv'
                        )
                    if name == '库存管理':
                        break
                    else:
                        InventoryMenu.Returnpage.returnpage()
                except BaseException:
                    InventoryMenu.Returnpage.returnpage()
        try:
            InventoryMenu.Reserve.reserve(material)
        except BaseException:
            for i in range(10):
                try:
                    name = base.id_text(
                        'com.facilityone.product.shang:id/actionbar_title_fullscreen_tv'
                        )
                    if name == '库存管理':
                        break
                    else:
                        InventoryMenu.Returnpage.returnpage()
                except BaseException:
                    InventoryMenu.Returnpage.returnpage()
        try:
            InventoryMenu.MyReserved.cancellation()
        except BaseException:
            for i in range(10):
                try:
                    name = base.id_text(
                        'com.facilityone.product.shang:id/actionbar_title_fullscreen_tv'
                        )
                    if name == '库存管理':
                        break
                    else:
                        InventoryMenu.Returnpage.returnpage()
                except BaseException:
                    InventoryMenu.Returnpage.returnpage()
        try:
            InventoryMenu.History.history(material)
        except BaseException:
            for i in range(10):
                try:
                    name = base.id_text(
                        'com.facilityone.product.shang:id/actionbar_title_fullscreen_tv'
                        )
                    if name == '库存管理':
                        break
                    else:
                        InventoryMenu.Returnpage.returnpage()
                except BaseException:
                    InventoryMenu.Returnpage.returnpage()
        InventoryMenu.Returnpage.returnpage()

<mask token>


class InventoryMenu:
    create1 = create()
    IN = StorageIn()
    Reserve = Reserve()
    MyReserved = MyReserved()
    Unapproved = Unapproved()
    StorageOut = StorageOut()
    StorageMove = StorageMove()
    StorageCheck = StorageCheck()
    Returnpage = Returnpage()
    History = VHistory()

    def __init__(self):
        try:
            material = InventoryMenu.create1.create()
        except BaseException:
            for i in range(10):
                try:
                    name = base.id_text(
                        'com.facilityone.product.shang:id/actionbar_title_fullscreen_tv'
                        )
                    if name == '库存管理':
                        break
                    else:
                        InventoryMenu.Returnpage.returnpage()
                except BaseException:
                    InventoryMenu.Returnpage.returnpage()
        try:
            InventoryMenu.IN.storageIn(material)
        except BaseException:
            for i in range(10):
                try:
                    name = base.id_text(
                        'com.facilityone.product.shang:id/actionbar_title_fullscreen_tv'
                        )
                    if name == '库存管理':
                        break
                    else:
                        InventoryMenu.Returnpage.returnpage()
                except BaseException:
                    InventoryMenu.Returnpage.returnpage()
        try:
            InventoryMenu.Reserve.reserve(material)
        except BaseException:
            for i in range(10):
                try:
                    name = base.id_text(
                        'com.facilityone.product.shang:id/actionbar_title_fullscreen_tv'
                        )
                    if name == '库存管理':
                        break
                    else:
                        InventoryMenu.Returnpage.returnpage()
                except BaseException:
                    InventoryMenu.Returnpage.returnpage()
        try:
            materialNo = InventoryMenu.MyReserved.MyReserved()
        except BaseException:
            for i in range(10):
                try:
                    name = base.id_text(
                        'com.facilityone.product.shang:id/actionbar_title_fullscreen_tv'
                        )
                    if name == '库存管理':
                        break
                    else:
                        InventoryMenu.Returnpage.returnpage()
                except BaseException:
                    InventoryMenu.Returnpage.returnpage()
        try:
            InventoryMenu.Unapproved.unapproved(materialNo)
            InventoryMenu.Unapproved.Pass()
        except BaseException:
            for i in range(10):
                try:
                    name = base.id_text(
                        'com.facilityone.product.shang:id/actionbar_title_fullscreen_tv'
                        )
                    if name == '库存管理':
                        break
                    else:
                        InventoryMenu.Returnpage.returnpage()
                except BaseException:
                    InventoryMenu.Returnpage.returnpage()
        try:
            InventoryMenu.StorageOut.StorageOut()
            InventoryMenu.StorageOut.reserved(materialNo)
            InventoryMenu.StorageOut.delivery()
        except BaseException:
            for i in range(10):
                try:
                    name = base.id_text(
                        'com.facilityone.product.shang:id/actionbar_title_fullscreen_tv'
                        )
                    if name == '库存管理':
                        break
                    else:
                        InventoryMenu.Returnpage.returnpage()
                except BaseException:
                    InventoryMenu.Returnpage.returnpage()
        try:
            InventoryMenu.StorageOut.StorageOut()
            InventoryMenu.StorageOut.direct(material)
        except BaseException:
            for i in range(10):
                try:
                    name = base.id_text(
                        'com.facilityone.product.shang:id/actionbar_title_fullscreen_tv'
                        )
                    if name == '库存管理':
                        break
                    else:
                        InventoryMenu.Returnpage.returnpage()
                except BaseException:
                    InventoryMenu.Returnpage.returnpage()
        try:
            InventoryMenu.StorageMove.StorageMove(material)
        except BaseException:
            for i in range(10):
                try:
                    name = base.id_text(
                        'com.facilityone.product.shang:id/actionbar_title_fullscreen_tv'
                        )
                    if name == '库存管理':
                        break
                    else:
                        InventoryMenu.Returnpage.returnpage()
                except BaseException:
                    InventoryMenu.Returnpage.returnpage()
        try:
            InventoryMenu.StorageCheck.StorageCheck(material)
            InventoryMenu.Returnpage.returnpage()
        except BaseException:
            for i in range(10):
                try:
                    name = base.id_text(
                        'com.facilityone.product.shang:id/actionbar_title_fullscreen_tv'
                        )
                    if name == '库存管理':
                        break
                    else:
                        InventoryMenu.Returnpage.returnpage()
                except BaseException:
                    InventoryMenu.Returnpage.returnpage()
        try:
            InventoryMenu.Reserve.reserve(material)
        except BaseException:
            for i in range(10):
                try:
                    name = base.id_text(
                        'com.facilityone.product.shang:id/actionbar_title_fullscreen_tv'
                        )
                    if name == '库存管理':
                        break
                    else:
                        InventoryMenu.Returnpage.returnpage()
                except BaseException:
                    InventoryMenu.Returnpage.returnpage()
        try:
            InventoryMenu.MyReserved.cancellation()
        except BaseException:
            for i in range(10):
                try:
                    name = base.id_text(
                        'com.facilityone.product.shang:id/actionbar_title_fullscreen_tv'
                        )
                    if name == '库存管理':
                        break
                    else:
                        InventoryMenu.Returnpage.returnpage()
                except BaseException:
                    InventoryMenu.Returnpage.returnpage()
        try:
            InventoryMenu.History.history(material)
        except BaseException:
            for i in range(10):
                try:
                    name = base.id_text(
                        'com.facilityone.product.shang:id/actionbar_title_fullscreen_tv'
                        )
                    if name == '库存管理':
                        break
                    else:
                        InventoryMenu.Returnpage.returnpage()
                except BaseException:
                    InventoryMenu.Returnpage.returnpage()
        InventoryMenu.Returnpage.returnpage()

from inventory.Create import create
from inventory.Reserve import Reserve
from inventory.StorageIn import StorageIn
from inventory.MyReserved import MyReserved
from inventory.Unapproved import Unapproved
from inventory.StorageOut import StorageOut
from inventory.StorageMove import StorageMove
from inventory.StorageCheck import StorageCheck
from ReturnPage import Returnpage
from base import base
from inventory.History import VHistory


class InventoryMenu:
    create1 = create()
    IN = StorageIn()
    Reserve = Reserve()
    MyReserved = MyReserved()
    Unapproved = Unapproved()
    StorageOut = StorageOut()
    StorageMove = StorageMove()
    StorageCheck = StorageCheck()
    Returnpage = Returnpage()
    History = VHistory()

    def __init__(self):
        try:
            material = InventoryMenu.create1.create()
        except BaseException:
            for i in range(10):
                try:
                    name = base.id_text(
                        'com.facilityone.product.shang:id/actionbar_title_fullscreen_tv'
                        )
                    if name == '库存管理':
                        break
                    else:
                        InventoryMenu.Returnpage.returnpage()
                except BaseException:
                    InventoryMenu.Returnpage.returnpage()
        try:
            InventoryMenu.IN.storageIn(material)
        except BaseException:
            for i in range(10):
                try:
                    name = base.id_text(
                        'com.facilityone.product.shang:id/actionbar_title_fullscreen_tv'
                        )
                    if name == '库存管理':
                        break
                    else:
                        InventoryMenu.Returnpage.returnpage()
                except BaseException:
                    InventoryMenu.Returnpage.returnpage()
        try:
            InventoryMenu.Reserve.reserve(material)
        except BaseException:
            for i in range(10):
                try:
                    name = base.id_text(
                        'com.facilityone.product.shang:id/actionbar_title_fullscreen_tv'
                        )
                    if name == '库存管理':
                        break
                    else:
                        InventoryMenu.Returnpage.returnpage()
                except BaseException:
                    InventoryMenu.Returnpage.returnpage()
        try:
            materialNo = InventoryMenu.MyReserved.MyReserved()
        except BaseException:
            for i in range(10):
                try:
                    name = base.id_text(
                        'com.facilityone.product.shang:id/actionbar_title_fullscreen_tv'
                        )
                    if name == '库存管理':
                        break
                    else:
                        InventoryMenu.Returnpage.returnpage()
                except BaseException:
                    InventoryMenu.Returnpage.returnpage()
        try:
            InventoryMenu.Unapproved.unapproved(materialNo)
            InventoryMenu.Unapproved.Pass()
        except BaseException:
            for i in range(10):
                try:
                    name = base.id_text(
                        'com.facilityone.product.shang:id/actionbar_title_fullscreen_tv'
                        )
                    if name == '库存管理':
                        break
                    else:
                        InventoryMenu.Returnpage.returnpage()
                except BaseException:
                    InventoryMenu.Returnpage.returnpage()
        try:
            InventoryMenu.StorageOut.StorageOut()
            InventoryMenu.StorageOut.reserved(materialNo)
            InventoryMenu.StorageOut.delivery()
        except BaseException:
            for i in range(10):
                try:
                    name = base.id_text(
                        'com.facilityone.product.shang:id/actionbar_title_fullscreen_tv'
                        )
                    if name == '库存管理':
                        break
                    else:
                        InventoryMenu.Returnpage.returnpage()
                except BaseException:
                    InventoryMenu.Returnpage.returnpage()
        try:
            InventoryMenu.StorageOut.StorageOut()
            InventoryMenu.StorageOut.direct(material)
        except BaseException:
            for i in range(10):
                try:
                    name = base.id_text(
                        'com.facilityone.product.shang:id/actionbar_title_fullscreen_tv'
                        )
                    if name == '库存管理':
                        break
                    else:
                        InventoryMenu.Returnpage.returnpage()
                except BaseException:
                    InventoryMenu.Returnpage.returnpage()
        try:
            InventoryMenu.StorageMove.StorageMove(material)
        except BaseException:
            for i in range(10):
                try:
                    name = base.id_text(
                        'com.facilityone.product.shang:id/actionbar_title_fullscreen_tv'
                        )
                    if name == '库存管理':
                        break
                    else:
                        InventoryMenu.Returnpage.returnpage()
                except BaseException:
                    InventoryMenu.Returnpage.returnpage()
        try:
            InventoryMenu.StorageCheck.StorageCheck(material)
            InventoryMenu.Returnpage.returnpage()
        except BaseException:
            for i in range(10):
                try:
                    name = base.id_text(
                        'com.facilityone.product.shang:id/actionbar_title_fullscreen_tv'
                        )
                    if name == '库存管理':
                        break
                    else:
                        InventoryMenu.Returnpage.returnpage()
                except BaseException:
                    InventoryMenu.Returnpage.returnpage()
        try:
            InventoryMenu.Reserve.reserve(material)
        except BaseException:
            for i in range(10):
                try:
                    name = base.id_text(
                        'com.facilityone.product.shang:id/actionbar_title_fullscreen_tv'
                        )
                    if name == '库存管理':
                        break
                    else:
                        InventoryMenu.Returnpage.returnpage()
                except BaseException:
                    InventoryMenu.Returnpage.returnpage()
        try:
            InventoryMenu.MyReserved.cancellation()
        except BaseException:
            for i in range(10):
                try:
                    name = base.id_text(
                        'com.facilityone.product.shang:id/actionbar_title_fullscreen_tv'
                        )
                    if name == '库存管理':
                        break
                    else:
                        InventoryMenu.Returnpage.returnpage()
                except BaseException:
                    InventoryMenu.Returnpage.returnpage()
        try:
            InventoryMenu.History.history(material)
        except BaseException:
            for i in range(10):
                try:
                    name = base.id_text(
                        'com.facilityone.product.shang:id/actionbar_title_fullscreen_tv'
                        )
                    if name == '库存管理':
                        break
                    else:
                        InventoryMenu.Returnpage.returnpage()
                except BaseException:
                    InventoryMenu.Returnpage.returnpage()
        InventoryMenu.Returnpage.returnpage()

from inventory.Create import create
from inventory.Reserve import Reserve
from inventory.StorageIn import StorageIn
from inventory.MyReserved import MyReserved
from inventory.Unapproved import Unapproved
from inventory.StorageOut import StorageOut
from inventory.StorageMove import StorageMove
from inventory.StorageCheck import StorageCheck
from ReturnPage import Returnpage
from base import base
from inventory.History import VHistory
class InventoryMenu():
    create1 = create()
    IN = StorageIn()
    Reserve = Reserve()
    MyReserved = MyReserved()
    Unapproved = Unapproved()
    StorageOut = StorageOut()
    StorageMove = StorageMove()
    StorageCheck = StorageCheck()
    Returnpage=Returnpage()
    History=VHistory()
    def __init__(self):
        try:
        # 创建物资
            material = InventoryMenu.create1.create()
        except BaseException:
            for i in range(10):
                try:
                    name=base.id_text('com.facilityone.product.shang:id/actionbar_title_fullscreen_tv')
                    if name=='库存管理':
                       break
                    else:
                        InventoryMenu.Returnpage.returnpage()
                except BaseException:
                    InventoryMenu.Returnpage.returnpage()
        # 入库
        try:
            InventoryMenu.IN.storageIn(material)
        except BaseException:
            for i in range(10):
                try:
                    name=base.id_text('com.facilityone.product.shang:id/actionbar_title_fullscreen_tv')
                    if name=='库存管理':
                       break
                    else:
                        InventoryMenu.Returnpage.returnpage()
                except BaseException:
                    InventoryMenu.Returnpage.returnpage()
        # 物资预定
        try:
           InventoryMenu.Reserve.reserve(material)
        except BaseException:
           for i in range(10):
               try:
                   name = base.id_text('com.facilityone.product.shang:id/actionbar_title_fullscreen_tv')
                   if name == '库存管理':
                       break
                   else:
                       InventoryMenu.Returnpage.returnpage()
               except BaseException:
                   InventoryMenu.Returnpage.returnpage()
        # 我的预定
        try:
            materialNo = InventoryMenu.MyReserved.MyReserved()
        except BaseException:
            for i in range(10):
                try:
                    name=base.id_text('com.facilityone.product.shang:id/actionbar_title_fullscreen_tv')
                    if name=='库存管理':
                       break
                    else:
                        InventoryMenu.Returnpage.returnpage()
                except BaseException:
                    InventoryMenu.Returnpage.returnpage()
        # 物资审核(通过)
        try:
           InventoryMenu.Unapproved.unapproved(materialNo)
           InventoryMenu.Unapproved.Pass()
        except BaseException:
            for i in range(10):
                try:
                    name=base.id_text('com.facilityone.product.shang:id/actionbar_title_fullscreen_tv')
                    if name=='库存管理':
                       break
                    else:
                        InventoryMenu.Returnpage.returnpage()
                except BaseException:
                    InventoryMenu.Returnpage.returnpage()
        # 预定出库
        try:
            InventoryMenu.StorageOut.StorageOut()
            InventoryMenu.StorageOut.reserved(materialNo)
            InventoryMenu.StorageOut.delivery()
        except BaseException:
            for i in range(10):
                try:
                    name=base.id_text('com.facilityone.product.shang:id/actionbar_title_fullscreen_tv')
                    if name=='库存管理':
                       break
                    else:
                        InventoryMenu.Returnpage.returnpage()
                except BaseException:
                    InventoryMenu.Returnpage.returnpage()
        # 直接出库
        try:
           InventoryMenu.StorageOut.StorageOut()
           InventoryMenu.StorageOut.direct(material)
        except BaseException:
            for i in range(10):
                try:
                    name=base.id_text('com.facilityone.product.shang:id/actionbar_title_fullscreen_tv')
                    if name=='库存管理':
                       break
                    else:
                        InventoryMenu.Returnpage.returnpage()
                except BaseException:
                    InventoryMenu.Returnpage.returnpage()
        # 移库
        try:
           InventoryMenu.StorageMove.StorageMove(material)
        except BaseException:
            for i in range(10):
                try:
                    name=base.id_text('com.facilityone.product.shang:id/actionbar_title_fullscreen_tv')
                    if name=='库存管理':
                       break
                    else:
                        InventoryMenu.Returnpage.returnpage()
                except BaseException:
                    InventoryMenu.Returnpage.returnpage()
        # 盘点
        try:
            InventoryMenu.StorageCheck.StorageCheck(material)
            InventoryMenu.Returnpage.returnpage()
        except BaseException:
            for i in range(10):
                try:
                    name=base.id_text('com.facilityone.product.shang:id/actionbar_title_fullscreen_tv')
                    if name=='库存管理':
                       break
                    else:
                        InventoryMenu.Returnpage.returnpage()
                except BaseException:
                    InventoryMenu.Returnpage.returnpage()
        # 物资预定
        try:
           InventoryMenu.Reserve.reserve(material)
        except BaseException:
            for i in range(10):
                try:
                    name=base.id_text('com.facilityone.product.shang:id/actionbar_title_fullscreen_tv')
                    if name=='库存管理':
                       break
                    else:
                        InventoryMenu.Returnpage.returnpage()
                except BaseException:
                    InventoryMenu.Returnpage.returnpage()
        try:
            # 预定取消
            InventoryMenu.MyReserved.cancellation()
        except BaseException:
            for i in range(10):
                try:
                    name=base.id_text('com.facilityone.product.shang:id/actionbar_title_fullscreen_tv')
                    if name=='库存管理':
                       break
                    else:
                        InventoryMenu.Returnpage.returnpage()
                except BaseException:
                    InventoryMenu.Returnpage.returnpage()
        try:
            # 库存查询
            InventoryMenu.History.history(material)
        except BaseException:
            for i in range(10):
                try:
                    name=base.id_text('com.facilityone.product.shang:id/actionbar_title_fullscreen_tv')
                    if name=='库存管理':
                       break
                    else:
                        InventoryMenu.Returnpage.returnpage()
                except BaseException:
                    InventoryMenu.Returnpage.returnpage()
        InventoryMenu.Returnpage.returnpage()


