<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="SodorFactor.aspx.cs" Inherits="SodorFactor" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<fieldset dir="rtl"><legend>نمایش فاکتور</legend>
    <table style="width:100%;">
        <tr>
            <td colspan="3">
                <asp:Label ID="Lbl_NameAndFamily" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td colspan="3">
                <asp:GridView ID="Grd_SoDorFactor" runat="server" AutoGenerateColumns="False" 
                    DataKeyNames="TamirID" DataSourceID="LinqDtFactor" Width="100%" 
                    onselectedindexchanged="Grd_SoDorFactor_SelectedIndexChanged">
                    <Columns>
                        <asp:BoundField DataField="DetailID" HeaderText="DetailID" 
                            SortExpression="DetailID" Visible="False" />
                        <asp:BoundField DataField="TamirID" HeaderText="کد درخواست تعمیر" 
                            SortExpression="TamirID" />
                        <asp:BoundField DataField="PelakNumber" HeaderText="شماره پلاک خودرو" 
                            SortExpression="PelakNumber" />
                        <asp:BoundField DataField="DateDarkhastSH" HeaderText="تاریخ درخواست تعمیر" 
                            SortExpression="DateDarkhastSH" />
                        <asp:BoundField DataField="TamirNote" HeaderText="شرح درخواست تعمیر" 
                            SortExpression="TamirNote" />
                        <asp:BoundField DataField="DetailNote" HeaderText="شرح جزییات تعمیر" 
                            SortExpression="DetailNote" />
                        <asp:BoundField DataField="DateAnjamSh" HeaderText="تاریخ انجام تعمیر" 
                            SortExpression="DateAnjamSh" />
                        <asp:BoundField DataField="SaatDarkhast" HeaderText="ساعت اجام تعمیر" 
                            SortExpression="SaatDarkhast" />
                        <asp:BoundField DataField="TotalCost" HeaderText="هزینه کل" 
                            SortExpression="TotalCost" />
                        <asp:BoundField DataField="DriverUserName" HeaderText="DriverUserName" 
                            SortExpression="DriverUserName" Visible="False" />
                        <asp:BoundField DataField="Expr1" HeaderText="Expr1" SortExpression="Expr1" 
                            Visible="False" />
                    </Columns>
                </asp:GridView>
                <asp:LinqDataSource ID="LinqDtFactor" runat="server" 
                    ContextTypeName="LSCTamiratDataContext" EntityTypeName="" OrderBy="TamirID" 
                    TableName="xtblShowFactors" Where="DriverUserName == @DriverUserName">
                    <WhereParameters>
                        <asp:SessionParameter Name="DriverUserName" SessionField="UserName" 
                            Type="String" />
                    </WhereParameters>
                </asp:LinqDataSource>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                <asp:Label ID="Lbl_TotalCast" runat="server" Text="هزینه کل تعمیرات :"></asp:Label>
                <asp:Label ID="Lbl_Price" runat="server" Text="  "></asp:Label>
                <asp:Label ID="Lbl_Toman" runat="server" Text="تومان"></asp:Label>
            </td>
        </tr>
    </table>
    </fieldset>
</asp:Content>

