def get_create_tools(self):
     test = Material_Management.PackagingOrder()
     warehouseId = test.get_warehouse()
     templateIds = test.get_packagingFindTools(warehouseId)
     infoList = test.add_tools(templateIds, warehouseId)
     kitTemplateId = infoList[0]
     kitTemplateName = infoList[1]
     warehouseId = infoList[2]
     goodsList = infoList[3]
     goodsLotInfoIdList = infoList[4]
     goodsQuantityList = infoList[5]
     response = test.create_tools(kitTemplateId=kitTemplateId,
                                  warehouseId=warehouseId,
                                  kitTemplateName=kitTemplateName,
                                  goodsList=goodsList,
                                  goodsLotInfoIdList=goodsLotInfoIdList,
                                  goodsQuantityList=goodsQuantityList)
 def get_toolsInfo(self, get_allMsg):
     response = Material_Management.PackagingOrder().add_tools(
         get_allMsg[0], get_allMsg[1])
     # kitTemplateId, kitTemplateName, warehouseId, goodsList, goodsLotInfoIdList, goodsQuantityList
     yield response
 def get_allMsg(self):
     warehouseId = Material_Management.PackagingOrder().get_warehouse()
     templateIds = Material_Management.PackagingOrder(
     ).get_packagingFindTools(warehouseId)
     yield templateIds, warehouseId