Ejemplo n.º 1
0
 def __init__(self):
     self.sqldata = lhlSql()
     self.portalsql = portalSql()
     self.postheader = {}
     self.postheader['Content-Type'] = "application/json"
     self.url = config.userurl
     pass
Ejemplo n.º 2
0
 def __init__(self):
     self.sqldata = lhlSql()
     self.portalsql = portalSql()
     self.postheader = {}
     self.postheader['Authorization'] = userLogin.userlogin().accountLogin()
     self.postheader['Content-Type'] = "application/json"
     self.url = config.userurl + "/department"
     pass
Ejemplo n.º 3
0
 def __init__(self):
     self.sqldata = lhlSql()
     self.portalsql = portalSql()
     self.session = userLogin.userlogin()
     self.postheader = {}
     self.postheader['Content-Type'] = "application/json"
     self.postheader['Authorization'] = self.session.accountLogin()
     self.url = config.contracturl
     pass
Ejemplo n.º 4
0
 def __init__(self):
     self.sqldata = lhlSql()
     self.portalsql = portalSql()
     self.postheader = {}
     self.postheader['Content-Type'] = "application/json"
     self.account = config.account
     self.mobile = config.mobile
     self.noAccount = config.noAccount
     self.passwd = config.passwd
     self.url = config.userurl
     pass
Ejemplo n.º 5
0
 def __init__(self):
     self.sqldata = lhlSql()
     self.portalsql = portalSql()
     self.session = userLogin.userlogin()
     self.postheader = {}
     self.getheader = {}
     self.postheader['Content-Type'] = "application/json"
     self.getheader['Content-Type'] = "application/x-www-form-urlencoded;charset=UTF-8"
     self.postheader['Requested-With'] = "XMLHttpRequest"
     self.postheader['Authorization'] = self.session.accountLogin()
     self.url = config.orgurl + "/org"
     pass