예제 #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
파일: reserve.py 프로젝트: shybkoi/WMS-Demo
 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))