
@{
    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>成品供应商</td>
            <td>@(ViewBag.list[0].ToString("N2"))</td>
            <td><a class="btn btn-xs btn-primary" onclick="showdetail('@ViewBag.date.ToString("yyyy-MM-dd")  成品供应商预付款','@Url.Content("~/Reports/Finance/PrePay?finish=1&date="+ViewBag.date+"&paycompanyid="+ViewBag.paycompanyid)')">查看明细</a></td>
        </tr>
        <tr>
            <td>2</td>
            <td>半成品供应商</td>
            <td>@(ViewBag.list[1].ToString("N2"))</td>
            <td><a class="btn btn-xs btn-primary" onclick="showdetail('@ViewBag.date.ToString("yyyy-MM-dd")  半成品供应商预付款','@Url.Content("~/Reports/Finance/PrePay?finish=0&date="+ViewBag.date+"&paycompanyid="+ViewBag.paycompanyid)')">查看明细</a></td>
        </tr>
        <tr>
            <td>3</td>
            <td>物流供应商</td>
            <td>@(ViewBag.list[2].ToString("N2"))</td>
            <td><a class="btn btn-xs btn-primary" onclick="showdetail('@ViewBag.date.ToString("yyyy-MM-dd")  物流供应商预付款','@Url.Content("~/Reports/Finance/PrePayLogistics?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>

