コード例 #1
0
 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);
         }
     }
 }
コード例 #2
0
 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();
     }
 }
コード例 #3
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="activeTask"></param>
 public MeasureBloodPressureViewModel(aladdinService.Task activeTask)
 {
     this.ActiveTask = activeTask;
 }
コード例 #4
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="activeTask"></param>
 public MeasureWeightViewModel(aladdinService.Task activeTask)
 {
     this.ActiveTask = activeTask;
 }