<style>
    .padding15 { padding:0 15px; }
    .nobgmian{overflow: hidden;margin: 15px auto;width: 98%;}
    .nobg{overflow: hidden; width:100%;}
</style>
<div ms-controller='Contacts'>
<table border="0" align="center" cellpadding="0" cellspacing="0"  ms-class-nobg="!showCondition"  ms-class-nobgmian="showCondition">
    <tbody>
        <tr>
            <td width="245" valign="top" ms-visible='showCondition'>
                <div class="boxTitle">
                    <h2 style="margin-bottom: 0px;">按百家姓检索</h2>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tableBjx" style="margin-top:0px;margin-bottom:-1px;">
                        <tbody>
                            <tr class="bindQuick" ms-repeat="nameLetters" ms-if-loop="$val.length>0">
                                <td width="27" class="letter" style="border: none;">
                                    <a href="javascript:void(0)" ms-click="findByLetter($key)">{{$key}}</a>
                                </td>
                                <td>
                                    <div style="overflow-x:auto; width:230px;">
                                    <a href="javascript:void(0)" ms-click="findByFirstName(n)" ms-repeat-n="$val">{{n}}</a>
                                    </div>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
                <div class="clearfix">
                </div>
                <div class="boxTitle top10">
                    <h2>按生日检索</h2>
                    <table>
                        <tr><td id="jscalender"></td></tr>
                    </table>
                </div>
            </td>
            <td valign="top" ms-class-padding15="showCondition">
                <div class="boxTitle" ms-visible='showCondition'>
                    <h2>分类检索</h2>
                    <table width="99%" border="0" cellspacing="0" cellpadding="0" class="seacrhTable" id="seacrhTable">
                        <tbody>
                            <tr>
                                <td width="320" class="searchico">
                                    <div class="input-append" style="margin-bottom: 0px;">
                                        <input type="text" class="span4" ms-duplex='key' ms-keyup="onEnter" placeholder="输入单位名称、联系人姓名、联系号码、证件号码等关键词">
                                        <button class="add-on ibtsearch" ms-click='toSearch' style="height: 28px; font-size: 12px; padding: 3px 12px;">搜索</button>
                                        <button class="add-on ibtsearch" ms-click="clearSearchItem" style="height: 28px; font-size: 12px; padding: 3px 12px;">显示全部</button>
                                    </div>
                                </td>
                                <td class="fgray">{{lang.SearchHistory}}
                                   <span class="bindSearchHistory" ms-each-h='searchHistory'>
                                       <a href="javascript:void(0)" ms-live-click='findByHistoryKey' ms-title='h'>{{h|truncate(10)}}</a>
                                   </span>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <table width="97%" border="0" align="center" cellpadding="0" cellspacing="0" class="seacrhField">
                        <tbody>
                            <tr class="bindQuick">
                                <td width="50%" colspan="2"><span ms-html='roles.label'></span>
                                    <div style="display: inline;" ms-each-r='roles.items'>
                                        <a href="javascript:void(0)" ms-live-click='setCondition($index,roles.items,"roles")' ms-class-selected="r.curr" ms-html='r.label'></a>
                                    </div>
                                </td>
                            </tr>
                            <tr class="bindQuick">
                                <td><span ms-html='birthday.label'></span>
                                    <div id="BirthdayItems" style="display: inline;" ms-each-b='birthday.items'>
                                        <a href="javascript:void(0)" ms-live-click='setCondition($index,birthday.items,"birthday")' ms-class-selected="b.curr" ms-html='b.label'></a>
                                    </div>
                                </td>
                                <td><span ms-html='sex.label'></span>
                                    <div id="TypeItems" style="display: inline;" ms-each-s='sex.items'>
                                        <a href="javascript:void(0)" ms-live-click='setCondition($index,sex.items,"sex")' ms-class-selected="s.curr" ms-html='s.label'></a>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" class="seabox">
                                    <span class="first" ms-html='lang.CurrSearchCondition'></span>
                                    <div style="display: inline;" ms-with='currConditions'>
                                        <span class="searchItem" ms-if='$val'>{{$val}}
                                        <i><a href="javascript:void(0)" ms-click='removeItem'></a></i>
                                        </span>
                                    </div>
                                    <span class="last" ms-visible='hasCondition' ms-live-click='clearAllItem'><a href="javascript:void(0)" ms-html='lang.ClearAll'></a></span>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div> 
                <table width="100%" border="0" cellspacing="1" cellpadding="0" ms-class-top10="showCondition">
                    <tbody>
                        <tr>
                            <td valign="top">
                                <!--<div class="boxTitlenob">
                                    <h2>联系人列表</h2>
                                </div>-->
                                <table ms-if="showCondition" width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList" id="tableList">
                                    <thead>
                                        <tr class="dobtn" style="background-color: rgb(255, 255, 255);">
                                            <td colspan="10" bgcolor="#FFFFFF">
                                                <a ms-if="ADD" href="javascript:void(0)" ms-click='toAdd' class="doadd" ms-html='lang.AddBtn'></a>
                                                <a href="javascript:void(0)" ms-click="doRemoveAll" class="doalldel" ms-if="DELETE" ms-html='lang.BtachDelBtn'>
                                                </a>
                                                <a href="javascript:void(0)" ms-click='sendSmsMulti' class="dophone" ms-html="'群发短信'" ></a>
                                        </tr>
                                        <tr class="head" style="background-color: rgb(250, 250, 250);">
                                            <td width="5%" align="center" bgcolor="#FFFFFF">
                                                <input type="checkbox" ms-duplex-radio='checkAll'  />
                                            </td>
                                            <td width="10%" align="center" bgcolor="#FFFFFF">姓名</td>
                                            <td width="5%" align="center" bgcolor="#FFFFFF">性别</td>
                                            <td width="25%" align="center" bgcolor="#FFFFFF">对应客户</td>
                                            <td width="10%" align="center" bgcolor="#FFFFFF">职位</td>
                                            <td width="10%" align="center" bgcolor="#FFFFFF">角色</td>
                                            <td width="10%" align="center" bgcolor="#FFFFFF">手机</td>
                                            <td width="10%" align="center" bgcolor="#FFFFFF">QQ</td>
                                            <td width="10%" align="center" bgcolor="#FFFFFF">录入时间</td>
                                            <td width="10%" align="center" bgcolor="#FFFFFF">操作</td>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <tr ms-hover='hover' ms-repeat-cc='contacts'>
                                            <td align="center">
                                                <input type="checkbox" name="checkbox" ms-duplex-radio='cc.checked' />
                                            </td>
                                            <td>
                                                <a href="javascript:void(0)" ms-live-click='toDetail(cc.Id)' ms-html='cc.Name'></a>
                                                <span ms-if="cc.IsFirst" class="label label-info" title="默认联系人"></span>
                                            </td>
                                            <td align="center">{{cc.Sex === 1 ? '女' :'男'}}</td>
                                            <td><a href="javascript:void(0)" ms-click="goto('/Customer/DetailCustomer/'+ cc.Customer.Id,true)" ms-html='cc.Customer.Name'></a></td>
                                            <td align="center" ms-html='cc.Post'></td>
                                            <td align="center" ms-html='cc.ContactRoleDisplay'></td>
                                            <td>{{cc.MobileNumber1|mobileFormat|html}}</td>
                                            <td ms-html="cc.QQ"></td> 
                                            <td ms-html="cc.AddTime"></td>                                   
                                            <td align="center">
                                                <a href="javascript:void(0)" ms-live-click='toDetail(cc.Id)' class="doview" title="查看"></a>
                                                <a ms-if='cc.EDIT' href="javascript:void(0)" ms-live-click='toEdit' class="doedit" title="编辑" data-permission="EDIT"></a>
                                                <a ms-if='!cc.EDIT' href='javascript:void(0)' class='noedit' ms-title='lang.NotEdit'></a>
                                                <a ms-if='cc.DELETE' href="javascript:void(0)" class="dodel" title="删除" data-permission="DELETE" ms-live-click="doRemove"></a>
                                                <a ms-if='!cc.DELETE' href='javascript:void(0)' class='nodel' ms-title='lang.NotDelete'></a>
                                            </td>
                                        </tr>
                                        <tr ms-if="grid1.gridmsg">
                                            <td colspan="10" class="gridmsg">{{grid1.gridmsg|html}}</td>
                                        </tr>
                                    </tbody>
                                    <tfoot>
                                        <tr style="background-color: rgb(255, 255, 255);">
                                            <td colspan="10" ms-widget='paging,contactPage,contactOpts'></td>
                                        </tr>
                                    </tfoot>
                                </table>
                                <!--客户详细调用--->
                                <table ms-if="!showCondition" width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList" id="table1">
                                    <thead>
                                        <tr class="dobtn" style="background-color: rgb(255, 255, 255);">
                                            <td colspan="9" bgcolor="#FFFFFF">
                                                <a ms-if="ADD" href="javascript:void(0)" ms-click='toAdd' class="doadd" ms-html='lang.AddBtn'></a>
                                                <a href="javascript:void(0)" ms-click="doRemoveAll" class="doalldel" ms-if="DELETE" ms-html='lang.BtachDelBtn'></a>
                                                <a href="javascript:void(0)" ms-click='sendSmsMulti' class="dophone" ms-html="'群发短信'" ></a>
                                        </tr>
                                        <tr class="head" style="background-color: rgb(250, 250, 250);">
                                            <td width="3%" align="center" bgcolor="#FFFFFF">
                                                <input type="checkbox" ms-duplex-radio='checkAll' />
                                            </td>
                                            <td width="8%" align="center" bgcolor="#FFFFFF">姓名</td>
                                            <td width="6%" align="center" bgcolor="#FFFFFF">性别</td>
                                            <td width="8%" align="center" bgcolor="#FFFFFF">职位</td>
                                            <td width="15%" align="center" bgcolor="#FFFFFF">手机</td>
                                            <td width="15%" align="center" bgcolor="#FFFFFF">电话</td>
                                            <td width="15%" align="center" bgcolor="#FFFFFF">QQ</td>
                                            <td width="15%" align="center" bgcolor="#FFFFFF">Email</td>
                                            <td width="10%" align="center" bgcolor="#FFFFFF">操作</td>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <tr ms-hover='hover' ms-repeat-cc='contacts'>
                                            <td align="center">
                                                <input type="checkbox" ms-duplex-radio='cc.checked' />
                                            </td> 
                                            <td>
                                                <a href="javascript:void(0)" ms-live-click='toDetail(cc.Id)' ms-html='cc.Name'></a>
                                                <span ms-if="cc.IsFirst" class="labelicon-default" title="默认联系人"></span>
                                            </td>
                                            <td align="center">{{cc.Sex === 1 ? '女' :'男'}}</td> 
                                            <td align="center" ms-html='cc.Post'></td> 
                                            <td>{{cc.MobileNumber1|mobileFormat|html}}</td>  
                                            <td ms-html='cc.OfficeTel'></td>    
                                            <td>{{cc.QQ}}</td> 
                                            <td ms-html='cc.Email'></td>                                        
                                            <td align="center">
                                                <a href="javascript:void(0)" ms-live-click='toDetail(cc.Id)' class="doview" title="查看"></a>
                                                <a ms-if='cc.EDIT' href="javascript:void(0)" ms-live-click='toEdit' class="doedit" title="编辑" data-permission="EDIT"></a>
                                                <a ms-if='!cc.EDIT' href='javascript:void(0)' class='noedit' ms-title='lang.NotEdit'></a>
                                                <a ms-if='cc.DELETE' href="javascript:void(0)" class="dodel" title="删除" data-permission="DELETE" ms-live-click="doRemove"></a>
                                                <a ms-if='!cc.DELETE' href='javascript:void(0)' class='nodel' ms-title='lang.NotDelete'></a>
                                            </td>
                                        </tr>
                                        <tr ms-if="grid1.gridmsg">
                                            <td colspan="9" class="gridmsg">{{grid1.gridmsg|html}}</td>
                                        </tr>
                                    </tbody>
                                    <tfoot>
                                        <tr style="background-color:#ffffff;">
                                            <td colspan="9" ms-widget='paging,contactPage,contactOpts'></td>
                                        </tr>
                                    </tfoot>
                                </table>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </td>
        </tr>
    </tbody>
