<div ms-controller="RecruitPostController">
    <style>
        .ztree li span.button.ico_docu {
            background-position: -111px 0px;
        }
    </style>
    <table border="0" align="center" cellpadding="0" cellspacing="0" id="mian">
        <tbody>
            <tr>
                <td width="198" height="450" valign="top" id="tdleft" style="border-bottom: #d2d2d2 1px solid;">
                    <div id="left" ms-widget="hrResumetMenu,hrResumetMenuid"></div>
                </td>
                <td width="10">&nbsp;</td>
                <td valign="top" bgcolor="#FFFFFF" height="1" style="vertical-align: top; width: 198px;">
                    <table cellpadding="0" cellspacing="0" height="100%" class="bordergrag top10 bottom10">
                        <tr>
                            <td style="vertical-align: top;">
                                <div class="boxTitlenoneb">
                                    <h2 style="padding-left: 2px; margin-bottom: 0px;">
                                        <select id="selectCurrRecruitment" style="width: 166px; margin-top: 2px; font-size: 10px;" ms-change="recruitcurrchange">
                                            <option ms-repeat-item="recruitmentData" ms-attr-value="item.Id">{{item.Title}}</option>
                                        </select>
                                        <a href="javascript:void(0);" title="职位分类管理" class="setico" style="margin-top: 12px;" ms-click="doCategroy"></a>
                                    </h2>
                                    <ul id="postCategroyTree" ms-widget="productCategoryTree,postCategroyId,postCategroyOpts" class="ztree" style="width: 198px; overflow: auto;">
                                    </ul>
                                </div>
                            </td>
                        </tr>
                    </table>
                </td>
                <td valign="top" style="width: 10px;">&nbsp;
                </td>
                <td valign="top">
                    <div class="top10" style="margin-bottom: 10px;">
                        <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 width="100%" border="0" cellspacing="0" cellpadding="0" class="seacrhField">
                            <tbody>
                                <tr class="quickword">
                                    <td width="50%"><span>招聘性质</span>
                                        <div style="display: inline;">
                                            <a href="javascript:void(0);" ms-click="itemClick" value="" class="selected" key="recruitprop">不限</a>
                                            <a href="javascript:void(0);" ms-repeat-item="RPropertiesData" ms-click="itemClick" ms-value="item.Id" key="recruitprop">{{item.Data}}</a>
                                        </div>
                                    </td>
                                </tr>
                                <tr class="quickword">
                                    <td><span>职位性质</span>
                                        <div style="display: inline;">
                                            <a href="javascript:void(0);" ms-click="itemClick" value="" class="selected" key="postprop">不限</a>
                                            <a href="javascript:void(0);" ms-repeat-item="PPropertiesData" ms-click="itemClick" ms-value="item.Id" key="postprop">{{item.Data}}</a>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="seabox">
                                        <span class="first">搜索条件：</span>
                                        <div style="display: inline;">
                                            <span class="searchItem" ms-if='showItem.categoryidname'>{{showItem.categoryidname}}<i><a href="javascript:void(0)" key="categoryid" ms-click='removeItem'></a></i></span>
                                            <span class="searchItem" ms-if='showItem.recruitpropname'>{{showItem.recruitpropname}}<i><a href="javascript:void(0)" key="recruitprop" ms-click='removeItem'></a></i></span>
                                            <span class="searchItem" ms-if='showItem.postpropname'>{{showItem.postpropname}}<i><a href="javascript:void(0)" key="postprop" ms-click='removeItem'></a></i></span>
                                        </div>
                                        <span class="last" ms-visible='showItem.categoryidname || showItem.recruitpropname || showItem.postpropname' ms-click='clearAllItem'><a href="javascript:void(0)">清除全部</a></span>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                        <table width="99%" border="0" cellspacing="1" cellpadding="0" class="tableList bottom10" style="margin-bottom: 1px;">
                            <tr class="dobtn">
                                <td colspan="8">
                                    <a href="javascript:void(0);" class="doadd" ms-click="doadd" title="新增">新增</a>
                                    <a href="javascript:void(0);" class="doalldel" ms-if="DELETE" ms-click="doalldel">批量删除</a>
                                </td>
                            </tr>
                            <tr class="head">
                                <td width="3%" align="center">
                                    <input type="checkbox" class="checkAll">
                                </td>
                                <td width="15%" align="center">职位名称</td>
                                <td width="10%" align="center">招聘性质</td>
                                <td width="10%" align="center">地点</td>
                                <td width="10%" align="center">状态</td>
                                <td width="10%" align="center">发布时间</td>
                                <td width="5%" align="center">应聘简历</td>
                                <td width="5%" align="center">操作</td>
                            </tr>
                            <tr ms-repeat-item="postList">
                                <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.Name}}</a>
                                </td>
                                <td style="text-align: center;">{{item.RecruitProperties?item.RecruitPropertiesDisplay:'不限'}}
                                </td>
                                <td style="text-align: center;">{{item.JobAddr}}
                                </td>
                                <td style="text-align: center;">{{item.State?'暂停':'正常'}}
                                </td>
                                <td style="text-align: center;">{{item.AddTime}}
                                </td>
                                <td style="text-align: center;">{{item.ResumeNum}}</td>
                                <td style="text-align: center;">
                                    <a href="javascript:void(0);" class="doview" ms-attr-val="item.Id" ms-click="doview" title="查看"></a>
                                    <a class="doedit" ms-attr-title="lang.EditBtn" href="javascript:void(0)" ms-attr-val="item.Id" ms-click="doedit"></a>
                                    <a href="javascript:void(0)" class="dodel" ms-attr-title="lang.DelBtn" ms-attr-val="item.Id" ms-click="dodel"></a>
                                </td>
                            </tr>
                            <tr style="background-color: rgba(0, 0, 0, 0);">
                                <td colspan="8" ms-widget='paging,upaing,postpaing'></td>
                            </tr>
                        </table>
                    </div>

                </td>
            </tr>
        </tbody>
    </table>
    <!-- 新增或者修改-->
    <noscript id="formTemplate">
        <table border="0" cellspacing="0" cellpadding="0" class="formTable">
            <tbody>
                <tr>
                    <td width="70">招聘性质：</td>
                    <td width="350">
                        <select ms-duplex="postEntity.RecruitProperties">
                            <option value="">不限</option>
                            <option ms-repeat-dict="RPropertiesData" ms-value="dict.Id">{{dict.Data}}</option>
                        </select>
                    <td width="70">职位分类：</td>
                    <td width="270">
                        <input type="text" readonly="readonly" ms-duplex="postEntity.CategoryDisplay">
                        <button type="button" class="myfbt" ms-widget="dropDownPCategoryTree,postcategoryTree,postcategoryOpts"><i class="customer"></i></button>
                        <span class="must">*</span>
                    </td>
                </tr>
                <tr>
                    <td>职位名称：</td>
                    <td>
                        <input type="text" ms-duplex='postEntity.Name'>
                        <span class="must">*</span></td>
                    <td>部&nbsp;&nbsp;&nbsp;&nbsp;门：</td>
                    <td>
                        <input type="text" ms-duplex="postEntity.GroupDisplay" readonly="readonly">
                        <button onclick="" type="button" class="myfbt" ms-widget='dropDownGroupTree,inputGroupTree,inputGroupTreeOpts'><i class="bm"></i></button>
                    </td>
                </tr>
                <tr>
                    <td>拟招人数：</td>
                    <td>
                        <input type="text" ms-duplex='postEntity.Number' style="width: 116px;">
                    <td>工作地点：</td>
                    <td>
                        <input type="text" ms-duplex='postEntity.JobAddr'>
                    </td>
                </tr>
                <tr>
                    <td>学历要求：</td>
                    <td>
                        <select ms-duplex="postEntity.Education">
                            <option value="">不限</option>
                            <option ms-repeat-dict="EducationData" ms-value="dict.Id">{{dict.Data}}</option>
                        </select>
                    </td>
                    <td>工作经验：</td>
                    <td>
                        <input type="text" ms-duplex='postEntity.Experience' style="width: 116px;">
                    </td>
                </tr>
                <tr>
                    <td>专业要求：</td>
                    <td>
                        <input type="text" ms-duplex='postEntity.Profession' style="width: 116px;">
                    </td>
                    <td>薪资范围：</td>
                    <td>
                        <input type="text" ms-duplex='postEntity.Salary' style="width: 116px;">
                    </td>
                </tr>
                <tr>
                    <td>职位性质：</td>
                    <td>
                        <select ms-duplex="postEntity.PostProperties">
                            <option value="">不限</option>
                            <option ms-repeat-dict="PPropertiesData" ms-value="dict.Id">{{dict.Data}}</option>
                        </select>
                    <td>状&nbsp;&nbsp;&nbsp;&nbsp;态：</td>
                    <td>
                        <label>
                            <input type="radio" ms-duplex-text="postEntity.State" value="0" />正常&nbsp;&nbsp;</label>
                        <label>
                            <input type="radio" ms-duplex-text="postEntity.State" value="1" />暂停&nbsp;&nbsp;</label>
                    </td>
                </tr>
                <tr>
                    <td>职位描述：<br />
                        <span class="helptip"><a href="#" data-toggle="tooltip" data-placement="top" title="列出职位的工作职责或职位要求">&nbsp;&nbsp; </a></span>
                    </td>
                    <td colspan="3">
                        <textarea id="txtRemark" rows="2" cols="20" style="height: 200px;"></textarea>
                    </td>
                </tr>
                <tr>
                    <td>录入人：</td>
                    <td>
                    {{postEntity.AddBy?postEntity.AddBy.FullName:''}}
                    <td>录入时间：</td>
                    <td>{{postEntity.AddTime}}
                    </td>
                </tr>
            </tbody>
        </table>
    </noscript>
    <!---查看---->
    <noscript id="viewTemplate">
        <table border="0" cellspacing="1" cellpadding="0" class="tablecInfo bottom10">
            <tbody>
                <tr>
                    <td width="70">招聘性质：</td>
                    <td width="300">{{postEntity.RecruitProperties?postEntity.RecruitPropertiesDisplay:'不限'}}
                    </td>
                    <td width="70">职位分类：</td>
                    <td width="300">{{postEntity.CategoryDisplay}}
                    </td>
                </tr>
                <tr>
                    <td>职位名称：</td>
                    <td>{{postEntity.Name}}</td>
                    <td>部&nbsp;&nbsp;&nbsp;&nbsp;门：</td>
                    <td>{{postEntity.GroupDisplay}}
                    </td>
                </tr>
                <tr>
                    <td>拟招人数：</td>
                    <td>
                    {{postEntity.Number}} 
                    <td>工作地点：</td>
                    <td>{{postEntity.JobAddr}}
                    </td>
                </tr>
                <tr>
                    <td>学历要求：</td>
                    <td>{{postEntity.Education}}
                    </td>
                    <td>工作经验：</td>
                    <td>{{postEntity.Experience}}
                    </td>
                </tr>
                <tr>
                    <td>专业要求：</td>
                    <td>{{postEntity.Profession}}
                    </td>
                    <td>薪资范围：</td>
                    <td>{{postEntity.Salary}} 
                    </td>
                </tr>
                <tr>
                    <td>职位性质：</td>
                    <td>
                    {{postEntity.PostProperties?postEntity.PostPropertiesDisplay:'不限'}}
                    <td>状&nbsp;&nbsp;&nbsp;&nbsp;态：</td>
                    <td>{{postEntity.State?'暂停':'正常'}}
                    </td>
                </tr>
                <tr>
                    <td>职位描述： 
                    </td>
                    <td colspan="3" style="height: 150px; vertical-align: top;">{{postEntity.Remark | html}}
                    </td>
                </tr>
                <tr>
                    <td>录入人：</td>
                    <td>
                    {{postEntity.AddBy?postEntity.AddBy.FullName:''}}
                    <td>录入时间：</td>
                    <td>{{postEntity.AddTime}}
                    </td>
                </tr>
            </tbody>
        </table>
    </noscript>
    <!--职位分类管理--->
    <noscript id="formTemplateCategory">
        <table width="650" border="0" cellspacing="1" cellpadding="0" class="tableList bottom10" style="margin-bottom: 1px;">
            <thead>
                <tr class="dobtn">
                    <td colspan="4">
                        <a href="javascript:void(0);" class="doadd" ms-click="doaddCategory" title="新增">新增</a>
                        <a href="javascript:void(0);" class="dosave" ms-click="dosaveCategory">保存</a>
                        <span style="float: right;">招聘计划：
                                            <select id="selectRecruitment" style="width: 166px; margin-top: 5px; font-size: 10px;" ms-change="recruitmentchange">
                                                <option ms-repeat-item="recruitmentData" ms-attr-value="item.Id">{{item.Title}}</option>
                                            </select>
                        </span>
                    </td>
                </tr>
                <tr class="head">
                    <td width="3%" align="center">
                        <input type="checkbox" class="checkAll">
                    </td>
                    <td width="10%" align="center">归属招聘计划</td>
                    <td width="10%" align="center">职位分类名称</td>
                    <td width="5%" align="center">操作</td>
                </tr>
            </thead>
            <tbody>
                <tr ms-repeat-item="recruitCategroyList">
                    <td align="center">
                        <input type="checkbox" name="checkbox" ms-value="item.Id">
                        <input type="hidden" ms-duplex="item.Id" />
                    </td>
                    <td style="text-align: center;">
                        <input type="text" ms-duplex="item.RecruitmentDisplay" readonly="readonly" />
                        <input type="hidden" ms-duplex="item.RecruitmentId" />
                    </td>
                    <td style="text-align: center;">
                        <input type="text" ms-duplex="item.Name" />
                    </td>
                    <td style="text-align: center;">
                        <a href="javascript:void(0)" class="dodel" title="删除" ms-attr-val="item.Id" ms-attr-index="$index" ms-click="dodelCategory"></a>
                    </td>
                </tr>
            </tbody>
        </table>
    </noscript>
</div>
