public AnswerTemplate(MovilizerAnswer answer) { _answer = SerializeHelper.CloneObject(answer); // extract answer items _answerItems = new List <AnswerItemTemplate>(); MovilizerAnswerItem[] answerItems = _answer.item; if (answerItems != null) { foreach (MovilizerAnswerItem answerItem in answerItems) { _answerItems.Add(new AnswerItemTemplate(answerItem)); } } }
//Dictionary<string, AnswerTemplate> _restrictions; //Dictionary<string, AnswerTemplate> _validations; public QuestionTemplate(MovilizerQuestion question) { _question = SerializeHelper.CloneObject(question); // extract answers _answers = new List <AnswerTemplate>(); MovilizerAnswer[] answers = _question.answer; if (answers != null) { foreach (MovilizerAnswer answer in answers) { _answers.Add(new AnswerTemplate(answer)); } } }
public MoveletTemplate(MovilizerMovelet movelet) { _movelet = SerializeHelper.CloneObject(movelet); // extract questions _questions = new List <QuestionTemplate>(); MovilizerQuestion[] questions = _movelet.question; if (questions != null) { foreach (MovilizerQuestion question in questions) { _questions.Add(new QuestionTemplate(question)); } } }
public MasterdataUpdateTemplate(MovilizerMasterdataUpdate masterdataUpdate) { _masterdataUpdate = SerializeHelper.CloneObject(masterdataUpdate); // extract entries _entries = new List <MasterdataEntryTemplate>(); MovilizerGenericDataContainerEntry[] entries = _masterdataUpdate.data; if (entries != null) { foreach (MovilizerGenericDataContainerEntry entry in entries) { _entries.Add(new MasterdataEntryTemplate(entry)); } } }
public PRViewModel() { InitIdCreater(); var studyinfo = new StudyInfoModel(); var patient = new PatientInfoModel(); studyinfo.AccessionNumber = "asdasd"; patient.PatientName = "juli.hu"; studyinfo.Patient = patient; StudyInfo = studyinfo; //调用此方法为了提前初始化jason类中的数据,以便该方法在第2次调用后速度更快 //该方法在第一次调用时很慢 SerializeHelper.CloneObject <StudyInfoModel>(new StudyInfoModel()); //订阅事件 eventAggregator = ServiceLocator.Current.GetInstance <IEventAggregator>(); eventAggregator.GetEvent <PaSelectChangeEvent>().Subscribe(PrStudyInfoChange); }
public DocumentUpdateTemplate(MovilizerDocumentUpdate documentUpdate) { _documentUpdate = SerializeHelper.CloneObject(documentUpdate); }
public MasterdataDeleteTemplate(MovilizerMasterdataDelete masterdataDelete) { _masterdataDelete = SerializeHelper.CloneObject(masterdataDelete); }
public ParticipantConfigurationTemplate(MovilizerParticipantConfiguration participantConfiguration) { _participantConfiguration = SerializeHelper.CloneObject(participantConfiguration); _attributeUpdates = new List <MovilizerAttributeEntry>(_participantConfiguration.attributeUpdate); }
public MasterdataReferenceTemplate(MovilizerMasterdataReference masterdataReference) { _masterdataReference = SerializeHelper.CloneObject(masterdataReference); }
public AnswerItemTemplate(MovilizerAnswerItem answerItem) { _answerItem = SerializeHelper.CloneObject(answerItem); }
public MasterdataEntryTemplate(MovilizerGenericDataContainerEntry masterdataEntry) { _masterdataEntry = SerializeHelper.CloneObject(masterdataEntry); }