示例#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 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}])
示例#6
0
 def index(self, id_system=None):
     WHCommon.index(self, id_system)
     return self.drawTemplate(templ=index, data=[])
示例#7
0
 def index(self, id_system=None):
     WHCommon.index(self, id_system)
     self.setIfaceVar('wmsesid', self.GetKSessionID())
     return self.dmClients()
示例#8
0
 def index(self, id_system=None):
     WHCommon.index(self, id_system)
     return self.summary()
示例#9
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=[])
示例#10
0
 def index(self, id_system=None):  
     WHCommon.index(self, id_system)
     raise HTTPRedirect('wares')
示例#11
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=[])
示例#12
0
 def index(self, id_system=None):
     WHCommon.index(self, id_system)
     return self.workTask()
示例#13
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=[])
示例#14
0
 def index(self, tasktypeid=None, tid=None, mes=None, id_system=None):
     WHCommon.index(self, id_system)
     return self.drawTemplate(templ=index, data=[])
示例#15
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])
示例#16
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=[])
示例#17
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}])
示例#18
0
 def index(self, id_system=None):
     WHCommon.index(self, id_system)
     return self.palletfg()