Exemple #1
0
    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_systems" style="border: 2px ridge #FFE4E1; border-spacing: 0px" class="treetable">
  <thead>
      <tr>
        <th>\xb9</th>
        <th>ID</th>
        <th>\xc8\xec\xff</th>
        <th>\xd1\xf1\xfb\xeb\xea\xe0</th>
        <th>\xcf\xe0\xef\xea\xe0</th>
        <th>\xca\xeb\xe0\xf1\xf1</th>
        <th>\xcc\xee\xe4\xf3\xeb\xfc</th>
''')
        # <th>Лого</th>
        # <th>Родит</th>
        write('''        <th>ID BASE</th>
        <th>\xd1\xeb\xe0\xf2\xfc</th>
        <th>ID MAIL</th>
        <th>\xd4\xee\xf0\xec\xe0\xf2 \xc4/\xc2</th>
        <th>\xd4\xee\xf0\xec\xe0\xf2 \xc2</th-->
        <th>\xce\xef\xf6\xe8\xe8</th>
''')
        # <th>Сорт</th>
        write('''        <th>\xce\xf2\xea\xeb</th>
        <th>LASTDATE</th>
      </tr>
  </thead>
  <tbody id="tbl_systems_tbody">
''')
        N = 1
        for item in VFFSL(SL, "datalist",
                          True):  # generated from line 27, col 9
            write("""            <tr id='""")
            _v = VFFSL(SL, "item.ID_SYSTEM",
                       True)  # '$item.ID_SYSTEM' on line 28, col 21
            if _v is not None:
                write(_filter(
                    _v, rawExpr='$item.ID_SYSTEM'))  # from line 28, col 21.
            write("""' higher='""")
            _v = VFFSL(SL, "item.HIGHER",
                       True)  # '$item.HIGHER' on line 28, col 46
            if _v is not None:
                write(_filter(_v,
                              rawExpr='$item.HIGHER'))  # from line 28, col 46.
            write('''\'>
                <td class="har counter">''')
            _v = VFFSL(SL, "N", True)  # '$N' on line 29, col 41
            if _v is not None:
                write(_filter(_v, rawExpr='$N'))  # from line 29, col 41.
            write('''</td>
                <td class="hac">''')
            _v = VFFSL(SL, "item.ID_SYSTEM",
                       True)  # '$item.ID_SYSTEM' on line 30, col 33
            if _v is not None:
                write(_filter(
                    _v, rawExpr='$item.ID_SYSTEM'))  # from line 30, col 33.
            write('''</td>
''')
            # <td nowrap class="show_name">$item.SPACES$item.SHOW_NAME</td>
            write('''                <td nowrap class="show_name">''')
            _v = VFFSL(SL, "item.SHOW_NAME",
                       True)  # '$item.SHOW_NAME' on line 32, col 46
            if _v is not None:
                write(_filter(
                    _v, rawExpr='$item.SHOW_NAME'))  # from line 32, col 46.
            write('''</td>
                <td>''')
            _v = VFFSL(SL, "item.REF_NAME",
                       True)  # '$item.REF_NAME' on line 33, col 21
            if _v is not None:
                write(_filter(
                    _v, rawExpr='$item.REF_NAME'))  # from line 33, col 21.
            write('''</td>
                <td>''')
            _v = VFFSL(SL, "item.FOLDER_NAME",
                       True)  # '$item.FOLDER_NAME' on line 34, col 21
            if _v is not None:
                write(_filter(
                    _v, rawExpr='$item.FOLDER_NAME'))  # from line 34, col 21.
            write('''</td>
                <td>''')
            _v = VFFSL(SL, "item.CLASS_NAME",
                       True)  # '$item.CLASS_NAME' on line 35, col 21
            if _v is not None:
                write(_filter(
                    _v, rawExpr='$item.CLASS_NAME'))  # from line 35, col 21.
            write('''</td>
                <td>''')
            _v = VFFSL(SL, "item.MODULE_NAME",
                       True)  # '$item.MODULE_NAME' on line 36, col 21
            if _v is not None:
                write(_filter(
                    _v, rawExpr='$item.MODULE_NAME'))  # from line 36, col 21.
            write('''</td>
''')
            # <td class="hac">$item.LOGO</td>
            # <td class="hac">$item.HIGHER</td>
            write('''                <td class="hac">''')
            _v = VFFSL(SL, "item.ID_BASE",
                       True)  # '$item.ID_BASE' on line 39, col 33
            if _v is not None:
                write(_filter(
                    _v, rawExpr='$item.ID_BASE'))  # from line 39, col 33.
            write('''</td>
                <td class="hac">''')
            _v = VFFSL(SL, "item.SEND_BUG_MAIL",
                       True)  # '$item.SEND_BUG_MAIL' on line 40, col 33
            if _v is not None:
                write(_filter(
                    _v,
                    rawExpr='$item.SEND_BUG_MAIL'))  # from line 40, col 33.
            write('''</td>
                <td class="hac">''')
            _v = VFFSL(SL, "item.ID_MAIL",
                       True)  # '$item.ID_MAIL' on line 41, col 33
            if _v is not None:
                write(_filter(
                    _v, rawExpr='$item.ID_MAIL'))  # from line 41, col 33.
            write('''</td>
                <td nowrap>''')
            _v = VFFSL(SL, "item.DATE_TIME_FORMAT",
                       True)  # '$item.DATE_TIME_FORMAT' on line 42, col 28
            if _v is not None:
                write(_filter(
                    _v,
                    rawExpr='$item.DATE_TIME_FORMAT'))  # from line 42, col 28.
            write('''</td>
                <td nowrap>''')
            _v = VFFSL(SL, "item.TIME_FORMAT",
                       True)  # '$item.TIME_FORMAT' on line 43, col 28
            if _v is not None:
                write(_filter(
                    _v, rawExpr='$item.TIME_FORMAT'))  # from line 43, col 28.
            write('''</td>
                <td class="hac">
''')
            if VFFSL(SL, "xml_file_exist",
                     False)(VFFSL(SL, "item.ID_SYSTEM",
                                  True)):  # generated from line 45, col 21
                write(
                    '''                        <a class="edit_sys_options" title="\xd0\xe5\xe4\xe0\xea\xf2\xe8\xf0\xee\xe2\xe0\xf2\xfc \xee\xef\xf6\xe8\xe8" href="javascript: void(0);"><img border=0 src="'''
                )
                _v = VFFSL(SL, "eng_img",
                           True)  # '$eng_img' on line 46, col 128
                if _v is not None:
                    write(_filter(
                        _v, rawExpr='$eng_img'))  # from line 46, col 128.
                write(
                    '''/actions/edit.png" style="background-color: transparent; vertical-align: middle"/></a>
''')
            else:  # generated from line 47, col 21
                write(
                    '''                        <a class="add_sys_options" title="\xc4\xee\xe1\xe0\xe2\xe8\xf2\xfc \xee\xef\xf6\xe8\xe8" href="javascript: void(0);"><img src="'''
                )
                _v = VFFSL(SL, "eng_img",
                           True)  # '$eng_img' on line 48, col 113
                if _v is not None:
                    write(_filter(
                        _v, rawExpr='$eng_img'))  # from line 48, col 113.
                write('''/actions/add.png" style="vertical-align: middle"></a>
''')
            write('''                    </td>
''')
            # <td class="har">$item.ORDERBY</td>
            write('''                <td class="hac">''')
            _v = VFFSL(SL, "item.DISABLED",
                       True)  # '$item.DISABLED' on line 52, col 33
            if _v is not None:
                write(_filter(
                    _v, rawExpr='$item.DISABLED'))  # from line 52, col 33.
            write('''</td>
                <td nowrap>''')
            _orig_filter_79796422 = _filter
            filterName = 'LongDateTimeWSecFilter'
            if self._CHEETAH__filters.has_key("LongDateTimeWSecFilter"):
                _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.LASTDATE",
                       True)  # '$item.LASTDATE' on line 53, col 59
            if _v is not None:
                write(_filter(
                    _v, rawExpr='$item.LASTDATE'))  # from line 53, col 59.
            write(''' ''')
            _filter = _orig_filter_79796422
            write('''
            </tr>
''')
            N = VFFSL(SL, "N", True) + 1
        write('''  </tbody>
</table>
''')

        ########################################
        ## END - generated method body

        return _dummyTrans and trans.response().getvalue() or ""
Exemple #2
0
    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 11
        if _v is not None:
            write(_filter(_v, rawExpr='$docnum'))  # from line 6, col 11.
        write(''' \xee\xf2 ''')
        _orig_filter_48963664 = _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.
        _filter = _orig_filter_48963664
        write(''' (<u>''')
        _v = VFFSL(SL, "TID", True)  # '$TID' on line 6, col 65
        if _v is not None:
            write(_filter(_v, rawExpr='$TID'))  # from line 6, col 65.
        write('''</u>)</b>
    <br>''')
        _v = VFFSL(SL, "TONAME", True)  # '$TONAME' on line 7, col 9
        if _v is not None:
            write(_filter(_v, rawExpr='$TONAME'))  # from line 7, col 9.
        write('''</br>
    <b><u>(''')
        _v = VFFSL(SL, "wcode", True)  # '$wcode' on line 8, col 12
        if _v is not None:
            write(_filter(_v, rawExpr='$wcode'))  # from line 8, col 12.
        write(''')</u></b>''')
        _v = VFFSL(SL, "wname", True)  # '$wname' on line 8, col 27
        if _v is not None:
            write(_filter(_v, rawExpr='$wname'))  # from line 8, col 27.
        write('''<br>
    ''')
        _v = VFFSL(SL, "viewQuantity", False)(
            VFFSL(SL, "QO", True), VFFSL(SL, "VUFACTOR", True),
            VFFSL(SL, "VUCODE", True), VFFSL(SL, "MUFACTOR", True),
            VFFSL(SL, "MUCODE", True)
        )  # '$viewQuantity($QO,$VUFACTOR,$VUCODE,$MUFACTOR,$MUCODE)' on line 9, col 5
        if _v is not None:
            write(
                _filter(
                    _v,
                    rawExpr=
                    '$viewQuantity($QO,$VUFACTOR,$VUCODE,$MUFACTOR,$MUCODE)')
            )  # from line 9, col 5.
        write('''(<b><u>''')
        _orig_filter_18113157 = _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, "QO", True)  # '$QO' on line 9, col 82
        if _v is not None:
            write(_filter(_v, rawExpr='$QO'))  # from line 9, col 82.
        _filter = _orig_filter_18113157
        write('''</u></b>)    
    <hr>
''')
        if VFFSL(SL, "varExists", False)('$TWPALLETNUM') and VFFSL(
                SL, "TWPALLETNUM", True):  # generated from line 11, col 5
            write('''        <b>''')
            _v = VFFSL(SL, "TWPALLETNUM",
                       True)  # '$TWPALLETNUM' on line 12, col 12
            if _v is not None:
                write(_filter(_v,
                              rawExpr='$TWPALLETNUM'))  # from line 12, col 12.
            write('''</b>(''')
            _v = VFFSL(SL, "SITENAME", True)  # '$SITENAME' on line 12, col 29
            if _v is not None:
                write(_filter(_v,
                              rawExpr='$SITENAME'))  # from line 12, col 29.
            write(''')
''')
        else:  # generated from line 13, col 5
            write('''        <b>''')
            _v = VFFSL(SL, "SITENAME", True)  # '$SITENAME' on line 14, col 12
            if _v is not None:
                write(_filter(_v,
                              rawExpr='$SITENAME'))  # from line 14, col 12.
            write('''</b>
''')
        QSite = 0
        if VFFSL(SL, "varExists",
                 False)('$datalist'):  # generated from line 17, col 5
            write('''        <table>
            <thead>
                <tr>
                    <th>''')
            if False:
                _('Дата')
            _v = VFFSL(SL, "_", False)(
                'Дата')  # "$_('\xc4\xe0\xf2\xe0')" on line 21, col 25
            if _v is not None:
                write(_filter(
                    _v,
                    rawExpr="$_('\xc4\xe0\xf2\xe0')"))  # from line 21, col 25.
            write('''</th>
                    <th>''')
            if False:
                _('Кол-во')
            _v = VFFSL(SL, "_", False)(
                'Кол-во'
            )  # "$_('\xca\xee\xeb-\xe2\xee')" on line 22, col 25
            if _v is not None:
                write(_filter(_v, rawExpr="$_('\xca\xee\xeb-\xe2\xee')")
                      )  # from line 22, col 25.
            write('''</th>
                </tr>
            </thead>
            <tbody>
''')
            for item in VFFSL(SL, "datalist",
                              True):  # generated from line 26, col 13
                write('''                <tr>
                    <td>''')
                _orig_filter_94767222 = _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.PDATE",
                           True)  # '$item.PDATE' on line 28, col 44
                if _v is not None:
                    write(_filter(
                        _v, rawExpr='$item.PDATE'))  # from line 28, col 44.
                _filter = _orig_filter_94767222
                write('''</td>
                    <td>''')
                _v = VFFSL(SL, "viewQuantity", False)(
                    VFFSL(SL, "item.PAMOUNT",
                          True), VFFSL(SL, "VUFACTOR", True),
                    VFFSL(SL, "VUCODE", True), VFFSL(SL, "MUFACTOR", True),
                    VFFSL(SL, "MUCODE", True)
                )  # '$viewQuantity($item.PAMOUNT,$VUFACTOR,$VUCODE,$MUFACTOR,$MUCODE)' on line 29, col 25
                if _v is not None:
                    write(
                        _filter(
                            _v,
                            rawExpr=
                            '$viewQuantity($item.PAMOUNT,$VUFACTOR,$VUCODE,$MUFACTOR,$MUCODE)'
                        ))  # from line 29, col 25.
                write('''
''')
                if VFFSL(SL, "VUCODE", True):  # generated from line 30, col 23
                    write('''                        (<b><u>''')
                    _orig_filter_82254605 = _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.PAMOUNT",
                               True)  # '$item.PAMOUNT' on line 31, col 48
                    if _v is not None:
                        write(_filter(
                            _v,
                            rawExpr='$item.PAMOUNT'))  # from line 31, col 48.
                    _filter = _orig_filter_82254605
                    write('''</u></b>)
''')
                write('''                    </td>
                </tr>
''')
                QSite += VFFSL(SL, "item.PAMOUNT", True)
            write('''            </tbody>
        </table>
''')
        write('''    <hr>    
''')
        if VFFSL(SL, "TWSTAT", True) == '5':  # generated from line 41, col 5
            write("""        <a href='taskF?id=""")
            _v = VFFSL(SL, "TID", True)  # '$TID' on line 42, col 27
            if _v is not None:
                write(_filter(_v, rawExpr='$TID'))  # from line 42, col 27.
            write("""'>""")
            if False:
                _('Обновить')
            _v = VFFSL(SL, "_", False)(
                'Обновить'
            )  # "$_('\xce\xe1\xed\xee\xe2\xe8\xf2\xfc')" on line 42, col 33
            if _v is not None:
                write(
                    _filter(_v,
                            rawExpr="$_('\xce\xe1\xed\xee\xe2\xe8\xf2\xfc')")
                )  # from line 42, col 33.
            write('''</a><br>
''')
        else:  # generated from line 43, col 5
            write("""        <form action='taskFWares'>
            <input type=hidden name=twid value=""")
            _v = VFFSL(SL, "TWID", True)  # '$TWID' on line 45, col 48
            if _v is not None:
                write(_filter(_v, rawExpr='$TWID'))  # from line 45, col 48.
            write('''>
\t\t\t''')
            if False:
                _('При сканировании ШК паллета будет отобрано '
                  )
            _v = VFFSL(SL, "_", False)(
                'При сканировании ШК паллета будет отобрано '
            )  # "$_('\xcf\xf0\xe8 \xf1\xea\xe0\xed\xe8\xf0\xee\xe2\xe0\xed\xe8\xe8 \xd8\xca \xef\xe0\xeb\xeb\xe5\xf2\xe0 \xe1\xf3\xe4\xe5\xf2 \xee\xf2\xee\xe1\xf0\xe0\xed\xee ')" on line 46, col 4
            if _v is not None:
                write(
                    _filter(
                        _v,
                        rawExpr=
                        "$_('\xcf\xf0\xe8 \xf1\xea\xe0\xed\xe8\xf0\xee\xe2\xe0\xed\xe8\xe8 \xd8\xca \xef\xe0\xeb\xeb\xe5\xf2\xe0 \xe1\xf3\xe4\xe5\xf2 \xee\xf2\xee\xe1\xf0\xe0\xed\xee ')"
                    ))  # from line 46, col 4.
            write(''' 
''')
            if VFFSL(SL, "QO", True) > VFFSL(
                    SL, "QSite", True):  # generated from line 47, col 4
                write(
                    '''\t\t\t\t<input type="hidden" name="qselect" value="''')
                _v = VFFSL(SL, "QSite", True)  # '$QSite' on line 48, col 48
                if _v is not None:
                    write(_filter(_v,
                                  rawExpr='$QSite'))  # from line 48, col 48.
                write('''">
\t\t\t\t<br><b>''')
                _v = VFFSL(SL, "viewQuantity", False)(
                    VFFSL(SL, "QSite", True), VFFSL(SL, "VUFACTOR", True),
                    VFFSL(SL, "VUCODE", True), VFFSL(SL, "MUFACTOR", True),
                    VFFSL(SL, "MUCODE", True)
                )  # '$viewQuantity($QSite,$VUFACTOR,$VUCODE,$MUFACTOR,$MUCODE)' on line 49, col 12
                if _v is not None:
                    write(
                        _filter(
                            _v,
                            rawExpr=
                            '$viewQuantity($QSite,$VUFACTOR,$VUCODE,$MUFACTOR,$MUCODE)'
                        ))  # from line 49, col 12.
                write('''</b>
''')
            else:  # generated from line 50, col 4
                write(
                    '''\t\t\t\t<input type="hidden" name="qselect" value="''')
                _v = VFFSL(SL, "QO", True)  # '$QO' on line 51, col 48
                if _v is not None:
                    write(_filter(_v, rawExpr='$QO'))  # from line 51, col 48.
                write('''">
\t\t\t\t<br><b>''')
                _v = VFFSL(SL, "viewQuantity", False)(
                    VFFSL(SL, "QO", True), VFFSL(SL, "VUFACTOR", True),
                    VFFSL(SL, "VUCODE", True), VFFSL(SL, "MUFACTOR", True),
                    VFFSL(SL, "MUCODE", True)
                )  # '$viewQuantity($QO,$VUFACTOR,$VUCODE,$MUFACTOR,$MUCODE)' on line 52, col 12
                if _v is not None:
                    write(
                        _filter(
                            _v,
                            rawExpr=
                            '$viewQuantity($QO,$VUFACTOR,$VUCODE,$MUFACTOR,$MUCODE)'
                        ))  # from line 52, col 12.
                write('''</b>
''')
            write('''\t\t\t<input type=text name=barcode id="barcode:scan">
''')
            # $_('ШК поддона'): <br> <input type=text name=barcode id="barcode:scan">
            write("""        </form>
        
        <br>  

        <a href='taskFWaresUQuant?twid=""")
            _v = VFFSL(SL, "TWID", True)  # '$TWID' on line 60, col 40
            if _v is not None:
                write(_filter(_v, rawExpr='$TWID'))  # from line 60, col 40.
            write("""'>""")
            if False:
                _('Фактическое количество')
            _v = VFFSL(SL, "_", False)(
                'Фактическое количество'
            )  # "$_('\xd4\xe0\xea\xf2\xe8\xf7\xe5\xf1\xea\xee\xe5 \xea\xee\xeb\xe8\xf7\xe5\xf1\xf2\xe2\xee')" on line 60, col 47
            if _v is not None:
                write(
                    _filter(
                        _v,
                        rawExpr=
                        "$_('\xd4\xe0\xea\xf2\xe8\xf7\xe5\xf1\xea\xee\xe5 \xea\xee\xeb\xe8\xf7\xe5\xf1\xf2\xe2\xee')"
                    ))  # from line 60, col 47.
            write("""</a><br>
        <a href='qTaskFWaresNoPlace?twid=""")
            _v = VFFSL(SL, "TWID", True)  # '$TWID' on line 61, col 42
            if _v is not None:
                write(_filter(_v, rawExpr='$TWID'))  # from line 61, col 42.
            write('''\' onClick="return confirm(\'''')
            if False:
                _('Нет места на поддоне')
            _v = VFFSL(SL, "_", False)(
                'Нет места на поддоне'
            )  # "$_('\xcd\xe5\xf2 \xec\xe5\xf1\xf2\xe0 \xed\xe0 \xef\xee\xe4\xe4\xee\xed\xe5')" on line 61, col 74
            if _v is not None:
                write(
                    _filter(
                        _v,
                        rawExpr=
                        "$_('\xcd\xe5\xf2 \xec\xe5\xf1\xf2\xe0 \xed\xe0 \xef\xee\xe4\xe4\xee\xed\xe5')"
                    ))  # from line 61, col 74.
            write('''\\n---------------------------------\\n''')
            if False:
                _('Вы уверены?')
            _v = VFFSL(SL, "_", False)(
                'Вы уверены?'
            )  # "$_('\xc2\xfb \xf3\xe2\xe5\xf0\xe5\xed\xfb?')" on line 61, col 137
            if _v is not None:
                write(
                    _filter(
                        _v,
                        rawExpr="$_('\xc2\xfb \xf3\xe2\xe5\xf0\xe5\xed\xfb?')")
                )  # from line 61, col 137.
            write('''\')">''')
            if False:
                _('Нет места на поддоне')
            _v = VFFSL(SL, "_", False)(
                'Нет места на поддоне'
            )  # "$_('\xcd\xe5\xf2 \xec\xe5\xf1\xf2\xe0 \xed\xe0 \xef\xee\xe4\xe4\xee\xed\xe5')" on line 61, col 158
            if _v is not None:
                write(
                    _filter(
                        _v,
                        rawExpr=
                        "$_('\xcd\xe5\xf2 \xec\xe5\xf1\xf2\xe0 \xed\xe0 \xef\xee\xe4\xe4\xee\xed\xe5')"
                    ))  # from line 61, col 158.
            write('''</a>
''')

        ########################################
        ## END - generated method body

        return _dummyTrans and trans.response().getvalue() or ""
Exemple #3
0
    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_systems_objects_by_type">
  <thead>
  <tr>
    <th>''')
        if False:
            _('№')
        _v = VFFSL(SL, "_", False)('№')  # "$_('\xb9')" on line 5, col 9
        if _v is not None:
            write(_filter(_v, rawExpr="$_('\xb9')"))  # from line 5, col 9.
        write('''</th>
    <th>''')
        if False:
            _('Название')
        _v = VFFSL(SL, "_", False)(
            'Название'
        )  # "$_('\xcd\xe0\xe7\xe2\xe0\xed\xe8\xe5')" on line 6, col 9
        if _v is not None:
            write(_filter(_v, rawExpr="$_('\xcd\xe0\xe7\xe2\xe0\xed\xe8\xe5')")
                  )  # from line 6, col 9.
        write('''</th>
    <th>''')
        if False:
            _('ID')
        _v = VFFSL(SL, "_", False)('ID')  # "$_('ID')" on line 7, col 9
        if _v is not None:
            write(_filter(_v, rawExpr="$_('ID')"))  # from line 7, col 9.
        write('''</th>
    <th>''')
        if False:
            _('Выбор')
        _v = VFFSL(SL, "_", False)(
            'Выбор')  # "$_('\xc2\xfb\xe1\xee\xf0')" on line 8, col 9
        if _v is not None:
            write(_filter(
                _v,
                rawExpr="$_('\xc2\xfb\xe1\xee\xf0')"))  # from line 8, col 9.
        write('''</th>
  </tr>
  </thead>
  <tbody>
''')
        N = 1
        for item in VFFSL(SL, "objects",
                          True):  # generated from line 13, col 9
            write('''            <tr id="''')
            _v = VFFSL(SL, "item.ID", True)  # '$item.ID' on line 14, col 21
            if _v is not None:
                write(_filter(_v, rawExpr='$item.ID'))  # from line 14, col 21.
            write('''">
                <td class="har">''')
            _v = VFFSL(SL, "N", True)  # '$N' on line 15, col 33
            if _v is not None:
                write(_filter(_v, rawExpr='$N'))  # from line 15, col 33.
            write('''</td>
                <td class="name">''')
            _v = VFFSL(SL, "item.NAME",
                       True)  # '$item.NAME' on line 16, col 34
            if _v is not None:
                write(_filter(_v,
                              rawExpr='$item.NAME'))  # from line 16, col 34.
            write('''</td>
                <td class="hal">''')
            _v = VFFSL(SL, "item.ID", True)  # '$item.ID' on line 17, col 33
            if _v is not None:
                write(_filter(_v, rawExpr='$item.ID'))  # from line 17, col 33.
            write('''</td>
                <td class="hac"><input type="radio" name="sel_object" value="'''
                  )
            _v = VFFSL(SL, "item.ID", True)  # '$item.ID' on line 18, col 78
            if _v is not None:
                write(_filter(_v, rawExpr='$item.ID'))  # from line 18, col 78.
            write('''"/></td>
            </tr>
''')
            N = VFFSL(SL, "N", True) + 1
        write('''  </tbody>
</table>
''')

        ########################################
        ## END - generated method body

        return _dummyTrans and trans.response().getvalue() or ""
