﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<StiSerializer version="1.02" type="Net" application="StiReport">
  <Dictionary Ref="1" type="Dictionary" isKey="true">
    <BusinessObjects isList="true" count="0" />
    <Databases isList="true" count="1">
      <Cubes Ref="2" type="Stimulsoft.Report.Dictionary.StiOleDbDatabase" isKey="true">
        <Alias>Cubes</Alias>
        <ConnectionStringEncrypted />
        <Name>Cubes</Name>
      </Cubes>
    </Databases>
    <DataSources isList="true" count="4">
      <Mandant Ref="3" type="Stimulsoft.Report.Dictionary.StiOleDbSource" isKey="true">
        <Alias>Mandant</Alias>
        <Columns isList="true" count="20">
          <value>ORIGINAL,ID,ID,ID,System.Int64,_x0037_f5282f1cdf740049c82240d6069ca85</value>
          <value>ORIGINAL,LegalForm,LegalForm,LegalForm,System.Int64,_x0038_ac078629ee24558a06b9b4d79d6f0d1</value>
          <value>ORIGINAL,RegistrationCode,RegistrationCode,RegistrationCode,System.String,_x0037_b1c7eede4fa49078e025d75494e5107</value>
          <value>ORIGINAL,DiscountDays,DiscountDays,DiscountDays,System.Int32,_x0031_8e3b89a6b5b41b79101b32ff10f76bf</value>
          <value>ORIGINAL,DiscountPercent,DiscountPercent,DiscountPercent,System.Double,_x0032_e8693cb45a54966a1d54f83f34b18ec</value>
          <value>ORIGINAL,DiscountDays2,DiscountDays2,DiscountDays2,System.Int32,_x0035_5148186b79b4e73a0b3966d9d4d3188</value>
          <value>ORIGINAL,DiscountPercent2,DiscountPercent2,DiscountPercent2,System.Double,_x0031_da2a7b1b4804989a1f63990e625c6d3</value>
          <value>ORIGINAL,NetDays,NetDays,NetDays,System.Int32,_x0038_a2026ebe129410ea35370d0fd8b6796</value>
          <value>ORIGINAL,Label,Label,Label,System.String,_x0036_a4f3a45a8ea4199823b7d012a4d365f</value>
          <value>ORIGINAL,Street,Street,Street,System.String,_x0033_a2c057690e54a649af64888658d6b77</value>
          <value>ORIGINAL,ZipCode,ZipCode,ZipCode,System.String,_x0031_17f59e764524d54b20971c545a36763</value>
          <value>ORIGINAL,CityLabel,CityLabel,CityLabel,System.String,_x0039_ffddbe196b34b56b7f8ae3742f5b193</value>
          <value>ORIGINAL,CountryLabel,CountryLabel,CountryLabel,System.String,_x0031_2d76821093a489e9aa2f114a6a5eb8a</value>
          <value>ORIGINAL,UIDNumber,UIDNumber,UIDNumber,System.String,_x0033_c597e069dac4f8ba323a718cda304d3</value>
          <value>ORIGINAL,Photo,Photo,Photo,System.Byte[],cac865a184fb4be5b4446e4015d037db</value>
          <value>ORIGINAL,Mandant_Telefon,Mandant_Telefon,Mandant_Telefon,System.String,_x0033_784a193254449f084c971238fc05558</value>
          <value>ORIGINAL,Mandant_Homepage,Mandant_Homepage,Mandant_Homepage,System.String,_x0039_670515afe184e709e3fbd983720fe50</value>
          <value>ORIGINAL,Mandant_Fax,Mandant_Fax,Mandant_Fax,System.String,_x0039_dcbb205219c42df8c8b8e5e77f900eb</value>
          <value>ORIGINAL,Mandant_Email,Mandant_Email,Mandant_Email,System.String,_x0037_27db5a0a43a454bbd29120549f4ad68</value>
          <value>ORIGINAL,countrycode,countrycode,countrycode,System.String,d65ab1e444c047fa8d58db8a4b0b3400</value>
        </Columns>
        <CommandTimeout>30</CommandTimeout>
        <Dictionary isRef="1" />
        <Key>ed85f41e8128417cb036ad352cb2bb82</Key>
        <Name>Mandant</Name>
        <NameInSource>Cubes</NameInSource>
        <Parameters isList="true" count="0" />
        <SqlCommand>select Label, Street, ZipCode, CityLabel, CountryLabel, UIDNumber, RegistrationCode, Photo, countrycode,
	(select top 1 Value from [doContactInfo-view] Where disabled = 0 and Address = acv.ID and Label Like '%Telefon%') as Mandant_Telefon,
