Welcome! My name is ArmNo. I'm computer engineering student of Chiang Mai University, Thailand. This blog is about my internship program summer 2009. Enjoy!

Daily Note 05.06.2009

05.06.2009
    0900 – arrived @ office
    0922 – start notepad++
    [doing]        conflict check for same task input for each day.
    [done]        a day within >1 report details
    0925 – upgrade Tequila Framework
    0958 – Tequila upgraded, with some error message in Core Framework
    1008 – cannot clone webtimesheet project from local directory
    1013 – Q1=> where ‘temp/xml_definition/xml_def.xml’ located? => it should created by itself. check write permission
           Q2=> Fatal error in table relations page. => solved with Q1.
           Q3=> add my project to Tequila_Application ? => Yes. I’ve done.
    1019 – back to my work.. conflict check for adding task in a day.
    1209 – @TODO from big boss
    [done]        upgrade project (integrate with Tequila_Application using beyond compare)
    [done]        create a print css
    [done]        change a little screen view css
    [done]        change the data object
    [doing]        change the View to make new data object can be displayed.
    [pending]    represent forms understandable
                integrate input page with my calendars
    [pending]    ascii decoding/encoding
    1326 – back from lunch.
    1406 – change css for timesheet report.
    1449 – 344 is done, pending for boss’ comments
    1457 – create a print css.
    1644 – print css is almost finish. I should ask my boss for some advices.
    1649 – change the data model. working . . .
    1802 – data object has changed. Next, change the View.
    1827 – sent email.

email ประจำวัน #32

สวัสดีครับ
รายงานประจำวันที่ 06/05/2009 – Web Time Sheet (Tequila Framework)
สิ่งที่ทำวันนี้

  • upgrade Tequila Framework และรวม web time sheet project เข้ากับ Tequila Application (เวอร์ชั่นใหม่)
  • แก้ปัญหาวันที่มี report detail มากกว่า 1 detail ให้แสดงผลใน timesheet ได้อย่างถูกต้อง (จากเดิมที่มีช่องเกินมาหนึ่งช่อง) .. ซึ่งสาเหตุมาจากโค้ดส่วน View ผิด logic ครับ
  • ปรับปรุง css ของ timesheet
  • สำหรับเรื่อง export file เป็น pdf หรือ xls นั้น คุณ itzco แนะนำว่าไม่จำเป็นต้อง export ออกมาเป็นไฟล์ เพราะรูปแบบของ time sheet report (ที่เป็น screen report) นั้นอยู่ในรูปแบบ ready to print อยู่แล้ว และสามารถเขียน css สำหรับจัดรูปแบบของ timesheet สำหรับ print ออกมาโดยเฉพาะได้ .. ซึ่งก็ลองทำดูแล้วครับ ได้รูปแบบของ timesheet เมื่อ print ออกมาเหมือน timesheet จริง (ดูจาก print preview)
  • แก้ไข data object ให้แสดงผลใน View ทำได้ง่ายขึ้น (ทำให้ไม่ต้องเขียนโค้ดใน View ซับซ้อนเกินไป)

สิ่งที่ต้องทำ

  • แก้ไขโค้ดส่วน View เนื่องจาก data object เปลี่ยนแปลง
  • แสดงข้อมูล work report ใน calendar view

ขอบคุณครับ
อาม

Daily Note 05.04.2009

05.04.2009
    0900 – arrive @ office w/o my notebook.
    0915 – start notepad++
                ascii decoding/encoding
                generate report output as PDF, XLS, or else.
                integrate input page with my calendars
                conflict check for same task input for each day.
    [done]        renew input month input form in output page.
    [doing]        a day within >1 report details
    0920 – start re-design month input form.
    0924 – add default case of report month.
    0940 – f/0924. Next=> find new report input solution.
    0958 – f/0920. Next focus on 306.
    1134 – ???
    1156 – can display 2 tasks, but still not good.
    1200 – total hours depends on header, not detail
    1220 – corrected daily work hours (replace header work hour with real daily work hour)
    1232 – [BUG] a day w/o task but requested hour => be calculated in timesheet
    1401 – back from lunch
         – how could i know which day has more than 1 task?
    1445 – "if (something) then create this block"
    1528 – ?????
    1548 – it shows only the lastest…
    1656 – my problems are..
            -> a day within >1 report details
            -> data correction
            -> export as pdf or xls
            -> someone..
            -> myself ..
    1738 – conflict check -> if timefrom and timeto are between exsisted time of the same task.

email ประจำวัน #31

