<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>https://wiki.sftserv.ru/index.php?action=history&amp;feed=atom&amp;title=DOC_TO_DOC</id>
		<title>DOC TO DOC - История изменений</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.sftserv.ru/index.php?action=history&amp;feed=atom&amp;title=DOC_TO_DOC"/>
		<link rel="alternate" type="text/html" href="https://wiki.sftserv.ru/index.php?title=DOC_TO_DOC&amp;action=history"/>
		<updated>2026-05-03T05:05:48Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.26.3</generator>

	<entry>
		<id>https://wiki.sftserv.ru/index.php?title=DOC_TO_DOC&amp;diff=27122&amp;oldid=prev</id>
		<title>Hisava: /* Текст */</title>
		<link rel="alternate" type="text/html" href="https://wiki.sftserv.ru/index.php?title=DOC_TO_DOC&amp;diff=27122&amp;oldid=prev"/>
				<updated>2017-09-28T06:46:12Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Текст&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='ru'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 06:46, 28 сентября 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l67&quot; &gt;Строка 67:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 67:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160;  aa := SelectSqlToArr( sql, fld, path, false, false )&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160;  aa := SelectSqlToArr( sql, fld, path, false, false )&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160;  if !IsEmpty( aa )&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160;  if !IsEmpty( aa )&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160;  AddAll( kinddoc, lvl, &amp;quot; &amp;quot;,, fld, aa,,,, Year( data ), Month( data ),,, false,, del, { false, false, false, false, false } )&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160;  &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[[&lt;/ins&gt;AddAll&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;]]&lt;/ins&gt;( kinddoc, lvl, &amp;quot; &amp;quot;,, fld, aa,,,, Year( data ), Month( data ),,, false,, del, { false, false, false, false, false } )&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160;  endif&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160;  endif&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; finally&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; finally&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Hisava</name></author>	</entry>

	<entry>
		<id>https://wiki.sftserv.ru/index.php?title=DOC_TO_DOC&amp;diff=27105&amp;oldid=prev</id>
		<title>Hisava: /* Текст */</title>
		<link rel="alternate" type="text/html" href="https://wiki.sftserv.ru/index.php?title=DOC_TO_DOC&amp;diff=27105&amp;oldid=prev"/>
				<updated>2017-09-27T11:50:53Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Текст&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='ru'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 11:50, 27 сентября 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l37&quot; &gt;Строка 37:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 37:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; endif&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; endif&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; ocd1 := OpenChildDoc( kinddoc, lvl, ~ParentForm := &amp;quot;&amp;quot;, ~IsCondition := false, ~Month := Month( data ), ~Year := Year( data )&amp;#160; )&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; ocd1 := &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[[&lt;/ins&gt;OpenChildDoc&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;]]&lt;/ins&gt;( kinddoc, lvl, ~ParentForm := &amp;quot;&amp;quot;, ~IsCondition := false, ~Month := Month( data ), ~Year := Year( data )&amp;#160; )&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; ( ocd1 )-&amp;gt;( SetFilter( del ) )&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; ( ocd1 )-&amp;gt;( SetFilter( del ) )&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; ( ocd1 )-&amp;gt;( Refresh() )&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; ( ocd1 )-&amp;gt;( Refresh() )&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l72&quot; &gt;Строка 72:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 72:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160;  HideMsg( msg )&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160;  HideMsg( msg )&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; end&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; end&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Смотрите также =&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Смотрите также =&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Полезные функции]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Полезные функции]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Функции Delphi]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Функции Delphi]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Hisava</name></author>	</entry>

	<entry>
		<id>https://wiki.sftserv.ru/index.php?title=DOC_TO_DOC&amp;diff=27096&amp;oldid=prev</id>
		<title>Hisava: Новая страница: «DOC_TO_DOC - это программа из справочника R266  Копирование первого этажа любого документа…»</title>
		<link rel="alternate" type="text/html" href="https://wiki.sftserv.ru/index.php?title=DOC_TO_DOC&amp;diff=27096&amp;oldid=prev"/>
				<updated>2017-09-27T09:42:44Z</updated>
		
		<summary type="html">&lt;p&gt;Новая страница: «&lt;a href=&quot;/index.php/DOC_TO_DOC&quot; title=&quot;DOC TO DOC&quot;&gt;DOC_TO_DOC&lt;/a&gt; - это программа из справочника &lt;a href=&quot;/index.php/R266&quot; title=&quot;R266&quot;&gt;R266&lt;/a&gt;  Копирование первого этажа любого документа…»&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[DOC_TO_DOC]] - это программа из справочника [[R266]]&lt;br /&gt;
 Копирование первого этажа любого документа&lt;br /&gt;