Exemple #4
0
    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


        ## START CACHE REGION: _34823658. line, col (2, 1) in the source.
        _RECACHE_34823658 = False
        _cacheRegion__34823658 = self.getCacheRegion(regionID='_34823658', cacheInfo={'interval': 9000.0, 'type': 2, 'ID': 'cache1'})
        if _cacheRegion__34823658.isNew(): _RECACHE_34823658 = True
        _cacheItem__34823658 = _cacheRegion__34823658.getCacheItem('_34823658')
        if (not _cacheItem__34823658.getRefreshTime()) or (currentTime() > _cacheItem__34823658.getRefreshTime()):
            _cacheItem__34823658.setRefreshTime(currentTime() +9000.0)
            _RECACHE_34823658 = True
        if _RECACHE_34823658 or not _cacheItem__34823658.hasData():
            _orig_trans_34823658 = trans
            trans = _cacheCollector__34823658 = DummyTransaction()
            write = _cacheCollector__34823658.response().write
            _v = VFFSL(SL,"anInt",True) # '$anInt' on line 3, col 1
            if _v is not None: write(_filter(_v, rawExpr='$anInt')) # from line 3, col 1.
            write('\n')
            trans = _orig_trans_34823658
            write = trans.response().write
            _cacheItem__34823658.setData(_cacheCollector__34823658.response().getvalue())
            del _cacheCollector__34823658
        write(_cacheItem__34823658.getOutput())
        ## END CACHE REGION: _34823658


        ## START CACHE REGION: cache2. line, col (5, 1) in the source.
        _RECACHEcache2 = False
        _cacheRegion_cache2 = self.getCacheRegion(regionID='cache2', cacheInfo={'interval': 15.0, 'type': 2, 'id': 'cache2'})
        if _cacheRegion_cache2.isNew(): _RECACHEcache2 = True
        _cacheItem_cache2 = _cacheRegion_cache2.getCacheItem('cache2')
        if (not _cacheItem_cache2.getRefreshTime()) or (currentTime() > _cacheItem_cache2.getRefreshTime()):
            _cacheItem_cache2.setRefreshTime(currentTime() +15.0)
            _RECACHEcache2 = True
        if _RECACHEcache2 or not _cacheItem_cache2.hasData():
            _orig_transcache2 = trans
            trans = _cacheCollector_cache2 = DummyTransaction()
            write = _cacheCollector_cache2.response().write
            for i in range(5):
                _v = VFFSL(SL,"i",True) # '$i' on line 7, col 1
                if _v is not None: write(_filter(_v, rawExpr='$i')) # from line 7, col 1.
            trans = _orig_transcache2
            write = trans.response().write
            _cacheItem_cache2.setData(_cacheCollector_cache2.response().getvalue())
            del _cacheCollector_cache2
        write(_cacheItem_cache2.getOutput())
        ## END CACHE REGION: cache2

        _v = VFFSL(SL,"aStr",True) # '$aStr' on line 10, col 1
        if _v is not None: write(_filter(_v, rawExpr='$aStr')) # from line 10, col 1.

        ########################################
        ## END - generated method body

        return _dummyTrans and trans.response().getvalue() or ""
Exemple #5
0
    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="dlgsettarif_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='dlgsettarif_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>
        <span id='dlgsettarif_organization'/></span>
    </td></tr>

    <tr><th>""")
        if False:
            _('Тариф')
        _v = VFFSL(SL, "_", False)(
            'Тариф')  # "$_('\xd2\xe0\xf0\xe8\xf4')" on line 12, col 13
        if _v is not None:
            write(_filter(
                _v,
                rawExpr="$_('\xd2\xe0\xf0\xe8\xf4')"))  # from line 12, col 13.
        write("""</th><td>
        <select id='dlgsettarif_tarif_cmb'>
            """)
        # некое не None и не int
        old_disabled = 'undefined'
        for tarif in VFFSL(SL, "tarifs",
                           True):  # generated from line 15, col 13
            if VFFSL(SL, "old_disabled", True) != VFFSL(
                    SL, "tarif.DISABLED",
                    True):  # generated from line 16, col 17
                if VFFSL(
                        SL, "old_disabled",
                        True) != 'undefined':  # generated from line 17, col 21
                    write('''                        </optgroup>
''')
                write('''
''')
                old_disabled = VFFSL(SL, "tarif.DISABLED", True)
                write('''                    <optgroup label=
''')
                if VFFSL(SL, "tarif.DISABLED", True) is None or VFFSL(
                        SL, "tarif.DISABLED",
                        True) == 0:  # generated from line 23, col 21
                    write(
                        '''                        "\xc2\xea\xeb\xfe\xf7\xe5\xed\xed\xfb\xe5"
''')
                else:  # generated from line 25, col 21
                    write(
                        '''                        "\xce\xf2\xea\xeb\xfe\xf7\xe5\xed\xed\xfb\xe5"
''')
                write('''                    >
''')
            write('''
''')
            if str(VFFSL(SL, "id_tar", True)) == str(
                    VFFSL(SL, "tarif.ID_TAR",
                          True)):  # generated from line 31, col 17
                selected = ' selected = "selected" '
            else:  # generated from line 33, col 17
                selected = ' '
            write('''                <option ''')
            _v = VFFSL(SL, "selected", True)  # '$selected' on line 36, col 25
            if _v is not None:
                write(_filter(_v,
                              rawExpr='$selected'))  # from line 36, col 25.
            write(""" value='""")
            _v = VFFSL(SL, "tarif.ID_TAR",
                       True)  # '$tarif.ID_TAR' on line 36, col 42
            if _v is not None:
                write(_filter(
                    _v, rawExpr='$tarif.ID_TAR'))  # from line 36, col 42.
            write("""'>""")
            _v = VFFSL(SL, "tarif.TAR_NAME",
                       True)  # '$tarif.TAR_NAME' on line 36, col 57
            if _v is not None:
                write(_filter(
                    _v, rawExpr='$tarif.TAR_NAME'))  # from line 36, col 57.
            write('''</option>

''')
        if VFFSL(SL, "old_disabled",
                 True) != 'undefined':  # generated from line 39, col 13
            write('''                </optgroup>
''')
        write('''        </select>
    </td></tr>

    <tr><th>''')
        if False:
            _('Дата установки тарифа')
        _v = VFFSL(SL, "_", False)(
            'Дата установки тарифа'
        )  # "$_('\xc4\xe0\xf2\xe0 \xf3\xf1\xf2\xe0\xed\xee\xe2\xea\xe8 \xf2\xe0\xf0\xe8\xf4\xe0')" on line 45, col 13
        if _v is not None:
            write(
                _filter(
                    _v,
                    rawExpr=
                    "$_('\xc4\xe0\xf2\xe0 \xf3\xf1\xf2\xe0\xed\xee\xe2\xea\xe8 \xf2\xe0\xf0\xe8\xf4\xe0')"
                ))  # from line 45, col 13.
        write('''</th><td>
        <input type="text" name="dlgsettarif_date_from" id="dlgsettarif_date_from" align="center" size=8 title="\xc4\xe0\xf2\xe0 \xf3\xf1\xf2\xe0\xed\xee\xe2\xea\xe8 \xf2\xe0\xf0\xe8\xf4\xe0"/>
    </td></tr>
  </table>

</form>
<div class="buttons save footer_btns right_aligned_btns">
    <button type="button" id="dlgsettarif_save_btn"><img src="''')
        _v = VFFSL(SL, "eng_img", True)  # '$eng_img' on line 52, col 63
        if _v is not None:
            write(_filter(_v, rawExpr='$eng_img'))  # from line 52, col 63.
        write('''/actions/accept.png" alt=""/>&nbsp;''')
        if False:
            _('Сохранить')
        _v = VFFSL(SL, "_", False)(
            'Сохранить'
        )  # "$_('\xd1\xee\xf5\xf0\xe0\xed\xe8\xf2\xfc')" on line 52, col 106
        if _v is not None:
            write(
                _filter(_v,
                        rawExpr="$_('\xd1\xee\xf5\xf0\xe0\xed\xe8\xf2\xfc')")
            )  # from line 52, col 106.
        write('''</button>&nbsp;
    <button type="button" id="dlgsettarif_cancel_btn"><img src="''')
        _v = VFFSL(SL, "eng_img", True)  # '$eng_img' on line 53, col 65
        if _v is not None:
            write(_filter(_v, rawExpr='$eng_img'))  # from line 53, col 65.
        write('''/actions/cancel.png" alt=""/>&nbsp;''')
        if False:
            _('Отмена')
        _v = VFFSL(SL, "_", False)(
            'Отмена'
        )  # "$_('\xce\xf2\xec\xe5\xed\xe0')" on line 53, col 108
        if _v is not None:
            write(_filter(_v, rawExpr="$_('\xce\xf2\xec\xe5\xed\xe0')")
                  )  # from line 53, col 108.
        write('''</button>
</div>
''')

        ########################################
        ## END - generated method body

        return _dummyTrans and trans.response().getvalue() or ""
