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

<%@ Register src="UC_AdminOperatoChecker.ascx" tagname="UC_AdminOperatoChecker" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table style="width:100%;">
        <tr>
            <td>
                <asp:Label ID="Lbl_Title" runat="server" CssClass="LabelHeaader" 
                    Text="لیست موجودی انبار"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:GridView ID="Grd_MojodiAnbar" runat="server" 
                    AutoGenerateColumns="False" CssClass="mGrid" 
                    DataSourceID="LinqDt_StokeAssets" 
                    onselectedindexchanged="Grd_ViewAssetDeliver_SelectedIndexChanged" 
                    EmptyDataText="رکوردی یافته نشد" AllowPaging="True" PageSize="25">
                    <Columns>
                        <asp:BoundField DataField="OrderDetailID" HeaderText="کد سفارش" 
                            ReadOnly="True" SortExpression="OrderDetailID" >
                            <ItemStyle Width="120px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="OrderDetailDescription" 
                            HeaderText="جزییات سفارش" ReadOnly="True" 
                            SortExpression="OrderDetailDescription" />
                        <asp:BoundField DataField="AssetName" HeaderText="نام کالا" ReadOnly="True" 
                            SortExpression="AssetName" />
                        <asp:BoundField DataField="AssetQuantity" HeaderText="میزان درخواست" 
                            ReadOnly="True" SortExpression="AssetQuantity" >
                            <ItemStyle Width="120px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="AssetUnitDescrition" HeaderText="واحد شمارش" 
                            ReadOnly="True" SortExpression="AssetUnitDescrition" >
                            <ItemStyle Width="120px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="AssetCategoryDescription" 
                            HeaderText="عنوان گروه بندی" ReadOnly="True" 
                            SortExpression="AssetCategoryDescription" />
                        <asp:BoundField DataField="OrderDetailNotes" HeaderText="ملاحظات" 
                            ReadOnly="True" SortExpression="OrderDetailNotes" />
                    </Columns>
                </asp:GridView>
                <uc1:UC_AdminOperatoChecker ID="UC_AdminOperatoChecker1" runat="server" />
                <asp:LinqDataSource ID="LinqDt_StokeAssets" runat="server" 
                    ContextTypeName="LSC_WareHouseDataContext" OrderBy="OrderDetailID desc" 
                    Select="new (OrderDetailID, OrderDetailDescription, AssetName, AssetQuantity, OrderDetailNotes, AssetUnitDescrition, AssetCategoryDescription)" 
                    TableName="xtblStokeAssets">
                </asp:LinqDataSource>
            </td>
        </tr>
    </table>
</asp:Content>

