
@{
    ViewData["Title"] = "存货仓库类型明细";
    Layout = "~/Pages/Shared/_MainLayout.cshtml";
}

<div class="ibox-content m-b-sm border-bottom">
    <table id="tb" class="table table-hover table-bordered" style="width:100%;">
        <thead>
            <tr>
                <th>序号</th>
                <th>仓库类型</th>
                <th>金额</th>
                <th>操作</th>
            </tr>
        </thead>
        <tr>
            <td>1</td>
            <td>FBA仓在库</td>
            <td>@(ViewBag.m.Item1.ToString("N2"))</td>
            <td><a class="btn btn-xs btn-primary" onclick="showdetail('@ViewBag.date.ToString("yyyy-MM-dd")  FBA仓在库明细','@Url.Content("~/Reports/Finance/InventoryBalance?t=0&date="+ViewBag.date+"&paycompanyid="+ViewBag.paycompanyid)')">查看明细</a></td>
        </tr>
        <tr>
            <td>2</td>
            <td>非FBA仓在库</td>
            <td>@(ViewBag.m.Item2.ToString("N2"))</td>
            <td><a class="btn btn-xs btn-primary" onclick="showdetail('@ViewBag.date.ToString("yyyy-MM-dd")  非FBA在库明细','@Url.Content("~/Reports/Finance/InventoryBalance?t=1&date="+ViewBag.date+"&paycompanyid="+ViewBag.paycompanyid)')">查看明细</a></td>
        </tr>
        <tr>
            <td>3</td>
            <td>FBA仓在途</td>
            <td>@(ViewBag.m.Item3.ToString("N2"))</td>
            <td><a class="btn btn-xs btn-primary" onclick="showdetail('@ViewBag.date.ToString("yyyy-MM-dd")  FBA仓在途明细','@Url.Content("~/Reports/Finance/InventoryBalance?t=3&date="+ViewBag.date+"&paycompanyid="+ViewBag.paycompanyid)')">查看明细</a></td>
        </tr>
        <tr>
            <td>4</td>
            <td>非FBA仓在途</td>
            <td>@(ViewBag.m.Item4.ToString("N2"))</td>
            <td><a class="btn btn-xs btn-primary" onclick="showdetail('@ViewBag.date.ToString("yyyy-MM-dd")  非FBA在途明细','@Url.Content("~/Reports/Finance/InventoryBalance?t=4&date="+ViewBag.date+"&paycompanyid="+ViewBag.paycompanyid)')">查看明细</a></td>
        </tr>
        <tr>
            <td>5</td>
            <td>半成品在库</td>
            <td>@(ViewBag.m.Item5.ToString("N2"))</td>
            <td><a class="btn btn-xs btn-primary" onclick="showdetail('@ViewBag.date.ToString("yyyy-MM-dd")  半成品在库明细','@Url.Content("~/Reports/Finance/SemiFinishStock?date="+ViewBag.date+"&paycompanyid="+ViewBag.paycompanyid)')">查看明细</a></td>
        </tr>
        <tr style="display:none;">
            <td>6</td>
            <td>半成品在途</td>
            <td>@(ViewBag.m.Item6.ToString("N2"))</td>
            <td><a class="btn btn-xs btn-primary" onclick="showdetail('@ViewBag.date.ToString("yyyy-MM-dd")  半成品在途明细','@Url.Content("~/Reports/Finance/SemiTransferStock?date="+ViewBag.date+"&paycompanyid="+ViewBag.paycompanyid)')">查看明细</a></td>
        </tr>
    </table>
</div>


<script>

    function ShowDetails(title, url) {
        dialogApply({
            id: 'Form',
            title: title,
            url: url,
            width: '1300px',
            height: '650px',
            callBack: function (iframeId) {
                //top.frames[iframeId].AcceptClick();
            }
        });
    }

</script>

