Showing
1 changed file
with
36 additions
and
1 deletions
| @@ -783,7 +783,21 @@ class TableManagerModel with ChangeNotifier { | @@ -783,7 +783,21 @@ class TableManagerModel with ChangeNotifier { | ||
| 783 | /// | 783 | /// |
| 784 | if (showMsg && selectTables.length > 0) { | 784 | if (showMsg && selectTables.length > 0) { |
| 785 | for (t.Table item in selectTables) { | 785 | for (t.Table item in selectTables) { |
| 786 | - if (item.id == tid) { | 786 | + // if (item.isMerge == '1') { |
| 787 | + // // (tids.contains(item.tids)) | ||
| 788 | + // List<String> mergetids = item.tids.split(','); | ||
| 789 | + // outerloop: | ||
| 790 | + // for (int i = 0; i < mergetids.length; i++) { | ||
| 791 | + // String mergetid = mergetids[i]; | ||
| 792 | + // if (tids.contains(mergetid)) { | ||
| 793 | + // msg += '${item.name},'; | ||
| 794 | + // tempSelectTables.remove(item); | ||
| 795 | + // break outerloop; | ||
| 796 | + // } | ||
| 797 | + // } | ||
| 798 | + // } | ||
| 799 | + if (item.id == tid || | ||
| 800 | + (item.isLock == '1' && (tids.contains(item.lockTid)))) { | ||
| 787 | msg += '${item.name},'; | 801 | msg += '${item.name},'; |
| 788 | tempSelectTables.remove(item); | 802 | tempSelectTables.remove(item); |
| 789 | } | 803 | } |
| @@ -791,6 +805,27 @@ class TableManagerModel with ChangeNotifier { | @@ -791,6 +805,27 @@ class TableManagerModel with ChangeNotifier { | ||
| 791 | } | 805 | } |
| 792 | } | 806 | } |
| 793 | } | 807 | } |
| 808 | + if (showMsg && selectTables.length > 0 && notebook.status == "1" || | ||
| 809 | + notebook.status == "2" || | ||
| 810 | + notebook.status == "5" || | ||
| 811 | + notebook.status == "10") { | ||
| 812 | + outerloop: | ||
| 813 | + for (t.Table item in selectTables) { | ||
| 814 | + if (item.isMerge == '1') { | ||
| 815 | + // (tids.contains(item.tids)) | ||
| 816 | + List<String> mergetids = item.tids.split(','); | ||
| 817 | + | ||
| 818 | + for (int i = 0; i < mergetids.length; i++) { | ||
| 819 | + String mergetid = mergetids[i]; | ||
| 820 | + if (tids.contains(mergetid)) { | ||
| 821 | + msg += '${item.name},'; | ||
| 822 | + tempSelectTables.remove(item); | ||
| 823 | + break outerloop; | ||
| 824 | + } | ||
| 825 | + } | ||
| 826 | + } | ||
| 827 | + } | ||
| 828 | + } | ||
| 794 | } | 829 | } |
| 795 | if (showMsg && msg != '' && selectTables.length > 0) { | 830 | if (showMsg && msg != '' && selectTables.length > 0) { |
| 796 | if (msg.endsWith(',')) { | 831 | if (msg.endsWith(',')) { |
-
Please register or login to post a comment