Esempio n. 1
0
        private void ExtractArchiveList()
        {
            List <Record> recordlist = ArchiveDbReader.GetRecordList();

            completedTasks = new List <CompletedTask>();
            foreach (Record curRec in recordlist)
            {
                completedTasks.Add(new CompletedTask(curRec.Payload));
            }
        }
Esempio n. 2
0
        private void ExtractAllList()
        {
            userList      = new List <IfUser>();
            taskList      = new List <IfTask>();
            qlevelList    = new List <QLevel>();
            taskTypeList  = new List <TaskType>();
            procedureList = new List <Procedure>();
            stepList      = new List <ProcedureStep>();
            userGroupList = new List <UserGroup>();

            List <Record> recordlist;

            recordlist = DataReader.GetRecordList();
            foreach (Record curRec in recordlist)
            {
                switch (curRec.Type)
                {
                case "Customer":
                    userList.Add(new Customer(curRec.Payload));
                    break;

                case "ServiceUser":
                    userList.Add(new ServiceUser(curRec.Payload));
                    break;

                case "Engineer":
                    userList.Add(new Engineer(curRec.Payload));
                    break;

                case "Manager":
                    userList.Add(new Manager(curRec.Payload));
                    break;

                case "ProcedureTask":
                    taskList.Add(new ProcedureTask(curRec.Payload));
                    break;

                case "CustomTask":
                    taskList.Add(new CustomTask(curRec.Payload));
                    break;

                case "QLevel":
                    qlevelList.Add(new QLevel(curRec.Payload));
                    break;

                case "TaskType":
                    taskTypeList.Add(new TaskType(curRec.Payload));
                    break;

                case "Procedure":
                    procedureList.Add(new Procedure(curRec.Payload));
                    break;

                case "ProcedureStep":
                    stepList.Add(new ProcedureStep(curRec.Payload));
                    break;

                case "UserGroup":
                    userGroupList.Add(new UserGroup(curRec.Payload));
                    break;

                default:
                    break;
                }
            }
        }