[[DOC_TO_DOC]]( kinddoc,  data,  flt,  lvlnum )&lt;br /&gt;
&lt;br /&gt;
kinddoc - тип документа из справочника R169&lt;br /&gt;
&lt;br /&gt;
data - дата, для определения месяца, за который переносятся документы&lt;br /&gt;
&lt;br /&gt;
flt - дополнительный фильтр для sql - запроса&lt;br /&gt;
= Текст =&lt;br /&gt;
 parameters kinddoc, data, flt, lvlnum, ip&lt;br /&gt;
 &lt;br /&gt;
 // Протокол переноса документов из УУ в НУ&lt;br /&gt;
 FILL_U_N( kinddoc )&lt;br /&gt;
 &lt;br /&gt;
 local path, ocd1, del, aa, fld, i, sql, msg, lvl&lt;br /&gt;
 &lt;br /&gt;
 if Empty( lvlnum )&lt;br /&gt;
   lvl := '1'&lt;br /&gt;
 else&lt;br /&gt;
   lvl := lvlnum&lt;br /&gt;
 endif&lt;br /&gt;
 &lt;br /&gt;
 if !Empty( flt )&lt;br /&gt;
   flt := ' and ' + flt&lt;br /&gt;
 else&lt;br /&gt;
   flt := ''&lt;br /&gt;
 endif&lt;br /&gt;
 &lt;br /&gt;
 fld := {}&lt;br /&gt;
 path := '\\FABIUS\FABIUS\OPDATA'&lt;br /&gt;
 &lt;br /&gt;
 if Empty( ip )&lt;br /&gt;
   del := [ KINDDOC = '] + kinddoc + [' and LVLNUM = '] + lvl + [' ]&lt;br /&gt;
 else&lt;br /&gt;
   del := [ KINDDOC = '] + kinddoc + [' and LVLNUM = '] + lvl + [' and KSHIFT &amp;gt;= '] + ip[1] + [1' and KSHIFT &amp;lt;= '] + ip[2] + [1' ]&lt;br /&gt;
 endif&lt;br /&gt;
 &lt;br /&gt;
 ocd1 := OpenChildDoc( kinddoc, lvl, ~ParentForm := &amp;quot;&amp;quot;, ~IsCondition := false, ~Month := Month( data ), ~Year := Year( data )  )&lt;br /&gt;
 ( ocd1 )-&amp;gt;( SetFilter( del ) )&lt;br /&gt;
 ( ocd1 )-&amp;gt;( Refresh() )&lt;br /&gt;
 &lt;br /&gt;
 aa := ( ocd1 )-&amp;gt;( DbStruct() )&lt;br /&gt;
 if !IsEmpty( aa )&lt;br /&gt;
   for i := 6 to len( aa )&lt;br /&gt;
     Aadd( fld, aa[i,1] )&lt;br /&gt;
   next&lt;br /&gt;
 endif&lt;br /&gt;
 &lt;br /&gt;
 sql := [ Select ]&lt;br /&gt;
 if !Empty( fld )&lt;br /&gt;
   for i := 1 to len( fld )&lt;br /&gt;
     sql := sql + fld[i] + [, ]&lt;br /&gt;
   next&lt;br /&gt;
 endif&lt;br /&gt;
 sql := Left( sql, len( sql ) - 2 )&lt;br /&gt;
 sql := StrTran( sql, [ SUM,], [ &amp;quot;SUM&amp;quot;,] )&lt;br /&gt;
 sql := sql + [ From DOCS] + Ret_f_ext( data ) + [ ;&lt;br /&gt;
   Where ] + del + flt&lt;br /&gt;
 &lt;br /&gt;
 if !Empty( ip )&lt;br /&gt;
  sql := sql + [ and KSHIFT between '] + ip[1] + [1' and '] + ip[2] + [1' ]&lt;br /&gt;
 endif&lt;br /&gt;
 &lt;br /&gt;
 try&lt;br /&gt;
   msg := WaitMsg( 'Выполняется перенос документов' + Chr( 10 ) + kinddoc + ' ' + RealName( 'R169', kinddoc ) )&lt;br /&gt;
   aa := SelectSqlToArr( sql, fld, path, false, false )&lt;br /&gt;
   if !IsEmpty( aa )&lt;br /&gt;
     AddAll( kinddoc, lvl, &amp;quot; &amp;quot;,, fld, aa,,,, Year( data ), Month( data ),,, false,, del, { false, false, false, false, false } )&lt;br /&gt;
   endif&lt;br /&gt;
 finally&lt;br /&gt;
   HideMsg( msg )&lt;br /&gt;
 end&lt;br /&gt;
= Смотрите также =&lt;br /&gt;
[[Полезные функции]]&lt;br /&gt;
&lt;br /&gt;
[[Функции Delphi]]&lt;/div&gt;</summary>
		<author><name>Hisava</name></author>	</entry>

	</feed>