<div ms-controller="DailyReport">
    <table border="0" align="center" cellpadding="0" cellspacing="0" id="nobgmian">
        <tbody>
            <tr>
                <td width="256" valign="top">
                    <div class="boxTitlenoneb boxTitle">
                        <h2>按员工找工作报告</h2>
                        <div class="input-append">
                            <input ms-duplex="empname" type="text" style="width: 172px; margin-left: 10px; font-size: 12px; color: #989898;" placeholder="请输入员工姓名">
                            <button ms-click="empsearch" class="add-on ibtsearch" style="height: 28px; font-size: 12px; padding: 3px 12px;">搜索</button>
                        </div>
                        <div style="height: 340px; overflow: auto;">
                            <ul id="empTree" class="ztree"></ul>
                        </div>
                    </div>
                    <div class="clearfix">
                    </div>
                    <div class="boxTitle top10">
                        <h2>工作报告日历</h2>
                        <table>
                            <tr>
                                <td id="jscalender"></td>
                            </tr>
                        </table>
                    </div>
                </td>
                <td width="12" valign="top">&nbsp;
                </td>
                <td width="12" valign="top">&nbsp;
                </td>

                <!--列表-->
                <td valign="top">
                    <!--检索-->
                    <div class="boxTitle">
                        <h2>分类检索</h2>
                        <input type="hidden" name="Handle" id="Handle" value="Search">
                        <table width="98%" border="0" cellspacing="0" cellpadding="0" class="seacrhTable" align="center">
                            <tbody>
                                <tr>
                                    <td width="440" class="searchico">
                                        <div class="input-append" style="margin-bottom: 0px;">
                                            <input type="text" class="span4" placeholder="请输入汇报标题、总结、计划等关键字" ms-duplex="queryData.key.val" ms-enter="grid1.doSearch">
                                            <button type="button" class="add-on ibtsearch" ms-click="grid1.doSearch" style="height: 28px; font-size: 12px; padding: 3px 12px;">搜索</button>
                                            <button type="button" class="add-on ibtsearch" ms-click="clearQuery" style="height: 28px; font-size: 12px; padding: 3px 12px;">显示全部</button>
                                        </div>
                                    </td>
                                    <td class="fgray">
                                        
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                        <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="seacrhField">
                            <tbody>
                                <tr ms-class="quickword {{$val.hide?'hide':''}}" ms-repeat="queryData" ms-if-loop="$val.items && !$val.jump">
                                    <td ms-attr-colspan="$val.next?1:2" ms-width="$val.next?'50%':'100%'">
                                        <span>{{$val.label}}</span>
                                        <div style="display: inline;">
                                            <a ms-repeat-r='$val.items' href="javascript:void(0)" ms-click='addQuery($key, r.val, r.label)' ms-class-selected="r.curr" ms-html='r.label'></a>
                                        </div>
                                    </td>
                                    <td ms-if="$val.next" width="50%">
                                        <span>{{queryData[$val.next].label}}</span>
                                        <div style="display: inline;">
                                            <a ms-repeat-r="queryData[$val.next].items" href="javascript:void(0)" ms-click='addQuery($val.next, r.val, r.label)' ms-class-selected="r.curr" ms-html='r.label'></a>
                                        </div>
                                    </td>
                                </tr>
                                <tr ms-if="queryMore">
                                    <td colspan="2">
                                        <ul class="quickwordul">
                                            <li>
                                                <div class="quickwordmore" isshow="flase" onclick="quickwordShow()">更多选项<span class="quickdown"></span></div>
                                            </li>
                                        </ul>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2" class="seabox">
                                        <span class="first" ms-html='lang.CurrSearchCondition'></span>
                                        <div style="display: inline; float: left;" ms-repeat="queryData">
                                            <span class="searchItem" ms-if-loop='$val.valLabel'>{{$val.valLabel}}
                                        <i><a href="javascript:void(0)" ms-click='removeQuery($key)'></a></i>
                                            </span>
                                        </div>
                                        <span class="last" ms-visible='hasQuery' ms-click='clearQuery'><a href="javascript:void(0)" ms-html='lang.ClearAll'></a></span>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div>
                        <ul class="tabWarp tlist" style="margin-top:10px;">
                            <li ms-class-1="{{listtab==1?'hover':'normal'}}"  ms-click="listtabChange(1)">我的报告</li>
                            <li ms-class-1="{{listtab==2?'hover':'normal'}}"  ms-click="listtabChange(2)">下属报告</li>
                            <li ms-class-1="{{listtab==3?'hover':'normal'}}"  ms-click="listtabChange(3)">呈报给我</li>
                        </ul>
                    </div>
                    <!--我的报告列表-->
                    <table  width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList" id="tableList" style="margin-top:-1px;">
                        <thead>
                            <tr class="dobtn">
                                <td colspan="8" bgcolor="#FFFFFF">
                                    <a href="javascript:void(0);"  class="doadd" ms-if="ADD" ms-click="doadd">新增</a>
                                    <a href="javascript:void(0);" ms-if="DELETE && listtab!=3" class="doalldel" ms-click="grid1.removeAll">批量删除</a>
                                </td>
                            </tr>
                            <tr class="head">
                                <th width="3%">
                                    <input type="checkbox" ms-duplex="grid1.checkall"></th>
                                <th width="8%">报告分类</th>
                                <th width="30%">报告标题</th>
                                <th width="10%">时间范围</th>
                                <th width="10%">报告人</th>
                                <th width="8%">填报时间</th>
                                <th width="8%">领导点评</th>
                                <th width="6%">操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr class="even" ms-repeat-item="grid1.list">
                                <td align="center">
                                    <input type="checkbox" ms-duplex-radio="item.checked">
                                </td>
                                <td align="center">{{item.ReportTypeId|reptype}}
                                </td>
                                <td>
                                    <a href="javascript:void(0);" ms-click="doview(item.Id)">{{item.ReportTitle}}</a>
                                </td>
                                <td align="center">{{item.ReportStartDate|truncate(10,'')}} 至 {{item.ReportStartDate|truncate(10,'')}}
                                </td>
                                <td align="center">
                                    <a href="javascript:void(0);" ms-text="item.AddBy.FullName" ms-widget='userCard' ms-data-userid="item.AddBy.Id"></a>
                                </td>
                                <td align="center">{{item.AddTime|truncate(10,'')}}
                                </td>
                                <td align="center" ms-if="config.configs['UseSendTo'] == '1'" ms-title="'呈报'+item.CommentNeedTotal+'个领导，已有'+item.CommentTotal+'个领导点评，点评已查看'+item.ReadedTotal+'个'">
                                    <a href="javascript:void(0)" ms-click="doview(item.Id,'tab3')">{{item.CommentNeedTotal||0}}/{{item.CommentTotal}}/{{item.ReadedTotal}}</a>
                                    <span class="comment_new" ms-visible="item.ReadedTotal!=item.CommentTotal">&nbsp;</span>
                                </td>
                                <td align="center" ms-if="config.configs['UseSendTo'] == '0'" ms-title="'已有'+item.CommentTotal+'个领导点评，点评已查看'+item.ReadedTotal+'个'">
                                    <a href="javascript:void(0)" ms-click="doview(item.Id,'tab3')">{{item.CommentNeedTotal||0}}/{{item.CommentTotal}}</a>
                                    <span class="comment_new" ms-visible="item.ReadedTotal!=item.CommentTotal">&nbsp;</span>
                                </td>
                                <td align="center">
                                    <a href="javascript:void(0);" class="doview" title="详细" ms-click="doview(item.Id)"></a>
                                    <span ms-if="listtab!=3">
                                    <a href="javascript:void(0);" class="doedit" title="编辑" ms-if="item.EDIT && listtab==1" ms-click="doedit(item.Id)"></a>
                                    <a href="javascript:void(0);" title="领导点评过的报告无法编辑或者您没有编辑的权限" class="noedit" ms-if="!item.EDIT && listtab==1"></a>
                                    <a href="javascript:void(0);" class="dodel" title="删除" ms-if="item.DELETE" ms-click="grid1.removeById(item.Id,$index)"></a>
                                    <a title="领导点评过的报告无法删除或您没有删除的权限" href="javascript:void(0)" class="nodelete" ms-if="!item.DELETE"></a>
                                    </span>
                                </td>
                            </tr>
                        </tbody>
                        <tfoot>
                            <tr ms-if="grid1.total==0">
                                <td colspan="8" class="gridmsg">{{grid1.gridmsg|html}}</td>
                            </tr>
                            <tr>
                                <td colspan="8" ms-widget='paging' data-gridid="grid1"></td>
                            </tr>
                        </tfoot>
                    </table>
                </td>
                <!--列表END-->
            </tr>
        </tbody>
    </table>
    <!--新增、编辑-->
    <noscript id="DailyReportformTemplate">
        <div>
            <ul class="tabWarp">
                <li ms-class-1="hover:tab=='tab1'" ms-class-2="normal:tab!='tab1'" val="tab1" ms-click="tabChange">{{reportTypes[entity.ReportTypeId]}}信息</li>
                <li ms-class-1="hover:tab=='tab2'" ms-class-2="normal:tab!='tab2'" val="tab2" ms-click="tabChange">今{{one.substring(1,2)}}数据</li>
                <li ms-if="action != 'add' && tab=='tab3'" ms-class-1="hover:tab=='tab3'" ms-class-2="normal:tab!='tab3'" val="tab3" ms-click="tabChange">领导点评</li>
            </ul>
        </div>
        <div id="tab1" ms-visible="tab=='tab1'" ms-css-width="tabWidth-20" class="tabContent2">
            <div style="width: 96%;" ms-if="timeok!='ok'">
                <span class="tipico" style="padding-left: 20px; color: #ff6a00;">{{timeok}}</span>
            </div>
            <table width="96%" border="0" cellspacing="0" cellpadding="0" class="formTable" style="margin: 0px auto;">
                <tbody>
                    <tr>
                        <td width="70">报告分类：
                        </td>
                        <td width="355">
                            <label style="margin-right: 20px;" ms-repeat="reportTypes">
                                <input type="radio" ms-value="$key" ms-duplex-text="entity.ReportTypeId">{{$val}}
                            </label>
                        </td>
                        <td width="70">报告区间：
                        </td>
                        <td>
                            <input type="text" ms-duplex="entity.ReportStartDate" style="width: 100px" ms-widget='date,birthday,birthdayOpts' readonly="readonly">
                            <span style="margin-left: -15px;">至</span>
                            <input type="text" ms-duplex="entity.ReportEndDate" style="width: 100px" ms-widget='date,birthday,birthdayOpts2' readonly="readonly">
                            <span class="must" style="margin-left: -15px;">*</span>
                        </td>
                    </tr>
                    <tr ms-if="config.configs['UseSendTo']=='1'">
                        <td width="70">报告标题：
                        </td>
                        <td>
                            <input type="text" style="width: 300px;" ms-duplex="entity.ReportTitle">
                            <span class="must">*</span>
                        </td>
                        <td width="70">呈报领导：
                        </td>
                        <td>
                            <input type="text" ms-duplex="entity.SendToDisplay" style="width: 170px;" readonly="true">
                            <span class="must">*</span>
                            <button type="button" class="myfbt" ms-click="selectSendTo()"><i class="iadduser"></i></button>
                        </td>
                    </tr>
                    <tr ms-if="config.configs['UseSendTo']=='0'">
                        <td width="70">报告标题：
                        </td>
                        <td colspan="3">
                            <input type="text" style="width: 300px;" ms-duplex="entity.ReportTitle">
                            <span class="must">*</span>
                        </td>
                    </tr>
                    <tr ms-if="entity.ReportTypeId=='1'">
                        <td>今日计划<br />
                            (昨日填写)</td>
                        <td colspan="3">
                            <div style="height: 60px; width: 690px; padding: 5px; overflow: auto; border: #BDBABA 1px solid; background: #eeeeee;">
                                {{entity.YesterdayPlan|html}}
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td width="70">{{one}}总结：</td>
                        <td colspan="3" style="">
                            <textarea id="TodaySummary"></textarea>
                        </td>
                    </tr>
                    <tr>
                        <td width="70">{{two}}计划：</td>
                        <td colspan="3" style="">
                            <textarea id="TommowPlan"></textarea>
                        </td>
                    </tr>
                    <tr>
                        <td width="70" style="vertical-align: top;">主要日程：</td>
                        <td colspan="3">
                            <table border="0" cellspacing="1" cellpadding="0" class="tableList" style="width: 702px;">
                                <tr class="minhead" align="center">
                                    <td width="55%">日程主题</td>
                                    <td width="20%">日程分类</td>
                                    <td width="10%">开始时间</td>
                                    <td width="10%">结束时间</td>
                                    <td width="5%">
                                        <a href="javascript:void(0)" class="dodel" ms-click="calenderAllDel" title="清空列表"></a>
                                    </td>
                                </tr>
                                <tr ms-repeat-item="entity.CalendarsList">
                                    <td align="center">
                                        <input type="text" style="width: 220px; margin-bottom: 2px;" ms-duplex="item.Subject" maxlength="100" />
                                    </td>
                                    <td align="center">
                                        <select class="mycategory" ms-each-option="categorys" ms-duplex-radio="item.CategoryId" ms-attr-inx="$index" style="width: 120px;">
                                            <option ms-value="option.Id">{{option.CategoryName}}</option>
                                        </select>
                                    </td>
                                    <td align="center">
                                        <input type="text" name="StartTime" ms-attr-id="'StartDate_'+$index" ms-attr-index="$index" class="calenderDate" ms-duplex="item.StartTime" style="width: 110px; margin: 5px 2px;" ms-widget="date,reportstartime,reportstartOpts" readonly="readonly">
                                    </td>
                                    <td align="center">
                                        <input type="text" name="EndTime" ms-attr-id="'EndDate_'+$index" ms-attr-index="$index" class="calenderDate" ms-duplex="item.EndTime" style="width: 110px; margin: 5px 2px;" ms-widget="date,reportendtime,reportstartOpts" readonly="readonly">
                                    </td>
                                    <td><a href="javascript:void(0)" class="dodel" ms-click="$remove" ms-title="lang.DelBtn"></a></td>
                                </tr>
                                <tr>
                                    <td colspan="5">
                                        <a href="javascript:void(0)" class="doadd3" ms-click="calenderAdd">增加一行</a>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td>附&nbsp;&nbsp;&nbsp;&nbsp;件：
                        </td>
                        <td height="50" width="*" align="left" colspan="3">
                            <input type="text" ms-duplex="entity.Affix" readonly="readonly" style="width: 280px;" />
                            <button type="button" ms-click="uploadFiles" class="myfbt"><i class="customer"></i></button>
                        </td>
                    </tr>
                </tbody>
            </table>
            <table border="0" cellspacing="0" cellpadding="0" class="tablecInfo" style="width: 99%; padding-right: 0px;">
                <tr>
                    <td style="text-align: left; padding-left: 1px; background: #FFFFFF;">录入人：{{entity.AddBy.FullName}}<span ms-if="entity.AddBy.Group">({{entity.AddBy.Group}})</span>
                    </td>
                    <td style="text-align: right; padding-right: 0px; background: #FFFFFF;">录入时间：{{entity.AddTime}}</td>
                </tr>
            </table>
        </div>
        <div id="tab2" ms-visible="tab=='tab2'" ms-css-width="tabWidth-20" class="tabContent2">
            <div style="display: block; margin-bottom: 0px;">
                <div style="width: 100%; margin: 0px auto;">
                    <table border="0" cellspacing="0" cellpadding="0" style="margin: 0 auto; width: 100%;">
                        <tbody>
                            <tr>
                                <td valign="top" width="50%">
                                    <div class="work_data" ms-if="showlist">
                                        <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList">
                                            <thead>
                                                <tr class="minhead" align="left" style="background-color: rgba(0, 0, 0, 0);">
                                                    <td width="60%">新增客户名称
                                                    </td>
                                                    <td width="20%">阶段
                                                    </td>
                                                    <td width="20%">新增时间
                                                    </td>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                <tr ms-repeat-item="customerList">
                                                    <td><a href="javascript:void(0);" ms-click="goto('/Customer/DetailCustomer/'+item.Id)">{{item.Name|truncate(20,'……')}}</a></td>
                                                    <td align="center">{{item.StageName}}</td>
                                                    <td align="center">{{item.AddTime|truncate(10,'')}}</td>
                                                </tr>
                                                <tr ms-if="customerList.size()==0">
                                                    <td colspan="3">{{lang.NoListData}}</td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                    <div class="worksum_data" ms-if="!showlist">
                                        <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList">
                                            <thead>
                                                <tr class="minhead" align="left" style="background-color: rgba(0, 0, 0, 0);">
                                                    <td width="60%">新增客户数
                                                    </td>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                <tr>
                                                    <td>
                                                        <div class="sum_data">
                                                            上{{one1}}{{sumdata.lastcustomer}}个，今{{one1}}{{sumdata.customer}}个 
                                                                        <span class="_up" ms-if="sumdata.lastcustomer<sumdata.customer">↑</span>
                                                            <span ms-if="sumdata.lastcustomer>sumdata.customer" class="_down">↓</span>
                                                        </div>

                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>

                                </td>
                                <td style="width: 10px;">&nbsp;
                                </td>
                                <td valign="top">
                                    <div class="work_data" ms-if="showlist">
                                        <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList">
                                            <thead>
                                                <tr class="minhead" align="left" style="background-color: rgba(0, 0, 0, 0);">
                                                    <td width="60%">客户服务主题
                                                    </td>
                                                    <td width="20%">服务类型
                                                    </td>
                                                    <td width="20%">发生时间
                                                    </td>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                <tr ms-repeat-item="serviceList">
                                                    <td align="left">
                                                        <a href="javascript:void(0);" ms-click="goto('/Services/CServices/'+item.Id+'/view')">{{item.Title|truncate(20,'……')}}</a>
                                                    </td>
                                                    <td align="center">{{item.TypeName}}
                                                    </td>
                                                    <td align="center">{{item.ByTime|truncate(10,'')}}
                                                    </td>
                                                </tr>
                                                <tr ms-if="serviceList.size()==0">
                                                    <td colspan="3">{{lang.NoListData}}</td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                    <div class="worksum_data" ms-if="!showlist">
                                        <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList">
                                            <thead>
                                                <tr class="minhead" align="left" style="background-color: rgba(0, 0, 0, 0);">
                                                    <td width="60%">客户服务次数
                                                    </td>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                <tr>
                                                    <td>
                                                        <div class="sum_data">
                                                            上{{one1}}{{sumdata.lastservices}}次，今{{one1}}{{sumdata.services}}次
                                                                            <span class="_up" ms-if="sumdata.lastservices<sumdata.services">↑</span>
                                                            <span ms-if="sumdata.lastservices>sumdata.services" class="_down">↓</span>
                                                        </div>

                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td valign="top">
                                    <div class="work_data" ms-if="showlist">
                                        <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList">
                                            <thead>
                                                <tr class="minhead" align="left" style="background-color: rgba(0, 0, 0, 0);">
                                                    <td width="60%">回访关怀主题
                                                    </td>
                                                    <td width="20%">回访方式
                                                    </td>
                                                    <td width="20%">回访时间
                                                    </td>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                <tr ms-repeat-item="followupList">
                                                    <td align="left">
                                                        <a href="javascript:void(0);" ms-click="goto('/Services/FollowUp/'+item.Id+'/view')">{{item.Theme|truncate(20,'……')}}</a>
                                                    </td>
                                                    <td align="center">{{item.ReturnModeName}}
                                                    </td>
                                                    <td align="center">{{item.ReturnTime|truncate(10,'')}}
                                                    </td>
                                                </tr>
                                                <tr ms-if="followupList.size()==0">
                                                    <td colspan="3">{{lang.NoListData}}</td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                    <div class="worksum_data" ms-if="!showlist">
                                        <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList">
                                            <thead>
                                                <tr class="minhead" align="left" style="background-color: rgba(0, 0, 0, 0);">
                                                    <td width="60%">回访关怀次数
                                                    </td>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                <tr>
                                                    <td>
                                                        <div class="sum_data">
                                                            上{{one1}}{{sumdata.lastfollowup}}次，今{{one1}}{{sumdata.followup}}次
                                                                            <span class="_up" ms-if="sumdata.lastfollowup<sumdata.followup">↑</span>
                                                            <span ms-if="sumdata.lastfollowup>sumdata.followup" class="_down">↓</span>
                                                        </div>

                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                </td>
                                <td style="width: 10px;">&nbsp;
                                </td>
                                <td valign="top">
                                    <div class="work_data" ms-if="showlist">
                                        <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList">
                                            <thead>
                                                <tr class="minhead" align="left" style="background-color: rgba(0, 0, 0, 0);">
                                                    <td width="60%">销售机会主题
                                                    </td>
                                                    <td width="20%">机会状态
                                                    </td>
                                                    <td width="20%">发现日期
                                                    </td>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                <tr ms-repeat-item="salesList">
                                                    <td align="left">
                                                        <a href="javascript:void(0);" ms-click="goto('/Market/SalesOpportunities/'+item.Id+'/view')">{{item.Title|truncate(20,'……')}}</a>
                                                    </td>
                                                    <td align="center">{{item.StateDisplay}}
                                                    </td>
                                                    <td align="center">{{item.DiscoverDate|truncate(10,'')}}
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="3" ms-if="salesList.size()==0">{{lang.NoListData}}</td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                    <div class="worksum_data" ms-if="!showlist">
                                        <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList">
                                            <thead>
                                                <tr class="minhead" align="left" style="background-color: rgba(0, 0, 0, 0);">
                                                    <td width="60%">销售机会数
                                                    </td>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                <tr>
                                                    <td>
                                                        <div class="sum_data">
                                                            上{{one1}}{{sumdata.lastsales}}个，今{{one1}}{{sumdata.sales}}个
                                                                            <span class="_up" ms-if="sumdata.lastsales<sumdata.sales">↑</span>
                                                            <span ms-if="sumdata.lastsales>sumdata.sales" class="_down">↓</span>
                                                        </div>

                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td valign="top">
                                    <div class="work_data" ms-if="showlist">
                                        <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList">
                                            <thead>
                                                <tr class="minhead" align="center" style="background-color: rgba(0, 0, 0, 0);">
                                                    <td width="60%">跟单报价主题
                                                    </td>
                                                    <td width="20%">报价人
                                                    </td>
                                                    <td width="20%">报价时间
                                                    </td>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                <tr ms-repeat-item="documentaryList">
                                                    <td align="left">
                                                        <a href="javascript:void(0);" ms-click="goto('/Market/DocumentaryOffer/'+item.Id+'/view')">{{item.Title|truncate(20,'……')}}</a>
                                                    </td>
                                                    <td align="center">
                                                        <a href="javascript:void(0);" ms-widget='userCard' ms-data-userid="item.DocumentaryEmployee">{{item.DocumentaryEmployeeName}}</a>
                                                    </td>
                                                    <td align="center">{{item.OfferDate|truncate(10,'')}}
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="3" ms-if="salesList.size()==0">{{lang.NoListData}}</td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                    <div class="worksum_data" ms-if="!showlist">
                                        <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList">
                                            <thead>
                                                <tr class="minhead" align="left" style="background-color: rgba(0, 0, 0, 0);">
                                                    <td width="60%">新增跟单报价数
                                                    </td>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                <tr>
                                                    <td>
                                                        <div class="sum_data">
                                                            上{{one1}}{{sumdata.lastdocumentary}}次，今{{one1}}{{sumdata.documentary}}次
                                                                            <span class="_up" ms-if="sumdata.lastdocumentary<sumdata.documentary">↑</span>
                                                            <span ms-if="sumdata.lastdocumentary>sumdata.documentary" class="_down">↓</span>
                                                        </div>

                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                </td>
                                <td style="width: 10px;">&nbsp;
                                </td>
                                <td valign="top">
                                    <div class="work_data" ms-if="showlist">
                                        <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList">
                                            <thead>
                                                <tr class="minhead" align="left" style="background-color: rgba(0, 0, 0, 0);">
                                                    <td width="60%">合同名称
                                                    </td>
                                                    <td width="20%">总金额
                                                    </td>
                                                    <td width="20%">签约日期
                                                    </td>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                <tr ms-repeat-item="contractList">
                                                    <td align="left">
                                                        <a href="javascript:void(0);" ms-click="goto('/Market/Contract/'+item.Id+'/view')">{{item.ContractName|truncate(20,'……')}}</a>
                                                    </td>
                                                    <td align="right">{{item.Amount|number}}
                                                    </td>
                                                    <td align="center">{{item.SignAContractDate|truncate(10,'')}}
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="3" ms-if="contractList.size()==0">{{lang.NoListData}}</td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                    <div class="worksum_data" ms-if="!showlist">
                                        <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList">
                                            <thead>
                                                <tr class="minhead" align="left" style="background-color: rgba(0, 0, 0, 0);">
                                                    <td width="60%">新增合同数
                                                    </td>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                <tr>
                                                    <td>
                                                        <div class="sum_data">
                                                            上{{one1}}{{sumdata.lastcontract}}份，今{{one1}}{{sumdata.contract}}份
                                                                            <span class="_up" ms-if="sumdata.lastcontract<sumdata.contract">↑</span>
                                                            <span ms-if="sumdata.lastcontract>sumdata.contract" class="_down">↓</span>
                                                        </div>

                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td valign="top">
                                    <div class="work_data" ms-if="showlist">
                                        <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList">
                                            <thead>
                                                <tr class="minhead" align="left" style="background-color: rgba(0, 0, 0, 0);">
                                                    <td width="60%">投诉主题
                                                    </td>
                                                    <td width="20%">投诉客户
                                                    </td>
                                                    <td width="20%">投诉时间
                                                    </td>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                <tr ms-repeat-item="complaintsList">
                                                    <td align="left">
                                                        <a href="javascript:void(0);" ms-click="goto('/Services/Complaints/'+item.Id+'/view')">{{item.Ttirle|truncate(20,'……')}}</a>
                                                    </td>
                                                    <td align="center">
                                                        <a href="javascript:void(0);" ms-click="goto('/Customer/DetailCustomer/'+item.CustomerId)">{{item.CustomerName|truncate(10,'…')}}</a>
                                                    </td>
                                                    <td align="center">{{item.BeginTime|truncate(10,'')}}
                                                    </td>
                                                </tr>
                                                <tr ms-if="complaintsList.size()==0">
                                                    <td colspan="3">{{lang.NoListData}}</td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                    <div class="worksum_data" ms-if="!showlist">
                                        <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList">
                                            <thead>
                                                <tr class="minhead" align="left" style="background-color: rgba(0, 0, 0, 0);">
                                                    <td width="60%">被投诉次数
                                                    </td>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                <tr>
                                                    <td>
                                                        <div class="sum_data">
                                                            上{{one1}}{{sumdata.lastcomplaints}}次，今{{one1}}{{sumdata.complaints}}次
                                                                            <span class="_up" ms-if="sumdata.lastcomplaints<sumdata.complaints">↑</span>
                                                            <span ms-if="sumdata.lastcomplaints>sumdata.complaints" class="_down">↓</span>
                                                        </div>

                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                </td>
                                <td style="width: 10px;">&nbsp;
                                </td>
                                <td valign="top">
                                    <div class="work_data" ms-if="showlist">

                                        <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList">
                                            <thead>
                                                <tr class="minhead" align="left" style="background-color: rgba(0, 0, 0, 0);">
                                                    <td width="60%">来电内容
                                                    </td>
                                                    <td width="20%">来电客户
                                                    </td>
                                                    <td width="20%">来电时间
                                                    </td>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                <tr ms-repeat-item="callsList">
                                                    <td align="left">
                                                        <a href="javascript:void(0);" ms-click="goto('/Services/Calls/'+item.Id+'/view')">{{item.CallsContent|truncate(20,'……')}}</a>
                                                    </td>
                                                    <td>{{item.CustomerName|truncate(10,'...')}}
                                                    </td>
                                                    <td align="center">{{item.CallsTime|truncate(10,'')}}
                                                    </td>
                                                </tr>
                                                <tr ms-if="callsList.size()==0">
                                                    <td colspan="3">{{lang.NoListData}}</td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                    <div class="worksum_data" ms-if="!showlist">
                                        <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList">
                                            <thead>
                                                <tr class="minhead" align="left" style="background-color: rgba(0, 0, 0, 0);">
                                                    <td width="60%">新增来电数
                                                    </td>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                <tr>
                                                    <td>
                                                        <div class="sum_data">
                                                            上{{one1}}{{sumdata.lastcalls}}个，今{{one1}}{{sumdata.calls}}个
                                                                            <span class="_up" ms-if="sumdata.lastcalls<sumdata.calls">↑</span>
                                                            <span ms-if="sumdata.lastcalls>sumdata.calls" class="_down">↓</span>
                                                        </div>

                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
        <div id="tab3" ms-if="action != 'add' && tab=='tab3'" ms-css-width="tabWidth-20" class="tabContent2 min200">
            <div style="width: 100%; margin: 0px auto;" ms-if="entityDetailList.size()==0">
                暂无点评！
            </div>
            <div style="width: 100%; margin: 0px auto;" ms-repeat-item="entityDetailList">
                <div style="width: 100%; margin: 0 auto; overflow: auto; margin-bottom: 15px; margin-top: 10px;">
                    <div class="lingdao_pic">
                        <img alt="用户头像" width="70px" height="70px" style="width: 70px; height: 70px;" ms-src="item.Picture">
                        <p style="text-align: center; margin: 0; padding: 0;">
                            <a style="color: #0064d3; font-size: 9pt;" href="javascript:void(0)" ms-widget='userCard' ms-data-userid="item.AddEmpId">{{item.AddByName}}</a>
                        </p>
                    </div>
                    <div class="comment" ms-if-loop="item.Comments">
                        <p style="background: #f2f2f2; height: 30px; line-height: 30px; color: #9c9a9c; margin: 0; padding: 0;">
                            <img style="margin-top: 10px;" src="/Content/Themes/Base/Images/ico/flower.gif" title="鲜花">{{item.FlowersEgg=='1'?'赠鲜花':'砸鸡蛋'}} {{item.FlowersEggNum}} {{item.FlowersEgg=='1'?'朵':'个'}} 
                                                    <span style="float: right; margin-right: 10px;">点评时间：{{item.CommentDate}}&nbsp;|&nbsp;
                                                        <a href="javascript:void(0);" title="编辑" ms-if="item.AddEmpId==uid" ms-click="commont(item)" style="color: #016b96;">编辑</a>
                                                        <span title="只能编辑自己的点评" ms-if="item.AddEmpId!=uid">编辑</span>
                                                    </span>
                        </p>
                        <p style="margin: 0 5px; padding: 0; padding-bottom: 7px; color: #5C5C5C; min-height: 40px;">
                            {{item.Comments}}
                        </p>
                    </div>
                    <div class="comment" ms-if-loop="!item.Comments">
                        <p style="background: #f2f2f2; height: 30px; line-height: 30px; color: #9c9a9c; margin: 0; padding: 0;">
                            尚未点评
                        </p>
                        <p style="margin: 5px; padding-bottom: 7px; color: #5C5C5C; padding: 0; min-height: 40px;">
                            暂无点评，可能点评还在路上飞……
                        </p>
                    </div>
                </div>
            </div>
        </div>
    </noscript>

    <!--查看、点评-->
    <noscript id="DailyReportviewTemplate">
        <div>
            <ul class="tabWarp">
                <li ms-class-1="hover:tab=='tab1'" ms-class-2="normal:tab!='tab1'" val="tab1" ms-click="tabChange">{{reportTypes[entity.ReportTypeId]}}信息</li>
                <li ms-class-1="hover:tab=='tab2'" ms-class-2="normal:tab!='tab2'" val="tab2" ms-click="tabChange">今{{one1}}数据</li>
                <li ms-class-1="hover:tab=='tab3'" ms-class-2="normal:tab!='tab3'" val="tab3" ms-click="tabChange">领导点评</li>
            </ul>
        </div>
        <div id="tab1" ms-visible="tab=='tab1'" ms-css-width="tabWidth-20" class="tabContent2">
            <table width="96%" border="0" cellspacing="1" cellpadding="0" class="tablecInfo">
                <tbody>
                    <tr>
                        <td style="width: 90px;">报告分类：
                        </td>
                        <td style="width: 300px;">{{reportTypes[entity.ReportTypeId]}}
                        </td>
                        <td style="width: 90px;">报告区间：
                        </td>
                        <td>
                            <span>{{entity.ReportStartDate}}至{{entity.ReportEndDate}}</span>
                        </td>
                    </tr>
                    <tr ms-if="config.configs['UseSendTo']=='1'">
                        <td>报告标题：
                        </td>
                        <td>{{entity.ReportTitle}}
                        </td>
                        <td>呈报领导：
                        </td>
                        <td>{{entity.SendToDisplay}}
                        </td>
                    </tr>
                    <tr ms-if="config.configs['UseSendTo']=='0'">
                        <td>报告标题：
                        </td>
                        <td colspan="3">{{entity.ReportTitle}}
                        </td>
                    </tr>
                    <tr ms-if="entity.ReportTypeId=='1'">
                        <td>今日计划<br />
                            (昨日填写)</td>
                        <td colspan="3">
                            <div class="divcontent" style="height: 60px; width: 648px; padding: 5px; overflow: auto;">
                                {{entity.YesterdayPlan|html}}
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>{{one}}总结：</td>
                        <td colspan="3">
                            <div class="divcontent">
                                {{entity.TodaySummary|html}}
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>{{two}}计划：</td>
                        <td colspan="3">
                            <div class="divcontent">
                                {{entity.TommowPlan|html}}
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>附&nbsp;&nbsp;&nbsp;&nbsp;件：
                        </td>
                        <td height="25" width="*" align="left" colspan="3">
                            <a ms-if="entity.Affix" ms-href="entity.Affix" target="_blank">点击下载</a>
                        </td>
                    </tr>
                </tbody>
            </table>
            <div style="margin-top: 5px;">
                <table border="0" cellspacing="1" cellpadding="0" class="tableList" style="width: 100%;">
                    <tr class="minhead" align="center">
                        <td width="55%" style="background: url(/Content/Themes/Base/Images/table_head_bg.gif) repeat-x;">主要日程主题</td>
                        <td width="25%" style="background: url(/Content/Themes/Base/Images/table_head_bg.gif) repeat-x;">日程分类</td>
                        <td width="10%" style="background: url(/Content/Themes/Base/Images/table_head_bg.gif) repeat-x;">开始时间</td>
                        <td width="10%" style="background: url(/Content/Themes/Base/Images/table_head_bg.gif) repeat-x;">结束时间</td>
                    </tr>
                    <tr ms-repeat-item="entity.CalendarsList">
                        <td align="center">{{item.Subject}}
                        </td>
                        <td align="center">{{item.Category}}
                        </td>
                        <td align="center">{{item.StartTime}}
                        </td>
                        <td align="center">{{item.EndTime}}
                        </td>
                    </tr>
                    <tr>
                        <td colspan="4" ms-if="entity.CalendarsList.size()==0" class="noListData">无日程数据</td>
                    </tr>
                </table>
            </div>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tablecInfo">
                <tr>
                    <td style="text-align: left; padding-left: 1px;">录入人：{{entity.AddBy.FullName}}<span ms-if="entity.AddBy.Group">({{entity.AddBy.Group}})</span>

                    </td>
                    <td style="text-align: right; padding-right: 1px;">录入时间：{{entity.AddTime}}</td>
                </tr>
            </table>

        </div>
        <div id="tab2" ms-visible="tab=='tab2'" ms-css-width="tabWidth-20"  class="tabContent2">
            <div style="display: block; margin-bottom: 0px;">
                <div style="width: 100%; margin: 0px auto;">
                    <table border="0" cellspacing="0" cellpadding="0" style="margin: 0 auto; width: 100%;">
                        <tbody>
                            <tr>
                                <td valign="top" width="50%">
                                    <div class="work_data" ms-if="showlist">
                                        <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList">
                                            <thead>
                                                <tr class="minhead" align="left" style="background-color: rgba(0, 0, 0, 0);">
                                                    <td width="60%">新增客户名称
                                                    </td>
                                                    <td width="20%">阶段
                                                    </td>
                                                    <td width="20%">新增时间
                                                    </td>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                <tr ms-repeat-item="customerList">
                                                    <td><a href="javascript:void(0);" ms-click="goto('/Customer/DetailCustomer/'+item.Id)">{{item.Name|truncate(20,'……')}}</a></td>
                                                    <td align="center">{{item.StageName}}</td>
                                                    <td align="center">{{item.AddTime|truncate(10,'')}}</td>
                                                </tr>
                                                <tr ms-if="customerList.size()==0">
                                                    <td colspan="3">{{lang.NoListData}}</td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                    <div class="worksum_data" ms-if="!showlist">
                                        <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList">
                                            <thead>
                                                <tr class="minhead" align="left" style="background-color: rgba(0, 0, 0, 0);">
                                                    <td width="60%">新增客户数
                                                    </td>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                <tr>
                                                    <td>
                                                        <div class="sum_data">
                                                            上{{one1}}{{sumdata.lastcustomer}}个，今{{one1}}{{sumdata.customer}}个 
                                                                        <span class="_up" ms-if="sumdata.lastcustomer<sumdata.customer">↑</span>
                                                            <span ms-if="sumdata.lastcustomer>sumdata.customer" class="_down">↓</span>
                                                        </div>

                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>

                                </td>
                                <td style="width: 10px;">&nbsp;
                                </td>
                                <td valign="top">
                                    <div class="work_data" ms-if="showlist">
                                        <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList">
                                            <thead>
                                                <tr class="minhead" align="left" style="background-color: rgba(0, 0, 0, 0);">
                                                    <td width="60%">客户服务主题
                                                    </td>
                                                    <td width="20%">服务类型
                                                    </td>
                                                    <td width="20%">发生时间
                                                    </td>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                <tr ms-repeat-item="serviceList">
                                                    <td align="left">
                                                        <a href="javascript:void(0);" ms-click="goto('/Services/CServices/'+item.Id+'/view')">{{item.Title|truncate(20,'……')}}</a>
                                                    </td>
                                                    <td align="center">{{item.TypeName}}
                                                    </td>
                                                    <td align="center">{{item.ByTime|truncate(10,'')}}
                                                    </td>
                                                </tr>
                                                <tr ms-if="serviceList.size()==0">
                                                    <td colspan="3">{{lang.NoListData}}</td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                    <div class="worksum_data" ms-if="!showlist">
                                        <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList">
                                            <thead>
                                                <tr class="minhead" align="left" style="background-color: rgba(0, 0, 0, 0);">
                                                    <td width="60%">客户服务次数
                                                    </td>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                <tr>
                                                    <td>
                                                        <div class="sum_data">
                                                            上{{one1}}{{sumdata.lastservices}}次，今{{one1}}{{sumdata.services}}次
                                                                            <span class="_up" ms-if="sumdata.lastservices<sumdata.services">↑</span>
                                                            <span ms-if="sumdata.lastservices>sumdata.services" class="_down">↓</span>
                                                        </div>

                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td valign="top">
                                    <div class="work_data" ms-if="showlist">
                                        <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList">
                                            <thead>
                                                <tr class="minhead" align="left" style="background-color: rgba(0, 0, 0, 0);">
                                                    <td width="60%">回访关怀主题
                                                    </td>
                                                    <td width="20%">回访方式
                                                    </td>
                                                    <td width="20%">回访时间
                                                    </td>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                <tr ms-repeat-item="followupList">
                                                    <td align="left">
                                                        <a href="javascript:void(0);" ms-click="goto('/Services/FollowUp/'+item.Id+'/view')">{{item.Theme|truncate(20,'……')}}</a>
                                                    </td>
                                                    <td align="center">{{item.ReturnModeName}}
                                                    </td>
                                                    <td align="center">{{item.ReturnTime|truncate(10,'')}}
                                                    </td>
                                                </tr>
                                                <tr ms-if="followupList.size()==0">
                                                    <td colspan="3">{{lang.NoListData}}</td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                    <div class="worksum_data" ms-if="!showlist">
                                        <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList">
                                            <thead>
                                                <tr class="minhead" align="left" style="background-color: rgba(0, 0, 0, 0);">
                                                    <td width="60%">回访关怀次数
                                                    </td>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                <tr>
                                                    <td>
                                                        <div class="sum_data">
                                                            上{{one1}}{{sumdata.lastfollowup}}次，今{{one1}}{{sumdata.followup}}次
                                                                            <span class="_up" ms-if="sumdata.lastfollowup<sumdata.followup">↑</span>
                                                            <span ms-if="sumdata.lastfollowup>sumdata.followup" class="_down">↓</span>
                                                        </div>

                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                </td>
                                <td style="width: 10px;">&nbsp;
                                </td>
                                <td valign="top">
                                    <div class="work_data" ms-if="showlist">
                                        <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList">
                                            <thead>
                                                <tr class="minhead" align="left" style="background-color: rgba(0, 0, 0, 0);">
                                                    <td width="60%">销售机会主题
                                                    </td>
                                                    <td width="20%">机会状态
                                                    </td>
                                                    <td width="20%">发现日期
                                                    </td>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                <tr ms-repeat-item="salesList">
                                                    <td align="left">
                                                        <a href="javascript:void(0);" ms-click="goto('/Market/SalesOpportunities/'+item.Id+'/view')">{{item.Title|truncate(20,'……')}}</a>
                                                    </td>
                                                    <td align="center">{{item.StateDisplay}}
                                                    </td>
                                                    <td align="center">{{item.DiscoverDate|truncate(10,'')}}
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="3" ms-if="salesList.size()==0">{{lang.NoListData}}</td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                    <div class="worksum_data" ms-if="!showlist">
                                        <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList">
                                            <thead>
                                                <tr class="minhead" align="left" style="background-color: rgba(0, 0, 0, 0);">
                                                    <td width="60%">销售机会数
                                                    </td>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                <tr>
                                                    <td>
                                                        <div class="sum_data">
                                                            上{{one1}}{{sumdata.lastsales}}个，今{{one1}}{{sumdata.sales}}个
                                                                            <span class="_up" ms-if="sumdata.lastsales<sumdata.sales">↑</span>
                                                            <span ms-if="sumdata.lastsales>sumdata.sales" class="_down">↓</span>
                                                        </div>

                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td valign="top">
                                    <div class="work_data" ms-if="showlist">
                                        <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList">
                                            <thead>
                                                <tr class="minhead" align="center" style="background-color: rgba(0, 0, 0, 0);">
                                                    <td width="60%">跟单报价主题
                                                    </td>
                                                    <td width="20%">报价人
                                                    </td>
                                                    <td width="20%">报价时间
                                                    </td>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                <tr ms-repeat-item="documentaryList">
                                                    <td align="left">
                                                        <a href="javascript:void(0);" ms-click="goto('/Market/DocumentaryOffer/'+item.Id+'/view')">{{item.Title|truncate(20,'……')}}</a>
                                                    </td>
                                                    <td align="center">
                                                        <a href="javascript:void(0);" ms-widget='userCard' ms-data-userid="item.DocumentaryEmployee">{{item.DocumentaryEmployeeName}}</a>
                                                    </td>
                                                    <td align="center">{{item.OfferDate|truncate(10,'')}}
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="3" ms-if="salesList.size()==0">{{lang.NoListData}}</td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                    <div class="worksum_data" ms-if="!showlist">
                                        <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList">
                                            <thead>
                                                <tr class="minhead" align="left" style="background-color: rgba(0, 0, 0, 0);">
                                                    <td width="60%">新增跟单报价数
                                                    </td>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                <tr>
                                                    <td>
                                                        <div class="sum_data">
                                                            上{{one1}}{{sumdata.lastdocumentary}}次，今{{one1}}{{sumdata.documentary}}次
                                                                            <span class="_up" ms-if="sumdata.lastdocumentary<sumdata.documentary">↑</span>
                                                            <span ms-if="sumdata.lastdocumentary>sumdata.documentary" class="_down">↓</span>
                                                        </div>

                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                </td>
                                <td style="width: 10px;">&nbsp;
                                </td>
                                <td valign="top">
                                    <div class="work_data" ms-if="showlist">
                                        <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList">
                                            <thead>
                                                <tr class="minhead" align="left" style="background-color: rgba(0, 0, 0, 0);">
                                                    <td width="60%">合同名称
                                                    </td>
                                                    <td width="20%">总金额
                                                    </td>
                                                    <td width="20%">签约日期
                                                    </td>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                <tr ms-repeat-item="contractList">
                                                    <td align="left">
                                                        <a href="javascript:void(0);" ms-click="goto('/Market/Contract/'+item.Id+'/view')">{{item.ContractName|truncate(20,'……')}}</a>
                                                    </td>
                                                    <td align="right">{{item.Amount|number}}
                                                    </td>
                                                    <td align="center">{{item.SignAContractDate|truncate(10,'')}}
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="3" ms-if="contractList.size()==0">{{lang.NoListData}}</td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                    <div class="worksum_data" ms-if="!showlist">
                                        <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList">
                                            <thead>
                                                <tr class="minhead" align="left" style="background-color: rgba(0, 0, 0, 0);">
                                                    <td width="60%">新增合同数
                                                    </td>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                <tr>
                                                    <td>
                                                        <div class="sum_data">
                                                            上{{one1}}{{sumdata.lastcontract}}份，今{{one1}}{{sumdata.contract}}份
                                                                            <span class="_up" ms-if="sumdata.lastcontract<sumdata.contract">↑</span>
                                                            <span ms-if="sumdata.lastcontract>sumdata.contract" class="_down">↓</span>
                                                        </div>

                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td valign="top">
                                    <div class="work_data" ms-if="showlist">
                                        <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList">
                                            <thead>
                                                <tr class="minhead" align="left" style="background-color: rgba(0, 0, 0, 0);">
                                                    <td width="60%">投诉主题
                                                    </td>
                                                    <td width="20%">投诉客户
                                                    </td>
                                                    <td width="20%">投诉时间
                                                    </td>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                <tr ms-repeat-item="complaintsList">
                                                    <td align="left">
                                                        <a href="javascript:void(0);" ms-click="goto('/Services/Complaints/'+item.Id+'/view')">{{item.Ttirle|truncate(20,'……')}}</a>
                                                    </td>
                                                    <td align="center">
                                                        <a href="javascript:void(0);" ms-click="goto('/Customer/DetailCustomer/'+item.CustomerId)">{{item.CustomerName|truncate(10,'…')}}</a>
                                                    </td>
                                                    <td align="center">{{item.BeginTime|truncate(10,'')}}
                                                    </td>
                                                </tr>
                                                <tr ms-if="complaintsList.size()==0">
                                                    <td colspan="3">{{lang.NoListData}}</td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                    <div class="worksum_data" ms-if="!showlist">
                                        <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList">
                                            <thead>
                                                <tr class="minhead" align="left" style="background-color: rgba(0, 0, 0, 0);">
                                                    <td width="60%">被投诉次数
                                                    </td>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                <tr>
                                                    <td>
                                                        <div class="sum_data">
                                                            上{{one1}}{{sumdata.lastcomplaints}}次，今{{one1}}{{sumdata.complaints}}次
                                                                            <span class="_up" ms-if="sumdata.lastcomplaints<sumdata.complaints">↑</span>
                                                            <span ms-if="sumdata.lastcomplaints>sumdata.complaints" class="_down">↓</span>
                                                        </div>

                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                </td>
                                <td style="width: 10px;">&nbsp;
                                </td>
                                <td valign="top">
                                    <div class="work_data" ms-if="showlist">

                                        <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList">
                                            <thead>
                                                <tr class="minhead" align="left" style="background-color: rgba(0, 0, 0, 0);">
                                                    <td width="60%">来电内容
                                                    </td>
                                                    <td width="20%">来电客户
                                                    </td>
                                                    <td width="20%">来电时间
                                                    </td>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                <tr ms-repeat-item="callsList">
                                                    <td align="left">
                                                        <a href="javascript:void(0);" ms-click="goto('/Services/Calls/'+item.Id+'/view')">{{item.CallsContent|truncate(20,'……')}}</a>
                                                    </td>
                                                    <td>{{item.CustomerName|truncate(10,'...')}}
                                                    </td>
                                                    <td align="center">{{item.CallsTime|truncate(10,'')}}
                                                    </td>
                                                </tr>
                                                <tr ms-if="callsList.size()==0">
                                                    <td colspan="3">{{lang.NoListData}}</td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                    <div class="worksum_data" ms-if="!showlist">
                                        <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList">
                                            <thead>
                                                <tr class="minhead" align="left" style="background-color: rgba(0, 0, 0, 0);">
                                                    <td width="60%">新增来电数
                                                    </td>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                <tr>
                                                    <td>
                                                        <div class="sum_data">
                                                            上{{one1}}{{sumdata.lastcalls}}个，今{{one1}}{{sumdata.calls}}个
                                                                            <span class="_up" ms-if="sumdata.lastcalls<sumdata.calls">↑</span>
                                                            <span ms-if="sumdata.lastcalls>sumdata.calls" class="_down">↓</span>
                                                        </div>

                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
        <div id="tab3" ms-visible="tab=='tab3'" ms-css-width="tabWidth-20" class="tabContent2 min200">
            <!--<a class="docomment1" ms-visible="showcommont==11" ms-click="commont"></a>-->
            <div style="width: 100%; margin: 0px auto;" ms-if="entityDetailList.size()==0">
                暂无点评！
            </div>
            <div style="width: 100%; margin: 0px auto;" ms-repeat-item="entityDetailList">
                <div style="width: 100%; margin: 0 auto; overflow: auto; margin-bottom: 15px; margin-top: 10px;">
                    <div class="lingdao_pic">
                        <img alt="用户头像" width="70px" height="70px" style="width: 70px; height: 70px;" ms-src="item.Picture">
                        <p style="text-align: center; margin: 0; padding: 0;">
                            <a style="color: #0064d3; font-size: 9pt;" href="javascript:void(0)" ms-widget='userCard' ms-data-userid="item.AddEmpId">{{item.AddByName}}</a>
                        </p>
                    </div>
                    <div class="comment" ms-if-loop="item.Comments">
                        <p style="background: #f2f2f2; height: 30px; line-height: 30px; color: #9c9a9c; margin: 0; padding: 0;">
                            <span ms-if="item.FlowersEggNum">
                                <img style="margin-top: 10px;" ms-src="/Content/Themes/Base/Images/ico/{{item.FlowersEgg=='1'?'flower':'egg'}}.gif" title="鲜花">{{item.FlowersEgg=='1'?'赠鲜花':'砸鸡蛋'}} {{item.FlowersEggNum}} {{item.FlowersEgg=='1'?'朵':'个'}} 
                                </span>
                                                    <span style="float: right; margin-right: 10px;">点评时间：{{item.CommentDate}}&nbsp;|&nbsp;
                                                        <a href="javascript:void(0);" title="编辑" ms-if="item.AddEmpId==uid" ms-click="commont(item)" style="color: #016b96;">编辑</a>
                                                        <span title="只能编辑自己的点评" ms-if="item.AddEmpId!=uid">编辑</span>
                                                    </span>
                        </p>
                        <p style="margin: 0 5px; padding: 0; padding-bottom: 7px; color: #5C5C5C; min-height: 40px;">
                            {{item.Comments}}
                        </p>
                    </div>
                    <div class="comment" ms-if-loop="!item.Comments">
                        <p style="background: #f2f2f2; height: 30px; line-height: 30px; color: #9c9a9c; margin: 0; padding: 0;">
                            尚未点评
                        </p>
                        <p style="margin: 5px; padding-bottom: 7px; color: #5C5C5C; padding: 0; min-height: 40px;">
                            暂无点评，可能点评还在路上飞……
                        </p>
                    </div>
                </div>
            </div>
        </div>
    </noscript>
    <!--评论-->
    <noscript type="text/avalon" id="commTemplate">
        <table>
            <tr>
                <td>
                    <textarea cols="10" rows="5" placeholder="请输入您对当前工作报告的点评意见..." style="width: 450px" ms-duplex="entityDetail.Comments"></textarea></td>
            </tr>
            <tr>
                <td>
                    <input value="1" title="赠鲜花" data-units="朵" ms-duplex-text="entityDetail.FlowersEgg" style="display: inline;" type="radio" name="FlowersEgg">
                    赠鲜花<img src="/Content/Themes/Base/Images/ico/flower.gif" alt="鲜花" title="赠鲜花" style="vertical-align: middle">
                    <input value="2" title="砸鸡蛋" data-units="个" ms-duplex-text="entityDetail.FlowersEgg" style="display: inline;" type="radio" name="FlowersEgg">
                    砸鸡蛋<img src="/Content/Themes/Base/Images/ico/egg.gif" alt="鸡蛋" title="砸鸡蛋" style="vertical-align: middle">
                    <select style="width: 55px;" ms-duplex-radio="entityDetail.FlowersEggNum">
                        <option value="1">1</option>
                        <option value="2">2</option>
                        <option value="3">3</option>
                        <option value="4">4</option>
                        <option value="5">5</option>
                        <option value="6">6</option>
                        <option value="7">7</option>
                        <option value="8">8</option>
                        <option value="9">9</option>
                        <option value="10">10</option>
                    </select>
                    <span style="padding-right: 20px;">{{unit}}</span>
                    <span style="color: #9c9c9c">点评时间：{{entityDetail.CommentDate}}</span>
                </td>
            </tr>
        </table>
    </noscript>
</div>
<style type="text/css" id="DaliReportCss">
    .divcontent {
        padding: 5px;
        padding-left: 0px;
    }

        .divcontent tr td {
            background: #fff;
        }

    .work_data {
        margin-bottom: 5px;
        max-height: 200px;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .worksum_data {
        margin-bottom: 5px;
    }

    .sum_data {
        color: #5C5C5C;
        font-size: 18px;
        text-align: center;
        font-weight: bold;
        line-height: 30px;
    }

    ._up {
        color: green;
        margin-left: 10px;
        font-size: 20px;
    }

    ._down {
        color: red;
        margin-left: 10px;
        font-size: 20px;
    }
</style>

