public ExternalServicePageViewModel(aladdinService.Task activeTask) { this.ActiveTask = activeTask; if (this.ActiveTask != null && this.ActiveTask.URL != null) { this.Url = this.ActiveTask.URL; this.Text = this.ActiveTask.Text; using (aladdinService.StorageComponentImplService sc = new aladdinService.StorageComponentImplService()) { aladdinService.OperationResult taskChangeStatus = sc.ChangeTaskStatus(Convert.ToInt32(this.ActiveTask.ID), (int)Config.TaskStatusEnum.Completed, App.CurrentUserID); } } }
public WizardPageViewModel(aladdinService.Task activeTask) { this.ActiveTask = activeTask; if (this.ActiveTask != null) { aladdinService.Questionnaire qFS = this.ActiveTask.Questionnaire; this.Questionnaire = Questionnaire.FromFile(@"DailyQuestionnaire.xml"); //Utils.Convert(qFS);// Questionnaire.FromFile(@"DailyQuestionnaire.xml"); this.QuestionnaireAnswers = new QuestionnaireAnswers(); this.QuestionnaireWizard = new QuestionnaireWizard(this.Questionnaire, this.QuestionnaireAnswers); this.QuestionnaireWizard.ActivePageChanged += new ClientApplication.QuestionnaireWizard.ActivePageChangedEventHandler(QuestionnaireWizard_ActivePageChanged); this.QuestionSummaryVisibility = Visibility.Visible; this.UpdateQuestionInfo(); } }
/// <summary> /// /// </summary> /// <param name="activeTask"></param> public MeasureBloodPressureViewModel(aladdinService.Task activeTask) { this.ActiveTask = activeTask; }
/// <summary> /// /// </summary> /// <param name="activeTask"></param> public MeasureWeightViewModel(aladdinService.Task activeTask) { this.ActiveTask = activeTask; }