예제 #1
0
        public QSections(DCAnalytics.ObjectType objectType, Questionaire _questionaire, QuestionairePageState questionairePageState = null, Certification _certification = null, FieldInspection _fieldInspection = null)
        {
            InitializeComponent();
            controls                   = new UIControls(this);
            ObjectType                 = objectType;
            selectPageState            = this;
            promptPageState            = this;
            picturePageState           = this;
            locationPageState          = this;
            questionaire               = null;
            questionaire               = _questionaire;
            FieldInspection            = _fieldInspection;
            certification              = _certification;
            Title                      = questionaire.Name;
            this.questionairePageState = questionairePageState;
            sectionViews               = new List <SectionView>();
            _questionaireStatus        = string.IsNullOrEmpty(questionaire.Key) ? QuestionaireStatus.Create : QuestionaireStatus.Modify;
            _dbManager                 = new DatabaseManager();
            user          = AiDataStore.GetUser();
            configuration = AiDataStore.GetConfiguration();
            isValid       = true;

            Sections.Clear();
            Sections = (FieldInspection != null) ?
                       FieldInspection.Sections:
                       (certification != null) ?
                       certification.Sections:
                       questionaire.Sections;
            dependencies.Clear();
            navigatedTargetSections.Clear();
            controls.targets.Clear();
            Init();
        }
예제 #2
0
 public SelectCategory(Questionaire Questionaire, QuestionairePageState questionairePageState)
 {
     InitializeComponent();
     this.questionairePageState = questionairePageState;
     this.Questionaire          = Questionaire;
     Init();
 }
예제 #3
0
 public Questionaires(DCAnalytics.ObjectType objectType, QuestionairePageState questionairePageState = null, string Title = null)
 {
     InitializeComponent();
     ObjectType = objectType;
     if (!string.IsNullOrEmpty(Title))
     {
         this.Title = Title;
     }
 }
예제 #4
0
 public SelectQuestionaire(Configuration configuration, QuestionairePageState questionairePageState)
 {
     InitializeComponent();
     this.questionairePageState = questionairePageState;
     this.configuration         = configuration;
     if (configuration != null)
     {
         Init();
     }
 }
예제 #5
0
 public Trainees(Configuration configuration, Models.Training training, QuestionairePageState questionairePageState)
 {
     InitializeComponent();
     this.questionairePageState = questionairePageState;
     this.configuration         = configuration;
     this.training = training;
     if (configuration != null)
     {
         Init();
     }
 }
예제 #6
0
 public Starter(Questionaire Questionaire, SelectPageState selectPageState = null, QuestionairePageState questionairePageState = null)
 {
     InitializeComponent();
     this.Questionaire          = Questionaire;
     this.questionairePageState = questionairePageState;
 }