示例#1
0
文件: kSite.py 项目: shybkoi/WMS-Demo
    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
示例#2
0
 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()
                              }])
示例#3
0
 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}])
示例#4
0
 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}])
示例#5
0
 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'))
示例#6
0
 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'))
示例#7
0
文件: kSite.py 项目: shybkoi/WMS-Demo
 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'))
示例#8
0
    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}])
示例#9
0
 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=[])
示例#10
0
 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=[])
示例#11
0
 def listZoneObjects(self):
     return self.pyDumps(data=WHCommon.listZoneObjects(
         self, manid=self.GetKEmployeeID()),
                         ext_data={'OBJID': self.employeeObj()})
示例#12
0
 def index(self, id_system=None):
     WHCommon.index(self, id_system)
     if id_system:
         self.id = id_system
     return self.drawTemplate(templ=tmplmain, data=[])
示例#13
0
 def selfObjects(self):
     return self.pyDumps(data=WHCommon.selfObjects(self))
示例#14
0
 def index(self, id_system=None):
     WHCommon.index(self, id_system)
     return self.summary()
示例#15
0
 def index(self, id_system=None):
     WHCommon.index(self, id_system)
     return self.workTask()
示例#16
0
 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=[])
示例#17
0
 def index(self, tasktypeid=None, tid=None, mes=None, id_system=None):
     WHCommon.index(self, id_system)
     return self.drawTemplate(templ=index, data=[])
示例#18
0
 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])
示例#19
0
 def index(self, id_system=None):
     WHCommon.index(self, id_system)
     self.setIfaceVar('wmsesid', self.GetKSessionID())
     return self.dmClients()
示例#20
0
 def index(self, id_system=None):
     WHCommon.index(self, id_system)
     return self.palletfg()
示例#21
0
 def listObjects(self, incname):
     return self.pyDumps(data=WHCommon.listObjectsC(self, objtypes= 'C', namemask = incname))
示例#22
0
 def listZone(self):
     manid = self.GetKEmployeeID()
     return self.pyDumps(data=WHCommon.listZone(self, manid = manid),ext_data={'ZONEID':self.employeeZone(employeeID=manid)})
示例#23
0
 def index(self, id_system=None):
     WHCommon.index(self, id_system)
     return self.drawTemplate(templ=index, data=[])
示例#24
0
 def index(self, id_system=None):  
     WHCommon.index(self, id_system)
     raise HTTPRedirect('wares')
示例#25
0
 def listObjects(self, incname=None):
     return self.pyDumps(
         WHCommon.listObjects(self,
                              objtypes='C,D',
                              namemask=incname,
                              sqladd='order by lo.NAME'))
示例#26
0
 def automatic(self):
     lz = WHCommon.listZoneObjects(self, manid = self.GetKEmployeeID())
     return self.drawTemplate(templ=self.tmplAutomatic, data=[lz,{'OBJID':self.employeeObj()}])
示例#27
0
 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}])
示例#28
0
 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))