Exemple #6
0
    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('''
   ''')
        if False:
            _('От')
        _v = VFFSL(SL,"_",False)('От') # "$_('\xce\xf2')" on line 9, col 4
        if _v is not None: write(_filter(_v, rawExpr="$_('\xce\xf2')")) # from line 9, col 4.
        write(''': <b><u>''')
        _v = VFFSL(SL,"FROMNAME",True) # '$FROMNAME' on line 9, col 20
        if _v is not None: write(_filter(_v, rawExpr='$FROMNAME')) # from line 9, col 20.
        write('''</u></b><br>
''')
        if VFFSL(SL,"varExists",False)('$THROUGHNAME') and VFFSL(SL,"THROUGHNAME",True): # generated from line 10, col 4
            write('''    ''')
            if False:
                _('Через')
            _v = VFFSL(SL,"_",False)('Через') # "$_('\xd7\xe5\xf0\xe5\xe7')" on line 11, col 5
            if _v is not None: write(_filter(_v, rawExpr="$_('\xd7\xe5\xf0\xe5\xe7')")) # from line 11, col 5.
            write(''': <b>''')
            _v = VFFSL(SL,"THROUGHNAME",True) # '$THROUGHNAME' on line 11, col 21
            if _v is not None: write(_filter(_v, rawExpr='$THROUGHNAME')) # from line 11, col 21.
            write('''</b><br>
''')
        if VFFSL(SL,"TONAME",True): # generated from line 13, col 4
            write('''    ''')
            if False:
                _('Кому')
            _v = VFFSL(SL,"_",False)('Кому') # "$_('\xca\xee\xec\xf3')" on line 14, col 5
            if _v is not None: write(_filter(_v, rawExpr="$_('\xca\xee\xec\xf3')")) # from line 14, col 5.
            write(''': ''')
            _v = VFFSL(SL,"TONAME",True) # '$TONAME' on line 14, col 17
            if _v is not None: write(_filter(_v, rawExpr='$TONAME')) # from line 14, col 17.
            write('''<br>
''')
        write('''    <b>''')
        _v = VFFSL(SL,"TimeStampToDate",False)(VFFSL(SL,"DOCDATE",True)) # '$TimeStampToDate($DOCDATE)' on line 16, col 8
        if _v is not None: write(_filter(_v, rawExpr='$TimeStampToDate($DOCDATE)')) # from line 16, col 8.
        write('''</b> \xb9<b>''')
        _v = VFFSL(SL,"DOCNUM",True) # '$DOCNUM' on line 16, col 43
        if _v is not None: write(_filter(_v, rawExpr='$DOCNUM')) # from line 16, col 43.
        write('''</b>
''')
        if VFFSL(SL,"varExists",False)('$ALGORITHM') and VFFSL(SL,"ALGORITHM",True): # generated from line 17, col 2
            write('''\t\t<u>(''')
            _v = VFFSL(SL,"ALGORITHM",True) # '$ALGORITHM' on line 18, col 7
            if _v is not None: write(_filter(_v, rawExpr='$ALGORITHM')) # from line 18, col 7.
            write(''')</u>
''')
        write('''\t<br>
    <b>(<u>''')
        _v = VFFSL(SL,"WCODE",True) # '$WCODE' on line 21, col 12
        if _v is not None: write(_filter(_v, rawExpr='$WCODE')) # from line 21, col 12.
        write('''</u>)</b> ''')
        _v = VFFSL(SL,"WNAME",True) # '$WNAME' on line 21, col 28
        if _v is not None: write(_filter(_v, rawExpr='$WNAME')) # from line 21, col 28.
        write(''' <br>
''')
        if VFFSL(SL,"VWUID",True): # generated from line 22, col 5
            write('''        <b>''')
            _v = VFFSL(SL,"VWUCODE",True) # '$VWUCODE' on line 23, col 12
            if _v is not None: write(_filter(_v, rawExpr='$VWUCODE')) # from line 23, col 12.
            write(''' = ''')
            _v = VFFSL(SL,"Quantity",False)(VFFSL(SL,"VWUFACTOR",True)) # '$Quantity($VWUFACTOR)' on line 23, col 23
            if _v is not None: write(_filter(_v, rawExpr='$Quantity($VWUFACTOR)')) # from line 23, col 23.
            write(''' ''')
            _v = VFFSL(SL,"MWUCODE",True) # '$MWUCODE' on line 23, col 45
            if _v is not None: write(_filter(_v, rawExpr='$MWUCODE')) # from line 23, col 45.
            write(''' </b>
''')
        write('''    <br>
''')
        if VFFSL(SL,"varExists",False)('$qdoc'): # generated from line 26, col 5
            write('''        ''')
            if False:
                _('План')
            _v = VFFSL(SL,"_",False)('План') # "$_('\xcf\xeb\xe0\xed')" on line 27, col 9
            if _v is not None: write(_filter(_v, rawExpr="$_('\xcf\xeb\xe0\xed')")) # from line 27, col 9.
            write(''': ''')
            _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 27, col 21
            if _v is not None: write(_filter(_v, rawExpr='$viewQuantity($qdoc,$VWUFACTOR,$VWUCODE,$MWUFACTOR,$MWUCODE)')) # from line 27, col 21.
            write(''' <b>(<u>''')
            _v = VFFSL(SL,"Quantity",False)(VFFSL(SL,"qdoc",True)) # '$Quantity($qdoc)' on line 27, col 89
            if _v is not None: write(_filter(_v, rawExpr='$Quantity($qdoc)')) # from line 27, col 89.
            write('''</u>)</b>
        <br>
''')
        if VFFSL(SL,"varExists",False)('$qfact') and VFFSL(SL,"qfact",True): # generated from line 30, col 5
            write('''        ''')
            if False:
                _('Факт')
            _v = VFFSL(SL,"_",False)('Факт') # "$_('\xd4\xe0\xea\xf2')" on line 31, col 9
            if _v is not None: write(_filter(_v, rawExpr="$_('\xd4\xe0\xea\xf2')")) # from line 31, col 9.
            write(''': ''')
            _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 31, col 21
            if _v is not None: write(_filter(_v, rawExpr='$viewQuantity($qfact,$VWUFACTOR,$VWUCODE,$MWUFACTOR,$MWUCODE)')) # from line 31, col 21.
            write(''' 
        (<a title="''')
            if False:
                _('Изменение')
            _v = VFFSL(SL,"_",False)('Изменение') # "$_('\xc8\xe7\xec\xe5\xed\xe5\xed\xe8\xe5')" on line 32, col 20
            if _v is not None: write(_filter(_v, rawExpr="$_('\xc8\xe7\xec\xe5\xed\xe5\xed\xe8\xe5')")) # from line 32, col 20.
            write('''" href="dfsTaskWaresEdit?tid=''')
            _v = VFFSL(SL,"TID",True) # '$TID' on line 32, col 64
            if _v is not None: write(_filter(_v, rawExpr='$TID')) # from line 32, col 64.
            write('''&wid=''')
            _v = VFFSL(SL,"WID",True) # '$WID' on line 32, col 73
            if _v is not None: write(_filter(_v, rawExpr='$WID')) # from line 32, col 73.
            write('''">''')
            _v = VFFSL(SL,"Quantity",False)(VFFSL(SL,"qfact",True)) # '$Quantity($qfact)' on line 32, col 79
            if _v is not None: write(_filter(_v, rawExpr='$Quantity($qfact)')) # from line 32, col 79.
            write('''</a>)
        <br>
''')
        write('''    
    <form action="dfsTaskWaresScan">
        <input type="hidden" name="tid" value="''')
        _v = VFFSL(SL,"tid",True) # '$tid' on line 37, col 48
        if _v is not None: write(_filter(_v, rawExpr='$tid')) # from line 37, col 48.
        write('''">
        <input type="hidden" name="wid" value="''')
        _v = VFFSL(SL,"wid",True) # '$wid' on line 38, col 48
        if _v is not None: write(_filter(_v, rawExpr='$wid')) # from line 38, 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 39, col 74
        if _v is not None: write(_filter(_v, rawExpr="$_('\xd2\xee\xe2\xe0\xf0')")) # from line 39, col 74.
        write(''', ''')
        if False:
            _('Поддон')
        _v = VFFSL(SL,"_",False)('Поддон') # "$_('\xcf\xee\xe4\xe4\xee\xed')" on line 39, col 87
        if _v is not None: write(_filter(_v, rawExpr="$_('\xcf\xee\xe4\xe4\xee\xed')")) # from line 39, col 87.
        write('''">
\t</form>

''')
        self.waresRest(trans=trans)
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
Exemple #7
0
    def rcData(self, **KWS):

        ## CHEETAH: generated from #def rcData at line 32, 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, "eng_css", True)  # '$eng_css' on line 33, col 17
        if _v is not None:
            write(_filter(_v, rawExpr='$eng_css'))  # from line 33, 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 34, col 17
        if _v is not None:
            write(_filter(_v, rawExpr='$eng_css'))  # from line 34, col 17.
        write(
            '''/jquery.autocomplete.css" rel="stylesheet" type="text/css" media="screen"/>
    <link href="''')
        _v = VFFSL(SL, "sps_css.KURSSKLAD",
                   True)  # '$sps_css.KURSSKLAD' on line 35, col 17
        if _v is not None:
            write(_filter(
                _v, rawExpr='$sps_css.KURSSKLAD'))  # from line 35, col 17.
        write(
            '''/k.progressbar.css" rel="stylesheet" type="text/css" media="screen"/>
    <link href="''')
        _v = VFFSL(SL, "sp_css", True)  # '$sp_css' on line 36, col 17
        if _v is not None:
            write(_filter(_v, rawExpr='$sp_css'))  # from line 36, col 17.
        write(
            '''/NV/deliverymanager.css" rel="stylesheet" type="text/css" media="screen"/>
    <link href="''')
        _v = VFFSL(SL, "sps_css.KURSSKLAD",
                   True)  # '$sps_css.KURSSKLAD' on line 37, col 17
        if _v is not None:
            write(_filter(
                _v, rawExpr='$sps_css.KURSSKLAD'))  # from line 37, col 17.
        write(
            '''/NV/inExpenseStatIncome.css" rel="stylesheet" type="text/css" media="screen"/>
    <link href="''')
        _v = VFFSL(SL, "sps_css.KURSSKLAD",
                   True)  # '$sps_css.KURSSKLAD' on line 38, col 17
        if _v is not None:
            write(_filter(
                _v, rawExpr='$sps_css.KURSSKLAD'))  # from line 38, col 17.
        write(
            '''/tabs/jquery.tabs.css" rel="stylesheet" type="text/css" media="screen"/>
    <link href="''')
        _v = VFFSL(SL, "sps_css.KURSSKLAD",
                   True)  # '$sps_css.KURSSKLAD' on line 39, col 17
        if _v is not None:
            write(_filter(
                _v, rawExpr='$sps_css.KURSSKLAD'))  # from line 39, col 17.
        write(
            '''/tabs/jquery.tabs-ie.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 43, col 41
        if _v is not None:
            write(_filter(_v, rawExpr='$eng_js'))  # from line 43, 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 44, col 41
        if _v is not None:
            write(_filter(_v, rawExpr='$eng_js'))  # from line 44, col 41.
        write('''/ui.datepicker.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('''/i18n/ui.datepicker-ru.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('''/jquery.autocomplete.min.js"></script>
    <script type="text/javascript" src="''')
        _v = VFFSL(SL, "sps_js.KURSSKLAD",
                   True)  # '$sps_js.KURSSKLAD' on line 47, col 41
        if _v is not None:
            write(_filter(
                _v, rawExpr='$sps_js.KURSSKLAD'))  # from line 47, col 41.
        write('''/k.objectAutoComplete.js"></script>
    <script type="text/javascript" src="''')
        _v = VFFSL(SL, "sps_js.KURSSKLAD",
                   True)  # '$sps_js.KURSSKLAD' on line 48, col 41
        if _v is not None:
            write(_filter(
                _v, rawExpr='$sps_js.KURSSKLAD'))  # from line 48, 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 49, col 41
        if _v is not None:
            write(_filter(
                _v, rawExpr='$sps_js.KURSSKLAD'))  # from line 49, col 41.
        write('''/wh.doclocate.js"></script>
    <script type="text/javascript" src="''')
        _v = VFFSL(SL, "sps_js.KURSSKLAD",
                   True)  # '$sps_js.KURSSKLAD' on line 50, col 41
        if _v is not None:
            write(_filter(
                _v, rawExpr='$sps_js.KURSSKLAD'))  # from line 50, col 41.
        write('''/wh.docwares.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.contextMenu.js"></script>
    <script type="text/javascript" src="''')
        _v = VFFSL(SL, "eng_js", True)  # '$eng_js' on line 52, col 41
        if _v is not None:
            write(_filter(_v, rawExpr='$eng_js'))  # from line 52, col 41.
        write('''/jquery.rightClick.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.tdChk.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.progressbar.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('''/jquery.tabs.pack.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('''/NV/docConfOrder.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('''/NV/docInExpense.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('''/wh.table.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('''/wh.wares.js"></script>

    <script type="text/javascript" src="''')
        _v = VFFSL(SL, "sp_js", True)  # '$sp_js' on line 62, col 41
        if _v is not None:
            write(_filter(_v, rawExpr='$sp_js'))  # from line 62, col 41.
        write('''/NV/dmclients.js"></script>

    <div id="dvWH" style="text-align:left;"></div>
''')

        ########################################
        ## END - generated method body

        return _dummyTrans and trans.response().getvalue() or ""
Exemple #8
0
    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="dlgoptedit_form" class="full_height">
  <table class="vertical_top">
    <tr><th>''')
        if False:
            _('Роли')
        _v = VFFSL(SL,"_",False)('Роли') # "$_('\xd0\xee\xeb\xe8')" on line 4, col 13
        if _v is not None: write(_filter(_v, rawExpr="$_('\xd0\xee\xeb\xe8')")) # from line 4, col 13.
        write('''</th>
        <td>
            <input id="dlgoptedit_roles_edt" readonly name="dlgoptedit_roles_edt" type="text"  size="45" value=""/>
            <span class="buttons">
                <button type="button" id="dlgoptedit_select_roles_btn"><img src="/ENGINE/images/actions/find.png"/>&nbsp;''')
        if False:
            _('Выбрать')
        _v = VFFSL(SL,"_",False)('Выбрать') # "$_('\xc2\xfb\xe1\xf0\xe0\xf2\xfc')" on line 8, col 122
        if _v is not None: write(_filter(_v, rawExpr="$_('\xc2\xfb\xe1\xf0\xe0\xf2\xfc')")) # from line 8, col 122.
        write('''</button>
            </span>
        </td>
    </tr>
    <tr>
        <th>''')
        if False:
            _('Тип')
        _v = VFFSL(SL,"_",False)('Тип') # "$_('\xd2\xe8\xef')" on line 13, col 13
        if _v is not None: write(_filter(_v, rawExpr="$_('\xd2\xe8\xef')")) # from line 13, col 13.
        write("""</th>
        <td>
            <select name='dlgoptedit_type_cmb' id='dlgoptedit_type_cmb'>
""")
        for item in VFFSL(SL,"datalist_types",True): # generated from line 16, col 13
            write('''                <option value="''')
            _v = VFFSL(SL,"item.TYPE_ID",True) # '$item.TYPE_ID' on line 17, col 32
            if _v is not None: write(_filter(_v, rawExpr='$item.TYPE_ID')) # from line 17, col 32.
            write('''">''')
            _v = VFFSL(SL,"item.TYPE_NAME",True) # '$item.TYPE_NAME' on line 17, col 47
            if _v is not None: write(_filter(_v, rawExpr='$item.TYPE_NAME')) # from line 17, col 47.
            write(''' (''')
            _v = VFFSL(SL,"item.TYPE_ID",True) # '$item.TYPE_ID' on line 17, col 64
            if _v is not None: write(_filter(_v, rawExpr='$item.TYPE_ID')) # from line 17, col 64.
            write(''')</option>
''')
        write('''            </select>
        </td>
    </tr>
    <tr><th>''')
        if False:
            _('Объект')
        _v = VFFSL(SL,"_",False)('Объект') # "$_('\xce\xe1\xfa\xe5\xea\xf2')" on line 22, col 13
        if _v is not None: write(_filter(_v, rawExpr="$_('\xce\xe1\xfa\xe5\xea\xf2')")) # from line 22, col 13.
        write('''</th>
        <td>
            <strong style="margin-left: 5px; margin-right: 5px">''')
        if False:
            _('ID')
        _v = VFFSL(SL,"_",False)('ID') # "$_('ID')" on line 24, col 65
        if _v is not None: write(_filter(_v, rawExpr="$_('ID')")) # from line 24, col 65.
        write('''</strong><input id="dlgoptedit_obj_id_edt" name="dlgoptedit_obj_id_edt" type="text" size="15" value=""/>
            <strong style="margin-left: 5px; margin-right: 5px">''')
        if False:
            _('Имя')
        _v = VFFSL(SL,"_",False)('Имя') # "$_('\xc8\xec\xff')" on line 25, col 65
        if _v is not None: write(_filter(_v, rawExpr="$_('\xc8\xec\xff')")) # from line 25, col 65.
        write('''</strong><input id="dlgoptedit_obj_name_edt" name="dlgoptedit_obj_name_edt" type="text" size="15" value=""/>
            <span class="buttons">
                <button type="button" id="dlgoptedit_select_obj_btn"><img src="/ENGINE/images/actions/find.png"/>&nbsp;''')
        if False:
            _('Выбрать по типу')
        _v = VFFSL(SL,"_",False)('Выбрать по типу') # "$_('\xc2\xfb\xe1\xf0\xe0\xf2\xfc \xef\xee \xf2\xe8\xef\xf3')" on line 27, col 120
        if _v is not None: write(_filter(_v, rawExpr="$_('\xc2\xfb\xe1\xf0\xe0\xf2\xfc \xef\xee \xf2\xe8\xef\xf3')")) # from line 27, col 120.
        write('''</button>
            </span>
        </td>
    </tr>
    <tr><th>''')
        if False:
            _('Опция')
        _v = VFFSL(SL,"_",False)('Опция') # "$_('\xce\xef\xf6\xe8\xff')" on line 31, col 13
        if _v is not None: write(_filter(_v, rawExpr="$_('\xce\xef\xf6\xe8\xff')")) # from line 31, col 13.
        write('''</th>
        <td>
            <input id="dlgoptedit_opt_edt" readonly name="dlgoptedit_opt_edt" type="text" size="45" value=""/>
            <span class="buttons">
                <button type="button" id="dlgoptedit_select_opt_btn"><img src="/ENGINE/images/actions/find.png"/>&nbsp;''')
        if False:
            _('Выбрать')
        _v = VFFSL(SL,"_",False)('Выбрать') # "$_('\xc2\xfb\xe1\xf0\xe0\xf2\xfc')" on line 35, col 120
        if _v is not None: write(_filter(_v, rawExpr="$_('\xc2\xfb\xe1\xf0\xe0\xf2\xfc')")) # from line 35, col 120.
        write('''</button>
            </span>
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <div align=\'center\' class=\'rewrite_rule_check\' style=\'display: none;\'>
                <input type=\'checkbox\' id=\'rewrite_rule_box\'  title=\'\xcf\xf0\xe8 \xee\xf2\xec\xe5\xf7\xe5\xed\xed\xee\xec \xf4\xeb\xe0\xe6\xea\xe5 \xef\xf0\xee\xe8\xe7\xee\xe9\xe4\xb8\xf2 \xf3\xe4\xe0\xeb\xe5\xed\xe8\xe5 \xe0\xf2\xf0\xe8\xe1\xf3\xf2\xee\xe2, \xed\xe5 \xe2\xee\xf8\xe5\xe4\xf8\xe8\xf5 \xe2 \xf1\xef\xe8\xf1\xee\xea, \xef\xee \xe2\xfb\xe1\xf0\xe0\xed\xed\xfb\xec \xf0\xee\xeb\xff\xec\'/>
                <label for=\'rewrite_rule_box\' title=\'\xcf\xf0\xe8 \xee\xf2\xec\xe5\xf7\xe5\xed\xed\xee\xec \xf4\xeb\xe0\xe6\xea\xe5 \xef\xf0\xee\xe8\xe7\xee\xe9\xe4\xb8\xf2 \xf3\xe4\xe0\xeb\xe5\xed\xe8\xe5 \xe0\xf2\xf0\xe8\xe1\xf3\xf2\xee\xe2, \xed\xe5 \xe2\xee\xf8\xe5\xe4\xf8\xe8\xf5 \xe2 \xf1\xef\xe8\xf1\xee\xea, \xef\xee \xe2\xfb\xe1\xf0\xe0\xed\xed\xfb\xec \xf0\xee\xeb\xff\xec\'>''')
        if False:
            _('Синхронизировать атрибуты опции выбранных ролей')
        _v = VFFSL(SL,"_",False)('Синхронизировать атрибуты опции выбранных ролей') # "$_('\xd1\xe8\xed\xf5\xf0\xee\xed\xe8\xe7\xe8\xf0\xee\xe2\xe0\xf2\xfc \xe0\xf2\xf0\xe8\xe1\xf3\xf2\xfb \xee\xef\xf6\xe8\xe8 \xe2\xfb\xe1\xf0\xe0\xed\xed\xfb\xf5 \xf0\xee\xeb\xe5\xe9')" on line 43, col 149
        if _v is not None: write(_filter(_v, rawExpr="$_('\xd1\xe8\xed\xf5\xf0\xee\xed\xe8\xe7\xe8\xf0\xee\xe2\xe0\xf2\xfc \xe0\xf2\xf0\xe8\xe1\xf3\xf2\xfb \xee\xef\xf6\xe8\xe8 \xe2\xfb\xe1\xf0\xe0\xed\xed\xfb\xf5 \xf0\xee\xeb\xe5\xe9')")) # from line 43, col 149.
        write('''</label>
            </div>
            <div align="center"><strong>''')
        if False:
            _('Атрибуты')
        _v = VFFSL(SL,"_",False)('Атрибуты') # "$_('\xc0\xf2\xf0\xe8\xe1\xf3\xf2\xfb')" on line 45, col 41
        if _v is not None: write(_filter(_v, rawExpr="$_('\xc0\xf2\xf0\xe8\xe1\xf3\xf2\xfb')")) # from line 45, col 41.
        write('''</strong></div>
            <div>
                <table id="dlgoptedit_tbl_attrs">
                    <thead>
                        <tr>
                            <th>''')
        if False:
            _('Имя')
        _v = VFFSL(SL,"_",False)('Имя') # "$_('\xc8\xec\xff')" on line 50, col 33
        if _v is not None: write(_filter(_v, rawExpr="$_('\xc8\xec\xff')")) # from line 50, col 33.
        write('''</th>
                            <th>''')
        if False:
            _('Значение')
        _v = VFFSL(SL,"_",False)('Значение') # "$_('\xc7\xed\xe0\xf7\xe5\xed\xe8\xe5')" on line 51, col 33
        if _v is not None: write(_filter(_v, rawExpr="$_('\xc7\xed\xe0\xf7\xe5\xed\xe8\xe5')")) # from line 51, col 33.
        write('''</th>
                            <th>''')
        if False:
            _('Слияние')
        _v = VFFSL(SL,"_",False)('Слияние') # "$_('\xd1\xeb\xe8\xff\xed\xe8\xe5')" on line 52, col 33
        if _v is not None: write(_filter(_v, rawExpr="$_('\xd1\xeb\xe8\xff\xed\xe8\xe5')")) # from line 52, col 33.
        write('''</th>
                            <th><a id=\'dlgoptedit_clear_attrs\' title="\xd3\xe4\xe0\xeb\xe8\xf2\xfc \xe2\xf1\xb8" href="#"><img src="/ENGINE/images/actions/delete.png"/></a></th>
                        </tr>
                    </thead>
                    <tbody id="dlgoptedit_tbl_attrs_tbody">
                    </tbody>
                </table>
            </div>
        </td>
    </tr>
  </table>
</form>

<div class="buttons footer_btns">
    <span class="left_aligned_btns">
        <button title="\xc4\xee\xe1\xe0\xe2\xe8\xf2\xfc \xe0\xf2\xf2\xf0\xe8\xe1\xf3\xf2" type="button" id="dlgoptedit_add_opt_btn"><img src="/ENGINE/images/actions/add.png"/></button>&nbsp;
        <button type="button" id="dlgoptedit_select_attrs_btn"><img src="/ENGINE/images/actions/find.png"/>&nbsp;''')
        if False:
            _('Добавить из существующих у опции')
        _v = VFFSL(SL,"_",False)('Добавить из существующих у опции') # "$_('\xc4\xee\xe1\xe0\xe2\xe8\xf2\xfc \xe8\xe7 \xf1\xf3\xf9\xe5\xf1\xf2\xe2\xf3\xfe\xf9\xe8\xf5 \xf3 \xee\xef\xf6\xe8\xe8')" on line 68, col 114
        if _v is not None: write(_filter(_v, rawExpr="$_('\xc4\xee\xe1\xe0\xe2\xe8\xf2\xfc \xe8\xe7 \xf1\xf3\xf9\xe5\xf1\xf2\xe2\xf3\xfe\xf9\xe8\xf5 \xf3 \xee\xef\xf6\xe8\xe8')")) # from line 68, col 114.
        write('''</button>
        <button type="button" id="dlgoptedit_from_all_options"><img src="/ENGINE/images/actions/edit2.png"/>&nbsp;''')
        if False:
            _('Из опций системы')
        _v = VFFSL(SL,"_",False)('Из опций системы') # "$_('\xc8\xe7 \xee\xef\xf6\xe8\xe9 \xf1\xe8\xf1\xf2\xe5\xec\xfb')" on line 69, col 115
        if _v is not None: write(_filter(_v, rawExpr="$_('\xc8\xe7 \xee\xef\xf6\xe8\xe9 \xf1\xe8\xf1\xf2\xe5\xec\xfb')")) # from line 69, col 115.
        write('''</button>
    </span>


    <span class="right_aligned_btns">
        <button type="button" id="dlgoptedit_save_btn"><img src="/ENGINE/images/actions/accept.png"/>&nbsp;''')
        if False:
            _('OK')
        _v = VFFSL(SL,"_",False)('OK') # "$_('OK')" on line 74, col 108
        if _v is not None: write(_filter(_v, rawExpr="$_('OK')")) # from line 74, col 108.
        write('''</button>&nbsp;
        <button type="button" id="dlgoptedit_cancel_btn"><img src="/ENGINE/images/actions/cancel.png"/>&nbsp;''')
        if False:
            _('Отмена')
        _v = VFFSL(SL,"_",False)('Отмена') # "$_('\xce\xf2\xec\xe5\xed\xe0')" on line 75, col 110
        if _v is not None: write(_filter(_v, rawExpr="$_('\xce\xf2\xec\xe5\xed\xe0')")) # from line 75, col 110.
        write('''</button>
    </span>
</div>

''')
        # Dialog Add/Edit Attr
        write('''<div id="dlgattredit" class="dialog flora" align="center"></div>

''')
        # Dialog From System Options
        write('''<div id="dlgfromopts" class="dialog flora" align="center" style="position: relative;"></div>

''')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
Exemple #9
0
    def mainData(self, **KWS):

        ## CHEETAH: generated from #def mainData 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('''    <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>
''')
        if VFFSL(SL, "S_MODELID", True):  # generated from line 8, col 5
            write('''        (''')
            _v = VFFSL(SL, "S_PALCURCNT",
                       True)  # '$S_PALCURCNT' on line 9, col 10
            if _v is not None:
                write(_filter(_v,
                              rawExpr='$S_PALCURCNT'))  # from line 9, col 10.
            write(''' / ''')
            _v = VFFSL(SL, "S_PALMAXCNT",
                       True)  # '$S_PALMAXCNT' on line 9, col 25
            if _v is not None:
                write(_filter(_v,
                              rawExpr='$S_PALMAXCNT'))  # from line 9, col 25.
            write(''') <br>
        ''')
            _v = VFFSL(SL, "S_PALNUM", True)  # '$S_PALNUM' on line 10, col 9
            if _v is not None:
                write(_filter(_v, rawExpr='$S_PALNUM'))  # from line 10, col 9.
            write(''' <br>
''')
        write('''    <hr>
    <b><u>(''')
        _v = VFFSL(SL, "S_WCODE", True)  # '$S_WCODE' on line 13, col 12
        if _v is not None:
            write(_filter(_v, rawExpr='$S_WCODE'))  # from line 13, col 12.
        write(''')</u></b> ''')
        _v = VFFSL(SL, "S_WNAME", True)  # '$S_WNAME' on line 13, col 30
        if _v is not None:
            write(_filter(_v, rawExpr='$S_WNAME'))  # from line 13, col 30.
        write('''<br>
    ''')
        _v = VFFSL(SL, "TimeStampToDate", False)(VFFSL(
            SL, "S_WPRODUCTDATE",
            True))  # '$TimeStampToDate($S_WPRODUCTDATE)' on line 14, col 5
        if _v is not None:
            write(_filter(_v, rawExpr='$TimeStampToDate($S_WPRODUCTDATE)')
                  )  # from line 14, col 5.
        write(''' - ''')
        _v = VFFSL(SL, "TimeStampToDate", False)(VFFSL(
            SL, "S_WBESTBEFOREDATE",
            True))  # '$TimeStampToDate($S_WBESTBEFOREDATE)' on line 14, col 41
        if _v is not None:
            write(_filter(_v, rawExpr='$TimeStampToDate($S_WBESTBEFOREDATE)')
                  )  # from line 14, col 41.
        write('''
    <hr>
    <a href="taskStackPrinter?tid=''')
        _v = VFFSL(SL, "TID", True)  # '$TID' on line 16, col 35
        if _v is not None:
            write(_filter(_v, rawExpr='$TID'))  # from line 16, col 35.
        write('''&sid=''')
        _v = VFFSL(SL, "S_ID", True)  # '$S_ID' on line 16, col 44
        if _v is not None:
            write(_filter(_v, rawExpr='$S_ID'))  # from line 16, col 44.
        write('''&prid=''')
        _v = VFFSL(SL, "PRINTERID", True)  # '$PRINTERID' on line 16, col 55
        if _v is not None:
            write(_filter(_v, rawExpr='$PRINTERID'))  # from line 16, col 55.
        write('''&pid=''')
        _v = VFFSL(SL, "S_PALID", True)  # '$S_PALID' on line 16, col 70
        if _v is not None:
            write(_filter(_v, rawExpr='$S_PALID'))  # from line 16, col 70.
        write('''">''')
        _v = VFFSL(SL, "S_PALNUM", True)  # '$S_PALNUM' on line 16, col 80
        if _v is not None:
            write(_filter(_v, rawExpr='$S_PALNUM'))  # from line 16, col 80.
        write('''</a><br>
    <a href="taskStackPrinter?tid=''')
        _v = VFFSL(SL, "TID", True)  # '$TID' on line 17, col 35
        if _v is not None:
            write(_filter(_v, rawExpr='$TID'))  # from line 17, col 35.
        write('''&sid=''')
        _v = VFFSL(SL, "S_ID", True)  # '$S_ID' on line 17, col 44
        if _v is not None:
            write(_filter(_v, rawExpr='$S_ID'))  # from line 17, col 44.
        write('''&prid=''')
        _v = VFFSL(SL, "PRINTERID", True)  # '$PRINTERID' on line 17, col 55
        if _v is not None:
            write(_filter(_v, rawExpr='$PRINTERID'))  # from line 17, col 55.
        write('''&pid=0">\xc2\xf1\xe5</a>

''')

        ########################################
        ## END - generated method body

        return _dummyTrans and trans.response().getvalue() or ""
Exemple #10
0
    def engineData(self, **KWS):



        ## CHEETAH: generated from #def engineData at line 10, 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 href="''')
        _v = VFFSL(SL,"sps_css.KURSSKLAD",True) # '$sps_css.KURSSKLAD' on line 12, col 17
        if _v is not None: write(_filter(_v, rawExpr='$sps_css.KURSSKLAD')) # from line 12, col 17.
        write('''/k.progress.css" rel="stylesheet" type="text/css" media="screen"/>
    <link href="''')
        _v = VFFSL(SL,"sps_css.KURSSKLAD",True) # '$sps_css.KURSSKLAD' on line 13, col 17
        if _v is not None: write(_filter(_v, rawExpr='$sps_css.KURSSKLAD')) # from line 13, col 17.
        write('''/tabs/jquery.tabs.css" rel="stylesheet" type="text/css" media="screen"/>
    <link href="''')
        _v = VFFSL(SL,"sps_css.KURSSKLAD",True) # '$sps_css.KURSSKLAD' on line 14, col 17
        if _v is not None: write(_filter(_v, rawExpr='$sps_css.KURSSKLAD')) # from line 14, col 17.
        write('''/tabs/jquery.tabs-ie.css" rel="stylesheet" type="text/css" media="screen"/>
    <link href="''')
        _v = VFFSL(SL,"sp_css",True) # '$sp_css' on line 15, col 17
        if _v is not None: write(_filter(_v, rawExpr='$sp_css')) # from line 15, col 17.
        write('''/labelprint.css" rel="stylesheet" type="text/css" media="screen"/>
    <link href="''')
        _v = VFFSL(SL,"eng_css",True) # '$eng_css' on line 16, col 17
        if _v is not None: write(_filter(_v, rawExpr='$eng_css')) # from line 16, col 17.
        write('''/jqtreetable.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 19, col 41
        if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 19, col 41.
        write('''/ui.datepicker.min.js"></script>
    <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('''/i18n/ui.datepicker-ru.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('''/jquery.maskedinput-1.2.1.pack.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('''/ui.dialog.min.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.contextMenu.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,"eng_js",True) # '$eng_js' on line 28, col 41
        if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 28, col 41.
        write('''/jqtreetable.min.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.form.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.id.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.icons.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.UpDown.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.form.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.formats.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('''/k.messages.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.inputEdit.js"></script>
    <script type="text/javascript" src="''')
        _v = VFFSL(SL,"sps_js.KURSSKLAD",True) # '$sps_js.KURSSKLAD' on line 38, col 41
        if _v is not None: write(_filter(_v, rawExpr='$sps_js.KURSSKLAD')) # from line 38, col 41.
        write('''/k.countryLocate.js"></script>
    <script type="text/javascript" src="''')
        _v = VFFSL(SL,"sps_js.KURSSKLAD",True) # '$sps_js.KURSSKLAD' on line 39, col 41
        if _v is not None: write(_filter(_v, rawExpr='$sps_js.KURSSKLAD')) # from line 39, col 41.
        write('''/k.objectLocate.js"></script>
    <script type="text/javascript" src="''')
        _v = VFFSL(SL,"sps_js.KURSSKLAD",True) # '$sps_js.KURSSKLAD' on line 40, col 41
        if _v is not None: write(_filter(_v, rawExpr='$sps_js.KURSSKLAD')) # from line 40, col 41.
        write('''/k.waresLocate.js"></script>
    <script type="text/javascript" src="''')
        _v = VFFSL(SL,"sps_js.KURSSKLAD",True) # '$sps_js.KURSSKLAD' on line 41, col 41
        if _v is not None: write(_filter(_v, rawExpr='$sps_js.KURSSKLAD')) # from line 41, col 41.
        write('''/k.time.js"></script>
    <script type="text/javascript" src="''')
        _v = VFFSL(SL,"sps_js.KURSSKLAD",True) # '$sps_js.KURSSKLAD' on line 42, col 41
        if _v is not None: write(_filter(_v, rawExpr='$sps_js.KURSSKLAD')) # from line 42, col 41.
        write('''/k.progress.js"></script>
    <script type="text/javascript" src="''')
        _v = VFFSL(SL,"sps_js.KURSSKLAD",True) # '$sps_js.KURSSKLAD' on line 43, col 41
        if _v is not None: write(_filter(_v, rawExpr='$sps_js.KURSSKLAD')) # from line 43, 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 44, col 41
        if _v is not None: write(_filter(_v, rawExpr='$sps_js.KURSSKLAD')) # from line 44, col 41.
        write('''/k.tdChk.js"></script>
    <script type="text/javascript" src="''')
        _v = VFFSL(SL,"sps_js.KURSSKLAD",True) # '$sps_js.KURSSKLAD' on line 45, col 41
        if _v is not None: write(_filter(_v, rawExpr='$sps_js.KURSSKLAD')) # from line 45, col 41.
        write('''/jquery.tabs.pack.js"></script>
    <script type="text/javascript" src="''')
        _v = VFFSL(SL,"sp_js",True) # '$sp_js' on line 46, col 41
        if _v is not None: write(_filter(_v, rawExpr='$sp_js')) # from line 46, col 41.
        write('''/labelprint.js"></script>
    <script type="text/javascript">
''')
        if VFFSL(SL,"clientConf.palletFeatures",True): # generated from line 48, col 9
            write('''            usePalletFeature = true;
''')
        else: # generated from line 50, col 9
            write('''            usePalletFeature = false;
''')
        write('''    </script>
    
''')
        self.adminData(trans=trans)
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
    def mainData(self, **KWS):

        ## CHEETAH: generated from #def mainData 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

        if VFFSL(SL, "PNUM", True):  # generated from line 4, col 5
            write('''        ''')
            if False:
                _('Поддон')
            _v = VFFSL(SL, "_", False)(
                'Поддон'
            )  # "$_('\xcf\xee\xe4\xe4\xee\xed')" on line 5, col 9
            if _v is not None:
                write(_filter(_v, rawExpr="$_('\xcf\xee\xe4\xe4\xee\xed')")
                      )  # from line 5, col 9.
            write(''': <b><u>''')
            _v = VFFSL(SL, "PNUM", True)  # '$PNUM' on line 5, col 29
            if _v is not None:
                write(_filter(_v, rawExpr='$PNUM'))  # from line 5, col 29.
            write('''</u></b>(''')
            _v = VFFSL(SL, "SNAME", True)  # '$SNAME' on line 5, col 43
            if _v is not None:
                write(_filter(_v, rawExpr='$SNAME'))  # from line 5, col 43.
            write(''')<br>
''')
        else:  # generated from line 6, col 5
            write('''        <b><u>''')
            _v = VFFSL(SL, "SNAME", True)  # '$SNAME' on line 7, col 15
            if _v is not None:
                write(_filter(_v, rawExpr='$SNAME'))  # from line 7, col 15.
            write('''</u></b><br>
''')
        write('''    <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 29
        if _v is not None:
            write(_filter(_v, rawExpr='$WNAME'))  # from line 9, col 29.
        write('''<br>
    <hr>
    <form action="taskAPalletWaresAdd" name="frm"  method=post>
        <input type=hidden name=wid value=''')
        _v = VFFSL(SL, "WID", True)  # '$WID' on line 12, col 43
        if _v is not None:
            write(_filter(_v, rawExpr='$WID'))  # from line 12, col 43.
        write('''>
        <input type=hidden name=pid value=''')
        _v = VFFSL(SL, "PID", True)  # '$PID' on line 13, col 43
        if _v is not None:
            write(_filter(_v, rawExpr='$PID'))  # from line 13, col 43.
        write('''>
        <input type=hidden name=tid value=''')
        _v = VFFSL(SL, "tid", True)  # '$tid' on line 14, col 43
        if _v is not None:
            write(_filter(_v, rawExpr='$tid'))  # from line 14, col 43.
        write('''>
        <select name=wuid>
''')
        if VFFSL(SL, "wuid",
                 True) == VFFSL(SL, "MWUID",
                                True):  # generated from line 16, col 11
            write('''            <option value=''')
            _v = VFFSL(SL, "MWUID", True)  # '$MWUID' on line 17, col 27
            if _v is not None:
                write(_filter(_v, rawExpr='$MWUID'))  # from line 17, col 27.
            write(''' selected>''')
            _v = VFFSL(SL, "MWUCODE", True)  # '$MWUCODE' on line 17, col 43
            if _v is not None:
                write(_filter(_v, rawExpr='$MWUCODE'))  # from line 17, col 43.
            write('''</option>
''')
        if VFFSL(SL, "VWUID", True):  # generated from line 19, col 11
            write('''            <option value=''')
            _v = VFFSL(SL, "VWUID", True)  # '$VWUID' on line 20, col 27
            if _v is not None:
                write(_filter(_v, rawExpr='$VWUID'))  # from line 20, col 27.
            write('''>''')
            _v = VFFSL(SL, "VWUCODE", True)  # '$VWUCODE' on line 20, col 34
            if _v is not None:
                write(_filter(_v, rawExpr='$VWUCODE'))  # from line 20, col 34.
            write('''</option>
''')
        if VFFSL(SL, "wuid", True) != VFFSL(
                SL, "MWUID", True):  # generated from line 22, col 11
            write('''            <option value=''')
            _v = VFFSL(SL, "MWUID", True)  # '$MWUID' on line 23, col 27
            if _v is not None:
                write(_filter(_v, rawExpr='$MWUID'))  # from line 23, col 27.
            write('''>''')
            _v = VFFSL(SL, "MWUCODE", True)  # '$MWUCODE' on line 23, col 34
            if _v is not None:
                write(_filter(_v, rawExpr='$MWUCODE'))  # from line 23, col 34.
            write('''</option>
''')
        write('''        </select>:
        <input type="text" name="amount" id=":focus:float" value="''')
        _v = VFFSL(SL, "amount", True)  # '$amount' on line 26, col 67
        if _v is not None:
            write(_filter(_v, rawExpr='$amount'))  # from line 26, col 67.
        write('''" size="6"><br><br>
        ''')
        if False:
            _('Дата')
        _v = VFFSL(SL, "_", False)(
            'Дата')  # "$_('\xc4\xe0\xf2\xe0')" on line 27, col 9
        if _v is not None:
            write(_filter(
                _v, rawExpr="$_('\xc4\xe0\xf2\xe0')"))  # from line 27, col 9.
        write(
            ''': <input type="text" name="productdate" id="::date" value="''')
        _v = VFFSL(SL, "productdate",
                   True)  # '$productdate' on line 27, col 78
        if _v is not None:
            write(_filter(_v, rawExpr='$productdate'))  # from line 27, col 78.
        write('''" size="6"><br>
        <hr>
        <input type=submit value="''')
        if False:
            _('Сохранить')
        _v = VFFSL(SL, "_", False)(
            'Сохранить'
        )  # "$_('\xd1\xee\xf5\xf0\xe0\xed\xe8\xf2\xfc')" on line 29, col 35
        if _v is not None:
            write(
                _filter(_v,
                        rawExpr="$_('\xd1\xee\xf5\xf0\xe0\xed\xe8\xf2\xfc')")
            )  # from line 29, col 35.
        write('''">
    </form>

''')

        ########################################
        ## END - generated method body

        return _dummyTrans and trans.response().getvalue() or ""
Exemple #12
0
    def engineData(self, **KWS):

        ## CHEETAH: generated from #def engineData 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('''
\t<link href="''')
        _v = VFFSL(SL, "eng_css", True)  # '$eng_css' on line 8, col 14
        if _v is not None:
            write(_filter(_v, rawExpr='$eng_css'))  # from line 8, col 14.
        write(
            '''/jquery.autocomplete.css" rel="stylesheet" type="text/css" media="screen"/>
\t
\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('''/jquery.rightClick.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('''/ui.datepicker.min.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('''/i18n/ui.datepicker-ru.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.maskedinput-1.2.1.pack.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('''/jquery.contextMenu.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('''/ui.dialog.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('''/jquery.tablesorter.min.js"></script>
\t<script type="text/javascript" src="''')
        _v = VFFSL(SL, "eng_js", True)  # '$eng_js' on line 17, col 38
        if _v is not None:
            write(_filter(_v, rawExpr='$eng_js'))  # from line 17, col 38.
        write('''/kTblScroll.js"></script> 
\t<script type="text/javascript" src="''')
        _v = VFFSL(SL, "eng_js", True)  # '$eng_js' on line 18, col 38
        if _v is not None:
            write(_filter(_v, rawExpr='$eng_js'))  # from line 18, col 38.
        write('''/jquery.autocomplete.min.js"></script>
\t<script type="text/javascript" src="''')
        _v = VFFSL(SL, "eng_js", True)  # '$eng_js' on line 19, col 38
        if _v is not None:
            write(_filter(_v, rawExpr='$eng_js'))  # from line 19, col 38.
        write('''/jquery.rowFocus.min.js"></script>
\t
\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('''/k.UpDown.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.form.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.formats.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.messages.js"></script>
\t<script type="text/javascript" src="''')
        _v = VFFSL(SL, "sps_js.KURSSKLAD",
                   True)  # '$sps_js.KURSSKLAD' on line 25, col 38
        if _v is not None:
            write(_filter(
                _v, rawExpr='$sps_js.KURSSKLAD'))  # from line 25, 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 26, col 38
        if _v is not None:
            write(_filter(
                _v, rawExpr='$sps_js.KURSSKLAD'))  # from line 26, col 38.
        write('''/k.objectLocate.js"></script>
''')
        # <script type="text/javascript" src="$sps_js.KURSSKLAD/k.waresLocate.js"></script>
        write('''\t<script type="text/javascript" src="''')
        _v = VFFSL(SL, "sps_js.KURSSKLAD",
                   True)  # '$sps_js.KURSSKLAD' on line 28, col 38
        if _v is not None:
            write(_filter(
                _v, rawExpr='$sps_js.KURSSKLAD'))  # from line 28, col 38.
        write('''/k.icons.js"></script>
\t<script type="text/javascript" src="''')
        _v = VFFSL(SL, "sps_js.KURSSKLAD",
                   True)  # '$sps_js.KURSSKLAD' on line 29, col 38
        if _v is not None:
            write(_filter(
                _v, rawExpr='$sps_js.KURSSKLAD'))  # from line 29, col 38.
        write('''/k.objectAutoComplete.js"></script>
\t<script type="text/javascript" src="''')
        _v = VFFSL(SL, "sp_js", True)  # '$sp_js' on line 30, col 38
        if _v is not None:
            write(_filter(_v, rawExpr='$sp_js'))  # from line 30, col 38.
        write('''/claimshop.js"></script> 


\t<div id="dvMain" style="width:100%;float:left;position:relative;">
\t\t<div id="divFilter" style="float:left;position:relative;height:100%;width:13%;">
\t\t\t<form id="frmScan">
\t\t\t\t<table>
\t\t\t\t\t<tr><th>\xcd\xee\xec\xe5\xf0</th></tr>
                    <tr><td><input type="text" name="barcode" id="barcode" value=""></td></tr>
\t\t\t\t</table>
\t\t\t</form>
            <form id="frmFilter">
                <table>
\t\t\t\t\t<tr><th>\xcc\xe0\xe3\xe0\xe7\xe8\xed</th></tr>
\t\t\t\t\t<tr><td><select name=\'toobjid\' id=\'toobjid\'></select></td></tr>
                    <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>
\t\t\t\t\t<tr><th>\xd1\xea\xeb\xe0\xe4</th></tr>
\t\t\t\t\t<tr><td><select name=\'fromobjid\' id=\'fromobjid\'></select></td></tr>
''')
        #
        #                     <tr><th>Статус</th></tr>
        #                     <tr><td><select name='status' id='cmbDocStatus'></select></td></tr>
        #
        write('''\t\t\t\t\t
                    <tr>
\t\t\t\t\t\t<td><div class="buttons" style="text-align: right; padding:3px;">
                                <button type="submit" title="\xc8\xf1\xea\xe0\xf2\xfc"><img src="'''
              )
        _v = VFFSL(SL, "sps_img.KURSSKLAD",
                   True)  # '$sps_img.KURSSKLAD' on line 57, col 80
        if _v is not None:
            write(_filter(
                _v, rawExpr='$sps_img.KURSSKLAD'))  # from line 57, col 80.
        write('''/magnifier.png" border="0"></button>
                            </div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
                </table>
            </form>
        </div>
        
        <div id="divTblData" style="float:left;position:relative;height:100%;width:87%;">
            <div id="divTblMaster" style="float:left;position:relative;height:40%;width:100%;"></div>
            <div id="divTblDetail" style="float:left;position:relative;height:60%;width:100%;"></div>
        </div>
\t</div>\t
''')

        ########################################
        ## END - generated method body

        return _dummyTrans and trans.response().getvalue() or ""
    def gen_browser(self, p, compact, **KWS):



        ## CHEETAH: generated from #def gen_browser($p, $compact) at line 3, 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
        
        onclick = 'return !window.open(this.href)'
        img = VFFSL(SL,"p.shortname",True)
        if VFFSL(SL,"compact",True): # generated from line 6, col 9
            img = VFFSL(SL,"img",True) + '_small'
        img = VFFSL(SL,"img",True) + '.jpg'
        recommend = ''
        if VFFSL(SL,"p.basic",True): # generated from line 11, col 9
            recommend = '<div><span>(рекомендуемый)</span></div>'
        write('''        <td> 
            <a href="''')
        _v = VFFSL(SL,"p.href",True) # '$p.href' on line 15, col 22
        if _v is not None: write(_filter(_v, rawExpr='$p.href')) # from line 15, col 22.
        write('''" onclick="''')
        _v = VFFSL(SL,"onclick",True) # '$onclick' on line 15, col 40
        if _v is not None: write(_filter(_v, rawExpr='$onclick')) # from line 15, col 40.
        write('''"><img src="''')
        _v = VFFSL(SL,"eng_img",True) # '$eng_img' on line 15, col 60
        if _v is not None: write(_filter(_v, rawExpr='$eng_img')) # from line 15, col 60.
        write('''/change_browser/''')
        _v = VFFSL(SL,"img",True) # '$img' on line 15, col 84
        if _v is not None: write(_filter(_v, rawExpr='$img')) # from line 15, col 84.
        write('''" alt="''')
        _v = VFFSL(SL,"p.showname",True) # '$p.showname' on line 15, col 95
        if _v is not None: write(_filter(_v, rawExpr='$p.showname')) # from line 15, col 95.
        write('''" /></a><br/>
            <a class="brows_name" href="''')
        _v = VFFSL(SL,"p.href",True) # '$p.href' on line 16, col 41
        if _v is not None: write(_filter(_v, rawExpr='$p.href')) # from line 16, col 41.
        write('''" onclick="''')
        _v = VFFSL(SL,"onclick",True) # '$onclick' on line 16, col 59
        if _v is not None: write(_filter(_v, rawExpr='$onclick')) # from line 16, col 59.
        write('''">''')
        _v = VFFSL(SL,"p.showname",True) # '$p.showname' on line 16, col 69
        if _v is not None: write(_filter(_v, rawExpr='$p.showname')) # from line 16, col 69.
        write('''</a>
            ''')
        _v = VFFSL(SL,"recommend",True) # '$recommend' on line 17, col 13
        if _v is not None: write(_filter(_v, rawExpr='$recommend')) # from line 17, col 13.
        write('''
        </td>
''')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
Exemple #14
0
    def mainData(self, **KWS):

        ## CHEETAH: generated from #def mainData 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('''    <b><u>(''')
        _v = VFFSL(SL, "WCODE", True)  # '$WCODE' on line 4, col 12
        if _v is not None:
            write(_filter(_v, rawExpr='$WCODE'))  # from line 4, col 12.
        write(''')</u></b>''')
        _v = VFFSL(SL, "WNAME", True)  # '$WNAME' on line 4, col 27
        if _v is not None:
            write(_filter(_v, rawExpr='$WNAME'))  # from line 4, col 27.
        write('''<br>
''')
        if VFFSL(SL, "VWUID", True):  # generated from line 5, col 5
            write('''        <b>''')
            _v = VFFSL(SL, "VWUCODE", True)  # '$VWUCODE' on line 6, col 12
            if _v is not None:
                write(_filter(_v, rawExpr='$VWUCODE'))  # from line 6, col 12.
            write(''' = ''')
            _orig_filter_73334595 = _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 6, col 39
            if _v is not None:
                write(_filter(_v,
                              rawExpr='$VWUFACTOR'))  # from line 6, col 39.
            _filter = _orig_filter_73334595
            write(''' ''')
            _v = VFFSL(SL, "MWUCODE", True)  # '$MWUCODE' on line 6, col 62
            if _v is not None:
                write(_filter(_v, rawExpr='$MWUCODE'))  # from line 6, col 62.
            write('''</b>
''')
        if VFFSL(SL, "WSITEID", True):  # generated from line 8, col 5
            write('''        <font color="gray"><b>''')
            _v = VFFSL(SL, "WSITENAME", True)  # '$WSITENAME' on line 9, col 31
            if _v is not None:
                write(_filter(_v,
                              rawExpr='$WSITENAME'))  # from line 9, col 31.
            write('''</b></font>
''')
        write('''    
''')
        if VFFSL(SL, "varExists", False)('$datalist') and VFFSL(
                SL, "datalist", True):  # generated from line 12, col 5
            write('''      <table>
        <thead>
          <tr>
            <th>''')
            if False:
                _('Код')
            _v = VFFSL(SL, "_", False)(
                'Код')  # "$_('\xca\xee\xe4')" on line 16, col 17
            if _v is not None:
                write(_filter(
                    _v, rawExpr="$_('\xca\xee\xe4')"))  # from line 16, col 17.
            write('''</th>
            <th>''')
            if False:
                _('Наименование')
            _v = VFFSL(SL, "_", False)(
                'Наименование'
            )  # "$_('\xcd\xe0\xe8\xec\xe5\xed\xee\xe2\xe0\xed\xe8\xe5')" on line 17, col 17
            if _v is not None:
                write(
                    _filter(
                        _v,
                        rawExpr=
                        "$_('\xcd\xe0\xe8\xec\xe5\xed\xee\xe2\xe0\xed\xe8\xe5')"
                    ))  # from line 17, col 17.
            write('''</th>
          </tr>
        <tbody>
''')
            for item in VFFSL(SL, "datalist",
                              True):  # generated from line 20, col 9
                write('''          <tr>
            <td>''')
                _v = VFFSL(SL, "item.SHORTNAME",
                           True)  # '$item.SHORTNAME' on line 22, col 17
                if _v is not None:
                    write(_filter(
                        _v,
                        rawExpr='$item.SHORTNAME'))  # from line 22, col 17.
                write('''</td>
            <td><a href="wuWaresUnit?wid=''')
                _v = VFFSL(SL, "WID", True)  # '$WID' on line 23, col 42
                if _v is not None:
                    write(_filter(_v, rawExpr='$WID'))  # from line 23, col 42.
                write('''&uid=''')
                _v = VFFSL(SL, "item.UNITID",
                           True)  # '$item.UNITID' on line 23, col 51
                if _v is not None:
                    write(_filter(
                        _v, rawExpr='$item.UNITID'))  # from line 23, col 51.
                write('''">''')
                _v = VFFSL(SL, "item.FULLNAME",
                           True)  # '$item.FULLNAME' on line 23, col 65
                if _v is not None:
                    write(_filter(
                        _v, rawExpr='$item.FULLNAME'))  # from line 23, col 65.
                write('''</a></td>
          </tr>
''')
            write('''        </tbody>
      </table>
''')

        ########################################
        ## END - generated method body

        return _dummyTrans and trans.response().getvalue() or ""
Exemple #15
0
    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('''
   ''')
        if False:
            _('От')
        _v = VFFSL(SL, "_", False)('От')  # "$_('\xce\xf2')" on line 7, col 4
        if _v is not None:
            write(_filter(_v, rawExpr="$_('\xce\xf2')"))  # from line 7, col 4.
        write(''': <b><u>''')
        _v = VFFSL(SL, "FROMNAME", True)  # '$FROMNAME' on line 7, col 20
        if _v is not None:
            write(_filter(_v, rawExpr='$FROMNAME'))  # from line 7, col 20.
        write('''</u></b><br>
''')
        if VFFSL(SL, "varExists", False)('$THROUGHNAME') and VFFSL(
                SL, "THROUGHNAME", True):  # generated from line 8, col 4
            write('''    ''')
            if False:
                _('Через')
            _v = VFFSL(SL, "_", False)(
                'Через')  # "$_('\xd7\xe5\xf0\xe5\xe7')" on line 9, col 5
            if _v is not None:
                write(_filter(_v, rawExpr="$_('\xd7\xe5\xf0\xe5\xe7')")
                      )  # from line 9, col 5.
            write(''': <b>''')
            _v = VFFSL(SL, "THROUGHNAME",
                       True)  # '$THROUGHNAME' on line 9, col 21
            if _v is not None:
                write(_filter(_v,
                              rawExpr='$THROUGHNAME'))  # from line 9, col 21.
            write('''</b><br>
''')
        if VFFSL(SL, "TONAME", True):  # generated from line 11, col 4
            write('''    ''')
            if False:
                _('Кому')
            _v = VFFSL(SL, "_", False)(
                'Кому')  # "$_('\xca\xee\xec\xf3')" on line 12, col 5
            if _v is not None:
                write(_filter(
                    _v,
                    rawExpr="$_('\xca\xee\xec\xf3')"))  # from line 12, col 5.
            write(''': ''')
            _v = VFFSL(SL, "TONAME", True)  # '$TONAME' on line 12, col 17
            if _v is not None:
                write(_filter(_v, rawExpr='$TONAME'))  # from line 12, col 17.
            write('''<br>
''')
        write('''    <b>''')
        _orig_filter_63817806 = _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 14, col 26
        if _v is not None:
            write(_filter(_v, rawExpr='$DOCDATE'))  # from line 14, col 26.
        _filter = _orig_filter_63817806
        write('''</b> \xb9<b>''')
        _v = VFFSL(SL, "DOCNUM", True)  # '$DOCNUM' on line 14, col 55
        if _v is not None:
            write(_filter(_v, rawExpr='$DOCNUM'))  # from line 14, col 55.
        write('''</b>
''')
        if VFFSL(SL, "varExists", False)('$ALGORITHM') and VFFSL(
                SL, "ALGORITHM", True):  # generated from line 15, col 2
            write('''\t\t<u>(''')
            _v = VFFSL(SL, "ALGORITHM", True)  # '$ALGORITHM' on line 16, col 7
            if _v is not None:
                write(_filter(_v,
                              rawExpr='$ALGORITHM'))  # from line 16, col 7.
            write(''')</u>
''')
        write('''\t<br>
    <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 28
        if _v is not None:
            write(_filter(_v, rawExpr='$WNAME'))  # from line 19, col 28.
        write(''' <br>
''')
        if VFFSL(SL, "VWUID", True):  # generated from line 20, col 5
            write('''        <b>''')
            _v = VFFSL(SL, "VWUCODE", True)  # '$VWUCODE' on line 21, col 12
            if _v is not None:
                write(_filter(_v, rawExpr='$VWUCODE'))  # from line 21, col 12.
            write(''' = ''')
            _orig_filter_54640412 = _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 21, col 39
            if _v is not None:
                write(_filter(_v,
                              rawExpr='$VWUFACTOR'))  # from line 21, col 39.
            _filter = _orig_filter_54640412
            write(''' ''')
            _v = VFFSL(SL, "MWUCODE", True)  # '$MWUCODE' on line 21, col 62
            if _v is not None:
                write(_filter(_v, rawExpr='$MWUCODE'))  # from line 21, col 62.
            write(''' </b>
''')
        write('''    <br>
''')
        if VFFSL(SL, "varExists",
                 False)('$qdoc'):  # generated from line 24, col 5
            write('''        ''')
            if False:
                _('План')
            _v = VFFSL(SL, "_", False)(
                'План')  # "$_('\xcf\xeb\xe0\xed')" on line 25, col 9
            if _v is not None:
                write(_filter(
                    _v,
                    rawExpr="$_('\xcf\xeb\xe0\xed')"))  # from line 25, col 9.
            write(''': ''')
            _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 25, col 21
            if _v is not None:
                write(
                    _filter(
                        _v,
                        rawExpr=
                        '$viewQuantity($qdoc,$VWUFACTOR,$VWUCODE,$MWUFACTOR,$MWUCODE)'
                    ))  # from line 25, col 21.
            write(''' <b>(<u>''')
            _orig_filter_51943684 = _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 25, col 105
            if _v is not None:
                write(_filter(_v, rawExpr='$qdoc'))  # from line 25, col 105.
            _filter = _orig_filter_51943684
            write('''</u>)</b>
        <br>
''')
        if VFFSL(SL, "varExists", False)('$qfact') and VFFSL(
                SL, "qfact", True):  # generated from line 28, col 5
            write('''        ''')
            if False:
                _('Факт')
            _v = VFFSL(SL, "_", False)(
                'Факт')  # "$_('\xd4\xe0\xea\xf2')" on line 29, col 9
            if _v is not None:
                write(_filter(
                    _v,
                    rawExpr="$_('\xd4\xe0\xea\xf2')"))  # from line 29, col 9.
            write(''': ''')
            _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 29, col 21
            if _v is not None:
                write(
                    _filter(
                        _v,
                        rawExpr=
                        '$viewQuantity($qfact,$VWUFACTOR,$VWUCODE,$MWUFACTOR,$MWUCODE)'
                    ))  # from line 29, col 21.
            write(''' <b>(<u>''')
            _orig_filter_64620059 = _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 29, col 106
            if _v is not None:
                write(_filter(_v, rawExpr='$qfact'))  # from line 29, col 106.
            _filter = _orig_filter_64620059
            write('''</u>)</b>
        <br>
''')
        write('''        
    <hr>
''')
        if VFFSL(SL, "varExists", False)('$datalist') and VFFSL(
                SL, "datalist", True):  # generated from line 34, col 5
            write('''        <table>
            <thead>
                <tr>
                    <th>''')
            if False:
                _('Дата')
            _v = VFFSL(SL, "_", False)(
                'Дата')  # "$_('\xc4\xe0\xf2\xe0')" on line 38, col 25
            if _v is not None:
                write(_filter(
                    _v,
                    rawExpr="$_('\xc4\xe0\xf2\xe0')"))  # from line 38, col 25.
            write('''</th>
                    <th>''')
            if False:
                _('Поддон')
            _v = VFFSL(SL, "_", False)(
                'Поддон'
            )  # "$_('\xcf\xee\xe4\xe4\xee\xed')" on line 39, col 25
            if _v is not None:
                write(_filter(_v, rawExpr="$_('\xcf\xee\xe4\xe4\xee\xed')")
                      )  # from line 39, col 25.
            write('''</th>
                    <th>''')
            if False:
                _('Кол-во')
            _v = VFFSL(SL, "_", False)(
                'Кол-во'
            )  # "$_('\xca\xee\xeb-\xe2\xee')" on line 40, col 25
            if _v is not None:
                write(_filter(_v, rawExpr="$_('\xca\xee\xeb-\xe2\xee')")
                      )  # from line 40, col 25.
            write('''</th>
                </tr>
            </thead>
''')
            q = 0
            write('''            <tbody>
''')
            for item in VFFSL(SL, "datalist",
                              True):  # generated from line 45, col 13
                q += VFFSL(SL, "item.AMOUNT", True)
                write('''                <tr>
                    <td>''')
                _orig_filter_17313730 = _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 48, col 44
                if _v is not None:
                    write(_filter(
                        _v, rawExpr='$item.PRDATE'))  # from line 48, col 44.
                _filter = _orig_filter_17313730
                write('''</td>
                    <td>
''')
                if VFFSL(SL, "item.PNUM",
                         True):  # generated from line 50, col 21
                    write('''                        <a title="''')
                    _v = VFFSL(SL, "item.sname",
                               True)  # '$item.sname' on line 51, col 35
                    if _v is not None:
                        write(_filter(
                            _v,
                            rawExpr='$item.sname'))  # from line 51, col 35.
                    write('''" href="javascript: if (confirm(\'''')
                    if False:
                        _('Вы действительно хотите отменить выбранный пункт отборки?'
                          )
                    _v = VFFSL(SL, "_", False)(
                        'Вы действительно хотите отменить выбранный пункт отборки?'
                    )  # "$_('\xc2\xfb \xe4\xe5\xe9\xf1\xf2\xe2\xe8\xf2\xe5\xeb\xfc\xed\xee \xf5\xee\xf2\xe8\xf2\xe5 \xee\xf2\xec\xe5\xed\xe8\xf2\xfc \xe2\xfb\xe1\xf0\xe0\xed\xed\xfb\xe9 \xef\xf3\xed\xea\xf2 \xee\xf2\xe1\xee\xf0\xea\xe8?')" on line 51, col 79
                    if _v is not None:
                        write(
                            _filter(
                                _v,
                                rawExpr=
                                "$_('\xc2\xfb \xe4\xe5\xe9\xf1\xf2\xe2\xe8\xf2\xe5\xeb\xfc\xed\xee \xf5\xee\xf2\xe8\xf2\xe5 \xee\xf2\xec\xe5\xed\xe8\xf2\xfc \xe2\xfb\xe1\xf0\xe0\xed\xed\xfb\xe9 \xef\xf3\xed\xea\xf2 \xee\xf2\xe1\xee\xf0\xea\xe8?')"
                            ))  # from line 51, col 79.
                    write("""')) location.href='dfsTaskWaresPalletCanc?tid=""")
                    _v = VFFSL(SL, "tid", True)  # '$tid' on line 51, col 188
                    if _v is not None:
                        write(_filter(
                            _v, rawExpr='$tid'))  # from line 51, col 188.
                    write('''&wid=''')
                    _v = VFFSL(SL, "wid", True)  # '$wid' on line 51, col 197
                    if _v is not None:
                        write(_filter(
                            _v, rawExpr='$wid'))  # from line 51, col 197.
                    write('''&pid=''')
                    _v = VFFSL(SL, "item.PID",
                               True)  # '$item.PID' on line 51, col 206
                    if _v is not None:
                        write(_filter(
                            _v, rawExpr='$item.PID'))  # from line 51, col 206.
                    write('''&wlid=''')
                    _v = VFFSL(SL, "item.WLID",
                               True)  # '$item.WLID' on line 51, col 221
                    if _v is not None:
                        write(_filter(
                            _v,
                            rawExpr='$item.WLID'))  # from line 51, col 221.
                    write('''\'">''')
                    _v = VFFSL(SL, "item.pnum",
                               True)  # '$item.pnum' on line 51, col 234
                    if _v is not None:
                        write(_filter(
                            _v,
                            rawExpr='$item.pnum'))  # from line 51, col 234.
                    write('''</a>
''')
                else:  # generated from line 52, col 21
                    write(
                        '''                        <a href="javascript: if (confirm(\''''
                    )
                    if False:
                        _('Вы действительно хотите отменить выбранный пункт отборки?'
                          )
                    _v = VFFSL(SL, "_", False)(
                        'Вы действительно хотите отменить выбранный пункт отборки?'
                    )  # "$_('\xc2\xfb \xe4\xe5\xe9\xf1\xf2\xe2\xe8\xf2\xe5\xeb\xfc\xed\xee \xf5\xee\xf2\xe8\xf2\xe5 \xee\xf2\xec\xe5\xed\xe8\xf2\xfc \xe2\xfb\xe1\xf0\xe0\xed\xed\xfb\xe9 \xef\xf3\xed\xea\xf2 \xee\xf2\xe1\xee\xf0\xea\xe8?')" on line 53, col 59
                    if _v is not None:
                        write(
                            _filter(
                                _v,
                                rawExpr=
                                "$_('\xc2\xfb \xe4\xe5\xe9\xf1\xf2\xe2\xe8\xf2\xe5\xeb\xfc\xed\xee \xf5\xee\xf2\xe8\xf2\xe5 \xee\xf2\xec\xe5\xed\xe8\xf2\xfc \xe2\xfb\xe1\xf0\xe0\xed\xed\xfb\xe9 \xef\xf3\xed\xea\xf2 \xee\xf2\xe1\xee\xf0\xea\xe8?')"
                            ))  # from line 53, col 59.
                    write("""')) location.href='dfsTaskWaresPalletCanc?tid=""")
                    _v = VFFSL(SL, "tid", True)  # '$tid' on line 53, col 168
                    if _v is not None:
                        write(_filter(
                            _v, rawExpr='$tid'))  # from line 53, col 168.
                    write('''&wid=''')
                    _v = VFFSL(SL, "wid", True)  # '$wid' on line 53, col 177
                    if _v is not None:
                        write(_filter(
                            _v, rawExpr='$wid'))  # from line 53, col 177.
                    write('''&pid=''')
                    _v = VFFSL(SL, "item.PID",
                               True)  # '$item.PID' on line 53, col 186
                    if _v is not None:
                        write(_filter(
                            _v, rawExpr='$item.PID'))  # from line 53, col 186.
                    write('''&wlid=''')
                    _v = VFFSL(SL, "item.WLID",
                               True)  # '$item.WLID' on line 53, col 201
                    if _v is not None:
                        write(_filter(
                            _v,
                            rawExpr='$item.WLID'))  # from line 53, col 201.
                    write('''\'">''')
                    _v = VFFSL(SL, "item.sname",
                               True)  # '$item.sname' on line 53, col 214
                    if _v is not None:
                        write(_filter(
                            _v,
                            rawExpr='$item.sname'))  # from line 53, col 214.
                    write('''</a>
''')
                write('''                    </td>
                    <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 56, col 25
                if _v is not None:
                    write(
                        _filter(
                            _v,
                            rawExpr=
                            '$viewQuantity($item.AMOUNT,$VWUFACTOR,$VWUCODE,$MWUFACTOR,$MWUCODE)'
                        ))  # from line 56, col 25.
                write(''' <b>(<u>''')
                _orig_filter_49565298 = _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 56, col 116
                if _v is not None:
                    write(_filter(
                        _v, rawExpr='$item.amount'))  # from line 56, col 116.
                _filter = _orig_filter_49565298
                write('''</u>)</b></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 62, col 35
            if _v is not None:
                write(
                    _filter(
                        _v,
                        rawExpr=
                        '$viewQuantity($q,$VWUFACTOR,$VWUCODE,$MWUFACTOR,$MWUCODE)'
                    ))  # from line 62, col 35.
            write(''' <b><u>(''')
            _orig_filter_97027392 = _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 62, col 116
            if _v is not None:
                write(_filter(_v, rawExpr='$q'))  # from line 62, col 116.
            _filter = _orig_filter_97027392
            write(''')</u></b></th>
                </tr>
            </tfoot>
        </table>
''')

        ########################################
        ## END - generated method body

        return _dummyTrans and trans.response().getvalue() or ""
Exemple #16
0
    def engineData(self, **KWS):



        ## CHEETAH: generated from #def engineData 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('''    <link rel="stylesheet" type="text/css" media="screen" href="''')
        _v = VFFSL(SL,"sps_css.KURSSKLAD",True) # '$sps_css.KURSSKLAD' on line 9, col 65
        if _v is not None: write(_filter(_v, rawExpr='$sps_css.KURSSKLAD')) # from line 9, col 65.
        write('''/k.progressbar.css" />
    <link rel="stylesheet" type="text/css" media="screen" href="''')
        _v = VFFSL(SL,"sps_css.KURSSKLAD",True) # '$sps_css.KURSSKLAD' on line 10, col 65
        if _v is not None: write(_filter(_v, rawExpr='$sps_css.KURSSKLAD')) # from line 10, col 65.
        write('''/jquery.contextMenu.css"/>
\t<link href="''')
        _v = VFFSL(SL,"sps_css.KURSSKLAD",True) # '$sps_css.KURSSKLAD' on line 11, col 14
        if _v is not None: write(_filter(_v, rawExpr='$sps_css.KURSSKLAD')) # from line 11, col 14.
        write('''/tabs/jquery.tabs.css" rel="stylesheet" type="text/css" media="screen"/>    
    
    <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('''/ui.dialog.min.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('''/ui.datepicker.min.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('''/i18n/ui.datepicker-ru.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.maskedinput-1.2.1.pack.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.tablesorter.js"></script>
    <script type="text/javascript" src="''')
        _v = VFFSL(SL,"eng_js",True) # '$eng_js' on line 18, col 41
        if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 18, col 41.
        write('''/kTblScroll.min.js"></script>
    <script type="text/javascript" src="''')
        _v = VFFSL(SL,"eng_js",True) # '$eng_js' on line 19, col 41
        if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 19, col 41.
        write('''/jquery.rightClick.min.js"></script>
    <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('''/jquery.contextMenu.min.js"></script>    
\t<script type="text/javascript" src="''')
        _v = VFFSL(SL,"eng_js",True) # '$eng_js' on line 21, col 38
        if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 21, col 38.
        write('''/jquery.rowFocus.min.js"></script>    
\t
    <script type="text/javascript" src="''')
        _v = VFFSL(SL,"sps_js.KURSSKLAD",True) # '$sps_js.KURSSKLAD' on line 23, col 41
        if _v is not None: write(_filter(_v, rawExpr='$sps_js.KURSSKLAD')) # from line 23, col 41.
        write('''/jquery.tabs.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<script type="text/javascript" src="''')
        _v = VFFSL(SL,"sps_js.KURSSKLAD",True) # '$sps_js.KURSSKLAD' on line 25, col 38
        if _v is not None: write(_filter(_v, rawExpr='$sps_js.KURSSKLAD')) # from line 25, col 38.
        write('''/k.blocks.js"></script>
\t<script type="text/javascript" src="''')
        _v = VFFSL(SL,"sps_js.KURSSKLAD",True) # '$sps_js.KURSSKLAD' on line 26, col 38
        if _v is not None: write(_filter(_v, rawExpr='$sps_js.KURSSKLAD')) # from line 26, col 38.
        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('''/jquery.blockUI.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.form.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.progressbar.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('''/taskView.js"></script>

    <script type="text/javascript" src="''')
        _v = VFFSL(SL,"sp_js",True) # '$sp_js' on line 33, col 41
        if _v is not None: write(_filter(_v, rawExpr='$sp_js')) # from line 33, col 41.
        write('''/worktask.js"></script>
    
    <div id="dvScreen">\xd0\xe0\xe1\xee\xf7\xe0\xff \xee\xe1\xeb\xe0\xf1\xf2\xfc</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('''<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
    <meta name="robots" content="noindex, nofollow">
''')
        if VFFSL(SL,"varExists",False)("system_name"): # generated from line 23, col 5
            write('''    <title>''')
            _v = VFFSL(SL,"system_name",True) # '$system_name' on line 24, col 12
            if _v is not None: write(_filter(_v, rawExpr='$system_name')) # from line 24, col 12.
            write('''</title>
''')
        if VFFSL(SL,"varExists",False)("sp_img"): # generated from line 26, col 5
            write('''    <link rel="shortcut icon" href="''')
            _v = VFFSL(SL,"sp_img",True) # '$sp_img' on line 27, col 37
            if _v is not None: write(_filter(_v, rawExpr='$sp_img')) # from line 27, col 37.
            write('''/favicon.ico">
''')
        write('''    <link rel="stylesheet" href="''')
        _v = VFFSL(SL,"eng_css",True) # '$eng_css' on line 29, col 34
        if _v is not None: write(_filter(_v, rawExpr='$eng_css')) # from line 29, col 34.
        write('''/reset.css" type="text/css" media="screen"/>
    <link rel="stylesheet" href="''')
        _v = VFFSL(SL,"eng_css",True) # '$eng_css' on line 30, col 34
        if _v is not None: write(_filter(_v, rawExpr='$eng_css')) # from line 30, col 34.
        write('''/structure.css" type="text/css" media="screen"/>
    <link rel="stylesheet" href="''')
        _v = VFFSL(SL,"eng_css",True) # '$eng_css' on line 31, col 34
        if _v is not None: write(_filter(_v, rawExpr='$eng_css')) # from line 31, col 34.
        write('''/dialog.resizable.css" type="text/css" media="screen"/>
''')
        if VFFSL(SL,"varExists",False)("$up_theme_name"): # generated from line 32, col 5
            write('''    <link id="csstheme" rel="stylesheet" href="/ENGINE/themes/''')
            _v = VFFSL(SL,"up_theme_name",True) # '$up_theme_name' on line 33, col 63
            if _v is not None: write(_filter(_v, rawExpr='$up_theme_name')) # from line 33, col 63.
            write('''/css/import.css" type="text/css" media="screen"/>
''')
        write('''
    <link href="/locale/''')
        _v = VFFSL(SL,"getSesVar",False)('locale') # "$getSesVar('locale')" on line 36, col 25
        if _v is not None: write(_filter(_v, rawExpr="$getSesVar('locale')")) # from line 36, col 25.
        write('''/locale.json" lang="''')
        _v = VFFSL(SL,"getSesVar",False)('locale') # "$getSesVar('locale')" on line 36, col 65
        if _v is not None: write(_filter(_v, rawExpr="$getSesVar('locale')")) # from line 36, col 65.
        write('''" rel="gettext" />
    <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('''/jquery/2.0.3/jquery-2.0.3.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('''/jquery.gettext.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('''/ui.core.min.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.resizable.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('''/ui.draggable.min.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('''/json2.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.easing.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.accordion.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('''/jquery.treeview.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('''/jquery.numeric.pack.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('''/utils.datetime.js"></script>
    <script type="text/javascript">
    $(function(){

      $(".search-btn").click(function(){
        $("#search-content").slideToggle("slow");
        $(this).toggleClass("active"); return false;
      });

       $("#user-bar-accordion").accordion({
          //active: false,
          header: ".head",
          accordigation: true,
          event: "click",
          fillSpace: false,
          animated: "easeslide",
                autoheight: false
        });
       $("#user-bar-accordion-tooggler").click(function(){
            var Tooggled = $("#container-user-bar-accordion");
            var Container = $("#container-content");
            //if((Tooggled).is(":hidden"))
            //    Container.animate({marginRight:"184px"},{duration:"normal", queue:true});
            //else
            //    Container.animate({marginRight:"5px"},{duration:"normal", queue:true});
            Tooggled.toggle("normal");
        });

        $("#systems-tree").treeview({
          persist: "location",
          collapsed: true,
          unique: true,
              animated: "fast"
        });

        function getMsg() {
            $.getJSON(\'ajaxGetMsg\',{},function(data){
                if (data.data.RES=="eng_msg") alert(data.data.MES);
                if (data.data.RES=="eng_redirect_to_index"){
                    alert(data.data.MES);
                    location.href=data.data.LOCATION;
                }
                if (data.data.RES=="eng_error"){
                    alert(data.data.MES);
                }
              });
        }
        $("<div id=\'container-busy\'></div>")
        .ajaxStart(function() {
            $(this).show();
            $(\'body\').addClass("cursor_wait");
            getMsg();
        })
        .ajaxStop(function(){$(this).hide(); $(\'body\').removeClass("cursor_wait");})
        .ajaxError(function(event, request, settings, error){
''')
        # \$(this).text("Ошибка запроса страницы: " + settings.url).show();
        write('''            $(\'body\').removeClass("cursor_wait");
''')
        # alert("ajaxError: Во время обработки запроса возникла ошибка, либо пропала связь с сервером! Администратор системы автоматически получит электронное письмо. Попробуйте подключиться через 5-10 минут.");
        write('''            try {
                eval("var json=" + request.responseText);
            }
            catch(e) {
                var json = request.responseText;
            }
            var mes = (json ? \'\\n\\n\\n\xd2\xe5\xf5\xed\xe8\xf7\xe5\xf1\xea\xe8\xe5 \xef\xee\xe4\xf0\xee\xe1\xed\xee\xf1\xf2\xe8:\\n---\\n\' + (json.mes ? json.mes : json) : \'\');
            if (settings.url != \'ajaxGetMsg\')
                alert(\'\xc2\xee \xe2\xf0\xe5\xec\xff \xee\xe1\xf0\xe0\xe1\xee\xf2\xea\xe8 \xe7\xe0\xef\xf0\xee\xf1\xe0 \xe2\xee\xe7\xed\xe8\xea\xeb\xe0 \xee\xf8\xe8\xe1\xea\xe0 \xeb\xe8\xe1\xee \xef\xf0\xee\xef\xe0\xeb\xe0 \xf1\xe2\xff\xe7\xfc \xf1 \xf1\xe5\xf0\xe2\xe5\xf0\xee\xec:\' + mes);
''')
        # alert(listProperties(request, 'request'));
        write('''        })
        .appendTo("#container-head");
''')
        # executing at start page
        write('''        getMsg();

''')
        # alert(listProperties(sps_css, "sps_css"));
        write('''    });
    </script>

</head>
<body>
<script type="text/javascript">
''')
        #  iface valiables
        if VFFSL(SL,"varExists",False)('$ifaceVariables'): # generated from line 129, col 5
            for item in VFFSL(SL,"ifaceVariables",True): # generated from line 130, col 9
                v = secure.escape_js_string(VFFSL(SL,"item.VALUE",True))
                write('''            ''')
                _v = VFFSL(SL,"item.VARIABLE",True) # '$item.VARIABLE' on line 132, col 13
                if _v is not None: write(_filter(_v, rawExpr='$item.VARIABLE')) # from line 132, col 13.
                write(''' = "''')
                _v = VFFSL(SL,"v",True) # '$v' on line 132, col 31
                if _v is not None: write(_filter(_v, rawExpr='$v')) # from line 132, col 31.
                write('''";
''')
        #  string params
        if VFFSL(SL,"varExists",False)('$sp'): # generated from line 136, col 5
            write('''      sp="''')
            _v = VFFSL(SL,"sp",True) # '$sp' on line 137, col 11
            if _v is not None: write(_filter(_v, rawExpr='$sp')) # from line 137, col 11.
            write('''";
''')
        if VFFSL(SL,"varExists",False)('$sp_img'): # generated from line 139, col 5
            write('''      sp_img="''')
            _v = VFFSL(SL,"sp_img",True) # '$sp_img' on line 140, col 15
            if _v is not None: write(_filter(_v, rawExpr='$sp_img')) # from line 140, col 15.
            write('''";
''')
        if VFFSL(SL,"varExists",False)('$sp_css'): # generated from line 142, col 5
            write('''      sp_css="''')
            _v = VFFSL(SL,"sp_css",True) # '$sp_css' on line 143, col 15
            if _v is not None: write(_filter(_v, rawExpr='$sp_css')) # from line 143, col 15.
            write('''";
''')
        if VFFSL(SL,"varExists",False)('$sp_js'): # generated from line 145, col 5
            write('''      sp_js="''')
            _v = VFFSL(SL,"sp_js",True) # '$sp_js' on line 146, col 14
            if _v is not None: write(_filter(_v, rawExpr='$sp_js')) # from line 146, col 14.
            write('''";
''')
        if VFFSL(SL,"varExists",False)('$sp_forms'): # generated from line 148, col 5
            write('''      sp_forms="''')
            _v = VFFSL(SL,"sp_forms",True) # '$sp_forms' on line 149, col 17
            if _v is not None: write(_filter(_v, rawExpr='$sp_forms')) # from line 149, col 17.
            write('''";
''')
        if VFFSL(SL,"varExists",False)('$sp_reports'): # generated from line 151, col 5
            write('''      sp_reports="''')
            _v = VFFSL(SL,"sp_reports",True) # '$sp_reports' on line 152, col 19
            if _v is not None: write(_filter(_v, rawExpr='$sp_reports')) # from line 152, col 19.
            write('''";
''')
        write('''
    eng_img="''')
        _v = VFFSL(SL,"eng_img",True) # '$eng_img' on line 155, col 14
        if _v is not None: write(_filter(_v, rawExpr='$eng_img')) # from line 155, col 14.
        write('''";
    eng_css="''')
        _v = VFFSL(SL,"eng_css",True) # '$eng_css' on line 156, col 14
        if _v is not None: write(_filter(_v, rawExpr='$eng_css')) # from line 156, col 14.
        write('''";
    eng_js="''')
        _v = VFFSL(SL,"eng_js",True) # '$eng_js' on line 157, col 13
        if _v is not None: write(_filter(_v, rawExpr='$eng_js')) # from line 157, col 13.
        write('''";
    eng_forms="''')
        _v = VFFSL(SL,"eng_forms",True) # '$eng_forms' on line 158, col 16
        if _v is not None: write(_filter(_v, rawExpr='$eng_forms')) # from line 158, col 16.
        write('''";
    eng_reports="''')
        _v = VFFSL(SL,"eng_reports",True) # '$eng_reports' on line 159, col 18
        if _v is not None: write(_filter(_v, rawExpr='$eng_reports')) # from line 159, col 18.
        write('''";

''')
        #  dict params
        write('''    sps_name=''')
        _v = VFFSL(SL,"sps_name",True) # '$sps_name' on line 162, col 14
        if _v is not None: write(_filter(_v, rawExpr='$sps_name')) # from line 162, col 14.
        write(''';
    sps_img=''')
        _v = VFFSL(SL,"sps_img",True) # '$sps_img' on line 163, col 13
        if _v is not None: write(_filter(_v, rawExpr='$sps_img')) # from line 163, col 13.
        write(''';
    sps_css=''')
        _v = VFFSL(SL,"sps_css",True) # '$sps_css' on line 164, col 13
        if _v is not None: write(_filter(_v, rawExpr='$sps_css')) # from line 164, col 13.
        write(''';
    sps_js=''')
        _v = VFFSL(SL,"sps_js",True) # '$sps_js' on line 165, col 12
        if _v is not None: write(_filter(_v, rawExpr='$sps_js')) # from line 165, col 12.
        write(''';
    sps_forms=''')
        _v = VFFSL(SL,"sps_forms",True) # '$sps_forms' on line 166, col 15
        if _v is not None: write(_filter(_v, rawExpr='$sps_forms')) # from line 166, col 15.
        write(''';
    sps_reports=''')
        _v = VFFSL(SL,"sps_reports",True) # '$sps_reports' on line 167, col 17
        if _v is not None: write(_filter(_v, rawExpr='$sps_reports')) # from line 167, col 17.
        write(''';

''')
        # #if $varExists('$so_js_dic')
        #       ##{"['role_add_btn2', 'element']": {'add':{'par1': 'val1', 'par2': 'val2'}, 'add2':{}}, "['role_add_btn', 'element']": {'cancel':{}, 'nodelete':{}, 'view':{}}}
        #       loaded_sys_options=$so_js_dic;
        #     #else
        #       loaded_sys_options=null;
        #     #end if
        write('''    function include(script_filename) {
      document.write(\'<\'+\'script\'+\' language="javascript"\'+\' type="text/javascript"\'+\' src="\'+script_filename+\'">\'+\'</\'+\'script\'+\'>\');
    }
</script>
''')
        if VFFSL(SL,"getSesVar",False)("user-agent-restricted"): # generated from line 179, col 7
            if VFFSL(SL,"UA_OTHER_REMIND",True): # generated from line 181, col 13
                write('''
                <div id="ua_change" align="center">
                    <p>\xc2\xfb \xe8\xf1\xef\xee\xeb\xfc\xe7\xf3\xe5\xf2\xe5 \xf3\xf1\xf2\xe0\xf0\xe5\xe2\xf8\xe8\xe9 \xe1\xf0\xe0\xf3\xe7\xe5\xf0. \xc4\xeb\xff \xf1\xf2\xe0\xe1\xe8\xeb\xfc\xed\xee\xe9 \xe8 \xea\xee\xec\xf4\xee\xf0\xf2\xed\xee\xe9 \xf0\xe0\xe1\xee\xf2\xfb \xf3\xf1\xf2\xe0\xed\xee\xe2\xe8\xf2\xe5 \xee\xe4\xe8\xed \xe8\xe7 \xe1\xf0\xe0\xf3\xe7\xe5\xf0\xee\xe2, \xef\xe5\xf0\xe5\xf7\xe8\xf1\xeb\xe5\xed\xed\xfb\xf5 \xed\xe8\xe6\xe5:</p>
                    <ul>''')
                _v = VFFSL(SL,"gen_browser_lst",False)(True) # '$gen_browser_lst(True)' on line 208, col 25
                if _v is not None: write(_filter(_v, rawExpr='$gen_browser_lst(True)')) # from line 208, col 25.
                write('''</ul>
                </div>
''')
        write('''
  <div id="container-page">
    <!--Begin Head -->
    <div id="container-head" class="container">
''')
        if VFFSL(SL,"varExists",False)("html_warning") and VFFSL(SL,"html_warning",True): # generated from line 216, col 7
            write('''        <div id="html-warning">''')
            _v = VFFSL(SL,"html_warning",True) # '$html_warning' on line 217, col 32
            if _v is not None: write(_filter(_v, rawExpr='$html_warning')) # from line 217, col 32.
            write('''</div>
''')
        if VFFSL(SL,"varExists",False)("clt_html") and VFFSL(SL,"clt_html",True): # generated from line 219, col 7
            write('''          <div id="addinfo">''')
            _v = VFFSL(SL,"clt_html",True) # '$clt_html' on line 220, col 29
            if _v is not None: write(_filter(_v, rawExpr='$clt_html')) # from line 220, col 29.
            write('''</div>
''')
        else: # generated from line 221, col 7
            if VFFSL(SL,"varExists",False)("addinfo"): # generated from line 222, col 11
                write('''            <div id="addinfo">''')
                _v = VFFSL(SL,"addinfo",True) # '$addinfo' on line 223, col 31
                if _v is not None: write(_filter(_v, rawExpr='$addinfo')) # from line 223, col 31.
                write('''</div>
''')
        if VFFSL(SL,"varExists",False)("top_system_name"): # generated from line 226, col 7
            write('''        <div id="parent-sys-name">''')
            _v = VFFSL(SL,"top_system_name",True) # '$top_system_name' on line 227, col 35
            if _v is not None: write(_filter(_v, rawExpr='$top_system_name')) # from line 227, col 35.
            write('''</div>
''')
        write('''      <div id="container-user-data">
''')
        if VFFSL(SL,"varExists",False)("userfio"): # generated from line 230, col 7
            write('''        ''')
            _v = VFFSL(SL,"userfio",True) # '$userfio' on line 231, col 9
            if _v is not None: write(_filter(_v, rawExpr='$userfio')) # from line 231, col 9.
            write('''
''')
        write('''        <ul class="user-menu">
          <li><a id="user-bar-accordion-tooggler" href="javascript:void(0);">\xcc\xe5\xed\xfe</a></li>
''')
        if getattr(cfg, 'SHOW_TOP_SYSTEM_NAME', False) and VFFSL(SL,"varExists",False)("top_system_name") and VFFSL(SL,"top_system_name",True) and VFFSL(SL,"varExists",False)("top_system_ref") and VFFSL(SL,"top_system_ref",True): # generated from line 235, col 11
            write('''                <li>
                    <a href="''')
            _v = VFFSL(SL,"top_system_ref",True) # '$top_system_ref' on line 237, col 30
            if _v is not None: write(_filter(_v, rawExpr='$top_system_ref')) # from line 237, col 30.
            write('''">''')
            _v = VFFSL(SL,"top_system_name",True) # '$top_system_name' on line 237, col 47
            if _v is not None: write(_filter(_v, rawExpr='$top_system_name')) # from line 237, col 47.
            write('''</a>
                </li>
''')
        write('''
''')
        if VFFSL(SL,"varExists",False)("system_help"): # generated from line 241, col 11
            write('''              <li>  <a href="javascript: void(0);" onclick="var wind  = window.open(\'''')
            _v = VFFSL(SL,"sp",True) # '$sp' on line 242, col 86
            if _v is not None: write(_filter(_v, rawExpr='$sp')) # from line 242, col 86.
            write('''/help/index.htm\',\'\xc8\xed\xf1\xf2\xf0\xf3\xea\xf6\xe8\xff \xef\xee \xf0\xe0\xe1\xee\xf2\xe5 \xf1 \xf1\xe8\xf1\xf2\xe5\xec\xee\xe9\'); wind.focus();">
                        \xd1\xef\xf0\xe0\xe2\xea\xe0
                    </a>
              </li>
''')
        write('''          <li><a href="/exit">\xc2\xfb\xf5\xee\xe4</a></li>
        </ul>
      </div>
''')
        if VFFSL(SL,"varExists",False)("system_name"): # generated from line 250, col 7
            write('''        <div id="sys-name">''')
            _v = VFFSL(SL,"system_name",True) # '$system_name' on line 251, col 28
            if _v is not None: write(_filter(_v, rawExpr='$system_name')) # from line 251, col 28.
            write('''</div>
''')
        if VFFSL(SL,"varExists",False)("test_message"): # generated from line 253, col 7
            write('''        <div id="test-message">''')
            _v = VFFSL(SL,"test_message",True) # '$test_message' on line 254, col 32
            if _v is not None: write(_filter(_v, rawExpr='$test_message')) # from line 254, col 32.
            write('''</div>
''')
        write('''

        <div id="sysmenu" class="navigation">
''')
        self.systemNavigation(trans=trans)
        write('''        </div>

    </div>
    <!--End Head -->
    <!--Begin UserBar Accordion-->
    <div id="container-user-bar-accordion" class="container" align="center">
            <ul id="user-bar-accordion" class="accord user-bar-accordion">
''')
        if VFFSL(SL,"varExists",False)("eng_systems_tree"): # generated from line 268, col 13
            write('''                <li class="accord">
                    <a class="head">\xcc\xee\xe8 \xf1\xe8\xf1\xf2\xe5\xec\xfb</a>
                    <ul id="systems-tree">''')
            _v = VFFSL(SL,"eng_systems_tree",True) # '$eng_systems_tree' on line 271, col 43
            if _v is not None: write(_filter(_v, rawExpr='$eng_systems_tree')) # from line 271, col 43.
            write('''</ul>
                </li>
''')
        write('''
                <li class="accord">
                    <a class="head">\xcc\xee\xe9 \xef\xf0\xee\xf4\xe8\xeb\xfc</a>
                    <ul class="accord">
                        <li class="accord"><a href="/PROFILE/theme">\xd2\xe5\xec\xe0 \xee\xf4\xee\xf0\xec\xeb\xe5\xed\xe8\xff</a></li>
                        <li class="accord"><a href="/PROFILE/passwd">\xcf\xe0\xf0\xee\xeb\xfc</a></li>

''')
        profileaddoninfo = get_mapped_sysinfo("/ADDONS/PROFILEADDON")
        if len(VFFSL(SL,"profileaddoninfo",True)) > 0: # generated from line 283, col 25
            write('''                            <li class="accord"><a href="/PROFILE/info">\xd3\xf7\xe5\xf2\xed\xfb\xe5 \xe4\xe0\xed\xed\xfb\xe5</a></li>
''')
        write('''
                    </ul>
                </li>
            </ul>
    </div>
    <!--End UserBar Accordion-->
    <div id="container-content-wrapper">
      <div id="container-content" class="container" align="center">
''')
        if VFFSL(SL,"varExists",False)("searchbar"): # generated from line 294, col 9
            searchbar_style = ''
            if str(VFFSL(SL,"searchbar.visible",True)) == '1': # generated from line 296, col 13
                searchbar_style = 'style = "display: block;"'
            write('''
        <!--Begin Search Bar-->
        <div id="search-wrap">
            <div id="search-content" class="container" ''')
            _v = VFFSL(SL,"searchbar_style",True) # '$searchbar_style' on line 302, col 56
            if _v is not None: write(_filter(_v, rawExpr='$searchbar_style')) # from line 302, col 56.
            write('''>
''')
            self.searchData(trans=trans)
            write('''            </div>
            <p class="search-header"><a href="#" class="search-btn">\xcf\xee\xe8\xf1\xea</a></p>
        </div>
        <!--End Search Bar-->
''')
        write('''        <!--Begin Interface Data-->
''')
        if VFFSL(SL,"varExists",False)('$engine_error') and VFFSL(SL,"engine_error",True): # generated from line 312, col 9
            engine_error_sec = secure.escape_js_string(VFFSL(SL,"engine_error",True))
            write('''            <script type="text/javascript">alert(\'''')
            _v = VFFSL(SL,"engine_error_sec",True) # '$engine_error_sec' on line 315, col 51
            if _v is not None: write(_filter(_v, rawExpr='$engine_error_sec')) # from line 315, col 51.
            write("""');</script>
""")
        else: # generated from line 316, col 9
            self.engineData(trans=trans)
        write('''        <p id="nodatamsg" style="display:none;">\xcd\xe5\xf2 \xe4\xe0\xed\xed\xfb\xf5 \xe4\xeb\xff \xee\xf2\xee\xe1\xf0\xe0\xe6\xe5\xed\xe8\xff</p>
        <!--End Interface Data-->
      </div>
    </div>
    <div id="page-empty"></div>
  </div>
  <div id="container-footer" class="container">
   <p>
''')
        if VFFSL(SL,"varExists",False)("system_name"): # generated from line 329, col 4
            cur_year = datetime.date.today().strftime("%Y")
            write('''    \xd2\xe5\xf5\xed\xee\xeb\xee\xe3\xe8\xe8 <a href="http://rbsrandl.com" target="_blank">\xce\xce\xce &laquo;\xd0\xe8\xf2\xe5\xe9\xeb-\xca\xee\xed\xf1\xe0\xeb\xf2\xe8\xed\xe3&raquo;</a>. ''')
            _v = VFFSL(SL,"system_name",True) # '$system_name' on line 332, col 103
            if _v is not None: write(_filter(_v, rawExpr='$system_name')) # from line 332, col 103.
            write(''' &copy; ''')
            _v = VFFSL(SL,"cur_year",True) # '$cur_year' on line 332, col 123
            if _v is not None: write(_filter(_v, rawExpr='$cur_year')) # from line 332, col 123.
            write(''' \xc2\xf1\xe5 \xef\xf0\xe0\xe2\xe0 \xf1\xee\xf5\xf0\xe0\xed\xe5\xed\xfb
''')
        write('''   </p>
  </div>
</body>
</html>
''')
        
        ########################################
        ## 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>Edit a Title</h1>

<form method="get" action="/titleedit">
''')
        _v = VFFSL(SL, "title.object_to_form",
                   True)  # '$title.object_to_form' on line 12, col 1
        if _v is not None:
            write(_filter(
                _v, rawExpr='$title.object_to_form'))  # from line 12, col 1.
        write('''
</form>
<h2>Author(s):</h2>
''')
        for a in VFFSL(SL, "title.author",
                       True):  # generated from line 15, col 1
            write('''<div><span>''')
            _v = VFFSL(SL, "a.author_name",
                       True)  # '$a.author_name' on line 16, col 12
            if _v is not None:
                write(_filter(
                    _v, rawExpr='$a.author_name'))  # from line 16, col 12.
            write('''</span><a class="listinglink" href="/authoredit?id=''')
            _v = VFFSL(SL, "a.id", True)  # '$a.id' on line 16, col 77
            if _v is not None:
                write(_filter(_v, rawExpr='$a.id'))  # from line 16, col 77.
            write('''">edit</a></div>
''')
        write('''

<h2>Copies</h2>
<form action="/addtocart">
''')
        for b in VFFSL(SL, "title.books",
                       True):  # generated from line 22, col 1
            write('''<div class="listinggroup">
<table>
<tr>
<td>
<a class="listinglink" href="/bookedit?id=''')
            _v = VFFSL(SL, "b.id", True)  # '$b.id' on line 27, col 43
            if _v is not None:
                write(_filter(_v, rawExpr='$b.id'))  # from line 27, col 43.
            write('''">edit</a>
</td>
<td>
<b>copy from ''')
            _v = VFFSL(SL, "b.distributor",
                       True)  # '$b.distributor' on line 30, col 14
            if _v is not None:
                write(_filter(
                    _v, rawExpr='$b.distributor'))  # from line 30, col 14.
            write(''' (''')
            _v = VFFSL(SL, "b.notes", True)  # '$b.notes' on line 30, col 30
            if _v is not None:
                write(_filter(_v, rawExpr='$b.notes'))  # from line 30, col 30.
            write(''') owned by ''')
            _v = VFFSL(SL, "b.owner", True)  # '$b.owner' on line 30, col 49
            if _v is not None:
                write(_filter(_v, rawExpr='$b.owner'))  # from line 30, col 49.
            write(''' <br />inventoried on ''')
            _v = VFFSL(SL, "b.inventoried_when",
                       True)  # '$b.inventoried_when' on line 30, col 79
            if _v is not None:
                write(_filter(
                    _v,
                    rawExpr='$b.inventoried_when'))  # from line 30, col 79.
            write(''' at $''')
            _v = VFFSL(SL, "b.listprice",
                       True)  # '$b.listprice' on line 30, col 104
            if _v is not None:
                write(_filter(
                    _v, rawExpr='$b.listprice'))  # from line 30, col 104.
            write('''<br /> with status ''')
            _v = VFFSL(SL, "b.status", True)  # '$b.status' on line 30, col 135
            if _v is not None:
                write(_filter(_v,
                              rawExpr='$b.status'))  # from line 30, col 135.
            write('''
''')
            if VFFSL(SL, "b.status",
                     True) == "SOLD":  # generated from line 31, col 1
                write('''(''')
                _v = VFFSL(SL, "b.sold_when",
                           True)  # '$b.sold_when' on line 32, col 2
                if _v is not None:
                    write(_filter(
                        _v, rawExpr='$b.sold_when'))  # from line 32, col 2.
                write(''')
''')
            write('''<br /></b>
</td>
<td>
add this copy to cart: <input type="checkbox" name="copy_id" value="''')
            _v = VFFSL(SL, "b.id", True)  # '$b.id' on line 37, col 69
            if _v is not None:
                write(_filter(_v, rawExpr='$b.id'))  # from line 37, col 69.
            write('''" />
[add <input style="width:80px;"type="text" length="3" name="select_x_like_''')
            _v = VFFSL(SL, "b.id", True)  # '$b.id' on line 38, col 75
            if _v is not None:
                write(_filter(_v, rawExpr='$b.id'))  # from line 38, col 75.
            write('''" value="" /> copies like this to cart]
</td>
</tr>
</table>
</div>
''')
        write(
            '''<input class="submit" type="submit" name="addtocart" value="Collect selected copies" /> <br /> <!--<br />
<input class="submit" type="submit" name="delete" onclick="return confirm(\'Are you sure?\');" value="Delete selected copies" />-->
</form>

<h2>Categories:</h2>
''')
        for c in VFFSL(SL, "title.categorys",
                       True):  # generated from line 49, col 1
            write('''<div class="listing"><span class="listing">''')
            _v = VFFSL(SL, "c.categoryName",
                       True)  # '$c.categoryName' on line 50, col 44
            if _v is not None:
                write(_filter(
                    _v, rawExpr='$c.categoryName'))  # from line 50, col 44.
            write('''</span><a class="listinglink" href="/categoryedit?id=''')
            _v = VFFSL(SL, "c.id", True)  # '$c.id' on line 50, col 112
            if _v is not None:
                write(_filter(_v, rawExpr='$c.id'))  # from line 50, col 112.
            write('''">edit</a></div>
''')
        write('''


''')

        ########################################
        ## END - generated method body

        return _dummyTrans and trans.response().getvalue() or ""
Exemple #19
0
    def waresRest(self, **KWS):



        ## CHEETAH: generated from #block waresRest at line 42, 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('''        <hr>
''')
        if VFFSL(SL,"varExists",False)('$datalist') and VFFSL(SL,"datalist",True): # generated from line 44, col 9
            write('''            <table>
                <thead>
                    <tr>
                        <th>''')
            if False:
                _('Поддон')
            _v = VFFSL(SL,"_",False)('Поддон') # "$_('\xcf\xee\xe4\xe4\xee\xed')" on line 48, col 29
            if _v is not None: write(_filter(_v, rawExpr="$_('\xcf\xee\xe4\xe4\xee\xed')")) # from line 48, col 29.
            write('''</th>
                        <th>''')
            if False:
                _('Кол-во')
            _v = VFFSL(SL,"_",False)('Кол-во') # "$_('\xca\xee\xeb-\xe2\xee')" on line 49, col 29
            if _v is not None: write(_filter(_v, rawExpr="$_('\xca\xee\xeb-\xe2\xee')")) # from line 49, col 29.
            write('''</th>
                    </tr>
                </thead>
''')
            q = 0
            write('''                <tbody>
''')
            for item in VFFSL(SL,"datalist",True): # generated from line 54, col 17
                q += VFFSL(SL,"item.AMOUNT",True)
                write('''                    <tr>
''')
                if VFFSL(SL,"item.STAT",True) == '1': # generated from line 57, col 25
                    if VFFSL(SL,"item.PNUM",True): # generated from line 58, col 26
                        write('''                            <td><a href="dfsTaskWaresPallet?tid=''')
                        _v = VFFSL(SL,"tid",True) # '$tid' on line 59, col 65
                        if _v is not None: write(_filter(_v, rawExpr='$tid')) # from line 59, col 65.
                        write('''&wid=''')
                        _v = VFFSL(SL,"wid",True) # '$wid' on line 59, col 74
                        if _v is not None: write(_filter(_v, rawExpr='$wid')) # from line 59, col 74.
                        write('''&pid=''')
                        _v = VFFSL(SL,"item.PID",True) # '$item.PID' on line 59, col 83
                        if _v is not None: write(_filter(_v, rawExpr='$item.PID')) # from line 59, col 83.
                        write('''" title="''')
                        _v = VFFSL(SL,"item.sname",True) # '$item.sname' on line 59, col 101
                        if _v is not None: write(_filter(_v, rawExpr='$item.sname')) # from line 59, col 101.
                        write('''">''')
                        _v = VFFSL(SL,"item.pnum",True) # '$item.pnum' on line 59, col 114
                        if _v is not None: write(_filter(_v, rawExpr='$item.pnum')) # from line 59, col 114.
                        write('''</a></td>
''')
                    else: # generated from line 60, col 26
                        write('''                            <td><a href="dfsTaskWaresPallet?tid=''')
                        _v = VFFSL(SL,"tid",True) # '$tid' on line 61, col 65
                        if _v is not None: write(_filter(_v, rawExpr='$tid')) # from line 61, col 65.
                        write('''&wid=''')
                        _v = VFFSL(SL,"wid",True) # '$wid' on line 61, col 74
                        if _v is not None: write(_filter(_v, rawExpr='$wid')) # from line 61, col 74.
                        write('''&pid=''')
                        _v = VFFSL(SL,"item.PID",True) # '$item.PID' on line 61, col 83
                        if _v is not None: write(_filter(_v, rawExpr='$item.PID')) # from line 61, col 83.
                        write('''">''')
                        _v = VFFSL(SL,"item.sname",True) # '$item.sname' on line 61, col 94
                        if _v is not None: write(_filter(_v, rawExpr='$item.sname')) # from line 61, col 94.
                        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 63, col 30
                    if _v is not None: write(_filter(_v, rawExpr='$viewQuantity($item.AMOUNT,$VWUFACTOR,$VWUCODE,$MWUFACTOR,$MWUCODE)')) # from line 63, col 30.
                    write(''' <b>(<u>''')
                    _v = VFFSL(SL,"Quantity",False)(VFFSL(SL,"item.amount",True)) # '$Quantity($item.amount)' on line 63, col 105
                    if _v is not None: write(_filter(_v, rawExpr='$Quantity($item.amount)')) # from line 63, col 105.
                    write('''</u>)</b></td>
''')
                else: # generated from line 64, col 25
                    write('''                         <td><a href="#" title="''')
                    _v = VFFSL(SL,"item.sname",True) # '$item.sname' on line 65, col 49
                    if _v is not None: write(_filter(_v, rawExpr='$item.sname')) # from line 65, col 49.
                    write('''">''')
                    _v = VFFSL(SL,"item.pnum",True) # '$item.pnum' on line 65, col 62
                    if _v is not None: write(_filter(_v, rawExpr='$item.pnum')) # from line 65, col 62.
                    write('''</a></td>
                         <td><font class="red">''')
                    _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 66, col 48
                    if _v is not None: write(_filter(_v, rawExpr='$viewQuantity($item.AMOUNT,$VWUFACTOR,$VWUCODE,$MWUFACTOR,$MWUCODE)')) # from line 66, col 48.
                    write(''' <b>(<u>''')
                    _v = VFFSL(SL,"Quantity",False)(VFFSL(SL,"item.amount",True)) # '$Quantity($item.amount)' on line 66, col 123
                    if _v is not None: write(_filter(_v, rawExpr='$Quantity($item.amount)')) # from line 66, col 123.
                    write('''</u>)</b></font></td>
''')
                write('''                    </tr>
''')
            write('''                </tbody>
                <tfoot>
                    <tr>
                        <th colspan=2>''')
            _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 73, col 39
            if _v is not None: write(_filter(_v, rawExpr='$viewQuantity($q,$VWUFACTOR,$VWUCODE,$MWUFACTOR,$MWUCODE)')) # from line 73, col 39.
            write(''' <b>(<u>''')
            _v = VFFSL(SL,"Quantity",False)(VFFSL(SL,"q",True)) # '$Quantity($q)' on line 73, col 104
            if _v is not None: write(_filter(_v, rawExpr='$Quantity($q)')) # from line 73, col 104.
            write('''</u>)</b></th>
                    </tr>
                </tfoot>
            </table>
''')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
Exemple #20
0
    def mainData(self, **KWS):

        ## CHEETAH: generated from #def mainData 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('''   
   <b> \xb9 ''')
        _v = VFFSL(SL, "docnum", True)  # '$docnum' on line 8, col 10
        if _v is not None:
            write(_filter(_v, rawExpr='$docnum'))  # from line 8, col 10.
        write(''' \xee\xf2 ''')
        _orig_filter_51628498 = _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 40
        if _v is not None:
            write(_filter(_v, rawExpr='$docdate'))  # from line 8, col 40.
        write(''' ''')
        _filter = _orig_filter_51628498
        write(''' </b>
   <br> \xb9 ''')
        _v = VFFSL(SL, "TID", True)  # '$TID' on line 9, col 11
        if _v is not None:
            write(_filter(_v, rawExpr='$TID'))  # from line 9, col 11.
        write('''
   <br>

    ''')
        if False:
            _('Отсканируйте ШК местоположения')
        _v = VFFSL(SL, "_", False)(
            'Отсканируйте ШК местоположения'
        )  # "$_('\xce\xf2\xf1\xea\xe0\xed\xe8\xf0\xf3\xe9\xf2\xe5 \xd8\xca \xec\xe5\xf1\xf2\xee\xef\xee\xeb\xee\xe6\xe5\xed\xe8\xff')" on line 12, col 5
        if _v is not None:
            write(
                _filter(
                    _v,
                    rawExpr=
                    "$_('\xce\xf2\xf1\xea\xe0\xed\xe8\xf0\xf3\xe9\xf2\xe5 \xd8\xca \xec\xe5\xf1\xf2\xee\xef\xee\xeb\xee\xe6\xe5\xed\xe8\xff')"
                ))  # from line 12, col 5.
        write('''
    <form action=taskEndSite>
        <input type=hidden name=tid value=''')
        _v = VFFSL(SL, "TID", True)  # '$TID' on line 14, col 43
        if _v is not None:
            write(_filter(_v, rawExpr='$TID'))  # from line 14, col 43.
        write(""">
        <input type=text name=barcode id='barcode:scan'>
    </form>

""")
        if VFFSL(SL, "varExists", False)('$datalist') and VFFSL(
                SL, "datalist", True) and VFFSL(SL, "len", False)(VFFSL(
                    SL, "datalist", True)) > 0 and VFN(
                        VFFSL(SL, "datalist", True)[0], "SITEID",
                        True):  # generated from line 18, col 5
            write('''        <hr>
''')
            for item in VFFSL(SL, "datalist",
                              True):  # generated from line 20, col 9
                write('''            <b>''')
                _v = VFFSL(SL, "item.sitename",
                           True)  # '$item.sitename' on line 21, col 16
                if _v is not None:
                    write(_filter(
                        _v, rawExpr='$item.sitename'))  # from line 21, col 16.
                write('''</b> <br>
''')
                if VFFSL(SL, "item.INFO",
                         True):  # generated from line 22, col 13
                    write('''                ''')
                    _v = VFFSL(SL, "item.INFO",
                               True)  # '$item.INFO' on line 23, col 17
                    if _v is not None:
                        write(_filter(
                            _v, rawExpr='$item.INFO'))  # from line 23, col 17.
                    write(''' <br>
''')
            write('''
''')
            if VFFSL(SL, "varExists", False)('$warpal') and VFFSL(
                    SL, "warpal", True) and VFFSL(SL, "len", False)(VFFSL(
                        SL, "warpal",
                        True)) > 0:  # generated from line 27, col 9
                write('''            <hr>
''')
                for item in VFFSL(SL, "warpal",
                                  True):  # generated from line 29, col 13
                    write('''                ''')
                    _v = VFFSL(SL, "item.WNAME",
                               True)  # '$item.WNAME' on line 30, col 17
                    if _v is not None:
                        write(_filter(
                            _v,
                            rawExpr='$item.WNAME'))  # from line 30, col 17.
                    write(''' = <b>''')
                    _v = VFFSL(SL, "Quantity", False)(VFFSL(
                        SL, "item.AMOUNT",
                        True))  # '$Quantity($item.AMOUNT)' on line 30, col 34
                    if _v is not None:
                        write(_filter(_v, rawExpr='$Quantity($item.AMOUNT)')
                              )  # from line 30, col 34.
                    write('''</b> <br>
''')

        ########################################
        ## END - generated method body

        return _dummyTrans and trans.response().getvalue() or ""
Exemple #21
0
    def rcFilter(self, **KWS):

        ## CHEETAH: generated from #def rcFilter 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(''' \t<form id="frm" class="buttons">
''')
        if VFFSL(SL, "varExists", False)('$datalist') and VFFSL(
                SL, "datalist", True):  # generated from line 8, col 7
            write('''        \xcf\xee\xe4\xf2\xe8\xef: <select name="dst">
            <option value=null>''')
            if False:
                _('Без фильтра')
            _v = VFFSL(SL, "_", False)(
                'Без фильтра'
            )  # "$_('\xc1\xe5\xe7 \xf4\xe8\xeb\xfc\xf2\xf0\xe0')" on line 10, col 32
            if _v is not None:
                write(
                    _filter(
                        _v,
                        rawExpr="$_('\xc1\xe5\xe7 \xf4\xe8\xeb\xfc\xf2\xf0\xe0')"
                    ))  # from line 10, col 32.
            write('''</option>
''')
            for item in VFFSL(SL, "datalist",
                              True):  # generated from line 11, col 13
                write('''                <option value=''')
                _v = VFFSL(SL, "item.DSTCODE",
                           True)  # '$item.DSTCODE' on line 12, col 31
                if _v is not None:
                    write(_filter(
                        _v, rawExpr='$item.DSTCODE'))  # from line 12, col 31.
                write('''>''')
                _v = VFFSL(SL, "item.DSTNAME",
                           True)  # '$item.DSTNAME' on line 12, col 45
                if _v is not None:
                    write(_filter(
                        _v, rawExpr='$item.DSTNAME'))  # from line 12, col 45.
                write('''</option>
''')
            write('''        </select>
        &nbsp;&nbsp;&nbsp;
''')
        write('''        \xcf\xe5\xf0\xe8\xee\xe4 \xef\xee\xe8\xf1\xea\xe0:
        <input id=docBeg name=docbeg type=text class=date size=7 />&nbsp;
        <input id=docEnd name=docend type=text class=date size=7 />
 \t    &nbsp;&nbsp;&nbsp;
        \xcf\xe5\xf0\xe8\xee\xe4 \xe0\xea\xf2\xf3\xe0\xeb\xfc\xed\xee\xe9 \xee\xf2\xe3\xf0\xf3\xe7\xea\xe8:
        <input id=dBeg name=dbeg type=text class=date size=7 />&nbsp;
        <input id=dEnd name=dend type=text class=date size=7 />
        &nbsp;&nbsp;&nbsp;
        <button type=submit id=btnDo><img src="''')
        _v = VFFSL(SL, "eng_img", True)  # '$eng_img' on line 25, col 48
        if _v is not None:
            write(_filter(_v, rawExpr='$eng_img'))  # from line 25, col 48.
        write('''/arrows/arrow_right.png"></button>
        <button type=button id=btnPrint><img src="''')
        _v = VFFSL(SL, "eng_img", True)  # '$eng_img' on line 26, col 51
        if _v is not None:
            write(_filter(_v, rawExpr='$eng_img'))  # from line 26, col 51.
        write('''/actions/printer.png"></button>
        &nbsp;&nbsp;&nbsp;
        <button type=button id=btnLocDoc title="\xcf\xee\xe8\xf1\xea \xe2\xed\xf3\xf2\xf0\xe5\xed\xed\xe8\xf5 \xe7\xe0\xea\xe0\xe7\xee\xe2"><img src='''
              )
        _v = VFFSL(SL, "eng_img", True)  # '$eng_img' on line 28, col 84
        if _v is not None:
            write(_filter(_v, rawExpr='$eng_img'))  # from line 28, col 84.
        write('''/actions/application_view_detail.png border=0></button>
\t</form>
''')

        ########################################
        ## END - generated method body

        return _dummyTrans and trans.response().getvalue() or ""
Exemple #22
0
    def engineData(self, **KWS):

        ## CHEETAH: generated from #def engineData at line 10, 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, "eng_css", True)  # '$eng_css' on line 13, col 17
        if _v is not None:
            write(_filter(_v, rawExpr='$eng_css'))  # from line 13, col 17.
        write(
            '''/contextMenu.css" rel="stylesheet" type="text/css" media="screen"/>
    <link href="''')
        _v = VFFSL(SL, "sps_css.KURSSKLAD",
                   True)  # '$sps_css.KURSSKLAD' on line 14, col 17
        if _v is not None:
            write(_filter(
                _v, rawExpr='$sps_css.KURSSKLAD'))  # from line 14, 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 15, col 17
        if _v is not None:
            write(_filter(
                _v, rawExpr='$sps_css.KURSSKLAD'))  # from line 15, col 17.
        write(
            '''/contextMenuStatus.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(
            '''/tabs/jquery.tabs.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-ie.css" rel="stylesheet" type="text/css" media="screen"/>
    <link href="''')
        _v = VFFSL(SL, "sps_css.KURSSKLAD",
                   True)  # '$sps_css.KURSSKLAD' on line 18, col 17
        if _v is not None:
            write(_filter(
                _v, rawExpr='$sps_css.KURSSKLAD'))  # from line 18, col 17.
        write(
            '''/docClientOrdStatIncome.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 22, col 41
        if _v is not None:
            write(_filter(_v, rawExpr='$eng_js'))  # from line 22, 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('''/ui.datepicker.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('''/i18n/ui.datepicker-ru.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.maskedinput-1.2.1.pack.js"></script>

    <script type="text/javascript" src="''')
        _v = VFFSL(SL, "eng_js", True)  # '$eng_js' on line 28, col 41
        if _v is not None:
            write(_filter(_v, rawExpr='$eng_js'))  # from line 28, col 41.
        write('''/jquery.contextMenu.js"></script>
    <script type="text/javascript" src="''')
        _v = VFFSL(SL, "eng_js", True)  # '$eng_js' on line 29, col 41
        if _v is not None:
            write(_filter(_v, rawExpr='$eng_js'))  # from line 29, col 41.
        write('''/jquery.rightClick.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.rowFocus.min.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.tablesorter.min.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('''/kTblScroll.min.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.messages.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.formats.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('''/k.icons.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.form.js"></script>
    <script type="text/javascript" src="''')
        _v = VFFSL(SL, "sps_js.KURSSKLAD",
                   True)  # '$sps_js.KURSSKLAD' on line 38, col 41
        if _v is not None:
            write(_filter(
                _v, rawExpr='$sps_js.KURSSKLAD'))  # from line 38, 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 39, col 41
        if _v is not None:
            write(_filter(
                _v, rawExpr='$sps_js.KURSSKLAD'))  # from line 39, col 41.
        write('''/wh.table.js"></script>
    <script type="text/javascript" src="''')
        _v = VFFSL(SL, "sps_js.KURSSKLAD",
                   True)  # '$sps_js.KURSSKLAD' on line 40, col 41
        if _v is not None:
            write(_filter(
                _v, rawExpr='$sps_js.KURSSKLAD'))  # from line 40, col 41.
        write('''/PALLET/transitList.js"></script>
    <script type="text/javascript" src="''')
        _v = VFFSL(SL, "sps_js.KURSSKLAD",
                   True)  # '$sps_js.KURSSKLAD' on line 41, col 41
        if _v is not None:
            write(_filter(
                _v, rawExpr='$sps_js.KURSSKLAD'))  # from line 41, col 41.
        write('''/PALLET/transit.js"></script>
    <script type="text/javascript" src="''')
        _v = VFFSL(SL, "sps_js.KURSSKLAD",
                   True)  # '$sps_js.KURSSKLAD' on line 42, col 41
        if _v is not None:
            write(_filter(
                _v, rawExpr='$sps_js.KURSSKLAD'))  # from line 42, col 41.
        write('''/wh.doclocate.js"></script>
    <script type="text/javascript" src="''')
        _v = VFFSL(SL, "sps_js.KURSSKLAD",
                   True)  # '$sps_js.KURSSKLAD' on line 43, col 41
        if _v is not None:
            write(_filter(
                _v, rawExpr='$sps_js.KURSSKLAD'))  # from line 43, col 41.
        write('''/DOC/clientorder.js"></script>
    <script type="text/javascript" src="''')
        _v = VFFSL(SL, "sps_js.KURSSKLAD",
                   True)  # '$sps_js.KURSSKLAD' on line 44, col 41
        if _v is not None:
            write(_filter(
                _v, rawExpr='$sps_js.KURSSKLAD'))  # from line 44, col 41.
        write('''/wh.wares.js"></script>
    <script type="text/javascript" src="''')
        _v = VFFSL(SL, "sps_js.KURSSKLAD",
                   True)  # '$sps_js.KURSSKLAD' on line 45, col 41
        if _v is not None:
            write(_filter(
                _v, rawExpr='$sps_js.KURSSKLAD'))  # from line 45, col 41.
        write('''/k.progressbar.js"></script>
    <script type="text/javascript" src="''')
        _v = VFFSL(SL, "sp_js", True)  # '$sp_js' on line 46, col 41
        if _v is not None:
            write(_filter(_v, rawExpr='$sp_js'))  # from line 46, col 41.
        write('''/palletTransit.js"></script>

''')
        self.adminData(trans=trans)

        ########################################
        ## END - generated method body

        return _dummyTrans and trans.response().getvalue() or ""
Exemple #23
0
    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('''\t<form action="main">
        ''')
        if False:
            _('ШК')
        _v = VFFSL(SL, "_", False)('ШК')  # "$_('\xd8\xca')" on line 6, col 9
        if _v is not None:
            write(_filter(_v, rawExpr="$_('\xd8\xca')"))  # from line 6, col 9.
        write(
            ''': <input type="text" id=":scan:text" name="barcode" title="''')
        if False:
            _('Документ')
        _v = VFFSL(SL, "_", False)(
            'Документ'
        )  # "$_('\xc4\xee\xea\xf3\xec\xe5\xed\xf2')" on line 6, col 76
        if _v is not None:
            write(_filter(_v, rawExpr="$_('\xc4\xee\xea\xf3\xec\xe5\xed\xf2')")
                  )  # from line 6, col 76.
        write(''', ''')
        if False:
            _('Принтер')
        _v = VFFSL(SL, "_", False)(
            'Принтер'
        )  # "$_('\xcf\xf0\xe8\xed\xf2\xe5\xf0')" on line 6, col 92
        if _v is not None:
            write(_filter(_v, rawExpr="$_('\xcf\xf0\xe8\xed\xf2\xe5\xf0')")
                  )  # from line 6, col 92.
        write('''">
\t</form>  
    <br>
''')
        if VFFSL(SL, "varExists",
                 False)('$datalist'):  # generated from line 9, col 3
            for item in VFFSL(SL, "datalist",
                              True):  # generated from line 10, col 5
                if VFFSL(SL, "item.TSTAT",
                         True) == '0':  # generated from line 11, col 9
                    write('''            <a href="task?tid=''')
                    _v = VFFSL(SL, "item.taskid",
                               True)  # '$item.taskid' on line 12, col 31
                    if _v is not None:
                        write(_filter(
                            _v,
                            rawExpr='$item.taskid'))  # from line 12, col 31.
                    write('''" title="''')
                    _orig_filter_78548874 = _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, "item.DOCDATE",
                               True)  # '$item.DOCDATE' on line 12, col 70
                    if _v is not None:
                        write(_filter(
                            _v,
                            rawExpr='$item.DOCDATE'))  # from line 12, col 70.
                    _filter = _orig_filter_78548874
                    write(''' \xb9''')
                    _v = VFFSL(SL, "item.NUMBER",
                               True)  # '$item.NUMBER' on line 12, col 97
                    if _v is not None:
                        write(_filter(
                            _v,
                            rawExpr='$item.NUMBER'))  # from line 12, col 97.
                    write('''">''')
                    _v = VFFSL(SL, "item.objname",
                               True)  # '$item.objname' on line 12, col 111
                    if _v is not None:
                        write(_filter(
                            _v,
                            rawExpr='$item.objname'))  # from line 12, col 111.
                    write('''</a><br><br>
''')
                elif VFFSL(SL, "item.TSTAT",
                           True) == '1':  # generated from line 13, col 9
                    write('''            <a class=green href="task?tid=''')
                    _v = VFFSL(SL, "item.taskid",
                               True)  # '$item.taskid' on line 14, col 43
                    if _v is not None:
                        write(_filter(
                            _v,
                            rawExpr='$item.taskid'))  # from line 14, col 43.
                    write('''" title="''')
                    _orig_filter_59976890 = _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, "item.DOCDATE",
                               True)  # '$item.DOCDATE' on line 14, col 82
                    if _v is not None:
                        write(_filter(
                            _v,
                            rawExpr='$item.DOCDATE'))  # from line 14, col 82.
                    _filter = _orig_filter_59976890
                    write(''' \xb9''')
                    _v = VFFSL(SL, "item.NUMBER",
                               True)  # '$item.NUMBER' on line 14, col 109
                    if _v is not None:
                        write(_filter(
                            _v,
                            rawExpr='$item.NUMBER'))  # from line 14, col 109.
                    write('''">''')
                    _v = VFFSL(SL, "item.objname",
                               True)  # '$item.objname' on line 14, col 123
                    if _v is not None:
                        write(_filter(
                            _v,
                            rawExpr='$item.objname'))  # from line 14, col 123.
                    write('''</a><br><br>
''')
                else:  # generated from line 15, col 9
                    write('''            <a class=red href="task?tid=''')
                    _v = VFFSL(SL, "item.taskid",
                               True)  # '$item.taskid' on line 16, col 41
                    if _v is not None:
                        write(_filter(
                            _v,
                            rawExpr='$item.taskid'))  # from line 16, col 41.
                    write('''" title="''')
                    _orig_filter_24974925 = _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, "item.DOCDATE",
                               True)  # '$item.DOCDATE' on line 16, col 80
                    if _v is not None:
                        write(_filter(
                            _v,
                            rawExpr='$item.DOCDATE'))  # from line 16, col 80.
                    _filter = _orig_filter_24974925
                    write(''' \xb9''')
                    _v = VFFSL(SL, "item.NUMBER",
                               True)  # '$item.NUMBER' on line 16, col 107
                    if _v is not None:
                        write(_filter(
                            _v,
                            rawExpr='$item.NUMBER'))  # from line 16, col 107.
                    write('''">''')
                    _v = VFFSL(SL, "item.objname",
                               True)  # '$item.objname' on line 16, col 121
                    if _v is not None:
                        write(_filter(
                            _v,
                            rawExpr='$item.objname'))  # from line 16, col 121.
                    write('''</a><br><br>
''')
                write('''        
''')
        write('''  <hr>
''')
        if VFFSL(SL, "varExists",
                 False)('$zd'):  # generated from line 22, col 3
            for item in VFFSL(SL, "zd", True):  # generated from line 23, col 5
                write('''        <a href="chgZone?id=''')
                _v = VFFSL(SL, "item.ZONEID",
                           True)  # '$item.ZONEID' on line 24, col 29
                if _v is not None:
                    write(_filter(
                        _v, rawExpr='$item.ZONEID'))  # from line 24, col 29.
                write('''">''')
                _v = VFFSL(SL, "item.ZONENAME",
                           True)  # '$item.ZONENAME' on line 24, col 43
                if _v is not None:
                    write(_filter(
                        _v, rawExpr='$item.ZONENAME'))  # from line 24, col 43.
                write('''</a> - ''')
                _v = VFFSL(SL, "item.CNTDOCS",
                           True)  # '$item.CNTDOCS' on line 24, col 64
                if _v is not None:
                    write(_filter(
                        _v, rawExpr='$item.CNTDOCS'))  # from line 24, col 64.
                write('''
''')
                if VFFSL(SL, "item.CNTDOCS2", True) and VFFSL(
                        SL, "item.CNTDOCS2",
                        True) > 0:  # generated from line 25, col 9
                    write('''            <font class="green">(''')
                    _v = VFFSL(SL, "item.CNTDOCS2",
                               True)  # '$item.CNTDOCS2' on line 26, col 34
                    if _v is not None:
                        write(_filter(
                            _v,
                            rawExpr='$item.CNTDOCS2'))  # from line 26, col 34.
                    write(''')</font>
''')
                write('''        <br>
''')

        ########################################
        ## END - generated method body

        return _dummyTrans and trans.response().getvalue() or ""
Exemple #24
0
    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('''
    <u><b>''')
        if False:
            _('ֲ�בונטעו ּֿ')
        _v = VFFSL(SL,"_",False)('ֲ�בונטעו ּֿ') # "$_('\xc2\xfb\xe1\xe5\xf0\xe8\xf2\xe5 \xcc\xcf')" on line 6, col 11
        if _v is not None: write(_filter(_v, rawExpr="$_('\xc2\xfb\xe1\xe5\xf0\xe8\xf2\xe5 \xcc\xcf')")) # from line 6, col 11.
        write(''':</b></u>
    <hr>    
''')
        if VFFSL(SL,"varExists",False)('$datalist') and VFFSL(SL,"datalist",True): # generated from line 8, col 5
            for item in VFFSL(SL,"datalist",True): # generated from line 9, col 9
                if VFFSL(SL,"item.SPCODE",True) == 'STACK': # generated from line 10, col 13
                    write("""                <a href='taskStack?tid=""")
                    _v = VFFSL(SL,"TID",True) # '$TID' on line 11, col 40
                    if _v is not None: write(_filter(_v, rawExpr='$TID')) # from line 11, col 40.
                    write('''&sid=''')
                    _v = VFFSL(SL,"item.SID",True) # '$item.SID' on line 11, col 49
                    if _v is not None: write(_filter(_v, rawExpr='$item.SID')) # from line 11, col 49.
                    write("""'>""")
                    _v = VFFSL(SL,"item.SNAME",True) # '$item.SNAME' on line 11, col 60
                    if _v is not None: write(_filter(_v, rawExpr='$item.SNAME')) # from line 11, col 60.
                    write('''</a>
''')
                elif VFFSL(SL,"item.SPCODE",True) == 'S': # generated from line 12, col 13
                    write("""                <a href='taskSlot?tid=""")
                    _v = VFFSL(SL,"TID",True) # '$TID' on line 13, col 39
                    if _v is not None: write(_filter(_v, rawExpr='$TID')) # from line 13, col 39.
                    write('''&sid=''')
                    _v = VFFSL(SL,"item.SID",True) # '$item.SID' on line 13, col 48
                    if _v is not None: write(_filter(_v, rawExpr='$item.SID')) # from line 13, col 48.
                    write("""'>""")
                    _v = VFFSL(SL,"item.SNAME",True) # '$item.SNAME' on line 13, col 59
                    if _v is not None: write(_filter(_v, rawExpr='$item.SNAME')) # from line 13, col 59.
                    write('''</a>
''')
                elif VFFSL(SL,"item.SPCODE",True) == 'B': # generated from line 14, col 13
                    write("""                <a href='taskStack?tid=""")
                    _v = VFFSL(SL,"TID",True) # '$TID' on line 15, col 40
                    if _v is not None: write(_filter(_v, rawExpr='$TID')) # from line 15, col 40.
                    write('''&sid=''')
                    _v = VFFSL(SL,"item.SID",True) # '$item.SID' on line 15, col 49
                    if _v is not None: write(_filter(_v, rawExpr='$item.SID')) # from line 15, col 49.
                    write("""'>""")
                    _v = VFFSL(SL,"item.SNAME",True) # '$item.SNAME' on line 15, col 60
                    if _v is not None: write(_filter(_v, rawExpr='$item.SNAME')) # from line 15, col 60.
                    write('''</a>
''')
                else: # generated from line 16, col 13
                    write('''                ''')
                    _v = VFFSL(SL,"item.SNAME",True) # '$item.SNAME' on line 17, col 17
                    if _v is not None: write(_filter(_v, rawExpr='$item.SNAME')) # from line 17, col 17.
                    write('''<
''')
                write('''            <br><br>
''')
        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
        
        write('''<form id="dlgattredit_form" class="full_height">
  <table class="vertical_top">
    <tr><th>''')
        if False:
            _('Имя')
        _v = VFFSL(SL,"_",False)('Имя') # "$_('\xc8\xec\xff')" on line 4, col 13
        if _v is not None: write(_filter(_v, rawExpr="$_('\xc8\xec\xff')")) # from line 4, col 13.
        write('''</th>
        <td>
            <input id="dlgattredit_id_edt" name="dlgattredit_id_edt" type="text"  size="45" value=""/>
        </td>
    </tr>
    <tr>
        <th>''')
        if False:
            _('Значение')
        _v = VFFSL(SL,"_",False)('Значение') # "$_('\xc7\xed\xe0\xf7\xe5\xed\xe8\xe5')" on line 10, col 13
        if _v is not None: write(_filter(_v, rawExpr="$_('\xc7\xed\xe0\xf7\xe5\xed\xe8\xe5')")) # from line 10, col 13.
        write('''</th>
        <td>
            <input id="dlgattredit_value_edt" name="dlgattredit_value_edt" type="text"  size="45" value=""/>
        </td>
    </tr>
    <tr>
        <th>''')
        if False:
            _('Слияние')
        _v = VFFSL(SL,"_",False)('Слияние') # "$_('\xd1\xeb\xe8\xff\xed\xe8\xe5')" on line 16, col 13
        if _v is not None: write(_filter(_v, rawExpr="$_('\xd1\xeb\xe8\xff\xed\xe8\xe5')")) # from line 16, col 13.
        write('''</th>
        <td>
            <input id="dlgattredit_merge_symbol_edt" name="dlgattredit_merge_symbol_edt" type="text"  size="2" maxlength="1" value=""/>
        </td>
    </tr>
  </table>
</form>

<div class="buttons footer_btns">
    <span class="right_aligned_btns">
        <button type="button" id="dlgattredit_save_btn"><img src="/ENGINE/images/actions/accept.png"/>&nbsp;''')
        if False:
            _('OK')
        _v = VFFSL(SL,"_",False)('OK') # "$_('OK')" on line 26, col 109
        if _v is not None: write(_filter(_v, rawExpr="$_('OK')")) # from line 26, col 109.
        write('''</button>&nbsp;
        <button type="button" id="dlgattredit_cancel_btn"><img src="/ENGINE/images/actions/cancel.png"/>&nbsp;''')
        if False:
            _('Отмена')
        _v = VFFSL(SL,"_",False)('Отмена') # "$_('\xce\xf2\xec\xe5\xed\xe0')" on line 27, col 111
        if _v is not None: write(_filter(_v, rawExpr="$_('\xce\xf2\xec\xe5\xed\xe0')")) # from line 27, col 111.
        write('''</button>
    </span>
</div>
''')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
Exemple #26
0
    def adminData(self, **KWS):

        ## CHEETAH: generated from #def adminData 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('''    
''')
        # Scripts
        write('''    <script type="text/javascript" src="''')
        _v = VFFSL(SL, "sp_js", True)  # '$sp_js' on line 6, col 41
        if _v is not None:
            write(_filter(_v, rawExpr='$sp_js'))  # from line 6, col 41.
        write('''/admin_bases.js"></script>    
    <script type="text/javascript" src="''')
        _v = VFFSL(SL, "eng_js", True)  # '$eng_js' on line 7, col 41
        if _v is not None:
            write(_filter(_v, rawExpr='$eng_js'))  # from line 7, col 41.
        write('''/jquery.contextMenu.min.js" ></script>
    <script type="text/javascript" src="''')
        _v = VFFSL(SL, "eng_js", True)  # '$eng_js' on line 8, col 41
        if _v is not None:
            write(_filter(_v, rawExpr='$eng_js'))  # from line 8, 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 9, col 41
        if _v is not None:
            write(_filter(_v, rawExpr='$eng_js'))  # from line 9, col 41.
        write('''/k.UpDown.js"></script>
    
''')
        # CSS
        write('''    <link rel="stylesheet" href="''')
        _v = VFFSL(SL, "sp_css", True)  # '$sp_css' on line 12, col 34
        if _v is not None:
            write(_filter(_v, rawExpr='$sp_css'))  # from line 12, col 34.
        write('''/admin_bases.css" type="text/css" media="screen"/>    
    
    
    <span style="font: bold 14pt sans-serif; color: gray">''')
        if False:
            _('”правление базами данных')
        _v = VFFSL(SL, "_", False)(
            '”правление базами данных'
        )  # "$_('\xd3\xef\xf0\xe0\xe2\xeb\xe5\xed\xe8\xe5 \xe1\xe0\xe7\xe0\xec\xe8 \xe4\xe0\xed\xed\xfb\xf5')" on line 15, col 59
        if _v is not None:
            write(
                _filter(
                    _v,
                    rawExpr=
                    "$_('\xd3\xef\xf0\xe0\xe2\xeb\xe5\xed\xe8\xe5 \xe1\xe0\xe7\xe0\xec\xe8 \xe4\xe0\xed\xed\xfb\xf5')"
                ))  # from line 15, col 59.
        write("""</span>
    <table class='flora' cellspacing='5' id='tblBases' style='width: 90%;'>
      <thead>
          <tr>
            <th>ID_BASE</th><th>DB_PATH</th><th>DB_USER</th><th>DB_IP</th><th>DB_PASS</th><th>DB_ROLE</th><th>DB_CHARSET</th><th>USERS_TABLE_NAME</th><th>USERS_TABLE_ID_FIELD</th>
            <th>USERS_TABLE_FIO_FIELD</th><th>COMMENTS</th><th>CODE</th>
          </tr>
      </thead>
      <tbody>
""")
        for item in VFFSL(SL, "datalist",
                          True):  # generated from line 24, col 9
            write("""            <tr idbase='""")
            _v = VFFSL(SL, "item.ID_BASE",
                       True)  # '$item.ID_BASE' on line 25, col 25
            if _v is not None:
                write(_filter(
                    _v, rawExpr='$item.ID_BASE'))  # from line 25, col 25.
            write("""'><td class='id_base'>""")
            _v = VFFSL(SL, "item.ID_BASE",
                       True)  # '$item.ID_BASE' on line 25, col 60
            if _v is not None:
                write(_filter(
                    _v, rawExpr='$item.ID_BASE'))  # from line 25, col 60.
            write("""</td><td class='db_path'>""")
            _v = VFFSL(SL, "item.DB_PATH",
                       True)  # '$item.DB_PATH' on line 25, col 98
            if _v is not None:
                write(_filter(
                    _v, rawExpr='$item.DB_PATH'))  # from line 25, col 98.
            write("""</td><td class='db_user'>""")
            _v = VFFSL(SL, "item.DB_USER",
                       True)  # '$item.DB_USER' on line 25, col 136
            if _v is not None:
                write(_filter(
                    _v, rawExpr='$item.DB_USER'))  # from line 25, col 136.
            write("""</td>
                <td class='db_ip'>""")
            _v = VFFSL(SL, "item.DB_IP",
                       True)  # '$item.DB_IP' on line 26, col 35
            if _v is not None:
                write(_filter(_v,
                              rawExpr='$item.DB_IP'))  # from line 26, col 35.
            write("""</td><td class='db_pass'>""")
            _v = VFFSL(SL, "item.DB_PASS",
                       True)  # '$item.DB_PASS' on line 26, col 71
            if _v is not None:
                write(_filter(
                    _v, rawExpr='$item.DB_PASS'))  # from line 26, col 71.
            write("""</td><td class='db_role'>""")
            _v = VFFSL(SL, "item.DB_ROLE",
                       True)  # '$item.DB_ROLE' on line 26, col 109
            if _v is not None:
                write(_filter(
                    _v, rawExpr='$item.DB_ROLE'))  # from line 26, col 109.
            write("""</td><td class='db_charset'>""")
            _v = VFFSL(SL, "item.DB_CHARSET",
                       True)  # '$item.DB_CHARSET' on line 26, col 150
            if _v is not None:
                write(_filter(
                    _v, rawExpr='$item.DB_CHARSET'))  # from line 26, col 150.
            write("""</td>
                <td class='users_table_name'>""")
            _v = VFFSL(SL, "item.USERS_TABLE_NAME",
                       True)  # '$item.USERS_TABLE_NAME' on line 27, col 46
            if _v is not None:
                write(_filter(
                    _v,
                    rawExpr='$item.USERS_TABLE_NAME'))  # from line 27, col 46.
            write("""</td><td class='users_table_id_field'>""")
            _v = VFFSL(
                SL, "item.USERS_TABLE_ID_FIELD",
                True)  # '$item.USERS_TABLE_ID_FIELD' on line 27, col 106
            if _v is not None:
                write(_filter(_v, rawExpr='$item.USERS_TABLE_ID_FIELD')
                      )  # from line 27, col 106.
            write("""</td>
                <td class='users_table_fio_field'>""")
            _v = VFFSL(
                SL, "item.USERS_TABLE_FIO_FIELD",
                True)  # '$item.USERS_TABLE_FIO_FIELD' on line 28, col 51
            if _v is not None:
                write(_filter(_v, rawExpr='$item.USERS_TABLE_FIO_FIELD')
                      )  # from line 28, col 51.
            write("""</td><td class='comments'>""")
            _v = VFFSL(SL, "item.COMMENTS",
                       True)  # '$item.COMMENTS' on line 28, col 104
            if _v is not None:
                write(_filter(
                    _v, rawExpr='$item.COMMENTS'))  # from line 28, col 104.
            write("""</td><td class='code'>""")
            _v = VFFSL(SL, "item.CODE",
                       True)  # '$item.CODE' on line 28, col 140
            if _v is not None:
                write(_filter(_v,
                              rawExpr='$item.CODE'))  # from line 28, col 140.
            write('''</td>
            </tr>
''')
        write("""      </tbody>
    </table>
    
    <ul id='tblContextMenu' class='contextMenu'>
        <li class='add'><a href='#add_base'>\xc4\xee\xe1\xe0\xe2\xe8\xf2\xfc \xed\xee\xe2\xf3\xfe \xe1\xe0\xe7\xf3</a></li>
        <li class='edit'><a href='#edit_base'>\xd0\xe5\xe4\xe0\xea\xf2\xe8\xf0\xee\xe2\xe0\xf2\xfc</a></li>
        <li class='delete'><a href='#delete_base'>\xd3\xe4\xe0\xeb\xe8\xf2\xfc</a></li>
    </ul>
    
    <div id='admin-base-addedit' class='flora' style='display: none;'>
        <fieldset>
            <legend>\xcf\xe0\xf0\xe0\xec\xe5\xf2\xf0\xfb \xe1\xe0\xe7\xfb \xe4\xe0\xed\xfb\xf5:</legend>
            <form id='add-base-form'>
                <table id='tblBaseParametrs' class='flora' style='width: 100%;'>
                    <tbody>
                        <tr><th class='titles'>DB_PATH:</th><td class='values' colspan='3'><input type='text' notnull name='db_path' id='add-base-db_path'/></td>                        
                        </tr>
                        <tr><th>CODE:</th><td><input type='text' name='code' id='add-base-code' /></td>
                            <th class='titles'>DB_USER:</th><td class='values'><input type='text' notnull name='db_user' id='add-base-db_user' /></td>
                        </tr>
                        <tr><th>DB_IP:</th><td><input type='text' notnull name='db_ip' id='add-base-db_ip' /></td>
                            <th>DB_PASS:</th><td><input type='text' notnull name='db_pass' id='add-base-db_pass' /></td>
                        </tr>
                        <tr><th>DB_ROLE:</th><td><input type='text' name='db_role' id='add-base-db_role' /></td>
                            <th>DB_CHARSET:</th>
                            <td>
                                <select name='db_charset' id='add-base-db_charset'>
                                    <optgroup label='\xc2\xfb\xe1\xe5\xf0\xe8\xf2\xe5 \xea\xee\xe4\xe8\xf0\xee\xe2\xea\xf3'>
                                        <option value='ASCII'>ASCII</option>
                                        <option value='ISO8859'>ISO8859</option>
                                        <option value='NONE'>NONE</option>
                                        <option value='UNICODE_FSS'>UNICODE_FSS</option>
                                        <option value='UTF8'>UTF8</option>
                                        <option value='WIN1251'>WIN1251</option>
                                    </optgroup>
                                </select>
                            </td>                        
                        </tr>
                        
                        <tr><th>USERS_TABLE_NAME:</th><td><input type='text' name='users_table_name' id='add-base-users_table_name' /></td>
                            <th>USERS_TABLE_ID_FIELD:</th><td><input type='text' name='users_table_id_field' id='add-base-users_table_id_field' /></td>
                        </tr>
                        <tr><th>USERS_TABLE_FIO_FIELD:</th><td><input type='text' name='users_table_fio_field' id='add-base-users_table_fio_field' /></td>
                            <th>COMMENTS:</th><td><input type='text' name='comments' id='add-base-comments' /></td>                        
                        </tr>                    
                    </tbody>
                    
                </table>
            </form>
            <div class='buttons'>
                <button id='add-base-btnsave' class='buttons'><img src='""")
        _v = VFFSL(SL, "eng_img", True)  # '$eng_img' on line 81, col 73
        if _v is not None:
            write(_filter(_v, rawExpr='$eng_img'))  # from line 81, col 73.
        write(
            """/actions/save.png' />\xd1\xee\xf5\xf0\xe0\xed\xe8\xf2\xfc</button>
                <button id='add-base-btnclose' class='buttons'><img src='""")
        _v = VFFSL(SL, "eng_img", True)  # '$eng_img' on line 82, col 74
        if _v is not None:
            write(_filter(_v, rawExpr='$eng_img'))  # from line 82, col 74.
        write("""/actions/delete.png' />\xc7\xe0\xea\xf0\xfb\xf2\xfc</button>
            </div>
\t</fieldset>
    </div>    
""")

        ########################################
        ## END - generated method body

        return _dummyTrans and trans.response().getvalue() or ""
Exemple #27
0
    def engineData(self, **KWS):

        ## CHEETAH: generated from #def engineData 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("""
<style>
td{
    text-align: left;
}

#content{
    text-align: left;
    line-height: 1.3;
}
</style>

<div id='content'>

<h2>""")
        if False:
            _('ћетрики системы')
        _v = VFFSL(SL, "_", False)(
            'ћетрики системы'
        )  # "$_('\xcc\xe5\xf2\xf0\xe8\xea\xe8 \xf1\xe8\xf1\xf2\xe5\xec\xfb')" on line 19, col 5
        if _v is not None:
            write(
                _filter(
                    _v,
                    rawExpr=
                    "$_('\xcc\xe5\xf2\xf0\xe8\xea\xe8 \xf1\xe8\xf1\xf2\xe5\xec\xfb')"
                ))  # from line 19, col 5.
        write(''' ''')
        _v = VFFSL(SL, "system.NAME",
                   True)  # '$system.NAME' on line 19, col 27
        if _v is not None:
            write(_filter(_v, rawExpr='$system.NAME'))  # from line 19, col 27.
        write('''</h2>
<br>
    ''')
        if False:
            _('—истема')
        _v = VFFSL(SL, "_", False)(
            '—истема'
        )  # "$_('\xd1\xe8\xf1\xf2\xe5\xec\xe0')" on line 21, col 5
        if _v is not None:
            write(_filter(_v, rawExpr="$_('\xd1\xe8\xf1\xf2\xe5\xec\xe0')")
                  )  # from line 21, col 5.
        write(''': <strong>''')
        _v = VFFSL(SL, "system.NAME",
                   True)  # '$system.NAME' on line 21, col 28
        if _v is not None:
            write(_filter(_v, rawExpr='$system.NAME'))  # from line 21, col 28.
        write(''' (''')
        _v = VFFSL(SL, "system.REF_NAME",
                   True)  # '$system.REF_NAME' on line 21, col 42
        if _v is not None:
            write(_filter(_v,
                          rawExpr='$system.REF_NAME'))  # from line 21, col 42.
        write(''')</strong>
<br>
    ''')
        if False:
            _('ѕуть')
        _v = VFFSL(SL, "_", False)(
            'ѕуть')  # "$_('\xcf\xf3\xf2\xfc')" on line 23, col 5
        if _v is not None:
            write(_filter(
                _v, rawExpr="$_('\xcf\xf3\xf2\xfc')"))  # from line 23, col 5.
        write(""": <a href='""")
        _v = VFFSL(SL, "system.FULL_REF_NAME",
                   True)  # '$system.FULL_REF_NAME' on line 23, col 26
        if _v is not None:
            write(_filter(
                _v, rawExpr='$system.FULL_REF_NAME'))  # from line 23, col 26.
        write("""' target='_blank'>""")
        _v = VFFSL(SL, "system.FULL_REF_NAME",
                   True)  # '$system.FULL_REF_NAME' on line 23, col 65
        if _v is not None:
            write(_filter(
                _v, rawExpr='$system.FULL_REF_NAME'))  # from line 23, col 65.
        write('''</a>
<br>
    ''')
        if False:
            _('ќписание')
        _v = VFFSL(SL, "_", False)(
            'ќписание'
        )  # "$_('\xce\xef\xe8\xf1\xe0\xed\xe8\xe5')" on line 25, col 5
        if _v is not None:
            write(_filter(_v, rawExpr="$_('\xce\xef\xe8\xf1\xe0\xed\xe8\xe5')")
                  )  # from line 25, col 5.
        write(''': ''')
        _v = VFFSL(SL, "system.DOCSTRING",
                   True)  # '$system.DOCSTRING' on line 25, col 21
        if _v is not None:
            write(_filter(
                _v, rawExpr='$system.DOCSTRING'))  # from line 25, col 21.
        write('''
<br>

    <table>
        <thead>
            <tr>
                <th>''')
        if False:
            _('»м¤ метрики')
        _v = VFFSL(SL, "_", False)(
            '»м¤ метрики'
        )  # "$_('\xc8\xec\xff \xec\xe5\xf2\xf0\xe8\xea\xe8')" on line 31, col 21
        if _v is not None:
            write(
                _filter(
                    _v,
                    rawExpr="$_('\xc8\xec\xff \xec\xe5\xf2\xf0\xe8\xea\xe8')")
            )  # from line 31, col 21.
        write('''</th>
                <th>''')
        if False:
            _('ќписание метрики')
        _v = VFFSL(SL, "_", False)(
            'ќписание метрики'
        )  # "$_('\xce\xef\xe8\xf1\xe0\xed\xe8\xe5 \xec\xe5\xf2\xf0\xe8\xea\xe8')" on line 32, col 21
        if _v is not None:
            write(
                _filter(
                    _v,
                    rawExpr=
                    "$_('\xce\xef\xe8\xf1\xe0\xed\xe8\xe5 \xec\xe5\xf2\xf0\xe8\xea\xe8')"
                ))  # from line 32, col 21.
        write('''</th>
                <th>''')
        if False:
            _('ѕуть')
        _v = VFFSL(SL, "_", False)(
            'ѕуть')  # "$_('\xcf\xf3\xf2\xfc')" on line 33, col 21
        if _v is not None:
            write(_filter(
                _v, rawExpr="$_('\xcf\xf3\xf2\xfc')"))  # from line 33, col 21.
        write('''</th>
            </tr>
        </thead>
        <tbody>
''')
        for method in VFFSL(SL, "methods",
                            True):  # generated from line 37, col 12
            write('''                <tr>
                    <td>''')
            _v = VFFSL(SL, "method.NAME",
                       True)  # '$method.NAME' on line 39, col 25
            if _v is not None:
                write(_filter(_v,
                              rawExpr='$method.NAME'))  # from line 39, col 25.
            write('''</td>
                    <td>''')
            _v = VFFSL(SL, "method.DOCSTRING",
                       True)  # '$method.DOCSTRING' on line 40, col 25
            if _v is not None:
                write(_filter(
                    _v, rawExpr='$method.DOCSTRING'))  # from line 40, col 25.
            write("""</td>
                    <td><a href='""")
            _v = VFFSL(SL, "method.FULL_REF_NAME",
                       True)  # '$method.FULL_REF_NAME' on line 41, col 34
            if _v is not None:
                write(_filter(
                    _v,
                    rawExpr='$method.FULL_REF_NAME'))  # from line 41, col 34.
            write("""' target='_blank'>""")
            _v = VFFSL(SL, "method.FULL_REF_NAME",
                       True)  # '$method.FULL_REF_NAME' on line 41, col 73
            if _v is not None:
                write(_filter(
                    _v,
                    rawExpr='$method.FULL_REF_NAME'))  # from line 41, col 73.
            write('''</a></td>
                </tr>
''')
        write('''        </tbody>
    </table>
    ''')
        if False:
            _(' ол-во метрик')
        _v = VFFSL(SL, "_", False)(
            ' ол-во метрик'
        )  # "$_('\xca\xee\xeb-\xe2\xee \xec\xe5\xf2\xf0\xe8\xea')" on line 46, col 5
        if _v is not None:
            write(
                _filter(_v,
                        rawExpr=
                        "$_('\xca\xee\xeb-\xe2\xee \xec\xe5\xf2\xf0\xe8\xea')")
            )  # from line 46, col 5.
        write(''': ''')
        _v = VFFSL(SL, "system.CNT_METRICS",
                   True)  # '$system.CNT_METRICS' on line 46, col 26
        if _v is not None:
            write(_filter(
                _v, rawExpr='$system.CNT_METRICS'))  # from line 46, col 26.
        write('''
</div>

''')

        ########################################
        ## END - generated method body

        return _dummyTrans and trans.response().getvalue() or ""
Exemple #28
0
    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('''    <form action="scanMain">  
        ''')
        if False:
            _('ШК')
        _v = VFFSL(SL, "_", False)('ШК')  # "$_('\xd8\xca')" on line 6, col 9
        if _v is not None:
            write(_filter(_v, rawExpr="$_('\xd8\xca')"))  # from line 6, col 9.
        write(
            ''': <input type="text" name="barcode" id="barcode:scan:text" title="'''
        )
        if False:
            _('МП')
        _v = VFFSL(SL, "_",
                   False)('МП')  # "$_('\xcc\xcf')" on line 6, col 83
        if _v is not None:
            write(_filter(_v,
                          rawExpr="$_('\xcc\xcf')"))  # from line 6, col 83.
        write(''', ''')
        if False:
            _('Поддон')
        _v = VFFSL(SL, "_", False)(
            'Поддон'
        )  # "$_('\xcf\xee\xe4\xe4\xee\xed')" on line 6, col 93
        if _v is not None:
            write(_filter(_v, rawExpr="$_('\xcf\xee\xe4\xe4\xee\xed')")
                  )  # from line 6, col 93.
        write(''', ''')
        if False:
            _('Товар')
        _v = VFFSL(SL, "_", False)(
            'Товар')  # "$_('\xd2\xee\xe2\xe0\xf0')" on line 6, col 107
        if _v is not None:
            write(_filter(
                _v,
                rawExpr="$_('\xd2\xee\xe2\xe0\xf0')"))  # from line 6, col 107.
        write('''">
    </form>
    <hr>
    ''')
        if False:
            _('Несколько поддонов на МП')
        _v = VFFSL(SL, "_", False)(
            'Несколько поддонов на МП'
        )  # "$_('\xcd\xe5\xf1\xea\xee\xeb\xfc\xea\xee \xef\xee\xe4\xe4\xee\xed\xee\xe2 \xed\xe0 \xcc\xcf')" on line 9, col 5
        if _v is not None:
            write(
                _filter(
                    _v,
                    rawExpr=
                    "$_('\xcd\xe5\xf1\xea\xee\xeb\xfc\xea\xee \xef\xee\xe4\xe4\xee\xed\xee\xe2 \xed\xe0 \xcc\xcf')"
                ))  # from line 9, col 5.
        write('''
    <br><br>
''')
        if VFFSL(SL, "varExists", False)('$datalist') and VFFSL(
                SL, "datalist", True) and len(
                    VFFSL(SL, "datalist",
                          True)) > 0:  # generated from line 11, col 5
            for item in VFFSL(SL, "datalist",
                              True):  # generated from line 12, col 9
                write('''            <u><b>''')
                _v = VFFSL(SL, "item.SNAME",
                           True)  # '$item.SNAME' on line 13, col 19
                if _v is not None:
                    write(_filter(
                        _v, rawExpr='$item.SNAME'))  # from line 13, col 19.
                write('''</u></b><br>
            ''')
                _v = VFFSL(SL, "item.PNUMBERS",
                           True)  # '$item.PNUMBERS' on line 14, col 13
                if _v is not None:
                    write(_filter(
                        _v, rawExpr='$item.PNUMBERS'))  # from line 14, col 13.
                write('''<br><br>
''')
        else:  # generated from line 16, col 5
            write('''        <div class="NoData">''')
            if False:
                _('Ничего не найдено')
            _v = VFFSL(SL, "_", False)(
                'Ничего не найдено'
            )  # "$_('\xcd\xe8\xf7\xe5\xe3\xee \xed\xe5 \xed\xe0\xe9\xe4\xe5\xed\xee')" on line 17, col 29
            if _v is not None:
                write(
                    _filter(
                        _v,
                        rawExpr=
                        "$_('\xcd\xe8\xf7\xe5\xe3\xee \xed\xe5 \xed\xe0\xe9\xe4\xe5\xed\xee')"
                    ))  # from line 17, col 29.
            write('''</div>
''')

        ########################################
        ## END - generated method body

        return _dummyTrans and trans.response().getvalue() or ""
Exemple #29
0
    def systemNavigation(self, **KWS):

        ## CHEETAH: generated from #def systemNavigation 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<ul>
''')
        # <li><a href="workTTDetail">По сотруднику</a></li>
        write(
            '''\t\t<li><a href="workTask">\xcf\xee \xf2\xe8\xef\xe0\xec</a></li>
\t\t<li><a href="workTaskByEmpl">\xcf\xee \xf1\xee\xf2\xf0\xf3\xe4\xed\xe8\xea\xf3</a></li>
\t</ul>

    <link rel="stylesheet" type="text/css" media="screen" href="''')
        _v = VFFSL(SL, "sps_css.KURSSKLAD",
                   True)  # '$sps_css.KURSSKLAD' on line 11, col 65
        if _v is not None:
            write(_filter(
                _v, rawExpr='$sps_css.KURSSKLAD'))  # from line 11, col 65.
        write('''/k.progressbar.css" />
    <link rel="stylesheet" type="text/css" media="screen" href="''')
        _v = VFFSL(SL, "sps_css.KURSSKLAD",
                   True)  # '$sps_css.KURSSKLAD' on line 12, col 65
        if _v is not None:
            write(_filter(
                _v, rawExpr='$sps_css.KURSSKLAD'))  # from line 12, col 65.
        write('''/jquery.contextMenu.css"/>
\t<link href="''')
        _v = VFFSL(SL, "sps_css.KURSSKLAD",
                   True)  # '$sps_css.KURSSKLAD' on line 13, col 14
        if _v is not None:
            write(_filter(
                _v, rawExpr='$sps_css.KURSSKLAD'))  # from line 13, col 14.
        write(
            '''/tabs/jquery.tabs.css" rel="stylesheet" type="text/css" media="screen"/>
    
    <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('''/ui.datepicker.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('''/i18n/ui.datepicker-ru.js"></script>
    <script type="text/javascript" src="''')
        _v = VFFSL(SL, "eng_js", True)  # '$eng_js' on line 18, col 41
        if _v is not None:
            write(_filter(_v, rawExpr='$eng_js'))  # from line 18, 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 19, col 41
        if _v is not None:
            write(_filter(_v, rawExpr='$eng_js'))  # from line 19, col 41.
        write('''/jquery.tablesorter.js"></script>
    <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('''/kTblScroll.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('''/jquery.rightClick.min.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.contextMenu.min.js"></script>  
\t<script type="text/javascript" src="''')
        _v = VFFSL(SL, "eng_js", True)  # '$eng_js' on line 23, col 38
        if _v is not None:
            write(_filter(_v, rawExpr='$eng_js'))  # from line 23, col 38.
        write('''/jquery.rowFocus.min.js"></script>\t
    
\t<script type="text/javascript" src="''')
        _v = VFFSL(SL, "sps_js.KURSSKLAD",
                   True)  # '$sps_js.KURSSKLAD' on line 25, col 38
        if _v is not None:
            write(_filter(
                _v, rawExpr='$sps_js.KURSSKLAD'))  # from line 25, col 38.
        write('''/jquery.tabs.js"></script>
\t<script type="text/javascript" src="''')
        _v = VFFSL(SL, "sps_js.KURSSKLAD",
                   True)  # '$sps_js.KURSSKLAD' on line 26, col 38
        if _v is not None:
            write(_filter(
                _v, rawExpr='$sps_js.KURSSKLAD'))  # from line 26, col 38.
        write('''/k.icons.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('''/jquery.blockUI.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.form.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.formats.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.progressbar.js"></script>
\t<script type="text/javascript" src="''')
        _v = VFFSL(SL, "sps_js.KURSSKLAD",
                   True)  # '$sps_js.KURSSKLAD' on line 32, col 38
        if _v is not None:
            write(_filter(
                _v, rawExpr='$sps_js.KURSSKLAD'))  # from line 32, col 38.
        write('''/taskView.js"></script>
''')
        # <script type="text/javascript" src="$sps_js.TASKMANAGER/TaskManagerView.js"></script>
        write('''\t<script type="text/javascript" src="''')
        _v = VFFSL(SL, "sps_js.KURSSKLAD",
                   True)  # '$sps_js.KURSSKLAD' on line 34, col 38
        if _v is not None:
            write(_filter(
                _v, rawExpr='$sps_js.KURSSKLAD'))  # from line 34, col 38.
        write('''/k.tdChk.js"></script>

''')

        ########################################
        ## END - generated method body

        return _dummyTrans and trans.response().getvalue() or ""
Exemple #30
0
    def systemNavigation(self, **KWS):

        ## CHEETAH: generated from #def systemNavigation       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

        # <link href="$sps_css.KURSSKLAD/tabs/jquery.tabs.css" rel="stylesheet" type="text/css" media="screen"/>
        write(
            '''    <link rel="stylesheet" type="text/css" media="screen" href="'''
        )
        _v = VFFSL(SL, "sps_css.KURSSKLAD",
                   True)  # '$sps_css.KURSSKLAD' on line 10, col 65
        if _v is not None:
            write(_filter(
                _v, rawExpr='$sps_css.KURSSKLAD'))  # from line 10, col 65.
        write('''/jquery.contextMenu.css"/>
\t<link href="''')
        _v = VFFSL(SL, "eng_css", True)  # '$eng_css' on line 11, col 14
        if _v is not None:
            write(_filter(_v, rawExpr='$eng_css'))  # from line 11, col 14.
        write(
            '''/jquery.autocomplete.css" rel="stylesheet" type="text/css" media="screen"/>
\t
\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('''/ui.datepicker.min.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('''/i18n/ui.datepicker-ru.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('''/jquery.maskedinput-1.2.1.pack.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.rowFocus.min.js"></script>
\t<script type="text/javascript" src="''')
        _v = VFFSL(SL, "eng_js", True)  # '$eng_js' on line 17, col 38
        if _v is not None:
            write(_filter(_v, rawExpr='$eng_js'))  # from line 17, col 38.
        write('''/jquery.contextMenu.js"></script>
    <script type="text/javascript" src="''')
        _v = VFFSL(SL, "eng_js", True)  # '$eng_js' on line 18, col 41
        if _v is not None:
            write(_filter(_v, rawExpr='$eng_js'))  # from line 18, col 41.
        write('''/jquery.tablesorter.min.js"></script>    
    <script type="text/javascript" src="''')
        _v = VFFSL(SL, "eng_js", True)  # '$eng_js' on line 19, col 41
        if _v is not None:
            write(_filter(_v, rawExpr='$eng_js'))  # from line 19, col 41.
        write('''/kTblScroll.min.js"></script>
\t<script type="text/javascript" src="''')
        _v = VFFSL(SL, "eng_js", True)  # '$eng_js' on line 20, col 38
        if _v is not None:
            write(_filter(_v, rawExpr='$eng_js'))  # from line 20, col 38.
        write('''/jquery.autocomplete.min.js"></script>
\t
    <script type="text/javascript" src="''')
        _v = VFFSL(SL, "sps_js.KURSSKLAD",
                   True)  # '$sps_js.KURSSKLAD' on line 22, col 41
        if _v is not None:
            write(_filter(
                _v, rawExpr='$sps_js.KURSSKLAD'))  # from line 22, col 41.
        write('''/k.formats.js"></script>
    <script type="text/javascript" src="''')
        _v = VFFSL(SL, "sps_js.KURSSKLAD",
                   True)  # '$sps_js.KURSSKLAD' on line 23, col 41
        if _v is not None:
            write(_filter(
                _v, rawExpr='$sps_js.KURSSKLAD'))  # from line 23, col 41.
        write('''/k.messages.js"></script>
    <script type="text/javascript" src="''')
        _v = VFFSL(SL, "sps_js.KURSSKLAD",
                   True)  # '$sps_js.KURSSKLAD' on line 24, col 41
        if _v is not None:
            write(_filter(
                _v, rawExpr='$sps_js.KURSSKLAD'))  # from line 24, col 41.
        write('''/k.objectAutoComplete.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.rightClick.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.form.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('''/jquery.blockUI.js"></script>
\t<script type="text/javascript" src="''')
        _v = VFFSL(SL, "eng_js", True)  # '$eng_js' on line 28, col 38
        if _v is not None:
            write(_filter(_v, rawExpr='$eng_js'))  # from line 28, col 38.
        write('''/ui.dialog.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('''/k.id.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.icons.js"></script>
\t<script type="text/javascript" src="''')
        _v = VFFSL(SL, "sps_js.KURSSKLAD",
                   True)  # '$sps_js.KURSSKLAD' on line 31, col 38
        if _v is not None:
            write(_filter(
                _v, rawExpr='$sps_js.KURSSKLAD'))  # from line 31, col 38.
        write('''/k.objectLocate.js"></script>
''')
        # <script type="text/javascript" src="$sps_js.KURSSKLAD/taskView.js"></script>
        # <script type="text/javascript" src="$sps_js.KURSSKLAD/jquery.tabs.js"></script>
        write('''    <script type="text/javascript" src="''')
        _v = VFFSL(SL, "sp_js", True)  # '$sp_js' on line 34, col 41
        if _v is not None:
            write(_filter(_v, rawExpr='$sp_js'))  # from line 34, col 41.
        write('''/skladservice.js"></script>
    
\t<form class="buttons">
\t\t \xcf\xe5\xf0\xe8\xee\xe4: \xd1 <input id="bdate" type="text" size="8" />&nbsp;
\t\t \xcf\xee <input id="edate" type="text" size="8" />&nbsp;
\t\t \xce\xe1\xfa\xe5\xea\xf2 <select id="fromobj"> </select>
\t\t \xca\xee\xed\xf2\xf0\xe0\xe3\xe5\xed\xf2 <input type="text" id="toobjid">
\t\t \xd0\xe5\xe6\xe8\xec <select id="tp">
\t\t\t\t<option selected value="dt">\xcf\xee \xe4\xed\xff\xec</option>
\t\t\t\t<option value="ca">\xcf\xee \xea\xee\xed\xf2\xf0\xe0\xe3\xe5\xed\xf2\xe0\xec</option>
               </select>
\t\t <button style="button" type="submit" id="go"><img src="''')
        _v = VFFSL(SL, "eng_img", True)  # '$eng_img' on line 45, col 59
        if _v is not None:
            write(_filter(_v, rawExpr='$eng_img'))  # from line 45, col 59.
        write('''/arrows/arrow_right.png"></button>
\t\t <button type="button" title="\xcf\xe5\xf7\xe0\xf2\xfc" id="btPrint"><img src="'''
              )
        _v = VFFSL(SL, "eng_img", True)  # '$eng_img' on line 46, col 64
        if _v is not None:
            write(_filter(_v, rawExpr='$eng_img'))  # from line 46, col 64.
        write('''/actions/printer.png" border="0"></button>
\t</form> 
''')

        ########################################
        ## END - generated method body

        return _dummyTrans and trans.response().getvalue() or ""