<div ms-controller="Archive">
    <style type="text/css">
        .a-title { backgdaound: url(/Content/Themes/Base/Images/title_bg.jpg); height: 36px; margin-top: 20px; }
        .a-title span { height: 36px; line-height: 36px; color: #2d2d2d; background: url(/Content/Themes/Base/Images/title_span_bg.jpg); display: inline-block; padding: 0 3px; font-size: 14px; font-weight: bold; }
    </style>
    <table border="0" align="center" cellpadding="0" cellspacing="0" id="mian">
        <tbody>
            <tr>
                <!--leftNav-->
                <td width="198" height="450" valign="top" id="tdleft">
                    <div id="left" ms-widget="leftMenu"></div>
                    <!--End leftNav-->
                </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,groupsTreeid,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"  >
                     
                    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="seacrhTable top10" id="seacrhTable">
                        <tbody>
                            <tr>
                                <td width="440" class="searchico">
                                    <div class="input-append" style="margin-bottom: 0px;">
                                        <input type="text" class="span4" placeholder="请输入员工姓名快速检索" ms-duplex="keyword" ms-enter="doSearch">
                                        <button class="add-on ibtsearch" style="height: 28px; font-size: 12px; padding: 3px 12px;" ms-click="doSearch">搜索</button>
                                        <button class="add-on ibtsearch" style="height: 28px; font-size: 12px; padding: 3px 12px;" ms-click="clear">显示全部</button>
                                    </div>
                                </td>
                                <td class="fgray"></td>
                            </tr>
                        </tbody>
                    </table>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="seacrhField">
                        <tbody class="quickword">
                            <tr>
                                <td>
                                    <span>学&nbsp;&nbsp;&nbsp;&nbsp;历</span>
                                    <div id="StageItems" style="display: inline;">
                                        <a href="javascript:void(0);" ms-repeat-item="degreeX" ms-class-selected="item.selected" ms-click="itemClick" ms-attr-index="$index" cate="edu">{{item.Data}}</a>
                                    </div>
                                </td>
                                <td>
                                    <span>婚&nbsp;&nbsp;&nbsp;&nbsp;姻</span>
                                    <div id="MarryItems" style="display: inline;">
                                        <a href="javascript:void(0);" ms-repeat-item="marryX" ms-class-selected="item.selected" ms-click="itemClick" ms-attr-index="$index" cate="marry">{{item.Data}}</a>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <span>入职时间</span>
                                    <div id="Ruzhi" style="display: inline;">
                                        <a href="javascript:void(0);" ms-repeat-item="ruX" ms-class-selected="item.selected" ms-click="itemClick" ms-attr-index="$index" cate="ru">{{item.Data}}</a>
                                    </div>
                                </td>
                                <td>
                                    <span>员工生日</span>
                                    <div id="Shengri" style="display: inline;">
                                        <a href="javascript:void(0);" ms-repeat-item="shengX" ms-class-selected="item.selected" ms-click="itemClick" ms-attr-index="$index" cate="sheng">{{item.Data}}</a>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <span>在职状态</span>
                                    <div id="StatusItems" style="display: inline;">
                                        <a href="javascript:void(0);" ms-repeat-item="statusX" ms-class-selected="item.selected" ms-click="itemClick" ms-attr-index="$index" cate="status"> <font ms-class-green="item.Id==-1">{{item.Data}}</font></a>
                                    </div>
                                </td>
                                <td width="50%">
                                    <span>性&nbsp;&nbsp;&nbsp;&nbsp;别</span>
                                    <div id="SexItems" style="display: inline;">
                                        <a href="javascript:void(0);" ms-repeat-item="sexX" ms-class-selected="item.selected" ms-click="itemClick" ms-attr-index="$index" cate="sex">{{item.Data}}</a>
                                    </div>
                                </td>
                            </tr>
                        </tbody>
                        <tbody>
                            <tr>
                                <td colspan="2" class="seabox">
                                    <span class="first">筛选条件：</span>
                                    <div id="bindSearchKey" style="display: inline;">
                                        <span class="searchItem" ms-if="showItem.keyword!=''">{{showItem.keywordName}}<i><a href="javascript:void(0)" val="keyword" ms-click="remove"></a></i></span>
                                        <span class="searchItem" ms-if="showItem.edu!=''">{{showItem.eduName}}<i><a href="javascript:void(0)" val="edu" ms-click="remove"></a></i></span>
                                        <span class="searchItem" ms-if="showItem.ru!=''">{{showItem.ruName}}<i><a href="javascript:void(0)" val="ru" ms-click="remove"></a></i></span>
                                        <span class="searchItem" ms-if="showItem.sheng!=''">{{showItem.shengName}}<i><a href="javascript:void(0)" val="sheng" ms-click="remove"></a></i></span>
                                        <span class="searchItem" ms-if="showItem.marry!=''">{{showItem.marryName}}<i><a href="javascript:void(0)" val="marry" ms-click="remove"></a></i></span>
                                        <span class="searchItem" ms-if="showItem.status!=''">{{showItem.statusName}}<i><a href="javascript:void(0)" val="status" ms-click="remove"></a></i></span>
                                        <span class="searchItem" ms-if="showItem.sex!=''">{{showItem.sexName}}<i><a href="javascript:void(0)" val="sex" ms-click="remove"></a></i></span> 
                                    </div>
                                    <span class="last" ms-if="showItem.keyword!='' || showItem.edu!='' || showItem.ru!='' || showItem.sheng!='' || showItem.marry!='' || showItem.status!='' || showItem.sex!=''"><a href="javascript:void(0)" ms-click="clearAllItem">清除全部</a></span>
                                </td>
                            </tr>
                        </tbody> 
                    </table>

                    <!--<div class="boxTitlenob"><h2>员工档案列表</h2></div>-->
                    <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList bottom10" id="tableList">
                        <thead>
                            <tr class="dobtn">
                                <td colspan="10">
                                    <a ms-if="ADD"  href="javascript:void(0);" class="doadd" ms-click="doadd" tab="add">新增</a>
                                    <a ms-if="DELETE" href="javascript:void(0);" class="doalldel" ms-click="doalldel">批量删除</a>
                                </td>
                            </tr>
                            <tr class="head">
                                <td width="2%" align="center"><input type="checkbox" class="checkAll"></td>
                                <td width="8%" align="center">姓名</td>
                                <td width="6%" align="center">CRM账号</td>
                                <td width="4%" align="center">性别</td>
                                <td width="6%" align="center">所在部门</td>
                                <td width="6%" align="center">职位</td>
                                <td width="6%" align="center">联系手机</td>
                                <td width="5%" align="center">入职时间</td>
                                <td width="6%" align="center">在职状态</td>
                                <td width="8%" align="center">操作</td>
                            </tr>
                        </thead>
                        <tbody>
                            <tr ms-repeat-item="list" align="center" ms-hover='hover'>
                                <td  ><input type="checkbox" name="checkbox" ms-attr-value="item.Id"></td>
                                <td align="left"><a href="javascript:void(0);" ms-click="doview(item.Id)" ms-attr-val="item.Id">{{item.Name}}</a></td>
                                <td align="left">
                                    <a ms-if="item.DepartmentId"  href="javascript:void(0)"  ms-value="item.DepartmentId" ms-widget='userCard' ms-data-userid="item.DepartmentId">{{item.DepartmentName}}</a>
                                    <span  ms-if="!item.DepartmentId">暂无</span>
                                </td>
                                <td>{{item.Sex==0 ? '男' : '女'}}</td>
                                <td>{{item.GroupName}}</td>
                                <td>{{item.PostName}}</td>
                                <td align="left">{{item.MobileNumber|mobileFormat|html}}</td>
                                <td>{{item.ReportDay|truncate(10,'')}}</td>
                                <td>
                                   <span ms-if="item.Status==0" style=" color:#F96400;"> {{item.Status|status}}</span>
                                   <span ms-if="item.Status==1" style=" color:green;"> {{item.Status|status}}</span>
                                   <span ms-if="item.Status==2" style=" color:red;"> {{item.Status|status}}</span>
                                   <span ms-if="item.Status==3"> {{item.Status|status}}</span>
                                </td>
                                <td>
                                    <a href="javascript:void(0);" class="doview" ms-click="doview(item.Id)"  tab="view" title="查看详情"></a>
                                    <a ms-if="item.EDIT" href="javascript:void(0);" class="doedit" ms-click="doedit" ms-attr-val="item.Id" ms-attr-index="$index" title="编辑"></a>
                                    <a ms-if="!item.EDIT" href="javascript:void(0);" class="noedit"  title="编辑"></a>
                                    <a ms-if="item.DELETE"  href="javascript:void(0);" class="dodel" ms-click="dodel" ms-attr-val="item.Id" ms-attr-index="$index" title="删除"></a>
                                    <a ms-if="!item.DELETE"  href="javascript:void(0);" class="nodel" title="删除"></a>
                                </td>
                            </tr>
                        </tbody>
                        <tfoot><tr><td colspan="10" ms-widget='paging,upaing,userpaing'></td></tr></tfoot>
                    </table>
                </td>
                <!--列表END-->

                <!--新增与编辑-->
                <td id="right" valign="top" ms-if="tab=='add'" style="padding-bottom:20px;">
                    <div class="a-title">
                        <span>建立员工档案</span> <a href="javascript:void(0);" ms-click="tabChange" tab="list" class="btn_back" style="margin: 5px; margin-right: 10px"></a>
                    </div>
                    <br>
                    <table cellspacing="0" cellpadding="0" width="100%" border="0" class="formTable">
                        <tbody>
                            <tr>
                                <td height="25" width="90" align="right">姓名：</td>
                                <td width="45%" align="left">
                                    <input type="text" ms-duplex="entity.Name" />
                                    <span class="must">*</span>
                                </td>
                                <td width="90" align="right">性别：</td>
                                <td align="left">
                                    <label style="padding-right:20px;"><input type="radio" name="sex" value="0" ms-duplex-text="entity.Sex" />男</label>
                                    <label style="padding-right:20px;"><input type="radio" name="sex" value="1" ms-duplex-text="entity.Sex" />女</label>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">关联账户：</td>
                                <td align="left">
                                    <input type="text" readonly="readonly" ms-duplex="entity.DepartmentName" />
                                    <button class="myfbt" ms-widget='dropDownGroupPostUserTree,belongToTree,belongToOpts'><i class="bm"></i></button>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">身高：</td>
                                <td align="left">
                                    <input type="text" ms-duplex="entity.Height" /> CM
                                </td>
                                <td align="right">出生日期：</td>
                                <td align="left">
                                    <input type="text" ms-duplex="entity.Birthday" ms-widget='date,birthday,birthdayOpts'/>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">身份证号：</td>
                                <td align="left">
                                    <input type="text" ms-duplex="entity.IDCardNumber" />
                                </td>
                                <td align="right">身份证地址：</td>
                                <td align="left">
                                    <input type="text" ms-duplex="entity.IDCardAddress" />
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="titbox">
                        <tbody>
                            <tr>
                                <td width="110" height="30" class="tit">家庭和社会关系</td>
                                <td>&nbsp;</td>
                            </tr>
                        </tbody>
                    </table>
                    <table cellspacing="0" cellpadding="0" width="100%" border="0" class="formTable">
                        <tr>
                            <td height="25" width="90" align="right">婚姻状况：</td>
                            <td width="45%" align="left">
                                <label style="padding-right:20px;"><input type="radio" name="marry" ms-duplex-text="entity.IsMarry" value="0" />未婚</label>
                                <label style="padding-right:20px;"><input type="radio" name="marry" ms-duplex-text="entity.IsMarry" value="1" />已婚</label>
                                <label style="padding-right:20px;"><input type="radio" name="marry" ms-duplex-text="entity.IsMarry" value="2" />离异</label>
                            </td>
                            <td width="90" align="right">民族：</td>
                            <td align="left">
                                <select ms-each-item="ethnic" ms-duplex="entity.EthnicGroupId">
                                    <option ms-value="item.Id">{{item.Data}}</option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">籍贯：</td>
                            <td align="left">
                                <input type="text" ms-duplex="entity.NativePlace" />
                            </td>
                            <td align="right">政治面貌：</td>
                            <td align="left">
                                <select ms-each-item="political" ms-duplex="entity.PoliticalId">
                                    <option ms-value="item.Id">{{item.Data}}</option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">户籍所在地：</td>
                            <td align="left" colspan="3"><input type="text" ms-duplex="entity.Domicile" /></td>
                        </tr>
                    </table>
                    <div class="boxTitlenob top10 ">
                        <h2>
                            <button class="btn btn-mini btn-danger" type="button" ms-click="familyDelAll">- 批量删除</button>
                            <button class="btn btn-mini btn-primary" type="button" ms-click="familyAdd">+ 新增</button>家庭成员及社会关系
                        </h2>
                    </div>
                    <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList" style="margin-bottom:20px;">
                        <tbody>
                        <tr class="minhead" align="center" style="background-color: rgb(255, 255, 255); ">
                            <td width="3%" align="center" bgcolor="#FFFFFF"><input type="checkbox" ms-duplex-radio="familyCheck" /></td>
                            <td width="10%" bgcolor="#FFFFFF">关系</td>
                            <td width="10%" bgcolor="#FFFFFF">姓名</td>
                            <td width="10%" align="center" bgcolor="#FFFFFF">年龄</td>
                            <td width="12%" align="center" bgcolor="#FFFFFF">政治面貌</td>
                            <td width="10%" bgcolor="#FFFFFF">联系电话</td>
                            <td width="15%" align="center" bgcolor="#FFFFFF">工作单位</td>
                            <td width="10%" align="center" bgcolor="#FFFFFF">职务</td>
                            <td width="5%"  align="center" bgcolor="#FFFFFF">操作</td>
                        </tr>
                        <tr style="background-color: rgb(250, 250, 250); " ms-repeat-item="family">
                            <td align="center"><input type="checkbox" style="float:none;" ms-duplex-radio="item.Check" /></td>
                            <td align="center"><input type="text" class="w100" ms-duplex="item.Contract" /></td>
                            <td align="center"><input type="text" class="w100" ms-duplex="item.Name" /></td>
                            <td align="center"><input type="text" class="w100" ms-duplex="item.Age" /></td>
                            <td align="center">
                                <select ms-each-item="political" ms-duplex="item.Face" style="width:120px;">
                                    <option ms-value="item.Id">{{item.Data}}</option>
                                </select>
                            </td>
                            <td align="center"><input type="text" class="w100" ms-duplex="item.Tel" /></td>
                            <td align="center"><input type="text" class="w100" ms-duplex="item.Work" /></td>
                            <td align="center"><input type="text" class="w100" ms-duplex="item.Post" /></td>
                            <td align="center"><a href="javascript:void(0);" class="dodel" ms-click="familyDel" ms-attr-index="$index"></a></td>
                        </tr>
                        </tbody>
                    </table>

                    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="titbox">
                        <tbody>
                            <tr>
                                <td width="60" height="30" class="tit">联系信息</td>
                                <td>&nbsp;</td>
                            </tr>
                        </tbody>
                    </table>
                    <table cellspacing="0" cellpadding="0" width="100%" border="0" class="formTable">
                        <tbody>
                        <tr>
                            <td height="25" width="90" align="right">联系手机 ：</td>
                            <td width="45%" align="left">
                                <input type="text" ms-duplex="entity.MobileNumber" /><span class="must">*</span>
                            </td>
                            <td width="90" align="right">家庭电话：</td>
                            <td align="left">
                                <input type="text" ms-duplex="entity.HomeTel"  />
                            </td>
                        </tr>
                        <tr>
                            <td align="right">QQ ：</td>
                            <td align="left">
                                <input type="text" ms-duplex="entity.QQ" />
                            </td>
                            <td align="right">Email：</td>
                            <td align="left">
                                <input type="text" ms-duplex="entity.Email" />
                            </td>
                        </tr>
                        <tr>
                            <td align="right">个人主页：</td>
                            <td align="left">
                                <input type="text" ms-duplex="entity.Homepage" />
                            </td>
                            <td align="right">紧急联系人：</td>
                            <td align="left">
                                <input type="text" ms-duplex="entity.EmergencyContact" />
                            </td>
                        </tr>
                        <tr>
                            <td align="right">办公电话：</td>
                            <td height="25" width="*" align="left">
                                <input type="text" ms-duplex="entity.OfficeTel" />
                            </td>
                            <td height="25" width="90" align="right">紧急联系电话：</td>
                            <td height="25" width="*" align="left">
                                <input type="text" ms-duplex="entity.EmergencyTel" />
                            </td>
                        </tr>
                        <tr>
                            <td height="25" width="90" align="right">办公地址：</td>
                            <td height="25" width="*" align="left">
                                <input type="text" ms-duplex="entity.OfficeAddress" />
                            </td>
                            <td height="25" width="90" align="right">现住址：</td>
                            <td height="25" width="*" align="left">
                                <input type="text" ms-duplex="entity.Address" />
                                邮编：<input type="text" style="width:100px" ms-duplex="entity.PostCode" />
                            </td>
                        </tr>
                    </tbody>
                    </table>

                    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="titbox">
                        <tbody>
                            <tr>
                                <td width="110" height="30" class="tit">教育和培训经历</td>
                                <td>&nbsp;</td>
                            </tr>
                        </tbody>
                    </table>
                    <table cellspacing="0" cellpadding="0" width="100%" border="0" class="formTable">
                        <tbody>
                            <tr>
                                <td height="60" width="90" align="right">职业资格证书：</td>
                                <td width="*" align="left" colspan="3" ms-each-item="empCertificate">
                                    <label style="padding-right:20px;"><input type="checkbox" name="empCertificate" ms-duplex="entity.EmployeeCertificate" ms-value="item.Id" />{{item.Data}}</label>
                                    <br ms-if="($index+1 % 3)==4" /> 
                                </td>
                            </tr>
                            <tr>
                                <td align="right">其他证书：</td>
                                <td width="*" align="left" colspan="3">
                                    <textarea rows="2" cols="20" style="height:80px;width:782px;" ms-duplex="entity.OtherCertificate"></textarea>
                                </td>
                            </tr>
                            <tr>
                                <td width="90" align="right">毕业院校：</td>
                                <td width="45%" align="left">
                                    <input type="text" ms-duplex="entity.GraduatedFrom" />
                                </td>
                                <td width="90" align="right">毕业时间：</td>
                                <td align="left">
                                    <input type="text" ms-duplex="entity.GraduatedDay" ms-widget='date,graduate,graduateOpts' readonly="readonly" />
                                </td>
                            </tr>
                            <tr>
                                <td align="right">专业：</td>
                                <td align="left">
                                    <input type="text" ms-duplex="entity.Profession" />
                                </td>
                                <td align="right">学历：</td>
                                <td align="left">
                                    <select ms-each-item="degree" ms-duplex="entity.Degree">
                                        <option ms-value="item.Id">{{item.Data}}</option>
                                    </select>
                                </td>
                            </tr>
                    </tbody>
                    </table>
                    <div class="boxTitlenob top10">
                        <h2>
                            <button class="btn btn-mini btn-danger" type="button" ms-click="trainDelAll">- 批量删除</button>
                            <button class="btn btn-mini btn-primary" type="button" ms-click="trainAdd">+ 新增</button>其他教育和培训经历(从高中开始填写)
                        </h2>
                    </div>
                    <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList" style="margin-bottom:20px;">
                        <tbody>
                            <tr class="minhead" align="center" style="background-color: rgb(255, 255, 255); ">
                                <td width="3%" align="center" bgcolor="#FFFFFF"><input type="checkbox" ms-duplex-radio="trainCheck"></td>
                                <td width="10%" bgcolor="#FFFFFF">开始时间</td>
                                <td width="10%" bgcolor="#FFFFFF">结束时间</td>
                                <td width="15%" align="center" bgcolor="#FFFFFF">院校</td>
                                <td width="15%" align="center" bgcolor="#FFFFFF">专业</td>
                                <td width="15%" bgcolor="#FFFFFF">学历</td>
                                <td width="5%" align="center" bgcolor="#FFFFFF">操作</td>
                            </tr>
                            <tbody ms-each-item="train">
                            <tr style="background-color: rgb(250, 250, 250);" ms-attr-id="'row' + $index">
                                <td align="center"><input class="w100" type="checkbox" style="float:none;" ms-duplex-radio="item.Check"></td>
                                <td align="center"><input class="w100" ms-attr-id="'setStartDate' + $index" type="text" ms-duplex="item.StartDay" /></td>
                                <td align="center"><input class="w100" ms-attr-id="'setEndDate' + $index" type="text" ms-duplex="item.EndDay" /></td>
                                <td align="center"><input class="w150" type="text" ms-duplex="item.School"></td>
                                <td align="center"><input class="w150" type="text" ms-duplex="item.Profession"></td>
                                <td align="center">
                                    <select style="width:150px" ms-duplex="item.Degree">
                                        <option ms-repeat-el="degree" ms-value="el.Id">{{el.Data}}</option>
                                    </select>
                                </td>
                                <td align="center"><a href="javascript:void(0);" class="dodel" ms-click="trainDel" ms-attr-index="$index"></a></td>
                            </tr>
                            </tbody>
                        </tbody>
                    </table>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="titbox">
                        <tbody>
                            <tr>
                                <td width="60" height="30" class="tit">工作经历</td>
                                <td>&nbsp;</td>
                            </tr>
                        </tbody>
                    </table>
                    <table cellspacing="0" cellpadding="0" width="100%" border="0" class="formTable">
                        <tbody>
                            <tr>
                                <td height="25" width="90" align="right">参加工作时间：</td>
                                <td height="25" width="*" align="left">
                                    <input type="text" ms-duplex="entity.StartWorkingAt" ms-widget='date,startwork,startworkOpts' readonly="readonly" />
                                </td>
                                <td width="90" align="right">职称：</td>
                                <td align="left">
                                    <select ms-each-item="title" ms-duplex="entity.TitleOfPostId">
                                        <option ms-value="item.Id">{{item.Data}}</option>
                                    </select>
                                </td>
                            </tr>
                            <tr>
                                <td height="25" width="105" align="right">受过奖励及惩罚：</td>
                                <td height="25" width="*" align="left" colspan="3">
                                    <textarea rows="2" cols="20" style="height:80px;width:786px;" ms-duplex="entity.RewardPunish"></textarea>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <div class="boxTitlenob top10">
                        <h2>
                            <button class="btn btn-mini btn-danger" type="button" ms-click="historyDelAll">- 批量删除</button>
                            <button class="btn btn-mini btn-primary" type="button" ms-click="historyAdd">+ 新增</button>工作经历
                        </h2>
                    </div>
                    <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList" id="gzjl" style="margin-bottom:20px;">
                        <tr class="minhead" align="center" style="background-color: rgb(255, 255, 255); ">
                            <td width="3%" align="center" bgcolor="#FFFFFF">
                                <input type="checkbox" name="checkbox" ms-duplex-radio="historyCheck" />
                            </td>
                            <td width="15%" bgcolor="#FFFFFF">开始时间</td>
                            <td width="15%" bgcolor="#FFFFFF">结束时间</td>
                            <td width="21%" bgcolor="#FFFFFF">单位</td>
                            <td width="10%" align="center" bgcolor="#FFFFFF">部门</td>
                            <td width="10%" bgcolor="#FFFFFF">职位</td>
                            <td width="5%" align="center" bgcolor="#FFFFFF">操作</td>
                        </tr>
                        <tbody ms-each-item="history">
                            <tr style="background-color: rgb(250, 250, 250); " ms-attr-id="'his' + $index">
                                <td align="center"><input class="w100" type="checkbox" ms-duplex-radio="item.Check" /></td>
                                <td align="center"><input class="w100" type="text" ms-attr-id="'hisStartDate' + $index" type="text" ms-duplex="item.StartDay"  ></td>
                                <td align="center"><input class="w100" type="text" ms-attr-id="'hisEndDate' + $index" type="text" ms-duplex="item.EndDay"></td>
                                <td align="center"><input class="w150" type="text" ms-duplex="item.Company"></td>
                                <td align="center"><input class="w100" type="text" ms-duplex="item.Department"></td>
                                <td align="center"><input class="w100" type="text" ms-duplex="item.Post"></td>
                                <td align="center"><a href="javascript:void(0);" class="dodel" ms-click="historyDel"></a></td>
                            </tr>
                        </tbody>
                    </table>


                    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="titbox mt15">
                        <tbody>
                            <tr>
                                <td width="68" height="30" class="tit">
                                    技能专长
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <table cellspacing="0" cellpadding="0" width="100%" border="0" class="formTable">
                        <tbody>
                            <tr>
                                <td height="25" width="90" align="right">掌握语言：</td>
                                <td align="left" colspan="3">
                                    <label style="padding-right:20px;" ms-repeat-item="language"><input type="checkbox" name="language" ms-duplex="entity.Language" ms-value="item.Id" />{{item.Data}}</label>
                                </td>
                            </tr>
                            <tr>
                                <td height="25" width="90" align="right">外语水平：</td>
                                <td width="45%" align="left">
                                    <select ms-duplex="entity.ForeignLanguageLevel">
                                        <option ms-repeat-item="langguageLv" ms-value="item.Id">{{item.Data}}</option>
                                    </select>
                                </td>
                                <td width="90" align="right">
                                    计算机水平：
                                </td>
                                <td align="left">
                                    <select ms-duplex="entity.ComputerLevel">
                                        <option ms-repeat-item="computerLv" ms-value="item.Id">{{item.Data}}</option>
                                    </select>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">驾照：</td>
                                <td align="left">
                                    <select ms-duplex="entity.DrivingLicenseId">
                                        <option ms-repeat-item="driving" ms-value="item.Id">{{item.Data}}</option>
                                    </select>
                                </td>
                                <td align="right">
                                    交通工具：
                                </td>
                                <td align="left">
                                    <select ms-duplex="entity.VehicleId">
                                        <option ms-repeat-item="vehicle" ms-value="item.Id">{{item.Data}}</option>
                                    </select>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">其他技能专长：</td>
                                <td align="left" colspan="3">
                                    <textarea rows="2" cols="20" style="height:80px;width:786px;" ms-duplex="entity.OtherSkill"></textarea>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="titbox">
                        <tbody>
                            <tr>
                                <td width="168" height="30" class="tit">与公司员工亲属关系说明
                                </td>
                                <td>&nbsp;</td>
                            </tr>
                        </tbody>
                    </table>        
                    如与公司本部员工、辖区内各主管（含）以上级别人员有夫妻关系、直系亲属关系、三代以内旁系血亲以及近姻亲关系的，请予以说明
                    <table cellspacing="0" cellpadding="0" width="100%" border="0" style="margin-bottom:20px;">
                        <tbody>
                            <tr>
                                <td height="25" width="*" align="left"></td>
                                <td>
                                    <div class="boxTitlenob top10">
                                        <h2>
                                            <button class="btn btn-mini btn-danger" type="button" ms-click="contractDelAll">- 批量删除</button>
                                            <button class="btn btn-mini btn-primary" type="button" ms-click="contractAdd">+ 新增</button>与公司员工亲属关系说明
                                        </h2>
                                    </div>
                                    <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList" id="qsgx">
                                        <tr class="minhead" align="center" style="background-color: rgb(255, 255, 255); ">
                                            <td width="3%" align="center" bgcolor="#FFFFFF"><input type="checkbox" ms-duplex-radio="contractCheck"></td>
                                            <td width="27%" bgcolor="#FFFFFF">亲属姓名</td>
                                            <td width="15%" bgcolor="#FFFFFF">所在部门</td>
                                            <td width="21%" align="center" bgcolor="#FFFFFF">职位</td>
                                            <td width="20%" align="center" bgcolor="#FFFFFF">与本人关系</td>
                                            <td width="5%" align="center" bgcolor="#FFFFFF">操作</td>
                                        </tr>
                                        <tbody ms-each-item="contract">
                                        <tr style="background-color: rgb(250, 250, 250); ">
                                            <td align="center"><input type="checkbox" ms-duplex-radio="item.Check"></td>
                                            <td align="center">
                                                <input class="w150" type="text" readonly="readonly" ms-duplex="item.KinsfolkName">
                                                <button type="button" ms-attr-index="$index" class="myfbt" ms-live-click="setCons" style="margin-bottom: 0;"><i class="customer"></i></button>
                                            </td>
                                            <td align="center"><input class="w100" type="text" readonly="readonly" ms-duplex="item.DepartmentName"></td>
                                            <td align="center"><input class="w100" type="text" readonly="readonly" ms-duplex="item.PostName"></td>
                                            <td align="center"><input class="w150" type="text" ms-duplex="item.Relation"></td>
                                            <td align="center"><a href="javascript:;" class="dodel" ms-click="contractDel"></a></td>
                                        </tr>
                                        </tbody>
                                     </table>
                                </td>
                            </tr>
                        </tbody>
                    </table>

                    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="titbox mt15">
                        <tbody>
                            <tr>
                                <td width="68" height="30" class="tit">工作信息</td>
                                <td>&nbsp;</td>
                            </tr>
                        </tbody>
                    </table>
                    <table cellspacing="0" cellpadding="0" width="100%" border="0" class="formTable">
                         <tbody>
                             <tr>
                                <td align="right">直属上级领导 ：</td>
                                <td align="left" colspan="3">
                                    <input type="text" readonly="readonly" ms-duplex="entity.BossName" />
                                    <button class="myfbt" ms-widget='dropDownGroupPostUserTree,parentPost,parentPostOpt'><i class="customer"></i></button>
                                </td>
                            </tr>
                            <tr>
                                <td height="25" width="90" align="right">入职时间 ：</td>
                                <td width="45%" align="left">
                                    <input type="text" ms-duplex="entity.ReportDay" ms-widget='date,report,reportOpts' readonly="readonly" />
                                </td>
                                <td width="90" align="right">有无试用期 ：</td>
                                <td align="left">
                                    <label style="padding-right:20px;"><input type="radio" name="istest" value="true" ms-duplex-bool="entity.IsHaveTry" />有</label>
                                    <label style="padding-right:20px;"><input type="radio" name="istest" value="false" ms-duplex-bool="entity.IsHaveTry" />无</label>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">合同起始时间 ：</td>
                                <td align="left">
                                    <input type="text" ms-duplex="entity.ContractStartDay" ms-widget='date,contractStart,contractStartOpts' readonly="readonly" />
                                </td>
                                <td align="right">正式转正日期 ：</td>
                                <td align="left">
                                    <input type="text" ms-duplex="entity.OfficialDay" ms-widget='date,officialDay,officialDayOpts' readonly="readonly" />
                                </td>
                            </tr>
                            <tr>
                                <td align="right">合同终止时间 ：</td>
                                <td align="left">
                                    <input type="text" ms-duplex="entity.ContractEndDay" ms-widget='date,contractEnd,contractEndOpts' readonly="readonly" />
                                </td>
                                <td align="right">工资级别待遇 ：</td>
                                <td align="left">
                                    <input type="text" ms-duplex="entity.Salary" />
                                </td>
                            </tr>
                            <tr>
                                <td align="right">保密签订日期 ：</td>
                                <td align="left">
                                    <input type="text" ms-duplex="entity.PrivacySignDay" ms-widget='date,signDay,signDayOpts' readonly="readonly" />
                                </td>
                                <td align="right">在职状态 ：</td>
                                <td align="left">
                                    <table border="0">
	                                    <tbody>
                                        <tr>
		                                    <td><label style="padding-right:10px;"><input type="radio" ms-duplex-text="entity.Status" value="0">在职试用</label></td>
                                            <td><label style="padding-right:10px;"><input type="radio" ms-duplex-text="entity.Status" value="1">在职正式</label></td>
                                            <td><label style="padding-right:10px;"><input type="radio" ms-duplex-text="entity.Status" value="2">离职</label></td>
	                                    </tr>
                                        </tbody>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">担保签订日期 ：</td>
                                <td align="left">
                                    <input type="text" ms-duplex="entity.GuaranteeSignDay" ms-widget='date,guarantee,guaranteeOpts' readonly="readonly" />
                                </td>
                                <td align="right">离职时间 ：</td>
                                <td align="left">
                                    <input type="text" ms-duplex="entity.LeaveOfficeDay" ms-widget='date,leave,leaveOpts' readonly="readonly" />
                                </td>
                            </tr>
                         </tbody>
                    </table>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tbody>
                            <tr>
                                <td align="center" height="80px"><button type="button" class="btn btn-primary" ms-click="submit">提交</button></td>
                            </tr>
                        </tbody>
                    </table>
                </td>
                <!--新增与编辑END-->

                <!--查看详情-->
                <td id="right" valign="top" ms-if="tab=='view'" style="padding-bottom:20px;">
                    <div class="a-title">
                        <span>员工档案详情</span> <a href="javascript:void(0);" ms-click="tabChange" tab="list" class="btn_back" style="margin: 5px; margin-right: 10px"></a>
                    </div>
                    <br>
                    <table cellspacing="1" cellpadding="0" width="100%" border="0" class="tablecInfo" style="margin-bottom:20px;">
                        <tbody>
                            <tr style="background-color: rgb(246, 246, 246); ">
                                <td class="title" colspan="4">个人信息</td>
                            </tr>
                            <tr>
                                <td height="25" width="90" align="right">姓名：</td>
                                <td width="45%" align="left">
                                    {{entity.Name}}
                                </td>
                                <td width="90" align="right">性别：</td>
                                <td align="left">
                                    {{entity.Sex==0?'男':'女'}}
                                </td>
                            </tr>
                            <tr>
                                <td align="right">关联账户：</td>
                                <td align="left" colspan="3">
                                    {{entity.DepartmentName}}
                                </td>
                            </tr>
                            <tr>
                                <td align="right">身高：</td>
                                <td align="left">
                                    {{entity.Height}} CM
                                </td>
                                <td align="right">出生日期：</td>
                                <td align="left">
                                    {{entity.Birthday|truncate(10,'')}}
                                </td>
                            </tr>
                            <tr>
                                <td align="right">身份证号：</td>
                                <td align="left">
                                    {{entity.IDCardNumber}}
                                </td>
                                <td align="right">身份证地址：</td>
                                <td align="left">
                                    {{entity.IDCardAddress}}
                                </td>
                            </tr>
                            <tr>
                            <td height="25" width="90" align="right">婚姻状况：</td>
                            <td width="45%" align="left">
                                {{entity.IsMarry|marrys}}
                            </td>
                            <td width="90" align="right">民族：</td>
                            <td align="left">
                                {{entity.EthnicGroupId|ethnic}}
                            </td>
                        </tr>
                        <tr>
                            <td align="right">籍贯：</td>
                            <td align="left">
                                {{entity.NativePlace}}
                            </td>
                            <td align="right">政治面貌：</td>
                            <td align="left">
                                {{entity.PoliticalId|political}}
                            </td>
                        </tr>
                        <tr>
                            <td align="right">户籍所在地：</td>
                            <td align="left" colspan="3">
                                {{entity.Domicile}}
                            </td>
                        </tr>
                        </tbody>
                    </table>

                    <table cellspacing="1" cellpadding="0" width="100%" border="0" class="tablecInfo" style="margin-bottom:20px;">
                        <tbody>
                            <tr style="background-color: rgb(246, 246, 246); ">
                                <td class="title" colspan="4">联系信息</td>
                            </tr>
                            <tr>
                                <td height="25" width="90" align="right">联系手机 ：</td>
                                <td width="45%" align="left">
                                    {{entity.MobileNumber}}
                                </td>
                                <td width="90" align="right">家庭电话：</td>
                                <td align="left">
                                    {{entity.HomeTel}}
                                </td>
                            </tr>
                            <tr>
                                <td align="right">QQ ：</td>
                                <td align="left">
                                    {{entity.QQ}}
                                </td>
                                <td align="right">Email：</td>
                                <td align="left">
                                    {{entity.Email}}
                                </td>
                            </tr>
                            <tr>
                                <td align="right">个人主页：</td>
                                <td align="left">
                                    {{entity.Homepage}}
                                </td>
                                <td align="right">紧急联系人：</td>
                                <td align="left">
                                    {{entity.EmergencyContact}}
                                </td>
                            </tr>
                            <tr>
                                <td align="right">办公电话：</td>
                                <td height="25" width="*" align="left">
                                    {{entity.OfficeTel}}
                                </td>
                                <td height="25" width="90" align="right">紧急联系电话：</td>
                                <td height="25" width="*" align="left">
                                    {{entity.EmergencyTel}}
                                </td>
                            </tr>
                            <tr>
                                <td height="25" width="90" align="right">办公地址：</td>
                                <td height="25" width="*" align="left">
                                    {{entity.OfficeAddress}}
                                </td>
                                <td height="25" width="90" align="right">现住址：</td>
                                <td height="25" width="*" align="left">
                                    {{entity.Address}} {{entity.PostCode ? ('邮编：'+entity.PostCode) : ''}}
                                </td>
                            </tr>
                        </tbody>
                    </table>

                    <table cellspacing="1" cellpadding="0" width="100%" border="0" class="tablecInfo" style="margin-bottom:20px;">
                        <tbody>
                            <tr style="background-color: rgb(246, 246, 246); ">
                                <td class="title" colspan="4">学校信息</td>
                            </tr>
                            <tr>
                                <td height="60" width="90" align="right">职业资格证书：</td>
                                <td width="*" align="left" colspan="3">
                                    {{entity.EmployeeCertificate|certificate}}
                                </td>
                            </tr>
                            <tr>
                                <td align="right">其他证书：</td>
                                <td width="*" align="left" colspan="3">
                                    {{entity.OtherCertificate}}
                                </td>
                            </tr>
                            <tr>
                                <td width="90" align="right">毕业院校：</td>
                                <td width="45%" align="left">
                                    {{entity.GraduatedFrom}}
                                </td>
                                <td width="90" align="right">毕业时间：</td>
                                <td align="left">
                                    {{entity.GraduatedDay}}
                                </td>
                            </tr>
                            <tr>
                                <td align="right">专业：</td>
                                <td align="left">
                                    {{entity.Profession}}
                                </td>
                                <td align="right">学历：</td>
                                <td align="left">
                                    {{entity.Degree|degree}}
                                </td>
                            </tr>
                        </tbody>
                    </table>

                    <table cellspacing="1" cellpadding="0" width="100%" border="0" class="tablecInfo" style="margin-bottom:20px;">
                        <tbody>
                            <tr style="background-color: rgb(246, 246, 246); ">
                                <td class="title" colspan="4">工作信息</td>
                            </tr>
                            <tr>
                                <td align="right">直属上级领导 ：</td>
                                <td align="left" colspan="3">
                                    {{entity.BossName}}
                                </td>
                            </tr>
                            <tr>
                                <td height="25" width="90" align="right">入职时间 ：</td>
                                <td width="45%" align="left">
                                    {{entity.ReportDay|truncate(10,'')}}
                                </td>
                                <td width="90" align="right">有无试用期 ：</td>
                                <td align="left">
                                    {{entity.IsHaveTry?'有':'无'}}
                                </td>
                            </tr>
                            <tr>
                                <td align="right">合同起始时间 ：</td>
                                <td align="left">
                                    {{entity.ContractStartDay|truncate(10,'')}}
                                </td>
                                <td align="right">正式转正日期 ：</td>
                                <td align="left">
                                    {{entity.OfficialDay|truncate(10,'')}}
                                </td>
                            </tr>
                            <tr>
                                <td align="right">合同终止时间 ：</td>
                                <td align="left">
                                    {{entity.ContractEndDay|truncate(10,'')}}
                                </td>
                                <td align="right">工资级别待遇 ：</td>
                                <td align="left">
                                    {{entity.Salary}}
                                </td>
                            </tr>
                            <tr>
                                <td align="right">保密签订日期 ：</td>
                                <td align="left">
                                    {{entity.PrivacySignDay|truncate(10,'')}}
                                </td>
                                <td align="right">在职状态 ：</td>
                                <td align="left">
                                    {{entity.Status|status}}
                                </td>
                            </tr>
                            <tr>
                                <td align="right">担保签订日期 ：</td>
                                <td align="left">
                                    {{entity.GuaranteeSignDay|truncate(10,'')}}
                                </td>
                                <td align="right">离职时间 ：</td>
                                <td align="left">
                                    {{entity.LeaveOfficeDay|truncate(10,'')}}
                                </td>
                            </tr>
                        </tbody>
                    </table>

                    <div class="boxTitlenob top10 ">
                        <h2>家庭成员及社会关系</h2>
                    </div>
                    <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList" style="margin-bottom:20px;">
                        <tbody>
                        <tr class="minhead" align="center" style="background-color: rgb(255, 255, 255); ">
                            <td width="10%" bgcolor="#FFFFFF">关系</td>
                            <td width="10%" bgcolor="#FFFFFF">姓名</td>
                            <td width="10%" align="center" bgcolor="#FFFFFF">年龄</td>
                            <td width="12%" align="center" bgcolor="#FFFFFF">政治面貌</td>
                            <td width="10%" bgcolor="#FFFFFF">联系电话</td>
                            <td width="15%" align="center" bgcolor="#FFFFFF">工作单位</td>
                            <td width="10%" align="center" bgcolor="#FFFFFF">职务</td>
                        </tr>
                        <tr style="background-color: rgb(250, 250, 250); " ms-repeat-item="family">
                            <td align="center">{{item.Contract}}</td>
                            <td align="center">{{item.Name}}</td>
                            <td align="center">{{item.Age}}</td>
                            <td align="center">{{item.Face|political}}</td>
                            <td align="center">{{item.Tel}}</td>
                            <td align="center">{{item.Work}}</td>
                            <td align="center">{{item.Post}}</td>
                        </tr>
                        </tbody>
                    </table>

                    <div class="boxTitlenob top10">
                        <h2>其他教育和培训经历(从高中开始填写)</h2>
                    </div>
                    <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList" style="margin-bottom:20px;">
                        <tbody>
                            <tr class="minhead" align="center" style="background-color: rgb(255, 255, 255); ">
                                <td width="10%" bgcolor="#FFFFFF">开始时间</td>
                                <td width="10%" bgcolor="#FFFFFF">结束时间</td>
                                <td width="15%" align="center" bgcolor="#FFFFFF">院校</td>
                                <td width="15%" align="center" bgcolor="#FFFFFF">专业</td>
                                <td width="15%" bgcolor="#FFFFFF">学历</td>
                            </tr>
                            <tbody ms-each-item="train">
                            <tr style="background-color: rgb(250, 250, 250);">
                                <td align="center">{{item.StartDay|truncate(10,'')}}</td>
                                <td align="center">{{item.EndDay|truncate(10,'')}}</td>
                                <td align="center">{{item.School}}</td>
                                <td align="center">{{item.Profession}}</td>
                                <td align="center">
                                    {{item.Degree|degree}}
                                </td>
                            </tr>
                            </tbody>
                        </tbody>
                    </table>

                    <div class="boxTitlenob top10">
                        <h2>工作经历</h2>
                    </div>
                    <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList" style="margin-bottom:20px;">
                        <tr class="minhead" align="center" style="background-color: rgb(255, 255, 255); ">
                            <td width="15%" bgcolor="#FFFFFF">开始时间</td>
                            <td width="15%" bgcolor="#FFFFFF">结束时间</td>
                            <td width="21%" bgcolor="#FFFFFF">单位</td>
                            <td width="10%" align="center" bgcolor="#FFFFFF">部门</td>
                            <td width="10%" bgcolor="#FFFFFF">职位</td>
                        </tr>
                        <tbody ms-each-item="history">
                            <tr style="background-color: rgb(250, 250, 250); ">
                                <td align="center">{{item.StartDay|truncate(10,'')}}</td>
                                <td align="center">{{item.EndDay|truncate(10,'')}}</td>
                                <td align="center">{{item.Company}}</td>
                                <td align="center">{{item.Department}}</td>
                                <td align="center">{{item.Post}}</td>
                            </tr>
                        </tbody>
                    </table>

                    <table cellspacing="0" cellpadding="0" width="100%" border="0" style="margin-bottom:20px;">
                        <tbody>
                            <tr>
                                <td height="25" width="*" align="left"></td>
                                <td>
                                    <div class="boxTitlenob top10">
                                        <h2>与公司员工亲属关系说明</h2>
                                    </div>
                                    <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList">
                                        <tr class="minhead" align="center" style="background-color: rgb(255, 255, 255); ">
                                            <td width="27%" bgcolor="#FFFFFF">亲属姓名</td>
                                            <td width="15%" bgcolor="#FFFFFF">所在部门</td>
                                            <td width="21%" align="center" bgcolor="#FFFFFF">职位</td>
                                            <td width="20%" align="center" bgcolor="#FFFFFF">与本人关系</td>
                                        </tr>
                                        <tbody ms-each-item="contract">
                                        <tr style="background-color: rgb(250, 250, 250); ">
                                            <td align="center">{{item.KinsfolkName}}</td>
                                            <td align="center">{{item.DepartmentName}}</td>
                                            <td align="center">{{item.PostName}}</td>
                                            <td align="center">{{item.Relation}}</td>
                                        </tr>
                                        </tbody>
                                     </table>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </td>
                <!--查看详情END-->
            </tr>
        </tbody>
    </table>
    <!---在职状态-->
    <noscript id='stateTemplate'>
    <table cellspacing="1" cellpadding="0"  border="0" class="commontable" style="width:400px;">
       <tr>
        <th>在职状态：</th>
        <td>
             <label style="display:inline-block;"><input type="radio" ms-duplex-text="entity.Status" value="0"> 在职试用&nbsp;</label>
             <label style="display:inline-block;"><input type="radio" ms-duplex-text="entity.Status" value="1"> 在职正式&nbsp;</label>
             <label style="display:inline-block;"><input type="radio" ms-duplex-text="entity.Status" value="2"> 离职&nbsp;</label>
             <label style="display:inline-block;"><input type="radio" ms-duplex-text="entity.Status" value="3"> 退休&nbsp;</label>
         </td>
        </tr> 
        <tr>
            <td colspan="2">
                 <div class="tip" title="温馨小提示" style="font-size: 13px; color: #959595; line-height: 13px;">
                      <span style="color: #f25d04;">选择在职状态为【离职】或者【退休】，关联的CRM账号都会禁用</span>
                 </div>
            </td>
        </tr>  
    </table>
</noscript> 
</div>
