-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from IgorKilipenko/sprint2/dev
Sprint2/dev v2.0
- Loading branch information
Showing
24 changed files
with
1,600 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<MetaDataObject xmlns="http://v8.1c.ru/8.3/MDClasses" xmlns:app="http://v8.1c.ru/8.2/managed-application/core" xmlns:cfg="http://v8.1c.ru/8.1/data/enterprise/current-config" xmlns:cmi="http://v8.1c.ru/8.2/managed-application/cmi" xmlns:ent="http://v8.1c.ru/8.1/data/enterprise" xmlns:lf="http://v8.1c.ru/8.2/managed-application/logform" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:sys="http://v8.1c.ru/8.1/data/ui/fonts/system" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:web="http://v8.1c.ru/8.1/data/ui/colors/web" xmlns:win="http://v8.1c.ru/8.1/data/ui/colors/windows" xmlns:xen="http://v8.1c.ru/8.3/xcf/enums" xmlns:xpr="http://v8.1c.ru/8.3/xcf/predef" xmlns:xr="http://v8.1c.ru/8.3/xcf/readable" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.17"> | ||
<CommonModule uuid="5816f332-100e-41af-986b-bdae2e965e29"> | ||
<Properties> | ||
<Name>ПреобразованиеТиповКлиентСервер</Name> | ||
<Synonym> | ||
<v8:item> | ||
<v8:lang>ru</v8:lang> | ||
<v8:content>Преобразование типов клиент сервер</v8:content> | ||
</v8:item> | ||
</Synonym> | ||
<Comment/> | ||
<Global>false</Global> | ||
<ClientManagedApplication>true</ClientManagedApplication> | ||
<Server>true</Server> | ||
<ExternalConnection>false</ExternalConnection> | ||
<ClientOrdinaryApplication>false</ClientOrdinaryApplication> | ||
<ServerCall>false</ServerCall> | ||
<Privileged>false</Privileged> | ||
<ReturnValuesReuse>DontUse</ReturnValuesReuse> | ||
</Properties> | ||
</CommonModule> | ||
</MetaDataObject> |
28 changes: 28 additions & 0 deletions
28
src/CommonModules/ПреобразованиеТиповКлиентСервер/Ext/Module.bsl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#Область ПрограммныйИнтерфейс | ||
|
||
// Параметры: | ||
// ЧислоСтрокой - Строка - Строка приводимая к числу | ||
// ВозвращатьНеопределено - Булево - Если Истина и строка содержит некорректное значение, то возвращать Неопределено | ||
// Возвращаемое значение: | ||
// Число | ||
Функция ПривестиСтрокуКЧислу(Знач числоСтрокой, Знач возвращатьНеопределено = Ложь) Экспорт | ||
описаниеТипаЧисла = Новый ОписаниеТипов("Число"); | ||
результат = описаниеТипаЧисла.ПривестиЗначение(числоСтрокой); | ||
|
||
Если возвращатьНеопределено И (результат = 0) Тогда | ||
|
||
стр = Строка(числоСтрокой); | ||
Если стр <> "" Тогда | ||
Возврат Неопределено; | ||
КонецЕсли; | ||
|
||
стр = СтрЗаменить(СокрЛП(стр), "0", ""); | ||
Если (стр <> "") И (стр <> ".") И (стр <> ",") Тогда | ||
Возврат Неопределено; | ||
КонецЕсли; | ||
КонецЕсли; | ||
|
||
Возврат результат; | ||
КонецФункции | ||
|
||
#КонецОбласти // ПрограммныйИнтерфейс |
Oops, something went wrong.