def body(self, **KWS): ## CHEETAH: generated from #def body at line 8, col 1. trans = KWS.get("trans") if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)): trans = self.transaction # is None unless self.awake() was called if not trans: trans = DummyTransaction() _dummyTrans = True else: _dummyTrans = False write = trans.response().write SL = self._CHEETAH__searchList _filter = self._CHEETAH__currentFilter ######################################## ## START - generated method body write('''<h1>Category record for ''') _v = VFFSL(SL,"category.title.booktitle",True) # '$category.title.booktitle' on line 9, col 25 if _v is not None: write(_filter(_v, rawExpr='$category.title.booktitle')) # from line 9, col 25. write('''</h1> <form method="get" action="/categoryedit"> ''') _v = VFFSL(SL,"category.object_to_form",True) # '$category.object_to_form' on line 11, col 1 if _v is not None: write(_filter(_v, rawExpr='$category.object_to_form')) # from line 11, col 1. write(''' </form> ''') ######################################## ## END - generated method body return _dummyTrans and trans.response().getvalue() or ""
def pagetitle(self, **KWS): ## CHEETAH: generated from #def pagetitle at line 4, col 1. trans = KWS.get("trans") if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)): trans = self.transaction # is None unless self.awake() was called if not trans: trans = DummyTransaction() _dummyTrans = True else: _dummyTrans = False write = trans.response().write SL = self._CHEETAH__searchList _filter = self._CHEETAH__currentFilter ######################################## ## START - generated method body write('''Report: ''') _v = VFN(VFFSL(SL,"report",True),"metadata",True)['name'] # "${report.metadata['name']}" on line 5, col 9 if _v is not None: write(_filter(_v, rawExpr="${report.metadata['name']}")) # from line 5, col 9. write(''' ''') ######################################## ## END - generated method body return _dummyTrans and trans.response().getvalue() or ""
def title(self, **KWS): ## CHEETAH: generated from #def title at line 8, col 1. trans = KWS.get("trans") if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)): trans = self.transaction # is None unless self.awake() was called if not trans: trans = DummyTransaction() _dummyTrans = True else: _dummyTrans = False write = trans.response().write SL = self._CHEETAH__searchList _filter = self._CHEETAH__currentFilter ######################################## ## START - generated method body write('''Untitled ''') ######################################## ## END - generated method body return _dummyTrans and trans.response().getvalue() or ""
def respond(self, trans=None): ## CHEETAH: main method generated for this template if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)): trans = self.transaction # is None unless self.awake() was called if not trans: trans = DummyTransaction() _dummyTrans = True else: _dummyTrans = False write = trans.response().write SL = self._CHEETAH__searchList _filter = self._CHEETAH__currentFilter ######################################## ## START - generated method body _v = VFFSL(SL,"req.output",True) # '$req.output' on line 1, col 1 if _v is not None: write(_filter(_v, rawExpr='$req.output')) # from line 1, col 1. ######################################## ## END - generated method body return _dummyTrans and trans.response().getvalue() or ""
def body(self, trans=None, dummyTrans=False, VFS=valueFromSearchList, VFN=valueForName, getmtime=getmtime, currentTime=time.time, globals=globals, locals=locals, __builtin__=__builtin__): """ Generated from #block body at line 12, col 1. """ if not trans: trans = DummyTransaction() dummyTrans = True write = trans.response().write SL = self._searchList filter = self._currentFilter globalSetVars = self._globalSetVars ######################################## ## START - generated method body ######################################## ## END - generated method body if dummyTrans: return trans.response().getvalue() else: return ""
def writeBody(self, **KWS): ## CHEETAH: main method generated for this template trans = KWS.get("trans") if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)): trans = self.transaction # is None unless self.awake() was called if not trans: trans = DummyTransaction() _dummyTrans = True else: _dummyTrans = False write = trans.response().write SL = self._CHEETAH__searchList _filter = self._CHEETAH__currentFilter ######################################## ## START - generated method body write(''' ''') self.body(trans=trans) ######################################## ## END - generated method body return _dummyTrans and trans.response().getvalue() or ""
def pagetitle(self, **KWS): ## CHEETAH: generated from #def pagetitle at line 4, col 1. trans = KWS.get("trans") if not trans and not self._CHEETAH__isBuffering and not callable(self.transaction): trans = self.transaction # is None unless self.awake() was called if not trans: trans = DummyTransaction() _dummyTrans = True else: _dummyTrans = False write = trans.response().write SL = self._CHEETAH__searchList _filter = self._CHEETAH__currentFilter ######################################## ## START - generated method body write("""Editing a copy of """) _v = VFFSL(SL, "book.title.booktitle", True) # '${book.title.booktitle}' on line 5, col 19 if _v is not None: write(_filter(_v, rawExpr="${book.title.booktitle}")) # from line 5, col 19. write( """ """ ) ######################################## ## END - generated method body return _dummyTrans and trans.response().getvalue() or ""
def writeBody(self, **KWS): ## CHEETAH: generated from #block writeBody at line 36, col 1. trans = KWS.get("trans") if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)): trans = self.transaction # is None unless self.awake() was called if not trans: trans = DummyTransaction() _dummyTrans = True else: _dummyTrans = False write = trans.response().write SL = self._CHEETAH__searchList _filter = self._CHEETAH__currentFilter ######################################## ## START - generated method body write('This skeleton page has no flesh. Its body needs to be implemented.\n') ######################################## ## END - generated method body return _dummyTrans and trans.response().getvalue() or ""
def writeBody(self, trans=None, dummyTrans=False, VFFSL=valueFromFrameOrSearchList, VFN=valueForName, getmtime=getmtime, currentTime=time.time): """ Generated from #block writeBody at line 36, col 1. """ if not trans: trans = DummyTransaction() dummyTrans = True write = trans.response().write SL = self._searchList filter = self._currentFilter globalSetVars = self._globalSetVars ######################################## ## START - generated method body write('This skeleton page has no flesh. Its body needs to be implemented.\n') ######################################## ## END - generated method body if dummyTrans: return trans.response().getvalue() else: return ""
def body(self, **KWS): ## CHEETAH: generated from #block body at line 19, col 1. trans = KWS.get("trans") if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)): trans = self.transaction # is None unless self.awake() was called if not trans: trans = DummyTransaction() _dummyTrans = True else: _dummyTrans = False write = trans.response().write SL = self._CHEETAH__searchList _filter = self._CHEETAH__currentFilter ######################################## ## START - generated method body write(''' ''') # Show error if this page is shown write('''<h1><center><font color="RED"> OOOPS! </font></center></h1> ''') ######################################## ## END - generated method body return _dummyTrans and trans.response().getvalue() or ""
def side(self, **KWS): ## CHEETAH: generated from #block side at line 46, col 1. trans = KWS.get("trans") if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)): trans = self.transaction # is None unless self.awake() was called if not trans: trans = DummyTransaction() _dummyTrans = True else: _dummyTrans = False write = trans.response().write SL = self._CHEETAH__searchList _filter = self._CHEETAH__currentFilter ######################################## ## START - generated method body self._handleCheetahInclude("../server/www/templates/chunks/side.tmpl", trans=trans, includeFrom="file", raw=False) ######################################## ## END - generated method body return _dummyTrans and trans.response().getvalue() or ""
def banner(self, **KWS): ## CHEETAH: generated from #def banner at line 12, col 1. trans = KWS.get("trans") if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)): trans = self.transaction # is None unless self.awake() was called if not trans: trans = DummyTransaction() _dummyTrans = True else: _dummyTrans = False write = trans.response().write SL = self._CHEETAH__searchList _filter = self._CHEETAH__currentFilter ######################################## ## START - generated method body _v = VFFSL(SL,"title",True) # '$title' on line 13, col 1 if _v is not None: write(_filter(_v, rawExpr='$title')) # from line 13, col 1. write(''' ''') ######################################## ## END - generated method body return _dummyTrans and trans.response().getvalue() or ""
def respond(self, trans=None): ## CHEETAH: main method generated for this template if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)): trans = self.transaction # is None unless self.awake() was called if not trans: trans = DummyTransaction() _dummyTrans = True else: _dummyTrans = False write = trans.response().write SL = self._CHEETAH__searchList _filter = self._CHEETAH__currentFilter ######################################## ## START - generated method body # Master page template write(''' ''') # Header write('''<html> <head> <title> TSmells Pieces Tests </title> <head> <body> <center> <h1> TSmells Pieces Tests </h1> </center> ''') # Body self.body(trans=trans) write(''' ''') # Footer write('''<hr /> <font size="-1"> Generated ''') _v = VFFSL(SL,"ctime",False)() # '$ctime()' on line 31, col 19 if _v is not None: write(_filter(_v, rawExpr='$ctime()')) # from line 31, col 19. write(''' by <a href="mailto:[email protected]">Manuel Breugelmans</a> </font> </body> ''') ######################################## ## END - generated method body return _dummyTrans and trans.response().getvalue() or ""
def respond(self, trans=None, dummyTrans=False, VFS=valueFromSearchList, VFN=valueForName, getmtime=getmtime, currentTime=time.time, globals=globals, locals=locals, __builtin__=__builtin__): """ This is the main method generated by Cheetah """ if not trans: trans = DummyTransaction() dummyTrans = True write = trans.response().write SL = self._searchList filter = self._currentFilter globalSetVars = self._globalSetVars ######################################## ## START - generated method body write('''// // DO NOT EDIT THIS FILE! // // This file was generated automatically by the // ast.py script on ''') write(filter(VFN(VFS(SL + [globals(), __builtin__],"time",True),"asctime",False)(), rawExpr='${time.asctime()}')) # from line 6, col 21. write(''' // using System; namespace Boo.Ast { ''') self.body(trans=trans) # generated from ('body', '#block body') at line 12, col 1. write('}') ######################################## ## END - generated method body if dummyTrans: return trans.response().getvalue() else: return ""
def respond(self, trans=None): ## CHEETAH: main method generated for this template if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)): trans = self.transaction # is None unless self.awake() was called if not trans: trans = DummyTransaction() _dummyTrans = True else: _dummyTrans = False write = trans.response().write SL = self._CHEETAH__searchList _filter = self._CHEETAH__currentFilter ######################################## ## START - generated method body write(''' <div class="pagination"> ''') if VFN(VFFSL(SL,"req.__dict__",True),"get",False)('pagination'): # generated from line 4, col 1 write(''' ''') if VFN(VFFSL(SL,"req.pagination",True),"fetchcount",False)(True): # generated from line 6, col 1 write(''' <a class="more" href="''') _v = VFFSL(SL,"links",True)['paginate_more'](VFFSL(SL,"req",True)) # "$links['paginate_more']($req)" on line 8, col 23 if _v is not None: write(_filter(_v, rawExpr="$links['paginate_more']($req)")) # from line 8, col 23. write('''">More</a> ''') write('''\t ''') if VFFSL(SL,"req.pagination.offset",True): # generated from line 12, col 1 write(''' <a class="less" href="''') _v = VFFSL(SL,"links",True)['paginate_less'](VFFSL(SL,"req",True)) # "$links['paginate_less']($req)" on line 14, col 23 if _v is not None: write(_filter(_v, rawExpr="$links['paginate_less']($req)")) # from line 14, col 23. write('''">Less</a> ''') write(''' ''') write('''</div>''') ######################################## ## END - generated method body return _dummyTrans and trans.response().getvalue() or ""
def body(self, **KWS): ## CHEETAH: generated from #block body at line 3, col 1. trans = KWS.get("trans") if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)): trans = self.transaction # is None unless self.awake() was called if not trans: trans = DummyTransaction() _dummyTrans = True else: _dummyTrans = False write = trans.response().write SL = self._CHEETAH__searchList _filter = self._CHEETAH__currentFilter ######################################## ## START - generated method body write(''' <div class="form"> <form action="''') _v = VFFSL(SL,"req.uri",True) # '$req.uri' on line 6, col 15 if _v is not None: write(_filter(_v, rawExpr='$req.uri')) # from line 6, col 15. write('''" method="POST"> <div class="row textfields"> <div class="column"> <label for="email">Email</label> <input name="email" type="text" /> </div> <div class="column"> <label for="password">Password</label> <input name="password" type="password" /> </div> </div> <div class="row"><div class="column"> <input type="submit" /> </div></div> </form> </div> ''') ######################################## ## END - generated method body return _dummyTrans and trans.response().getvalue() or ""
def body(self, **KWS): ## CHEETAH: generated from #block body at line 6, col 1. trans = KWS.get("trans") if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)): trans = self.transaction # is None unless self.awake() was called if not trans: trans = DummyTransaction() _dummyTrans = True else: _dummyTrans = False write = trans.response().write SL = self._CHEETAH__searchList _filter = self._CHEETAH__currentFilter ######################################## ## START - generated method body write(''' ''') # Display user write('''<h1>''') _v = VFFSL(SL,"user.name",True) # '$user.name' on line 9, col 5 if _v is not None: write(_filter(_v, rawExpr='$user.name')) # from line 9, col 5. write('''</h1> <table> <tr> <td>Login:</td> <td>''') _v = VFFSL(SL,"user.login",True) # '$user.login' on line 13, col 13 if _v is not None: write(_filter(_v, rawExpr='$user.login')) # from line 13, col 13. write('''</td> </tr> <tr> <td>Phone:</td> <td>''') _v = VFFSL(SL,"user.phone",True) # '$user.phone' on line 17, col 13 if _v is not None: write(_filter(_v, rawExpr='$user.phone')) # from line 17, col 13. write('''</td> </tr> </table> ''') ######################################## ## END - generated method body return _dummyTrans and trans.response().getvalue() or ""
def body(self, **KWS): ## CHEETAH: generated from #def body at line 8, col 1. trans = KWS.get("trans") if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)): trans = self.transaction # is None unless self.awake() was called if not trans: trans = DummyTransaction() _dummyTrans = True else: _dummyTrans = False write = trans.response().write SL = self._CHEETAH__searchList _filter = self._CHEETAH__currentFilter ######################################## ## START - generated method body write('''<h1>''') _v = VFN(VFFSL(SL,"report",True),"metadata",True)['name'] # "${report.metadata['name']}" on line 9, col 5 if _v is not None: write(_filter(_v, rawExpr="${report.metadata['name']}")) # from line 9, col 5. write('''</h1> ''') _v = VFN(VFFSL(SL,"report",True),"queryForm",False)() # '${report.queryForm()}' on line 10, col 1 if _v is not None: write(_filter(_v, rawExpr='${report.queryForm()}')) # from line 10, col 1. write(''' <hr /> ''') if VFFSL(SL,"do_query",True): # generated from line 12, col 1 write('''<table> ''') for r in VFFSL(SL,"results",True): # generated from line 14, col 1 _v = VFFSL(SL,"r",True) # '$r' on line 15, col 1 if _v is not None: write(_filter(_v, rawExpr='$r')) # from line 15, col 1. write(''' ''') write('''</table> <b>Total: ''') _v = VFFSL(SL,"total",True) # '$total' on line 18, col 11 if _v is not None: write(_filter(_v, rawExpr='$total')) # from line 18, col 11. write('''</b> ''') ######################################## ## END - generated method body return _dummyTrans and trans.response().getvalue() or ""
def body(self, **KWS): ## CHEETAH: generated from #def body at line 8, col 1. trans = KWS.get("trans") if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)): trans = self.transaction # is None unless self.awake() was called if not trans: trans = DummyTransaction() _dummyTrans = True else: _dummyTrans = False write = trans.response().write SL = self._CHEETAH__searchList _filter = self._CHEETAH__currentFilter ######################################## ## START - generated method body write('''<h1>Your cart currently contains:</h1> <a class="close" href="javascript:window.close()">X</a> <form action="/addtocart"> <table> ''') for q in VFFSL(SL,"quantities",True): # generated from line 13, col 1 write('''<tr><td><input type="text" width="3" name="select_x_like_''') _v = VFN(VFFSL(SL,"q",True)[0],"id",True) # '${q[0].id}' on line 14, col 58 if _v is not None: write(_filter(_v, rawExpr='${q[0].id}')) # from line 14, col 58. write('''" value="''') _v = VFFSL(SL,"q",True)[1] # '${q[1]}' on line 14, col 77 if _v is not None: write(_filter(_v, rawExpr='${q[1]}')) # from line 14, col 77. write('''" /></td><td>''') _v = VFN(VFFSL(SL,"q",True)[0],"title.booktitle",True) # '${q[0].title.booktitle}' on line 14, col 97 if _v is not None: write(_filter(_v, rawExpr='${q[0].title.booktitle}')) # from line 14, col 97. write('''</td></tr> ''') write('''</table> <input type="hidden" name="reset_quantities" value="true" /> <input class="submit-inline" type="submit" name="update" value="update quantities"/> <input class="submit-inline" type="submit" name="checkout" value="checkout" /> </form> ''') ######################################## ## END - generated method body return _dummyTrans and trans.response().getvalue() or ""
def writeHeadTag(self, trans=None, dummyTrans=False, VFS=valueFromSearchList, VFN=valueForName, getmtime=getmtime, currentTime=time.time, globals=globals, locals=locals, __builtin__=__builtin__): """ Generated from #block writeHeadTag at line 22, col 1. """ if not trans: trans = DummyTransaction() dummyTrans = True write = trans.response().write SL = self._searchList filter = self._currentFilter globalSetVars = self._globalSetVars ######################################## ## START - generated method body write('<head>\n<title>') write(filter(VFS(SL + [globals(), __builtin__],"title",1), rawExpr='$title')) # from line 24, col 8. write('</title>\n') write(filter(VFS(SL + [globals(), __builtin__],"metaTags",1), rawExpr='$metaTags')) # from line 25, col 1. write(' \n') write(filter(VFS(SL + [globals(), __builtin__],"stylesheetTags",1), rawExpr='$stylesheetTags')) # from line 26, col 1. write(' \n') write(filter(VFS(SL + [globals(), __builtin__],"javascriptTags",1), rawExpr='$javascriptTags')) # from line 27, col 1. write('\n</head>\n') ######################################## ## END - generated method body if dummyTrans: return trans.response().getvalue() else: return ""
def body(self, **KWS): ## CHEETAH: generated from #def body at line 8, col 1. trans = KWS.get("trans") if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)): trans = self.transaction # is None unless self.awake() was called if not trans: trans = DummyTransaction() _dummyTrans = True else: _dummyTrans = False write = trans.response().write SL = self._CHEETAH__searchList _filter = self._CHEETAH__currentFilter ######################################## ## START - generated method body write('''<h1>Reports</h1> <ul> ''') for r in VFFSL(SL,"reports",True): # generated from line 11, col 1 write('''<li><a href="/report?reportname=''') _v = VFFSL(SL,"r",True)['action'] # "${r['action']}" on line 12, col 33 if _v is not None: write(_filter(_v, rawExpr="${r['action']}")) # from line 12, col 33. write('''">''') _v = VFFSL(SL,"r",True)['name'] # "${r['name']}" on line 12, col 49 if _v is not None: write(_filter(_v, rawExpr="${r['name']}")) # from line 12, col 49. write('''</a></li> ''') write('''</ul> ''') ######################################## ## END - generated method body return _dummyTrans and trans.response().getvalue() or ""
def body(self, **KWS): ## CHEETAH: generated from #def body at line 8, col 1. trans = KWS.get("trans") if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)): trans = self.transaction # is None unless self.awake() was called if not trans: trans = DummyTransaction() _dummyTrans = True else: _dummyTrans = False write = trans.response().write SL = self._CHEETAH__searchList _filter = self._CHEETAH__currentFilter ######################################## ## START - generated method body write('''<h1>Kinds</h1> <ul> ''') for k in VFFSL(SL,"kinds",True): # generated from line 11, col 1 write('''<li><a href="/kindedit?id=''') _v = VFFSL(SL,"k.id",True) # '$k.id' on line 12, col 27 if _v is not None: write(_filter(_v, rawExpr='$k.id')) # from line 12, col 27. write('''">''') _v = VFFSL(SL,"k.kindName",True) # '$k.kindName' on line 12, col 34 if _v is not None: write(_filter(_v, rawExpr='$k.kindName')) # from line 12, col 34. write('''</></li> ''') write('''</ul> <a href="/kindedit">Add a new kind of item</a> ''') ######################################## ## END - generated method body return _dummyTrans and trans.response().getvalue() or ""
def getTargetFileName(self, trans=None, dummyTrans=False, VFS=valueFromSearchList, VFN=valueForName, getmtime=getmtime, currentTime=time.time, globals=globals, locals=locals, __builtin__=__builtin__): """ Generated from #def getTargetFileName(): src/Boo/Ast/${item.name}.cs at line 1, col 1. """ if not trans: trans = DummyTransaction() dummyTrans = True write = trans.response().write SL = self._searchList filter = self._currentFilter globalSetVars = self._globalSetVars ######################################## ## START - generated method body write('src/Boo/Ast/') write(filter(VFS(SL + [globals(), __builtin__],"item.name",True), rawExpr='${item.name}')) # from line 1, col 13. write('.cs') ######################################## ## END - generated method body if dummyTrans: return trans.response().getvalue() else: return ""
def respond(self, trans=None): ## CHEETAH: main method generated for this template if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)): trans = self.transaction # is None unless self.awake() was called if not trans: trans = DummyTransaction() _dummyTrans = True else: _dummyTrans = False write = trans.response().write SL = self._CHEETAH__searchList _filter = self._CHEETAH__currentFilter ######################################## ## START - generated method body for t in VFFSL(SL,"titles",True): # generated from line 1, col 1 write('''| ''') _v = VFFSL(SL,"t.booktitle",True) # '$t.booktitle' on line 2, col 3 if _v is not None: write(_filter(_v, rawExpr='$t.booktitle')) # from line 2, col 3. write(''' | ''') _v = VFFSL(SL,"t.isbn",True) # '$t.isbn' on line 2, col 18 if _v is not None: write(_filter(_v, rawExpr='$t.isbn')) # from line 2, col 18. write(''' | ''') _v = VFFSL(SL,"t.highest_price_book.listprice",True) # '$t.highest_price_book.listprice' on line 2, col 28 if _v is not None: write(_filter(_v, rawExpr='$t.highest_price_book.listprice')) # from line 2, col 28. write(''' |<br /> ''') write(''' ''') ######################################## ## END - generated method body return _dummyTrans and trans.response().getvalue() or ""
def writeHeadTag(self, **KWS): ## CHEETAH: generated from #block writeHeadTag at line 22, col 1. trans = KWS.get("trans") if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)): trans = self.transaction # is None unless self.awake() was called if not trans: trans = DummyTransaction() _dummyTrans = True else: _dummyTrans = False write = trans.response().write SL = self._CHEETAH__searchList _filter = self._CHEETAH__currentFilter ######################################## ## START - generated method body write('<head>\n<title>') _v = VFFSL(SL,"title",True) # '$title' on line 24, col 8 if _v is not None: write(_filter(_v, rawExpr='$title')) # from line 24, col 8. write('</title>\n') _v = VFFSL(SL,"metaTags",True) # '$metaTags' on line 25, col 1 if _v is not None: write(_filter(_v, rawExpr='$metaTags')) # from line 25, col 1. write(' \n') _v = VFFSL(SL,"stylesheetTags",True) # '$stylesheetTags' on line 26, col 1 if _v is not None: write(_filter(_v, rawExpr='$stylesheetTags')) # from line 26, col 1. write(' \n') _v = VFFSL(SL,"javascriptTags",True) # '$javascriptTags' on line 27, col 1 if _v is not None: write(_filter(_v, rawExpr='$javascriptTags')) # from line 27, col 1. write('\n</head>\n') ######################################## ## END - generated method body return _dummyTrans and trans.response().getvalue() or ""
def scripts(self, **KWS): ## CHEETAH: generated from #block scripts at line 4, col 1. trans = KWS.get("trans") if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)): trans = self.transaction # is None unless self.awake() was called if not trans: trans = DummyTransaction() _dummyTrans = True else: _dummyTrans = False write = trans.response().write SL = self._CHEETAH__searchList _filter = self._CHEETAH__currentFilter ######################################## ## START - generated method body write(''' <script type="text/javascript" src="/fckeditor/fckeditor.js"></script> <script type="text/javascript"> window.onload = function() { var oFCKeditor = new FCKeditor( \'body\' ) ; oFCKeditor.BasePath = "/fckeditor/"; oFCKeditor.ReplaceTextarea(); } </script> ''') ######################################## ## END - generated method body return _dummyTrans and trans.response().getvalue() or ""
def palBefore(self, **KWS): ## CHEETAH: generated from #def palBefore at line 4, col 1. trans = KWS.get("trans") if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)): trans = self.transaction # is None unless self.awake() was called if not trans: trans = DummyTransaction() _dummyTrans = True else: _dummyTrans = False write = trans.response().write SL = self._CHEETAH__searchList _filter = self._CHEETAH__currentFilter ######################################## ## START - generated method body write('''\t<form action="palScan"> <input type=hidden name=id value=''') _v = VFFSL(SL, "PAL_ID", True) # '$PAL_ID' on line 6, col 42 if _v is not None: write(_filter(_v, rawExpr='$PAL_ID')) # from line 6, col 42. write('''> ''') if False: _('ШК') _v = VFFSL(SL, "_", False)('ШК') # "$_('\xd8\xca')" on line 7, col 9 if _v is not None: write(_filter(_v, rawExpr="$_('\xd8\xca')")) # from line 7, col 9. write( ''': <input type=text id=":scan:text" name=barcode value="" title="''' ) if False: _('МП') _v = VFFSL(SL, "_", False)('МП') # "$_('\xcc\xcf')" on line 7, col 81 if _v is not None: write(_filter(_v, rawExpr="$_('\xcc\xcf')")) # from line 7, col 81. write(''', ''') if False: _('Паллет') _v = VFFSL(SL, "_", False)( 'Паллет' ) # "$_('\xcf\xe0\xeb\xeb\xe5\xf2')" on line 7, col 91 if _v is not None: write(_filter(_v, rawExpr="$_('\xcf\xe0\xeb\xeb\xe5\xf2')") ) # from line 7, col 91. write(''', ''') if False: _('Товар') _v = VFFSL(SL, "_", False)( 'Товар') # "$_('\xd2\xee\xe2\xe0\xf0')" on line 7, col 105 if _v is not None: write(_filter( _v, rawExpr="$_('\xd2\xee\xe2\xe0\xf0')")) # from line 7, col 105. write('''"><br> \t</form> <br> ''') ######################################## ## END - generated method body return _dummyTrans and trans.response().getvalue() or ""
def systemNavigation(self, **KWS): ## CHEETAH: generated from #def systemNavigation at line 7, col 1. trans = KWS.get("trans") if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)): trans = self.transaction # is None unless self.awake() was called if not trans: trans = DummyTransaction() _dummyTrans = True else: _dummyTrans = False write = trans.response().write SL = self._CHEETAH__searchList _filter = self._CHEETAH__currentFilter ######################################## ## START - generated method body write(''' \t<script type="text/javascript" src="''') _v = VFFSL(SL, "eng_js", True) # '$eng_js' on line 9, col 38 if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 9, col 38. write('''/jquery.rightClick.js"></script> \t<script type="text/javascript" src="''') _v = VFFSL(SL, "eng_js", True) # '$eng_js' on line 10, col 38 if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 10, col 38. write('''/ui.datepicker.min.js" ></script> \t<script type="text/javascript" src="''') _v = VFFSL(SL, "eng_js", True) # '$eng_js' on line 11, col 38 if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 11, col 38. write('''/i18n/ui.datepicker-ru.js"></script> \t<script type="text/javascript" src="''') _v = VFFSL(SL, "eng_js", True) # '$eng_js' on line 12, col 38 if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 12, col 38. write('''/jquery.maskedinput-1.2.1.pack.js"></script> \t<script type="text/javascript" src="''') _v = VFFSL(SL, "eng_js", True) # '$eng_js' on line 13, col 38 if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 13, col 38. write('''/jquery.contextMenu.js"></script> \t<script type="text/javascript" src="''') _v = VFFSL(SL, "eng_js", True) # '$eng_js' on line 14, col 38 if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 14, col 38. write('''/ui.dialog.min.js"></script> \t<script type="text/javascript" src="''') _v = VFFSL(SL, "eng_js", True) # '$eng_js' on line 15, col 38 if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 15, col 38. write('''/jquery.tablesorter.min.js"></script> \t<script type="text/javascript" src="''') _v = VFFSL(SL, "eng_js", True) # '$eng_js' on line 16, col 38 if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 16, col 38. write('''/kTblScroll.js"></script> \t \t<script type="text/javascript" src="''') _v = VFFSL(SL, "sps_js.KURSSKLAD", True) # '$sps_js.KURSSKLAD' on line 18, col 38 if _v is not None: write(_filter( _v, rawExpr='$sps_js.KURSSKLAD')) # from line 18, col 38. write('''/k.form.js"></script> \t<script type="text/javascript" src="''') _v = VFFSL(SL, "sps_js.KURSSKLAD", True) # '$sps_js.KURSSKLAD' on line 19, col 38 if _v is not None: write(_filter( _v, rawExpr='$sps_js.KURSSKLAD')) # from line 19, col 38. write('''/k.formats.js"></script> \t<script type="text/javascript" src="''') _v = VFFSL(SL, "sps_js.KURSSKLAD", True) # '$sps_js.KURSSKLAD' on line 20, col 38 if _v is not None: write(_filter( _v, rawExpr='$sps_js.KURSSKLAD')) # from line 20, col 38. write('''/k.messages.js"></script> \t<script type="text/javascript" src="''') _v = VFFSL(SL, "sps_js.KURSSKLAD", True) # '$sps_js.KURSSKLAD' on line 21, col 38 if _v is not None: write(_filter( _v, rawExpr='$sps_js.KURSSKLAD')) # from line 21, col 38. write('''/jquery.blockUI.js"></script> \t<script type="text/javascript" src="''') _v = VFFSL(SL, "sps_js.KURSSKLAD", True) # '$sps_js.KURSSKLAD' on line 22, col 38 if _v is not None: write(_filter( _v, rawExpr='$sps_js.KURSSKLAD')) # from line 22, col 38. write('''/k.objectLocate.js"></script> \t<script type="text/javascript" src="''') _v = VFFSL(SL, "sps_js.KURSSKLAD", True) # '$sps_js.KURSSKLAD' on line 23, col 38 if _v is not None: write(_filter( _v, rawExpr='$sps_js.KURSSKLAD')) # from line 23, col 38. write('''/k.waresLocate.js"></script> \t<script type="text/javascript" src="''') _v = VFFSL(SL, "sps_js.KURSSKLAD", True) # '$sps_js.KURSSKLAD' on line 24, col 38 if _v is not None: write(_filter( _v, rawExpr='$sps_js.KURSSKLAD')) # from line 24, col 38. write('''/k.icons.js"></script> \t \t<script type="text/javascript" src="''') _v = VFFSL(SL, "sp_js", True) # '$sp_js' on line 26, col 38 if _v is not None: write(_filter(_v, rawExpr='$sp_js')) # from line 26, col 38. write('''/turnwh.js"></script> \t<form class="buttons"> \t\t\xce\xf1\xf2\xe0\xf2\xee\xea <select id="typeRest"> \t\t\t<option selected value="p">\xcf\xe0\xf0\xf2\xe8\xee\xed\xed\xfb\xe9</option> \t\t\t<option value="d">\xc4\xee\xea\xf3\xec\xe5\xed\xf2\xe0\xeb\xfc\xed\xfb\xe9</option> \t\t</select> \t\t\xce\xe1\xfa\xe5\xea\xf2 <select id="fromobj"></select> \t\t\xcf\xe5\xf0\xe8\xee\xe4: \xd1 <input id="dbeg" type="text" size="8" /> \t\t\xcf\xee <input id="dend" type="text" size="8" /> \t\t<label for="sdppm_min" title="\xd1\xf0\xe5\xe4\xed\xe5\xe4\xed\xe5\xe2\xed\xfb\xe5 \xef\xf0\xee\xe4\xe0\xe6\xe8 \xef\xee\xe7\xe8\xf6\xe8\xe8 \xef\xee \xec\xe0\xe3\xe0\xe7\xe8\xed\xe0\xec">\xd1\xc4\xcf\xcf\xcc</label> <input type="text" size="4" id="sdppm_min"/> <input type="text" size="4" id="sdppm_max"/> \t\t<label for="sdppm_min" title="\xce\xe1\xee\xf0\xe0\xf7\xe8\xe2\xe0\xe5\xec\xee\xf1\xf2\xfc \xe2 \xe4\xed\xff\xf5">\xce\xc4</label> <input type="text" size="4" id="ovdd_min"/> <input type="text" size="4" id="ovdd_max"/> \t\t \t\t<button type="submit"><img src="''') _v = VFFSL(SL, "eng_img", True) # '$eng_img' on line 39, col 35 if _v is not None: write(_filter(_v, rawExpr='$eng_img')) # from line 39, col 35. write('''/arrows/arrow_right.png"></button> \t\t<button type="button" title="\xcf\xe5\xf7\xe0\xf2\xfc" id="btnPrint"><img src="''' ) _v = VFFSL(SL, "eng_img", True) # '$eng_img' on line 40, col 64 if _v is not None: write(_filter(_v, rawExpr='$eng_img')) # from line 40, col 64. write('''/actions/printer.png"></button> \t</form> ''') ######################################## ## END - generated method body return _dummyTrans and trans.response().getvalue() or ""
def mainData(self, **KWS): ## CHEETAH: generated from #def mainData at line 4, col 1. trans = KWS.get("trans") if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)): trans = self.transaction # is None unless self.awake() was called if not trans: trans = DummyTransaction() _dummyTrans = True else: _dummyTrans = False write = trans.response().write SL = self._CHEETAH__searchList _filter = self._CHEETAH__currentFilter ######################################## ## START - generated method body write(''' ''') _v = VFFSL(SL, "NAME", True) # '$NAME' on line 5, col 5 if _v is not None: write(_filter(_v, rawExpr='$NAME')) # from line 5, col 5. write(''' <br> <br> <form action="taskAPalletAdd" method="post"> <input type="hidden" value="''') _v = VFFSL(SL, "tid", True) # '$tid' on line 10, col 37 if _v is not None: write(_filter(_v, rawExpr='$tid')) # from line 10, col 37. write('''" name="tid" /> <input type="hidden" value="''') _v = VFFSL(SL, "siteid", True) # '$siteid' on line 11, col 37 if _v is not None: write(_filter(_v, rawExpr='$siteid')) # from line 11, col 37. write('''" name="sid" /> ''') if False: _('ШК') _v = VFFSL(SL, "_", False)('ШК') # "$_('\xd8\xca')" on line 12, col 9 if _v is not None: write(_filter(_v, rawExpr="$_('\xd8\xca')")) # from line 12, col 9. write( ''': <input type=text id=":scan:text" name=barcode value="" title="''' ) if False: _('Поддон') _v = VFFSL(SL, "_", False)( 'Поддон' ) # "$_('\xcf\xee\xe4\xe4\xee\xed')" on line 12, col 81 if _v is not None: write(_filter(_v, rawExpr="$_('\xcf\xee\xe4\xe4\xee\xed')") ) # from line 12, col 81. write('''"><br> </form> ''') ######################################## ## END - generated method body return _dummyTrans and trans.response().getvalue() or ""
def engineData(self, **KWS): ## CHEETAH: generated from #def engineData at line 12, col 1. trans = KWS.get("trans") if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)): trans = self.transaction # is None unless self.awake() was called if not trans: trans = DummyTransaction() _dummyTrans = True else: _dummyTrans = False write = trans.response().write SL = self._CHEETAH__searchList _filter = self._CHEETAH__currentFilter ######################################## ## START - generated method body write(''' ''') # Styles write(''' <link href="''') _v = VFFSL(SL,"sps_css.KURSSKLAD",True) # '$sps_css.KURSSKLAD' on line 15, col 17 if _v is not None: write(_filter(_v, rawExpr='$sps_css.KURSSKLAD')) # from line 15, col 17. write('''/k.progressbar.css" rel="stylesheet" type="text/css" media="screen"/> <link href="''') _v = VFFSL(SL,"sps_css.KURSSKLAD",True) # '$sps_css.KURSSKLAD' on line 16, col 17 if _v is not None: write(_filter(_v, rawExpr='$sps_css.KURSSKLAD')) # from line 16, col 17. write('''/jquery.popup.css" rel="stylesheet" type="text/css" media="screen"/> <link href="''') _v = VFFSL(SL,"sps_css.KURSSKLAD",True) # '$sps_css.KURSSKLAD' on line 17, col 17 if _v is not None: write(_filter(_v, rawExpr='$sps_css.KURSSKLAD')) # from line 17, col 17. write('''/tabs/jquery.tabs.css" rel="stylesheet" type="text/css" media="screen"/> <link href="''') _v = VFFSL(SL,"eng_css",True) # '$eng_css' on line 18, col 17 if _v is not None: write(_filter(_v, rawExpr='$eng_css')) # from line 18, col 17. write('''/jquery.drop-checkbox.css" rel="stylesheet" type="text/css" media="screen"/> <link href="''') _v = VFFSL(SL,"eng_css",True) # '$eng_css' on line 19, col 17 if _v is not None: write(_filter(_v, rawExpr='$eng_css')) # from line 19, col 17. write('''/jquery.autocomplete.css" rel="stylesheet" type="text/css" media="screen"/> <link href="''') _v = VFFSL(SL,"sp_css",True) # '$sp_css' on line 20, col 17 if _v is not None: write(_filter(_v, rawExpr='$sp_css')) # from line 20, col 17. write('''/DocManager.css" rel="stylesheet" type="text/css" media="screen"/> <link href="''') _v = VFFSL(SL,"sp_css",True) # '$sp_css' on line 21, col 17 if _v is not None: write(_filter(_v, rawExpr='$sp_css')) # from line 21, col 17. write('''/jquery.fancybox-1.3.4.css" rel="stylesheet" type="text/css" media="screen"/> \t<link href="''') _v = VFFSL(SL,"sps_css.KURSSKLAD",True) # '$sps_css.KURSSKLAD' on line 22, col 14 if _v is not None: write(_filter(_v, rawExpr='$sps_css.KURSSKLAD')) # from line 22, col 14. write('''/wh.reserve.summary.css" rel="stylesheet" type="text/css" media="screen"/> <style> .ui-progressbar-indicator{ line-height:40px; position:absolute; text-indent:-20px; left:50%; border: 1px solid black; } </style> ''') # Scripts write(''' <script type="text/javascript" src="''') _v = VFFSL(SL,"eng_js",True) # '$eng_js' on line 37, col 41 if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 37, col 41. write('''/ui.datepicker.min.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"eng_js",True) # '$eng_js' on line 38, col 41 if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 38, col 41. write('''/i18n/ui.datepicker-ru.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"eng_js",True) # '$eng_js' on line 39, col 41 if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 39, col 41. write('''/jquery.maskedinput-1.2.1.pack.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"eng_js",True) # '$eng_js' on line 40, col 41 if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 40, col 41. write('''/ui.dialog.min.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"eng_js",True) # '$eng_js' on line 41, col 41 if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 41, col 41. write('''/jquery.contextMenu.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"eng_js",True) # '$eng_js' on line 42, col 41 if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 42, col 41. write('''/jquery.rightClick.min.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"eng_js",True) # '$eng_js' on line 43, col 41 if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 43, col 41. write('''/jquery.rowFocus.min.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"eng_js",True) # '$eng_js' on line 44, col 41 if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 44, col 41. write('''/jquery.tablesorter.min.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"eng_js",True) # '$eng_js' on line 45, col 41 if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 45, col 41. write('''/kTblScroll.min.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"eng_js",True) # '$eng_js' on line 46, col 41 if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 46, col 41. write('''/kScrollableToDown.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"eng_js",True) # '$eng_js' on line 47, col 41 if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 47, col 41. write('''/jquery.boxit.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"eng_js",True) # '$eng_js' on line 48, col 41 if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 48, col 41. write('''/jquery.drop-checkbox.js"></script> \t<script type="text/javascript" src="''') _v = VFFSL(SL,"eng_js",True) # '$eng_js' on line 49, col 38 if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 49, col 38. write('''/ui.droppable.min.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"eng_js",True) # '$eng_js' on line 50, col 41 if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 50, col 41. write('''/jquery.autocomplete.min.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"eng_js",True) # '$eng_js' on line 51, col 41 if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 51, col 41. write('''/jquery.form.min.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"sps_js.KURSSKLAD",True) # '$sps_js.KURSSKLAD' on line 53, col 41 if _v is not None: write(_filter(_v, rawExpr='$sps_js.KURSSKLAD')) # from line 53, col 41. write('''/jquery.blockUI.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"sps_js.KURSSKLAD",True) # '$sps_js.KURSSKLAD' on line 54, col 41 if _v is not None: write(_filter(_v, rawExpr='$sps_js.KURSSKLAD')) # from line 54, col 41. write('''/k.id.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"sps_js.KURSSKLAD",True) # '$sps_js.KURSSKLAD' on line 55, col 41 if _v is not None: write(_filter(_v, rawExpr='$sps_js.KURSSKLAD')) # from line 55, col 41. write('''/k.form.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"sps_js.KURSSKLAD",True) # '$sps_js.KURSSKLAD' on line 56, col 41 if _v is not None: write(_filter(_v, rawExpr='$sps_js.KURSSKLAD')) # from line 56, col 41. write('''/k.icons.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"sps_js.KURSSKLAD",True) # '$sps_js.KURSSKLAD' on line 57, col 41 if _v is not None: write(_filter(_v, rawExpr='$sps_js.KURSSKLAD')) # from line 57, col 41. write('''/k.blocks.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"sps_js.KURSSKLAD",True) # '$sps_js.KURSSKLAD' on line 58, col 41 if _v is not None: write(_filter(_v, rawExpr='$sps_js.KURSSKLAD')) # from line 58, col 41. write('''/k.formats.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"sps_js.KURSSKLAD",True) # '$sps_js.KURSSKLAD' on line 59, col 41 if _v is not None: write(_filter(_v, rawExpr='$sps_js.KURSSKLAD')) # from line 59, col 41. write('''/k.UpDown.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"sps_js.KURSSKLAD",True) # '$sps_js.KURSSKLAD' on line 60, col 41 if _v is not None: write(_filter(_v, rawExpr='$sps_js.KURSSKLAD')) # from line 60, col 41. write('''/k.messages.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"sps_js.KURSSKLAD",True) # '$sps_js.KURSSKLAD' on line 61, col 41 if _v is not None: write(_filter(_v, rawExpr='$sps_js.KURSSKLAD')) # from line 61, col 41. write('''/k.Sp.DocTypes.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"sps_js.KURSSKLAD",True) # '$sps_js.KURSSKLAD' on line 62, col 41 if _v is not None: write(_filter(_v, rawExpr='$sps_js.KURSSKLAD')) # from line 62, col 41. write('''/k.Sp.WaresGroups.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"sps_js.KURSSKLAD",True) # '$sps_js.KURSSKLAD' on line 63, col 41 if _v is not None: write(_filter(_v, rawExpr='$sps_js.KURSSKLAD')) # from line 63, col 41. write('''/k.waresLocate.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"sps_js.KURSSKLAD",True) # '$sps_js.KURSSKLAD' on line 64, col 41 if _v is not None: write(_filter(_v, rawExpr='$sps_js.KURSSKLAD')) # from line 64, col 41. write('''/k.objectAutoComplete.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"sps_js.KURSSKLAD",True) # '$sps_js.KURSSKLAD' on line 65, col 41 if _v is not None: write(_filter(_v, rawExpr='$sps_js.KURSSKLAD')) # from line 65, col 41. write('''/k.tdChk.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"sps_js.KURSSKLAD",True) # '$sps_js.KURSSKLAD' on line 66, col 41 if _v is not None: write(_filter(_v, rawExpr='$sps_js.KURSSKLAD')) # from line 66, col 41. write('''/k.progressbar.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"sps_js.KURSSKLAD",True) # '$sps_js.KURSSKLAD' on line 67, col 41 if _v is not None: write(_filter(_v, rawExpr='$sps_js.KURSSKLAD')) # from line 67, col 41. write('''/k.report.TTN.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"sps_js.KURSSKLAD",True) # '$sps_js.KURSSKLAD' on line 68, col 41 if _v is not None: write(_filter(_v, rawExpr='$sps_js.KURSSKLAD')) # from line 68, col 41. write('''/k.docPrint.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"sps_js.KURSSKLAD",True) # '$sps_js.KURSSKLAD' on line 69, col 41 if _v is not None: write(_filter(_v, rawExpr='$sps_js.KURSSKLAD')) # from line 69, col 41. write('''/jquery.tabs.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"sps_js.KURSSKLAD",True) # '$sps_js.KURSSKLAD' on line 70, col 41 if _v is not None: write(_filter(_v, rawExpr='$sps_js.KURSSKLAD')) # from line 70, col 41. write('''/jquery.popup.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"sps_js.KURSSKLAD",True) # '$sps_js.KURSSKLAD' on line 71, col 41 if _v is not None: write(_filter(_v, rawExpr='$sps_js.KURSSKLAD')) # from line 71, col 41. write('''/taskView.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"sp_js",True) # '$sp_js' on line 73, col 41 if _v is not None: write(_filter(_v, rawExpr='$sp_js')) # from line 73, col 41. write('''/jquery.fancybox-1.3.4.pack.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"sps_js.KURSSKLAD",True) # '$sps_js.KURSSKLAD' on line 74, col 41 if _v is not None: write(_filter(_v, rawExpr='$sps_js.KURSSKLAD')) # from line 74, col 41. write('''/wh.reserve.summary.js"></script>\t\t <script type="text/javascript" src="''') _v = VFFSL(SL,"sp_js",True) # '$sp_js' on line 75, col 41 if _v is not None: write(_filter(_v, rawExpr='$sp_js')) # from line 75, col 41. write('''/DocManager.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"sp_js",True) # '$sp_js' on line 76, col 41 if _v is not None: write(_filter(_v, rawExpr='$sp_js')) # from line 76, col 41. write('''/WLImages.js"></script> ''') self.adminData(trans=trans) write(''' ''') ######################################## ## END - generated method body return _dummyTrans and trans.response().getvalue() or ""
def adminData(self, **KWS): ## CHEETAH: generated from #block adminData at line 78, col 5. trans = KWS.get("trans") if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)): trans = self.transaction # is None unless self.awake() was called if not trans: trans = DummyTransaction() _dummyTrans = True else: _dummyTrans = False write = trans.response().write SL = self._CHEETAH__searchList _filter = self._CHEETAH__currentFilter ######################################## ## START - generated method body write(''' <script> var admin = 0; var useviewunit = ''') _v = VFFSL(SL,"viewunit",True) # '$viewunit' on line 81, col 27 if _v is not None: write(_filter(_v, rawExpr='$viewunit')) # from line 81, col 27. write('''; var gtdedit = ''') _v = VFFSL(SL,"gtdedit",True) # '$gtdedit' on line 82, col 23 if _v is not None: write(_filter(_v, rawExpr='$gtdedit')) # from line 82, col 23. write('''; </script> <div id="divFilter" style="float:left;position:relative;"> <form id="frmScan"> <table> <tr><th>\xd8\xca</th></tr> <tr><td><input type="text" name="barcode" size="8" value=""></tr> </table> </form> <br> <form id="frmFilter"> <table> ''') # <tr><th><a id="aSpDocTypes">Тип операции</a></th></tr> write(""" <tr><th>\xd2\xe8\xef \xee\xef\xe5\xf0\xe0\xf6\xe8\xe8</th></tr> <tr><td><select name='doctype' id='cmbDocType'></select></td></tr> """) # <tr><th>Подтип операции</th></tr> # <tr><td><select name='docsubtype' id='cmbDocSubType'></select></td></tr> write(''' <tr><th>\xcf\xe5\xf0\xe8\xee\xe4</th></tr> <tr><td><input type="text" id="dbeg" name="dbeg" size="8" value=""> <input type="text" id="dend" name="dend" size="8" value=""></td></tr> <tr><td><input type=checkbox checked id=\'frmDocFilter-chkDate\'>\xcf\xee \xe4\xe0\xf2\xe5 \xe4\xee\xea\xf3\xec\xe5\xed\xf2\xe0</td></tr> <tr><th>\xd1\xf2\xe0\xf2\xf3\xf1</th></tr> <tr><td><select name=\'status\' id=\'cmbDocStatus\'></select></td></tr> <tr><th><span id="fromobj-name">\xce\xf2 \xea\xee\xe3\xee</span></th></tr> <tr><td><input type="text" id="fromobj" value=""></td></tr> <tr><th><span id="throughobj-name">\xd7\xe5\xf0\xe5\xe7 \xea\xee\xe3\xee</span></th></tr> <tr><td><input type="text" id="throughobj" value=""></td></tr> <tr><th><span id="toobj-name">\xca\xee\xec\xf3</span></th></tr> <tr><td><input type="text" id="toobj" value=""></td></tr> <tr><th>\xcd\xee\xec\xe5\xf0 \xe4\xee\xea\xf3\xec\xe5\xed\xf2\xe0</th></tr> <tr><td><input type="text" name="docnum" style="width:100%;" value=""></td></tr> <tr><th>\xd1\xf3\xec\xec\xe0 \xec\xe5\xe6\xe4\xf3</th></tr> <tr><td><input type="text" size="8" name="sumFrom" value=""> <input type="text" size="8" name="sumTo" value=""></td></tr> <tr><td><div class="buttons" style="text-align: right; padding:3px"> ''') if VFFSL(SL,"opt",False)('view',None,'confBtn','element'): # generated from line 117, col 33 write(''' <button type="button" id="cfgBtn" title="\xc8\xe7\xec\xe5\xed\xe5\xed\xe8\xe5 \xed\xe0\xf1\xf2\xf0\xee\xe5\xea \xf0\xe5\xe4\xe0\xea\xf2\xe8\xf0\xee\xe2\xe0\xed\xe8\xff" style="float: left;"><img border="0" src="''') _v = VFFSL(SL,"sps_img.KURSSKLAD",True) # '$sps_img.KURSSKLAD' on line 118, col 155 if _v is not None: write(_filter(_v, rawExpr='$sps_img.KURSSKLAD')) # from line 118, col 155. write('''/wrench.png"></button> ''') write(''' <button type="button" id="btnCalc" title="\xcf\xee\xf1\xf7\xe8\xf2\xe0\xf2\xfc \xf1\xf3\xec\xec\xf3"><img src="''') _v = VFFSL(SL,"sps_img.KURSSKLAD",True) # '$sps_img.KURSSKLAD' on line 120, col 102 if _v is not None: write(_filter(_v, rawExpr='$sps_img.KURSSKLAD')) # from line 120, col 102. write('''/sum.png" border="0"></button> <button type="button" title="\xd1\xee\xe7\xe4\xe0\xf2\xfc \xe4\xee\xea\xf3\xec\xe5\xed\xf2" id="btnCreateDoc"><img src="''') _v = VFFSL(SL,"eng_img",True) # '$eng_img' on line 121, col 108 if _v is not None: write(_filter(_v, rawExpr='$eng_img')) # from line 121, col 108. write('''/actions/add.png" border="0"></button> <button type="submit" title="\xc8\xf1\xea\xe0\xf2\xfc"><img src="''') _v = VFFSL(SL,"sps_img.KURSSKLAD",True) # '$sps_img.KURSSKLAD' on line 122, col 80 if _v is not None: write(_filter(_v, rawExpr='$sps_img.KURSSKLAD')) # from line 122, col 80. write('''/magnifier.png" border="0"></button> </div></td></tr> </table> <input type="hidden" name="flags" value="R"> </form> </div> <div id="divTblData" style="float:left;position:relative;"> <div id="divTblMaster" style="float:left;position:relative;"></div> <div id="divTblDetail" style="float:left;position:relative;"></div> </div> \t\t ''') ######################################## ## END - generated method body return _dummyTrans and trans.response().getvalue() or ""
def profileData(self, **KWS): ## CHEETAH: generated from #def profileData at line 3, col 1. trans = KWS.get("trans") if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)): trans = self.transaction # is None unless self.awake() was called if not trans: trans = DummyTransaction() _dummyTrans = True else: _dummyTrans = False write = trans.response().write SL = self._CHEETAH__searchList _filter = self._CHEETAH__currentFilter ######################################## ## START - generated method body write(''' <link rel="stylesheet" type="text/css" media="screen" href="/ENGINE/PROFILE/css/passwd.css"> <script> jQuery(document).ready(function() { // \xe7\xe0\xef\xee\xeb\xed\xe5\xed\xe8\xe5 \xf4\xee\xf0\xec\xfb \xef\xe0\xf0\xe0\xec\xe5\xf2\xf0\xe0\xec\xe8 ''') if VFFSL(SL,"varExists",False)('fieldvalues'): # generated from line 8, col 17 for field, val in VFN(VFFSL(SL,"fieldvalues",True),"items",False)(): # generated from line 9, col 21 write(''' jQuery("#''') _v = VFFSL(SL,"field",True) # '$field' on line 10, col 35 if _v is not None: write(_filter(_v, rawExpr='$field')) # from line 10, col 35. write('''").val("''') _v = VFFSL(SL,"val",True) # '$val' on line 10, col 49 if _v is not None: write(_filter(_v, rawExpr='$val')) # from line 10, col 49. write('''"); ''') write(''' // \xf1\xee\xee\xe1\xf9\xe5\xed\xe8\xff \xee\xe1 \xee\xf8\xe8\xe1\xea\xe0\xf5 ''') if VFFSL(SL,"varExists",False)('fields'): # generated from line 14, col 17 for field in VFFSL(SL,"fields",True): # generated from line 15, col 21 write(''' jQuery("#''') _v = VFFSL(SL,"field.name",True) # '$field.name' on line 16, col 35 if _v is not None: write(_filter(_v, rawExpr='$field.name')) # from line 16, col 35. write('''").after("<div class=\'errormsg\'>''') _v = VFFSL(SL,"field.errmes",True) # '$field.errmes' on line 16, col 78 if _v is not None: write(_filter(_v, rawExpr='$field.errmes')) # from line 16, col 78. write('''</div>"); ''') write(''' }); </script> ''') if VFFSL(SL,"varExists",False)('success') and VFFSL(SL,"success",True): # generated from line 21, col 9 write(""" <div id='success_msg'> """) if False: _('Ваш пароль успешно изменён!') _v = VFFSL(SL,"_",False)('Ваш пароль успешно изменён!') # "$_('\xc2\xe0\xf8 \xef\xe0\xf0\xee\xeb\xfc \xf3\xf1\xef\xe5\xf8\xed\xee \xe8\xe7\xec\xe5\xed\xb8\xed!')" on line 23, col 17 if _v is not None: write(_filter(_v, rawExpr="$_('\xc2\xe0\xf8 \xef\xe0\xf0\xee\xeb\xfc \xf3\xf1\xef\xe5\xf8\xed\xee \xe8\xe7\xec\xe5\xed\xb8\xed!')")) # from line 23, col 17. write(''' </div> ''') write(''' <form method="POST" action="changepasswd" name="changepasswd-form"> <div class="changepasswd-block"> <table> <thead> <tr><th colspan="2">''') if False: _('Изменение пароля пользователя') _v = VFFSL(SL,"_",False)('Изменение пароля пользователя') # "$_('\xc8\xe7\xec\xe5\xed\xe5\xed\xe8\xe5 \xef\xe0\xf0\xee\xeb\xff \xef\xee\xeb\xfc\xe7\xee\xe2\xe0\xf2\xe5\xeb\xff')" on line 31, col 45 if _v is not None: write(_filter(_v, rawExpr="$_('\xc8\xe7\xec\xe5\xed\xe5\xed\xe8\xe5 \xef\xe0\xf0\xee\xeb\xff \xef\xee\xeb\xfc\xe7\xee\xe2\xe0\xf2\xe5\xeb\xff')")) # from line 31, col 45. write('''</th></tr> </thead> <tbody> <tr> <td>''') if False: _('Текущий пароль:') _v = VFFSL(SL,"_",False)('Текущий пароль:') # "$_('\xd2\xe5\xea\xf3\xf9\xe8\xe9 \xef\xe0\xf0\xee\xeb\xfc:')" on line 35, col 29 if _v is not None: write(_filter(_v, rawExpr="$_('\xd2\xe5\xea\xf3\xf9\xe8\xe9 \xef\xe0\xf0\xee\xeb\xfc:')")) # from line 35, col 29. write('''</td> <td> <input type="password" value="" size="30" id="oldpasswd" name="oldpasswd"> </td> </tr> ''') self._handleCheetahInclude('../systems/ENGINE/PROFILE/templates/passwd_verify.tmpl', trans=trans, includeFrom="file", raw=False) write(''' </tbody> </table> </div> <input type="SUBMIT" value="''') if False: _('Изменить пароль') _v = VFFSL(SL,"_",False)('Изменить пароль') # "$_('\xc8\xe7\xec\xe5\xed\xe8\xf2\xfc \xef\xe0\xf0\xee\xeb\xfc')" on line 46, col 41 if _v is not None: write(_filter(_v, rawExpr="$_('\xc8\xe7\xec\xe5\xed\xe8\xf2\xfc \xef\xe0\xf0\xee\xeb\xfc')")) # from line 46, col 41. write('''" name="submitbutton" id="submitbutton"> </form> ''') if VFFSL(SL,"varExists",False)('has_barcode') and VFFSL(SL,"has_barcode",True): # generated from line 48, col 9 write(''' <script type="text/javascript" src="/ENGINE/PROFILE/js/printbc.js"></script> <div id="printbarcode"> <table> <thead> <tr><th colspan="2">''') if False: _('Генерация и печать ШК или QR-кода авторизации') _v = VFFSL(SL,"_",False)('Генерация и печать ШК или QR-кода авторизации') # "$_('\xc3\xe5\xed\xe5\xf0\xe0\xf6\xe8\xff \xe8 \xef\xe5\xf7\xe0\xf2\xfc \xd8\xca \xe8\xeb\xe8 QR-\xea\xee\xe4\xe0 \xe0\xe2\xf2\xee\xf0\xe8\xe7\xe0\xf6\xe8\xe8')" on line 54, col 45 if _v is not None: write(_filter(_v, rawExpr="$_('\xc3\xe5\xed\xe5\xf0\xe0\xf6\xe8\xff \xe8 \xef\xe5\xf7\xe0\xf2\xfc \xd8\xca \xe8\xeb\xe8 QR-\xea\xee\xe4\xe0 \xe0\xe2\xf2\xee\xf0\xe8\xe7\xe0\xf6\xe8\xe8')")) # from line 54, col 45. write('''</th></tr> </thead> <tbody> <tr> <td>''') if False: _('Текущий пароль') _v = VFFSL(SL,"_",False)('Текущий пароль') # "$_('\xd2\xe5\xea\xf3\xf9\xe8\xe9 \xef\xe0\xf0\xee\xeb\xfc')" on line 58, col 29 if _v is not None: write(_filter(_v, rawExpr="$_('\xd2\xe5\xea\xf3\xf9\xe8\xe9 \xef\xe0\xf0\xee\xeb\xfc')")) # from line 58, col 29. write(''':</td> <td> <input type="password" value="" size="30" id="passwdBC" name="passwdBC"> <div class="errormsg"> </div> </td> </tr> </tbody> </table> </div> <div id=\'success_msg_bc\'> </div> <br> <input type="button" value="''') if False: _('Генерировать код') _v = VFFSL(SL,"_",False)('Генерировать код') # "$_('\xc3\xe5\xed\xe5\xf0\xe8\xf0\xee\xe2\xe0\xf2\xfc \xea\xee\xe4')" on line 72, col 41 if _v is not None: write(_filter(_v, rawExpr="$_('\xc3\xe5\xed\xe5\xf0\xe8\xf0\xee\xe2\xe0\xf2\xfc \xea\xee\xe4')")) # from line 72, col 41. write('''" name="genbcbutton" id="genbcbutton"> <input type="button" value="''') if False: _('Распечатать ШК') _v = VFFSL(SL,"_",False)('Распечатать ШК') # "$_('\xd0\xe0\xf1\xef\xe5\xf7\xe0\xf2\xe0\xf2\xfc \xd8\xca')" on line 73, col 41 if _v is not None: write(_filter(_v, rawExpr="$_('\xd0\xe0\xf1\xef\xe5\xf7\xe0\xf2\xe0\xf2\xfc \xd8\xca')")) # from line 73, col 41. write('''" name="prnbcbutton" id="prnbcbutton"> <input type="button" value="''') if False: _('Распечатать QR-код') _v = VFFSL(SL,"_",False)('Распечатать QR-код') # "$_('\xd0\xe0\xf1\xef\xe5\xf7\xe0\xf2\xe0\xf2\xfc QR-\xea\xee\xe4')" on line 74, col 41 if _v is not None: write(_filter(_v, rawExpr="$_('\xd0\xe0\xf1\xef\xe5\xf7\xe0\xf2\xe0\xf2\xfc QR-\xea\xee\xe4')")) # from line 74, col 41. write('''" name="prnqrbutton" id="prnqrbutton"> ''') ######################################## ## END - generated method body return _dummyTrans and trans.response().getvalue() or ""
def respond(self, trans=None): ## CHEETAH: main method generated for this template if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)): trans = self.transaction # is None unless self.awake() was called if not trans: trans = DummyTransaction() _dummyTrans = True else: _dummyTrans = False write = trans.response().write SL = self._CHEETAH__searchList _filter = self._CHEETAH__currentFilter ######################################## ## START - generated method body write('''<div id="dlgrights_caption">\xd2\xe0\xf0\xe8\xf4 ''') _v = VFFSL(SL, "tar_name", True) # '$tar_name' on line 2, col 35 if _v is not None: write(_filter(_v, rawExpr='$tar_name')) # from line 2, col 35. write('''</div> <table id="dlgrights_rights_tbl" class="full_height"> <thead> <tr> <th>''') if False: _('Система') _v = VFFSL(SL, "_", False)( 'Система' ) # "$_('\xd1\xe8\xf1\xf2\xe5\xec\xe0')" on line 6, col 11 if _v is not None: write(_filter(_v, rawExpr="$_('\xd1\xe8\xf1\xf2\xe5\xec\xe0')") ) # from line 6, col 11. write('''</th> <th>''') if False: _('Назначено') _v = VFFSL(SL, "_", False)( 'Назначено' ) # "$_('\xcd\xe0\xe7\xed\xe0\xf7\xe5\xed\xee')" on line 7, col 11 if _v is not None: write( _filter(_v, rawExpr="$_('\xcd\xe0\xe7\xed\xe0\xf7\xe5\xed\xee')") ) # from line 7, col 11. write('''</th> </tr> </thead> <tbody> ''') for right in VFFSL(SL, "rights", True): # generated from line 11, col 5 write(''' <tr id="dlgrights_''') _v = VFFSL(SL, "right.ID_SYSTEM", True) # '${right.ID_SYSTEM}' on line 12, col 25 if _v is not None: write(_filter( _v, rawExpr='${right.ID_SYSTEM}')) # from line 12, col 25. write('''" higher="''') _v = VFFSL(SL, "right.HIGHER_OUT", True) # '$right.HIGHER_OUT' on line 12, col 53 if _v is not None: write(_filter( _v, rawExpr='$right.HIGHER_OUT')) # from line 12, col 53. write('''"> <td id="dlgrights_show_name_''') _v = VFFSL(SL, "right.ID_SYSTEM", True) # '${right.ID_SYSTEM}' on line 13, col 37 if _v is not None: write(_filter( _v, rawExpr='${right.ID_SYSTEM}')) # from line 13, col 37. write('''" class="hal">''') _v = VFFSL(SL, "right.SPACES", True) # '${right.SPACES}' on line 13, col 69 if _v is not None: write(_filter( _v, rawExpr='${right.SPACES}')) # from line 13, col 69. _v = VFFSL(SL, "right.SHOW_NAME", True) # '${right.SHOW_NAME}' on line 13, col 84 if _v is not None: write(_filter( _v, rawExpr='${right.SHOW_NAME}')) # from line 13, col 84. write('''</td> <td id="dlgrights_lastdate_''') _v = VFFSL(SL, "right.ID_SYSTEM", True) # '${right.ID_SYSTEM}' on line 14, col 36 if _v is not None: write(_filter( _v, rawExpr='${right.ID_SYSTEM}')) # from line 14, col 36. write('''">''') _v = VFFSL(SL, "right.LASTDATE", True) # '$right.LASTDATE' on line 14, col 56 if _v is not None: write(_filter( _v, rawExpr='$right.LASTDATE')) # from line 14, col 56. write('''</td> </tr> ''') write(''' </tbody> </table> <div class="buttons save footer_btns"> <button type="button" id="dlgrights_save_btn"><img src="/ENGINE/images/actions/accept.png" alt=""/> ''' ) if False: _('Закрыть') _v = VFFSL(SL, "_", False)( 'Закрыть' ) # "$_('\xc7\xe0\xea\xf0\xfb\xf2\xfc')" on line 20, col 108 if _v is not None: write(_filter(_v, rawExpr="$_('\xc7\xe0\xea\xf0\xfb\xf2\xfc')") ) # from line 20, col 108. write('''</button> </div> ''') ######################################## ## END - generated method body return _dummyTrans and trans.response().getvalue() or ""
def respond(self, trans=None): ## CHEETAH: main method generated for this template if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)): trans = self.transaction # is None unless self.awake() was called if not trans: trans = DummyTransaction() _dummyTrans = True else: _dummyTrans = False write = trans.response().write SL = self._CHEETAH__searchList _filter = self._CHEETAH__currentFilter ######################################## ## START - generated method body write('''<form id="dlgadd_form" class="full_height"> <table style=\'width: 100%\'> <tr><th>\xd0\xe0\xe7\xf0\xe0\xe1\xee\xf2\xf7\xe8\xea</th><td> <select id=\'dlgadd_develId_cmb\' title=\'\xd0\xe0\xe7\xf0\xe0\xe1\xee\xf2\xf7\xe8\xea\'> ''') if VFFSL(SL, "varExists", False)('$datalist'): # generated from line 6, col 13 if VFFSL(SL, "datalist", True): # generated from line 7, col 17 for item in VFFSL(SL, "datalist", True): # generated from line 8, col 21 # #if str($develId) == str($item.DEVEL_ID) # #set $selected = ' selected = "selected" ' # #else # #set $selected = ' ' # #end if # <option $selected value= '$item.DEVEL_ID'>$item.DEVEL_FIO</option> # write(""" <option value= '""") _v = VFFSL(SL, "item.DEVEL_ID", True) # '$item.DEVEL_ID' on line 16, col 41 if _v is not None: write(_filter( _v, rawExpr='$item.DEVEL_ID')) # from line 16, col 41. write("""'>""") _v = VFFSL(SL, "item.DEVEL_FIO", True) # '$item.DEVEL_FIO' on line 16, col 57 if _v is not None: write(_filter(_v, rawExpr='$item.DEVEL_FIO') ) # from line 16, col 57. write('''</option> ''') write(""" </select> </td></tr> <tr><th>\xc1\xc4</th><td> <select id='dlgadd_idBase_cmb' title='\xc1\xc4'> """) if VFFSL(SL, "varExists", False)('$dbs'): # generated from line 24, col 13 if VFFSL(SL, "dbs", True): # generated from line 25, col 17 for item in VFFSL(SL, "dbs", True): # generated from line 26, col 21 write(""" <option value= '""") _v = VFFSL(SL, "item.ID_BASE", True) # '$item.ID_BASE' on line 27, col 41 if _v is not None: write(_filter( _v, rawExpr='$item.ID_BASE')) # from line 27, col 41. write("""'>""") _v = VFFSL(SL, "item.DB_NAME", True) # '$item.DB_NAME' on line 27, col 56 if _v is not None: write(_filter( _v, rawExpr='$item.DB_NAME')) # from line 27, col 56. write('''</option> ''') write(''' </select> </td></tr> <tr><th>\xcf\xf0\xe8\xf7\xe8\xed\xe0</th><td><input id="dlgadd_reason_edt" name="dlgadd_reason_edt" type="text" style=\'width: 100%\' value=""></td></tr> <tr><th>\xcf\xe5\xf0\xec\xe0\xed\xe5\xed\xf2\xed\xfb\xe9</th><td> <input type=\'checkbox\' id=\'dlgadd_perm_chk\' name=\'dlgadd_perm_chk\' title=\'\xcf\xe5\xf0\xec\xe0\xed\xe5\xed\xf2\xed\xfb\xe9\' value=\'1\'/> </td></tr> </table> <br> \xd0\xe0\xe7\xf0\xe5\xf8\xe8\xf2\xfc \xe4\xee\xf1\xf2\xf3\xef \xf1\xee \xf1\xeb\xe5\xe4\xf3\xfe\xf9\xe8\xf5 ip-\xe0\xe4\xf0\xe5\xf1\xee\xe2 \xf0\xe0\xe7\xf0\xe0\xe1\xee\xf2\xf7\xe8\xea\xe0 <div id="div_ips"> </div> <br> \xc0 \xf2\xe0\xea\xe6\xe5 \xf0\xe0\xe7\xf0\xe5\xf8\xe8\xf2\xfc \xf1\xeb\xe5\xe4\xf3\xfe\xf9\xe8\xe5 ip-\xe0\xe4\xf0\xe5\xf1\xe0 (\xf0\xe0\xe7\xe4\xe5\xeb\xe8\xf2\xe5\xeb\xfc ,) <input type=\'text\' id=\'dlgadd_custom_ips_edt\' name=\'dlgadd_custom_ips_edt\' style=\'width: 100%\' title=\'\xc4\xee\xef\xee\xeb\xed\xe8\xf2\xe5\xeb\xfc\xed\xee \xf0\xe0\xe7\xf0\xe5\xf8\xb8\xed\xed\xfb\xe5 ip-\xe0\xe4\xf0\xe5\xf1\xe0\' value=\'\'/> </form> <div class="buttons save footer_btns right_aligned_btns"> <button type="button" id="dlgadd_save_btn"><img src="''') _v = VFFSL(SL, "eng_img", True) # '$eng_img' on line 47, col 58 if _v is not None: write(_filter(_v, rawExpr='$eng_img')) # from line 47, col 58. write( '''/actions/accept.png" alt=""/> \xd1\xee\xf5\xf0\xe0\xed\xe8\xf2\xfc</button> <button type="button" id="dlgadd_cancel_btn"><img src="''') _v = VFFSL(SL, "eng_img", True) # '$eng_img' on line 48, col 60 if _v is not None: write(_filter(_v, rawExpr='$eng_img')) # from line 48, col 60. write( '''/actions/cancel.png" alt=""/> \xce\xf2\xec\xe5\xed\xe0</button> </div> ''') ######################################## ## END - generated method body return _dummyTrans and trans.response().getvalue() or ""
def palInfo(self, **KWS): ## CHEETAH: generated from #block palInfo at line 12, col 3. trans = KWS.get("trans") if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)): trans = self.transaction # is None unless self.awake() was called if not trans: trans = DummyTransaction() _dummyTrans = True else: _dummyTrans = False write = trans.response().write SL = self._CHEETAH__searchList _filter = self._CHEETAH__currentFilter ######################################## ## START - generated method body if VFFSL(SL, "P_FEATUREID", True): # generated from line 13, col 5 if VFFSL(SL, "S_PALFEATUREID", True) != VFFSL( SL, "P_FEATUREID", True): # generated from line 14, col 9 write(''' <font class="yellow">''') _v = VFFSL(SL, "P_FEATURENAME", True) # '$P_FEATURENAME' on line 15, col 34 if _v is not None: write(_filter( _v, rawExpr='$P_FEATURENAME')) # from line 15, col 34. write('''</font> ''') else: # generated from line 16, col 9 write(''' ''') _v = VFFSL(SL, "P_FEATURENAME", True) # '$P_FEATURENAME' on line 17, col 13 if _v is not None: write(_filter( _v, rawExpr='$P_FEATURENAME')) # from line 17, col 13. write(''' ''') write(''' <br> ''') if VFFSL(SL, "varExists", False)('$P_NUM') and VFFSL( SL, "P_NUM", True): # generated from line 21, col 2 write('''\t\t<b><u>''') _v = VFFSL(SL, "P_NUM", True) # '$P_NUM' on line 22, col 9 if _v is not None: write(_filter(_v, rawExpr='$P_NUM')) # from line 22, col 9. write('''</u></b>(''') _v = VFFSL(SL, "P_SNAME", True) # '$P_SNAME' on line 22, col 24 if _v is not None: write(_filter(_v, rawExpr='$P_SNAME')) # from line 22, col 24. write(''') ''') else: # generated from line 23, col 2 write('''\t <b>''') _v = VFFSL(SL, "P_SNAME", True) # '$P_SNAME' on line 24, col 9 if _v is not None: write(_filter(_v, rawExpr='$P_SNAME')) # from line 24, col 9. write('''</b> ''') write('''\t<br> <b>(''') _v = VFFSL(SL, "W_CODE", True) # '$W_CODE' on line 27, col 9 if _v is not None: write(_filter(_v, rawExpr='$W_CODE')) # from line 27, col 9. write(''')</b> ''') _v = VFFSL(SL, "W_NAME", True) # '$W_NAME' on line 27, col 22 if _v is not None: write(_filter(_v, rawExpr='$W_NAME')) # from line 27, col 22. write(''' ''') if VFFSL(SL, "varExists", False)('$W_SNAME') and VFFSL( SL, "W_SNAME", True): # generated from line 28, col 5 write(''' <br>''') if False: _('МО') _v = VFFSL(SL, "_", False)('МО') # "$_('\xcc\xce')" on line 29, col 13 if _v is not None: write(_filter( _v, rawExpr="$_('\xcc\xce')")) # from line 29, col 13. write(''': ''') _v = VFFSL(SL, "W_SNAME", True) # '$W_SNAME' on line 29, col 23 if _v is not None: write(_filter(_v, rawExpr='$W_SNAME')) # from line 29, col 23. write(''' ''') write(''' <br> ''') if False: _('На паллете') _v = VFFSL(SL, "_", False)( 'На паллете' ) # "$_('\xcd\xe0 \xef\xe0\xeb\xeb\xe5\xf2\xe5')" on line 32, col 5 if _v is not None: write( _filter(_v, rawExpr="$_('\xcd\xe0 \xef\xe0\xeb\xeb\xe5\xf2\xe5')") ) # from line 32, col 5. write(''': ''') _v = VFFSL(SL, "viewQuantity", False)( VFFSL(SL, "P_WQ", True), VFFSL(SL, "W_VUFACTOR", True), VFFSL(SL, "W_VUCODE", True), VFFSL(SL, "W_MUFACTOR", True), VFFSL(SL, "W_MUCODE", True) ) # '$viewQuantity($P_WQ,$W_VUFACTOR,$W_VUCODE,$W_MUFACTOR,$W_MUCODE)' on line 32, col 23 if _v is not None: write( _filter( _v, rawExpr= '$viewQuantity($P_WQ,$W_VUFACTOR,$W_VUCODE,$W_MUFACTOR,$W_MUCODE)' )) # from line 32, col 23. write(''' (<b><u>''') _v = VFFSL(SL, "Quantity", False)(VFFSL(SL, "P_WQ", True)) # '$Quantity($P_WQ)' on line 32, col 95 if _v is not None: write(_filter(_v, rawExpr='$Quantity($P_WQ)')) # from line 32, col 95. write('''</u></b>)<br> <b>''') _v = VFFSL(SL, "TimeStampToDate", False)(VFFSL( SL, "W_PRODUCTDATE", True)) # '$TimeStampToDate($W_PRODUCTDATE)' on line 33, col 8 if _v is not None: write(_filter(_v, rawExpr='$TimeStampToDate($W_PRODUCTDATE)') ) # from line 33, col 8. write('''</b> - ''') _v = VFFSL(SL, "TimeStampToDate", False)(VFFSL( SL, "W_BESTBEFOREDATE", True)) # '$TimeStampToDate($W_BESTBEFOREDATE)' on line 33, col 47 if _v is not None: write(_filter(_v, rawExpr='$TimeStampToDate($W_BESTBEFOREDATE)') ) # from line 33, col 47. write(''' <hr> ''') ######################################## ## END - generated method body return _dummyTrans and trans.response().getvalue() or ""
def stackInfo(self, **KWS): ## CHEETAH: generated from #block stackInfo at line 37, col 3. trans = KWS.get("trans") if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)): trans = self.transaction # is None unless self.awake() was called if not trans: trans = DummyTransaction() _dummyTrans = True else: _dummyTrans = False write = trans.response().write SL = self._CHEETAH__searchList _filter = self._CHEETAH__currentFilter ######################################## ## START - generated method body if VFFSL(SL, "S_PALFEATUREID", True): # generated from line 38, col 5 if VFFSL(SL, "S_PALFEATUREID", True) != VFFSL( SL, "P_FEATUREID", True): # generated from line 39, col 9 write(''' <font class="yellow">''') _v = VFFSL(SL, "S_PALFEATURENAME", True) # '$S_PALFEATURENAME' on line 40, col 34 if _v is not None: write(_filter( _v, rawExpr='$S_PALFEATURENAME')) # from line 40, col 34. write('''</font> ''') else: # generated from line 41, col 9 write(''' ''') _v = VFFSL(SL, "S_PALFEATURENAME", True) # '$S_PALFEATURENAME' on line 42, col 13 if _v is not None: write(_filter( _v, rawExpr='$S_PALFEATURENAME')) # from line 42, col 13. write(''' ''') write(''' <br> ''') write(''' <b>''') _v = VFFSL(SL, "S_NAME", True) # '$S_NAME' on line 47, col 8 if _v is not None: write(_filter(_v, rawExpr='$S_NAME')) # from line 47, col 8. write('''</b> ''') if VFFSL(SL, "S_MODELID", True): # generated from line 48, col 5 write(''' (''') _v = VFFSL(SL, "S_PALCURCNT", True) # '$S_PALCURCNT' on line 49, col 10 if _v is not None: write(_filter(_v, rawExpr='$S_PALCURCNT')) # from line 49, col 10. write(''' / ''') _v = VFFSL(SL, "S_PALMAXCNT", True) # '$S_PALMAXCNT' on line 49, col 25 if _v is not None: write(_filter(_v, rawExpr='$S_PALMAXCNT')) # from line 49, col 25. write(''') <br> ''') _v = VFFSL(SL, "S_PALNUM", True) # '$S_PALNUM' on line 50, col 9 if _v is not None: write(_filter(_v, rawExpr='$S_PALNUM')) # from line 50, col 9. write(''' <br> ''') write(''' <hr> ''') ######################################## ## END - generated method body return _dummyTrans and trans.response().getvalue() or ""
def mainData(self, **KWS): ## CHEETAH: generated from #def mainData at line 4, col 1. trans = KWS.get("trans") if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)): trans = self.transaction # is None unless self.awake() was called if not trans: trans = DummyTransaction() _dummyTrans = True else: _dummyTrans = False write = trans.response().write SL = self._CHEETAH__searchList _filter = self._CHEETAH__currentFilter ######################################## ## START - generated method body write(''' ''') _v = VFFSL(SL, "ZONENAME", True) # '$ZONENAME' on line 5, col 5 if _v is not None: write(_filter(_v, rawExpr='$ZONENAME')) # from line 5, col 5. write('''</br> <b>\xb9''') _v = VFFSL(SL, "TID", True) # '$TID' on line 6, col 9 if _v is not None: write(_filter(_v, rawExpr='$TID')) # from line 6, col 9. write('''</b>(''') _v = VFFSL(SL, "ALGORITHM", True) # '$ALGORITHM' on line 6, col 18 if _v is not None: write(_filter(_v, rawExpr='$ALGORITHM')) # from line 6, col 18. write(''') <br> <br> \t<form action="taskA"> <input type="hidden" value="''') _v = VFFSL(SL, "TID", True) # '$TID' on line 10, col 37 if _v is not None: write(_filter(_v, rawExpr='$TID')) # from line 10, col 37. write('''" name="tid"> ''') if False: _('ьй') _v = VFFSL(SL, "_", False)('ьй') # "$_('\xd8\xca')" on line 11, col 9 if _v is not None: write(_filter(_v, rawExpr="$_('\xd8\xca')")) # from line 11, col 9. write( ''': <input type="text" id=":scan:text" name="barcode" title="''') if False: _('ло') _v = VFFSL(SL, "_", False)('ло') # "$_('\xcc\xcf')" on line 11, col 76 if _v is not None: write(_filter(_v, rawExpr="$_('\xcc\xcf')")) # from line 11, col 76. write('''" /> \t</form> ''') ######################################## ## END - generated method body return _dummyTrans and trans.response().getvalue() or ""
def mainData(self, **KWS): ## CHEETAH: generated from #def mainData at line 5, col 1. trans = KWS.get("trans") if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)): trans = self.transaction # is None unless self.awake() was called if not trans: trans = DummyTransaction() _dummyTrans = True else: _dummyTrans = False write = trans.response().write SL = self._CHEETAH__searchList _filter = self._CHEETAH__currentFilter ######################################## ## START - generated method body write(''' <b><u>''') _v = VFFSL(SL, "FROMNAME", True) # '$FROMNAME' on line 7, col 10 if _v is not None: write(_filter(_v, rawExpr='$FROMNAME')) # from line 7, col 10. write('''</u></b><br> <b>''') _orig_filter_84914998 = _filter filterName = 'DateFilter' if self._CHEETAH__filters.has_key("DateFilter"): _filter = self._CHEETAH__currentFilter = self._CHEETAH__filters[ filterName] else: _filter = self._CHEETAH__currentFilter = \ self._CHEETAH__filters[filterName] = getattr(self._CHEETAH__filtersLib, filterName)(self).filter _v = VFFSL(SL, "DOCDATE", True) # '$DOCDATE' on line 8, col 25 if _v is not None: write(_filter(_v, rawExpr='$DOCDATE')) # from line 8, col 25. _filter = _orig_filter_84914998 write('''</b> \xb9<b>''') _v = VFFSL(SL, "DOCNUM", True) # '$DOCNUM' on line 8, col 54 if _v is not None: write(_filter(_v, rawExpr='$DOCNUM')) # from line 8, col 54. write("""</b> <hr> <form action='taskBL' name=frm> <input type=hidden name=tid value=""") _v = VFFSL(SL, "TID", True) # '$TID' on line 11, col 39 if _v is not None: write(_filter(_v, rawExpr='$TID')) # from line 11, col 39. write('''> <table> <thead> <tr> <th>''') if False: _('Код') _v = VFFSL(SL, "_", False)('Код') # "$_('\xca\xee\xe4')" on line 15, col 21 if _v is not None: write(_filter( _v, rawExpr="$_('\xca\xee\xe4')")) # from line 15, col 21. write('''</th> <th>%</th> <th>''') if False: _('Док') _v = VFFSL(SL, "_", False)('Док') # "$_('\xc4\xee\xea')" on line 17, col 21 if _v is not None: write(_filter( _v, rawExpr="$_('\xc4\xee\xea')")) # from line 17, col 21. write('''</th> <th>+</th> </tr> </thead> <tbody> ''') for item in VFFSL(SL, "datalist", True): # generated from line 22, col 9 if VFFSL(SL, "item.QFACT", True): # generated from line 23, col 13 qFact = float(VFFSL(SL, "item.QFACT", True)) else: # generated from line 25, col 13 qFact = 0.0000 write(''' ''') if VFFSL(SL, "item.PERCENTBL", True): # generated from line 29, col 13 qDoc = VFFSL(SL, "qFact", True) - VFFSL(SL, "qFact", True) * float( VFFSL(SL, "item.PERCENTBL", True)) / 100.000 else: # generated from line 31, col 13 qDoc = VFFSL(SL, "qFact", True) qAdd = VFFSL(SL, "qFact", True) - VFFSL(SL, "qDoc", True) write(''' <tr id=tr''') _v = VFFSL(SL, "item.WID", True) # '$item.WID' on line 35, col 22 if _v is not None: write(_filter(_v, rawExpr='$item.WID')) # from line 35, col 22. write('''> <td><b>''') _v = VFFSL(SL, "item.WCODE", True) # '$item.WCODE' on line 36, col 24 if _v is not None: write(_filter(_v, rawExpr='$item.WCODE')) # from line 36, col 24. write('''</b></td> <td><input title="''') _v = VFN(VFFSL(SL, "item.WNAME", True), "replace", False)( '"', "'") # '$item.WNAME.replace(\'"\',"\'")' on line 37, col 35 if _v is not None: write(_filter(_v, rawExpr='$item.WNAME.replace(\'"\',"\'")') ) # from line 37, col 35. write('''" type=text id="w''') _v = VFFSL(SL, "item.WID", True) # '$item.WID' on line 37, col 80 if _v is not None: write(_filter(_v, rawExpr='$item.WID')) # from line 37, col 80. write('''::float" name=w''') _v = VFFSL(SL, "item.WID", True) # '$item.WID' on line 37, col 104 if _v is not None: write(_filter(_v, rawExpr='$item.WID')) # from line 37, col 104. write(''' value="''') _v = VFFSL(SL, "item.PERCENTBL", True) # '$item.PERCENTBL' on line 37, col 121 if _v is not None: write(_filter( _v, rawExpr='$item.PERCENTBL')) # from line 37, col 121. write('''" size=2 onchange="chgPercent(''') _v = VFFSL(SL, "item.WID", True) # '$item.WID' on line 37, col 166 if _v is not None: write(_filter(_v, rawExpr='$item.WID')) # from line 37, col 166. write(''');"></td> <td>''') _orig_filter_45239442 = _filter filterName = 'Quantity' if self._CHEETAH__filters.has_key("Quantity"): _filter = self._CHEETAH__currentFilter = self._CHEETAH__filters[ filterName] else: _filter = self._CHEETAH__currentFilter = \ self._CHEETAH__filters[filterName] = getattr(self._CHEETAH__filtersLib, filterName)(self).filter _v = VFFSL(SL, "qDoc", True) # '$qDoc' on line 38, col 37 if _v is not None: write(_filter(_v, rawExpr='$qDoc')) # from line 38, col 37. _filter = _orig_filter_45239442 write('''</td> <td>''') _orig_filter_14032829 = _filter filterName = 'Quantity' if self._CHEETAH__filters.has_key("Quantity"): _filter = self._CHEETAH__currentFilter = self._CHEETAH__filters[ filterName] else: _filter = self._CHEETAH__currentFilter = \ self._CHEETAH__filters[filterName] = getattr(self._CHEETAH__filtersLib, filterName)(self).filter _v = VFFSL(SL, "qAdd", True) # '$qAdd' on line 39, col 37 if _v is not None: write(_filter(_v, rawExpr='$qAdd')) # from line 39, col 37. _filter = _orig_filter_14032829 write('''</td> </tr> ''') write(''' </tbody> </table> ''') if len(VFFSL(SL, "datalist", True)) > 0: # generated from line 44, col 7 write(''' <hr> <a href="javascript: if (confirm(\'''') if False: _('Вы уверены?') _v = VFFSL(SL, "_", False)( 'Вы уверены?' ) # "$_('\xc2\xfb \xf3\xe2\xe5\xf0\xe5\xed\xfb?')" on line 46, col 43 if _v is not None: write( _filter( _v, rawExpr="$_('\xc2\xfb \xf3\xe2\xe5\xf0\xe5\xed\xfb?')" )) # from line 46, col 43. write('''\')) document.frm.submit();">''') if False: _('Сохранить') _v = VFFSL(SL, "_", False)( 'Сохранить' ) # "$_('\xd1\xee\xf5\xf0\xe0\xed\xe8\xf2\xfc')" on line 46, col 89 if _v is not None: write( _filter( _v, rawExpr="$_('\xd1\xee\xf5\xf0\xe0\xed\xe8\xf2\xfc')") ) # from line 46, col 89. write('''</a> ''') write(''' </form> <script language="javascript" src="''') _v = VFFSL(SL, "sps_js.KURSTERM", True) # '$sps_js.KURSTERM' on line 50, col 40 if _v is not None: write(_filter(_v, rawExpr='$sps_js.KURSTERM')) # from line 50, col 40. write('''/term.formats.js"></script> <script language="javascript"> function tdFromTr(tr,tdIndex){ var childNodes = tr.childNodes; var ind = 0; for (var i=0; i<childNodes.length; i++){ var nodeI = childNodes[i]; if (nodeI.nodeName == \'TD\'){ if (ind==tdIndex) return nodeI; ind++; } } } function qDoc(tr,val){ var td = tdFromTr(tr,2); if (val || typeof val != \'undefined\') td.innerHTML = (val ? val : \'0\'); return td.innerHTML; } function qAdd(tr,val){ var td = tdFromTr(tr,3); if (val || typeof val != \'undefined\') td.innerHTML = (val ? val : \'0\'); return td.innerHTML; } function chgPercent(wid){ var tr = document.getElementById(\'tr\'+wid); var per = kFloat(document.getElementById(\'w\'+wid+\'::float\').value); var qfact = kFloat(qDoc(tr)) + kFloat(qAdd(tr)); var qdoc = qfact - qfact*per/100.000; var qadd = qfact - qdoc; qDoc(tr,kNumber(qdoc)); qAdd(tr,kNumber(qadd)); } </script> ''') ######################################## ## END - generated method body return _dummyTrans and trans.response().getvalue() or ""
def respond(self, trans=None): ## CHEETAH: main method generated for this template if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)): trans = self.transaction # is None unless self.awake() was called if not trans: trans = DummyTransaction() _dummyTrans = True else: _dummyTrans = False write = trans.response().write SL = self._CHEETAH__searchList _filter = self._CHEETAH__currentFilter ######################################## ## START - generated method body write('''<div class="full_height"> <div id="dlgrights_caption"></div> <br/> <table id="dlgrights_rights_tbl"> <thead> <tr> <th>''') if False: _('Система') _v = VFFSL(SL,"_",False)('Система') # "$_('\xd1\xe8\xf1\xf2\xe5\xec\xe0')" on line 9, col 13 if _v is not None: write(_filter(_v, rawExpr="$_('\xd1\xe8\xf1\xf2\xe5\xec\xe0')")) # from line 9, col 13. write('''</th> <th>''') if False: _('Право') _v = VFFSL(SL,"_",False)('Право') # "$_('\xcf\xf0\xe0\xe2\xee')" on line 10, col 13 if _v is not None: write(_filter(_v, rawExpr="$_('\xcf\xf0\xe0\xe2\xee')")) # from line 10, col 13. write('''</th> <th>''') if False: _('Изменено') _v = VFFSL(SL,"_",False)('Изменено') # "$_('\xc8\xe7\xec\xe5\xed\xe5\xed\xee')" on line 11, col 13 if _v is not None: write(_filter(_v, rawExpr="$_('\xc8\xe7\xec\xe5\xed\xe5\xed\xee')")) # from line 11, col 13. write('''</th> </tr> </thead> <tbody> </tbody> </table> </div> <div class="buttons save footer_btns"> ''') if layersIsUse(): # generated from line 19, col 1 write(''' <input id=\'cbShowAll\' type="checkbox" ''') if VFFSL(SL,"show_all",True) is not None and VFFSL(SL,"show_all",True) != 0: # generated from line 21, col 9 write(''' checked ''') write(""" /><label for ='cbShowAll'>""") if False: _('Показать все') _v = VFFSL(SL,"_",False)('Показать все') # "$_('\xcf\xee\xea\xe0\xe7\xe0\xf2\xfc \xe2\xf1\xe5')" on line 24, col 31 if _v is not None: write(_filter(_v, rawExpr="$_('\xcf\xee\xea\xe0\xe7\xe0\xf2\xfc \xe2\xf1\xe5')")) # from line 24, col 31. write('''</label> ''') write(''' <button type="button" id="dlgrights_save_btn"><img src="/ENGINE/images/actions/accept.png" alt=""/> OK</button> </div> ''') ######################################## ## END - generated method body return _dummyTrans and trans.response().getvalue() or ""
def searchData(self, **KWS): ## CHEETAH: generated from #def searchData at line 4, col 1. trans = KWS.get("trans") if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)): trans = self.transaction # is None unless self.awake() was called if not trans: trans = DummyTransaction() _dummyTrans = True else: _dummyTrans = False write = trans.response().write SL = self._CHEETAH__searchList _filter = self._CHEETAH__currentFilter ######################################## ## START - generated method body # Styles write('''<link rel="shortcut icon" href="''') _v = VFFSL(SL, "sp_img", True) # '$sp_img' on line 6, col 33 if _v is not None: write(_filter(_v, rawExpr='$sp_img')) # from line 6, col 33. write('''/favicon.png"> <style> #updatenews{ margin-top:60px; } input.Date{ width: 80px } </style> ''') # Scripts write('''<script type="text/javascript" src="''') _v = VFFSL(SL, "eng_js", True) # '$eng_js' on line 17, col 37 if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 17, col 37. write('''/ui.dialog.min.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL, "eng_js", True) # '$eng_js' on line 18, col 37 if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 18, col 37. write('''/kTblScroll.min.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL, "eng_js", True) # '$eng_js' on line 19, col 37 if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 19, col 37. write('''/kScrollableToDown.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL, "eng_js", True) # '$eng_js' on line 20, col 37 if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 20, col 37. write('''/ui.datepicker.min.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL, "eng_js", True) # '$eng_js' on line 21, col 37 if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 21, col 37. write('''/i18n/ui.datepicker-ru.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL, "sp_js", True) # '$sp_js' on line 22, col 37 if _v is not None: write(_filter(_v, rawExpr='$sp_js')) # from line 22, col 37. write('''/updatenews.js"></script> <div id = "div-filter"> <div class="period"> <b>\xcf\xe5\xf0\xe8\xee\xe4 \xf1</b> <input id=\'dbeg\' class=\'Date\'/> <b> \xef\xee </b> <input id=\'dend\' class=\'Date\'/> <a href = "#" id = "idgo"><img src="''') _v = VFFSL(SL, "sps_img.KURS", True) # '$sps_img.KURS' on line 29, col 49 if _v is not None: write(_filter(_v, rawExpr='$sps_img.KURS')) # from line 29, col 49. write( '''/go.png" title="\xc7\xe0\xe3\xf0\xf3\xe7\xe8\xf2\xfc \xed\xe0 \xfd\xea\xf0\xe0\xed" border="0" /></a> </div> </div> ''') ######################################## ## END - generated method body return _dummyTrans and trans.response().getvalue() or ""
def mainData(self, **KWS): ## CHEETAH: generated from #def mainData at line 4, col 1. trans = KWS.get("trans") if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)): trans = self.transaction # is None unless self.awake() was called if not trans: trans = DummyTransaction() _dummyTrans = True else: _dummyTrans = False write = trans.response().write SL = self._CHEETAH__searchList _filter = self._CHEETAH__currentFilter ######################################## ## START - generated method body if VFFSL(SL, "varExists", False)('$use_wlnumber') and VFFSL( SL, "use_wlnumber", True): # generated from line 5, col 5 write(''' <script language="javascript" src="''') _v = VFFSL(SL, "sps_js.KURSTERM", True) # '$sps_js.KURSTERM' on line 6, col 44 if _v is not None: write(_filter( _v, rawExpr='$sps_js.KURSTERM')) # from line 6, col 44. write('''/request.js"></script> <script language="javascript" src="''') _v = VFFSL(SL, "sps_js.KURSTERM", True) # '$sps_js.KURSTERM' on line 7, col 44 if _v is not None: write(_filter( _v, rawExpr='$sps_js.KURSTERM')) # from line 7, col 44. write('''/wlnumber.js"></script> ''') write(''' <b>''') _v = VFFSL(SL, "FROMNAME", True) # '$FROMNAME' on line 10, col 7 if _v is not None: write(_filter(_v, rawExpr='$FROMNAME')) # from line 10, col 7. write('''</b><br> <b>''') _v = VFFSL(SL, "TONAME", True) # '$TONAME' on line 11, col 7 if _v is not None: write(_filter(_v, rawExpr='$TONAME')) # from line 11, col 7. write('''</b><br> <b>''') _orig_filter_34032284 = _filter filterName = 'DateFilter' if self._CHEETAH__filters.has_key("DateFilter"): _filter = self._CHEETAH__currentFilter = self._CHEETAH__filters[ filterName] else: _filter = self._CHEETAH__currentFilter = \ self._CHEETAH__filters[filterName] = getattr(self._CHEETAH__filtersLib, filterName)(self).filter _v = VFFSL(SL, "DOCDATE", True) # '$DOCDATE' on line 12, col 25 if _v is not None: write(_filter(_v, rawExpr='$DOCDATE')) # from line 12, col 25. _filter = _orig_filter_34032284 write('''</b> \xb9<b>''') _v = VFFSL(SL, "DOCNUM", True) # '$DOCNUM' on line 12, col 54 if _v is not None: write(_filter(_v, rawExpr='$DOCNUM')) # from line 12, col 54. write('''</b><br> <b>(<u>''') _v = VFFSL(SL, "WCODE", True) # '$WCODE' on line 13, col 12 if _v is not None: write(_filter(_v, rawExpr='$WCODE')) # from line 13, col 12. write('''</u>) </b> ''') _v = VFFSL(SL, "WNAME", True) # '$WNAME' on line 13, col 29 if _v is not None: write(_filter(_v, rawExpr='$WNAME')) # from line 13, col 29. write(''' ''') if VFFSL(SL, "varExists", False)('$last') and VFFSL( SL, "last", True) is not None: # generated from line 14, col 5 write(''' <br><b>''') _v = VFFSL(SL, "last", True) # '$last' on line 15, col 16 if _v is not None: write(_filter(_v, rawExpr='$last')) # from line 15, col 16. write('''</b> ''') if VFFSL(SL, "varExists", False)('$twid'): # generated from line 17, col 5 write(''' <table> <thead> <tr> <th>''') if False: _('План') _v = VFFSL(SL, "_", False)( 'План') # "$_('\xcf\xeb\xe0\xed')" on line 21, col 25 if _v is not None: write(_filter( _v, rawExpr="$_('\xcf\xeb\xe0\xed')")) # from line 21, col 25. write('''</th> <th>''') if False: _('Факт') _v = VFFSL(SL, "_", False)( 'Факт') # "$_('\xd4\xe0\xea\xf2')" on line 22, col 25 if _v is not None: write(_filter( _v, rawExpr="$_('\xd4\xe0\xea\xf2')")) # from line 22, col 25. write('''</th> </tr> </thead> <tbody> <tr> ''') if VFFSL(SL, "qDoc", True) is None: # generated from line 27, col 21 qDoc = 0.000 if VFFSL(SL, "qFact", True) is None: # generated from line 30, col 21 qFact = 0.000 write(''' <td>''') _v = VFFSL(SL, "viewQuantity", False)( VFFSL(SL, "qDoc", True), VFFSL(SL, "VWUFACTOR", True), VFFSL(SL, "VWUCODE", True), VFFSL(SL, "MWUFACTOR", True), VFFSL(SL, "MWUCODE", True) ) # '$viewQuantity($qDoc,$VWUFACTOR,$VWUCODE,$MWUFACTOR,$MWUCODE)' on line 33, col 25 if _v is not None: write( _filter( _v, rawExpr= '$viewQuantity($qDoc,$VWUFACTOR,$VWUCODE,$MWUFACTOR,$MWUCODE)' )) # from line 33, col 25. write(''' (<b><u>''') _orig_filter_18467188 = _filter filterName = 'Quantity' if self._CHEETAH__filters.has_key("Quantity"): _filter = self._CHEETAH__currentFilter = self._CHEETAH__filters[ filterName] else: _filter = self._CHEETAH__currentFilter = \ self._CHEETAH__filters[filterName] = getattr(self._CHEETAH__filtersLib, filterName)(self).filter _v = VFFSL(SL, "qDoc", True) # '$qDoc' on line 33, col 109 if _v is not None: write(_filter(_v, rawExpr='$qDoc')) # from line 33, col 109. _filter = _orig_filter_18467188 write('''</u></b>)</td> <td>''') _v = VFFSL(SL, "viewQuantity", False)( VFFSL(SL, "qFact", True), VFFSL(SL, "VWUFACTOR", True), VFFSL(SL, "VWUCODE", True), VFFSL(SL, "MWUFACTOR", True), VFFSL(SL, "MWUCODE", True) ) # '$viewQuantity($qFact,$VWUFACTOR,$VWUCODE,$MWUFACTOR,$MWUCODE)' on line 34, col 25 if _v is not None: write( _filter( _v, rawExpr= '$viewQuantity($qFact,$VWUFACTOR,$VWUCODE,$MWUFACTOR,$MWUCODE)' )) # from line 34, col 25. write(''' (<b><u>''') _orig_filter_92117038 = _filter filterName = 'Quantity' if self._CHEETAH__filters.has_key("Quantity"): _filter = self._CHEETAH__currentFilter = self._CHEETAH__filters[ filterName] else: _filter = self._CHEETAH__currentFilter = \ self._CHEETAH__filters[filterName] = getattr(self._CHEETAH__filtersLib, filterName)(self).filter _v = VFFSL(SL, "qFact", True) # '$qFact' on line 34, col 110 if _v is not None: write(_filter(_v, rawExpr='$qFact')) # from line 34, col 110. _filter = _orig_filter_92117038 write('''</u></b>)</td> </tbody> </table> <br> ''') write(''' ''') if VFFSL(SL, "varExists", False)('$use_wlnumber') and VFFSL( SL, "use_wlnumber", True): # generated from line 41, col 5 onsubmit = 'onsubmit="javascript: return frmSubmit();"' onblur = 'onblur="chgDate();"' else: # generated from line 44, col 5 onsubmit = '' onblur = '' write(''' <form action="taskWaresLotAdd" name="frm" ''') _v = VFFSL(SL, "onsubmit", True) # '$onsubmit' on line 49, col 47 if _v is not None: write(_filter(_v, rawExpr='$onsubmit')) # from line 49, col 47. write('''> <input type="hidden" name="tid" value="''') _v = VFFSL(SL, "TID", True) # '$TID' on line 50, col 48 if _v is not None: write(_filter(_v, rawExpr='$TID')) # from line 50, col 48. write('''"> <input type="hidden" name="waresid" value="''') _v = VFFSL(SL, "WID", True) # '$WID' on line 51, col 52 if _v is not None: write(_filter(_v, rawExpr='$WID')) # from line 51, col 52. write('''"> ''') # <input type="hidden" name="wuid" value="$WUID"> write( ''' \xc4\xe0\xf2\xe0: <input type="text" name="productdate" id="::date" value="''' ) _v = VFFSL(SL, "productdate", True) # '$productdate' on line 53, col 72 if _v is not None: write(_filter(_v, rawExpr='$productdate')) # from line 53, col 72. write('''" size="6" ''') _v = VFFSL(SL, "onblur", True) # '$onblur' on line 53, col 95 if _v is not None: write(_filter(_v, rawExpr='$onblur')) # from line 53, col 95. write('''></br> <select name="wuid"> ''') for item in VFFSL(SL, "unit", True): # generated from line 55, col 13 write(''' <option value="''') _v = VFFSL(SL, "item.WUID", True) # '$item.WUID' on line 56, col 32 if _v is not None: write(_filter(_v, rawExpr='$item.WUID')) # from line 56, col 32. write('''">''') _v = VFFSL(SL, "item.WUCODE", True) # '$item.WUCODE' on line 56, col 44 if _v is not None: write(_filter(_v, rawExpr='$item.WUCODE')) # from line 56, col 44. write('''</option> ''') write(''' </select> <input type="text" name="q" id=":focus:float" value="''') _orig_filter_86553361 = _filter filterName = 'Quantity' if self._CHEETAH__filters.has_key("Quantity"): _filter = self._CHEETAH__currentFilter = self._CHEETAH__filters[ filterName] else: _filter = self._CHEETAH__currentFilter = \ self._CHEETAH__filters[filterName] = getattr(self._CHEETAH__filtersLib, filterName)(self).filter _v = VFFSL(SL, "q", True) # '$q' on line 59, col 82 if _v is not None: write(_filter(_v, rawExpr='$q')) # from line 59, col 82. _filter = _orig_filter_86553361 write('''" size="6"><br> ''') if VFFSL(SL, "varExists", False)('$use_wlnumber') and VFFSL( SL, "use_wlnumber", True): # generated from line 60, col 3 write(''' <br>\xb9 <select name="wlnumber"></select><br> ''') write(''' <br> ''') if False: _('ШК') _v = VFFSL(SL, "_", False)('ШК') # "$_('\xd8\xca')" on line 64, col 9 if _v is not None: write(_filter(_v, rawExpr="$_('\xd8\xca')")) # from line 64, col 9. write( ''': <input type="text" id="barcode:scan:text" name="barcode" class="scanBarcode" title="''' ) if False: _('МП') _v = VFFSL(SL, "_", False)('МП') # "$_('\xcc\xcf')" on line 64, col 103 if _v is not None: write(_filter(_v, rawExpr="$_('\xcc\xcf')")) # from line 64, col 103. write('''"> <button type="submit">OK</button> </form> ''') if VFFSL(SL, "varExists", False)('$use_wlnumber') and VFFSL( SL, "use_wlnumber", True): # generated from line 68, col 5 write(''' <script> ''') if VFFSL(SL, "varExists", False)('$wlnumber') and VFFSL( SL, "wlnumber", True): # generated from line 70, col 9 write(""" defaultWLNumber = '""") _v = VFFSL(SL, "wlnumber", True) # '$wlnumber' on line 71, col 32 if _v is not None: write(_filter( _v, rawExpr='$wlnumber')) # from line 71, col 32. write("""'; """) write(""" function frmSubmit(){ if (document.frm.wlnumber.disabled){ alert('\xcd\xee\xec\xe5\xf0 \xef\xe0\xf0\xf2\xe8\xe8 \xed\xe5 \xf3\xf1\xf2\xe0\xed\xee\xe2\xeb\xe5\xed, \xee\xe6\xe8\xe4\xe0\xe9\xf2\xe5 \xee\xea\xee\xed\xf7\xe0\xed\xe8\xff \xe7\xe0\xef\xee\xeb\xed\xe5\xed\xe8\xff \xf1\xef\xe8\xf1\xea\xe0 \xe4\xeb\xff \xe2\xfb\xe1\xee\xf0\xe0!'); document.frm.sbarcode.value = ''; return false; } else if (!document.frm.wlnumber.value){ alert('\xcd\xee\xec\xe5\xf0 \xef\xe0\xf0\xf2\xe8\xe8 \xed\xe5 \xf3\xf1\xf2\xe0\xed\xee\xe2\xeb\xe5\xed!'); return false; } else return true; } function chgDate(){ reqWLNumbers(""") _v = VFFSL(SL, "wid", True) # '$wid' on line 89, col 26 if _v is not None: write(_filter(_v, rawExpr='$wid')) # from line 89, col 26. write(""",'12'); } chgDate(); </script> """) ######################################## ## END - generated method body return _dummyTrans and trans.response().getvalue() or ""
def mainData(self, **KWS): ## CHEETAH: generated from #def mainData at line 5, col 1. trans = KWS.get("trans") if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)): trans = self.transaction # is None unless self.awake() was called if not trans: trans = DummyTransaction() _dummyTrans = True else: _dummyTrans = False write = trans.response().write SL = self._CHEETAH__searchList _filter = self._CHEETAH__currentFilter ######################################## ## START - generated method body write(''' \xb9 <b>''') _v = VFFSL(SL, "docnum", True) # '$docnum' on line 7, col 10 if _v is not None: write(_filter(_v, rawExpr='$docnum')) # from line 7, col 10. write('''</b> \xee\xf2 <b>''') _orig_filter_51734809 = _filter filterName = 'DateFilter' if self._CHEETAH__filters.has_key("DateFilter"): _filter = self._CHEETAH__currentFilter = self._CHEETAH__filters[ filterName] else: _filter = self._CHEETAH__currentFilter = \ self._CHEETAH__filters[filterName] = getattr(self._CHEETAH__filtersLib, filterName)(self).filter _v = VFFSL(SL, "docdate", True) # '$docdate' on line 7, col 46 if _v is not None: write(_filter(_v, rawExpr='$docdate')) # from line 7, col 46. _filter = _orig_filter_51734809 write(''' (<u>''') _v = VFFSL(SL, "TID", True) # '$TID' on line 7, col 71 if _v is not None: write(_filter(_v, rawExpr='$TID')) # from line 7, col 71. write('''</u>)</b> ''') if VFFSL(SL, "varExists", False)('$TONAME') and VFFSL( SL, "TONAME", True): # generated from line 8, col 5 write(''' <br>''') _v = VFFSL(SL, "TONAME", True) # '$TONAME' on line 9, col 13 if _v is not None: write(_filter(_v, rawExpr='$TONAME')) # from line 9, col 13. write('''<br> ''') write(''' <b><u>''') _v = VFFSL(SL, "INFONAME", True) # '$INFONAME' on line 11, col 11 if _v is not None: write(_filter(_v, rawExpr='$INFONAME')) # from line 11, col 11. write('''</u></b> <hr> <form action="taskM"> <input type="hidden" name="id" value="''') _v = VFFSL(SL, "TID", True) # '$TID' on line 14, col 47 if _v is not None: write(_filter(_v, rawExpr='$TID')) # from line 14, col 47. write('''"> ''') if False: _('Отсканируйте ШК паллета для подтверждения или ШК товара для выверки:' ) _v = VFFSL(SL, "_", False)( 'Отсканируйте ШК паллета для подтверждения или ШК товара для выверки:' ) # "$_('\xce\xf2\xf1\xea\xe0\xed\xe8\xf0\xf3\xe9\xf2\xe5 \xd8\xca \xef\xe0\xeb\xeb\xe5\xf2\xe0 \xe4\xeb\xff \xef\xee\xe4\xf2\xe2\xe5\xf0\xe6\xe4\xe5\xed\xe8\xff \xe8\xeb\xe8 \xd8\xca \xf2\xee\xe2\xe0\xf0\xe0 \xe4\xeb\xff \xe2\xfb\xe2\xe5\xf0\xea\xe8:')" on line 15, col 9 if _v is not None: write( _filter( _v, rawExpr= "$_('\xce\xf2\xf1\xea\xe0\xed\xe8\xf0\xf3\xe9\xf2\xe5 \xd8\xca \xef\xe0\xeb\xeb\xe5\xf2\xe0 \xe4\xeb\xff \xef\xee\xe4\xf2\xe2\xe5\xf0\xe6\xe4\xe5\xed\xe8\xff \xe8\xeb\xe8 \xd8\xca \xf2\xee\xe2\xe0\xf0\xe0 \xe4\xeb\xff \xe2\xfb\xe2\xe5\xf0\xea\xe8:')" )) # from line 15, col 9. write(''' <input type="text" id=":scan:text" name="barcode" value=""> \t</form> <hr> ''') if VFFSL(SL, "varExists", False)('$datalist') and VFFSL( SL, "datalist", True): # generated from line 18, col 5 write(''' <table> <thead> <tr> <th>\xd2\xee\xe2\xe0\xf0</th> <th>\xc7\xe0\xea\xe0\xe7</th> <th>\xd4\xe0\xea\xf2</th> <tr> </thead> <tbody> ''') for item in VFFSL(SL, "datalist", True): # generated from line 28, col 13 if VFFSL(SL, "item.QFACT", True): # generated from line 29, col 17 qFact = float(VFFSL(SL, "item.QFACT", True)) else: # generated from line 31, col 17 qFact = 0.0000 if VFFSL(SL, "item.QPLAN", True): # generated from line 34, col 17 qPlan = float(VFFSL(SL, "item.QPLAN", True)) else: # generated from line 36, col 17 qPlan = 0.0000 write(''' <tr> <td><a href="taskMWares?tid=''') _v = VFFSL(SL, "tid", True) # '$tid' on line 40, col 49 if _v is not None: write(_filter(_v, rawExpr='$tid')) # from line 40, col 49. write('''&wid=''') _v = VFFSL(SL, "item.WID", True) # '$item.WID' on line 40, col 58 if _v is not None: write(_filter( _v, rawExpr='$item.WID')) # from line 40, col 58. write('''" title="''') _v = VFN(VFFSL(SL, "item.WNAME", True), "replace", False)( '"', "'" ) # '$item.WNAME.replace(\'"\',"\'")' on line 40, col 76 if _v is not None: write( _filter(_v, rawExpr='$item.WNAME.replace(\'"\',"\'")') ) # from line 40, col 76. write('''">''') _v = VFFSL(SL, "item.WCODE", True) # '$item.WCODE' on line 40, col 106 if _v is not None: write(_filter( _v, rawExpr='$item.WCODE')) # from line 40, col 106. write('''</a></td> <td>''') _v = VFFSL(SL, "viewQuantity", False)( VFFSL(SL, "item.QPLAN", True), VFFSL(SL, "item.VUFACTOR", True), VFFSL(SL, "item.VUCODE", True), VFFSL(SL, "item.MUFACTOR", True), VFFSL(SL, "item.MUCODE", True) ) # '$viewQuantity($item.QPLAN,$item.VUFACTOR,$item.VUCODE,$item.MUFACTOR,$item.MUCODE)' on line 41, col 25 if _v is not None: write( _filter( _v, rawExpr= '$viewQuantity($item.QPLAN,$item.VUFACTOR,$item.VUCODE,$item.MUFACTOR,$item.MUCODE)' )) # from line 41, col 25. write('''</td> ''') if VFFSL(SL, "qFact", True) < 0.00001: # generated from line 42, col 19 write( ''' <td style="background-color:yellow;">''' ) _v = VFFSL(SL, "viewQuantity", False)( VFFSL(SL, "item.QFACT", True), VFFSL(SL, "item.VUFACTOR", True), VFFSL(SL, "item.VUCODE", True), VFFSL(SL, "item.MUFACTOR", True), VFFSL(SL, "item.MUCODE", True) ) # '$viewQuantity($item.QFACT,$item.VUFACTOR,$item.VUCODE,$item.MUFACTOR,$item.MUCODE)' on line 43, col 58 if _v is not None: write( _filter( _v, rawExpr= '$viewQuantity($item.QFACT,$item.VUFACTOR,$item.VUCODE,$item.MUFACTOR,$item.MUCODE)' )) # from line 43, col 58. write('''</td> ''') elif VFFSL(SL, "qFact", True) - VFFSL( SL, "qPlan", True) > 0.0001: # generated from line 44, col 19 write( ''' <td style="background-color:tomato;">''' ) _v = VFFSL(SL, "viewQuantity", False)( VFFSL(SL, "item.QFACT", True), VFFSL(SL, "item.VUFACTOR", True), VFFSL(SL, "item.VUCODE", True), VFFSL(SL, "item.MUFACTOR", True), VFFSL(SL, "item.MUCODE", True) ) # '$viewQuantity($item.QFACT,$item.VUFACTOR,$item.VUCODE,$item.MUFACTOR,$item.MUCODE)' on line 45, col 58 if _v is not None: write( _filter( _v, rawExpr= '$viewQuantity($item.QFACT,$item.VUFACTOR,$item.VUCODE,$item.MUFACTOR,$item.MUCODE)' )) # from line 45, col 58. write('''</td> ''') elif VFFSL(SL, "qPlan", True) - VFFSL( SL, "qFact", True) > 0.0001: # generated from line 46, col 19 write( ''' <td style="background-color:tomato;">''' ) _v = VFFSL(SL, "viewQuantity", False)( VFFSL(SL, "item.QFACT", True), VFFSL(SL, "item.VUFACTOR", True), VFFSL(SL, "item.VUCODE", True), VFFSL(SL, "item.MUFACTOR", True), VFFSL(SL, "item.MUCODE", True) ) # '$viewQuantity($item.QFACT,$item.VUFACTOR,$item.VUCODE,$item.MUFACTOR,$item.MUCODE)' on line 47, col 58 if _v is not None: write( _filter( _v, rawExpr= '$viewQuantity($item.QFACT,$item.VUFACTOR,$item.VUCODE,$item.MUFACTOR,$item.MUCODE)' )) # from line 47, col 58. write('''</td> ''') else: # generated from line 48, col 19 write( ''' <td style="background-color:limegreen;">''' ) _v = VFFSL(SL, "viewQuantity", False)( VFFSL(SL, "item.QFACT", True), VFFSL(SL, "item.VUFACTOR", True), VFFSL(SL, "item.VUCODE", True), VFFSL(SL, "item.MUFACTOR", True), VFFSL(SL, "item.MUCODE", True) ) # '$viewQuantity($item.QFACT,$item.VUFACTOR,$item.VUCODE,$item.MUFACTOR,$item.MUCODE)' on line 49, col 61 if _v is not None: write( _filter( _v, rawExpr= '$viewQuantity($item.QFACT,$item.VUFACTOR,$item.VUCODE,$item.MUFACTOR,$item.MUCODE)' )) # from line 49, col 61. write('''</td> ''') write(''' </tr> ''') write(''' </tbody> </table> ''') else: # generated from line 55, col 5 write( ''' <div class="NoData">\xcd\xe8\xf7\xe5\xe3\xee \xed\xe5 \xed\xe0\xe9\xe4\xe5\xed\xee</div> ''') ######################################## ## END - generated method body return _dummyTrans and trans.response().getvalue() or ""
def body(self, **KWS): ## CHEETAH: generated from #def body at line 8, col 1. trans = KWS.get("trans") if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)): trans = self.transaction # is None unless self.awake() was called if not trans: trans = DummyTransaction() _dummyTrans = True else: _dummyTrans = False write = trans.response().write SL = self._CHEETAH__searchList _filter = self._CHEETAH__currentFilter ######################################## ## START - generated method body write('''<h1>Transactions</h1> <form action="/transactions" method="post"> <label class=\'textbox\' for=\'what\'>What</label> <input type=\'text\' class=\'textbox\' name=\'what\' id=\'what\' value=\'''' ) _v = VFFSL(SL, "what", True) # '${what}' on line 11, col 112 if _v is not None: write(_filter(_v, rawExpr='${what}')) # from line 11, col 112. write("""'/> <label class='textbox' for='action'>Action</label> <input type='text' class='textbox' name='action' id='action' value='""" ) _v = VFFSL(SL, "action", True) # '${action}' on line 12, col 120 if _v is not None: write(_filter(_v, rawExpr='${action}')) # from line 12, col 120. write("""'/> <label class='textbox' for='begin_date'>Begin Date</label><input type='text' class='textbox' name='begin_date' id='begin_date' value='""" ) _v = VFFSL(SL, "begin_date", True) # '${begin_date}' on line 13, col 135 if _v is not None: write(_filter(_v, rawExpr='${begin_date}')) # from line 13, col 135. write("""'/> <label class='textbox' for='end_date'>End Date</label><input type='text' class='textbox' name='end_date' id='end_date' value='""" ) _v = VFFSL(SL, "end_date", True) # '${end_date}' on line 14, col 127 if _v is not None: write(_filter(_v, rawExpr='${end_date}')) # from line 14, col 127. write('''\'/> <input class="submit" type="submit"> <script type=\'text/javascript\'> Calendar.setup({ inputField : \'begin_date\', // id of the input field ifFormat : \'%Y-%m-%d\', // format of the input field showsTime : false, }); Calendar.setup({ inputField : \'end_date\', // id of the input field ifFormat : \'%Y-%m-%d\', // format of the input field showsTime : false, }); </script> <table class="sortable" id="unique_id" > <tbody> <tr><th>date</th><th>action</th><th>info</th><th>amount</th><th>delete</th></tr> ''') for t in VFFSL(SL, "transactions", True): # generated from line 32, col 1 write('''<tr> <td>''') _v = VFFSL(SL, "t.date", True) # '${t.date}' on line 34, col 5 if _v is not None: write(_filter(_v, rawExpr='${t.date}')) # from line 34, col 5. write('''</td> <td>''') _v = VFFSL(SL, "t.action", True) # '${t.action}' on line 35, col 5 if _v is not None: write(_filter(_v, rawExpr='${t.action}')) # from line 35, col 5. write('''</td> <td>''') _v = VFN(VFFSL(SL, "t", True), "get_info", False)() # '${t.get_info()}' on line 36, col 5 if _v is not None: write(_filter( _v, rawExpr='${t.get_info()}')) # from line 36, col 5. write('''</td> <td>''') _v = VFFSL(SL, "t.amount", True) # '${t.amount}' on line 37, col 5 if _v is not None: write(_filter(_v, rawExpr='${t.amount}')) # from line 37, col 5. write('''</td> <td><input type="image" name="deleteid" value="''') _v = VFFSL(SL, "t.id", True) # '$t.id' on line 38, col 48 if _v is not None: write(_filter(_v, rawExpr='$t.id')) # from line 38, col 48. write('''" src="delete.png"/></td> </tr> ''') write('''</tbody> </table> </form> <br /> ''') ######################################## ## END - generated method body return _dummyTrans and trans.response().getvalue() or ""
def respond(self, trans=None): ## CHEETAH: main method generated for this template if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)): trans = self.transaction # is None unless self.awake() was called if not trans: trans = DummyTransaction() _dummyTrans = True else: _dummyTrans = False write = trans.response().write SL = self._CHEETAH__searchList _filter = self._CHEETAH__currentFilter ######################################## ## START - generated method body write("""<?xml version='1.0' encoding='UTF-8'?> <feed xmlns='http://www.w3.org/2005/Atom' \txmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'> \t<title type='text'>""") _v = VFSL([locals()]+SL+[globals(), __builtin__],"atom.title",True) # '$atom.title' on line 4, col 21 if _v is not None: write(_filter(_v, rawExpr='$atom.title')) # from line 4, col 21. write('''</title> \t<author> \t\t<name>''') _v = VFSL([locals()]+SL+[globals(), __builtin__],"atom.gmail",True) # '$atom.gmail' on line 6, col 9 if _v is not None: write(_filter(_v, rawExpr='$atom.gmail')) # from line 6, col 9. write('''</name> \t\t<email>''') _v = VFSL([locals()]+SL+[globals(), __builtin__],"atom.gmail",True) # '$atom.gmail' on line 7, col 10 if _v is not None: write(_filter(_v, rawExpr='$atom.gmail')) # from line 7, col 10. write("""</email> \t</author> \t<generator version='1.0' uri='http://www.google.com/notebook'> \t\tGoogle Notebook \t</generator> \t<entry> \t\t<id>tid</id> \t\t<category scheme='http://schemas.google.com/g/2005#kind' \t\t\tterm='http://schemas.google.com/notebook/2008/kind#section' /> \t\t<title type='text'></title> \t\t<content type='text'></content> \t</entry> """) for wzNote in VFSL([locals()]+SL+[globals(), __builtin__],"atom.wzNotes",True): # generated from line 19, col 2 write('''\t<entry> \t\t<updated>''') _v = VFSL([locals()]+SL+[globals(), __builtin__],"wzNote.updateTime",True) # '$wzNote.updateTime' on line 21, col 12 if _v is not None: write(_filter(_v, rawExpr='$wzNote.updateTime')) # from line 21, col 12. write("""</updated> \t\t<category scheme='http://schemas.google.com/g/2005#kind' \t\t\tterm='http://schemas.google.com/notebook/2008/kind#note' /> \t\t<category \t\t\tscheme='http://schemas.google.com/notebook/gdata/2007/section' \t\t\tterm='tid' label='' /> """) for tag in VFSL([locals()]+SL+[globals(), __builtin__],"wzNote.tags",True): # generated from line 27, col 3 write("""\t\t<category scheme='http://schemas.google.com/g/2005/label' \t\t\tterm='""") _v = VFSL([locals()]+SL+[globals(), __builtin__],"tag",True) # '$tag' on line 29, col 10 if _v is not None: write(_filter(_v, rawExpr='$tag')) # from line 29, col 10. write("""' /> """) write("""\t\t<title type='text'>""") _v = VFSL([locals()]+SL+[globals(), __builtin__],"wzNote.title",True) # '$wzNote.title' on line 31, col 22 if _v is not None: write(_filter(_v, rawExpr='$wzNote.title')) # from line 31, col 22. write("""</title> \t\t<content type='html'>""") _v = VFSL([locals()]+SL+[globals(), __builtin__],"wzNote.abstract",True) # '$wzNote.abstract' on line 32, col 24 if _v is not None: write(_filter(_v, rawExpr='$wzNote.abstract')) # from line 32, col 24. write("""</content> \t\t<link rel='related' type='text/html' \t\t\thref='""") _v = VFSL([locals()]+SL+[globals(), __builtin__],"wzNote.url",True) # '$wzNote.url' on line 34, col 10 if _v is not None: write(_filter(_v, rawExpr='$wzNote.url')) # from line 34, col 10. write("""' \t\t\ttitle='""") _v = VFSL([locals()]+SL+[globals(), __builtin__],"wzNote.title",True) # '$wzNote.title' on line 35, col 11 if _v is not None: write(_filter(_v, rawExpr='$wzNote.title')) # from line 35, col 11. write("""' /> \t\t<author> \t\t\t<name>""") _v = VFSL([locals()]+SL+[globals(), __builtin__],"atom.gmail",True) # '$atom.gmail' on line 37, col 10 if _v is not None: write(_filter(_v, rawExpr='$atom.gmail')) # from line 37, col 10. write('''</name> \t\t</author> \t</entry> ''') write('''</feed>''') ######################################## ## END - generated method body return _dummyTrans and trans.response().getvalue() or ""
def respond(self, trans=None): ## CHEETAH: main method generated for this template if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)): trans = self.transaction # is None unless self.awake() was called if not trans: trans = DummyTransaction() _dummyTrans = True else: _dummyTrans = False write = trans.response().write SL = self._CHEETAH__searchList _filter = self._CHEETAH__currentFilter ######################################## ## START - generated method body write('''<table id="tbl_tarifs" style="border: 2px ridge #FFE4E1; border-spacing: 2px"> <thead> <tr> <th>''') if False: _('Отключен') _v = VFFSL(SL,"_",False)('Отключен') # "$_('\xce\xf2\xea\xeb\xfe\xf7\xe5\xed')" on line 5, col 11 if _v is not None: write(_filter(_v, rawExpr="$_('\xce\xf2\xea\xeb\xfe\xf7\xe5\xed')")) # from line 5, col 11. write('''</th> <th>''') if False: _('№ п/п') _v = VFFSL(SL,"_",False)('№ п/п') # "$_('\xb9 \xef/\xef')" on line 6, col 11 if _v is not None: write(_filter(_v, rawExpr="$_('\xb9 \xef/\xef')")) # from line 6, col 11. write('''</th> <th>ID</th> <th>''') if False: _('Название') _v = VFFSL(SL,"_",False)('Название') # "$_('\xcd\xe0\xe7\xe2\xe0\xed\xe8\xe5')" on line 8, col 11 if _v is not None: write(_filter(_v, rawExpr="$_('\xcd\xe0\xe7\xe2\xe0\xed\xe8\xe5')")) # from line 8, col 11. write('''</th> <th>''') if False: _('Описание') _v = VFFSL(SL,"_",False)('Описание') # "$_('\xce\xef\xe8\xf1\xe0\xed\xe8\xe5')" on line 9, col 11 if _v is not None: write(_filter(_v, rawExpr="$_('\xce\xef\xe8\xf1\xe0\xed\xe8\xe5')")) # from line 9, col 11. write('''</th> <th>''') if False: _('По умолчанию') _v = VFFSL(SL,"_",False)('По умолчанию') # "$_('\xcf\xee \xf3\xec\xee\xeb\xf7\xe0\xed\xe8\xfe')" on line 10, col 11 if _v is not None: write(_filter(_v, rawExpr="$_('\xcf\xee \xf3\xec\xee\xeb\xf7\xe0\xed\xe8\xfe')")) # from line 10, col 11. write('''</th> <th>''') if False: _('Сортировка') _v = VFFSL(SL,"_",False)('Сортировка') # "$_('\xd1\xee\xf0\xf2\xe8\xf0\xee\xe2\xea\xe0')" on line 11, col 11 if _v is not None: write(_filter(_v, rawExpr="$_('\xd1\xee\xf0\xf2\xe8\xf0\xee\xe2\xea\xe0')")) # from line 11, col 11. write('''</th> <th>''') if False: _('Срок действия (в днях)') _v = VFFSL(SL,"_",False)('Срок действия (в днях)') # "$_('\xd1\xf0\xee\xea \xe4\xe5\xe9\xf1\xf2\xe2\xe8\xff (\xe2 \xe4\xed\xff\xf5)')" on line 12, col 11 if _v is not None: write(_filter(_v, rawExpr="$_('\xd1\xf0\xee\xea \xe4\xe5\xe9\xf1\xf2\xe2\xe8\xff (\xe2 \xe4\xed\xff\xf5)')")) # from line 12, col 11. write('''</th> <th>''') if False: _('Напоминать за (дней)') _v = VFFSL(SL,"_",False)('Напоминать за (дней)') # "$_('\xcd\xe0\xef\xee\xec\xe8\xed\xe0\xf2\xfc \xe7\xe0 (\xe4\xed\xe5\xe9)')" on line 13, col 11 if _v is not None: write(_filter(_v, rawExpr="$_('\xcd\xe0\xef\xee\xec\xe8\xed\xe0\xf2\xfc \xe7\xe0 (\xe4\xed\xe5\xe9)')")) # from line 13, col 11. write('''</th> <th>''') if False: _('Изменено') _v = VFFSL(SL,"_",False)('Изменено') # "$_('\xc8\xe7\xec\xe5\xed\xe5\xed\xee')" on line 14, col 11 if _v is not None: write(_filter(_v, rawExpr="$_('\xc8\xe7\xec\xe5\xed\xe5\xed\xee')")) # from line 14, col 11. write('''</th> </tr> </thead> <tbody id="tbl_tarifs_tbody"> ''') N = 1 for tarif in VFFSL(SL,"tarifs",True): # generated from line 19, col 9 write(''' <tr id="''') _v = VFFSL(SL,"tarif.ID_TAR",True) # '$tarif.ID_TAR' on line 20, col 21 if _v is not None: write(_filter(_v, rawExpr='$tarif.ID_TAR')) # from line 20, col 21. write('''"> <td class="hac disabled"><input type="checkbox" ''') if VFFSL(SL,"tarif.DISABLED",True) is not None and VFFSL(SL,"tarif.DISABLED",True) != 0: # generated from line 22, col 21 write(''' checked ''') write(''' ></td> <td class="har enum">''') _v = VFFSL(SL,"N",True) # '$N' on line 26, col 38 if _v is not None: write(_filter(_v, rawExpr='$N')) # from line 26, col 38. write('''</td> <td class="har id_tar">''') _v = VFFSL(SL,"tarif.ID_TAR",True) # '$tarif.ID_TAR' on line 27, col 40 if _v is not None: write(_filter(_v, rawExpr='$tarif.ID_TAR')) # from line 27, col 40. write('''</td> <td class="tar_name">''') _v = VFFSL(SL,"tarif.TAR_NAME",True) # '$tarif.TAR_NAME' on line 28, col 38 if _v is not None: write(_filter(_v, rawExpr='$tarif.TAR_NAME')) # from line 28, col 38. write('''</td> <td class="tar_desc">''') _v = VFFSL(SL,"tarif.TAR_DESC",True) # '$tarif.TAR_DESC' on line 29, col 38 if _v is not None: write(_filter(_v, rawExpr='$tarif.TAR_DESC')) # from line 29, col 38. write('''</td> <td class="hac is_default"><input type="checkbox" ''') if VFFSL(SL,"tarif.IS_DEFAULT",True) is not None and VFFSL(SL,"tarif.IS_DEFAULT",True) != 0: # generated from line 31, col 21 write(''' checked ''') write(''' ></td> <td class="har orderby">''') _v = VFFSL(SL,"tarif.ORDERBY",True) # '$tarif.ORDERBY' on line 35, col 41 if _v is not None: write(_filter(_v, rawExpr='$tarif.ORDERBY')) # from line 35, col 41. write('''</td> <td class="har expire_days">''') _v = VFFSL(SL,"tarif.EXPIRE_DAYS",True) # '$tarif.EXPIRE_DAYS' on line 36, col 45 if _v is not None: write(_filter(_v, rawExpr='$tarif.EXPIRE_DAYS')) # from line 36, col 45. write('''</td> <td class="har remind_days">''') _v = VFFSL(SL,"tarif.REMIND_DAYS",True) # '$tarif.REMIND_DAYS' on line 37, col 45 if _v is not None: write(_filter(_v, rawExpr='$tarif.REMIND_DAYS')) # from line 37, col 45. write('''</td> <td class="lastdate hac">''') _orig_filter_78349924 = _filter filterName = 'LongDateTimeFilter' if self._CHEETAH__filters.has_key("LongDateTimeFilter"): _filter = self._CHEETAH__currentFilter = self._CHEETAH__filters[filterName] else: _filter = self._CHEETAH__currentFilter = \ self._CHEETAH__filters[filterName] = getattr(self._CHEETAH__filtersLib, filterName)(self).filter _v = VFFSL(SL,"tarif.LASTDATE",True) # '$tarif.LASTDATE' on line 38, col 69 if _v is not None: write(_filter(_v, rawExpr='$tarif.LASTDATE')) # from line 38, col 69. write(''' ''') _filter = _orig_filter_78349924 write(''' </tr> ''') N = VFFSL(SL,"N",True)+1 write(''' </tbody> </table> ''') ######################################## ## END - generated method body return _dummyTrans and trans.response().getvalue() or ""
def respond(self, trans=None): ## CHEETAH: main method generated for this template if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)): trans = self.transaction # is None unless self.awake() was called if not trans: trans = DummyTransaction() _dummyTrans = True else: _dummyTrans = False write = trans.response().write SL = self._CHEETAH__searchList _filter = self._CHEETAH__currentFilter ######################################## ## START - generated method body write('''<form id="dlgedit_form" class="full_height"> <table style=\'width: 100%\'> <tr><th>''') if False: _('ID') _v = VFFSL(SL, "_", False)('ID') # "$_('ID')" on line 4, col 13 if _v is not None: write(_filter(_v, rawExpr="$_('ID')")) # from line 4, col 13. write("""</th><td style='width: 60%'> <span id='dlgedit_id'></span> </td></tr> <tr><th>""") if False: _('Организация') _v = VFFSL(SL, "_", False)( 'Организация' ) # "$_('\xce\xf0\xe3\xe0\xed\xe8\xe7\xe0\xf6\xe8\xff')" on line 8, col 13 if _v is not None: write( _filter( _v, rawExpr="$_('\xce\xf0\xe3\xe0\xed\xe8\xe7\xe0\xf6\xe8\xff')" )) # from line 8, col 13. write("""</th><td> <input type='text' id='dlgedit_organization' name='dlgedit_organization' style='width: 100%' value='' maxlength='80'/> </td></tr> <tr><th>""") if False: _('Владелец') _v = VFFSL(SL, "_", False)( 'Владелец' ) # "$_('\xc2\xeb\xe0\xe4\xe5\xeb\xe5\xf6')" on line 12, col 13 if _v is not None: write(_filter(_v, rawExpr="$_('\xc2\xeb\xe0\xe4\xe5\xeb\xe5\xf6')") ) # from line 12, col 13. write("""</th><td> <select id='dlgedit_ownerId_cmb'> """) if VFFSL(SL, "varExists", False)('$users') and VFFSL( SL, "users", True): # generated from line 14, col 13 for user in VFFSL(SL, "users", True): # generated from line 15, col 17 if str(VFFSL(SL, "owner_id", True)) == str( VFFSL(SL, "user.ID_USER", True)): # generated from line 16, col 21 selected = ' selected = "selected" ' else: # generated from line 18, col 21 selected = ' ' write(''' <option ''') _v = VFFSL(SL, "selected", True) # '$selected' on line 21, col 29 if _v is not None: write(_filter( _v, rawExpr='$selected')) # from line 21, col 29. write(""" value='""") _v = VFFSL(SL, "user.ID_USER", True) # '$user.ID_USER' on line 21, col 46 if _v is not None: write(_filter( _v, rawExpr='$user.ID_USER')) # from line 21, col 46. write("""'>""") _v = VFFSL(SL, "user.FIO", True) # '$user.FIO' on line 21, col 61 if _v is not None: write(_filter( _v, rawExpr='$user.FIO')) # from line 21, col 61. write('''</option> ''') write(''' </select> </td></tr> <tr><th>''') if False: _('Дата регистрации') _v = VFFSL(SL, "_", False)( 'Дата регистрации' ) # "$_('\xc4\xe0\xf2\xe0 \xf0\xe5\xe3\xe8\xf1\xf2\xf0\xe0\xf6\xe8\xe8')" on line 27, col 13 if _v is not None: write( _filter( _v, rawExpr= "$_('\xc4\xe0\xf2\xe0 \xf0\xe5\xe3\xe8\xf1\xf2\xf0\xe0\xf6\xe8\xe8')" )) # from line 27, col 13. write('''</th><td> <input type="text" name="dlgedit_reg_date" id="dlgedit_reg_date" align="center" style=\'width: 100%\' size=8 title="\xc4\xe0\xf2\xe0 \xf0\xe5\xe3\xe8\xf1\xf2\xf0\xe0\xf6\xe8\xe8"/> </td></tr> <tr><th>''') if False: _('Код клиента') _v = VFFSL(SL, "_", False)( 'Код клиента' ) # "$_('\xca\xee\xe4 \xea\xeb\xe8\xe5\xed\xf2\xe0')" on line 31, col 13 if _v is not None: write( _filter( _v, rawExpr="$_('\xca\xee\xe4 \xea\xeb\xe8\xe5\xed\xf2\xe0')") ) # from line 31, col 13. write("""</th><td> <span id='dlgedit_code'></span> </td></tr> <tr><th>""") if False: _('Доп. код') _v = VFFSL(SL, "_", False)( 'Доп. код' ) # "$_('\xc4\xee\xef. \xea\xee\xe4')" on line 35, col 13 if _v is not None: write(_filter(_v, rawExpr="$_('\xc4\xee\xef. \xea\xee\xe4')") ) # from line 35, col 13. write('''</th><td> <input type=\'text\' id=\'dlgedit_card_code\' name=\'dlgedit_card_code\' style=\'width: 100%\' value=\'\' maxlength=\'10\'/> </td></tr> </table> </form> <div class="buttons save footer_btns right_aligned_btns"> <button type="button" id="dlgedit_save_btn"><img src="''') _v = VFFSL(SL, "eng_img", True) # '$eng_img' on line 42, col 59 if _v is not None: write(_filter(_v, rawExpr='$eng_img')) # from line 42, col 59. write('''/actions/accept.png" alt=""/> ''') if False: _('Сохранить') _v = VFFSL(SL, "_", False)( 'Сохранить' ) # "$_('\xd1\xee\xf5\xf0\xe0\xed\xe8\xf2\xfc')" on line 42, col 102 if _v is not None: write( _filter(_v, rawExpr="$_('\xd1\xee\xf5\xf0\xe0\xed\xe8\xf2\xfc')") ) # from line 42, col 102. write('''</button> <button type="button" id="dlgedit_cancel_btn"><img src="''') _v = VFFSL(SL, "eng_img", True) # '$eng_img' on line 43, col 61 if _v is not None: write(_filter(_v, rawExpr='$eng_img')) # from line 43, col 61. write('''/actions/cancel.png" alt=""/> ''') if False: _('Отмена') _v = VFFSL(SL, "_", False)( 'Отмена' ) # "$_('\xce\xf2\xec\xe5\xed\xe0')" on line 43, col 104 if _v is not None: write(_filter(_v, rawExpr="$_('\xce\xf2\xec\xe5\xed\xe0')") ) # from line 43, col 104. write('''</button> </div> ''') ######################################## ## END - generated method body return _dummyTrans and trans.response().getvalue() or ""
def mainData(self, **KWS): ## CHEETAH: generated from #def mainData at line 7, col 1. trans = KWS.get("trans") if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)): trans = self.transaction # is None unless self.awake() was called if not trans: trans = DummyTransaction() _dummyTrans = True else: _dummyTrans = False write = trans.response().write SL = self._CHEETAH__searchList _filter = self._CHEETAH__currentFilter ######################################## ## START - generated method body write(''' <b><u> ''') _v = VFFSL(SL,"GNAME",True) # '$GNAME' on line 8, col 12 if _v is not None: write(_filter(_v, rawExpr='$GNAME')) # from line 8, col 12. write(''' </u></b><br> ''') coma = ',' canEnd = True if VFFSL(SL,"tid",True): # generated from line 12, col 5 write(''' <b><u> ''') _v = VFFSL(SL,"ANAME",True) # '$ANAME' on line 13, col 16 if _v is not None: write(_filter(_v, rawExpr='$ANAME')) # from line 13, col 16. write(''' </u></b><br> ''') _orig_filter_63962175 = _filter filterName = 'DateTimeFilter' if self._CHEETAH__filters.has_key("DateTimeFilter"): _filter = self._CHEETAH__currentFilter = self._CHEETAH__filters[filterName] else: _filter = self._CHEETAH__currentFilter = \ self._CHEETAH__filters[filterName] = getattr(self._CHEETAH__filtersLib, filterName)(self).filter _v = VFFSL(SL,"plandt",True) # '$plandt' on line 14, col 32 if _v is not None: write(_filter(_v, rawExpr='$plandt')) # from line 14, col 32. write(''' ''') _filter = _orig_filter_63962175 write(''' <hr> ''') clientName = '' docID = 0 if VFFSL(SL,"varExists",False)('$datalist') and VFFSL(SL,"datalist",True): # generated from line 18, col 9 for item in VFFSL(SL,"datalist",True): # generated from line 19, col 13 if VFFSL(SL,"clientName",True) != VFFSL(SL,"item.CLIENTNAME",True): # generated from line 20, col 17 if VFFSL(SL,"clientName",True) != '': # generated from line 21, col 21 write(''' <br> ''') write(''' <b><u>''') _v = VFFSL(SL,"item.CLIENTNAME",True) # '$item.CLIENTNAME' on line 24, col 27 if _v is not None: write(_filter(_v, rawExpr='$item.CLIENTNAME')) # from line 24, col 27. write('''</u><b> ''') clientName = VFFSL(SL,"item.CLIENTNAME",True) docID = 0 write(''' ''') if VFFSL(SL,"docID",True) != VFFSL(SL,"item.DOCID",True): # generated from line 29, col 17 write(''' <br> <u>''') _v = VFFSL(SL,"item.DNUM",True) # '$item.DNUM' on line 31, col 24 if _v is not None: write(_filter(_v, rawExpr='$item.DNUM')) # from line 31, col 24. write('''</u>: ''') docID = VFFSL(SL,"item.DOCID",True) else: # generated from line 33, col 17 write(''' ''') _v = VFFSL(SL,"coma",True) # '$coma' on line 34, col 21 if _v is not None: write(_filter(_v, rawExpr='$coma')) # from line 34, col 21. write(''' ''') write(''' ''') if VFFSL(SL,"item.TSTAT",True) == '2': # generated from line 37, col 17 write(''' <font class="green">''') _v = VFFSL(SL,"item.TNUMBER",True) # '$item.TNUMBER' on line 38, col 41 if _v is not None: write(_filter(_v, rawExpr='$item.TNUMBER')) # from line 38, col 41. write('''</font> ''') else: # generated from line 39, col 17 canEnd = False str = VFFSL(SL,"item.TNUMBER",True)+'('+VFFSL(SL,"item.TSNAME",True)+')' write(''' <font class="red">''') _v = VFFSL(SL,"str",True) # '$str' on line 42, col 39 if _v is not None: write(_filter(_v, rawExpr='$str')) # from line 42, col 39. write('''</font> ''') if VFFSL(SL,"canEnd",True): # generated from line 46, col 9 write(""" <hr> <a href='gateTaskEnd?tid=""") _v = VFFSL(SL,"TID",True) # '$TID' on line 48, col 38 if _v is not None: write(_filter(_v, rawExpr='$TID')) # from line 48, col 38. write("""'>""") if False: _('Завершить') _v = VFFSL(SL,"_",False)('Завершить') # "$_('\xc7\xe0\xe2\xe5\xf0\xf8\xe8\xf2\xfc')" on line 48, col 44 if _v is not None: write(_filter(_v, rawExpr="$_('\xc7\xe0\xe2\xe5\xf0\xf8\xe8\xf2\xfc')")) # from line 48, col 44. write('''</a> ''') else: # generated from line 50, col 5 write(''' <form action=gate> <input type=hidden name=id value=''') _v = VFFSL(SL,"gid",True) # '$gid' on line 52, col 46 if _v is not None: write(_filter(_v, rawExpr='$gid')) # from line 52, col 46. write('''> \xd8\xca: <input type="text" id="barcode:scan:text" name="barcode" title="''') if False: _('Авто') _v = VFFSL(SL,"_",False)('Авто') # "$_('\xc0\xe2\xf2\xee')" on line 53, col 81 if _v is not None: write(_filter(_v, rawExpr="$_('\xc0\xe2\xf2\xee')")) # from line 53, col 81. write(''',''') if False: _('Ворота') _v = VFFSL(SL,"_",False)('Ворота') # "$_('\xc2\xee\xf0\xee\xf2\xe0')" on line 53, col 92 if _v is not None: write(_filter(_v, rawExpr="$_('\xc2\xee\xf0\xee\xf2\xe0')")) # from line 53, col 92. write('''"><br> </form> <hr> ''') if VFFSL(SL,"varExists",False)('$datalist') and VFFSL(SL,"datalist",True): # generated from line 56, col 9 for item in VFFSL(SL,"datalist",True): # generated from line 57, col 13 write(''' <b><u>''') _v = VFFSL(SL,"item.ANAME",True) # '$item.ANAME' on line 58, col 23 if _v is not None: write(_filter(_v, rawExpr='$item.ANAME')) # from line 58, col 23. write('''</u></b><br>''') _orig_filter_31072735 = _filter filterName = 'DateTimeFilter' if self._CHEETAH__filters.has_key("DateTimeFilter"): _filter = self._CHEETAH__currentFilter = self._CHEETAH__filters[filterName] else: _filter = self._CHEETAH__currentFilter = \ self._CHEETAH__filters[filterName] = getattr(self._CHEETAH__filtersLib, filterName)(self).filter _v = VFFSL(SL,"item.TPLANDT",True) # '$item.TPLANDT' on line 58, col 69 if _v is not None: write(_filter(_v, rawExpr='$item.TPLANDT')) # from line 58, col 69. _filter = _orig_filter_31072735 write('''<br><br> ''') write('''\t ''') ######################################## ## END - generated method body return _dummyTrans and trans.response().getvalue() or ""
def respond(self, trans=None): ## CHEETAH: main method generated for this template if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)): trans = self.transaction # is None unless self.awake() was called if not trans: trans = DummyTransaction() _dummyTrans = True else: _dummyTrans = False write = trans.response().write SL = self._CHEETAH__searchList _filter = self._CHEETAH__currentFilter ######################################## ## START - generated method body write('''<!DOCTYPE html> <html lang="ru"> <head> <meta charset="windows-1251"/> <meta name="robots" content="noindex, nofollow"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> ''') if VFFSL(SL, "varExists", False)("system_name"): # generated from line 8, col 5 write(''' <title>''') _v = VFFSL(SL, "system_name", True) # '$system_name' on line 9, col 12 if _v is not None: write(_filter(_v, rawExpr='$system_name')) # from line 9, col 12. write('''</title> ''') if VFFSL(SL, "varExists", False)("eng_img"): # generated from line 11, col 5 write(''' <link rel="shortcut icon" href="''') _v = VFFSL(SL, "eng_img", True) # '$eng_img' on line 12, col 37 if _v is not None: write(_filter(_v, rawExpr='$eng_img')) # from line 12, col 37. write('''/favicon.ico"> ''') write(''' <link href="/locale/''') _v = VFFSL(SL, "getSesVar", False)( 'locale') # "$getSesVar('locale')" on line 15, col 25 if _v is not None: write(_filter( _v, rawExpr="$getSesVar('locale')")) # from line 15, col 25. write('''/locale.json" lang="''') _v = VFFSL(SL, "getSesVar", False)( 'locale') # "$getSesVar('locale')" on line 15, col 65 if _v is not None: write(_filter( _v, rawExpr="$getSesVar('locale')")) # from line 15, col 65. write('''" rel="gettext" /> <script type="text/javascript" src="''') _v = VFFSL(SL, "eng_js", True) # '$eng_js' on line 16, col 41 if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 16, col 41. write('''/jquery-1.10.2.min.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL, "eng_js", True) # '$eng_js' on line 17, col 41 if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 17, col 41. write('''/bootstrap/bootstrap.min.js"></script> <link href="''') _v = VFFSL(SL, "eng_css", True) # '$eng_css' on line 19, col 17 if _v is not None: write(_filter(_v, rawExpr='$eng_css')) # from line 19, col 17. write( '''/mobile/main_mob.css" rel="stylesheet" type="text/css" media="screen"> <link href="''') _v = VFFSL(SL, "eng_css", True) # '$eng_css' on line 20, col 17 if _v is not None: write(_filter(_v, rawExpr='$eng_css')) # from line 20, col 17. write( '''/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" media="screen"> <link href="''') _v = VFFSL(SL, "eng_css", True) # '$eng_css' on line 21, col 17 if _v is not None: write(_filter(_v, rawExpr='$eng_css')) # from line 21, col 17. write( '''/bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet" type="text/css" media="screen"> </head> <body> <script> ''') if VFFSL(SL, "varExists", False)('$sp_img'): # generated from line 26, col 5 write(''' sp_img="''') _v = VFFSL(SL, "sp_img", True) # '$sp_img' on line 27, col 15 if _v is not None: write(_filter(_v, rawExpr='$sp_img')) # from line 27, col 15. write('''"; ''') # #if $varExists('$sp_img.WMSMOBILE') # sps_img="$sps_img.WMSMOBILE"; # #end if write('''</script> <div class="container"> <!--Begin Head --> ''') if VFFSL(SL, "varExists", False)("userfio"): # generated from line 36, col 5 write(''' <div class="navbar navbar-fixed-top"> <div class=\'container navbar-inner\'> <p class=\'brand\'> ''') _v = VFFSL(SL, "userfio", True) # '$userfio' on line 42, col 29 if _v is not None: write(_filter(_v, rawExpr='$userfio')) # from line 42, col 29. write(''' </p> <ul class="nav nav-pills pull-right"> <li><a href="exit">\xc2\xfb\xf5\xee\xe4</a></li> </ul> </div> </div> ''') write(''' <div id="container-content-wrapper"> <div id="container-content" align="center"> <!--Begin Interface Data--> ''') self.engineData_mob(trans=trans) write(''' <!--End Interface Data--> </div> </div> </div> </body> </html> ''') ######################################## ## END - generated method body return _dummyTrans and trans.response().getvalue() or ""
def stackModels(self, **KWS): ## CHEETAH: generated from #block stackModels at line 55, col 3. trans = KWS.get("trans") if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)): trans = self.transaction # is None unless self.awake() was called if not trans: trans = DummyTransaction() _dummyTrans = True else: _dummyTrans = False write = trans.response().write SL = self._CHEETAH__searchList _filter = self._CHEETAH__currentFilter ######################################## ## START - generated method body write(''' ''') if not VFFSL(SL, "S_MODELID", True): # generated from line 57, col 5 write(''' ''') if False: _('Выберите модель штабеля') _v = VFFSL(SL, "_", False)( 'Выберите модель штабеля' ) # "$_('\xc2\xfb\xe1\xe5\xf0\xe8\xf2\xe5 \xec\xee\xe4\xe5\xeb\xfc \xf8\xf2\xe0\xe1\xe5\xeb\xff')" on line 58, col 9 if _v is not None: write( _filter( _v, rawExpr= "$_('\xc2\xfb\xe1\xe5\xf0\xe8\xf2\xe5 \xec\xee\xe4\xe5\xeb\xfc \xf8\xf2\xe0\xe1\xe5\xeb\xff')" )) # from line 58, col 9. write('''<br> ''') if VFFSL(SL, "varExists", False)('$datalist') and VFFSL( SL, "datalist", True): # generated from line 59, col 9 for item in VFFSL(SL, "datalist", True): # generated from line 60, col 13 write(''' <a href="palSiteStackSet?id=''') _v = VFFSL(SL, "P_ID", True) # '$P_ID' on line 61, col 45 if _v is not None: write(_filter( _v, rawExpr='$P_ID')) # from line 61, col 45. write('''&sid=''') _v = VFFSL(SL, "S_ID", True) # '$S_ID' on line 61, col 55 if _v is not None: write(_filter( _v, rawExpr='$S_ID')) # from line 61, col 55. write('''&mid=''') _v = VFFSL(SL, "item.MODELID", True) # '$item.MODELID' on line 61, col 65 if _v is not None: write(_filter( _v, rawExpr='$item.MODELID')) # from line 61, col 65. write('''&cdt=''') _v = VFFSL(SL, "CDT", True) # '$CDT' on line 61, col 83 if _v is not None: write(_filter(_v, rawExpr='$CDT')) # from line 61, col 83. write('''">''') _v = VFFSL(SL, "item.MODELNAME", True) # '$item.MODELNAME' on line 61, col 89 if _v is not None: write(_filter(_v, rawExpr='$item.MODELNAME') ) # from line 61, col 89. write('''</a><br> ''') write(''' </form> ''') else: # generated from line 65, col 5 # #if $S_PALFEATUREID != $P_FEATUREID # <a href="palSiteStackSet?id=$P_ID&sid=$S_ID&cdt=$CDT" onClick="return confirm('$_('Характеристии штабеля и паллета не совпадают! Продолжить?')')"> # $_('Переместить')</a><br> # #else # <a href="palSiteStackSet?id=$P_ID&sid=$S_ID&cdt=$CDT">$_('Переместить')</a><br> # #end if if VFFSL(SL, "S_PALFEATUREID", True) == VFFSL(SL, "P_FEATUREID", True): # generated from line 72, col 9 write(''' <a href="palSiteStackSet?id=''') _v = VFFSL(SL, "P_ID", True) # '$P_ID' on line 73, col 41 if _v is not None: write(_filter(_v, rawExpr='$P_ID')) # from line 73, col 41. write('''&sid=''') _v = VFFSL(SL, "S_ID", True) # '$S_ID' on line 73, col 51 if _v is not None: write(_filter(_v, rawExpr='$S_ID')) # from line 73, col 51. write('''&cdt=''') _v = VFFSL(SL, "CDT", True) # '$CDT' on line 73, col 61 if _v is not None: write(_filter(_v, rawExpr='$CDT')) # from line 73, col 61. write('''">''') if False: _('Переместить') _v = VFFSL(SL, "_", False)( 'Переместить' ) # "$_('\xcf\xe5\xf0\xe5\xec\xe5\xf1\xf2\xe8\xf2\xfc')" on line 73, col 67 if _v is not None: write( _filter( _v, rawExpr= "$_('\xcf\xe5\xf0\xe5\xec\xe5\xf1\xf2\xe8\xf2\xfc')" )) # from line 73, col 67. write('''</a><br> ''') ######################################## ## END - generated method body return _dummyTrans and trans.response().getvalue() or ""
def mainData(self, **KWS): ## CHEETAH: generated from #def mainData at line 5, col 1. trans = KWS.get("trans") if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)): trans = self.transaction # is None unless self.awake() was called if not trans: trans = DummyTransaction() _dummyTrans = True else: _dummyTrans = False write = trans.response().write SL = self._CHEETAH__searchList _filter = self._CHEETAH__currentFilter ######################################## ## START - generated method body write(''' <b><u>''') _v = VFFSL(SL, "FROMNAME", True) # '$FROMNAME' on line 7, col 11 if _v is not None: write(_filter(_v, rawExpr='$FROMNAME')) # from line 7, col 11. write('''</u></b><br> <b>''') _orig_filter_91438939 = _filter filterName = 'DateFilter' if self._CHEETAH__filters.has_key("DateFilter"): _filter = self._CHEETAH__currentFilter = self._CHEETAH__filters[ filterName] else: _filter = self._CHEETAH__currentFilter = \ self._CHEETAH__filters[filterName] = getattr(self._CHEETAH__filtersLib, filterName)(self).filter _v = VFFSL(SL, "DOCDATE", True) # '$DOCDATE' on line 8, col 26 if _v is not None: write(_filter(_v, rawExpr='$DOCDATE')) # from line 8, col 26. _filter = _orig_filter_91438939 write('''</b> \xb9<b>''') _v = VFFSL(SL, "DOCNUM", True) # '$DOCNUM' on line 8, col 55 if _v is not None: write(_filter(_v, rawExpr='$DOCNUM')) # from line 8, col 55. write('''</b><br> <b>(<u>''') _v = VFFSL(SL, "WCODE", True) # '$WCODE' on line 9, col 12 if _v is not None: write(_filter(_v, rawExpr='$WCODE')) # from line 9, col 12. write('''</u>)</b> ''') _v = VFFSL(SL, "WNAME", True) # '$WNAME' on line 9, col 28 if _v is not None: write(_filter(_v, rawExpr='$WNAME')) # from line 9, col 28. write(''' <a href = "taskWaresAdd?tid=''') _v = VFFSL(SL, "tid", True) # '$tid' on line 10, col 33 if _v is not None: write(_filter(_v, rawExpr='$tid')) # from line 10, col 33. write('''&wid=''') _v = VFFSL(SL, "wid", True) # '$wid' on line 10, col 42 if _v is not None: write(_filter(_v, rawExpr='$wid')) # from line 10, col 42. write('''" title="''') if False: _('Добавить') _v = VFFSL(SL, "_", False)( 'Добавить' ) # "$_('\xc4\xee\xe1\xe0\xe2\xe8\xf2\xfc')" on line 10, col 55 if _v is not None: write(_filter(_v, rawExpr="$_('\xc4\xee\xe1\xe0\xe2\xe8\xf2\xfc')") ) # from line 10, col 55. write('''"><img src="''') _v = VFFSL(SL, "sps_img.KURSTERM", True) # '$sps_img.KURSTERM' on line 10, col 81 if _v is not None: write(_filter( _v, rawExpr='$sps_img.KURSTERM')) # from line 10, col 81. write('''/add.gif" border="0"></a></br> <br> ''') if VFFSL(SL, "VWUID", True): # generated from line 12, col 5 write(''' <b>''') _v = VFFSL(SL, "VWUCODE", True) # '$VWUCODE' on line 13, col 12 if _v is not None: write(_filter(_v, rawExpr='$VWUCODE')) # from line 13, col 12. write(''' = ''') _orig_filter_15985306 = _filter filterName = 'Quantity' if self._CHEETAH__filters.has_key("Quantity"): _filter = self._CHEETAH__currentFilter = self._CHEETAH__filters[ filterName] else: _filter = self._CHEETAH__currentFilter = \ self._CHEETAH__filters[filterName] = getattr(self._CHEETAH__filtersLib, filterName)(self).filter _v = VFFSL(SL, "VWUFACTOR", True) # '$VWUFACTOR' on line 13, col 39 if _v is not None: write(_filter(_v, rawExpr='$VWUFACTOR')) # from line 13, col 39. _filter = _orig_filter_15985306 write(''' ''') _v = VFFSL(SL, "MWUCODE", True) # '$MWUCODE' on line 13, col 62 if _v is not None: write(_filter(_v, rawExpr='$MWUCODE')) # from line 13, col 62. write(''' </b> ''') if VFFSL(SL, "varExists", False)('$ZID') and VFFSL( SL, "ZID", True): # generated from line 15, col 5 write(''' <font color="gray">(''') _v = VFFSL(SL, "ZNAME", True) # '$ZNAME' on line 16, col 29 if _v is not None: write(_filter(_v, rawExpr='$ZNAME')) # from line 16, col 29. write(''')</font> ''') write(''' <br> ''') if VFFSL(SL, "varExists", False)('$datalist') and VFFSL( SL, "datalist", True): # generated from line 20, col 5 write(''' <table> <thead> <tr> <th>''') if False: _('Дата') _v = VFFSL(SL, "_", False)( 'Дата') # "$_('\xc4\xe0\xf2\xe0')" on line 24, col 25 if _v is not None: write(_filter( _v, rawExpr="$_('\xc4\xe0\xf2\xe0')")) # from line 24, col 25. write('''</th> <th>''') if False: _('Поддон') _v = VFFSL(SL, "_", False)( 'Поддон' ) # "$_('\xcf\xee\xe4\xe4\xee\xed')" on line 25, col 25 if _v is not None: write(_filter(_v, rawExpr="$_('\xcf\xee\xe4\xe4\xee\xed')") ) # from line 25, col 25. write('''</th> <th>''') if False: _('Кол-во') _v = VFFSL(SL, "_", False)( 'Кол-во' ) # "$_('\xca\xee\xeb-\xe2\xee')" on line 26, col 25 if _v is not None: write(_filter(_v, rawExpr="$_('\xca\xee\xeb-\xe2\xee')") ) # from line 26, col 25. write('''</th> </tr> </thead> ''') q = 0 write(''' <tbody> ''') for item in VFFSL(SL, "datalist", True): # generated from line 31, col 13 q += VFFSL(SL, "item.AMOUNT", True) write(''' <tr> <td>''') _orig_filter_13095430 = _filter filterName = 'DateFilter2' if self._CHEETAH__filters.has_key("DateFilter2"): _filter = self._CHEETAH__currentFilter = self._CHEETAH__filters[ filterName] else: _filter = self._CHEETAH__currentFilter = \ self._CHEETAH__filters[filterName] = getattr(self._CHEETAH__filtersLib, filterName)(self).filter _v = VFFSL(SL, "item.PRDATE", True) # '$item.PRDATE' on line 34, col 44 if _v is not None: write(_filter( _v, rawExpr='$item.PRDATE')) # from line 34, col 44. _filter = _orig_filter_13095430 write('''</td> <td><a href="taskWaresLot?tid=''') _v = VFFSL(SL, "tid", True) # '$tid' on line 35, col 51 if _v is not None: write(_filter(_v, rawExpr='$tid')) # from line 35, col 51. write('''&wid=''') _v = VFFSL(SL, "wid", True) # '$wid' on line 35, col 60 if _v is not None: write(_filter(_v, rawExpr='$wid')) # from line 35, col 60. write('''&wlotid=''') _v = VFFSL(SL, "item.WLOTID", True) # '$item.WLOTID' on line 35, col 72 if _v is not None: write(_filter( _v, rawExpr='$item.WLOTID')) # from line 35, col 72. write('''&palletid=''') _v = VFFSL(SL, "item.PALLETID", True) # '$item.PALLETID' on line 35, col 94 if _v is not None: write(_filter( _v, rawExpr='$item.PALLETID')) # from line 35, col 94. write('''" title="''') _v = VFFSL(SL, "item.sname", True) # '$item.sname' on line 35, col 117 if _v is not None: write(_filter( _v, rawExpr='$item.sname')) # from line 35, col 117. write('''">''') _v = VFFSL(SL, "item.pnum", True) # '$item.pnum' on line 35, col 130 if _v is not None: write(_filter( _v, rawExpr='$item.pnum')) # from line 35, col 130. write('''</a></td> ''') # <td><a href="#" title="$item.sname">$item.pnum</a></td> write(''' <td>''') _v = VFFSL(SL, "viewQuantity", False)( VFFSL(SL, "item.AMOUNT", True), VFFSL(SL, "VWUFACTOR", True), VFFSL(SL, "VWUCODE", True), VFFSL(SL, "MWUFACTOR", True), VFFSL(SL, "MWUCODE", True) ) # '$viewQuantity($item.AMOUNT,$VWUFACTOR,$VWUCODE,$MWUFACTOR,$MWUCODE)' on line 37, col 25 if _v is not None: write( _filter( _v, rawExpr= '$viewQuantity($item.AMOUNT,$VWUFACTOR,$VWUCODE,$MWUFACTOR,$MWUCODE)' )) # from line 37, col 25. write('''</td> </tr> ''') write(''' </tbody> <tfoot> <tr> <th colspan=3>''') _v = VFFSL(SL, "viewQuantity", False)( VFFSL(SL, "q", True), VFFSL(SL, "VWUFACTOR", True), VFFSL(SL, "VWUCODE", True), VFFSL(SL, "MWUFACTOR", True), VFFSL(SL, "MWUCODE", True) ) # '$viewQuantity($q,$VWUFACTOR,$VWUCODE,$MWUFACTOR,$MWUCODE)' on line 43, col 35 if _v is not None: write( _filter( _v, rawExpr= '$viewQuantity($q,$VWUFACTOR,$VWUCODE,$MWUFACTOR,$MWUCODE)' )) # from line 43, col 35. write(''' <b><u>(''') _orig_filter_39168833 = _filter filterName = 'Quantity' if self._CHEETAH__filters.has_key("Quantity"): _filter = self._CHEETAH__currentFilter = self._CHEETAH__filters[ filterName] else: _filter = self._CHEETAH__currentFilter = \ self._CHEETAH__filters[filterName] = getattr(self._CHEETAH__filtersLib, filterName)(self).filter _v = VFFSL(SL, "q", True) # '$q' on line 43, col 116 if _v is not None: write(_filter(_v, rawExpr='$q')) # from line 43, col 116. _filter = _orig_filter_39168833 write(''')</u></b></th> </tr> </tfoot> </table> ''') write(''' <form action="taskWaresScan"> <input type="hidden" name="tid" value="''') _v = VFFSL(SL, "tid", True) # '$tid' on line 50, col 48 if _v is not None: write(_filter(_v, rawExpr='$tid')) # from line 50, col 48. write('''"> <input type="hidden" name="wid" value="''') _v = VFFSL(SL, "wid", True) # '$wid' on line 51, col 48 if _v is not None: write(_filter(_v, rawExpr='$wid')) # from line 51, col 48. write('''"> \t\xd8\xca: <input type="text" id="barcode:scan:text" name="barcode" title="''' ) if False: _('Товар') _v = VFFSL(SL, "_", False)( 'Товар') # "$_('\xd2\xee\xe2\xe0\xf0')" on line 52, col 74 if _v is not None: write(_filter( _v, rawExpr="$_('\xd2\xee\xe2\xe0\xf0')")) # from line 52, col 74. write(''', ''') if False: _('Поддон') _v = VFFSL(SL, "_", False)( 'Поддон' ) # "$_('\xcf\xee\xe4\xe4\xee\xed')" on line 52, col 87 if _v is not None: write(_filter(_v, rawExpr="$_('\xcf\xee\xe4\xe4\xee\xed')") ) # from line 52, col 87. write('''" class="scanBarcode"><br> \t</form> ''') ######################################## ## END - generated method body return _dummyTrans and trans.response().getvalue() or ""
def mainData(self, **KWS): ## CHEETAH: generated from #def mainData at line 4, col 1. trans = KWS.get("trans") if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)): trans = self.transaction # is None unless self.awake() was called if not trans: trans = DummyTransaction() _dummyTrans = True else: _dummyTrans = False write = trans.response().write SL = self._CHEETAH__searchList _filter = self._CHEETAH__currentFilter ######################################## ## START - generated method body write(''' <b> \xb9 ''') _v = VFFSL(SL,"docnum",True) # '$docnum' on line 6, col 10 if _v is not None: write(_filter(_v, rawExpr='$docnum')) # from line 6, col 10. write(''' \xee\xf2 ''') _orig_filter_60340317 = _filter filterName = 'DateFilter' if self._CHEETAH__filters.has_key("DateFilter"): _filter = self._CHEETAH__currentFilter = self._CHEETAH__filters[filterName] else: _filter = self._CHEETAH__currentFilter = \ self._CHEETAH__filters[filterName] = getattr(self._CHEETAH__filtersLib, filterName)(self).filter _v = VFFSL(SL,"docdate",True) # '$docdate' on line 6, col 40 if _v is not None: write(_filter(_v, rawExpr='$docdate')) # from line 6, col 40. write(''' ''') _filter = _orig_filter_60340317 write(''' </b> <br> \xb9 ''') _v = VFFSL(SL,"TID",True) # '$TID' on line 7, col 11 if _v is not None: write(_filter(_v, rawExpr='$TID')) # from line 7, col 11. write(''' <br> ''') if False: _('Отсканируйте единицу транспортировки') _v = VFFSL(SL,"_",False)('Отсканируйте единицу транспортировки') # "$_('\xce\xf2\xf1\xea\xe0\xed\xe8\xf0\xf3\xe9\xf2\xe5 \xe5\xe4\xe8\xed\xe8\xf6\xf3 \xf2\xf0\xe0\xed\xf1\xef\xee\xf0\xf2\xe8\xf0\xee\xe2\xea\xe8')" on line 10, col 5 if _v is not None: write(_filter(_v, rawExpr="$_('\xce\xf2\xf1\xea\xe0\xed\xe8\xf0\xf3\xe9\xf2\xe5 \xe5\xe4\xe8\xed\xe8\xf6\xf3 \xf2\xf0\xe0\xed\xf1\xef\xee\xf0\xf2\xe8\xf0\xee\xe2\xea\xe8')")) # from line 10, col 5. write(''' <form action=taskTransUnit> <input type=hidden name=id value=''') _v = VFFSL(SL,"TID",True) # '$TID' on line 12, col 42 if _v is not None: write(_filter(_v, rawExpr='$TID')) # from line 12, col 42. write("""> <input type=text name=barcode id='barcode:scan'> </form> """) ######################################## ## END - generated method body return _dummyTrans and trans.response().getvalue() or ""
def engineData(self, **KWS): ## CHEETAH: generated from #def engineData at line 14, col 1. trans = KWS.get("trans") if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)): trans = self.transaction # is None unless self.awake() was called if not trans: trans = DummyTransaction() _dummyTrans = True else: _dummyTrans = False write = trans.response().write SL = self._CHEETAH__searchList _filter = self._CHEETAH__currentFilter ######################################## ## START - generated method body write(''' ''') # Styles write(''' <link href="''') _v = VFFSL(SL,"sps_css.KURSSKLAD",True) # '$sps_css.KURSSKLAD' on line 17, col 17 if _v is not None: write(_filter(_v, rawExpr='$sps_css.KURSSKLAD')) # from line 17, col 17. write('''/k.progressbar.css" rel="stylesheet" type="text/css" media="screen"/> ''') # Scripts write(''' <script type="text/javascript" src="''') _v = VFFSL(SL,"eng_js",True) # '$eng_js' on line 20, col 41 if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 20, col 41. write('''/ui.datepicker.min.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"eng_js",True) # '$eng_js' on line 21, col 41 if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 21, col 41. write('''/i18n/ui.datepicker-ru.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"eng_js",True) # '$eng_js' on line 22, col 41 if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 22, col 41. write('''/jquery.maskedinput-1.2.1.pack.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"eng_js",True) # '$eng_js' on line 23, col 41 if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 23, col 41. write('''/ui.dialog.min.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"eng_js",True) # '$eng_js' on line 24, col 41 if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 24, col 41. write('''/jquery.rightClick.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"eng_js",True) # '$eng_js' on line 25, col 41 if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 25, col 41. write('''/jquery.rowFocus.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"eng_js",True) # '$eng_js' on line 26, col 41 if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 26, col 41. write('''/jquery.tablesorter.min.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"eng_js",True) # '$eng_js' on line 27, col 41 if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 27, col 41. write('''/kTblScroll.min.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"sps_js.KURSSKLAD",True) # '$sps_js.KURSSKLAD' on line 29, col 41 if _v is not None: write(_filter(_v, rawExpr='$sps_js.KURSSKLAD')) # from line 29, col 41. write('''/jquery.blockUI.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"sps_js.KURSSKLAD",True) # '$sps_js.KURSSKLAD' on line 30, col 41 if _v is not None: write(_filter(_v, rawExpr='$sps_js.KURSSKLAD')) # from line 30, col 41. write('''/k.messages.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"sps_js.KURSSKLAD",True) # '$sps_js.KURSSKLAD' on line 31, col 41 if _v is not None: write(_filter(_v, rawExpr='$sps_js.KURSSKLAD')) # from line 31, col 41. write('''/k.form.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"sps_js.KURSSKLAD",True) # '$sps_js.KURSSKLAD' on line 32, col 41 if _v is not None: write(_filter(_v, rawExpr='$sps_js.KURSSKLAD')) # from line 32, col 41. write('''/k.formats.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"sps_js.KURSSKLAD",True) # '$sps_js.KURSSKLAD' on line 33, col 41 if _v is not None: write(_filter(_v, rawExpr='$sps_js.KURSSKLAD')) # from line 33, col 41. write('''/k.blocks.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"sps_js.KURSSKLAD",True) # '$sps_js.KURSSKLAD' on line 34, col 41 if _v is not None: write(_filter(_v, rawExpr='$sps_js.KURSSKLAD')) # from line 34, col 41. write('''/k.progressbar.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"sps_js.KURSSKLAD",True) # '$sps_js.KURSSKLAD' on line 35, col 41 if _v is not None: write(_filter(_v, rawExpr='$sps_js.KURSSKLAD')) # from line 35, col 41. write('''/k.id.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"sp_js",True) # '$sp_js' on line 36, col 41 if _v is not None: write(_filter(_v, rawExpr='$sp_js')) # from line 36, col 41. write('''/restWaresSale.js"></script> <div id="dvWH" style="float:left;position:relative;width:100%;"></div> ''') ######################################## ## END - generated method body return _dummyTrans and trans.response().getvalue() or ""
def mainData(self, **KWS): ## CHEETAH: generated from #def mainData at line 5, col 1. trans = KWS.get("trans") if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)): trans = self.transaction # is None unless self.awake() was called if not trans: trans = DummyTransaction() _dummyTrans = True else: _dummyTrans = False write = trans.response().write SL = self._CHEETAH__searchList _filter = self._CHEETAH__currentFilter ######################################## ## START - generated method body write(''' \xb9 <b>''') _v = VFFSL(SL,"docnum",True) # '$docnum' on line 6, col 10 if _v is not None: write(_filter(_v, rawExpr='$docnum')) # from line 6, col 10. write('''</b> \xee\xf2 <b>''') _orig_filter_22397595 = _filter filterName = 'DateFilter' if self._CHEETAH__filters.has_key("DateFilter"): _filter = self._CHEETAH__currentFilter = self._CHEETAH__filters[filterName] else: _filter = self._CHEETAH__currentFilter = \ self._CHEETAH__filters[filterName] = getattr(self._CHEETAH__filtersLib, filterName)(self).filter _v = VFFSL(SL,"docdate",True) # '$docdate' on line 6, col 46 if _v is not None: write(_filter(_v, rawExpr='$docdate')) # from line 6, col 46. _filter = _orig_filter_22397595 write(''' (<u>''') _v = VFFSL(SL,"TID",True) # '$TID' on line 6, col 71 if _v is not None: write(_filter(_v, rawExpr='$TID')) # from line 6, col 71. write('''</u>)</b> ''') if VFFSL(SL,"varExists",False)('$TONAME') and VFFSL(SL,"TONAME",True): # generated from line 7, col 5 write(''' <br>''') _v = VFFSL(SL,"TONAME",True) # '$TONAME' on line 8, col 13 if _v is not None: write(_filter(_v, rawExpr='$TONAME')) # from line 8, col 13. write('''<br> ''') write(''' <b><u>''') _v = VFFSL(SL,"INFONAME",True) # '$INFONAME' on line 10, col 11 if _v is not None: write(_filter(_v, rawExpr='$INFONAME')) # from line 10, col 11. write('''</u></b> <hr> <form action="taskMWares"> <input type="hidden" name="taskid" value="''') _v = VFFSL(SL,"TID",True) # '$TID' on line 13, col 51 if _v is not None: write(_filter(_v, rawExpr='$TID')) # from line 13, col 51. write('''"> <input type="hidden" name="waresid" value="''') _v = VFFSL(SL,"WID",True) # '$WID' on line 14, col 52 if _v is not None: write(_filter(_v, rawExpr='$WID')) # from line 14, col 52. write('''"> ''') if False: _('ШК') _v = VFFSL(SL,"_",False)('ШК') # "$_('\xd8\xca')" on line 15, col 9 if _v is not None: write(_filter(_v, rawExpr="$_('\xd8\xca')")) # from line 15, col 9. write(''': <input type="text" id=":scan:text" name="barcode" title="''') if False: _('Товар') _v = VFFSL(SL,"_",False)('Товар') # "$_('\xd2\xee\xe2\xe0\xf0')" on line 15, col 76 if _v is not None: write(_filter(_v, rawExpr="$_('\xd2\xee\xe2\xe0\xf0')")) # from line 15, col 76. write('''"><br> </form> <hr> <b><u>(''') _v = VFFSL(SL,"WCODE",True) # '$WCODE' on line 19, col 12 if _v is not None: write(_filter(_v, rawExpr='$WCODE')) # from line 19, col 12. write(''')</u></b>''') _v = VFFSL(SL,"WNAME",True) # '$WNAME' on line 19, col 27 if _v is not None: write(_filter(_v, rawExpr='$WNAME')) # from line 19, col 27. write(''' ''') if VFFSL(SL,"varExists",False)('$ARTICUL') and VFFSL(SL,"ARTICUL",True): # generated from line 20, col 5 write(''' \t<b>(<u>''') _v = VFFSL(SL,"ARTICUL",True) # '$ARTICUL' on line 21, col 13 if _v is not None: write(_filter(_v, rawExpr='$ARTICUL')) # from line 21, col 13. write('''</u>)</b> ''') write(''' <br> ''') if VFFSL(SL,"VWUID",True): # generated from line 24, col 5 write(''' <b>''') _v = VFFSL(SL,"VWUCODE",True) # '$VWUCODE' on line 25, col 12 if _v is not None: write(_filter(_v, rawExpr='$VWUCODE')) # from line 25, col 12. write(''' = ''') _orig_filter_68095643 = _filter filterName = 'Quantity' if self._CHEETAH__filters.has_key("Quantity"): _filter = self._CHEETAH__currentFilter = self._CHEETAH__filters[filterName] else: _filter = self._CHEETAH__currentFilter = \ self._CHEETAH__filters[filterName] = getattr(self._CHEETAH__filtersLib, filterName)(self).filter _v = VFFSL(SL,"VWUFACTOR",True) # '$VWUFACTOR' on line 25, col 39 if _v is not None: write(_filter(_v, rawExpr='$VWUFACTOR')) # from line 25, col 39. _filter = _orig_filter_68095643 write(''' ''') _v = VFFSL(SL,"MWUCODE",True) # '$MWUCODE' on line 25, col 62 if _v is not None: write(_filter(_v, rawExpr='$MWUCODE')) # from line 25, col 62. write(''' </b><br> ''') write(''' <br> ''') if VFFSL(SL,"varExists",False)('$datalist') and VFFSL(SL,"datalist",True) and len(VFFSL(SL,"datalist",True))>0: # generated from line 29, col 5 wuamount = 0 amount = 0 write(''' <form action=taskMWaresSave method=post> <input type=hidden name=waresid value=''') _v = VFFSL(SL,"wid",True) # '$wid' on line 33, col 47 if _v is not None: write(_filter(_v, rawExpr='$wid')) # from line 33, col 47. write('''> <input type=hidden name=taskid value=''') _v = VFFSL(SL,"tid",True) # '$tid' on line 34, col 46 if _v is not None: write(_filter(_v, rawExpr='$tid')) # from line 34, col 46. write('''> <input type=hidden name=dbeg value="''') _v = VFFSL(SL,"dbeg",True) # '$dbeg' on line 35, col 45 if _v is not None: write(_filter(_v, rawExpr='$dbeg')) # from line 35, col 45. write('''"> <table> <thead> <tr> <th>''') if False: _('Дата') _v = VFFSL(SL,"_",False)('Дата') # "$_('\xc4\xe0\xf2\xe0')" on line 39, col 25 if _v is not None: write(_filter(_v, rawExpr="$_('\xc4\xe0\xf2\xe0')")) # from line 39, col 25. write('''</th> <th> <select name=wuid id=":focus:"> <option value=''') _v = VFFSL(SL,"MWUID",True) # '$MWUID' on line 42, col 43 if _v is not None: write(_filter(_v, rawExpr='$MWUID')) # from line 42, col 43. write(''' selected>''') _v = VFFSL(SL,"MWUCODE",True) # '$MWUCODE' on line 42, col 59 if _v is not None: write(_filter(_v, rawExpr='$MWUCODE')) # from line 42, col 59. write('''</option> ''') if VFFSL(SL,"VWUID",True): # generated from line 43, col 27 write(''' <option value=''') _v = VFFSL(SL,"VWUID",True) # '$VWUID' on line 44, col 43 if _v is not None: write(_filter(_v, rawExpr='$VWUID')) # from line 44, col 43. write('''>''') _v = VFFSL(SL,"VWUCODE",True) # '$VWUCODE' on line 44, col 50 if _v is not None: write(_filter(_v, rawExpr='$VWUCODE')) # from line 44, col 50. write('''</option> ''') write(''' </select> </th> <th>''') if False: _('Кол-во') _v = VFFSL(SL,"_",False)('Кол-во') # "$_('\xca\xee\xeb-\xe2\xee')" on line 48, col 25 if _v is not None: write(_filter(_v, rawExpr="$_('\xca\xee\xeb-\xe2\xee')")) # from line 48, col 25. write('''</th> <tr> </thead> <tbody> ''') for item in VFFSL(SL,"datalist",True): # generated from line 52, col 13 if VFFSL(SL,"item.canedit",True) == '0': # generated from line 53, col 17 trClass = 'class="inactive"' else: # generated from line 55, col 17 trClass = '' write(''' <tr ''') _v = VFFSL(SL,"trClass",True) # '$trClass' on line 58, col 21 if _v is not None: write(_filter(_v, rawExpr='$trClass')) # from line 58, col 21. write('''> <td>''') _orig_filter_88920082 = _filter filterName = 'DateFilter2' if self._CHEETAH__filters.has_key("DateFilter2"): _filter = self._CHEETAH__currentFilter = self._CHEETAH__filters[filterName] else: _filter = self._CHEETAH__currentFilter = \ self._CHEETAH__filters[filterName] = getattr(self._CHEETAH__filtersLib, filterName)(self).filter _v = VFFSL(SL,"item.productdate",True) # '$item.productdate' on line 59, col 44 if _v is not None: write(_filter(_v, rawExpr='$item.productdate')) # from line 59, col 44. _filter = _orig_filter_88920082 write('''</td> ''') if VFFSL(SL,"item.canedit",True) == '1': # generated from line 60, col 19 write(''' <td><input type="text" name="WL_''') _v = VFFSL(SL,"item.WLOTID",True) # '$item.WLOTID' on line 61, col 53 if _v is not None: write(_filter(_v, rawExpr='$item.WLOTID')) # from line 61, col 53. write('''" id="::float" title="''') _v = VFFSL(SL,"item.WLNUMBER",True) # '$item.WLNUMBER' on line 61, col 87 if _v is not None: write(_filter(_v, rawExpr='$item.WLNUMBER')) # from line 61, col 87. write('''" value="''') _orig_filter_30262987 = _filter filterName = 'Quantity' if self._CHEETAH__filters.has_key("Quantity"): _filter = self._CHEETAH__currentFilter = self._CHEETAH__filters[filterName] else: _filter = self._CHEETAH__currentFilter = \ self._CHEETAH__filters[filterName] = getattr(self._CHEETAH__filtersLib, filterName)(self).filter _v = VFFSL(SL,"item.AMOUNT",True) # '$item.AMOUNT' on line 61, col 126 if _v is not None: write(_filter(_v, rawExpr='$item.AMOUNT')) # from line 61, col 126. _filter = _orig_filter_30262987 write('''" size="4"></td> ''') else: # generated from line 62, col 19 write(''' <td><a href=\'#\' title="''') _v = VFFSL(SL,"item.WLNUMBER",True) # '$item.WLNUMBER' on line 63, col 44 if _v is not None: write(_filter(_v, rawExpr='$item.WLNUMBER')) # from line 63, col 44. write('''">''') _orig_filter_14753798 = _filter filterName = 'Quantity' if self._CHEETAH__filters.has_key("Quantity"): _filter = self._CHEETAH__currentFilter = self._CHEETAH__filters[filterName] else: _filter = self._CHEETAH__currentFilter = \ self._CHEETAH__filters[filterName] = getattr(self._CHEETAH__filtersLib, filterName)(self).filter _v = VFFSL(SL,"item.AMOUNT",True) # '$item.AMOUNT' on line 63, col 76 if _v is not None: write(_filter(_v, rawExpr='$item.AMOUNT')) # from line 63, col 76. _filter = _orig_filter_14753798 write('''</a></td> ''') write(''' <td>''') _v = VFFSL(SL,"viewQuantity",False)(VFFSL(SL,"item.AMOUNT",True),VFFSL(SL,"VWUFACTOR",True),VFFSL(SL,"VWUCODE",True),VFFSL(SL,"MWUFACTOR",True),VFFSL(SL,"MWUCODE",True)) # '$viewQuantity($item.AMOUNT,$VWUFACTOR,$VWUCODE,$MWUFACTOR,$MWUCODE)' on line 65, col 25 if _v is not None: write(_filter(_v, rawExpr='$viewQuantity($item.AMOUNT,$VWUFACTOR,$VWUCODE,$MWUFACTOR,$MWUCODE)')) # from line 65, col 25. write('''(<b><u>''') _orig_filter_57748425 = _filter filterName = 'Quantity' if self._CHEETAH__filters.has_key("Quantity"): _filter = self._CHEETAH__currentFilter = self._CHEETAH__filters[filterName] else: _filter = self._CHEETAH__currentFilter = \ self._CHEETAH__filters[filterName] = getattr(self._CHEETAH__filtersLib, filterName)(self).filter _v = VFFSL(SL,"item.AMOUNT",True) # '$item.AMOUNT' on line 65, col 115 if _v is not None: write(_filter(_v, rawExpr='$item.AMOUNT')) # from line 65, col 115. _filter = _orig_filter_57748425 write('''</u></b>)</td> </tr> ''') amount += float(VFFSL(SL,"item.AMOUNT",True)) write(''' </tbody> <tfoot> <tr> <th>''') if False: _('Итого') _v = VFFSL(SL,"_",False)('Итого') # "$_('\xc8\xf2\xee\xe3\xee')" on line 72, col 25 if _v is not None: write(_filter(_v, rawExpr="$_('\xc8\xf2\xee\xe3\xee')")) # from line 72, col 25. write(''':</th> <th colspan=2>''') _v = VFFSL(SL,"viewQuantity",False)(VFFSL(SL,"amount",True),VFFSL(SL,"VWUFACTOR",True),VFFSL(SL,"VWUCODE",True),VFFSL(SL,"MWUFACTOR",True),VFFSL(SL,"MWUCODE",True)) # '$viewQuantity($amount,$VWUFACTOR,$VWUCODE,$MWUFACTOR,$MWUCODE)' on line 73, col 35 if _v is not None: write(_filter(_v, rawExpr='$viewQuantity($amount,$VWUFACTOR,$VWUCODE,$MWUFACTOR,$MWUCODE)')) # from line 73, col 35. write('''(<b><u>''') _orig_filter_11841561 = _filter filterName = 'Quantity' if self._CHEETAH__filters.has_key("Quantity"): _filter = self._CHEETAH__currentFilter = self._CHEETAH__filters[filterName] else: _filter = self._CHEETAH__currentFilter = \ self._CHEETAH__filters[filterName] = getattr(self._CHEETAH__filtersLib, filterName)(self).filter _v = VFFSL(SL,"amount",True) # '$amount' on line 73, col 120 if _v is not None: write(_filter(_v, rawExpr='$amount')) # from line 73, col 120. _filter = _orig_filter_11841561 write('''</u></b>)</th> </tr> </tfoot> </table> <input type="submit" value="''') if False: _('Сохранить') _v = VFFSL(SL,"_",False)('Сохранить') # "$_('\xd1\xee\xf5\xf0\xe0\xed\xe8\xf2\xfc')" on line 77, col 37 if _v is not None: write(_filter(_v, rawExpr="$_('\xd1\xee\xf5\xf0\xe0\xed\xe8\xf2\xfc')")) # from line 77, col 37. write('''"> </form> ''') ######################################## ## END - generated method body return _dummyTrans and trans.response().getvalue() or ""
def phData(self, **KWS): ## CHEETAH: generated from #def phData at line 3, col 1. trans = KWS.get("trans") if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)): trans = self.transaction # is None unless self.awake() was called if not trans: trans = DummyTransaction() _dummyTrans = True else: _dummyTrans = False write = trans.response().write SL = self._CHEETAH__searchList _filter = self._CHEETAH__currentFilter ######################################## ## START - generated method body write(''' <link href="''') _v = VFFSL(SL,"sps_css.KURSSKLAD",True) # '$sps_css.KURSSKLAD' on line 4, col 17 if _v is not None: write(_filter(_v, rawExpr='$sps_css.KURSSKLAD')) # from line 4, col 17. write('''/tabs/jquery.tabs.css" rel="stylesheet" type="text/css" media="screen"/> ''') # Scripts write(''' <script type="text/javascript" src="''') _v = VFFSL(SL,"sps_js.KURSSKLAD",True) # '$sps_js.KURSSKLAD' on line 7, col 41 if _v is not None: write(_filter(_v, rawExpr='$sps_js.KURSSKLAD')) # from line 7, col 41. write('''/jquery.tabs.pack.js"></script> \t<script type="text/javascript" src="''') _v = VFFSL(SL,"sp_js",True) # '$sp_js' on line 8, col 38 if _v is not None: write(_filter(_v, rawExpr='$sp_js')) # from line 8, col 38. write('''/waresprod.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"sp_js",True) # '$sp_js' on line 9, col 41 if _v is not None: write(_filter(_v, rawExpr='$sp_js')) # from line 9, col 41. write('''/wares.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"sps_js.KURSSKLAD",True) # '$sps_js.KURSSKLAD' on line 10, col 41 if _v is not None: write(_filter(_v, rawExpr='$sps_js.KURSSKLAD')) # from line 10, col 41. write('''/jquery.blockUI.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"sps_js.KURSSKLAD",True) # '$sps_js.KURSSKLAD' on line 11, col 41 if _v is not None: write(_filter(_v, rawExpr='$sps_js.KURSSKLAD')) # from line 11, col 41. write('''/k.waresLocate.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"eng_js",True) # '$eng_js' on line 12, col 41 if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 12, col 41. write('''/ui.datepicker.min.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"eng_js",True) # '$eng_js' on line 13, col 41 if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 13, col 41. write('''/i18n/ui.datepicker-ru.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"eng_js",True) # '$eng_js' on line 14, col 41 if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 14, col 41. write('''/jquery.maskedinput-1.2.1.pack.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"eng_js",True) # '$eng_js' on line 15, col 41 if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 15, col 41. write('''/ui.dialog.min.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"eng_js",True) # '$eng_js' on line 16, col 41 if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 16, col 41. write('''/jquery.contextMenu.min.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL,"eng_js",True) # '$eng_js' on line 17, col 41 if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 17, col 41. write('''/jquery.rightClick.min.js"></script> <form class="buttons"> \xd2\xee\xe2\xe0\xf0 <input type=text id="wares"> \xc4\xe0\xf2\xe0 \xef\xf0\xee\xe8\xe7\xe2\xee\xe4\xf1\xf2\xe2\xe0 <input type=text id="date" size="8" > \xc7\xee\xed\xe0 <select id="zone"></select> <input type="hidden" value="null" id="waresid" /> <button type=submit><img src="''') _v = VFFSL(SL,"eng_img",True) # '$eng_img' on line 24, col 39 if _v is not None: write(_filter(_v, rawExpr='$eng_img')) # from line 24, col 39. write('''/arrows/arrow_right.png" /></button> </form> <div id="result" style="text-align:left;"></div> ''') ######################################## ## END - generated method body return _dummyTrans and trans.response().getvalue() or ""
def palFooter(self, **KWS): ## CHEETAH: generated from #def palFooter at line 4, col 1. trans = KWS.get("trans") if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)): trans = self.transaction # is None unless self.awake() was called if not trans: trans = DummyTransaction() _dummyTrans = True else: _dummyTrans = False write = trans.response().write SL = self._CHEETAH__searchList _filter = self._CHEETAH__currentFilter ######################################## ## START - generated method body if VFFSL(SL, "PAL_CANEDIT", True) == '1' or VFFSL( SL, "PAL_TCANMOVE", True) != '0': # generated from line 5, col 5 write(''' <hr> ''') if False: _('Паллет') title = VFFSL(SL, "_", False)('Паллет') if VFFSL(SL, "PAL_CANEDIT", True) == '1': # generated from line 8, col 9 if VFFSL(SL, "varExists", False)('$datalist') and len( VFFSL(SL, "datalist", True)) > 0: # generated from line 9, col 13 write(''' ''') if False: _('Товар') title += ', ' + VFFSL(SL, "_", False)('Товар') if VFFSL(SL, "PAL_TCANMOVE", True) != '0': # generated from line 13, col 9 write(''' ''') if False: _('МП паллета') title += ', ' + VFFSL(SL, "_", False)('МП паллета') write(''' <form action="palScan"> <input type="hidden" name="id" value="''') _v = VFFSL(SL, "PAL_ID", True) # '$PAL_ID' on line 17, col 51 if _v is not None: write(_filter(_v, rawExpr='$PAL_ID')) # from line 17, col 51. write('''"> ''') if False: _('ШК') _v = VFFSL(SL, "_", False)('ШК') # "$_('\xd8\xca')" on line 18, col 13 if _v is not None: write(_filter( _v, rawExpr="$_('\xd8\xca')")) # from line 18, col 13. write( ''': <input type="text" id=":scan:text" name="barcode" value="" title="''' ) _v = VFFSL(SL, "title", True) # '$title' on line 18, col 89 if _v is not None: write(_filter(_v, rawExpr='$title')) # from line 18, col 89. write('''"> </form> ''') ######################################## ## END - generated method body return _dummyTrans and trans.response().getvalue() or ""
def mainData(self, **KWS): ## CHEETAH: generated from #def mainData at line 4, col 1. trans = KWS.get("trans") if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)): trans = self.transaction # is None unless self.awake() was called if not trans: trans = DummyTransaction() _dummyTrans = True else: _dummyTrans = False write = trans.response().write SL = self._CHEETAH__searchList _filter = self._CHEETAH__currentFilter ######################################## ## START - generated method body write(''' <b><u>''') _v = VFFSL(SL,"FROMNAME",True) # '$FROMNAME' on line 5, col 11 if _v is not None: write(_filter(_v, rawExpr='$FROMNAME')) # from line 5, col 11. write('''</u></b><br> <b>''') _orig_filter_35119556 = _filter filterName = 'DateFilter' if self._CHEETAH__filters.has_key("DateFilter"): _filter = self._CHEETAH__currentFilter = self._CHEETAH__filters[filterName] else: _filter = self._CHEETAH__currentFilter = \ self._CHEETAH__filters[filterName] = getattr(self._CHEETAH__filtersLib, filterName)(self).filter _v = VFFSL(SL,"DOCDATE",True) # '$DOCDATE' on line 6, col 26 if _v is not None: write(_filter(_v, rawExpr='$DOCDATE')) # from line 6, col 26. _filter = _orig_filter_35119556 write('''</b> \xb9<b>''') _v = VFFSL(SL,"DOCNUM",True) # '$DOCNUM' on line 6, col 55 if _v is not None: write(_filter(_v, rawExpr='$DOCNUM')) # from line 6, col 55. write('''</b><br> <b>''') _v = VFFSL(SL,"S_NAME",True) # '$S_NAME' on line 7, col 8 if _v is not None: write(_filter(_v, rawExpr='$S_NAME')) # from line 7, col 8. write('''</b> <hr> <b><u>(''') _v = VFFSL(SL,"WCODE",True) # '$WCODE' on line 9, col 12 if _v is not None: write(_filter(_v, rawExpr='$WCODE')) # from line 9, col 12. write(''')</u></b> ''') _v = VFFSL(SL,"WNAME",True) # '$WNAME' on line 9, col 28 if _v is not None: write(_filter(_v, rawExpr='$WNAME')) # from line 9, col 28. write('''<br> ''') if VFFSL(SL,"varExists",False)('$STACKMODELID'): # generated from line 10, col 5 write(''' <b>''') _v = VFFSL(SL,"STACKMODELNAME",True) # '$STACKMODELNAME' on line 11, col 12 if _v is not None: write(_filter(_v, rawExpr='$STACKMODELNAME')) # from line 11, col 12. write('''</b><br> <hr> ''') else: # generated from line 13, col 5 write(''' <br> ''') write(''' ''') if False: _('Выберите линию производства') _v = VFFSL(SL,"_",False)('Выберите линию производства') # "$_('\xc2\xfb\xe1\xe5\xf0\xe8\xf2\xe5 \xeb\xe8\xed\xe8\xfe \xef\xf0\xee\xe8\xe7\xe2\xee\xe4\xf1\xf2\xe2\xe0')" on line 17, col 5 if _v is not None: write(_filter(_v, rawExpr="$_('\xc2\xfb\xe1\xe5\xf0\xe8\xf2\xe5 \xeb\xe8\xed\xe8\xfe \xef\xf0\xee\xe8\xe7\xe2\xee\xe4\xf1\xf2\xe2\xe0')")) # from line 17, col 5. write('''<br> ''') if VFFSL(SL,"varExists",False)('$datalist') and VFFSL(SL,"datalist",True): # generated from line 18, col 5 if VFFSL(SL,"varExists",False)('$STACKMODELID'): # generated from line 19, col 9 for item in VFFSL(SL,"datalist",True): # generated from line 20, col 13 write(''' <a href="taskStackWaresProducer?tid=''') _v = VFFSL(SL,"TID",True) # '$TID' on line 21, col 53 if _v is not None: write(_filter(_v, rawExpr='$TID')) # from line 21, col 53. write('''&sid=''') _v = VFFSL(SL,"S_ID",True) # '$S_ID' on line 21, col 62 if _v is not None: write(_filter(_v, rawExpr='$S_ID')) # from line 21, col 62. write('''&wid=''') _v = VFFSL(SL,"WID",True) # '$WID' on line 21, col 72 if _v is not None: write(_filter(_v, rawExpr='$WID')) # from line 21, col 72. write('''&mid=''') _v = VFFSL(SL,"STACKMODELID",True) # '$STACKMODELID' on line 21, col 81 if _v is not None: write(_filter(_v, rawExpr='$STACKMODELID')) # from line 21, col 81. write('''&lid=''') _v = VFFSL(SL,"item.ID_PRODLINE",True) # '$item.ID_PRODLINE' on line 21, col 99 if _v is not None: write(_filter(_v, rawExpr='$item.ID_PRODLINE')) # from line 21, col 99. write('''">''') _v = VFFSL(SL,"item.NUMBER",True) # '$item.NUMBER' on line 21, col 118 if _v is not None: write(_filter(_v, rawExpr='$item.NUMBER')) # from line 21, col 118. write(''' - ''') _v = VFFSL(SL,"item.NAME",True) # '$item.NAME' on line 21, col 133 if _v is not None: write(_filter(_v, rawExpr='$item.NAME')) # from line 21, col 133. write('''</a><br> ''') else: # generated from line 23, col 9 for item in VFFSL(SL,"datalist",True): # generated from line 24, col 13 write(''' <a href="taskStackWaresProducer?tid=''') _v = VFFSL(SL,"TID",True) # '$TID' on line 25, col 53 if _v is not None: write(_filter(_v, rawExpr='$TID')) # from line 25, col 53. write('''&sid=''') _v = VFFSL(SL,"S_ID",True) # '$S_ID' on line 25, col 62 if _v is not None: write(_filter(_v, rawExpr='$S_ID')) # from line 25, col 62. write('''&wid=''') _v = VFFSL(SL,"WID",True) # '$WID' on line 25, col 72 if _v is not None: write(_filter(_v, rawExpr='$WID')) # from line 25, col 72. write('''&lid=''') _v = VFFSL(SL,"item.ID_PRODLINE",True) # '$item.ID_PRODLINE' on line 25, col 81 if _v is not None: write(_filter(_v, rawExpr='$item.ID_PRODLINE')) # from line 25, col 81. write('''">''') _v = VFFSL(SL,"item.NUMBER",True) # '$item.NUMBER' on line 25, col 100 if _v is not None: write(_filter(_v, rawExpr='$item.NUMBER')) # from line 25, col 100. write(''' - ''') _v = VFFSL(SL,"item.NAME",True) # '$item.NAME' on line 25, col 115 if _v is not None: write(_filter(_v, rawExpr='$item.NAME')) # from line 25, col 115. write('''</a><br> ''') ######################################## ## END - generated method body return _dummyTrans and trans.response().getvalue() or ""
def respond(self, trans=None, dummyTrans=False, VFS=valueFromSearchList, VFN=valueForName, getmtime=getmtime, currentTime=time.time, globals=globals, locals=locals, __builtin__=__builtin__): """ This is the main method generated by Cheetah """ if not trans: trans = DummyTransaction() dummyTrans = True write = trans.response().write SL = self._searchList filter = self._currentFilter globalSetVars = self._globalSetVars ######################################## ## START - generated method body ## START CACHE REGION: at line, col (6, 1) in the source. RECACHE = True if not self._cacheData.has_key('56424669'): self._cacheIndex['header'] = '56424669' pass else: RECACHE = False if RECACHE: orig_trans = trans trans = cacheCollector = DummyTransaction() write = cacheCollector.response().write write(filter(VFS(SL + [globals(), __builtin__],"docType",1), rawExpr='$docType')) # from line 7, col 1. write('\n') write(filter(VFS(SL + [globals(), __builtin__],"htmlTag",1), rawExpr='$htmlTag')) # from line 8, col 1. write(''' <!-- This document was autogenerated by Cheetah(http://CheetahTemplate.org). Do not edit it directly! Copyright ''') write(filter(VFS(SL + [globals(), __builtin__],"currentYr",1), rawExpr='$currentYr')) # from line 12, col 11. write(' - ') write(filter(VFS(SL + [globals(), __builtin__],"siteCopyrightName",1), rawExpr='$siteCopyrightName')) # from line 12, col 24. write(' - All Rights Reserved.\nFeel free to copy any javascript or html you like on this site,\nprovided you remove all links and/or references to ') write(filter(VFS(SL + [globals(), __builtin__],"siteDomainName",1), rawExpr='$siteDomainName')) # from line 14, col 52. write(''' However, please do not copy any content or images without permission. ''') write(filter(VFS(SL + [globals(), __builtin__],"siteCredits",1), rawExpr='$siteCredits')) # from line 17, col 1. write(''' --> ''') self.writeHeadTag(trans=trans) # generated from ('writeHeadTag', '#block writeHeadTag') at line 22, col 1. write('\n') trans = orig_trans write = trans.response().write self._cacheData['56424669'] = cacheCollector.response().getvalue() del cacheCollector write(self._cacheData['56424669']) ## END CACHE REGION write('\n') write(filter(VFS(SL + [globals(), __builtin__],"bodyTag",1), rawExpr='$bodyTag')) # from line 34, col 1. write('\n\n') self.writeBody(trans=trans) # generated from ('writeBody', '#block writeBody') at line 36, col 1. write(''' </body> </html> ''') ######################################## ## END - generated method body if dummyTrans: return trans.response().getvalue() else: return ""
def systemNavigation(self, **KWS): ## CHEETAH: generated from #def systemNavigation at line 7, col 1. trans = KWS.get("trans") if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)): trans = self.transaction # is None unless self.awake() was called if not trans: trans = DummyTransaction() _dummyTrans = True else: _dummyTrans = False write = trans.response().write SL = self._CHEETAH__searchList _filter = self._CHEETAH__currentFilter ######################################## ## START - generated method body write(''' <form class="buttons"> C <input id="dBeg" type=text class="date" /> \xcf\xee <input id="dEnd" type=text class="date" /> \xcf\xee\xe4\xf2\xe8\xef <select id="subtype"> <option value="null">\xc2\xf1\xe5</option> ''') for item in VFFSL(SL, "subtype", True): # generated from line 14, col 9 write(''' <option value="''') _v = VFFSL(SL, "item.CODE", True) # '$item.CODE' on line 15, col 28 if _v is not None: write(_filter(_v, rawExpr='$item.CODE')) # from line 15, col 28. write('''">''') _v = VFFSL(SL, "item.NAME", True) # '$item.NAME' on line 15, col 40 if _v is not None: write(_filter(_v, rawExpr='$item.NAME')) # from line 15, col 40. write('''</option> ''') write(''' </select> <button style="button" type=submit id="go"><img src="''') _v = VFFSL(SL, "eng_img", True) # '$eng_img' on line 18, col 59 if _v is not None: write(_filter(_v, rawExpr='$eng_img')) # from line 18, col 59. write('''/arrows/arrow_right.png"></button> </form> <script type="text/javascript" src="''') _v = VFFSL(SL, "eng_js", True) # '$eng_js' on line 20, col 41 if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 20, col 41. write('''/ui.datepicker.min.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL, "eng_js", True) # '$eng_js' on line 21, col 41 if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 21, col 41. write('''/i18n/ui.datepicker-ru.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL, "eng_js", True) # '$eng_js' on line 22, col 41 if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 22, col 41. write('''/jquery.maskedinput-1.2.1.pack.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL, "eng_js", True) # '$eng_js' on line 23, col 41 if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 23, col 41. write('''/jquery.rowFocus.min.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL, "eng_js", True) # '$eng_js' on line 24, col 41 if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 24, col 41. write('''/jquery.tablesorter.min.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL, "eng_js", True) # '$eng_js' on line 25, col 41 if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 25, col 41. write('''/kTblScroll.min.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL, "sps_js.KURSSKLAD", True) # '$sps_js.KURSSKLAD' on line 26, col 41 if _v is not None: write(_filter( _v, rawExpr='$sps_js.KURSSKLAD')) # from line 26, col 41. write('''/k.formats.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL, "sps_js.KURSSKLAD", True) # '$sps_js.KURSSKLAD' on line 27, col 41 if _v is not None: write(_filter( _v, rawExpr='$sps_js.KURSSKLAD')) # from line 27, col 41. write('''/k.messages.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL, "sps_js.KURSSKLAD", True) # '$sps_js.KURSSKLAD' on line 28, col 41 if _v is not None: write(_filter( _v, rawExpr='$sps_js.KURSSKLAD')) # from line 28, col 41. write('''/k.progressbar.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL, "sps_js.KURSSKLAD", True) # '$sps_js.KURSSKLAD' on line 29, col 41 if _v is not None: write(_filter( _v, rawExpr='$sps_js.KURSSKLAD')) # from line 29, col 41. write('''/k.objectLocate.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL, "eng_js", True) # '$eng_js' on line 30, col 41 if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 30, col 41. write('''/jquery.contextMenu.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL, "eng_js", True) # '$eng_js' on line 31, col 41 if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 31, col 41. write('''/jquery.rightClick.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL, "eng_js", True) # '$eng_js' on line 32, col 41 if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 32, col 41. write('''/ui.dialog.min.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL, "sps_js.KURSSKLAD", True) # '$sps_js.KURSSKLAD' on line 33, col 41 if _v is not None: write(_filter( _v, rawExpr='$sps_js.KURSSKLAD')) # from line 33, col 41. write('''/k.form.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL, "sps_js.KURSSKLAD", True) # '$sps_js.KURSSKLAD' on line 34, col 41 if _v is not None: write(_filter( _v, rawExpr='$sps_js.KURSSKLAD')) # from line 34, col 41. write('''/k.blocks.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL, "sps_js.KURSSKLAD", True) # '$sps_js.KURSSKLAD' on line 35, col 41 if _v is not None: write(_filter( _v, rawExpr='$sps_js.KURSSKLAD')) # from line 35, col 41. write('''/jquery.blockUI.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL, "sps_js.KURSSKLAD", True) # '$sps_js.KURSSKLAD' on line 36, col 41 if _v is not None: write(_filter( _v, rawExpr='$sps_js.KURSSKLAD')) # from line 36, col 41. write('''/jquery.tabs.pack.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL, "sps_js.KURSSKLAD", True) # '$sps_js.KURSSKLAD' on line 37, col 41 if _v is not None: write(_filter( _v, rawExpr='$sps_js.KURSSKLAD')) # from line 37, col 41. write('''/k.icons.js"></script> <script type="text/javascript" src="''') _v = VFFSL(SL, "sp_js", True) # '$sp_js' on line 38, col 41 if _v is not None: write(_filter(_v, rawExpr='$sp_js')) # from line 38, col 41. write('''/subtypesale.js"></script> <link href="''') _v = VFFSL(SL, "sp_css", True) # '$sp_css' on line 40, col 17 if _v is not None: write(_filter(_v, rawExpr='$sp_css')) # from line 40, col 17. write( '''/subtypesale.css" rel="stylesheet" type="text/css" media="screen"/> <link href="''') _v = VFFSL(SL, "sps_css.KURSSKLAD", True) # '$sps_css.KURSSKLAD' on line 41, col 17 if _v is not None: write(_filter( _v, rawExpr='$sps_css.KURSSKLAD')) # from line 41, col 17. write( '''/tabs/jquery.tabs.css" rel="stylesheet" type="text/css" media="screen"/> ''') ######################################## ## END - generated method body return _dummyTrans and trans.response().getvalue() or ""
def respond(self, trans=None): ## CHEETAH: main method generated for this template if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)): trans = self.transaction # is None unless self.awake() was called if not trans: trans = DummyTransaction() _dummyTrans = True else: _dummyTrans = False write = trans.response().write SL = self._CHEETAH__searchList _filter = self._CHEETAH__currentFilter ######################################## ## START - generated method body write('''<html> <head> <title>''') _v = VFFSL(SL,"pagetitle",True) # '$pagetitle' on line 3, col 8 if _v is not None: write(_filter(_v, rawExpr='$pagetitle')) # from line 3, col 8. write('''</title></head> <script src="/javascript/sorttable.js"></script> <script src="/javascript/functions.js"></script> <!-- calendar stylesheet --> <link rel="stylesheet" type="text/css" media="all" href="/style/calendar-win2k-cold-1.css" title="win2k-cold-1" /> <!-- main calendar program --> <script type="text/javascript" src="/javascript/calendar.js"></script> <!-- language for the calendar --> <script type="text/javascript" src="/javascript/calendar-en.js"></script> <!-- the following script defines the Calendar.setup helper function, which makes adding a calendar a matter of 1 or 2 lines of code. --> <script type="text/javascript" src="/javascript/calendar-setup.js"></script> <link href="/style/main.css" type="text/css" rel="stylesheet"/> </head> <body> <ul class="toolbar"> <li><a href="/search">Search the inventory</a></li> <li><a href="/kindlist">Manage "Kinds" of items</a></li> <li><a href="/reports">Get reports</a></li> <li><a href="/transactions">Review Transactions</a></li> </ul> ''') if VFFSL(SL,"lastsearch",True): # generated from line 30, col 1 write('''<a href="''') _v = VFFSL(SL,"lastsearch",True) # '$lastsearch' on line 31, col 10 if _v is not None: write(_filter(_v, rawExpr='$lastsearch')) # from line 31, col 10. write('''">Return to search results...</a> ''') write('''<div class="main"> ''') _v = VFFSL(SL,"body",True) # '$body' on line 34, col 1 if _v is not None: write(_filter(_v, rawExpr='$body')) # from line 34, col 1. write(''' </div> </body> </html> ''') ######################################## ## END - generated method body return _dummyTrans and trans.response().getvalue() or ""
def respond(self, trans=None): ## CHEETAH: main method generated for this template if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)): trans = self.transaction # is None unless self.awake() was called if not trans: trans = DummyTransaction() _dummyTrans = True else: _dummyTrans = False write = trans.response().write SL = self._CHEETAH__searchList _filter = self._CHEETAH__currentFilter ######################################## ## START - generated method body write(''' ''') if VFFSL(SL,"isigb",True): # generated from line 22, col 1 write('''<html> ''') else: # generated from line 24, col 1 write('''<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> ''') write(''' <head> ''') if VFFSL(SL,"isigb",True): # generated from line 33, col 1 write(''' ''') else: # generated from line 35, col 1 write(''' <link href="/style.css" rel="stylesheet" type="text/css" /> ''') write(''' <title> ''') self._title(trans=trans) write('''</title> </head> <body> ''') if VFFSL(SL,"isigb",True): # generated from line 50, col 1 write('''<a href="/">EVE-Central.com Home</a> <br /> ''') else: # generated from line 54, col 1 write('''<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> _uacct = "UA-84549-2"; urchinTracker(); </script> ''') write(''' ''') self._banner(trans=trans) write(''' ''') if VFFSL(SL,"isigb",True): # generated from line 69, col 1 write(''' ''') else: # generated from line 71, col 1 write(''' ''') _v = VFFSL(SL,"body",True) # '$body' on line 74, col 1 if _v is not None: write(_filter(_v, rawExpr='$body')) # from line 74, col 1. write(''' <hr noshade="1"/> <p> ''') n = gmt() write(''' <br /> </p> </body> </html> ''') ######################################## ## END - generated method body return _dummyTrans and trans.response().getvalue() or ""