สวัสดีครับ
รายงานประจำวันที่ 04/05/2009 – Web Time Sheet
สิ่งที่ทำวันนี้

  • ทำฟอร์มเลือก report month ใหม่
  • แก้ปัญหาของ timesheet ตรงที่เมื่อมีมากกว่า 1 report detail ใน 1 วัน ให้แสดงผลได้ทุกๆ report detail ใน timesheet (จากเดิมที่ขึ้นมาเพียง report detail ล่าสุด) .. แต่พบปัญหาคือ วันที่มี report detail แสดงแถวว่างๆเกินมา 1 แถวอยู่ครับ
  • หาวิธี export เป็น pdf กับ xls .. ซึ่ง xls จะง่ายกว่า pdf เนื่องจาก tequila framework สามารถเลือกให้ทุกๆเพจ แสดงผลเป็น excel format ได้เลย แต่ว่า pdf ยังไม่มีครับ .. ลอง export ออกมาเป็น xls แล้วพบปัญหาคือ รูปแบบยังผิดไปจากที่ควรจะเป็นค่อนข้างมากอยู่ครับ (ล้นหน้ากระดาษออกไปมาก)
  • แก้บั๊กการคำนวน total hours ในแต่ละวัน เนื่องจากเดิมนั้นดึงข้อมูลมาผิด table

สิ่งที่ต้องทำ

  • export timesheet เป็นไฟล์
  • แก้บั๊กของ timesheet

ขอบคุณครับ
อาม

Daily Note 04.30.2009

04.30.2009
                ascii decoding/encoding
    [doing]        generate report output
                export as PDF, XLS, or else.
    [done]        remove week total => highlight weekend
                integrate input page with my calendars
                conflict check for same task input for each day.
    0943 – use timeCalculation class instead of some functions in DAO.           
    1111 – back pain T-T
    1114 – display tr only #lastdayofmonth times ..
    1128 – correct data but .. still a bug with a day which has >1 tasks
    1133 – tasks remained .. => 1. correct daylabel     [done]
                                2. 1128
                                3. month totals          [done]
                                4. footer table         [done]
                                5. weekend highlight    [done]
    1222 – finish correct month total hours and month ot. request hour.
            Next=> correct day labels
    1255 – finish 1222
    1412 – back from lunch. Next=> highlight Sat and Sun
    1444 – finish 1412. Next=> fix remain bugs.
    1451 – highlight month total… finish @ 1502
    1502 – style timesheet header
    1519 – finish basic style. Next=> JS function for resource selector.
    1545 – finish 1519.
    1557 – go for bug no.1128.. wait, add calendar for report selector
    1732 – focus on the things again…
            -> 1128 – a day within >1 report details
            -> Week total calculations (week sum, week ot.)
            -> month selector (for getting timesheet)     ** HIGHEST PRIORITY **
            -> exporting the report
    1802 – back home.

email ประจำวัน #30

สวัสดีครับ
รายงานประจำวันที่ 30/4/2009 – Web Time Sheet (Tequila Framework)
สิ่งที่ทำวันนี้

  • ทำหน้า output ของ time sheet .. ตอนนี้แสดงผลได้ถูกต้องเกือบทั้งหมดแล้วครับ สามารถเลือกแสดง time sheet จาก resource name และ เดือน-ปี ได้
  • ปรับปรุง interface ของ time sheet (แก้ template + css)

ปัญหาที่พบ

  • วันที่มี report detail มากกว่า 1 detail ยังแสดงผลใน time sheet ไม่ถูกต้อง คือยังขึ้นมาแค่อันเดียวอยู่ครับ
  • ฟอร์มเลือก report month ของ timesheet ยังใช้งานยากเพราะว่า time sheet ต้องเลือกแค่ เดือน กับ ปี แต่ว่าตอนนี้ยังเป็น datetime picker อยู่ครับ ยังไม่ได้เปลี่ยน ซึ่งใช้งานได้เหมือนกัน แต่ไม่ค่อย make sense ครับ

สิ่งที่ต้องทำ

  • ทำฟอร์มเลือก report month ใหม่
  • export time sheet เป็น pdf, xls, หรืออื่นๆ

ขอบคุณครับ
อาม

Daily Note 04.29.2009

04.29.2009
    @TODO
                ascii decoding/encoding
                generate report output
                integrate with my calendars
                conflict check for same task input in each day.
    [done]        add exception catch for 23:59
    [done]        unit test for input page
    1005 – wtf!
    1020 – continuing unit test for multiple resource_id input
    1026 – get wrong with new header_id. no header_id but in the template doesn’t change
    1051 – maybe a mistake is in getNewReport .. no, it’s in the Model
    1125 – 1026 is fixed.
    1153 – get a new bug. EAA tree in edit mode
    1215 – 1153 is fixed by changing sql criteria in Model. Next => start report output]
    1233 – found a bug. edit mode cannot select timeto of tomorrow
    1347 – back from lunch.
    1401 – 1233 is fixed by add an if case to check if timeto is tomorrow’s, then set timeto to 23:59
    1609 – working with timesheet_DAO
    1813 – got complete timesheet header

