<div ms-controller="hrpostController">
    <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="leftMenu">
                    </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>
                                        <a href="javascript:void(0)" ms-click="expanCategory" style="color: #016b96; float: right; margin-right: 5px; font-size: 12px; font-weight: normal;">- 收起</a>
                                        组织架构
                                    </h2>
                                    <ul id="organizationTree" ms-widget="groupTree,groups,groupTreeOpts" class="ztree" style="width: 198px; overflow: auto;"></ul>
                                    <br>
                                </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="99%" border="0" cellspacing="1" cellpadding="0" class="tableList bottom10" style="margin-bottom: 1px;">
                            <thead>
                                <tr class="dobtn">
                                    <td colspan="8">
                                        <a href="javascript:void(0);" class="doadd" ms-click="doadd" title="新增">新增</a>
                                        <span class="rseachbox" style="margin-top: 3px;">
                                            <input class="input" type="text" ms-duplex="keyword" placeholder="请输入职位名称">
                                            <button type="button" class="inputbt" ms-click="doSearch"></button>
                                        </span>
                                    </td>
                                </tr>
                                <tr class="head">
                                    <td width="3%" align="center">
                                        <input type="checkbox" class="checkAll">
                                    </td>
                                    <td width="20%" align="center">职位名称</td>
                                    <td width="20%" 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="10%" align="center">操作</td>
                                </tr>
                            </thead>
                            <tbody>
                                <tr ms-repeat-item="postlist">
                                    <td align="center">
                                        <input type="checkbox" name="checkbox" ms-value="item.Id"></td>
                                    <td>
                                        <a href="javascript:void(0)" ms-attr-val="item.Id" ms-click="doview">{{item.Name}}</a>
                                    </td>
                                    <td style="text-align: center;">{{item.GroupName}}
                                    </td>
                                    <td style="text-align: center;">{{item.Boss?item.Boss.Name:''}}
                                    </td>
                                    <td style="text-align: center;">{{item.SalaryLevel}}
                                    </td>
                                    <td style="text-align: center;">{{item.empNum}}
                                    </td>
                                    <td align="center">{{item.AddTime}}</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 ms-if="grid1.gridmsg">
                                    <td colspan="8" class="gridmsg">{{grid1.gridmsg|html}}</td>
                                </tr>
                            </tbody>
                        </table>
                    </div>

                </td>
            </tr>
        </tbody>
    </table>
    <!-- 新增或者修改-->
    <noscript id="formTemplate">
        <ul class="tabWarp">
            <li ms-class-hover="tab=='tab1'" ms-class-normal="tab!='tab1'" val="tab1" ms-click="tabChange">基本信息</li>
            <li ms-class-hover="tab=='tab2'" ms-class-normal="tab!='tab2'" val="tab2" ms-click="tabChange">目标职责</li>
            <li ms-class-hover="tab=='tab3'" ms-class-normal="tab!='tab3'" val="tab3" ms-click="tabChange">权力关系</li>
            <li ms-class-hover="tab=='tab4'" ms-class-normal="tab!='tab4'" val="tab4" ms-click="tabChange">任职资格</li>
            <li ms-class-hover="tab=='tab5'" ms-class-normal="tab!='tab5'" val="tab5" ms-click="tabChange">工作场所</li>
            <li ms-class-hover="tab=='tab6'" ms-class-normal="tab!='tab6'" val="tab6" ms-click="tabChange">考核指标</li>
        </ul>
        <div class="tabContent" ms-visible="tab=='tab1'">
            <table border="0" cellspacing="0" cellpadding="0" class="formTable" width="100%">
                <tbody>
                    <tr>
                        <td width="100">职位名称：</td>
                        <td width="320">
                            <input type="text" ms-duplex='postEntity.Name'>
                            <span class="must">*</span></td>
                        <td width="70">归属部门：</td>
                        <td width="250">
                            <input type="text" ms-value="postEntity.GroupName" readonly="readonly" style="width: 186px;">
                            <button type="button" class="myfbt" ms-widget='dropDownGroupTree,setGroup,postGroupTreeOpts'><i class="bm"></i></button>
                            <span class="must">*</span>
                        </td>
                    </tr>
                    <tr>
                        <td>工资等级：</td>
                        <td>
                            <input type="text" ms-duplex='postEntity.SalaryLevel' style="width: 80px;">
                            <span class="must">*</span></td>
                        <td>直接上级：</td>
                        <td>
                            <input type="text" ms-duplex="postEntity.bossName" readonly="readonly" style="width: 186px;">
                            <button type="button" class="myfbt" ms-widget='dropDownGroupTree,postBossTreeId,postBossTreeOpts'><i class="bm"></i></button>
                        </td>
                    </tr>
                    <tr>
                        <td>职位定员：</td>
                        <td>
                            <input type="text" ms-duplex='postEntity.NumberOfPeoples' style="width: 80px;">
                            <span class="must">*</span></td>
                        <td>客户容量：</td>
                        <td>
                            <input type="text" ms-duplex='postEntity.NumOfCustomer' style="width: 50px;">
                            <span class="helptip"><a href="#" data-toggle="tooltip" data-placement="top" title="归属当前职位的员工可以拥有的客户总数，不填或填0代表不做限制">&nbsp;&nbsp; </a></span>
                        </td>
                    </tr>
                    <tr>
                        <td>注意和补充事项：</td>
                        <td colspan="3">
                            <textarea ms-duplex='postEntity.Remark' rows="2" cols="20" style="height: 150px; width: 578px;"></textarea>
                        </td>
                    </tr>
                    <tr>
                        <td>录入人：</td>
                        <td>
                        {{postEntity.AddBy.FullName}}
                    <td>录入时间：</td>
                        <td>{{postEntity.AddTime}}
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div class="tabContent" ms-visible="tab=='tab2'">
            <table border="0" cellspacing="0" cellpadding="0" class="formTable" width="100%">
                <tbody>
                    <tr>
                        <td width="100">工作目标：</td>
                        <td>
                            <textarea rows="2" cols="20" style="height: 150px; width: 600px;" ms-duplex='postEntity.WorkTarget'></textarea>
                        </td>
                    </tr>
                    <tr>
                        <td width="100">工作职责与任务：</td>
                        <td>
                            <textarea rows="2" cols="20" style="height: 150px; width: 600px;" ms-duplex='postEntity.Responsibility'></textarea>
                        </td>
                    </tr>

                </tbody>
            </table>
        </div>
        <div class="tabContent" ms-visible="tab=='tab3'">
            <table border="0" cellspacing="0" cellpadding="0" class="formTable" width="100%">
                <tbody>
                    <tr>
                        <td width="100">工作权力：</td>
                        <td>
                            <textarea ms-duplex='postEntity.Powers' rows="2" cols="20" style="height: 150px; width: 600px;"></textarea>
                        </td>
                    </tr>
                    <tr>
                        <td width="100">工作协作关系：</td>
                        <td>
                            <textarea ms-duplex='postEntity.Coordinate' rows="2" cols="20" style="height: 150px; width: 600px;"></textarea>
                        </td>
                    </tr>

                </tbody>
            </table>
        </div>
        <div class="tabContent" ms-visible="tab=='tab4'">
            <table border="0" cellspacing="0" cellpadding="0" class="formTable" width="100%">
                <tbody>
                    <tr>
                        <td width="160">教育/专业/培训要求：</td>
                        <td>
                            <textarea ms-duplex='postEntity.Education' rows="2" cols="20" style="height: 100px; width: 540px;"></textarea>
                        </td>
                    </tr>
                    <tr>
                        <td width="160">知识和技能要求：<br />
                            （岗位专业技能、计算机、<br />
                            外语、沟通能力等）</td>
                        <td>
                            <textarea ms-duplex='postEntity.Profession' rows="2" cols="20" style="height: 100px; width: 540px;"></textarea>
                        </td>
                    </tr>
                    <tr>
                        <td width="160">经验要求（工作经历）：</td>
                        <td>
                            <textarea ms-duplex='postEntity.Experience' rows="2" cols="20" style="height: 100px; width: 540px;"></textarea>
                        </td>
                    </tr>

                    <tr>
                        <td width="160">个人基本素质和价值观要求：</td>
                        <td>
                            <textarea ms-duplex='postEntity.Quality' rows="2" cols="20" style="height: 100px; width: 540px;"></textarea>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div class="tabContent" ms-visible="tab=='tab5'">
            <table border="0" cellspacing="0" cellpadding="0" class="formTable" width="100%">
                <tbody>
                    <tr>
                        <td width="100">工具/设备：</td>
                        <td>
                            <textarea ms-duplex='postEntity.Device' rows="2" cols="20" style="height: 100px; width: 600px;"></textarea>
                        </td>
                    </tr>
                    <tr>
                        <td width="100">工作环境：</td>
                        <td>
                            <textarea ms-duplex='postEntity.Environment' rows="2" cols="20" style="height: 100px; width: 600px;"></textarea>
                        </td>
                    </tr>
                    <tr>
                        <td width="100">工作时间：</td>
                        <td>
                            <textarea ms-duplex='postEntity.WorkTime' rows="2" cols="20" style="height: 100px; width: 600px;"></textarea>
                        </td>
                    </tr>
                    <tr>
                        <td width="100">所需记录文档：</td>
                        <td>
                            <textarea ms-duplex='postEntity.Documents' rows="2" cols="20" style="height: 100px; width: 600px;"></textarea>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div class="tabContent" ms-visible="tab=='tab6'">
            <table border="0" cellspacing="0" cellpadding="0" class="formTable" width="100%">
                <tbody>
                    <tr>
                        <td width="100">考核指标：</td>
                        <td>
                            <textarea ms-duplex='postEntity.CheckIndicator' rows="2" cols="20" style="height: 150px; width: 600px;"></textarea>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </noscript>
    <!---查看---->
    <noscript id="viewTemplate">
        <ul class="tabWarp" style="width: 100%;">
            <li ms-class-hover="tab=='tab1'" ms-class-normal="tab!='tab1'" val="tab1" ms-click="tabChange">基本信息</li>
            <li ms-class-hover="tab=='tab2'" ms-class-normal="tab!='tab2'" val="tab2" ms-click="tabChange">目标职责</li>
            <li ms-class-hover="tab=='tab3'" ms-class-normal="tab!='tab3'" val="tab3" ms-click="tabChange">权力关系</li>
            <li ms-class-hover="tab=='tab4'" ms-class-normal="tab!='tab4'" val="tab4" ms-click="tabChange">任职资格</li>
            <li ms-class-hover="tab=='tab5'" ms-class-normal="tab!='tab5'" val="tab5" ms-click="tabChange">工作场所</li>
            <li ms-class-hover="tab=='tab6'" ms-class-normal="tab!='tab6'" val="tab6" ms-click="tabChange">考核指标</li>
        </ul>
        <div class="tabContent" ms-visible="tab=='tab1'">
            <table cellspacing="1" cellpadding="0" border="0" class="tablecInfo" width="740" style="margin: 10px 20px;">
                <tbody>
                    <tr>
                        <td width="110">职位名称：</td>
                        <td width="300">{{postEntity.Name}}</td>
                        <td width="70">归属部门：</td>
                        <td width="270">{{postEntity.GroupName}}
                        </td>
                    </tr>
                    <tr>
                        <td>工资等级：</td>
                        <td>{{postEntity.SalaryLevel}}</td>
                        <td>直接上级：</td>
                        <td>{{postEntity.bossName}}
                        </td>
                    </tr>
                    <tr>
                        <td>职位定员：</td>
                        <td>{{postEntity.NumberOfPeoples}} </td>
                        <td>客户容量：</td>
                        <td>{{postEntity.NumOfCustomer}}
                        </td>
                    </tr>
                    <tr>
                        <td>注意和补充事项：</td>
                        <td colspan="3" style="height: 100px;">{{postEntity.Remark}}
                        </td>
                    </tr>
                    <tr>
                        <td>录入人：</td>
                        <td>
                        {{postEntity.AddBy.FullName}}
                    <td>录入时间：</td>
                        <td>{{postEntity.AddTime}}
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div class="tabContent" ms-visible="tab=='tab2'">
            <table cellspacing="1" cellpadding="0" border="0" class="tablecInfo" width="740" style="margin: 10px 20px;">
                <tbody>
                    <tr>
                        <td width="100">工作目标：</td>
                        <td style="height: 100px;">{{postEntity.WorkTarget}}
                        </td>
                    </tr>
                    <tr>
                        <td width="100">工作职责与任务：</td>
                        <td style="height: 100px;">{{postEntity.Responsibility}}
                        </td>
                    </tr>

                </tbody>
            </table>
        </div>
        <div class="tabContent" ms-visible="tab=='tab3'">
            <table cellspacing="1" cellpadding="0" border="0" class="tablecInfo" width="740" style="margin: 10px 20px;">
                <tbody>
                    <tr>
                        <td width="100">工作权力：</td>
                        <td style="height: 100px;">{{postEntity.Powers}}
                        </td>
                    </tr>
                    <tr>
                        <td width="100">工作协作关系：</td>
                        <td style="height: 100px;">{{postEntity.Coordinate}}
                        </td>
                    </tr>

                </tbody>
            </table>
        </div>
        <div class="tabContent" ms-visible="tab=='tab4'">
            <table cellspacing="1" cellpadding="0" border="0" class="tablecInfo" width="740" style="margin: 10px 20px;">
                <tbody>
                    <tr>
                        <td width="160">教育/专业/培训要求：</td>
                        <td style="height: 100px;">{{postEntity.Education}}
                        </td>
                    </tr>
                    <tr>
                        <td width="160">知识和技能要求：<br />
                            （岗位专业技能、计算机、<br />
                            外语、沟通能力等）</td>
                        <td style="height: 100px;">{{postEntity.Profession}}
                        </td>
                    </tr>
                    <tr>
                        <td width="160">经验要求（工作经历）：</td>
                        <td style="height: 100px;">{{postEntity.Experience}}
                        </td>
                    </tr>

                    <tr>
                        <td width="160">个人基本素质和价值观要求：</td>
                        <td style="height: 100px;">{{postEntity.Quality}}
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div class="tabContent" ms-visible="tab=='tab5'">
            <table cellspacing="1" cellpadding="0" border="0" class="tablecInfo" width="740" style="margin: 10px 20px;">
                <tbody>
                    <tr>
                        <td width="100">工具/设备：</td>
                        <td style="height: 100px;">{{postEntity.Device}}
                        </td>
                    </tr>
                    <tr>
                        <td width="100">工作环境：</td>
                        <td style="height: 100px;">{{postEntity.Environment}}
                        </td>
                    </tr>
                    <tr>
                        <td width="100">工作时间：</td>
                        <td style="height: 100px;">{{postEntity.WorkTime}}
                        </td>
                    </tr>
                    <tr>
                        <td width="100">所需记录文档：</td>
                        <td style="height: 100px;">{{postEntity.Documents}}
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div class="tabContent" ms-visible="tab=='tab6'">
            <table cellspacing="1" cellpadding="0" border="0" class="tablecInfo" width="740" style="margin: 10px 20px;">
                <tbody>
                    <tr>
                        <td width="100">考核指标：</td>
                        <td style="height: 100px;">{{postEntity.CheckIndicator}}
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </noscript>
</div>
