public EventTaskInstanceInfoViewModel()
 {
     this.EventSchduleClassId             = Wj1090Module.Services.MenuIdAssgin.EventSchduleNavTaskWj1090LduEventScheduleViewId;
     this.EventSchduleInstanceDescription = "No Description";
     this.EventSchduleInstanceId          = -1;
     this.EventSchduleInstanceName        = "Not Set";
     this.EventSchduleViewId         = Wj1090Module.Services.ViewIdAssign.Wj1090LduEventScheduleViewId;
     this.EventSchduleInstanceDetail = "No Detail";
     EventSchedule            = new Wlst.client.EventSchedule();
     this.CreateTime          = DateTime.Now.Ticks;
     this.CreateUserName      = UserInfo.UserLoginInfo.UserName;
     this.NextExcuteTime      = 0;
     this.AlreadyExcutedTimes = 0;
 }
        public void NavOnLoad(params object[] parsObjects)
        {
            Visi = Visibility.Visible;
            if (parsObjects.Length > 0)
            {
                var vInstance = parsObjects[0] as Wlst.client.EventSchduleTaskInstanceInfo;

                // IIEventSchduleTaskInstance vInstance = parsObjects[0] as IIEventSchduleTaskInstance;
                if (vInstance != null)
                {
                    int insId = vInstance.EventSchduleInstanceId;
                    this.RequsetPartolEventTaskInstanceInfo(insId);
                }
                else
                {
                    this.EventSchduleClassId             = Wj1090Module.Services.MenuIdAssgin.EventSchduleNavTaskWj1090LduEventScheduleViewId;
                    this.EventSchduleInstanceDescription = "No Description";
                    this.EventSchduleInstanceId          = -1;
                    this.EventSchduleInstanceName        = "Not Set";
                    this.EventSchduleViewId         = Wj1090Module.Services.ViewIdAssign.Wj1090LduEventScheduleViewId;
                    this.EventSchduleInstanceDetail = "No Detail";
                    EventSchedule            = new Wlst.client.EventSchedule();
                    this.AlreadyExcutedTimes = 0;
                    //todo
                }
            }
            else
            {
                this.EventSchduleClassId             = Wj1090Module.Services.MenuIdAssgin.EventSchduleNavTaskWj1090LduEventScheduleViewId;
                this.EventSchduleInstanceDescription = "No Description";
                this.EventSchduleInstanceId          = -1;
                this.EventSchduleInstanceName        = "Not Set";
                this.EventSchduleViewId         = Wj1090Module.Services.ViewIdAssign.Wj1090LduEventScheduleViewId;
                this.EventSchduleInstanceDetail = "No Detail";
                EventSchedule            = new Wlst.client.EventSchedule();
                this.AlreadyExcutedTimes = 0;
                //todo
            }
            // this.LoadNode();
            //this.IsShowLuxImageOnJpegMap = Setting.IsShowLuxImageOnJpegMap;
        }