<div ms-controller="IndexController" class="telesa_warp">
    <!--顶部-->
    <div class="telesa_top">
        <div id="shortcutbox" style="border:none;">
            <div id="shortcut">
                <a href="javascript:void(0);" ms-live-click="menuOpen" class="t_eidtcount" title="自定义快捷菜单"></a>
                <ul id="shortcutul" class="defaultMenu">
                    <li ms-repeat-item="qmenuShow" style="margin-bottom:10px;">
                        <i><a ms-href="item.url" ms-title="item.name"><img ms-src="'/Content/Themes/Base/images/desktop/'+item.icon" /></a></i>
                           <a ms-href="item.url" ms-title="item.name">{{item.name}}</a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    
    <!--统计-->
    <div class="telesa_count">
        <ul>
            <li ms-repeat-item="mycount" ms-class-mylast="$index==(mycount.length-1)">
                <p class="t_title">{{item.title}}
                    <span ms-class-pgreen="item.isup==1"  ms-class-pred="item.isup==2" ms-class-pnol="item.isup==0" 
                        ms-html="item.compare + '%'" ms-title="'上月：'+item.back+'，环比：'+item.compare+'%'">0%</span>
                </p>
                <p class="t_value">
                    <span class="tBlue"  style="float:left;">{{item.count|bigNumber|html}}</span>
                </p>
            </li>
        </ul>
        <a href="javascript:void(0);" class="t_eidtcount" title="自定义统计" ms-click="openCount"></a>
        <div style="clear:both;"></div>
    </div>

    <!--图表-->
    <div class="telesa_chart">
        <a href="javascript:void(0);" class="t_eidtcount" title="自定义图表" ms-click="openChart"></a>
        <!--饼图-->
        <div class="chart_left" style="margin-top:10px;">
            <div id="chartLeft" style="text-align:center; vertical-align:middle;"></div>
        </div>
        <!--线图-->
        <div class="chart_right">
            <div id="chartRight"></div>
        </div>
    </div>

    <!--表格-->
    <div class="telesa_table">
        <ul id="sortable">
            <li ms-repeat-item="customerTable" ms-attr-identity="item.head.id">
                <div class="t_top">
                    <h3>{{item.head.title}}</h3>
                    <span class="t_more">
                        <a ms-href="item.head.url" class="tMore" title="更多"></a>
                        <i class="tCenter"></i>
                        <a href="javascript:void(0);" class="tRemove" ms-click="tableRemove" ms-attr-index="$index" title="移除"></a>
                    </span>
                </div>
                <div class="t_cen">
                    <table class="t_table" style="width:100%;" border="0" cellpadding="0" cellspacing="0">
                        <thead>
                            <tr ms-if="!item.head.owner">
                                <th style="width:55%;">{{item.head.name}}</th>
                                <th style="width:25%;">{{item.head.type}}</th>
                                <th style="width:20%;">{{item.head.time}}</th>
                            </tr>
                            <tr ms-if="item.head.owner">
                                <th style="width:45%;">{{item.head.name}}</th>
                                <th style="width:25%;">{{item.head.type}}</th>
                                <th style="width:20%;">{{item.head.owner}}</th>
                                <th style="width:10%;">{{item.head.time}}</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr ms-repeat-child="item.body" ms-class-1="last:$last">
                                <td><a ms-title="child.Name" ms-live-click="jumpTo" ms-attr-val="item.head.id" ms-data-goto="item.head.detail + child.Id" href="javascript:void(0)">{{child.Name|truncate(14,'...')}}</a></td>
                                <td style="text-align:center;">{{child.Type}}</td>
                                <td ms-if="!item.head.owner" style="text-align:center;">{{child.Date | truncate(10,'')}}</td>
                                <td ms-if="item.head.owner" style="text-align:center;">{{child.Owner}}</td>
                                <td ms-if="item.head.owner" style="text-align:center;">{{child.Date | truncate2(5,5,'')}}</td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </li>
        </ul>
        
        <div style="clear:both;"></div>
    </div>

    <div id="stest"></div>
</div>