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
Source = "UsersSettings"; | |
Receiver = "DeeplyEssentialUsersSettings"; | |
QueryText = StrTemplate("SELECT * FROM InformationRegister.%1", Source); | |
Query = New Query(QueryText); | |
Selection = Query.Execute().Select(); | |
While Selection.Next() Do | |
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
EntityForEntityPrefix = UsersSettings.Get("DefaultFillingValues", "MainCompany", SmallBusinessServer.GetPredefinedEntity()); | |
DateForDatePrefix = FieldPopulatedValueByLocalField(Row, "Date", Template); | |
Number = StringFunctionsClientServer.SupplementString(Input, 8, "0", "Left"); | |
Prefix = ""; | |
ObjectPrefixationEventsBIT.SetDocumentPrefix(Undefined, Prefix, , , , , , , , DateForDatePrefix, EntityForEntityPrefix); |
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
$list = "E:\fileslist.txt" | |
$source = "E:\destination" | |
$destination = "E:\source" | |
Get-Content -Path $list | ForEach-Object { Move-Item "$source$_" $destination } |
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
&AtServerNoContext | |
Function IsStandardAttributeWithName(Attribute, MetadataObject, StandardAttributeName) | |
Try | |
Result = Attribute.Name = MetadataObject.StandardAttributes[StandardAttributeName].Name; | |
Except | |
Result = False; |
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
&AtServerNoContext | |
Function ValueTableToSpreadsheetDocument(ValueTable) | |
Builder = New ReportBuilder; | |
Builder.DataSource = New DataSourceDescription(ValueTable); | |
SpreadsheetDocument = New SpreadsheetDocument; | |
Builder.Put(SpreadsheetDocument); | |
Return SpreadsheetDocument; |
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
&AtServerNoContext | |
Function Refs(MaxCount = 1000) | |
Refs = New Array; | |
For Each CatalogManager In Catalogs Do | |
Selection = CatalogManager.Select(); | |
While Selection.Next() Do |