Oleg

Ответы в темах

Просмотр 15 сообщений - с 16 по 30 (из 98 всего)
  • Автор
    Сообщения
  • в ответ на: Изменение меню #37226
    Oleg
    Участник

    Во внутреннее окно есть меню, в фрейм нет меню. Добавил в два фрейма табличный вид, примерно так : https://disk.yandex.ru/i/qZ_Cwl8SWTlUHg

    Но меню отчетов с выбором параметров все равно пока не добавить в меню Представления без меню …

    в ответ на: Изменение меню #37224
    Oleg
    Участник

    Проверил, да, там нет меню — только фрейм /View/_ваш_номер

    Oleg
    Участник

    Михаил, теперь работает корректно. Проверили с offset в минус и плюс — 28, 30 и 31 день в месяце учитывает. Високосный прошлый февраль тоже проверили.
    Спасибо!

    в ответ на: Изменение меню #37200
    Oleg
    Участник

    Действительно, форма параметров отчёта использует шаблон с меню и т.д. Запишу пожелание, чтобы была возможность открыть параметры без общего шаблона.

    Спасибо

    Oleg
    Участник

    Спасибо!

    в ответ на: Изменение меню #37168
    Oleg
    Участник

    Если непонятно объяснил, скриншот по ссылке: https://disk.yandex.ru/i/t3MS3hTWPRUkdQ

    в ответ на: Изменение меню #37167
    Oleg
    Участник

    Михаил, добрый день.
    Не подскажите, по какой ссылке?
    Если сслыку (см. ниже) вставить в Представление и указать тип Web page, то форма ввода параметров отобразится во фрейме, но отобразится копия страницы SCADA — видно нарушение структуры.
    http://localhost:10008/ElasticReport/ReportArgs/1

    в ответ на: Изменение меню #37161
    Oleg
    Участник

    Печально это конечно. Без плагина Гибкий отчет все равно есть меню Отчеты, где можно скачать отчет по исторический данным.
    Мне казалось, можно JS подправить в папке C:\Program Files\SCADA\ScadaWeb\wwwroot\js чтобы перенести меню.
    Я не умею, вот и решил спросить, может кто делал и напишет..

    Oleg
    Участник

    Михаил, ниже содержание отчета:

    
    <?xml version="1.0" encoding="utf-8" ?>
    <ElasticReport>
      <!-- Input form options -->
      <InputOptions>
        <!-- User can select report period -->
        <SelectPeriod>true</SelectPeriod>
        <!-- User can select archive -->
        <SelectArchive>true</SelectArchive>
        <!-- User can select channels -->
        <SelectChannels>false</SelectChannels>
        <!-- User can select output format -->
        <SelectFormat>true</SelectFormat>
        <!-- Defines how the period is entered. Possible values: SingleDate, SingleMonth, DatePeriod, DateTimePeriod, MonthPeriod -->
        <PeriodControl>MonthPeriod</PeriodControl>
        <!-- Maximum report period in days -->
        <MaxPeriod>365</MaxPeriod>
        <!-- Default archive code -->
        <DefaultArchive>Hour</DefaultArchive>
        <!-- Default output format: Pdf, Xlsx, Html -->
        <DefaultFormat>Pdf</DefaultFormat>
      </InputOptions>
    
      <!-- Output options. Page format and orientation only work for PDF -->
      <OutputOptions>
        <!-- Page format: A0, A1, A2, A3, A4, A5, A6, B5, Letter, Legal, Ledger or P11x17 -->
        <PageFormat>A4</PageFormat>
        <!-- Page orientation: Portrait or Landscape -->
        <Orientation>Landscape</Orientation>
        <!-- Specifies custom report styles -->
        <StyleSheet></StyleSheet>
      </OutputOptions>
    
      <!--
      Report document consists of sections. Section is a separate block of displayed data.
      Section contains elements such as a table, columns, rows, and cells.
      Section working period is based on the specified report period and shifted according to the section data options.
    
      Element attributes are inherited from an element to its children and applied to suitable elements.
      The following element attributes are supported:
      * cnlNum - channel number,
      * cnlIdx - channel index if channels are specified as input parameters,
      * calcType - calculation type,
      * calcSum - whether to calculate a sum of a column or row,
      * calcAvg - whether to calculate an average of a column or row,
      * calcMin - whether to calculate a minimum value of a column or row,
      * calcMax - whether to calculate a maximum value of a column or row,
      * colStyle - column style,
      * rowStyle - row style,
      * cellStyle - cell style.
          
      Table attributes:
      * border - whether to display table border.
          
      The possible values of the calcType attribute:
      * Val - the value of the bound channel at the processed timestamp,
      * FirstVal - the value at the first timestamp of the working period,
      * LastVal - the value at the last timestamp of the working period,
      * Diff - the difference between the values at the processed and previous timestamps,
      * DiffNext - the difference between the values at the next and processed timestamps,
      * Const - the constant value to insert in the corresponding cell,
      * Formula - the formula to insert in the corresponding cell, supported only by Excel.
            
      Style names follow the rules:
      Column style name must be in the form "col-*".
      Row style name must be in the form "row-*".
      Cell style name must be in the form "cell-*".
      
      Variables can be used inside an element name and inside a constant value.
      The following variables are supported: 
      {CnlNum} - channel number,
      {CnlName} - channel name.
      -->
    
      <Document>
        <DocumentOptions>
          <!-- Heading of the report -->
          <Heading>Отчет о климате</Heading>
          <!-- Show or hide heading -->
          <HeadingVisible>true</HeadingVisible>
          <!-- Set text color depending on channel status -->
          <UseStatusColor>true</UseStatusColor>
        </DocumentOptions>
    
        <!-- 
          Section of TimeData type.
          Supported calculation types: Val, Diff, DiffNext, Const, Formula.
          -->
        <Section type="TimeData">
          <SectionOptions>
            <!-- Unique section ID. Use Latin characters without spaces -->
            <ID>Section1</ID>
            <!-- Subheading of the section -->
            <Subheading>TimeData Section</Subheading>
            <!-- Show or hide subheading -->
            <SubheadingVisible>false</SubheadingVisible>
            <!-- Start the section on a new page -->
            <PrependPageBreak>false</PrependPageBreak>
          </SectionOptions>
    
          <DataOptions>
            <!-- Prepend additional time before the report start time -->
            <PrependTime>0:00:00</PrependTime>
            <!-- Append additional time after the report end time -->
            <AppendTime>0:00:00</AppendTime>
            <!-- Skip the first timestamp from output -->
            <SkipFirst>false</SkipFirst>
            <!-- Skip the last timestamp from output -->
            <SkipLast>false</SkipLast>
            <!-- Defines how timestamps are enumerated. Possible values: All, Step, Hour, Day, Month, Exact, BeginEnd -->
            <TimeDetailing>Hour</TimeDetailing>
            <!-- Time step -->
            <TimeStep>1:00:00</TimeStep>
            <!-- Times of day separated by commas -->
            <ExactTimes>0:00, 12:00</ExactTimes>
            <!-- Defines how the date and time column is displayed -->
            <ShowDatesOnly>false</ShowDatesOnly>
          </DataOptions>
    
          <Table border="true">
            <ColumnGroup name="Показания датчиков:">
              <Column name="{CnlName}" cnlNum="900000" calcType="Val" />
              <Column name="{CnlName}" cnlNum="900002" calcType="Val" />
              <Column name="{CnlName}" cnlNum="900001" calcType="Val" />
              <Column name="{CnlName}" cnlNum="900003" calcType="Val" />		  		  
            </ColumnGroup>
          </Table>
    	  
    	  
        </Section>
      </Document>
    </ElasticReport>
    
    

    Ссылки на скриншоты начал и конца отчета
    https://disk.yandex.ru/i/m_iPpSjbnpxmMg
    https://disk.yandex.ru/i/K7MFlcoTKD7I8w

    Oleg
    Участник

    Михаил, у вас в демо ссылка некорректно работает, не показать на примере.
    Видимо потому что плагин отчетов в демо старый — 6.0.2.0.

    https://rapidscada.net/scada/ElasticReport/Print/PrintReport2?reportID=1&offset=-1&period=1&unit=Month&archive=Hour&format=Html

    Oleg
    Участник

    Указывать отрицательный period некорректно. Используйте offset.

    Принято, спасибо.

    Oleg
    Участник

    /ElasticReport/Print/PrintReport2?reportID=2&offset=-3&period=1&unit=Month&archive=Hour&format=Html

    А так за декабрь суток не хватает, странно как-то работает

    Oleg
    Участник

    http:// /ElasticReport/Print/PrintReport2?reportID=2&offset=-1&period=1&unit=Month&archive=Hour&format=Html

    А вот так корректно за февраль, только это лишнее 01.03.2025 00:00:00, возможно это в настройках отчета можно убрать смещением

    Oleg
    Участник

    Точнее не offset, a period -1.

    Oleg
    Участник

    Михаил, скажите пожалуйста, планируете ли исправить баг в PrintReport2, когда для отчета (сегодня март, отчет за февраль)указываем unit Month и offset -1, отчет захватывает еще и январь с 29го числа?

Просмотр 15 сообщений - с 16 по 30 (из 98 всего)