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