</table>
<!--查看-->
<noscript id='viewContacts'>
        <div class="user_pic" style="text-align:center;">
            <div style="width:140px;height:138px; overflow:hidden;">
                <img ms-src="entity.Thumbnail || '/Content/Themes/Base/Images/contract_default.png'" alt="" width="140" height="138" />
            </div>
            <a href="javascript:void(0)" ms-visible="!entity.hasPicture" style="color:#7a7979;">无相片</a>
            <a id="btn_toview" href="javascript:void(0)" ms-click="viewPicture" ms-visible="entity.hasPicture">放大</a>
            <div id="show" style=" display:none;"></div>
            <div id="toView" style=" display:none;">
                <button type="button" class="close" style=" position:relative; right:13px;">
                &times;</button>
                <img ms-src="entity.Picture" />
            </div>
        </div>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="titbox">
                <tr>
                    <td width="91" height="27" class="tit">
                        基本信息
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
            </table>
            <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tablecInfo">            
                <tr>
                    <td width="80">
                        对应客户：
                    </td>
                    <td colspan="3">
                        <a href="javascript:void(0)" ms-click='toCustomerDetail'>{{entity.CustomerName}}</a>
                    </td>
                </tr>
                <tr>
                    <td>
                        姓&nbsp;&nbsp;&nbsp;名：
                    </td>
                    <td style="width:160px;">
                       {{entity.Name}} {{entity.AppellationName}} 
                    </td>
                    <td width="80">
                        部门/职位：
                    </td>
                    <td style="width:160px;">                    
                        {{entity.Department}} {{entity.Post}}
                    </td>
                </tr>
                <tr>
                    <td>
                        性&nbsp;&nbsp;&nbsp;别：
                    </td>
                    <td>
                        {{entity.Sex == 1 ? "女" :"男"}}
                    </td>
                    <td>
                        生&nbsp;&nbsp;&nbsp;日：
                    </td>
                    <td>
                        {{entity.Birthday}}
                    </td>
                </tr>
                <tr>
                    <td>
                        证件类型：
                    </td>
                    <td>
                        {{entity.IdCardTypeDisplay}}
                    </td>
                    <td>
                        证件号码：
                    </td>
                    <td>
                        {{entity.IdCardNumber}}
                    </td>
                </tr>
                <tr>
                    <td>
                        联系人角色：
                    </td>
                    <td>
                        {{entity.ContactRoleDisplay}}
                    </td>
                    <td>默认联系人：</td>
                    <td>
                        {{entity.IsFirst?"是":"否"}}
                    </td>
                </tr>
            </table>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="titbox">
                <tr>
                    <td width="91" height="27" class="tit">
                        联系方式
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
            </table>
            <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tablecInfo">           
                <tr>
                    <td width="70">
                        <div style="width:80px;">工作电话：</div>
                    </td>
                    <td style="width:160px;">
                        {{entity.OfficeTel|mobileFormat|html}}
                    </td>
                    <td width="70">
                        <div style="width:80px;">家庭电话：</div>
                    </td>
                    <td style="width:160px;">
                        {{entity.HomeTel}}
                    </td>
                </tr>
                <tr>
                    <td>
                        手机号码1：
                    </td>
                    <td>
                        {{entity.MobileNumber1|mobileFormat|html}}
                    </td>
                    <td>
                        传&nbsp;&nbsp;&nbsp;真：
                    </td>
                    <td>
                        {{entity.Fax}}
                </tr>
                <tr>
                    <td>
                        手机号码2：
                    </td>
                    <td>
                        {{entity.MobileNumber2|mobileFormat|html}}
                    </td>
                    <td>
                        电子邮件：
                    </td>
                    <td>
                        {{entity.Email}}
                    </td>
                </tr>
                <tr>
                    <td>
                        QQ号码：
                    </td>
                    <td>
                        {{entity.QQ}}
                        <a ms-if="entity.QQ" target="_blank" ms-href="'http://wpa.qq.com/msgrd?v=3&uin='+entity.QQ +'&site=qq&menu=yes'">
                                                <img border="0" ms-src="'http://wpa.qq.com/pa?p=2:'+entity.QQ+':52'" alt="点击这里给我发消息" title="点击这里给我发消息" style="width:21px;height:21px;" />
                                            </a>
                    <td>
                        Skype：
                    </td>
                    <td>
                        {{entity.Skype}}
                    </td>
                </tr>
                <tr>
                    <td>
                        家庭地址：
                    </td>
                    <td colspan="3">
                        {{entity.HomeAddress}} {{entity.CompanyPostCode}}
                    </td>
                </tr>
                <tr>
                    <td>
                        备&nbsp;&nbsp;&nbsp;注：
                    </td>
                    <td colspan="3">
                        {{entity.Intro}}
                    </td>
                </tr>
                <tr>
                    <td>
                        录&nbsp;入&nbsp;人：
                    </td>
                    <td>
                        {{entity.AddByDisplay}}
                    </td>
                    <td>
                        录入时间：
                    </td>
                    <td>
                        {{entity.AddTime|truncate(10,"")}}
                    </td>
                </tr>
            </table>

