mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-01-26 05:37:27 +02:00
Main build (Jenkins)
This commit is contained in:
parent
a5f9fc0ccb
commit
86be1e973c
3
docs/en/data/SQLite/DeletePosts.json
vendored
Normal file
3
docs/en/data/SQLite/DeletePosts.json
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"Base": "C:\\Users\\Administrator\\AppData\\Local\\Temp\\v8_1FD0_29.sqlite"
|
||||
}
|
2
docs/en/examples/CDEK/CreateBarcode.txt
vendored
2
docs/en/examples/CDEK/CreateBarcode.txt
vendored
@ -1,5 +1,5 @@
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MzUwNjM4MzYsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_27DD_1d.sqlite";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_1AD2_16.sqlite";
|
||||
Format = "A5";
|
||||
Copies = 1;
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MzUwNjM4MzYsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_27DD_1d.sqlite";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_1AD2_16.sqlite";
|
||||
Tariff = 139;
|
||||
|
||||
Result = OPI_CDEK.CreateCustomerRefund(Token, UUID, Tariff, True);
|
||||
|
2
docs/en/examples/CDEK/CreatePrealert.txt
vendored
2
docs/en/examples/CDEK/CreatePrealert.txt
vendored
@ -1,5 +1,5 @@
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MzUwNjM4MzYsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_27DD_1d.sqlite";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_1AD2_16.sqlite";
|
||||
Point = "NSK27";
|
||||
TransferDate = OPI_Tools.GetCurrentDate() + 60 * 60 * 24;
|
||||
|
||||
|
2
docs/en/examples/CDEK/CreateReceipt.txt
vendored
2
docs/en/examples/CDEK/CreateReceipt.txt
vendored
@ -1,5 +1,5 @@
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MzUwNjM4MzYsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_27DD_1d.sqlite";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_1AD2_16.sqlite";
|
||||
Type = "tpl_russia";
|
||||
Copies = 1;
|
||||
|
||||
|
2
docs/en/examples/CDEK/CreateRefusal.txt
vendored
2
docs/en/examples/CDEK/CreateRefusal.txt
vendored
@ -1,4 +1,4 @@
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MzUwNjM4MzYsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_27DD_1d.sqlite";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_1AD2_16.sqlite";
|
||||
|
||||
Result = OPI_CDEK.CreateRefusal(Token, UUID, True);
|
||||
|
2
docs/en/examples/CDEK/DeleteOrder.txt
vendored
2
docs/en/examples/CDEK/DeleteOrder.txt
vendored
@ -1,4 +1,4 @@
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MzUwNjM4MzYsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_27DD_1d.sqlite";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_1AD2_16.sqlite";
|
||||
|
||||
Result = OPI_CDEK.DeleteOrder(Token, UUID, True);
|
||||
|
@ -1,4 +1,4 @@
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MzUwNjM4MzYsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_27DD_1d.sqlite";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_1AD2_16.sqlite";
|
||||
|
||||
Result = OPI_CDEK.GetAvailableDeliveryIntervals(Token, UUID, True);
|
||||
|
2
docs/en/examples/CDEK/GetCashboxCheck.txt
vendored
2
docs/en/examples/CDEK/GetCashboxCheck.txt
vendored
@ -1,4 +1,4 @@
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MzUwNjM4MzYsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_27DD_1d.sqlite";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_1AD2_16.sqlite";
|
||||
|
||||
Result = OPI_CDEK.GetCashboxCheck(Token, UUID, True);
|
||||
|
2
docs/en/examples/CDEK/GetOrder.txt
vendored
2
docs/en/examples/CDEK/GetOrder.txt
vendored
@ -1,4 +1,4 @@
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MzUwNjM4MzYsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_27DD_1d.sqlite";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_1AD2_16.sqlite";
|
||||
|
||||
Result = OPI_CDEK.GetOrder(Token, UUID, True);
|
||||
|
@ -1,4 +1,4 @@
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MzUwNjM4MzYsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_27DD_1d.sqlite";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_1AD2_16.sqlite";
|
||||
|
||||
Result = OPI_CDEK.GetPassportDataStatus(Token, UUID, True);
|
||||
|
@ -1,5 +1,5 @@
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MzUwNjM4MzYsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
OrderUUID = "C:\Users\Administrator\AppData\Local\Temp\v8_27DD_1d.sqlite";
|
||||
OrderUUID = "C:\Users\Administrator\AppData\Local\Temp\v8_1AD2_16.sqlite";
|
||||
|
||||
Day = 60 * 60 * 24;
|
||||
CurrentDate = BegOfDay(OPI_Tools.GetCurrentDate());
|
||||
|
2
docs/en/examples/CDEK/UpdateOrder.txt
vendored
2
docs/en/examples/CDEK/UpdateOrder.txt
vendored
@ -1,5 +1,5 @@
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MzUwNjM4MzYsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_27DD_1d.sqlite";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_1AD2_16.sqlite";
|
||||
|
||||
OrderDescription = New Structure("comment", "NewComment");
|
||||
|
||||
|
2
docs/en/examples/SQLite/AddRecords.txt
vendored
2
docs/en/examples/SQLite/AddRecords.txt
vendored
@ -4,7 +4,7 @@
|
||||
PictureFile = GetTempFileName("png");
|
||||
Image.Write(PictureFile); // PictureFile - File to disk
|
||||
|
||||
Base = "C:\Users\Administrator\AppData\Local\Temp\v8_D671_13.sqlite";
|
||||
Base = "C:\Users\Administrator\AppData\Local\Temp\v8_1FD0_29.sqlite";
|
||||
Table = "test";
|
||||
|
||||
DataArray = New Array;
|
||||
|
2
docs/en/examples/SQLite/CreateTable.txt
vendored
2
docs/en/examples/SQLite/CreateTable.txt
vendored
@ -1,4 +1,4 @@
|
||||
Base = "C:\Users\Administrator\AppData\Local\Temp\v8_D671_13.sqlite";
|
||||
Base = "C:\Users\Administrator\AppData\Local\Temp\v8_1FD0_29.sqlite";
|
||||
Table = "test";
|
||||
|
||||
ColoumnsStruct = New Structure;
|
||||
|
16
docs/en/examples/SQLite/DeletePosts.txt
vendored
Normal file
16
docs/en/examples/SQLite/DeletePosts.txt
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
Base = "C:\Users\Administrator\AppData\Local\Temp\v8_1FD0_29.sqlite";
|
||||
Table = "test";
|
||||
|
||||
Filters = New Array;
|
||||
|
||||
FilterStructure = New Structure;
|
||||
|
||||
FilterStructure.Insert("field", "name");
|
||||
FilterStructure.Insert("type" , "=");
|
||||
FilterStructure.Insert("value", "Vitaly A.");
|
||||
FilterStructure.Insert("union", "AND");
|
||||
FilterStructure.Insert("raw" , False);
|
||||
|
||||
Filters.Add(FilterStructure);
|
||||
|
||||
Result = OPI_SQLite.DeletePosts(Table, FilterStructure, Base);
|
2
docs/en/examples/SQLite/GetRecords.txt
vendored
2
docs/en/examples/SQLite/GetRecords.txt
vendored
@ -1,4 +1,4 @@
|
||||
Base = "C:\Users\Administrator\AppData\Local\Temp\v8_D671_13.sqlite";
|
||||
Base = "C:\Users\Administrator\AppData\Local\Temp\v8_1FD0_29.sqlite";
|
||||
Table = "test";
|
||||
|
||||
Fields = New Array;
|
||||
|
2
docs/en/examples/SQLite/UpdateRecords.txt
vendored
2
docs/en/examples/SQLite/UpdateRecords.txt
vendored
@ -1,4 +1,4 @@
|
||||
Base = "C:\Users\Administrator\AppData\Local\Temp\v8_D671_13.sqlite";
|
||||
Base = "C:\Users\Administrator\AppData\Local\Temp\v8_1FD0_29.sqlite";
|
||||
Table = "test";
|
||||
|
||||
FieldsStructure = New Structure;
|
||||
|
@ -32,7 +32,7 @@ Method at API documentation: [Getting delivery intervals (RU)](https://api-docs.
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MzUwNjM4MzYsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_27DD_1d.sqlite";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_1AD2_16.sqlite";
|
||||
|
||||
Result = OPI_CDEK.GetAvailableDeliveryIntervals(Token, UUID, True);
|
||||
```
|
||||
|
@ -32,7 +32,7 @@ Method at API documentation: [Registration of delivery appointment](https://api-
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MzUwNjM4MzYsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
OrderUUID = "C:\Users\Administrator\AppData\Local\Temp\v8_27DD_1d.sqlite";
|
||||
OrderUUID = "C:\Users\Administrator\AppData\Local\Temp\v8_1AD2_16.sqlite";
|
||||
|
||||
Day = 60 * 60 * 24;
|
||||
CurrentDate = BegOfDay(OPI_Tools.GetCurrentDate());
|
||||
|
@ -35,7 +35,7 @@ Method at API documentation: [Creating barcode CP for the order](https://api-doc
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MzUwNjM4MzYsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_27DD_1d.sqlite";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_1AD2_16.sqlite";
|
||||
Format = "A5";
|
||||
Copies = 1;
|
||||
|
||||
|
@ -37,7 +37,7 @@ Method at API documentation: [Registration of refusal](https://api-docs.cdek.ru/
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MzUwNjM4MzYsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_27DD_1d.sqlite";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_1AD2_16.sqlite";
|
||||
Tariff = 139;
|
||||
|
||||
Result = OPI_CDEK.CreateCustomerRefund(Token, UUID, Tariff, True);
|
||||
|
@ -34,7 +34,7 @@ Method at API documentation: [Registration of Prealert document](https://api-doc
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MzUwNjM4MzYsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_27DD_1d.sqlite";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_1AD2_16.sqlite";
|
||||
Point = "NSK27";
|
||||
TransferDate = OPI_Tools.GetCurrentDate() + 60 * 60 * 24;
|
||||
|
||||
|
@ -38,7 +38,7 @@ Method at API documentation: [Creating order receipt](https://api-docs.cdek.ru/3
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MzUwNjM4MzYsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_27DD_1d.sqlite";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_1AD2_16.sqlite";
|
||||
Type = "tpl_russia";
|
||||
Copies = 1;
|
||||
|
||||
|
@ -32,7 +32,7 @@ Method at API documentation: [Registration of refusal](https://api-docs.cdek.ru/
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MzUwNjM4MzYsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_27DD_1d.sqlite";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_1AD2_16.sqlite";
|
||||
|
||||
Result = OPI_CDEK.CreateRefusal(Token, UUID, True);
|
||||
```
|
||||
|
@ -32,7 +32,7 @@ Method at API documentation: [Deleting an order](https://api-docs.cdek.ru/338288
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MzUwNjM4MzYsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_27DD_1d.sqlite";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_1AD2_16.sqlite";
|
||||
|
||||
Result = OPI_CDEK.DeleteOrder(Token, UUID, True);
|
||||
```
|
||||
|
@ -32,7 +32,7 @@ Method at API documentation: [Cashbox check information](https://api-docs.cdek.r
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MzUwNjM4MzYsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_27DD_1d.sqlite";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_1AD2_16.sqlite";
|
||||
|
||||
Result = OPI_CDEK.GetCashboxCheck(Token, UUID, True);
|
||||
```
|
||||
|
@ -32,7 +32,7 @@ Method at API documentation: [Order details](https://api-docs.cdek.ru/33828849.h
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MzUwNjM4MzYsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_27DD_1d.sqlite";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_1AD2_16.sqlite";
|
||||
|
||||
Result = OPI_CDEK.GetOrder(Token, UUID, True);
|
||||
```
|
||||
|
@ -32,7 +32,7 @@ Method at API documentation: [Passport data information](https://api-docs.cdek.r
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MzUwNjM4MzYsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_27DD_1d.sqlite";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_1AD2_16.sqlite";
|
||||
|
||||
Result = OPI_CDEK.GetPassportDataStatus(Token, UUID, True);
|
||||
```
|
||||
|
@ -33,7 +33,7 @@ Method at API documentation: [Update an order](https://api-docs.cdek.ru/36989543
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MzUwNjM4MzYsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_27DD_1d.sqlite";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_1AD2_16.sqlite";
|
||||
|
||||
OrderDescription = New Structure("comment", "NewComment");
|
||||
|
||||
|
2
docs/en/md/SQLite/Orm/Add-records.mdx
vendored
2
docs/en/md/SQLite/Orm/Add-records.mdx
vendored
@ -34,7 +34,7 @@ import TabItem from '@theme/TabItem';
|
||||
PictureFile = GetTempFileName("png");
|
||||
Image.Write(PictureFile); // PictureFile - File to disk
|
||||
|
||||
Base = "C:\Users\Administrator\AppData\Local\Temp\v8_D671_13.sqlite";
|
||||
Base = "C:\Users\Administrator\AppData\Local\Temp\v8_1FD0_29.sqlite";
|
||||
Table = "test";
|
||||
|
||||
DataArray = New Array;
|
||||
|
2
docs/en/md/SQLite/Orm/Create-table.mdx
vendored
2
docs/en/md/SQLite/Orm/Create-table.mdx
vendored
@ -27,7 +27,7 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Base = "C:\Users\Administrator\AppData\Local\Temp\v8_D671_13.sqlite";
|
||||
Base = "C:\Users\Administrator\AppData\Local\Temp\v8_1FD0_29.sqlite";
|
||||
Table = "test";
|
||||
|
||||
ColoumnsStruct = New Structure;
|
||||
|
15
docs/en/md/SQLite/Orm/Delete-posts.mdx
vendored
15
docs/en/md/SQLite/Orm/Delete-posts.mdx
vendored
@ -27,7 +27,22 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Base = "C:\Users\Administrator\AppData\Local\Temp\v8_1FD0_29.sqlite";
|
||||
Table = "test";
|
||||
|
||||
Filters = New Array;
|
||||
|
||||
FilterStructure = New Structure;
|
||||
|
||||
FilterStructure.Insert("field", "name");
|
||||
FilterStructure.Insert("type" , "=");
|
||||
FilterStructure.Insert("value", "Vitaly A.");
|
||||
FilterStructure.Insert("union", "AND");
|
||||
FilterStructure.Insert("raw" , False);
|
||||
|
||||
Filters.Add(FilterStructure);
|
||||
|
||||
Result = OPI_SQLite.DeletePosts(Table, FilterStructure, Base);
|
||||
```
|
||||
|
||||
|
||||
|
2
docs/en/md/SQLite/Orm/Get-records.mdx
vendored
2
docs/en/md/SQLite/Orm/Get-records.mdx
vendored
@ -30,7 +30,7 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Base = "C:\Users\Administrator\AppData\Local\Temp\v8_D671_13.sqlite";
|
||||
Base = "C:\Users\Administrator\AppData\Local\Temp\v8_1FD0_29.sqlite";
|
||||
Table = "test";
|
||||
|
||||
Fields = New Array;
|
||||
|
2
docs/en/md/SQLite/Orm/Update-records.mdx
vendored
2
docs/en/md/SQLite/Orm/Update-records.mdx
vendored
@ -28,7 +28,7 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Base = "C:\Users\Administrator\AppData\Local\Temp\v8_D671_13.sqlite";
|
||||
Base = "C:\Users\Administrator\AppData\Local\Temp\v8_1FD0_29.sqlite";
|
||||
Table = "test";
|
||||
|
||||
FieldsStructure = New Structure;
|
||||
|
3
docs/ru/data/SQLite/УдалитьЗаписи.json
vendored
Normal file
3
docs/ru/data/SQLite/УдалитьЗаписи.json
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"База": "C:\\Users\\Administrator\\AppData\\Local\\Temp\\v8_1FD0_29.sqlite"
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MzUwNjM4MzYsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUIDЗаказа = "C:\Users\Administrator\AppData\Local\Temp\v8_27DD_1d.sqlite";
|
||||
UUIDЗаказа = "C:\Users\Administrator\AppData\Local\Temp\v8_1AD2_16.sqlite";
|
||||
|
||||
Сутки = 60 * 60 * 24;
|
||||
ТекущаяДата = НачалоДня(OPI_Инструменты.ПолучитьТекущуюДату());
|
||||
|
2
docs/ru/examples/CDEK/ИзменитьЗаказ.txt
vendored
2
docs/ru/examples/CDEK/ИзменитьЗаказ.txt
vendored
@ -1,5 +1,5 @@
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MzUwNjM4MzYsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_27DD_1d.sqlite";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_1AD2_16.sqlite";
|
||||
|
||||
ОписаниеЗаказа = Новый Структура("comment", "Новый комментарий");
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MzUwNjM4MzYsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_27DD_1d.sqlite";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_1AD2_16.sqlite";
|
||||
Тариф = 139;
|
||||
|
||||
Результат = OPI_CDEK.ОформитьКлиентскийВозврат(Токен, UUID, Тариф, Истина);
|
||||
|
@ -1,4 +1,4 @@
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MzUwNjM4MzYsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_27DD_1d.sqlite";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_1AD2_16.sqlite";
|
||||
|
||||
Результат = OPI_CDEK.ПолучитьДоступныеИнтервалыДоставки(Токен, UUID, Истина);
|
||||
|
2
docs/ru/examples/CDEK/ПолучитьЗаказ.txt
vendored
2
docs/ru/examples/CDEK/ПолучитьЗаказ.txt
vendored
@ -1,4 +1,4 @@
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MzUwNjM4MzYsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_27DD_1d.sqlite";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_1AD2_16.sqlite";
|
||||
|
||||
Результат = OPI_CDEK.ПолучитьЗаказ(Токен, UUID, Истина);
|
||||
|
@ -1,4 +1,4 @@
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MzUwNjM4MzYsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_27DD_1d.sqlite";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_1AD2_16.sqlite";
|
||||
|
||||
Результат = OPI_CDEK.ПолучитьСтатусПаспортныхДанных(Токен, UUID, Истина);
|
||||
|
2
docs/ru/examples/CDEK/ПолучитьЧекЗаказа.txt
vendored
2
docs/ru/examples/CDEK/ПолучитьЧекЗаказа.txt
vendored
@ -1,4 +1,4 @@
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MzUwNjM4MzYsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_27DD_1d.sqlite";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_1AD2_16.sqlite";
|
||||
|
||||
Результат = OPI_CDEK.ПолучитьЧекЗаказа(Токен, UUID, Истина);
|
||||
|
2
docs/ru/examples/CDEK/СоздатьОтказ.txt
vendored
2
docs/ru/examples/CDEK/СоздатьОтказ.txt
vendored
@ -1,4 +1,4 @@
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MzUwNjM4MzYsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_27DD_1d.sqlite";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_1AD2_16.sqlite";
|
||||
|
||||
Результат = OPI_CDEK.СоздатьОтказ(Токен, UUID, Истина);
|
||||
|
2
docs/ru/examples/CDEK/СоздатьПреалерт.txt
vendored
2
docs/ru/examples/CDEK/СоздатьПреалерт.txt
vendored
@ -1,5 +1,5 @@
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MzUwNjM4MzYsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_27DD_1d.sqlite";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_1AD2_16.sqlite";
|
||||
ПВЗ = "NSK27";
|
||||
ДатаПередачи = OPI_Инструменты.ПолучитьТекущуюДату() + 60 * 60 * 24;
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MzUwNjM4MzYsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_27DD_1d.sqlite";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_1AD2_16.sqlite";
|
||||
Тип = "tpl_russia";
|
||||
Копий = 1;
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MzUwNjM4MzYsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_27DD_1d.sqlite";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_1AD2_16.sqlite";
|
||||
Формат = "A5";
|
||||
Копий = 1;
|
||||
|
||||
|
2
docs/ru/examples/CDEK/УдалитьЗаказ.txt
vendored
2
docs/ru/examples/CDEK/УдалитьЗаказ.txt
vendored
@ -1,4 +1,4 @@
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MzUwNjM4MzYsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_27DD_1d.sqlite";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_1AD2_16.sqlite";
|
||||
|
||||
Результат = OPI_CDEK.УдалитьЗаказ(Токен, UUID, Истина);
|
||||
|
2
docs/ru/examples/SQLite/ДобавитьЗаписи.txt
vendored
2
docs/ru/examples/SQLite/ДобавитьЗаписи.txt
vendored
@ -4,7 +4,7 @@
|
||||
ФайлКартинки = ПолучитьИмяВременногоФайла("png");
|
||||
Картинка.Записать(ФайлКартинки); // ФайлКартинки - Файл на диске
|
||||
|
||||
База = "C:\Users\Administrator\AppData\Local\Temp\v8_D671_13.sqlite";
|
||||
База = "C:\Users\Administrator\AppData\Local\Temp\v8_1FD0_29.sqlite";
|
||||
Таблица = "test";
|
||||
|
||||
МассивДанных = Новый Массив;
|
||||
|
2
docs/ru/examples/SQLite/ОбновитьЗаписи.txt
vendored
2
docs/ru/examples/SQLite/ОбновитьЗаписи.txt
vendored
@ -1,4 +1,4 @@
|
||||
База = "C:\Users\Administrator\AppData\Local\Temp\v8_D671_13.sqlite";
|
||||
База = "C:\Users\Administrator\AppData\Local\Temp\v8_1FD0_29.sqlite";
|
||||
Таблица = "test";
|
||||
|
||||
СтруктураПолей = Новый Структура;
|
||||
|
2
docs/ru/examples/SQLite/ПолучитьЗаписи.txt
vendored
2
docs/ru/examples/SQLite/ПолучитьЗаписи.txt
vendored
@ -1,4 +1,4 @@
|
||||
База = "C:\Users\Administrator\AppData\Local\Temp\v8_D671_13.sqlite";
|
||||
База = "C:\Users\Administrator\AppData\Local\Temp\v8_1FD0_29.sqlite";
|
||||
Таблица = "test";
|
||||
|
||||
Поля = Новый Массив;
|
||||
|
2
docs/ru/examples/SQLite/СоздатьТаблицу.txt
vendored
2
docs/ru/examples/SQLite/СоздатьТаблицу.txt
vendored
@ -1,4 +1,4 @@
|
||||
База = "C:\Users\Administrator\AppData\Local\Temp\v8_D671_13.sqlite";
|
||||
База = "C:\Users\Administrator\AppData\Local\Temp\v8_1FD0_29.sqlite";
|
||||
Таблица = "test";
|
||||
|
||||
СтруктураКолонок = Новый Структура;
|
||||
|
16
docs/ru/examples/SQLite/УдалитьЗаписи.txt
vendored
Normal file
16
docs/ru/examples/SQLite/УдалитьЗаписи.txt
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
База = "C:\Users\Administrator\AppData\Local\Temp\v8_1FD0_29.sqlite";
|
||||
Таблица = "test";
|
||||
|
||||
Фильтры = Новый Массив;
|
||||
|
||||
СтруктураФильтра = Новый Структура;
|
||||
|
||||
СтруктураФильтра.Вставить("field", "name");
|
||||
СтруктураФильтра.Вставить("type" , "=");
|
||||
СтруктураФильтра.Вставить("value", "Vitaly A.");
|
||||
СтруктураФильтра.Вставить("union", "AND");
|
||||
СтруктураФильтра.Вставить("raw" , Ложь);
|
||||
|
||||
Фильтры.Добавить(СтруктураФильтра);
|
||||
|
||||
Результат = OPI_SQLite.УдалитьЗаписи(Таблица, СтруктураФильтра, База);
|
@ -32,7 +32,7 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
```bsl title="Пример использования для 1С:Предприятие/OneScript"
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MzUwNjM4MzYsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_27DD_1d.sqlite";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_1AD2_16.sqlite";
|
||||
|
||||
Результат = OPI_CDEK.ПолучитьДоступныеИнтервалыДоставки(Токен, UUID, Истина);
|
||||
```
|
||||
|
@ -32,7 +32,7 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
```bsl title="Пример использования для 1С:Предприятие/OneScript"
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MzUwNjM4MzYsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUIDЗаказа = "C:\Users\Administrator\AppData\Local\Temp\v8_27DD_1d.sqlite";
|
||||
UUIDЗаказа = "C:\Users\Administrator\AppData\Local\Temp\v8_1AD2_16.sqlite";
|
||||
|
||||
Сутки = 60 * 60 * 24;
|
||||
ТекущаяДата = НачалоДня(OPI_Инструменты.ПолучитьТекущуюДату());
|
||||
|
@ -35,7 +35,7 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
```bsl title="Пример использования для 1С:Предприятие/OneScript"
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MzUwNjM4MzYsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_27DD_1d.sqlite";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_1AD2_16.sqlite";
|
||||
Формат = "A5";
|
||||
Копий = 1;
|
||||
|
||||
|
@ -37,7 +37,7 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
```bsl title="Пример использования для 1С:Предприятие/OneScript"
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MzUwNjM4MzYsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_27DD_1d.sqlite";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_1AD2_16.sqlite";
|
||||
Тариф = 139;
|
||||
|
||||
Результат = OPI_CDEK.ОформитьКлиентскийВозврат(Токен, UUID, Тариф, Истина);
|
||||
|
@ -34,7 +34,7 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
```bsl title="Пример использования для 1С:Предприятие/OneScript"
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MzUwNjM4MzYsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_27DD_1d.sqlite";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_1AD2_16.sqlite";
|
||||
ПВЗ = "NSK27";
|
||||
ДатаПередачи = OPI_Инструменты.ПолучитьТекущуюДату() + 60 * 60 * 24;
|
||||
|
||||
|
@ -38,7 +38,7 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
```bsl title="Пример использования для 1С:Предприятие/OneScript"
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MzUwNjM4MzYsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_27DD_1d.sqlite";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_1AD2_16.sqlite";
|
||||
Тип = "tpl_russia";
|
||||
Копий = 1;
|
||||
|
||||
|
@ -32,7 +32,7 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
```bsl title="Пример использования для 1С:Предприятие/OneScript"
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MzUwNjM4MzYsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_27DD_1d.sqlite";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_1AD2_16.sqlite";
|
||||
|
||||
Результат = OPI_CDEK.СоздатьОтказ(Токен, UUID, Истина);
|
||||
```
|
||||
|
@ -32,7 +32,7 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
```bsl title="Пример использования для 1С:Предприятие/OneScript"
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MzUwNjM4MzYsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_27DD_1d.sqlite";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_1AD2_16.sqlite";
|
||||
|
||||
Результат = OPI_CDEK.УдалитьЗаказ(Токен, UUID, Истина);
|
||||
```
|
||||
|
@ -32,7 +32,7 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
```bsl title="Пример использования для 1С:Предприятие/OneScript"
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MzUwNjM4MzYsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_27DD_1d.sqlite";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_1AD2_16.sqlite";
|
||||
|
||||
Результат = OPI_CDEK.ПолучитьЧекЗаказа(Токен, UUID, Истина);
|
||||
```
|
||||
|
@ -32,7 +32,7 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
```bsl title="Пример использования для 1С:Предприятие/OneScript"
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MzUwNjM4MzYsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_27DD_1d.sqlite";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_1AD2_16.sqlite";
|
||||
|
||||
Результат = OPI_CDEK.ПолучитьЗаказ(Токен, UUID, Истина);
|
||||
```
|
||||
|
@ -32,7 +32,7 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
```bsl title="Пример использования для 1С:Предприятие/OneScript"
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MzUwNjM4MzYsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_27DD_1d.sqlite";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_1AD2_16.sqlite";
|
||||
|
||||
Результат = OPI_CDEK.ПолучитьСтатусПаспортныхДанных(Токен, UUID, Истина);
|
||||
```
|
||||
|
@ -33,7 +33,7 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
```bsl title="Пример использования для 1С:Предприятие/OneScript"
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MzUwNjM4MzYsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_27DD_1d.sqlite";
|
||||
UUID = "C:\Users\Administrator\AppData\Local\Temp\v8_1AD2_16.sqlite";
|
||||
|
||||
ОписаниеЗаказа = Новый Структура("comment", "Новый комментарий");
|
||||
|
||||
|
2
docs/ru/md/SQLite/Orm/Add-records.mdx
vendored
2
docs/ru/md/SQLite/Orm/Add-records.mdx
vendored
@ -34,7 +34,7 @@ import TabItem from '@theme/TabItem';
|
||||
ФайлКартинки = ПолучитьИмяВременногоФайла("png");
|
||||
Картинка.Записать(ФайлКартинки); // ФайлКартинки - Файл на диске
|
||||
|
||||
База = "C:\Users\Administrator\AppData\Local\Temp\v8_D671_13.sqlite";
|
||||
База = "C:\Users\Administrator\AppData\Local\Temp\v8_1FD0_29.sqlite";
|
||||
Таблица = "test";
|
||||
|
||||
МассивДанных = Новый Массив;
|
||||
|
2
docs/ru/md/SQLite/Orm/Create-table.mdx
vendored
2
docs/ru/md/SQLite/Orm/Create-table.mdx
vendored
@ -27,7 +27,7 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
|
||||
```bsl title="Пример использования для 1С:Предприятие/OneScript"
|
||||
База = "C:\Users\Administrator\AppData\Local\Temp\v8_D671_13.sqlite";
|
||||
База = "C:\Users\Administrator\AppData\Local\Temp\v8_1FD0_29.sqlite";
|
||||
Таблица = "test";
|
||||
|
||||
СтруктураКолонок = Новый Структура;
|
||||
|
15
docs/ru/md/SQLite/Orm/Delete-posts.mdx
vendored
15
docs/ru/md/SQLite/Orm/Delete-posts.mdx
vendored
@ -27,7 +27,22 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
|
||||
```bsl title="Пример использования для 1С:Предприятие/OneScript"
|
||||
База = "C:\Users\Administrator\AppData\Local\Temp\v8_1FD0_29.sqlite";
|
||||
Таблица = "test";
|
||||
|
||||
Фильтры = Новый Массив;
|
||||
|
||||
СтруктураФильтра = Новый Структура;
|
||||
|
||||
СтруктураФильтра.Вставить("field", "name");
|
||||
СтруктураФильтра.Вставить("type" , "=");
|
||||
СтруктураФильтра.Вставить("value", "Vitaly A.");
|
||||
СтруктураФильтра.Вставить("union", "AND");
|
||||
СтруктураФильтра.Вставить("raw" , Ложь);
|
||||
|
||||
Фильтры.Добавить(СтруктураФильтра);
|
||||
|
||||
Результат = OPI_SQLite.УдалитьЗаписи(Таблица, СтруктураФильтра, База);
|
||||
```
|
||||
|
||||
|
||||
|
2
docs/ru/md/SQLite/Orm/Get-records.mdx
vendored
2
docs/ru/md/SQLite/Orm/Get-records.mdx
vendored
@ -30,7 +30,7 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
|
||||
```bsl title="Пример использования для 1С:Предприятие/OneScript"
|
||||
База = "C:\Users\Administrator\AppData\Local\Temp\v8_D671_13.sqlite";
|
||||
База = "C:\Users\Administrator\AppData\Local\Temp\v8_1FD0_29.sqlite";
|
||||
Таблица = "test";
|
||||
|
||||
Поля = Новый Массив;
|
||||
|
2
docs/ru/md/SQLite/Orm/Update-records.mdx
vendored
2
docs/ru/md/SQLite/Orm/Update-records.mdx
vendored
@ -28,7 +28,7 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
|
||||
```bsl title="Пример использования для 1С:Предприятие/OneScript"
|
||||
База = "C:\Users\Administrator\AppData\Local\Temp\v8_D671_13.sqlite";
|
||||
База = "C:\Users\Administrator\AppData\Local\Temp\v8_1FD0_29.sqlite";
|
||||
Таблица = "test";
|
||||
|
||||
СтруктураПолей = Новый Структура;
|
||||
|
12246
service/dictionaries/en.json
vendored
12246
service/dictionaries/en.json
vendored
File diff suppressed because it is too large
Load Diff
1
src/en/OInt/core/Modules/OPI_SQLite.os
vendored
1
src/en/OInt/core/Modules/OPI_SQLite.os
vendored
@ -61,6 +61,7 @@ Function CreateConnection(Val Base = "") Export
|
||||
EndIf;
|
||||
|
||||
OPI_TypeConversion.GetLine(Base);
|
||||
OPI_Tools.RestoreEscapeSequences(Base);
|
||||
|
||||
Connector = AttachAddInOnServer("OPI_SQLite");
|
||||
|
||||
|
33
src/en/OInt/tests/Modules/internal/OPI_Tests.os
vendored
33
src/en/OInt/tests/Modules/internal/OPI_Tests.os
vendored
@ -2239,6 +2239,7 @@ Procedure SQLL_ORM() Export
|
||||
SQLite_AddRecords(TestParameters);
|
||||
SQLite_GetRecords(TestParameters);
|
||||
SQLite_UpdateRecords(TestParameters);
|
||||
SQLite_DeletePosts(TestParameters);
|
||||
|
||||
Try
|
||||
DeleteFiles(Base);
|
||||
@ -2246,7 +2247,6 @@ Procedure SQLL_ORM() Export
|
||||
OPI_TestDataRetrieval.WriteLog(ErrorDescription(), "Database file deletion error", "SQLite");
|
||||
EndTry
|
||||
|
||||
|
||||
EndProcedure
|
||||
|
||||
#EndRegion
|
||||
@ -16444,6 +16444,37 @@ Procedure SQLite_UpdateRecords(FunctionParameters)
|
||||
|
||||
EndProcedure
|
||||
|
||||
Procedure SQLite_DeletePosts(FunctionParameters)
|
||||
|
||||
Base = FunctionParameters["SQLite_DB"];
|
||||
Table = "test";
|
||||
|
||||
Filters = New Array;
|
||||
|
||||
FilterStructure = New Structure;
|
||||
|
||||
FilterStructure.Insert("field", "name");
|
||||
FilterStructure.Insert("type" , "=");
|
||||
FilterStructure.Insert("value", "Vitaly A.");
|
||||
FilterStructure.Insert("union", "AND");
|
||||
FilterStructure.Insert("raw" , False);
|
||||
|
||||
Filters.Add(FilterStructure);
|
||||
|
||||
Result = OPI_SQLite.DeletePosts(Table, FilterStructure, Base);
|
||||
|
||||
// END
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "DeletePosts", "SQLite");
|
||||
OPI_TestDataRetrieval.Check_SQLiteSuccess(Result);
|
||||
|
||||
Check = OPI_SQLite.GetRecords(Table, "['name','salary']", Filters, , , Base);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Check, "Check", "SQLite");
|
||||
OPI_TestDataRetrieval.Check_SQLiteNoRows(Check);
|
||||
|
||||
EndProcedure
|
||||
|
||||
#EndRegion
|
||||
|
||||
#EndRegion
|
||||
|
290
src/en/OInt/tests/Modules/internal/OPI_TestsCLI.os
vendored
290
src/en/OInt/tests/Modules/internal/OPI_TestsCLI.os
vendored
@ -2229,6 +2229,10 @@ Procedure CLI_SQLL_ORM() Export
|
||||
OPI_TestDataRetrieval.ParameterToCollection("Picture", TestParameters);
|
||||
|
||||
CLI_SQLite_CreateTable(TestParameters);
|
||||
CLI_SQLite_AddRecords(TestParameters);
|
||||
CLI_SQLite_GetRecords(TestParameters);
|
||||
CLI_SQLite_UpdateRecords(TestParameters);
|
||||
CLI_SQLite_DeletePosts(TestParameters);
|
||||
|
||||
Try
|
||||
DeleteFiles(Base);
|
||||
@ -18248,16 +18252,292 @@ Procedure CLI_SQLite_CreateTable(FunctionParameters)
|
||||
|
||||
Result = OPI_TestDataRetrieval.ExecuteTestCLI("sqlite", "CreateTable", Options);
|
||||
|
||||
Options.Insert("noex", True);
|
||||
Text = OPI_TestDataRetrieval.ExecuteTestCLI("sqlite", "CreateTable", Options);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLogCLI(Text, "CreateTable (query)", "SQLite");
|
||||
|
||||
OPI_TestDataRetrieval.WriteLogCLI(Result, "CreateTable", "SQLite");
|
||||
OPI_TestDataRetrieval.Check_SQLiteSuccess(Result);
|
||||
|
||||
EndProcedure
|
||||
|
||||
Procedure CLI_SQLite_AddRecords(FunctionParameters)
|
||||
|
||||
Image = FunctionParameters["Picture"];
|
||||
OPI_TypeConversion.GetBinaryData(Image); // Image - Type: BinaryData
|
||||
|
||||
PictureFile = GetTempFileName("png");
|
||||
Image.Write(PictureFile); // PictureFile - File to disk
|
||||
|
||||
Base = FunctionParameters["SQLite_DB"];
|
||||
Table = "test";
|
||||
|
||||
DataArray = New Array;
|
||||
|
||||
RowStructure2 = New Structure;
|
||||
RowStructure2.Insert("name" , "Vitaly"); // TEXT
|
||||
RowStructure2.Insert("age" , 25); // INTEGER
|
||||
RowStructure2.Insert("salary" , 1000.12); // REAL
|
||||
RowStructure2.Insert("is_active" , True); // BOOL
|
||||
RowStructure2.Insert("created_at", OPI_Tools.GetCurrentDate()); // DATETIME
|
||||
RowStructure2.Insert("data" , New Structure("blob", PictureFile)); // BLOB
|
||||
|
||||
RowStrucutre1 = New Structure;
|
||||
RowStrucutre1.Insert("name" , "Lesha") ; // TEXT
|
||||
RowStrucutre1.Insert("age" , 20); // INTEGER
|
||||
RowStrucutre1.Insert("salary" , 200.20) ; // REAL
|
||||
RowStrucutre1.Insert("is_active" , False) ; // BOOL
|
||||
RowStrucutre1.Insert("created_at", OPI_Tools.GetCurrentDate()); // DATETIME
|
||||
RowStrucutre1.Insert("data" , New Structure("blob", PictureFile)); // BLOB
|
||||
|
||||
DataArray.Add(RowStructure2);
|
||||
DataArray.Add(RowStrucutre1);
|
||||
|
||||
Options = New Structure;
|
||||
Options.Insert("table", Table);
|
||||
Options.Insert("rows" , DataArray);
|
||||
Options.Insert("db" , Base);
|
||||
|
||||
Result = OPI_TestDataRetrieval.ExecuteTestCLI("sqlite", "AddRecords", Options);
|
||||
|
||||
// END
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "AddRecords", "SQLite");
|
||||
OPI_TestDataRetrieval.Check_SQLiteSuccess(Result);
|
||||
|
||||
Options = New Structure;
|
||||
Options.Insert("table", Table);
|
||||
Options.Insert("rows" , DataArray);
|
||||
Options.Insert("trn" , False);
|
||||
Options.Insert("db" , Base);
|
||||
|
||||
Result = OPI_TestDataRetrieval.ExecuteTestCLI("sqlite", "AddRecords", Options);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "AddRecords (no tr)", "SQLite");
|
||||
OPI_TestDataRetrieval.Check_SQLiteSuccess(Result);
|
||||
|
||||
RowStrucutre1.Insert("error", "Lesha") ;
|
||||
DataArray.Add(RowStrucutre1);
|
||||
|
||||
Options = New Structure;
|
||||
Options.Insert("table", Table);
|
||||
Options.Insert("rows" , DataArray);
|
||||
Options.Insert("db" , Base);
|
||||
|
||||
Result = OPI_TestDataRetrieval.ExecuteTestCLI("sqlite", "AddRecords", Options);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "AddRecords (field error)", "SQLite");
|
||||
OPI_TestDataRetrieval.Check_SQLiteError(Result);
|
||||
|
||||
Options = New Structure;
|
||||
Options.Insert("table", Table);
|
||||
Options.Insert("rows" , DataArray);
|
||||
Options.Insert("trn" , False);
|
||||
Options.Insert("db" , Base);
|
||||
|
||||
Result = OPI_TestDataRetrieval.ExecuteTestCLI("sqlite", "AddRecords", Options);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "AddRecords (field error without tr)", "SQLite");
|
||||
OPI_TestDataRetrieval.Check_SQLiteRows(Result, 1);
|
||||
|
||||
Options = New Structure;
|
||||
Options.Insert("table", Table);
|
||||
Options.Insert("rows" , "not valid json");
|
||||
Options.Insert("db" , Base);
|
||||
|
||||
Result = OPI_TestDataRetrieval.ExecuteTestCLI("sqlite", "AddRecords", Options);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "AddRecords (json error)", "SQLite");
|
||||
OPI_TestDataRetrieval.Check_SQLiteError(Result);
|
||||
|
||||
RowMap = New Map;
|
||||
RowMap.Insert("[An obscure column]", "yo");
|
||||
|
||||
Options = New Structure;
|
||||
Options.Insert("table", "test1");
|
||||
Options.Insert("rows" , RowMap);
|
||||
Options.Insert("db" , Base);
|
||||
|
||||
Result = OPI_TestDataRetrieval.ExecuteTestCLI("sqlite", "AddRecords", Options);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "AddRecords (obscure column)", "SQLite");
|
||||
OPI_TestDataRetrieval.Check_SQLiteSuccess(Result);
|
||||
|
||||
Try
|
||||
DeleteFiles(PictureFile);
|
||||
Except
|
||||
OPI_TestDataRetrieval.WriteLog(ErrorDescription(), "Error deleting a picture file", "SQLite");
|
||||
EndTry
|
||||
|
||||
EndProcedure
|
||||
|
||||
Procedure CLI_SQLite_GetRecords(FunctionParameters)
|
||||
|
||||
Base = FunctionParameters["SQLite_DB"];
|
||||
Table = "test";
|
||||
|
||||
Fields = New Array;
|
||||
Fields.Add("name");
|
||||
Fields.Add("salary");
|
||||
|
||||
Filters = New Array;
|
||||
|
||||
FilterStructure1 = New Structure;
|
||||
|
||||
FilterStructure1.Insert("field", "name");
|
||||
FilterStructure1.Insert("type" , "=");
|
||||
FilterStructure1.Insert("value", "Vitaly");
|
||||
FilterStructure1.Insert("union", "AND");
|
||||
FilterStructure1.Insert("raw" , False);
|
||||
|
||||
FilterStructure2 = New Structure;
|
||||
|
||||
FilterStructure2.Insert("field", "age");
|
||||
FilterStructure2.Insert("type" , "BETWEEN");
|
||||
FilterStructure2.Insert("value", "20 AND 30");
|
||||
FilterStructure2.Insert("raw" , True);
|
||||
|
||||
Filters.Add(FilterStructure1);
|
||||
Filters.Add(FilterStructure2);
|
||||
|
||||
Sort = New Structure("created_at", "DESC");
|
||||
Count = 1;
|
||||
|
||||
Options = New Structure;
|
||||
Options.Insert("table" , Table);
|
||||
Options.Insert("fields", Fields);
|
||||
Options.Insert("filter", Filters);
|
||||
Options.Insert("order" , Sort);
|
||||
Options.Insert("limit" , Count);
|
||||
Options.Insert("db" , Base);
|
||||
|
||||
Result = OPI_TestDataRetrieval.ExecuteTestCLI("sqlite", "GetRecords", Options);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "GetRecords", "SQLite");
|
||||
OPI_TestDataRetrieval.Check_SQLiteSuccess(Result);
|
||||
|
||||
Options = New Structure;
|
||||
Options.Insert("table" , Table);
|
||||
Options.Insert("fields", "['name','age','salary','is_active','created_at']");
|
||||
Options.Insert("db" , Base);
|
||||
|
||||
Result = OPI_TestDataRetrieval.ExecuteTestCLI("sqlite", "GetRecords", Options);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "GetRecords (no params)", "SQLite");
|
||||
OPI_TestDataRetrieval.Check_SQLiteSuccess(Result);
|
||||
|
||||
FilterStructure2.Insert("type" , "BEETWEEN");
|
||||
Filters.Add(FilterStructure2);
|
||||
|
||||
Options = New Structure;
|
||||
Options.Insert("table" , Table);
|
||||
Options.Insert("fields", "['name','age','salary','is_active','created_at']");
|
||||
Options.Insert("filter", Filters);
|
||||
Options.Insert("db" , Base);
|
||||
|
||||
Result = OPI_TestDataRetrieval.ExecuteTestCLI("sqlite", "GetRecords", Options);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "GetRecords (error)", "SQLite");
|
||||
OPI_TestDataRetrieval.Check_SQLiteError(Result);
|
||||
|
||||
Options = New Structure;
|
||||
Options.Insert("table" , "test1");
|
||||
Options.Insert("db" , Base);
|
||||
|
||||
Result = OPI_SQLite.GetRecords(, , , , , Base);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "GetRecords (obscure column)", "SQLite");
|
||||
OPI_TestDataRetrieval.Check_SQLiteSuccess(Result);
|
||||
|
||||
EndProcedure
|
||||
|
||||
Procedure CLI_SQLite_UpdateRecords(FunctionParameters)
|
||||
|
||||
Base = FunctionParameters["SQLite_DB"];
|
||||
Table = "test";
|
||||
|
||||
FieldsStructure = New Structure;
|
||||
FieldsStructure.Insert("name" , "Vitaly A.");
|
||||
FieldsStructure.Insert("salary", "999999");
|
||||
|
||||
Filters = New Array;
|
||||
|
||||
FilterStructure = New Structure;
|
||||
|
||||
FilterStructure.Insert("field", "name");
|
||||
FilterStructure.Insert("type" , "=");
|
||||
FilterStructure.Insert("value", "Vitaly");
|
||||
FilterStructure.Insert("union", "AND");
|
||||
FilterStructure.Insert("raw" , False);
|
||||
|
||||
Filters.Add(FilterStructure);
|
||||
|
||||
Options = New Structure;
|
||||
Options.Insert("table" , Table);
|
||||
Options.Insert("values", FieldsStructure);
|
||||
Options.Insert("filter", Filters);
|
||||
Options.Insert("db" , Base);
|
||||
|
||||
Result = OPI_TestDataRetrieval.ExecuteTestCLI("sqlite", "UpdateRecords", Options);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "UpdateRecords", "SQLite");
|
||||
OPI_TestDataRetrieval.Check_SQLiteSuccess(Result);
|
||||
|
||||
FilterStructure.Insert("value", "Vitaly A.");
|
||||
|
||||
Filters = New Array;
|
||||
Filters.Add(FilterStructure);
|
||||
|
||||
Options = New Structure;
|
||||
Options.Insert("table" , Table);
|
||||
Options.Insert("fields" , "['name','salary']");
|
||||
Options.Insert("filters", Filters);
|
||||
Options.Insert("db" , Base);
|
||||
|
||||
Check = OPI_TestDataRetrieval.ExecuteTestCLI("sqlite", "GetRecords", Options);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Check, "Check", "SQLite");
|
||||
OPI_TestDataRetrieval.Check_SQLiteSuccess(Check);
|
||||
OPI_TestDataRetrieval.Check_SQLiteFieldsValues(Check["data"][0], FieldsStructure);
|
||||
|
||||
EndProcedure
|
||||
|
||||
Procedure CLI_SQLite_DeletePosts(FunctionParameters)
|
||||
|
||||
Base = FunctionParameters["SQLite_DB"];
|
||||
Table = "test";
|
||||
|
||||
Filters = New Array;
|
||||
|
||||
FilterStructure = New Structure;
|
||||
|
||||
FilterStructure.Insert("field", "name");
|
||||
FilterStructure.Insert("type" , "=");
|
||||
FilterStructure.Insert("value", "Vitaly A.");
|
||||
FilterStructure.Insert("union", "AND");
|
||||
FilterStructure.Insert("raw" , False);
|
||||
|
||||
Filters.Add(FilterStructure);
|
||||
|
||||
Options = New Structure;
|
||||
Options.Insert("table" , Table);
|
||||
Options.Insert("filter", FilterStructure);
|
||||
Options.Insert("db" , Base);
|
||||
|
||||
Result = OPI_TestDataRetrieval.ExecuteTestCLI("sqlite", "DeletePosts", Options);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "DeletePosts", "SQLite");
|
||||
OPI_TestDataRetrieval.Check_SQLiteSuccess(Result);
|
||||
|
||||
Options = New Structure;
|
||||
Options.Insert("table" , Table);
|
||||
Options.Insert("fields" , "['name','salary']");
|
||||
Options.Insert("filters", Filters);
|
||||
Options.Insert("db" , Base);
|
||||
|
||||
Check = OPI_TestDataRetrieval.ExecuteTestCLI("sqlite", "GetRecords", Options);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Check, "Check", "SQLite");
|
||||
OPI_TestDataRetrieval.Check_SQLiteNoRows(Check);
|
||||
|
||||
EndProcedure
|
||||
|
||||
#EndRegion
|
||||
|
||||
#EndRegion
|
||||
|
1
src/en/OInt/tools/Modules/OPI_SQLQueries.os
vendored
1
src/en/OInt/tools/Modules/OPI_SQLQueries.os
vendored
@ -288,6 +288,7 @@ Function EmptySchemeDelete()
|
||||
|
||||
Scheme.Insert("table" , "");
|
||||
Scheme.Insert("filter", New Array);
|
||||
Scheme.Insert("values", New Array);
|
||||
|
||||
Return Scheme;
|
||||
|
||||
|
@ -2091,6 +2091,10 @@ Procedure Check_SQLiteFieldsValues(Val Result, Val ValueStructure) Export
|
||||
|
||||
EndProcedure
|
||||
|
||||
Procedure Check_SQLiteNoRows(Val Result) Export
|
||||
ExpectsThat(Result["data"].Count()).Равно(0);
|
||||
EndProcedure
|
||||
|
||||
#EndRegion
|
||||
|
||||
#EndRegion
|
||||
|
@ -1003,11 +1003,7 @@ EndProcedure
|
||||
|
||||
Procedure ReplaceEscapeSequences(Text) Export
|
||||
|
||||
CharacterMapping = New Map;
|
||||
CharacterMapping.Insert("\n", Chars.LF);
|
||||
CharacterMapping.Insert("\r", Chars.CR);
|
||||
CharacterMapping.Insert("\f", Chars.FF);
|
||||
CharacterMapping.Insert("\v", Chars.VTab);
|
||||
CharacterMapping = GetEscapeSequencesMap();
|
||||
|
||||
For Each Symbol In CharacterMapping Do
|
||||
|
||||
@ -1018,6 +1014,18 @@ Procedure ReplaceEscapeSequences(Text) Export
|
||||
|
||||
EndProcedure
|
||||
|
||||
Procedure RestoreEscapeSequences(Text) Export
|
||||
|
||||
CharacterMapping = GetEscapeSequencesMap();
|
||||
|
||||
For Each Symbol In CharacterMapping Do
|
||||
|
||||
Text = StrReplace(Text, Symbol.Value, Symbol.Key);
|
||||
|
||||
EndDo;
|
||||
|
||||
EndProcedure
|
||||
|
||||
Function NumberToString(Val Number) Export
|
||||
Return StrReplace(String(Number), Chars.NBSp, "");
|
||||
EndFunction
|
||||
@ -1652,6 +1660,19 @@ Function RelevantNodeType(Val NodeType)
|
||||
|
||||
EndFunction
|
||||
|
||||
Function GetEscapeSequencesMap()
|
||||
|
||||
CharacterMapping = New Map;
|
||||
|
||||
CharacterMapping.Insert("\n", Chars.LF);
|
||||
CharacterMapping.Insert("\r", Chars.CR);
|
||||
CharacterMapping.Insert("\f", Chars.FF);
|
||||
CharacterMapping.Insert("\v", Chars.VTab);
|
||||
|
||||
Return CharacterMapping;
|
||||
|
||||
EndFunction
|
||||
|
||||
#Region AddinsManagement
|
||||
|
||||
Function InitializeAddIn(Val AddInName, Val Class, AddIn)
|
||||
|
@ -288,6 +288,7 @@ Function EmptySchemeDelete()
|
||||
|
||||
Scheme.Insert("table" , "");
|
||||
Scheme.Insert("filter", New Array);
|
||||
Scheme.Insert("values", New Array);
|
||||
|
||||
Return Scheme;
|
||||
|
||||
|
@ -61,6 +61,7 @@ Function CreateConnection(Val Base = "") Export
|
||||
EndIf;
|
||||
|
||||
OPI_TypeConversion.GetLine(Base);
|
||||
OPI_Tools.RestoreEscapeSequences(Base);
|
||||
|
||||
Connector = AttachAddInOnServer("OPI_SQLite");
|
||||
|
||||
|
@ -2091,6 +2091,10 @@ Procedure Check_SQLiteFieldsValues(Val Result, Val ValueStructure) Export
|
||||
|
||||
EndProcedure
|
||||
|
||||
Procedure Check_SQLiteNoRows(Val Result) Export
|
||||
ExpectsThat(Result["data"].Count()).Равно(0);
|
||||
EndProcedure
|
||||
|
||||
#EndRegion
|
||||
|
||||
#EndRegion
|
||||
|
@ -2239,6 +2239,7 @@ Procedure SQLL_ORM() Export
|
||||
SQLite_AddRecords(TestParameters);
|
||||
SQLite_GetRecords(TestParameters);
|
||||
SQLite_UpdateRecords(TestParameters);
|
||||
SQLite_DeletePosts(TestParameters);
|
||||
|
||||
Try
|
||||
DeleteFiles(Base);
|
||||
@ -2246,7 +2247,6 @@ Procedure SQLL_ORM() Export
|
||||
OPI_TestDataRetrieval.WriteLog(ErrorDescription(), "Database file deletion error", "SQLite");
|
||||
EndTry
|
||||
|
||||
|
||||
EndProcedure
|
||||
|
||||
#EndRegion
|
||||
@ -16444,6 +16444,37 @@ Procedure SQLite_UpdateRecords(FunctionParameters)
|
||||
|
||||
EndProcedure
|
||||
|
||||
Procedure SQLite_DeletePosts(FunctionParameters)
|
||||
|
||||
Base = FunctionParameters["SQLite_DB"];
|
||||
Table = "test";
|
||||
|
||||
Filters = New Array;
|
||||
|
||||
FilterStructure = New Structure;
|
||||
|
||||
FilterStructure.Insert("field", "name");
|
||||
FilterStructure.Insert("type" , "=");
|
||||
FilterStructure.Insert("value", "Vitaly A.");
|
||||
FilterStructure.Insert("union", "AND");
|
||||
FilterStructure.Insert("raw" , False);
|
||||
|
||||
Filters.Add(FilterStructure);
|
||||
|
||||
Result = OPI_SQLite.DeletePosts(Table, FilterStructure, Base);
|
||||
|
||||
// END
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "DeletePosts", "SQLite");
|
||||
OPI_TestDataRetrieval.Check_SQLiteSuccess(Result);
|
||||
|
||||
Check = OPI_SQLite.GetRecords(Table, "['name','salary']", Filters, , , Base);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Check, "Check", "SQLite");
|
||||
OPI_TestDataRetrieval.Check_SQLiteNoRows(Check);
|
||||
|
||||
EndProcedure
|
||||
|
||||
#EndRegion
|
||||
|
||||
#EndRegion
|
||||
|
290
src/en/OPI/src/CommonModules/OPI_TestsCLI/Module.bsl
vendored
290
src/en/OPI/src/CommonModules/OPI_TestsCLI/Module.bsl
vendored
@ -2229,6 +2229,10 @@ Procedure CLI_SQLL_ORM() Export
|
||||
OPI_TestDataRetrieval.ParameterToCollection("Picture", TestParameters);
|
||||
|
||||
CLI_SQLite_CreateTable(TestParameters);
|
||||
CLI_SQLite_AddRecords(TestParameters);
|
||||
CLI_SQLite_GetRecords(TestParameters);
|
||||
CLI_SQLite_UpdateRecords(TestParameters);
|
||||
CLI_SQLite_DeletePosts(TestParameters);
|
||||
|
||||
Try
|
||||
DeleteFiles(Base);
|
||||
@ -18248,16 +18252,292 @@ Procedure CLI_SQLite_CreateTable(FunctionParameters)
|
||||
|
||||
Result = OPI_TestDataRetrieval.ExecuteTestCLI("sqlite", "CreateTable", Options);
|
||||
|
||||
Options.Insert("noex", True);
|
||||
Text = OPI_TestDataRetrieval.ExecuteTestCLI("sqlite", "CreateTable", Options);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLogCLI(Text, "CreateTable (query)", "SQLite");
|
||||
|
||||
OPI_TestDataRetrieval.WriteLogCLI(Result, "CreateTable", "SQLite");
|
||||
OPI_TestDataRetrieval.Check_SQLiteSuccess(Result);
|
||||
|
||||
EndProcedure
|
||||
|
||||
Procedure CLI_SQLite_AddRecords(FunctionParameters)
|
||||
|
||||
Image = FunctionParameters["Picture"];
|
||||
OPI_TypeConversion.GetBinaryData(Image); // Image - Type: BinaryData
|
||||
|
||||
PictureFile = GetTempFileName("png");
|
||||
Image.Write(PictureFile); // PictureFile - File to disk
|
||||
|
||||
Base = FunctionParameters["SQLite_DB"];
|
||||
Table = "test";
|
||||
|
||||
DataArray = New Array;
|
||||
|
||||
RowStructure2 = New Structure;
|
||||
RowStructure2.Insert("name" , "Vitaly"); // TEXT
|
||||
RowStructure2.Insert("age" , 25); // INTEGER
|
||||
RowStructure2.Insert("salary" , 1000.12); // REAL
|
||||
RowStructure2.Insert("is_active" , True); // BOOL
|
||||
RowStructure2.Insert("created_at", OPI_Tools.GetCurrentDate()); // DATETIME
|
||||
RowStructure2.Insert("data" , New Structure("blob", PictureFile)); // BLOB
|
||||
|
||||
RowStrucutre1 = New Structure;
|
||||
RowStrucutre1.Insert("name" , "Lesha") ; // TEXT
|
||||
RowStrucutre1.Insert("age" , 20); // INTEGER
|
||||
RowStrucutre1.Insert("salary" , 200.20) ; // REAL
|
||||
RowStrucutre1.Insert("is_active" , False) ; // BOOL
|
||||
RowStrucutre1.Insert("created_at", OPI_Tools.GetCurrentDate()); // DATETIME
|
||||
RowStrucutre1.Insert("data" , New Structure("blob", PictureFile)); // BLOB
|
||||
|
||||
DataArray.Add(RowStructure2);
|
||||
DataArray.Add(RowStrucutre1);
|
||||
|
||||
Options = New Structure;
|
||||
Options.Insert("table", Table);
|
||||
Options.Insert("rows" , DataArray);
|
||||
Options.Insert("db" , Base);
|
||||
|
||||
Result = OPI_TestDataRetrieval.ExecuteTestCLI("sqlite", "AddRecords", Options);
|
||||
|
||||
// END
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "AddRecords", "SQLite");
|
||||
OPI_TestDataRetrieval.Check_SQLiteSuccess(Result);
|
||||
|
||||
Options = New Structure;
|
||||
Options.Insert("table", Table);
|
||||
Options.Insert("rows" , DataArray);
|
||||
Options.Insert("trn" , False);
|
||||
Options.Insert("db" , Base);
|
||||
|
||||
Result = OPI_TestDataRetrieval.ExecuteTestCLI("sqlite", "AddRecords", Options);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "AddRecords (no tr)", "SQLite");
|
||||
OPI_TestDataRetrieval.Check_SQLiteSuccess(Result);
|
||||
|
||||
RowStrucutre1.Insert("error", "Lesha") ;
|
||||
DataArray.Add(RowStrucutre1);
|
||||
|
||||
Options = New Structure;
|
||||
Options.Insert("table", Table);
|
||||
Options.Insert("rows" , DataArray);
|
||||
Options.Insert("db" , Base);
|
||||
|
||||
Result = OPI_TestDataRetrieval.ExecuteTestCLI("sqlite", "AddRecords", Options);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "AddRecords (field error)", "SQLite");
|
||||
OPI_TestDataRetrieval.Check_SQLiteError(Result);
|
||||
|
||||
Options = New Structure;
|
||||
Options.Insert("table", Table);
|
||||
Options.Insert("rows" , DataArray);
|
||||
Options.Insert("trn" , False);
|
||||
Options.Insert("db" , Base);
|
||||
|
||||
Result = OPI_TestDataRetrieval.ExecuteTestCLI("sqlite", "AddRecords", Options);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "AddRecords (field error without tr)", "SQLite");
|
||||
OPI_TestDataRetrieval.Check_SQLiteRows(Result, 1);
|
||||
|
||||
Options = New Structure;
|
||||
Options.Insert("table", Table);
|
||||
Options.Insert("rows" , "not valid json");
|
||||
Options.Insert("db" , Base);
|
||||
|
||||
Result = OPI_TestDataRetrieval.ExecuteTestCLI("sqlite", "AddRecords", Options);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "AddRecords (json error)", "SQLite");
|
||||
OPI_TestDataRetrieval.Check_SQLiteError(Result);
|
||||
|
||||
RowMap = New Map;
|
||||
RowMap.Insert("[An obscure column]", "yo");
|
||||
|
||||
Options = New Structure;
|
||||
Options.Insert("table", "test1");
|
||||
Options.Insert("rows" , RowMap);
|
||||
Options.Insert("db" , Base);
|
||||
|
||||
Result = OPI_TestDataRetrieval.ExecuteTestCLI("sqlite", "AddRecords", Options);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "AddRecords (obscure column)", "SQLite");
|
||||
OPI_TestDataRetrieval.Check_SQLiteSuccess(Result);
|
||||
|
||||
Try
|
||||
DeleteFiles(PictureFile);
|
||||
Except
|
||||
OPI_TestDataRetrieval.WriteLog(ErrorDescription(), "Error deleting a picture file", "SQLite");
|
||||
EndTry
|
||||
|
||||
EndProcedure
|
||||
|
||||
Procedure CLI_SQLite_GetRecords(FunctionParameters)
|
||||
|
||||
Base = FunctionParameters["SQLite_DB"];
|
||||
Table = "test";
|
||||
|
||||
Fields = New Array;
|
||||
Fields.Add("name");
|
||||
Fields.Add("salary");
|
||||
|
||||
Filters = New Array;
|
||||
|
||||
FilterStructure1 = New Structure;
|
||||
|
||||
FilterStructure1.Insert("field", "name");
|
||||
FilterStructure1.Insert("type" , "=");
|
||||
FilterStructure1.Insert("value", "Vitaly");
|
||||
FilterStructure1.Insert("union", "AND");
|
||||
FilterStructure1.Insert("raw" , False);
|
||||
|
||||
FilterStructure2 = New Structure;
|
||||
|
||||
FilterStructure2.Insert("field", "age");
|
||||
FilterStructure2.Insert("type" , "BETWEEN");
|
||||
FilterStructure2.Insert("value", "20 AND 30");
|
||||
FilterStructure2.Insert("raw" , True);
|
||||
|
||||
Filters.Add(FilterStructure1);
|
||||
Filters.Add(FilterStructure2);
|
||||
|
||||
Sort = New Structure("created_at", "DESC");
|
||||
Count = 1;
|
||||
|
||||
Options = New Structure;
|
||||
Options.Insert("table" , Table);
|
||||
Options.Insert("fields", Fields);
|
||||
Options.Insert("filter", Filters);
|
||||
Options.Insert("order" , Sort);
|
||||
Options.Insert("limit" , Count);
|
||||
Options.Insert("db" , Base);
|
||||
|
||||
Result = OPI_TestDataRetrieval.ExecuteTestCLI("sqlite", "GetRecords", Options);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "GetRecords", "SQLite");
|
||||
OPI_TestDataRetrieval.Check_SQLiteSuccess(Result);
|
||||
|
||||
Options = New Structure;
|
||||
Options.Insert("table" , Table);
|
||||
Options.Insert("fields", "['name','age','salary','is_active','created_at']");
|
||||
Options.Insert("db" , Base);
|
||||
|
||||
Result = OPI_TestDataRetrieval.ExecuteTestCLI("sqlite", "GetRecords", Options);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "GetRecords (no params)", "SQLite");
|
||||
OPI_TestDataRetrieval.Check_SQLiteSuccess(Result);
|
||||
|
||||
FilterStructure2.Insert("type" , "BEETWEEN");
|
||||
Filters.Add(FilterStructure2);
|
||||
|
||||
Options = New Structure;
|
||||
Options.Insert("table" , Table);
|
||||
Options.Insert("fields", "['name','age','salary','is_active','created_at']");
|
||||
Options.Insert("filter", Filters);
|
||||
Options.Insert("db" , Base);
|
||||
|
||||
Result = OPI_TestDataRetrieval.ExecuteTestCLI("sqlite", "GetRecords", Options);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "GetRecords (error)", "SQLite");
|
||||
OPI_TestDataRetrieval.Check_SQLiteError(Result);
|
||||
|
||||
Options = New Structure;
|
||||
Options.Insert("table" , "test1");
|
||||
Options.Insert("db" , Base);
|
||||
|
||||
Result = OPI_SQLite.GetRecords(, , , , , Base);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "GetRecords (obscure column)", "SQLite");
|
||||
OPI_TestDataRetrieval.Check_SQLiteSuccess(Result);
|
||||
|
||||
EndProcedure
|
||||
|
||||
Procedure CLI_SQLite_UpdateRecords(FunctionParameters)
|
||||
|
||||
Base = FunctionParameters["SQLite_DB"];
|
||||
Table = "test";
|
||||
|
||||
FieldsStructure = New Structure;
|
||||
FieldsStructure.Insert("name" , "Vitaly A.");
|
||||
FieldsStructure.Insert("salary", "999999");
|
||||
|
||||
Filters = New Array;
|
||||
|
||||
FilterStructure = New Structure;
|
||||
|
||||
FilterStructure.Insert("field", "name");
|
||||
FilterStructure.Insert("type" , "=");
|
||||
FilterStructure.Insert("value", "Vitaly");
|
||||
FilterStructure.Insert("union", "AND");
|
||||
FilterStructure.Insert("raw" , False);
|
||||
|
||||
Filters.Add(FilterStructure);
|
||||
|
||||
Options = New Structure;
|
||||
Options.Insert("table" , Table);
|
||||
Options.Insert("values", FieldsStructure);
|
||||
Options.Insert("filter", Filters);
|
||||
Options.Insert("db" , Base);
|
||||
|
||||
Result = OPI_TestDataRetrieval.ExecuteTestCLI("sqlite", "UpdateRecords", Options);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "UpdateRecords", "SQLite");
|
||||
OPI_TestDataRetrieval.Check_SQLiteSuccess(Result);
|
||||
|
||||
FilterStructure.Insert("value", "Vitaly A.");
|
||||
|
||||
Filters = New Array;
|
||||
Filters.Add(FilterStructure);
|
||||
|
||||
Options = New Structure;
|
||||
Options.Insert("table" , Table);
|
||||
Options.Insert("fields" , "['name','salary']");
|
||||
Options.Insert("filters", Filters);
|
||||
Options.Insert("db" , Base);
|
||||
|
||||
Check = OPI_TestDataRetrieval.ExecuteTestCLI("sqlite", "GetRecords", Options);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Check, "Check", "SQLite");
|
||||
OPI_TestDataRetrieval.Check_SQLiteSuccess(Check);
|
||||
OPI_TestDataRetrieval.Check_SQLiteFieldsValues(Check["data"][0], FieldsStructure);
|
||||
|
||||
EndProcedure
|
||||
|
||||
Procedure CLI_SQLite_DeletePosts(FunctionParameters)
|
||||
|
||||
Base = FunctionParameters["SQLite_DB"];
|
||||
Table = "test";
|
||||
|
||||
Filters = New Array;
|
||||
|
||||
FilterStructure = New Structure;
|
||||
|
||||
FilterStructure.Insert("field", "name");
|
||||
FilterStructure.Insert("type" , "=");
|
||||
FilterStructure.Insert("value", "Vitaly A.");
|
||||
FilterStructure.Insert("union", "AND");
|
||||
FilterStructure.Insert("raw" , False);
|
||||
|
||||
Filters.Add(FilterStructure);
|
||||
|
||||
Options = New Structure;
|
||||
Options.Insert("table" , Table);
|
||||
Options.Insert("filter", FilterStructure);
|
||||
Options.Insert("db" , Base);
|
||||
|
||||
Result = OPI_TestDataRetrieval.ExecuteTestCLI("sqlite", "DeletePosts", Options);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "DeletePosts", "SQLite");
|
||||
OPI_TestDataRetrieval.Check_SQLiteSuccess(Result);
|
||||
|
||||
Options = New Structure;
|
||||
Options.Insert("table" , Table);
|
||||
Options.Insert("fields" , "['name','salary']");
|
||||
Options.Insert("filters", Filters);
|
||||
Options.Insert("db" , Base);
|
||||
|
||||
Check = OPI_TestDataRetrieval.ExecuteTestCLI("sqlite", "GetRecords", Options);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Check, "Check", "SQLite");
|
||||
OPI_TestDataRetrieval.Check_SQLiteNoRows(Check);
|
||||
|
||||
EndProcedure
|
||||
|
||||
#EndRegion
|
||||
|
||||
#EndRegion
|
||||
|
@ -1003,11 +1003,7 @@ EndProcedure
|
||||
|
||||
Procedure ReplaceEscapeSequences(Text) Export
|
||||
|
||||
CharacterMapping = New Map;
|
||||
CharacterMapping.Insert("\n", Chars.LF);
|
||||
CharacterMapping.Insert("\r", Chars.CR);
|
||||
CharacterMapping.Insert("\f", Chars.FF);
|
||||
CharacterMapping.Insert("\v", Chars.VTab);
|
||||
CharacterMapping = GetEscapeSequencesMap();
|
||||
|
||||
For Each Symbol In CharacterMapping Do
|
||||
|
||||
@ -1018,6 +1014,18 @@ Procedure ReplaceEscapeSequences(Text) Export
|
||||
|
||||
EndProcedure
|
||||
|
||||
Procedure RestoreEscapeSequences(Text) Export
|
||||
|
||||
CharacterMapping = GetEscapeSequencesMap();
|
||||
|
||||
For Each Symbol In CharacterMapping Do
|
||||
|
||||
Text = StrReplace(Text, Symbol.Value, Symbol.Key);
|
||||
|
||||
EndDo;
|
||||
|
||||
EndProcedure
|
||||
|
||||
Function NumberToString(Val Number) Export
|
||||
Return StrReplace(String(Number), Chars.NBSp, "");
|
||||
EndFunction
|
||||
@ -1652,6 +1660,19 @@ Function RelevantNodeType(Val NodeType)
|
||||
|
||||
EndFunction
|
||||
|
||||
Function GetEscapeSequencesMap()
|
||||
|
||||
CharacterMapping = New Map;
|
||||
|
||||
CharacterMapping.Insert("\n", Chars.LF);
|
||||
CharacterMapping.Insert("\r", Chars.CR);
|
||||
CharacterMapping.Insert("\f", Chars.FF);
|
||||
CharacterMapping.Insert("\v", Chars.VTab);
|
||||
|
||||
Return CharacterMapping;
|
||||
|
||||
EndFunction
|
||||
|
||||
#Region AddinsManagement
|
||||
|
||||
Function InitializeAddIn(Val AddInName, Val Class, AddIn)
|
||||
|
@ -16445,7 +16445,7 @@
|
||||
КонецПроцедуры
|
||||
|
||||
Процедура SQLite_УдалитьЗаписи(ПараметрыФункции)
|
||||
|
||||
|
||||
База = ПараметрыФункции["SQLite_DB"];
|
||||
Таблица = "test";
|
||||
|
||||
@ -16472,7 +16472,7 @@
|
||||
|
||||
OPI_ПолучениеДанныхТестов.ЗаписатьЛог(Проверка, "Проверка", "SQLite");
|
||||
OPI_ПолучениеДанныхТестов.Проверка_SQLiteНетЗаписей(Проверка);
|
||||
|
||||
|
||||
КонецПроцедуры
|
||||
|
||||
#КонецОбласти
|
||||
|
@ -18321,7 +18321,7 @@
|
||||
Опции.Вставить("db" , База);
|
||||
|
||||
Результат = OPI_ПолучениеДанныхТестов.ВыполнитьТестCLI("sqlite", "ДобавитьЗаписи", Опции);
|
||||
|
||||
|
||||
OPI_ПолучениеДанныхТестов.ЗаписатьЛог(Результат, "ДобавитьЗаписи (ошибка поля)", "SQLite");
|
||||
OPI_ПолучениеДанныхТестов.Проверка_SQLiteОшибка(Результат);
|
||||
|
||||
@ -18332,7 +18332,7 @@
|
||||
Опции.Вставить("db" , База);
|
||||
|
||||
Результат = OPI_ПолучениеДанныхТестов.ВыполнитьТестCLI("sqlite", "ДобавитьЗаписи", Опции);
|
||||
|
||||
|
||||
OPI_ПолучениеДанныхТестов.ЗаписатьЛог(Результат, "ДобавитьЗаписи (ошибка поля без транзакции)", "SQLite");
|
||||
OPI_ПолучениеДанныхТестов.Проверка_SQLiteСтроки(Результат, 1);
|
||||
|
||||
@ -18342,7 +18342,7 @@
|
||||
Опции.Вставить("db" , База);
|
||||
|
||||
Результат = OPI_ПолучениеДанныхТестов.ВыполнитьТестCLI("sqlite", "ДобавитьЗаписи", Опции);
|
||||
|
||||
|
||||
OPI_ПолучениеДанныхТестов.ЗаписатьЛог(Результат, "ДобавитьЗаписи (ошибка json)", "SQLite");
|
||||
OPI_ПолучениеДанныхТестов.Проверка_SQLiteОшибка(Результат);
|
||||
|
||||
@ -18398,7 +18398,7 @@
|
||||
|
||||
Сортировка = Новый Структура("created_at", "DESC");
|
||||
Количество = 1;
|
||||
|
||||
|
||||
Опции = Новый Структура;
|
||||
Опции.Вставить("table" , Таблица);
|
||||
Опции.Вставить("fields", Поля);
|
||||
@ -18499,7 +18499,7 @@
|
||||
КонецПроцедуры
|
||||
|
||||
Процедура CLI_SQLite_УдалитьЗаписи(ПараметрыФункции)
|
||||
|
||||
|
||||
База = ПараметрыФункции["SQLite_DB"];
|
||||
Таблица = "test";
|
||||
|
||||
@ -18535,7 +18535,7 @@
|
||||
|
||||
OPI_ПолучениеДанныхТестов.ЗаписатьЛог(Проверка, "Проверка", "SQLite");
|
||||
OPI_ПолучениеДанныхТестов.Проверка_SQLiteНетЗаписей(Проверка);
|
||||
|
||||
|
||||
КонецПроцедуры
|
||||
|
||||
#КонецОбласти
|
||||
|
@ -2131,9 +2131,9 @@
|
||||
КонецФункции
|
||||
|
||||
Функция ПолучитьОбщийМодуль(Знач Имя)
|
||||
|
||||
|
||||
Модуль = Вычислить(Имя);
|
||||
|
||||
|
||||
Возврат Модуль;
|
||||
КонецФункции
|
||||
|
||||
|
@ -1023,7 +1023,7 @@
|
||||
Текст = СтрЗаменить(Текст, Символ.Значение, Символ.Ключ);
|
||||
|
||||
КонецЦикла;
|
||||
|
||||
|
||||
КонецПроцедуры
|
||||
|
||||
Функция ЧислоВСтроку(Знач Число) Экспорт
|
||||
@ -1661,16 +1661,16 @@
|
||||
КонецФункции
|
||||
|
||||
Функция ПолучитьСоответствиеУправляющихПоследовательностей()
|
||||
|
||||
|
||||
СоответствиеСимволов = Новый Соответствие;
|
||||
|
||||
|
||||
СоответствиеСимволов.Вставить("\n", Символы.ПС);
|
||||
СоответствиеСимволов.Вставить("\r", Символы.ВК);
|
||||
СоответствиеСимволов.Вставить("\f", Символы.ПФ);
|
||||
СоответствиеСимволов.Вставить("\v", Символы.ВТаб);
|
||||
|
||||
|
||||
Возврат СоответствиеСимволов;
|
||||
|
||||
|
||||
КонецФункции
|
||||
|
||||
#Область РаботаСВнешнимиКомпонентами
|
||||
|
@ -1023,7 +1023,7 @@
|
||||
Текст = СтрЗаменить(Текст, Символ.Значение, Символ.Ключ);
|
||||
|
||||
КонецЦикла;
|
||||
|
||||
|
||||
КонецПроцедуры
|
||||
|
||||
Функция ЧислоВСтроку(Знач Число) Экспорт
|
||||
@ -1661,16 +1661,16 @@
|
||||
КонецФункции
|
||||
|
||||
Функция ПолучитьСоответствиеУправляющихПоследовательностей()
|
||||
|
||||
|
||||
СоответствиеСимволов = Новый Соответствие;
|
||||
|
||||
|
||||
СоответствиеСимволов.Вставить("\n", Символы.ПС);
|
||||
СоответствиеСимволов.Вставить("\r", Символы.ВК);
|
||||
СоответствиеСимволов.Вставить("\f", Символы.ПФ);
|
||||
СоответствиеСимволов.Вставить("\v", Символы.ВТаб);
|
||||
|
||||
|
||||
Возврат СоответствиеСимволов;
|
||||
|
||||
|
||||
КонецФункции
|
||||
|
||||
#Область РаботаСВнешнимиКомпонентами
|
||||
|
@ -16445,7 +16445,7 @@
|
||||
КонецПроцедуры
|
||||
|
||||
Процедура SQLite_УдалитьЗаписи(ПараметрыФункции)
|
||||
|
||||
|
||||
База = ПараметрыФункции["SQLite_DB"];
|
||||
Таблица = "test";
|
||||
|
||||
@ -16472,7 +16472,7 @@
|
||||
|
||||
OPI_ПолучениеДанныхТестов.ЗаписатьЛог(Проверка, "Проверка", "SQLite");
|
||||
OPI_ПолучениеДанныхТестов.Проверка_SQLiteНетЗаписей(Проверка);
|
||||
|
||||
|
||||
КонецПроцедуры
|
||||
|
||||
#КонецОбласти
|
||||
|
@ -18321,7 +18321,7 @@
|
||||
Опции.Вставить("db" , База);
|
||||
|
||||
Результат = OPI_ПолучениеДанныхТестов.ВыполнитьТестCLI("sqlite", "ДобавитьЗаписи", Опции);
|
||||
|
||||
|
||||
OPI_ПолучениеДанныхТестов.ЗаписатьЛог(Результат, "ДобавитьЗаписи (ошибка поля)", "SQLite");
|
||||
OPI_ПолучениеДанныхТестов.Проверка_SQLiteОшибка(Результат);
|
||||
|
||||
@ -18332,7 +18332,7 @@
|
||||
Опции.Вставить("db" , База);
|
||||
|
||||
Результат = OPI_ПолучениеДанныхТестов.ВыполнитьТестCLI("sqlite", "ДобавитьЗаписи", Опции);
|
||||
|
||||
|
||||
OPI_ПолучениеДанныхТестов.ЗаписатьЛог(Результат, "ДобавитьЗаписи (ошибка поля без транзакции)", "SQLite");
|
||||
OPI_ПолучениеДанныхТестов.Проверка_SQLiteСтроки(Результат, 1);
|
||||
|
||||
@ -18342,7 +18342,7 @@
|
||||
Опции.Вставить("db" , База);
|
||||
|
||||
Результат = OPI_ПолучениеДанныхТестов.ВыполнитьТестCLI("sqlite", "ДобавитьЗаписи", Опции);
|
||||
|
||||
|
||||
OPI_ПолучениеДанныхТестов.ЗаписатьЛог(Результат, "ДобавитьЗаписи (ошибка json)", "SQLite");
|
||||
OPI_ПолучениеДанныхТестов.Проверка_SQLiteОшибка(Результат);
|
||||
|
||||
@ -18398,7 +18398,7 @@
|
||||
|
||||
Сортировка = Новый Структура("created_at", "DESC");
|
||||
Количество = 1;
|
||||
|
||||
|
||||
Опции = Новый Структура;
|
||||
Опции.Вставить("table" , Таблица);
|
||||
Опции.Вставить("fields", Поля);
|
||||
@ -18499,7 +18499,7 @@
|
||||
КонецПроцедуры
|
||||
|
||||
Процедура CLI_SQLite_УдалитьЗаписи(ПараметрыФункции)
|
||||
|
||||
|
||||
База = ПараметрыФункции["SQLite_DB"];
|
||||
Таблица = "test";
|
||||
|
||||
@ -18535,7 +18535,7 @@
|
||||
|
||||
OPI_ПолучениеДанныхТестов.ЗаписатьЛог(Проверка, "Проверка", "SQLite");
|
||||
OPI_ПолучениеДанныхТестов.Проверка_SQLiteНетЗаписей(Проверка);
|
||||
|
||||
|
||||
КонецПроцедуры
|
||||
|
||||
#КонецОбласти
|
||||
|
Loading…
x
Reference in New Issue
Block a user