Пример #1
0
 def getOperationListByOperatorID(self, jsonInfo):
     info = json.loads(jsonInfo)
     info['userType'] = USER_TAG_OPERATOR
     (status, userID) = PushedTenderManager.isTokenValidByUserType(info=info)
     if status is not True:
         errorInfo = ErrorInfo['TENDER_01']
         return (False, errorInfo)
     pushedTenderManager = PushedTenderManager()
     info['userID'] = userID
     return pushedTenderManager.getTenderDoingDetail(info=info)
Пример #2
0
 def getDoingDetailByResp(self, jsonInfo):
     info = json.loads(jsonInfo)
     info['userType'] = USER_TAG_RESPONSIBLEPERSON
     (status, userID) = PushedTenderManager.isTokenValidByUserType(info=info)
     if status is not True:
         errorInfo = ErrorInfo['TENDER_01']
         return (False, errorInfo)
     pushedTenderManager = PushedTenderManager()
     info['userID'] = userID
     return pushedTenderManager.getTenderDoingDetail(info=info)