(select top 1 Value from [doContactInfo-view] Where disabled = 0 and Address = acv.ID and Label Like '%Homepage%') as Mandant_Homepage,
(select top 1 Value from [doContactInfo-view] Where disabled = 0 and Address = acv.ID and Label Like '%Fax%') as Mandant_Fax,
(select top 1 Value from [doContactInfo-view] Where disabled = 0 and Address = acv.ID and Label Like '%mail%') as Mandant_Email
	
	
from [doAccount-view] acv where acv.disabled = 0 and acv.id = 
(
select CONVERT(bigint,CONVERT(varchar, [Value])) from doProfileEntry
	where [Key] like 'frameCube.CustomerAddressID'
	and [User] is NULL
)




</SqlCommand>
      </Mandant>
      <Mitarbeiter Ref="4" type="Stimulsoft.Report.Dictionary.StiOleDbSource" isKey="true">
        <Alias>Mitarbeiter</Alias>
        <Columns isList="true" count="5">
          <value>ORIGINAL,id,id,id,System.Int64,_x0031_9547ca75eea4c4fa3af4199a5e1dbbc</value>
          <value>ORIGINAL,Nachname,Nachname,Nachname,System.String,ea08120525f3407aace7fdebd298d633</value>
          <value>ORIGINAL,Vorname,Vorname,Vorname,System.String,_x0035_d870e81318146ca8ef508ee1501a4d9</value>
          <value>ORIGINAL,Job,Job,Job,System.String,d23b8ab6789f45898bfa4a7c6f5b7ad8</value>
          <value>ORIGINAL,Adresse,Adresse,Adresse,System.String,ae40425bee194b9e94b3202de8dec893</value>
        </Columns>
        <CommandTimeout>30</CommandTimeout>
        <Dictionary isRef="1" />
        <Key>d08ebc8397be4b42a79faba8f9a154b2</Key>
        <Name>Mitarbeiter</Name>
        <NameInSource>Cubes</NameInSource>
        <Parameters isList="true" count="0" />
        <SqlCommand>Select
	c.ID as id,
	c.Lastname as Nachname,
	c.Firstname as Vorname,
	c.Job,
	CONCAT(a.street,', ', a.ZipCode,' ', a.CityLabel) as Adresse


	from
	[doContact-View] as c
inner join [doAddress-View] as a on a.ID = c.id
inner join [doEmployee-View] as ma on MA.id = c.id
where c.id = {DataObjectID} 
</SqlCommand>
      </Mitarbeiter>
      <Ansprechpartner Ref="5" type="Stimulsoft.Report.Dictionary.StiOleDbSource" isKey="true">
        <Alias>Ansprechpartner</Alias>
        <Columns isList="true" count="4">
          <value>cid,System.Int64</value>
          <value>Kunde,System.String</value>
          <value>Bezeichnung,System.String</value>
          <value>kundeid,System.Int64</value>
        </Columns>
        <CommandTimeout>30</CommandTimeout>
        <Dictionary isRef="1" />
        <Key>09344ce87978425caae6191f3180ce38</Key>
        <Name>Ansprechpartner</Name>
        <NameInSource>Cubes</NameInSource>
        <Parameters isList="true" count="0" />
        <SqlCommand>select
	C.id as cid,
	C.label as Bezeichnung,
	a.Label as Kunde,
	a.ID as kundeid
	from [doContact-View] as c
inner join [doConnection-View] as con on con.SourceObject = c.ID and con.Label like 'ddl-Ansprechpartner%' and con.disabled = 0
inner join [doAddress-View] as a on a.ID = con.TargetObject and a.disabled = 0
where c.id = {DataObjectID} </SqlCommand>
      </Ansprechpartner>
      <Verantwortlichkeiten Ref="6" type="Stimulsoft.Report.Dictionary.StiOleDbSource" isKey="true">
        <Alias>Verantwortlichkeiten</Alias>
        <Columns isList="true" count="5">
          <value>cid,System.Int64</value>
          <value>Bezeichnung,System.String</value>
          <value>Sikill,System.String</value>
          <value>skillid,System.Int64</value>
          <value>Art,System.String</value>
        </Columns>
        <CommandTimeout>30</CommandTimeout>
        <Dictionary isRef="1" />
        <Key>ec490682891347ccaaca5fb47ad3f71c</Key>
        <Name>Verantwortlichkeiten</Name>
        <NameInSource>Cubes</NameInSource>
        <Parameters isList="true" count="0" />
        <SqlCommand>
