Results 1 to 7 of 7

Thread: Project Status

  1. #1
    Join Date
    Dec 2002

    Project Status

    Dear gurus,
    I need help with a project I am working on.
    I am tasked with designing and developing a task tracking project. It tracks all projects that are currently going.
    For instance, if a project is signed off and tasks have been assigned to various individuals, then there is a tracking mechanism that tells at what stage the project is on and if there is a bottleneck, where that bottlenect is coming from.
    Now the database has been designed and table structures have been laid out.
    What I would need help on is coming up with a code that tells what stage a project is currently on.
    This is going to be graphically represented.
    For instance, it will be laid out like this:

    circle --> circle --> circle -->
    The above represent real circles each representing a particular task.
    Now if the project is currently on circle2, then we need to come up with something like a color that indicates that the project is currently on circle2.
    Can someone please give me a head start on this, assuming that I have not confused you.
    thanks in advance

  2. #2
    Join Date
    Dec 2002
    sorry, I forgot to indicate that the tasks, you already know will be time-driven
    For instance, if a task is assigned, an individual may be required to complete for say, 3 days.
    If completed, a date is automatically assigned.
    This part, I think I can handle.
    If the task is not completed within the giving timeframe, an email is sent out to the individual reminding him/her that task is past due.
    I hope someone is done something similar.
    I very new to this, so please forgive me.

  3. #3
    Join Date
    Nov 2002


    You can't do this using ASP.
    Try out the following
    1. Use Java Script.
    2. Try Tables instead of Circles.
    3. Change the Cell Background color.

    may be this could help you...


  4. #4
    Join Date
    Nov 2002
    I may have completely misunderstood what you were asking, but as for the circles bit and indicating what stage you were on, then i'd do it (probably very inefficiently!) by having two jpgs, green.jpg and red.jpg which are coloured circles. then i'd have an if clause in the asp that if there was a date for completion for that stage in (ie the job has been completed since the date has been entered, or even if today's date is greater than the date specified) then it outputs the green.jpg line (<img src='green.jpg'>). If not, then it does the red one.

    As for the emailing out etc, i would concur with sai, but again i may be wrong. As far as I'm aware, you've got to look at what's actually happening in IIS - all it does is run asp pages when they're requested, so it's good at things like making a page say "good morning" or "good afternoon" dfepending on the time of day. If you wanted something to email you every time it changed from morning to afternoon though, that would require it to be running full time, not just when it was asked for it. You could probably get it to email something if a condition was met, but again it relies on someone accessing that page - it doesnt run away in the background waiting for time markers to pass to see if it should be doing something at that particular time.

    Hope that helps,

  5. #5
    Join Date
    Dec 2002
    John and Sai, thank you!
    John, I have come up with something similar to your status explanation.
    I have also come up with a code that will send an email when deadline is missed.
    I am, however, having problem with it.
    Can anyone of you take a look, please?
    here is the entire code:

    I have been working on this now for two days and can seem to take my thought process any higher than it is right now.
    I need your help!
    I am trying to implement a task program whereby if you are given a certain task with a timeline to complete the task, if the deadline is not met, an email is to be sent to you as a reminder that your task is past the deadline.
    Right now, I am not getting any errors but it is not doing anything.
    Please take a look and see if you can help!

    <%@ language=vbscript %>

    <!-- #include file="adovbs.inc" -->

    ' Define variables
    Dim objConn, objRS
    Dim dtmCutoffDate
    Dim strCutoffDate

    ' Make sure the date format cannot be confused
    dtmCutoffDate = DateAdd("d",+1,Date)
    strCutoffDate = Day(dtmCutoffDate) & " " & MonthName(Month(dtmCutoffDate)) & _
    " " & Year(dtmCutoffDate)

    ' Create and setup connection object
    Set objConn = CreateObject("ADODB.Connection")
    objConn.Open "DSN=&&##@@"

    ' Retrieve tasks that are to be printed for missing due date
    Set objRS = CreateObject("ADODB.RecordSet")
    objRS.Open "SELECT * FROM tblNewsItems WHERE dueDate < '" & _
    strCutoffDate & "';", objConn, adOpenKeyset, adLockOptimistic, adCmdText

    if (cStr(Request("dueDate")) > enddate) Then
    dim MailObj
    set MailObj = Server.CreateObject("CDONTS.NewMail")
    MailObj.From = Request.Form("name")
    MailObj.To = "someone@yahoo.com"
    MailObj.Subject = "Your Task Is Past The Due Date"
    MailObj.Body = "Email was sent by: " & Request.Form("name") & vbcrlf & vbcrlf&_
    "someone@yahoo.com:" & vbcrlf&_
    set MailObj = nothing
    End If
    <form name="form1" method="post" action="">
    <input type="text" name="name">
    <input type="text" name="email">
    <input type="submit" name="Submit" value="Submit">

  6. #6
    Join Date
    Nov 2002
    my c skills aren't that great but i have a fair idea of what i'm doing, but wont that just do the email only if you run that page? I dont quite see how that solves your problem - that script will send an email if the item is overdue every time the page is run - so where is the page called from, and what's to stop the poor bugger who's overdue getting an email every two minutes as the page is re-run saying that the item is overdue?

    I'm quite interested to see how you're getting over this because it would be awfully useful for future use - sorry if i sound like the devil's advocate!

  7. #7
    Join Date
    Dec 2002
    you are precisely right!
    That code, after I modified it, would only run if I run it.
    What I have decided as a workaround, after pulling a few hair strands, is to write a stored procedure with T-SQL and then set up a job schedule that will execute t he stored proc ONLY if someone misses a deadline by a specified timeline.
    It is a great concept; my store procedure is already written and tested but the job scheduling is yet to be set up.
    I am confident that will do the trick.
    I had hoped to do it with asp but as you can see, i am not having any luck.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center



X vBulletin 4.2.2 Debug Information

  • Page Generation 0.10531 seconds
  • Memory Usage 2,893KB
  • Queries Executed 13 (?)
More Information
Template Usage (32):
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_global_above_footer
  • (1)ad_global_below_navbar
  • (1)ad_global_header1
  • (1)ad_global_header2
  • (1)ad_navbar_below
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)ad_thread_first_post_content
  • (1)ad_thread_last_post_content
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (7)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available (6):
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files (26):
  • ./showthread.php
  • ./global.php
  • ./includes/class_bootstrap.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/functions_navigation.php
  • ./includes/class_friendly_url.php
  • ./includes/class_hook.php
  • ./includes/class_bootstrap_framework.php
  • ./vb/vb.php
  • ./vb/phrase.php
  • ./includes/functions_facebook.php
  • ./includes/functions_calendar.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_notice.php
  • ./packages/vbattach/attach.php
  • ./vb/types.php
  • ./vb/cache.php
  • ./vb/cache/db.php
  • ./vb/cache/observer/db.php
  • ./vb/cache/observer.php 

Hooks Called (70):
  • init_startup
  • friendlyurl_resolve_class
  • init_startup_session_setup_start
  • database_pre_fetch_array
  • database_post_fetch_array
  • init_startup_session_setup_complete
  • global_bootstrap_init_start
  • global_bootstrap_init_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • load_show_variables
  • load_forum_show_variables
  • global_state_check
  • global_bootstrap_complete
  • global_start
  • style_fetch
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • strip_bbcode
  • friendlyurl_clean_fragment
  • friendlyurl_geturl
  • forumjump
  • cache_templates
  • cache_templates_process
  • template_register_var
  • template_render_output
  • fetch_template_start
  • fetch_template_complete
  • parse_templates
  • fetch_musername
  • notices_check_start
  • notices_noticebit
  • process_templates_complete
  • friendlyurl_redirect_canonical
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • memberaction_dropdown
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • build_navigation_data
  • build_navigation_array
  • check_navigation_permission
  • process_navigation_links_start
  • process_navigation_links_complete
  • set_navigation_menu_element
  • build_navigation_menudata
  • build_navigation_listdata
  • build_navigation_list
  • set_navigation_tab_main
  • set_navigation_tab_fallback
  • navigation_tab_complete
  • fb_like_button
  • showthread_complete
  • page_templates