本文整理匯總了Python中application.lib.commodel.Connection_Stock.recv方法的典型用法代碼示例。如果您正苦於以下問題:Python Connection_Stock.recv方法的具體用法?Python Connection_Stock.recv怎麽用?Python Connection_Stock.recv使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類application.lib.commodel.Connection_Stock
的用法示例。
在下文中一共展示了Connection_Stock.recv方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: StoreQueryModel
# 需要導入模塊: from application.lib.commodel import Connection_Stock [as 別名]
# 或者: from application.lib.commodel.Connection_Stock import recv [as 別名]
class StoreQueryModel(Socket_model):
def __init__(self):
Socket_model.__init__(self)
self.conn = Connection_Stock().getConnection()
# 檢索倉庫
def queryStore(self):
self.conn.sendall(self.sendData(json.dumps({'node':'logic','act_fun':'queryStoreName2','data':''}),0) )
r = self.conn.recv(self.recvBuff)
data = json.loads(r[17:])
return data
# 根據倉庫ID檢索區域
def queryAllRegionByStoreId(self, storeId):
self.conn.sendall(self.sendData(json.dumps({'node':'logic','act_fun':'queryAllRegionByStoreId','data':storeId}),0) )
r = self.conn.recv(self.recvBuff)
data = json.loads(r[17:])
return data
# 根據區域ID檢索號數
def queryAllSerialNumberByRegionId(self, regionId):
self.conn.sendall(self.sendData(json.dumps({'node':'logic','act_fun':'queryAllSerialNumberByRegionId','data':regionId}),0) )
r = self.conn.recv(self.recvBuff)
data = json.loads(r[17:])
return data
# 檢索倉庫類別
def queryStoreType(self):
self.conn.sendall(self.sendData(json.dumps({'node':'logic','act_fun':'queryStoreType','data':''}),0) )
r = self.conn.recv(self.recvBuff)
data = json.loads(r[17:])
return data
示例2: Payment
# 需要導入模塊: from application.lib.commodel import Connection_Stock [as 別名]
# 或者: from application.lib.commodel.Connection_Stock import recv [as 別名]
class Payment(Socket_model):
def __init__(self):
Socket_model.__init__(self)
self.conn = Connection_Stock().getConnection()
def addPayType(self, data):
self.conn.sendall(self.sendData(json.dumps({'node':'logic','act_fun':'addPayType','data':data}),0) )
r = self.conn.recv(self.recvBuff)
r = self.resolveRecvdata(r)
return json.loads(r)
def alterPayType(self, data):
self.conn.sendall(self.sendData(json.dumps({'node':'logic','act_fun':'alterPayType','data':data}),0) )
r = self.conn.recv(self.recvBuff)
r = self.resolveRecvdata(r)
return json.loads(r)
def deletePayType(self, data):
self.conn.sendall(self.sendData(json.dumps({'node':'logic','act_fun':'deletePayType','data':data}),0) )
r = self.conn.recv(self.recvBuff)
r = self.resolveRecvdata(r)
return json.loads(r)
def addPayment(self, data):
self.conn.sendall(self.sendData(json.dumps({'node':'logic','act_fun':'addPayment','data':data}),0) )
r = self.conn.recv(self.recvBuff)
r = self.resolveRecvdata(r)
return json.loads(r)
示例3: GuashiModel
# 需要導入模塊: from application.lib.commodel import Connection_Stock [as 別名]
# 或者: from application.lib.commodel.Connection_Stock import recv [as 別名]
class GuashiModel(Socket_model):
def __init__(self):
Socket_model.__init__(self)
self.conn = Connection_Stock().getConnection()
def checkMember(self,idcard):
self.conn.sendall(self.sendData(json.dumps({'node':'logic','act_fun':'getMemberinfo','data':idcard}),0))
r = self.conn.recv(self.recvBuff)
r = self.resolveRecvdata(r)
return json.loads(r)
def lossCard(self,data):
self.conn.sendall(self.sendData(json.dumps({'node':'logic','act_fun':'lossCard','data':data}),0))
r = self.conn.recv(self.recvBuff)
r = self.resolveRecvdata(r)
return json.loads(r)
def findAllFingerOneCard(self,data):
self.conn.sendall(self.sendData(json.dumps({'node':'logic','act_fun':'getMemberInfo1','data':data}),0))
r = self.conn.recv(self.recvBuff)
r = self.resolveRecvdata(r)
return json.loads(r)
def frozenCard(self, data):
self.conn.sendall(self.sendData(json.dumps({'node':'logic','act_fun':'frozenCard','data':data}),0) )
r = self.conn.recv(self.recvBuff)
r = self.resolveRecvdata(r)
return json.loads(r)
示例4: ChongZhiModel
# 需要導入模塊: from application.lib.commodel import Connection_Stock [as 別名]
# 或者: from application.lib.commodel.Connection_Stock import recv [as 別名]
class ChongZhiModel(Socket_model):
def __init__(self):
Socket_model.__init__(self)
self.conn = Connection_Stock().getConnection()
def getCardInfo(self,cardid):
self.conn.sendall(self.sendData(json.dumps({'node':'logic','act_fun':'getCardInfo','data':{'cardid':cardid}}),0) )
r = self.conn.recv(self.recvBuff)
r = self.resolveRecvdata(r)
return json.loads(r)
def inRecharge(self, data):
self.conn.sendall(self.sendData(json.dumps({'node':'logic','act_fun':'inRecharge','data':data}),0) )
r = self.conn.recv(self.recvBuff)
r = self.resolveRecvdata(r)
return json.loads(r)
示例5: SearchStockModel
# 需要導入模塊: from application.lib.commodel import Connection_Stock [as 別名]
# 或者: from application.lib.commodel.Connection_Stock import recv [as 別名]
class SearchStockModel(Socket_model):
def __init__(self):
Socket_model.__init__(self)
self.conn = Connection_Stock().getConnection()
def queryCustomer(self,data):
self.conn.sendall(self.sendData(json.dumps({'node':'logic','act_fun':'queryCustomer','data':data}),0) )
r = self.conn.recv(self.recvBuff)
r = self.resolveRecvdata(r)
return json.loads(r)
def queryStockById(self,data):
self.conn.sendall(self.sendData(json.dumps({'node':'logic','act_fun':'queryStockById','data':data}),0) )
r = self.conn.recv(self.recvBuff)
r = self.resolveRecvdata(r)
return json.loads(r)
示例6: GrantsModel
# 需要導入模塊: from application.lib.commodel import Connection_Stock [as 別名]
# 或者: from application.lib.commodel.Connection_Stock import recv [as 別名]
class GrantsModel(Socket_model):
def __init__(self):
Socket_model.__init__(self)
self.conn = Connection_Stock().getConnection()
def getGrantsFinger(self, groupId):
self.conn.sendall(self.sendData(json.dumps({'node':'logic','act_fun':'getGrantsFinger','data':groupId}),0) )
r = self.conn.recv(self.recvBuff)
r = self.resolveRecvdata(r)
return json.loads(r)
示例7: CardEidtPwdModel
# 需要導入模塊: from application.lib.commodel import Connection_Stock [as 別名]
# 或者: from application.lib.commodel.Connection_Stock import recv [as 別名]
class CardEidtPwdModel(Socket_model):
def __init__(self):
Socket_model.__init__(self)
self.conn = Connection_Stock().getConnection()
def getCardInfo(self, cardid):
data={'cardid':cardid}
self.conn.sendall(self.sendData(json.dumps({'node':'logic','act_fun':'getCardInfo','data':data}),0) )
r = self.conn.recv(self.recvBuff)
r = self.resolveRecvdata(r)
return json.loads(r)
def upCardPwd(self, cardid,pwd):
data={'cardid':cardid,'pwd':pwd}
self.conn.sendall(self.sendData(json.dumps({'node':'logic','act_fun':'updateCardPwd','data':data}),0) )
r = self.conn.recv(self.recvBuff)
r = self.resolveRecvdata(r)
return json.loads(r)
示例8: CardInfo
# 需要導入模塊: from application.lib.commodel import Connection_Stock [as 別名]
# 或者: from application.lib.commodel.Connection_Stock import recv [as 別名]
class CardInfo(Socket_model):
def __init__(self):
Socket_model.__init__(self)
self.conn = Connection_Stock().getConnection()
def getCardInfo(self, uid):
self.conn.sendall(self.sendData(json.dumps({'node':'logic','act_fun':'queryUserCard','data':{'uid':uid}}),0) )
r = self.conn.recv(self.recvBuff)
r = self.resolveRecvdata(r)
return json.loads(r)
示例9: DayreportModel
# 需要導入模塊: from application.lib.commodel import Connection_Stock [as 別名]
# 或者: from application.lib.commodel.Connection_Stock import recv [as 別名]
class DayreportModel(Socket_model):
def __init__(self):
Socket_model.__init__(self)
self.conn = Connection_Stock().getConnection()
def getUser(self):
self.conn.sendall(self.sendData(json.dumps({'node':'logic','act_fun':'queryUser','data':''}),0) )
r = self.conn.recv(self.recvBuff)
data = json.loads(r[17:])
return data[0]
示例10: AddCardModel
# 需要導入模塊: from application.lib.commodel import Connection_Stock [as 別名]
# 或者: from application.lib.commodel.Connection_Stock import recv [as 別名]
class AddCardModel(Socket_model):
def __init__(self):
Socket_model.__init__(self)
self.conn = Connection_Stock().getConnection()
def sendCard(self, card,noid,addId):
data = {'card':card,'noid':noid, 'addId':addId}
self.conn.sendall(self.sendData(json.dumps({'node':'logic','act_fun':'addCard','data':data}),0) )
r = self.conn.recv(self.recvBuff)
r = self.resolveRecvdata(r)
return json.loads(r)
示例11: MemberQueryModel
# 需要導入模塊: from application.lib.commodel import Connection_Stock [as 別名]
# 或者: from application.lib.commodel.Connection_Stock import recv [as 別名]
class MemberQueryModel(Socket_model):
def __init__(self):
Socket_model.__init__(self)
self.conn = Connection_Stock().getConnection()
def queryMember(self, data):
self.conn.sendall(self.sendData(json.dumps({'node':'logic','act_fun':'queryMember','data':data}),0) )
r = self.conn.recv(self.recvBuff)
r = self.resolveRecvdata(r)
return json.loads(r)
def getMemberInfosss(self, data):
self.conn.sendall(self.sendData(json.dumps({'node':'logic','act_fun':'getMemberInfosss','data':data}),0) )
r = self.conn.recv(self.recvBuff)
r = self.resolveRecvdata(r)
return json.loads(r)
def queryUserCard(self, IDcard):
self.conn.sendall(self.sendData(json.dumps({'node':'logic','act_fun':'queryUserCard','data':IDcard}),0) )
r = self.conn.recv(self.recvBuff)
r = self.resolveRecvdata(r)
return json.loads(r)
示例12: OpenCardModel
# 需要導入模塊: from application.lib.commodel import Connection_Stock [as 別名]
# 或者: from application.lib.commodel.Connection_Stock import recv [as 別名]
class OpenCardModel(Socket_model):
def __init__(self):
Socket_model.__init__(self)
self.conn = Connection_Stock().getConnection()
def bindCard(self,userid,card,pwd,addid=''):
data = {'user_id':userid,'card':card,'pwd':pwd,'addid':addid}
self.conn.sendall(self.sendData(json.dumps({'node':'logic','act_fun':'bindCard','data':data}),0))
r = self.conn.recv(self.recvBuff)
r = self.resolveRecvdata(r)
print r
return json.loads(r)
示例13: MemberAddModel
# 需要導入模塊: from application.lib.commodel import Connection_Stock [as 別名]
# 或者: from application.lib.commodel.Connection_Stock import recv [as 別名]
class MemberAddModel(Socket_model):
def __init__(self):
Socket_model.__init__(self)
self.conn = Connection_Stock().getConnection()
def sendImg(self,imgbyte):
self.conn.sendall(self.sendData(imgbyte,1) )
r = self.conn.recv(self.recvBuff)
r = self.resolveRecvdata(r)
return json.loads(r)
def addMember(self,data,datainfo,uid):
self.conn.sendall(self.sendData(json.dumps({'node':'capital','act_fun':'memberAdd','data':{'data':data,'data_info':datainfo,'uid':uid}}),0) )
r = self.conn.recv(self.recvBuff)
r = self.resolveRecvdata(r)
return json.loads(r)
def checkIDcard(self, ID):
self.conn.sendall(self.sendData(json.dumps({'node':'capital','act_fun':'checkIdCard','data':ID}),0) )
r = self.conn.recv(self.recvBuff)
r = self.resolveRecvdata(r)
return json.loads(r)
示例14: PartyModel
# 需要導入模塊: from application.lib.commodel import Connection_Stock [as 別名]
# 或者: from application.lib.commodel.Connection_Stock import recv [as 別名]
class PartyModel(Socket_model):
def __init__(self):
Socket_model.__init__(self)
self.conn = Connection_Stock().getConnection()
def add(self,name,tel,phone,email,address,man,desc,ty):
data={'name':name,'tel':tel,'phone':phone,'email':email,'address':address,'man':man,'desc':desc,'ty':ty}
self.conn.sendall(self.sendData(json.dumps({'node':'logic','act_fun':'addParty','data':data}),0))
r = self.conn.recv(self.recvBuff)
r = self.resolveRecvdata(r)
return json.loads(r)
def update(self,name,tel,phone,email,address,man,desc,ty,id):
data={"name":name,"tel":tel,"phone":phone,"email":email,"address":address,'man':man,'desc':desc,"ty":ty}
datas={'data':data,'id':id}
self.conn.sendall(self.sendData(json.dumps({'node':'logic','act_fun':'updateParty','data':datas}),0))
r = self.conn.recv(self.recvBuff)
r = self.resolveRecvdata(r)
return json.loads(r)
def delete(self,partyid):
self.conn.sendall(self.sendData(json.dumps({'node':'logic','act_fun':'deleteparty','data':partyid}),0))
r = self.conn.recv(self.recvBuff)
r = self.resolveRecvdata(r)
return json.loads(r)
def get(self,where):
self.conn.sendall(self.sendData(json.dumps({'node':'logic','act_fun':'getparty','data':where}),0))
r = self.conn.recv(self.recvBuff)
r = self.resolveRecvdata(r)
return json.loads(r)
#查詢供應商有無提供貨物
def querySupGoods(self,data):
self.conn.sendall(self.sendData(json.dumps({'node':'logic','act_fun':'querySupGoods','data':data}),0))
r = self.conn.recv(self.recvBuff)
r = self.resolveRecvdata(r)
return json.loads(r)
示例15: GroupListModel
# 需要導入模塊: from application.lib.commodel import Connection_Stock [as 別名]
# 或者: from application.lib.commodel.Connection_Stock import recv [as 別名]
class GroupListModel(Socket_model):
def __init__(self):
Socket_model.__init__(self)
self.conn = Connection_Stock().getConnection()
def getPower(self,data=''):
self.conn.sendall(self.sendData(json.dumps({'node':'logic','act_fun':'getPow2','data':data}),0) )
r = self.conn.recv(self.recvBuff)
r = self.resolveRecvdata(r)
return json.loads(r)
def deletePower(self,id):
self.conn.sendall(self.sendData(json.dumps({'node':'logic','act_fun':'delGroup','data':id}),0))
r = self.conn.recv(self.recvBuff)
r = self.resolveRecvdata(r)
return json.loads(r)
def groupAdd(self,data):
self.conn.sendall(self.sendData(json.dumps({'node':'logic','act_fun':'addGroup','data':data}),0))
r = self.conn.recv(self.recvBuff)
r = self.resolveRecvdata(r)
return json.loads(r)
def editPower(self,data):
self.conn.sendall(self.sendData(json.dumps({'node':'logic','act_fun':'editGroup','data':data}),0))
r = self.conn.recv(self.recvBuff)
r = self.resolveRecvdata(r)
return str(r)
def getGroupInfo(self,groupid):
self.conn.sendall(self.sendData(json.dumps({'node':'logic','act_fun':'getGroupInfo','data':groupid}),0))
r = self.conn.recv(self.recvBuff)
r = self.resolveRecvdata(r)
return str(r)