def GetHoliday(self, p): if (len(p) == 5): return (HOLIDAY._FindNth(int(p[3]), int(p[4]), conn)) elif (len(p) == 4): return (HOLIDAY._GetAllWith(int(p[3]), conn)) elif (len(p) == 3): return Json.GetAll(HOLIDAY(), conn)
def GetPost(self, p): if (len(p) == 5): return (POST._FindNth(int(p[3]), int(p[4]), conn)) elif (len(p) == 4): return (POST._GetAllWith(int(p[3]), conn)) elif (len(p) == 3): return Json.GetAll(POST(), conn)
def GetEmployee(self, p): if len(p) < 4: return Json.GetAll(EMPLOYEE(), conn) id = int(p[3]) return Json.Stringify(EMPLOYEE._Find(id, conn))
def GetHoliday(self,p): if len(p)<4: return Json.GetAll(HOLIDAY(),conn) id = int(p[3]) return (HOLIDAY._GetAllWith(id,conn))
def GetPost(self,p): if len(p)<4: return Json.GetAll(POST(),conn) id = int(p[3]) return (POST._GetAllWith(id,conn))