当前位置: 首页>>代码示例>>Python>>正文


Python Connection_Stock.recv方法代码示例

本文整理汇总了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
开发者ID:huboqiao,项目名称:kmvip,代码行数:30,代码来源:storeQuery.py

示例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)
开发者ID:huboqiao,项目名称:kmvip,代码行数:30,代码来源:payment.py

示例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)
开发者ID:huboqiao,项目名称:kmvip,代码行数:30,代码来源:guashi_model.py

示例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)
开发者ID:huboqiao,项目名称:kmvip,代码行数:18,代码来源:congZhi_model.py

示例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)
开发者ID:huboqiao,项目名称:kmvip,代码行数:18,代码来源:searchstock_model.py

示例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)
开发者ID:huboqiao,项目名称:kmvip,代码行数:12,代码来源:grants.py

示例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)
开发者ID:huboqiao,项目名称:kmvip,代码行数:21,代码来源:cardeditpwd_model.py

示例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)
开发者ID:huboqiao,项目名称:kmvip,代码行数:12,代码来源:cardInfo_model.py

示例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]
        
开发者ID:huboqiao,项目名称:kmvip,代码行数:12,代码来源:dayreport_model.py

示例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)
开发者ID:huboqiao,项目名称:kmvip,代码行数:13,代码来源:addcard_model.py

示例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)
开发者ID:huboqiao,项目名称:kmvip,代码行数:24,代码来源:memberQuery.py

示例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)        
开发者ID:huboqiao,项目名称:kmvip,代码行数:15,代码来源:opencard_model.py

示例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)
开发者ID:huboqiao,项目名称:kmvip,代码行数:24,代码来源:memberAdd_model.py

示例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)
开发者ID:huboqiao,项目名称:kmvip,代码行数:40,代码来源:party_model.py

示例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)
开发者ID:huboqiao,项目名称:kmvip,代码行数:39,代码来源:grouplist_model.py


注:本文中的application.lib.commodel.Connection_Stock.recv方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。