-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
57 changed files
with
5,599 additions
and
897 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# пока что каждый командный файл должен содержать строку chcp 65001 | ||
|
||
@echo off | ||
chcp 65001 | ||
echo server: %v8serverName%:%v8managerPort% | ||
echo password: %v8password% | ||
echo infobase: %v8infobase% | ||
echo username: %v8username% | ||
echo infobase1: %infobase1% | ||
echo end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# пока что каждый командный файл должен содержать строку chcp 65001 | ||
|
||
@echo off | ||
chcp 65001 | ||
#chcp | ||
ping 127.0.0.1 -n 20 | ||
echo server: %v8serverName%:%v8managerPort% | ||
echo infobase: %v8infobase% | ||
echo end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
chcp 65001 | ||
"C:\Program Files\1cv8\common\1cestart.exe" DESIGNER /S %v8serverName%:%v8managerPort%\%v8infobase% /N Администратор /P 1234 /DumpCfg D:\DumpIB\%v8infobase%.cf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
chcp 65001 | ||
"C:\Program Files\1cv8\common\1cestart.exe" DESIGNER /S %v8serverName%:%v8managerPort%\%v8infobase% /N Администратор /P 1234 /DumpIB D:\DumpIB\%v8infobase%.dt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
chcp 65001 | ||
"C:\Program Files\1cv8\common\1cestart.exe" DESIGNER /S %v8serverName%:%v8managerPort%\%v8infobase% /N Администратор /P 1234 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
chcp 65001 | ||
"C:\Program Files\1cv8\common\1cestart.exe" ENTERPRISE /S %v8serverName%:%v8managerPort%\%v8infobase% /N Администратор /P 1234 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
activeProfiles= | ||
activeProfiles=windows-x86_64 | ||
eclipse.preferences.version=1 | ||
resolveWorkspaceProjects=true | ||
version=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
...inLibrary/src/main/java/ru/yanygin/clusterAdminLibrary/AssignmentRuleContentProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package ru.yanygin.clusterAdminLibrary; | ||
|
||
import com._1c.v8.ibis.admin.IAssignmentRuleInfo; | ||
import java.util.HashMap; | ||
import java.util.List; | ||
import java.util.Map; | ||
import org.eclipse.jface.viewers.IStructuredContentProvider; | ||
|
||
/** Контент-провайдер для заполнения таблицы с ТНФ. */ | ||
public class AssignmentRuleContentProvider implements IStructuredContentProvider { | ||
|
||
static Map<IAssignmentRuleInfo, Integer> ruleNumbers = new HashMap<>(); | ||
|
||
/** | ||
* Returns the elements in the input, which must be either an array or a <code>Collection</code> . | ||
*/ | ||
@Override | ||
public Object[] getElements(Object inputElement) { | ||
List<IAssignmentRuleInfo> listTnf = (List<IAssignmentRuleInfo>) inputElement; | ||
setRuleNumbers(listTnf); | ||
return listTnf.toArray(); | ||
} | ||
|
||
private static void setRuleNumbers(List<IAssignmentRuleInfo> rules) { | ||
ruleNumbers.clear(); | ||
for (int i = 0; i < rules.size(); i++) { | ||
ruleNumbers.put(rules.get(i), i + 1); | ||
} | ||
} | ||
|
||
public static int getRuleNumber(IAssignmentRuleInfo rule) { | ||
return ruleNumbers.getOrDefault(rule, 0); | ||
} | ||
} |
Oops, something went wrong.