﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<StiSerializer version="1.02" type="Net" application="StiReport">
  <AutoLocalizeReportOnRun>True</AutoLocalizeReportOnRun>
  <Culture>pt-BR</Culture>
  <Dictionary Ref="1" type="Dictionary" isKey="true">
    <BusinessObjects isList="true" count="0" />
    <Databases isList="true" count="0" />
    <DataSources isList="true" count="0" />
    <Relations isList="true" count="0" />
    <Report isRef="0" />
    <Resources isList="true" count="0" />
    <UserFunctions isList="true" count="0" />
    <Variables isList="true" count="0" />
  </Dictionary>
  <EngineVersion>EngineV2</EngineVersion>
  <GlobalizationStrings isList="true" count="0" />
  <Key>f9050ed6f4cf46b48bdff6d1ae7b75eb</Key>
  <MetaTags isList="true" count="0" />
  <Pages isList="true" count="1">
    <Page1 Ref="2" type="Page" isKey="true">
      <Border>None;[14:118:188];2;Solid;False;4;Black</Border>
      <Brush>Transparent</Brush>
      <Components isList="true" count="16">
        <PageHeaderBand1 Ref="3" type="PageHeaderBand" isKey="true">
          <Border>Bottom;Black;1;None;False;4;Black</Border>
          <Brush>Transparent</Brush>
          <ClientRectangle>0,0.4,19,0.6</ClientRectangle>
          <Components isList="true" count="1">
            <Text13 Ref="4" type="Text" isKey="true">
              <Brush>Transparent</Brush>
              <ClientRectangle>0,0,19,0.6</ClientRectangle>
              <Conditions isList="true" count="0" />
              <Expressions isList="true" count="0" />
              <Font>Arial,10,Bold</Font>
              <HorAlignment>Center</HorAlignment>
              <Name>Text13</Name>
              <Page isRef="2" />
              <Parent isRef="3" />
              <Text>Report Test</Text>
              <TextBrush>Black</TextBrush>
              <Type>Expression</Type>
              <VertAlignment>Center</VertAlignment>
            </Text13>
          </Components>
          <Conditions isList="true" count="0" />
          <Expressions isList="true" count="0" />
          <Guid>78571a82ef644b2d981dc93ab6ca70e9</Guid>
          <Name>PageHeaderBand1</Name>
          <Page isRef="2" />
          <Parent isRef="2" />
        </PageHeaderBand1>
        <PageFooterBand1 Ref="5" type="PageFooterBand" isKey="true">
          <Border>Top;Black;1;Solid;False;4;Black</Border>
          <Brush>Transparent</Brush>
          <ClientRectangle>0,26.9,19,0.8</ClientRectangle>
          <Components isList="true" count="0" />
          <Conditions isList="true" count="0" />
          <Expressions isList="true" count="0" />
          <Name>PageFooterBand1</Name>
          <Page isRef="2" />
          <Parent isRef="2" />
        </PageFooterBand1>
        <Text18 Ref="6" type="Text" isKey="true">
          <Border>None;Silver;1;Solid;False;4;Black</Border>
          <Brush>Transparent</Brush>
          <CanBreak>True</CanBreak>
          <CanGrow>True</CanGrow>
          <ClientRectangle>23.8,52.8,3.9,0.6</ClientRectangle>
          <Conditions isList="true" count="0" />
          <Expressions isList="true" count="0" />
          <Font>Arial,10</Font>
          <Guid>784f1a8dfa974ef2b0945170c238a169</Guid>
          <Name>Text18</Name>
          <Page isRef="2" />
          <Parent isRef="2" />
          <TextBrush>Black</TextBrush>
          <TextOptions>,,,,WordWrap=True,A=0</TextOptions>
          <Type>Expression</Type>
          <VertAlignment>Center</VertAlignment>
        </Text18>
        <Text292 Ref="7" type="Text" isKey="true">
          <Brush>Transparent</Brush>
          <ClientRectangle>27,186.8,1.6,0.6</ClientRectangle>
          <Conditions isList="true" count="0" />
          <Expressions isList="true" count="0" />
          <Font>Arial,8</Font>
          <Name>Text292</Name>
          <Page isRef="2" />
          <Parent isRef="2" />
          <Text>Text190</Text>
          <TextBrush>Black</TextBrush>
        </Text292>
        <h18 Ref="8" type="HeaderBand" isKey="true">
          <Brush>Transparent</Brush>
          <CanBreak>True</CanBreak>
          <ClientRectangle>0,1.8,19,1.2</ClientRectangle>
          <Components isList="true" count="5">
            <Text64 Ref="9" type="Text" isKey="true">
              <Border>Bottom;[14:118:188];1;Solid;False;4;Black</Border>
              <Brush>Transparent</Brush>
              <CanBreak>True</CanBreak>
              <CanGrow>True</CanGrow>
              <ClientRectangle>0,0,19,0.6</ClientRectangle>
              <Conditions isList="true" count="0" />
              <Expressions isList="true" count="0" />
              <Font>Arial,10,Bold| Italic</Font>
              <Guid>3d7200a96f5c42ac8ded3512ada68def</Guid>
              <Name>Text64</Name>
              <Page isRef="2" />
              <Parent isRef="8" />
              <Text>Histórico</Text>
              <TextBrush>[14:118:188]</TextBrush>
              <Type>Expression</Type>
              <VertAlignment>Bottom</VertAlignment>
            </Text64>
            <Text66 Ref="10" type="Text" isKey="true">
              <Border>None;Gray;1;Solid;False;4;Black</Border>
              <Brush>[227:235:244]</Brush>
              <CanBreak>True</CanBreak>
              <CanGrow>True</CanGrow>
              <ClientRectangle>3.2,0.8,4.4,0.4</ClientRectangle>
              <Conditions isList="true" count="0" />
              <Expressions isList="true" count="0" />
              <Font>Arial,7,Bold</Font>
              <Guid>033a8426877343d4b36d216e78b9d43c</Guid>
              <Name>Text66</Name>
              <Page isRef="2" />
              <Parent isRef="8" />
              <Text>Quem realizou</Text>
              <TextBrush>Black</TextBrush>
              <Type>Expression</Type>
              <VertAlignment>Center</VertAlignment>
            </Text66>
            <Text67 Ref="11" type="Text" isKey="true">
              <Border>None;Gray;1;Solid;False;4;Black</Border>
              <Brush>[227:235:244]</Brush>
              <CanBreak>True</CanBreak>
              <CanGrow>True</CanGrow>
              <ClientRectangle>7.6,0.8,6.2,0.4</ClientRectangle>
              <Conditions isList="true" count="0" />
              <Expressions isList="true" count="0" />
              <Font>Arial,7,Bold</Font>
              <Guid>8e83a20695a14da0bf5b048aac3ce152</Guid>
              <Name>Text67</Name>
              <Page isRef="2" />
              <Parent isRef="8" />
              <Text>Alteração</Text>
              <TextBrush>Black</TextBrush>
              <TextOptions>,,,,WordWrap=True,A=0</TextOptions>
              <Type>Expression</Type>
              <VertAlignment>Center</VertAlignment>
            </Text67>
            <Text72 Ref="12" type="Text" isKey="true">
              <Border>None;Gray;1;Solid;False;4;Black</Border>
              <Brush>[227:235:244]</Brush>
              <CanBreak>True</CanBreak>
              <CanGrow>True</CanGrow>
              <ClientRectangle>0,0.8,3.2,0.4</ClientRectangle>
              <Conditions isList="true" count="0" />
              <Expressions isList="true" count="0" />
              <Font>Arial,7,Bold</Font>
              <Guid>247713258ebb4d9b91fc3adedb3a6000</Guid>
              <Name>Text72</Name>
              <Page isRef="2" />
              <Parent isRef="8" />
              <Text>Data e hora</Text>
              <TextBrush>Black</TextBrush>
              <TextOptions>,,,,WordWrap=True,A=0</TextOptions>
              <Type>Expression</Type>
              <VertAlignment>Center</VertAlignment>
            </Text72>
            <Text1 Ref="13" type="Text" isKey="true">
              <Border>None;Gray;1;Solid;False;4;Black</Border>
              <Brush>[227:235:244]</Brush>
              <CanBreak>True</CanBreak>
              <CanGrow>True</CanGrow>
              <ClientRectangle>13.8,0.8,5.2,0.4</ClientRectangle>
              <Conditions isList="true" count="0" />
              <Expressions isList="true" count="0" />
              <Font>Arial,7,Bold</Font>
              <Guid>36ef91f65ef1495da97aa91073bf8eee</Guid>
              <Name>Text1</Name>
              <Page isRef="2" />
              <Parent isRef="8" />
              <Text>Justificativa</Text>
              <TextBrush>Black</TextBrush>
              <Type>Expression</Type>
              <VertAlignment>Center</VertAlignment>
            </Text1>
          </Components>
          <Conditions isList="true" count="1">
            <value>_x007B_history.historic_x0020__x003D__x003D__x0020_true_x007D_,Red,Transparent,Arial_x002C_8,True,False,,,None</value>
          </Conditions>
          <Enabled>False</Enabled>
          <Expressions isList="true" count="0" />
          <Guid>f14da6be0e1541889a374faa5a56b391</Guid>
          <Name>h18</Name>
          <Page isRef="2" />
          <Parent isRef="2" />
        </h18>
        <DataBand17 Ref="14" type="DataBand" isKey="true">
          <Brush>Transparent</Brush>
          <BusinessObjectGuid isNull="true" />
          <ClientRectangle>0,3.8,19,0.6</ClientRectangle>
          <Components isList="true" count="6">
            <Text65 Ref="15" type="Text" isKey="true">
              <Brush>Transparent</Brush>
              <CanGrow>True</CanGrow>
              <ClientRectangle>3.2,0,4.4,0.4</ClientRectangle>
              <Conditions isList="true" count="0" />
              <Expressions isList="true" count="0" />
              <Font>Arial,7</Font>
              <Guid>e352e57e36f941668cec08167e1e8ed8</Guid>
              <HorAlignment>Width</HorAlignment>
              <Name>Text65</Name>
              <Page isRef="2" />
              <Parent isRef="14" />
              <Text>{string.IsNullOrWhiteSpace(history.user_name) ? "Anônimo" : history.user_name}</Text>
              <TextBrush>Black</TextBrush>
              <TextOptions>,,,,WordWrap=True,A=0</TextOptions>
              <Type>Expression</Type>
              <VertAlignment>Center</VertAlignment>
            </Text65>
            <Text69 Ref="16" type="Text" isKey="true">
              <Brush>Transparent</Brush>
              <CanGrow>True</CanGrow>
              <ClientRectangle>0,0,3.2,0.4</ClientRectangle>
              <Conditions isList="true" count="0" />
              <Expressions isList="true" count="0" />
              <Font>Arial,7</Font>
              <Guid>6dec388dfcb742599625c02746252560</Guid>
              <HorAlignment>Width</HorAlignment>
              <Name>Text69</Name>
              <Page isRef="2" />
              <Parent isRef="14" />
              <Text>{history.history_date_timezone}</Text>
              <TextBrush>Black</TextBrush>
              <TextOptions>,,,,WordWrap=True,A=0</TextOptions>
              <Type>Expression</Type>
              <VertAlignment>Center</VertAlignment>
            </Text69>
            <Text118 Ref="17" type="Text" isKey="true">
              <Brush>Transparent</Brush>
              <CanGrow>True</CanGrow>
              <ClientRectangle>13.8,0,5.2,0.4</ClientRectangle>
              <Conditions isList="true" count="0" />
              <Expressions isList="true" count="0" />
              <Font>Arial,7</Font>
              <Guid>8f39786ad0d042dcaf6e6ac7c68f7c0d</Guid>
              <HorAlignment>Width</HorAlignment>
              <Margins>5,0,0,0</Margins>
              <Name>Text118</Name>
              <Page isRef="2" />
              <Parent isRef="14" />
              <Text>{history.justification}</Text>
              <TextBrush>Black</TextBrush>
              <TextOptions>,,,,WordWrap=True,A=0</TextOptions>
              <Type>Expression</Type>
              <VertAlignment>Center</VertAlignment>
            </Text118>
            <Text68 Ref="18" type="Text" isKey="true">
              <Brush>Transparent</Brush>
              <CanGrow>True</CanGrow>
              <ClientRectangle>7.6,0,6.2,0.4</ClientRectangle>
              <Conditions isList="true" count="0" />
              <Expressions isList="true" count="0" />
              <Font>Arial,7</Font>
              <Guid>99d39f2ece5f4925bcc8ba82fe56455a</Guid>
              <Name>Text68</Name>
              <Page isRef="2" />
              <Parent isRef="14" />
              <Text>{Replace(Replace(Replace(Replace(Replace(Replace(Replace(Replace(Replace(Replace(Replace(Replace((GetTypeHistoryStr (history.description, history.is_electronic_signed)), "$cause", history.cause_why_name), "$ishikawaSubCause", history.ishikawa_subcause_name), "$ishikawaCause", history.ishikawa_cause_name), "$analyzeToolName", history.analyze_tool_name),"$fileName",history.file_name),"$planTaskName",history.action_name),"$planTaskCode",history.action_code),"$recidivistOccCode",history.recidivist_occurrence_code),"$recidivistOccName",history.recidivist_occurrence_name),"$recidivistOccCause",history.recidivist_cause_name),"$occStatus",GetPhaseStr(history.status_id_oc)),"$fileoOldName",history.old_file_name)}</Text>
              <TextBrush>Black</TextBrush>
              <TextOptions>,,,,WordWrap=True,A=0</TextOptions>
              <Type>Expression</Type>
              <VertAlignment>Center</VertAlignment>
            </Text68>
            <StartPointPrimitive3 Ref="19" type="Stimulsoft.Report.Components.StiStartPointPrimitive" isKey="true">
              <ClientRectangle>0,0,0,0</ClientRectangle>
              <Conditions isList="true" count="0" />
              <Expressions isList="true" count="0" />
              <Name>StartPointPrimitive3</Name>
              <Page isRef="2" />
              <Parent isRef="14" />
              <ReferenceToGuid>9f49ce5ed70648d0bf7d23cb2a679cad</ReferenceToGuid>
            </StartPointPrimitive3>
            <EndPointPrimitive2 Ref="20" type="Stimulsoft.Report.Components.StiEndPointPrimitive" isKey="true">
              <ClientRectangle>19,0.4,0,0</ClientRectangle>
              <Conditions isList="true" count="0" />
              <Expressions isList="true" count="0" />
              <Name>EndPointPrimitive2</Name>
              <Page isRef="2" />
              <Parent isRef="14" />
              <ReferenceToGuid>9f49ce5ed70648d0bf7d23cb2a679cad</ReferenceToGuid>
            </EndPointPrimitive2>
          </Components>
          <Conditions isList="true" count="0" />
          <DataRelationName>Relação6</DataRelationName>
          <DataSourceName>history</DataSourceName>
          <EvenStyle>Estilo1</EvenStyle>
          <Expressions isList="true" count="0" />
          <Filters isList="true" count="1">
            <value>_x007B_history.historic_x0020__x003D__x003D__x0020_true_x007D_</value>
          </Filters>
          <Name>DataBand17</Name>
          <Page isRef="2" />
          <Parent isRef="2" />
          <Sort isList="true" count="0" />
        </DataBand17>
        <VerticalLinePrimitive1 Ref="21" type="VerticalLinePrimitive" isKey="true">
          <ClientRectangle>23.7,52.8,0.0254,0.6</ClientRectangle>
          <Color>Silver</Color>
          <Conditions isList="true" count="0" />
          <EndCap Ref="22" type="Cap" isKey="true">
            <Color>Black</Color>
          </EndCap>
          <Expressions isList="true" count="0" />
          <Guid>e51e80cb2558475b9b5b2f16a7008db9</Guid>
          <Name>VerticalLinePrimitive1</Name>
          <Page isRef="2" />
          <Parent isRef="2" />
          <StartCap Ref="23" type="Cap" isKey="true">
            <Color>Black</Color>
          </StartCap>
        </VerticalLinePrimitive1>
        <StartPointPrimitive4 Ref="24" type="Stimulsoft.Report.Components.StiStartPointPrimitive" isKey="true">
          <ClientRectangle>23.5,50.2,0,0</ClientRectangle>
          <Conditions isList="true" count="0" />
          <Expressions isList="true" count="0" />
          <Name>StartPointPrimitive4</Name>
          <Page isRef="2" />
          <Parent isRef="2" />
          <ReferenceToGuid>6534950493e044c7bf75b64de62244aa</ReferenceToGuid>
        </StartPointPrimitive4>
        <StartPointPrimitive1 Ref="25" type="Stimulsoft.Report.Components.StiStartPointPrimitive" isKey="true">
          <ClientRectangle>23.7,52.8,0,0</ClientRectangle>
          <Conditions isList="true" count="0" />
          <Expressions isList="true" count="0" />
          <Name>StartPointPrimitive1</Name>
          <Page isRef="2" />
          <Parent isRef="2" />
          <ReferenceToGuid>e51e80cb2558475b9b5b2f16a7008db9</ReferenceToGuid>
        </StartPointPrimitive1>
        <EndPointPrimitive1 Ref="26" type="Stimulsoft.Report.Components.StiEndPointPrimitive" isKey="true">
          <ClientRectangle>23.7,53.4,0,0</ClientRectangle>
          <Conditions isList="true" count="0" />
          <Expressions isList="true" count="0" />
          <Name>EndPointPrimitive1</Name>
          <Page isRef="2" />
          <Parent isRef="2" />
          <ReferenceToGuid>e51e80cb2558475b9b5b2f16a7008db9</ReferenceToGuid>
        </EndPointPrimitive1>
        <StartPointPrimitive11 Ref="27" type="Stimulsoft.Report.Components.StiStartPointPrimitive" isKey="true">
          <ClientRectangle>23.5,55,0,0</ClientRectangle>
          <Conditions isList="true" count="0" />
          <Expressions isList="true" count="0" />
          <Name>StartPointPrimitive11</Name>
          <Page isRef="2" />
          <Parent isRef="2" />
          <ReferenceToGuid>6534950493e044c7bf75b64de62244aa</ReferenceToGuid>
        </StartPointPrimitive11>
        <EndPointPrimitive10 Ref="28" type="Stimulsoft.Report.Components.StiEndPointPrimitive" isKey="true">
          <ClientRectangle>23.7,59.6,0,0</ClientRectangle>
          <Conditions isList="true" count="0" />
          <Expressions isList="true" count="0" />
          <Name>EndPointPrimitive10</Name>
          <Page isRef="2" />
          <Parent isRef="2" />
          <ReferenceToGuid>2bcfa95a708e4606b20cd9af89986a61</ReferenceToGuid>
        </EndPointPrimitive10>
        <StartPointPrimitive13 Ref="29" type="Stimulsoft.Report.Components.StiStartPointPrimitive" isKey="true">
          <ClientRectangle>23.7,59.4,0,0</ClientRectangle>
          <Conditions isList="true" count="0" />
          <Expressions isList="true" count="0" />
          <Name>StartPointPrimitive13</Name>
          <Page isRef="2" />
          <Parent isRef="2" />
          <ReferenceToGuid>2bcfa95a708e4606b20cd9af89986a61</ReferenceToGuid>
        </StartPointPrimitive13>
        <StartPointPrimitive2 Ref="30" type="Stimulsoft.Report.Components.StiStartPointPrimitive" isKey="true">
          <ClientRectangle>23.7,71.7,0,0</ClientRectangle>
          <Conditions isList="true" count="0" />
          <Expressions isList="true" count="0" />
          <Name>StartPointPrimitive2</Name>
          <Page isRef="2" />
          <Parent isRef="2" />
          <ReferenceToGuid>7a6970cfed7044ea8b49f8bf1ebffa99</ReferenceToGuid>
        </StartPointPrimitive2>
        <EndPointPrimitive7 Ref="31" type="Stimulsoft.Report.Components.StiEndPointPrimitive" isKey="true">
          <ClientRectangle>23.7,71.7,0,0</ClientRectangle>
          <Conditions isList="true" count="0" />
          <Expressions isList="true" count="0" />
          <Name>EndPointPrimitive7</Name>
          <Page isRef="2" />
          <Parent isRef="2" />
          <ReferenceToGuid>7a6970cfed7044ea8b49f8bf1ebffa99</ReferenceToGuid>
        </EndPointPrimitive7>
        <RectanglePrimitive15 Ref="32" type="RectanglePrimitive" isKey="true">
          <ClientRectangle>0,3.8,19,0.4</ClientRectangle>
          <Color>242, 242, 242</Color>
          <Conditions isList="true" count="0" />
          <Expressions isList="true" count="0" />
          <Guid>9f49ce5ed70648d0bf7d23cb2a679cad</Guid>
          <Name>RectanglePrimitive15</Name>
          <Page isRef="2" />
          <Parent isRef="2" />
        </RectanglePrimitive15>
      </Components>
      <Conditions isList="true" count="0" />
      <Expressions isList="true" count="0" />
      <Guid>ed94e3dba115483cacef21664f63cabe</Guid>
      <Margins>1,1,1,1</Margins>
      <MirrorMargins>True</MirrorMargins>
      <Name>Page1</Name>
      <PageHeight>29.7</PageHeight>
      <PageWidth>21</PageWidth>
      <PaperSize>A4</PaperSize>
      <Report isRef="0" />
    </Page1>
  </Pages>
  <PreviewSettings>268435455</PreviewSettings>
  <ReferencedAssemblies isList="true" count="8">
    <value>System.Dll</value>
    <value>System.Drawing.Dll</value>
    <value>System.Windows.Forms.Dll</value>
    <value>System.Data.Dll</value>
    <value>System.Xml.Dll</value>
    <value>Stimulsoft.Controls.Dll</value>
    <value>Stimulsoft.Base.Dll</value>
    <value>Stimulsoft.Report.Dll</value>
  </ReferencedAssemblies>
  <ReportAlias>Relatório da Ocorrência</ReportAlias>
  <ReportChanged>9/26/2024 2:58:27 PM</ReportChanged>
  <ReportCreated>1/30/2020 10:58:35 AM</ReportCreated>
  <ReportFile>C:\Users\BrunoGuerraVieira\Desktop\general.mrt</ReportFile>
  <ReportGuid>2d6f516591c54b2d9b2fc6280eb5a469</ReportGuid>
  <ReportName>Report</ReportName>
  <ReportUnit>Centimeters</ReportUnit>
  <ReportVersion>2024.2.2.0</ReportVersion>
  <Script>
        using System;
        using System.Drawing;
        using System.Windows.Forms;
        using System.Data;
        using Stimulsoft.Controls;
        using Stimulsoft.Base.Drawing;
        using Stimulsoft.Report;
        using Stimulsoft.Report.Dialogs;
        using Stimulsoft.Report.Components;

        namespace Reports
        {
        public class Report : Stimulsoft.Report.StiReport
        {
        public Report()
        {
        this.InitializeComponent();
        }
		
		public string removeHtmlTag(string text, string startTag, string endTag){
			return text.Replace(startTag,"&lt;span&gt;").Replace(endTag,"&lt;/span&gt;");
		}

        public string SubstringIshikawa(string problem) {

        if (problem.Length &gt; 80)
        {
        var subProblem = problem.Substring(0,80);
        problem = subProblem + "...";
        }

        return problem;
        }


       

        public string GetTableField(string text){
        if(string.IsNullOrWhiteSpace(text))
        return "--";
        else
        return text;
        }
        #region StiReport Designer generated code - do not modify
        public string Lang;
        public int OffsetMinutes;
        public string OccurrenceId;
        public bool Historic;
        public Stimulsoft.Report.Components.StiPage Page1;
        public Stimulsoft.Report.Components.StiPageHeaderBand PageHeaderBand1;
        public Stimulsoft.Report.Components.StiText Text13;
        public Stimulsoft.Report.Components.StiPageFooterBand PageFooterBand1;
        public Stimulsoft.Report.Components.StiText Text18;
        public Stimulsoft.Report.Components.StiText Text292;
        public Stimulsoft.Report.Components.StiHeaderBand h18;
        public Stimulsoft.Report.Components.StiText Text64;
        public Stimulsoft.Report.Components.StiText Text66;
        public Stimulsoft.Report.Components.StiText Text67;
        public Stimulsoft.Report.Components.StiText Text72;
        public Stimulsoft.Report.Components.StiText Text108;
        public Stimulsoft.Report.Components.StiDataBand DataBand17;
        public Stimulsoft.Report.Components.StiText Text65;
        public Stimulsoft.Report.Components.StiText Text68;
        public Stimulsoft.Report.Components.StiText Text69;
        public Stimulsoft.Report.Components.StiText Text118;
        public Stimulsoft.Report.Components.StiStartPointPrimitive StartPointPrimitive22;
        public Stimulsoft.Report.Components.StiEndPointPrimitive EndPointPrimitive20;
        public Stimulsoft.Report.Components.StiVerticalLinePrimitive VerticalLinePrimitive1;
        public Stimulsoft.Report.Components.StiStartPointPrimitive StartPointPrimitive4;
        public Stimulsoft.Report.Components.StiStartPointPrimitive StartPointPrimitive1;
        public Stimulsoft.Report.Components.StiEndPointPrimitive EndPointPrimitive1;
        public Stimulsoft.Report.Components.StiStartPointPrimitive StartPointPrimitive11;
        public Stimulsoft.Report.Components.StiEndPointPrimitive EndPointPrimitive10;
        public Stimulsoft.Report.Components.StiStartPointPrimitive StartPointPrimitive13;
        public Stimulsoft.Report.Components.StiStartPointPrimitive StartPointPrimitive2;
        public Stimulsoft.Report.Components.StiEndPointPrimitive EndPointPrimitive7;
        public Stimulsoft.Report.Components.StiRectanglePrimitive RectanglePrimitive15;
        public Stimulsoft.Report.StiStyle StyleEstilo1;
        public Stimulsoft.Report.StiStyle StyleStyle1;
        public Stimulsoft.Report.StiStyle StyleBorda_clara;
        public Stimulsoft.Report.StiStyle StyleBorda_preta;
        public Stimulsoft.Report.StiStyle StyleBorda_preta_2;
        public Stimulsoft.Report.StiStyle StyleEstilo2;
        public historyDataSource history;
        
        public void Text13__GetValue(object sender, Stimulsoft.Report.Events.StiGetValueEventArgs e)
        {
            // CheckerInfo: Text Text13
            e.Value = "Report Test";
        }
        
        public void Text292__GetValue(object sender, Stimulsoft.Report.Events.StiGetValueEventArgs e)
        {
            // CheckerInfo: Text Text292
            e.Value = "Text190";
        }
        
        private void h18_Conditions(object sender, System.EventArgs e)
        {
            // CheckerInfo: Conditions h18
            if ((history.historic == true))
            {
                ((Stimulsoft.Report.Components.IStiBrush)(sender)).Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Transparent);
                ((Stimulsoft.Report.Components.IStiBorder)(sender)).Border = ((Stimulsoft.Base.Drawing.StiBorder)(((Stimulsoft.Report.Components.IStiBorder)(sender)).Border.Clone()));
                ((Stimulsoft.Report.Components.IStiBorder)(sender)).Border.Side = Stimulsoft.Base.Drawing.StiBorderSides.None;
                ((Stimulsoft.Report.Components.StiComponent)(sender)).Enabled = true;
            }
        }
        
        public void Text64__GetValue(object sender, Stimulsoft.Report.Events.StiGetValueEventArgs e)
        {
            // CheckerInfo: Text Text64
            e.Value = "Histórico";
        }
        
        public void Text66__GetValue(object sender, Stimulsoft.Report.Events.StiGetValueEventArgs e)
        {
            // CheckerInfo: Text Text66
            e.Value = "Quem realizou";
        }
        
        public void Text67__GetValue(object sender, Stimulsoft.Report.Events.StiGetValueEventArgs e)
        {
            // CheckerInfo: Text Text67
            e.Value = "Alteração";
        }
        
        public void Text72__GetValue(object sender, Stimulsoft.Report.Events.StiGetValueEventArgs e)
        {
            // CheckerInfo: Text Text72
            e.Value = "Data e hora";
        }
        
        public void Text108__GetValue(object sender, Stimulsoft.Report.Events.StiGetValueEventArgs e)
        {
            // CheckerInfo: Text Text108
            e.Value = "Justificativa";
        }
        
        public void DataBand17__GetFilter(object sender, Stimulsoft.Report.Events.StiFilterEventArgs e)
        {
            // CheckerInfo: Filter DataBand17
            e.Value = history.historic == true;
        }
        
        public void Text65__GetValue(object sender, Stimulsoft.Report.Events.StiGetValueEventArgs e)
        {
            // CheckerInfo: Text Text65
            e.Value = ToString(sender, string.IsNullOrWhiteSpace(history.user_name) ? "Anônimo" : history.user_name, true);
        }
        
        public void Text68__GetValue(object sender, Stimulsoft.Report.Events.StiGetValueEventArgs e)
        {
            // CheckerInfo: Text Text68
            e.Value = ToString(sender, Stimulsoft.Report.Dictionary.StiFunctionsStrings.Replace(Stimulsoft.Report.Dictionary.StiFunctionsStrings.Replace(Stimulsoft.Report.Dictionary.StiFunctionsStrings.Replace(Stimulsoft.Report.Dictionary.StiFunctionsStrings.Replace(Stimulsoft.Report.Dictionary.StiFunctionsStrings.Replace(Stimulsoft.Report.Dictionary.StiFunctionsStrings.Replace(Stimulsoft.Report.Dictionary.StiFunctionsStrings.Replace(Stimulsoft.Report.Dictionary.StiFunctionsStrings.Replace(Stimulsoft.Report.Dictionary.StiFunctionsStrings.Replace(Stimulsoft.Report.Dictionary.StiFunctionsStrings.Replace(Stimulsoft.Report.Dictionary.StiFunctionsStrings.Replace(Stimulsoft.Report.Dictionary.StiFunctionsStrings.Replace((GetTypeHistoryStr (history.description, history.is_electronic_signed)), "$cause", history.cause_why_name), "$ishikawaSubCause", history.ishikawa_subcause_name), "$ishikawaCause", history.ishikawa_cause_name), "$analyzeToolName", history.analyze_tool_name),"$fileName",history.file_name),"$planTaskName",history.action_name),"$planTaskCode",history.action_code),"$recidivistOccCode",history.recidivist_occurrence_code),"$recidivistOccName",history.recidivist_occurrence_name),"$recidivistOccCause",history.recidivist_cause_name),"$occStatus",GetPhaseStr(history.status_id_oc)),"$fileoOldName",history.old_file_name), true);
        }
        
        public void Text69__GetValue(object sender, Stimulsoft.Report.Events.StiGetValueEventArgs e)
        {
            // CheckerInfo: Text Text69
            e.Value = ToString(sender, history.history_date_timezone, true);
        }
        
        public void Text118__GetValue(object sender, Stimulsoft.Report.Events.StiGetValueEventArgs e)
        {
            // CheckerInfo: Text Text118
            e.Value = ToString(sender, history.justification, true);
        }
        
        public void CheckEndRenderRuntimes__EndRender(object sender, System.EventArgs e)
        {
            Stimulsoft.Report.Components.StiSimpleText.CheckEndRenderRuntimes(this);
        }
        
        private void InitializeComponent()
        {
            this.history = new historyDataSource();
            this.Dictionary.Variables.Add(new Stimulsoft.Report.Dictionary.StiVariable("", "Lang", "Lang", "", typeof(string), "", false, Stimulsoft.Report.Dictionary.StiVariableInitBy.Value, false, new Stimulsoft.Report.Dictionary.StiDialogInfo(Stimulsoft.Report.Dictionary.StiDateTimeType.Date, "", true, false, Stimulsoft.Report.Dictionary.StiVariableSortDirection.Asc, new string[0], new string[0], new bool[0]), "7c796793dd03481eb25960eb11df0ffe", false, Stimulsoft.Report.Dictionary.StiSelectionMode.FromVariable, false));
            this.Dictionary.Variables.Add(new Stimulsoft.Report.Dictionary.StiVariable("", "OffsetMinutes", "OffsetMinutes", "", typeof(int), "-180", false, Stimulsoft.Report.Dictionary.StiVariableInitBy.Value, false, new Stimulsoft.Report.Dictionary.StiDialogInfo(Stimulsoft.Report.Dictionary.StiDateTimeType.Date, "", true, false, Stimulsoft.Report.Dictionary.StiVariableSortDirection.Asc, new string[0], new string[0], new bool[0]), "5abe0db115384a808811a3dfdd99c665", false, Stimulsoft.Report.Dictionary.StiSelectionMode.FromVariable, false));
            this.Dictionary.Variables.Add(new Stimulsoft.Report.Dictionary.StiVariable("", "OccurrenceId", "OccurrenceId", "", typeof(string), "", false, Stimulsoft.Report.Dictionary.StiVariableInitBy.Value, false, new Stimulsoft.Report.Dictionary.StiDialogInfo(Stimulsoft.Report.Dictionary.StiDateTimeType.Date, "", true, false, Stimulsoft.Report.Dictionary.StiVariableSortDirection.Asc, new string[0], new string[0], new bool[0]), "2a023994bfd14cf88bbded82687fe6d7", false, Stimulsoft.Report.Dictionary.StiSelectionMode.FromVariable, false));
            this.Dictionary.Variables.Add(new Stimulsoft.Report.Dictionary.StiVariable("", "Historic", "Historic", "", typeof(bool), "true", false, Stimulsoft.Report.Dictionary.StiVariableInitBy.Value, false, new Stimulsoft.Report.Dictionary.StiDialogInfo(Stimulsoft.Report.Dictionary.StiDateTimeType.Date, "", true, false, Stimulsoft.Report.Dictionary.StiVariableSortDirection.Asc, new string[0], new string[0], new bool[0]), "f14bafc6c939408a8e5a209776a1bf16", false, Stimulsoft.Report.Dictionary.StiSelectionMode.FromVariable, false));
            this.NeedsCompiling = false;
            // 
            // Variables init
            // 
            // CheckerInfo: Value Lang
            this.Lang = "";
            // CheckerInfo: Value OffsetMinutes
            this.OffsetMinutes = -180;
            // CheckerInfo: Value OccurrenceId
            this.OccurrenceId = "";
            // CheckerInfo: Value Historic
            this.Historic = true;
            this.AutoLocalizeReportOnRun = true;
            this.Culture = "pt-BR";
            this.EngineVersion = Stimulsoft.Report.Engine.StiEngineVersion.EngineV2;
            this.Key = "f9050ed6f4cf46b48bdff6d1ae7b75eb";
            this.PreviewSettings = 268435455;
            this.ReferencedAssemblies = new string[] {
                    "System.Dll",
                    "System.Drawing.Dll",
                    "System.Windows.Forms.Dll",
                    "System.Data.Dll",
                    "System.Xml.Dll",
                    "Stimulsoft.Controls.Dll",
                    "Stimulsoft.Base.Dll",
                    "Stimulsoft.Report.Dll"};
            this.ReportAlias = "Relatório da Ocorrência";
            // 
            // ReportChanged
            // 
            this.ReportChanged = new DateTime(2024, 9, 26, 14, 3, 7, 596);
            // 
            // ReportCreated
            // 
            this.ReportCreated = new DateTime(2020, 1, 30, 10, 58, 35, 0);
            this.ReportGuid = "3a796ab2ce8542519966be8691250d32";
            this.ReportName = "Report";
            this.ReportUnit = Stimulsoft.Report.StiReportUnitType.Centimeters;
            this.ReportVersion = "2024.2.2.0";
            this.ScriptLanguage = Stimulsoft.Report.StiReportLanguageType.CSharp;
            // 
            // Page1
            // 
            this.Page1 = new Stimulsoft.Report.Components.StiPage();
            this.Page1.Guid = "ed94e3dba115483cacef21664f63cabe";
            this.Page1.MirrorMargins = true;
            this.Page1.Name = "Page1";
            this.Page1.PageHeight = 29.7;
            this.Page1.PageWidth = 21;
            this.Page1.PaperSize = System.Drawing.Printing.PaperKind.A4;
            this.Page1.Border = new Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.None, System.Drawing.Color.FromArgb(255, 14, 118, 188), 2, Stimulsoft.Base.Drawing.StiPenStyle.Solid, false, 4, new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black), false);
            this.Page1.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Transparent);
            // 
            // PageHeaderBand1
            // 
            this.PageHeaderBand1 = new Stimulsoft.Report.Components.StiPageHeaderBand();
            this.PageHeaderBand1.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(0, 0.4, 19, 0.6);
            this.PageHeaderBand1.Guid = "78571a82ef644b2d981dc93ab6ca70e9";
            this.PageHeaderBand1.Name = "PageHeaderBand1";
            this.PageHeaderBand1.Border = new Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.Bottom, System.Drawing.Color.Black, 1, Stimulsoft.Base.Drawing.StiPenStyle.None, false, 4, new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black), false);
            this.PageHeaderBand1.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Transparent);
            // 
            // Text13
            // 
            this.Text13 = new Stimulsoft.Report.Components.StiText();
            this.Text13.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(0, 0, 19, 0.6);
            this.Text13.HorAlignment = Stimulsoft.Base.Drawing.StiTextHorAlignment.Center;
            this.Text13.Name = "Text13";
            this.Text13.GetValue += new Stimulsoft.Report.Events.StiGetValueEventHandler(this.Text13__GetValue);
            this.Text13.Type = Stimulsoft.Report.Components.StiSystemTextType.Expression;
            this.Text13.VertAlignment = Stimulsoft.Base.Drawing.StiVertAlignment.Center;
            this.Text13.Border = new Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.None, System.Drawing.Color.Black, 1, Stimulsoft.Base.Drawing.StiPenStyle.Solid, false, 4, new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black), false);
            this.Text13.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Transparent);
            this.Text13.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold);
            this.Text13.Indicator = null;
            this.Text13.Interaction = null;
            this.Text13.TextBrush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black);
            this.Text13.TextOptions = new Stimulsoft.Base.Drawing.StiTextOptions(false, false, false, 0F, System.Drawing.Text.HotkeyPrefix.None, System.Drawing.StringTrimming.None);
            this.PageHeaderBand1.Interaction = null;
            // 
            // PageFooterBand1
            // 
            this.PageFooterBand1 = new Stimulsoft.Report.Components.StiPageFooterBand();
            this.PageFooterBand1.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(0, 26.9, 19, 0.8);
            this.PageFooterBand1.Name = "PageFooterBand1";
            this.PageFooterBand1.Border = new Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.Top, System.Drawing.Color.Black, 1, Stimulsoft.Base.Drawing.StiPenStyle.Solid, false, 4, new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black), false);
            this.PageFooterBand1.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Transparent);
            this.PageFooterBand1.Interaction = null;
            // 
            // Text18
            // 
            this.Text18 = new Stimulsoft.Report.Components.StiText();
            this.Text18.CanBreak = true;
            this.Text18.CanGrow = true;
            this.Text18.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(23.8, 52.8, 3.9, 0.6);
            this.Text18.Guid = "784f1a8dfa974ef2b0945170c238a169";
            this.Text18.Name = "Text18";
            this.Text18.Type = Stimulsoft.Report.Components.StiSystemTextType.Expression;
            this.Text18.VertAlignment = Stimulsoft.Base.Drawing.StiVertAlignment.Center;
            this.Text18.Border = new Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.None, System.Drawing.Color.Silver, 1, Stimulsoft.Base.Drawing.StiPenStyle.Solid, false, 4, new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black), false);
            this.Text18.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Transparent);
            this.Text18.Font = new System.Drawing.Font("Arial", 10F);
            this.Text18.Indicator = null;
            this.Text18.Interaction = null;
            this.Text18.TextBrush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black);
            this.Text18.TextOptions = new Stimulsoft.Base.Drawing.StiTextOptions(false, false, true, 0F, System.Drawing.Text.HotkeyPrefix.None, System.Drawing.StringTrimming.None);
            // 
            // Text292
            // 
            this.Text292 = new Stimulsoft.Report.Components.StiText();
            this.Text292.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(27, 186.8, 1.6, 0.6);
            this.Text292.Name = "Text292";
            this.Text292.GetValue += new Stimulsoft.Report.Events.StiGetValueEventHandler(this.Text292__GetValue);
            this.Text292.Border = new Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.None, System.Drawing.Color.Black, 1, Stimulsoft.Base.Drawing.StiPenStyle.Solid, false, 4, new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black), false);
            this.Text292.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Transparent);
            this.Text292.Font = new System.Drawing.Font("Arial", 8F);
            this.Text292.Indicator = null;
            this.Text292.Interaction = null;
            this.Text292.TextBrush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black);
            this.Text292.TextOptions = new Stimulsoft.Base.Drawing.StiTextOptions(false, false, false, 0F, System.Drawing.Text.HotkeyPrefix.None, System.Drawing.StringTrimming.None);
            // 
            // h18
            // 
            this.h18 = new Stimulsoft.Report.Components.StiHeaderBand();
            this.h18.CanBreak = true;
            this.h18.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(0, 1.8, 19, 1.2);
            this.h18.BeforePrint += new System.EventHandler(this.h18_Conditions);
            this.h18.Enabled = false;
            this.h18.Guid = "f14da6be0e1541889a374faa5a56b391";
            this.h18.Name = "h18";
            this.h18.Border = new Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.None, System.Drawing.Color.Black, 1, Stimulsoft.Base.Drawing.StiPenStyle.Solid, false, 4, new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black), false);
            this.h18.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Transparent);
            // 
            // Text64
            // 
            this.Text64 = new Stimulsoft.Report.Components.StiText();
            this.Text64.CanBreak = true;
            this.Text64.CanGrow = true;
            this.Text64.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(0, 0, 19, 0.6);
            this.Text64.Guid = "3d7200a96f5c42ac8ded3512ada68def";
            this.Text64.Name = "Text64";
            this.Text64.GetValue += new Stimulsoft.Report.Events.StiGetValueEventHandler(this.Text64__GetValue);
            this.Text64.Type = Stimulsoft.Report.Components.StiSystemTextType.Expression;
            this.Text64.VertAlignment = Stimulsoft.Base.Drawing.StiVertAlignment.Bottom;
            this.Text64.Border = new Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.Bottom, System.Drawing.Color.FromArgb(255, 14, 118, 188), 1, Stimulsoft.Base.Drawing.StiPenStyle.Solid, false, 4, new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black), false);
            this.Text64.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Transparent);
            this.Text64.Font = new System.Drawing.Font("Arial", 10F, (System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic));
            this.Text64.Indicator = null;
            this.Text64.Interaction = null;
            this.Text64.TextBrush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.FromArgb(255, 14, 118, 188));
            this.Text64.TextOptions = new Stimulsoft.Base.Drawing.StiTextOptions(false, false, false, 0F, System.Drawing.Text.HotkeyPrefix.None, System.Drawing.StringTrimming.None);
            // 
            // Text66
            // 
            this.Text66 = new Stimulsoft.Report.Components.StiText();
            this.Text66.CanBreak = true;
            this.Text66.CanGrow = true;
            this.Text66.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(3.2, 0.8, 4.4, 0.4);
            this.Text66.Guid = "033a8426877343d4b36d216e78b9d43c";
            this.Text66.Name = "Text66";
            this.Text66.GetValue += new Stimulsoft.Report.Events.StiGetValueEventHandler(this.Text66__GetValue);
            this.Text66.Type = Stimulsoft.Report.Components.StiSystemTextType.Expression;
            this.Text66.VertAlignment = Stimulsoft.Base.Drawing.StiVertAlignment.Center;
            this.Text66.Border = new Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.None, System.Drawing.Color.Gray, 1, Stimulsoft.Base.Drawing.StiPenStyle.Solid, false, 4, new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black), false);
            this.Text66.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.FromArgb(255, 227, 235, 244));
            this.Text66.Font = new System.Drawing.Font("Arial", 7F, System.Drawing.FontStyle.Bold);
            this.Text66.Indicator = null;
            this.Text66.Interaction = null;
            this.Text66.TextBrush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black);
            this.Text66.TextOptions = new Stimulsoft.Base.Drawing.StiTextOptions(false, false, false, 0F, System.Drawing.Text.HotkeyPrefix.None, System.Drawing.StringTrimming.None);
            // 
            // Text67
            // 
            this.Text67 = new Stimulsoft.Report.Components.StiText();
            this.Text67.CanBreak = true;
            this.Text67.CanGrow = true;
            this.Text67.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(7.6, 0.8, 6.2, 0.4);
            this.Text67.Guid = "8e83a20695a14da0bf5b048aac3ce152";
            this.Text67.Name = "Text67";
            this.Text67.GetValue += new Stimulsoft.Report.Events.StiGetValueEventHandler(this.Text67__GetValue);
            this.Text67.Type = Stimulsoft.Report.Components.StiSystemTextType.Expression;
            this.Text67.VertAlignment = Stimulsoft.Base.Drawing.StiVertAlignment.Center;
            this.Text67.Border = new Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.None, System.Drawing.Color.Gray, 1, Stimulsoft.Base.Drawing.StiPenStyle.Solid, false, 4, new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black), false);
            this.Text67.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.FromArgb(255, 227, 235, 244));
            this.Text67.Font = new System.Drawing.Font("Arial", 7F, System.Drawing.FontStyle.Bold);
            this.Text67.Indicator = null;
            this.Text67.Interaction = null;
            this.Text67.TextBrush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black);
            this.Text67.TextOptions = new Stimulsoft.Base.Drawing.StiTextOptions(false, false, true, 0F, System.Drawing.Text.HotkeyPrefix.None, System.Drawing.StringTrimming.None);
            // 
            // Text72
            // 
            this.Text72 = new Stimulsoft.Report.Components.StiText();
            this.Text72.CanBreak = true;
            this.Text72.CanGrow = true;
            this.Text72.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(0, 0.8, 3.2, 0.4);
            this.Text72.Guid = "247713258ebb4d9b91fc3adedb3a6000";
            this.Text72.Name = "Text72";
            this.Text72.GetValue += new Stimulsoft.Report.Events.StiGetValueEventHandler(this.Text72__GetValue);
            this.Text72.Type = Stimulsoft.Report.Components.StiSystemTextType.Expression;
            this.Text72.VertAlignment = Stimulsoft.Base.Drawing.StiVertAlignment.Center;
            this.Text72.Border = new Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.None, System.Drawing.Color.Gray, 1, Stimulsoft.Base.Drawing.StiPenStyle.Solid, false, 4, new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black), false);
            this.Text72.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.FromArgb(255, 227, 235, 244));
            this.Text72.Font = new System.Drawing.Font("Arial", 7F, System.Drawing.FontStyle.Bold);
            this.Text72.Indicator = null;
            this.Text72.Interaction = null;
            this.Text72.TextBrush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black);
            this.Text72.TextOptions = new Stimulsoft.Base.Drawing.StiTextOptions(false, false, true, 0F, System.Drawing.Text.HotkeyPrefix.None, System.Drawing.StringTrimming.None);
            // 
            // Text108
            // 
            this.Text108 = new Stimulsoft.Report.Components.StiText();
            this.Text108.CanBreak = true;
            this.Text108.CanGrow = true;
            this.Text108.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(13.8, 0.8, 5.2, 0.4);
            this.Text108.Guid = "4cd107fec9f343ac93de61f8a4645fed";
            this.Text108.Name = "Text108";
            this.Text108.GetValue += new Stimulsoft.Report.Events.StiGetValueEventHandler(this.Text108__GetValue);
            this.Text108.Type = Stimulsoft.Report.Components.StiSystemTextType.Expression;
            this.Text108.VertAlignment = Stimulsoft.Base.Drawing.StiVertAlignment.Center;
            this.Text108.Border = new Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.None, System.Drawing.Color.Gray, 1, Stimulsoft.Base.Drawing.StiPenStyle.Solid, false, 4, new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black), false);
            this.Text108.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.FromArgb(255, 227, 235, 244));
            this.Text108.Font = new System.Drawing.Font("Arial", 7F, System.Drawing.FontStyle.Bold);
            this.Text108.Indicator = null;
            this.Text108.Interaction = null;
            this.Text108.Margins = new Stimulsoft.Report.Components.StiMargins(5, 0, 0, 0);
            this.Text108.TextBrush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black);
            this.Text108.TextOptions = new Stimulsoft.Base.Drawing.StiTextOptions(false, false, true, 0F, System.Drawing.Text.HotkeyPrefix.None, System.Drawing.StringTrimming.None);
            this.h18.Interaction = null;
            // 
            // DataBand17
            // 
            this.DataBand17 = new Stimulsoft.Report.Components.StiDataBand();
            this.DataBand17.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(0, 3.8, 19, 0.4);
            this.DataBand17.DataRelationName = "Relação6";
            this.DataBand17.DataSourceName = "history";
            this.DataBand17.EvenStyle = "Estilo1";
            this.DataBand17.Name = "DataBand17";
            this.DataBand17.Sort = new string[0];
            this.DataBand17.Border = new Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.None, System.Drawing.Color.Black, 1, Stimulsoft.Base.Drawing.StiPenStyle.Solid, false, 4, new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black), false);
            this.DataBand17.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Transparent);
            this.DataBand17.BusinessObjectGuid = null;
            // 
            // Text65
            // 
            this.Text65 = new Stimulsoft.Report.Components.StiText();
            this.Text65.CanGrow = true;
            this.Text65.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(3.2, 0, 4.4, 0.4);
            this.Text65.Guid = "5ddedd911d664a45afcbffb65a97caeb";
            this.Text65.HorAlignment = Stimulsoft.Base.Drawing.StiTextHorAlignment.Width;
            this.Text65.Name = "Text65";
            this.Text65.GetValue += new Stimulsoft.Report.Events.StiGetValueEventHandler(this.Text65__GetValue);
            this.Text65.Type = Stimulsoft.Report.Components.StiSystemTextType.Expression;
            this.Text65.VertAlignment = Stimulsoft.Base.Drawing.StiVertAlignment.Center;
            this.Text65.Border = new Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.None, System.Drawing.Color.Black, 1, Stimulsoft.Base.Drawing.StiPenStyle.Solid, false, 4, new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black), false);
            this.Text65.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Transparent);
            this.Text65.Font = new System.Drawing.Font("Arial", 7F);
            this.Text65.Indicator = null;
            this.Text65.Interaction = null;
            this.Text65.TextBrush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black);
            this.Text65.TextOptions = new Stimulsoft.Base.Drawing.StiTextOptions(false, false, true, 0F, System.Drawing.Text.HotkeyPrefix.None, System.Drawing.StringTrimming.None);
            // 
            // Text68
            // 
            this.Text68 = new Stimulsoft.Report.Components.StiText();
            this.Text68.CanGrow = true;
            this.Text68.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(7.6, 0, 6.2, 0.4);
            this.Text68.Guid = "463427af090245a59988ad1096896a0f";
            this.Text68.Name = "Text68";
            this.Text68.GetValue += new Stimulsoft.Report.Events.StiGetValueEventHandler(this.Text68__GetValue);
            this.Text68.Type = Stimulsoft.Report.Components.StiSystemTextType.Expression;
            this.Text68.VertAlignment = Stimulsoft.Base.Drawing.StiVertAlignment.Center;
            this.Text68.Border = new Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.None, System.Drawing.Color.Black, 1, Stimulsoft.Base.Drawing.StiPenStyle.Solid, false, 4, new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black), false);
            this.Text68.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Transparent);
            this.Text68.Font = new System.Drawing.Font("Arial", 7F);
            this.Text68.Indicator = null;
            this.Text68.Interaction = null;
            this.Text68.TextBrush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black);
            this.Text68.TextOptions = new Stimulsoft.Base.Drawing.StiTextOptions(false, false, true, 0F, System.Drawing.Text.HotkeyPrefix.None, System.Drawing.StringTrimming.None);
            // 
            // Text69
            // 
            this.Text69 = new Stimulsoft.Report.Components.StiText();
            this.Text69.CanGrow = true;
            this.Text69.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(0, 0, 3.2, 0.4);
            this.Text69.Guid = "aa211b6885eb49a5a902e2707aca1b47";
            this.Text69.HorAlignment = Stimulsoft.Base.Drawing.StiTextHorAlignment.Width;
            this.Text69.Name = "Text69";
            this.Text69.GetValue += new Stimulsoft.Report.Events.StiGetValueEventHandler(this.Text69__GetValue);
            this.Text69.Type = Stimulsoft.Report.Components.StiSystemTextType.Expression;
            this.Text69.VertAlignment = Stimulsoft.Base.Drawing.StiVertAlignment.Center;
            this.Text69.Border = new Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.None, System.Drawing.Color.Black, 1, Stimulsoft.Base.Drawing.StiPenStyle.Solid, false, 4, new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black), false);
            this.Text69.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Transparent);
            this.Text69.Font = new System.Drawing.Font("Arial", 7F);
            this.Text69.Indicator = null;
            this.Text69.Interaction = null;
            this.Text69.TextBrush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black);
            this.Text69.TextOptions = new Stimulsoft.Base.Drawing.StiTextOptions(false, false, true, 0F, System.Drawing.Text.HotkeyPrefix.None, System.Drawing.StringTrimming.None);
            // 
            // Text118
            // 
            this.Text118 = new Stimulsoft.Report.Components.StiText();
            this.Text118.CanGrow = true;
            this.Text118.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(13.8, 0, 5.2, 0.4);
            this.Text118.Guid = "6e9258dba63b456692a1c6771200df56";
            this.Text118.HorAlignment = Stimulsoft.Base.Drawing.StiTextHorAlignment.Width;
            this.Text118.Name = "Text118";
            this.Text118.GetValue += new Stimulsoft.Report.Events.StiGetValueEventHandler(this.Text118__GetValue);
            this.Text118.Type = Stimulsoft.Report.Components.StiSystemTextType.Expression;
            this.Text118.VertAlignment = Stimulsoft.Base.Drawing.StiVertAlignment.Center;
            this.Text118.Border = new Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.None, System.Drawing.Color.Black, 1, Stimulsoft.Base.Drawing.StiPenStyle.Solid, false, 4, new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black), false);
            this.Text118.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Transparent);
            this.Text118.Font = new System.Drawing.Font("Arial", 7F);
            this.Text118.Indicator = null;
            this.Text118.Interaction = null;
            this.Text118.Margins = new Stimulsoft.Report.Components.StiMargins(5, 0, 0, 0);
            this.Text118.TextBrush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black);
            this.Text118.TextOptions = new Stimulsoft.Base.Drawing.StiTextOptions(false, false, true, 0F, System.Drawing.Text.HotkeyPrefix.None, System.Drawing.StringTrimming.None);
            // 
            // StartPointPrimitive22
            // 
            this.StartPointPrimitive22 = new Stimulsoft.Report.Components.StiStartPointPrimitive();
            this.StartPointPrimitive22.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(0, 0, 0, 0);
            this.StartPointPrimitive22.Name = "StartPointPrimitive22";
            this.StartPointPrimitive22.ReferenceToGuid = "b0d925f5e79746fd9a99cc3fba80f436";
            this.StartPointPrimitive22.Interaction = null;
            // 
            // EndPointPrimitive20
            // 
            this.EndPointPrimitive20 = new Stimulsoft.Report.Components.StiEndPointPrimitive();
            this.EndPointPrimitive20.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(19, 0.4, 0, 0);
            this.EndPointPrimitive20.Name = "EndPointPrimitive20";
            this.EndPointPrimitive20.ReferenceToGuid = "b0d925f5e79746fd9a99cc3fba80f436";
            this.EndPointPrimitive20.Interaction = null;
            this.DataBand17.Interaction = null;
            // 
            // VerticalLinePrimitive1
            // 
            this.VerticalLinePrimitive1 = new Stimulsoft.Report.Components.StiVerticalLinePrimitive();
            this.VerticalLinePrimitive1.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(23.7, 52.8, 0.0254, 0.6);
            this.VerticalLinePrimitive1.Color = System.Drawing.Color.Silver;
            this.VerticalLinePrimitive1.Guid = "e51e80cb2558475b9b5b2f16a7008db9";
            this.VerticalLinePrimitive1.Name = "VerticalLinePrimitive1";
            this.VerticalLinePrimitive1.EndCap = new Stimulsoft.Base.Drawing.StiCap(10, Stimulsoft.Base.Drawing.StiCapStyle.None, 10, true, System.Drawing.Color.Black);
            this.VerticalLinePrimitive1.Interaction = null;
            this.VerticalLinePrimitive1.StartCap = new Stimulsoft.Base.Drawing.StiCap(10, Stimulsoft.Base.Drawing.StiCapStyle.None, 10, true, System.Drawing.Color.Black);
            // 
            // StartPointPrimitive4
            // 
            this.StartPointPrimitive4 = new Stimulsoft.Report.Components.StiStartPointPrimitive();
            this.StartPointPrimitive4.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(23.5, 50.2, 0, 0);
            this.StartPointPrimitive4.Name = "StartPointPrimitive4";
            this.StartPointPrimitive4.ReferenceToGuid = "6534950493e044c7bf75b64de62244aa";
            this.StartPointPrimitive4.Interaction = null;
            // 
            // StartPointPrimitive1
            // 
            this.StartPointPrimitive1 = new Stimulsoft.Report.Components.StiStartPointPrimitive();
            this.StartPointPrimitive1.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(23.7, 52.8, 0, 0);
            this.StartPointPrimitive1.Name = "StartPointPrimitive1";
            this.StartPointPrimitive1.ReferenceToGuid = "e51e80cb2558475b9b5b2f16a7008db9";
            this.StartPointPrimitive1.Interaction = null;
            // 
            // EndPointPrimitive1
            // 
            this.EndPointPrimitive1 = new Stimulsoft.Report.Components.StiEndPointPrimitive();
            this.EndPointPrimitive1.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(23.7, 53.4, 0, 0);
            this.EndPointPrimitive1.Name = "EndPointPrimitive1";
            this.EndPointPrimitive1.ReferenceToGuid = "e51e80cb2558475b9b5b2f16a7008db9";
            this.EndPointPrimitive1.Interaction = null;
            // 
            // StartPointPrimitive11
            // 
            this.StartPointPrimitive11 = new Stimulsoft.Report.Components.StiStartPointPrimitive();
            this.StartPointPrimitive11.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(23.5, 55, 0, 0);
            this.StartPointPrimitive11.Name = "StartPointPrimitive11";
            this.StartPointPrimitive11.ReferenceToGuid = "6534950493e044c7bf75b64de62244aa";
            this.StartPointPrimitive11.Interaction = null;
            // 
            // EndPointPrimitive10
            // 
            this.EndPointPrimitive10 = new Stimulsoft.Report.Components.StiEndPointPrimitive();
            this.EndPointPrimitive10.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(23.7, 59.6, 0, 0);
            this.EndPointPrimitive10.Name = "EndPointPrimitive10";
            this.EndPointPrimitive10.ReferenceToGuid = "2bcfa95a708e4606b20cd9af89986a61";
            this.EndPointPrimitive10.Interaction = null;
            // 
            // StartPointPrimitive13
            // 
            this.StartPointPrimitive13 = new Stimulsoft.Report.Components.StiStartPointPrimitive();
            this.StartPointPrimitive13.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(23.7, 59.4, 0, 0);
            this.StartPointPrimitive13.Name = "StartPointPrimitive13";
            this.StartPointPrimitive13.ReferenceToGuid = "2bcfa95a708e4606b20cd9af89986a61";
            this.StartPointPrimitive13.Interaction = null;
            // 
            // StartPointPrimitive2
            // 
            this.StartPointPrimitive2 = new Stimulsoft.Report.Components.StiStartPointPrimitive();
            this.StartPointPrimitive2.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(23.7, 71.7, 0, 0);
            this.StartPointPrimitive2.Name = "StartPointPrimitive2";
            this.StartPointPrimitive2.ReferenceToGuid = "7a6970cfed7044ea8b49f8bf1ebffa99";
            this.StartPointPrimitive2.Interaction = null;
            // 
            // EndPointPrimitive7
            // 
            this.EndPointPrimitive7 = new Stimulsoft.Report.Components.StiEndPointPrimitive();
            this.EndPointPrimitive7.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(23.7, 71.7, 0, 0);
            this.EndPointPrimitive7.Name = "EndPointPrimitive7";
            this.EndPointPrimitive7.ReferenceToGuid = "7a6970cfed7044ea8b49f8bf1ebffa99";
            this.EndPointPrimitive7.Interaction = null;
            // 
            // RectanglePrimitive15
            // 
            this.RectanglePrimitive15 = new Stimulsoft.Report.Components.StiRectanglePrimitive();
            this.RectanglePrimitive15.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(0, 3.8, 19, 0.4);
            this.RectanglePrimitive15.Color = System.Drawing.Color.FromArgb(255, 242, 242, 242);
            this.RectanglePrimitive15.Guid = "b0d925f5e79746fd9a99cc3fba80f436";
            this.RectanglePrimitive15.Name = "RectanglePrimitive15";
            this.RectanglePrimitive15.Interaction = null;
            this.Page1.Interaction = null;
            this.Page1.Margins = new Stimulsoft.Report.Components.StiMargins(1, 1, 1, 1);
            // 
            // StyleEstilo1
            // 
            this.StyleEstilo1 = new Stimulsoft.Report.StiStyle();
            this.StyleEstilo1.Name = "Estilo1";
            this.StyleEstilo1.Border = new Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.None, System.Drawing.Color.Red, 1, Stimulsoft.Base.Drawing.StiPenStyle.Solid, false, 4, new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black), false);
            this.StyleEstilo1.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.WhiteSmoke);
            this.StyleEstilo1.Font = new System.Drawing.Font("Arial", 8F);
            this.StyleEstilo1.Image = null;
            this.StyleEstilo1.NegativeTextBrush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Red);
            this.StyleEstilo1.TextBrush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black);
            // 
            // StyleStyle1
            // 
            this.StyleStyle1 = new Stimulsoft.Report.StiStyle();
            this.StyleStyle1.Name = "Style1";
            this.StyleStyle1.Border = new Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.None, System.Drawing.Color.Red, 1, Stimulsoft.Base.Drawing.StiPenStyle.Solid, false, 4, new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black), false);
            this.StyleStyle1.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Transparent);
            this.StyleStyle1.Font = new System.Drawing.Font("Arial", 8F);
            this.StyleStyle1.Image = null;
            this.StyleStyle1.NegativeTextBrush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Red);
            this.StyleStyle1.TextBrush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black);
            // 
            // StyleBorda_clara
            // 
            this.StyleBorda_clara = new Stimulsoft.Report.StiStyle();
            this.StyleBorda_clara.Name = "Borda clara";
            this.StyleBorda_clara.Border = new Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.Left, System.Drawing.Color.FromArgb(255, 242, 242, 242), 1, Stimulsoft.Base.Drawing.StiPenStyle.Solid, false, 4, new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black), false);
            this.StyleBorda_clara.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Transparent);
            this.StyleBorda_clara.Font = new System.Drawing.Font("Arial", 7F);
            this.StyleBorda_clara.Image = null;
            this.StyleBorda_clara.NegativeTextBrush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Red);
            this.StyleBorda_clara.TextBrush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black);
            // 
            // StyleBorda_preta
            // 
            this.StyleBorda_preta = new Stimulsoft.Report.StiStyle();
            this.StyleBorda_preta.Name = "Borda preta";
            this.StyleBorda_preta.Border = new Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.Left, System.Drawing.Color.Black, 1, Stimulsoft.Base.Drawing.StiPenStyle.Solid, false, 4, new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black), false);
            this.StyleBorda_preta.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Transparent);
            this.StyleBorda_preta.Font = new System.Drawing.Font("Arial", 7F);
            this.StyleBorda_preta.Image = null;
            this.StyleBorda_preta.NegativeTextBrush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Red);
            this.StyleBorda_preta.TextBrush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black);
            // 
            // StyleBorda_preta_2
            // 
            this.StyleBorda_preta_2 = new Stimulsoft.Report.StiStyle();
            this.StyleBorda_preta_2.Name = "Borda preta 2";
            this.StyleBorda_preta_2.Border = new Stimulsoft.Base.Drawing.StiAdvancedBorder(System.Drawing.Color.Transparent, 1, Stimulsoft.Base.Drawing.StiPenStyle.Solid, System.Drawing.Color.Transparent, 1, Stimulsoft.Base.Drawing.StiPenStyle.Solid, System.Drawing.Color.Black, 1, Stimulsoft.Base.Drawing.StiPenStyle.Solid, System.Drawing.Color.FromArgb(255, 242, 242, 242), 1, Stimulsoft.Base.Drawing.StiPenStyle.Solid, false, 4, new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black), false);
            this.StyleBorda_preta_2.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Transparent);
            this.StyleBorda_preta_2.Font = new System.Drawing.Font("Arial", 7F);
            this.StyleBorda_preta_2.Image = null;
            this.StyleBorda_preta_2.NegativeTextBrush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Red);
            this.StyleBorda_preta_2.TextBrush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black);
            // 
            // StyleEstilo2
            // 
            this.StyleEstilo2 = new Stimulsoft.Report.StiStyle();
            this.StyleEstilo2.Name = "Estilo2";
            this.StyleEstilo2.Border = new Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.All, System.Drawing.Color.FromArgb(255, 242, 242, 242), 1, Stimulsoft.Base.Drawing.StiPenStyle.Solid, false, 4, new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.FromArgb(255, 242, 242, 242)), false);
            this.StyleEstilo2.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.FromArgb(255, 255, 255, 255));
            this.StyleEstilo2.Font = new System.Drawing.Font("Arial", 8F);
            this.StyleEstilo2.Image = null;
            this.StyleEstilo2.NegativeTextBrush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Red);
            this.StyleEstilo2.TextBrush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.FromArgb(255, 0, 0, 0));
            this.Page1.Report = this;
            this.PageHeaderBand1.Page = this.Page1;
            this.PageHeaderBand1.Parent = this.Page1;
            this.Text13.Page = this.Page1;
            this.Text13.Parent = this.PageHeaderBand1;
            this.PageFooterBand1.Page = this.Page1;
            this.PageFooterBand1.Parent = this.Page1;
            this.Text18.Page = this.Page1;
            this.Text18.Parent = this.Page1;
            this.Text292.Page = this.Page1;
            this.Text292.Parent = this.Page1;
            this.h18.Page = this.Page1;
            this.h18.Parent = this.Page1;
            this.Text64.Page = this.Page1;
            this.Text64.Parent = this.h18;
            this.Text66.Page = this.Page1;
            this.Text66.Parent = this.h18;
            this.Text67.Page = this.Page1;
            this.Text67.Parent = this.h18;
            this.Text72.Page = this.Page1;
            this.Text72.Parent = this.h18;
            this.Text108.Page = this.Page1;
            this.Text108.Parent = this.h18;
            this.DataBand17.Page = this.Page1;
            this.DataBand17.Parent = this.Page1;
            this.Text65.Page = this.Page1;
            this.Text65.Parent = this.DataBand17;
            this.Text68.Page = this.Page1;
            this.Text68.Parent = this.DataBand17;
            this.Text69.Page = this.Page1;
            this.Text69.Parent = this.DataBand17;
            this.Text118.Page = this.Page1;
            this.Text118.Parent = this.DataBand17;
            this.StartPointPrimitive22.Page = this.Page1;
            this.StartPointPrimitive22.Parent = this.DataBand17;
            this.EndPointPrimitive20.Page = this.Page1;
            this.EndPointPrimitive20.Parent = this.DataBand17;
            this.VerticalLinePrimitive1.Page = this.Page1;
            this.VerticalLinePrimitive1.Parent = this.Page1;
            this.StartPointPrimitive4.Page = this.Page1;
            this.StartPointPrimitive4.Parent = this.Page1;
            this.StartPointPrimitive1.Page = this.Page1;
            this.StartPointPrimitive1.Parent = this.Page1;
            this.EndPointPrimitive1.Page = this.Page1;
            this.EndPointPrimitive1.Parent = this.Page1;
            this.StartPointPrimitive11.Page = this.Page1;
            this.StartPointPrimitive11.Parent = this.Page1;
            this.EndPointPrimitive10.Page = this.Page1;
            this.EndPointPrimitive10.Parent = this.Page1;
            this.StartPointPrimitive13.Page = this.Page1;
            this.StartPointPrimitive13.Parent = this.Page1;
            this.StartPointPrimitive2.Page = this.Page1;
            this.StartPointPrimitive2.Parent = this.Page1;
            this.EndPointPrimitive7.Page = this.Page1;
            this.EndPointPrimitive7.Parent = this.Page1;
            this.RectanglePrimitive15.Page = this.Page1;
            this.RectanglePrimitive15.Parent = this.Page1;
            this.EndRender += new System.EventHandler(this.CheckEndRenderRuntimes__EndRender);
            // 
            // Add to PageHeaderBand1.Components
            // 
            this.PageHeaderBand1.Components.Clear();
            this.PageHeaderBand1.Components.AddRange(new Stimulsoft.Report.Components.StiComponent[] {
                        this.Text13});
            // 
            // Add to h18.Components
            // 
            this.h18.Components.Clear();
            this.h18.Components.AddRange(new Stimulsoft.Report.Components.StiComponent[] {
                        this.Text64,
                        this.Text66,
                        this.Text67,
                        this.Text72,
                        this.Text108});
            // 
            // Add to DataBand17.Components
            // 
            this.DataBand17.Components.Clear();
            this.DataBand17.Components.AddRange(new Stimulsoft.Report.Components.StiComponent[] {
                        this.Text65,
                        this.Text68,
                        this.Text69,
                        this.Text118,
                        this.StartPointPrimitive22,
                        this.EndPointPrimitive20});
            // 
            // Add to Page1.Components
            // 
            this.Page1.Components.Clear();
            this.Page1.Components.AddRange(new Stimulsoft.Report.Components.StiComponent[] {
                        this.PageHeaderBand1,
                        this.PageFooterBand1,
                        this.Text18,
                        this.Text292,
                        this.h18,
                        this.DataBand17,
                        this.VerticalLinePrimitive1,
                        this.StartPointPrimitive4,
                        this.StartPointPrimitive1,
                        this.EndPointPrimitive1,
                        this.StartPointPrimitive11,
                        this.EndPointPrimitive10,
                        this.StartPointPrimitive13,
                        this.StartPointPrimitive2,
                        this.EndPointPrimitive7,
                        this.RectanglePrimitive15});
            // 
            // Add to Pages
            // 
            this.Pages.Clear();
            this.Pages.AddRange(new Stimulsoft.Report.Components.StiPage[] {
                        this.Page1});
            // 
            // Add to Styles
            // 
            this.Styles.Clear();
            this.Styles.AddRange(new Stimulsoft.Report.StiBaseStyle[] {
                        this.StyleEstilo1,
                        this.StyleStyle1,
                        this.StyleBorda_clara,
                        this.StyleBorda_preta,
                        this.StyleBorda_preta_2,
                        this.StyleEstilo2});
            this.history.Columns.AddRange(new Stimulsoft.Report.Dictionary.StiDataColumn[] {
                        new Stimulsoft.Report.Dictionary.StiDataColumn("id", "id", "id", typeof(string), "056f38c2db4845b9bc8b3e30139eadea"),
                        new Stimulsoft.Report.Dictionary.StiDataColumn("type_id", "type_id", "type_id", typeof(int), "178b24403a5c46ff9caa88919daf6356"),
                        new Stimulsoft.Report.Dictionary.StiDataColumn("description", "description", "description", typeof(string), "8d1717000c7e477a99fddfdcf37de89f"),
                        new Stimulsoft.Report.Dictionary.StiDataColumn("occurrence_id", "occurrence_id", "occurrence_id", typeof(string), "5404e0d8258949c79f5b16f493840adc"),
                        new Stimulsoft.Report.Dictionary.StiDataColumn("new_status", "new_status", "new_status", typeof(int), "af71ba3a27ee40ea8f430036881beea9"),
                        new Stimulsoft.Report.Dictionary.StiDataColumn("user_name", "user_name", "user_name", typeof(string), "db858eea75e84ac6bb80d2a9edd1a2d2"),
                        new Stimulsoft.Report.Dictionary.StiDataColumn("date", "date", "date", typeof(string), "db6533fbe38e4de681ad9ecb905b3a0b"),
                        new Stimulsoft.Report.Dictionary.StiDataColumn("analyze_tool_name", "analyze_tool_name", "analyze_tool_name", typeof(string), "610d0216dbf54cf3bcdcfd932d6c3e17"),
                        new Stimulsoft.Report.Dictionary.StiDataColumn("cause_why_name", "cause_why_name", "cause_why_name", typeof(string), "a54b0a587d414493ad51bc97521f81da"),
                        new Stimulsoft.Report.Dictionary.StiDataColumn("ishikawa_cause_name", "ishikawa_cause_name", "ishikawa_cause_name", typeof(string), "ab8a011248084c29b65160cbaf45121f"),
                        new Stimulsoft.Report.Dictionary.StiDataColumn("ishikawa_subcause_name", "ishikawa_subcause_name", "ishikawa_subcause_name", typeof(string), "c0d5d7ea1b1a4662bd0c90d3bd2f542f"),
                        new Stimulsoft.Report.Dictionary.StiDataColumn("recidivist_occurrence_code", "recidivist_occurrence_code", "recidivist_occurrence_code", typeof(string), "323dba39e05a4fb1891e1b09b5b9fdc6"),
                        new Stimulsoft.Report.Dictionary.StiDataColumn("recidivist_occurrence_name", "recidivist_occurrence_name", "recidivist_occurrence_name", typeof(string), "2f9af24dc3774911b9a6fc52cd5d20d9"),
                        new Stimulsoft.Report.Dictionary.StiDataColumn("recidivist_cause_name", "recidivist_cause_name", "recidivist_cause_name", typeof(string), "e1a8babb4a3e406d92c54914a1f7415a"),
                        new Stimulsoft.Report.Dictionary.StiDataColumn("plan_task_code", "plan_task_code", "plan_task_code", typeof(string), "7e22ba8c72f54ce8bde22133ce6170e3"),
                        new Stimulsoft.Report.Dictionary.StiDataColumn("plan_task_name", "plan_task_name", "plan_task_name", typeof(string), "3119cabd82c64ad3a6eac1e02e49d07e"),
                        new Stimulsoft.Report.Dictionary.StiDataColumn("parent_name", "parent_name", "parent_name", typeof(string), "b2329e0fc84b447aaa0619e040a15270"),
                        new Stimulsoft.Report.Dictionary.StiDataColumn("parent_code", "parent_code", "parent_code", typeof(string), "3ebe42328d9b4f66b4dbd9cc9017116f"),
                        new Stimulsoft.Report.Dictionary.StiDataColumn("history_date_timezone", "history_date_timezone", "history_date_timezone", typeof(string), "12d96473995642be8040d84b97d7e3d9"),
                        new Stimulsoft.Report.Dictionary.StiDataColumn("file_name", "file_name", "file_name", typeof(string), "85d09f428e594eab86f0e37741376aa2"),
                        new Stimulsoft.Report.Dictionary.StiDataColumn("action_name", "action_name", "action_name", typeof(string), "e7cb948691b14acfbf6760d9461e39cd"),
                        new Stimulsoft.Report.Dictionary.StiDataColumn("action_code", "action_code", "action_code", typeof(string), "8472165399be428996ffed6f89bd5cfe"),
                        new Stimulsoft.Report.Dictionary.StiDataColumn("status_id_oc", "status_id_oc", "status_id_oc", typeof(int), "2406bc26e4854a1d9aa87d362eaa7b8f"),
                        new Stimulsoft.Report.Dictionary.StiDataColumn("old_file_name", "old_file_name", "old_file_name", typeof(string), "12d18891543145b8bb0605dc5cbc980b"),
                        new Stimulsoft.Report.Dictionary.StiDataColumn("old_status", "old_status", "old_status", typeof(int), "ce8fc569ee9641608b3fb56f7b065f03"),
                        new Stimulsoft.Report.Dictionary.StiDataColumn("historic", "historic", "historic", typeof(bool), "0b3ab0ccfab1478c96c66cae5a7aa7b0"),
                        new Stimulsoft.Report.Dictionary.StiDataColumn("risk_name", "risk_name", "risk_name", typeof(string), "d3cef9479e254cf7b06f127fa96f4368"),
                        new Stimulsoft.Report.Dictionary.StiDataColumn("seem", "seem", "seem", typeof(string), "54466ac032d04aceb76f0fa5fbdd36ad"),
                        new Stimulsoft.Report.Dictionary.StiDataColumn("justification", "justification", "justification", typeof(string), "41a8772e8dab412a80c919ddb595fda1"),
                        new Stimulsoft.Report.Dictionary.StiDataColumn("is_electronic_signed", "is_electronic_signed", "is_electronic_signed", typeof(bool), null),
                        new Stimulsoft.Report.Dictionary.StiDataColumn("supplier_name", "supplier_name", "supplier_name", typeof(string), "68022a79c2644caeb29bda978d021e39")});
            this.history.Parameters.AddRange(new Stimulsoft.Report.Dictionary.StiDataParameter[] {
                        new Stimulsoft.Report.Dictionary.StiDataParameter("OccurrenceId", 3, 8, "4b350a359efa4d9a88bbb8fbe3c6b7a3"),
                        new Stimulsoft.Report.Dictionary.StiDataParameter("OffsetMinutes", 8, 0, "e958f22bef4347c483412a8c5df3cf93"),
                        new Stimulsoft.Report.Dictionary.StiDataParameter("Historic", 2, 0, null),
                        new Stimulsoft.Report.Dictionary.StiDataParameter("Lang", 3, 8, null)});
            this.DataSources.Add(this.history);
            this.Dictionary.Databases.Add(new Stimulsoft.Report.Dictionary.StiSqlDatabase("qualiex_occurrences_queries", "qualiex_occurrences_queries", "#%#", false, "9cbcd81e26d746d8817a3b4426d851c4"));
            ((Stimulsoft.Report.Dictionary.StiSqlDatabase)(this.Dictionary.Databases["qualiex_occurrences_queries"])).ConnectionStringEncrypted = "9Nb3yU0b+91sW7WMxEnhO8RY+0hhGBG8aFvV2GMY4yeLxHMp6F+jrONc/YDoBeEqkFbnKWl7u9lrQfHcwwCiY9VY16pDTtm84kTk3Oh04Sr50E/CTXG7mWtN0fFiAeJnxVL7iUVXq1nmSb3c+1wi/8XI9c9PXZM1bRX9rWdEsnvGdPUoT1DTgctL/WxjdGFGwlhly8ZUkwU=";
            this.history.Connecting += new System.EventHandler(this.Gethistory_SqlCommand);
        }
        
        public void Gethistory_SqlCommand(object sender, System.EventArgs e)
        {
            this.history.SqlCommand = "\r\nif @Historic = 1\r\n--------tabela temporária para tipos de histórico------\r\nDECLARE @history_types table (id int, name varchar(50), description varchar(8000))\r\nDECLARE @plan_tasks_history_types table (id int, name varchar(50), description varchar(8000))\r\nDECLARE @files_history_types table (id int, name varchar(50), description varchar(8000))\r\n------histórico da ocorrência------\r\nINSERT INTO @history_types\r\nSELECT\r\n\tt.id ,\r\n\tt.name,\r\n\tnull as description\r\n\tFROM dbo.history_types t\r\n\r\nUPDATE @history_types\r\nSET\r\n\tdescription =\r\n\tCASE\r\n\t\t\tWHEN id = 1 then \'Type1\'\r\n\t\t\tWHEN id = 2 then \'Type2\'\r\n\t\t\tWHEN id = 3 then \'Type3\'\r\n\t\t\tWHEN id = 4 then \'Type4\'\r\n\t\t\tWHEN id = 5 then \'Type5\'\r\n\t\t\tWHEN id = 6 then \'Type6\'\r\n\t\t\tWHEN id = 7 then \'Type7\'\r\n\t\t\tWHEN id = 8 then \'Type8\'\r\n\t\t\tWHEN id = 9 THEN \'Type9\'\r\n\t\t\tWHEN id = 10 THEN \'Type10\'\r\n\t\t\tWHEN id = 11 THEN \'Type11\'\r\n\t\t\tWHEN id = 12 THEN \'Type12\'\r\n\t\t\tWHEN id = 13 THEN \'Type13\'\r\n\t\t\tWHEN id = 14 THEN \'Type14\'\r\n\t\t\tWHEN id = 15 THEN \'Type15\'\r\n\t\t\tWHEN id = 16 THEN \'Type16\'\r\n\t\t\tWHEN id = 17 THEN \'Type17\'\r\n\t\t\tWHEN id = 18 THEN \'Type18\'\r\n\t\t\tWHEN id = 19 THEN \'Type19\'\r\n\t\t\tWHEN id = 20 THEN \'Type20\'\r\n\t\t\tWHEN id = 21 THEN \'Type21\'\r\n\t\t\tWHEN id = 22 THEN \'Type22\'\r\n\t\t\tWHEN id = 23 THEN \'Type23\'\r\n\t\t\tWHEN id = 24 THEN \'Type24\'\r\n\t\t\tWHEN id = 25 THEN \'Type25\'\r\n\t\t\tWHEN id = 26 THEN \'Type26\'\r\n\t\t\tWHEN id = 29 THEN \'Type29\'\r\n\t\t\tWHEN id = 30 THEN \'Type30\'\r\n\t\t\tWHEN id = 31 THEN \'Type31\'\r\n\t\t\tWHEN id = 32 THEN \'Type32\'\r\n\t\t\tWHEN id = 33 THEN \'Type33\'\r\n\t\t\tWHEN id = 34 THEN \'Type34\'\r\n\t\t\tWHEN id = 35 THEN \'Type35\'\r\n\t\t\tWHEN id = 36 THEN \'Type36\'\r\n\t\t\tWHEN id = 37 THEN \'Type37\'\r\n\t\t\tWHEN id = 40 THEN \'Type40\'\r\n\t\t\tWHEN id = 42 THEN \'Type42\'\r\n\t\t\tWHEN id = 43 THEN \'Type43\'\r\n\t\t\tWHEN id = 44 THEN \'Type44\'\r\n\t\t\tWHEN id = 45 THEN \'Type45\'\r\n\t\t\tWHEN id = 46 THEN \'Type46\'\r\n\t\t\tWHEN id = 47 THEN \'Type47\'\r\n\t\t\tWHEN id = 48 THEN \'Type48\'\r\n\t\t\tWHEN id = 49 THEN \'Type49\'\r\n\t\t\tWHEN id = 50 THEN \'Type50\'\r\n\t\t\tWHEN id = 51 THEN \'Type51\'\r\n\t\t\tWHEN id = 52 THEN \'Type52\'\r\n\t\t\tWHEN id = 53 THEN \'Type53\'\r\n\t\t\tWHEN id = 54 THEN \'Type54\'\r\n\t\t\tWHEN id = 55 THEN \'Type55\'\r\n\t\t\tWHEN id = 56 THEN \'Type56\'\r\n\t\t\tWHEN id = 57 THEN \'Type57\'\r\n\t\t\tWHEN id = 58 THEN \'Type58\'\r\n\t\t\tWHEN id = 59 THEN \'Type59\'\r\n\t\t\tWHEN id = 60 THEN \'Type60\'\r\n\t\t\tWHEN id = 61 THEN \'Type61\'\r\n\t\t\tWHEN id = 62 THEN \'Type62\'\r\n\t\t\tWHEN id = 63 THEN \'Type63\'\r\n\t\t\tWHEN id = 64 THEN \'Type64\'\r\n\t\t\tWHEN id = 66 THEN \'Type66\'\r\n\t\t\tWHEN id = 67 THEN \'Type67\'\r\n\t\t\tWHEN id = 68 THEN \'Type68\'\r\n\t\t\tWHEN id = 69 THEN \'Type69\'\r\n\t\t\tELSE \'\'\r\n\t\tEND\r\n\r\n------histórico dos planos de ação------\r\nINSERT INTO @plan_tasks_history_types (id, name, description)\r\nVALUES\r\n\t(1,\'NewPlanTask\',\'NewPlanTask\'),\r\n\t(2,\'UpdatePlanTask\',\'UpdatePlanTask\'),\r\n\t(3,\'WaitingStart\',\'WaitingStart\'),\r\n\t(4,\'ExecutionStarted\',\'ExecutionStarted\'),\r\n\t(5,\'EffectivenessCheck\',\'EffectivenessCheck\'),\r\n\t(6,\'Done\',\'Done\'),\r\n\t(7,\'Suspended\',\'Suspended\'),\r\n\t(8,\'Canceled\',\'Canceled\'),\r\n\t(9,\'ChangeChecker\',\'ChangeChecker\'),\r\n\t(10,\'ReportedProgress\',\'ReportedProgress\'),\r\n\t(11,\'ReportedCost\',\'ReportedCost\'),\r\n\t(12,\'UpdatedReportProgress\',\'UpdatedReportProgress\'),\r\n\t(13,\'RemovedReportProgress\',\'RemovedReportProgress\'),\r\n\t(14,\'UpdatedReportCost\',\'UpdatedReportCost\'),\r\n\t(15,\'RemovedReportCost\',\'RemovedReportCost\'),\r\n\t(16,\'CommentCreated\',\'CommentCreated\'),\r\n\t(17,\'CommentEdited\',\'CommentEdited\'),\r\n\t(18,\'CommentRemoved\',\'CommentRemoved\'),\r\n\t(19,\'RemoveTaskPlan\',\'RemoveTaskPlan\'),\r\n\t(20,\'TaskPlanLinked\',\'TaskPlanLinked\'),\r\n\t(21,\'TaskPlanUnlinked\',\'TaskPlanUnlinked\'),\r\n\t(22,\'ChildRemovedReportProgress\',\'ChildRemovedReportProgress\')\r\n\r\n------histórico dos anexos------\r\nINSERT INTO @files_history_types (id, name, description)\r\nVALUES\r\n\t(1, \'Upload\', \'Upload\'),\r\n\t(2, \'Download\', \'Download\'),\r\n\t(3, \'Remove\', \'Remove\'),\r\n\t(4,\t\'ViewFile\', \'ViewFile\'),\r\n\t(5,\t\'Rename\', \'Rename\')\r\n\r\n----------------------histórico------------------------\r\nSELECT * FROM \r\n(\r\n\tSELECT\r\n\t\t@Historic as historic,\r\n\t\tt.id,\r\n\t\toc.status_id as status_id_oc,\r\n\t\tt.type_id as type_id,\r\n\t\tt1.description as description,\r\n\t\tnull as file_name,\r\n\t\tnull as old_file_name,\r\n\t\tnull as action_name,\r\n\t\tnull as action_code,\r\n\t\tt.occurrence_id,\r\n\t\tt.new_status,\r\n\t\tt.old_status,\r\n\t\tcase  when t.user_type = 3 then (case when @Lang = \'en-US\' then CONCAT(t.user_name, \' [External]\') else CONCAT(t.user_name, \' [Externo]\') end)\r\n\t\telse t.user_name end as user_name,\r\n\t\tt.date,\r\n\t\tt.comments as justification,\r\n\t\tFORMAT (SWITCHOFFSET(t.date, @OffsetMinutes),\'dd/MM/yyyy HH:mm\')as history_date_timezone,\r\n\t\tt.analyze_tool_name,\r\n\t\tt.cause_why_name,\r\n\t\tt.ishikawa_cause_name,\r\n\t\tt.ishikawa_subcause_name,\r\n\t\tt.recidivist_occurrence_code,\r\n\t\tt.recidivist_occurrence_name,\r\n\t\tt.recidivist_cause_name,             \r\n\t\tnull as plan_task_code,\r\n\t\tnull as plan_task_name,\r\n\t\tnull as parent_name,\r\n\t\tnull as parent_code,\r\n\t\tr.code + \' - \' + r.name as risk_name,\r\n\t\ti.seem,\r\n\t\ts.code + \' - \' + s.name as supplier_name,\r\n\t\tt.is_electronic_signed\r\n\tFROM dbo.vw_history_list t\r\n\tinner join dbo.vw_occurrences_list oc on (t.occurrence_id=oc.id)\r\n\tLEFT JOIN dbo.risks r WITH(NOLOCK) on (r.id = t.association_id collate Latin1_General_CS_AS)\r\n\tLEFT JOIN dbo.incidences i WITH(NOLOCK) on (t.association_id = i.id)\r\n\tLEFT JOIN dbo.suppliers s WITH(NOLOCK) on (s.id = t.association_id collate Latin1_General_CS_AS)\r\n\tLEFT JOIN @history_types t1 ON (t1.id = t.type_id)\r\n\tWHERE t.occurrence_id = @OccurrenceId\r\n\t\r\n\tUNION\r\n\t\r\n\tSELECT\r\n\t\t@Historic as historic,\r\n\t\tt.id,\r\n\t\tnull as status_id_oc,\r\n\t\tt4.id as type_id,\r\n\t\tt4.description as description,\r\n\t\tt3.name as file_name,\r\n\t\tf.old_name as old_file_name,\r\n\t\tnull as action_name,\r\n\t\tnull as action_code,\r\n\t\tt2.id_association as occurrence_id,\r\n\t\tnull as new_status,\r\n\t\tnull as old_status,\r\n\t\tcase  when ct1.id_user_type = 3 then (case when @Lang = \'en-US\' then CONCAT(t1.name, \' [External]\') else CONCAT(t1.name, \' [Externo]\') end)\r\n\t\telse t1.name end as user_name,\r\n\t\tt.date,\r\n\t\tt.justification,\r\n\t\tFORMAT (SWITCHOFFSET(t.date, @OffsetMinutes),\'dd/MM/yyyy HH:mm\')as history_date_timezone,\r\n\t\tnull as analyze_tool_name,\r\n\t\tnull as cause_why_name,\r\n\t\tnull as ishikawa_cause_name,\r\n\t\tnull as ishikawa_subcause_name,\r\n\t\tnull as recidivist_occurrence_code,\r\n\t\tnull as recidivist_occurrence_name,\r\n\t\tnull as recidivist_cause_name,\r\n\t\tnull as plan_task_code,\r\n\t\tnull as plan_task_name,\r\n\t\tnull as parent_name,\r\n\t\tnull as parent_code,\r\n\t\tnull as risk_name,\r\n\t\tnull as seem,\r\n\t\tnull as supplier_name,\r\n\t\tt.is_electronic_signed\r\n\tFROM dbo.files_history t WITH(NOLOCK)\r\n\tINNER JOIN dbo.users t1 WITH(NOLOCK) ON t1.id = t.id_user collate Latin1_General_CS_AS\r\n\tINNER JOIN dbo.files_associations t2 WITH(NOLOCK) ON (t2.id_file = t.id_file)\r\n\tINNER JOIN dbo.companies_users ct1 WITH(NOLOCK) ON (t1.id = ct1.id_user and ct1.id_company = t2.id_company)\r\n\tINNER JOIN dbo.files t3 WITH(NOLOCK) ON (t3.id = t2.id_file)\r\n\tINNER JOIN @files_history_types t4 ON (t4.id = t.id_type)\r\nLEFT JOIN (SELECT t.value as old_name, h.id from  dbo.files_history h CROSS APPLY OPENJSON(json_data) t where t.[key]=\'oldName\') f on (t.id=f.id)\r\n\tWHERE t2.id_association = @OccurrenceId\r\n\t\r\n\tUNION\r\n\t\r\n\tSELECT\r\n\t\t@Historic as historic,\r\n\t\tt.id,\r\n\t\tnull as status_id_oc,\r\n\t\tnull as type_id,\r\n\t\tt4.description as description,\r\n\t\tnull as file_name,\r\n\t\tnull as old_file_name,\r\n\t\tt3.name as action_name,\r\n\t\tt3.code as action_code,\r\n\t\tt2.id_association as occurrence_id,\r\n\t\tnull as new_status,\r\n\t\tnull as old_status,\r\n\t\tcase  when ct1.id_user_type = 3 then (case when @Lang = \'en-US\' then CONCAT(t1.name, \' [External]\') else CONCAT(t1.name, \' [Externo]\') end)\r\n\t\telse t1.name end as user_name,\r\n\t\tt.date,\r\n\t\tt.justification,\r\n\t\tFORMAT (SWITCHOFFSET(t.date, @OffsetMinutes),\'dd/MM/yyyy HH:mm\')as history_date_timezone,\r\n\t\tnull as analyze_tool_name,\r\n\t\tnull as cause_why_name,\r\n\t\tnull as ishikawa_cause_name,\r\n\t\tnull as ishikawa_subcause_name,\r\n\t\tnull as recidivist_occurrence_code,\r\n\t\tnull as recidivist_occurrence_name,\r\n\t\tnull as recidivist_cause_name,\r\n\t\tt3.code as plan_task_code,\r\n\t\tt3.name as plan_task_name,\r\n\t\tnull as parent_name,\r\n\t\tnull as parent_code,\r\n\t\tnull as risk_name,\r\n\t\tnull as seem,\r\n\t\tnull as supplier_name,\r\n\t\t0 as is_electronic_signed\r\n\tFROM dbo.plan_tasks_history t WITH(NOLOCK)\r\n\tINNER JOIN dbo.users t1 WITH(NOLOCK) ON t1.id = t.id_user collate Latin1_General_CS_AS\r\n\tINNER JOIN dbo.plan_tasks_associations t2 WITH(NOLOCK) ON (t2.id_plan_task = t.id_plan_task)\r\n\tINNER JOIN dbo.companies_users ct1 WITH(NOLOCK) ON (t1.id = ct1.id_user and ct1.id_company = t2.id_company)\r\n\tINNER JOIN dbo.vw_plan_tasks_list t3 ON (t3.id = t2.id_plan_task)\r\n\tINNER JOIN @plan_tasks_history_types t4 ON (t4.id = t.id_type)\r\n\tWHERE t2.id_association = @OccurrenceId\r\n) t\r\nORDER BY t.date desc";
            this.history.Parameters["OccurrenceId"].ParameterValue = OccurrenceId;
            this.history.Parameters["OffsetMinutes"].ParameterValue = OffsetMinutes;
            this.history.Parameters["Historic"].ParameterValue = Historic;
            this.history.Parameters["Lang"].ParameterValue = Lang;
        }
        
        // CheckerInfo: *None* *DataSources*
        #region DataSource history
        public class historyDataSource : Stimulsoft.Report.Dictionary.StiSqlSource
        {
            
            public historyDataSource() : 
                    base("qualiex_occurrences_queries", "history", "history", "", true, false, 30, "15c8761b99564a339f41cfd587551097")
            {
            }
            
            public virtual string id
            {
                get
                {
                    return ((string)(StiReport.ChangeType(this["id"], typeof(string), true)));
                }
            }
            
            public virtual int type_id
            {
                get
                {
                    return ((int)(StiReport.ChangeType(this["type_id"], typeof(int), true)));
                }
            }
            
            public virtual string description
            {
                get
                {
                    return ((string)(StiReport.ChangeType(this["description"], typeof(string), true)));
                }
            }
            
            public virtual string occurrence_id
            {
                get
                {
                    return ((string)(StiReport.ChangeType(this["occurrence_id"], typeof(string), true)));
                }
            }
            
            public virtual int new_status
            {
                get
                {
                    return ((int)(StiReport.ChangeType(this["new_status"], typeof(int), true)));
                }
            }
            
            public virtual string user_name
            {
                get
                {
                    return ((string)(StiReport.ChangeType(this["user_name"], typeof(string), true)));
                }
            }
            
            public virtual string date
            {
                get
                {
                    return ((string)(StiReport.ChangeType(this["date"], typeof(string), true)));
                }
            }
            
            public virtual string analyze_tool_name
            {
                get
                {
                    return ((string)(StiReport.ChangeType(this["analyze_tool_name"], typeof(string), true)));
                }
            }
            
            public virtual string cause_why_name
            {
                get
                {
                    return ((string)(StiReport.ChangeType(this["cause_why_name"], typeof(string), true)));
                }
            }
            
            public virtual string ishikawa_cause_name
            {
                get
                {
                    return ((string)(StiReport.ChangeType(this["ishikawa_cause_name"], typeof(string), true)));
                }
            }
            
            public virtual string ishikawa_subcause_name
            {
                get
                {
                    return ((string)(StiReport.ChangeType(this["ishikawa_subcause_name"], typeof(string), true)));
                }
            }
            
            public virtual string recidivist_occurrence_code
            {
                get
                {
                    return ((string)(StiReport.ChangeType(this["recidivist_occurrence_code"], typeof(string), true)));
                }
            }
            
            public virtual string recidivist_occurrence_name
            {
                get
                {
                    return ((string)(StiReport.ChangeType(this["recidivist_occurrence_name"], typeof(string), true)));
                }
            }
            
            public virtual string recidivist_cause_name
            {
                get
                {
                    return ((string)(StiReport.ChangeType(this["recidivist_cause_name"], typeof(string), true)));
                }
            }
            
            public virtual string plan_task_code
            {
                get
                {
                    return ((string)(StiReport.ChangeType(this["plan_task_code"], typeof(string), true)));
                }
            }
            
            public virtual string plan_task_name
            {
                get
                {
                    return ((string)(StiReport.ChangeType(this["plan_task_name"], typeof(string), true)));
                }
            }
            
            public virtual string parent_name
            {
                get
                {
                    return ((string)(StiReport.ChangeType(this["parent_name"], typeof(string), true)));
                }
            }
            
            public virtual string parent_code
            {
                get
                {
                    return ((string)(StiReport.ChangeType(this["parent_code"], typeof(string), true)));
                }
            }
            
            public virtual string history_date_timezone
            {
                get
                {
                    return ((string)(StiReport.ChangeType(this["history_date_timezone"], typeof(string), true)));
                }
            }
            
            public virtual string file_name
            {
                get
                {
                    return ((string)(StiReport.ChangeType(this["file_name"], typeof(string), true)));
                }
            }
            
            public virtual string action_name
            {
                get
                {
                    return ((string)(StiReport.ChangeType(this["action_name"], typeof(string), true)));
                }
            }
            
            public virtual string action_code
            {
                get
                {
                    return ((string)(StiReport.ChangeType(this["action_code"], typeof(string), true)));
                }
            }
            
            public virtual int status_id_oc
            {
                get
                {
                    return ((int)(StiReport.ChangeType(this["status_id_oc"], typeof(int), true)));
                }
            }
            
            public virtual string old_file_name
            {
                get
                {
                    return ((string)(StiReport.ChangeType(this["old_file_name"], typeof(string), true)));
                }
            }
            
            public virtual int old_status
            {
                get
                {
                    return ((int)(StiReport.ChangeType(this["old_status"], typeof(int), true)));
                }
            }
            
            public virtual bool historic
            {
                get
                {
                    return ((bool)(StiReport.ChangeType(this["historic"], typeof(bool), true)));
                }
            }
            
            public virtual string risk_name
            {
                get
                {
                    return ((string)(StiReport.ChangeType(this["risk_name"], typeof(string), true)));
                }
            }
            
            public virtual string seem
            {
                get
                {
                    return ((string)(StiReport.ChangeType(this["seem"], typeof(string), true)));
                }
            }
            
            public virtual string justification
            {
                get
                {
                    return ((string)(StiReport.ChangeType(this["justification"], typeof(string), true)));
                }
            }
            
            public virtual bool is_electronic_signed
            {
                get
                {
                    return ((bool)(StiReport.ChangeType(this["is_electronic_signed"], typeof(bool), true)));
                }
            }
            
            public virtual string supplier_name
            {
                get
                {
                    return ((string)(StiReport.ChangeType(this["supplier_name"], typeof(string), true)));
                }
            }
        }
        #endregion DataSource history
        #endregion StiReport Designer generated code - do not modify


        int getPixelsFromCM(int resolution, decimal cm)
        {
        return System.Convert.ToInt32((cm / 2.54m) * resolution);
        }

        }

        }


    </Script>
  <ScriptLanguage>CSharp</ScriptLanguage>
  <Styles isList="true" count="6">
    <Estilo1 Ref="33" type="Stimulsoft.Report.StiStyle" isKey="true">
      <Border>None;Red;1;Solid;False;4;Black</Border>
      <Brush>WhiteSmoke</Brush>
      <Conditions isList="true" count="0" />
      <Font>Arial,8</Font>
      <Name>Estilo1</Name>
      <NegativeTextBrush>Red</NegativeTextBrush>
      <TextBrush>Black</TextBrush>
    </Estilo1>
    <Style1 Ref="34" type="Stimulsoft.Report.StiStyle" isKey="true">
      <Border>None;Red;1;Solid;False;4;Black</Border>
      <Brush>Transparent</Brush>
      <Conditions isList="true" count="0" />
      <Font>Arial,8</Font>
      <Name>Style1</Name>
      <NegativeTextBrush>Red</NegativeTextBrush>
      <TextBrush>Black</TextBrush>
    </Style1>
    <Borda_x0020_clara Ref="35" type="Stimulsoft.Report.StiStyle" isKey="true">
      <Border>Left;[242:242:242];1;Solid;False;4;Black</Border>
      <Brush>Transparent</Brush>
      <Conditions isList="true" count="0" />
      <Font>Arial,7</Font>
      <Name>Borda clara</Name>
      <NegativeTextBrush>Red</NegativeTextBrush>
      <TextBrush>Black</TextBrush>
    </Borda_x0020_clara>
    <Borda_x0020_preta Ref="36" type="Stimulsoft.Report.StiStyle" isKey="true">
      <Border>Left;Black;1;Solid;False;4;Black</Border>
      <Brush>Transparent</Brush>
      <Conditions isList="true" count="0" />
      <Font>Arial,7</Font>
      <Name>Borda preta</Name>
      <NegativeTextBrush>Red</NegativeTextBrush>
      <TextBrush>Black</TextBrush>
    </Borda_x0020_preta>
    <Borda_x0020_preta_x0020_2 Ref="37" type="Stimulsoft.Report.StiStyle" isKey="true">
      <Border>AdvTransparent;1;Solid;Transparent;1;Solid;Black;1;Solid;[242:242:242];1;Solid;False;4;Black</Border>
      <Brush>Transparent</Brush>
      <Conditions isList="true" count="0" />
      <Font>Arial,7</Font>
      <Name>Borda preta 2</Name>
      <NegativeTextBrush>Red</NegativeTextBrush>
      <TextBrush>Black</TextBrush>
    </Borda_x0020_preta_x0020_2>
    <Estilo2 Ref="38" type="Stimulsoft.Report.StiStyle" isKey="true">
      <Border>All;[242:242:242];1;Solid;False;4;[242:242:242]</Border>
      <Brush>[255:255:255]</Brush>
      <Conditions isList="true" count="0" />
      <Font>Arial,8</Font>
      <Name>Estilo2</Name>
      <NegativeTextBrush>Red</NegativeTextBrush>
      <TextBrush>[0:0:0]</TextBrush>
    </Estilo2>
  </Styles>
</StiSerializer>