@model Com._9pm2.ClientWeb.Models.QueryFactoryPriceModel
@{ViewBag.Title = "外协订单价格查询"; }
<script src="../../Scripts/queryfactoryprice.js?vn=20180813"></script>
<div class="callout callout-success lead ">提示：显示最近20条纪录</div>
<div class="divSearch">
    <form method="post" action="/FactoryOrder/QueryPrice">
        <div>
            <div class="div-search-select2">
                <select id="Category"></select>
            </div>
            @Html.DropDownList("sFactoryNo", new SelectList(Model.DdlFactory, "ItemValue", "ItemText"))
            <button class="btn btn-default" id="btnSearch" onclick="BatchPaymentSubmit()">搜索</button>
            @{
                Com._9pm2.ClientWeb.Models.LoginUser user = Session["LoginUser"] as Com._9pm2.ClientWeb.Models.LoginUser;
            }

            @Html.Hidden("OrderTemplate")
            @Html.Hidden("sCategory")
        </div>
    </form>

</div>

<div class="list">

    <table id="tOrder">
        <thead>
            <tr>
                <th style="width:120px">订单编号</th>
                <th style="width:90px">交易日期</th>
                <th style="width:160px" class="td-client">外协商</th>
                <th style="width:120px" class="td-category">分类</th>
                <th class="td-auto-hide">订单名称</th>
                <th>订单详细</th>
                <th style="width:60px">数量</th>
                <th style="width:60px">单价</th>
            </tr>
        </thead>
        <tbody>
            @foreach (var item in Model.Orders)
            {
                <tr id="@item.FactoryOrderNo">
                    <td>@Html.DisplayFor(modelItem => item.FactoryOrderNo)</td>
                    <td>@item.TransactionDate.ToString("yyyy-MM-dd")</td>
                    <td>@Html.DisplayFor(modelItem => item.FactoryName)</td>
                    <td>@Html.DisplayFor(modelItem => item.Category)</td>
                    <td class="td-auto-hide">@Html.DisplayFor(modelItem => item.OrderName)</td>
                    <td>@Html.DisplayFor(modelItem => item.DetailText)</td>
                    <td>@Com._9pm2.ClientWeb.Utilities.NFormat.Format(item.Number)</td>
                    <td>@Com._9pm2.ClientWeb.Utilities.NFormat.Format(item.Price)</td>

                </tr>
            }
        </tbody>
    </table>
</div>
