From 114a5a3d991628893ad2daccbd9c3cd630174fd5 Mon Sep 17 00:00:00 2001 From: Andrey Paskal Date: Thu, 24 Dec 2009 19:40:01 +0300 Subject: [PATCH] =?utf8?q?=D0=91=D0=B8=D0=B7=D0=BD=D0=B5=D1=81-=D1=81=D1=85=D0=B5=D0=BC=D0=B0=20=D1=81=20=D0=BF=D1=80=D0=B5=D0=B4=D1=8B=D0=B4=D1=83=D1=89=D0=B5=D0=B9=20=D0=B2=D0=B5=D1=80=D1=81=D0=B8=D0=B8=20=D0=90=D0=BD=D0=B0=D0=BD=D0=B0=D1=81=D0=B0,=20=D0=BA=D0=BE=D1=82=D0=BE=D1=80=D1=83=D1=8E=20=D0=BD=D1=83=D0=B6=D0=BD=D0=BE=20=D0=BF=D0=BE=D1=80=D1=82=D0=B8=D1=80=D0=BE=D0=B2=D0=B0=D1=82=D1=8C =20=D0=BD=D0=B0=20=D1=81=D0=B2=D0=B5=D0=B6=D0=B8=D0=B9=20=D0=90=D0=BD=D0=B0=D0=BD=D0=B0=D1=81.=20=D0=A1=D0=B5=D0=B9=D1=87=D0=B0=D1=81=20=D0=BF=D0=BE=D1=80=D1=82=D0=B8=D1=80=D0=BE=D0=B2=D0=B0=D0=BD=D0=B0=20=D1=82=D0=BE=D0=BB=D1=8C=D0=BA=D0=BE=20=D0=BE=D0=B4=D0=BD=D0=B0=20=D1=84=D0=BE=D1=80=D0=BC=D0=B0=20-=20"=D0=A1=D0=BF=D0=B8=D1=81=D0=BE=D0=BA=20=D0=B4=D0=BE=D0=BA=D1=83=D0=BC=D0=B5=D0=BD=D1=82=D0=BE=D0=B2", =20=D0=BE=D1=82=D0=BA=D1=80=D1=8B=D0=B2=D0=B0=D0=B5=D0=BC=D0=B0=D1=8F=20=D0=BF=D1=80=D0=B8=20=D0=B7=D0=B0=D0=BF=D1=83=D1=81=D0=BA=D0=B5=20=D0=B1=D0=B8=D0=B7=D0=BD=D0=B5=D1=81-=D1=81=D1=85=D0=B5=D0=BC=D1=8B. =20=D0=9C=D0=B5=D0=BD=D1=8E,=20=D0=B2=D0=BF=D1=80=D0=BE=D1=87=D0=B5=D0=BC,=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D0=B0=D0=B5=D1=82=20=D0=B1=D0=B5=D0=B7=20=D0=BF=D0=B5=D1=80=D0=B5=D0=BF=D0=B8=D1=81=D1=8B=D0=B2=D0=B0=D0=BD=D0=B8=D1=8F.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- applications/inventory/inventory.cfg |11310 ++++++++++++++++++++++++++++++++++ 1 files changed, 11310 insertions(+), 0 deletions(-) create mode 100644 applications/inventory/inventory.cfg diff --git a/applications/inventory/inventory.cfg b/applications/inventory/inventory.cfg new file mode 100644 index 0000000..e461a27 --- /dev/null +++ b/applications/inventory/inventory.cfg @@ -0,0 +1,11310 @@ + + + + + Оперативный учет. + 1535 + Проект Ананас + 2007-12-27 + Типовая бизнес-схема позволяет вести учет поступления и реализации товара, получать данные об остатках товара на любую дату. Просматривать движение товара в требуемые промежутки времени, в разрезе требуемых контрагентов. Оформлять банковские, кассовые документы. Формирует печатные формы документов и отчеты в форматах Microsoft Office и OpenOffice.org. + inventory + + + + + + + + + 1336 + + + + + + 934 + + + + + + 940 + + + + + + + + Закрыть + + 572 + + + + + + Счет + Alt+1 + 1263 + + + + Платежное поручение + Alt+2 + 1269 + + + + ПКО + Alt+3 + 1251 + + + + Расходная накладная + Alt+4 + 1245 + + + + Приходная накладная + Alt+5 + 1239 + + + + Выписка банка + Alt+6 + 1275 + + + + РКО + Alt+7 + 1257 + + + + + + Справочник товаров + + 934 + + + + Справочник контрагентов + + 940 + + + + + Справочник констант + + 1512 + + + + Справочник складов + + 1506 + + + + + + Выписанные счета + Ctrl+1 + 1336 + + + + Журнал платежных поручений + Ctrl+2 + 1373 + + + + Журнал ПКО + Ctrl+3 + 1420 + + + + Журнал &реализации + Ctrl+4 + 978 + + + + Журнал &прихода + Ctrl+5 + 972 + + + + Журнал банковских выписок + Ctrl+6 + 1432 + + + + Журнал РКО + Ctrl+7 + 1426 + + + + Общий журнал + Ctrl+8 + 1199 + + + + + + Движение товара + Ctrl+L + 966 + + + + Сальдовая ведомость с группами + + 1526 + + + + + Книга закупок + + 1101 + + + + Книга продаж + + 1107 + + + + + Ведомость по кассе + + 1456 + + + + Ведомость по поставщикам и покупателям + + 1462 + + + + Ведомость по банку + + 1489 + + + + + + + + function on_systemstart() +{ + sys.Message(0,"system started!"); + sys.OpenForm("DocJournal.Системный журнал.Form.Список документов"); +} +function getConstant(catName, constName) +{ + var cat = new Catalogue(catName); + var res = "<"+constName + "> нет в спр. констант"; + if(!cat) return "нет справочника с именем"+catName; + cat.Select(); + if(cat.First()) + { + do + { + if(String(cat.Value("Имя константы"))==constName) + { + res = cat.Value("Значение"); + break; + } + }while(cat.Next()); + } + return res; + } + +function getCatalogueValue(catName, elemId, fname) +{ + var cat = new Catalogue(catName); + if(!cat) return ""; + cat.Select(); + return cat.GetElementValue(elemId, fname); +} + +function Conduct(regname,doc, tablename, debet, credit, towar, kontragent, sklad, kolvo,sum) +{ + var summa =parseFloat(sum); + var arName=regname; // имя накопительного регистра в метаданных + var ar = new ARegister(arName); // создаем экземпляр объекта накопительного регистра + if (ar.SetDocument(doc)) { sys.Message(1,"Не прошла привязка документа"); return; } + if(tablename!="") ar.SetTable(tablename); + if (ar.New()) { sys.Message(1,"Ошибка при добавлении в регистр " ); return; } // создаем новую запись в накопительном регистре + if(regname == "Главная книга") + { + ar.SetValue("Дебет",debet); + ar.SetValue("Кредит",credit); + ar.SetValue("Товар",towar); + ar.SetValue("Контрагент",kontragent); + ar.SetValue("Склад",sklad); + if(debet=="41.2" && credit == "60") // оприходование товаров согласно договору без учета НДС + { + ar.SetValue("Количество",kolvo); + ar.SetValue("Сумма",summa); + ar.SetValue("Примечание","Оприходование товара"); // приходная накладная + } + if(debet=="19" && credit == "60") //учет НДС + { + ar.SetValue("Сумма",summa); + ar.SetValue("Примечание","учет НДС"); // приходная накладная + } + if(debet=="68" && credit == "19") //зачет НДС + { + ar.SetValue("Сумма",summa); + ar.SetValue("Примечание","зачет НДС"); // приходная накладная + } + if(debet=="60" && credit == "50") //оплата приобр. товаров через кассу + { + ar.SetValue("Сумма",-summa); + ar.SetValue("Примечание","оплата через кассу"); // рко + } + if(debet=="60" && credit == "51") // оплата приобр. товаров с расч. счета + { + ar.SetValue("Сумма",-summa); + ar.SetValue("Примечание","оплата с расч. счета"); // платежное поручение + } + if(debet=="90" && credit == "41.2") // списание реализ. товаров + { + ar.SetValue("Количество",-kolvo); + ar.SetValue("Сумма",-summa); + ar.SetValue("Примечание","списание реализ. товаров"); // расх. накладная + } + if(debet=="90" && credit == "68") //начисленность задолженности за НДС + { + ar.SetValue("Сумма",summa); + ar.SetValue("Примечание","начисление задолженности по НДС"); // расх накладная + } + if(debet=="51" && credit == "90") //поступл на расч. счет за реализ. товары + { + ar.SetValue("Сумма",summa); + ar.SetValue("Примечание","поступления на расч. счет за реализ. товар"); //банковская выписка + } + if(debet=="50" && credit == "90") //реализация товара через кассу + { + ar.SetValue("Сумма",summa); + ar.SetValue("Примечание","реализ. товара через кассу"); // пко + } + + } + if (ar.Update()) { sys.Message(1,"Ошибка обновления регистра"); return;} // запись значений в базу дянных + print("document conducted"); + ar = 0; +} + +function ClosePeriod(regname) +{ + var arName=regname; // имя накопительного регистра в метаданных + var ar = new ARegister(arName); // создаем экземпляр объекта накопительного регистра + //ar.ClosePeriod(); // перерасчет остатков + ar = 0; +} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 134 + + + + + + + + + 146 + + + +
+ + + 0 + <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> +<class>Catalogue</class> +<widget class="wCatalogue"> + <property name="name"> + <cstring>Catalogue</cstring> + </property> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>448</width> + <height>103</height> + </rect> + </property> + <property name="caption"> + <string>Редактор группы</string> + </property> + <property name="Name"> + <string></string> + </property> + <property name="Id"> + <number>129</number> + </property> + <grid> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLayoutWidget" row="0" column="1"> + <property name="name"> + <cstring>layout13</cstring> + </property> + <vbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="wActionButton"> + <property name="name"> + <cstring>cancel_button</cstring> + </property> + <property name="text"> + <string>Отмена</string> + </property> + <property name="accel"> + <string>Esc</string> + </property> + <property name="action"> + <bool>true</bool> + </property> + <property name="actionUpdate"> + <bool>false</bool> + </property> + <property name="actionTurnOn"> + <bool>false</bool> + </property> + <property name="actionClose"> + <bool>true</bool> + </property> + <property name="actionId"> + <number>390</number> + </property> + <property name="script"> + <bool>false</bool> + </property> + </widget> + <spacer> + <property name="name"> + <cstring>spacer3</cstring> + </property> + <property name="orientation"> + <enum>Vertical</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>20</width> + <height>31</height> + </size> + </property> + </spacer> + <widget class="wActionButton"> + <property name="name"> + <cstring>ok_button</cstring> + </property> + <property name="text"> + <string>Принять</string> + </property> + <property name="accel"> + <string>Ctrl+Return</string> + </property> + <property name="action"> + <bool>true</bool> + </property> + <property name="actionUpdate"> + <bool>true</bool> + </property> + <property name="actionTurnOn"> + <bool>false</bool> + </property> + <property name="actionClose"> + <bool>true</bool> + </property> + <property name="script"> + <bool>false</bool> + </property> + <property name="scriptCode"> + <string></string> + </property> + </widget> + </vbox> + </widget> + <widget class="QLayoutWidget" row="0" column="0"> + <property name="name"> + <cstring>layout12</cstring> + </property> + <vbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel1_2</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Название группы</string> + </property> + </widget> + <widget class="wDBField"> + <property name="name"> + <cstring>wDBField_2</cstring> + </property> + <property name="Id"> + <number>146</number> + </property> + <property name="FieldType"> + <string>C 80 0 *</string> + </property> + <property name="EditorType"> + <enum>String</enum> + </property> + <property name="FieldName"> + <string>Название группы</string> + </property> + </widget> + </vbox> + </widget> + </grid> +</widget> +<tabstops> + <tabstop>wDBField_2</tabstop> + <tabstop>cancel_button</tabstop> + <tabstop>ok_button</tabstop> +</tabstops> +<layoutdefaults spacing="5" margin="5"/> +<includehints> + <includehint>wcatalogue.h</includehint> + <includehint>wactionbutton.h</includehint> + <includehint>wactionbutton.h</includehint> + <includehint>wdbfield.h</includehint> +</includehints> +</UI> + + +
+ + + 0 + <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> +<class>Catalogue</class> +<widget class="wCatalogue"> + <property name="name"> + <cstring>Catalogue</cstring> + </property> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>463</width> + <height>351</height> + </rect> + </property> + <property name="caption"> + <string>Каталог товаров</string> + </property> + <property name="Name"> + <string></string> + </property> + <property name="Id"> + <number>129</number> + </property> + <grid> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLayoutWidget" row="0" column="0" rowspan="1" colspan="2"> + <property name="name"> + <cstring>layout6</cstring> + </property> + <vbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel1</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Наименование</string> + </property> + </widget> + <widget class="wDBField"> + <property name="name"> + <cstring>wDBField1</cstring> + </property> + <property name="focusPolicy"> + <enum>StrongFocus</enum> + </property> + <property name="Id"> + <number>134</number> + </property> + <property name="FieldType"> + <string>C 120 0 *</string> + </property> + <property name="EditorType"> + <enum>String</enum> + </property> + <property name="FieldName"> + <string>Наименование</string> + </property> + </widget> + </vbox> + </widget> + <widget class="QLayoutWidget" row="1" column="0" rowspan="1" colspan="2"> + <property name="name"> + <cstring>layout7</cstring> + </property> + <vbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel1_2</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Артикул</string> + </property> + </widget> + <widget class="wDBField"> + <property name="name"> + <cstring>wDBField2</cstring> + </property> + <property name="focusPolicy"> + <enum>StrongFocus</enum> + </property> + <property name="Id"> + <number>138</number> + </property> + <property name="FieldType"> + <string>C 30 0 *</string> + </property> + <property name="EditorType"> + <enum>String</enum> + </property> + <property name="FieldName"> + <string>Артикул</string> + </property> + </widget> + </vbox> + </widget> + <widget class="QLayoutWidget" row="0" column="2" rowspan="6" colspan="1"> + <property name="name"> + <cstring>layout8</cstring> + </property> + <vbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="wActionButton"> + <property name="name"> + <cstring>cancel_button</cstring> + </property> + <property name="text"> + <string>Отмена</string> + </property> + <property name="accel"> + <string>Esc</string> + </property> + <property name="action"> + <bool>true</bool> + </property> + <property name="actionUpdate"> + <bool>false</bool> + </property> + <property name="actionTurnOn"> + <bool>false</bool> + </property> + <property name="actionClose"> + <bool>true</bool> + </property> + <property name="actionId"> + <number>390</number> + </property> + <property name="script"> + <bool>false</bool> + </property> + </widget> + <spacer> + <property name="name"> + <cstring>spacer2</cstring> + </property> + <property name="orientation"> + <enum>Vertical</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>20</width> + <height>30</height> + </size> + </property> + </spacer> + <widget class="wActionButton"> + <property name="name"> + <cstring>ok_button</cstring> + </property> + <property name="text"> + <string>Принять</string> + </property> + <property name="accel"> + <string>Ctrl+Return</string> + </property> + <property name="action"> + <bool>true</bool> + </property> + <property name="actionUpdate"> + <bool>true</bool> + </property> + <property name="actionTurnOn"> + <bool>false</bool> + </property> + <property name="actionClose"> + <bool>true</bool> + </property> + <property name="script"> + <bool>false</bool> + </property> + <property name="scriptCode"> + <string></string> + </property> + <property name="actionPrint" stdset="0"> + <bool>false</bool> + </property> + </widget> + </vbox> + </widget> + <widget class="QLayoutWidget" row="2" column="0"> + <property name="name"> + <cstring>layout7_2</cstring> + </property> + <vbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel2_2</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>%НДС</string> + </property> + </widget> + <widget class="wDBField"> + <property name="name"> + <cstring>wDBField4</cstring> + </property> + <property name="focusPolicy"> + <enum>StrongFocus</enum> + </property> + <property name="Id"> + <number>642</number> + </property> + <property name="FieldType"> + <string>N 2 1 *</string> + </property> + <property name="EditorType"> + <enum>Numberic</enum> + </property> + <property name="FieldName"> + <string>%НДС</string> + </property> + </widget> + </vbox> + </widget> + <widget class="QLayoutWidget" row="2" column="1"> + <property name="name"> + <cstring>layout7_2_2</cstring> + </property> + <vbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel2_2_2</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>%НП</string> + </property> + </widget> + <widget class="wDBField"> + <property name="name"> + <cstring>wDBField5</cstring> + </property> + <property name="focusPolicy"> + <enum>StrongFocus</enum> + </property> + <property name="Id"> + <number>644</number> + </property> + <property name="FieldType"> + <string>N 2 1 *</string> + </property> + <property name="EditorType"> + <enum>Numberic</enum> + </property> + <property name="FieldName"> + <string>%НП</string> + </property> + </widget> + </vbox> + </widget> + <widget class="QLayoutWidget" row="3" column="0" rowspan="1" colspan="2"> + <property name="name"> + <cstring>layout7_2_3</cstring> + </property> + <vbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel2_2_3</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Страна происхождения</string> + </property> + </widget> + <widget class="wDBField"> + <property name="name"> + <cstring>wDBField6</cstring> + </property> + <property name="focusPolicy"> + <enum>StrongFocus</enum> + </property> + <property name="Id"> + <number>819</number> + </property> + <property name="FieldType"> + <string>C 254 0 *</string> + </property> + <property name="EditorType"> + <enum>String</enum> + </property> + <property name="FieldName"> + <string>Страна происхождения</string> + </property> + </widget> + </vbox> + </widget> + <widget class="QLayoutWidget" row="4" column="0" rowspan="1" colspan="2"> + <property name="name"> + <cstring>layout7_2_4</cstring> + </property> + <vbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel2_2_4</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Номер ГТД</string> + </property> + </widget> + <widget class="wDBField"> + <property name="name"> + <cstring>wDBField7</cstring> + </property> + <property name="focusPolicy"> + <enum>StrongFocus</enum> + </property> + <property name="Id"> + <number>1146</number> + </property> + <property name="FieldType"> + <string>C 30 0 *</string> + </property> + <property name="EditorType"> + <enum>String</enum> + </property> + <property name="FieldName"> + <string>Номер ГТД</string> + </property> + </widget> + </vbox> + </widget> + <widget class="QLayoutWidget" row="5" column="0" rowspan="1" colspan="2"> + <property name="name"> + <cstring>layout7</cstring> + </property> + <vbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel2</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Штрих-код</string> + </property> + </widget> + <widget class="wDBField"> + <property name="name"> + <cstring>wDBField3</cstring> + </property> + <property name="focusPolicy"> + <enum>StrongFocus</enum> + </property> + <property name="Id"> + <number>136</number> + </property> + <property name="FieldType"> + <string>C 120 0 *</string> + </property> + <property name="EditorType"> + <enum>String</enum> + </property> + <property name="FieldName"> + <string>Штрих-код</string> + </property> + </widget> + </vbox> + </widget> + </grid> +</widget> +<tabstops> + <tabstop>wDBField1</tabstop> + <tabstop>wDBField2</tabstop> + <tabstop>wDBField4</tabstop> + <tabstop>wDBField5</tabstop> + <tabstop>wDBField6</tabstop> + <tabstop>wDBField7</tabstop> + <tabstop>wDBField3</tabstop> + <tabstop>cancel_button</tabstop> + <tabstop>ok_button</tabstop> +</tabstops> +<layoutdefaults spacing="5" margin="5"/> +<includehints> + <includehint>wcatalogue.h</includehint> + <includehint>wdbfield.h</includehint> + <includehint>wdbfield.h</includehint> + <includehint>wactionbutton.h</includehint> + <includehint>wactionbutton.h</includehint> + <includehint>wdbfield.h</includehint> + <includehint>wdbfield.h</includehint> + <includehint>wdbfield.h</includehint> + <includehint>wdbfield.h</includehint> + <includehint>wdbfield.h</includehint> +</includehints> +</UI> + + +
+ + + + + 0 + +
+ + + + + + + + + + + + + + 315 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + + + + + + +
+ + + 0 + <!DOCTYPE UI><UI version="3.2" stdsetdef="1"> +<class>Catalogue</class> +<widget class="wCatalogue"> + <property name="name"> + <cstring>Catalogue</cstring> + </property> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>580</width> + <height>332</height> + </rect> + </property> + <property name="caption"> + <string>Справочник Контрагентов</string> + </property> + <property name="Id"> + <number>310</number> + </property> + <property name="Name" stdset="0"> + <string></string> + </property> + <grid> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="wActionButton" row="0" column="8"> + <property name="name"> + <cstring>cancel_button</cstring> + </property> + <property name="text"> + <string>Отмена</string> + </property> + <property name="accel"> + <string>Esc</string> + </property> + <property name="action"> + <bool>true</bool> + </property> + <property name="actionUpdate"> + <bool>false</bool> + </property> + <property name="actionTurnOn"> + <bool>false</bool> + </property> + <property name="actionClose"> + <bool>true</bool> + </property> + <property name="actionId"> + <number>390</number> + </property> + <property name="script"> + <bool>false</bool> + </property> + </widget> + <widget class="QLabel" row="0" column="0" rowspan="1" colspan="3"> + <property name="name"> + <cstring>textLabel1</cstring> + </property> + <property name="text"> + <string>Наименование</string> + </property> + </widget> + <widget class="wDBField" row="0" column="3" rowspan="1" colspan="5"> + <property name="name"> + <cstring>wDBField1</cstring> + </property> + <property name="Id"> + <number>315</number> + </property> + <property name="FieldType"> + <string>C 60 0 *</string> + </property> + <property name="EditorType"> + <enum>String</enum> + </property> + <property name="FieldName"> + <string>Наименование</string> + </property> + </widget> + <widget class="QLabel" row="1" column="0" rowspan="1" colspan="3"> + <property name="name"> + <cstring>textLabel3</cstring> + </property> + <property name="text"> + <string>Адрес</string> + </property> + </widget> + <widget class="wDBField" row="1" column="3" rowspan="1" colspan="5"> + <property name="name"> + <cstring>wDBField2</cstring> + </property> + <property name="Id"> + <number>317</number> + </property> + <property name="FieldType"> + <string>C 160 0 *</string> + </property> + <property name="EditorType"> + <enum>String</enum> + </property> + <property name="FieldName"> + <string>Почтовый адрес</string> + </property> + </widget> + <spacer row="1" column="8" rowspan="7" colspan="1"> + <property name="name"> + <cstring>spacer6</cstring> + </property> + <property name="orientation"> + <enum>Vertical</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>20</width> + <height>230</height> + </size> + </property> + </spacer> + <widget class="wDBField" row="2" column="3" rowspan="1" colspan="5"> + <property name="name"> + <cstring>wDBField3</cstring> + </property> + <property name="Id"> + <number>776</number> + </property> + <property name="FieldType"> + <string>C 100 0 *</string> + </property> + <property name="EditorType"> + <enum>String</enum> + </property> + <property name="FieldName"> + <string>ИНН</string> + </property> + </widget> + <widget class="QLabel" row="2" column="0" rowspan="1" colspan="3"> + <property name="name"> + <cstring>textLabel4</cstring> + </property> + <property name="text"> + <string>ИНН</string> + </property> + </widget> + <widget class="QLabel" row="3" column="6"> + <property name="name"> + <cstring>textLabel3_2</cstring> + </property> + <property name="text"> + <string>Филиал</string> + </property> + </widget> + <widget class="wDBField" row="3" column="1" rowspan="1" colspan="3"> + <property name="name"> + <cstring>wDBField4</cstring> + </property> + <property name="Id"> + <number>778</number> + </property> + <property name="FieldType"> + <string>C 200 0 *</string> + </property> + <property name="EditorType"> + <enum>String</enum> + </property> + <property name="FieldName"> + <string>ОКОНХ</string> + </property> + </widget> + <widget class="QLabel" row="3" column="4"> + <property name="name"> + <cstring>textLabel2_2</cstring> + </property> + <property name="text"> + <string>ОКПО</string> + </property> + </widget> + <widget class="QLabel" row="3" column="0"> + <property name="name"> + <cstring>textLabel1_2</cstring> + </property> + <property name="text"> + <string>ОКОНХ</string> + </property> + </widget> + <widget class="wDBField" row="3" column="5"> + <property name="name"> + <cstring>wDBField5</cstring> + </property> + <property name="Id"> + <number>780</number> + </property> + <property name="FieldType"> + <string>C 100 0 *</string> + </property> + <property name="EditorType"> + <enum>String</enum> + </property> + <property name="FieldName"> + <string>ОКПО</string> + </property> + </widget> + <widget class="wDBField" row="3" column="7"> + <property name="name"> + <cstring>wDBField6</cstring> + </property> + <property name="Id"> + <number>782</number> + </property> + <property name="FieldType"> + <string>C 6 0 *</string> + </property> + <property name="EditorType"> + <enum>String</enum> + </property> + <property name="FieldName"> + <string>Филиал</string> + </property> + </widget> + <widget class="QLabel" row="4" column="4"> + <property name="name"> + <cstring>textLabel2_3_2</cstring> + </property> + <property name="text"> + <string>Факс.</string> + </property> + </widget> + <widget class="wDBField" row="4" column="5"> + <property name="name"> + <cstring>wDBField8</cstring> + </property> + <property name="Id"> + <number>786</number> + </property> + <property name="FieldType"> + <string>C 30 0 *</string> + </property> + <property name="EditorType"> + <enum>String</enum> + </property> + <property name="FieldName"> + <string>Факс</string> + </property> + </widget> + <widget class="wDBField" row="4" column="1" rowspan="1" colspan="3"> + <property name="name"> + <cstring>wDBField7</cstring> + </property> + <property name="Id"> + <number>784</number> + </property> + <property name="FieldType"> + <string>C 30 0 *</string> + </property> + <property name="EditorType"> + <enum>String</enum> + </property> + <property name="FieldName"> + <string>Телефон</string> + </property> + </widget> + <widget class="wDBField" row="4" column="7"> + <property name="name"> + <cstring>wDBField9</cstring> + </property> + <property name="Id"> + <number>788</number> + </property> + <property name="FieldType"> + <string>C 254 0 *</string> + </property> + <property name="EditorType"> + <enum>String</enum> + </property> + <property name="FieldName"> + <string>E-Mail</string> + </property> + </widget> + <widget class="QLabel" row="4" column="0"> + <property name="name"> + <cstring>textLabel2_3</cstring> + </property> + <property name="text"> + <string>Тел.</string> + </property> + </widget> + <widget class="QLabel" row="4" column="6"> + <property name="name"> + <cstring>textLabel5</cstring> + </property> + <property name="text"> + <string>E-mail</string> + </property> + </widget> + <widget class="wDBField" row="5" column="2" rowspan="1" colspan="6"> + <property name="name"> + <cstring>wDBField10</cstring> + </property> + <property name="Id"> + <number>790</number> + </property> + <property name="FieldType"> + <string>C 100 0 *</string> + </property> + <property name="EditorType"> + <enum>String</enum> + </property> + <property name="FieldName"> + <string>Банк</string> + </property> + </widget> + <widget class="QLabel" row="5" column="0" rowspan="1" colspan="2"> + <property name="name"> + <cstring>textLabel6</cstring> + </property> + <property name="text"> + <string>Банк</string> + </property> + </widget> + <widget class="wDBField" row="6" column="2" rowspan="1" colspan="6"> + <property name="name"> + <cstring>wDBField11</cstring> + </property> + <property name="Id"> + <number>792</number> + </property> + <property name="FieldType"> + <string>C 100 0 *</string> + </property> + <property name="EditorType"> + <enum>String</enum> + </property> + <property name="FieldName"> + <string>БИК</string> + </property> + </widget> + <widget class="QLabel" row="6" column="0" rowspan="1" colspan="2"> + <property name="name"> + <cstring>textLabel7</cstring> + </property> + <property name="text"> + <string>БИК</string> + </property> + </widget> + <widget class="wDBField" row="7" column="2" rowspan="1" colspan="6"> + <property name="name"> + <cstring>wDBField12</cstring> + </property> + <property name="Id"> + <number>794</number> + </property> + <property name="FieldType"> + <string>C 100 0 *</string> + </property> + <property name="EditorType"> + <enum>String</enum> + </property> + <property name="FieldName"> + <string>Кор. счет</string> + </property> + </widget> + <widget class="QLabel" row="7" column="0" rowspan="1" colspan="2"> + <property name="name"> + <cstring>textLabel8</cstring> + </property> + <property name="text"> + <string>Кор. счет</string> + </property> + </widget> + <widget class="wActionButton" row="8" column="8"> + <property name="name"> + <cstring>ok_button</cstring> + </property> + <property name="text"> + <string>Принять</string> + </property> + <property name="accel"> + <string>Ctrl+Return</string> + </property> + <property name="action"> + <bool>true</bool> + </property> + <property name="actionUpdate"> + <bool>true</bool> + </property> + <property name="actionTurnOn"> + <bool>false</bool> + </property> + <property name="actionClose"> + <bool>true</bool> + </property> + <property name="script"> + <bool>false</bool> + </property> + <property name="scriptCode" stdset="0"> + <string></string> + </property> + </widget> + <widget class="wDBField" row="8" column="2" rowspan="1" colspan="6"> + <property name="name"> + <cstring>wDBField13</cstring> + </property> + <property name="Id"> + <number>796</number> + </property> + <property name="FieldType"> + <string>C 100 0 *</string> + </property> + <property name="EditorType"> + <enum>String</enum> + </property> + <property name="FieldName"> + <string>Расч. счет</string> + </property> + </widget> + <widget class="QLabel" row="8" column="0" rowspan="1" colspan="2"> + <property name="name"> + <cstring>textLabel9</cstring> + </property> + <property name="text"> + <string>Расч.счет</string> + </property> + </widget> + </grid> +</widget> +<customwidgets> +</customwidgets> +<tabstops> + <tabstop>wDBField1</tabstop> + <tabstop>wDBField2</tabstop> + <tabstop>wDBField3</tabstop> + <tabstop>wDBField4</tabstop> + <tabstop>wDBField5</tabstop> + <tabstop>wDBField6</tabstop> + <tabstop>wDBField7</tabstop> + <tabstop>wDBField8</tabstop> + <tabstop>wDBField9</tabstop> + <tabstop>wDBField10</tabstop> + <tabstop>wDBField11</tabstop> + <tabstop>wDBField12</tabstop> + <tabstop>wDBField13</tabstop> + <tabstop>cancel_button</tabstop> + <tabstop>ok_button</tabstop> +</tabstops> +<layoutdefaults spacing="5" margin="5"/> +<includehints> + <includehint>wcatalogue.h</includehint> + <includehint>wactionbutton.h</includehint> + <includehint>wdbfield.h</includehint> + <includehint>wdbfield.h</includehint> + <includehint>wdbfield.h</includehint> + <includehint>wdbfield.h</includehint> + <includehint>wdbfield.h</includehint> + <includehint>wdbfield.h</includehint> + <includehint>wdbfield.h</includehint> + <includehint>wdbfield.h</includehint> + <includehint>wdbfield.h</includehint> + <includehint>wdbfield.h</includehint> + <includehint>wdbfield.h</includehint> + <includehint>wdbfield.h</includehint> + <includehint>wactionbutton.h</includehint> + <includehint>wdbfield.h</includehint> +</includehints> +</UI> + + +
+ + + 0 + <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> +<class>Catalogue</class> +<widget class="wCatalogue"> + <property name="name"> + <cstring>Catalogue</cstring> + </property> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>394</width> + <height>103</height> + </rect> + </property> + <property name="caption"> + <string>Справочник Контрагентов</string> + </property> + <property name="Name"> + <string></string> + </property> + <property name="Id"> + <number>310</number> + </property> + <grid> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLayoutWidget" row="0" column="0"> + <property name="name"> + <cstring>layout6</cstring> + </property> + <vbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel1</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Название группы</string> + </property> + </widget> + <widget class="wDBField"> + <property name="name"> + <cstring>wDBField</cstring> + </property> + <property name="Id"> + <number>638</number> + </property> + <property name="FieldType"> + <string>C 150 0 *</string> + </property> + <property name="EditorType"> + <enum>String</enum> + </property> + <property name="FieldName"> + <string>Название группы</string> + </property> + </widget> + </vbox> + </widget> + <widget class="QLayoutWidget" row="0" column="1"> + <property name="name"> + <cstring>layout7</cstring> + </property> + <vbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="wActionButton"> + <property name="name"> + <cstring>cancel_button_2</cstring> + </property> + <property name="text"> + <string>Отмена</string> + </property> + <property name="accel"> + <string>Esc</string> + </property> + <property name="action"> + <bool>true</bool> + </property> + <property name="actionUpdate"> + <bool>false</bool> + </property> + <property name="actionTurnOn"> + <bool>false</bool> + </property> + <property name="actionClose"> + <bool>true</bool> + </property> + <property name="actionId"> + <number>390</number> + </property> + <property name="script"> + <bool>false</bool> + </property> + </widget> + <spacer> + <property name="name"> + <cstring>spacer4</cstring> + </property> + <property name="orientation"> + <enum>Vertical</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>20</width> + <height>20</height> + </size> + </property> + </spacer> + <widget class="wActionButton"> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <property name="text"> + <string>Принять</string> + </property> + <property name="accel"> + <string>Ctrl+Return</string> + </property> + <property name="action"> + <bool>true</bool> + </property> + <property name="actionUpdate"> + <bool>true</bool> + </property> + <property name="actionTurnOn"> + <bool>false</bool> + </property> + <property name="actionClose"> + <bool>true</bool> + </property> + <property name="script"> + <bool>false</bool> + </property> + <property name="scriptCode"> + <string></string> + </property> + <property name="actionPrint" stdset="0"> + <bool>false</bool> + </property> + </widget> + </vbox> + </widget> + </grid> +</widget> +<layoutdefaults spacing="5" margin="5"/> +<includehints> + <includehint>wcatalogue.h</includehint> + <includehint>wdbfield.h</includehint> + <includehint>wactionbutton.h</includehint> + <includehint>wactionbutton.h</includehint> +</includehints> +</UI> + + +
+ + + + + 0 + +
+ + + + + 838 + + + + + + + + + + + + 836 + + + + + + +
+ + + 14 + <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> +<class>Catalogue</class> +<widget class="wCatalogue"> + <property name="name"> + <cstring>Catalogue</cstring> + </property> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>348</width> + <height>103</height> + </rect> + </property> + <property name="caption"> + <string>Константы</string> + </property> + <property name="Name"> + <string></string> + </property> + <property name="Id"> + <number>828</number> + </property> + <grid> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLayoutWidget" row="0" column="1"> + <property name="name"> + <cstring>layout2</cstring> + </property> + <vbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="wActionButton"> + <property name="name"> + <cstring>cancel_button</cstring> + </property> + <property name="text"> + <string>Отмена</string> + </property> + <property name="accel"> + <string>Esc</string> + </property> + <property name="action"> + <bool>true</bool> + </property> + <property name="actionUpdate"> + <bool>false</bool> + </property> + <property name="actionTurnOn"> + <bool>false</bool> + </property> + <property name="actionClose"> + <bool>true</bool> + </property> + <property name="actionId"> + <number>390</number> + </property> + <property name="script"> + <bool>false</bool> + </property> + </widget> + <spacer> + <property name="name"> + <cstring>spacer1</cstring> + </property> + <property name="orientation"> + <enum>Vertical</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>20</width> + <height>20</height> + </size> + </property> + </spacer> + <widget class="wActionButton"> + <property name="name"> + <cstring>ok_button</cstring> + </property> + <property name="text"> + <string>Принять</string> + </property> + <property name="accel"> + <string>Ctrl+Return</string> + </property> + <property name="action"> + <bool>true</bool> + </property> + <property name="actionUpdate"> + <bool>true</bool> + </property> + <property name="actionTurnOn"> + <bool>false</bool> + </property> + <property name="actionClose"> + <bool>true</bool> + </property> + <property name="script"> + <bool>false</bool> + </property> + <property name="scriptCode"> + <string></string> + </property> + <property name="actionPrint" stdset="0"> + <bool>false</bool> + </property> + </widget> + </vbox> + </widget> + <widget class="QLayoutWidget" row="0" column="0"> + <property name="name"> + <cstring>layout1</cstring> + </property> + <vbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel1</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Имя группы</string> + </property> + </widget> + <widget class="wDBField"> + <property name="name"> + <cstring>wDBField</cstring> + </property> + <property name="Id"> + <number>836</number> + </property> + <property name="FieldType"> + <string>C 50 0 *</string> + </property> + <property name="EditorType"> + <enum>String</enum> + </property> + <property name="FieldName"> + <string>Группа</string> + </property> + </widget> + </vbox> + </widget> + </grid> +</widget> +<layoutdefaults spacing="5" margin="5"/> +<includehints> + <includehint>wcatalogue.h</includehint> + <includehint>wactionbutton.h</includehint> + <includehint>wactionbutton.h</includehint> + <includehint>wdbfield.h</includehint> +</includehints> +</UI> + + +
+ + + 14 + <!DOCTYPE UI><UI version="3.2" stdsetdef="1"> +<class>Catalogue</class> +<widget class="wCatalogue"> + <property name="name"> + <cstring>Catalogue</cstring> + </property> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>406</width> + <height>134</height> + </rect> + </property> + <property name="caption"> + <string>Константы</string> + </property> + <property name="Name"> + <string></string> + </property> + <property name="Id"> + <number>828</number> + </property> + <grid> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLayoutWidget" row="0" column="1" rowspan="2" colspan="1"> + <property name="name"> + <cstring>layout3</cstring> + </property> + <vbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="wActionButton"> + <property name="name"> + <cstring>cancel_button</cstring> + </property> + <property name="text"> + <string>Отмена</string> + </property> + <property name="accel"> + <string>Esc</string> + </property> + <property name="action"> + <bool>true</bool> + </property> + <property name="actionUpdate"> + <bool>false</bool> + </property> + <property name="actionTurnOn"> + <bool>false</bool> + </property> + <property name="actionClose"> + <bool>true</bool> + </property> + <property name="actionId"> + <number>390</number> + </property> + <property name="script"> + <bool>false</bool> + </property> + </widget> + <spacer> + <property name="name"> + <cstring>spacer4</cstring> + </property> + <property name="orientation"> + <enum>Vertical</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>20</width> + <height>41</height> + </size> + </property> + </spacer> + <widget class="wActionButton"> + <property name="name"> + <cstring>ok_button</cstring> + </property> + <property name="text"> + <string>Принять</string> + </property> + <property name="accel"> + <string>Ctrl+Return</string> + </property> + <property name="action"> + <bool>true</bool> + </property> + <property name="actionUpdate"> + <bool>true</bool> + </property> + <property name="actionTurnOn"> + <bool>false</bool> + </property> + <property name="actionClose"> + <bool>true</bool> + </property> + <property name="script"> + <bool>false</bool> + </property> + <property name="scriptCode"> + <string></string> + </property> + <property name="actionPrint" stdset="0"> + <bool>false</bool> + </property> + </widget> + </vbox> + </widget> + <widget class="QLayoutWidget" row="0" column="0"> + <property name="name"> + <cstring>layout1</cstring> + </property> + <vbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel2</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Имя</string> + </property> + </widget> + <widget class="wDBField"> + <property name="name"> + <cstring>wDBField</cstring> + </property> + <property name="Id"> + <number>838</number> + </property> + <property name="FieldType"> + <string>C 200 0 *</string> + </property> + <property name="EditorType"> + <enum>String</enum> + </property> + <property name="FieldName"> + <string>Имя константы</string> + </property> + </widget> + </vbox> + </widget> + <widget class="QLayoutWidget" row="1" column="0"> + <property name="name"> + <cstring>layout2</cstring> + </property> + <vbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel3</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Значение</string> + </property> + </widget> + <widget class="wDBField"> + <property name="name"> + <cstring>wDBField_2</cstring> + </property> + <property name="Id"> + <number>840</number> + </property> + <property name="FieldType"> + <string>C 200 0 *</string> + </property> + <property name="EditorType"> + <enum>String</enum> + </property> + <property name="FieldName"> + <string>Значение</string> + </property> + </widget> + </vbox> + </widget> + </grid> +</widget> +<tabstops> + <tabstop>wDBField</tabstop> + <tabstop>wDBField_2</tabstop> + <tabstop>cancel_button</tabstop> + <tabstop>ok_button</tabstop> +</tabstops> +<layoutdefaults spacing="5" margin="5"/> +<includehints> + <includehint>wcatalogue.h</includehint> + <includehint>wactionbutton.h</includehint> + <includehint>wactionbutton.h</includehint> + <includehint>wdbfield.h</includehint> + <includehint>wdbfield.h</includehint> +</includehints> +</UI> + + +
+ + + 30 + <!DOCTYPE UI><UI version="3.2" stdsetdef="1"> +<class>Catalogue</class> +<widget class="wCatalogue"> + <property name="name"> + <cstring>Catalogue</cstring> + </property> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>460</width> + <height>371</height> + </rect> + </property> + <property name="caption"> + <string>Константы</string> + </property> + <property name="Id"> + <number>828</number> + </property> + <property name="Name" stdset="0"> + <string></string> + </property> + <grid> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="wDBTable" row="0" column="0" rowspan="2" colspan="1"> + <column> + <property name="text"> + <string>Имя константы</string> + </property> + </column> + <column> + <property name="text"> + <string>Значение</string> + </property> + </column> + <property name="name"> + <cstring>wDBTable1</cstring> + </property> + <property name="TableInd" stdset="0"> + <number>0</number> + </property> + <property name="DefFields"> + <stringlist> + <string>Имя константы</string> + <string>Значение</string> + </stringlist> + </property> + <property name="DefHeaders"> + <stringlist> + <string>Имя константы</string> + <string>Значение</string> + </stringlist> + </property> + <property name="ColWidth"> + <stringlist> + <string>150</string> + <string>200</string> + </stringlist> + </property> + <property name="DefIdList"> + <stringlist> + <string>838</string> + <string>840</string> + </stringlist> + </property> + </widget> + <spacer row="1" column="2"> + <property name="name"> + <cstring>spacer1</cstring> + </property> + <property name="orientation"> + <enum>Vertical</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>20</width> + <height>281</height> + </size> + </property> + </spacer> + <widget class="wActionButton" row="0" column="1" rowspan="1" colspan="2"> + <property name="name"> + <cstring>cancel_button</cstring> + </property> + <property name="text"> + <string>Закрыть</string> + </property> + <property name="accel"> + <string>Esc</string> + </property> + <property name="action"> + <bool>true</bool> + </property> + <property name="actionUpdate"> + <bool>false</bool> + </property> + <property name="actionTurnOn"> + <bool>false</bool> + </property> + <property name="actionClose"> + <bool>true</bool> + </property> + <property name="actionId"> + <number>0</number> + </property> + <property name="script"> + <bool>false</bool> + </property> + </widget> + <widget class="QLabel" row="2" column="0" rowspan="1" colspan="2"> + <property name="name"> + <cstring>textLabel1</cstring> + </property> + <property name="text"> + <string>&lt;ins&gt; - новый, &lt;del&gt; - удалить, &lt;F2&gt; - редактировать</string> + </property> + </widget> + </grid> +</widget> +<customwidgets> +</customwidgets> +<layoutdefaults spacing="5" margin="5"/> +<includehints> + <includehint>wcatalogue.h</includehint> + <includehint>wdbtable.h</includehint> + <includehint>wactionbutton.h</includehint> +</includehints> +</UI> + + +
+ + +
+ + + + + 917 + + + + + + + + + + + + 919 + + + + + + +
+ + + 14 + <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> +<class>Catalogue</class> +<widget class="wCatalogue"> + <property name="name"> + <cstring>Catalogue</cstring> + </property> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>425</width> + <height>89</height> + </rect> + </property> + <property name="caption"> + <string>Справочник складов</string> + </property> + <property name="Name"> + <string></string> + </property> + <property name="Id"> + <number>909</number> + </property> + <grid> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLayoutWidget" row="0" column="0"> + <property name="name"> + <cstring>layout8</cstring> + </property> + <vbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel1</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Название группы</string> + </property> + </widget> + <widget class="wDBField"> + <property name="name"> + <cstring>wDBField</cstring> + </property> + <property name="Id"> + <number>919</number> + </property> + <property name="FieldType"> + <string>C 100 0 *</string> + </property> + <property name="EditorType"> + <enum>String</enum> + </property> + <property name="FieldName"> + <string>Наименование</string> + </property> + </widget> + </vbox> + </widget> + <widget class="QLayoutWidget" row="0" column="1"> + <property name="name"> + <cstring>layout9</cstring> + </property> + <vbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="wActionButton"> + <property name="name"> + <cstring>cancel_button</cstring> + </property> + <property name="text"> + <string>Отмена</string> + </property> + <property name="accel"> + <string>Esc</string> + </property> + <property name="action"> + <bool>true</bool> + </property> + <property name="actionUpdate"> + <bool>false</bool> + </property> + <property name="actionTurnOn"> + <bool>false</bool> + </property> + <property name="actionClose"> + <bool>true</bool> + </property> + <property name="actionId"> + <number>390</number> + </property> + <property name="script"> + <bool>false</bool> + </property> + </widget> + <spacer> + <property name="name"> + <cstring>spacer5</cstring> + </property> + <property name="orientation"> + <enum>Vertical</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>20</width> + <height>31</height> + </size> + </property> + </spacer> + <widget class="wActionButton"> + <property name="name"> + <cstring>ok_button</cstring> + </property> + <property name="text"> + <string>Принять</string> + </property> + <property name="accel"> + <string>Ctrl+Return</string> + </property> + <property name="action"> + <bool>true</bool> + </property> + <property name="actionUpdate"> + <bool>true</bool> + </property> + <property name="actionTurnOn"> + <bool>false</bool> + </property> + <property name="actionClose"> + <bool>true</bool> + </property> + <property name="script"> + <bool>false</bool> + </property> + <property name="scriptCode"> + <string></string> + </property> + <property name="actionPrint" stdset="0"> + <bool>false</bool> + </property> + </widget> + </vbox> + </widget> + </grid> +</widget> +<layoutdefaults spacing="5" margin="5"/> +<includehints> + <includehint>wcatalogue.h</includehint> + <includehint>wdbfield.h</includehint> + <includehint>wactionbutton.h</includehint> + <includehint>wactionbutton.h</includehint> +</includehints> +</UI> + + +
+ + + 14 + <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> +<class>Catalogue</class> +<widget class="wCatalogue"> + <property name="name"> + <cstring>Catalogue</cstring> + </property> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>359</width> + <height>134</height> + </rect> + </property> + <property name="caption"> + <string>Справочник складов</string> + </property> + <property name="Name"> + <string></string> + </property> + <property name="Id"> + <number>909</number> + </property> + <grid> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLayoutWidget" row="0" column="1" rowspan="2" colspan="1"> + <property name="name"> + <cstring>layout5</cstring> + </property> + <vbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="wActionButton"> + <property name="name"> + <cstring>cancel_button</cstring> + </property> + <property name="text"> + <string>Отмена</string> + </property> + <property name="accel"> + <string>Esc</string> + </property> + <property name="action"> + <bool>true</bool> + </property> + <property name="actionUpdate"> + <bool>false</bool> + </property> + <property name="actionTurnOn"> + <bool>false</bool> + </property> + <property name="actionClose"> + <bool>true</bool> + </property> + <property name="actionId"> + <number>390</number> + </property> + <property name="script"> + <bool>false</bool> + </property> + </widget> + <spacer> + <property name="name"> + <cstring>spacer4</cstring> + </property> + <property name="orientation"> + <enum>Vertical</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>20</width> + <height>20</height> + </size> + </property> + </spacer> + <widget class="wActionButton"> + <property name="name"> + <cstring>ok_button</cstring> + </property> + <property name="minimumSize"> + <size> + <width>100</width> + <height>0</height> + </size> + </property> + <property name="text"> + <string>Принять</string> + </property> + <property name="accel"> + <string>Ctrl+Return</string> + </property> + <property name="action"> + <bool>true</bool> + </property> + <property name="actionUpdate"> + <bool>true</bool> + </property> + <property name="actionTurnOn"> + <bool>false</bool> + </property> + <property name="actionClose"> + <bool>true</bool> + </property> + <property name="script"> + <bool>false</bool> + </property> + <property name="scriptCode"> + <string></string> + </property> + <property name="actionPrint" stdset="0"> + <bool>false</bool> + </property> + </widget> + </vbox> + </widget> + <widget class="QLayoutWidget" row="0" column="0"> + <property name="name"> + <cstring>layout3</cstring> + </property> + <vbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel2</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Название</string> + </property> + </widget> + <widget class="wDBField"> + <property name="name"> + <cstring>wDBField</cstring> + </property> + <property name="Id"> + <number>917</number> + </property> + <property name="FieldType"> + <string>C 100 0 *</string> + </property> + <property name="EditorType"> + <enum>String</enum> + </property> + <property name="FieldName"> + <string>Наименование</string> + </property> + </widget> + </vbox> + </widget> + <widget class="QLayoutWidget" row="1" column="0"> + <property name="name"> + <cstring>layout4</cstring> + </property> + <vbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel3</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Номер</string> + </property> + </widget> + <widget class="wDBField"> + <property name="name"> + <cstring>wDBField_2</cstring> + </property> + <property name="Id"> + <number>921</number> + </property> + <property name="FieldType"> + <string>N 3 0 *</string> + </property> + <property name="EditorType"> + <enum>Numberic</enum> + </property> + <property name="FieldName"> + <string>Номер</string> + </property> + </widget> + </vbox> + </widget> + </grid> +</widget> +<tabstops> + <tabstop>wDBField</tabstop> + <tabstop>wDBField_2</tabstop> + <tabstop>cancel_button</tabstop> + <tabstop>ok_button</tabstop> +</tabstops> +<layoutdefaults spacing="5" margin="5"/> +<includehints> + <includehint>wcatalogue.h</includehint> + <includehint>wactionbutton.h</includehint> + <includehint>wactionbutton.h</includehint> + <includehint>wdbfield.h</includehint> + <includehint>wdbfield.h</includehint> +</includehints> +</UI> + + +
+ + + 30 + <!DOCTYPE UI><UI version="3.2" stdsetdef="1"> +<class>Catalogue</class> +<widget class="wCatalogue"> + <property name="name"> + <cstring>Catalogue</cstring> + </property> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>502</width> + <height>330</height> + </rect> + </property> + <property name="caption"> + <string>Справочник складов</string> + </property> + <property name="Id"> + <number>909</number> + </property> + <property name="Name" stdset="0"> + <string></string> + </property> + <grid> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="wDBTable" row="0" column="0" rowspan="2" colspan="1"> + <column> + <property name="text"> + <string>Наименование</string> + </property> + </column> + <column> + <property name="text"> + <string>Номер</string> + </property> + </column> + <property name="name"> + <cstring>wDBTable1</cstring> + </property> + <property name="TableInd" stdset="0"> + <number>0</number> + </property> + <property name="DefFields"> + <stringlist> + <string>Наименование</string> + <string>Номер</string> + </stringlist> + </property> + <property name="DefHeaders"> + <stringlist> + <string>Наименование</string> + <string>Номер</string> + </stringlist> + </property> + <property name="ColWidth"> + <stringlist> + <string>150</string> + <string>60</string> + </stringlist> + </property> + <property name="DefIdList"> + <stringlist> + <string>917</string> + <string>921</string> + </stringlist> + </property> + </widget> + <spacer row="1" column="1"> + <property name="name"> + <cstring>spacer1</cstring> + </property> + <property name="orientation"> + <enum>Vertical</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>20</width> + <height>241</height> + </size> + </property> + </spacer> + <widget class="wActionButton" row="0" column="1"> + <property name="name"> + <cstring>close_button</cstring> + </property> + <property name="text"> + <string>Закрыть</string> + </property> + <property name="accel"> + <string>Esc</string> + </property> + <property name="action"> + <bool>true</bool> + </property> + <property name="actionUpdate"> + <bool>false</bool> + </property> + <property name="actionTurnOn"> + <bool>false</bool> + </property> + <property name="actionClose"> + <bool>true</bool> + </property> + <property name="actionId"> + <number>572</number> + </property> + <property name="script"> + <bool>false</bool> + </property> + </widget> + <widget class="QLabel" row="2" column="0"> + <property name="name"> + <cstring>textLabel1</cstring> + </property> + <property name="text"> + <string>&lt;ins&gt; - новый, &lt;del&gt;- удалить, &lt;F2&gt;-редактировать</string> + </property> + </widget> + </grid> +</widget> +<customwidgets> +</customwidgets> +<layoutdefaults spacing="5" margin="5"/> +<includehints> + <includehint>wcatalogue.h</includehint> + <includehint>wdbtable.h</includehint> + <includehint>wactionbutton.h</includehint> +</includehints> +</UI> + + +
+ + +
+
+ + +
+ + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + +
+
+ +
+ + /* + * Copyright (c) Grigory Panow <gr1313 at mail.ru>, Yoshkar-Ola, 2005 + * Ananas Project http://ananas.lrn.ru + */ +function on_formstart() // вызывается непосредственно перед показом формы +{ + on_tabupdate(0,0,"wDBTable1"); // первоначальная инициализация сумм + SetColumnReadOnly("wDBTable1",ColIndex("wDBTable1","Сумма закуп."),true); // установка столбца суммы в режим только чтение + // функция ColIndex() возвращает индекс столбца + SetColumnReadOnly("wDBTable1",ColIndex("wDBTable1","Сумма отпуск."),true); + SetColumnReadOnly("wDBTable1",ColIndex("wDBTable1","Наценка"),true); +} + +function create_pko() // печать приходного кассового ордера +{ + var serv = new Service(); + var defOffice = serv.GetOffice(); + var templateType = 1; + var templateFile = "templ_pko.odt"; + if (defOffice == "MSO") { + templateType = 4; + templateFile = "templ_pko.xml"; + } + var p = new Report("pko",templateType); // создаем новый экземпляр объекта aReport + p.setTable(templateFile); // связываем созданный экземпляр отчета с шаблоном + // каталог, где находятся шаблоны, задается в диалоге конфигурирования файла ресурса + // в поле `Рабочий каталог' + p.setValue("param",Value("Номер") ); // устанавливаем значение для простого тега + p.exec("Документ.Номер"); // применяем установленное значение к тегу с именем <:Документ.Номер:> + // рекомендуемая схема наименования: + // теги, значения которых задаются из текущего документа, начинаются с прежикса Документ. + // теги, значения которых задаются из справочника констант, начинаются с префикса Организация. + p.setValue("param",Value("Основание")); + p.exec("Документ.Основание"); + p.setValue("param",ConvertDateFromIso(Value("Дата")) ); + p.exec("Документ.Дата"); + p.setValue("param",Value("Покупатель")); + p.exec("Документ.Покупатель"); +// функция getConstant возвращает значение константы, в данном случае имя главного бухгалтера. + //Оно берется из справочника с именем Константы. + // функция getConstant() написана на Ананас-Скрипте и находится в глобальном модуле + p.setValue("param", getConstant("Константы","Главный бухгалтер")); + p.exec("Организация.Главбух"); + p.setValue("param", getConstant("Константы","Название")); + p.exec("Организация.Название"); + p.setValue("param", getConstant("Константы","Кассир")); + p.exec("Организация.Кассир"); + p.setValue("param", ConvertNumber2MoneyFormat(Value("lineEdit2"))); + p.exec("Документ.Сумма"); + p.setValue("param", Propis(Value("lineEdit2"))); //функция Propis возвращает сумму прописью + p.exec("Документ.Сумма прописью"); + + p.show(); // запускаем OpenOffice + p.close(); // удаляем все временные файлы + +} + +function create_nakladnaya() +{ + var serv = new Service(); + var defOffice = serv.GetOffice(); + var templateType = 1; + var templateFile = "templ_rashod.odt"; + if (defOffice == "MSO") { + templateType = 4; + templateFile = "templ_rashod.xml"; + } + var p = new Report("Report1",templateType); // создаем новый экземпляр объекта aReport + p.setTable(templateFile); // связываем созданный экземпляр отчета с шаблоном + // каталог, где находятся шаблоны, задается в диалоге конфигурирования файла ресурса + // в поле `Рабочий каталог' + p.setValue("param",Value("Номер") ); // устанавливаем значение для простого тега + p.exec("Документ.Номер"); // применяем установленное значение к тегу с именем `Номер' + p.setValue("param",Value("Основание")); + p.exec("Документ.Основание"); + p.setValue("param",ConvertDateFromIso(Value("Дата")) ); + p.exec("Документ.Дата"); + p.setValue("param",Value("Покупатель")); + p.exec("Документ.Покупатель"); + p.setValue("param",Value("Склад")); + p.exec("Документ.Склад"); + var countRow = TabCount("wDBTable1"); // производим подсчет строк таблицы + var i; + for ( i =0;i<countRow; i++) // цикл по всем строкам таблицы. Снизу вверх - из-за неправильного + // порядка добавления строк таблицы + { + p.setValue("n",String(i+1)); + for ( j=1; j<=7; j++) + { + p.setValue("f"+String(j), TabValue("wDBTable1",i,j-1)); // устанавливаем значение табличного тега с заданным именем + } + p.exec("table_section"); // применяем установленное значение к строке таблицы + // в которой содержится тег строки таблицы `table_section' + } + var sum = Value("lineEdit2"); + p.setValue("param",ConvertNumber2MoneyFormat(sum)); + p.exec("Итого"); + p.setValue("param", Propis(sum)); // записываем знвачение суммы прописью + p.exec("Итого_прописью"); + p.setValue("param", ""); + p.exec("Сдал"); + p.setValue("param", ""); + p.exec("Принял"); + p.setValue("param", getConstant("Константы","Главный бухгалтер")); + p.exec("Организация.Главбух"); + p.setValue("param", getConstant("Константы","Название")); + p.exec("Организация.Название"); + p.setValue("param", getConstant("Константы","ИНН")); + p.exec("Организация.ИНН"); + p.show(); // запускаем OpenOffice + p.close(); // удаляем все временные файлы + +} +function create_schet() +{ + var serv = new Service(); + var defOffice = serv.GetOffice(); + var templateType = 1; + var templateFile = "templ_schet.odt"; + if (defOffice == "MSO") { + templateType = 4; + templateFile = "templ_schet.xml"; + } + var p = new Report("Report1",templateType); // создаем новый экземпляр объекта aReport + p.setTable(templateFile); // связываем созданный экземпляр отчета с шаблоном + // каталог, где находятся шаблоны, задается в диалоге конфигурирования файла ресурса + // в поле `Рабочий каталог' + p.setValue("param",Value("Номер") ); // устанавливаем значение для простого тега + p.exec("Документ.Номер"); // применяем установленное значение к тегу с именем <:Документ.Номер:> + p.setValue("param",ConvertDateFromIso(Value("Дата")) ); + p.exec("Документ.Дата"); + p.setValue("param",Value("Покупатель")); + p.exec("Документ.Покупатель"); + var countRow = TabCount("wDBTable1"); // производим подсчет строк таблицы + var i; + for ( i =0; i<countRow; i++) + { + + p.setValue("f0", TabValue("wDBTable1",i,ColIndex("wDBTable1","Наименование товара"))); // устанавливаем значение табличного тега с заданным именем + p.setValue("f2", TabValue("wDBTable1",i,ColIndex("wDBTable1","Кол-во"))); + p.setValue("f3", TabValue("wDBTable1",i,ColIndex("wDBTable1","Цена отпуск."))); + p.setValue("f4", TabValue("wDBTable1",i,ColIndex("wDBTable1","Сумма отпуск."))); + p.exec("строка"); // применяем установленное значение к строке таблицы + // в которой содержится тег строки таблицы [:строка:] + } + var sum = Value("lineEdit2"); + p.setValue("param",ConvertNumber2MoneyFormat(sum)); + p.exec("Итого"); + p.setValue("param", Propis(sum)); // записываем знвачение суммы прописью + p.exec("Итого прописью"); + p.setValue("param", countRow); + p.exec("кол-во строк"); + p.setValue("param", getConstant("Константы","Главный бухгалтер")); + p.exec("Организация.Главбух"); + p.setValue("param", getConstant("Константы","Название")); + p.exec("Организация.Название"); + p.setValue("param", getConstant("Константы","Руководитель")); + p.exec("Организация.Руководитель"); + p.setValue("param", getConstant("Константы","Счет")); + p.exec("Организация.Счет"); + p.setValue("param", getConstant("Константы","Кор. счет")); + p.exec("Организация.Кор. счет"); + p.setValue("param", getConstant("Константы","Банк")); + p.exec("Организация.Банк"); + p.setValue("param", getConstant("Константы","БИК")); + p.exec("Организация.БИК"); + + p.show(); // запускаем OpenOffice + p.close(); // удаляем все временные файлы + +} + +function create_schet_f() +{ + var serv = new Service(); + var defOffice = serv.GetOffice(); + var templateType = 1; + var templateFile = "templ_schetfactura.ods"; + if (defOffice == "MSO") { + templateType = 4; + templateFile = "templ_schetfactura.xml"; + } + var p = new Report("Schet_factura",templateType); // создаем новый экземпляр объекта aReport + p.setTable(templateFile); // связываем созданный экземпляр отчета с шаблоном + // каталог, где находятся шаблоны, задается в диалоге конфигурирования файла ресурса + // в поле `Рабочий каталог' + p.setValue("param",Value("Номер") ); // устанавливаем значение для простого тега + p.exec("Документ.Номер"); // применяем установленное значение к тегу <:Досумент.Номер:> + p.setValue("param",ConvertDateFromIso(Value("Дата")) ); + p.exec("Документ.Дата"); + p.setValue("param",Value("Покупатель")); + p.exec("Документ.Покупатель"); + + var countRow = TabCount("wDBTable1"); // производим подсчет строк таблицы + var i; + var sum=0; + var nds=0; + var nds_total=0; + var sum_s_nds=0; + var sum_total=0; + p.setValue("f7","18%"); // неизменяемые значения можно задать всего один раз, они не обнуляютя при вызове exec() + p.setValue("f2","шт."); + p.setValue("f6","неизв."); + p.setValue("f11","неизв."); + + for ( i =0; i<countRow; i++) // цикл по всем строкам таблицы. Снизу вверх - из-за неправильного + // порядка добавления строк таблицы + { + var ind; + p.setValue("f1", TabValue("wDBTable1",i,ColIndex("wDBTable1","Наименование товара"))); // устанавливаем значение табличного тега с заданным именем + p.setValue("f3", TabValue("wDBTable1",i,ColIndex("wDBTable1","Кол-во"))); + p.setValue("f4", TabValue("wDBTable1",i,ColIndex("wDBTable1","Цена отпуск."))); + p.setValue("f5", TabValue("wDBTable1",i,ColIndex("wDBTable1","Сумма отпуск."))); + + sum = parseFloat(TabValue("wDBTable1",i,ColIndex("wDBTable1","Сумма отпуск."))); + nds = sum*0.18; // Ставка НДС-18% + nds_total+=nds; + sum_s_nds = sum+nds; + sum_total+=sum_s_nds; + p.setValue("f8",nds); // записываем НДС + p.setValue("f9",sum_s_nds); // записываем сумму с НДС + + p.setValue("f10",getCatalogueValue("Каталог товаров",TabDBValue("wDBTable1",i,0),"Производитель")); + // getCatalogValue() возвращает значение елемента поля каталога + p.exec("строка"); // применяем установленное значение к строке таблицы + // в которой содержится тег строки таблицы [:строка:] + } + p.setValue("param",ConvertNumber2MoneyFormat(sum_total)); + p.exec("Итого"); + p.setValue("param",ConvertNumber2MoneyFormat(nds_total)); + p.exec("Сумма НДС"); + p.setValue("param", getConstant("Константы","Главный бухгалтер")); + p.exec("Организация.Главбух"); + p.setValue("param", getConstant("Константы","Название")); + p.exec("Организация.Название"); + p.setValue("param", getConstant("Константы","Руководитель")); + p.exec("Организация.Руководитель"); + p.setValue("param", getConstant("Константы","Адрес")); + p.exec("Организация.Адрес"); + p.setValue("param", getConstant("Константы","ИНН")); + p.exec("Организация.ИНН"); + p.setValue("param", getCatalogueValue("Справочник Контрагентов",DBValue("Покупатель"),"Почтовый адрес")); + // Устанавливаем аттрибуты Покупателя из Справочника Контрагентов + p.exec("Покупатель.Адрес"); + p.setValue("param", getCatalogueValue("Справочник Контрагентов",DBValue("Покупатель"),"ИНН")); + p.exec("Покупатель.ИНН"); + + p.show(); // запускаем OpenOffice + p.close(); // удаляем все временные файлы +} + +function on_button(buttonName) // обработчик нажатия кнопки +{ + if(buttonName=="pko") // важно запомнить имя кнопки, данное ей в дизайнере + { + create_pko(); + } + if(buttonName=="nakladnaya") + { + create_nakladnaya(); + } + if(buttonName=="schet") + { + create_schet(); + } + if(buttonName=="schet_f") + { + create_schet_f(); + } +} + +function on_tabupdate(row,col,tname) // вызывается при изменении значения ячейки (row,col) таблицы с именем tname +{ + if(tname!="wDBTable1") + return; + var count = TabCount(tname); + var i; + var sum_zakup = 0; + var sum_prod = 0; + var sum_naz = 0; + var zakup= 0; + var prod = 0; + var kol_vo_idx = ColIndex(tname,"Кол-во"); // индекс столбца `Кол-во' + var cena_zakup_idx = ColIndex(tname,"Цена закуп."); // индекс столбца `Цена закуп.' + var cena_prod_idx = ColIndex(tname,"Цена отпуск.");// индекс столбца `Цена отпуск.' + zakup = parseFloat(TabValue(tname,row,kol_vo_idx))*parseFloat(TabValue(tname,row,cena_zakup_idx)); // подсчет суммы закуп. + SetTabValue(tname,"Сумма закуп.", row, zakup); // запись значения суммы закуп. в таблицу + prod = parseFloat(TabValue(tname,row,kol_vo_idx))*parseFloat(TabValue(tname,row,cena_prod_idx)); // подсчет суммы отпуск. + SetTabValue(tname,"Сумма отпуск.", row, prod); // запись значения суммы отпуск. в таблицу + SetTabValue(tname,"Наценка", row, prod - zakup); // запись значения наценки в таблицу + for(i=0; i<count;i++) // расчет общих сумм по таблице + { + sum_zakup+= parseFloat(TabValue(tname,i,ColIndex(tname,"Сумма закуп."))); + sum_prod+= parseFloat(TabValue(tname,i,ColIndex(tname,"Сумма отпуск."))); + } + sum_naz= sum_prod - sum_zakup; + SetValue("lineEdit1",sum_zakup); // запись общей суммы закупленных товаров в lineEdit, расположенный под таблицей + SetValue("lineEdit2",sum_prod); + SetValue("lineEdit3",sum_naz); +} + +function on_conduct() // вызывается при проводке документа +{ + var docName="Расходная накладная"; //имя документа в метаданных + var countRow = TabCount("wDBTable1"); // количество строк табличной части - wDBTable1 - имя таблицы + var i; + var towar; + var contragent; + var sklad; + var kolvo; + var summa; + var doc1 = new Document(docName); // создаем экземпляр объекта приходной накладной + SetCurrent(doc1); // осуществляем привязку созданного нами документа + //к текущему объекту, который мы редактируем в данный момент + for(i=0; i<countRow;i++) // цикл по всем строкам таблицы + { + towar = TabDBValue("wDBTable1",i,ColIndex("wDBTable1","Наименование товара")); + contragent = DBValue("Покупатель"); + sklad = DBValue("Склад"); + kolvo = TabValue("wDBTable1",i,ColIndex("wDBTable1","Кол-во")); + summa = TabValue("wDBTable1",i,ColIndex("wDBTable1","Сумма отпуск.")); + doc1.Seek(i,"Таблица товаров"); + Conduct("Главная книга", doc1,"Таблица товаров","90","41.2",towar,contragent, sklad, kolvo,summa); // списание реализ. товаров + Conduct("Главная книга", doc1,"","90","68",0,0,0,0,summa*0.18); // начисл. задолженность по НДС + } + ClosePeriod("Главная книга"); +} + 14 + <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> +<class>Document</class> +<widget class="wDocument"> + <property name="name"> + <cstring>Document</cstring> + </property> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>850</width> + <height>481</height> + </rect> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>7</hsizetype> + <vsizetype>7</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="caption"> + <string>Расходная накладная</string> + </property> + <property name="Name"> + <string></string> + </property> + <property name="Id"> + <number>576</number> + </property> + <grid> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLayoutWidget" row="2" column="0"> + <property name="name"> + <cstring>layout17</cstring> + </property> + <hbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <spacer> + <property name="name"> + <cstring>spacer8</cstring> + </property> + <property name="orientation"> + <enum>Horizontal</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>348</width> + <height>20</height> + </size> + </property> + </spacer> + <widget class="QLayoutWidget"> + <property name="name"> + <cstring>layout12</cstring> + </property> + <grid> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLineEdit" row="2" column="1"> + <property name="name"> + <cstring>lineEdit3</cstring> + </property> + <property name="enabled"> + <bool>false</bool> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>1</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="paletteForegroundColor"> + <color> + <red>0</red> + <green>0</green> + <blue>0</blue> + </color> + </property> + <property name="readOnly"> + <bool>true</bool> + </property> + </widget> + <widget class="QLabel" row="1" column="0"> + <property name="name"> + <cstring>textLabel2_3_2</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Сумма отпуск.</string> + </property> + </widget> + <widget class="QLineEdit" row="0" column="1"> + <property name="name"> + <cstring>lineEdit1</cstring> + </property> + <property name="enabled"> + <bool>false</bool> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>1</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>200</width> + <height>0</height> + </size> + </property> + <property name="paletteForegroundColor"> + <color> + <red>0</red> + <green>0</green> + <blue>0</blue> + </color> + </property> + <property name="readOnly"> + <bool>true</bool> + </property> + </widget> + <widget class="QLabel" row="0" column="0"> + <property name="name"> + <cstring>textLabel2_3</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Сумма закуп.</string> + </property> + </widget> + <widget class="QLineEdit" row="1" column="1"> + <property name="name"> + <cstring>lineEdit2</cstring> + </property> + <property name="enabled"> + <bool>false</bool> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>1</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="paletteForegroundColor"> + <color> + <red>0</red> + <green>0</green> + <blue>0</blue> + </color> + </property> + <property name="readOnly"> + <bool>true</bool> + </property> + </widget> + <widget class="QLabel" row="2" column="0"> + <property name="name"> + <cstring>textLabel2_3_3</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Сумма наценки</string> + </property> + </widget> + </grid> + </widget> + </hbox> + </widget> + <widget class="QLayoutWidget" row="0" column="1" rowspan="3" colspan="1"> + <property name="name"> + <cstring>layout21</cstring> + </property> + <vbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <property name="margin"> + <number>5</number> + </property> + <widget class="QGroupBox"> + <property name="name"> + <cstring>groupBox1</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>1</hsizetype> + <vsizetype>5</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="title"> + <string>Печать</string> + </property> + <widget class="wActionButton"> + <property name="name"> + <cstring>schet_f</cstring> + </property> + <property name="geometry"> + <rect> + <x>5</x> + <y>65</y> + <width>150</width> + <height>34</height> + </rect> + </property> + <property name="text"> + <string>Счет-фактура</string> + </property> + </widget> + <widget class="wActionButton"> + <property name="name"> + <cstring>schet</cstring> + </property> + <property name="geometry"> + <rect> + <x>5</x> + <y>104</y> + <width>150</width> + <height>34</height> + </rect> + </property> + <property name="text"> + <string>Счет</string> + </property> + </widget> + <widget class="wActionButton"> + <property name="name"> + <cstring>pko</cstring> + </property> + <property name="geometry"> + <rect> + <x>5</x> + <y>143</y> + <width>150</width> + <height>34</height> + </rect> + </property> + <property name="text"> + <string>ПКО</string> + </property> + </widget> + <widget class="wActionButton"> + <property name="name"> + <cstring>nakladnaya</cstring> + </property> + <property name="geometry"> + <rect> + <x>5</x> + <y>26</y> + <width>150</width> + <height>34</height> + </rect> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>1</hsizetype> + <vsizetype>1</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Накладная</string> + </property> + <property name="accel"> + <string></string> + </property> + <property name="action"> + <bool>false</bool> + </property> + <property name="actionUpdate"> + <bool>false</bool> + </property> + <property name="actionTurnOn"> + <bool>false</bool> + </property> + <property name="actionClose"> + <bool>false</bool> + </property> + <property name="script"> + <bool>true</bool> + </property> + <property name="scriptCode"> + <string></string> + </property> + <property name="actionPrint" stdset="0"> + <bool>false</bool> + </property> + </widget> + </widget> + <spacer> + <property name="name"> + <cstring>spacer2</cstring> + </property> + <property name="orientation"> + <enum>Vertical</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>20</width> + <height>160</height> + </size> + </property> + </spacer> + <widget class="wActionButton"> + <property name="name"> + <cstring>ok_button</cstring> + </property> + <property name="text"> + <string>Ok</string> + </property> + <property name="accel"> + <string>Ctrl+Return</string> + </property> + <property name="action"> + <bool>true</bool> + </property> + <property name="actionUpdate"> + <bool>true</bool> + </property> + <property name="actionTurnOn"> + <bool>true</bool> + </property> + <property name="actionClose"> + <bool>true</bool> + </property> + <property name="actionId"> + <number>390</number> + </property> + <property name="script"> + <bool>false</bool> + </property> + <property name="scriptCode"> + <string></string> + </property> + <property name="actionPrint" stdset="0"> + <bool>false</bool> + </property> + </widget> + </vbox> + </widget> + <widget class="QLayoutWidget" row="0" column="0"> + <property name="name"> + <cstring>layout13</cstring> + </property> + <grid> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLayoutWidget" row="1" column="0"> + <property name="name"> + <cstring>layout12</cstring> + </property> + <hbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel2_2</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>130</width> + <height>0</height> + </size> + </property> + <property name="text"> + <string>Получатель</string> + </property> + </widget> + <widget class="wDBField"> + <property name="name"> + <cstring>wDBField_3</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>7</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="focusPolicy"> + <enum>StrongFocus</enum> + </property> + <property name="Id"> + <number>586</number> + </property> + <property name="FieldType"> + <string>O 310 0 *</string> + </property> + <property name="EditorType"> + <enum>Catalogue</enum> + </property> + <property name="FieldName"> + <string>Покупатель</string> + </property> + </widget> + <spacer> + <property name="name"> + <cstring>spacer4</cstring> + </property> + <property name="orientation"> + <enum>Horizontal</enum> + </property> + <property name="sizeType"> + <enum>Fixed</enum> + </property> + <property name="sizeHint"> + <size> + <width>20</width> + <height>20</height> + </size> + </property> + </spacer> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel1_2</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>60</width> + <height>0</height> + </size> + </property> + <property name="text"> + <string>Склад</string> + </property> + </widget> + <widget class="wDBField"> + <property name="name"> + <cstring>wDBField_5</cstring> + </property> + <property name="minimumSize"> + <size> + <width>150</width> + <height>0</height> + </size> + </property> + <property name="Id"> + <number>984</number> + </property> + <property name="FieldType"> + <string>O 909 0 *</string> + </property> + <property name="EditorType"> + <enum>Catalogue</enum> + </property> + <property name="FieldName"> + <string>Склад</string> + </property> + </widget> + </hbox> + </widget> + <widget class="QLayoutWidget" row="2" column="0"> + <property name="name"> + <cstring>layout10</cstring> + </property> + <hbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel2_2_2</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>5</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>130</width> + <height>0</height> + </size> + </property> + <property name="text"> + <string>Основание</string> + </property> + </widget> + <widget class="wDBField"> + <property name="name"> + <cstring>wDBField_4</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>7</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="Id"> + <number>766</number> + </property> + <property name="FieldType"> + <string>C 254 0 *</string> + </property> + <property name="EditorType"> + <enum>String</enum> + </property> + <property name="FieldName"> + <string>Основание</string> + </property> + </widget> + </hbox> + </widget> + <widget class="QLayoutWidget" row="0" column="0"> + <property name="name"> + <cstring>layout11</cstring> + </property> + <hbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel1</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>130</width> + <height>0</height> + </size> + </property> + <property name="text"> + <string>Номер</string> + </property> + </widget> + <widget class="wDBField"> + <property name="name"> + <cstring>wDBField</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>5</hsizetype> + <vsizetype>5</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="Id"> + <number>582</number> + </property> + <property name="FieldType"> + <string>C 150 0 *</string> + </property> + <property name="EditorType"> + <enum>String</enum> + </property> + <property name="FieldName"> + <string>Номер</string> + </property> + </widget> + <spacer> + <property name="name"> + <cstring>spacer3</cstring> + </property> + <property name="orientation"> + <enum>Horizontal</enum> + </property> + <property name="sizeType"> + <enum>Fixed</enum> + </property> + <property name="sizeHint"> + <size> + <width>20</width> + <height>20</height> + </size> + </property> + </spacer> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel2</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>60</width> + <height>0</height> + </size> + </property> + <property name="text"> + <string>Дата</string> + </property> + </widget> + <widget class="wDBField"> + <property name="name"> + <cstring>wDBField_2</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>150</width> + <height>0</height> + </size> + </property> + <property name="Id"> + <number>584</number> + </property> + <property name="FieldType"> + <string>D 0 0 *</string> + </property> + <property name="EditorType"> + <enum>Date</enum> + </property> + <property name="FieldName"> + <string>Дата</string> + </property> + </widget> + </hbox> + </widget> + </grid> + </widget> + <widget class="QLayoutWidget" row="1" column="0"> + <property name="name"> + <cstring>layout18</cstring> + </property> + <vbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="wDBTable"> + <column> + <property name="text"> + <string>Наименование товара</string> + </property> + </column> + <column> + <property name="text"> + <string>Кол-во</string> + </property> + </column> + <column> + <property name="text"> + <string>Цена закуп.</string> + </property> + </column> + <column> + <property name="text"> + <string>Сумма закуп.</string> + </property> + </column> + <column> + <property name="text"> + <string>Цена отпуск.</string> + </property> + </column> + <column> + <property name="text"> + <string>Сумма отпуск.</string> + </property> + </column> + <column> + <property name="text"> + <string>Наценка</string> + </property> + </column> + <property name="name"> + <cstring>wDBTable1</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>5</hsizetype> + <vsizetype>5</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="focusPolicy"> + <enum>StrongFocus</enum> + </property> + <property name="selectionMode"> + <enum>Single</enum> + </property> + <property name="focusStyle"> + <enum>SpreadSheet</enum> + </property> + <property name="TableInd" stdset="0"> + <number>588</number> + </property> + <property name="DefFields"> + <stringlist> + <string>Наименование товара</string> + <string>Кол-во</string> + <string>Цена закуп.</string> + <string>Сумма закуп.</string> + <string>Цена отпуск.</string> + <string>Сумма отпуск.</string> + <string>Наценка</string> + </stringlist> + </property> + <property name="DefHeaders"> + <stringlist> + <string>Наименование товара</string> + <string>Кол-во</string> + <string>Цена закуп.</string> + <string>Сумма закуп.</string> + <string>Цена отпуск.</string> + <string>Сумма отпуск.</string> + <string>Наценка</string> + </stringlist> + </property> + <property name="ColWidth"> + <stringlist> + <string>100</string> + <string>100</string> + <string>100</string> + <string>100</string> + <string>100</string> + <string>100</string> + <string>100</string> + </stringlist> + </property> + <property name="DefIdList"> + <stringlist> + <string>589</string> + <string>591</string> + <string>593</string> + <string>768</string> + <string>770</string> + <string>772</string> + <string>774</string> + </stringlist> + </property> + </widget> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel3</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>1</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>&lt;Ins&gt;- новая строка, &lt;F2&gt; - редактирование , &lt;Del&gt; - удаление строки</string> + </property> + </widget> + </vbox> + </widget> + </grid> +</widget> +<tabstops> + <tabstop>wDBField</tabstop> + <tabstop>wDBField_2</tabstop> + <tabstop>wDBField_5</tabstop> + <tabstop>wDBField_3</tabstop> + <tabstop>wDBField_4</tabstop> + <tabstop>wDBTable1</tabstop> + <tabstop>nakladnaya</tabstop> + <tabstop>schet_f</tabstop> + <tabstop>schet</tabstop> + <tabstop>pko</tabstop> + <tabstop>ok_button</tabstop> + <tabstop>lineEdit1</tabstop> + <tabstop>lineEdit3</tabstop> + <tabstop>lineEdit2</tabstop> +</tabstops> +<layoutdefaults spacing="5" margin="5"/> +<includehints> + <includehint>wdocument.h</includehint> + <includehint>wactionbutton.h</includehint> + <includehint>wactionbutton.h</includehint> + <includehint>wactionbutton.h</includehint> + <includehint>wactionbutton.h</includehint> + <includehint>wactionbutton.h</includehint> + <includehint>wdbfield.h</includehint> + <includehint>wdbfield.h</includehint> + <includehint>wdbfield.h</includehint> + <includehint>wdbfield.h</includehint> + <includehint>wdbfield.h</includehint> + <includehint>wdbtable.h</includehint> +</includehints> +</UI> + + +
+ + + + + + 0 + +
+ +
+ + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+
+ +
+ + /* + * Copyright (c) Grigory Panow <gr1313 at mail.ru>, Yoshkar-Ola, 2005 + * Ananas Project http://ananas.lrn.ru + */ +print("Вызван модуль формы Накладной"); + +function on_formstart() // вызывается сразу после открытия формы +{ + on_tabupdate(0,0,"wDBTable1"); + SetColumnReadOnly("wDBTable1", 4,true); // устанавливаем столбец Сумма в режим readOnly +} + +function on_tabupdate(row,col,tname) // вызывается при изменении значения в ячейке таблицы с именем tname +{ + if(tname!="wDBTable1") // только для таблицы wDBTable1. wDBTable1 - имя таблицы, задаваемое в дизайнере, а не имя в метаданных + return; + var count = TabCount(tname); // кол-во строк в таблице + var i; + var total_sum = 0; + //var sum = 0; + SetTabValue(tname,"Сумма", row, parseFloat(TabValue(tname,row,1))*parseFloat(TabValue(tname,row,2))); // подсчет суммы и запись ее в таблицу + for(i=0; i<count;i++) // цикл по всем строкам таблицы + { + total_sum+= parseFloat(TabValue(tname,i,ColIndex(tname,"Сумма"))); // суммирование по строкам + } + SetValue("lineEdit1",total_sum); // запись общей суммы в lineEdit1 +} + + +function on_button(button_name) // обработчик нажатия кнопки +{ + if(button_name!="print_button") return; // обрабатываем только нажатие кнопри Печать + var serv = new Service(); + var defOffice = serv.GetOffice(); + var templateType = 1; + var templateFile = "templ_prihod.odt"; + if (defOffice == "MSO") { + templateType = 4; + templateFile = "templ_prihod.xml"; + } + var p = new Report("Report1",templateType); // создаем новый экземпляр объекта aReport + p.setTable(templateFile); // связываем созданный экземпляр отчета с шаблоном + // каталог, где находятся шаблоны, задается в диалоге конфигурирования файла ресурса + // в поле `Рабочий каталог' + p.setValue("param",Value("Номер") ); // устанавливает значение для простого тега + p.exec("Документ.Номер"); // применяет установленнок значение для тега с именем <:Документ.Номер:> + p.setValue("param",Value("Входной документ") ); + p.exec("Документ.Входной документ"); + p.setValue("param",Value("Продавец")); + p.exec("Документ.Продавец"); + p.setValue("param",Value("Склад")); + p.exec("Документ.Склад"); + p.setValue("param",ConvertDateFromIso(Value("Дата")) ); + p.exec("Документ.Дата"); + var sum=0; + var countRow = TabCount("wDBTable1"); // количество строк таблицы + var i; + for ( i =0; i<countRow; i++) + { + p.setValue("npp", String(i+1)); // устанавливаем значение табличного тега с именем `npp' + for ( j=1; j<=5; j++) + { + p.setValue("f"+String(j), TabValue("wDBTable1",i,j-1)); + } + p.exec("table_section"); // применяем установленные значения для строки + //содерщей табличный тег [:table_section:] + } + sum = Value("lineEdit1"); + p.setValue("param",ConvertNumber2MoneyFormat(sum)); + p.exec("Итого"); + p.setValue("param",countRow); + p.exec("всего наименований"); + p.setValue("param", Propis(sum)); // записываем сумму прописью + p.exec("Итого прописью"); + p.setValue("param",""); + p.exec("Сдал"); + p.setValue("param",""); + p.exec("Принял"); + p.setValue("param",getConstant("Константы","Главный бухгалтер")); // получаем имя главного бухгалтера из справочника констант + p.exec("Организация.Главбух"); + p.setValue("param", getConstant("Константы","Название")); + p.exec("Организация.Название"); + p.setValue("param", getConstant("Константы","ИНН")); + p.exec("Организация.ИНН"); + + p.show(); // запускаем OpenOfficce + p.close(); // удаляем все временные файлы +} + +function on_conduct() // вызывается при проведении документа +{ + var docName="Приходная накладная"; //имя документа в метаданных + var countRow = TabCount("wDBTable1"); // количество строк табличной части - wDBTable1 - имя таблицы + var i; + var towar; + var contragent; + var sklad; + var kolvo; + var summa; + var doc1 = new Document(docName); // создаем экземпляр объекта приходной накладной + SetCurrent(doc1); // осуществляем привязку созданного нами документа + //к текущему объекту, который мы редактируем в данный момент + for(i=0; i<countRow;i++) // цикл по всем строкам таблицы + { + towar = TabDBValue("wDBTable1",i,ColIndex("wDBTable1","Наименование")); + contragent = DBValue("Продавец"); + sklad = DBValue("Склад"); + kolvo = TabValue("wDBTable1",i,ColIndex("wDBTable1","Количество")); + summa = TabValue("wDBTable1",i,ColIndex("wDBTable1","Сумма")); + doc1.Seek(i,"Таблица"); + Conduct("Главная книга",doc1,"Таблица","41.2","60",towar,contragent, sklad, kolvo,summa); // оприходование товаров + Conduct("Главная книга",doc1,"","19","60",0,0, 0, 0,summa*0.18); // учет НДС + Conduct("Главная книга",doc1,"","68","19",0,0, 0, 0,summa*0.18); // зачет НДС + } + ClosePeriod("Главная книга"); +} + + 14 + <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> +<class>Document</class> +<widget class="wDocument"> + <property name="name"> + <cstring>Document</cstring> + </property> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>775</width> + <height>410</height> + </rect> + </property> + <property name="caption"> + <string>Приходная накладная</string> + </property> + <property name="Name"> + <string></string> + </property> + <property name="Id"> + <number>101</number> + </property> + <grid> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLayoutWidget" row="0" column="0"> + <property name="name"> + <cstring>layout4</cstring> + </property> + <hbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel1</cstring> + </property> + <property name="minimumSize"> + <size> + <width>130</width> + <height>0</height> + </size> + </property> + <property name="text"> + <string>Номер</string> + </property> + </widget> + <widget class="wDBField"> + <property name="name"> + <cstring>docNum</cstring> + </property> + <property name="Id"> + <number>121</number> + </property> + <property name="FieldType"> + <string>C 100 0 *</string> + </property> + <property name="EditorType"> + <enum>String</enum> + </property> + <property name="FieldName"> + <string>Номер</string> + </property> + <property name="Options" stdset="0"> + <string></string> + </property> + </widget> + <spacer> + <property name="name"> + <cstring>spacer2</cstring> + </property> + <property name="orientation"> + <enum>Horizontal</enum> + </property> + <property name="sizeType"> + <enum>Fixed</enum> + </property> + <property name="sizeHint"> + <size> + <width>30</width> + <height>20</height> + </size> + </property> + </spacer> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel1_2</cstring> + </property> + <property name="text"> + <string>Входной документ</string> + </property> + </widget> + <widget class="wDBField"> + <property name="name"> + <cstring>Osnovanie</cstring> + </property> + <property name="Id"> + <number>354</number> + </property> + <property name="FieldType"> + <string>C 254 0 *</string> + </property> + <property name="EditorType"> + <enum>String</enum> + </property> + <property name="FieldName"> + <string>Входной документ</string> + </property> + </widget> + </hbox> + </widget> + <widget class="QLayoutWidget" row="1" column="0" rowspan="2" colspan="1"> + <property name="name"> + <cstring>layout6</cstring> + </property> + <hbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel2</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>5</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>130</width> + <height>0</height> + </size> + </property> + <property name="text"> + <string>Дата</string> + </property> + </widget> + <widget class="wDBField"> + <property name="name"> + <cstring>docDate</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>120</width> + <height>0</height> + </size> + </property> + <property name="Id"> + <number>123</number> + </property> + <property name="FieldType"> + <string>D 0 0 *</string> + </property> + <property name="EditorType"> + <enum>Date</enum> + </property> + <property name="FieldName"> + <string>Дата</string> + </property> + <property name="Options" stdset="0"> + <string></string> + </property> + </widget> + <spacer> + <property name="name"> + <cstring>spacer2_2</cstring> + </property> + <property name="orientation"> + <enum>Horizontal</enum> + </property> + <property name="sizeType"> + <enum>Preferred</enum> + </property> + <property name="sizeHint"> + <size> + <width>400</width> + <height>20</height> + </size> + </property> + </spacer> + </hbox> + </widget> + <widget class="QLayoutWidget" row="6" column="0"> + <property name="name"> + <cstring>layout7</cstring> + </property> + <vbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel1_4</cstring> + </property> + <property name="text"> + <string>Новая строка - Ins, редактирование - F2, удаление строки - Del</string> + </property> + </widget> + <widget class="QLayoutWidget"> + <property name="name"> + <cstring>layout6</cstring> + </property> + <hbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <spacer> + <property name="name"> + <cstring>spacer4</cstring> + </property> + <property name="orientation"> + <enum>Horizontal</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>301</width> + <height>20</height> + </size> + </property> + </spacer> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel1_5</cstring> + </property> + <property name="text"> + <string>Сумма</string> + </property> + </widget> + <widget class="QLineEdit"> + <property name="name"> + <cstring>lineEdit1</cstring> + </property> + <property name="enabled"> + <bool>false</bool> + </property> + <property name="paletteForegroundColor"> + <color> + <red>0</red> + <green>0</green> + <blue>0</blue> + </color> + </property> + <property name="readOnly"> + <bool>true</bool> + </property> + </widget> + </hbox> + </widget> + </vbox> + </widget> + <spacer row="2" column="1" rowspan="4" colspan="1"> + <property name="name"> + <cstring>spacer5</cstring> + </property> + <property name="orientation"> + <enum>Vertical</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>20</width> + <height>280</height> + </size> + </property> + </spacer> + <widget class="wActionButton" row="6" column="1"> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>1</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Ok</string> + </property> + <property name="accel"> + <string>Ctrl+Return</string> + </property> + <property name="action"> + <bool>true</bool> + </property> + <property name="actionUpdate"> + <bool>true</bool> + </property> + <property name="actionTurnOn"> + <bool>true</bool> + </property> + <property name="actionClose"> + <bool>true</bool> + </property> + <property name="actionId"> + <number>390</number> + </property> + <property name="script"> + <bool>false</bool> + </property> + <property name="scriptCode"> + <string></string> + </property> + <property name="actionPrint" stdset="0"> + <bool>false</bool> + </property> + </widget> + <widget class="QLayoutWidget" row="3" column="0"> + <property name="name"> + <cstring>layout7</cstring> + </property> + <hbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel1_3</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>130</width> + <height>0</height> + </size> + </property> + <property name="text"> + <string>Продавец</string> + </property> + </widget> + <widget class="wDBField"> + <property name="name"> + <cstring>wDBField</cstring> + </property> + <property name="Id"> + <number>629</number> + </property> + <property name="FieldType"> + <string>O 310 0 *</string> + </property> + <property name="EditorType"> + <enum>Catalogue</enum> + </property> + <property name="FieldName"> + <string>Продавец</string> + </property> + </widget> + </hbox> + </widget> + <widget class="wDBTable" row="5" column="0"> + <column> + <property name="text"> + <string>Наименование</string> + </property> + </column> + <column> + <property name="text"> + <string>Количество</string> + </property> + </column> + <column> + <property name="text"> + <string>Цена</string> + </property> + </column> + <column> + <property name="text"> + <string>Примечание</string> + </property> + </column> + <column> + <property name="text"> + <string>Сумма</string> + </property> + </column> + <property name="name"> + <cstring>wDBTable1</cstring> + </property> + <property name="selectionMode"> + <enum>Single</enum> + </property> + <property name="TableInd" stdset="0"> + <number>126</number> + </property> + <property name="DefFields"> + <stringlist> + <string>Наименование</string> + <string>Количество</string> + <string>Цена</string> + <string>Примечание</string> + <string>Сумма</string> + </stringlist> + </property> + <property name="DefHeaders"> + <stringlist> + <string>Наименование</string> + <string>Количество</string> + <string>Цена</string> + <string>Примечание</string> + <string>Сумма</string> + </stringlist> + </property> + <property name="ColWidth"> + <stringlist> + <string>170</string> + <string>100</string> + <string>100</string> + <string>180</string> + <string>100</string> + </stringlist> + </property> + <property name="DefIdList"> + <stringlist> + <string>127</string> + <string>140</string> + <string>142</string> + <string>356</string> + <string>448</string> + </stringlist> + </property> + <property name="openEditor"> + <bool>false</bool> + </property> + </widget> + <widget class="QLayoutWidget" row="4" column="0"> + <property name="name"> + <cstring>layout8</cstring> + </property> + <hbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel1_6</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>130</width> + <height>0</height> + </size> + </property> + <property name="text"> + <string>Склад</string> + </property> + </widget> + <widget class="wDBField"> + <property name="name"> + <cstring>wDBField_2</cstring> + </property> + <property name="Id"> + <number>986</number> + </property> + <property name="FieldType"> + <string>O 909 0 *</string> + </property> + <property name="EditorType"> + <enum>Catalogue</enum> + </property> + <property name="FieldName"> + <string>Склад</string> + </property> + </widget> + </hbox> + </widget> + <widget class="wActionButton" row="0" column="1" rowspan="2" colspan="1"> + <property name="name"> + <cstring>print_button</cstring> + </property> + <property name="text"> + <string>Печать</string> + </property> + <property name="accel"> + <string>Ctrl+P</string> + </property> + <property name="action"> + <bool>false</bool> + </property> + <property name="actionUpdate"> + <bool>false</bool> + </property> + <property name="actionTurnOn"> + <bool>false</bool> + </property> + <property name="actionClose"> + <bool>false</bool> + </property> + <property name="script"> + <bool>true</bool> + </property> + <property name="scriptCode"> + <string></string> + </property> + <property name="actionPrint" stdset="0"> + <bool>false</bool> + </property> + </widget> + </grid> +</widget> +<tabstops> + <tabstop>docNum</tabstop> + <tabstop>Osnovanie</tabstop> + <tabstop>docDate</tabstop> + <tabstop>wDBField</tabstop> + <tabstop>wDBField_2</tabstop> + <tabstop>wDBTable1</tabstop> + <tabstop>print_button</tabstop> +</tabstops> +<layoutdefaults spacing="5" margin="5"/> +<includehints> + <includehint>wdocument.h</includehint> + <includehint>wdbfield.h</includehint> + <includehint>wdbfield.h</includehint> + <includehint>wdbfield.h</includehint> + <includehint>wactionbutton.h</includehint> + <includehint>wdbfield.h</includehint> + <includehint>wdbtable.h</includehint> + <includehint>wdbfield.h</includehint> + <includehint>wactionbutton.h</includehint> +</includehints> +</UI> + + +
+ + + + + + 121 + +
+ +
+ + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+
+ +
+ + /* + * Copyright (c) Grigory Panow <gr1313 at mail dot ru>, Yoshkar-Ola, 2005 + * Ananas Project http://ananas.lrn.ru + */ +function on_formstart() // вызывается непосредственно перед показом формы +{ + on_tabupdate(0,0,"wDBTable1"); // первоначальная инициализация сумм + SetColumnReadOnly("wDBTable1",ColIndex("wDBTable1","Сумма"),true); // установка столбца суммы в режим только чтение + // функция ColIndex() возвращает индекс столбца +} + + +function on_button(button_name) +{ + if(button_name == "print_button") + { + create_schet_pf(); + } + if(button_name=="nakl_button") + { + create_nakl(); + } +} +function create_nakl() +{ +var form = sys.OpenForm("Document.Расходная накладная.Form.Форма расходной накладной",0); +form.SetValue("Номер",Value("Номер")); +//doc.SetValue("Дата",Value("Дата")); +form.SetValue("Покупатель",DBValue("Контрагент")); +form.SetValue("Основание","Счет #1"+Value("Номер")); +//doc.Update(); +var i; +var tname = "wDBTable1"; +var doctable = "wDBTable1"; +var count = TabCount(tname); +for(i=0;i<count; i++) +{ + //doc.TableSelect(doctable); + form.TabNewLine(doctable); + form.SetTabValue(doctable,"Наименование товара",i,TabDBValue(tname,i,ColIndex(tname,"Наименование"))); + form.SetTabValue(doctable,"Кол-во",i,TabDBValue(tname,i,ColIndex(tname,"Кол-во"))); + form.SetTabValue(doctable,"Цена закуп.",i,TabDBValue(tname,i,ColIndex(tname,"Цена"))); + form.SetTabValue(doctable,"Сумма закуп.",i,TabDBValue(tname,i,ColIndex(tname,"Сумма"))); + //form.TableUpdate(doctable); +} + +} + +function create_schet_pf() +{ + var serv = new Service(); + var defOffice = serv.GetOffice(); + var templateType = 1; + var templateFile = "templ_schet.odt"; + if (defOffice == "MSO") { + templateType = 4; + templateFile = "templ_schet.xml"; + } + var p = new Report("Report1",templateType); // создаем новый экземпляр объекта aReport + p.setTable(templateFile); // связываем созданный экземпляр отчета с шаблоном + // каталог, где находятся шаблоны, задается в диалоге конфигурирования файла ресурса + // в поле `Рабочий каталог' + p.setValue("param",Value("Номер") ); // устанавливаем значение для простого тега + p.exec("Документ.Номер"); // применяем установленное значение к тегу с именем <:Документ.Номер:> + p.setValue("param",ConvertDateFromIso(Value("Дата")) ); + p.exec("Документ.Дата"); + p.setValue("param",Value("Контрагент")); + p.exec("Документ.Покупатель"); + var countRow = TabCount("wDBTable1"); // производим подсчет строк таблицы + var i; + for ( i =0; i<countRow; i++) // цикл по всем строкам таблицы. Снизу вверх - из-за неправильного + // порядка добавления строк таблицы + { +// p.setValue("n",String(i+1)); + var ind; + for ( j=0; j<5; j++) + { + p.setValue("f"+String(j), TabValue("wDBTable1",i,j)); // устанавливаем значение табличного тега с заданным именем + } + p.exec("строка"); // применяем установленное значение к строке таблицы + // в которой содержится тег строки таблицы [:строка:] + } + var sum = Value("lineEdit1"); + p.setValue("param",ConvertNumber2MoneyFormat(sum)); + p.exec("Итого"); + p.setValue("param", Propis(sum)); // записываем знвачение суммы прописью + p.exec("Итого прописью"); + p.setValue("param", countRow); + p.exec("кол-во строк"); + p.setValue("param", getConstant("Константы","Главный бухгалтер")); + p.exec("Организация.Главбух"); + p.setValue("param", getConstant("Константы","Название")); + p.exec("Организация.Название"); + p.setValue("param", getConstant("Константы","Руководитель")); + p.exec("Организация.Руководитель"); + p.setValue("param", getConstant("Константы","Счет")); + p.exec("Организация.Счет"); + p.setValue("param", getConstant("Константы","Кор. счет")); + p.exec("Организация.Кор. счет"); + p.setValue("param", getConstant("Константы","Банк")); + p.exec("Организация.Банк"); + p.setValue("param", getConstant("Константы","БИК")); + p.exec("Организация.БИК"); + + p.show(); // запускаем OpenOffice + p.close(); // удаляем все временные файлы + +} + +function on_tabupdate(row,col,tname) // вызывается при изменении значения ячейки (row,col) таблицы с именем tname +{ + if(tname!="wDBTable1") + return; + var count = TabCount(tname); + var i; + var sum_zakup = 0; + var zakup= 0; + var kol_vo_idx = ColIndex(tname,"Кол-во"); // индекс столбца `Кол-во' + var cena_idx = ColIndex(tname,"Цена"); // индекс столбца `Цена закуп.' + // var cena_prod_idx = ColIndex(tname,"Цена отпуск.");// индекс столбца `Цена отпуск.' + zakup = parseFloat(TabValue(tname,row,kol_vo_idx))*parseFloat(TabValue(tname,row,cena_idx)); // подсчет суммы закуп. + SetTabValue(tname,"Сумма", row, ConvertNumber2MoneyFormat(zakup)); // запись значения суммы закуп. в таблицу cуммы отпуск. + for(i=0; i<count;i++) // расчет общих сумм по таблице + { + sum_zakup+= parseFloat(TabValue(tname,i,ColIndex(tname,"Сумма"))); + } + SetValue("lineEdit1",sum_zakup); // запись общей суммы закупленных товаров в lineEdit, расположенный под таблицей +} + 14 + <!DOCTYPE UI><UI version="3.2" stdsetdef="1"> +<class>Document</class> +<widget class="wDocument"> + <property name="name"> + <cstring>Document</cstring> + </property> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>621</width> + <height>373</height> + </rect> + </property> + <property name="caption"> + <string>Счет</string> + </property> + <property name="Id"> + <number>874</number> + </property> + <property name="Name" stdset="0"> + <string></string> + </property> + <grid> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLayoutWidget" row="0" column="0"> + <property name="name"> + <cstring>layout2</cstring> + </property> + <hbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel1</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>5</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>120</width> + <height>0</height> + </size> + </property> + <property name="text"> + <string>Номер</string> + </property> + </widget> + <widget class="wDBField"> + <property name="name"> + <cstring>wDBField</cstring> + </property> + <property name="Id"> + <number>880</number> + </property> + <property name="FieldType"> + <string>C 100 0 *</string> + </property> + <property name="EditorType"> + <enum>String</enum> + </property> + <property name="FieldName"> + <string>Номер</string> + </property> + </widget> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel2</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>5</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Дата</string> + </property> + </widget> + <widget class="wDBField"> + <property name="name"> + <cstring>wDBField_2</cstring> + </property> + <property name="Id"> + <number>882</number> + </property> + <property name="FieldType"> + <string>D 0 0 *</string> + </property> + <property name="EditorType"> + <enum>Date</enum> + </property> + <property name="FieldName"> + <string>Дата</string> + </property> + </widget> + </hbox> + </widget> + <widget class="QLayoutWidget" row="1" column="0"> + <property name="name"> + <cstring>layout1</cstring> + </property> + <hbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel3</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>120</width> + <height>0</height> + </size> + </property> + <property name="text"> + <string>Контрагент</string> + </property> + </widget> + <widget class="wDBField"> + <property name="name"> + <cstring>wDBField_3</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>5</hsizetype> + <vsizetype>5</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="Id"> + <number>884</number> + </property> + <property name="FieldType"> + <string>O 310 0 *</string> + </property> + <property name="EditorType"> + <enum>Catalogue</enum> + </property> + <property name="FieldName"> + <string>Контрагент</string> + </property> + </widget> + </hbox> + </widget> + <widget class="QLayoutWidget" row="2" column="0"> + <property name="name"> + <cstring>layout4</cstring> + </property> + <vbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="wDBTable"> + <column> + <property name="text"> + <string>Наименование</string> + </property> + </column> + <column> + <property name="text"> + <string>Ед. измерения</string> + </property> + </column> + <column> + <property name="text"> + <string>Кол-во</string> + </property> + </column> + <column> + <property name="text"> + <string>Цена</string> + </property> + </column> + <column> + <property name="text"> + <string>Сумма</string> + </property> + </column> + <property name="name"> + <cstring>wDBTable1</cstring> + </property> + <property name="TableInd" stdset="0"> + <number>886</number> + </property> + <property name="DefFields"> + <stringlist> + <string>Наименование</string> + <string>Ед. измерения</string> + <string>Кол-во</string> + <string>Цена</string> + <string>Сумма</string> + </stringlist> + </property> + <property name="DefHeaders"> + <stringlist> + <string>Наименование</string> + <string>Ед. измерения</string> + <string>Кол-во</string> + <string>Цена</string> + <string>Сумма</string> + </stringlist> + </property> + <property name="ColWidth"> + <stringlist> + <string>160</string> + <string>80</string> + <string>80</string> + <string>80</string> + <string>100</string> + </stringlist> + </property> + <property name="DefIdList"> + <stringlist> + <string>887</string> + <string>889</string> + <string>890</string> + <string>892</string> + <string>895</string> + </stringlist> + </property> + <property name="openEditor" stdset="0"> + <bool>false</bool> + </property> + </widget> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel4</cstring> + </property> + <property name="text"> + <string>&lt;Ins&gt; -новый, &lt;F2&gt;- редактировать, &lt;del&gt;- удалить</string> + </property> + </widget> + </vbox> + </widget> + <widget class="QLayoutWidget" row="3" column="0"> + <property name="name"> + <cstring>layout6</cstring> + </property> + <hbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <spacer> + <property name="name"> + <cstring>spacer2</cstring> + </property> + <property name="orientation"> + <enum>Horizontal</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>231</width> + <height>20</height> + </size> + </property> + </spacer> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel5</cstring> + </property> + <property name="text"> + <string>Сумма</string> + </property> + </widget> + <widget class="QLineEdit"> + <property name="name"> + <cstring>lineEdit1</cstring> + </property> + <property name="readOnly"> + <bool>true</bool> + </property> + </widget> + </hbox> + </widget> + <widget class="QLayoutWidget" row="0" column="1" rowspan="4" colspan="1"> + <property name="name"> + <cstring>layout3</cstring> + </property> + <vbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="wActionButton"> + <property name="name"> + <cstring>print_button</cstring> + </property> + <property name="text"> + <string>Печать</string> + </property> + <property name="action"> + <bool>true</bool> + </property> + <property name="actionUpdate"> + <bool>false</bool> + </property> + <property name="actionTurnOn"> + <bool>false</bool> + </property> + <property name="actionClose"> + <bool>false</bool> + </property> + <property name="actionId"> + <number>0</number> + </property> + <property name="script"> + <bool>false</bool> + </property> + </widget> + <widget class="wActionButton"> + <property name="name"> + <cstring>nakl_button</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>1</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Расх. накл.</string> + </property> + <property name="accel"> + <string>Ctrl+R</string> + </property> + <property name="action"> + <bool>true</bool> + </property> + <property name="actionUpdate"> + <bool>false</bool> + </property> + <property name="actionTurnOn"> + <bool>false</bool> + </property> + <property name="actionClose"> + <bool>false</bool> + </property> + <property name="actionId"> + <number>0</number> + </property> + <property name="script"> + <bool>false</bool> + </property> + </widget> + <spacer> + <property name="name"> + <cstring>spacer1</cstring> + </property> + <property name="orientation"> + <enum>Vertical</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>21</width> + <height>221</height> + </size> + </property> + </spacer> + <widget class="wActionButton"> + <property name="name"> + <cstring>unnamed_3</cstring> + </property> + <property name="text"> + <string>Ok</string> + </property> + <property name="action"> + <bool>true</bool> + </property> + <property name="actionUpdate"> + <bool>true</bool> + </property> + <property name="actionTurnOn"> + <bool>false</bool> + </property> + <property name="actionClose"> + <bool>true</bool> + </property> + <property name="actionId"> + <number>390</number> + </property> + <property name="script"> + <bool>false</bool> + </property> + <property name="actionPrint" stdset="0"> + <bool>false</bool> + </property> + <property name="scriptCode" stdset="0"> + <string></string> + </property> + </widget> + </vbox> + </widget> + </grid> +</widget> +<customwidgets> +</customwidgets> +<tabstops> + <tabstop>wDBField</tabstop> + <tabstop>wDBField_2</tabstop> + <tabstop>wDBField_3</tabstop> + <tabstop>wDBTable1</tabstop> + <tabstop>print_button</tabstop> + <tabstop>nakl_button</tabstop> + <tabstop>unnamed_3</tabstop> + <tabstop>lineEdit1</tabstop> +</tabstops> +<layoutdefaults spacing="5" margin="5"/> +<includehints> + <includehint>wdocument.h</includehint> + <includehint>wdbfield.h</includehint> + <includehint>wdbfield.h</includehint> + <includehint>wdbfield.h</includehint> + <includehint>wdbtable.h</includehint> + <includehint>wactionbutton.h</includehint> + <includehint>wactionbutton.h</includehint> + <includehint>wactionbutton.h</includehint> +</includehints> +</UI> + + +
+ + + + + + 0 + +
+ +
+ + + + + + + + + + + + + + + +
+ + +
+ + /* + * Copyright (c) Grigory Panow <gr1313 at mail.ru>, Yoshkar-Ola, 2005 + * Ananas Project http://ananas.lrn.ru + */ +function on_button(buttonName) // обработчик нажатия кнопки +{ + if(buttonName=="print_button") // важно запомнить имя кнопки, данное ей в дизайнере + { + create_pko(); + } + } + +function create_pko() // печать приходного кассового ордера +{ + var serv = new Service(); + var defOffice = serv.GetOffice(); + var templateType = 1; + var templateFile = "templ_pko.odt"; + if (defOffice == "MSO") { + templateType = 4; + templateFile = "templ_pko.xml"; + } + var p = new Report("pko",templateType); // создаем новый экземпляр объекта aReport + p.setTable(templateFile); // связываем созданный экземпляр отчета с шаблоном + // каталог, где находятся шаблоны, задается в диалоге конфигурирования файла ресурса + // в поле `Рабочий каталог' + p.setValue("param",Value("Номер") ); // устанавливаем значение для простого тега + p.exec("Документ.Номер"); // применяем установленное значение к тегу с именем <:Документ.Номер:> + // рекомендуемая схема наименования: + // теги, значения которых задаются из текущего документа, начинаются с прежикса Документ. + // теги, значения которых задаются из справочника констант, начинаются с префикса Организация. + p.setValue("param",Value("Основание")); + p.exec("Документ.Основание"); + p.setValue("param",ConvertDateFromIso(Value("Дата")) ); + p.exec("Документ.Дата"); + p.setValue("param",Value("Покупатель")); + p.exec("Документ.Покупатель"); + p.setValue("param", getConstant("Константы","Главный бухгалтер")); + // функция getConstant возвращает значение константы, в данном случае имя главного бухгалтера. + //Оно берется из справочника с именем Константы. + // функция getConstant() написана на Ананас-Скрипте и находится в глобальном модуле + p.exec("Организация.Главбух"); + p.setValue("param", getConstant("Константы","Название")); + p.exec("Организация.Название"); + p.setValue("param", getConstant("Константы","Кассир")); + p.exec("Организация.Кассир"); + p.setValue("param", getConstant("Константы","ОКПО")); + p.exec("Организация.ОКПО"); + p.setValue("param", getConstant("Константы","ОКУД")); + p.exec("Организация.ОКУД"); + p.setValue("param", ConvertNumber2MoneyFormat(Value("Сумма"))); + p.exec("Документ.Сумма"); + p.setValue("param", Propis(Value("Сумма"))); //функция Propis возвращает сумму прописью + p.exec("Документ.Сумма прописью"); + var i; + var countRow = TabCount("wDBTable1"); + for(i=0;i<countRow;i++) + { + p.setValue("f0",TabValue("wDBTable1",i,ColIndex("wDBTable1","Дебет"))); + p.setValue("f2",TabValue("wDBTable1",i,ColIndex("wDBTable1","Кредит"))); + p.setValue("f4",TabValue("wDBTable1",i,ColIndex("wDBTable1","Сумма"))); + p.setValue("f5",TabValue("wDBTable1",i,ColIndex("wDBTable1","Код целевого назначения"))); + p.exec("Строка"); + } + p.show(); // запускаем OpenOffice + p.close(); // удаляем все временные файлы + +} +function on_conduct() // вызывается при проводке документа +{ + var docName="Приходный кассовый ордер"; //имя документа в метаданных + // var countRow = TabCount("wDBTable1"); // количество строк табличной части - wDBTable1 - имя таблицы + var i; + var towar=0; + var contragent=0; + var sklad=0; + var kolvo=0; + var summa; + var doc1 = new Document(docName); // создаем экземпляр объекта приходной накладной + SetCurrent(doc1); // осуществляем привязку созданного нами документа + //к текущему объекту, который мы редактируем в данный момент + // for(i=0; i<countRow;i++) // цикл по всем строкам таблицы + // { +// towar = TabDBValue("wDBTable1",i,ColIndex("wDBTable1","Наименование товара")); + contragent = DBValue("Покупатель"); +// sklad = DBValue("Склад"); + summa = Value("Сумма"); + //doc1.Seek(i,"Таблица товаров"); + Conduct("Главная книга", doc1,"","50","90",towar,contragent, sklad, kolvo,summa); // платежи за реализ. товар + // } + ClosePeriod("Главная книга"); +} + 14 + <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> +<class>Document</class> +<widget class="wDocument"> + <property name="name"> + <cstring>Document</cstring> + </property> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>611</width> + <height>168</height> + </rect> + </property> + <property name="caption"> + <string>Приходный кассовый ордер</string> + </property> + <property name="Name"> + <string></string> + </property> + <property name="Id"> + <number>988</number> + </property> + <grid> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLayoutWidget" row="1" column="0"> + <property name="name"> + <cstring>layout2</cstring> + </property> + <hbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel3</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>130</width> + <height>0</height> + </size> + </property> + <property name="text"> + <string>Покупатель</string> + </property> + </widget> + <widget class="wDBField"> + <property name="name"> + <cstring>wDBField_3</cstring> + </property> + <property name="Id"> + <number>998</number> + </property> + <property name="FieldType"> + <string>O 310 0 *</string> + </property> + <property name="EditorType"> + <enum>Catalogue</enum> + </property> + <property name="FieldName"> + <string>Покупатель</string> + </property> + </widget> + </hbox> + </widget> + <widget class="QLayoutWidget" row="0" column="0"> + <property name="name"> + <cstring>layout3</cstring> + </property> + <hbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel1</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>130</width> + <height>0</height> + </size> + </property> + <property name="text"> + <string>Номер</string> + </property> + </widget> + <widget class="wDBField"> + <property name="name"> + <cstring>wDBField</cstring> + </property> + <property name="Id"> + <number>994</number> + </property> + <property name="FieldType"> + <string>N 12 0 *</string> + </property> + <property name="EditorType"> + <enum>Numberic</enum> + </property> + <property name="FieldName"> + <string>Номер</string> + </property> + </widget> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel2</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Дата</string> + </property> + </widget> + <widget class="wDBField"> + <property name="name"> + <cstring>wDBField_2</cstring> + </property> + <property name="Id"> + <number>996</number> + </property> + <property name="FieldType"> + <string>D 0 0 *</string> + </property> + <property name="EditorType"> + <enum>Date</enum> + </property> + <property name="FieldName"> + <string>Дата</string> + </property> + </widget> + </hbox> + </widget> + <widget class="QLayoutWidget" row="3" column="0"> + <property name="name"> + <cstring>layout4</cstring> + </property> + <hbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel1_2</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>130</width> + <height>0</height> + </size> + </property> + <property name="text"> + <string>Сумма</string> + </property> + </widget> + <widget class="wDBField"> + <property name="name"> + <cstring>wDBField_5</cstring> + </property> + <property name="focusPolicy"> + <enum>StrongFocus</enum> + </property> + <property name="Id"> + <number>1219</number> + </property> + <property name="FieldType"> + <string>N 10 2 *</string> + </property> + <property name="EditorType"> + <enum>Numberic</enum> + </property> + <property name="FieldName"> + <string>Сумма</string> + </property> + </widget> + </hbox> + </widget> + <widget class="wActionButton" row="0" column="1"> + <property name="name"> + <cstring>print_button</cstring> + </property> + <property name="text"> + <string>Печать</string> + </property> + <property name="accel"> + <string>Ctrl+P</string> + </property> + </widget> + <widget class="QLayoutWidget" row="2" column="0"> + <property name="name"> + <cstring>layout1</cstring> + </property> + <hbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel4</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>130</width> + <height>0</height> + </size> + </property> + <property name="text"> + <string>Основание</string> + </property> + </widget> + <widget class="wDBField"> + <property name="name"> + <cstring>wDBField_4</cstring> + </property> + <property name="Id"> + <number>1000</number> + </property> + <property name="FieldType"> + <string>C 200 0 *</string> + </property> + <property name="EditorType"> + <enum>String</enum> + </property> + <property name="FieldName"> + <string>Основание</string> + </property> + </widget> + </hbox> + </widget> + <spacer row="1" column="1" rowspan="2" colspan="1"> + <property name="name"> + <cstring>spacer1</cstring> + </property> + <property name="orientation"> + <enum>Vertical</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>21</width> + <height>60</height> + </size> + </property> + </spacer> + <widget class="wActionButton" row="3" column="1"> + <property name="name"> + <cstring>ok_button</cstring> + </property> + <property name="text"> + <string>Ok</string> + </property> + <property name="accel"> + <string>Ctrl+Return</string> + </property> + <property name="action"> + <bool>true</bool> + </property> + <property name="actionUpdate"> + <bool>true</bool> + </property> + <property name="actionTurnOn"> + <bool>true</bool> + </property> + <property name="actionClose"> + <bool>true</bool> + </property> + <property name="actionId"> + <number>390</number> + </property> + <property name="script"> + <bool>false</bool> + </property> + </widget> + </grid> +</widget> +<tabstops> + <tabstop>wDBField</tabstop> + <tabstop>wDBField_2</tabstop> + <tabstop>wDBField_3</tabstop> + <tabstop>wDBField_4</tabstop> + <tabstop>wDBField_5</tabstop> + <tabstop>print_button</tabstop> + <tabstop>ok_button</tabstop> +</tabstops> +<layoutdefaults spacing="5" margin="5"/> +<includehints> + <includehint>wdocument.h</includehint> + <includehint>wdbfield.h</includehint> + <includehint>wdbfield.h</includehint> + <includehint>wdbfield.h</includehint> + <includehint>wdbfield.h</includehint> + <includehint>wactionbutton.h</includehint> + <includehint>wdbfield.h</includehint> + <includehint>wactionbutton.h</includehint> +</includehints> +</UI> + + +
+ + + + + + 0 + +
+ +
+ + + + + + + + + + + + + + + + + + + + + +
+ + +
+ + /* + * Copyright (c) Grigory Panow <gr1313 at mail.ru>, Yoshkar-Ola, 2005 + * Ananas Project http://ananas.lrn.ru + */ +function on_button(button_name) // обработчик нажатия кнопки +{ + if(button_name!="print_button") return; // обрабатываем только нажатие кнопри Печать + var serv = new Service(); + var defOffice = serv.GetOffice(); + var templateType = 1; + var templateFile = "templ_rko.odt"; + if (defOffice == "MSO") { + templateType = 4; + templateFile = "templ_rko.xml"; + } + var p = new Report("Report1",templateType); // создаем новый экземпляр объекта aReport + p.setTable(templateFile); // связываем созданный экземпляр отчета с шаблоном + // каталог, где находятся шаблоны, задается в диалоге конфигурирования файла ресурса + // в поле `Рабочий каталог' + p.setValue("param",Value("Номер") ); // устанавливает значение для простого тега + p.exec("Документ.Номер"); // применяет установленнок значение для тега с именем <:Документ.Номер:> + p.setValue("param",ConvertDateFromIso(Value("Дата")) ); + p.exec("Документ.Дата"); + p.setValue("param",Propis(Value("Сумма")) ); + p.exec("Документ.Сумма прописью"); + p.setValue("param",ConvertNumber2MoneyFormat(Value("Сумма")) ); + p.exec("Документ.Сумма"); + p.setValue("param",Value("Выдать")); + p.exec("Документ.Выдать"); + p.setValue("param",Value("Основание")); + p.exec("Документ.Основание"); + p.setValue("param",Value("Приложение")); + p.exec("Документ.Приложение"); + p.setValue("param",Value("По")); + p.exec("Документ.По"); + + cat_name = "Константы"; + p.setValue("param", getConstant(cat_name,"Название")); + p.exec("Организация.Название"); + p.setValue("param", getConstant(cat_name,"ОКПО")); + p.exec("Организация.ОКПО"); + p.setValue("param",getConstant(cat_name,"Руководитель")); + p.exec("Организация.Руководитель"); + p.setValue("param",getConstant(cat_name,"Главный бухгалтер")); + p.exec("Организация.Главбух"); + p.setValue("param",getConstant(cat_name,"Кассир")); + p.exec("Организация.Кассир"); + p.show(); // запускаем OpenOffice + p.close(); // удаляем все временные файлы +} +function on_conduct() // вызывается при проведении документа +{ + var docName="Расходный кассовый ордер"; //имя документа в метаданных + var i; + var towar=0; + var contragent=0; + var sklad=0; + var kolvo=0; + var summa; + var doc1 = new Document(docName); // создаем экземпляр объекта приходной накладной + SetCurrent(doc1); // осуществляем привязку созданного нами документа + //к текущему объекту, который мы редактируем в данный момент + contragent = DBValue("Выдать"); + summa = Value("Сумма"); + Conduct("Главная книга",doc1,"","60","50",towar,contragent, sklad, kolvo,summa); // оплата приобрет. товаров через кассу + ClosePeriod("Главная книга"); +} + 14 + <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> +<class>Document</class> +<widget class="wDocument"> + <property name="name"> + <cstring>Document</cstring> + </property> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>550</width> + <height>189</height> + </rect> + </property> + <property name="caption"> + <string>Расходный кассовый ордер</string> + </property> + <property name="Name"> + <string></string> + </property> + <property name="Id"> + <number>1002</number> + </property> + <grid> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLayoutWidget" row="4" column="0"> + <property name="name"> + <cstring>layout6</cstring> + </property> + <hbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel1_2_4</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>120</width> + <height>0</height> + </size> + </property> + <property name="text"> + <string>По документу</string> + </property> + </widget> + <widget class="wDBField"> + <property name="name"> + <cstring>wDBField_7</cstring> + </property> + <property name="focusPolicy"> + <enum>StrongFocus</enum> + </property> + <property name="Id"> + <number>1233</number> + </property> + <property name="FieldType"> + <string>C 254 0 *</string> + </property> + <property name="EditorType"> + <enum>String</enum> + </property> + <property name="FieldName"> + <string>По</string> + </property> + </widget> + </hbox> + </widget> + <widget class="QLayoutWidget" row="0" column="0"> + <property name="name"> + <cstring>layout1</cstring> + </property> + <hbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel1</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>120</width> + <height>0</height> + </size> + </property> + <property name="text"> + <string>Номер</string> + </property> + </widget> + <widget class="wDBField"> + <property name="name"> + <cstring>wDBField1</cstring> + </property> + <property name="focusPolicy"> + <enum>StrongFocus</enum> + </property> + <property name="Id"> + <number>1221</number> + </property> + <property name="FieldType"> + <string>C 50 0 *</string> + </property> + <property name="EditorType"> + <enum>String</enum> + </property> + <property name="FieldName"> + <string>Номер</string> + </property> + </widget> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel1_2_5</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>0</width> + <height>0</height> + </size> + </property> + <property name="text"> + <string>Дата</string> + </property> + </widget> + <widget class="wDBField"> + <property name="name"> + <cstring>wDBField_3</cstring> + </property> + <property name="minimumSize"> + <size> + <width>120</width> + <height>0</height> + </size> + </property> + <property name="focusPolicy"> + <enum>WheelFocus</enum> + </property> + <property name="Id"> + <number>1223</number> + </property> + <property name="FieldType"> + <string>D 0 0 *</string> + </property> + <property name="EditorType"> + <enum>Date</enum> + </property> + <property name="FieldName"> + <string>Дата</string> + </property> + </widget> + </hbox> + </widget> + <widget class="QLayoutWidget" row="1" column="0"> + <property name="name"> + <cstring>layout2</cstring> + </property> + <hbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel1_2</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>120</width> + <height>0</height> + </size> + </property> + <property name="text"> + <string>Выдать</string> + </property> + </widget> + <widget class="wDBField"> + <property name="name"> + <cstring>wDBField_2</cstring> + </property> + <property name="focusPolicy"> + <enum>StrongFocus</enum> + </property> + <property name="Id"> + <number>1225</number> + </property> + <property name="FieldType"> + <string>O 310 0 *</string> + </property> + <property name="EditorType"> + <enum>Catalogue</enum> + </property> + <property name="FieldName"> + <string>Выдать</string> + </property> + </widget> + </hbox> + </widget> + <widget class="QLayoutWidget" row="2" column="0"> + <property name="name"> + <cstring>layout4</cstring> + </property> + <hbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel1_2_2</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>120</width> + <height>0</height> + </size> + </property> + <property name="text"> + <string>Основание</string> + </property> + </widget> + <widget class="wDBField"> + <property name="name"> + <cstring>wDBField_4</cstring> + </property> + <property name="focusPolicy"> + <enum>StrongFocus</enum> + </property> + <property name="Id"> + <number>1227</number> + </property> + <property name="FieldType"> + <string>C 200 0 *</string> + </property> + <property name="EditorType"> + <enum>String</enum> + </property> + <property name="FieldName"> + <string>Основание</string> + </property> + </widget> + </hbox> + </widget> + <widget class="QLayoutWidget" row="3" column="0"> + <property name="name"> + <cstring>layout5</cstring> + </property> + <hbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel1_2_3</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>120</width> + <height>0</height> + </size> + </property> + <property name="text"> + <string>Приложение</string> + </property> + </widget> + <widget class="wDBField"> + <property name="name"> + <cstring>wDBField_5</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>5</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="focusPolicy"> + <enum>StrongFocus</enum> + </property> + <property name="Id"> + <number>1231</number> + </property> + <property name="FieldType"> + <string>C 200 0 *</string> + </property> + <property name="EditorType"> + <enum>String</enum> + </property> + <property name="FieldName"> + <string>Приложение</string> + </property> + </widget> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel1_2_6</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>0</width> + <height>0</height> + </size> + </property> + <property name="text"> + <string>Сумма</string> + </property> + </widget> + <widget class="wDBField"> + <property name="name"> + <cstring>wDBField_6</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>120</width> + <height>0</height> + </size> + </property> + <property name="focusPolicy"> + <enum>StrongFocus</enum> + </property> + <property name="Id"> + <number>1229</number> + </property> + <property name="FieldType"> + <string>N 12 2 *</string> + </property> + <property name="EditorType"> + <enum>Numberic</enum> + </property> + <property name="FieldName"> + <string>Сумма</string> + </property> + </widget> + </hbox> + </widget> + <widget class="QLayoutWidget" row="0" column="1" rowspan="5" colspan="1"> + <property name="name"> + <cstring>layout15</cstring> + </property> + <vbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="wActionButton"> + <property name="name"> + <cstring>print_button</cstring> + </property> + <property name="text"> + <string>Печать</string> + </property> + <property name="accel"> + <string>Ctrl+P</string> + </property> + </widget> + <spacer> + <property name="name"> + <cstring>spacer1</cstring> + </property> + <property name="orientation"> + <enum>Vertical</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>20</width> + <height>90</height> + </size> + </property> + </spacer> + <widget class="wActionButton"> + <property name="name"> + <cstring>ok_button</cstring> + </property> + <property name="text"> + <string>Ок</string> + </property> + <property name="accel"> + <string>Ctrl+Return</string> + </property> + <property name="action"> + <bool>true</bool> + </property> + <property name="actionUpdate"> + <bool>true</bool> + </property> + <property name="actionTurnOn"> + <bool>true</bool> + </property> + <property name="actionClose"> + <bool>true</bool> + </property> + <property name="actionId"> + <number>390</number> + </property> + <property name="script"> + <bool>false</bool> + </property> + <property name="scriptCode"> + <string></string> + </property> + <property name="actionPrint" stdset="0"> + <bool>false</bool> + </property> + </widget> + </vbox> + </widget> + </grid> +</widget> +<tabstops> + <tabstop>wDBField1</tabstop> + <tabstop>wDBField_3</tabstop> + <tabstop>wDBField_2</tabstop> + <tabstop>wDBField_4</tabstop> + <tabstop>wDBField_5</tabstop> + <tabstop>wDBField_6</tabstop> + <tabstop>wDBField_7</tabstop> + <tabstop>print_button</tabstop> + <tabstop>ok_button</tabstop> +</tabstops> +<layoutdefaults spacing="5" margin="5"/> +<includehints> + <includehint>wdocument.h</includehint> + <includehint>wdbfield.h</includehint> + <includehint>wdbfield.h</includehint> + <includehint>wdbfield.h</includehint> + <includehint>wdbfield.h</includehint> + <includehint>wdbfield.h</includehint> + <includehint>wdbfield.h</includehint> + <includehint>wdbfield.h</includehint> + <includehint>wactionbutton.h</includehint> + <includehint>wactionbutton.h</includehint> +</includehints> +</UI> + + +
+ + + + + + 0 + +
+ +
+ + + + + + + + + + + + + + + +
+ + +
+ + /* + * Copyright (c) Grigory Panow <gr1313 at mail.ru>, Yoshkar-Ola, 2005 + * Ananas Project http://ananas.lrn.ru + */ +function on_conduct() // вызывается при проведении документа +{ + var docName="Выписка банка"; //имя документа в метаданных + var i; + var towar=0; + var contragent=0; + var sklad=0; + var kolvo=0; + var summa; + var doc1 = new Document(docName); // создаем экземпляр объекта приходной накладной + SetCurrent(doc1); // осуществляем привязку созданного нами документа + //к текущему объекту, который мы редактируем в данный момент + contragent = DBValue("Контрагент"); + summa = Value("Сумма"); + Conduct("Главная книга",doc1,"","51","90",towar,contragent, sklad, kolvo,summa); // поступления на расч. счет за реализ. товар + ClosePeriod("Главная книга"); +} + 14 + <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> +<class>Document</class> +<widget class="wDocument"> + <property name="name"> + <cstring>Document</cstring> + </property> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>590</width> + <height>176</height> + </rect> + </property> + <property name="caption"> + <string>Выписка банка</string> + </property> + <property name="Name"> + <string></string> + </property> + <property name="Id"> + <number>1051</number> + </property> + <grid> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLayoutWidget" row="0" column="0" rowspan="1" colspan="2"> + <property name="name"> + <cstring>layout6</cstring> + </property> + <hbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <spacer> + <property name="name"> + <cstring>spacer3</cstring> + </property> + <property name="orientation"> + <enum>Horizontal</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>111</width> + <height>20</height> + </size> + </property> + </spacer> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel10</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Поступление на расчетный счет</string> + </property> + <property name="alignment"> + <set>AlignCenter</set> + </property> + </widget> + <spacer> + <property name="name"> + <cstring>spacer2</cstring> + </property> + <property name="orientation"> + <enum>Horizontal</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>111</width> + <height>20</height> + </size> + </property> + </spacer> + </hbox> + </widget> + <widget class="QLayoutWidget" row="1" column="0"> + <property name="name"> + <cstring>layout1</cstring> + </property> + <property name="minimumSize"> + <size> + <width>120</width> + <height>0</height> + </size> + </property> + <hbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel1</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>120</width> + <height>0</height> + </size> + </property> + <property name="text"> + <string>Номер</string> + </property> + </widget> + <widget class="wDBField"> + <property name="name"> + <cstring>wDBField1</cstring> + </property> + <property name="Id"> + <number>1124</number> + </property> + <property name="FieldType"> + <string>N 10 0 *</string> + </property> + <property name="EditorType"> + <enum>Numberic</enum> + </property> + <property name="FieldName"> + <string>Номер</string> + </property> + </widget> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel2</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>0</width> + <height>0</height> + </size> + </property> + <property name="text"> + <string>Дата</string> + </property> + </widget> + <widget class="wDBField"> + <property name="name"> + <cstring>wDBField_2</cstring> + </property> + <property name="minimumSize"> + <size> + <width>120</width> + <height>0</height> + </size> + </property> + <property name="focusPolicy"> + <enum>WheelFocus</enum> + </property> + <property name="Id"> + <number>1126</number> + </property> + <property name="FieldType"> + <string>D 0 0 *</string> + </property> + <property name="EditorType"> + <enum>Date</enum> + </property> + <property name="FieldName"> + <string>Дата</string> + </property> + </widget> + </hbox> + </widget> + <widget class="QLayoutWidget" row="2" column="0"> + <property name="name"> + <cstring>layout6</cstring> + </property> + <hbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel1_2</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>120</width> + <height>0</height> + </size> + </property> + <property name="text"> + <string>Контрагент</string> + </property> + </widget> + <widget class="wDBField"> + <property name="name"> + <cstring>wDBField_3</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>5</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="Id"> + <number>1318</number> + </property> + <property name="FieldType"> + <string>O 310 0 *</string> + </property> + <property name="EditorType"> + <enum>Catalogue</enum> + </property> + <property name="FieldName"> + <string>Контрагент</string> + </property> + </widget> + </hbox> + </widget> + <widget class="QLayoutWidget" row="3" column="0"> + <property name="name"> + <cstring>layout4</cstring> + </property> + <hbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel2_2</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>120</width> + <height>0</height> + </size> + </property> + <property name="text"> + <string>Сумма</string> + </property> + </widget> + <widget class="wDBField"> + <property name="name"> + <cstring>wDBField_4</cstring> + </property> + <property name="focusPolicy"> + <enum>StrongFocus</enum> + </property> + <property name="Id"> + <number>1320</number> + </property> + <property name="FieldType"> + <string>N 10 2 *</string> + </property> + <property name="EditorType"> + <enum>Numberic</enum> + </property> + <property name="FieldName"> + <string>Сумма</string> + </property> + </widget> + </hbox> + </widget> + <widget class="QLayoutWidget" row="4" column="0"> + <property name="name"> + <cstring>layout3</cstring> + </property> + <hbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel3</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>120</width> + <height>0</height> + </size> + </property> + <property name="text"> + <string>Основание</string> + </property> + </widget> + <widget class="wDBField"> + <property name="name"> + <cstring>wDBField_5</cstring> + </property> + <property name="focusPolicy"> + <enum>StrongFocus</enum> + </property> + <property name="Id"> + <number>1322</number> + </property> + <property name="FieldType"> + <string>C 254 0 *</string> + </property> + <property name="EditorType"> + <enum>String</enum> + </property> + <property name="FieldName"> + <string>Основание</string> + </property> + </widget> + </hbox> + </widget> + <widget class="QLayoutWidget" row="1" column="1" rowspan="4" colspan="1"> + <property name="name"> + <cstring>layout7</cstring> + </property> + <vbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="wActionButton"> + <property name="name"> + <cstring>ok_button</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>1</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>100</width> + <height>0</height> + </size> + </property> + <property name="text"> + <string>Ok</string> + </property> + <property name="accel"> + <string>Ctrl+Return</string> + </property> + <property name="actionUpdate"> + <bool>true</bool> + </property> + <property name="actionTurnOn"> + <bool>true</bool> + </property> + <property name="actionClose"> + <bool>true</bool> + </property> + </widget> + <spacer> + <property name="name"> + <cstring>spacer1</cstring> + </property> + <property name="orientation"> + <enum>Vertical</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>20</width> + <height>90</height> + </size> + </property> + </spacer> + </vbox> + </widget> + </grid> +</widget> +<tabstops> + <tabstop>wDBField1</tabstop> + <tabstop>wDBField_2</tabstop> + <tabstop>wDBField_3</tabstop> + <tabstop>wDBField_4</tabstop> + <tabstop>wDBField_5</tabstop> + <tabstop>ok_button</tabstop> +</tabstops> +<layoutdefaults spacing="5" margin="5"/> +<includehints> + <includehint>wdocument.h</includehint> + <includehint>wdbfield.h</includehint> + <includehint>wdbfield.h</includehint> + <includehint>wdbfield.h</includehint> + <includehint>wdbfield.h</includehint> + <includehint>wdbfield.h</includehint> + <includehint>wactionbutton.h</includehint> +</includehints> +</UI> + + +
+ + + + + + 0 + +
+ +
+ + + + + + + + + + + + + + + +
+ + +
+ + /* + * Copyright (c) Grigory Panow <gr1313 at mail.ru>, Yoshkar-Ola, 2005 + * Ananas Project http://ananas.lrn.ru + */ +function on_button(button_name) // обработчик нажатия кнопки +{ + if(button_name!="print_button") return; // обрабатываем только нажатие кнопки Печать + var serv = new Service(); + var defOffice = serv.GetOffice(); + var templateType = 1; + var templateFile = "templ_pl_por.odt"; + if (defOffice == "MSO") { + templateType = 4; + templateFile = "templ_pl_por.xml"; + } + var p = new Report("Report1",templateType); // создаем новый экземпляр объекта aReport + p.setTable(templateFile); // связываем созданный экземпляр отчета с шаблоном + // каталог, где находятся шаблоны, задается в диалоге конфигурирования файла ресурса + // в поле `Рабочий каталог' + p.setValue("param",Value("Номер") ); // устанавливает значение для простого тега + p.exec("Номер"); // применяет установленнок значение для тега с именем <:Документ.Номер:> + p.setValue("param",ConvertDateFromIso(Value("Дата")) ); + p.exec("Дата"); + p.setValue("param",ConvertNumber2MoneyFormat(Value("Сумма")) ); + p.exec("Сумма"); + p.setValue("param",Propis(Value("Сумма")) ); + p.exec("Сумма прописью"); + p.setValue("param",Value("Получатель")); + p.exec("Получатель.Наименование"); + p.setValue("param",Value("Назначение платежа")); + p.exec("Назначение платежа"); + + var poluchatelId = DBValue("Получатель"); + var cat_name = "Справочник Контрагентов"; + + p.setValue("param",getCatalogueValue(cat_name, poluchatelId, "ИНН")); + p.exec("Получатель.ИНН"); + p.setValue("param",getCatalogueValue(cat_name, poluchatelId, "КПП")); + p.exec("Получатель.КПП"); + p.setValue("param",getCatalogueValue(cat_name, poluchatelId, "БИК")); + p.exec("Получатель.БИК"); + p.setValue("param",getCatalogueValue(cat_name, poluchatelId, "Расч. счет")); + p.exec("Получатель.Расч. счет"); + p.setValue("param",getCatalogueValue(cat_name, poluchatelId, "Банк")); + p.exec("Получатель.Банк"); + cat_name = "Константы"; + p.setValue("param", getConstant(cat_name,"Название")); + p.exec("Организация.Название"); + p.setValue("param", getConstant(cat_name,"ИНН")); + p.exec("Организация.ИНН"); + p.setValue("param",getConstant(cat_name,"КПП")); + p.exec("Организация.КПП"); + p.setValue("param",getConstant(cat_name,"Банк")); + p.exec("Организация.Банк"); + p.setValue("param",getConstant(cat_name,"Расч. счет")); + p.exec("Организация.Расч. счет"); + p.setValue("param",getConstant(cat_name,"БИК")); + p.exec("Организация.БИК"); + p.show(); // запускаем OpenOffice + p.close(); // удаляем все временные файлы +} +function on_conduct() // вызывается при проведении документа +{ + var docName="Платежное поручение"; //имя документа в метаданных + //var i; + var towar=0; + var contragent=0; + var sklad=0; + var kolvo=0; + var summa; + var doc1 = new Document(docName); // создаем экземпляр объекта приходной накладной + SetCurrent(doc1); // осуществляем привязку созданного нами документа + //к текущему объекту, который мы редактируем в данный момент + contragent = DBValue("Получатель"); + summa = Value("Сумма"); + Conduct("Главная книга",doc1,"","60","51",towar,contragent, sklad, kolvo,summa); //оплата приобр. товаров с расч счета + ClosePeriod("Главная книга"); +} + 14 + <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> +<class>Document</class> +<widget class="wDocument"> + <property name="name"> + <cstring>Document</cstring> + </property> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>509</width> + <height>168</height> + </rect> + </property> + <property name="caption"> + <string>Платежное поручение</string> + </property> + <property name="Name"> + <string></string> + </property> + <property name="Id"> + <number>1061</number> + </property> + <grid> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLayoutWidget" row="0" column="0"> + <property name="name"> + <cstring>layout3</cstring> + </property> + <hbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel4</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>100</width> + <height>0</height> + </size> + </property> + <property name="text"> + <string>Номер</string> + </property> + </widget> + <widget class="wDBField"> + <property name="name"> + <cstring>wDBField</cstring> + </property> + <property name="Id"> + <number>1129</number> + </property> + <property name="FieldType"> + <string>C 100 0 *</string> + </property> + <property name="EditorType"> + <enum>String</enum> + </property> + <property name="FieldName"> + <string>Номер</string> + </property> + </widget> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel5</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Дата</string> + </property> + </widget> + <widget class="wDBField"> + <property name="name"> + <cstring>wDBField_2</cstring> + </property> + <property name="minimumSize"> + <size> + <width>120</width> + <height>0</height> + </size> + </property> + <property name="Id"> + <number>1131</number> + </property> + <property name="FieldType"> + <string>D 0 0 *</string> + </property> + <property name="EditorType"> + <enum>Date</enum> + </property> + <property name="FieldName"> + <string>Дата</string> + </property> + </widget> + </hbox> + </widget> + <widget class="QLayoutWidget" row="1" column="0"> + <property name="name"> + <cstring>layout5</cstring> + </property> + <hbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel1</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>100</width> + <height>0</height> + </size> + </property> + <property name="text"> + <string>Получатель</string> + </property> + </widget> + <widget class="wDBField"> + <property name="name"> + <cstring>wDBField_3</cstring> + </property> + <property name="focusPolicy"> + <enum>StrongFocus</enum> + </property> + <property name="Id"> + <number>1148</number> + </property> + <property name="FieldType"> + <string>O 310 0 *</string> + </property> + <property name="EditorType"> + <enum>Catalogue</enum> + </property> + <property name="FieldName"> + <string>Получатель</string> + </property> + </widget> + </hbox> + </widget> + <widget class="QLayoutWidget" row="2" column="0"> + <property name="name"> + <cstring>layout3</cstring> + </property> + <hbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel2</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>100</width> + <height>0</height> + </size> + </property> + <property name="text"> + <string>Сумма</string> + </property> + </widget> + <widget class="wDBField"> + <property name="name"> + <cstring>wDBField_4</cstring> + </property> + <property name="focusPolicy"> + <enum>StrongFocus</enum> + </property> + <property name="Id"> + <number>1150</number> + </property> + <property name="FieldType"> + <string>N 12 2 *</string> + </property> + <property name="EditorType"> + <enum>Numberic</enum> + </property> + <property name="FieldName"> + <string>Сумма</string> + </property> + </widget> + </hbox> + </widget> + <widget class="QLayoutWidget" row="3" column="0"> + <property name="name"> + <cstring>layout4</cstring> + </property> + <hbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel3</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>100</width> + <height>0</height> + </size> + </property> + <property name="text"> + <string>Назначение</string> + </property> + </widget> + <widget class="wDBField"> + <property name="name"> + <cstring>wDBField_5</cstring> + </property> + <property name="focusPolicy"> + <enum>StrongFocus</enum> + </property> + <property name="Id"> + <number>1152</number> + </property> + <property name="FieldType"> + <string>C 254 0 *</string> + </property> + <property name="EditorType"> + <enum>String</enum> + </property> + <property name="FieldName"> + <string>Назначение платежа</string> + </property> + </widget> + </hbox> + </widget> + <spacer row="1" column="1" rowspan="2" colspan="1"> + <property name="name"> + <cstring>spacer3</cstring> + </property> + <property name="orientation"> + <enum>Vertical</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>31</width> + <height>50</height> + </size> + </property> + </spacer> + <widget class="wActionButton" row="3" column="1"> + <property name="name"> + <cstring>ok_button</cstring> + </property> + <property name="text"> + <string>Ok</string> + </property> + <property name="accel"> + <string>Ctrl+Return</string> + </property> + <property name="action"> + <bool>true</bool> + </property> + <property name="actionUpdate"> + <bool>true</bool> + </property> + <property name="actionTurnOn"> + <bool>true</bool> + </property> + <property name="actionClose"> + <bool>true</bool> + </property> + <property name="actionId"> + <number>390</number> + </property> + <property name="script"> + <bool>false</bool> + </property> + </widget> + <widget class="wActionButton" row="0" column="1"> + <property name="name"> + <cstring>print_button</cstring> + </property> + <property name="text"> + <string>Печать</string> + </property> + <property name="accel"> + <string>Ctrl+P</string> + </property> + </widget> + </grid> +</widget> +<tabstops> + <tabstop>wDBField</tabstop> + <tabstop>wDBField_2</tabstop> + <tabstop>wDBField_3</tabstop> + <tabstop>wDBField_4</tabstop> + <tabstop>wDBField_5</tabstop> + <tabstop>print_button</tabstop> + <tabstop>ok_button</tabstop> +</tabstops> +<layoutdefaults spacing="5" margin="5"/> +<includehints> + <includehint>wdocument.h</includehint> + <includehint>wdbfield.h</includehint> + <includehint>wdbfield.h</includehint> + <includehint>wdbfield.h</includehint> + <includehint>wdbfield.h</includehint> + <includehint>wdbfield.h</includehint> + <includehint>wactionbutton.h</includehint> + <includehint>wactionbutton.h</includehint> +</includehints> +</UI> + + +
+ + + + + + 0 + +
+
+ + + + + 121 + + + 123 + + + 354 + + + 629 + + + 586 + + + +
+ + + 0 + <?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>Journal</class> + <widget class="wJournal" name="Journal"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>554</width> + <height>429</height> + </rect> + </property> + <property name="Id"> + <number>380</number> + </property> + <property name="caption" stdset="0"> + <string>Общий журнал</string> + </property> + <property name="Name" stdset="0"> + <string/> + </property> + <layout class="QGridLayout"> + <item row="0" column="1"> + <widget class="wActionButton" name="unnamed"> + <property name="text"> + <string>Закрыть</string> + </property> + <property name="shortcut"> + <string>Esc</string> + </property> + <property name="action"> + <bool>true</bool> + </property> + <property name="actionUpdate"> + <bool>false</bool> + </property> + <property name="actionTurnOn"> + <bool>false</bool> + </property> + <property name="actionClose"> + <bool>true</bool> + </property> + <property name="script"> + <bool>false</bool> + </property> + <property name="scriptCode" stdset="0"> + <string/> + </property> + </widget> + </item> + <item row="0" column="0" rowspan="2"> + <widget class="wDBTable" name="wDBTable1"> + <property name="TableInd" stdset="0"> + <number>0</number> + </property> + <property name="DefFields"> + <stringlist/> + </property> + <property name="DefHeaders"> + <stringlist/> + </property> + <property name="ColWidth"> + <stringlist/> + </property> + <property name="DefIdList"> + <stringlist/> + </property> + <property name="openEditor" stdset="0"> + <bool>false</bool> + </property> + </widget> + </item> + <item row="1" column="1"> + <spacer name="spacer2"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Expanding</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>421</height> + </size> + </property> + </spacer> + </item> + </layout> + </widget> + <layoutdefault spacing="5" margin="5"/> + <pixmapfunction>qPixmapFromMimeSource</pixmapfunction> + <customwidgets> + <customwidget> + <class>wActionButton</class> + <extends>QPushButton</extends> + <header>wactionbutton.h</header> + </customwidget> + <customwidget> + <class>wDBTable</class> + <extends>Q3Table</extends> + <header>wdbtable.h</header> + </customwidget> + <customwidget> + <class>wJournal</class> + <extends>QWidget</extends> + <header>wjournal.h</header> + <container>1</container> + </customwidget> + <customwidget> + <class>Q3Frame</class> + <extends>QFrame</extends> + <header>Qt3Support/Q3Frame</header> + <container>1</container> + </customwidget> + <customwidget> + <class>Q3Table</class> + <extends>Q3Frame</extends> + <header>q3table.h</header> + </customwidget> + </customwidgets> + <includes> + <include location="local">wjournal.h</include> + <include location="local">wactionbutton.h</include> + <include location="local">wdbtable.h</include> + </includes> + <resources/> + <connections/> +</ui> + +
+ + +
+ + + + 629 + + + 121 + + + 123 + + + 354 + + 101 + + +
+ + function on_formstart(){ + print("Вызвана функция on_formstart() модуля формы Список накладных"); +} + 0 + <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> +<class>Journal</class> +<widget class="wJournal"> + <property name="name"> + <cstring>Journal</cstring> + </property> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>596</width> + <height>358</height> + </rect> + </property> + <property name="caption"> + <string>Журнал прихода</string> + </property> + <property name="Name"> + <string></string> + </property> + <property name="Id"> + <number>416</number> + </property> + <grid> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="wDBTable" row="1" column="0"> + <column> + <property name="text"> + <string>Продавец</string> + </property> + </column> + <column> + <property name="text"> + <string>Номер</string> + </property> + </column> + <column> + <property name="text"> + <string>Дата</string> + </property> + </column> + <column> + <property name="text"> + <string>Основание</string> + </property> + </column> + <property name="name"> + <cstring>wDBTable2</cstring> + </property> + <property name="TableInd" stdset="0"> + <number>0</number> + </property> + <property name="DefFields"> + <stringlist> + <string>Продавец</string> + <string>Номер</string> + <string>Дата</string> + <string>Основание</string> + </stringlist> + </property> + <property name="DefHeaders"> + <stringlist> + <string>Продавец</string> + <string>Номер</string> + <string>Дата</string> + <string>Основание</string> + </stringlist> + </property> + <property name="ColWidth"> + <stringlist> + <string>100</string> + <string>100</string> + <string>100</string> + <string>100</string> + </stringlist> + </property> + <property name="DefIdList"> + <stringlist> + <string>631</string> + <string>424</string> + <string>425</string> + <string>426</string> + </stringlist> + </property> + </widget> + <widget class="QLayoutWidget" row="0" column="1" rowspan="3" colspan="1"> + <property name="name"> + <cstring>layout1</cstring> + </property> + <vbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="wActionButton"> + <property name="name"> + <cstring>cancel_button</cstring> + </property> + <property name="text"> + <string>Закрыть</string> + </property> + <property name="accel"> + <string>Esc</string> + </property> + <property name="action"> + <bool>true</bool> + </property> + <property name="actionUpdate"> + <bool>false</bool> + </property> + <property name="actionTurnOn"> + <bool>false</bool> + </property> + <property name="actionClose"> + <bool>true</bool> + </property> + <property name="script"> + <bool>false</bool> + </property> + <property name="scriptCode"> + <string></string> + </property> + </widget> + <spacer> + <property name="name"> + <cstring>spacer3_2</cstring> + </property> + <property name="orientation"> + <enum>Vertical</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>20</width> + <height>281</height> + </size> + </property> + </spacer> + </vbox> + </widget> + </grid> +</widget> +<layoutdefaults spacing="5" margin="5"/> +<includehints> + <includehint>wjournal.h</includehint> + <includehint>wdbtable.h</includehint> + <includehint>wactionbutton.h</includehint> +</includehints> +</UI> + + +
+ + +
+ + + + 582 + + + 584 + + + 586 + + + 766 + + 576 + + +
+ + + 0 + <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> +<class>Journal</class> +<widget class="wJournal"> + <property name="name"> + <cstring>Journal</cstring> + </property> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>617</width> + <height>393</height> + </rect> + </property> + <property name="caption"> + <string>Журнал расхода</string> + </property> + <property name="Name"> + <string></string> + </property> + <property name="Id"> + <number>603</number> + </property> + <grid> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="wDBTable" row="1" column="0"> + <column> + <property name="text"> + <string>Номер</string> + </property> + </column> + <column> + <property name="text"> + <string>Дата</string> + </property> + </column> + <column> + <property name="text"> + <string>Покупатель</string> + </property> + </column> + <column> + <property name="text"> + <string>Основание</string> + </property> + </column> + <property name="name"> + <cstring>wDBTable1</cstring> + </property> + <property name="TableInd" stdset="0"> + <number>0</number> + </property> + <property name="DefFields"> + <stringlist> + <string>Номер</string> + <string>Дата</string> + <string>Покупатель</string> + <string>Основание</string> + </stringlist> + </property> + <property name="DefHeaders"> + <stringlist> + <string>Номер</string> + <string>Дата</string> + <string>Покупатель</string> + <string>Основание</string> + </stringlist> + </property> + <property name="ColWidth"> + <stringlist> + <string>100</string> + <string>100</string> + <string>100</string> + <string>100</string> + </stringlist> + </property> + <property name="DefIdList"> + <stringlist> + <string>807</string> + <string>808</string> + <string>809</string> + <string>810</string> + </stringlist> + </property> + </widget> + <widget class="QLayoutWidget" row="1" column="1"> + <property name="name"> + <cstring>layout1</cstring> + </property> + <vbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="wActionButton"> + <property name="name"> + <cstring>cancel_button</cstring> + </property> + <property name="text"> + <string>Закрыть</string> + </property> + <property name="accel"> + <string>Esc</string> + </property> + <property name="action"> + <bool>true</bool> + </property> + <property name="actionUpdate"> + <bool>false</bool> + </property> + <property name="actionTurnOn"> + <bool>false</bool> + </property> + <property name="actionClose"> + <bool>true</bool> + </property> + <property name="script"> + <bool>false</bool> + </property> + <property name="scriptCode"> + <string></string> + </property> + </widget> + <spacer> + <property name="name"> + <cstring>spacer3</cstring> + </property> + <property name="orientation"> + <enum>Vertical</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>20</width> + <height>221</height> + </size> + </property> + </spacer> + </vbox> + </widget> + </grid> +</widget> +<layoutdefaults spacing="5" margin="5"/> +<includehints> + <includehint>wjournal.h</includehint> + <includehint>wdbtable.h</includehint> + <includehint>wactionbutton.h</includehint> +</includehints> +</UI> + + +
+ + +
+ + + 874 + + 880 + + + 882 + + + 884 + + + +
+ + + 14 + <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> +<class>Journal</class> +<widget class="wJournal"> + <property name="name"> + <cstring>Journal</cstring> + </property> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>482</width> + <height>378</height> + </rect> + </property> + <property name="caption"> + <string>Журнал счетов</string> + </property> + <property name="Name"> + <string></string> + </property> + <property name="Id"> + <number>1337</number> + </property> + <grid> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="wActionButton" row="0" column="1"> + <property name="name"> + <cstring>close_button</cstring> + </property> + <property name="text"> + <string>Закрыть</string> + </property> + <property name="accel"> + <string>Esc</string> + </property> + <property name="action"> + <bool>true</bool> + </property> + <property name="actionUpdate"> + <bool>false</bool> + </property> + <property name="actionTurnOn"> + <bool>false</bool> + </property> + <property name="actionClose"> + <bool>true</bool> + </property> + <property name="actionId"> + <number>572</number> + </property> + <property name="script"> + <bool>false</bool> + </property> + </widget> + <spacer row="1" column="1"> + <property name="name"> + <cstring>spacer1</cstring> + </property> + <property name="orientation"> + <enum>Vertical</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>21</width> + <height>310</height> + </size> + </property> + </spacer> + <widget class="wDBTable" row="0" column="0" rowspan="2" colspan="1"> + <column> + <property name="text"> + <string>Номер</string> + </property> + </column> + <column> + <property name="text"> + <string>Дата</string> + </property> + </column> + <column> + <property name="text"> + <string>Контрагент</string> + </property> + </column> + <property name="name"> + <cstring>wDBTable1</cstring> + </property> + <property name="TableInd" stdset="0"> + <number>0</number> + </property> + <property name="DefFields"> + <stringlist> + <string>Номер</string> + <string>Дата</string> + <string>Контрагент</string> + </stringlist> + </property> + <property name="DefHeaders"> + <stringlist> + <string>Номер</string> + <string>Дата</string> + <string>Контрагент</string> + </stringlist> + </property> + <property name="ColWidth"> + <stringlist> + <string>100</string> + <string>100</string> + <string>160</string> + </stringlist> + </property> + <property name="DefIdList"> + <stringlist> + <string>1346</string> + <string>1347</string> + <string>1348</string> + </stringlist> + </property> + <property name="openEditor"> + <bool>false</bool> + </property> + </widget> + </grid> +</widget> +<tabstops> + <tabstop>wDBTable1</tabstop> + <tabstop>close_button</tabstop> +</tabstops> +<layoutdefaults spacing="5" margin="5"/> +<includehints> + <includehint>wjournal.h</includehint> + <includehint>wactionbutton.h</includehint> + <includehint>wdbtable.h</includehint> +</includehints> +</UI> + + +
+ + +
+ + + 1061 + + 1129 + + + 1131 + + + 1148 + + + 1150 + + + +
+ + + 14 + <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> +<class>Journal</class> +<widget class="wJournal"> + <property name="name"> + <cstring>Journal</cstring> + </property> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>549</width> + <height>360</height> + </rect> + </property> + <property name="caption"> + <string>Журнал платежных поручений</string> + </property> + <property name="Name"> + <string></string> + </property> + <property name="Id"> + <number>1344</number> + </property> + <grid> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="wActionButton" row="0" column="1"> + <property name="name"> + <cstring>close_button</cstring> + </property> + <property name="text"> + <string>Закрыть</string> + </property> + <property name="accel"> + <string>Esc</string> + </property> + <property name="action"> + <bool>true</bool> + </property> + <property name="actionUpdate"> + <bool>false</bool> + </property> + <property name="actionTurnOn"> + <bool>false</bool> + </property> + <property name="actionClose"> + <bool>true</bool> + </property> + <property name="actionId"> + <number>572</number> + </property> + <property name="script"> + <bool>false</bool> + </property> + </widget> + <spacer row="1" column="1"> + <property name="name"> + <cstring>spacer2</cstring> + </property> + <property name="orientation"> + <enum>Vertical</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>21</width> + <height>310</height> + </size> + </property> + </spacer> + <widget class="wDBTable" row="0" column="0" rowspan="2" colspan="1"> + <column> + <property name="text"> + <string>Номер</string> + </property> + </column> + <column> + <property name="text"> + <string>Дата</string> + </property> + </column> + <column> + <property name="text"> + <string>Получатель</string> + </property> + </column> + <column> + <property name="text"> + <string>Сумма</string> + </property> + </column> + <property name="name"> + <cstring>wDBTable2</cstring> + </property> + <property name="TableInd" stdset="0"> + <number>0</number> + </property> + <property name="DefFields"> + <stringlist> + <string>Номер</string> + <string>Дата</string> + <string>Получатель</string> + <string>Сумма</string> + </stringlist> + </property> + <property name="DefHeaders"> + <stringlist> + <string>Номер</string> + <string>Дата</string> + <string>Получатель</string> + <string>Сумма</string> + </stringlist> + </property> + <property name="ColWidth"> + <stringlist> + <string>100</string> + <string>100</string> + <string>130</string> + <string>100</string> + </stringlist> + </property> + <property name="DefIdList"> + <stringlist> + <string>1354</string> + <string>1355</string> + <string>1356</string> + <string>1357</string> + </stringlist> + </property> + <property name="openEditor"> + <bool>false</bool> + </property> + </widget> + </grid> +</widget> +<layoutdefaults spacing="5" margin="5"/> +<includehints> + <includehint>wjournal.h</includehint> + <includehint>wactionbutton.h</includehint> + <includehint>wdbtable.h</includehint> +</includehints> +</UI> + + +
+ + +
+ + + 1051 + + 1124 + + + 1126 + + + 1318 + + + 1320 + + + +
+ + + 14 + <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> +<class>Journal</class> +<widget class="wJournal"> + <property name="name"> + <cstring>Journal</cstring> + </property> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>570</width> + <height>355</height> + </rect> + </property> + <property name="caption"> + <string>Журнал банковских выписок</string> + </property> + <property name="Name"> + <string></string> + </property> + <property name="Id"> + <number>1363</number> + </property> + <grid> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="wDBTable" row="0" column="0" rowspan="2" colspan="1"> + <column> + <property name="text"> + <string>Номер</string> + </property> + </column> + <column> + <property name="text"> + <string>Дата</string> + </property> + </column> + <column> + <property name="text"> + <string>Контрагент</string> + </property> + </column> + <column> + <property name="text"> + <string>Сумма</string> + </property> + </column> + <property name="name"> + <cstring>wDBTable1</cstring> + </property> + <property name="TableInd" stdset="0"> + <number>0</number> + </property> + <property name="DefFields"> + <stringlist> + <string>Номер</string> + <string>Дата</string> + <string>Контрагент</string> + <string>Сумма</string> + </stringlist> + </property> + <property name="DefHeaders"> + <stringlist> + <string>Номер</string> + <string>Дата</string> + <string>Контрагент</string> + <string>Сумма</string> + </stringlist> + </property> + <property name="ColWidth"> + <stringlist> + <string>100</string> + <string>100</string> + <string>130</string> + <string>100</string> + </stringlist> + </property> + <property name="DefIdList"> + <stringlist> + <string>1365</string> + <string>1366</string> + <string>1367</string> + <string>1368</string> + </stringlist> + </property> + <property name="openEditor"> + <bool>false</bool> + </property> + </widget> + <spacer row="1" column="1"> + <property name="name"> + <cstring>spacer1</cstring> + </property> + <property name="orientation"> + <enum>Vertical</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>20</width> + <height>321</height> + </size> + </property> + </spacer> + <widget class="wActionButton" row="0" column="1"> + <property name="name"> + <cstring>close_button</cstring> + </property> + <property name="text"> + <string>Закрыть</string> + </property> + <property name="accel"> + <string>Esc</string> + </property> + <property name="action"> + <bool>true</bool> + </property> + <property name="actionUpdate"> + <bool>false</bool> + </property> + <property name="actionTurnOn"> + <bool>false</bool> + </property> + <property name="actionClose"> + <bool>true</bool> + </property> + <property name="actionId"> + <number>572</number> + </property> + <property name="script"> + <bool>false</bool> + </property> + </widget> + </grid> +</widget> +<layoutdefaults spacing="5" margin="5"/> +<includehints> + <includehint>wjournal.h</includehint> + <includehint>wdbtable.h</includehint> + <includehint>wactionbutton.h</includehint> +</includehints> +</UI> + + +
+ + +
+ + + 988 + + 994 + + + 996 + + + 998 + + + 1219 + + + +
+ + + 14 + <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> +<class>Journal</class> +<widget class="wJournal"> + <property name="name"> + <cstring>Journal</cstring> + </property> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>565</width> + <height>372</height> + </rect> + </property> + <property name="caption"> + <string>Журнал ПКО</string> + </property> + <property name="Name"> + <string></string> + </property> + <property name="Id"> + <number>1400</number> + </property> + <grid> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="wDBTable" row="0" column="0" rowspan="2" colspan="1"> + <column> + <property name="text"> + <string>Номер</string> + </property> + </column> + <column> + <property name="text"> + <string>Дата</string> + </property> + </column> + <column> + <property name="text"> + <string>Покупатель</string> + </property> + </column> + <column> + <property name="text"> + <string>Сумма</string> + </property> + </column> + <property name="name"> + <cstring>wDBTable1</cstring> + </property> + <property name="TableInd" stdset="0"> + <number>0</number> + </property> + <property name="DefFields"> + <stringlist> + <string>Номер</string> + <string>Дата</string> + <string>Покупатель</string> + <string>Сумма</string> + </stringlist> + </property> + <property name="DefHeaders"> + <stringlist> + <string>Номер</string> + <string>Дата</string> + <string>Покупатель</string> + <string>Сумма</string> + </stringlist> + </property> + <property name="ColWidth"> + <stringlist> + <string>100</string> + <string>100</string> + <string>130</string> + <string>100</string> + </stringlist> + </property> + <property name="DefIdList"> + <stringlist> + <string>1402</string> + <string>1403</string> + <string>1404</string> + <string>1405</string> + </stringlist> + </property> + <property name="openEditor"> + <bool>false</bool> + </property> + </widget> + <widget class="wActionButton" row="0" column="1"> + <property name="name"> + <cstring>close_button</cstring> + </property> + <property name="text"> + <string>Закрыть</string> + </property> + <property name="accel"> + <string>Esc</string> + </property> + <property name="action"> + <bool>true</bool> + </property> + <property name="actionUpdate"> + <bool>false</bool> + </property> + <property name="actionTurnOn"> + <bool>false</bool> + </property> + <property name="actionClose"> + <bool>true</bool> + </property> + <property name="actionId"> + <number>572</number> + </property> + <property name="script"> + <bool>false</bool> + </property> + </widget> + <spacer row="1" column="1"> + <property name="name"> + <cstring>spacer1</cstring> + </property> + <property name="orientation"> + <enum>Vertical</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>21</width> + <height>321</height> + </size> + </property> + </spacer> + </grid> +</widget> +<layoutdefaults spacing="5" margin="5"/> +<includehints> + <includehint>wjournal.h</includehint> + <includehint>wdbtable.h</includehint> + <includehint>wactionbutton.h</includehint> +</includehints> +</UI> + + +
+ + +
+ + + 1002 + + 1221 + + + 1223 + + + 1225 + + + 1229 + + + +
+ + + 14 + <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> +<class>Journal</class> +<widget class="wJournal"> + <property name="name"> + <cstring>Journal</cstring> + </property> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>570</width> + <height>378</height> + </rect> + </property> + <property name="caption"> + <string>Журнал РКО</string> + </property> + <property name="Name"> + <string></string> + </property> + <property name="Id"> + <number>1410</number> + </property> + <grid> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <spacer row="1" column="1"> + <property name="name"> + <cstring>spacer1</cstring> + </property> + <property name="orientation"> + <enum>Vertical</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>20</width> + <height>321</height> + </size> + </property> + </spacer> + <widget class="wActionButton" row="0" column="1"> + <property name="name"> + <cstring>close_button</cstring> + </property> + <property name="text"> + <string>Закрыть</string> + </property> + <property name="accel"> + <string>Esc</string> + </property> + <property name="action"> + <bool>true</bool> + </property> + <property name="actionUpdate"> + <bool>false</bool> + </property> + <property name="actionTurnOn"> + <bool>false</bool> + </property> + <property name="actionClose"> + <bool>true</bool> + </property> + <property name="actionId"> + <number>572</number> + </property> + <property name="script"> + <bool>false</bool> + </property> + </widget> + <widget class="wDBTable" row="0" column="0" rowspan="2" colspan="1"> + <column> + <property name="text"> + <string>Номер</string> + </property> + </column> + <column> + <property name="text"> + <string>Дата</string> + </property> + </column> + <column> + <property name="text"> + <string>Выдать</string> + </property> + </column> + <column> + <property name="text"> + <string>Сумма</string> + </property> + </column> + <property name="name"> + <cstring>wDBTable1</cstring> + </property> + <property name="TableInd" stdset="0"> + <number>0</number> + </property> + <property name="DefFields"> + <stringlist> + <string>Номер</string> + <string>Дата</string> + <string>Выдать</string> + <string>Сумма</string> + </stringlist> + </property> + <property name="DefHeaders"> + <stringlist> + <string>Номер</string> + <string>Дата</string> + <string>Выдать</string> + <string>Сумма</string> + </stringlist> + </property> + <property name="ColWidth"> + <stringlist> + <string>100</string> + <string>100</string> + <string>130</string> + <string>100</string> + </stringlist> + </property> + <property name="DefIdList"> + <stringlist> + <string>1412</string> + <string>1413</string> + <string>1414</string> + <string>1415</string> + </stringlist> + </property> + <property name="openEditor"> + <bool>false</bool> + </property> + </widget> + </grid> +</widget> +<layoutdefaults spacing="5" margin="5"/> +<includehints> + <includehint>wjournal.h</includehint> + <includehint>wactionbutton.h</includehint> + <includehint>wdbtable.h</includehint> +</includehints> +</UI> + + +
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + function on_button(button_name) +{ + if(button_name=="print_button") + { + var ar = new ARegister("Главная книга"); // создаем экземпляр объекта накопительного регистра + // if(!ar) return; + var tovarName = Value("wField1"); + var tovarId = DBValue("wField1"); + var count = 0; + var sum_kol_vo=0; + var sum_prixod=0; + var sum_rasxod=0; + //if(!tovarId) return; + var serv = new Service(); + var defOffice = serv.GetOffice(); + var templateType = 1; + var templateFile = "templ_moving.odt"; + if (defOffice == "MSO") { + templateType = 4; + templateFile = "templ_moving.xml"; + } + var p = new Report("Towar_moving",templateType); // создаем новый экземпляр объекта aReport + p.setTable(templateFile); // связываем созданный экземпляр отчета с шаблоном + // каталог, где находятся шаблоны, задается в диалоге конфигурирования файла ресурса + // в поле `Рабочий каталог' + p.setValue("param",ConvertDateFromIso(Value("dateEditFrom")) ); + p.exec("Период.Начало"); + p.setValue("param",ConvertDateFromIso(Value("dateEditTo")) ); + p.exec("Период.Конец"); + p.setValue("param",tovarName); + p.exec("Товар"); + var grBox = Widget("groupBox3"); + if(grBox && grBox.checked) + ar.SetFilter("Склад", DBValue("wField2")); + grBox = 0; + ar.Select(Value("dateEditFrom"),Value("dateEditTo")); + if(ar.First()) + { + do + { + if(ar.Value("Товар") == tovarId) + { + p.setValue("f0",++count); + p.setValue("f1",ConvertDateFromIso(ar.Value("RecordDate"))); + var cat = new Catalogue("Справочник Контрагентов"); + p.setValue("f2", cat.GetElementValue(ar.Value("Контрагент"),"Наименование")); + cat = 0; + sum_kol_vo+=parseFloat(ar.Value("Количество")); + if(ar.Value("Дебет")=="90" && ar.Value("Кредит")=="41.2") + { + p.setValue("f4",""); + p.setValue("f5",""); + var kol_vo = -parseFloat(ar.Value("Количество")); + var summa = -parseFloat(ar.Value("Сумма")); + if(kol_vo) + { + p.setValue("f6",ConvertNumber2MoneyFormat(summa/kol_vo)); + p.setValue("f7",ConvertNumber2MoneyFormat(summa)); + sum_rasxod+= summa; + p.setValue("f3",kol_vo); + } + else + { + p.setValue("f6",0); + p.setValue("f7",0); + p.setValue("f3",0); + } + } + if(ar.Value("Дебет")=="41.2" && ar.Value("Кредит")=="60") + { + // p.setValue("f2",journ.CurrentDocument().Value("Продавец")); + p.setValue("f6",""); + p.setValue("f7",""); + var kol_vo = parseFloat(ar.Value("Количество")); + var summa = parseFloat(ar.Value("Сумма")); + if(kol_vo) + { + p.setValue("f5",ConvertNumber2MoneyFormat(summa)); + sum_prixod += summa; + p.setValue("f3",ar.Value("Количество")); + p.setValue("f4",ConvertNumber2MoneyFormat(summa/kol_vo)); + } + else + { + p.setValue("f3",0); + p.setValue("f4",0); + p.setValue("f5",0); + } + + } + // journ = 0; + p.exec("строка"); + } + }while(ar.Next()) + p.setValue("param",sum_kol_vo); + p.exec("Итого.Количество"); + p.setValue("param",ConvertNumber2MoneyFormat(sum_prixod)); + p.exec("Итого.Сумма.Приход"); + p.setValue("param",ConvertNumber2MoneyFormat(sum_rasxod)); + p.exec("Итого.Сумма.Расход"); + } + else + { + p.setValue("param","нет документов"); + p.exec("Итого.Количество"); + } + p.show(); + p.close(); + p = 0; + ar = 0; + } + + +} + 14 + <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> +<class>ReportOfMoving</class> +<widget class="wReport"> + <property name="name"> + <cstring>ReportOfMoving</cstring> + </property> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>451</width> + <height>199</height> + </rect> + </property> + <property name="caption"> + <string>Движение товара</string> + </property> + <property name="focusPolicy"> + <enum>StrongFocus</enum> + </property> + <property name="Name"> + <string></string> + </property> + <property name="Id"> + <number>731</number> + </property> + <grid> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLayoutWidget" row="0" column="0"> + <property name="name"> + <cstring>layout2</cstring> + </property> + <hbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel1</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Товар</string> + </property> + </widget> + <widget class="wField"> + <property name="name"> + <cstring>wField1</cstring> + </property> + <property name="FieldType"> + <string>O 129</string> + </property> + <property name="EditorType"> + <enum>Catalogue</enum> + </property> + </widget> + </hbox> + </widget> + <widget class="QGroupBox" row="2" column="0"> + <property name="name"> + <cstring>groupBox1</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>1</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="title"> + <string>Период</string> + </property> + <vbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLayoutWidget"> + <property name="name"> + <cstring>layout6</cstring> + </property> + <hbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel2</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>с</string> + </property> + </widget> + <widget class="QDateEdit"> + <property name="name"> + <cstring>dateEditFrom</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>7</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="date"> + <date> + <year>2005</year> + <month>1</month> + <day>1</day> + </date> + </property> + </widget> + <spacer> + <property name="name"> + <cstring>spacer4</cstring> + </property> + <property name="orientation"> + <enum>Vertical</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>20</width> + <height>21</height> + </size> + </property> + </spacer> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel3</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>по</string> + </property> + </widget> + <widget class="QDateEdit"> + <property name="name"> + <cstring>dateEditTo</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>7</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="date"> + <date> + <year>2006</year> + <month>1</month> + <day>1</day> + </date> + </property> + </widget> + </hbox> + </widget> + </vbox> + </widget> + <widget class="QLayoutWidget" row="0" column="1" rowspan="3" colspan="1"> + <property name="name"> + <cstring>layout5</cstring> + </property> + <vbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <property name="margin"> + <number>8</number> + </property> + <widget class="wActionButton"> + <property name="name"> + <cstring>print_button</cstring> + </property> + <property name="text"> + <string>Печать</string> + </property> + <property name="accel"> + <string>Ctrl+P</string> + </property> + </widget> + <spacer> + <property name="name"> + <cstring>spacer1</cstring> + </property> + <property name="orientation"> + <enum>Vertical</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>20</width> + <height>70</height> + </size> + </property> + </spacer> + <widget class="wActionButton"> + <property name="name"> + <cstring>ok_button</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Отмена</string> + </property> + <property name="accel"> + <string>Esc</string> + </property> + <property name="action"> + <bool>true</bool> + </property> + <property name="actionUpdate"> + <bool>false</bool> + </property> + <property name="actionTurnOn"> + <bool>false</bool> + </property> + <property name="actionClose"> + <bool>true</bool> + </property> + <property name="script"> + <bool>false</bool> + </property> + <property name="scriptCode"> + <string></string> + </property> + <property name="actionPrint" stdset="0"> + <bool>false</bool> + </property> + </widget> + </vbox> + </widget> + <widget class="QGroupBox" row="1" column="0"> + <property name="name"> + <cstring>groupBox3</cstring> + </property> + <property name="focusPolicy"> + <enum>StrongFocus</enum> + </property> + <property name="title"> + <string>Склад</string> + </property> + <property name="checkable"> + <bool>true</bool> + </property> + <property name="checked"> + <bool>false</bool> + </property> + <vbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="wField"> + <property name="name"> + <cstring>wField2</cstring> + </property> + <property name="FieldType"> + <string>O 909</string> + </property> + <property name="EditorType"> + <enum>Catalogue</enum> + </property> + </widget> + </vbox> + </widget> + </grid> +</widget> +<tabstops> + <tabstop>wField1</tabstop> + <tabstop>groupBox3</tabstop> + <tabstop>wField2</tabstop> + <tabstop>dateEditFrom</tabstop> + <tabstop>dateEditTo</tabstop> + <tabstop>print_button</tabstop> + <tabstop>ok_button</tabstop> +</tabstops> +<layoutdefaults spacing="5" margin="5"/> +<includehints> + <includehint>wreport.h</includehint> + <includehint>wfield.h</includehint> + <includehint>wactionbutton.h</includehint> + <includehint>wactionbutton.h</includehint> + <includehint>wfield.h</includehint> +</includehints> +</UI> + + +
+ + + +
+ + +
+ + function on_button(button_name) +{ + if(button_name=="print_button") + { + var ar = new ARegister("Главная книга"); // создаем экземпляр объекта накопительного регистра + var count = 0; + var s8a=0; + var serv = new Service(); + var defOffice = serv.GetOffice(); + var templateType = 1; + var templateFile = "templ_kniga_pokup.odt"; + if (defOffice == "MSO") { + templateType = 4; + templateFile = "templ_kniga_pokup.xml"; + } + var p = new Report("Kniga_pokupok",templateType); // создаем новый экземпляр объекта aReport + p.setTable(templateFile); // связываем созданный экземпляр отчета с шаблоном + // каталог, где находятся шаблоны, задается в диалоге конфигурирования файла ресурса + // в поле `Рабочий каталог' + p.setValue("param",ConvertDateFromIso(Value("dateEditFrom")) ); + p.exec("Период.Начало"); + p.setValue("param",ConvertDateFromIso(Value("dateEditTo")) ); + p.exec("Период.Конец"); + ar.Select(Value("dateEditFrom"),Value("dateEditTo")); + if(ar.First()) + { + do + { + p.setValue("f1",++count); + p.setValue("f3",ConvertDateFromIso(ar.Value("RecordDate"))); + sum_kol_vo+=parseFloat(ar.Value("Количество")); + if(ar.Value("Дебет")=="41.2" && ar.Value("Кредит")=="60") + { + var cat = new Catalogue("Справочник Контрагентов"); + cat.Select(); + + p.setValue("f5", cat.GetElementValue(ar.Value("Контрагент"),"Наименование")); + p.setValue("f5a",cat.GetElementValue(ar.Value("Контрагент"),"ИНН")); + cat = 0; + var summa = parseFloat(ar.Value("Сумма")); + var summa_nds = summa/(1 - 0.18) - summa; + s8a+= summa; + p.setValue("f8a",ConvertNumber2MoneyFormat(summa)); + p.setValue("f8b",ConvertNumber2MoneyFormat(summa_nds)); + p.setValue("f7", ConvertNumber2MoneyFormat(summa+summa_nds)); + p.exec("строка"); + } + }while(ar.Next()) + p.setValue("param",ConvertNumber2MoneyFormat(s8a)); + p.exec("s8a"); + p.setValue("param",ConvertNumber2MoneyFormat(s8a/(1-0.18) - s8a)); + p.exec("s8b"); + p.setValue("param",ConvertNumber2MoneyFormat(s8a/(1-0.18))); + p.exec("s7"); + } + p.setValue("param", getConstant("Константы","Главный бухгалтер")); + // функция getConstant возвращает значение константы, в данном случае имя главного бухгалтера. + //Оно берется из справочника с именем Константы. + // функция getConstant() написана на Ананас-Скрипте и находится в глобальном модуле + p.exec("Организация.Главбух"); + p.setValue("param", getConstant("Константы","Название")); + p.exec("Организация.Название"); + p.setValue("param", getConstant("Константы","ИНН")); + p.exec("Организация.ИНН"); + + p.show(); + p.close(); + p = 0; + ar = 0; + } + + +} + 14 + <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> +<class>Report</class> +<widget class="wReport"> + <property name="name"> + <cstring>Report</cstring> + </property> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>435</width> + <height>101</height> + </rect> + </property> + <property name="caption"> + <string>Кника закупок</string> + </property> + <property name="Name"> + <string></string> + </property> + <property name="Id"> + <number>1087</number> + </property> + <grid> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="wActionButton" row="0" column="1"> + <property name="name"> + <cstring>print_button</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>1</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Печать</string> + </property> + <property name="accel"> + <string>Ctrl+P, Ctrl+Return</string> + </property> + </widget> + <widget class="QGroupBox" row="0" column="0" rowspan="3" colspan="1"> + <property name="name"> + <cstring>groupBox1</cstring> + </property> + <property name="title"> + <string>Диапазон</string> + </property> + <vbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLayoutWidget"> + <property name="name"> + <cstring>layout1</cstring> + </property> + <hbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel1</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>с</string> + </property> + </widget> + <widget class="QDateEdit"> + <property name="name"> + <cstring>dateEditFrom</cstring> + </property> + <property name="date"> + <date> + <year>2005</year> + <month>1</month> + <day>1</day> + </date> + </property> + </widget> + <spacer> + <property name="name"> + <cstring>spacer2</cstring> + </property> + <property name="orientation"> + <enum>Vertical</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>20</width> + <height>51</height> + </size> + </property> + </spacer> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel2</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>по</string> + </property> + </widget> + <widget class="QDateEdit"> + <property name="name"> + <cstring>dateEditTo</cstring> + </property> + <property name="date"> + <date> + <year>2006</year> + <month>1</month> + <day>1</day> + </date> + </property> + </widget> + </hbox> + </widget> + </vbox> + </widget> + <spacer row="1" column="1"> + <property name="name"> + <cstring>spacer1</cstring> + </property> + <property name="orientation"> + <enum>Vertical</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>20</width> + <height>16</height> + </size> + </property> + </spacer> + <widget class="wActionButton" row="2" column="1"> + <property name="name"> + <cstring>unnamed_2</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Отмена</string> + </property> + <property name="accel"> + <string>Esc</string> + </property> + <property name="action"> + <bool>true</bool> + </property> + <property name="actionUpdate"> + <bool>false</bool> + </property> + <property name="actionTurnOn"> + <bool>false</bool> + </property> + <property name="actionClose"> + <bool>true</bool> + </property> + <property name="actionId"> + <number>390</number> + </property> + <property name="script"> + <bool>false</bool> + </property> + </widget> + </grid> +</widget> +<tabstops> + <tabstop>dateEditFrom</tabstop> + <tabstop>dateEditTo</tabstop> + <tabstop>print_button</tabstop> + <tabstop>unnamed_2</tabstop> +</tabstops> +<layoutdefaults spacing="5" margin="5"/> +<includehints> + <includehint>wreport.h</includehint> + <includehint>wactionbutton.h</includehint> + <includehint>wactionbutton.h</includehint> +</includehints> +</UI> + + +
+ + + +
+ + +
+ + function on_button(button_name) +{ + if(button_name=="print_button") + { + var ar = new ARegister("Главная книга"); // создаем экземпляр объекта накопительного регистра + var count = 0; + var s5a=0; + var serv = new Service(); + var defOffice = serv.GetOffice(); + var templateType = 1; + var templateFile = "templ_kniga_prod.odt"; + if (defOffice == "MSO") { + templateType = 4; + templateFile = "templ_kniga_prod.xml"; + } + var p = new Report("Kniga_prod",templateType); // создаем новый экземпляр объекта aReport + p.setTable(templateFile); // связываем созданный экземпляр отчета с шаблоном + // каталог, где находятся шаблоны, задается в диалоге конфигурирования файла ресурса + // в поле `Рабочий каталог' + p.setValue("param",ConvertDateFromIso(Value("dateEditFrom")) ); + p.exec("Период.Начало"); + p.setValue("param",ConvertDateFromIso(Value("dateEditTo")) ); + p.exec("Период.Конец"); + ar.Select(Value("dateEditFrom"),Value("dateEditTo")); + if(ar.First()) + { + do + { + p.setValue("f1",ConvertDateFromIso(ar.Value("RecordDate"))); + sum_kol_vo+=parseFloat(ar.Value("Количество")); + if(ar.Value("Дебет")=="90" && ar.Value("Кредит")=="41.2") + { + var cat = new Catalogue("Справочник Контрагентов"); + cat.Select(); + + p.setValue("f2", cat.GetElementValue(ar.Value("Контрагент"),"Наименование")); + p.setValue("f3",cat.GetElementValue(ar.Value("Контрагент"),"ИНН")); + cat = 0; + var summa = -parseFloat(ar.Value("Сумма")); + var summa_nds = summa/(1-0.18) - summa; + s5a+= summa; + p.setValue("f5a",ConvertNumber2MoneyFormat(summa)); + p.setValue("f5b",ConvertNumber2MoneyFormat(summa_nds)); + p.setValue("f4", ConvertNumber2MoneyFormat(summa/(1-0.18))); + p.exec("строка"); + + } + }while(ar.Next()) + p.setValue("param",ConvertNumber2MoneyFormat(s5a)); + p.exec("s5a"); + p.setValue("param",ConvertNumber2MoneyFormat(s5a/(1-0.18)-s5a)); + p.exec("s5b"); + p.setValue("param",ConvertNumber2MoneyFormat(s5a/(1-0.18))); + p.exec("s4"); + } + p.setValue("param", getConstant("Константы","Главный бухгалтер")); + // функция getConstant возвращает значение константы, в данном случае имя главного бухгалтера. + //Оно берется из справочника с именем Константы. + // функция getConstant() написана на Ананас-Скрипте и находится в глобальном модуле + p.exec("Организация.Главбух"); + p.setValue("param", getConstant("Константы","Название")); + p.exec("Организация.Название"); + p.setValue("param", getConstant("Константы","ИНН")); + p.exec("Организация.ИНН"); + + p.show(); + p.close(); + p = 0; + ar = 0; + } +} + 0 + <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> +<class>Report</class> +<widget class="wReport"> + <property name="name"> + <cstring>Report</cstring> + </property> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>435</width> + <height>101</height> + </rect> + </property> + <property name="caption"> + <string>Книга продаж</string> + </property> + <property name="Name"> + <string></string> + </property> + <property name="Id"> + <number>1090</number> + </property> + <grid> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QGroupBox" row="0" column="0" rowspan="3" colspan="1"> + <property name="name"> + <cstring>groupBox2</cstring> + </property> + <property name="title"> + <string>Период</string> + </property> + <vbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLayoutWidget"> + <property name="name"> + <cstring>layout2</cstring> + </property> + <hbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel1</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>с</string> + </property> + </widget> + <widget class="QDateEdit"> + <property name="name"> + <cstring>dateEditFrom</cstring> + </property> + <property name="date"> + <date> + <year>2005</year> + <month>1</month> + <day>1</day> + </date> + </property> + </widget> + <spacer> + <property name="name"> + <cstring>spacer3</cstring> + </property> + <property name="orientation"> + <enum>Vertical</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>20</width> + <height>41</height> + </size> + </property> + </spacer> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel2</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>по</string> + </property> + </widget> + <widget class="QDateEdit"> + <property name="name"> + <cstring>dateEditTo</cstring> + </property> + <property name="date"> + <date> + <year>2006</year> + <month>1</month> + <day>1</day> + </date> + </property> + </widget> + </hbox> + </widget> + </vbox> + </widget> + <widget class="wActionButton" row="0" column="1"> + <property name="name"> + <cstring>print_button</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>1</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Печать</string> + </property> + <property name="accel"> + <string>Ctrl+P, Ctrl+Return</string> + </property> + </widget> + <widget class="wActionButton" row="2" column="1"> + <property name="name"> + <cstring>unnamed_2</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Отмена</string> + </property> + <property name="accel"> + <string>Esc</string> + </property> + <property name="action"> + <bool>true</bool> + </property> + <property name="actionUpdate"> + <bool>false</bool> + </property> + <property name="actionTurnOn"> + <bool>false</bool> + </property> + <property name="actionClose"> + <bool>true</bool> + </property> + <property name="actionId"> + <number>390</number> + </property> + <property name="script"> + <bool>false</bool> + </property> + <property name="actionPrint" stdset="0"> + <bool>false</bool> + </property> + </widget> + <spacer row="1" column="1"> + <property name="name"> + <cstring>spacer4</cstring> + </property> + <property name="orientation"> + <enum>Vertical</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>20</width> + <height>20</height> + </size> + </property> + </spacer> + </grid> +</widget> +<layoutdefaults spacing="5" margin="5"/> +<includehints> + <includehint>wreport.h</includehint> + <includehint>wactionbutton.h</includehint> + <includehint>wactionbutton.h</includehint> +</includehints> +</UI> + + +
+ + + +
+ + +
+ + function on_button(button_name) +{ + if(button_name=="print_button") + { + var ar = new ARegister("Главная книга"); // создаем экземпляр объекта накопительного регистра + // if(!ar) return; + var count = 0; + var sum_prixod = 0; + var sum_rasxod = 0; + //if(!tovarId) return; + var serv = new Service(); + var defOffice = serv.GetOffice(); + var templateType = 1; + var templateFile = "templ_kassa.odt"; + if (defOffice == "MSO") { + templateType = 4; + templateFile = "templ_kassa.xml"; + } + var p = new Report("kassa",templateType); // создаем новый экземпляр объекта aReport + p.setTable(templateFile); // связываем созданный экземпляр отчета с шаблоном + // каталог, где находятся шаблоны, задается в диалоге конфигурирования файла ресурса + // в поле `Рабочий каталог' + p.setValue("param",ConvertDateFromIso(Value("dateEditFrom")) ); + p.exec("Период.Начало"); + p.setValue("param",ConvertDateFromIso(Value("dateEditTo")) ); + p.exec("Период.Конец"); + ar.Select(Value("dateEditFrom"),Value("dateEditTo")); + if(ar.First()) + { + do + { + + if(ar.Value("Дебет")=="60" && ar.Value("Кредит")=="50") + { + p.setValue("f0",++count); + p.setValue("f1",ConvertDateFromIso(ar.Value("RecordDate"))); + var cat = new Catalogue("Справочник Контрагентов"); + p.setValue("f2", cat.GetElementValue(ar.Value("Контрагент"),"Наименование")); + cat = 0; + p.setValue("f3",""); + var summa = -parseFloat(ar.Value("Сумма")); + p.setValue("f4",ConvertNumber2MoneyFormat(summa)); + sum_rasxod+= summa; + p.exec("строка"); + } + if(ar.Value("Дебет")=="50" && ar.Value("Кредит")=="90") + { + p.setValue("f0",++count); + p.setValue("f1",ConvertDateFromIso(ar.Value("Дата записи"))); + var cat = new Catalogue("Справочник Контрагентов"); + p.setValue("f2", cat.GetElementValue(ar.Value("Контрагент"),"Наименование")); + cat = 0; + p.setValue("f4",""); + var summa = parseFloat(ar.Value("Сумма")); + p.setValue("f3",ConvertNumber2MoneyFormat(summa)); + sum_prixod += summa; + p.exec("строка"); + } + // journ = 0; + + + }while(ar.Next()) + p.setValue("param",ConvertNumber2MoneyFormat(sum_prixod)); + p.exec("Итого.Сумма.Приход"); + p.setValue("param",ConvertNumber2MoneyFormat(sum_rasxod)); + p.exec("Итого.Сумма.Расход"); + } + else + { + p.setValue("param","нет документов"); + p.exec("Итого.Сумма.Приход"); + } + p.show(); + p.close(); + p = 0; + ar = 0; + } + + +} + 6 + <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> +<class>Report</class> +<widget class="wReport"> + <property name="name"> + <cstring>Report</cstring> + </property> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>444</width> + <height>81</height> + </rect> + </property> + <property name="caption"> + <string>Ведомость по кассе</string> + </property> + <property name="Name"> + <string></string> + </property> + <property name="Id"> + <number>1440</number> + </property> + <grid> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QGroupBox" row="0" column="0" rowspan="2" colspan="1"> + <property name="name"> + <cstring>groupBox2</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>7</hsizetype> + <vsizetype>5</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="title"> + <string>Период</string> + </property> + <vbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLayoutWidget"> + <property name="name"> + <cstring>layout6</cstring> + </property> + <hbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel1</cstring> + </property> + <property name="text"> + <string>с</string> + </property> + </widget> + <widget class="QDateEdit"> + <property name="name"> + <cstring>dateEditFrom</cstring> + </property> + <property name="minimumSize"> + <size> + <width>120</width> + <height>0</height> + </size> + </property> + <property name="date"> + <date> + <year>2005</year> + <month>1</month> + <day>1</day> + </date> + </property> + </widget> + <spacer> + <property name="name"> + <cstring>spacer13</cstring> + </property> + <property name="orientation"> + <enum>Horizontal</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>30</width> + <height>20</height> + </size> + </property> + </spacer> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel2</cstring> + </property> + <property name="text"> + <string>по</string> + </property> + </widget> + <widget class="QDateEdit"> + <property name="name"> + <cstring>dateEditTo</cstring> + </property> + <property name="minimumSize"> + <size> + <width>120</width> + <height>0</height> + </size> + </property> + <property name="date"> + <date> + <year>2006</year> + <month>1</month> + <day>1</day> + </date> + </property> + </widget> + </hbox> + </widget> + </vbox> + </widget> + <widget class="wActionButton" row="1" column="1"> + <property name="name"> + <cstring>cancel_button</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>1</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Отмена</string> + </property> + <property name="accel"> + <string>Esc</string> + </property> + <property name="action"> + <bool>true</bool> + </property> + <property name="actionUpdate"> + <bool>false</bool> + </property> + <property name="actionTurnOn"> + <bool>false</bool> + </property> + <property name="actionClose"> + <bool>true</bool> + </property> + <property name="actionId"> + <number>572</number> + </property> + <property name="script"> + <bool>false</bool> + </property> + </widget> + <widget class="wActionButton" row="0" column="1"> + <property name="name"> + <cstring>print_button</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>1</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Печать</string> + </property> + <property name="accel"> + <string>Ctrl+P, Ctrl+Return</string> + </property> + <property name="action"> + <bool>true</bool> + </property> + <property name="actionUpdate"> + <bool>false</bool> + </property> + <property name="actionTurnOn"> + <bool>false</bool> + </property> + <property name="actionClose"> + <bool>false</bool> + </property> + <property name="actionId"> + <number>390</number> + </property> + <property name="script"> + <bool>false</bool> + </property> + </widget> + </grid> +</widget> +<layoutdefaults spacing="5" margin="5"/> +<includehints> + <includehint>wreport.h</includehint> + <includehint>wactionbutton.h</includehint> + <includehint>wactionbutton.h</includehint> +</includehints> +</UI> + + +
+ + + +
+ + +
+ + function on_button(button_name) +{ + if(button_name=="print_button") + { + var ar = new ARegister("Главная книга"); // создаем экземпляр объекта накопительного регистра + // if(!ar) return; + var contragentName = Value("wField1"); + var contragentId = DBValue("wField1"); + var count = 0; + var sum_prixod=0; + var sum_rasxod=0; + //if(!tovarId) return; + var serv = new Service(); + var defOffice = serv.GetOffice(); + var templateType = 1; + var templateFile = "templ_kontragents.odt"; + if (defOffice == "MSO") { + templateType = 4; + templateFile = "templ_kontragents.xml"; + } + var p = new Report("kontragents",templateType); // создаем новый экземпляр объекта aReport + p.setTable(templateFile); // связываем созданный экземпляр отчета с шаблоном + // каталог, где находятся шаблоны, задается в диалоге конфигурирования файла ресурса + // в поле `Рабочий каталог' + p.setValue("param",ConvertDateFromIso(Value("dateEditFrom")) ); + p.exec("Период.Начало"); + p.setValue("param",ConvertDateFromIso(Value("dateEditTo")) ); + p.exec("Период.Конец"); + p.setValue("param",contragentName); + p.exec("Отчет.Контрагент"); + ar.Select(Value("dateEditFrom"),Value("dateEditTo")); + if(ar.First()) + { + do + { + if(ar.Value("Контрагент") == contragentId) + { + p.setValue("f0",++count); + p.setValue("f1",ConvertDateFromIso(ar.Value("RecordDate"))); + p.setValue("f2", contragentName); + p.setValue("f5", ar.Value("Примечание")); + if(ar.Value("Дебет")=="90" && ar.Value("Кредит")=="41.2") + { + p.setValue("f3",""); + var summa = -parseFloat(ar.Value("Сумма")); + p.setValue("f4",ConvertNumber2MoneyFormat(summa)); + sum_rasxod+= summa; + } + if(ar.Value("Дебет")=="41.2" && ar.Value("Кредит")=="60") + { + p.setValue("f4",""); + var summa = parseFloat(ar.Value("Сумма")); + p.setValue("f3",ConvertNumber2MoneyFormat(summa)); + sum_prixod += summa; + } + if(ar.Value("Дебет")=="60" && ar.Value("Кредит")=="51") + { + p.setValue("f3",""); + var summa = -parseFloat(ar.Value("Сумма")); + p.setValue("f4",ConvertNumber2MoneyFormat(summa)); + sum_rasxod+= summa; + } + if(ar.Value("Дебет")=="51" && ar.Value("Кредит")=="90") + { + p.setValue("f4",""); + var summa = parseFloat(ar.Value("Сумма")); + p.setValue("f3",ConvertNumber2MoneyFormat(summa)); + sum_prixod += summa; + } + if(ar.Value("Дебет")=="60" && ar.Value("Кредит")=="50") + { + p.setValue("f3",""); + var summa = -parseFloat(ar.Value("Сумма")); + p.setValue("f4",ConvertNumber2MoneyFormat(summa)); + sum_rasxod+= summa; + } + if(ar.Value("Дебет")=="50" && ar.Value("Кредит")=="90") + { + p.setValue("f4",""); + var summa = parseFloat(ar.Value("Сумма")); + p.setValue("f3",ConvertNumber2MoneyFormat(summa)); + sum_prixod += summa; + } + p.exec("строка"); + } + }while(ar.Next()) + p.setValue("param",ConvertNumber2MoneyFormat(sum_prixod)); + p.exec("Итого.Сумма.Приход"); + p.setValue("param",ConvertNumber2MoneyFormat(sum_rasxod)); + p.exec("Итого.Сумма.Расход"); + p.setValue("param",ConvertNumber2MoneyFormat(sum_prixod - sum_rasxod)); + p.exec("Итого.Баланс"); + } + else + { + p.setValue("param","нет документов"); + p.exec("Итого.Сумма.Приход"); + } + p.show(); + //p.close(); + p = 0; + ar = 0; + } + + +} + 6 + <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> +<class>Report</class> +<widget class="wReport"> + <property name="name"> + <cstring>Report</cstring> + </property> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>453</width> + <height>148</height> + </rect> + </property> + <property name="caption"> + <string>Ведомость по поставщикам и покупателям</string> + </property> + <property name="Name"> + <string></string> + </property> + <property name="Id"> + <number>1448</number> + </property> + <grid> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QGroupBox" row="1" column="0"> + <property name="name"> + <cstring>groupBox4</cstring> + </property> + <property name="title"> + <string>Период</string> + </property> + <vbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLayoutWidget"> + <property name="name"> + <cstring>layout36</cstring> + </property> + <hbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel3</cstring> + </property> + <property name="text"> + <string>с</string> + </property> + </widget> + <widget class="QDateEdit"> + <property name="name"> + <cstring>dateEditFrom</cstring> + </property> + <property name="minimumSize"> + <size> + <width>120</width> + <height>0</height> + </size> + </property> + <property name="date"> + <date> + <year>2005</year> + <month>1</month> + <day>1</day> + </date> + </property> + </widget> + <spacer> + <property name="name"> + <cstring>spacer15</cstring> + </property> + <property name="orientation"> + <enum>Horizontal</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>21</width> + <height>20</height> + </size> + </property> + </spacer> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel4</cstring> + </property> + <property name="text"> + <string>по</string> + </property> + </widget> + <widget class="QDateEdit"> + <property name="name"> + <cstring>dateEditTo</cstring> + </property> + <property name="minimumSize"> + <size> + <width>120</width> + <height>0</height> + </size> + </property> + <property name="date"> + <date> + <year>2006</year> + <month>1</month> + <day>1</day> + </date> + </property> + </widget> + </hbox> + </widget> + </vbox> + </widget> + <widget class="QLayoutWidget" row="0" column="0"> + <property name="name"> + <cstring>layout38</cstring> + </property> + <vbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel5</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>5</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Контрагент</string> + </property> + </widget> + <widget class="wField"> + <property name="name"> + <cstring>wField1</cstring> + </property> + <property name="FieldType"> + <string>O 310</string> + </property> + <property name="EditorType"> + <enum>Catalogue</enum> + </property> + </widget> + </vbox> + </widget> + <widget class="QLayoutWidget" row="0" column="1" rowspan="2" colspan="1"> + <property name="name"> + <cstring>layout5</cstring> + </property> + <vbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="wActionButton"> + <property name="name"> + <cstring>print_button</cstring> + </property> + <property name="text"> + <string>Печать</string> + </property> + <property name="accel"> + <string>Ctrl+R, Ctrl+Return</string> + </property> + <property name="action"> + <bool>true</bool> + </property> + <property name="actionUpdate"> + <bool>false</bool> + </property> + <property name="actionTurnOn"> + <bool>false</bool> + </property> + <property name="actionClose"> + <bool>false</bool> + </property> + <property name="actionId"> + <number>390</number> + </property> + <property name="script"> + <bool>false</bool> + </property> + </widget> + <spacer> + <property name="name"> + <cstring>spacer16</cstring> + </property> + <property name="orientation"> + <enum>Vertical</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>20</width> + <height>60</height> + </size> + </property> + </spacer> + <widget class="wActionButton"> + <property name="name"> + <cstring>cancel_button</cstring> + </property> + <property name="text"> + <string>Отмена</string> + </property> + <property name="accel"> + <string>Esc</string> + </property> + <property name="action"> + <bool>true</bool> + </property> + <property name="actionUpdate"> + <bool>false</bool> + </property> + <property name="actionTurnOn"> + <bool>false</bool> + </property> + <property name="actionClose"> + <bool>true</bool> + </property> + <property name="actionId"> + <number>572</number> + </property> + <property name="script"> + <bool>false</bool> + </property> + </widget> + </vbox> + </widget> + </grid> +</widget> +<tabstops> + <tabstop>wField1</tabstop> + <tabstop>dateEditFrom</tabstop> + <tabstop>dateEditTo</tabstop> + <tabstop>print_button</tabstop> +</tabstops> +<layoutdefaults spacing="5" margin="5"/> +<includehints> + <includehint>wreport.h</includehint> + <includehint>wfield.h</includehint> + <includehint>wactionbutton.h</includehint> + <includehint>wactionbutton.h</includehint> +</includehints> +</UI> + + +
+ + + +
+ + +
+ + function on_button(button_name) +{ + if(button_name=="print_button") + { + var ar = new ARegister("Главная книга"); // создаем экземпляр объекта накопительного регистра + // if(!ar) return; + var count = 0; + var sum_prixod = 0; + var sum_rasxod = 0; + //if(!tovarId) return; + var serv = new Service(); + var defOffice = serv.GetOffice(); + var templateType = 1; + var templateFile = "templ_bank.odt"; + if (defOffice == "MSO") { + templateType = 4; + templateFile = "templ_bank.xml"; + } + var p = new Report("bank",templateType); // создаем новый экземпляр объекта aReport + p.setTable(templateFile); // связываем созданный экземпляр отчета с шаблоном + // каталог, где находятся шаблоны, задается в диалоге конфигурирования файла ресурса + // в поле `Рабочий каталог' + p.setValue("param",ConvertDateFromIso(Value("dateEditFrom")) ); + p.exec("Период.Начало"); + p.setValue("param",ConvertDateFromIso(Value("dateEditTo")) ); + p.exec("Период.Конец"); + ar.Select(Value("dateEditFrom"),Value("dateEditTo")); + if(ar.First()) + { + do + { + + if(ar.Value("Дебет")=="60" && ar.Value("Кредит")=="51") + { + p.setValue("f0",++count); + p.setValue("f1",ConvertDateFromIso(ar.Value("RecordDate"))); + var cat = new Catalogue("Справочник Контрагентов"); + p.setValue("f2", cat.GetElementValue(ar.Value("Контрагент"),"Наименование")); + cat = 0; + p.setValue("f3",""); + var summa = -parseFloat(ar.Value("Сумма")); + p.setValue("f4",summa); + sum_rasxod+= summa; + p.exec("строка"); + } + if(ar.Value("Дебет")=="51" && ar.Value("Кредит")=="90") + { + p.setValue("f0",++count); + p.setValue("f1",ar.Value("Дата записи")); + var cat = new Catalogue("Справочник Контрагентов"); + p.setValue("f2", cat.GetElementValue(ar.Value("Контрагент"),"Наименование")); + cat = 0; + p.setValue("f4",""); + var summa = parseFloat(ar.Value("Сумма")); + p.setValue("f3",summa); + sum_prixod += summa; + p.exec("строка"); + } + // journ = 0; + + + }while(ar.Next()) + p.setValue("param",ConvertNumber2MoneyFormat(sum_prixod)); + p.exec("Итого.Сумма.Приход"); + p.setValue("param",ConvertNumber2MoneyFormat(sum_rasxod)); + p.exec("Итого.Сумма.Расход"); + } + else + { + p.setValue("param","нет документов"); + p.exec("Итого.Сумма.Приход"); + } + p.show(); + p.close(); + p = 0; + ar = 0; + } + + +} + 6 + <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> +<class>Report</class> +<widget class="wReport"> + <property name="name"> + <cstring>Report</cstring> + </property> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>434</width> + <height>81</height> + </rect> + </property> + <property name="caption"> + <string>Ведомость по банку</string> + </property> + <property name="Name"> + <string></string> + </property> + <property name="Id"> + <number>1477</number> + </property> + <grid> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QGroupBox" row="0" column="0" rowspan="2" colspan="1"> + <property name="name"> + <cstring>groupBox8</cstring> + </property> + <property name="title"> + <string>Период</string> + </property> + <vbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLayoutWidget"> + <property name="name"> + <cstring>layout49</cstring> + </property> + <hbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel6</cstring> + </property> + <property name="text"> + <string>с</string> + </property> + </widget> + <widget class="QDateEdit"> + <property name="name"> + <cstring>dateEditFrom</cstring> + </property> + <property name="minimumSize"> + <size> + <width>120</width> + <height>0</height> + </size> + </property> + <property name="date"> + <date> + <year>2005</year> + <month>1</month> + <day>1</day> + </date> + </property> + </widget> + <spacer> + <property name="name"> + <cstring>spacer22</cstring> + </property> + <property name="orientation"> + <enum>Horizontal</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>31</width> + <height>20</height> + </size> + </property> + </spacer> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel7</cstring> + </property> + <property name="text"> + <string>по</string> + </property> + </widget> + <widget class="QDateEdit"> + <property name="name"> + <cstring>dateEditTo</cstring> + </property> + <property name="minimumSize"> + <size> + <width>120</width> + <height>0</height> + </size> + </property> + <property name="date"> + <date> + <year>2006</year> + <month>1</month> + <day>1</day> + </date> + </property> + </widget> + </hbox> + </widget> + </vbox> + </widget> + <widget class="wActionButton" row="0" column="1"> + <property name="name"> + <cstring>print_button</cstring> + </property> + <property name="text"> + <string>Печать</string> + </property> + <property name="accel"> + <string>Ctrl+P, Ctrl+Return</string> + </property> + </widget> + <widget class="wActionButton" row="1" column="1"> + <property name="name"> + <cstring>cancel_button</cstring> + </property> + <property name="text"> + <string>Отмена</string> + </property> + <property name="accel"> + <string>Esc</string> + </property> + <property name="action"> + <bool>true</bool> + </property> + <property name="actionUpdate"> + <bool>false</bool> + </property> + <property name="actionTurnOn"> + <bool>false</bool> + </property> + <property name="actionClose"> + <bool>true</bool> + </property> + <property name="actionId"> + <number>572</number> + </property> + <property name="script"> + <bool>false</bool> + </property> + </widget> + </grid> +</widget> +<layoutdefaults spacing="5" margin="5"/> +<includehints> + <includehint>wreport.h</includehint> + <includehint>wactionbutton.h</includehint> + <includehint>wactionbutton.h</includehint> +</includehints> +</UI> + + +
+ + + +
+ + +
+ + function on_formstart() +{ + Widget("dateEdit1").date = new Date(); +} + +function on_button(name) +{ + if(name == "report_button") + { + generate_report(); + } +} + +function generate_report() +{ + var cat = new Catalogue("Каталог товаров"); + var reg = new ARegister("Главная книга"); + var sql = new SQL(); + var sqlGoodsName = sql.SqlFieldName(reg, "Товар" ); + var innerQuery = "SELECT "+ + sql.SqlFieldName(cat, "Наименование") + ", " + + sql.SqlFieldName(cat, "Артикул") + ", " + + sql.SqlFieldName(reg, "Количество") + " as Amount, " + + "idg " + + "FROM " + sql.SqlTableName(cat) + " as CAT " + + "LEFT JOIN ( SELECT r."+sqlGoodsName+", r. " + sql.SqlFieldName(reg, "Количество") +" " + + "FROM " + sql.SqlTableName(reg, "Товар" ) + " as r " + + "INNER JOIN ( SELECT "+sqlGoodsName+", max(date) as maxdate FROM " + sql.SqlTableName(reg, "Товар" ) + " " + + "WHERE date < '" + EndOfDay(Widget("dateEdit1").date) + "' " + + "GROUP BY "+ sqlGoodsName + ") as t " + + "on r." + sqlGoodsName +" = t." + sqlGoodsName +" and r.date = t.maxdate ) as SALDO " + + "on CAT.id = SALDO." + sqlGoodsName; + var groupQuery = "SELECT sum( Amount ) as summ, "+ + "t2.idg, " + + sql.SqlFieldName(cat, "Название группы", "group") + " as gname " + + "FROM (" + innerQuery + ") as t2 " + + "LEFT JOIN " + sql.SqlTableName(cat, "group") + " as GR " + + "on GR.id = t2.idg GROUP BY t2.idg"; + + var outerQuery = "SELECT G.gname, G.summ, E.* from ( " + innerQuery + " ) as E " + + "LEFT JOIN ( " + groupQuery + " ) as G " + + "on E.idg = G.idg"; + //sys.Message(0, outerQuery); + run_report(outerQuery); +} +function run_report( report_text ) +{ + var sql = new SQL(); + if( !sql.ExecQuery( report_text )) + { + sys.Message(1,"you have error in your sql query:" + sql.LastError()); + return; + } + var serv = new Service(); + var defOffice = serv.GetOffice(); + var templateType = 2; + var templateFile = "templ_ostatki.ods"; + if (defOffice == "MSO") { + templateType = 4; + templateFile = "templ_ostatki.xml"; + } + var p = new Report("templ_ostatki.ods",templateType); // создаем новый экземпляр объекта aReport + p.setTable(templateFile); // связываем созданный экземпляр отчета с шаблоном + // каталог, где находятся шаблоны, задается в диалоге конфигурирования файла ресурса + // в поле `Рабочий каталог' + if(sql.First()) + { + do{ + p.setValue("f0",sql.Value(2)); + p.setValue("f1",sql.Value(4)); + p.setValue("f2",sql.Value(0)); + p.setValue("f3",sql.Value(1)); + p.exec("строка"); + } while(sql.Next()); + } + p.setValue("param", ConvertDateFromIso(Widget("dateEdit1").date)); + p.exec("Текущая дата"); + p.show(); + p.close(); +} + 6 + <!DOCTYPE UI><UI version="3.2" stdsetdef="1"> +<class>Report</class> +<widget class="wReport"> + <property name="name"> + <cstring>Report</cstring> + </property> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>388</width> + <height>62</height> + </rect> + </property> + <property name="caption"> + <string>Остатки по группам</string> + </property> + <property name="Id"> + <number>1518</number> + </property> + <property name="Name" stdset="0"> + <cstring></cstring> + </property> + <grid> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="wActionButton" row="0" column="3"> + <property name="name"> + <cstring>report_button</cstring> + </property> + <property name="text"> + <string>Печать</string> + </property> + <property name="action"> + <bool>true</bool> + </property> + <property name="actionUpdate"> + <bool>false</bool> + </property> + <property name="actionTurnOn"> + <bool>false</bool> + </property> + <property name="actionClose"> + <bool>false</bool> + </property> + <property name="actionId"> + <number>0</number> + </property> + <property name="script"> + <bool>false</bool> + </property> + </widget> + <widget class="QLabel" row="0" column="0"> + <property name="name"> + <cstring>textLabel1</cstring> + </property> + <property name="text"> + <string>Остатки на дату</string> + </property> + </widget> + <widget class="QDateEdit" row="0" column="1"> + <property name="name"> + <cstring>dateEdit1</cstring> + </property> + </widget> + <spacer row="0" column="2"> + <property name="name"> + <cstring>spacer3</cstring> + </property> + <property name="orientation"> + <enum>Horizontal</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>51</width> + <height>20</height> + </size> + </property> + </spacer> + </grid> +</widget> +<layoutdefaults spacing="5" margin="5"/> +<includehints> + <includehint>wreport.h</includehint> + <includehint>wactionbutton.h</includehint> +</includehints> +</UI> + + +
+ + + +
+
+
+ + + + + sys.Exit(); + 89504E470D0A1A0A0000000D4948445200000020000000200806000000737A7AF40000000467414D410000B18F0BFC610500000006624B474400FF00FF00FFA0BDA793000000097048597300000B8800000B8801E58E29490000000774494D4507D10C1F001C1FB3439F4A000005C749444154789CC5976D8815D719C77FCF99EBAA7BBDBBDB55AF5EDD15D955525DDFEDDA1585685A0DB4262C844023140CC4D4165AA1904F590C98505AF3025249A00D681222F952B0C104124354DA24951A6DD7C0AE6E5C35BA75B777777657BD6FDE7BE7E4C3CC9C3B73EF6C422089E7CB19CE73E6FC9E79CEF3FCCF1CB8C74DAA078EB6356F01F602DDDF32EB187070E7A07D6A4A078EB6351F0676D5A7E6337BDD4A66A692A0358EE380D6A0359A32381AD068ED8E6BAD413B68C7EB75B0D7E4D336B7FAAE901F9D0038B273D07EBCC6011FDEBA633BC94D9D146C9BE2A44D319B01348800BA26645A747821011DFCC2988515B340598CF70E90FEA837E48478F02DC0C9D61DDB99B3610D23FF3C45616C1811054A214A8125885288082841C4727BE58EA3144A09880596A094025120AE5D4D9F8E555FCF64EF20E97F5D00D8BA73D03EA53C47F7D6A7E693DCD4F99DC0510AED9471723912CB1651D7DC006E9E11F31CE89EBD6E2505DBFE5AF8AC542B2D5DDB696E5BC68C792D2070FBEA4526BEB8C8D0D9D394F3991AB8580A118506C42993685FC0987DAB3BE8003353498A93F694F01FB42F67ED9E7D30A7B526BD13CD2D24D6FD84D6EEDF7077E053FE73F4254AB96C088EFF115A33AD296EDE55E6496B37E122E06DDB1F616DCF5F23E1D5AD6EE97A363CF3268D8BEFAB852BCB45951D33DF44C0711C4047C2173FF6FB00C2C1FEC7DB0CFDFB4326AE0D8025CCEBD8C0E2FB1FA26EC97A33AB63CF1FE97FB587891B970D5C2C85E394C0897000ED955A003E6FF5C6103CDF7F86F3870F50CADD06B148AEE8A498CB90EE3F47FAE279E2C985ACD97B00A6CD02E0874F3CC7B9E79FA498CFB9D1500A34AE5E446D811F013FE13A7ED513829F39D463E08BB73ECC7DBBF7B3E2772F124F2E4494226B8FF0E90BBF85D21DF35EFB4F1FADC0C5530B5D898071405346C0C0E7ADDE08339B4CD8CF1CEA0995DAACE442B3483CB9C0245C3197A5FFB53F195BE3DA6DD4C5132E5C94C72F4744C00F8B57E7AD5DDB8CE9FADF5E89A8F380268A84126EF2C6658A577B8D79CED23520CA7D4FFBD1AE76C013505F641ADA9719CBD0D993B52213106511AB26DB872F7C6CEC0D2DED28A510150391501554B6C0DF174FE1985D29B9623653A370A1085812828BA528E6B301070551312466B96E3B110EA0355A74455E832D425E25E8001282BBF6C01A222E5C59535781F6F6C5974FEC1B6652DDACC61A790D1E8BEE9815CAF669F58900DF852B15C33D2EA392503BEE9ADEC15218FD9F31B5743E50A3ED9149E827A728E6AFEA32E6DB235FA0BC2D40A68A8037E867FBD0D9D366D2C28776D71C2CC16D12DF390F1E9F9322D6D261ECE3D7FA2B5B80AA545C75045C2170B3FDE6B98A03003FDABD2F546AC55C456C4AF9AC814F8F37B07CD7D3C6E60C0F502E161065B955802FFBD511D0DA2DC440C25D3ABCDF4CAC6B5FCBEA5FEC35D97EF9E431AE1FFF0B975E7F96C99B570C7CD5AFFF006A8679EFD27B470DDC4D42096D41E02C70002B94EDA317CF933CF32E4D3FFE1900F51D9BE9EAD8CCCD136F30F6F905863FFB0444686C59426AE54612ABB686A276F5ED9729150B15B8771A461E467E1554677BDFF1C32C57168D9D0F9A9752DB7E49AA2294916DE8FD23DCF9FF8D105C5931842923A0BD2CADFD93E97BE708732FFF97F69FEF8244F22BC1CEF00083A7FF4EFEB65D0BB7629432197439C2817CDA66C6DC04A52AB8BFE7A3031718FBF35334B52C61FEEA4D342C5DE595A2403ECBC4D53ED2FDE73CB015091715A3306E53CE166A1C3876ABEF4A77D38A36D4F43AB4E3D468BB5FE79337AF30397C0D75E2AD8ABC7A22E33F4F05CFA747B83B364A612203EE45C554C1C1FCE804E3BD0358F57194158B84FBA5E61F2CDF143E72FA03F2E93B947345808310713199DBB592C4B245E094CDB1A9D1E1DB86C6CD15FF19F156F2BE47BBCB0A422993A1306E73776C947CFA0ED9E149A8BE98543B51D7DC40A27D01D39AE2EED1E904AE5D9E63E1F1B2DB3BEE35CE7D767B5DD694B3050A1319FFCBA3AF660127B6F03D5E4EEF79FB123C925C5E8B292CA20000000049454E44AE426082 + 0 + 747 + 753 + + + + + + 0 + 129 + 1 + 89504E470D0A1A0A0000000D4948445200000016000000160806000000C4B46C3B000000097048597300000B1200000B1201D2DD7EFC0000014349444154789CB595318E842014867F36DBE801986B48EB292C2CF70A24DC60B33730F122B6766332B195030C27B0A7650A170505C7995D5F620246BEF7F1F029D1DAE08CF838850AE0F3DD8579CEBCADF6FD40FE0CCE736686417AF71863C68547C16BA3A3092D9C840E2F6C94A1AAE4E6593784C8E6926C8CF74C85C8A2D075D26029EABAC6EDB6CC39E7D8DB4128E10C764D39E75133378458E0D7EBC2E9FB8178C66DDB7A0B29BD04815D07148544D3C44BF3528374DD74B9614D9B26435114CFC1E3386EA07B2184F0E6C1C3A3F4024AE3306B694DD7D00DD8D674CFCE8502D31BA494FA4DD240CAE93089D6E6AD2EB35000504AA1AA2A4829A1B5F11BC4EDF32481B116B128CB721EAFA11E1800D2F4E790F9FDFE358F39E71BA8074E121863BE3DC033EB18D40333C68EC87A118302CED72D4DC9CB0718837AE0FF8ED3FE790FB0A6A70FAB73B2680000000049454E44AE426082 + + + 89504E470D0A1A0A0000000D4948445200000016000000160806000000C4B46C3B000000097048597300000B1200000B1201D2DD7EFC0000014349444154789CB595318E842014867F36DBE801986B48EB292C2CF70A24DC60B33730F122B6766332B195030C27B0A7650A170505C7995D5F620246BEF7F1F029D1DAE08CF838850AE0F3DD8579CEBCADF6FD40FE0CCE736686417AF71863C68547C16BA3A3092D9C840E2F6C94A1AAE4E6593784C8E6926C8CF74C85C8A2D075D26029EABAC6EDB6CC39E7D8DB4128E10C764D39E75133378458E0D7EBC2E9FB8178C66DDB7A0B29BD04815D07148544D3C44BF3528374DD74B9614D9B26435114CFC1E3386EA07B2184F0E6C1C3A3F4024AE3306B694DD7D00DD8D674CFCE8502D31BA494FA4DD240CAE93089D6E6AD2EB35000504AA1AA2A4829A1B5F11BC4EDF32481B116B128CB721EAFA11E1800D2F4E790F9FDFE358F39E71BA8074E121863BE3DC033EB18D40333C68EC87A118302CED72D4DC9CB0718837AE0FF8ED3FE790FB0A6A70FAB73B2680000000049454E44AE426082 + + + 0 + 310 + 1 + + + 89504E470D0A1A0A0000000D4948445200000016000000160806000000C4B46C3B000000097048597300000B1200000B1201D2DD7EFC0000014349444154789CB595318E842014867F36DBE801986B48EB292C2CF70A24DC60B33730F122B6766332B195030C27B0A7650A170505C7995D5F620246BEF7F1F029D1DAE08CF838850AE0F3DD8579CEBCADF6FD40FE0CCE736686417AF71863C68547C16BA3A3092D9C840E2F6C94A1AAE4E6593784C8E6926C8CF74C85C8A2D075D26029EABAC6EDB6CC39E7D8DB4128E10C764D39E75133378458E0D7EBC2E9FB8178C66DDB7A0B29BD04815D07148544D3C44BF3528374DD74B9614D9B26435114CFC1E3386EA07B2184F0E6C1C3A3F4024AE3306B694DD7D00DD8D674CFCE8502D31BA494FA4DD240CAE93089D6E6AD2EB35000504AA1AA2A4829A1B5F11BC4EDF32481B116B128CB721EAFA11E1800D2F4E790F9FDFE358F39E71BA8074E121863BE3DC033EB18D40333C68EC87A118302CED72D4DC9CB0718837AE0FF8ED3FE790FB0A6A70FAB73B2680000000049454E44AE426082 + + + 0 + 828 + 1 + + + 89504E470D0A1A0A0000000D4948445200000016000000160806000000C4B46C3B000000097048597300000B1200000B1201D2DD7EFC0000014349444154789CB595318E842014867F36DBE801986B48EB292C2CF70A24DC60B33730F122B6766332B195030C27B0A7650A170505C7995D5F620246BEF7F1F029D1DAE08CF838850AE0F3DD8579CEBCADF6FD40FE0CCE736686417AF71863C68547C16BA3A3092D9C840E2F6C94A1AAE4E6593784C8E6926C8CF74C85C8A2D075D26029EABAC6EDB6CC39E7D8DB4128E10C764D39E75133378458E0D7EBC2E9FB8178C66DDB7A0B29BD04815D07148544D3C44BF3528374DD74B9614D9B26435114CFC1E3386EA07B2184F0E6C1C3A3F4024AE3306B694DD7D00DD8D674CFCE8502D31BA494FA4DD240CAE93089D6E6AD2EB35000504AA1AA2A4829A1B5F11BC4EDF32481B116B128CB721EAFA11E1800D2F4E790F9FDFE358F39E71BA8074E121863BE3DC033EB18D40333C68EC87A118302CED72D4DC9CB0718837AE0FF8ED3FE790FB0A6A70FAB73B2680000000049454E44AE426082 + + + 0 + 909 + 1 + + + 89504E470D0A1A0A0000000D4948445200000016000000160806000000C4B46C3B000000097048597300000B1200000B1201D2DD7EFC0000014349444154789CB595318E842014867F36DBE801986B48EB292C2CF70A24DC60B33730F122B6766332B195030C27B0A7650A170505C7995D5F620246BEF7F1F029D1DAE08CF838850AE0F3DD8579CEBCADF6FD40FE0CCE736686417AF71863C68547C16BA3A3092D9C840E2F6C94A1AAE4E6593784C8E6926C8CF74C85C8A2D075D26029EABAC6EDB6CC39E7D8DB4128E10C764D39E75133378458E0D7EBC2E9FB8178C66DDB7A0B29BD04815D07148544D3C44BF3528374DD74B9614D9B26435114CFC1E3386EA07B2184F0E6C1C3A3F4024AE3306B694DD7D00DD8D674CFCE8502D31BA494FA4DD240CAE93089D6E6AD2EB35000504AA1AA2A4829A1B5F11BC4EDF32481B116B128CB721EAFA11E1800D2F4E790F9FDFE358F39E71BA8074E121863BE3DC033EB18D40333C68EC87A118302CED72D4DC9CB0718837AE0FF8ED3FE790FB0A6A70FAB73B2680000000049454E44AE426082 + + + 1 + 909 + 1501 + + + 89504E470D0A1A0A0000000D4948445200000016000000160806000000C4B46C3B000000097048597300000B1200000B1201D2DD7EFC0000014349444154789CB595318E842014867F36DBE801986B48EB292C2CF70A24DC60B33730F122B6766332B195030C27B0A7650A170505C7995D5F620246BEF7F1F029D1DAE08CF838850AE0F3DD8579CEBCADF6FD40FE0CCE736686417AF71863C68547C16BA3A3092D9C840E2F6C94A1AAE4E6593784C8E6926C8CF74C85C8A2D075D26029EABAC6EDB6CC39E7D8DB4128E10C764D39E75133378458E0D7EBC2E9FB8178C66DDB7A0B29BD04815D07148544D3C44BF3528374DD74B9614D9B26435114CFC1E3386EA07B2184F0E6C1C3A3F4024AE3306B694DD7D00DD8D674CFCE8502D31BA494FA4DD240CAE93089D6E6AD2EB35000504AA1AA2A4829A1B5F11BC4EDF32481B116B128CB721EAFA11E1800D2F4E790F9FDFE358F39E71BA8074E121863BE3DC033EB18D40333C68EC87A118302CED72D4DC9CB0718837AE0FF8ED3FE790FB0A6A70FAB73B2680000000049454E44AE426082 + + + 1 + 828 + 1496 + + + + + + + 0 + 416 + 419 + 89504E470D0A1A0A0000000D4948445200000016000000160806000000C4B46C3B0000000467414D410000B18F0BFC610500000006624B474400FF00FF00FFA0BDA793000000097048597300000B1200000B1201D2DD7EFC0000000774494D4507D40413121A06B4BB82D8000001104944415478DAB595BD8D843010859F0F240C3550041550030109D5207AA00702121A20425A1120E19036085813007BD19E76F766CF631D3B916D8D3EBFF9B3C5F57AC327EC0B1F32F7F52008843184288AC8F3CB6514F7B5784D451088DB344DD8B68DADAEEF7B9465090018C7115A4390A9D8F79D0D7DE74B826DD4BEF335829765B1026B0D41160F00A494A8EB9AAD3A0C4373573CAAC8F3DC082D8A0200A0947AEA1612EC79DED33ECBB25F3E5555D9F531556913840D7E2C08A59673A111CC51EBFB3EAFDDA49456615343F2A7E27BC54F03BBAE8B344DD9C06118F88A1DC7618FB3552AD6753D3FC7C771FCFB8523C15A6B28A5D8E0799E79E0388ECFFF9ABAAE43DBB6689AC61A9624C9CFFA1BD8F889EA6695B56B0000000049454E44AE426082 + + + + + 0 + 603 + 612 + 89504E470D0A1A0A0000000D4948445200000016000000160806000000C4B46C3B0000000467414D410000B18F0BFC610500000006624B474400FF00FF00FFA0BDA793000000097048597300000B1200000B1201D2DD7EFC0000000774494D4507D40413121A06B4BB82D8000001104944415478DAB595BD8D843010859F0F240C3550041550030109D5207AA00702121A20425A1120E19036085813007BD19E76F766CF631D3B916D8D3EBFF9B3C5F57AC327EC0B1F32F7F52008843184288AC8F3CB6514F7B5784D451088DB344DD8B68DADAEEF7B9465090018C7115A4390A9D8F79D0D7DE74B826DD4BEF335829765B1026B0D41160F00A494A8EB9AAD3A0C4373573CAAC8F3DC082D8A0200A0947AEA1612EC79DED33ECBB25F3E5555D9F531556913840D7E2C08A59673A111CC51EBFB3EAFDDA49456615343F2A7E27BC54F03BBAE8B344DD9C06118F88A1DC7618FB3552AD6753D3FC7C771FCFB8523C15A6B28A5D8E0799E79E0388ECFFF9ABAAE43DBB6689AC61A9624C9CFFA1BD8F889EA6695B56B0000000049454E44AE426082 + + + 89504E470D0A1A0A0000000D4948445200000016000000160806000000C4B46C3B0000000467414D410000B18F0BFC610500000006624B474400FF00FF00FFA0BDA793000000097048597300000B1200000B1201D2DD7EFC0000000774494D4507D40413121A06B4BB82D8000001104944415478DAB595BD8D843010859F0F240C3550041550030109D5207AA00702121A20425A1120E19036085813007BD19E76F766CF631D3B916D8D3EBFF9B3C5F57AC327EC0B1F32F7F52008843184288AC8F3CB6514F7B5784D451088DB344DD8B68DADAEEF7B9465090018C7115A4390A9D8F79D0D7DE74B826DD4BEF335829765B1026B0D41160F00A494A8EB9AAD3A0C4373573CAAC8F3DC082D8A0200A0947AEA1612EC79DED33ECBB25F3E5555D9F531556913840D7E2C08A59673A111CC51EBFB3EAFDDA49456615343F2A7E27BC54F03BBAE8B344DD9C06118F88A1DC7618FB3552AD6753D3FC7C771FCFB8523C15A6B28A5D8E0799E79E0388ECFFF9ABAAE43DBB6689AC61A9624C9CFFA1BD8F889EA6695B56B0000000049454E44AE426082 + + + 0 + 380 + 406 + + + 89504E470D0A1A0A0000000D4948445200000016000000160806000000C4B46C3B0000000467414D410000B18F0BFC610500000006624B474400FF00FF00FFA0BDA793000000097048597300000B1200000B1201D2DD7EFC0000000774494D4507D40413121A06B4BB82D8000001104944415478DAB595BD8D843010859F0F240C3550041550030109D5207AA00702121A20425A1120E19036085813007BD19E76F766CF631D3B916D8D3EBFF9B3C5F57AC327EC0B1F32F7F52008843184288AC8F3CB6514F7B5784D451088DB344DD8B68DADAEEF7B9465090018C7115A4390A9D8F79D0D7DE74B826DD4BEF335829765B1026B0D41160F00A494A8EB9AAD3A0C4373573CAAC8F3DC082D8A0200A0947AEA1612EC79DED33ECBB25F3E5555D9F531556913840D7E2C08A59673A111CC51EBFB3EAFDDA49456615343F2A7E27BC54F03BBAE8B344DD9C06118F88A1DC7618FB3552AD6753D3FC7C771FCFB8523C15A6B28A5D8E0799E79E0388ECFFF9ABAAE43DBB6689AC61A9624C9CFFA1BD8F889EA6695B56B0000000049454E44AE426082 + + + 0 + 1337 + 1349 + + + 89504E470D0A1A0A0000000D4948445200000016000000160806000000C4B46C3B0000000467414D410000B18F0BFC610500000006624B474400FF00FF00FFA0BDA793000000097048597300000B1200000B1201D2DD7EFC0000000774494D4507D40413121A06B4BB82D8000001104944415478DAB595BD8D843010859F0F240C3550041550030109D5207AA00702121A20425A1120E19036085813007BD19E76F766CF631D3B916D8D3EBFF9B3C5F57AC327EC0B1F32F7F52008843184288AC8F3CB6514F7B5784D451088DB344DD8B68DADAEEF7B9465090018C7115A4390A9D8F79D0D7DE74B826DD4BEF335829765B1026B0D41160F00A494A8EB9AAD3A0C4373573CAAC8F3DC082D8A0200A0947AEA1612EC79DED33ECBB25F3E5555D9F531556913840D7E2C08A59673A111CC51EBFB3EAFDDA49456615343F2A7E27BC54F03BBAE8B344DD9C06118F88A1DC7618FB3552AD6753D3FC7C771FCFB8523C15A6B28A5D8E0799E79E0388ECFFF9ABAAE43DBB6689AC61A9624C9CFFA1BD8F889EA6695B56B0000000049454E44AE426082 + + + 0 + 1344 + 1358 + + + 89504E470D0A1A0A0000000D4948445200000016000000160806000000C4B46C3B0000000467414D410000B18F0BFC610500000006624B474400FF00FF00FFA0BDA793000000097048597300000B1200000B1201D2DD7EFC0000000774494D4507D40413121A06B4BB82D8000001104944415478DAB595BD8D843010859F0F240C3550041550030109D5207AA00702121A20425A1120E19036085813007BD19E76F766CF631D3B916D8D3EBFF9B3C5F57AC327EC0B1F32F7F52008843184288AC8F3CB6514F7B5784D451088DB344DD8B68DADAEEF7B9465090018C7115A4390A9D8F79D0D7DE74B826DD4BEF335829765B1026B0D41160F00A494A8EB9AAD3A0C4373573CAAC8F3DC082D8A0200A0947AEA1612EC79DED33ECBB25F3E5555D9F531556913840D7E2C08A59673A111CC51EBFB3EAFDDA49456615343F2A7E27BC54F03BBAE8B344DD9C06118F88A1DC7618FB3552AD6753D3FC7C771FCFB8523C15A6B28A5D8E0799E79E0388ECFFF9ABAAE43DBB6689AC61A9624C9CFFA1BD8F889EA6695B56B0000000049454E44AE426082 + + + 0 + 1400 + 1406 + + + 89504E470D0A1A0A0000000D4948445200000016000000160806000000C4B46C3B0000000467414D410000B18F0BFC610500000006624B474400FF00FF00FFA0BDA793000000097048597300000B1200000B1201D2DD7EFC0000000774494D4507D40413121A06B4BB82D8000001104944415478DAB595BD8D843010859F0F240C3550041550030109D5207AA00702121A20425A1120E19036085813007BD19E76F766CF631D3B916D8D3EBFF9B3C5F57AC327EC0B1F32F7F52008843184288AC8F3CB6514F7B5784D451088DB344DD8B68DADAEEF7B9465090018C7115A4390A9D8F79D0D7DE74B826DD4BEF335829765B1026B0D41160F00A494A8EB9AAD3A0C4373573CAAC8F3DC082D8A0200A0947AEA1612EC79DED33ECBB25F3E5555D9F531556913840D7E2C08A59673A111CC51EBFB3EAFDDA49456615343F2A7E27BC54F03BBAE8B344DD9C06118F88A1DC7618FB3552AD6753D3FC7C771FCFB8523C15A6B28A5D8E0799E79E0388ECFFF9ABAAE43DBB6689AC61A9624C9CFFA1BD8F889EA6695B56B0000000049454E44AE426082 + + + 0 + 1410 + 1416 + + + 89504E470D0A1A0A0000000D4948445200000016000000160806000000C4B46C3B0000000467414D410000B18F0BFC610500000006624B474400FF00FF00FFA0BDA793000000097048597300000B1200000B1201D2DD7EFC0000000774494D4507D40413121A06B4BB82D8000001104944415478DAB595BD8D843010859F0F240C3550041550030109D5207AA00702121A20425A1120E19036085813007BD19E76F766CF631D3B916D8D3EBFF9B3C5F57AC327EC0B1F32F7F52008843184288AC8F3CB6514F7B5784D451088DB344DD8B68DADAEEF7B9465090018C7115A4390A9D8F79D0D7DE74B826DD4BEF335829765B1026B0D41160F00A494A8EB9AAD3A0C4373573CAAC8F3DC082D8A0200A0947AEA1612EC79DED33ECBB25F3E5555D9F531556913840D7E2C08A59673A111CC51EBFB3EAFDDA49456615343F2A7E27BC54F03BBAE8B344DD9C06118F88A1DC7618FB3552AD6753D3FC7C771FCFB8523C15A6B28A5D8E0799E79E0388ECFFF9ABAAE43DBB6689AC61A9624C9CFFA1BD8F889EA6695B56B0000000049454E44AE426082 + + + 0 + 1363 + 1369 + + + + + 89504E470D0A1A0A0000000D4948445200000016000000160806000000C4B46C3B0000000467414D410000B18F0BFC610500000006624B474400FF00FF00FFA0BDA793000000097048597300000B1200000B1201D2DD7EFC0000000774494D4507D40413121908782EFC1C000001F94944415478DAB595BD6E1A4114460F11CA8A057714960DC52A91A224268D3B37CC3B50B8A1A2E24D9078013F05EFB0147111638B8602115104105880562808D0EECE4E8AC823C3FE9858F14823CD7CAB3D7BF7DEEFCEA4361BC55B8C77BCD1481F0AA6997AF117361B957A55C4BEEFEF4DD77599CD66B45A2D2CCB3AEAE3E928310882D03E08029452944A252A950AA699524991C782955221F0935EAFD7715D37111E09965286C0524AA49400ACD76B6AB55A223C126CDEDD85B413E0BB5228A558AFD70054ABD558783A2E476D2142DA1990BDBE66381C6A4D0881E3382178EAB0414C33A5E6F339F95E8FB6107C7E7CD4510E06031A8D06CBE512D775F53BBBDD8ED168C48BE0E9744A10049C0D06B485E0E3788CEFFB388EC36432C1711C3CCFD375E8F7FB349BCD3D703ACEC74110F0CBB228DB36ED4281B26DE3170A589645B158DCB3E4F342273688945237C7B058FC0B17820FE3318661609A26B95C4ECF4C26739CDD3CCFD3D6FA349BD11682B26DD33F3D05DF8F0CE4681FFBBECFD7C542437BF97C24340E1C9B8AE7D09FE7E71886816118BA511617177A7D7804C446FC653ED73E3EF4F3C9FDFD5E91FF29150065DB0E693F32197E5F5EEAFDD35ADEDC1C07EE64B3789E179523DEDFDE02E05E5DE9B57C78380EBCDD6EE976BB89E7ED37A0D3E900B05AAD42CF233BEFB5D751624BFFAFF10766435DEAC97F88980000000049454E44AE426082 + + + 0 + 731 + 734 + + + 89504E470D0A1A0A0000000D4948445200000016000000160806000000C4B46C3B0000000467414D410000B18F0BFC610500000006624B474400FF00FF00FFA0BDA793000000097048597300000B1200000B1201D2DD7EFC0000000774494D4507D40413121908782EFC1C000001F94944415478DAB595BD6E1A4114460F11CA8A057714960DC52A91A224268D3B37CC3B50B8A1A2E24D9078013F05EFB0147111638B8602115104105880562808D0EECE4E8AC823C3FE9858F14823CD7CAB3D7BF7DEEFCEA4361BC55B8C77BCD1481F0AA6997AF117361B957A55C4BEEFEF4DD77599CD66B45A2D2CCB3AEAE3E928310882D03E08029452944A252A950AA699524991C782955221F0935EAFD7715D37111E09965286C0524AA49400ACD76B6AB55A223C126CDEDD85B413E0BB5228A558AFD70054ABD558783A2E476D2142DA1990BDBE66381C6A4D0881E3382178EAB0414C33A5E6F339F95E8FB6107C7E7CD4510E06031A8D06CBE512D775F53BBBDD8ED168C48BE0E9744A10049C0D06B485E0E3788CEFFB388EC36432C1711C3CCFD375E8F7FB349BCD3D703ACEC74110F0CBB228DB36ED4281B26DE3170A589645B158DCB3E4F342273688945237C7B058FC0B17820FE3318661609A26B95C4ECF4C26739CDD3CCFD3D6FA349BD11682B26DD33F3D05DF8F0CE4681FFBBECFD7C542437BF97C24340E1C9B8AE7D09FE7E71886816118BA511617177A7D7804C446FC653ED73E3EF4F3C9FDFD5E91FF29150065DB0E693F32197E5F5EEAFDD35ADEDC1C07EE64B3789E179523DEDFDE02E05E5DE9B57C78380EBCDD6EE976BB89E7ED37A0D3E900B05AAD42CF233BEFB5D751624BFFAFF10766435DEAC97F88980000000049454E44AE426082 + + + 0 + 1087 + 1093 + + + 89504E470D0A1A0A0000000D4948445200000016000000160806000000C4B46C3B0000000467414D410000B18F0BFC610500000006624B474400FF00FF00FFA0BDA793000000097048597300000B1200000B1201D2DD7EFC0000000774494D4507D40413121908782EFC1C000001F94944415478DAB595BD6E1A4114460F11CA8A057714960DC52A91A224268D3B37CC3B50B8A1A2E24D9078013F05EFB0147111638B8602115104105880562808D0EECE4E8AC823C3FE9858F14823CD7CAB3D7BF7DEEFCEA4361BC55B8C77BCD1481F0AA6997AF117361B957A55C4BEEFEF4DD77599CD66B45A2D2CCB3AEAE3E928310882D03E08029452944A252A950AA699524991C782955221F0935EAFD7715D37111E09965286C0524AA49400ACD76B6AB55A223C126CDEDD85B413E0BB5228A558AFD70054ABD558783A2E476D2142DA1990BDBE66381C6A4D0881E3382178EAB0414C33A5E6F339F95E8FB6107C7E7CD4510E06031A8D06CBE512D775F53BBBDD8ED168C48BE0E9744A10049C0D06B485E0E3788CEFFB388EC36432C1711C3CCFD375E8F7FB349BCD3D703ACEC74110F0CBB228DB36ED4281B26DE3170A589645B158DCB3E4F342273688945237C7B058FC0B17820FE3318661609A26B95C4ECF4C26739CDD3CCFD3D6FA349BD11682B26DD33F3D05DF8F0CE4681FFBBECFD7C542437BF97C24340E1C9B8AE7D09FE7E71886816118BA511617177A7D7804C446FC653ED73E3EF4F3C9FDFD5E91FF29150065DB0E693F32197E5F5EEAFDD35ADEDC1C07EE64B3789E179523DEDFDE02E05E5DE9B57C78380EBCDD6EE976BB89E7ED37A0D3E900B05AAD42CF233BEFB5D751624BFFAFF10766435DEAC97F88980000000049454E44AE426082 + + + 0 + 1090 + 1097 + + + 89504E470D0A1A0A0000000D4948445200000016000000160806000000C4B46C3B0000000467414D410000B18F0BFC610500000006624B474400FF00FF00FFA0BDA793000000097048597300000B1200000B1201D2DD7EFC0000000774494D4507D40413121908782EFC1C000001F94944415478DAB595BD6E1A4114460F11CA8A057714960DC52A91A224268D3B37CC3B50B8A1A2E24D9078013F05EFB0147111638B8602115104105880562808D0EECE4E8AC823C3FE9858F14823CD7CAB3D7BF7DEEFCEA4361BC55B8C77BCD1481F0AA6997AF117361B957A55C4BEEFEF4DD77599CD66B45A2D2CCB3AEAE3E928310882D03E08029452944A252A950AA699524991C782955221F0935EAFD7715D37111E09965286C0524AA49400ACD76B6AB55A223C126CDEDD85B413E0BB5228A558AFD70054ABD558783A2E476D2142DA1990BDBE66381C6A4D0881E3382178EAB0414C33A5E6F339F95E8FB6107C7E7CD4510E06031A8D06CBE512D775F53BBBDD8ED168C48BE0E9744A10049C0D06B485E0E3788CEFFB388EC36432C1711C3CCFD375E8F7FB349BCD3D703ACEC74110F0CBB228DB36ED4281B26DE3170A589645B158DCB3E4F342273688945237C7B058FC0B17820FE3318661609A26B95C4ECF4C26739CDD3CCFD3D6FA349BD11682B26DD33F3D05DF8F0CE4681FFBBECFD7C542437BF97C24340E1C9B8AE7D09FE7E71886816118BA511617177A7D7804C446FC653ED73E3EF4F3C9FDFD5E91FF29150065DB0E693F32197E5F5EEAFDD35ADEDC1C07EE64B3789E179523DEDFDE02E05E5DE9B57C78380EBCDD6EE976BB89E7ED37A0D3E900B05AAD42CF233BEFB5D751624BFFAFF10766435DEAC97F88980000000049454E44AE426082 + + + 0 + 1440 + 1443 + + + 89504E470D0A1A0A0000000D4948445200000016000000160806000000C4B46C3B0000000467414D410000B18F0BFC610500000006624B474400FF00FF00FFA0BDA793000000097048597300000B1200000B1201D2DD7EFC0000000774494D4507D40413121908782EFC1C000001F94944415478DAB595BD6E1A4114460F11CA8A057714960DC52A91A224268D3B37CC3B50B8A1A2E24D9078013F05EFB0147111638B8602115104105880562808D0EECE4E8AC823C3FE9858F14823CD7CAB3D7BF7DEEFCEA4361BC55B8C77BCD1481F0AA6997AF117361B957A55C4BEEFEF4DD77599CD66B45A2D2CCB3AEAE3E928310882D03E08029452944A252A950AA699524991C782955221F0935EAFD7715D37111E09965286C0524AA49400ACD76B6AB55A223C126CDEDD85B413E0BB5228A558AFD70054ABD558783A2E476D2142DA1990BDBE66381C6A4D0881E3382178EAB0414C33A5E6F339F95E8FB6107C7E7CD4510E06031A8D06CBE512D775F53BBBDD8ED168C48BE0E9744A10049C0D06B485E0E3788CEFFB388EC36432C1711C3CCFD375E8F7FB349BCD3D703ACEC74110F0CBB228DB36ED4281B26DE3170A589645B158DCB3E4F342273688945237C7B058FC0B17820FE3318661609A26B95C4ECF4C26739CDD3CCFD3D6FA349BD11682B26DD33F3D05DF8F0CE4681FFBBECFD7C542437BF97C24340E1C9B8AE7D09FE7E71886816118BA511617177A7D7804C446FC653ED73E3EF4F3C9FDFD5E91FF29150065DB0E693F32197E5F5EEAFDD35ADEDC1C07EE64B3789E179523DEDFDE02E05E5DE9B57C78380EBCDD6EE976BB89E7ED37A0D3E900B05AAD42CF233BEFB5D751624BFFAFF10766435DEAC97F88980000000049454E44AE426082 + + + 0 + 1448 + 1451 + + + 89504E470D0A1A0A0000000D4948445200000016000000160806000000C4B46C3B0000000467414D410000B18F0BFC610500000006624B474400FF00FF00FFA0BDA793000000097048597300000B1200000B1201D2DD7EFC0000000774494D4507D40413121908782EFC1C000001F94944415478DAB595BD6E1A4114460F11CA8A057714960DC52A91A224268D3B37CC3B50B8A1A2E24D9078013F05EFB0147111638B8602115104105880562808D0EECE4E8AC823C3FE9858F14823CD7CAB3D7BF7DEEFCEA4361BC55B8C77BCD1481F0AA6997AF117361B957A55C4BEEFEF4DD77599CD66B45A2D2CCB3AEAE3E928310882D03E08029452944A252A950AA699524991C782955221F0935EAFD7715D37111E09965286C0524AA49400ACD76B6AB55A223C126CDEDD85B413E0BB5228A558AFD70054ABD558783A2E476D2142DA1990BDBE66381C6A4D0881E3382178EAB0414C33A5E6F339F95E8FB6107C7E7CD4510E06031A8D06CBE512D775F53BBBDD8ED168C48BE0E9744A10049C0D06B485E0E3788CEFFB388EC36432C1711C3CCFD375E8F7FB349BCD3D703ACEC74110F0CBB228DB36ED4281B26DE3170A589645B158DCB3E4F342273688945237C7B058FC0B17820FE3318661609A26B95C4ECF4C26739CDD3CCFD3D6FA349BD11682B26DD33F3D05DF8F0CE4681FFBBECFD7C542437BF97C24340E1C9B8AE7D09FE7E71886816118BA511617177A7D7804C446FC653ED73E3EF4F3C9FDFD5E91FF29150065DB0E693F32197E5F5EEAFDD35ADEDC1C07EE64B3789E179523DEDFDE02E05E5DE9B57C78380EBCDD6EE976BB89E7ED37A0D3E900B05AAD42CF233BEFB5D751624BFFAFF10766435DEAC97F88980000000049454E44AE426082 + + + 0 + 1477 + 1478 + + + 89504E470D0A1A0A0000000D4948445200000016000000160806000000C4B46C3B0000000467414D410000B18F0BFC610500000006624B474400FF00FF00FFA0BDA793000000097048597300000B1200000B1201D2DD7EFC0000000774494D4507D40413121908782EFC1C000001F94944415478DAB595BD6E1A4114460F11CA8A057714960DC52A91A224268D3B37CC3B50B8A1A2E24D9078013F05EFB0147111638B8602115104105880562808D0EECE4E8AC823C3FE9858F14823CD7CAB3D7BF7DEEFCEA4361BC55B8C77BCD1481F0AA6997AF117361B957A55C4BEEFEF4DD77599CD66B45A2D2CCB3AEAE3E928310882D03E08029452944A252A950AA699524991C782955221F0935EAFD7715D37111E09965286C0524AA49400ACD76B6AB55A223C126CDEDD85B413E0BB5228A558AFD70054ABD558783A2E476D2142DA1990BDBE66381C6A4D0881E3382178EAB0414C33A5E6F339F95E8FB6107C7E7CD4510E06031A8D06CBE512D775F53BBBDD8ED168C48BE0E9744A10049C0D06B485E0E3788CEFFB388EC36432C1711C3CCFD375E8F7FB349BCD3D703ACEC74110F0CBB228DB36ED4281B26DE3170A589645B158DCB3E4F342273688945237C7B058FC0B17820FE3318661609A26B95C4ECF4C26739CDD3CCFD3D6FA349BD11682B26DD33F3D05DF8F0CE4681FFBBECFD7C542437BF97C24340E1C9B8AE7D09FE7E71886816118BA511617177A7D7804C446FC653ED73E3EF4F3C9FDFD5E91FF29150065DB0E693F32197E5F5EEAFDD35ADEDC1C07EE64B3789E179523DEDFDE02E05E5DE9B57C78380EBCDD6EE976BB89E7ED37A0D3E900B05AAD42CF233BEFB5D751624BFFAFF10766435DEAC97F88980000000049454E44AE426082 + + + 0 + 1518 + 1519 + + + + + + 89504E470D0A1A0A0000000D4948445200000016000000160806000000C4B46C3B0000000467414D410000B18F0BFC610500000006624B474400FF00FF00FFA0BDA793000000097048597300000B1200000B1201D2DD7EFC0000000774494D4507D40413121D22C7F9F0CE000001454944415478DAB595B1CD833010859F5114842394092818801DD8216DAA545925D925BBD0D2D021E82C240491B1B954A00403F11FFD9CE4C2CFD277CF3E9FCD9A86B04538D82876538173F6750B4D43EC27C74AA98F21A5445996783C1E08C3D02AF96E4EECFBDE98F77D0F22421445389D4EE09CD19AF345301119E041BF5EAF9052AEC267C15A6B03ACB586D61A0050D7352E97CB2A7CB774C653F0A01111EABA06009CCFE745B8B5632282E338381C0EC8B26C5C8BE318420803BE087E2FE090E4783CA2280ADC6E374829C7F5E7F36930D8B4F3386754148501564A4108813CCF218440D77563C2344D71BFDFF1D5B152CAB8724404DFF7118621822098DD91D5190F37601AAEEB62BFDF7F689EE7D981BBAE5B042F19B176AC94DA06FC17C7D37AAC166F13C79B8187B7E1DFC16DDB2249126B705555769DF7EB77F4DE796CABCFF4059E5629D2F65CCAFE0000000049454E44AE426082 + + + 0 + 101 + 117 + + + 89504E470D0A1A0A0000000D4948445200000016000000160806000000C4B46C3B0000000467414D410000B18F0BFC610500000006624B474400FF00FF00FFA0BDA793000000097048597300000B1200000B1201D2DD7EFC0000000774494D4507D40413121D22C7F9F0CE000001454944415478DAB595B1CD833010859F5114842394092818801DD8216DAA545925D925BBD0D2D021E82C240491B1B954A00403F11FFD9CE4C2CFD277CF3E9FCD9A86B04538D82876538173F6750B4D43EC27C74AA98F21A5445996783C1E08C3D02AF96E4EECFBDE98F77D0F22421445389D4EE09CD19AF345301119E041BF5EAF9052AEC267C15A6B03ACB586D61A0050D7352E97CB2A7CB774C653F0A01111EABA06009CCFE745B8B5632282E338381C0EC8B26C5C8BE318420803BE087E2FE090E4783CA2280ADC6E374829C7F5E7F36930D8B4F3386754148501564A4108813CCF218440D77563C2344D71BFDFF1D5B152CAB8724404DFF7118621822098DD91D5190F37601AAEEB62BFDF7F689EE7D981BBAE5B042F19B176AC94DA06FC17C7D37AAC166F13C79B8187B7E1DFC16DDB2249126B705555769DF7EB77F4DE796CABCFF4059E5629D2F65CCAFE0000000049454E44AE426082 + + + 0 + 576 + 597 + + + 89504E470D0A1A0A0000000D4948445200000016000000160806000000C4B46C3B0000000467414D410000B18F0BFC610500000006624B474400FF00FF00FFA0BDA793000000097048597300000B1200000B1201D2DD7EFC0000000774494D4507D40413121D22C7F9F0CE000001454944415478DAB595B1CD833010859F5114842394092818801DD8216DAA545925D925BBD0D2D021E82C240491B1B954A00403F11FFD9CE4C2CFD277CF3E9FCD9A86B04538D82876538173F6750B4D43EC27C74AA98F21A5445996783C1E08C3D02AF96E4EECFBDE98F77D0F22421445389D4EE09CD19AF345301119E041BF5EAF9052AEC267C15A6B03ACB586D61A0050D7352E97CB2A7CB774C653F0A01111EABA06009CCFE745B8B5632282E338381C0EC8B26C5C8BE318420803BE087E2FE090E4783CA2280ADC6E374829C7F5E7F36930D8B4F3386754148501564A4108813CCF218440D77563C2344D71BFDFF1D5B152CAB8724404DFF7118621822098DD91D5190F37601AAEEB62BFDF7F689EE7D981BBAE5B042F19B176AC94DA06FC17C7D37AAC166F13C79B8187B7E1DFC16DDB2249126B705555769DF7EB77F4DE796CABCFF4059E5629D2F65CCAFE0000000049454E44AE426082 + + + 0 + 988 + 1046 + + + 89504E470D0A1A0A0000000D4948445200000016000000160806000000C4B46C3B0000000467414D410000B18F0BFC610500000006624B474400FF00FF00FFA0BDA793000000097048597300000B1200000B1201D2DD7EFC0000000774494D4507D40413121D22C7F9F0CE000001454944415478DAB595B1CD833010859F5114842394092818801DD8216DAA545925D925BBD0D2D021E82C240491B1B954A00403F11FFD9CE4C2CFD277CF3E9FCD9A86B04538D82876538173F6750B4D43EC27C74AA98F21A5445996783C1E08C3D02AF96E4EECFBDE98F77D0F22421445389D4EE09CD19AF345301119E041BF5EAF9052AEC267C15A6B03ACB586D61A0050D7352E97CB2A7CB774C653F0A01111EABA06009CCFE745B8B5632282E338381C0EC8B26C5C8BE318420803BE087E2FE090E4783CA2280ADC6E374829C7F5E7F36930D8B4F3386754148501564A4108813CCF218440D77563C2344D71BFDFF1D5B152CAB8724404DFF7118621822098DD91D5190F37601AAEEB62BFDF7F689EE7D981BBAE5B042F19B176AC94DA06FC17C7D37AAC166F13C79B8187B7E1DFC16DDB2249126B705555769DF7EB77F4DE796CABCFF4059E5629D2F65CCAFE0000000049454E44AE426082 + + + 0 + 1002 + 1041 + + + 89504E470D0A1A0A0000000D4948445200000016000000160806000000C4B46C3B0000000467414D410000B18F0BFC610500000006624B474400FF00FF00FFA0BDA793000000097048597300000B1200000B1201D2DD7EFC0000000774494D4507D40413121D22C7F9F0CE000001454944415478DAB595B1CD833010859F5114842394092818801DD8216DAA545925D925BBD0D2D021E82C240491B1B954A00403F11FFD9CE4C2CFD277CF3E9FCD9A86B04538D82876538173F6750B4D43EC27C74AA98F21A5445996783C1E08C3D02AF96E4EECFBDE98F77D0F22421445389D4EE09CD19AF345301119E041BF5EAF9052AEC267C15A6B03ACB586D61A0050D7352E97CB2A7CB774C653F0A01111EABA06009CCFE745B8B5632282E338381C0EC8B26C5C8BE318420803BE087E2FE090E4783CA2280ADC6E374829C7F5E7F36930D8B4F3386754148501564A4108813CCF218440D77563C2344D71BFDFF1D5B152CAB8724404DFF7118621822098DD91D5190F37601AAEEB62BFDF7F689EE7D981BBAE5B042F19B176AC94DA06FC17C7D37AAC166F13C79B8187B7E1DFC16DDB2249126B705555769DF7EB77F4DE796CABCFF4059E5629D2F65CCAFE0000000049454E44AE426082 + + + 0 + 874 + 897 + + + 89504E470D0A1A0A0000000D4948445200000016000000160806000000C4B46C3B0000000467414D410000B18F0BFC610500000006624B474400FF00FF00FFA0BDA793000000097048597300000B1200000B1201D2DD7EFC0000000774494D4507D40413121D22C7F9F0CE000001454944415478DAB595B1CD833010859F5114842394092818801DD8216DAA545925D925BBD0D2D021E82C240491B1B954A00403F11FFD9CE4C2CFD277CF3E9FCD9A86B04538D82876538173F6750B4D43EC27C74AA98F21A5445996783C1E08C3D02AF96E4EECFBDE98F77D0F22421445389D4EE09CD19AF345301119E041BF5EAF9052AEC267C15A6B03ACB586D61A0050D7352E97CB2A7CB774C653F0A01111EABA06009CCFE745B8B5632282E338381C0EC8B26C5C8BE318420803BE087E2FE090E4783CA2280ADC6E374829C7F5E7F36930D8B4F3386754148501564A4108813CCF218440D77563C2344D71BFDFF1D5B152CAB8724404DFF7118621822098DD91D5190F37601AAEEB62BFDF7F689EE7D981BBAE5B042F19B176AC94DA06FC17C7D37AAC166F13C79B8187B7E1DFC16DDB2249126B705555769DF7EB77F4DE796CABCFF4059E5629D2F65CCAFE0000000049454E44AE426082 + + + 0 + 1061 + 1067 + + + 89504E470D0A1A0A0000000D4948445200000016000000160806000000C4B46C3B0000000467414D410000B18F0BFC610500000006624B474400FF00FF00FFA0BDA793000000097048597300000B1200000B1201D2DD7EFC0000000774494D4507D40413121D22C7F9F0CE000001454944415478DAB595B1CD833010859F5114842394092818801DD8216DAA545925D925BBD0D2D021E82C240491B1B954A00403F11FFD9CE4C2CFD277CF3E9FCD9A86B04538D82876538173F6750B4D43EC27C74AA98F21A5445996783C1E08C3D02AF96E4EECFBDE98F77D0F22421445389D4EE09CD19AF345301119E041BF5EAF9052AEC267C15A6B03ACB586D61A0050D7352E97CB2A7CB774C653F0A01111EABA06009CCFE745B8B5632282E338381C0EC8B26C5C8BE318420803BE087E2FE090E4783CA2280ADC6E374829C7F5E7F36930D8B4F3386754148501564A4108813CCF218440D77563C2344D71BFDFF1D5B152CAB8724404DFF7118621822098DD91D5190F37601AAEEB62BFDF7F689EE7D981BBAE5B042F19B176AC94DA06FC17C7D37AAC166F13C79B8187B7E1DFC16DDB2249126B705555769DF7EB77F4DE796CABCFF4059E5629D2F65CCAFE0000000049454E44AE426082 + + + 0 + 1051 + 1057 + + + + + + + +
-- 1.7.1