    <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="Div1" style="display: none;"></div>
        <div id="Div2" 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="!fixCustomer" id="btnSelectCustomerContact" class="myfbt" type="button" ms-widget='dropDownCustomerContactsTree,setParetCustomer,pCustomerOpts'>
                    <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: 62px;" ms-duplex-text="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-text="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 colspan="3">
                <select ms-if="!readonly" style="width: 110px;" ms-duplex-text="entity.ContactRoleId">
                    <option value="">请选择</option>
                    <option ms-repeat-role="contactRoles"  ms-value="role.Id">{{role.Data}}</option>
                </select>
                <span ms-if="readonly">{{entity.ContactRoleDisplay}}</span>
            </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>