Пример #1
0
        static void Main(string[] args)
        {
            TaskMain main = new TaskMain();

            main.Start().Wait();
            Console.Read();
        }
Пример #2
0
 private void MainForm_Load(object sender, EventArgs e)
 {
     FrmMgr.RegisterContainer(this.panel2);
     FrmMgr.Show("MainRunForm");
     TaskMain.Init();
     LoginBtn.DoubleClick += LoginBtn_DoubleClick;
     ConfigSpace.ConfigHandle.Instance.Load();
     Alarm.Canshowmessage = true;
 }
Пример #3
0
        public void SaveOrUpdateCollectionInDB_Test2()
        {
            IList <ITask> taskMainCollection = new List <ITask>();
            ITask         taskMainParent1    = new TaskMain()
            {
                TaskID = "TaskParent1", Source = Sources.DataBase
            };
            ITask taskMainParent2 = new TaskMain()
            {
                TaskID = "TaskParent1", Source = Sources.Trello
            };
            User         user1     = new User("user1");
            User         user2     = new User("user2");
            IList <User> assigned1 = new List <User>()
            {
                user1, user2
            };
            IList <User> assigned2 = new List <User>()
            {
                user2, user1
            };

            ITask taskMain1 = new TaskMain()
            {
                TaskID = "Task1", SubtaskType = "a", Summary = null, Description = "cc", Status = "e", Source = Sources.DataBase, TaskParent = taskMainParent1, Assigned = assigned1
            };
            ITask taskMain2 = new TaskMain()
            {
                TaskID = "Task1", SubtaskType = "a", Summary = null, Description = "cc", Status = "f", Source = Sources.Trello, TaskParent = taskMainParent2, Assigned = assigned2
            };
            ITask taskMain3 = new TaskMain()
            {
                TaskID = "Task1", SubtaskType = "a", Summary = "b", Description = "d", Status = "g", Source = Sources.Excel, TaskParent = null, Assigned = assigned1
            };
            ITask taskMain4 = new TaskMain()
            {
                TaskID = "TaskParent3", Source = Sources.GoogleSheets
            };

            taskMainCollection.Add(taskMainParent1);
            taskMainCollection.Add(taskMain1);
            taskMainCollection.Add(taskMain2);
            taskMainCollection.Add(taskMain3);
            taskMainCollection.Add(taskMain4);
            taskMainCollection.Add(taskMainParent2);

            IMatchTasks taskMatcher = new MatchTasksById();

            TaskMain.MatchTasks(taskMainCollection, taskMatcher);

            IList <TaskMainDAO> taskMainDaoCollection = ConverterDomainToDAO.TaskMainToTaskMainDAO(taskMainCollection);

            TaskMainDAO.SaveOrUpdateCollectionInDB(taskMainDaoCollection);

            //GetTrackerServices.GetTrackerServicesSoapClient services = new GetTrackerServices.GetTrackerServicesSoapClient();
            //GetTrackerServices.TaskMainDTO[] taskMainDTO = services.GetMatchedTasks("Task1", GetTrackerServices.Sources.DataBase);
        }
Пример #4
0
 /// <summary>
 /// 添加任务到dic中
 /// </summary>
 /// <param name="nTaskId"></param>
 public void AddTaskGoTo(int nTaskId)
 {
     if (!this.m_dicTaskGoToInfo.ContainsKey(nTaskId))
     {
         TaskGoToBase taskGoToBase = null;
         TaskMain     dataById     = TaskMainManager.Instance.GetDataByID(nTaskId);
         if (dataById != null)
         {
             taskGoToBase = this.AddTaskGoTo(dataById.GoTo);
         }
         if (taskGoToBase != null)
         {
             this.m_dicTaskGoToInfo.Add(nTaskId, taskGoToBase);
         }
     }
 }
Пример #5
0
 public void Start()
 {
     _taskStart = new TaskMain();
     _taskStart.Start().Wait();
 }
