Profile豆浆油条BlogLists Tools Help
    October 19

    10-19

    昨天的问题已经通过过滤date而解决了,今天也实现了彻底的dnd,把应用在timeview上的vscrollbar也用在这上边了。
    Z轴深度的问题还是没有解决,拖动的时候会让选中的event看起来跑到界外边,看起来很奇怪。
    接下来想研究event.lzx,也许可以让event条看起来更生动。
    我希望用颜色表示event的状态、类型、级别
     
    日期的问题,我先前想错了,从服务器给客户端的只能是year,month,day,hour,min,sec几个值,这样做一方面可以很容易从xpath映射到对象上,不用中间写解析long值得问题,另一方面,假如某人设定了'8点中起床'的任务,不会因为时区改变而改变,变成NY的20点钟,etc,.
    而另一种event也许是需要站在绝对时间的立场上考虑的,就是拿一个时刻点,不管你在那个时区,它离格林尼治时间就是那么多,这也是有可能的……
    另一个更严重的问题是,如果服务器从中国搬到了美国,那么所有人的所有event都迟了或者遭了半天,……
    所以我仍然有个想法是保存客户的timezone信息,而这个在我设计cronExpression的时候已经加进去了,后来还不知道是不是需要,如今看来是很需要的。
     
    这样看来,用户的意念会有两种,相对的和绝对的,而绝对的需要知道设定此时间的确切时区或者timezoneOffset。
    而客户请求的时候自然是要带着自身的timezone信息去请求的,如果是绝对的可以忽略此信息,而相对的就要使用此timezone耦合出用户需要的时间。
     
    嗯……这样看似是可行的吧。那么需要决定这场计算的生命期,用户每秒钟绕地球7圈的话,哪一样是无解的命题。
    要下班啦,明天想。
     

    Comments

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.

    To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in


    Don't have a Windows Live ID? Sign up

    Trackbacks

    The trackback URL for this entry is:
    http://b051.spaces.live.com/blog/cns!9E2D0BC71827D4E9!231.trak
    Weblogs that reference this entry
    • None