From e54f6e22bb26fb06bdd407803f988b86b40df697 Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期二, 04 九月 2018 20:02:37 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
---
System/MainInterfacePanel/TaskListTip.cs | 15 ++++-----------
1 files changed, 4 insertions(+), 11 deletions(-)
diff --git a/System/MainInterfacePanel/TaskListTip.cs b/System/MainInterfacePanel/TaskListTip.cs
index 079668c..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,19 +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))
{
- type= _list.IndexOf(taskmodel.GetNowTaskID);
- }
- else
- {
- if (_list.Contains(TaskID))
- {
- type = _list.IndexOf(TaskID);
- }
+ type = _list.IndexOf(taskmodel.TaskupToDate);
}
if (_list.Count <= 2 || type <= 0)
{
--
Gitblit v1.8.0