</noscript>

<!-- 新增/编辑联系人 start -->
<noscript id='inputContacts'>
    <div class="user_pic">
        <div style="width: 140px; height: 138px; overflow: hidden;">
            <img ms-src="entity.Thumbnail" alt="" width="140" height="138" />
        </div>
        <a href="javascript:void(0)" style="margin-left: 21px; width: 50px;" ms-click='uploadPic'>修改图片
        </a><a id="A1" href="javascript:void(0)" ms-click="viewPicture">放大</a>
        <div id="show" style="display: none;"></div>
        <div id="toView" style="display: none;">
            <button type="button" class="close" style="position: relative; right: 13px;">
                &times;</button>
            <img ms-src="entity.Picture" />
        </div>
    </div>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="titbox">
        <tr>
            <td width="91" height="27" class="tit">基本信息
            </td>
            <td>&nbsp;
            </td>
        </tr>
    </table>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="formTable">
        <tr>
            <td width="80">对应客户：
            </td>
            <td colspan="3" ms-if="!readonly">
                <input type="text" name="CustomerName" id="CustomerDisplay" ms-duplex="entity.CustomerName"
                    readonly="readonly" />
                <!--<button ms-visible="$action!='customer'" id="btnSelectCustomerContact" class="myfbt" type="button" ms-widget='dropDownCustomerContactsTree,Contacts_setParetCustomer,pCustomerOpts'>
                    <i class="customer"></i></button>-->
                <button ms-visible="$action!='customer'"  class="myfbt" type="button" ms-click='selectCustomer'>
                    <i class="customer"></i></button>
                <span class="must">*</span>
            </td>
            <td colspan="3" ms-if="readonly">{{entity.CustomerName}}
            </td>
        </tr>
        <tr>
            <td>姓&nbsp;&nbsp;&nbsp;名：
            </td>
            <td class="td_content">
                <div ms-if="!readonly">
                    <input type="text" name="Name" id="Name" ms-duplex="entity.Name" style="width: 90px;" ms-change='getPY' />&nbsp;
                           <select id="AppellationId" name="AppellationId" style="width: 75px;"
                               ms-duplex="entity.AppellationId">
                               <option value="">请选择</option>
                               <option ms-repeat-item="titles" ms-value="item.Id">{{item.Data}}</option>
                           </select>
                    <span class="must">*</span>
                </div>
                <span ms-if="readonly">{{entity.Name}} {{entity.AppellationName}} </span>
            </td>
            <td width="80">部门/职位：
            </td>
            <td>
                <div ms-if="!readonly">
                    <input placeholder="输入部门.." type="text" name="Department" id="Department" ms-duplex="entity.Department"
                        style="width: 90px;" />&nbsp;
                           <input placeholder="输入职位.." type="text" name="Post" id="Post" ms-duplex="entity.Post"
                               style="width: 90px;" />
                </div>
                <span ms-if="readonly">{{entity.Department}} {{entity.Post}}</span>
            </td>
        </tr>
        <tr>
            <td>性&nbsp;&nbsp;&nbsp;别：
            </td>
            <td>
                <div ms-if="!readonly">
                    <input type="radio" name="Sex" id="Sex1" ms-duplex-text="entity.Sex" value="0" /><label for="Sex1">男&nbsp;</label>
                    <input type="radio" name="Sex" id="Sex2" ms-duplex-text="entity.Sex" value="1" /><label for="Sex2">女</label>
                </div>
                <span ms-if="readonly">{{entity.Sex}}</span>
            </td>
            <td>生&nbsp;&nbsp;&nbsp;日：
            </td>
            <td>
                <div ms-if="!readonly">
                    <input type="text" name="Birthday" id="Birthday" ms-duplex="entity.Birthday" style="width: 120px;"
                        ms-widget="date,birthDay,birthOpts" readonly="readonly" />
                </div>
                <span ms-if="readonly">{{entity.Birthday}}</span>
            </td>
        </tr>
        <tr>
            <td>证件类型：
            </td>
            <td>
                <select ms-if="!readonly" id="IdCardType" name="IdCardType" style="width: 90px;"
                    ms-duplex-radio="entity.IdCardType">
                    <option value="">请选择</option>
                    <option ms-value="item.Id" ms-repeat-item="cardTypes" >{{item.Data}}</option>
                </select>
                <span ms-if="readonly">{{entity.IdCardTypeDisplay}}</span>
            </td>
            <td>证件号码：
            </td>
            <td>
                <input ms-if="!readonly" type="text" name="IdCardNumber" id="IdCardNumber" ms-duplex="entity.IdCardNumber"
                    class="cinput" />
                <span ms-if="readonly">{{entity.IdCardNumber}}</span>
            </td>
        </tr>
        <tr>
            <td>联系人角色：
            </td>
            <td>
                <select ms-if="!readonly" style="width: 110px;" ms-duplex-radio="entity.ContactRoleId">
                    <option ms-repeat-role="contactRoles"  ms-value="role.Id">{{role.Data}}</option>
                </select>
                <span ms-if="readonly">{{entity.ContactRoleDisplay}}</span>
            </td>
            <td>默认联系人：</td>
            <td><input type="checkbox" ms-duplex-radio="entity.IsFirst" /></td>
        </tr>
    </table>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="titbox">
        <tr>
            <td width="91" height="27" class="tit">联系方式
            </td>
            <td>&nbsp;
            </td>
        </tr>
    </table>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="formTable">
        <tr>
            <td width="70">工作电话：
            </td>
            <td class="td_content">
                <input ms-if="!readonly" type="text" name="OfficeTel" id="OfficeTel" ms-duplex="entity.OfficeTel"
                    class="cinput" />
                <span ms-if="readonly">{{entity.OfficeTel}}</span>
            </td>
            <td width="70">家庭电话：
            </td>
            <td>
                <span ms-if="readonly">{{entity.HomeTel}}</span>
                <input ms-if="!readonly" type="text" name="HomeTel" id="HomeTel" ms-duplex="entity.HomeTel"
                    class="cinput" />
            </td>
        </tr>
        <tr>
            <td>手机号码1：
            </td>
            <td>
                <span ms-if="readonly">{{entity.MobileNumber1}}</span>
                <input ms-if="!readonly" type="text" name="MobileNumber1" id="MobileNumber1" ms-duplex="entity.MobileNumber1"
                    class="cinput" />
            </td>
            <td>传&nbsp;&nbsp;&nbsp;真：
            </td>
            <td>
                <span ms-if="readonly">{{entity.Fax}}</span>
                <input ms-if="!readonly" type="text" name="Fax" id="Fax" ms-duplex="entity.Fax" class="cinput" />
            </td>
        </tr>
        <tr>
            <td>手机号码2：
            </td>
            <td>
                <span ms-if="readonly">{{entity.MobileNumber2}}</span>
                <input ms-if="!readonly" type="text" name="MobileNumber2" id="MobileNumber2" ms-duplex="entity.MobileNumber2"
                    class="cinput" />
            </td>
            <td>电子邮件：
            </td>
            <td>
                <span ms-if="readonly">{{entity.Email}}</span>
                <input ms-if="!readonly" type="text" name="Email" id="Email" ms-duplex="entity.Email"
                    class="cinput" />
            </td>
        </tr>
        <tr>
            <td>QQ号码：
            </td>
            <td>
                <span ms-if="readonly">{{entity.QQ}}</span>
                <input ms-if="!readonly" type="text" name="QQ" id="QQ" ms-duplex="entity.QQ" class="cinput" />
            </td>
            <td>Skype：
            </td>
            <td>
                <span ms-if="readonly">{{entity.Skype}}</span>
                <input ms-if="!readonly" type="text" name="Skype" id="Skype" ms-duplex="entity.Skype"
                    class="cinput" />
            </td>
        </tr>
        <tr>
            <td>家庭地址：
            </td>
            <td colspan="3">
                <div ms-if="!readonly">
                    <input type="text" name="HomeAddress" id="HomeAddress" ms-duplex="entity.HomeAddress"
                        style="width: 250px;" />（邮编
                           <input type="text" name="CompanyPostCode" id="CompanyPostCode" ms-duplex="entity.CompanyPostCode"
                               style="width: 108px;" />）
                </div>
                <span ms-if="readonly">{{entity.HomeAddress}} {{entity.CompanyPostCode}}</span>
            </td>
        </tr>
        <tr>
            <td>备&nbsp;&nbsp;&nbsp;注：
            </td>
            <td colspan="3">
                <textarea ms-if="!readonly" rows="2" cols="20" id="Intro" name="Intro" style="width: 484px;" ms-duplex="entity.Intro"></textarea>
                <span ms-if="readonly">{{entity.Intro}}</span>
            </td>
        </tr>        
    </table>
</noscript>
<!-- 新增/编辑联系人 end -->
</div>
