locked
Why Store Reported Day and Not the Day Worked? RRS feed

  • Question

  • User1627988815 posted

    On the Log your hours page the panel displays the words "Week Ending:" but there isn't a way to select the week. The calendar pop-up allows you to select any day, but doesn't seem to store that day, it stores the "Reported Day." What am I missing? I'd like to select a week and then enter hours worked for each day.

    Saturday, September 13, 2008 4:42 PM

Answers

  • User1485238302 posted

    It is a bit weird but you can easily fix it. Go to the TimeEntry.aspx.cs or TimeEntry.aspsx.vb page (whichever language you are using), there should be a function called AddEntry(). Just change DateTime.Now to WeekEnding2.Text where that value is used. 

    TimeEntry timeEntry = new TimeEntry(Page.User.Identity.Name, Convert.ToInt32(CategoryList.SelectedValue), Convert.ToDecimal(Hours.Text), WeekEnding2.Text, UserList.SelectedValue
     
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, September 14, 2008 12:11 AM

All replies

  • User1485238302 posted

    It is a bit weird but you can easily fix it. Go to the TimeEntry.aspx.cs or TimeEntry.aspsx.vb page (whichever language you are using), there should be a function called AddEntry(). Just change DateTime.Now to WeekEnding2.Text where that value is used. 

    TimeEntry timeEntry = new TimeEntry(Page.User.Identity.Name, Convert.ToInt32(CategoryList.SelectedValue), Convert.ToDecimal(Hours.Text), WeekEnding2.Text, UserList.SelectedValue
     
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, September 14, 2008 12:11 AM
  • User1627988815 posted

    Thanks bullpit ... (had to convert WeekEnding2.Text to a DateTime type)

    Sunday, September 14, 2008 1:33 PM
  • User1485238302 posted

    Thanks bullpit ... (had to convert WeekEnding2.Text to a DateTime type)

    Yup...that too. Please close this thread if your problem is solved by marking the helpful post as answer.

    Sunday, September 14, 2008 2:36 PM
  • User555306248 posted

    Yes you have to convert

    (DateTime)WeekEnding2.Text

    Wednesday, September 17, 2008 11:25 PM