task

PAGE VERSION - view/tasks -v-007

[previously]

  1. PAGE - view/tasks - description and history of page, versions list

[currently]

  1. i] [2013-10-18] NEW-VERSION - v-007 
    1. ] FIX PRB qry return all task
    2. ] cleanup legacy code, removed unused
  2. x] PG-'view/tasks' - should return all tasks, 
    1. ] revised LOGIC blocks -  
    2. x] moved the 'return all' block (parent_id.IsEmpty() to bottom) - this returns all BUT 
  3. x] qry is not returning qry results, returning all
    1. x] ADD TEST - x] revise test from 'else on lb#6' to lb#7 = if ( qry.IsEmpty() && parent.IsEmpty() )
  4. x] clean the switch statement in LB # 5
    1. x] removed extra code lines, whitespace,
    2. *] see next - add function to test
  5. x] REMOVEd codeblock - used to set session vars for current_tgr, !=qry && tgrName==null
    1. ] was remmed - if (string.IsNullOrEmpty(@taskgroupName)  && Request["qry"].IsEmpty())
  6. x] REMOVEd comments, moved to here 
    1. ] total lines = prev = 414 (including comments approx 10)
  7. x] LABELLED - 7 logic blocks ? (page entry points) ?
    1. ] plan_id='000' 
      1. ] view/calendar all, - report of all tasks in a given calender, the plan_id=000 is a flag that indicates the id being passed is for a  'calendar'
      2. ] view/calender status - Calendar-ToDo, Calendar-Journal, Calendar-InProcess 
      3. *] NF bc
      4. *] still using db access code
    2. ] parent_id='000' - 
      1. ] view/plan all - report all tasks in a given plan, the parent_id=000 is a flag that indicates the id being passed is for a 'plan'
      2. ] view/plan status - Plan ToDo, Plan-Journal, Plan-InProcess
      3. *] NF bc
      4. *] still using db access code
    3. ] status1 & !plan_id='000' & !parent_id='000' - 
    4. ] (String.IsNullOrEmpty(status1) && parent_id !="000" && parent_id != null && planId !="000" && Request["qry"].IsEmpty())
      1. tasks in taskgroup, not status, 
    5. ]  if (!Request["qry"].IsEmpty() && parent_id.IsEmpty()) 
      1. qry coming from pg find/tasks, contains switch statement
    6. ] if (!parent_id.IsEmpty() && Request["qry"].IsEmpty()) 
      1. have parent id(tgr), not a qry, results view/tasksInTaskgroup
    7. ] if (parent_id.IsEmpty() && Request["qry"].IsEmpty()) 
      1. no parent id, returns all tasks 
      2. *] qry limit = 50
  8. x] CUT - rem after LB#7 - test page.title to determine if ...
    1. // @if (Page.Title="sospep.events.viewEventCalendarPlans"){parent_id=planId}; 
    2. // parent_id=planId;
  9. ] TEST rem LB # 4 
    1. ] duplicating returns tasks in taskgroup, 
    2. ] TEST.results = 
      1. view/tasks = PASS
      2. view/tasks?id=67 PASS
      3. qry/description=default PASS
      4. calendar PASS
  10. x] PRB 'Calendar-All NF' plan_id=000 Calendar
    1. x] PG view/calendars - edit link, use qry code, qry=Find-Calendar, param=id_calendar
    2. x] ERROR - remove id=id, B/C parent_id was set and qry then went into wrong lb
    3. x] TEST REVISON = PASS
    4. x] TEST ALL(4) = PASS
    5. *] NO CHANGES here, OTHER THAN not using LB plan_id=000 or db.qry code 
  11. x] PRB 'Calendar-Journal'
    1. x] CS Task - added static method 006-001, overriding TasksInCalender with 2 args (id_calendar, status), added qry which appends status to tasksInCalender qry, 
    2. x] PG view/calendars - edit link to use qry logic, set status = Completed and pass to view/tasks
    3. x] PG view/tasks - added if block to switch block Find-Calendar, if status then use call with 2 args  
  12. x] PRB 'Calendar-TaskList(todo)
    1. x] PG view/calendars - edit link to use qry logic, set status = 'ToDo' and pass to view/tasks
  13. x] PRB 'Calendar-InProcess
    1. x] PG view/calendars - edit link to use qry logic, set status = 'InProcess' and pass to view/tasks
  14. x] CUT
    1. x] LOGIC Block 4
    2. x] js snippet for load "stats bar
  15. x] 2013-10-18 -
    1. ] REPLACED edit link to "edit contents" page with link to view/{page} &mode=edit
  16. ? x] 2014-02-13 -
    1. ] add library name to ViewTitle, *] now included in title
  17. i] 2014-02-27 -
    1. ] MIGRATION FIX PRB title - from @Session to Session
  18. x] 2014-03-03 -
    1. ] MIGRATION FIX PRB title - from @Session to Session
  19. x] 2014-03-03
    1. ] FIX PRB# 3543 - @Session VS Session,
    2. ] FIX PRB# # - removed @*comment@* blocks contained insided of script tags, seem to break the script 'intellisense' ?=dont know if they impact the actual file on server
  20. x] 2014-03-20
    1. ] FEATURE# # - PAGINATION 
    2. - add params to each qry (2) 
  21. x] 2014-04-15
    1. ] navHeader L2 title, incomplete use linked version

[next]

  1. ] function to check and redirect in switch statement
x] 2014-04-21 - REM var ] sqlQ Session ] current_id, ] current_taskgroup_id, ] current_taskGroup_name - not on this page, ARE the setting them up for use on another page
x] 2014-05-20 FIX-PRB-3994 - find/'name' -not finding results
i] 2015-08-12 UPDATE - align list format with other L4 lists
x] 2016-08-16 - FEATURE-3670-PAGINATION - UPDATE-011 - return to same page in set - ADD startpage=# parameter to "edit links"
x] 2016-08-20 - FIX-PRB-6386 - copy record - redirect invalid - EDIT link on each listed task, remove 
x] 2016-09-03 - FIX-PRB-6420 - after copy record, does not return to correct page in set

scrap 
@* ] 2013-10-17 ] view/tasks
- return all is executing b/c 
*@
  @*
    // 10-17 LOGIC - to build qry's IF no parent_id 
    if (!parent_id.IsEmpty()){   
        //ch = new Chapter(parent_id.AsInt());
        Page["tasks"] = Task.GetAllTasks();
    }
    > REPLACED with below,  moved to last case, ADDed TEST for null on above if/else statement
    *@
 
<script type="text/javascript" >
 
$(document).ready( 
    $("#statsBar").click( function(){
    alert ("load stats bar");
    $("#statsBar").load();})
    );
</script>
 
<script type="text/javascript">
$(document).ready(function(){
    var mode ='@mode';
    if ( mode === "edit"){
        alert("mode edit");
        //document.getElementById("toggleEditor").click(); // FIRES but editor doesnt load 
        $("#toggleEditor").click();
    }
    });
</script>
    
Details Photos Edit more

Details

ID: 2940

NAME: PAGE-VERION-view-tasks-v-007

DESCRIPTION: NEW PAGE VERSION view tasks -v-007 - UPDATES ] cleanup ] FIX qry return all tasks ]

START DATE TIME: 2013-10-18 09:15:00

EST DURATION: 03:00:00

END DATE TIME: 2013-10-18 12:15:00

STATUS: Completed

PRIORITY: -5

OWNER ID: 75

Content Photos Edit more

photos

photos for this task

actions

Agenda Email task SMS task Priorities