def index(self, id_system=None): WHCommon.index(self, id_system) cat = self.getCatByCode('SELF') if cat: self.setIfaceVar('riteil', cat['CATID']) else: raise "Не найдена системная категория - Собственные объекты!" del cat
def index(self, id_system=None): WHCommon.index(self, id_system) manid = self.GetKEmployeeID() lzo = self.listZoneObjects(manid=manid) self.setIfaceVar('wmsid', self.GetKSessionID(manid)) return self.drawTemplate(templ=tmplmain, data=[lzo, { 'objid': self.employeeObj() }])
def index(self, id_system=None): WHCommon.index(self, id_system) self.setIfaceVar('wmsesid', self.GetKSessionID()) print self.getIfaceVar('wmsesid') viewunit = self.dbExec(sql='select * from wm_config',params=[],fetch='one')['USEVIEWUNIT'] if viewunit is None: viewunit = 0 gtdedit = 0 if self.opt('edit', None, 'gtdchange'): gtdedit = 1 return self.drawTemplate(templ=tmplmain, data=[{'viewunit':viewunit, 'gtdedit': gtdedit}])
def index(self, id_system=None): WHCommon.index(self, id_system) '''sys_path = '/KURSSKLAD/REFERENCE/MAN' admin = 0 if sys_path in self.getUserVar('granted_system_refs'): admin = 1 self.setIfaceVar('wmsesid',self.GetKSessionID()) self.setIfaceVar('isadmin',admin)''' viewunit = self.dbExec(sql='select * from wm_config', params=[], fetch='one')['USEVIEWUNIT'] if viewunit is None: viewunit = 0 return self.drawTemplate(templ=tmplmain, data=[{'viewunit': viewunit}])
def listObjects(self, catid=None, incname=None): return self.pyDumps( WHCommon.listObjects(self, objtypes='C,D', objstatuses='1', catid=catid, namemask=incname, sqladd='order by lo.NAME'))
def listObjects(self, incname=None): return self.pyDumps( WHCommon.listObjects(self, fields="lo.OBJID,lo.NAME", objtypes='C,D', objstatuses=None, namemask=incname, sqladd='order by lo.name'))
def listObjects(self, incname): cat = self.getIfaceVar('riteil') return self.pyDumps( WHCommon.listObjectsC(self, objtypes='C,D', objstatuses='1', catid=str(cat), namemask=str(incname), sqladd=' order by NAME'))
def index(self, id_system=None): WHCommon.index(self, id_system) if id_system: self.id = id_system #catWareHouses = self.getCatByCode('WAREHOUSES') #if not catWareHouses: raise 'Не найдена категория - СКЛАДЫ!' dt = self.dbExec( sql='select dt.doctid from doctype dt where dt.code=?', params=(self.dtCode, ), fetch="one") if not dt: raise 'Не найден тип документа - ПРОДАЖА!' else: self.setIfaceVar('doctid', dt['doctid']) #return self.drawTemplate(templ=tmplmain, data=[ {'catIdWH':catWareHouses['CATID']} ]) return self.drawTemplate(templ=tmplmain, data=[{'versionJS': self.js}])
def index(self, id_system=None): WHCommon.index(self, id_system) self.needsv = self.dbExec(sql='select * from RBS_GET_CONFIG(?,?)',params=[self.ifaceCode,'siteverify'],fetch='one')['VAL'] return self.drawTemplate(templ=tmplmain, data=[])
def index(self, id_system=None): WHCommon.index(self, id_system) self.setIfaceVar('manid', self.GetKEmployeeID()) self.setIfaceVar('wmsesid', self.GetKSessionID()) return self.drawTemplate(templ=index, data=[])
def listZoneObjects(self): return self.pyDumps(data=WHCommon.listZoneObjects( self, manid=self.GetKEmployeeID()), ext_data={'OBJID': self.employeeObj()})
def index(self, id_system=None): WHCommon.index(self, id_system) if id_system: self.id = id_system return self.drawTemplate(templ=tmplmain, data=[])
def selfObjects(self): return self.pyDumps(data=WHCommon.selfObjects(self))
def index(self, id_system=None): WHCommon.index(self, id_system) return self.summary()
def index(self, id_system=None): WHCommon.index(self, id_system) return self.workTask()
def index(self, id_system=None, objid=None, name=None): WHCommon.index(self, id_system) self.setIfaceVar('manid',self.GetKEmployeeID()) return self.drawTemplate(templ=maintmpl, data=[])
def index(self, tasktypeid=None, tid=None, mes=None, id_system=None): WHCommon.index(self, id_system) return self.drawTemplate(templ=index, data=[])
def index(self, id_system=None): WHCommon.index(self, id_system) manid = self.GetKEmployeeID() lz = WHCommon.listZoneObjects(self, manid=manid) self.setIfaceVar('wmsesid', self.GetKSessionID(employeeID=manid)) return self.drawTemplate(templ=self.tmplMain, data=[lz])
def index(self, id_system=None): WHCommon.index(self, id_system) self.setIfaceVar('wmsesid', self.GetKSessionID()) return self.dmClients()
def index(self, id_system=None): WHCommon.index(self, id_system) return self.palletfg()
def listObjects(self, incname): return self.pyDumps(data=WHCommon.listObjectsC(self, objtypes= 'C', namemask = incname))
def listZone(self): manid = self.GetKEmployeeID() return self.pyDumps(data=WHCommon.listZone(self, manid = manid),ext_data={'ZONEID':self.employeeZone(employeeID=manid)})
def index(self, id_system=None): WHCommon.index(self, id_system) return self.drawTemplate(templ=index, data=[])
def index(self, id_system=None): WHCommon.index(self, id_system) raise HTTPRedirect('wares')
def listObjects(self, incname=None): return self.pyDumps( WHCommon.listObjects(self, objtypes='C,D', namemask=incname, sqladd='order by lo.NAME'))
def automatic(self): lz = WHCommon.listZoneObjects(self, manid = self.GetKEmployeeID()) return self.drawTemplate(templ=self.tmplAutomatic, data=[lz,{'OBJID':self.employeeObj()}])
def index(self, id_system=None): WHCommon.index(self, id_system) viewunit = self.dbExec(sql='select * from wm_config',params=[],fetch='one')['USEVIEWUNIT'] if viewunit is None: viewunit = 0 return self.drawTemplate(templ=self.tmplmain, data=[{'viewunit':viewunit,'congestion':self.congestion}])
def listObjects(self, catid=None, incname=None, statuses=None): if not catid: catid = self.getIfaceVar('catSupplId') if catid: catid = str(catid) return self.pyDumps(data=WHCommon.listObjectsC( self, objstatuses=statuses, catid=catid, namemask=incname))