<div ms-controller="RecruitmentController">
    <!--招聘管理-->
    <table border="0" align="center" cellpadding="0" cellspacing="0" id="mian">
        <tbody>
            <tr>
                <td width="198" height="450" valign="top" id="tdleft">
                    <div id="left" ms-widget="hrResumetMenu,hrResumetMenuid"></div>
                </td>
                <td valign="top" id="right">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="seacrhTable" id="seacrhTable" style="margin-top: 10px;">
                        <tbody>
                            <tr>
                                <td width="440" class="searchico">
                                    <div class="input-append" style="margin-bottom: 0px;">
                                        <input type="text" class="span4" placeholder="请输入招聘标题快速检索" ms-duplex="keyword">
                                        <button class="add-on ibtsearch" style="height: 28px; font-size: 12px; padding: 3px 12px;" ms-click="search">搜索</button>
                                        <button class="add-on ibtsearch" style="height: 28px; font-size: 12px; padding: 3px 12px;" ms-click="clear">显示全部</button>
                                    </div>
                                </td>
                                <td class="fgray">
                                    <span style="float: left;">历史搜索：</span>
                                    <div class="hotlist">
                                        <span class="bindSearchHistory" ms-each-item="history">
                                            <a href="javascript:void(0)" ms-value="item" ms-click="historyClick">{{item}}&nbsp;&nbsp;</a>
                                        </span>
                                    </div>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <table cellspacing="1" cellpadding="0" width="100%" border="0" class="tableList" id="tableList" style="margin-top: 10px;">
                        <thead>
                            <tr class="dobtn" style="background-color: rgba(0, 0, 0, 0);">
                                <td colspan="9" bgcolor="#FFFFFF">
                                    <a href="javascript:void(0);" class="doadd" ms-if="ADD" ms-click="doadd" tag="add">新增</a>
                                    <a href="javascript:void(0);" class="doalldel" ms-if="DELETE" ms-click="doalldel">批量删除</a>
                                </td>
                            </tr>
                            <tr class="head" style="background-color: rgba(0, 0, 0, 0);">
                                <td bgcolor="#FFFFFF" align="center">
                                    <input type="checkbox" class="checkAll">
                                </td>
                                <td bgcolor="#FFFFFF" align="center">招聘标题
                                </td>
                                <td bgcolor="#FFFFFF" align="center">招聘期限
                                </td>
                                <td bgcolor="#FFFFFF" align="center">申请部门
                                </td>
                                <td bgcolor="#FFFFFF" align="center">申请人
                                </td>
                                <td bgcolor="#FFFFFF" align="center">申请时间
                                </td>
                                <td bgcolor="#FFFFFF" align="center">操作
                                </td>
                            </tr>
                        </thead>
                        <tbody ms-each-item="RecruitmentList">
                            <tr ms-hover='hover'>
                                <td align="center">
                                    <input type="checkbox" name="checkbox" ms-value="{{item.Id}}">
                                </td>
                                <td align="left">
                                    <a href="javascript:void(0);" ms-attr-val="item.Id" ms-click="doview">{{item.Title}}</a>
                                </td>
                                <td align="center">{{item.StartDay|truncate(10,'')}} <span ms-if="item.StartDay">至</span>  {{item.EndDay|truncate(10,'')}}
                                </td>
                                <td align="center">{{item.DepartmentIdDisplay}}
                                </td>
                                <td align="center">{{item.ApplyByDisplay}}
                                </td>
                                <td align="center">{{item.ApplyTime}}
                                </td>

                                <td align="center">
                                    <a href="javascript:void(0);" class="doview" title="详细" ms-attr-val="item.Id" ms-click="doview"></a>
                                    <a href="javascript:void(0);" class="doedit" title="编辑" ms-attr-val="item.Id" ms-click="doedit" ms-if="item.EDIT"></a>
                                    <a href="javascript:void(0);" title="非常抱歉，您没有编辑的权限" class="noedit" ms-if="!item.EDIT"></a>
                                    <a href="javascript:void(0);" class="dodel" title="删除" ms-attr-val="item.Id" ms-attr-index="$index" ms-click="dodel" ms-if="item.DELETE"></a>
                                    <a href="javascript:void(0);" title="非常抱歉，您没有删除的权限" class="nodelete" ms-if="!item.DELETE"></a>
                                </td>
                            </tr>
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="9" ms-widget='paging,upaing,userpaing'></td>
                            </tr>
                        </tfoot>
                    </table>
                </td>
            </tr>
        </tbody>
    </table>
    <!---新增或者修改--->
    <noscript id="formTemplate">
        <table width="100%" cellspacing="0" cellpadding="0" border="0" class="commontable">
            <tbody>
                <tr>
                    <th width="67">招聘标题：</th>
                    <td width="500">
                        <input type="text" ms-duplex="entity.Title" style="width: 300px;" />
                        <span class="must">*</span>
                    </td>
                    <th width="67">招聘期限：</th>
                    <td colspan="238">
                        <input type="text" ms-duplex="entity.StartDay" ms-widget='date,birthday,birthdayOpts' style="width: 82px;" readonly="readonly" />
                        <span style="margin-left: -15px;">至</span>
                        <input type="text" ms-duplex="entity.EndDay" style="width: 82px;" ms-widget='date,birthday,birthdayOpts2' readonly="readonly" />
                    </td>
                </tr>
                <tr>
                    <th>招聘渠道：</th>
                    <td colspan="3" style="height: 50px">
                        <label ms-repeat-item="Dictionary">
                            <input type="checkbox" name="qudao" ms-value="item.Id" ms-duplex="entity.AuditComment" />{{item.Data}}&nbsp;&nbsp;</label>
                        <a style="color: red;" href="javascript:void(0)" val="1" ms-click="selectAllAudit">全选</a>
                    </td>
                </tr>
                <tr>
                    <th>招聘理由：</th>
                    <td colspan="3">
                        <input id="Textarea1" ms-duplex="entity.Reason" style="width: 790px;" />
                    </td>
                </tr>
                <tr>
                    <th>招聘介绍：
                                        <br />
                        <span class="helptip" style="float: left;"><a href="#" data-toggle="tooltip" data-placement="top" title="发布到各网站的介绍用文">&nbsp;&nbsp; </a></span>
                    </th>
                    <td colspan="3">
                        <textarea id="txtRemark" style="width: 780px; height: 150px"></textarea>
                    </td>
                </tr>
                <tr>
                    <th width="67">申请人：</th>
                    <td width="500">
                        <input type="text" ms-value="entity.ApplyByDisplay" readonly="readonly" style="width: 186px;">
                        <button type="button" class="myfbt" ms-click='selectUser()'><i class="iadduser"></i></button>
                    </td>
                    <th width="67">费用预算：</th>
                    <td width="238">
                        <div class="input-append">
                            <input type="text" style="width: 72px;" ms-duplex="entity.Cost"><span class="add-on">元</span>
                        </div>
                    </td>
                </tr>
                <tr>
                    <th width="67">申请部门：</th>
                    <td width="500">
                        <input type="text" ms-value="entity.DepartmentIdDisplay" readonly="readonly" style="width: 186px;">
                    </td>
                    <th width="67">申请时间：</th>
                    <td width="238">
                        <input type="text" ms-value="entity.ApplyTime" readonly="readonly" style="width: 98px;">
                    </td>
                </tr>
            </tbody>
        </table>
    </noscript>
    <!--查看-->
    <noscript id="viewTemplate">
        <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tablecInfo">
            <tbody>
                <tr>
                    <td width="67">招聘标题：</td>
                    <td width="400">{{entity.Title}}
                    </td>
                    <td width="67">招聘期限：</td>
                    <td width="338">{{entity.StartDay | truncate(10,'')}} <span ms-if="entity.StartDay">至</span>
                        {{entity.EndDay | truncate(10,'')}}
                    </td>
                </tr>
                <tr>
                    <td>招聘渠道：</td>
                    <td colspan="3">{{entity.AuditCommentDisplay}}
                    </td>
                </tr>
                <tr>
                    <td>招聘理由：</td>
                    <td colspan="3">{{entity.Reason}}
                    </td>
                </tr>
                <tr>
                    <td>招聘介绍：
                                        <br />
                        <span class="helptip" style="float: left;"><a href="#" data-toggle="tooltip" data-placement="top" title="发布到各网站的介绍用文">&nbsp;&nbsp; </a></span>
                    </td>
                    <td colspan="3" style="height: 200px;" valign="top">{{entity.Remark | html}}
                    </td>
                </tr>
                <tr>
                    <td>申请人：</td>
                    <td>{{entity.ApplyByDisplay}}
                    </td>
                    <td>费用预算：</td>
                    <td>{{entity.Cost?entity.Cost:0}}元
                    </td>
                </tr>
                <tr>
                    <td>申请部门：</td>
                    <td>{{entity.DepartmentIdDisplay}}
                    </td>
                    <td>申请时间：</td>
                    <td>{{entity.ApplyTime}}
                    </td>
                </tr>
            </tbody>
        </table>
    </noscript>
</div>
