28. Juli 2010 14:32
SELECT Quote.AccountIdName AS Kundenname, ....
SystemUser.Title AS Titel, SystemUser.MobilePhone AS mobile,
FROM QuoteBase INNER JOIN
QuoteDetailBase ON QuoteBase.QuoteId = QuoteDetailBase.QuoteId ........
WHERE (QuoteBase.QuoteId = @CRM_QuoteId)
28. Juli 2010 17:15
29. Juli 2010 08:47
<?xml version="1.0" encoding="utf-8"?>
<Report xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner" xmlns="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition">
<DataSources>
<DataSource Name="DataSource1">
<ConnectionProperties>
<DataProvider>SQL</DataProvider>
<ConnectString>Data Source=192.168.2.1;Initial Catalog=MSCRM</ConnectString>
</ConnectionProperties>
<rd:DataSourceID>92a11370-8fba-4cd2-aa3a-d1d0d74909b2</rd:DataSourceID>
</DataSource>
</DataSources>
<DataSets>
<DataSet Name="DataSet1">
<Fields>
<Field Name="Kundenname">
<DataField>Kundenname</DataField>
<rd:TypeName>System.String</rd:TypeName>
</Field>
<Field Name="Vertriebsbeauftragter">
<DataField>Vertriebsbeauftragter</DataField>
<rd:TypeName>System.String</rd:TypeName>
</Field>
<Field Name="Angebotsnummer">
<DataField>Angebotsnummer</DataField>
<rd:TypeName>System.String</rd:TypeName>
</Field>
<Field Name="Angebotsbeschreibung">
<DataField>Angebotsbeschreibung</DataField>
<rd:TypeName>System.String</rd:TypeName>
</Field>
<Field Name="produktid">
<DataField>produktid</DataField>
<rd:TypeName>System.Guid</rd:TypeName>
</Field>
<Field Name="AnzahlProdukte">
<DataField>AnzahlProdukte</DataField>
<rd:TypeName>System.Decimal</rd:TypeName>
</Field>
<Field Name="Angebotsthema">
<DataField>Angebotsthema</DataField>
<rd:TypeName>System.String</rd:TypeName>
</Field>
<Field Name="Gesamtpreis">
<DataField>Gesamtpreis</DataField>
<rd:TypeName>System.Decimal</rd:TypeName>
</Field>
<Field Name="produktpreis">
<DataField>produktpreis</DataField>
<rd:TypeName>System.Decimal</rd:TypeName>
</Field>
<Field Name="produktname">
<DataField>produktname</DataField>
<rd:TypeName>System.String</rd:TypeName>
</Field>
<Field Name="produktbeschreibung">
<DataField>produktbeschreibung</DataField>
<rd:TypeName>System.String</rd:TypeName>
</Field>
<Field Name="produktnummer">
<DataField>produktnummer</DataField>
<rd:TypeName>System.String</rd:TypeName>
</Field>
<Field Name="gueltigbis">
<DataField>gueltigbis</DataField>
<rd:TypeName>System.DateTime</rd:TypeName>
</Field>
<Field Name="tele">
<DataField>tele</DataField>
<rd:TypeName>System.String</rd:TypeName>
</Field>
<Field Name="fax">
<DataField>fax</DataField>
<rd:TypeName>System.String</rd:TypeName>
</Field>
<Field Name="email">
<DataField>email</DataField>
<rd:TypeName>System.String</rd:TypeName>
</Field>
<Field Name="Titel">
<DataField>Titel</DataField>
<rd:TypeName>System.String</rd:TypeName>
</Field>
<Field Name="mobile">
<DataField>mobile</DataField>
<rd:TypeName>System.String</rd:TypeName>
</Field>
<Field Name="kurzBeschreibung">
<DataField>kurzBeschreibung</DataField>
<rd:TypeName>System.String</rd:TypeName>
</Field>
<Field Name="QuoteId">
<DataField>QuoteId</DataField>
<rd:TypeName>System.Guid</rd:TypeName>
</Field>
</Fields>
<Query>
<DataSourceName>DataSource1</DataSourceName>
<CommandText>SELECT Quote.AccountIdName AS Kundenname, Quote.OwnerIdName AS Vertriebsbeauftragter, Quote.QuoteNumber AS Angebotsnummer,
Quote.Description AS Angebotsbeschreibung, QuoteDetailBase.ProductId AS produktid, QuoteDetailBase.Quantity AS AnzahlProdukte,
QuoteBase.Name AS Angebotsthema, Quote.TotalAmount_Base AS Gesamtpreis, QuoteDetailBase.PricePerUnit_Base AS produktpreis,
ProductBase.Name AS produktname, ProductBase.Description AS produktbeschreibung, ProductBase.ProductNumber AS produktnummer,
QuoteBase.EffectiveTo AS gueltigbis, SystemUser.Address1_Telephone1 AS tele, SystemUser.Address1_Fax AS fax, SystemUser.InternalEMailAddress AS email,
SystemUser.Title AS Titel, SystemUser.MobilePhone AS mobile, ProductExtensionBase.New_Kurzbeschreibung AS kurzBeschreibung, QuoteBase.QuoteId
FROM QuoteBase INNER JOIN
QuoteDetailBase ON QuoteBase.QuoteId = QuoteDetailBase.QuoteId INNER JOIN
Quote ON QuoteBase.QuoteId = Quote.QuoteId INNER JOIN
ProductBase ON QuoteDetailBase.ProductId = ProductBase.ProductId INNER JOIN
SystemUserBase ON QuoteBase.OwningUser = SystemUserBase.SystemUserId AND QuoteDetailBase.SalesRepId = SystemUserBase.SystemUserId INNER JOIN
SystemUser ON SystemUserBase.SystemUserId = SystemUser.SystemUserId INNER JOIN
ProductExtensionBase ON QuoteDetailBase.ProductId = ProductExtensionBase.ProductId
WHERE (QuoteBase.QuoteId = @CRM_QuoteId)</CommandText>
<QueryParameters>
<QueryParameter Name="@CRM_QuoteId">
<Value>=Parameters!CRM_QuoteId.Value</Value>
</QueryParameter>
</QueryParameters>
</Query>
</DataSet>
</DataSets>
<Body>
<ReportItems>
<Textbox Name="Textbox13">
<CanGrow>true</CanGrow>
<KeepTogether>true</KeepTogether>
<Paragraphs>
<Paragraph>
<TextRuns>
<TextRun>
<Value>Angebot</Value>
<Style>
<FontStyle>Normal</FontStyle>
<FontFamily>Verdana</FontFamily>
<FontSize>24pt</FontSize>
<FontWeight>Bold</FontWeight>
<Color>#002e6a</Color>
</Style>
</TextRun>
</TextRuns>
<Style />
</Paragraph>
</Paragraphs>
<rd:DefaultName>Textbox13</rd:DefaultName>
<Top>6.06805cm</Top>
<Left>0.11615cm</Left>
<Height>1.36729cm</Height>
<Width>5.19875cm</Width>
<Style>
<Border>
<Style>None</Style>
</Border>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<PaddingBottom>2pt</PaddingBottom>
</Style>
</Textbox>
<Textbox Name="Textbox14">
<CanGrow>true</CanGrow>
<KeepTogether>true</KeepTogether>
<Paragraphs>
<Paragraph>
<TextRuns>
<TextRun>
<Value>für</Value>
<Style>
<FontFamily>Verdana</FontFamily>
<FontSize>15pt</FontSize>
<Language>de-DE</Language>
</Style>
</TextRun>
</TextRuns>
<LeftIndent>0cm</LeftIndent>
<HangingIndent>0cm</HangingIndent>
<Style />
</Paragraph>
</Paragraphs>
<rd:DefaultName>Textbox14</rd:DefaultName>
<Top>8.85006cm</Top>
<Left>0.11615cm</Left>
<Height>0.89104cm</Height>
<Width>1.5475cm</Width>
<ZIndex>1</ZIndex>
<Style>
<Border>
<Style>None</Style>
</Border>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<PaddingBottom>2pt</PaddingBottom>
</Style>
</Textbox>
<Textbox Name="Textbox16">
<CanGrow>true</CanGrow>
<KeepTogether>true</KeepTogether>
<Paragraphs>
<Paragraph>
<TextRuns>
<TextRun>
<Label>Thema</Label>
<Value>=First(Fields!Angebotsthema.Value, "DataSet1")</Value>
<Style>
<FontFamily>Verdana</FontFamily>
<FontSize>15pt</FontSize>
</Style>
</TextRun>
</TextRuns>
<Style />
</Paragraph>
</Paragraphs>
<rd:DefaultName>Textbox16</rd:DefaultName>
<Top>7.90639cm</Top>
<Left>0.11615cm</Left>
<Height>0.94367cm</Height>
<Width>11.50938cm</Width>
<ZIndex>2</ZIndex>
<Style>
<Border>
<Style>None</Style>
</Border>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<PaddingBottom>2pt</PaddingBottom>
</Style>
</Textbox>
<Textbox Name="Textbox17">
<CanGrow>true</CanGrow>
<KeepTogether>true</KeepTogether>
<Paragraphs>
<Paragraph>
<TextRuns>
<TextRun>
<Label>Unternehmens Bezeichnung (Account Id name)</Label>
<Value>=First(Fields!Kundenname.Value, "DataSet1")</Value>
<Style>
<FontFamily>Verdana</FontFamily>
<FontSize>15pt</FontSize>
</Style>
</TextRun>
</TextRuns>
<LeftIndent>0cm</LeftIndent>
<HangingIndent>0cm</HangingIndent>
<Style />
</Paragraph>
</Paragraphs>
<rd:DefaultName>Textbox16</rd:DefaultName>
<Top>9.7411cm</Top>
<Left>0.11615cm</Left>
<Height>0.81138cm</Height>
<Width>11.50938cm</Width>
<ZIndex>3</ZIndex>
<Style>
<Border>
<Style>None</Style>
</Border>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<PaddingBottom>2pt</PaddingBottom>
</Style>
</Textbox>
<Textbox Name="Textbox18">
<CanGrow>true</CanGrow>
<KeepTogether>true</KeepTogether>
<Paragraphs>
<Paragraph>
<TextRuns>
<TextRun>
<Value>Angebot Nr. </Value>
<Style>
<FontFamily>Verdana</FontFamily>
</Style>
</TextRun>
<TextRun>
<Label>[Angebotsnummer]</Label>
<Value>=First(Fields!Angebotsnummer.Value, "DataSet1")</Value>
<Style>
<FontFamily>Verdana</FontFamily>
</Style>
</TextRun>
</TextRuns>
<Style />
</Paragraph>
<Paragraph>
<TextRuns>
<TextRun>
<Value>Gültig Bis: </Value>
<Style>
<FontFamily>Verdana</FontFamily>
</Style>
</TextRun>
<TextRun>
<Label>guelt</Label>
<Value>=FormatDateTime(First(Fields!gueltigbis.Value, "DataSet1"))</Value>
<Style>
<FontFamily>Verdana</FontFamily>
</Style>
</TextRun>
<TextRun>
<Value xml:space="preserve"> </Value>
<Style>
<FontFamily>Verdana</FontFamily>
</Style>
</TextRun>
</TextRuns>
<Style />
</Paragraph>
</Paragraphs>
<rd:DefaultName>Textbox18</rd:DefaultName>
<Top>10.94935cm</Top>
<Left>0.11615cm</Left>
<Height>1.16417cm</Height>
<Width>6.29708cm</Width>
<ZIndex>4</ZIndex>
<Style>
<Border>
<Style>None</Style>
</Border>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<PaddingBottom>2pt</PaddingBottom>
</Style>
</Textbox>
<Textbox Name="Textbox1">
<CanGrow>true</CanGrow>
<KeepTogether>true</KeepTogether>
<Paragraphs>
<Paragraph>
<TextRuns>
<TextRun>
<Value>Beratung:</Value>
<Style />
</TextRun>
</TextRuns>
<Style />
</Paragraph>
<Paragraph>
<TextRuns>
<TextRun>
<Label>Vertriebsbeauftragter</Label>
<Value>=First(Fields!Vertriebsbeauftragter.Value, "DataSet1")</Value>
<Style>
<FontFamily>Verdana</FontFamily>
<FontSize>12pt</FontSize>
</Style>
</TextRun>
</TextRuns>
<Style />
</Paragraph>
<Paragraph>
<TextRuns>
<TextRun>
<Label>Titel</Label>
<Value>=First(Fields!Titel.Value, "DataSet1")</Value>
<Style />
</TextRun>
</TextRuns>
<Style />
</Paragraph>
<Paragraph>
<TextRuns>
<TextRun>
<Value>Tel: </Value>
<Style />
</TextRun>
<TextRun>
<Label>Telefon</Label>
<Value>=First(Fields!tele.Value, "DataSet1")</Value>
<Style />
</TextRun>
</TextRuns>
<Style />
</Paragraph>
<Paragraph>
<TextRuns>
<TextRun>
<Label>Fa:</Label>
<Value>=IIf(Fields!fax.Value Is Nothing, " ", "Fax:")</Value>
<Style />
</TextRun>
<TextRun>
<Value xml:space="preserve"> </Value>
<Style />
</TextRun>
<TextRun>
<Value>=IIf(Fields!fax.Value Is Nothing, " ", Fields!fax.Value)</Value>
<Style />
</TextRun>
</TextRuns>
<Style />
</Paragraph>
<Paragraph>
<TextRuns>
<TextRun>
<Value>=IIf(Fields!mobile.Value Is Nothing, " ", "Mobile:")</Value>
<Style />
</TextRun>
<TextRun>
<Value xml:space="preserve"> </Value>
<Style />
</TextRun>
<TextRun>
<Value>=IIf(Fields!mobile.Value Is Nothing, " ", Fields!mobile.Value)</Value>
<Style />
</TextRun>
</TextRuns>
<LeftIndent>0cm</LeftIndent>
<HangingIndent>0cm</HangingIndent>
<Style />
</Paragraph>
</Paragraphs>
<rd:DefaultName>Textbox1</rd:DefaultName>
<Top>14.40658cm</Top>
<Left>0.11615cm</Left>
<Height>2.94184cm</Height>
<Width>5.715cm</Width>
<ZIndex>5</ZIndex>
<Style>
<Border>
<Style>None</Style>
</Border>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<PaddingBottom>2pt</PaddingBottom>
</Style>
</Textbox>
</ReportItems>
<Height>9.2105in</Height>
<Style />
</Body>
<ReportParameters>
<ReportParameter Name="CRM_QuoteId">
<DataType>String</DataType>
<AllowBlank>true</AllowBlank>
<Hidden>true</Hidden>
</ReportParameter>
</ReportParameters>
<Width>18.7cm</Width>
<Page>
<PageHeight>29.7cm</PageHeight>
<PageWidth>21cm</PageWidth>
<LeftMargin>2cm</LeftMargin>
<RightMargin>2cm</RightMargin>
<TopMargin>2cm</TopMargin>
<BottomMargin>2cm</BottomMargin>
<ColumnSpacing>0.13cm</ColumnSpacing>
<Style />
</Page>
<rd:ReportID>249ff33f-4d04-4bfa-adb8-5783dec62c82</rd:ReportID>
<rd:ReportUnitType>Cm</rd:ReportUnitType>
</Report>
29. Juli 2010 13:33
29. Juli 2010 16:51
3. August 2010 10:18
3. August 2010 10:59