コード例 #1
0
 public static List<ProjectObAssignRel> getMyProjectObRels() {
   User us = Users.getUser();
   return ProjectObAssignRel.find(
           "user.id=?1 and projectObject.completedPercent<?2 order by projectObject.startDate",
           us.id,
           100F)
       .fetch();
 }
コード例 #2
0
 public static List<TaskAssignRel> getMyTaskRels(Date date) {
   User us = Users.getUser();
   return TaskAssignRel.find(
           "user.id=?1 and task.completedPercent<?2 and"
               + " task.startDate<=?3 and task.finishDate>?4 order by task.startDate",
           us.id,
           100F,
           date,
           date)
       .fetch();
 }
コード例 #3
0
 public static List<TaskAssignRel> getMyTaskRels() {
   User us = Users.getUser();
   return TaskAssignRel.find(
           "user.id=?1 and task.completedPercent<?2 order by task.startDate", us.id, 100F)
       .fetch();
 }