@page "/MyFirstList"

<PageContainer>
    <Breadcrumb>
        <Breadcrumb>
            <BreadcrumbItem>
                <a href="/Home"><Icon Type="home"></Icon></a>
            </BreadcrumbItem>
            <BreadcrumbItem>
                <Icon Type="setting"></Icon><span>我的绩效清单</span>
            </BreadcrumbItem>
        </Breadcrumb>
    </Breadcrumb>
    <Content>
        @*<Button Type="primary" Icon="plus" OnClick="AddNew" Style="float:right">添加</Button>*@
    </Content>
    <ChildContent>
        <div style="width:1300px;  overflow:auto;">
            @if (_Datas == null)
            {
                <Spin />
            }
            else
            {
                <table border="1" style="min-width:100%">
                    <tr>
                        <th>我方文号</th>
                        <th>案件类型</th>
                        <th>案件系数</th>
                        <th>处理事项</th>
                        <th>处理事项系数</th>
                        <th>处理人</th>
                        <th>核稿人</th>
                        <th>基础点数</th>
                        <th>完成时间</th>
                        <th>返稿日</th>
                        <th>客户期限</th>
                        <th>初稿日</th>
                        <th>内部期限</th>
                        <th>案件阶段</th>
                        <th>案件名称</th>
                        <th>案件状态</th>
                        <th>申请人</th>
                        <th>备注</th>
                    </tr>
                    @foreach (var item in _Datas)
                    {
                        <tr>
                            <td>@item.CaseNo</td>
                            <td>@item.ApplicationType</td>
                            <td>@item.CaseCoefficient</td>
                            <td>@item.DoItem</td>
                            <td>@item.DoItemCoefficient</td>
                            <td>
                                @if (item.ItemStaffs != null)
                                {
                                    foreach (ItemStaff itemStaff in item.ItemStaffs)
                                    {
                                        <span>@(itemStaff.DoPerson.Name)&nbsp;</span>
                                    }
                                }
                            </td>
                            <td>@(item.Reviewer ==null?"": item.Reviewer.Name)</td>
                            <td>@(item.BasePoint ==null?"": item.BasePoint)</td>
                            <td>@(item.FinishedDate.HasValue? item.FinishedDate.Value.ToString("yyyy-MM-dd"):"")</td>
                            <td>@(item.ReturnDate.HasValue? item.ReturnDate.Value.ToString("yyyy-MM-dd"):"")</td>
                            <td>@(item.CustomerLimitDate.HasValue? item.CustomerLimitDate.Value.ToString("yyyy-MM-dd"):"")</td>
                            <td>@(item.FirstDraftDate.HasValue? item.FirstDraftDate.Value.ToString("yyyy-MM-dd"):"")</td>
                            <td>@(item.InternalDate.HasValue? item.InternalDate.Value.ToString("yyyy-MM-dd"):"")</td>
                            <td>@item.CaseStage</td>
                            <td>@item.CaseState</td>
                            <td>@item.CaseMemo</td>
                        </tr>
                    }
                </table>
            }
        </div>

    </ChildContent>
</PageContainer>

<style>
    div table td{
        min-width:50px;
    }
</style>