select
	C.id as cid,
	C.label as Bezeichnung,
	s.Label as Sikill,
	s.ID as skillid,
	con.label as Art
	from [doContact-View] as c
inner join [doConnection-View] as con on con.TargetObject = c.ID and con.disabled = 0
inner join [doskill-View] as s on s.ID = con.SourceObject
where c.id = {DataObjectID} and s.disabled = 0
order by con.Label
</SqlCommand>
      </Verantwortlichkeiten>
    </DataSources>
    <Relations isList="true" count="0" />
    <Report isRef="0" />
    <Resources isList="true" count="0" />
    <UserFunctions isList="true" count="0" />
    <Variables isList="true" count="2">
      <value>,DataObjectID,DataObjectID,,System.Int64,_x0030_,True,False,False,False</value>
      <value>,CubeUserID,CubeUserID,,System.Int64,_x0031_18631,True,False,False,False</value>
    </Variables>
  </Dictionary>
  <EngineVersion>EngineV2</EngineVersion>
  <GlobalizationStrings isList="true" count="0" />
  <Key>d67536c69dc94c9abddf7e4862508e8e</Key>
  <MetaTags isList="true" count="0" />
  <Pages isList="true" count="1">
    <Page1 Ref="7" type="Page" isKey="true">
      <Border>None;Black;2;Solid;False;4;Black</Border>
      <Brush>Transparent</Brush>
      <Components isList="true" count="7">
        <PageHeaderBand1 Ref="8" type="PageHeaderBand" isKey="true">
          <Brush>Transparent</Brush>
          <ClientRectangle>0,0.4,19,1.2</ClientRectangle>
          <Components isList="true" count="2">
            <Text117 Ref="9" type="Text" isKey="true">
              <Brush>Transparent</Brush>
              <ClientRectangle>0,0,4.2,0.8</ClientRectangle>
              <Conditions isList="true" count="0" />
              <Expressions isList="true" count="0" />
              <Font>Arial,14,Bold</Font>
              <Margins>0,0,0,0</Margins>
              <Name>Text117</Name>
              <Page isRef="7" />
              <Parent isRef="8" />
              <Text>{Mandant.Label}</Text>
              <TextBrush>Black</TextBrush>
              <Type>DataColumn</Type>
            </Text117>
            <Image3 Ref="10" type="Image" isKey="true">
              <AspectRatio>True</AspectRatio>
              <BeforePrintEvent>if (Mandant.Photo != null)
{
System.IO.MemoryStream ms = new System.IO.MemoryStream(Mandant.Photo);
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter bf = new System.Runtime.Serialization.Formatters.Binary.BinaryFormatter();
Bitmap bitmap = (Bitmap)bf.Deserialize(ms);
	Image3.Image = bitmap;
}</BeforePrintEvent>
              <Border>None;[37:141:191];1;Solid;False;4;Black</Border>
              <Brush>Transparent</Brush>
              <ClientRectangle>15.6,0,3.4,1.2</ClientRectangle>
              <Conditions isList="true" count="0" />
              <DataColumn>Mandant.Photo</DataColumn>
              <Expressions isList="true" count="0" />
              <Guid>d0cdd293405d44b6984fb15990bd1481</Guid>
              <IconColor>68, 114, 196</IconColor>
              <Margins>0,0,0,0</Margins>
              <Name>Image3</Name>
              <Page isRef="7" />
              <Parent isRef="8" />
              <Stretch>True</Stretch>
            </Image3>
          </Components>
          <Conditions isList="true" count="0" />
          <Expressions isList="true" count="0" />
          <Name>PageHeaderBand1</Name>
          <Page isRef="7" />
          <Parent isRef="7" />
        </PageHeaderBand1>
        <PageFooterBand1 Ref="11" type="PageFooterBand" isKey="true">
          <Brush>Transparent</Brush>
          <ClientRectangle>0,26.9,19,0.8</ClientRectangle>
          <Components isList="true" count="4">
            <Text141 Ref="12" type="Text" isKey="true">
              <Brush>Transparent</Brush>
              <ClientRectangle>2.8,0.14,13.4,0.6</ClientRectangle>
              <Conditions isList="true" count="0" />
              <Expressions isList="true" count="0" />
              <Font>Arial,8</Font>
              <HorAlignment>Center</HorAlignment>
              <Margins>0,0,0,0</Margins>
              <Name>Text141</Name>
              <Page isRef="7" />
              <Parent isRef="11" />
              <Text>{Mandant.Street}, {Mandant.ZipCode} {Mandant.CityLabel} - {Mandant.Mandant_Telefon} - {Mandant.Mandant_Email} - {Mandant.Mandant_Homepage}</Text>
              <TextBrush>Black</TextBrush>
              <Type>Expression</Type>
              <VertAlignment>Bottom</VertAlignment>
            </Text141>
            <Text135 Ref="13" type="Text" isKey="true">
              <Brush>Transparent</Brush>
              <ClientRectangle>16.2,0.14,2.8,0.6</ClientRectangle>
              <Conditions isList="true" count="0" />
              <Expressions isList="true" count="0" />
              <Font>Arial,8</Font>
              <HorAlignment>Right</HorAlignment>
              <Margins>0,0,0,0</Margins>
              <Name>Text135</Name>
              <Page isRef="7" />
              <Parent isRef="11" />
              <Text>{PageNofM}</Text>
              <TextBrush>Black</TextBrush>
              <Type>SystemVariables</Type>
              <VertAlignment>Bottom</VertAlignment>
            </Text135>
            <Text139 Ref="14" type="Text" isKey="true">
              <Brush>Transparent</Brush>
              <ClientRectangle>0,0.14,1.4,0.6</ClientRectangle>
              <Conditions isList="true" count="0" />
              <Expressions isList="true" count="0" />
              <Font>Arial,8</Font>
              <Margins>0,0,0,0</Margins>
              <Name>Text139</Name>
              <Page isRef="7" />
              <Parent isRef="11" />
              <Text>{Today}</Text>
              <TextBrush>Black</TextBrush>
              <Type>SystemVariables</Type>
              <VertAlignment>Bottom</VertAlignment>
            </Text139>
            <Text140 Ref="15" type="Text" isKey="true">
              <Brush>Transparent</Brush>
              <ClientRectangle>1.4,0.14,1.4,0.6</ClientRectangle>
              <Conditions isList="true" count="0" />
              <Expressions isList="true" count="0" />
              <Font>Arial,8</Font>
              <Margins>0,0,0,0</Margins>
              <Name>Text140</Name>
              <Page isRef="7" />
              <Parent isRef="11" />
              <Text>{Time}</Text>
              <TextBrush>Black</TextBrush>
              <TextFormat Ref="16" type="TimeFormat" isKey="true" />
              <Type>SystemVariables</Type>
              <VertAlignment>Bottom</VertAlignment>
            </Text140>
          </Components>
          <Conditions isList="true" count="0" />
          <Expressions isList="true" count="0" />
          <Name>PageFooterBand1</Name>
          <Page isRef="7" />
          <Parent isRef="7" />
        </PageFooterBand1>
        <DataBand1 Ref="17" type="DataBand" isKey="true">
          <Brush>Transparent</Brush>
          <BusinessObjectGuid isNull="true" />
          <ClientRectangle>0,2.4,19,1.4</ClientRectangle>
          <Components isList="true" count="4">
            <Text1 Ref="18" type="Text" isKey="true">
              <Brush>Transparent</Brush>
              <ClientRectangle>0,0,7.4,0.6</ClientRectangle>
              <Conditions isList="true" count="0" />
              <Expressions isList="true" count="0" />
              <Font>Arial,14,Bold</Font>
              <Margins>0,0,0,0</Margins>
              <Name>Text1</Name>
              <Page isRef="7" />
              <Parent isRef="17" />
              <Text>{Mitarbeiter.Vorname}</Text>
              <TextBrush>Black</TextBrush>
            </Text1>
            <Text2 Ref="19" type="Text" isKey="true">
              <Brush>Transparent</Brush>
              <ClientRectangle>0,0.6,7.4,0.6</ClientRectangle>
              <Conditions isList="true" count="0" />
              <Expressions isList="true" count="0" />
              <Font>Arial,14,Bold</Font>
              <Margins>0,0,0,0</Margins>
              <Name>Text2</Name>
              <Page isRef="7" />
              <Parent isRef="17" />
              <Text>{Mitarbeiter.Nachname}</Text>
              <TextBrush>Black</TextBrush>
            </Text2>
            <Text3 Ref="20" type="Text" isKey="true">
              <Brush>Transparent</Brush>
              <ClientRectangle>11,0,8,0.6</ClientRectangle>
              <Conditions isList="true" count="0" />
              <Expressions isList="true" count="0" />
              <Font>Arial,14,Bold</Font>
              <HorAlignment>Right</HorAlignment>
              <Margins>0,0,0,0</Margins>
              <Name>Text3</Name>
              <Page isRef="7" />
              <Parent isRef="17" />
              <Text>{Mitarbeiter.Job}</Text>
              <TextBrush>Black</TextBrush>
            </Text3>
            <Text4 Ref="21" type="Text" isKey="true">
              <Brush>Transparent</Brush>
              <CanGrow>True</CanGrow>
              <ClientRectangle>11,0.6,8,0.6</ClientRectangle>
              <Conditions isList="true" count="0" />
              <Expressions isList="true" count="0" />
              <Font>Arial,14,Bold</Font>
              <GrowToHeight>True</GrowToHeight>
              <HorAlignment>Right</HorAlignment>
              <Margins>0,0,0,0</Margins>
              <Name>Text4</Name>
              <Page isRef="7" />
              <Parent isRef="17" />
              <Text>{Mitarbeiter.Adresse}</Text>
              <TextBrush>Black</TextBrush>
              <TextOptions>,,,,WordWrap=True,A=0</TextOptions>
            </Text4>
          </Components>
          <Conditions isList="true" count="0" />
          <DataRelationName isNull="true" />
          <DataSourceName>Mitarbeiter</DataSourceName>
          <Expressions isList="true" count="0" />
          <Filters isList="true" count="0" />
          <Name>DataBand1</Name>
          <Page isRef="7" />
          <Parent isRef="7" />
          <Sort isList="true" count="0" />
        </DataBand1>
        <DataBand4 Ref="22" type="DataBand" isKey="true">
          <Brush>Transparent</Brush>
          <ClientRectangle>0,4.6,19,1.2</ClientRectangle>
          <Components isList="true" count="1">
            <Text7 Ref="23" type="Text" isKey="true">
              <Brush>Transparent</Brush>
              <ClientRectangle>0,0,9.6,1.2</ClientRectangle>
              <Conditions isList="true" count="0" />
              <Expressions isList="true" count="0" />
              <Font>Arial,14,Bold</Font>
              <Margins>0,0,0,0</Margins>
              <Name>Text7</Name>
              <Page isRef="7" />
              <Parent isRef="22" />
              <Text>Ansprechpartner</Text>
              <TextBrush>Black</TextBrush>
              <Type>Expression</Type>
              <VertAlignment>Bottom</VertAlignment>
            </Text7>
          </Components>
          <Conditions isList="true" count="0" />
          <DataRelationName isNull="true" />
          <Expressions isList="true" count="0" />
          <Filters isList="true" count="0" />
          <Name>DataBand4</Name>
          <Page isRef="7" />
          <Parent isRef="7" />
          <Sort isList="true" count="0" />
        </DataBand4>
        <DataBand2 Ref="24" type="DataBand" isKey="true">
          <Brush>Transparent</Brush>
          <BusinessObjectGuid isNull="true" />
          <ClientRectangle>0,6.6,19,0.6</ClientRectangle>
          <Components isList="true" count="1">
            <Text5 Ref="25" type="Text" isKey="true">
              <Border>Bottom;Black;1;Dot;False;4;Black</Border>
              <Brush>Transparent</Brush>
              <CanGrow>True</CanGrow>
              <ClickEvent>try
{
StiComponent comp = sender as StiComponent;
Int64 id = Int64.Parse(comp.HyperlinkValue.ToString());
	FormManager.GetFormManager().Show(FrameCube.Context, id, null);
}
catch(Exception ex)
{
	MessageBox.Show(ex.Message);
}</ClickEvent>
              <ClientRectangle>0,0,19,0.6</ClientRectangle>
              <Conditions isList="true" count="0" />
              <Expressions isList="true" count="0" />
              <Font>Arial,12</Font>
              <GrowToHeight>True</GrowToHeight>
              <Hyperlink>{Ansprechpartner.kundeid}</Hyperlink>
              <Margins>0,0,0,0</Margins>
              <Name>Text5</Name>
              <Page isRef="7" />
              <Parent isRef="24" />
              <Text>{Ansprechpartner.Kunde}</Text>
              <TextBrush>Black</TextBrush>
              <TextOptions>,,,,WordWrap=True,A=0</TextOptions>
            </Text5>
          </Components>
          <Conditions isList="true" count="0" />
          <DataRelationName isNull="true" />
          <DataSourceName>Ansprechpartner</DataSourceName>
          <Expressions isList="true" count="0" />
          <Filters isList="true" count="0" />
          <Name>DataBand2</Name>
          <Page isRef="7" />
          <Parent isRef="7" />
          <Sort isList="true" count="0" />
        </DataBand2>
        <DataBand5 Ref="26" type="DataBand" isKey="true">
          <Brush>Transparent</Brush>
          <ClientRectangle>0,8,19,1.2</ClientRectangle>
          <Components isList="true" count="1">
            <Text8 Ref="27" type="Text" isKey="true">
              <Brush>Transparent</Brush>
              <ClientRectangle>0,0,9.6,1.2</ClientRectangle>
              <Conditions isList="true" count="0" />
              <Expressions isList="true" count="0" />
              <Font>Arial,14,Bold</Font>
              <Margins>0,0,0,0</Margins>
              <Name>Text8</Name>
              <Page isRef="7" />
              <Parent isRef="26" />
              <Text>Verantwortlichkeiten</Text>
              <TextBrush>Black</TextBrush>
              <Type>Expression</Type>
              <VertAlignment>Bottom</VertAlignment>
            </Text8>
          </Components>
          <Conditions isList="true" count="0" />
          <DataRelationName isNull="true" />
          <Expressions isList="true" count="0" />
          <Filters isList="true" count="0" />
          <Name>DataBand5</Name>
          <Page isRef="7" />
          <Parent isRef="7" />
          <Sort isList="true" count="0" />
        </DataBand5>
        <DataBand3 Ref="28" type="DataBand" isKey="true">
          <Brush>Transparent</Brush>
          <BusinessObjectGuid isNull="true" />
          <ClientRectangle>0,10,19,0.6</ClientRectangle>
          <Components isList="true" count="2">
            <Text6 Ref="29" type="Text" isKey="true">
              <Border>Bottom;Black;1;Dot;False;4;Black</Border>
              <Brush>Transparent</Brush>
              <CanGrow>True</CanGrow>
              <ClientRectangle>7.6,0,11.4,0.6</ClientRectangle>
              <Conditions isList="true" count="0" />
              <Expressions isList="true" count="0" />
              <Font>Arial,12</Font>
              <GrowToHeight>True</GrowToHeight>
              <HorAlignment>Right</HorAlignment>
              <Margins>0,0,0,0</Margins>
              <Name>Text6</Name>
              <Page isRef="7" />
              <Parent isRef="28" />
              <Text>{Verantwortlichkeiten.Sikill}</Text>
              <TextBrush>Black</TextBrush>
              <TextOptions>,,,,WordWrap=True,A=0</TextOptions>
            </Text6>
            <Text9 Ref="30" type="Text" isKey="true">
              <Border>Bottom;Black;1;Dot;False;4;Black</Border>
              <Brush>Transparent</Brush>
              <CanGrow>True</CanGrow>
              <ClientRectangle>0,0,7.6,0.6</ClientRectangle>
              <Conditions isList="true" count="0" />
              <Expressions isList="true" count="0" />
              <Font>Arial,12</Font>
              <GrowToHeight>True</GrowToHeight>
              <Margins>0,0,0,0</Margins>
              <Name>Text9</Name>
              <Page isRef="7" />
              <Parent isRef="28" />
              <Text>{Verantwortlichkeiten.Art}</Text>
              <TextBrush>Black</TextBrush>
              <TextOptions>,,,,WordWrap=True,A=0</TextOptions>
            </Text9>
          </Components>
          <Conditions isList="true" count="0" />
          <DataRelationName isNull="true" />
          <DataSourceName>Verantwortlichkeiten</DataSourceName>
          <Expressions isList="true" count="0" />
          <Filters isList="true" count="0" />
          <Name>DataBand3</Name>
          <Page isRef="7" />
          <Parent isRef="7" />
          <Sort isList="true" count="2">
            <value>ASC</value>
            <value>Art</value>
          </Sort>
        </DataBand3>
      </Components>
      <Conditions isList="true" count="0" />
      <Expressions isList="true" count="0" />
      <Guid>87b373657bf8480693a6ef418cde78b8</Guid>
      <Margins>1,1,1,1</Margins>
      <Name>Page1</Name>
      <PageHeight>29.7</PageHeight>
      <PageWidth>21</PageWidth>
      <Report isRef="0" />
    </Page1>
  </Pages>
  <ReferencedAssemblies isList="true" count="23">
    <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>
    <value>DataObjects.NET.Dll</value>
    <value>baseCubeData.Dll</value>
    <value>baseCubeUI.Dll</value>
    <value>projectCubeData.Dll</value>
    <value>DevExpress.Utils.v23.2.dll</value>
    <value>DevExpress.XtraRichEdit.v23.2.dll</value>
    <value>DevExpress.XtraBars.v23.2.dll</value>
    <value>DevExpress.Data.v23.2.dll</value>
    <value>DevExpress.RichEdit.v23.2.Core.dll</value>
    <value>DevExpress.XtraEditors.v23.2.dll</value>
    <value>DevExpress.Printing.v23.2.Core.dll</value>
    <value>DevExpress.Drawing.v23.2.dll</value>
    <value>DevExpress.Docs.v23.2.dll</value>
    <value>DevExpress.Pdf.v23.2.Core.dll</value>
    <value>DevExpress.Pdf.v23.2.Drawing.dll</value>
  </ReferencedAssemblies>
  <ReportAlias>Report</ReportAlias>
  <ReportChanged>2/6/2025 12:23:43 PM</ReportChanged>
  <ReportCreated>6/6/2024 12:10:58 PM</ReportCreated>
  <ReportGuid>9ecf4d92538d474a959d0817862d8bff</ReportGuid>
  <ReportName>Report</ReportName>
  <ReportUnit>Centimeters</ReportUnit>
  <ReportVersion>2024.1.3.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;
