edit-task
Home
Up
Delete
Task Name:
Task Description:
NEW PAGE VERSION view tasks -v-007 - UPDATES ] cleanup ] FIX qry return all tasks ]
TaskGroup ID:
Start Date:
Start Time:
Duration:
Priority:
Status:
To Do
Completed
In Process
Add Photo:
Owner ID:
Content:
use HTML
Edit Content
<h1 style="text-align: center;">PAGE VERSION - view/tasks -v-007</h1> <h2>[previously]</h2> <div><ol> <li>] <a href="/view/task?id=2229" target="_blank">PAGE - view/tasks</a> - description and history of page, versions list</li> </ol></div> <h2>[currently]</h2> <ol> <li><strong>i] [2013-10-18] NEW-VERSION - v-007 </strong></li> <ol> <li>] FIX PRB qry return all task</li> <li>] cleanup legacy code, removed unused</li> </ol> <li><strong>x] PG-'view/tasks' - should return all tasks, </strong></li> <ol> <li>] revised LOGIC blocks - </li> <li>x] moved the 'return all' block (parent_id.IsEmpty() to bottom) - this returns all BUT </li> </ol> <li><strong>x] qry is not returning qry results, returning all</strong></li> <ol> <li>x] ADD TEST - x] revise test from 'else on lb#6' to lb#7 = if ( qry.IsEmpty() && parent.IsEmpty() )</li> </ol> <li><strong>x] clean the switch statement in LB # 5</strong></li> <ol> <li>x] removed extra code lines, whitespace,</li> <li>*] see next - add function to test</li> </ol> <li><strong>x] REMOVEd codeblock - used to set session vars for current_tgr, !=qry && tgrName==null</strong></li> <ol> <li>] was remmed - if (string.IsNullOrEmpty(@taskgroupName) && Request["qry"].IsEmpty())</li> </ol> <li><strong>x] REMOVEd comments, moved to here </strong></li> <ol> <li>] total lines = prev = 414 (including comments approx 10)</li> </ol> <li><strong>x] LABELLED - 7 logic blocks ? (page entry points) ?</strong></li> <ol> <li><strong>] plan_id='000' </strong></li> <ol> <li>] 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'</li> <li>] view/calender status - Calendar-ToDo, Calendar-Journal, Calendar-InProcess </li> <li>*] NF bc</li> <li>*] still using db access code</li> </ol> <li><strong>] parent_id='000' - </strong></li> <ol> <li>] 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'</li> <li>] view/plan status - Plan ToDo, Plan-Journal, Plan-InProcess</li> <li>*] NF bc</li> <li>*] still using db access code</li> </ol> <li><strong>] status1 & !plan_id='000' & !parent_id='000' - </strong></li> <ol> <li>] </li> </ol> <li><span style="background-color: #ffff99;"><strong>] (String.IsNullOrEmpty(status1) && parent_id !="000" && parent_id != null && planId !="000" && Request["qry"].IsEmpty())</strong></span></li> <ol> <li><span style="background-color: #ffff99;">tasks in taskgroup, not status, </span></li> </ol> <li><strong>] if (!Request["qry"].IsEmpty() && parent_id.IsEmpty()) </strong></li> <ol> <li>qry coming from pg find/tasks, contains switch statement</li> </ol> <li><strong>] if (!parent_id.IsEmpty() && Request["qry"].IsEmpty()) </strong></li> <ol> <li>have parent id(tgr), not a qry, results view/tasksInTaskgroup</li> </ol> <li><strong>] if (parent_id.IsEmpty() && Request["qry"].IsEmpty()) </strong></li> <ol> <li>no parent id, returns all tasks </li> <li>*] qry limit = 50</li> </ol></ol> <li><strong>x] CUT - rem after LB#7 - test page.title to determine if ...</strong></li> <ol> <li>// @if (Page.Title="sospep.events.viewEventCalendarPlans"){parent_id=planId}; </li> <li>// parent_id=planId;</li> </ol> <li><strong>] TEST rem LB # 4 </strong></li> <ol> <li>] duplicating returns tasks in taskgroup, </li> <li>] TEST.results = </li> <ol> <li>view/tasks = PASS</li> <li>view/tasks?id=67 PASS</li> <li>qry/description=default PASS</li> <li>calendar PASS</li> </ol></ol> <li><strong>x] PRB 'Calendar-All NF' plan_id=000 Calendar</strong></li> <ol> <li>x] PG view/calendars - edit link, use qry code, qry=Find-Calendar, param=id_calendar</li> <li>x] ERROR - remove id=id, B/C parent_id was set and qry then went into wrong lb</li> <li>x] TEST REVISON = PASS</li> <li>x] TEST ALL(4) = PASS</li> <li><span style="background-color: #ffff99;">*] NO CHANGES here, OTHER THAN not using LB plan_id=000 or db.qry code </span></li> </ol> <li><strong>x] PRB 'Calendar-Journal'</strong></li> <ol> <li>x] CS Task - added static method 006-001, overriding TasksInCalender with 2 args (id_calendar, status), added qry which appends status to tasksInCalender qry, </li> <li>x] PG view/calendars - edit link to use qry logic, set status = Completed and pass to view/tasks</li> <li>x] PG view/tasks - added if block to switch block Find-Calendar, if status then use call with 2 args </li> </ol> <li><strong>x] PRB 'Calendar-TaskList(todo)</strong></li> <ol> <li>x] PG view/calendars - edit link to use qry logic, set status = 'ToDo' and pass to view/tasks</li> </ol> <li><strong>x] PRB 'Calendar-InProcess</strong></li> <ol> <li>x] PG view/calendars - edit link to use qry logic, set status = 'InProcess' and pass to view/tasks</li> </ol> <li><strong>x] CUT</strong></li> <ol> <li>x] LOGIC Block 4</li> <li>x] js snippet for load "stats bar</li> </ol> <li><strong>x] 2013-10-18 -</strong></li> <ol> <li>] REPLACED edit link to "edit contents" page with link to view/{page} &mode=edit</li> </ol> <li><strong>? x] 2014-02-13 -</strong></li> <ol> <li>] add library name to ViewTitle, *] now included in title</li> </ol> <li><strong>i] 2014-02-27 -</strong></li> <ol> <li>] MIGRATION FIX PRB title - from @Session to Session</li> </ol> <li><strong>x] 2014-03-03 -</strong></li> <ol> <li>] MIGRATION FIX PRB title - from @Session to Session</li> </ol> <li><strong>x] 2014-03-03</strong><ol> <li>] FIX PRB# 3543 - @Session VS Session,</li> <li>] 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</li> </ol></li> <li><strong>x] 2014-03-20</strong></li> <ol> <li>] FEATURE# # - PAGINATION </li> <li>- add params to each qry (2) </li> </ol> <li><strong>x] 2014-04-15</strong></li> <ol> <li>] navHeader L2 title, incomplete use linked version</li> </ol></ol> <h2>[next]</h2> <ol> <li>] function to check and redirect in switch statement</li> </ol> <div> <div>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</div> <div>x] 2014-05-20 FIX-PRB-3994 - find/'name' -not finding results</div> <div>i] 2015-08-12 UPDATE - align list format with other L4 lists</div> <div>x] 2016-08-16 - FEATURE-3670-PAGINATION - UPDATE-011 - return to same page in set - ADD startpage=# parameter to "edit links"</div> <div>x] 2016-08-20 - FIX-PRB-6386 - copy record - redirect invalid - EDIT link on each listed task, remove </div> <div>x] 2016-09-03 - FIX-PRB-6420 - after copy record, does not return to correct page in set</div> </div> <div><hr /></div> <div>scrap </div> <div> <div>@* ] 2013-10-17 ] view/tasks</div> <div>- return all is executing b/c </div> <div>*@</div> </div> <div> <div> @*</div> <div> // 10-17 LOGIC - to build qry's IF no parent_id </div> <div> if (!parent_id.IsEmpty()){ </div> <div> //ch = new Chapter(parent_id.AsInt());</div> <div> Page["tasks"] = Task.GetAllTasks();</div> <div> }</div> <div> > REPLACED with below, moved to last case, ADDed TEST for null on above if/else statement</div> <div> *@</div> </div> <div> <div> </div> <pre><script type="text/javascript" ></pre> <pre> </pre> <pre>$(document).ready( </pre> <pre> $("#statsBar").click( function(){</pre> <pre> alert ("load stats bar");</pre> <pre> $("#statsBar").load();})</pre> <pre> );</pre> <pre></script></pre> <pre> </pre> <pre><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 </pre> <pre> $("#toggleEditor").click(); } }); </script></pre> <div> </div> </div>