From 8505fdcc92577a9c13d6086729c81b23c57b75ee Mon Sep 17 00:00:00 2001
From: client_Zxw <826696702@qq.com>
Date: 星期二, 04 九月 2018 19:16:48 +0800
Subject: [PATCH] 3240 前端 主界面任务显示和自动选中逻辑修改

---
 System/MainInterfacePanel/TaskListTip.cs |   18 ++++--------------
 1 files changed, 4 insertions(+), 14 deletions(-)

diff --git a/System/MainInterfacePanel/TaskListTip.cs b/System/MainInterfacePanel/TaskListTip.cs
index 4e93eb6..2082239 100644
--- a/System/MainInterfacePanel/TaskListTip.cs
+++ b/System/MainInterfacePanel/TaskListTip.cs
@@ -200,7 +200,7 @@
         {
             TaskScheduling();    
             TheTaskToGenerate();
-            TaskJump(_id);
+            TaskJump();
         }
 
         private void SetLength()
@@ -422,22 +422,12 @@
             return mapConfig != null && mapConfig.MapFBType != 0;
         }
 
-        private void TaskJump(int TaskID=0)
+        private void TaskJump()
         {
             int type = 0;
-            if (TaskID == 0)
+            if (_list.Contains(taskmodel.TaskupToDate))
             {
-                if (_list.Contains(taskmodel.TaskupToDate))
-                {
-                    type = _list.IndexOf(taskmodel.TaskupToDate);
-                }         
-            }
-            else
-            {
-                if (_list.Contains(TaskID))
-                {
-                    type = _list.IndexOf(TaskID);
-                }           
+                type = _list.IndexOf(taskmodel.TaskupToDate);
             }
             if (_list.Count <= 2 || type <= 0)
             {

--
Gitblit v1.8.0