using DataObjects.NET; 
using SolIT.Data.Base; 
using SolIT.UI.Base;
using SolIT.Data.Pms;


namespace Reports
{
    
	public class Report : Stimulsoft.Report.StiReport
	{
		public SolIT.UI.Base.IFrameCube FrameCube;
        
		public Report()
		{
			this.InitializeComponent();
		}
		
		public void SetCharedStatus(Int64 id)
		{
			
			
			if(id &lt;= 0)
				return;
			
			using (Session session = FrameCube.Context.CreateSession())
			{
				session.BeginTransaction();
				ProjectActivity projectActivity = session[id] as ProjectActivity;
				Int64 enumNotChargedID;
				Int64 enumNotChargeableID;
				if(projectActivity == null)
					return;
				if(projectActivity.ChargedStatus.ID == 24505  &amp;&amp; projectActivity.RateType.ID == 41810) // Verrechnungsstatus "nicht verrechnet" Art der Verrechnung "nicht verrechenbar"
				{
				enumNotChargeableID = 19761;  // Art der Verrechnung "verrechenbar"
				enumNotChargedID = 24505; // Verrechnungsstatus "nicht verrechnet"
				}
				else
				{
				enumNotChargeableID = 41810;  // Art der Verrechnung "nicht verrechenbar"
				enumNotChargedID = 24505; // Verrechnungsstatus "nicht verrechnet"
				}
				projectActivity.RateType = session[enumNotChargeableID] as Enumeration;
				projectActivity.ChargedStatus = session[enumNotChargedID] as Enumeration;
				
				session.Commit();
				}
		}
		public void SetCharedStatusgeplant(Int64 id)
		{	
			Int64 enumNotChargedID;
			
			if(id &lt;= 0)
				return;
			
			using (Session session = FrameCube.Context.CreateSession())
			{
				session.BeginTransaction();
				
				ProjectActivity projectActivity = session[id] as ProjectActivity;
				
				if(projectActivity == null)
					return;
				
				if (projectActivity.ChargedStatus.ID == 24507)
				{
					enumNotChargedID = 24505;
				}
				else
				{
					enumNotChargedID = 24507;
				}
					
				projectActivity.ChargedStatus = session[enumNotChargedID] as Enumeration;
				
				session.Commit();
			}
			
		}
		
		#region StiReport Designer generated code - do not modify
		#endregion StiReport Designer generated code - do not modify
	}
}
</Script>
  <ScriptLanguage>CSharp</ScriptLanguage>
  <Styles isList="true" count="0" />
</StiSerializer>