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)
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)