@model Com._9pm2.ClientWeb.Model.UserOrderPerformanceReport
@{
    ViewBag.Title = "员工绩效";
}

<script src="../../Scripts/userorderperformance.js?vn=20180813"></script>

<div id="dSearch" class="divSearch">
    <form method="post">
        <div style="width:100%">

            @Html.TextBox("CBeginDate", null, new { maxlength = "50", @class = "text-date", placeholder = "完工日期" }) ~ @Html.TextBox("CEndDate", null, new { maxlength = "50", @class = "text-date", placeholder = "完工日期" })&nbsp;&nbsp;
            @Html.TextBox("TBeginDate", null, new { maxlength = "50", @class = "text-date", placeholder = "交易日期" }) ~ @Html.TextBox("TEndDate", null, new { maxlength = "50", @class = "text-date", placeholder = "交易日期" })&nbsp;&nbsp;

            <button class="btn btn-default" id="btnSearch" onclick="return checkField();">搜索</button>
            <button class="btn btn-default" type="button" id="btnExportExcel">下载(Excel)</button>
        </div>

    </form>
</div>
<div class="error-msg"></div>
<div id="Statement">
    <div class="list">
        <table id="tPerformance" style="max-width:680px;">
            <thead>
                <tr>
                    <th>员工姓名</th>
                    <th>绩效金额</th>
                    <th style="width:120px"></th>
                </tr>
            </thead>
            <tbody>
                @foreach (var item in Model.Items)
                {
                    <tr id="@item.UserId">
                        <td>@item.UserName</td>

                        <td class="text-right">@Com._9pm2.ClientWeb.Utilities.NFormat.Format(item.CtAmount)</td>

                        <td class="text-center">
                            <a href="#" onclick="performanceDetail(@item.UserId)">绩效详细</a>
                        </td>
                    </tr>
                }
                @if (Model.Items.Count > 0)
                {
                    <tr class="totalTd">
                        <td>总计：</td>

                        <td class="oderAmountTotal text-right">@Com._9pm2.ClientWeb.Utilities.NFormat.Format(Model.TotalAmount)</td>
                        <td></td>
                    </tr>
                }

            </tbody>
        </table>
    </div>
</div>

