Пример #1
0
    def on_post(self, req, resp):
        try:
            resp.status = falcon.HTTP_200
            #getMessage = req.params['partList']
            clientInquiryId= req.params['clientInquiryId']
            self.logger.info("begin clientInquiryId = "+clientInquiryId)
            self.id = clientInquiryId
            bizTypeId= req.params['bizTypeId']
            clientCode= req.params['clientCode']
            quoteNumber= req.params['quoteNumber']
            supplier= req.params['supplier']
            getClientCode = txtav.getClientCode(self.id)
            self.clientCode = str(getClientCode[0])
#            getMessage = getMessage.decode('UTF-8')
#            partlist = eval(getMessage)
            partlist = txtav.getInquiryElement(clientInquiryId)
                
            #partlist = json.loads(partlist)
            self.partInfo = partlist
            self.logger.info(partlist)
#            partlist = partlist.decode("unicode-escape")
        except Exception,ex:
            self.logger.error(str(traceback.format_exc()))
            self.logger.error(str(Exception)+":"+str(ex))
            cId_insert(clientInquiryId)
Пример #2
0
 def on_post(self, req, resp):
     try:
         resp.status = falcon.HTTP_200
         clientInquiryId = req.params['clientInquiryId']
         self.logger.info("begin clientInquiryId = " + clientInquiryId)
         self.id = clientInquiryId
         bizTypeId = req.params['bizTypeId']
         clientCode = req.params['clientCode']
         quoteNumber = req.params['quoteNumber']
         supplier = req.params['supplier']
         partlist = NewSatair.getInquiryElement(clientInquiryId)
         self.partInfo = partlist
         self.logger.info(partlist)
         getClientCode = NewSatair.getClientCode(self.id)
         self.clientCode = str(getClientCode[0])
     except Exception, ex:
         self.logger.error(str(traceback.format_exc()))
         self.logger.error(str(Exception) + ":" + str(ex))
         cId_insert(clientInquiryId)