email ประจำวัน #29

สวัสดีครับ
รายงานประจำวันที่ 29/04/2009 – Web Time Sheet (Tequila Framework)
สิ่งที่ทำวันนี้

  • ทดสอบ input ข้อมูลของ add new mode
  • แก้บั๊กต่างๆของโปรแกรมที่พบระหว่างทำการทดสอบ input
  • สร้าง DAO และ VO ของ timesheet เพื่อทำงานใน viewReport mode (report output) .. ตอนนี้ report output แสดงข้อมูลที่เป็น header ของ timesheet ได้ครบแล้ว .. ยังเหลือส่วนที่เป็น detail ของแต่ละวันครับ

ปัญหาที่พบ

  • ในการ input .. เมื่อกด edit detail จะไม่สามารถเลือก timeto เป็นเวลาของวันพรุ่งนี้ได้ จึงเพิ่ม condition เมื่อเลือก timeto เป็นของวันพรุ่งนี้ ให้เปลี่ยนเป็น 23:59:59 แทน เพื่อให้การคำนวณเวลา และ insert ลง database ไม่เกิดข้อผิดพลาด .. ดังนั้นตอนนี้ถ้าต้องการ edit detail ของ report detail ที่มีช่วงเวลาคาบเกี่ยวระหว่าง 2 วัน ต้องกด edit detail เอาทีละวันครับ

สิ่งที่ต้องทำ

  • แสดง report detail ในหน้า timesheet ให้ถูกต้อง

ขอบคุณครับ
อาม

Daily Note 04.28.2009

04.28.2009

    @TODO
    [done]        add blank value for option[0]
                ascii decoding/encoding
                generate report output
    [done]        change datetimeto label into timeto
    [done]        make input form more beautiful
    [done]        make a close button for input form (that will calls function toggle)
    [done]        change effect after save ot. request hours (display only ’saved’ message)
                integrate with my calendars
                conflict check for same task input in each day.
    [done]        use function clearList to clear selector
    1007 – found a bug .. response of ot.request is null => fixed @ 1011
    1011 – found a bug on saveRecord.. save header, not save detail
    1030 – 1011 is fixed. Next, continue add report detail
    1622 – doing new received task
    1636 – finish task 231 by change AJAXJsonAction into AJAXTextAction
    1721 – finish task 234 by add some IF cases
    1815 – almost finish for report input page

email ประจำวัน #28

สวัสดีครับ
รายงานประจำวันที่ 28/4/2009 – Web Time Sheet (Tequila Framework)
สิ่งที่ทำวันนี้

  • เพิ่ม default option ให้แต่ละ project selector .. เนื่องจากเคยมีปัญหาเกี่ยวกับการ load child task มาไว้ใน selector ที่ต้องใช้ onchange event handler จึงใส่ default value เอาไว้ในทุกๆ selector เพื่อ force ให้เกิด onchange ครับ .. ส่วนสาเหตุที่พอกดเลือก project แล้วไม่สามารถ display ทั้ง task type และ task พร้อมกันได้ เนื่องจากตัว task ต้องใช้ selected value จาก task type .. แต่ task type นั้นได้จาก onchange event ของ project ทำให้ค่า selected value ของ tasktype มีค่าเป็นในตอนแรก null  .. ตัว task selector จึงแสดงผลไม่ถูกต้องครับ .. คุณ itzco เลยแนะนำให้ใช้วิธีนี้แทน
  • คุณ itzco จัดรูปแบบ template ของหน้า input ให้ใหม่ รวมถึง css ให้สวยงาม และเข้าใจง่ายยิ่งขึ้น หลังจากนั้นจึงให้ผมแก้ไข labels, images และ เก็บรายละเอียดให้เรียบร้อยครับ ซึ่งตอนนี้หน้า report input เกือบจะเสร็จแล้ว ยังเหลือการเช็คความถูกต้องของข้อมูลส่วนต่างๆครับ
  • แก้บั๊กของการ save o.t. request ที่ขึ้น error ให้เห็นใน firebug เพราะว่าใช้ ajax call ผิดรูปแบบ

ปัญหาที่พบ

  • อัพเกรดเวอร์ชั่นของ framework ไม่ถูกวิธี ทำให้ตัว page generator ยังเป็นเวอร์ชั่นเก่าอยู่ (แต่ไม่มีปัญหากับการใช้งาน).. คุณ itzco ให้รอเวอร์ชั่นใหม่ (วันนี้) แล้วค่อยอัพเดททีเดียวเลยครับ

สิ่งที่ต้องทำ

  • report output

ขอบคุณครับ
อาม