예제 #1
0
    def get(self):
        def muestra(result):
            self.write({"result": result})
            self.finish()

        self.object=int(self.get_argument("objects",0))
        self.keywords=self.get_argument("keywords",None)
        self.inicio=(int(self.get_argument("page",0))-1)*self.object
        self.idbodega=self.get_argument("stockid",None)
        self.idproducto=self.get_argument("productid",None)

        MasterController.obtenerlotes(product=self.idproducto,stock=self.idbodega,param={"valor":"1"},skip=self.inicio,limit=self.object,accion=muestra)
예제 #2
0
    def get(self):
        def muestra(result):
            self.write({"result": result})
            self.finish()

        MasterController.obtenerlotes(param={"_id":self.get_argument("_id",None)},accion=muestra)