<!--<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">-->

    <FlowDocument xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
              xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
              xmlns:xrd="clr-namespace:CodeReason.Reports.Document;assembly=CodeReason.Reports" 
              PageHeight="100cm" PageWidth="8cm" ColumnWidth="8cm" PagePadding="0" >
        <xrd:ReportProperties>
            <xrd:ReportProperties.ReportName>Receipt</xrd:ReportProperties.ReportName>
            <xrd:ReportProperties.ReportTitle>Receipt</xrd:ReportProperties.ReportTitle>
        </xrd:ReportProperties>
        <Section FontSize="12">
            <Paragraph FontSize="15" TextAlignment="Center">
                凤城二路甲鱼城
            </Paragraph>
            <xrd:SectionDataGroup DataGroupName="TransactionItem">
                <Table CellSpacing="0">
                    <Table.Resources>
                        <Style x:Key="headerFooterRowStyle" TargetType="{x:Type TableRowGroup}">

                        </Style>
                        <!-- Style for data rows. -->
                        <Style x:Key="dataRowStyle" TargetType="{x:Type TableRowGroup}">
							
                        </Style>
                        <!-- Style for data cells. -->
                        <Style TargetType="{x:Type TableCell}">

                        </Style>
                    </Table.Resources>
                    <Table.Columns>
                        <TableColumn Width="*" />
                        <TableColumn Width="0.4*" />
                        <TableColumn Width="0.4*" />
                        <TableColumn Width="0.4*" />
                        <TableColumn Width="0.4*" />
                        <TableColumn Width="0.4*" />
                    </Table.Columns>
                    <TableRowGroup>
                        <TableRow>
                            <TableCell ColumnSpan="6">
                                <Paragraph>
                                    结账单:
                                    <xrd:InlineDocumentValue PropertyName="SerialNumber" />
                                </Paragraph>
                            </TableCell>
                        </TableRow>
                        <TableRow>
                            <TableCell ColumnSpan="6">
                                <Paragraph>
                                    用户名:
                                    <xrd:InlineDocumentValue PropertyName="UserName" />
                                    <LineBreak/>
                                    <Path Data="M16,17 L45,17"  Fill="Black" Height="2" Stretch="Fill" Stroke="Black" Width="300" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,3"/>
                                </Paragraph>
                            </TableCell>
                        </TableRow>
                        <TableRow>
                            <TableCell ColumnSpan="6">
                                <Paragraph>
                                    房台名:
                                    <xrd:InlineDocumentValue PropertyName="RoomTitle" />
                                </Paragraph>
                            </TableCell>
                        </TableRow>
                        <TableRow>
                            <TableCell ColumnSpan="6">
                                <Paragraph>
                                    开台时间:
                                    <xrd:InlineDocumentValue PropertyName="StartTime" />
                                </Paragraph>
                            </TableCell>
                        </TableRow>
                        <TableRow>
                            <TableCell ColumnSpan="6">
                                <Paragraph>
                                    结帐时间:
                                    <xrd:InlineDocumentValue PropertyName="EndTime" />
                                </Paragraph>
                            </TableCell>
                        </TableRow>
                        <TableRow>
                            <TableCell ColumnSpan="6">
                                <Paragraph>
                                    消费方式:
                                    <xrd:InlineDocumentValue PropertyName="RoomFeeType" />
                                </Paragraph>
                            </TableCell>
                        </TableRow>
                    </TableRowGroup>
                    <TableRowGroup Style="{StaticResource headerFooterRowStyle}">
                        <TableRow>
                            <TableCell>
                                <Paragraph BorderBrush="Black" BorderThickness="0,1" TextAlignment="Left">菜品名</Paragraph>
                            </TableCell>
                            <TableCell>
                                <Paragraph BorderBrush="Black" BorderThickness="0,1" TextAlignment="Left">单价</Paragraph>
                            </TableCell>
                            <TableCell>
                                <Paragraph BorderBrush="Black" BorderThickness="0,1" TextAlignment="Right">数量</Paragraph>
                            </TableCell>
                            <TableCell>
                                <Paragraph BorderBrush="Black" BorderThickness="0,1" TextAlignment="Left">单位</Paragraph>
                            </TableCell>
                            <TableCell>
                                <Paragraph BorderBrush="Black" BorderThickness="0,1" TextAlignment="Left">类型</Paragraph>
                            </TableCell>
                            <TableCell>
                                <Paragraph BorderBrush="Black" BorderThickness="0,1" TextAlignment="Right">金额</Paragraph>
                            </TableCell>
                        </TableRow>
                    </TableRowGroup>
                    <TableRowGroup Style="{StaticResource dataRowStyle}">
                        <xrd:TableRowForDataTable TableName="TransactionItem">
                            <TableCell>
                                <Paragraph TextAlignment="Left">
                                    <xrd:InlineTableCellValue PropertyName="ItemTitle"  AggregateGroup="ItemCount" />
                                </Paragraph>
                            </TableCell>
                            <TableCell>
                                <Paragraph TextAlignment="Left">
                                    <xrd:InlineTableCellValue PropertyName="Price" />
                                </Paragraph>
                            </TableCell>
                            <TableCell>
                                <Paragraph TextAlignment="Right">
                                    <xrd:InlineTableCellValue PropertyName="Quantity" />
                                </Paragraph>
                            </TableCell>
                            <TableCell>
                                <Paragraph TextAlignment="Left">
                                    <xrd:InlineTableCellValue PropertyName="Unit" />
                                </Paragraph>
                            </TableCell>
                            <TableCell>
                                <Paragraph TextAlignment="Left">
                                    <xrd:InlineTableCellValue PropertyName="TransItemType" />
                                </Paragraph>
                            </TableCell>
                            <TableCell>
                                <Paragraph TextAlignment="Right">
                                    <xrd:InlineTableCellValue PropertyName="Amount" />
                                </Paragraph>
                            </TableCell>
                        </xrd:TableRowForDataTable>
                    </TableRowGroup>
                    <TableRowGroup>
                        <TableRow>
                            <TableCell ColumnSpan="6">
                                <Paragraph>
                                    <Run>--------------------------------------------------</Run>
                                </Paragraph>
                            </TableCell>
                        </TableRow>
                        <TableRow>
                            <TableCell ColumnSpan="6">
                                <Paragraph>
                                    菜名合计:
                                    <xrd:InlineAggregateValue AggregateGroup="ItemCount" AggregateValueType="Count" EmptyValue="0"/>
                                </Paragraph>
                            </TableCell>
                        </TableRow>
                        <TableRow>
                            <TableCell ColumnSpan="6">
                                <Paragraph>
                                    <Path Data="M16,17 L45,17"  Fill="Black" Height="1" Stretch="Fill" Stroke="Black" Width="300" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,3"/>
                                </Paragraph>
                            </TableCell>
                        </TableRow>
                        <TableRow>
                            <TableCell ColumnSpan="6">
                                <Table>
                                    <Table.Columns>
                                        <TableColumn Width="1*" />
                                        <TableColumn Width="1*" />
                                        <TableColumn Width="1*" />
                                        <TableColumn Width="1*" />
                                    </Table.Columns>
                                    <TableRowGroup >
                                        <TableRow>
                                            <TableCell>
                                                <Paragraph TextAlignment="Left">菜品消费:</Paragraph>
                                            </TableCell>
                                            <TableCell>
                                                <Paragraph TextAlignment="Right">
                                                    <xrd:InlineDocumentValue PropertyName="TotalItemConsumptionAmount" />
                                                </Paragraph>
                                            </TableCell>
                                            <TableCell>
                                                <Paragraph TextAlignment="Left">赠单金额:</Paragraph>
                                            </TableCell>
                                            <TableCell>
                                                <Paragraph TextAlignment="Right">
                                                    <xrd:InlineDocumentValue PropertyName="TotalGiftAmount" />
                                                </Paragraph>
                                            </TableCell>
                                        </TableRow>
                                        <TableRow>
                                            <TableCell>
                                                <Paragraph TextAlignment="Left">折扣金额:</Paragraph>
                                            </TableCell>
                                            <TableCell>
                                                <Paragraph TextAlignment="Right">
                                                    <xrd:InlineDocumentValue PropertyName="TotalDiscountAmount" />
                                                </Paragraph>
                                            </TableCell>
                                            <TableCell>
                                                <Paragraph TextAlignment="Left">优惠金额:</Paragraph>
                                            </TableCell>
                                            <TableCell>
                                                <Paragraph TextAlignment="Right">
                                                    <xrd:InlineDocumentValue PropertyName="ConcessionAmount" />
                                                </Paragraph>
                                            </TableCell>
                                        </TableRow>
                                        <TableRow>
                                            <TableCell>
                                                <Paragraph TextAlignment="Left">房台费用:</Paragraph>
                                            </TableCell>
                                            <TableCell>
                                                <Paragraph TextAlignment="Right">
                                                    <xrd:InlineDocumentValue PropertyName="TotalRoomConsumptionAmount" />
                                                </Paragraph>
                                            </TableCell>
                                        </TableRow>
                                        <TableRow>
                                            <TableCell ColumnSpan="4">
                                                <Paragraph>--------------------------------------------------</Paragraph>
                                            </TableCell>
                                        </TableRow>
                                        <TableRow>
                                            <TableCell>
                                                <Paragraph TextAlignment="Left">应收金额:</Paragraph>
                                            </TableCell>
                                            <TableCell>
                                                <Paragraph TextAlignment="Right">
                                                    <xrd:InlineDocumentValue PropertyName="TotalShouldPayAmount" />
                                                </Paragraph>
                                            </TableCell>
                                            <TableCell>
                                                <Paragraph TextAlignment="Left">实收金额:</Paragraph>
                                            </TableCell>
                                            <TableCell>
                                                <Paragraph TextAlignment="Right">
                                                    <xrd:InlineDocumentValue PropertyName="TotalPaiedAmount" />
                                                </Paragraph>
                                            </TableCell>
                                        </TableRow>
                                        <TableRow>
                                            <TableCell ColumnSpan="4">
                                                <Paragraph>--------------------------------------------------</Paragraph>
                                            </TableCell>
                                        </TableRow>
                                        <TableRow>
                                            <TableCell ColumnSpan="4">
                                                <Paragraph>
                                                    <xrd:InlineDocumentValue PropertyName="PaymentDetail" />
                                                </Paragraph>
                                            </TableCell>
                                        </TableRow>
                                        <TableRow>
                                            <TableCell ColumnSpan="4">
                                                <Paragraph>_________________________________________________</Paragraph>
                                            </TableCell>
                                        </TableRow>
                                        <TableRow>
                                            <TableCell ColumnSpan="4">
                                                <Paragraph>
                                                   地址：西安市凤城二路
                                                </Paragraph>
                                            </TableCell>
                                        </TableRow>
                                    </TableRowGroup>
                                </Table>
                            </TableCell>
                        </TableRow>
                    </TableRowGroup>
                </Table>
            </xrd:SectionDataGroup>
        </Section>
    </FlowDocument>
<!--</Page>-->