Пример #6
0
        public void SaveOrUpdateCollectionInDB_Test3()
        {
            User         user1     = new User("user1");
            User         user2     = new User("user2");
            IList <User> assigned1 = new List <User>()
            {
                user1, user2
            };
            IList <User> assigned2 = new List <User>()
            {
                user2, user1
            };

            #region Tasks

            ITask taskMainParent1 = new TaskMain()
            {
                TaskID        = "TaskParent1",
                SubtaskType   = "fhdhfd",
                Summary       = "1MOL - Patient Group - Pedigree chart - Dupligcation of patients after press 'Rebuild' in read mode",
                Description   = @"6MOL - Patient Group - Pedigree chart - Duplication of patients after press 'Rebuild' in read mode6MOL - Patient Group
Pedigree chart - Duplication of patients after press 'Rebuild' in read mode6MOL - Patient 
Group - Pedigree chart - Duplication of patients after press 'Rebuild' in read mode6MOL - 
Patient Group - Pedigree chart - Duplication of patients after press 'Rebuild' in read mode",
                Status        = "Impletmented",
                Priority      = "urgrent",
                Product       = "SoftMol",
                Project       = "12345d67789",
                CreatedDate   = "1x2121212",
                CreatedBy     = "fgceg",
                Source        = Sources.DataBase,
                Estimation    = "121v21212",
                TargetVersion = "5634n3276",
                Comments      = "1Pedigree chart - Duplication of patients after press",
                TaskParent    = null,
                Assigned      = assigned1
            };

            ITask taskMainParent2 = new TaskMain()
            {
                TaskID        = "TaskParent1",
                SubtaskType   = "fhdhfd",
                Summary       = "2MOL - Patient Group - Pedigree chart - Duplication of patients after press 'Rebuild' in read mode",
                Description   = @"5MOL - Patient Group - Pedigree chart - Duplication of patients after press 'Rebuild' in read mode
Pedigree chart - Duplication of patients after press 'Rebuild' in read mode6MOL - Patient 
Group - Pedigree chart - Duplication of patients after press 'Rebuild' in read mode6MOL - 
Patient Group - Pedigree chart - Duplication of patients after press 'Rebuild' in read mode",
                Status        = "Implemenlted",
                Priority      = "urgjent",
                Product       = "SofgtMol",
                Project       = "1234d567789",
                CreatedDate   = "121s21212",
                CreatedBy     = "fgseg",
                Source        = Sources.Trello,
                Estimation    = "1212c1212",
                TargetVersion = "5e6343276",
                Comments      = "2Pedigree chart - Duplication of patients after press",
                TaskParent    = null,
                Assigned      = null
            };

            ITask taskMainParent3 = new TaskMain()
            {
                TaskID        = "TaskParent1",
                SubtaskType   = "fhdhfd",
                Summary       = "3MOL - Patient Group - Pedigree chart - Duplication of patients after press 'Rebuild' in read mode",
                Description   = @"4MOL - Patient Group - Pedigree chart - Duplication of patients after press 'Rebuild' in read mode
Pedigree chart - Duplication of patients after press 'Rebuild' in read mode6MOL - Patient 
Group - Pedigree chart - Duplication of patients after press 'Rebuild' in read mode6MOL - 
Patient Group - Pedigree chart - Duplication of patients after press 'Rebuild' in read mode",
                Status        = "Implemfented",
                Priority      = "urggfent",
                Product       = "Soft4Mol",
                Project       = "12345567789",
                CreatedDate   = "121t21212",
                CreatedBy     = "fgfceg",
                Source        = Sources.Excel,
                Estimation    = "121j21212",
                TargetVersion = "563k43276",
                Comments      = "3Pedigree chart - Duplication of patients after press",
                TaskParent    = null,
                Assigned      = assigned2
            };

            ITask taskMain1 = new TaskMain()
            {
                TaskID        = "Task1",
                SubtaskType   = "fhdhfd",
                Summary       = "4MOL - Patient Group - Pedigree chart - Duplication of patients after press 'Rebuild' in read mode",
                Description   = @"3MOL - Patient Group - Pedigree chart - Duplication of patients after press 'Rebuild' in read mode
Pedigree chart - Duplication of patients after press 'Rebuild' in read mode6MOL - Patient 
Group - Pedigree chart - Duplication of patients after press 'Rebuild' in read mode6MOL - 
Patient Group - Pedigree chart - Duplication of patients after press 'Rebuild' in read mode",
                Status        = "Impleemented",
                Priority      = "urdgent",
                Product       = "SofdtMol",
                Project       = "123x4567789",
                CreatedDate   = "121c21212",
                CreatedBy     = "fgveg",
                Source        = Sources.DataBase,
                Estimation    = "121b21212",
                TargetVersion = "563nu43276",
                Comments      = "4Pedi7gree chart - Duplication of patients after press",
                TaskParent    = taskMainParent1,
                Assigned      = assigned1
            };

            ITask taskMain2 = new TaskMain()
            {
                TaskID        = "Task1",
                SubtaskType   = "fhdhfd",
                Summary       = "5MOL - Patient Group - Pedigree chart - Duplication of patients after press 'Rebuild' in read mode",
                Description   = @"2MOL - Patient Group - Pedigree chart - Duplication of patients after press 'Rebuild' in read modePedigree chart - Duplication of patients after press 'Rebuild' in read mode6MOL - Patient 
Group - Pedigree chart - Duplication of patients after press 'Rebuild' in read mode6MOL - 
Patient Group - Pedigree chart - Duplication of patients after press 'Rebuild' in read mode",
                Status        = "Implemfented",
                Priority      = "urghent",
                Product       = "SofgtMol",
                Project       = "123456j7789",
                CreatedDate   = "1212k1212",
                CreatedBy     = "fgleg",
                Source        = Sources.Trello,
                Estimation    = "12121;212",
                TargetVersion = "5634'3276",
                Comments      = "5Pedigree chart - Duplication of patients after press",
                TaskParent    = taskMainParent2,
                Assigned      = null
            };

            ITask taskMain3 = new TaskMain()
            {
                TaskID        = "Task1",
                SubtaskType   = "fhdhfd",
                Summary       = "6MOL - Patient Group - Pedigree chart - Duplication of patients after press 'Rebuild' in read mode",
                Description   = @"1MOL - Patient Group - Pedigree chart - Duplication of patients after press 'Rebuild' in read mode
Pedigree chart - Duplication of patients after press 'Rebuild' in read mode6MOL - Patient 
Group - Pedigree chart - Duplication of patients after press 'Rebuild' in read mode6MOL - 
Patient Group - Pedigree chart - Duplication of patients after press 'Rebuild' in read mode",
                Status        = "Imp3lemented",
                Priority      = "urg4ent",
                Product       = "SoftM5ol",
                Project       = "12345667789",
                CreatedDate   = "121721212",
                CreatedBy     = "fg8eg",
                Source        = Sources.Excel,
                Estimation    = "121291212",
                TargetVersion = "563403276",
                Comments      = "6Pedigree chart - Duplication of patients after press",
                TaskParent    = taskMainParent3,
                Assigned      = assigned2
            };

            #endregion

            IList <ITask> taskMainCollection = new List <ITask>();
            taskMainCollection.Add(taskMain1);
            taskMainCollection.Add(taskMain2);
            taskMainCollection.Add(taskMain3);
            taskMainCollection.Add(taskMainParent1);
            taskMainCollection.Add(taskMainParent2);
            taskMainCollection.Add(taskMainParent3);

            IMatchTasks taskMatcher = new MatchTasksById();
            TaskMain.MatchTasks(taskMainCollection, taskMatcher);

            IList <TaskMainDAO> taskMainDaoCollection = ConverterDomainToDAO.TaskMainToTaskMainDAO(taskMainCollection);
            TaskMainDAO.SaveOrUpdateCollectionInDB(taskMainDaoCollection);

            GetTrackerServices.GetTrackerServicesSoapClient services = new GetTrackerServices.GetTrackerServicesSoapClient();
            GetTrackerServices.TaskMainDTO[] taskMainDTO             = services.GetMatchedTasks("Task1", GetTrackerServices.Sources.DataBase);
        }
Пример #7
0
 public LogicStatus()
 {
     this.Logic = new TaskMain();
 }