def get(self): def muestra(result): self.write({"result": result}) self.finish() DDictparam=[{"_id":self.get_argument("_id",None)},{"valor":"1"}] MasterController.obtenerventas(param=Dictparam,accion=muestra)
def get(self): def muestra(result): self.write({"result": result}) self.finish() self.object=int(self.get_argument(name="objects",default=0)) self.keywords=self.get_argument("keywords",None) self.inicio=(int(self.get_argument("page",1))-1)*self.object MasterController.obtenerbodegas(param={"valor":"1"},skip=self.inicio,limit=self.object,accion=muestra)
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) MasterController.obtenerproductos(stock=self.idbodega,param={"valor":"1"},skip=self.inicio,limit=self.object,accion=muestra)
def post(self): def muestra(result): self.write({"result": result}) self.finish() self.atributos=json.loads(self.get_argument("data",None)) if not self.get_argument("_id",None): MasterController.guardalote(atributos=self.atributos,accion=muestra) else: idvalor=self.get_argument("_id",None) MasterController.editalote(idvalor=idvalor,atributos=self.atributos,accion=muestra)
def get(self): def muestra(): self.write("llenado") self.finish() MasterController.llena(self.get_argument("categoria",None),muestra)
def delete(self): def muestra(result): self.write({"result": result}) self.finish() parametro=self.get_argument("_id",None) MasterController.eliminarlotes(entityId=parametro,valuesToUpdate={"valor":"0"},accion=muestra)
def get(self): def muestra(result): self.write({"result": result}) self.finish() MasterController.obtenerlotes(param={"_id":self.get_argument("_id",None)},accion=muestra)